mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
39 lines
683 KiB
JavaScript
39 lines
683 KiB
JavaScript
var n1=Object.defineProperty,s1=Object.defineProperties;var r1=Object.getOwnPropertyDescriptors;var Pi=Object.getOwnPropertySymbols;var wf=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable;var bf=(e,t,n)=>t in e?n1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ye=(e,t)=>{for(var n in t||(t={}))wf.call(t,n)&&bf(e,n,t[n]);if(Pi)for(var n of Pi(t))kf.call(t,n)&&bf(e,n,t[n]);return e},An=(e,t)=>s1(e,r1(t));var su=(e,t)=>{var n={};for(var s in e)wf.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&Pi)for(var s of Pi(e))t.indexOf(s)<0&&kf.call(e,s)&&(n[s]=e[s]);return n};const o1=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)}};o1();function ll(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const i1="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",a1=ll(i1),l1="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",u1=ll(l1);function Nm(e){return!!e||e===""}function zs(e){if(ze(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=At(s)?f1(s):zs(s);if(r)for(const o in r)t[o]=r[o]}return t}else{if(At(e))return e;if(Mt(e))return e}}const c1=/;(?![^(]*\))/g,d1=/:(.+)/;function f1(e){const t={};return e.split(c1).forEach(n=>{if(n){const s=n.split(d1);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function We(e){let t="";if(At(e))t=e;else if(ze(e))for(let n=0;n<e.length;n++){const s=We(e[n]);s&&(t+=s+" ")}else if(Mt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function h1(e){if(!e)return null;let{class:t,style:n}=e;return t&&!At(t)&&(e.class=We(t)),n&&(e.style=zs(n)),e}function m1(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ns(e[s],t[s]);return n}function Ns(e,t){if(e===t)return!0;let n=Sf(e),s=Sf(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=ze(e),s=ze(t),n||s)return n&&s?m1(e,t):!1;if(n=Mt(e),s=Mt(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Ns(e[i],t[i]))return!1}}return String(e)===String(t)}function ul(e,t){return e.findIndex(n=>Ns(n,t))}const R=e=>At(e)?e:e==null?"":ze(e)||Mt(e)&&(e.toString===jm||!et(e.toString))?JSON.stringify(e,Vm,2):String(e),Vm=(e,t)=>t&&t.__v_isRef?Vm(e,t.value):Br(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:hr(t)?{[`Set(${t.size})`]:[...t.values()]}:Mt(t)&&!ze(t)&&!Bm(t)?String(t):t,gt={},jr=[],qn=()=>{},p1=()=>!1,_1=/^on[^a-z]/,di=e=>_1.test(e),Rc=e=>e.startsWith("onUpdate:"),It=Object.assign,Lc=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},g1=Object.prototype.hasOwnProperty,ft=(e,t)=>g1.call(e,t),ze=Array.isArray,Br=e=>cl(e)==="[object Map]",hr=e=>cl(e)==="[object Set]",Sf=e=>e instanceof Date,et=e=>typeof e=="function",At=e=>typeof e=="string",Nc=e=>typeof e=="symbol",Mt=e=>e!==null&&typeof e=="object",Vc=e=>Mt(e)&&et(e.then)&&et(e.catch),jm=Object.prototype.toString,cl=e=>jm.call(e),v1=e=>cl(e).slice(8,-1),Bm=e=>cl(e)==="[object Object]",jc=e=>At(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lo=ll(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),dl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},y1=/-(\w)/g,En=dl(e=>e.replace(y1,(t,n)=>n?n.toUpperCase():"")),b1=/\B([A-Z])/g,Jn=dl(e=>e.replace(b1,"-$1").toLowerCase()),fi=dl(e=>e.charAt(0).toUpperCase()+e.slice(1)),No=dl(e=>e?`on${fi(e)}`:""),si=(e,t)=>!Object.is(e,t),Ur=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Ba=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Vs=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let xf;const w1=()=>xf||(xf=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let yn;class Bc{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&yn&&(this.parent=yn,this.index=(yn.scopes||(yn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=yn;try{return yn=this,t()}finally{yn=n}}}on(){yn=this}off(){yn=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function k1(e){return new Bc(e)}function Um(e,t=yn){t&&t.active&&t.effects.push(e)}function S1(){return yn}function x1(e){yn&&yn.cleanups.push(e)}const Uc=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Hm=e=>(e.w&js)>0,zm=e=>(e.n&js)>0,E1=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=js},C1=e=>{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s<t.length;s++){const r=t[s];Hm(r)&&!zm(r)?r.delete(e):t[n++]=r,r.w&=~js,r.n&=~js}t.length=n}},Bu=new WeakMap;let Ao=0,js=1;const Uu=30;let Hn;const ar=Symbol(""),Hu=Symbol("");class hi{constructor(t,n=null,s){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Um(this,s)}run(){if(!this.active)return this.fn();let t=Hn,n=Rs;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Hn,Hn=this,Rs=!0,js=1<<++Ao,Ao<=Uu?E1(this):Ef(this),this.fn()}finally{Ao<=Uu&&C1(this),js=1<<--Ao,Hn=this.parent,Rs=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Hn===this?this.deferStop=!0:this.active&&(Ef(this),this.onStop&&this.onStop(),this.active=!1)}}function Ef(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function $1(e,t){e.effect&&(e=e.effect.fn);const n=new hi(e);t&&(It(n,t),t.scope&&Um(n,t.scope)),(!t||!t.lazy)&&n.run();const s=n.run.bind(n);return s.effect=n,s}function A1(e){e.effect.stop()}let Rs=!0;const qm=[];function mr(){qm.push(Rs),Rs=!1}function pr(){const e=qm.pop();Rs=e===void 0?!0:e}function Cn(e,t,n){if(Rs&&Hn){let s=Bu.get(e);s||Bu.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=Uc()),Gm(r)}}function Gm(e,t){let n=!1;Ao<=Uu?zm(e)||(e.n|=js,n=!Hm(e)):n=!e.has(Hn),n&&(e.add(Hn),Hn.deps.push(e))}function hs(e,t,n,s,r,o){const i=Bu.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&ze(e))i.forEach((l,c)=>{(c==="length"||c>=s)&&a.push(l)});else switch(n!==void 0&&a.push(i.get(n)),t){case"add":ze(e)?jc(n)&&a.push(i.get("length")):(a.push(i.get(ar)),Br(e)&&a.push(i.get(Hu)));break;case"delete":ze(e)||(a.push(i.get(ar)),Br(e)&&a.push(i.get(Hu)));break;case"set":Br(e)&&a.push(i.get(ar));break}if(a.length===1)a[0]&&zu(a[0]);else{const l=[];for(const c of a)c&&l.push(...c);zu(Uc(l))}}function zu(e,t){for(const n of ze(e)?e:[...e])(n!==Hn||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const O1=ll("__proto__,__v_isRef,__isVue"),Wm=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Nc)),T1=fl(),P1=fl(!1,!0),D1=fl(!0),F1=fl(!0,!0),Cf=I1();function I1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=ut(this);for(let o=0,i=this.length;o<i;o++)Cn(s,"get",o+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(ut)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){mr();const s=ut(this)[t].apply(this,n);return pr(),s}}),e}function fl(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?ep:Qm:t?Xm:Jm).get(s))return s;const i=ze(s);if(!e&&i&&ft(Cf,r))return Reflect.get(Cf,r,o);const a=Reflect.get(s,r,o);return(Nc(r)?Wm.has(r):O1(r))||(e||Cn(s,"get",r),t)?a:Ut(a)?!i||!jc(r)?a.value:a:Mt(a)?e?zc(a):_r(a):a}}const M1=Km(),R1=Km(!0);function Km(e=!1){return function(n,s,r,o){let i=n[s];if(Gr(i)&&Ut(i)&&!Ut(r))return!1;if(!e&&!Gr(r)&&(qc(r)||(r=ut(r),i=ut(i)),!ze(n)&&Ut(i)&&!Ut(r)))return i.value=r,!0;const a=ze(n)&&jc(s)?Number(s)<n.length:ft(n,s),l=Reflect.set(n,s,r,o);return n===ut(o)&&(a?si(r,i)&&hs(n,"set",s,r):hs(n,"add",s,r)),l}}function L1(e,t){const n=ft(e,t);e[t];const s=Reflect.deleteProperty(e,t);return s&&n&&hs(e,"delete",t,void 0),s}function N1(e,t){const n=Reflect.has(e,t);return(!Nc(t)||!Wm.has(t))&&Cn(e,"has",t),n}function V1(e){return Cn(e,"iterate",ze(e)?"length":ar),Reflect.ownKeys(e)}const Zm={get:T1,set:M1,deleteProperty:L1,has:N1,ownKeys:V1},Ym={get:D1,set(e,t){return!0},deleteProperty(e,t){return!0}},j1=It({},Zm,{get:P1,set:R1}),B1=It({},Ym,{get:F1}),Hc=e=>e,hl=e=>Reflect.getPrototypeOf(e);function Di(e,t,n=!1,s=!1){e=e.__v_raw;const r=ut(e),o=ut(t);t!==o&&!n&&Cn(r,"get",t),!n&&Cn(r,"get",o);const{has:i}=hl(r),a=s?Hc:n?Kc:ri;if(i.call(r,t))return a(e.get(t));if(i.call(r,o))return a(e.get(o));e!==r&&e.get(t)}function Fi(e,t=!1){const n=this.__v_raw,s=ut(n),r=ut(e);return e!==r&&!t&&Cn(s,"has",e),!t&&Cn(s,"has",r),e===r?n.has(e):n.has(e)||n.has(r)}function Ii(e,t=!1){return e=e.__v_raw,!t&&Cn(ut(e),"iterate",ar),Reflect.get(e,"size",e)}function $f(e){e=ut(e);const t=ut(this);return hl(t).has.call(t,e)||(t.add(e),hs(t,"add",e,e)),this}function Af(e,t){t=ut(t);const n=ut(this),{has:s,get:r}=hl(n);let o=s.call(n,e);o||(e=ut(e),o=s.call(n,e));const i=r.call(n,e);return n.set(e,t),o?si(t,i)&&hs(n,"set",e,t):hs(n,"add",e,t),this}function Of(e){const t=ut(this),{has:n,get:s}=hl(t);let r=n.call(t,e);r||(e=ut(e),r=n.call(t,e)),s&&s.call(t,e);const o=t.delete(e);return r&&hs(t,"delete",e,void 0),o}function Tf(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&hs(e,"clear",void 0,void 0),n}function Mi(e,t){return function(s,r){const o=this,i=o.__v_raw,a=ut(i),l=t?Hc:e?Kc:ri;return!e&&Cn(a,"iterate",ar),i.forEach((c,d)=>s.call(r,l(c),l(d),o))}}function Ri(e,t,n){return function(...s){const r=this.__v_raw,o=ut(r),i=Br(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,c=r[e](...s),d=n?Hc:t?Kc:ri;return!t&&Cn(o,"iterate",l?Hu:ar),{next(){const{value:h,done:f}=c.next();return f?{value:h,done:f}:{value:a?[d(h[0]),d(h[1])]:d(h),done:f}},[Symbol.iterator](){return this}}}}function ws(e){return function(...t){return e==="delete"?!1:this}}function U1(){const e={get(o){return Di(this,o)},get size(){return Ii(this)},has:Fi,add:$f,set:Af,delete:Of,clear:Tf,forEach:Mi(!1,!1)},t={get(o){return Di(this,o,!1,!0)},get size(){return Ii(this)},has:Fi,add:$f,set:Af,delete:Of,clear:Tf,forEach:Mi(!1,!0)},n={get(o){return Di(this,o,!0)},get size(){return Ii(this,!0)},has(o){return Fi.call(this,o,!0)},add:ws("add"),set:ws("set"),delete:ws("delete"),clear:ws("clear"),forEach:Mi(!0,!1)},s={get(o){return Di(this,o,!0,!0)},get size(){return Ii(this,!0)},has(o){return Fi.call(this,o,!0)},add:ws("add"),set:ws("set"),delete:ws("delete"),clear:ws("clear"),forEach:Mi(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Ri(o,!1,!1),n[o]=Ri(o,!0,!1),t[o]=Ri(o,!1,!0),s[o]=Ri(o,!0,!0)}),[e,n,t,s]}const[H1,z1,q1,G1]=U1();function ml(e,t){const n=t?e?G1:q1:e?z1:H1;return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(ft(n,r)&&r in s?n:s,r,o)}const W1={get:ml(!1,!1)},K1={get:ml(!1,!0)},Z1={get:ml(!0,!1)},Y1={get:ml(!0,!0)},Jm=new WeakMap,Xm=new WeakMap,Qm=new WeakMap,ep=new WeakMap;function J1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function X1(e){return e.__v_skip||!Object.isExtensible(e)?0:J1(v1(e))}function _r(e){return Gr(e)?e:pl(e,!1,Zm,W1,Jm)}function tp(e){return pl(e,!1,j1,K1,Xm)}function zc(e){return pl(e,!0,Ym,Z1,Qm)}function Q1(e){return pl(e,!0,B1,Y1,ep)}function pl(e,t,n,s,r){if(!Mt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=X1(e);if(i===0)return e;const a=new Proxy(e,i===2?s:n);return r.set(e,a),a}function lr(e){return Gr(e)?lr(e.__v_raw):!!(e&&e.__v_isReactive)}function Gr(e){return!!(e&&e.__v_isReadonly)}function qc(e){return!!(e&&e.__v_isShallow)}function Gc(e){return lr(e)||Gr(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Wc(e){return Ba(e,"__v_skip",!0),e}const ri=e=>Mt(e)?_r(e):e,Kc=e=>Mt(e)?zc(e):e;function Zc(e){Rs&&Hn&&(e=ut(e),Gm(e.dep||(e.dep=Uc())))}function _l(e,t){e=ut(e),e.dep&&zu(e.dep)}function Ut(e){return!!(e&&e.__v_isRef===!0)}function cs(e){return sp(e,!1)}function np(e){return sp(e,!0)}function sp(e,t){return Ut(e)?e:new eb(e,t)}class eb{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:ri(t)}get value(){return Zc(this),this._value}set value(t){t=this.__v_isShallow?t:ut(t),si(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:ri(t),_l(this))}}function tb(e){_l(e)}function Hr(e){return Ut(e)?e.value:e}const nb={get:(e,t,n)=>Hr(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ut(r)&&!Ut(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Yc(e){return lr(e)?e:new Proxy(e,nb)}class sb{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:s}=t(()=>Zc(this),()=>_l(this));this._get=n,this._set=s}get value(){return this._get()}set value(t){this._set(t)}}function rb(e){return new sb(e)}function Vo(e){const t=ze(e)?new Array(e.length):{};for(const n in e)t[n]=rp(e,n);return t}class ob{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function rp(e,t,n){const s=e[t];return Ut(s)?s:new ob(e,t,n)}class ib{constructor(t,n,s,r){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new hi(t,()=>{this._dirty||(this._dirty=!0,_l(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!r,this.__v_isReadonly=s}get value(){const t=ut(this);return Zc(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function ab(e,t,n=!1){let s,r;const o=et(e);return o?(s=e,r=qn):(s=e.get,r=e.set),new ib(s,r,o||!r,n)}const jo=[];function op(e,...t){mr();const n=jo.length?jo[jo.length-1].component:null,s=n&&n.appContext.config.warnHandler,r=lb();if(s)Xn(s,n,11,[e+t.join(""),n&&n.proxy,r.map(({vnode:o})=>`at <${Yp(n,o.type)}>`).join(`
|
|
`),r]);else{const o=[`[Vue warn]: ${e}`,...t];r.length&&o.push(`
|
|
`,...ub(r)),console.warn(...o)}pr()}function lb(){let e=jo[jo.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function ub(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
|
`],...cb(n))}),t}function cb({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${Yp(e.component,e.type,s)}`,o=">"+n;return e.props?[r,...db(e.props),o]:[r+o]}function db(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...ip(s,e[s]))}),n.length>3&&t.push(" ..."),t}function ip(e,t,n){return At(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:Ut(t)?(t=ip(e,ut(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):et(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),n?t:[`${e}=`,t])}function Xn(e,t,n,s){let r;try{r=s?e(...s):e()}catch(o){gr(o,t,n)}return r}function Sn(e,t,n,s){if(et(e)){const o=Xn(e,t,n,s);return o&&Vc(o)&&o.catch(i=>{gr(i,t,n)}),o}const r=[];for(let o=0;o<e.length;o++)r.push(Sn(e[o],t,n,s));return r}function gr(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,a=n;for(;o;){const c=o.ec;if(c){for(let d=0;d<c.length;d++)if(c[d](e,i,a)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){Xn(l,null,10,[e,i,a]);return}}fb(e,n,r,s)}function fb(e,t,n,s=!0){console.error(e)}let Ua=!1,qu=!1;const kn=[];let ls=0;const Bo=[];let Oo=null,Fr=0;const Uo=[];let $s=null,Ir=0;const ap=Promise.resolve();let Jc=null,Gu=null;function gl(e){const t=Jc||ap;return e?t.then(this?e.bind(this):e):t}function hb(e){let t=ls+1,n=kn.length;for(;t<n;){const s=t+n>>>1;oi(kn[s])<e?t=s+1:n=s}return t}function Xc(e){(!kn.length||!kn.includes(e,Ua&&e.allowRecurse?ls+1:ls))&&e!==Gu&&(e.id==null?kn.push(e):kn.splice(hb(e.id),0,e),lp())}function lp(){!Ua&&!qu&&(qu=!0,Jc=ap.then(cp))}function mb(e){const t=kn.indexOf(e);t>ls&&kn.splice(t,1)}function up(e,t,n,s){ze(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),lp()}function pb(e){up(e,Oo,Bo,Fr)}function Qc(e){up(e,$s,Uo,Ir)}function ed(e,t=null){if(Bo.length){for(Gu=t,Oo=[...new Set(Bo)],Bo.length=0,Fr=0;Fr<Oo.length;Fr++)Oo[Fr]();Oo=null,Fr=0,Gu=null,ed(e,t)}}function Ha(e){if(Uo.length){const t=[...new Set(Uo)];if(Uo.length=0,$s){$s.push(...t);return}for($s=t,$s.sort((n,s)=>oi(n)-oi(s)),Ir=0;Ir<$s.length;Ir++)$s[Ir]();$s=null,Ir=0}}const oi=e=>e.id==null?1/0:e.id;function cp(e){qu=!1,Ua=!0,ed(e),kn.sort((n,s)=>oi(n)-oi(s));const t=qn;try{for(ls=0;ls<kn.length;ls++){const n=kn[ls];n&&n.active!==!1&&Xn(n,null,14)}}finally{ls=0,kn.length=0,Ha(),Ua=!1,Jc=null,(kn.length||Bo.length||Uo.length)&&cp(e)}}let Mr,Li=[];function dp(e,t){var n,s;Mr=e,Mr?(Mr.enabled=!0,Li.forEach(({event:r,args:o})=>Mr.emit(r,...o)),Li=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{dp(o,t)}),setTimeout(()=>{Mr||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Li=[])},3e3)):Li=[]}function _b(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||gt;let r=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in s){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:h,trim:f}=s[d]||gt;f?r=n.map(m=>m.trim()):h&&(r=n.map(Vs))}let a,l=s[a=No(t)]||s[a=No(En(t))];!l&&o&&(l=s[a=No(Jn(t))]),l&&Sn(l,e,6,r);const c=s[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Sn(c,e,6,r)}}function fp(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!et(e)){const l=c=>{const d=fp(c,t,!0);d&&(a=!0,It(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(s.set(e,null),null):(ze(o)?o.forEach(l=>i[l]=null):It(i,o),s.set(e,i),i)}function vl(e,t){return!e||!di(t)?!1:(t=t.slice(2).replace(/Once$/,""),ft(e,t[0].toLowerCase()+t.slice(1))||ft(e,Jn(t))||ft(e,t))}let Qt=null,yl=null;function ii(e){const t=Qt;return Qt=e,yl=e&&e.type.__scopeId||null,t}function gb(e){yl=e}function vb(){yl=null}const yb=e=>T;function T(e,t=Qt,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Ju(-1);const o=ii(t),i=e(...r);return ii(o),s._d&&Ju(1),i};return s._n=!0,s._c=!0,s._d=!0,s}function Ta(e){const{type:t,vnode:n,proxy:s,withProxy:r,props:o,propsOptions:[i],slots:a,attrs:l,emit:c,render:d,renderCache:h,data:f,setupState:m,ctx:p,inheritAttrs:_}=e;let g,y;const b=ii(e);try{if(n.shapeFlag&4){const x=r||s;g=bn(d.call(x,x,h,o,m,f,p)),y=l}else{const x=t;g=bn(x.length>1?x(o,{attrs:l,slots:a,emit:c}):x(o,null)),y=t.props?l:wb(l)}}catch(x){qo.length=0,gr(x,e,1),g=w(nn)}let S=g;if(y&&_!==!1){const x=Object.keys(y),{shapeFlag:C}=S;x.length&&C&7&&(i&&x.some(Rc)&&(y=kb(y,i)),S=ms(S,y))}return n.dirs&&(S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),g=S,ii(b),g}function bb(e){let t;for(let n=0;n<e.length;n++){const s=e[n];if(Bs(s)){if(s.type!==nn||s.children==="v-if"){if(t)return;t=s}}else return}return t}const wb=e=>{let t;for(const n in e)(n==="class"||n==="style"||di(n))&&((t||(t={}))[n]=e[n]);return t},kb=(e,t)=>{const n={};for(const s in e)(!Rc(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Sb(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:a,patchFlag:l}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return s?Pf(s,i,c):!!i;if(l&8){const d=t.dynamicProps;for(let h=0;h<d.length;h++){const f=d[h];if(i[f]!==s[f]&&!vl(c,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?Pf(s,i,c):!0:!!i;return!1}function Pf(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!vl(n,o))return!0}return!1}function td({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const xb=e=>e.__isSuspense,Eb={name:"Suspense",__isSuspense:!0,process(e,t,n,s,r,o,i,a,l,c){e==null?$b(t,n,s,r,o,i,a,l,c):Ab(e,t,n,s,r,i,a,l,c)},hydrate:Ob,create:nd,normalize:Tb},Cb=Eb;function ai(e,t){const n=e.props&&e.props[t];et(n)&&n()}function $b(e,t,n,s,r,o,i,a,l){const{p:c,o:{createElement:d}}=l,h=d("div"),f=e.suspense=nd(e,r,s,t,h,n,o,i,a,l);c(null,f.pendingBranch=e.ssContent,h,null,s,f,o,i),f.deps>0?(ai(e,"onPending"),ai(e,"onFallback"),c(null,e.ssFallback,t,n,s,null,o,i),zr(f,e.ssFallback)):f.resolve()}function Ab(e,t,n,s,r,o,i,a,{p:l,um:c,o:{createElement:d}}){const h=t.suspense=e.suspense;h.vnode=t,t.el=e.el;const f=t.ssContent,m=t.ssFallback,{activeBranch:p,pendingBranch:_,isInFallback:g,isHydrating:y}=h;if(_)h.pendingBranch=f,Yn(f,_)?(l(_,f,h.hiddenContainer,null,r,h,o,i,a),h.deps<=0?h.resolve():g&&(l(p,m,n,s,r,null,o,i,a),zr(h,m))):(h.pendingId++,y?(h.isHydrating=!1,h.activeBranch=_):c(_,r,h),h.deps=0,h.effects.length=0,h.hiddenContainer=d("div"),g?(l(null,f,h.hiddenContainer,null,r,h,o,i,a),h.deps<=0?h.resolve():(l(p,m,n,s,r,null,o,i,a),zr(h,m))):p&&Yn(f,p)?(l(p,f,n,s,r,h,o,i,a),h.resolve(!0)):(l(null,f,h.hiddenContainer,null,r,h,o,i,a),h.deps<=0&&h.resolve()));else if(p&&Yn(f,p))l(p,f,n,s,r,h,o,i,a),zr(h,f);else if(ai(t,"onPending"),h.pendingBranch=f,h.pendingId++,l(null,f,h.hiddenContainer,null,r,h,o,i,a),h.deps<=0)h.resolve();else{const{timeout:b,pendingId:S}=h;b>0?setTimeout(()=>{h.pendingId===S&&h.fallback(m)},b):b===0&&h.fallback(m)}}function nd(e,t,n,s,r,o,i,a,l,c,d=!1){const{p:h,m:f,um:m,n:p,o:{parentNode:_,remove:g}}=c,y=Vs(e.props&&e.props.timeout),b={vnode:e,parent:t,parentComponent:n,isSVG:i,container:s,hiddenContainer:r,anchor:o,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(S=!1){const{vnode:x,activeBranch:C,pendingBranch:A,pendingId:M,effects:j,parentComponent:O,container:V}=b;if(b.isHydrating)b.isHydrating=!1;else if(!S){const B=C&&A.transition&&A.transition.mode==="out-in";B&&(C.transition.afterLeave=()=>{M===b.pendingId&&f(A,V,W,0)});let{anchor:W}=b;C&&(W=p(C),m(C,O,b,!0)),B||f(A,V,W,0)}zr(b,A),b.pendingBranch=null,b.isInFallback=!1;let q=b.parent,F=!1;for(;q;){if(q.pendingBranch){q.effects.push(...j),F=!0;break}q=q.parent}F||Qc(j),b.effects=[],ai(x,"onResolve")},fallback(S){if(!b.pendingBranch)return;const{vnode:x,activeBranch:C,parentComponent:A,container:M,isSVG:j}=b;ai(x,"onFallback");const O=p(C),V=()=>{!b.isInFallback||(h(null,S,M,O,A,null,j,a,l),zr(b,S))},q=S.transition&&S.transition.mode==="out-in";q&&(C.transition.afterLeave=V),b.isInFallback=!0,m(C,A,null,!0),q||V()},move(S,x,C){b.activeBranch&&f(b.activeBranch,S,x,C),b.container=S},next(){return b.activeBranch&&p(b.activeBranch)},registerDep(S,x){const C=!!b.pendingBranch;C&&b.deps++;const A=S.vnode.el;S.asyncDep.catch(M=>{gr(M,S,0)}).then(M=>{if(S.isUnmounted||b.isUnmounted||b.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:j}=S;ec(S,M,!1),A&&(j.el=A);const O=!A&&S.subTree.el;x(S,j,_(A||S.subTree.el),A?null:p(S.subTree),b,i,l),O&&g(O),td(S,j.el),C&&--b.deps===0&&b.resolve()})},unmount(S,x){b.isUnmounted=!0,b.activeBranch&&m(b.activeBranch,n,S,x),b.pendingBranch&&m(b.pendingBranch,n,S,x)}};return b}function Ob(e,t,n,s,r,o,i,a,l){const c=t.suspense=nd(t,s,n,e.parentNode,document.createElement("div"),null,r,o,i,a,!0),d=l(e,c.pendingBranch=t.ssContent,n,c,o,i);return c.deps===0&&c.resolve(),d}function Tb(e){const{shapeFlag:t,children:n}=e,s=t&32;e.ssContent=Df(s?n.default:n),e.ssFallback=s?Df(n.fallback):w(nn)}function Df(e){let t;if(et(e)){const n=Yr&&e._c;n&&(e._d=!1,E()),e=e(),n&&(e._d=!0,t=es,Vp())}return ze(e)&&(e=bb(e)),e=bn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function hp(e,t){t&&t.pendingBranch?ze(e)?t.effects.push(...e):t.effects.push(e):Qc(e)}function zr(e,t){e.activeBranch=t;const{vnode:n,parentComponent:s}=e,r=n.el=t.el;s&&s.subTree===n&&(s.vnode.el=r,td(s,r))}function Ho(e,t){if(Gt){let n=Gt.provides;const s=Gt.parent&&Gt.parent.provides;s===n&&(n=Gt.provides=Object.create(s)),n[e]=t}}function Qn(e,t,n=!1){const s=Gt||Qt;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&&et(t)?t.call(s.proxy):t}}function Pb(e,t){return mi(e,null,t)}function mp(e,t){return mi(e,null,{flush:"post"})}function Db(e,t){return mi(e,null,{flush:"sync"})}const Ff={};function jt(e,t,n){return mi(e,t,n)}function mi(e,t,{immediate:n,deep:s,flush:r,onTrack:o,onTrigger:i}=gt){const a=Gt;let l,c=!1,d=!1;if(Ut(e)?(l=()=>e.value,c=qc(e)):lr(e)?(l=()=>e,s=!0):ze(e)?(d=!0,c=e.some(lr),l=()=>e.map(y=>{if(Ut(y))return y.value;if(lr(y))return ir(y);if(et(y))return Xn(y,a,2)})):et(e)?t?l=()=>Xn(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return h&&h(),Sn(e,a,3,[f])}:l=qn,t&&s){const y=l;l=()=>ir(y())}let h,f=y=>{h=g.onStop=()=>{Xn(y,a,4)}};if(Jr)return f=qn,t?n&&Sn(t,a,3,[l(),d?[]:void 0,f]):l(),qn;let m=d?[]:Ff;const p=()=>{if(!!g.active)if(t){const y=g.run();(s||c||(d?y.some((b,S)=>si(b,m[S])):si(y,m)))&&(h&&h(),Sn(t,a,3,[y,m===Ff?void 0:m,f]),m=y)}else g.run()};p.allowRecurse=!!t;let _;r==="sync"?_=p:r==="post"?_=()=>Zt(p,a&&a.suspense):_=()=>{!a||a.isMounted?pb(p):p()};const g=new hi(l,_);return t?n?p():m=g.run():r==="post"?Zt(g.run.bind(g),a&&a.suspense):g.run(),()=>{g.stop(),a&&a.scope&&Lc(a.scope.effects,g)}}function Fb(e,t,n){const s=this.proxy,r=At(e)?e.includes(".")?pp(s,e):()=>s[e]:e.bind(s,s);let o;et(t)?o=t:(o=t.handler,n=t);const i=Gt;Us(this);const a=mi(r,o.bind(s),n);return i?Us(i):Ls(),a}function pp(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}function ir(e,t){if(!Mt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),Ut(e))ir(e.value,t);else if(ze(e))for(let n=0;n<e.length;n++)ir(e[n],t);else if(hr(e)||Br(e))e.forEach(n=>{ir(n,t)});else if(Bm(e))for(const n in e)ir(e[n],t);return e}function sd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ao(()=>{e.isMounted=!0}),Sl(()=>{e.isUnmounting=!0}),e}const On=[Function,Array],Ib={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:On,onEnter:On,onAfterEnter:On,onEnterCancelled:On,onBeforeLeave:On,onLeave:On,onAfterLeave:On,onLeaveCancelled:On,onBeforeAppear:On,onAppear:On,onAfterAppear:On,onAppearCancelled:On},setup(e,{slots:t}){const n=Gs(),s=sd();let r;return()=>{const o=t.default&&bl(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const _ of o)if(_.type!==nn){i=_;break}}const a=ut(e),{mode:l}=a;if(s.isLeaving)return ru(i);const c=If(i);if(!c)return ru(i);const d=Wr(c,a,s,n);fr(c,d);const h=n.subTree,f=h&&If(h);let m=!1;const{getTransitionKey:p}=c.type;if(p){const _=p();r===void 0?r=_:_!==r&&(r=_,m=!0)}if(f&&f.type!==nn&&(!Yn(c,f)||m)){const _=Wr(f,a,s,n);if(fr(f,_),l==="out-in")return s.isLeaving=!0,_.afterLeave=()=>{s.isLeaving=!1,n.update()},ru(i);l==="in-out"&&c.type!==nn&&(_.delayLeave=(g,y,b)=>{const S=_p(s,f);S[String(f.key)]=f,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=b})}return i}}},rd=Ib;function _p(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Wr(e,t,n,s){const{appear:r,mode:o,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:c,onEnterCancelled:d,onBeforeLeave:h,onLeave:f,onAfterLeave:m,onLeaveCancelled:p,onBeforeAppear:_,onAppear:g,onAfterAppear:y,onAppearCancelled:b}=t,S=String(e.key),x=_p(n,e),C=(M,j)=>{M&&Sn(M,s,9,j)},A={mode:o,persisted:i,beforeEnter(M){let j=a;if(!n.isMounted)if(r)j=_||a;else return;M._leaveCb&&M._leaveCb(!0);const O=x[S];O&&Yn(e,O)&&O.el._leaveCb&&O.el._leaveCb(),C(j,[M])},enter(M){let j=l,O=c,V=d;if(!n.isMounted)if(r)j=g||l,O=y||c,V=b||d;else return;let q=!1;const F=M._enterCb=B=>{q||(q=!0,B?C(V,[M]):C(O,[M]),A.delayedLeave&&A.delayedLeave(),M._enterCb=void 0)};j?(j(M,F),j.length<=1&&F()):F()},leave(M,j){const O=String(e.key);if(M._enterCb&&M._enterCb(!0),n.isUnmounting)return j();C(h,[M]);let V=!1;const q=M._leaveCb=F=>{V||(V=!0,j(),F?C(p,[M]):C(m,[M]),M._leaveCb=void 0,x[O]===e&&delete x[O])};x[O]=e,f?(f(M,q),f.length<=1&&q()):q()},clone(M){return Wr(M,t,n,s)}};return A}function ru(e){if(_i(e))return e=ms(e),e.children=null,e}function If(e){return _i(e)?e.children?e.children[0]:void 0:e}function fr(e,t){e.shapeFlag&6&&e.component?fr(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function bl(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Ke?(i.patchFlag&128&&r++,s=s.concat(bl(i.children,t,a))):(t||i.type!==nn)&&s.push(a!=null?ms(i,{key:a}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}function pi(e){return et(e)?{setup:e,name:e.name}:e}const Kr=e=>!!e.type.__asyncLoader;function Mb(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,timeout:o,suspensible:i=!0,onError:a}=e;let l=null,c,d=0;const h=()=>(d++,l=null,f()),f=()=>{let m;return l||(m=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((_,g)=>{a(p,()=>_(h()),()=>g(p),d+1)});throw p}).then(p=>m!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),c=p,p)))};return pi({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return c},setup(){const m=Gt;if(c)return()=>ou(c,m);const p=b=>{l=null,gr(b,m,13,!s)};if(i&&m.suspense||Jr)return f().then(b=>()=>ou(b,m)).catch(b=>(p(b),()=>s?w(s,{error:b}):null));const _=cs(!1),g=cs(),y=cs(!!r);return r&&setTimeout(()=>{y.value=!1},r),o!=null&&setTimeout(()=>{if(!_.value&&!g.value){const b=new Error(`Async component timed out after ${o}ms.`);p(b),g.value=b}},o),f().then(()=>{_.value=!0,m.parent&&_i(m.parent.vnode)&&Xc(m.parent.update)}).catch(b=>{p(b),g.value=b}),()=>{if(_.value&&c)return ou(c,m);if(g.value&&s)return w(s,{error:g.value});if(n&&!y.value)return w(n)}}})}function ou(e,{vnode:{ref:t,props:n,children:s}}){const r=w(e,n,s);return r.ref=t,r}const _i=e=>e.type.__isKeepAlive,Rb={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=Gs(),s=n.ctx;if(!s.renderer)return t.default;const r=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:c,um:d,o:{createElement:h}}}=s,f=h("div");s.activate=(b,S,x,C,A)=>{const M=b.component;c(b,S,x,0,a),l(M.vnode,b,S,x,M,a,C,b.slotScopeIds,A),Zt(()=>{M.isDeactivated=!1,M.a&&Ur(M.a);const j=b.props&&b.props.onVnodeMounted;j&&fn(j,M.parent,b)},a)},s.deactivate=b=>{const S=b.component;c(b,f,null,1,a),Zt(()=>{S.da&&Ur(S.da);const x=b.props&&b.props.onVnodeUnmounted;x&&fn(x,S.parent,b),S.isDeactivated=!0},a)};function m(b){iu(b),d(b,n,a,!0)}function p(b){r.forEach((S,x)=>{const C=Ka(S.type);C&&(!b||!b(C))&&_(x)})}function _(b){const S=r.get(b);!i||S.type!==i.type?m(S):i&&iu(i),r.delete(b),o.delete(b)}jt(()=>[e.include,e.exclude],([b,S])=>{b&&p(x=>To(b,x)),S&&p(x=>!To(S,x))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&r.set(g,au(n.subTree))};return ao(y),kl(y),Sl(()=>{r.forEach(b=>{const{subTree:S,suspense:x}=n,C=au(S);if(b.type===C.type){iu(C);const A=C.component.da;A&&Zt(A,x);return}m(b)})}),()=>{if(g=null,!t.default)return null;const b=t.default(),S=b[0];if(b.length>1)return i=null,b;if(!Bs(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return i=null,S;let x=au(S);const C=x.type,A=Ka(Kr(x)?x.type.__asyncResolved||{}:C),{include:M,exclude:j,max:O}=e;if(M&&(!A||!To(M,A))||j&&A&&To(j,A))return i=x,S;const V=x.key==null?C:x.key,q=r.get(V);return x.el&&(x=ms(x),S.shapeFlag&128&&(S.ssContent=x)),g=V,q?(x.el=q.el,x.component=q.component,x.transition&&fr(x,x.transition),x.shapeFlag|=512,o.delete(V),o.add(V)):(o.add(V),O&&o.size>parseInt(O,10)&&_(o.values().next().value)),x.shapeFlag|=256,i=x,S}}},Lb=Rb;function To(e,t){return ze(e)?e.some(n=>To(n,t)):At(e)?e.split(",").includes(t):e.test?e.test(t):!1}function gp(e,t){yp(e,"a",t)}function vp(e,t){yp(e,"da",t)}function yp(e,t,n=Gt){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(wl(t,s,n),n){let r=n.parent;for(;r&&r.parent;)_i(r.parent.vnode)&&Nb(s,t,n,r),r=r.parent}}function Nb(e,t,n,s){const r=wl(t,e,s,!0);gi(()=>{Lc(s[t],r)},n)}function iu(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function au(e){return e.shapeFlag&128?e.ssContent:e}function wl(e,t,n=Gt,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;mr(),Us(n);const a=Sn(t,n,e,i);return Ls(),pr(),a});return s?r.unshift(o):r.push(o),o}}const gs=e=>(t,n=Gt)=>(!Jr||e==="sp")&&wl(e,t,n),bp=gs("bm"),ao=gs("m"),wp=gs("bu"),kl=gs("u"),Sl=gs("bum"),gi=gs("um"),kp=gs("sp"),Sp=gs("rtg"),xp=gs("rtc");function Ep(e,t=Gt){wl("ec",e,t)}let Wu=!0;function Vb(e){const t=$p(e),n=e.proxy,s=e.ctx;Wu=!1,t.beforeCreate&&Mf(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:l,inject:c,created:d,beforeMount:h,mounted:f,beforeUpdate:m,updated:p,activated:_,deactivated:g,beforeDestroy:y,beforeUnmount:b,destroyed:S,unmounted:x,render:C,renderTracked:A,renderTriggered:M,errorCaptured:j,serverPrefetch:O,expose:V,inheritAttrs:q,components:F,directives:B,filters:W}=t;if(c&&jb(c,s,null,e.appContext.config.unwrapInjectedRef),i)for(const ae in i){const ve=i[ae];et(ve)&&(s[ae]=ve.bind(n))}if(r){const ae=r.call(n,n);Mt(ae)&&(e.data=_r(ae))}if(Wu=!0,o)for(const ae in o){const ve=o[ae],Le=et(ve)?ve.bind(n,n):et(ve.get)?ve.get.bind(n,n):qn,qe=!et(ve)&&et(ve.set)?ve.set.bind(n):qn,me=Wt({get:Le,set:qe});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>me.value,set:Y=>me.value=Y})}if(a)for(const ae in a)Cp(a[ae],s,n,ae);if(l){const ae=et(l)?l.call(n):l;Reflect.ownKeys(ae).forEach(ve=>{Ho(ve,ae[ve])})}d&&Mf(d,e,"c");function te(ae,ve){ze(ve)?ve.forEach(Le=>ae(Le.bind(n))):ve&&ae(ve.bind(n))}if(te(bp,h),te(ao,f),te(wp,m),te(kl,p),te(gp,_),te(vp,g),te(Ep,j),te(xp,A),te(Sp,M),te(Sl,b),te(gi,x),te(kp,O),ze(V))if(V.length){const ae=e.exposed||(e.exposed={});V.forEach(ve=>{Object.defineProperty(ae,ve,{get:()=>n[ve],set:Le=>n[ve]=Le})})}else e.exposed||(e.exposed={});C&&e.render===qn&&(e.render=C),q!=null&&(e.inheritAttrs=q),F&&(e.components=F),B&&(e.directives=B)}function jb(e,t,n=qn,s=!1){ze(e)&&(e=Ku(e));for(const r in e){const o=e[r];let i;Mt(o)?"default"in o?i=Qn(o.from||r,o.default,!0):i=Qn(o.from||r):i=Qn(o),Ut(i)&&s?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function Mf(e,t,n){Sn(ze(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cp(e,t,n,s){const r=s.includes(".")?pp(n,s):()=>n[s];if(At(e)){const o=t[e];et(o)&&jt(r,o)}else if(et(e))jt(r,e.bind(n));else if(Mt(e))if(ze(e))e.forEach(o=>Cp(o,t,n,s));else{const o=et(e.handler)?e.handler.bind(n):t[e.handler];et(o)&&jt(r,o,e)}}function $p(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!r.length&&!n&&!s?l=t:(l={},r.length&&r.forEach(c=>za(l,c,i,!0)),za(l,t,i)),o.set(t,l),l}function za(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&za(e,o,n,!0),r&&r.forEach(i=>za(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=Bb[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const Bb={data:Rf,props:tr,emits:tr,methods:tr,computed:tr,beforeCreate:rn,created:rn,beforeMount:rn,mounted:rn,beforeUpdate:rn,updated:rn,beforeDestroy:rn,beforeUnmount:rn,destroyed:rn,unmounted:rn,activated:rn,deactivated:rn,errorCaptured:rn,serverPrefetch:rn,components:tr,directives:tr,watch:Hb,provide:Rf,inject:Ub};function Rf(e,t){return t?e?function(){return It(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function Ub(e,t){return tr(Ku(e),Ku(t))}function Ku(e){if(ze(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function rn(e,t){return e?[...new Set([].concat(e,t))]:t}function tr(e,t){return e?It(It(Object.create(null),e),t):t}function Hb(e,t){if(!e)return t;if(!t)return e;const n=It(Object.create(null),e);for(const s in t)n[s]=rn(e[s],t[s]);return n}function zb(e,t,n,s=!1){const r={},o={};Ba(o,El,1),e.propsDefaults=Object.create(null),Ap(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:tp(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function qb(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=ut(r),[l]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h<d.length;h++){let f=d[h];if(vl(e.emitsOptions,f))continue;const m=t[f];if(l)if(ft(o,f))m!==o[f]&&(o[f]=m,c=!0);else{const p=En(f);r[p]=Zu(l,a,p,m,e,!1)}else m!==o[f]&&(o[f]=m,c=!0)}}}else{Ap(e,t,r,o)&&(c=!0);let d;for(const h in a)(!t||!ft(t,h)&&((d=Jn(h))===h||!ft(t,d)))&&(l?n&&(n[h]!==void 0||n[d]!==void 0)&&(r[h]=Zu(l,a,h,void 0,e,!0)):delete r[h]);if(o!==a)for(const h in o)(!t||!ft(t,h)&&!0)&&(delete o[h],c=!0)}c&&hs(e,"set","$attrs")}function Ap(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Lo(l))continue;const c=t[l];let d;r&&ft(r,d=En(l))?!o||!o.includes(d)?n[d]=c:(a||(a={}))[d]=c:vl(e.emitsOptions,l)||(!(l in s)||c!==s[l])&&(s[l]=c,i=!0)}if(o){const l=ut(n),c=a||gt;for(let d=0;d<o.length;d++){const h=o[d];n[h]=Zu(r,l,h,c[h],e,!ft(c,h))}}return i}function Zu(e,t,n,s,r,o){const i=e[n];if(i!=null){const a=ft(i,"default");if(a&&s===void 0){const l=i.default;if(i.type!==Function&&et(l)){const{propsDefaults:c}=r;n in c?s=c[n]:(Us(r),s=c[n]=l.call(null,t),Ls())}else s=l}i[0]&&(o&&!a?s=!1:i[1]&&(s===""||s===Jn(n))&&(s=!0))}return s}function Op(e,t,n=!1){const s=t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},a=[];let l=!1;if(!et(e)){const d=h=>{l=!0;const[f,m]=Op(h,t,!0);It(i,f),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return s.set(e,jr),jr;if(ze(o))for(let d=0;d<o.length;d++){const h=En(o[d]);Lf(h)&&(i[h]=gt)}else if(o)for(const d in o){const h=En(d);if(Lf(h)){const f=o[d],m=i[h]=ze(f)||et(f)?{type:f}:f;if(m){const p=jf(Boolean,m.type),_=jf(String,m.type);m[0]=p>-1,m[1]=_<0||p<_,(p>-1||ft(m,"default"))&&a.push(h)}}}const c=[i,a];return s.set(e,c),c}function Lf(e){return e[0]!=="$"}function Nf(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Vf(e,t){return Nf(e)===Nf(t)}function jf(e,t){return ze(t)?t.findIndex(n=>Vf(n,e)):et(t)&&Vf(t,e)?0:-1}const Tp=e=>e[0]==="_"||e==="$stable",od=e=>ze(e)?e.map(bn):[bn(e)],Gb=(e,t,n)=>{const s=T((...r)=>od(t(...r)),n);return s._c=!1,s},Pp=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Tp(r))continue;const o=e[r];if(et(o))t[r]=Gb(r,o,s);else if(o!=null){const i=od(o);t[r]=()=>i}}},Dp=(e,t)=>{const n=od(t);e.slots.default=()=>n},Wb=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),Ba(t,"_",n)):Pp(t,e.slots={})}else e.slots={},t&&Dp(e,t);Ba(e.slots,El,1)},Kb=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=gt;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(It(r,t),!n&&a===1&&delete r._):(o=!t.$stable,Pp(t,r)),i=t}else t&&(Dp(e,t),i={default:1});if(o)for(const a in r)!Tp(a)&&!(a in i)&&delete r[a]};function wt(e,t){const n=Qt;if(n===null)return e;const s=Cl(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,l,c=gt]=t[o];et(i)&&(i={mounted:i,updated:i}),i.deep&&ir(a),r.push({dir:i,instance:s,value:a,oldValue:void 0,arg:l,modifiers:c})}return e}function Zn(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let l=a.dir[s];l&&(mr(),Sn(l,n,8,[e.el,a,e,t]),pr())}}function Fp(){return{app:null,config:{isNativeTag:p1,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 Zb=0;function Yb(e,t){return function(s,r=null){et(s)||(s=Object.assign({},s)),r!=null&&!Mt(r)&&(r=null);const o=Fp(),i=new Set;let a=!1;const l=o.app={_uid:Zb++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:e_,get config(){return o.config},set config(c){},use(c,...d){return i.has(c)||(c&&et(c.install)?(i.add(c),c.install(l,...d)):et(c)&&(i.add(c),c(l,...d))),l},mixin(c){return o.mixins.includes(c)||o.mixins.push(c),l},component(c,d){return d?(o.components[c]=d,l):o.components[c]},directive(c,d){return d?(o.directives[c]=d,l):o.directives[c]},mount(c,d,h){if(!a){const f=w(s,r);return f.appContext=o,d&&t?t(f,c):e(f,c,h),a=!0,l._container=c,c.__vue_app__=l,Cl(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(c,d){return o.provides[c]=d,l}};return l}}function qa(e,t,n,s,r=!1){if(ze(e)){e.forEach((f,m)=>qa(f,t&&(ze(t)?t[m]:t),n,s,r));return}if(Kr(s)&&!r)return;const o=s.shapeFlag&4?Cl(s.component)||s.component.proxy:s.el,i=r?null:o,{i:a,r:l}=e,c=t&&t.r,d=a.refs===gt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(At(c)?(d[c]=null,ft(h,c)&&(h[c]=null)):Ut(c)&&(c.value=null)),et(l))Xn(l,a,12,[i,d]);else{const f=At(l),m=Ut(l);if(f||m){const p=()=>{if(e.f){const _=f?d[l]:l.value;r?ze(_)&&Lc(_,o):ze(_)?_.includes(o)||_.push(o):f?(d[l]=[o],ft(h,l)&&(h[l]=d[l])):(l.value=[o],e.k&&(d[e.k]=l.value))}else f?(d[l]=i,ft(h,l)&&(h[l]=i)):Ut(l)&&(l.value=i,e.k&&(d[e.k]=i))};i?(p.id=-1,Zt(p,n)):p()}}}let ks=!1;const Ni=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",lu=e=>e.nodeType===8;function Jb(e){const{mt:t,p:n,o:{patchProp:s,nextSibling:r,parentNode:o,remove:i,insert:a,createComment:l}}=e,c=(g,y)=>{if(!y.hasChildNodes()){n(null,g,y),Ha();return}ks=!1,d(y.firstChild,g,null,null,null),Ha(),ks&&console.error("Hydration completed but contains mismatches.")},d=(g,y,b,S,x,C=!1)=>{const A=lu(g)&&g.data==="[",M=()=>p(g,y,b,S,x,A),{type:j,ref:O,shapeFlag:V}=y,q=g.nodeType;y.el=g;let F=null;switch(j){case Zr:q!==3?F=M():(g.data!==y.children&&(ks=!0,g.data=y.children),F=r(g));break;case nn:q!==8||A?F=M():F=r(g);break;case ur:if(q!==1)F=M();else{F=g;const B=!y.children.length;for(let W=0;W<y.staticCount;W++)B&&(y.children+=F.outerHTML),W===y.staticCount-1&&(y.anchor=F),F=r(F);return F}break;case Ke:A?F=m(g,y,b,S,x,C):F=M();break;default:if(V&1)q!==1||y.type.toLowerCase()!==g.tagName.toLowerCase()?F=M():F=h(g,y,b,S,x,C);else if(V&6){y.slotScopeIds=x;const B=o(g);if(t(y,B,null,b,S,Ni(B),C),F=A?_(g):r(g),Kr(y)){let W;A?(W=w(Ke),W.anchor=F?F.previousSibling:B.lastChild):W=g.nodeType===3?$e(""):w("div"),W.el=g,y.component.subTree=W}}else V&64?q!==8?F=M():F=y.type.hydrate(g,y,b,S,x,C,e,f):V&128&&(F=y.type.hydrate(g,y,b,S,Ni(o(g)),x,C,e,d))}return O!=null&&qa(O,null,S,y),F},h=(g,y,b,S,x,C)=>{C=C||!!y.dynamicChildren;const{type:A,props:M,patchFlag:j,shapeFlag:O,dirs:V}=y,q=A==="input"&&V||A==="option";if(q||j!==-1){if(V&&Zn(y,null,b,"created"),M)if(q||!C||j&48)for(const B in M)(q&&B.endsWith("value")||di(B)&&!Lo(B))&&s(g,B,null,M[B],!1,void 0,b);else M.onClick&&s(g,"onClick",null,M.onClick,!1,void 0,b);let F;if((F=M&&M.onVnodeBeforeMount)&&fn(F,b,y),V&&Zn(y,null,b,"beforeMount"),((F=M&&M.onVnodeMounted)||V)&&hp(()=>{F&&fn(F,b,y),V&&Zn(y,null,b,"mounted")},S),O&16&&!(M&&(M.innerHTML||M.textContent))){let B=f(g.firstChild,y,g,b,S,x,C);for(;B;){ks=!0;const W=B;B=B.nextSibling,i(W)}}else O&8&&g.textContent!==y.children&&(ks=!0,g.textContent=y.children)}return g.nextSibling},f=(g,y,b,S,x,C,A)=>{A=A||!!y.dynamicChildren;const M=y.children,j=M.length;for(let O=0;O<j;O++){const V=A?M[O]:M[O]=bn(M[O]);if(g)g=d(g,V,S,x,C,A);else{if(V.type===Zr&&!V.children)continue;ks=!0,n(null,V,b,null,S,x,Ni(b),C)}}return g},m=(g,y,b,S,x,C)=>{const{slotScopeIds:A}=y;A&&(x=x?x.concat(A):A);const M=o(g),j=f(r(g),y,M,b,S,x,C);return j&&lu(j)&&j.data==="]"?r(y.anchor=j):(ks=!0,a(y.anchor=l("]"),M,j),j)},p=(g,y,b,S,x,C)=>{if(ks=!0,y.el=null,C){const j=_(g);for(;;){const O=r(g);if(O&&O!==j)i(O);else break}}const A=r(g),M=o(g);return i(g),n(null,y,M,A,b,S,Ni(M),x),A},_=g=>{let y=0;for(;g;)if(g=r(g),g&&lu(g)&&(g.data==="["&&y++,g.data==="]")){if(y===0)return r(g);y--}return g};return[c,d]}const Zt=hp;function Ip(e){return Rp(e)}function Mp(e){return Rp(e,Jb)}function Rp(e,t){const n=w1();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:a,createComment:l,setText:c,setElementText:d,parentNode:h,nextSibling:f,setScopeId:m=qn,cloneNode:p,insertStaticContent:_}=e,g=($,L,K,oe=null,le=null,ye=null,ke=!1,he=null,pe=!!L.dynamicChildren)=>{if($===L)return;$&&!Yn($,L)&&(oe=be($),ce($,le,ye,!0),$=null),L.patchFlag===-2&&(pe=!1,L.dynamicChildren=null);const{type:fe,ref:Ne,shapeFlag:Ce}=L;switch(fe){case Zr:y($,L,K,oe);break;case nn:b($,L,K,oe);break;case ur:$==null&&S(L,K,oe,ke);break;case Ke:B($,L,K,oe,le,ye,ke,he,pe);break;default:Ce&1?A($,L,K,oe,le,ye,ke,he,pe):Ce&6?W($,L,K,oe,le,ye,ke,he,pe):(Ce&64||Ce&128)&&fe.process($,L,K,oe,le,ye,ke,he,pe,Me)}Ne!=null&&le&&qa(Ne,$&&$.ref,ye,L||$,!L)},y=($,L,K,oe)=>{if($==null)s(L.el=a(L.children),K,oe);else{const le=L.el=$.el;L.children!==$.children&&c(le,L.children)}},b=($,L,K,oe)=>{$==null?s(L.el=l(L.children||""),K,oe):L.el=$.el},S=($,L,K,oe)=>{[$.el,$.anchor]=_($.children,L,K,oe,$.el,$.anchor)},x=({el:$,anchor:L},K,oe)=>{let le;for(;$&&$!==L;)le=f($),s($,K,oe),$=le;s(L,K,oe)},C=({el:$,anchor:L})=>{let K;for(;$&&$!==L;)K=f($),r($),$=K;r(L)},A=($,L,K,oe,le,ye,ke,he,pe)=>{ke=ke||L.type==="svg",$==null?M(L,K,oe,le,ye,ke,he,pe):V($,L,le,ye,ke,he,pe)},M=($,L,K,oe,le,ye,ke,he)=>{let pe,fe;const{type:Ne,props:Ce,shapeFlag:Re,transition:He,patchFlag:Je,dirs:st}=$;if($.el&&p!==void 0&&Je===-1)pe=$.el=p($.el);else{if(pe=$.el=i($.type,ye,Ce&&Ce.is,Ce),Re&8?d(pe,$.children):Re&16&&O($.children,pe,null,oe,le,ye&&Ne!=="foreignObject",ke,he),st&&Zn($,null,oe,"created"),Ce){for(const v in Ce)v!=="value"&&!Lo(v)&&o(pe,v,null,Ce[v],ye,$.children,oe,le,ne);"value"in Ce&&o(pe,"value",null,Ce.value),(fe=Ce.onVnodeBeforeMount)&&fn(fe,oe,$)}j(pe,$,$.scopeId,ke,oe)}st&&Zn($,null,oe,"beforeMount");const k=(!le||le&&!le.pendingBranch)&&He&&!He.persisted;k&&He.beforeEnter(pe),s(pe,L,K),((fe=Ce&&Ce.onVnodeMounted)||k||st)&&Zt(()=>{fe&&fn(fe,oe,$),k&&He.enter(pe),st&&Zn($,null,oe,"mounted")},le)},j=($,L,K,oe,le)=>{if(K&&m($,K),oe)for(let ye=0;ye<oe.length;ye++)m($,oe[ye]);if(le){let ye=le.subTree;if(L===ye){const ke=le.vnode;j($,ke,ke.scopeId,ke.slotScopeIds,le.parent)}}},O=($,L,K,oe,le,ye,ke,he,pe=0)=>{for(let fe=pe;fe<$.length;fe++){const Ne=$[fe]=he?As($[fe]):bn($[fe]);g(null,Ne,L,K,oe,le,ye,ke,he)}},V=($,L,K,oe,le,ye,ke)=>{const he=L.el=$.el;let{patchFlag:pe,dynamicChildren:fe,dirs:Ne}=L;pe|=$.patchFlag&16;const Ce=$.props||gt,Re=L.props||gt;let He;K&&Zs(K,!1),(He=Re.onVnodeBeforeUpdate)&&fn(He,K,L,$),Ne&&Zn(L,$,K,"beforeUpdate"),K&&Zs(K,!0);const Je=le&&L.type!=="foreignObject";if(fe?q($.dynamicChildren,fe,he,K,oe,Je,ye):ke||Le($,L,he,null,K,oe,Je,ye,!1),pe>0){if(pe&16)F(he,L,Ce,Re,K,oe,le);else if(pe&2&&Ce.class!==Re.class&&o(he,"class",null,Re.class,le),pe&4&&o(he,"style",Ce.style,Re.style,le),pe&8){const st=L.dynamicProps;for(let k=0;k<st.length;k++){const v=st[k],I=Ce[v],z=Re[v];(z!==I||v==="value")&&o(he,v,I,z,le,$.children,K,oe,ne)}}pe&1&&$.children!==L.children&&d(he,L.children)}else!ke&&fe==null&&F(he,L,Ce,Re,K,oe,le);((He=Re.onVnodeUpdated)||Ne)&&Zt(()=>{He&&fn(He,K,L,$),Ne&&Zn(L,$,K,"updated")},oe)},q=($,L,K,oe,le,ye,ke)=>{for(let he=0;he<L.length;he++){const pe=$[he],fe=L[he],Ne=pe.el&&(pe.type===Ke||!Yn(pe,fe)||pe.shapeFlag&70)?h(pe.el):K;g(pe,fe,Ne,null,oe,le,ye,ke,!0)}},F=($,L,K,oe,le,ye,ke)=>{if(K!==oe){for(const he in oe){if(Lo(he))continue;const pe=oe[he],fe=K[he];pe!==fe&&he!=="value"&&o($,he,fe,pe,ke,L.children,le,ye,ne)}if(K!==gt)for(const he in K)!Lo(he)&&!(he in oe)&&o($,he,K[he],null,ke,L.children,le,ye,ne);"value"in oe&&o($,"value",K.value,oe.value)}},B=($,L,K,oe,le,ye,ke,he,pe)=>{const fe=L.el=$?$.el:a(""),Ne=L.anchor=$?$.anchor:a("");let{patchFlag:Ce,dynamicChildren:Re,slotScopeIds:He}=L;He&&(he=he?he.concat(He):He),$==null?(s(fe,K,oe),s(Ne,K,oe),O(L.children,K,Ne,le,ye,ke,he,pe)):Ce>0&&Ce&64&&Re&&$.dynamicChildren?(q($.dynamicChildren,Re,K,le,ye,ke,he),(L.key!=null||le&&L===le.subTree)&&id($,L,!0)):Le($,L,K,Ne,le,ye,ke,he,pe)},W=($,L,K,oe,le,ye,ke,he,pe)=>{L.slotScopeIds=he,$==null?L.shapeFlag&512?le.ctx.activate(L,K,oe,ke,pe):ue(L,K,oe,le,ye,ke,pe):te($,L,pe)},ue=($,L,K,oe,le,ye,ke)=>{const he=$.component=qp($,oe,le);if(_i($)&&(he.ctx.renderer=Me),Wp(he),he.asyncDep){if(le&&le.registerDep(he,ae),!$.el){const pe=he.subTree=w(nn);b(null,pe,L,K)}return}ae(he,$,L,K,le,ye,ke)},te=($,L,K)=>{const oe=L.component=$.component;if(Sb($,L,K))if(oe.asyncDep&&!oe.asyncResolved){ve(oe,L,K);return}else oe.next=L,mb(oe.update),oe.update();else L.component=$.component,L.el=$.el,oe.vnode=L},ae=($,L,K,oe,le,ye,ke)=>{const he=()=>{if($.isMounted){let{next:Ne,bu:Ce,u:Re,parent:He,vnode:Je}=$,st=Ne,k;Zs($,!1),Ne?(Ne.el=Je.el,ve($,Ne,ke)):Ne=Je,Ce&&Ur(Ce),(k=Ne.props&&Ne.props.onVnodeBeforeUpdate)&&fn(k,He,Ne,Je),Zs($,!0);const v=Ta($),I=$.subTree;$.subTree=v,g(I,v,h(I.el),be(I),$,le,ye),Ne.el=v.el,st===null&&td($,v.el),Re&&Zt(Re,le),(k=Ne.props&&Ne.props.onVnodeUpdated)&&Zt(()=>fn(k,He,Ne,Je),le)}else{let Ne;const{el:Ce,props:Re}=L,{bm:He,m:Je,parent:st}=$,k=Kr(L);if(Zs($,!1),He&&Ur(He),!k&&(Ne=Re&&Re.onVnodeBeforeMount)&&fn(Ne,st,L),Zs($,!0),Ce&&De){const v=()=>{$.subTree=Ta($),De(Ce,$.subTree,$,le,null)};k?L.type.__asyncLoader().then(()=>!$.isUnmounted&&v()):v()}else{const v=$.subTree=Ta($);g(null,v,K,oe,$,le,ye),L.el=v.el}if(Je&&Zt(Je,le),!k&&(Ne=Re&&Re.onVnodeMounted)){const v=L;Zt(()=>fn(Ne,st,v),le)}L.shapeFlag&256&&$.a&&Zt($.a,le),$.isMounted=!0,L=K=oe=null}},pe=$.effect=new hi(he,()=>Xc($.update),$.scope),fe=$.update=pe.run.bind(pe);fe.id=$.uid,Zs($,!0),fe()},ve=($,L,K)=>{L.component=$;const oe=$.vnode.props;$.vnode=L,$.next=null,qb($,L.props,oe,K),Kb($,L.children,K),mr(),ed(void 0,$.update),pr()},Le=($,L,K,oe,le,ye,ke,he,pe=!1)=>{const fe=$&&$.children,Ne=$?$.shapeFlag:0,Ce=L.children,{patchFlag:Re,shapeFlag:He}=L;if(Re>0){if(Re&128){me(fe,Ce,K,oe,le,ye,ke,he,pe);return}else if(Re&256){qe(fe,Ce,K,oe,le,ye,ke,he,pe);return}}He&8?(Ne&16&&ne(fe,le,ye),Ce!==fe&&d(K,Ce)):Ne&16?He&16?me(fe,Ce,K,oe,le,ye,ke,he,pe):ne(fe,le,ye,!0):(Ne&8&&d(K,""),He&16&&O(Ce,K,oe,le,ye,ke,he,pe))},qe=($,L,K,oe,le,ye,ke,he,pe)=>{$=$||jr,L=L||jr;const fe=$.length,Ne=L.length,Ce=Math.min(fe,Ne);let Re;for(Re=0;Re<Ce;Re++){const He=L[Re]=pe?As(L[Re]):bn(L[Re]);g($[Re],He,K,null,le,ye,ke,he,pe)}fe>Ne?ne($,le,ye,!0,!1,Ce):O(L,K,oe,le,ye,ke,he,pe,Ce)},me=($,L,K,oe,le,ye,ke,he,pe)=>{let fe=0;const Ne=L.length;let Ce=$.length-1,Re=Ne-1;for(;fe<=Ce&&fe<=Re;){const He=$[fe],Je=L[fe]=pe?As(L[fe]):bn(L[fe]);if(Yn(He,Je))g(He,Je,K,null,le,ye,ke,he,pe);else break;fe++}for(;fe<=Ce&&fe<=Re;){const He=$[Ce],Je=L[Re]=pe?As(L[Re]):bn(L[Re]);if(Yn(He,Je))g(He,Je,K,null,le,ye,ke,he,pe);else break;Ce--,Re--}if(fe>Ce){if(fe<=Re){const He=Re+1,Je=He<Ne?L[He].el:oe;for(;fe<=Re;)g(null,L[fe]=pe?As(L[fe]):bn(L[fe]),K,Je,le,ye,ke,he,pe),fe++}}else if(fe>Re)for(;fe<=Ce;)ce($[fe],le,ye,!0),fe++;else{const He=fe,Je=fe,st=new Map;for(fe=Je;fe<=Re;fe++){const Ie=L[fe]=pe?As(L[fe]):bn(L[fe]);Ie.key!=null&&st.set(Ie.key,fe)}let k,v=0;const I=Re-Je+1;let z=!1,J=0;const de=new Array(I);for(fe=0;fe<I;fe++)de[fe]=0;for(fe=He;fe<=Ce;fe++){const Ie=$[fe];if(v>=I){ce(Ie,le,ye,!0);continue}let ee;if(Ie.key!=null)ee=st.get(Ie.key);else for(k=Je;k<=Re;k++)if(de[k-Je]===0&&Yn(Ie,L[k])){ee=k;break}ee===void 0?ce(Ie,le,ye,!0):(de[ee-Je]=fe+1,ee>=J?J=ee:z=!0,g(Ie,L[ee],K,null,le,ye,ke,he,pe),v++)}const Ee=z?Xb(de):jr;for(k=Ee.length-1,fe=I-1;fe>=0;fe--){const Ie=Je+fe,ee=L[Ie],ie=Ie+1<Ne?L[Ie+1].el:oe;de[fe]===0?g(null,ee,K,ie,le,ye,ke,he,pe):z&&(k<0||fe!==Ee[k]?Y(ee,K,ie,2):k--)}}},Y=($,L,K,oe,le=null)=>{const{el:ye,type:ke,transition:he,children:pe,shapeFlag:fe}=$;if(fe&6){Y($.component.subTree,L,K,oe);return}if(fe&128){$.suspense.move(L,K,oe);return}if(fe&64){ke.move($,L,K,Me);return}if(ke===Ke){s(ye,L,K);for(let Ce=0;Ce<pe.length;Ce++)Y(pe[Ce],L,K,oe);s($.anchor,L,K);return}if(ke===ur){x($,L,K);return}if(oe!==2&&fe&1&&he)if(oe===0)he.beforeEnter(ye),s(ye,L,K),Zt(()=>he.enter(ye),le);else{const{leave:Ce,delayLeave:Re,afterLeave:He}=he,Je=()=>s(ye,L,K),st=()=>{Ce(ye,()=>{Je(),He&&He()})};Re?Re(ye,Je,st):st()}else s(ye,L,K)},ce=($,L,K,oe=!1,le=!1)=>{const{type:ye,props:ke,ref:he,children:pe,dynamicChildren:fe,shapeFlag:Ne,patchFlag:Ce,dirs:Re}=$;if(he!=null&&qa(he,null,K,$,!0),Ne&256){L.ctx.deactivate($);return}const He=Ne&1&&Re,Je=!Kr($);let st;if(Je&&(st=ke&&ke.onVnodeBeforeUnmount)&&fn(st,L,$),Ne&6)re($.component,K,oe);else{if(Ne&128){$.suspense.unmount(K,oe);return}He&&Zn($,null,L,"beforeUnmount"),Ne&64?$.type.remove($,L,K,le,Me,oe):fe&&(ye!==Ke||Ce>0&&Ce&64)?ne(fe,L,K,!1,!0):(ye===Ke&&Ce&384||!le&&Ne&16)&&ne(pe,L,K),oe&&we($)}(Je&&(st=ke&&ke.onVnodeUnmounted)||He)&&Zt(()=>{st&&fn(st,L,$),He&&Zn($,null,L,"unmounted")},K)},we=$=>{const{type:L,el:K,anchor:oe,transition:le}=$;if(L===Ke){U(K,oe);return}if(L===ur){C($);return}const ye=()=>{r(K),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if($.shapeFlag&1&&le&&!le.persisted){const{leave:ke,delayLeave:he}=le,pe=()=>ke(K,ye);he?he($.el,ye,pe):pe()}else ye()},U=($,L)=>{let K;for(;$!==L;)K=f($),r($),$=K;r(L)},re=($,L,K)=>{const{bum:oe,scope:le,update:ye,subTree:ke,um:he}=$;oe&&Ur(oe),le.stop(),ye&&(ye.active=!1,ce(ke,$,L,K)),he&&Zt(he,L),Zt(()=>{$.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},ne=($,L,K,oe=!1,le=!1,ye=0)=>{for(let ke=ye;ke<$.length;ke++)ce($[ke],L,K,oe,le)},be=$=>$.shapeFlag&6?be($.component.subTree):$.shapeFlag&128?$.suspense.next():f($.anchor||$.el),Ue=($,L,K)=>{$==null?L._vnode&&ce(L._vnode,null,null,!0):g(L._vnode||null,$,L,null,null,null,K),Ha(),L._vnode=$},Me={p:g,um:ce,m:Y,r:we,mt:ue,mc:O,pc:Le,pbc:q,n:be,o:e};let Ae,De;return t&&([Ae,De]=t(Me)),{render:Ue,hydrate:Ae,createApp:Yb(Ue,Ae)}}function Zs({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function id(e,t,n=!1){const s=e.children,r=t.children;if(ze(s)&&ze(r))for(let o=0;o<s.length;o++){const i=s[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=As(r[o]),a.el=i.el),n||id(i,a))}}function Xb(e){const t=e.slice(),n=[0];let s,r,o,i,a;const l=e.length;for(s=0;s<l;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<c?o=a+1:i=a;c<e[n[o]]&&(o>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 Qb=e=>e.__isTeleport,zo=e=>e&&(e.disabled||e.disabled===""),Bf=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Yu=(e,t)=>{const n=e&&e.to;return At(n)?t?t(n):null:n},e0={__isTeleport:!0,process(e,t,n,s,r,o,i,a,l,c){const{mc:d,pc:h,pbc:f,o:{insert:m,querySelector:p,createText:_,createComment:g}}=c,y=zo(t.props);let{shapeFlag:b,children:S,dynamicChildren:x}=t;if(e==null){const C=t.el=_(""),A=t.anchor=_("");m(C,n,s),m(A,n,s);const M=t.target=Yu(t.props,p),j=t.targetAnchor=_("");M&&(m(j,M),i=i||Bf(M));const O=(V,q)=>{b&16&&d(S,V,q,r,o,i,a,l)};y?O(n,A):M&&O(M,j)}else{t.el=e.el;const C=t.anchor=e.anchor,A=t.target=e.target,M=t.targetAnchor=e.targetAnchor,j=zo(e.props),O=j?n:A,V=j?C:M;if(i=i||Bf(A),x?(f(e.dynamicChildren,x,O,r,o,i,a),id(e,t,!0)):l||h(e,t,O,V,r,o,i,a,!1),y)j||Vi(t,n,C,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const q=t.target=Yu(t.props,p);q&&Vi(t,q,null,c,0)}else j&&Vi(t,A,M,c,1)}},remove(e,t,n,s,{um:r,o:{remove:o}},i){const{shapeFlag:a,children:l,anchor:c,targetAnchor:d,target:h,props:f}=e;if(h&&o(d),(i||!zo(f))&&(o(c),a&16))for(let m=0;m<l.length;m++){const p=l[m];r(p,t,n,!0,!!p.dynamicChildren)}},move:Vi,hydrate:t0};function Vi(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:c,props:d}=e,h=o===2;if(h&&s(i,t,n),(!h||zo(d))&&l&16)for(let f=0;f<c.length;f++)r(c[f],t,n,2);h&&s(a,t,n)}function t0(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:a,querySelector:l}},c){const d=t.target=Yu(t.props,l);if(d){const h=d._lpa||d.firstChild;t.shapeFlag&16&&(zo(t.props)?(t.anchor=c(i(e),t,a(e),n,s,r,o),t.targetAnchor=h):(t.anchor=i(e),t.targetAnchor=c(h,t,d,n,s,r,o)),d._lpa=t.targetAnchor&&i(t.targetAnchor))}return t.anchor&&i(t.anchor)}const qs=e0,ad="components",n0="directives";function P(e,t){return ld(ad,e,!0,t)||e}const Lp=Symbol();function Np(e){return At(e)?ld(ad,e,!1)||e:e||Lp}function xl(e){return ld(n0,e)}function ld(e,t,n=!0,s=!1){const r=Qt||Gt;if(r){const o=r.type;if(e===ad){const a=Ka(o);if(a&&(a===t||a===En(t)||a===fi(En(t))))return o}const i=Uf(r[e]||o[e],t)||Uf(r.appContext[e],t);return!i&&s?o:i}}function Uf(e,t){return e&&(e[t]||e[En(t)]||e[fi(En(t))])}const Ke=Symbol(void 0),Zr=Symbol(void 0),nn=Symbol(void 0),ur=Symbol(void 0),qo=[];let es=null;function E(e=!1){qo.push(es=e?null:[])}function Vp(){qo.pop(),es=qo[qo.length-1]||null}let Yr=1;function Ju(e){Yr+=e}function jp(e){return e.dynamicChildren=Yr>0?es||jr:null,Vp(),Yr>0&&es&&es.push(e),e}function D(e,t,n,s,r,o){return jp(u(e,t,n,s,r,o,!0))}function Se(e,t,n,s,r){return jp(w(e,t,n,s,r,!0))}function Bs(e){return e?e.__v_isVNode===!0:!1}function Yn(e,t){return e.type===t.type&&e.key===t.key}function s0(e){}const El="__vInternal",Bp=({key:e})=>e!=null?e:null,Pa=({ref:e,ref_key:t,ref_for:n})=>e!=null?At(e)||Ut(e)||et(e)?{i:Qt,r:e,k:t,f:!!n}:e:null;function u(e,t=null,n=null,s=0,r=null,o=e===Ke?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Bp(t),ref:t&&Pa(t),scopeId:yl,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};return a?(ud(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=At(n)?8:16),Yr>0&&!i&&es&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&es.push(l),l}const w=r0;function r0(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Lp)&&(e=nn),Bs(e)){const a=ms(e,t,!0);return n&&ud(a,n),a}if(p0(e)&&(e=e.__vccOpts),t){t=Up(t);let{class:a,style:l}=t;a&&!At(a)&&(t.class=We(a)),Mt(l)&&(Gc(l)&&!ze(l)&&(l=It({},l)),t.style=zs(l))}const i=At(e)?1:xb(e)?128:Qb(e)?64:Mt(e)?4:et(e)?2:0;return u(e,t,n,s,r,i,o,!0)}function Up(e){return e?Gc(e)||El in e?It({},e):e:null}function ms(e,t,n=!1){const{props:s,ref:r,patchFlag:o,children:i}=e,a=t?cd(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&Bp(a),ref:t&&t.ref?n&&r?ze(r)?r.concat(Pa(t)):[r,Pa(t)]:Pa(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!==Ke?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&&ms(e.ssContent),ssFallback:e.ssFallback&&ms(e.ssFallback),el:e.el,anchor:e.anchor}}function $e(e=" ",t=0){return w(Zr,null,e,t)}function Hp(e,t){const n=w(ur,null,e);return n.staticCount=t,n}function Z(e="",t=!1){return t?(E(),Se(nn,null,e)):w(nn,null,e)}function bn(e){return e==null||typeof e=="boolean"?w(nn):ze(e)?w(Ke,null,e.slice()):typeof e=="object"?As(e):w(Zr,null,String(e))}function As(e){return e.el===null||e.memo?e:ms(e)}function ud(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(ze(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),ud(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!(El in t)?t._ctx=Qt:r===3&&Qt&&(Qt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:Qt},n=32):(t=String(t),s&64?(n=16,t=[$e(t)]):n=8);e.children=t,e.shapeFlag|=n}function cd(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=We([t.class,s.class]));else if(r==="style")t.style=zs([t.style,s.style]);else if(di(r)){const o=t[r],i=s[r];i&&o!==i&&!(ze(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function fn(e,t,n,s=null){Sn(e,t,7,[n,s])}function bt(e,t,n,s){let r;const o=n&&n[s];if(ze(e)||At(e)){r=new Array(e.length);for(let i=0,a=e.length;i<a;i++)r[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){r=new Array(e);for(let i=0;i<e;i++)r[i]=t(i+1,i,void 0,o&&o[i])}else if(Mt(e))if(e[Symbol.iterator])r=Array.from(e,(i,a)=>t(i,a,void 0,o&&o[a]));else{const i=Object.keys(e);r=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const c=i[a];r[a]=t(e[c],c,a,o&&o[a])}}else r=[];return n&&(n[s]=r),r}function vi(e,t){for(let n=0;n<t.length;n++){const s=t[n];if(ze(s))for(let r=0;r<s.length;r++)e[s[r].name]=s[r].fn;else s&&(e[s.name]=s.fn)}return e}function St(e,t,n={},s,r){if(Qt.isCE||Qt.parent&&Kr(Qt.parent)&&Qt.parent.isCE)return w("slot",t==="default"?null:{name:t},s&&s());let o=e[t];o&&o._c&&(o._d=!1),E();const i=o&&zp(o(n)),a=Se(Ke,{key:n.key||`_${t}`},i||(s?s():[]),i&&e._===1?64:-2);return!r&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function zp(e){return e.some(t=>Bs(t)?!(t.type===nn||t.type===Ke&&!zp(t.children)):!0)?e:null}function o0(e){const t={};for(const n in e)t[No(n)]=e[n];return t}const Xu=e=>e?Gp(e)?Cl(e)||e.proxy:Xu(e.parent):null,Ga=It(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=>Xu(e.parent),$root:e=>Xu(e.root),$emit:e=>e.emit,$options:e=>$p(e),$forceUpdate:e=>()=>Xc(e.update),$nextTick:e=>gl.bind(e.proxy),$watch:e=>Fb.bind(e)}),Qu={get({_:e},t){const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:a,appContext:l}=e;let c;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(s!==gt&&ft(s,t))return i[t]=1,s[t];if(r!==gt&&ft(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&ft(c,t))return i[t]=3,o[t];if(n!==gt&&ft(n,t))return i[t]=4,n[t];Wu&&(i[t]=0)}}const d=Ga[t];let h,f;if(d)return t==="$attrs"&&Cn(e,"get",t),d(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==gt&&ft(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,ft(f,t))return f[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return r!==gt&&ft(r,t)?(r[t]=n,!0):s!==gt&&ft(s,t)?(s[t]=n,!0):ft(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 a;return!!n[i]||e!==gt&&ft(e,i)||t!==gt&&ft(t,i)||(a=o[0])&&ft(a,i)||ft(s,i)||ft(Ga,i)||ft(r.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ft(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},i0=It({},Qu,{get(e,t){if(t!==Symbol.unscopables)return Qu.get(e,t,e)},has(e,t){return t[0]!=="_"&&!a1(t)}}),a0=Fp();let l0=0;function qp(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||a0,o={uid:l0++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Bc(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Op(s,r),emitsOptions:fp(s,r),emit:null,emitted:null,propsDefaults:gt,inheritAttrs:s.inheritAttrs,ctx:gt,data:gt,props:gt,attrs:gt,slots:gt,refs:gt,setupState:gt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=_b.bind(null,o),e.ce&&e.ce(o),o}let Gt=null;const Gs=()=>Gt||Qt,Us=e=>{Gt=e,e.scope.on()},Ls=()=>{Gt&&Gt.scope.off(),Gt=null};function Gp(e){return e.vnode.shapeFlag&4}let Jr=!1;function Wp(e,t=!1){Jr=t;const{props:n,children:s}=e.vnode,r=Gp(e);zb(e,n,r,t),Wb(e,s);const o=r?u0(e,t):void 0;return Jr=!1,o}function u0(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Wc(new Proxy(e.ctx,Qu));const{setup:s}=n;if(s){const r=e.setupContext=s.length>1?Zp(e):null;Us(e),mr();const o=Xn(s,e,0,[e.props,r]);if(pr(),Ls(),Vc(o)){if(o.then(Ls,Ls),t)return o.then(i=>{ec(e,i,t)}).catch(i=>{gr(i,e,0)});e.asyncDep=o}else ec(e,o,t)}else Kp(e,t)}function ec(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Mt(t)&&(e.setupState=Yc(t)),Kp(e,n)}let Wa,tc;function c0(e){Wa=e,tc=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,i0))}}const d0=()=>!Wa;function Kp(e,t,n){const s=e.type;if(!e.render){if(!t&&Wa&&!s.render){const r=s.template;if(r){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=s,c=It(It({isCustomElement:o,delimiters:a},i),l);s.render=Wa(r,c)}}e.render=s.render||qn,tc&&tc(e)}Us(e),mr(),Vb(e),pr(),Ls()}function f0(e){return new Proxy(e.attrs,{get(t,n){return Cn(e,"get","$attrs"),t[n]}})}function Zp(e){const t=s=>{e.exposed=s||{}};let n;return{get attrs(){return n||(n=f0(e))},slots:e.slots,emit:e.emit,expose:t}}function Cl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Yc(Wc(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ga)return Ga[n](e)}}))}const h0=/(?:^|[-_])(\w)/g,m0=e=>e.replace(h0,t=>t.toUpperCase()).replace(/[-_]/g,"");function Ka(e){return et(e)&&e.displayName||e.name}function Yp(e,t,n=!1){let s=Ka(t);if(!s&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(s=r[1])}if(!s&&e&&e.parent){const r=o=>{for(const i in o)if(o[i]===t)return i};s=r(e.components||e.parent.type.components)||r(e.appContext.components)}return s?m0(s):n?"App":"Anonymous"}function p0(e){return et(e)&&"__vccOpts"in e}const Wt=(e,t)=>ab(e,t,Jr);function _0(){return null}function g0(){return null}function v0(e){}function y0(e,t){return null}function b0(){return Jp().slots}function w0(){return Jp().attrs}function Jp(){const e=Gs();return e.setupContext||(e.setupContext=Zp(e))}function k0(e,t){const n=ze(e)?e.reduce((s,r)=>(s[r]={},s),{}):e;for(const s in t){const r=n[s];r?ze(r)||et(r)?n[s]={type:r,default:t[s]}:r.default=t[s]:r===null&&(n[s]={default:t[s]})}return n}function S0(e,t){const n={};for(const s in e)t.includes(s)||Object.defineProperty(n,s,{enumerable:!0,get:()=>e[s]});return n}function x0(e){const t=Gs();let n=e();return Ls(),Vc(n)&&(n=n.catch(s=>{throw Us(t),s})),[n,()=>Us(t)]}function Is(e,t,n){const s=arguments.length;return s===2?Mt(t)&&!ze(t)?Bs(t)?w(e,null,[t]):w(e,t):w(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Bs(n)&&(n=[n]),w(e,t,n))}const Xp=Symbol(""),E0=()=>{{const e=Qn(Xp);return e||op("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function C0(){}function $0(e,t,n,s){const r=n[s];if(r&&Qp(r,e))return r;const o=t();return o.memo=e.slice(),n[s]=o}function Qp(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let s=0;s<n.length;s++)if(n[s]!==t[s])return!1;return Yr>0&&es&&es.push(e),!0}const e_="3.2.33",A0={createComponentInstance:qp,setupComponent:Wp,renderComponentRoot:Ta,setCurrentRenderingInstance:ii,isVNode:Bs,normalizeVNode:bn},O0=A0,T0=null,P0=null,D0="http://www.w3.org/2000/svg",or=typeof document!="undefined"?document:null,Hf=or&&or.createElement("template"),F0={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?or.createElementNS(D0,e):or.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>or.createTextNode(e),createComment:e=>or.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>or.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),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{Hf.innerHTML=s?`<svg>${e}</svg>`:e;const a=Hf.content;if(s){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function I0(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 M0(e,t,n){const s=e.style,r=At(n);if(n&&!r){for(const o in n)nc(s,o,n[o]);if(t&&!At(t))for(const o in t)n[o]==null&&nc(s,o,"")}else{const o=s.display;r?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=o)}}const zf=/\s*!important$/;function nc(e,t,n){if(ze(n))n.forEach(s=>nc(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=R0(e,t);zf.test(n)?e.setProperty(Jn(s),n.replace(zf,""),"important"):e[s]=n}}const qf=["Webkit","Moz","ms"],uu={};function R0(e,t){const n=uu[t];if(n)return n;let s=En(t);if(s!=="filter"&&s in e)return uu[t]=s;s=fi(s);for(let r=0;r<qf.length;r++){const o=qf[r]+s;if(o in e)return uu[t]=o}return t}const Gf="http://www.w3.org/1999/xlink";function L0(e,t,n,s,r){if(s&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Gf,t.slice(6,t.length)):e.setAttributeNS(Gf,t,n);else{const o=u1(t);n==null||o&&!Nm(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function N0(e,t,n,s,r,o,i){if(t==="innerHTML"||t==="textContent"){s&&i(s,r,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n==null?"":n;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Nm(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}const[t_,V0]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let sc=0;const j0=Promise.resolve(),B0=()=>{sc=0},U0=()=>sc||(j0.then(B0),sc=t_());function us(e,t,n,s){e.addEventListener(t,n,s)}function H0(e,t,n,s){e.removeEventListener(t,n,s)}function z0(e,t,n,s,r=null){const o=e._vei||(e._vei={}),i=o[t];if(s&&i)i.value=s;else{const[a,l]=q0(t);if(s){const c=o[t]=G0(s,r);us(e,a,c,l)}else i&&(H0(e,a,i,l),o[t]=void 0)}}const Wf=/(?:Once|Passive|Capture)$/;function q0(e){let t;if(Wf.test(e)){t={};let n;for(;n=e.match(Wf);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[Jn(e.slice(2)),t]}function G0(e,t){const n=s=>{const r=s.timeStamp||t_();(V0||r>=n.attached-1)&&Sn(W0(s,n.value),t,5,[s])};return n.value=e,n.attached=U0(),n}function W0(e,t){if(ze(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 Kf=/^on[a-z]/,K0=(e,t,n,s,r=!1,o,i,a,l)=>{t==="class"?I0(e,s,r):t==="style"?M0(e,n,s):di(t)?Rc(t)||z0(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Z0(e,t,s,r))?N0(e,t,s,o,i,a,l):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),L0(e,t,s,r))};function Z0(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&Kf.test(t)&&et(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Kf.test(t)&&At(n)?!1:t in e}function n_(e,t){const n=pi(e);class s extends $l{constructor(o){super(n,o,t)}}return s.def=n,s}const Y0=e=>n_(e,h_),J0=typeof HTMLElement!="undefined"?HTMLElement:class{};class $l extends J0{constructor(t,n={},s){super();this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&s?s(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,gl(()=>{this._connected||(oc(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let s=0;s<this.attributes.length;s++)this._setAttr(this.attributes[s].name);new MutationObserver(s=>{for(const r of s)this._setAttr(r.attributeName)}).observe(this,{attributes:!0});const t=s=>{const{props:r,styles:o}=s,i=!ze(r),a=r?i?Object.keys(r):r:[];let l;if(i)for(const c in this._props){const d=r[c];(d===Number||d&&d.type===Number)&&(this._props[c]=Vs(this._props[c]),(l||(l=Object.create(null)))[c]=!0)}this._numberProps=l;for(const c of Object.keys(this))c[0]!=="_"&&this._setProp(c,this[c],!0,!1);for(const c of a.map(En))Object.defineProperty(this,c,{get(){return this._getProp(c)},set(d){this._setProp(c,d)}});this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Vs(n)),this._setProp(En(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,s=!0,r=!0){n!==this._props[t]&&(this._props[t]=n,r&&this._instance&&this._update(),s&&(n===!0?this.setAttribute(Jn(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Jn(t),n+""):n||this.removeAttribute(Jn(t))))}_update(){oc(this._createVNode(),this.shadowRoot)}_createVNode(){const t=w(this._def,It({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(r,...o)=>{this.dispatchEvent(new CustomEvent(r,{detail:o}))};let s=this;for(;s=s&&(s.parentNode||s.host);)if(s instanceof $l){n.parent=s._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const s=document.createElement("style");s.textContent=n,this.shadowRoot.appendChild(s)})}}function X0(e="$style"){{const t=Gs();if(!t)return gt;const n=t.type.__cssModules;if(!n)return gt;const s=n[e];return s||gt}}function Q0(e){const t=Gs();if(!t)return;const n=()=>rc(t.subTree,e(t.proxy));mp(n),ao(()=>{const s=new MutationObserver(n);s.observe(t.subTree.el.parentNode,{childList:!0}),gi(()=>s.disconnect())})}function rc(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{rc(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Zf(e.el,t);else if(e.type===Ke)e.children.forEach(n=>rc(n,t));else if(e.type===ur){let{el:n,anchor:s}=e;for(;n&&(Zf(n,t),n!==s);)n=n.nextSibling}}function Zf(e,t){if(e.nodeType===1){const n=e.style;for(const s in t)n.setProperty(`--${s}`,t[s])}}const Ss="transition",_o="animation",Ht=(e,{slots:t})=>Is(rd,r_(e),t);Ht.displayName="Transition";const s_={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ew=Ht.props=It({},rd.props,s_),Ys=(e,t=[])=>{ze(e)?e.forEach(n=>n(...t)):e&&e(...t)},Yf=e=>e?ze(e)?e.some(t=>t.length>1):e.length>1:!1;function r_(e){const t={};for(const F in e)F in s_||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:c=i,appearToClass:d=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,p=tw(r),_=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:S,onLeave:x,onLeaveCancelled:C,onBeforeAppear:A=y,onAppear:M=b,onAppearCancelled:j=S}=t,O=(F,B,W)=>{nr(F,B?d:a),nr(F,B?c:i),W&&W()},V=(F,B)=>{nr(F,m),nr(F,f),B&&B()},q=F=>(B,W)=>{const ue=F?M:b,te=()=>O(B,F,W);Ys(ue,[B,te]),Jf(()=>{nr(B,F?l:o),as(B,F?d:a),Yf(ue)||Xf(B,s,_,te)})};return It(t,{onBeforeEnter(F){Ys(y,[F]),as(F,o),as(F,i)},onBeforeAppear(F){Ys(A,[F]),as(F,l),as(F,c)},onEnter:q(!1),onAppear:q(!0),onLeave(F,B){const W=()=>V(F,B);as(F,h),i_(),as(F,f),Jf(()=>{nr(F,h),as(F,m),Yf(x)||Xf(F,s,g,W)}),Ys(x,[F,W])},onEnterCancelled(F){O(F,!1),Ys(S,[F])},onAppearCancelled(F){O(F,!0),Ys(j,[F])},onLeaveCancelled(F){V(F),Ys(C,[F])}})}function tw(e){if(e==null)return null;if(Mt(e))return[cu(e.enter),cu(e.leave)];{const t=cu(e);return[t,t]}}function cu(e){return Vs(e)}function as(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function nr(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Jf(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let nw=0;function Xf(e,t,n,s){const r=e._endId=++nw,o=()=>{r===e._endId&&s()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=o_(e,t);if(!i)return s();const c=i+"end";let d=0;const h=()=>{e.removeEventListener(c,f),o()},f=m=>{m.target===e&&++d>=l&&h()};setTimeout(()=>{d<l&&h()},a+1),e.addEventListener(c,f)}function o_(e,t){const n=window.getComputedStyle(e),s=p=>(n[p]||"").split(", "),r=s(Ss+"Delay"),o=s(Ss+"Duration"),i=Qf(r,o),a=s(_o+"Delay"),l=s(_o+"Duration"),c=Qf(a,l);let d=null,h=0,f=0;t===Ss?i>0&&(d=Ss,h=i,f=o.length):t===_o?c>0&&(d=_o,h=c,f=l.length):(h=Math.max(i,c),d=h>0?i>c?Ss:_o:null,f=d?d===Ss?o.length:l.length:0);const m=d===Ss&&/\b(transform|all)(,|$)/.test(n[Ss+"Property"]);return{type:d,timeout:h,propCount:f,hasTransform:m}}function Qf(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>eh(n)+eh(e[s])))}function eh(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function i_(){return document.body.offsetHeight}const a_=new WeakMap,l_=new WeakMap,sw={name:"TransitionGroup",props:It({},ew,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=Gs(),s=sd();let r,o;return kl(()=>{if(!r.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!lw(r[0].el,n.vnode.el,i))return;r.forEach(ow),r.forEach(iw);const a=r.filter(aw);i_(),a.forEach(l=>{const c=l.el,d=c.style;as(c,i),d.transform=d.webkitTransform=d.transitionDuration="";const h=c._moveCb=f=>{f&&f.target!==c||(!f||/transform$/.test(f.propertyName))&&(c.removeEventListener("transitionend",h),c._moveCb=null,nr(c,i))};c.addEventListener("transitionend",h)})}),()=>{const i=ut(e),a=r_(i);let l=i.tag||Ke;r=o,o=t.default?bl(t.default()):[];for(let c=0;c<o.length;c++){const d=o[c];d.key!=null&&fr(d,Wr(d,a,s,n))}if(r)for(let c=0;c<r.length;c++){const d=r[c];fr(d,Wr(d,a,s,n)),a_.set(d,d.el.getBoundingClientRect())}return w(l,null,o)}}},rw=sw;function ow(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function iw(e){l_.set(e,e.el.getBoundingClientRect())}function aw(e){const t=a_.get(e),n=l_.get(e),s=t.left-n.left,r=t.top-n.top;if(s||r){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${s}px,${r}px)`,o.transitionDuration="0s",e}}function lw(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&s.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const r=t.nodeType===1?t:t.parentNode;r.appendChild(s);const{hasTransform:o}=o_(s);return r.removeChild(s),o}const Hs=e=>{const t=e.props["onUpdate:modelValue"];return ze(t)?n=>Ur(t,n):t};function uw(e){e.target.composing=!0}function th(e){const t=e.target;t.composing&&(t.composing=!1,cw(t,"input"))}function cw(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const en={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e._assign=Hs(r);const o=s||r.props&&r.props.type==="number";us(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n?a=a.trim():o&&(a=Vs(a)),e._assign(a)}),n&&us(e,"change",()=>{e.value=e.value.trim()}),t||(us(e,"compositionstart",uw),us(e,"compositionend",th),us(e,"change",th))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:s,number:r}},o){if(e._assign=Hs(o),e.composing||document.activeElement===e&&(n||s&&e.value.trim()===t||(r||e.type==="number")&&Vs(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},ps={deep:!0,created(e,t,n){e._assign=Hs(n),us(e,"change",()=>{const s=e._modelValue,r=Xr(e),o=e.checked,i=e._assign;if(ze(s)){const a=ul(s,r),l=a!==-1;if(o&&!l)i(s.concat(r));else if(!o&&l){const c=[...s];c.splice(a,1),i(c)}}else if(hr(s)){const a=new Set(s);o?a.add(r):a.delete(r),i(a)}else i(u_(e,o))})},mounted:nh,beforeUpdate(e,t,n){e._assign=Hs(n),nh(e,t,n)}};function nh(e,{value:t,oldValue:n},s){e._modelValue=t,ze(t)?e.checked=ul(t,s.props.value)>-1:hr(t)?e.checked=t.has(s.props.value):t!==n&&(e.checked=Ns(t,u_(e,!0)))}const dd={created(e,{value:t},n){e.checked=Ns(t,n.props.value),e._assign=Hs(n),us(e,"change",()=>{e._assign(Xr(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e._assign=Hs(s),t!==n&&(e.checked=Ns(t,s.props.value))}},fd={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=hr(t);us(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Vs(Xr(i)):Xr(i));e._assign(e.multiple?r?new Set(o):o:o[0])}),e._assign=Hs(s)},mounted(e,{value:t}){sh(e,t)},beforeUpdate(e,t,n){e._assign=Hs(n)},updated(e,{value:t}){sh(e,t)}};function sh(e,t){const n=e.multiple;if(!(n&&!ze(t)&&!hr(t))){for(let s=0,r=e.options.length;s<r;s++){const o=e.options[s],i=Xr(o);if(n)ze(t)?o.selected=ul(t,i)>-1:o.selected=t.has(i);else if(Ns(Xr(o),t)){e.selectedIndex!==s&&(e.selectedIndex=s);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Xr(e){return"_value"in e?e._value:e.value}function u_(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const dw={created(e,t,n){ji(e,t,n,null,"created")},mounted(e,t,n){ji(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){ji(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){ji(e,t,n,s,"updated")}};function ji(e,t,n,s,r){let o;switch(e.tagName){case"SELECT":o=fd;break;case"TEXTAREA":o=en;break;default:switch(n.props&&n.props.type){case"checkbox":o=ps;break;case"radio":o=dd;break;default:o=en}}const i=o[r];i&&i(e,t,n,s)}function fw(){en.getSSRProps=({value:e})=>({value:e}),dd.getSSRProps=({value:e},t)=>{if(t.props&&Ns(t.props.value,e))return{checked:!0}},ps.getSSRProps=({value:e},t)=>{if(ze(e)){if(t.props&&ul(e,t.props.value)>-1)return{checked:!0}}else if(hr(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}}}const hw=["ctrl","shift","alt","meta"],mw={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>hw.some(n=>e[`${n}Key`]&&!t.includes(n))},pt=(e,t)=>(n,...s)=>{for(let r=0;r<t.length;r++){const o=mw[t[r]];if(o&&o(n,t))return}return e(n,...s)},pw={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},wn=(e,t)=>n=>{if(!("key"in n))return;const s=Jn(n.key);if(t.some(r=>r===s||pw[r]===s))return e(n)},Qr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):go(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),go(e,!0),s.enter(e)):s.leave(e,()=>{go(e,!1)}):go(e,t))},beforeUnmount(e,{value:t}){go(e,t)}};function go(e,t){e.style.display=t?e._vod:"none"}function _w(){Qr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const c_=It({patchProp:K0},F0);let Go,rh=!1;function d_(){return Go||(Go=Ip(c_))}function f_(){return Go=rh?Go:Mp(c_),rh=!0,Go}const oc=(...e)=>{d_().render(...e)},h_=(...e)=>{f_().hydrate(...e)},m_=(...e)=>{const t=d_().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=p_(s);if(!r)return;const o=t._component;!et(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},gw=(...e)=>{const t=f_().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=p_(s);if(r)return n(r,!0,r instanceof SVGElement)},t};function p_(e){return At(e)?document.querySelector(e):e}let oh=!1;const vw=()=>{oh||(oh=!0,fw(),_w())},yw=()=>{};var bw=Object.freeze(Object.defineProperty({__proto__:null,compile:yw,EffectScope:Bc,ReactiveEffect:hi,customRef:rb,effect:$1,effectScope:k1,getCurrentScope:S1,isProxy:Gc,isReactive:lr,isReadonly:Gr,isRef:Ut,isShallow:qc,markRaw:Wc,onScopeDispose:x1,proxyRefs:Yc,reactive:_r,readonly:zc,ref:cs,shallowReactive:tp,shallowReadonly:Q1,shallowRef:np,stop:A1,toRaw:ut,toRef:rp,toRefs:Vo,triggerRef:tb,unref:Hr,camelize:En,capitalize:fi,normalizeClass:We,normalizeProps:h1,normalizeStyle:zs,toDisplayString:R,toHandlerKey:No,BaseTransition:rd,Comment:nn,Fragment:Ke,KeepAlive:Lb,Static:ur,Suspense:Cb,Teleport:qs,Text:Zr,callWithAsyncErrorHandling:Sn,callWithErrorHandling:Xn,cloneVNode:ms,compatUtils:P0,computed:Wt,createBlock:Se,createCommentVNode:Z,createElementBlock:D,createElementVNode:u,createHydrationRenderer:Mp,createPropsRestProxy:S0,createRenderer:Ip,createSlots:vi,createStaticVNode:Hp,createTextVNode:$e,createVNode:w,defineAsyncComponent:Mb,defineComponent:pi,defineEmits:g0,defineExpose:v0,defineProps:_0,get devtools(){return Mr},getCurrentInstance:Gs,getTransitionRawChildren:bl,guardReactiveProps:Up,h:Is,handleError:gr,initCustomFormatter:C0,inject:Qn,isMemoSame:Qp,isRuntimeOnly:d0,isVNode:Bs,mergeDefaults:k0,mergeProps:cd,nextTick:gl,onActivated:gp,onBeforeMount:bp,onBeforeUnmount:Sl,onBeforeUpdate:wp,onDeactivated:vp,onErrorCaptured:Ep,onMounted:ao,onRenderTracked:xp,onRenderTriggered:Sp,onServerPrefetch:kp,onUnmounted:gi,onUpdated:kl,openBlock:E,popScopeId:vb,provide:Ho,pushScopeId:gb,queuePostFlushCb:Qc,registerRuntimeCompiler:c0,renderList:bt,renderSlot:St,resolveComponent:P,resolveDirective:xl,resolveDynamicComponent:Np,resolveFilter:T0,resolveTransitionHooks:Wr,setBlockTracking:Ju,setDevtoolsHook:dp,setTransitionHooks:fr,ssrContextKey:Xp,ssrUtils:O0,toHandlers:o0,transformVNodeArgs:s0,useAttrs:w0,useSSRContext:E0,useSlots:b0,useTransitionState:sd,version:e_,warn:op,watch:jt,watchEffect:Pb,watchPostEffect:mp,watchSyncEffect:Db,withAsyncContext:x0,withCtx:T,withDefaults:y0,withDirectives:wt,withMemo:$0,withScopeId:yb,Transition:Ht,TransitionGroup:rw,VueElement:$l,createApp:m_,createSSRApp:gw,defineCustomElement:n_,defineSSRCustomElement:Y0,hydrate:h_,initDirectivesForSSR:vw,render:oc,useCssModule:X0,useCssVars:Q0,vModelCheckbox:ps,vModelDynamic:dw,vModelRadio:dd,vModelSelect:fd,vModelText:en,vShow:Qr,withKeys:wn,withModifiers:pt},Symbol.toStringTag,{value:"Module"}));function ww(){return __().__VUE_DEVTOOLS_GLOBAL_HOOK__}function __(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const kw=typeof Proxy=="function",Sw="devtools-plugin:setup",xw="plugin:settings:set";let xr,ic;function Ew(){var e;return xr!==void 0||(typeof window!="undefined"&&window.performance?(xr=!0,ic=window.performance):typeof global!="undefined"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(xr=!0,ic=global.perf_hooks.performance):xr=!1),xr}function Cw(){return Ew()?ic.now():Date.now()}class $w{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const a=t.settings[i];s[i]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},s);try{const i=localStorage.getItem(r),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(r,JSON.stringify(i))}catch{}o=i},now(){return Cw()}},n&&n.on(xw,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(c=>{this.targetQueue.push({method:a,args:l,resolve:c})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function Aw(e,t){const n=e,s=__(),r=ww(),o=kw&&n.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(Sw,e,t);else{const i=o?new $w(n,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
|
|
* vuex v4.0.2
|
|
* (c) 2021 Evan You
|
|
* @license MIT
|
|
*/var Ow="store";function lo(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Tw(e){return e!==null&&typeof e=="object"}function Pw(e){return e&&typeof e.then=="function"}function Dw(e,t){return function(){return e(t)}}function g_(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var s=t.indexOf(e);s>-1&&t.splice(s,1)}}function v_(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Al(e,n,[],e._modules.root,!0),hd(e,n,t)}function hd(e,t,n){var s=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,o={};lo(r,function(i,a){o[a]=Dw(i,e),Object.defineProperty(e.getters,a,{get:function(){return o[a]()},enumerable:!0})}),e._state=_r({data:t}),e.strict&&Lw(e),s&&n&&e._withCommit(function(){s.data=null})}function Al(e,t,n,s,r){var o=!n.length,i=e._modules.getNamespace(n);if(s.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=s),!o&&!r){var a=md(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=s.state})}var c=s.context=Fw(e,i,n);s.forEachMutation(function(d,h){var f=i+h;Iw(e,f,d,c)}),s.forEachAction(function(d,h){var f=d.root?h:i+h,m=d.handler||d;Mw(e,f,m,c)}),s.forEachGetter(function(d,h){var f=i+h;Rw(e,f,d,c)}),s.forEachChild(function(d,h){Al(e,t,n.concat(h),d,r)})}function Fw(e,t,n){var s=t==="",r={dispatch:s?e.dispatch:function(o,i,a){var l=Za(o,i,a),c=l.payload,d=l.options,h=l.type;return(!d||!d.root)&&(h=t+h),e.dispatch(h,c)},commit:s?e.commit:function(o,i,a){var l=Za(o,i,a),c=l.payload,d=l.options,h=l.type;(!d||!d.root)&&(h=t+h),e.commit(h,c,d)}};return Object.defineProperties(r,{getters:{get:s?function(){return e.getters}:function(){return y_(e,t)}},state:{get:function(){return md(e.state,n)}}}),r}function y_(e,t){if(!e._makeLocalGettersCache[t]){var n={},s=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,s)===t){var o=r.slice(s);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Iw(e,t,n,s){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(i){n.call(e,s.state,i)})}function Mw(e,t,n,s){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(i){var a=n.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return Pw(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function Rw(e,t,n,s){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(s.state,s.getters,o.state,o.getters)})}function Lw(e){jt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function md(e,t){return t.reduce(function(n,s){return n[s]},e)}function Za(e,t,n){return Tw(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var Nw="vuex bindings",ih="vuex:mutations",du="vuex:actions",Er="vuex",Vw=0;function jw(e,t){Aw({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Nw]},function(n){n.addTimelineLayer({id:ih,label:"Vuex Mutations",color:ah}),n.addTimelineLayer({id:du,label:"Vuex Actions",color:ah}),n.addInspector({id:Er,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===Er)if(s.filter){var r=[];S_(r,t._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[k_(t._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===Er){var r=s.nodeId;y_(t,r),s.state=Hw(qw(t._modules,r),r==="root"?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===Er){var r=s.nodeId,o=s.path;r!=="root"&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit(function(){s.set(t._state.data,o,s.state.value)})}}),t.subscribe(function(s,r){var o={};s.payload&&(o.payload=s.payload),o.state=r,n.notifyComponentUpdate(),n.sendInspectorTree(Er),n.sendInspectorState(Er),n.addTimelineEvent({layerId:ih,event:{time:Date.now(),title:s.type,data:o}})}),t.subscribeAction({before:function(s,r){var o={};s.payload&&(o.payload=s.payload),s._id=Vw++,s._time=Date.now(),o.state=r,n.addTimelineEvent({layerId:du,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:o}})},after:function(s,r){var o={},i=Date.now()-s._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},s.payload&&(o.payload=s.payload),o.state=r,n.addTimelineEvent({layerId:du,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:o}})}})})}var ah=8702998,Bw=6710886,Uw=16777215,b_={label:"namespaced",textColor:Uw,backgroundColor:Bw};function w_(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function k_(e,t){return{id:t||"root",label:w_(t),tags:e.namespaced?[b_]:[],children:Object.keys(e._children).map(function(n){return k_(e._children[n],t+n+"/")})}}function S_(e,t,n,s){s.includes(n)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:t.namespaced?[b_]:[]}),Object.keys(t._children).forEach(function(r){S_(e,t._children[r],n,s+r+"/")})}function Hw(e,t,n){t=n==="root"?t:t[n];var s=Object.keys(t),r={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(s.length){var o=zw(t);r.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?w_(i):i,editable:!1,value:ac(function(){return o[i]})}})}return r}function zw(e){var t={};return Object.keys(e).forEach(function(n){var s=n.split("/");if(s.length>1){var r=t,o=s.pop();s.forEach(function(i){r[i]||(r[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),r=r[i]._custom.value}),r[o]=ac(function(){return e[n]})}else t[n]=ac(function(){return e[n]})}),t}function qw(e,t){var n=t.split("/").filter(function(s){return s});return n.reduce(function(s,r,o){var i=s[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function ac(e){try{return e()}catch(t){return t}}var Wn=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=(typeof s=="function"?s():s)||{}},x_={namespaced:{configurable:!0}};x_.namespaced.get=function(){return!!this._rawModule.namespaced};Wn.prototype.addChild=function(t,n){this._children[t]=n};Wn.prototype.removeChild=function(t){delete this._children[t]};Wn.prototype.getChild=function(t){return this._children[t]};Wn.prototype.hasChild=function(t){return t in this._children};Wn.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};Wn.prototype.forEachChild=function(t){lo(this._children,t)};Wn.prototype.forEachGetter=function(t){this._rawModule.getters&&lo(this._rawModule.getters,t)};Wn.prototype.forEachAction=function(t){this._rawModule.actions&&lo(this._rawModule.actions,t)};Wn.prototype.forEachMutation=function(t){this._rawModule.mutations&&lo(this._rawModule.mutations,t)};Object.defineProperties(Wn.prototype,x_);var vr=function(t){this.register([],t,!1)};vr.prototype.get=function(t){return t.reduce(function(n,s){return n.getChild(s)},this.root)};vr.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(s,r){return n=n.getChild(r),s+(n.namespaced?r+"/":"")},"")};vr.prototype.update=function(t){E_([],this.root,t)};vr.prototype.register=function(t,n,s){var r=this;s===void 0&&(s=!0);var o=new Wn(n,s);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&lo(n.modules,function(a,l){r.register(t.concat(l),a,s)})};vr.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1],r=n.getChild(s);!r||!r.runtime||n.removeChild(s)};vr.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1];return n?n.hasChild(s):!1};function E_(e,t,n){if(t.update(n),n.modules)for(var s in n.modules){if(!t.getChild(s))return;E_(e.concat(s),t.getChild(s),n.modules[s])}}function Gw(e){return new mn(e)}var mn=function(t){var n=this;t===void 0&&(t={});var s=t.plugins;s===void 0&&(s=[]);var r=t.strict;r===void 0&&(r=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new vr(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var i=this,a=this,l=a.dispatch,c=a.commit;this.dispatch=function(f,m){return l.call(i,f,m)},this.commit=function(f,m,p){return c.call(i,f,m,p)},this.strict=r;var d=this._modules.root.state;Al(this,d,[],this._modules.root),hd(this,d),s.forEach(function(h){return h(n)})},pd={state:{configurable:!0}};mn.prototype.install=function(t,n){t.provide(n||Ow,this),t.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&jw(t,this)};pd.state.get=function(){return this._state.data};pd.state.set=function(e){};mn.prototype.commit=function(t,n,s){var r=this,o=Za(t,n,s),i=o.type,a=o.payload,l={type:i,payload:a},c=this._mutations[i];!c||(this._withCommit(function(){c.forEach(function(h){h(a)})}),this._subscribers.slice().forEach(function(d){return d(l,r.state)}))};mn.prototype.dispatch=function(t,n){var s=this,r=Za(t,n),o=r.type,i=r.payload,a={type:o,payload:i},l=this._actions[o];if(!!l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,s.state)})}catch{}var c=l.length>1?Promise.all(l.map(function(d){return d(i)})):l[0](i);return new Promise(function(d,h){c.then(function(f){try{s._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(a,s.state)})}catch{}d(f)},function(f){try{s._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(a,s.state,f)})}catch{}h(f)})})}};mn.prototype.subscribe=function(t,n){return g_(t,this._subscribers,n)};mn.prototype.subscribeAction=function(t,n){var s=typeof t=="function"?{before:t}:t;return g_(s,this._actionSubscribers,n)};mn.prototype.watch=function(t,n,s){var r=this;return jt(function(){return t(r.state,r.getters)},n,Object.assign({},s))};mn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};mn.prototype.registerModule=function(t,n,s){s===void 0&&(s={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Al(this,this.state,t,this._modules.get(t),s.preserveState),hd(this,this.state)};mn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var s=md(n.state,t.slice(0,-1));delete s[t[t.length-1]]}),v_(this)};mn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};mn.prototype.hotUpdate=function(t){this._modules.update(t),v_(this,!0)};mn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(mn.prototype,pd);const C_="UPDATE_CONFIG",$_="UPDATE_SETTINGS",Ol="UPDATE_SETTINGS_OPTION",A_="UPDATE_LIBRARY_STATS",O_="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",T_="UPDATE_LIBRARY_PODCASTS_COUNT",P_="UPDATE_LIBRARY_RSS_COUNT",D_="UPDATE_OUTPUTS",_d="UPDATE_PLAYER_STATUS",F_="UPDATE_QUEUE",I_="UPDATE_LASTFM",M_="UPDATE_SPOTIFY",R_="UPDATE_PAIRING",gd="SPOTIFY_NEW_RELEASES",vd="SPOTIFY_FEATURED_PLAYLISTS",lh="ADD_NOTIFICATION",lc="DELETE_NOTIFICATION",uc="SEARCH_PATH",yd="ADD_RECENT_SEARCH",Tl="HIDE_SINGLES",bd="HIDE_SPOTIFY",L_="ARTISTS_SORT",N_="ARTIST_ALBUMS_SORT",V_="ALBUMS_SORT",j_="SHOW_ONLY_NEXT_ITEMS",eo="SHOW_BURGER_MENU",to="SHOW_PLAYER_MENU",yi="SHOW_UPDATE_DIALOG",wd="UPDATE_DIALOG_SCAN_KIND";var at=Gw({state(){return{config:{websocket_port:0,version:"",buildoptions:[]},settings:{categories:[]},library:{artists:0,albums:0,songs:0,db_playtime:0,updating:!1},audiobooks_count:{},podcasts_count:{},rss_count:{},outputs:[],player:{state:"stop",repeat:"off",consume:!1,shuffle:!1,volume:0,item_id:0,item_length_ms:0,item_progress_ms:0},queue:{version:0,count:0,items:[]},lastfm:{},spotify:{},pairing:{},spotify_new_releases:[],spotify_featured_playlists:[],notifications:{next_id:1,list:[]},search_path:"/search/library",recent_searches:[],hide_singles:!1,hide_spotify:!1,artists_sort:"Name",artist_albums_sort:"Name",albums_sort:"Name",show_only_next_items:!1,show_burger_menu:!1,show_player_menu:!1,show_update_dialog:!1,update_dialog_scan_kind:""}},getters:{now_playing:e=>{const t=e.queue.items.find(function(n){return n.id===e.player.item_id});return t===void 0?{}:t},settings_webinterface:e=>e.settings?e.settings.categories.find(t=>t.name==="webinterface"):null,settings_option_recently_added_limit:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="recently_added_limit");if(n)return n.value}return 100},settings_option_show_composer_now_playing:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="show_composer_now_playing");if(n)return n.value}return!1},settings_option_show_composer_for_genre:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(s=>s.name==="show_composer_for_genre");if(n)return n.value}return null},settings_category:e=>t=>e.settings.categories.find(n=>n.name===t),settings_option:e=>(t,n)=>{const s=e.settings.categories.find(r=>r.name===t);return s?s.options.find(r=>r.name===n):{}}},mutations:{[C_](e,t){e.config=t},[$_](e,t){e.settings=t},[Ol](e,t){const s=e.settings.categories.find(r=>r.name===t.category).options.find(r=>r.name===t.name);s.value=t.value},[A_](e,t){e.library=t},[O_](e,t){e.audiobooks_count=t},[T_](e,t){e.podcasts_count=t},[P_](e,t){e.rss_count=t},[D_](e,t){e.outputs=t},[_d](e,t){e.player=t},[F_](e,t){e.queue=t},[I_](e,t){e.lastfm=t},[M_](e,t){e.spotify=t},[R_](e,t){e.pairing=t},[gd](e,t){e.spotify_new_releases=t},[vd](e,t){e.spotify_featured_playlists=t},[lh](e,t){if(t.topic){const n=e.notifications.list.findIndex(s=>s.topic===t.topic);if(n>=0){e.notifications.list.splice(n,1,t);return}}e.notifications.list.push(t)},[lc](e,t){const n=e.notifications.list.indexOf(t);n!==-1&&e.notifications.list.splice(n,1)},[uc](e,t){e.search_path=t},[yd](e,t){const n=e.recent_searches.findIndex(s=>s===t);n>=0&&e.recent_searches.splice(n,1),e.recent_searches.splice(0,0,t),e.recent_searches.length>5&&e.recent_searches.pop()},[Tl](e,t){e.hide_singles=t},[bd](e,t){e.hide_spotify=t},[L_](e,t){e.artists_sort=t},[N_](e,t){e.artist_albums_sort=t},[V_](e,t){e.albums_sort=t},[j_](e,t){e.show_only_next_items=t},[eo](e,t){e.show_burger_menu=t},[to](e,t){e.show_player_menu=t},[yi](e,t){e.show_update_dialog=t},[wd](e,t){e.update_dialog_scan_kind=t}},actions:{add_notification({commit:e,state:t},n){const s={id:t.notifications.next_id++,type:n.type,text:n.text,topic:n.topic,timeout:n.timeout};e(lh,s),n.timeout>0&&setTimeout(()=>{e(lc,s)},n.timeout)}}});/*!
|
|
* vue-router v4.0.14
|
|
* (c) 2022 Eduardo San Martin Morote
|
|
* @license MIT
|
|
*/const B_=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",uo=e=>B_?Symbol(e):"_vr_"+e,Ww=uo("rvlm"),uh=uo("rvd"),kd=uo("r"),U_=uo("rl"),cc=uo("rvl"),Rr=typeof window!="undefined";function Kw(e){return e.__esModule||B_&&e[Symbol.toStringTag]==="Module"}const yt=Object.assign;function fu(e,t){const n={};for(const s in t){const r=t[s];n[s]=Array.isArray(r)?r.map(e):e(r)}return n}const Wo=()=>{},Zw=/\/$/,Yw=e=>e.replace(Zw,"");function hu(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(s=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),r=e(o)),l>-1&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=e2(s!=null?s:t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:i}}function Jw(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function ch(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Xw(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&no(t.matched[s],n.matched[r])&&H_(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function no(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function H_(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Qw(e[n],t[n]))return!1;return!0}function Qw(e,t){return Array.isArray(e)?dh(e,t):Array.isArray(t)?dh(t,e):e===t}function dh(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function e2(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;o<s.length;o++)if(i=s[o],!(r===1||i==="."))if(i==="..")r--;else break;return n.slice(0,r).join("/")+"/"+s.slice(o-(o===s.length?1:0)).join("/")}var li;(function(e){e.pop="pop",e.push="push"})(li||(li={}));var Ko;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ko||(Ko={}));function t2(e){if(!e)if(Rr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Yw(e)}const n2=/^[^#]+#/;function s2(e,t){return e.replace(n2,"#")+t}function r2(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 Pl=()=>({left:window.pageXOffset,top:window.pageYOffset});function o2(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=r2(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 fh(e,t){return(history.state?history.state.position-t:-1)+e}const dc=new Map;function i2(e,t){dc.set(e,t)}function a2(e){const t=dc.get(e);return dc.delete(e),t}let l2=()=>location.protocol+"//"+location.host;function z_(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let a=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(a);return l[0]!=="/"&&(l="/"+l),ch(l,"")}return ch(n,e)+s+r}function u2(e,t,n,s){let r=[],o=[],i=null;const a=({state:f})=>{const m=z_(e,location),p=n.value,_=t.value;let g=0;if(f){if(n.value=m,t.value=f,i&&i===p){i=null;return}g=_?f.position-_.position:0}else s(m);r.forEach(y=>{y(n.value,p,{delta:g,type:li.pop,direction:g?g>0?Ko.forward:Ko.back:Ko.unknown})})};function l(){i=n.value}function c(f){r.push(f);const m=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return o.push(m),m}function d(){const{history:f}=window;!f.state||f.replaceState(yt({},f.state,{scroll:Pl()}),"")}function h(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:c,destroy:h}}function hh(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Pl():null}}function c2(e){const{history:t,location:n}=window,s={value:z_(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,c,d){const h=e.indexOf("#"),f=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+l:l2()+e+l;try{t[d?"replaceState":"pushState"](c,"",f),r.value=c}catch(m){console.error(m),n[d?"replace":"assign"](f)}}function i(l,c){const d=yt({},t.state,hh(r.value.back,l,r.value.forward,!0),c,{position:r.value.position});o(l,d,!0),s.value=l}function a(l,c){const d=yt({},r.value,t.state,{forward:l,scroll:Pl()});o(d.current,d,!0);const h=yt({},hh(s.value,l,null),{position:d.position+1},c);o(l,h,!1),s.value=l}return{location:s,state:r,push:a,replace:i}}function d2(e){e=t2(e);const t=c2(e),n=u2(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=yt({location:"",base:e,go:s,createHref:s2.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 f2(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),d2(e)}function h2(e){return typeof e=="string"||e&&typeof e=="object"}function q_(e){return typeof e=="string"||typeof e=="symbol"}const xs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},G_=uo("nf");var mh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(mh||(mh={}));function so(e,t){return yt(new Error,{type:e,[G_]:!0},t)}function Es(e,t){return e instanceof Error&&G_ in e&&(t==null||!!(e.type&t))}const ph="[^/]+?",m2={sensitive:!1,strict:!1,start:!0,end:!0},p2=/[.+*?^${}()[\]/\\]/g;function _2(e,t){const n=yt({},m2,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const d=c.length?[]:[90];n.strict&&!c.length&&(r+="/");for(let h=0;h<c.length;h++){const f=c[h];let m=40+(n.sensitive?.25:0);if(f.type===0)h||(r+="/"),r+=f.value.replace(p2,"\\$&"),m+=40;else if(f.type===1){const{value:p,repeatable:_,optional:g,regexp:y}=f;o.push({name:p,repeatable:_,optional:g});const b=y||ph;if(b!==ph){m+=10;try{new RegExp(`(${b})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${p}" (${b}): `+x.message)}}let S=_?`((?:${b})(?:/(?:${b}))*)`:`(${b})`;h||(S=g&&c.length<2?`(?:/${S})`:"/"+S),g&&(S+="?"),r+=S,m+=20,g&&(m+=-8),_&&(m+=-20),b===".*"&&(m+=-50)}d.push(m)}s.push(d)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function a(c){const d=c.match(i),h={};if(!d)return null;for(let f=1;f<d.length;f++){const m=d[f]||"",p=o[f-1];h[p.name]=m&&p.repeatable?m.split("/"):m}return h}function l(c){let d="",h=!1;for(const f of e){(!h||!d.endsWith("/"))&&(d+="/"),h=!1;for(const m of f)if(m.type===0)d+=m.value;else if(m.type===1){const{value:p,repeatable:_,optional:g}=m,y=p in c?c[p]:"";if(Array.isArray(y)&&!_)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const b=Array.isArray(y)?y.join("/"):y;if(!b)if(g)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):h=!0);else throw new Error(`Missing required param "${p}"`);d+=b}}return d}return{re:i,score:s,keys:o,parse:a,stringify:l}}function g2(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function v2(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=g2(s[n],r[n]);if(o)return o;n++}return r.length-s.length}const y2={type:0,value:""},b2=/[a-zA-Z0-9_]/;function w2(e){if(!e)return[[]];if(e==="/")return[[y2]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,l,c="",d="";function h(){!c||(n===0?o.push({type:0,value:c}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:c,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:l==="/"?(c&&h(),i()):l===":"?(h(),n=1):f();break;case 4:f(),n=s;break;case 1:l==="("?n=2:b2.test(l)?f():(h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:h(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${c}"`),h(),i(),r}function k2(e,t,n){const s=_2(w2(e.path),n),r=yt(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function S2(e,t){const n=[],s=new Map;t=gh({strict:!1,end:!0,sensitive:!1},t);function r(d){return s.get(d)}function o(d,h,f){const m=!f,p=E2(d);p.aliasOf=f&&f.record;const _=gh(t,d),g=[p];if("alias"in d){const S=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of S)g.push(yt({},p,{components:f?f.record.components:p.components,path:x,aliasOf:f?f.record:p}))}let y,b;for(const S of g){const{path:x}=S;if(h&&x[0]!=="/"){const C=h.record.path,A=C[C.length-1]==="/"?"":"/";S.path=h.record.path+(x&&A+x)}if(y=k2(S,h,_),f?f.alias.push(y):(b=b||y,b!==y&&b.alias.push(y),m&&d.name&&!_h(y)&&i(d.name)),"children"in p){const C=p.children;for(let A=0;A<C.length;A++)o(C[A],y,f&&f.children[A])}f=f||y,l(y)}return b?()=>{i(b)}:Wo}function i(d){if(q_(d)){const h=s.get(d);h&&(s.delete(d),n.splice(n.indexOf(h),1),h.children.forEach(i),h.alias.forEach(i))}else{const h=n.indexOf(d);h>-1&&(n.splice(h,1),d.record.name&&s.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){let h=0;for(;h<n.length&&v2(d,n[h])>=0&&(d.record.path!==n[h].record.path||!W_(d,n[h]));)h++;n.splice(h,0,d),d.record.name&&!_h(d)&&s.set(d.record.name,d)}function c(d,h){let f,m={},p,_;if("name"in d&&d.name){if(f=s.get(d.name),!f)throw so(1,{location:d});_=f.record.name,m=yt(x2(h.params,f.keys.filter(b=>!b.optional).map(b=>b.name)),d.params),p=f.stringify(m)}else if("path"in d)p=d.path,f=n.find(b=>b.re.test(p)),f&&(m=f.parse(p),_=f.record.name);else{if(f=h.name?s.get(h.name):n.find(b=>b.re.test(h.path)),!f)throw so(1,{location:d,currentLocation:h});_=f.record.name,m=yt({},h.params,d.params),p=f.stringify(m)}const g=[];let y=f;for(;y;)g.unshift(y.record),y=y.parent;return{name:_,path:p,params:m,matched:g,meta:$2(g)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:c,removeRoute:i,getRoutes:a,getRecordMatcher:r}}function x2(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function E2(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:C2(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function C2(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 _h(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function $2(e){return e.reduce((t,n)=>yt(t,n.meta),{})}function gh(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function W_(e,t){return t.children.some(n=>n===e||W_(e,n))}const K_=/#/g,A2=/&/g,O2=/\//g,T2=/=/g,P2=/\?/g,Z_=/\+/g,D2=/%5B/g,F2=/%5D/g,Y_=/%5E/g,I2=/%60/g,J_=/%7B/g,M2=/%7C/g,X_=/%7D/g,R2=/%20/g;function Sd(e){return encodeURI(""+e).replace(M2,"|").replace(D2,"[").replace(F2,"]")}function L2(e){return Sd(e).replace(J_,"{").replace(X_,"}").replace(Y_,"^")}function fc(e){return Sd(e).replace(Z_,"%2B").replace(R2,"+").replace(K_,"%23").replace(A2,"%26").replace(I2,"`").replace(J_,"{").replace(X_,"}").replace(Y_,"^")}function N2(e){return fc(e).replace(T2,"%3D")}function V2(e){return Sd(e).replace(K_,"%23").replace(P2,"%3F")}function j2(e){return e==null?"":V2(e).replace(O2,"%2F")}function Ya(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function B2(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(Z_," "),i=o.indexOf("="),a=Ya(i<0?o:o.slice(0,i)),l=i<0?null:Ya(o.slice(i+1));if(a in t){let c=t[a];Array.isArray(c)||(c=t[a]=[c]),c.push(l)}else t[a]=l}return t}function vh(e){let t="";for(let n in e){const s=e[n];if(n=N2(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(s)?s.map(o=>o&&fc(o)):[s&&fc(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function U2(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Array.isArray(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}function vo(){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 Os(e,t,n,s,r){const o=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((i,a)=>{const l=h=>{h===!1?a(so(4,{from:n,to:t})):h instanceof Error?a(h):h2(h)?a(so(2,{from:t,to:h})):(o&&s.enterCallbacks[r]===o&&typeof h=="function"&&o.push(h),i())},c=e.call(s&&s.instances[r],t,n,l);let d=Promise.resolve(c);e.length<3&&(d=d.then(l)),d.catch(h=>a(h))})}function mu(e,t,n,s){const r=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(H2(a)){const c=(a.__vccOpts||a)[t];c&&r.push(Os(c,n,s,o,i))}else{let l=a();r.push(()=>l.then(c=>{if(!c)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=Kw(c)?c.default:c;o.components[i]=d;const f=(d.__vccOpts||d)[t];return f&&Os(f,n,s,o,i)()}))}}return r}function H2(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function yh(e){const t=Qn(kd),n=Qn(U_),s=Wt(()=>t.resolve(Hr(e.to))),r=Wt(()=>{const{matched:l}=s.value,{length:c}=l,d=l[c-1],h=n.matched;if(!d||!h.length)return-1;const f=h.findIndex(no.bind(null,d));if(f>-1)return f;const m=bh(l[c-2]);return c>1&&bh(d)===m&&h[h.length-1].path!==m?h.findIndex(no.bind(null,l[c-2])):f}),o=Wt(()=>r.value>-1&&W2(n.params,s.value.params)),i=Wt(()=>r.value>-1&&r.value===n.matched.length-1&&H_(n.params,s.value.params));function a(l={}){return G2(l)?t[Hr(e.replace)?"replace":"push"](Hr(e.to)).catch(Wo):Promise.resolve()}return{route:s,href:Wt(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}const z2=pi({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:yh,setup(e,{slots:t}){const n=_r(yh(e)),{options:s}=Qn(kd),r=Wt(()=>({[wh(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[wh(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Is("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),q2=z2;function G2(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 W2(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(!Array.isArray(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function bh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const wh=(e,t,n)=>e!=null?e:t!=null?t:n,K2=pi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const s=Qn(cc),r=Wt(()=>e.route||s.value),o=Qn(uh,0),i=Wt(()=>r.value.matched[o]);Ho(uh,o+1),Ho(Ww,i),Ho(cc,r);const a=cs();return jt(()=>[a.value,i.value,e.name],([l,c,d],[h,f,m])=>{c&&(c.instances[d]=l,f&&f!==c&&l&&l===h&&(c.leaveGuards.size||(c.leaveGuards=f.leaveGuards),c.updateGuards.size||(c.updateGuards=f.updateGuards))),l&&c&&(!f||!no(c,f)||!h)&&(c.enterCallbacks[d]||[]).forEach(p=>p(l))},{flush:"post"}),()=>{const l=r.value,c=i.value,d=c&&c.components[e.name],h=e.name;if(!d)return kh(n.default,{Component:d,route:l});const f=c.props[e.name],m=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Is(d,yt({},m,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(c.instances[h]=null)},ref:a}));return kh(n.default,{Component:_,route:l})||_}}});function kh(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Z2=K2;function Y2(e){const t=S2(e.routes,e),n=e.parseQuery||B2,s=e.stringifyQuery||vh,r=e.history,o=vo(),i=vo(),a=vo(),l=np(xs);let c=xs;Rr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=fu.bind(null,U=>""+U),h=fu.bind(null,j2),f=fu.bind(null,Ya);function m(U,re){let ne,be;return q_(U)?(ne=t.getRecordMatcher(U),be=re):be=U,t.addRoute(be,ne)}function p(U){const re=t.getRecordMatcher(U);re&&t.removeRoute(re)}function _(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,re){if(re=yt({},re||l.value),typeof U=="string"){const De=hu(n,U,re.path),$=t.resolve({path:De.path},re),L=r.createHref(De.fullPath);return yt(De,$,{params:f($.params),hash:Ya(De.hash),redirectedFrom:void 0,href:L})}let ne;if("path"in U)ne=yt({},U,{path:hu(n,U.path,re.path).path});else{const De=yt({},U.params);for(const $ in De)De[$]==null&&delete De[$];ne=yt({},U,{params:h(U.params)}),re.params=h(re.params)}const be=t.resolve(ne,re),Ue=U.hash||"";be.params=d(f(be.params));const Me=Jw(s,yt({},U,{hash:L2(Ue),path:be.path})),Ae=r.createHref(Me);return yt({fullPath:Me,hash:Ue,query:s===vh?U2(U.query):U.query||{}},be,{redirectedFrom:void 0,href:Ae})}function b(U){return typeof U=="string"?hu(n,U,l.value.path):yt({},U)}function S(U,re){if(c!==U)return so(8,{from:re,to:U})}function x(U){return M(U)}function C(U){return x(yt(b(U),{replace:!0}))}function A(U){const re=U.matched[U.matched.length-1];if(re&&re.redirect){const{redirect:ne}=re;let be=typeof ne=="function"?ne(U):ne;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=b(be):{path:be},be.params={}),yt({query:U.query,hash:U.hash,params:U.params},be)}}function M(U,re){const ne=c=y(U),be=l.value,Ue=U.state,Me=U.force,Ae=U.replace===!0,De=A(ne);if(De)return M(yt(b(De),{state:Ue,force:Me,replace:Ae}),re||ne);const $=ne;$.redirectedFrom=re;let L;return!Me&&Xw(s,be,ne)&&(L=so(16,{to:$,from:be}),qe(be,be,!0,!1)),(L?Promise.resolve(L):O($,be)).catch(K=>Es(K)?Es(K,2)?K:Le(K):ae(K,$,be)).then(K=>{if(K){if(Es(K,2))return M(yt(b(K.to),{state:Ue,force:Me,replace:Ae}),re||$)}else K=q($,be,!0,Ae,Ue);return V($,be,K),K})}function j(U,re){const ne=S(U,re);return ne?Promise.reject(ne):Promise.resolve()}function O(U,re){let ne;const[be,Ue,Me]=J2(U,re);ne=mu(be.reverse(),"beforeRouteLeave",U,re);for(const De of be)De.leaveGuards.forEach($=>{ne.push(Os($,U,re))});const Ae=j.bind(null,U,re);return ne.push(Ae),Cr(ne).then(()=>{ne=[];for(const De of o.list())ne.push(Os(De,U,re));return ne.push(Ae),Cr(ne)}).then(()=>{ne=mu(Ue,"beforeRouteUpdate",U,re);for(const De of Ue)De.updateGuards.forEach($=>{ne.push(Os($,U,re))});return ne.push(Ae),Cr(ne)}).then(()=>{ne=[];for(const De of U.matched)if(De.beforeEnter&&!re.matched.includes(De))if(Array.isArray(De.beforeEnter))for(const $ of De.beforeEnter)ne.push(Os($,U,re));else ne.push(Os(De.beforeEnter,U,re));return ne.push(Ae),Cr(ne)}).then(()=>(U.matched.forEach(De=>De.enterCallbacks={}),ne=mu(Me,"beforeRouteEnter",U,re),ne.push(Ae),Cr(ne))).then(()=>{ne=[];for(const De of i.list())ne.push(Os(De,U,re));return ne.push(Ae),Cr(ne)}).catch(De=>Es(De,8)?De:Promise.reject(De))}function V(U,re,ne){for(const be of a.list())be(U,re,ne)}function q(U,re,ne,be,Ue){const Me=S(U,re);if(Me)return Me;const Ae=re===xs,De=Rr?history.state:{};ne&&(be||Ae?r.replace(U.fullPath,yt({scroll:Ae&&De&&De.scroll},Ue)):r.push(U.fullPath,Ue)),l.value=U,qe(U,re,ne,Ae),Le()}let F;function B(){F=r.listen((U,re,ne)=>{const be=y(U),Ue=A(be);if(Ue){M(yt(Ue,{replace:!0}),be).catch(Wo);return}c=be;const Me=l.value;Rr&&i2(fh(Me.fullPath,ne.delta),Pl()),O(be,Me).catch(Ae=>Es(Ae,12)?Ae:Es(Ae,2)?(M(Ae.to,be).then(De=>{Es(De,20)&&!ne.delta&&ne.type===li.pop&&r.go(-1,!1)}).catch(Wo),Promise.reject()):(ne.delta&&r.go(-ne.delta,!1),ae(Ae,be,Me))).then(Ae=>{Ae=Ae||q(be,Me,!1),Ae&&(ne.delta?r.go(-ne.delta,!1):ne.type===li.pop&&Es(Ae,20)&&r.go(-1,!1)),V(be,Me,Ae)}).catch(Wo)})}let W=vo(),ue=vo(),te;function ae(U,re,ne){Le(U);const be=ue.list();return be.length?be.forEach(Ue=>Ue(U,re,ne)):console.error(U),Promise.reject(U)}function ve(){return te&&l.value!==xs?Promise.resolve():new Promise((U,re)=>{W.add([U,re])})}function Le(U){return te||(te=!U,B(),W.list().forEach(([re,ne])=>U?ne(U):re()),W.reset()),U}function qe(U,re,ne,be){const{scrollBehavior:Ue}=e;if(!Rr||!Ue)return Promise.resolve();const Me=!ne&&a2(fh(U.fullPath,0))||(be||!ne)&&history.state&&history.state.scroll||null;return gl().then(()=>Ue(U,re,Me)).then(Ae=>Ae&&o2(Ae)).catch(Ae=>ae(Ae,U,re))}const me=U=>r.go(U);let Y;const ce=new Set;return{currentRoute:l,addRoute:m,removeRoute:p,hasRoute:g,getRoutes:_,resolve:y,options:e,push:x,replace:C,go:me,back:()=>me(-1),forward:()=>me(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:ue.add,isReady:ve,install(U){const re=this;U.component("RouterLink",q2),U.component("RouterView",Z2),U.config.globalProperties.$router=re,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>Hr(l)}),Rr&&!Y&&l.value===xs&&(Y=!0,x(r.location).catch(Ue=>{}));const ne={};for(const Ue in xs)ne[Ue]=Wt(()=>l.value[Ue]);U.provide(kd,re),U.provide(U_,_r(ne)),U.provide(cc,l);const be=U.unmount;ce.add(U),U.unmount=function(){ce.delete(U),ce.size<1&&(c=xs,F&&F(),l.value=xs,Y=!1,te=!1),be()}}}}function Cr(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function J2(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(c=>no(c,a))?s.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(c=>no(c,l))||r.push(l))}return[n,s,r]}var ge=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n};const X2={name:"ContentWithHeading",data(){return{options_visible:!1}},mounted(){this.$slots.options&&(this.observer=new IntersectionObserver(this.onElementObserved,{rootMargin:"-82px 0px 0px 0px",threshold:1}),this.observer.observe(this.$refs.options_ref))},methods:{onElementObserved(e){e.forEach(({target:t,isIntersecting:n})=>{this.options_visible=n})},scroll_to_top:function(){window.scrollTo({top:0,behavior:"smooth"})},scroll_to_content:function(){this.$route.meta.has_tabs?this.$scrollTo("#top",{offset:-140}):this.$scrollTo("#top",{offset:-110})},visibilityChanged:function(e){this.options_visible=e}}},Q2={class:"section fd-content"},ek={class:"container"},tk={class:"columns is-centered"},nk={class:"column is-four-fifths"},sk={key:0},rk={ref:"options_ref",style:{height:"1px"}},ok={class:"buttons is-centered",style:{"margin-bottom":"6px","margin-top":"16px"}},ik={class:"icon is-small"},ak={class:"icon is-small"},lk={id:"top",class:"level"},uk={class:"level-left"},ck={class:"level-item has-text-centered-mobile"},dk={class:"level-right has-text-centered-mobile"},fk={style:{"margin-top":"16px"}};function hk(e,t,n,s,r,o){const i=P("mdicon");return E(),D("section",Q2,[u("div",ek,[u("div",tk,[u("div",nk,[e.$slots.options?(E(),D("section",sk,[u("div",rk,null,512),St(e.$slots,"options"),u("nav",ok,[r.options_visible?(E(),D("a",{key:1,class:"button is-small is-white",onClick:t[1]||(t[1]=(...a)=>o.scroll_to_content&&o.scroll_to_content(...a))},[u("span",ak,[w(i,{name:"chevron-down",size:"16"})])])):(E(),D("a",{key:0,class:"button is-small is-white",onClick:t[0]||(t[0]=(...a)=>o.scroll_to_top&&o.scroll_to_top(...a))},[u("span",ik,[w(i,{name:"chevron-up",size:"16"})])]))])])):Z("",!0),u("div",{class:We({"fd-content-with-option":e.$slots.options})},[u("nav",lk,[u("div",uk,[u("div",ck,[u("div",null,[St(e.$slots,"heading-left")])])]),u("div",dk,[St(e.$slots,"heading-right")])]),St(e.$slots,"content"),u("div",fk,[St(e.$slots,"footer")])],2)])])])])}var ht=ge(X2,[["render",hk]]),tn=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Q_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function eg(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t}var xd={exports:{}},tg=function(t,n){return function(){for(var r=new Array(arguments.length),o=0;o<r.length;o++)r[o]=arguments[o];return t.apply(n,r)}},mk=tg,Ws=Object.prototype.toString;function Ed(e){return Array.isArray(e)}function hc(e){return typeof e=="undefined"}function pk(e){return e!==null&&!hc(e)&&e.constructor!==null&&!hc(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function ng(e){return Ws.call(e)==="[object ArrayBuffer]"}function _k(e){return Ws.call(e)==="[object FormData]"}function gk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ng(e.buffer),t}function vk(e){return typeof e=="string"}function yk(e){return typeof e=="number"}function sg(e){return e!==null&&typeof e=="object"}function Da(e){if(Ws.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function bk(e){return Ws.call(e)==="[object Date]"}function wk(e){return Ws.call(e)==="[object File]"}function kk(e){return Ws.call(e)==="[object Blob]"}function rg(e){return Ws.call(e)==="[object Function]"}function Sk(e){return sg(e)&&rg(e.pipe)}function xk(e){return Ws.call(e)==="[object URLSearchParams]"}function Ek(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Ck(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function Cd(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),Ed(e))for(var n=0,s=e.length;n<s;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}function mc(){var e={};function t(r,o){Da(e[o])&&Da(r)?e[o]=mc(e[o],r):Da(r)?e[o]=mc({},r):Ed(r)?e[o]=r.slice():e[o]=r}for(var n=0,s=arguments.length;n<s;n++)Cd(arguments[n],t);return e}function $k(e,t,n){return Cd(t,function(r,o){n&&typeof r=="function"?e[o]=mk(r,n):e[o]=r}),e}function Ak(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var pn={isArray:Ed,isArrayBuffer:ng,isBuffer:pk,isFormData:_k,isArrayBufferView:gk,isString:vk,isNumber:yk,isObject:sg,isPlainObject:Da,isUndefined:hc,isDate:bk,isFile:wk,isBlob:kk,isFunction:rg,isStream:Sk,isURLSearchParams:xk,isStandardBrowserEnv:Ck,forEach:Cd,merge:mc,extend:$k,trim:Ek,stripBOM:Ak},$r=pn;function Sh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var og=function(t,n,s){if(!n)return t;var r;if(s)r=s(n);else if($r.isURLSearchParams(n))r=n.toString();else{var o=[];$r.forEach(n,function(l,c){l===null||typeof l=="undefined"||($r.isArray(l)?c=c+"[]":l=[l],$r.forEach(l,function(h){$r.isDate(h)?h=h.toISOString():$r.isObject(h)&&(h=JSON.stringify(h)),o.push(Sh(c)+"="+Sh(h))}))}),r=o.join("&")}if(r){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t},Ok=pn;function Dl(){this.handlers=[]}Dl.prototype.use=function(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};Dl.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};Dl.prototype.forEach=function(t){Ok.forEach(this.handlers,function(s){s!==null&&t(s)})};var Tk=Dl,Pk=pn,Dk=function(t,n){Pk.forEach(t,function(r,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=r,delete t[o])})},ig=function(t,n,s,r,o){return t.config=n,s&&(t.code=s),t.request=r,t.response=o,t.isAxiosError=!0,t.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:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},ag={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Fk=ig,lg=function(t,n,s,r,o){var i=new Error(t);return Fk(i,n,s,r,o)},Ik=lg,Mk=function(t,n,s){var r=s.config.validateStatus;!s.status||!r||r(s.status)?t(s):n(Ik("Request failed with status code "+s.status,s.config,null,s.request,s))},Bi=pn,Rk=Bi.isStandardBrowserEnv()?function(){return{write:function(n,s,r,o,i,a){var l=[];l.push(n+"="+encodeURIComponent(s)),Bi.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),Bi.isString(o)&&l.push("path="+o),Bi.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var 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(){}}}(),Lk=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},Nk=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},Vk=Lk,jk=Nk,Bk=function(t,n){return t&&!Vk(n)?jk(t,n):n},pu=pn,Uk=["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"],Hk=function(t){var n={},s,r,o;return t&&pu.forEach(t.split(`
|
|
`),function(a){if(o=a.indexOf(":"),s=pu.trim(a.substr(0,o)).toLowerCase(),r=pu.trim(a.substr(o+1)),s){if(n[s]&&Uk.indexOf(s)>=0)return;s==="set-cookie"?n[s]=(n[s]?n[s]:[]).concat([r]):n[s]=n[s]?n[s]+", "+r:r}}),n},xh=pn,zk=xh.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),s;function r(o){var 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){var a=xh.isString(i)?r(i):i;return a.protocol===s.protocol&&a.host===s.host}}():function(){return function(){return!0}}();function $d(e){this.message=e}$d.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};$d.prototype.__CANCEL__=!0;var Fl=$d,Ui=pn,qk=Mk,Gk=Rk,Wk=og,Kk=Bk,Zk=Hk,Yk=zk,_u=lg,Jk=ag,Xk=Fl,Eh=function(t){return new Promise(function(s,r){var o=t.data,i=t.headers,a=t.responseType,l;function c(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}Ui.isFormData(o)&&delete i["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var h=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(h+":"+f)}var m=Kk(t.baseURL,t.url);d.open(t.method.toUpperCase(),Wk(m,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function p(){if(!!d){var g="getAllResponseHeaders"in d?Zk(d.getAllResponseHeaders()):null,y=!a||a==="text"||a==="json"?d.responseText:d.response,b={data:y,status:d.status,statusText:d.statusText,headers:g,config:t,request:d};qk(function(x){s(x),c()},function(x){r(x),c()},b),d=null}}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){!d||(r(_u("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(_u("Network Error",t,null,d)),d=null},d.ontimeout=function(){var y=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",b=t.transitional||Jk;t.timeoutErrorMessage&&(y=t.timeoutErrorMessage),r(_u(y,t,b.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},Ui.isStandardBrowserEnv()){var _=(t.withCredentials||Yk(m))&&t.xsrfCookieName?Gk.read(t.xsrfCookieName):void 0;_&&(i[t.xsrfHeaderName]=_)}"setRequestHeader"in d&&Ui.forEach(i,function(y,b){typeof o=="undefined"&&b.toLowerCase()==="content-type"?delete i[b]:d.setRequestHeader(b,y)}),Ui.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),a&&a!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(g){!d||(r(!g||g&&g.type?new Xk("canceled"):g),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),o||(o=null),d.send(o)})},Yt=pn,Ch=Dk,Qk=ig,eS=ag,tS={"Content-Type":"application/x-www-form-urlencoded"};function $h(e,t){!Yt.isUndefined(e)&&Yt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function nS(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Eh),e}function sS(e,t,n){if(Yt.isString(e))try{return(t||JSON.parse)(e),Yt.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(n||JSON.stringify)(e)}var Il={transitional:eS,adapter:nS(),transformRequest:[function(t,n){return Ch(n,"Accept"),Ch(n,"Content-Type"),Yt.isFormData(t)||Yt.isArrayBuffer(t)||Yt.isBuffer(t)||Yt.isStream(t)||Yt.isFile(t)||Yt.isBlob(t)?t:Yt.isArrayBufferView(t)?t.buffer:Yt.isURLSearchParams(t)?($h(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Yt.isObject(t)||n&&n["Content-Type"]==="application/json"?($h(n,"application/json"),sS(t)):t}],transformResponse:[function(t){var n=this.transitional||Il.transitional,s=n&&n.silentJSONParsing,r=n&&n.forcedJSONParsing,o=!s&&this.responseType==="json";if(o||r&&Yt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?Qk(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Yt.forEach(["delete","get","head"],function(t){Il.headers[t]={}});Yt.forEach(["post","put","patch"],function(t){Il.headers[t]=Yt.merge(tS)});var Ad=Il,rS=pn,oS=Ad,iS=function(t,n,s){var r=this||oS;return rS.forEach(s,function(i){t=i.call(r,t,n)}),t},ug=function(t){return!!(t&&t.__CANCEL__)},Ah=pn,gu=iS,aS=ug,lS=Ad,uS=Fl;function vu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new uS("canceled")}var cS=function(t){vu(t),t.headers=t.headers||{},t.data=gu.call(t,t.data,t.headers,t.transformRequest),t.headers=Ah.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ah.forEach(["delete","get","head","post","put","patch","common"],function(r){delete t.headers[r]});var n=t.adapter||lS.adapter;return n(t).then(function(r){return vu(t),r.data=gu.call(t,r.data,r.headers,t.transformResponse),r},function(r){return aS(r)||(vu(t),r&&r.response&&(r.response.data=gu.call(t,r.response.data,r.response.headers,t.transformResponse))),Promise.reject(r)})},_n=pn,cg=function(t,n){n=n||{};var s={};function r(d,h){return _n.isPlainObject(d)&&_n.isPlainObject(h)?_n.merge(d,h):_n.isPlainObject(h)?_n.merge({},h):_n.isArray(h)?h.slice():h}function o(d){if(_n.isUndefined(n[d])){if(!_n.isUndefined(t[d]))return r(void 0,t[d])}else return r(t[d],n[d])}function i(d){if(!_n.isUndefined(n[d]))return r(void 0,n[d])}function a(d){if(_n.isUndefined(n[d])){if(!_n.isUndefined(t[d]))return r(void 0,t[d])}else return r(void 0,n[d])}function l(d){if(d in n)return r(t[d],n[d]);if(d in t)return r(void 0,t[d])}var c={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return _n.forEach(Object.keys(t).concat(Object.keys(n)),function(h){var f=c[h]||o,m=f(h);_n.isUndefined(m)&&f!==l||(s[h]=m)}),s},dg={version:"0.26.1"},dS=dg.version,Od={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){Od[e]=function(s){return typeof s===e||"a"+(t<1?"n ":" ")+e}});var Oh={};Od.transitional=function(t,n,s){function r(o,i){return"[Axios v"+dS+"] Transitional option '"+o+"'"+i+(s?". "+s:"")}return function(o,i,a){if(t===!1)throw new Error(r(i," has been removed"+(n?" in "+n:"")));return n&&!Oh[i]&&(Oh[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function fS(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var s=Object.keys(e),r=s.length;r-- >0;){var o=s[r],i=t[o];if(i){var a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new TypeError("option "+o+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+o)}}var hS={assertOptions:fS,validators:Od},fg=pn,mS=og,Th=Tk,Ph=cS,Ml=cg,hg=hS,Ar=hg.validators;function bi(e){this.defaults=e,this.interceptors={request:new Th,response:new Th}}bi.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ml(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var s=n.transitional;s!==void 0&&hg.assertOptions(s,{silentJSONParsing:Ar.transitional(Ar.boolean),forcedJSONParsing:Ar.transitional(Ar.boolean),clarifyTimeoutError:Ar.transitional(Ar.boolean)},!1);var r=[],o=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(o=o&&m.synchronous,r.unshift(m.fulfilled,m.rejected))});var i=[];this.interceptors.response.forEach(function(m){i.push(m.fulfilled,m.rejected)});var a;if(!o){var l=[Ph,void 0];for(Array.prototype.unshift.apply(l,r),l=l.concat(i),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var c=n;r.length;){var d=r.shift(),h=r.shift();try{c=d(c)}catch(f){h(f);break}}try{a=Ph(c)}catch(f){return Promise.reject(f)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};bi.prototype.getUri=function(t){return t=Ml(this.defaults,t),mS(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};fg.forEach(["delete","get","head","options"],function(t){bi.prototype[t]=function(n,s){return this.request(Ml(s||{},{method:t,url:n,data:(s||{}).data}))}});fg.forEach(["post","put","patch"],function(t){bi.prototype[t]=function(n,s,r){return this.request(Ml(r||{},{method:t,url:n,data:s}))}});var pS=bi,_S=Fl;function ro(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(r){t=r});var n=this;this.promise.then(function(s){if(!!n._listeners){var r,o=n._listeners.length;for(r=0;r<o;r++)n._listeners[r](s);n._listeners=null}}),this.promise.then=function(s){var r,o=new Promise(function(i){n.subscribe(i),r=i}).then(s);return o.cancel=function(){n.unsubscribe(r)},o},e(function(r){n.reason||(n.reason=new _S(r),t(n.reason))})}ro.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};ro.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};ro.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};ro.source=function(){var t,n=new ro(function(r){t=r});return{token:n,cancel:t}};var gS=ro,vS=function(t){return function(s){return t.apply(null,s)}},yS=pn,bS=function(t){return yS.isObject(t)&&t.isAxiosError===!0},Dh=pn,wS=tg,Fa=pS,kS=cg,SS=Ad;function mg(e){var t=new Fa(e),n=wS(Fa.prototype.request,t);return Dh.extend(n,Fa.prototype,t),Dh.extend(n,t),n.create=function(r){return mg(kS(e,r))},n}var ss=mg(SS);ss.Axios=Fa;ss.Cancel=Fl;ss.CancelToken=gS;ss.isCancel=ug;ss.VERSION=dg.version;ss.all=function(t){return Promise.all(t)};ss.spread=vS;ss.isAxiosError=bS;xd.exports=ss;xd.exports.default=ss;var Oe=xd.exports;Oe.interceptors.response.use(function(e){return e},function(e){return e.request.status&&e.request.responseURL&&at.dispatch("add_notification",{text:"Request failed (status: "+e.request.status+" "+e.request.statusText+", url: "+e.request.responseURL+")",type:"danger"}),Promise.reject(e)});var G={config(){return Oe.get("./api/config")},settings(){return Oe.get("./api/settings")},settings_update(e,t){return Oe.put("./api/settings/"+e+"/"+t.name,t)},library_stats(){return Oe.get("./api/library")},library_update(e){const t={};return e&&(t.scan_kind=e),Oe.put("./api/update",void 0,{params:t})},library_rescan(e){const t={};return e&&(t.scan_kind=e),Oe.put("./api/rescan",void 0,{params:t})},library_count(e){return Oe.get("./api/library/count?expression="+e)},queue(){return Oe.get("./api/queue")},queue_clear(){return Oe.put("./api/queue/clear")},queue_remove(e){return Oe.delete("./api/queue/items/"+e)},queue_move(e,t){return Oe.put("./api/queue/items/"+e+"?new_position="+t)},queue_add(e){return Oe.post("./api/queue/items/add?uris="+e).then(t=>(at.dispatch("add_notification",{text:t.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(t)))},queue_add_next(e){let t=0;return at.getters.now_playing&&at.getters.now_playing.id&&(t=at.getters.now_playing.position+1),Oe.post("./api/queue/items/add?uris="+e+"&position="+t).then(n=>(at.dispatch("add_notification",{text:n.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add(e){const t={};return t.expression=e,Oe.post("./api/queue/items/add",void 0,{params:t}).then(n=>(at.dispatch("add_notification",{text:n.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add_next(e){const t={};return t.expression=e,t.position=0,at.getters.now_playing&&at.getters.now_playing.id&&(t.position=at.getters.now_playing.position+1),Oe.post("./api/queue/items/add",void 0,{params:t}).then(n=>(at.dispatch("add_notification",{text:n.data.count+" tracks appended to queue",type:"info",timeout:2e3}),Promise.resolve(n)))},queue_save_playlist(e){return Oe.post("./api/queue/save",void 0,{params:{name:e}}).then(t=>(at.dispatch("add_notification",{text:'Queue saved to playlist "'+e+'"',type:"info",timeout:2e3}),Promise.resolve(t)))},player_status(){return Oe.get("./api/player")},player_play_uri(e,t,n=void 0){const s={};return s.uris=e,s.shuffle=t?"true":"false",s.clear="true",s.playback="start",s.playback_from_position=n,Oe.post("./api/queue/items/add",void 0,{params:s})},player_play_expression(e,t,n=void 0){const s={};return s.expression=e,s.shuffle=t?"true":"false",s.clear="true",s.playback="start",s.playback_from_position=n,Oe.post("./api/queue/items/add",void 0,{params:s})},player_play(e={}){return Oe.put("./api/player/play",void 0,{params:e})},player_playpos(e){return Oe.put("./api/player/play?position="+e)},player_playid(e){return Oe.put("./api/player/play?item_id="+e)},player_pause(){return Oe.put("./api/player/pause")},player_stop(){return Oe.put("./api/player/stop")},player_next(){return Oe.put("./api/player/next")},player_previous(){return Oe.put("./api/player/previous")},player_shuffle(e){const t=e?"true":"false";return Oe.put("./api/player/shuffle?state="+t)},player_consume(e){const t=e?"true":"false";return Oe.put("./api/player/consume?state="+t)},player_repeat(e){return Oe.put("./api/player/repeat?state="+e)},player_volume(e){return Oe.put("./api/player/volume?volume="+e)},player_output_volume(e,t){return Oe.put("./api/player/volume?volume="+t+"&output_id="+e)},player_seek_to_pos(e){return Oe.put("./api/player/seek?position_ms="+e)},player_seek(e){return Oe.put("./api/player/seek?seek_ms="+e)},outputs(){return Oe.get("./api/outputs")},output_update(e,t){return Oe.put("./api/outputs/"+e,t)},output_toggle(e){return Oe.put("./api/outputs/"+e+"/toggle")},library_artists(e=void 0){return Oe.get("./api/library/artists",{params:{media_kind:e}})},library_artist(e){return Oe.get("./api/library/artists/"+e)},library_artist_albums(e){return Oe.get("./api/library/artists/"+e+"/albums")},library_albums(e=void 0){return Oe.get("./api/library/albums",{params:{media_kind:e}})},library_album(e){return Oe.get("./api/library/albums/"+e)},library_album_tracks(e,t={limit:-1,offset:0}){return Oe.get("./api/library/albums/"+e+"/tracks",{params:t})},library_album_track_update(e,t){return Oe.put("./api/library/albums/"+e+"/tracks",void 0,{params:t})},library_genres(e=void 0){return Oe.get("./api/library/genres",{params:{media_kind:e}})},library_genre(e){return Oe.get(`./api/library/genres/${encodeURIComponent(e)}`)},library_genre_albums(e){const t={type:"albums",expression:`genre is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_genre_tracks(e){const t={type:"tracks",expression:`genre is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_radio_streams(){const e={type:"tracks",media_kind:"music",expression:"data_kind is url and song_length = 0"};return Oe.get("./api/search",{params:e})},library_composers(e=void 0){return Oe.get("./api/library/composers",{params:{media_kind:e}})},library_composer(e){return Oe.get(`./api/library/composers/${encodeURIComponent(e)}`)},library_composer_albums(e){const t={type:"albums",expression:`composer is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_composer_tracks(e){const t={type:"tracks",expression:`composer is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_artist_tracks(e){if(e){const t={type:"tracks",expression:'songartistid is "'+e+'"'};return Oe.get("./api/search",{params:t})}},library_podcasts_new_episodes(){const e={type:"tracks",expression:"media_kind is podcast and play_count = 0 ORDER BY time_added DESC"};return Oe.get("./api/search",{params:e})},library_podcast_episodes(e){const t={type:"tracks",expression:'media_kind is podcast and songalbumid is "'+e+'" ORDER BY date_released DESC'};return Oe.get("./api/search",{params:t})},library_add(e){return Oe.post("./api/library/add",void 0,{params:{url:e}})},library_playlist_delete(e){return Oe.delete("./api/library/playlists/"+e,void 0)},library_playlists(){return Oe.get("./api/library/playlists")},library_playlist_folder(e=0){return Oe.get("./api/library/playlists/"+e+"/playlists")},library_playlist(e){return Oe.get("./api/library/playlists/"+e)},library_playlist_tracks(e){return Oe.get("./api/library/playlists/"+e+"/tracks")},library_track(e){return Oe.get("./api/library/tracks/"+e)},library_track_playlists(e){return Oe.get("./api/library/tracks/"+e+"/playlists")},library_track_update(e,t={}){return Oe.put("./api/library/tracks/"+e,void 0,{params:t})},library_files(e=void 0){const t={directory:e};return Oe.get("./api/library/files",{params:t})},search(e){return Oe.get("./api/search",{params:e})},spotify(){return Oe.get("./api/spotify")},spotify_login(e){return Oe.post("./api/spotify-login",e)},spotify_logout(){return Oe.get("./api/spotify-logout")},lastfm(){return Oe.get("./api/lastfm")},lastfm_login(e){return Oe.post("./api/lastfm-login",e)},lastfm_logout(e){return Oe.get("./api/lastfm-logout")},pairing(){return Oe.get("./api/pairing")},pairing_kickoff(e){return Oe.post("./api/pairing",e)},artwork_url_append_size_params(e,t=600,n=600){return e&&e.startsWith("/")?e.includes("?")?e+"&maxwidth="+t+"&maxheight="+n:e+"?maxwidth="+t+"&maxheight="+n:e}};const xS={name:"ListItemQueueItem",props:["item","position","current_position","show_only_next_items","edit_mode"],computed:{state(){return this.$store.state.player},is_next(){return this.current_position<0||this.position>=this.current_position}},methods:{play:function(){G.player_play({item_id:this.item.id})}}},ES={key:0,class:"media"},CS={key:0,class:"media-left"},$S={class:"icon has-text-grey fd-is-movable handle"},AS={class:"media-right"};function OS(e,t,n,s,r,o){const i=P("mdicon");return o.is_next||!n.show_only_next_items?(E(),D("div",ES,[n.edit_mode?(E(),D("div",CS,[u("span",$S,[w(i,{name:"drag-horizontal",size:"16"})])])):Z("",!0),u("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...a)=>o.play&&o.play(...a))},[u("h1",{class:We(["title is-6",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next}])},R(n.item.title),3),u("h2",{class:We(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}])},[u("b",null,R(n.item.artist),1)],2),u("h2",{class:We(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}])},R(n.item.album),3)]),u("div",AS,[St(e.$slots,"actions")])])):Z("",!0)}var TS=ge(xS,[["render",OS]]),pg={exports:{}};(function(e){var t=function(){var n="https://api.spotify.com/v1",s=null,r=null,o=function(f,m){return f.abort=m,f},i=function(f,m){var p;if(r!==null){var _=r.defer();f(function(g){_.resolve(g)},function(g){_.reject(g)}),p=_.promise}else window.Promise&&(p=new window.Promise(f));return p?new o(p,m):null},a=function(){var f=Array.prototype.slice.call(arguments),m=f[0],p=f.slice(1);return m=m||{},p.forEach(function(_){for(var g in _)_.hasOwnProperty(g)&&(m[g]=_[g])}),m},l=function(f,m){var p="";for(var _ in m)if(m.hasOwnProperty(_)){var g=m[_];p+=encodeURIComponent(_)+"="+encodeURIComponent(g)+"&"}return p.length>0&&(p=p.substring(0,p.length-1),f=f+"?"+p),f},c=function(f,m){var p=new XMLHttpRequest,_=function(g,y){function b(A){g&&g(A),m&&m(null,A)}function S(){y&&y(p),m&&m(p,null)}var x=f.type||"GET";if(p.open(x,l(f.url,f.params)),s&&p.setRequestHeader("Authorization","Bearer "+s),p.onreadystatechange=function(){if(p.readyState===4){var A=null;try{A=p.responseText?JSON.parse(p.responseText):""}catch(M){console.error(M)}p.status>=200&&p.status<300?b(A):S()}},x==="GET")p.send(null);else{var C=null;f.postData&&(f.contentType==="image/jpeg"?(C=f.postData,p.setRequestHeader("Content-Type",f.contentType)):(C=JSON.stringify(f.postData),p.setRequestHeader("Content-Type","application/json"))),p.send(C)}};return m?(_(),null):i(_,function(){p.abort()})},d=function(f,m,p,_){var g={},y=null;typeof m=="object"?(g=m,y=p):typeof m=="function"&&(y=m);var b=f.type||"GET";return b!=="GET"&&f.postData&&!_?f.postData=a(f.postData,g):f.params=a(f.params,g),c(f,y)},h=function(){};return h.prototype={constructor:t},h.prototype.getGeneric=function(f,m){var p={url:f};return d(p,m)},h.prototype.getMe=function(f,m){var p={url:n+"/me"};return d(p,f,m)},h.prototype.getMySavedTracks=function(f,m){var p={url:n+"/me/tracks"};return d(p,f,m)},h.prototype.addToMySavedTracks=function(f,m,p){var _={url:n+"/me/tracks",type:"PUT",postData:f};return d(_,m,p)},h.prototype.removeFromMySavedTracks=function(f,m,p){var _={url:n+"/me/tracks",type:"DELETE",postData:f};return d(_,m,p)},h.prototype.containsMySavedTracks=function(f,m,p){var _={url:n+"/me/tracks/contains",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getMySavedAlbums=function(f,m){var p={url:n+"/me/albums"};return d(p,f,m)},h.prototype.addToMySavedAlbums=function(f,m,p){var _={url:n+"/me/albums",type:"PUT",postData:f};return d(_,m,p)},h.prototype.removeFromMySavedAlbums=function(f,m,p){var _={url:n+"/me/albums",type:"DELETE",postData:f};return d(_,m,p)},h.prototype.containsMySavedAlbums=function(f,m,p){var _={url:n+"/me/albums/contains",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getMyTopArtists=function(f,m){var p={url:n+"/me/top/artists"};return d(p,f,m)},h.prototype.getMyTopTracks=function(f,m){var p={url:n+"/me/top/tracks"};return d(p,f,m)},h.prototype.getMyRecentlyPlayedTracks=function(f,m){var p={url:n+"/me/player/recently-played"};return d(p,f,m)},h.prototype.followUsers=function(f,m){var p={url:n+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"user"}};return d(p,m)},h.prototype.followArtists=function(f,m){var p={url:n+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"artist"}};return d(p,m)},h.prototype.followPlaylist=function(f,m,p){var _={url:n+"/playlists/"+f+"/followers",type:"PUT",postData:{}};return d(_,m,p)},h.prototype.unfollowUsers=function(f,m){var p={url:n+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"user"}};return d(p,m)},h.prototype.unfollowArtists=function(f,m){var p={url:n+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"artist"}};return d(p,m)},h.prototype.unfollowPlaylist=function(f,m){var p={url:n+"/playlists/"+f+"/followers",type:"DELETE"};return d(p,m)},h.prototype.isFollowingUsers=function(f,m){var p={url:n+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"user"}};return d(p,m)},h.prototype.isFollowingArtists=function(f,m){var p={url:n+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"artist"}};return d(p,m)},h.prototype.areFollowingPlaylist=function(f,m,p){var _={url:n+"/playlists/"+f+"/followers/contains",type:"GET",params:{ids:m.join(",")}};return d(_,p)},h.prototype.getFollowedArtists=function(f,m){var p={url:n+"/me/following",type:"GET",params:{type:"artist"}};return d(p,f,m)},h.prototype.getUser=function(f,m,p){var _={url:n+"/users/"+encodeURIComponent(f)};return d(_,m,p)},h.prototype.getUserPlaylists=function(f,m,p){var _;return typeof f=="string"?_={url:n+"/users/"+encodeURIComponent(f)+"/playlists"}:(_={url:n+"/me/playlists"},p=m,m=f),d(_,m,p)},h.prototype.getPlaylist=function(f,m,p){var _={url:n+"/playlists/"+f};return d(_,m,p)},h.prototype.getPlaylistTracks=function(f,m,p){var _={url:n+"/playlists/"+f+"/tracks"};return d(_,m,p)},h.prototype.getPlaylistCoverImage=function(f,m){var p={url:n+"/playlists/"+f+"/images"};return d(p,m)},h.prototype.createPlaylist=function(f,m,p){var _={url:n+"/users/"+encodeURIComponent(f)+"/playlists",type:"POST",postData:m};return d(_,m,p)},h.prototype.changePlaylistDetails=function(f,m,p){var _={url:n+"/playlists/"+f,type:"PUT",postData:m};return d(_,m,p)},h.prototype.addTracksToPlaylist=function(f,m,p,_){var g={url:n+"/playlists/"+f+"/tracks",type:"POST",postData:{uris:m}};return d(g,p,_,!0)},h.prototype.replaceTracksInPlaylist=function(f,m,p){var _={url:n+"/playlists/"+f+"/tracks",type:"PUT",postData:{uris:m}};return d(_,{},p)},h.prototype.reorderTracksInPlaylist=function(f,m,p,_,g){var y={url:n+"/playlists/"+f+"/tracks",type:"PUT",postData:{range_start:m,insert_before:p}};return d(y,_,g)},h.prototype.removeTracksFromPlaylist=function(f,m,p){var _=m.map(function(y){return typeof y=="string"?{uri:y}:y}),g={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:_}};return d(g,{},p)},h.prototype.removeTracksFromPlaylistWithSnapshotId=function(f,m,p,_){var g=m.map(function(b){return typeof b=="string"?{uri:b}:b}),y={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:g,snapshot_id:p}};return d(y,{},_)},h.prototype.removeTracksFromPlaylistInPositions=function(f,m,p,_){var g={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{positions:m,snapshot_id:p}};return d(g,{},_)},h.prototype.uploadCustomPlaylistCoverImage=function(f,m,p){var _={url:n+"/playlists/"+f+"/images",type:"PUT",postData:m.replace(/^data:image\/jpeg;base64,/,""),contentType:"image/jpeg"};return d(_,{},p)},h.prototype.getAlbum=function(f,m,p){var _={url:n+"/albums/"+f};return d(_,m,p)},h.prototype.getAlbumTracks=function(f,m,p){var _={url:n+"/albums/"+f+"/tracks"};return d(_,m,p)},h.prototype.getAlbums=function(f,m,p){var _={url:n+"/albums/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getTrack=function(f,m,p){var _={};return _.url=n+"/tracks/"+f,d(_,m,p)},h.prototype.getTracks=function(f,m,p){var _={url:n+"/tracks/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getArtist=function(f,m,p){var _={url:n+"/artists/"+f};return d(_,m,p)},h.prototype.getArtists=function(f,m,p){var _={url:n+"/artists/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getArtistAlbums=function(f,m,p){var _={url:n+"/artists/"+f+"/albums"};return d(_,m,p)},h.prototype.getArtistTopTracks=function(f,m,p,_){var g={url:n+"/artists/"+f+"/top-tracks",params:{country:m}};return d(g,p,_)},h.prototype.getArtistRelatedArtists=function(f,m,p){var _={url:n+"/artists/"+f+"/related-artists"};return d(_,m,p)},h.prototype.getFeaturedPlaylists=function(f,m){var p={url:n+"/browse/featured-playlists"};return d(p,f,m)},h.prototype.getNewReleases=function(f,m){var p={url:n+"/browse/new-releases"};return d(p,f,m)},h.prototype.getCategories=function(f,m){var p={url:n+"/browse/categories"};return d(p,f,m)},h.prototype.getCategory=function(f,m,p){var _={url:n+"/browse/categories/"+f};return d(_,m,p)},h.prototype.getCategoryPlaylists=function(f,m,p){var _={url:n+"/browse/categories/"+f+"/playlists"};return d(_,m,p)},h.prototype.search=function(f,m,p,_){var g={url:n+"/search/",params:{q:f,type:m.join(",")}};return d(g,p,_)},h.prototype.searchAlbums=function(f,m,p){return this.search(f,["album"],m,p)},h.prototype.searchArtists=function(f,m,p){return this.search(f,["artist"],m,p)},h.prototype.searchTracks=function(f,m,p){return this.search(f,["track"],m,p)},h.prototype.searchPlaylists=function(f,m,p){return this.search(f,["playlist"],m,p)},h.prototype.searchShows=function(f,m,p){return this.search(f,["show"],m,p)},h.prototype.searchEpisodes=function(f,m,p){return this.search(f,["episode"],m,p)},h.prototype.getAudioFeaturesForTrack=function(f,m){var p={};return p.url=n+"/audio-features/"+f,d(p,{},m)},h.prototype.getAudioFeaturesForTracks=function(f,m){var p={url:n+"/audio-features",params:{ids:f}};return d(p,{},m)},h.prototype.getAudioAnalysisForTrack=function(f,m){var p={};return p.url=n+"/audio-analysis/"+f,d(p,{},m)},h.prototype.getRecommendations=function(f,m){var p={url:n+"/recommendations"};return d(p,f,m)},h.prototype.getAvailableGenreSeeds=function(f){var m={url:n+"/recommendations/available-genre-seeds"};return d(m,{},f)},h.prototype.getMyDevices=function(f){var m={url:n+"/me/player/devices"};return d(m,{},f)},h.prototype.getMyCurrentPlaybackState=function(f,m){var p={url:n+"/me/player"};return d(p,f,m)},h.prototype.getMyCurrentPlayingTrack=function(f,m){var p={url:n+"/me/player/currently-playing"};return d(p,f,m)},h.prototype.transferMyPlayback=function(f,m,p){var _=m||{};_.device_ids=f;var g={type:"PUT",url:n+"/me/player",postData:_};return d(g,m,p)},h.prototype.play=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={};["context_uri","uris","offset","position_ms"].forEach(function(b){b in f&&(_[b]=f[b])});var g={type:"PUT",url:n+"/me/player/play",params:p,postData:_},y=typeof f=="function"?f:{};return d(g,y,m)},h.prototype.queue=function(f,m,p){m=m||{};var _="device_id"in m?{uri:f,device_id:m.device_id}:{uri:f},g={type:"POST",url:n+"/me/player/queue",params:_};return d(g,m,p)},h.prototype.pause=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={type:"PUT",url:n+"/me/player/pause",params:p};return d(_,f,m)},h.prototype.skipToNext=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={type:"POST",url:n+"/me/player/next",params:p};return d(_,f,m)},h.prototype.skipToPrevious=function(f,m){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,_={type:"POST",url:n+"/me/player/previous",params:p};return d(_,f,m)},h.prototype.seek=function(f,m,p){m=m||{};var _={position_ms:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:n+"/me/player/seek",params:_};return d(g,m,p)},h.prototype.setRepeat=function(f,m,p){m=m||{};var _={state:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:n+"/me/player/repeat",params:_};return d(g,m,p)},h.prototype.setVolume=function(f,m,p){m=m||{};var _={volume_percent:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:n+"/me/player/volume",params:_};return d(g,m,p)},h.prototype.setShuffle=function(f,m,p){m=m||{};var _={state:f};"device_id"in m&&(_.device_id=m.device_id);var g={type:"PUT",url:n+"/me/player/shuffle",params:_};return d(g,m,p)},h.prototype.getShow=function(f,m,p){var _={};return _.url=n+"/shows/"+f,d(_,m,p)},h.prototype.getShows=function(f,m,p){var _={url:n+"/shows/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getMySavedShows=function(f,m){var p={url:n+"/me/shows"};return d(p,f,m)},h.prototype.addToMySavedShows=function(f,m,p){var _={url:n+"/me/shows",type:"PUT",postData:f};return d(_,m,p)},h.prototype.removeFromMySavedShows=function(f,m,p){var _={url:n+"/me/shows",type:"DELETE",postData:f};return d(_,m,p)},h.prototype.containsMySavedShows=function(f,m,p){var _={url:n+"/me/shows/contains",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getShowEpisodes=function(f,m,p){var _={url:n+"/shows/"+f+"/episodes"};return d(_,m,p)},h.prototype.getEpisode=function(f,m,p){var _={};return _.url=n+"/episodes/"+f,d(_,m,p)},h.prototype.getEpisodes=function(f,m,p){var _={url:n+"/episodes/",params:{ids:f.join(",")}};return d(_,m,p)},h.prototype.getAccessToken=function(){return s},h.prototype.setAccessToken=function(f){s=f},h.prototype.setPromiseImplementation=function(f){var m=!1;try{var p=new f(function(_){_()});typeof p.then=="function"&&typeof p.catch=="function"&&(m=!0)}catch(_){console.error(_)}if(m)r=f;else throw new Error("Unsupported implementation of Promises/A+")},h}();e.exports=t})(pg);var Kn=pg.exports;const PS={name:"ModalDialogQueueItem",props:["show","item"],emits:["close"],data(){return{spotify_track:{}}},watch:{item(){if(this.item&&this.item.data_kind==="spotify"){const e=new Kn;e.setAccessToken(this.$store.state.spotify.webapi_token),e.getTrack(this.item.path.slice(this.item.path.lastIndexOf(":")+1)).then(t=>{this.spotify_track=t})}else this.spotify_track={}}},methods:{remove:function(){this.$emit("close"),G.queue_remove(this.item.id)},play:function(){this.$emit("close"),G.player_play({item_id:this.item.id})},open_album:function(){this.media_kind==="podcast"?this.$router.push({path:"/podcasts/"+this.item.album_id}):this.media_kind==="audiobook"?this.$router.push({path:"/audiobooks/"+this.item.album_id}):this.$router.push({path:"/music/albums/"+this.item.album_id})},open_album_artist:function(){this.$router.push({path:"/music/artists/"+this.item.album_artist_id})},open_genre:function(){this.$router.push({name:"Genre",params:{genre:this.item.genre}})},open_spotify_artist:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})}}},DS={key:0,class:"modal is-active"},FS={class:"modal-content fd-modal-card"},IS={class:"card"},MS={class:"card-content"},RS={class:"title is-4"},LS={class:"subtitle"},NS={class:"content is-small"},VS=u("span",{class:"heading"},"Album",-1),jS={key:1,class:"title is-6"},BS={key:0},US=u("span",{class:"heading"},"Album artist",-1),HS={key:1,class:"title is-6"},zS={key:1},qS=u("span",{class:"heading"},"Composer",-1),GS={class:"title is-6"},WS={key:2},KS=u("span",{class:"heading"},"Year",-1),ZS={class:"title is-6"},YS={key:3},JS=u("span",{class:"heading"},"Genre",-1),XS=u("span",{class:"heading"},"Track / Disc",-1),QS={class:"title is-6"},ex=u("span",{class:"heading"},"Length",-1),tx={class:"title is-6"},nx=u("span",{class:"heading"},"Path",-1),sx={class:"title is-6"},rx=u("span",{class:"heading"},"Type",-1),ox={class:"title is-6"},ix={key:0,class:"has-text-weight-normal"},ax=$e("("),lx=$e(", "),ux=$e(")"),cx=u("span",{class:"heading"},"Quality",-1),dx={class:"title is-6"},fx={key:0},hx={key:1},mx={key:2},px={class:"card-footer"},_x={class:"icon"},gx=u("span",{class:"is-size-7"},"Remove",-1),vx={class:"icon"},yx=u("span",{class:"is-size-7"},"Play",-1);function bx(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",DS,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",FS,[u("div",IS,[u("div",MS,[u("p",RS,R(n.item.title),1),u("p",LS,R(n.item.artist),1),u("div",NS,[u("p",null,[VS,n.item.album_id?(E(),D("a",{key:0,class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a))},R(n.item.album),1)):(E(),D("span",jS,R(n.item.album),1))]),n.item.album_artist?(E(),D("p",BS,[US,n.item.album_artist_id?(E(),D("a",{key:0,class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_album_artist&&o.open_album_artist(...a))},R(n.item.album_artist),1)):(E(),D("span",HS,R(n.item.album_artist),1))])):Z("",!0),n.item.composer?(E(),D("p",zS,[qS,u("span",GS,R(n.item.composer),1)])):Z("",!0),n.item.year>0?(E(),D("p",WS,[KS,u("span",ZS,R(n.item.year),1)])):Z("",!0),n.item.genre?(E(),D("p",YS,[JS,u("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_genre&&o.open_genre(...a))},R(n.item.genre),1)])):Z("",!0),u("p",null,[XS,u("span",QS,R(n.item.track_number)+" / "+R(n.item.disc_number),1)]),u("p",null,[ex,u("span",tx,R(e.$filters.durationInHours(n.item.length_ms)),1)]),u("p",null,[nx,u("span",sx,R(n.item.path),1)]),u("p",null,[rx,u("span",ox,[$e(R(n.item.media_kind)+" - "+R(n.item.data_kind)+" ",1),n.item.data_kind==="spotify"?(E(),D("span",ix,[ax,u("a",{onClick:t[4]||(t[4]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a))},"artist"),lx,u("a",{onClick:t[5]||(t[5]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a))},"album"),ux])):Z("",!0)])]),u("p",null,[cx,u("span",dx,[$e(R(n.item.type)+" ",1),n.item.samplerate?(E(),D("span",fx," | "+R(n.item.samplerate)+" Hz",1)):Z("",!0),n.item.channels?(E(),D("span",hx," | "+R(e.$filters.channels(n.item.channels)),1)):Z("",!0),n.item.bitrate?(E(),D("span",mx," | "+R(n.item.bitrate)+" Kb/s",1)):Z("",!0)])])])]),u("footer",px,[u("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.remove&&o.remove(...a))},[u("span",_x,[w(i,{name:"delete",size:"16"})]),gx]),u("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[u("span",vx,[w(i,{name:"play",size:"16"})]),yx])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var _g=ge(PS,[["render",bx]]);const wx={name:"ModalDialogAddUrlStream",props:["show"],emits:["close"],data(){return{url:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.url_field.focus()},10))}},methods:{add_stream:function(){this.loading=!0,G.queue_add(this.url).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})},play:function(){this.loading=!0,G.player_play_uri(this.url,!1).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})}}},kx={key:0,class:"modal is-active"},Sx={class:"modal-content fd-modal-card"},xx={class:"card"},Ex={class:"card-content"},Cx=u("p",{class:"title is-4"},"Add stream URL",-1),$x={class:"field"},Ax={class:"control is-expanded has-icons-left"},Ox=["disabled"],Tx={class:"icon is-left"},Px={key:0,class:"card-footer"},Dx={class:"card-footer-item has-text-dark"},Fx={class:"icon"},Ix=u("span",{class:"is-size-7"},"Loading ...",-1),Mx={key:1,class:"card-footer"},Rx={class:"icon"},Lx=u("span",{class:"is-size-7"},"Cancel",-1),Nx={class:"icon"},Vx=u("span",{class:"is-size-7"},"Add",-1),jx={class:"icon"},Bx=u("span",{class:"is-size-7"},"Play",-1);function Ux(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",kx,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",Sx,[u("div",xx,[u("div",Ex,[Cx,u("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=pt((...a)=>o.play&&o.play(...a),["prevent"]))},[u("div",$x,[u("p",Ax,[wt(u("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.url=a),class:"input is-shadowless",type:"text",placeholder:"http://url-to-stream",disabled:r.loading},null,8,Ox),[[en,r.url]]),u("span",Tx,[w(i,{name:"web",size:"16"})])])])],32)]),r.loading?(E(),D("footer",Px,[u("a",Dx,[u("span",Fx,[w(i,{name:"web",size:"16"})]),Ix])])):(E(),D("footer",Mx,[u("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[u("span",Rx,[w(i,{name:"cancel",size:"16"})]),Lx]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[u("span",Nx,[w(i,{name:"playlist-plus",size:"16"})]),Vx]),u("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[u("span",jx,[w(i,{name:"play",size:"16"})]),Bx])]))])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Hx=ge(wx,[["render",Ux]]);const zx={name:"ModalDialogPlaylistSave",props:["show"],emits:["close"],data(){return{playlist_name:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.playlist_name_field.focus()},10))}},methods:{save:function(){this.playlist_name.length<1||(this.loading=!0,G.queue_save_playlist(this.playlist_name).then(()=>{this.$emit("close"),this.playlist_name=""}).catch(()=>{this.loading=!1}))}}},qx={key:0,class:"modal is-active"},Gx={class:"modal-content fd-modal-card"},Wx={class:"card"},Kx={class:"card-content"},Zx=u("p",{class:"title is-4"},"Save queue to playlist",-1),Yx={class:"field"},Jx={class:"control is-expanded has-icons-left"},Xx=["disabled"],Qx={class:"icon is-left"},eE={key:0,class:"card-footer"},tE={class:"card-footer-item has-text-dark"},nE={class:"icon"},sE=u("span",{class:"is-size-7"},"Saving ...",-1),rE={key:1,class:"card-footer"},oE={class:"icon"},iE=u("span",{class:"is-size-7"},"Cancel",-1),aE={class:"icon"},lE=u("span",{class:"is-size-7"},"Save",-1);function uE(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",qx,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",Gx,[u("div",Wx,[u("div",Kx,[Zx,u("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=pt((...a)=>o.save&&o.save(...a),["prevent"]))},[u("div",Yx,[u("p",Jx,[wt(u("input",{ref:"playlist_name_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.playlist_name=a),class:"input is-shadowless",type:"text",placeholder:"Playlist name",disabled:r.loading},null,8,Xx),[[en,r.playlist_name]]),u("span",Qx,[w(i,{name:"file-music",size:"16"})])])])],32)]),r.loading?(E(),D("footer",eE,[u("a",tE,[u("span",nE,[w(i,{name:"web",size:"16"})]),sE])])):(E(),D("footer",rE,[u("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[u("span",oE,[w(i,{name:"cancel",size:"16"})]),iE]),u("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.save&&o.save(...a))},[u("span",aE,[w(i,{name:"content-save",size:"16"})]),lE])]))])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var cE=ge(zx,[["render",uE]]),gg={exports:{}},Td=eg(bw);/**!
|
|
* Sortable 1.14.0
|
|
* @author RubaXa <trash@rubaxa.org>
|
|
* @author owenm <owen23355@gmail.com>
|
|
* @license MIT
|
|
*/function Fh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function ns(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fh(Object(n),!0).forEach(function(s){dE(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fh(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Ia(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ia=function(t){return typeof t}:Ia=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ia(e)}function dE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function In(){return In=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},In.apply(this,arguments)}function fE(e,t){if(e==null)return{};var n={},s=Object.keys(e),r,o;for(o=0;o<s.length;o++)r=s[o],!(t.indexOf(r)>=0)&&(n[r]=e[r]);return n}function hE(e,t){if(e==null)return{};var n=fE(e,t),s,r;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)s=o[r],!(t.indexOf(s)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,s)||(n[s]=e[s]))}return n}function mE(e){return pE(e)||_E(e)||gE(e)||vE()}function pE(e){if(Array.isArray(e))return pc(e)}function _E(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gE(e,t){if(!!e){if(typeof e=="string")return pc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return pc(e,t)}}function pc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function vE(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var yE="1.14.0";function fs(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var vs=fs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),wi=fs(/Edge/i),Ih=fs(/firefox/i),Zo=fs(/safari/i)&&!fs(/chrome/i)&&!fs(/android/i),vg=fs(/iP(ad|od|hone)/i),bE=fs(/chrome/i)&&fs(/android/i),yg={capture:!1,passive:!1};function lt(e,t,n){e.addEventListener(t,n,!vs&&yg)}function ot(e,t,n){e.removeEventListener(t,n,!vs&&yg)}function Ja(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function wE(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Un(e,t,n,s){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Ja(e,t):Ja(e,t))||s&&e===n)return e;if(e===n)break}while(e=wE(e))}return null}var Mh=/\s+/g;function Ct(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var s=(" "+e.className+" ").replace(Mh," ").replace(" "+t+" "," ");e.className=(s+(n?" "+t:"")).replace(Mh," ")}}function je(e,t,n){var s=e&&e.style;if(s){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in s)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),s[t]=n+(typeof n=="string"?"":"px")}}function cr(e,t){var n="";if(typeof e=="string")n=e;else do{var s=je(e,"transform");s&&s!=="none"&&(n=s+" "+n)}while(!t&&(e=e.parentNode));var r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function bg(e,t,n){if(e){var s=e.getElementsByTagName(t),r=0,o=s.length;if(n)for(;r<o;r++)n(s[r],r);return s}return[]}function ts(){var e=document.scrollingElement;return e||document.documentElement}function Et(e,t,n,s,r){if(!(!e.getBoundingClientRect&&e!==window)){var o,i,a,l,c,d,h;if(e!==window&&e.parentNode&&e!==ts()?(o=e.getBoundingClientRect(),i=o.top,a=o.left,l=o.bottom,c=o.right,d=o.height,h=o.width):(i=0,a=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(t||n)&&e!==window&&(r=r||e.parentNode,!vs))do if(r&&r.getBoundingClientRect&&(je(r,"transform")!=="none"||n&&je(r,"position")!=="static")){var f=r.getBoundingClientRect();i-=f.top+parseInt(je(r,"border-top-width")),a-=f.left+parseInt(je(r,"border-left-width")),l=i+o.height,c=a+o.width;break}while(r=r.parentNode);if(s&&e!==window){var m=cr(r||e),p=m&&m.a,_=m&&m.d;m&&(i/=_,a/=p,h/=p,d/=_,l=i+d,c=a+h)}return{top:i,left:a,bottom:l,right:c,width:h,height:d}}}function Rh(e,t,n){for(var s=Ms(e,!0),r=Et(e)[t];s;){var o=Et(s)[n],i=void 0;if(n==="top"||n==="left"?i=r>=o:i=r<=o,!i)return s;if(s===ts())break;s=Ms(s,!1)}return!1}function oo(e,t,n,s){for(var r=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==Xe.ghost&&(s||i[o]!==Xe.dragged)&&Un(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function Pd(e,t){for(var n=e.lastElementChild;n&&(n===Xe.ghost||je(n,"display")==="none"||t&&!Ja(n,t));)n=n.previousElementSibling;return n||null}function Ft(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Xe.clone&&(!t||Ja(e,t))&&n++;return n}function Lh(e){var t=0,n=0,s=ts();if(e)do{var r=cr(e),o=r.a,i=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==s&&(e=e.parentNode));return[t,n]}function kE(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var s in t)if(t.hasOwnProperty(s)&&t[s]===e[n][s])return Number(n)}return-1}function Ms(e,t){if(!e||!e.getBoundingClientRect)return ts();var n=e,s=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var r=je(n);if(n.clientWidth<n.scrollWidth&&(r.overflowX=="auto"||r.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(r.overflowY=="auto"||r.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ts();if(s||t)return n;s=!0}}while(n=n.parentNode);return ts()}function SE(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function yu(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Yo;function wg(e,t){return function(){if(!Yo){var n=arguments,s=this;n.length===1?e.call(s,n[0]):e.apply(s,n),Yo=setTimeout(function(){Yo=void 0},t)}}}function xE(){clearTimeout(Yo),Yo=void 0}function kg(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Dd(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Nh(e,t){je(e,"position","absolute"),je(e,"top",t.top),je(e,"left",t.left),je(e,"width",t.width),je(e,"height",t.height)}function bu(e){je(e,"position",""),je(e,"top",""),je(e,"left",""),je(e,"width",""),je(e,"height","")}var Xt="Sortable"+new Date().getTime();function EE(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var s=[].slice.call(this.el.children);s.forEach(function(r){if(!(je(r,"display")==="none"||r===Xe.ghost)){e.push({target:r,rect:Et(r)});var o=ns({},e[e.length-1].rect);if(r.thisAnimationDuration){var i=cr(r,!0);i&&(o.top-=i.f,o.left-=i.e)}r.fromRect=o}})}},addAnimationState:function(s){e.push(s)},removeAnimationState:function(s){e.splice(kE(e,{target:s}),1)},animateAll:function(s){var r=this;if(!this.options.animation){clearTimeout(t),typeof s=="function"&&s();return}var o=!1,i=0;e.forEach(function(a){var l=0,c=a.target,d=c.fromRect,h=Et(c),f=c.prevFromRect,m=c.prevToRect,p=a.rect,_=cr(c,!0);_&&(h.top-=_.f,h.left-=_.e),c.toRect=h,c.thisAnimationDuration&&yu(f,h)&&!yu(d,h)&&(p.top-h.top)/(p.left-h.left)===(d.top-h.top)/(d.left-h.left)&&(l=$E(p,f,m,r.options)),yu(h,d)||(c.prevFromRect=d,c.prevToRect=h,l||(l=r.options.animation),r.animate(c,p,h,l)),l&&(o=!0,i=Math.max(i,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof s=="function"&&s()},i):typeof s=="function"&&s(),e=[]},animate:function(s,r,o,i){if(i){je(s,"transition",""),je(s,"transform","");var a=cr(this.el),l=a&&a.a,c=a&&a.d,d=(r.left-o.left)/(l||1),h=(r.top-o.top)/(c||1);s.animatingX=!!d,s.animatingY=!!h,je(s,"transform","translate3d("+d+"px,"+h+"px,0)"),this.forRepaintDummy=CE(s),je(s,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),je(s,"transform","translate3d(0,0,0)"),typeof s.animated=="number"&&clearTimeout(s.animated),s.animated=setTimeout(function(){je(s,"transition",""),je(s,"transform",""),s.animated=!1,s.animatingX=!1,s.animatingY=!1},i)}}}}function CE(e){return e.offsetWidth}function $E(e,t,n,s){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*s.animation}var Or=[],wu={initializeByDefault:!0},ki={mount:function(t){for(var n in wu)wu.hasOwnProperty(n)&&!(n in t)&&(t[n]=wu[n]);Or.forEach(function(s){if(s.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Or.push(t)},pluginEvent:function(t,n,s){var r=this;this.eventCanceled=!1,s.cancel=function(){r.eventCanceled=!0};var o=t+"Global";Or.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][o]&&n[i.pluginName][o](ns({sortable:n},s)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](ns({sortable:n},s)))})},initializePlugins:function(t,n,s,r){Or.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var c=new a(t,n,t.options);c.sortable=t,c.options=t.options,t[l]=c,In(s,c.defaults)}});for(var o in t.options)if(!!t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);typeof i!="undefined"&&(t.options[o]=i)}},getEventProperties:function(t,n){var s={};return Or.forEach(function(r){typeof r.eventProperties=="function"&&In(s,r.eventProperties.call(n[r.pluginName],t))}),s},modifyOption:function(t,n,s){var r;return Or.forEach(function(o){!t[o.pluginName]||o.optionListeners&&typeof o.optionListeners[n]=="function"&&(r=o.optionListeners[n].call(t[o.pluginName],s))}),r}};function Po(e){var t=e.sortable,n=e.rootEl,s=e.name,r=e.targetEl,o=e.cloneEl,i=e.toEl,a=e.fromEl,l=e.oldIndex,c=e.newIndex,d=e.oldDraggableIndex,h=e.newDraggableIndex,f=e.originalEvent,m=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[Xt],!!t){var _,g=t.options,y="on"+s.charAt(0).toUpperCase()+s.substr(1);window.CustomEvent&&!vs&&!wi?_=new CustomEvent(s,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(s,!0,!0)),_.to=i||n,_.from=a||n,_.item=r||n,_.clone=o,_.oldIndex=l,_.newIndex=c,_.oldDraggableIndex=d,_.newDraggableIndex=h,_.originalEvent=f,_.pullMode=m?m.lastPutMode:void 0;var b=ns(ns({},p),ki.getEventProperties(s,t));for(var S in b)_[S]=b[S];n&&n.dispatchEvent(_),g[y]&&g[y].call(t,_)}}var AE=["evt"],cn=function(t,n){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=s.evt,o=hE(s,AE);ki.pluginEvent.bind(Xe)(t,n,ns({dragEl:xe,parentEl:Tt,ghostEl:nt,rootEl:xt,nextEl:sr,lastDownEl:Ma,cloneEl:Pt,cloneHidden:Ds,dragStarted:Do,putSortable:Kt,activeSortable:Xe.active,originalEvent:r,oldIndex:Vr,oldDraggableIndex:Jo,newIndex:vn,newDraggableIndex:Ts,hideGhostForTarget:Cg,unhideGhostForTarget:$g,cloneNowHidden:function(){Ds=!0},cloneNowShown:function(){Ds=!1},dispatchSortableEvent:function(a){on({sortable:n,name:a,originalEvent:r})}},o))};function on(e){Po(ns({putSortable:Kt,cloneEl:Pt,targetEl:xe,rootEl:xt,oldIndex:Vr,oldDraggableIndex:Jo,newIndex:vn,newDraggableIndex:Ts},e))}var xe,Tt,nt,xt,sr,Ma,Pt,Ds,Vr,vn,Jo,Ts,Hi,Kt,Lr=!1,Xa=!1,Qa=[],Js,Ln,ku,Su,Vh,jh,Do,Tr,Xo,Qo=!1,zi=!1,Ra,Jt,xu=[],_c=!1,el=[],Rl=typeof document!="undefined",qi=vg,Bh=wi||vs?"cssFloat":"float",OE=Rl&&!bE&&!vg&&"draggable"in document.createElement("div"),Sg=function(){if(!!Rl){if(vs)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),xg=function(t,n){var s=je(t),r=parseInt(s.width)-parseInt(s.paddingLeft)-parseInt(s.paddingRight)-parseInt(s.borderLeftWidth)-parseInt(s.borderRightWidth),o=oo(t,0,n),i=oo(t,1,n),a=o&&je(o),l=i&&je(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Et(o).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Et(i).width;if(s.display==="flex")return s.flexDirection==="column"||s.flexDirection==="column-reverse"?"vertical":"horizontal";if(s.display==="grid")return s.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var h=a.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===h)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||c>=r&&s[Bh]==="none"||i&&s[Bh]==="none"&&c+d>r)?"vertical":"horizontal"},TE=function(t,n,s){var r=s?t.left:t.top,o=s?t.right:t.bottom,i=s?t.width:t.height,a=s?n.left:n.top,l=s?n.right:n.bottom,c=s?n.width:n.height;return r===a||o===l||r+i/2===a+c/2},PE=function(t,n){var s;return Qa.some(function(r){var o=r[Xt].options.emptyInsertThreshold;if(!(!o||Pd(r))){var i=Et(r),a=t>=i.left-o&&t<=i.right+o,l=n>=i.top-o&&n<=i.bottom+o;if(a&&l)return s=r}}),s},Eg=function(t){function n(o,i){return function(a,l,c,d){var h=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(i||h))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,c,d),i)(a,l,c,d);var f=(i?a:l).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var s={},r=t.group;(!r||Ia(r)!="object")&&(r={name:r}),s.name=r.name,s.checkPull=n(r.pull,!0),s.checkPut=n(r.put),s.revertClone=r.revertClone,t.group=s},Cg=function(){!Sg&&nt&&je(nt,"display","none")},$g=function(){!Sg&&nt&&je(nt,"display","")};Rl&&document.addEventListener("click",function(e){if(Xa)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Xa=!1,!1},!0);var Xs=function(t){if(xe){t=t.touches?t.touches[0]:t;var n=PE(t.clientX,t.clientY);if(n){var s={};for(var r in t)t.hasOwnProperty(r)&&(s[r]=t[r]);s.target=s.rootEl=n,s.preventDefault=void 0,s.stopPropagation=void 0,n[Xt]._onDragOver(s)}}},DE=function(t){xe&&xe.parentNode[Xt]._isOutsideThisEl(t.target)};function Xe(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=In({},t),e[Xt]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return xg(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Xe.supportPointer!==!1&&"PointerEvent"in window&&!Zo,emptyInsertThreshold:5};ki.initializePlugins(this,e,n);for(var s in n)!(s in t)&&(t[s]=n[s]);Eg(t);for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this));this.nativeDraggable=t.forceFallback?!1:OE,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?lt(e,"pointerdown",this._onTapStart):(lt(e,"mousedown",this._onTapStart),lt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(e,"dragover",this),lt(e,"dragenter",this)),Qa.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),In(this,EE())}Xe.prototype={constructor:Xe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Tr=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,xe):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,s=this.el,r=this.options,o=r.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,c=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,d=r.filter;if(jE(s),!xe&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&Zo&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Un(l,r.draggable,s,!1),!(l&&l.animated)&&Ma!==l)){if(Vr=Ft(l),Jo=Ft(l,r.draggable),typeof d=="function"){if(d.call(this,t,l,this)){on({sortable:n,rootEl:c,name:"filter",targetEl:l,toEl:s,fromEl:s}),cn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(h){if(h=Un(c,h.trim(),s,!1),h)return on({sortable:n,rootEl:h,name:"filter",targetEl:l,fromEl:s,toEl:s}),cn("filter",n,{evt:t}),!0}),d)){o&&t.cancelable&&t.preventDefault();return}r.handle&&!Un(c,r.handle,s,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,s){var r=this,o=r.el,i=r.options,a=o.ownerDocument,l;if(s&&!xe&&s.parentNode===o){var c=Et(s);if(xt=o,xe=s,Tt=xe.parentNode,sr=xe.nextSibling,Ma=s,Hi=i.group,Xe.dragged=xe,Js={target:xe,clientX:(n||t).clientX,clientY:(n||t).clientY},Vh=Js.clientX-c.left,jh=Js.clientY-c.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,xe.style["will-change"]="all",l=function(){if(cn("delayEnded",r,{evt:t}),Xe.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!Ih&&r.nativeDraggable&&(xe.draggable=!0),r._triggerDragStart(t,n),on({sortable:r,name:"choose",originalEvent:t}),Ct(xe,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){bg(xe,d.trim(),Eu)}),lt(a,"dragover",Xs),lt(a,"mousemove",Xs),lt(a,"touchmove",Xs),lt(a,"mouseup",r._onDrop),lt(a,"touchend",r._onDrop),lt(a,"touchcancel",r._onDrop),Ih&&this.nativeDraggable&&(this.options.touchStartThreshold=4,xe.draggable=!0),cn("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(wi||vs))){if(Xe.eventCanceled){this._onDrop();return}lt(a,"mouseup",r._disableDelayedDrag),lt(a,"touchend",r._disableDelayedDrag),lt(a,"touchcancel",r._disableDelayedDrag),lt(a,"mousemove",r._delayedDragTouchMoveHandler),lt(a,"touchmove",r._delayedDragTouchMoveHandler),i.supportPointer&<(a,"pointermove",r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){xe&&Eu(xe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._disableDelayedDrag),ot(t,"touchend",this._disableDelayedDrag),ot(t,"touchcancel",this._disableDelayedDrag),ot(t,"mousemove",this._delayedDragTouchMoveHandler),ot(t,"touchmove",this._delayedDragTouchMoveHandler),ot(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(xe,"dragend",this),lt(xt,"dragstart",this._onDragStart));try{document.selection?La(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Lr=!1,xt&&xe){cn("dragStarted",this,{evt:n}),this.nativeDraggable&<(document,"dragover",DE);var s=this.options;!t&&Ct(xe,s.dragClass,!1),Ct(xe,s.ghostClass,!0),Xe.active=this,t&&this._appendGhost(),on({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Ln){this._lastX=Ln.clientX,this._lastY=Ln.clientY,Cg();for(var t=document.elementFromPoint(Ln.clientX,Ln.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Ln.clientX,Ln.clientY),t!==n);)n=t;if(xe.parentNode[Xt]._isOutsideThisEl(t),n)do{if(n[Xt]){var s=void 0;if(s=n[Xt]._onDragOver({clientX:Ln.clientX,clientY:Ln.clientY,target:t,rootEl:n}),s&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);$g()}},_onTouchMove:function(t){if(Js){var n=this.options,s=n.fallbackTolerance,r=n.fallbackOffset,o=t.touches?t.touches[0]:t,i=nt&&cr(nt,!0),a=nt&&i&&i.a,l=nt&&i&&i.d,c=qi&&Jt&&Lh(Jt),d=(o.clientX-Js.clientX+r.x)/(a||1)+(c?c[0]-xu[0]:0)/(a||1),h=(o.clientY-Js.clientY+r.y)/(l||1)+(c?c[1]-xu[1]:0)/(l||1);if(!Xe.active&&!Lr){if(s&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<s)return;this._onDragStart(t,!0)}if(nt){i?(i.e+=d-(ku||0),i.f+=h-(Su||0)):i={a:1,b:0,c:0,d:1,e:d,f:h};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");je(nt,"webkitTransform",f),je(nt,"mozTransform",f),je(nt,"msTransform",f),je(nt,"transform",f),ku=d,Su=h,Ln=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!nt){var t=this.options.fallbackOnBody?document.body:xt,n=Et(xe,!0,qi,!0,t),s=this.options;if(qi){for(Jt=t;je(Jt,"position")==="static"&&je(Jt,"transform")==="none"&&Jt!==document;)Jt=Jt.parentNode;Jt!==document.body&&Jt!==document.documentElement?(Jt===document&&(Jt=ts()),n.top+=Jt.scrollTop,n.left+=Jt.scrollLeft):Jt=ts(),xu=Lh(Jt)}nt=xe.cloneNode(!0),Ct(nt,s.ghostClass,!1),Ct(nt,s.fallbackClass,!0),Ct(nt,s.dragClass,!0),je(nt,"transition",""),je(nt,"transform",""),je(nt,"box-sizing","border-box"),je(nt,"margin",0),je(nt,"top",n.top),je(nt,"left",n.left),je(nt,"width",n.width),je(nt,"height",n.height),je(nt,"opacity","0.8"),je(nt,"position",qi?"absolute":"fixed"),je(nt,"zIndex","100000"),je(nt,"pointerEvents","none"),Xe.ghost=nt,t.appendChild(nt),je(nt,"transform-origin",Vh/parseInt(nt.style.width)*100+"% "+jh/parseInt(nt.style.height)*100+"%")}},_onDragStart:function(t,n){var s=this,r=t.dataTransfer,o=s.options;if(cn("dragStart",this,{evt:t}),Xe.eventCanceled){this._onDrop();return}cn("setupClone",this),Xe.eventCanceled||(Pt=Dd(xe),Pt.draggable=!1,Pt.style["will-change"]="",this._hideClone(),Ct(Pt,this.options.chosenClass,!1),Xe.clone=Pt),s.cloneId=La(function(){cn("clone",s),!Xe.eventCanceled&&(s.options.removeCloneOnHide||xt.insertBefore(Pt,xe),s._hideClone(),on({sortable:s,name:"clone"}))}),!n&&Ct(xe,o.dragClass,!0),n?(Xa=!0,s._loopId=setInterval(s._emulateDragOver,50)):(ot(document,"mouseup",s._onDrop),ot(document,"touchend",s._onDrop),ot(document,"touchcancel",s._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(s,r,xe)),lt(document,"drop",s),je(xe,"transform","translateZ(0)")),Lr=!0,s._dragStartId=La(s._dragStarted.bind(s,n,t)),lt(document,"selectstart",s),Do=!0,Zo&&je(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,s=t.target,r,o,i,a=this.options,l=a.group,c=Xe.active,d=Hi===l,h=a.sort,f=Kt||c,m,p=this,_=!1;if(_c)return;function g(ve,Le){cn(ve,p,ns({evt:t,isOwner:d,axis:m?"vertical":"horizontal",revert:i,dragRect:r,targetRect:o,canSort:h,fromSortable:f,target:s,completed:b,onMove:function(me,Y){return Gi(xt,n,xe,r,me,Et(me),t,Y)},changed:S},Le))}function y(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function b(ve){return g("dragOverCompleted",{insertion:ve}),ve&&(d?c._hideClone():c._showClone(p),p!==f&&(Ct(xe,Kt?Kt.options.ghostClass:c.options.ghostClass,!1),Ct(xe,a.ghostClass,!0)),Kt!==p&&p!==Xe.active?Kt=p:p===Xe.active&&Kt&&(Kt=null),f===p&&(p._ignoreWhileAnimating=s),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(s===xe&&!xe.animated||s===n&&!s.animated)&&(Tr=null),!a.dragoverBubble&&!t.rootEl&&s!==document&&(xe.parentNode[Xt]._isOutsideThisEl(t.target),!ve&&Xs(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function S(){vn=Ft(xe),Ts=Ft(xe,a.draggable),on({sortable:p,name:"change",toEl:n,newIndex:vn,newDraggableIndex:Ts,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),s=Un(s,a.draggable,n,!0),g("dragOver"),Xe.eventCanceled)return _;if(xe.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return b(!1);if(Xa=!1,c&&!a.disabled&&(d?h||(i=Tt!==xt):Kt===this||(this.lastPutMode=Hi.checkPull(this,c,xe,t))&&l.checkPut(this,c,xe,t))){if(m=this._getDirection(t,s)==="vertical",r=Et(xe),g("dragOverValid"),Xe.eventCanceled)return _;if(i)return Tt=xt,y(),this._hideClone(),g("revert"),Xe.eventCanceled||(sr?xt.insertBefore(xe,sr):xt.appendChild(xe)),b(!0);var x=Pd(n,a.draggable);if(!x||RE(t,m,this)&&!x.animated){if(x===xe)return b(!1);if(x&&n===t.target&&(s=x),s&&(o=Et(s)),Gi(xt,n,xe,r,s,o,t,!!s)!==!1)return y(),n.appendChild(xe),Tt=n,S(),b(!0)}else if(x&&ME(t,m,this)){var C=oo(n,0,a,!0);if(C===xe)return b(!1);if(s=C,o=Et(s),Gi(xt,n,xe,r,s,o,t,!1)!==!1)return y(),n.insertBefore(xe,C),Tt=n,S(),b(!0)}else if(s.parentNode===n){o=Et(s);var A=0,M,j=xe.parentNode!==n,O=!TE(xe.animated&&xe.toRect||r,s.animated&&s.toRect||o,m),V=m?"top":"left",q=Rh(s,"top","top")||Rh(xe,"top","top"),F=q?q.scrollTop:void 0;Tr!==s&&(M=o[V],Qo=!1,zi=!O&&a.invertSwap||j),A=LE(t,s,o,m,O?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,zi,Tr===s);var B;if(A!==0){var W=Ft(xe);do W-=A,B=Tt.children[W];while(B&&(je(B,"display")==="none"||B===nt))}if(A===0||B===s)return b(!1);Tr=s,Xo=A;var ue=s.nextElementSibling,te=!1;te=A===1;var ae=Gi(xt,n,xe,r,s,o,t,te);if(ae!==!1)return(ae===1||ae===-1)&&(te=ae===1),_c=!0,setTimeout(IE,30),y(),te&&!ue?n.appendChild(xe):s.parentNode.insertBefore(xe,te?ue:s),q&&kg(q,0,F-q.scrollTop),Tt=xe.parentNode,M!==void 0&&!zi&&(Ra=Math.abs(M-Et(s)[V])),S(),b(!0)}if(n.contains(xe))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ot(document,"mousemove",this._onTouchMove),ot(document,"touchmove",this._onTouchMove),ot(document,"pointermove",this._onTouchMove),ot(document,"dragover",Xs),ot(document,"mousemove",Xs),ot(document,"touchmove",Xs)},_offUpEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._onDrop),ot(t,"touchend",this._onDrop),ot(t,"pointerup",this._onDrop),ot(t,"touchcancel",this._onDrop),ot(document,"selectstart",this)},_onDrop:function(t){var n=this.el,s=this.options;if(vn=Ft(xe),Ts=Ft(xe,s.draggable),cn("drop",this,{evt:t}),Tt=xe&&xe.parentNode,vn=Ft(xe),Ts=Ft(xe,s.draggable),Xe.eventCanceled){this._nulling();return}Lr=!1,zi=!1,Qo=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gc(this.cloneId),gc(this._dragStartId),this.nativeDraggable&&(ot(document,"drop",this),ot(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Zo&&je(document.body,"user-select",""),je(xe,"transform",""),t&&(Do&&(t.cancelable&&t.preventDefault(),!s.dropBubble&&t.stopPropagation()),nt&&nt.parentNode&&nt.parentNode.removeChild(nt),(xt===Tt||Kt&&Kt.lastPutMode!=="clone")&&Pt&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),xe&&(this.nativeDraggable&&ot(xe,"dragend",this),Eu(xe),xe.style["will-change"]="",Do&&!Lr&&Ct(xe,Kt?Kt.options.ghostClass:this.options.ghostClass,!1),Ct(xe,this.options.chosenClass,!1),on({sortable:this,name:"unchoose",toEl:Tt,newIndex:null,newDraggableIndex:null,originalEvent:t}),xt!==Tt?(vn>=0&&(on({rootEl:Tt,name:"add",toEl:Tt,fromEl:xt,originalEvent:t}),on({sortable:this,name:"remove",toEl:Tt,originalEvent:t}),on({rootEl:Tt,name:"sort",toEl:Tt,fromEl:xt,originalEvent:t}),on({sortable:this,name:"sort",toEl:Tt,originalEvent:t})),Kt&&Kt.save()):vn!==Vr&&vn>=0&&(on({sortable:this,name:"update",toEl:Tt,originalEvent:t}),on({sortable:this,name:"sort",toEl:Tt,originalEvent:t})),Xe.active&&((vn==null||vn===-1)&&(vn=Vr,Ts=Jo),on({sortable:this,name:"end",toEl:Tt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){cn("nulling",this),xt=xe=Tt=nt=sr=Pt=Ma=Ds=Js=Ln=Do=vn=Ts=Vr=Jo=Tr=Xo=Kt=Hi=Xe.dragged=Xe.ghost=Xe.clone=Xe.active=null,el.forEach(function(t){t.checked=!0}),el.length=ku=Su=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":xe&&(this._onDragOver(t),FE(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,s=this.el.children,r=0,o=s.length,i=this.options;r<o;r++)n=s[r],Un(n,i.draggable,this.el,!1)&&t.push(n.getAttribute(i.dataIdAttr)||VE(n));return t},sort:function(t,n){var s={},r=this.el;this.toArray().forEach(function(o,i){var a=r.children[i];Un(a,this.options.draggable,r,!1)&&(s[o]=a)},this),n&&this.captureAnimationState(),t.forEach(function(o){s[o]&&(r.removeChild(s[o]),r.appendChild(s[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Un(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var s=this.options;if(n===void 0)return s[t];var r=ki.modifyOption(this,t,n);typeof r!="undefined"?s[t]=r:s[t]=n,t==="group"&&Eg(s)},destroy:function(){cn("destroy",this);var t=this.el;t[Xt]=null,ot(t,"mousedown",this._onTapStart),ot(t,"touchstart",this._onTapStart),ot(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ot(t,"dragover",this),ot(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qa.splice(Qa.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Ds){if(cn("hideClone",this),Xe.eventCanceled)return;je(Pt,"display","none"),this.options.removeCloneOnHide&&Pt.parentNode&&Pt.parentNode.removeChild(Pt),Ds=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Ds){if(cn("showClone",this),Xe.eventCanceled)return;xe.parentNode==xt&&!this.options.group.revertClone?xt.insertBefore(Pt,xe):sr?xt.insertBefore(Pt,sr):xt.appendChild(Pt),this.options.group.revertClone&&this.animate(xe,Pt),je(Pt,"display",""),Ds=!1}}};function FE(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Gi(e,t,n,s,r,o,i,a){var l,c=e[Xt],d=c.options.onMove,h;return window.CustomEvent&&!vs&&!wi?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=s,l.related=r||t,l.relatedRect=o||Et(t),l.willInsertAfter=a,l.originalEvent=i,e.dispatchEvent(l),d&&(h=d.call(c,l,i)),h}function Eu(e){e.draggable=!1}function IE(){_c=!1}function ME(e,t,n){var s=Et(oo(n.el,0,n.options,!0)),r=10;return t?e.clientX<s.left-r||e.clientY<s.top&&e.clientX<s.right:e.clientY<s.top-r||e.clientY<s.bottom&&e.clientX<s.left}function RE(e,t,n){var s=Et(Pd(n.el,n.options.draggable)),r=10;return t?e.clientX>s.right+r||e.clientX<=s.right&&e.clientY>s.bottom&&e.clientX>=s.left:e.clientX>s.right&&e.clientY>s.top||e.clientX<=s.right&&e.clientY>s.bottom+r}function LE(e,t,n,s,r,o,i,a){var l=s?e.clientY:e.clientX,c=s?n.height:n.width,d=s?n.top:n.left,h=s?n.bottom:n.right,f=!1;if(!i){if(a&&Ra<c*r){if(!Qo&&(Xo===1?l>d+c*o/2:l<h-c*o/2)&&(Qo=!0),Qo)f=!0;else if(Xo===1?l<d+Ra:l>h-Ra)return-Xo}else if(l>d+c*(1-r)/2&&l<h-c*(1-r)/2)return NE(t)}return f=f||i,f&&(l<d+c*o/2||l>h-c*o/2)?l>d+c/2?1:-1:0}function NE(e){return Ft(xe)<Ft(e)?1:-1}function VE(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,s=0;n--;)s+=t.charCodeAt(n);return s.toString(36)}function jE(e){el.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var s=t[n];s.checked&&el.push(s)}}function La(e){return setTimeout(e,0)}function gc(e){return clearTimeout(e)}Rl&<(document,"touchmove",function(e){(Xe.active||Lr)&&e.cancelable&&e.preventDefault()});Xe.utils={on:lt,off:ot,css:je,find:bg,is:function(t,n){return!!Un(t,n,t,!1)},extend:SE,throttle:wg,closest:Un,toggleClass:Ct,clone:Dd,index:Ft,nextTick:La,cancelNextTick:gc,detectDirection:xg,getChild:oo};Xe.get=function(e){return e[Xt]};Xe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(s){if(!s.prototype||!s.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(s));s.utils&&(Xe.utils=ns(ns({},Xe.utils),s.utils)),ki.mount(s)})};Xe.create=function(e,t){return new Xe(e,t)};Xe.version=yE;var Vt=[],Fo,vc,yc=!1,Cu,$u,tl,Io;function BE(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var s=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):s.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var s=n.originalEvent;!this.options.dragOverBubble&&!s.rootEl&&this._handleAutoScroll(s)},drop:function(){this.sortable.nativeDraggable?ot(document,"dragover",this._handleAutoScroll):(ot(document,"pointermove",this._handleFallbackAutoScroll),ot(document,"touchmove",this._handleFallbackAutoScroll),ot(document,"mousemove",this._handleFallbackAutoScroll)),Uh(),Na(),xE()},nulling:function(){tl=vc=Fo=yc=Io=Cu=$u=null,Vt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,s){var r=this,o=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,i);if(tl=n,s||this.options.forceAutoScrollFallback||wi||vs||Zo){Au(n,this.options,a,s);var l=Ms(a,!0);yc&&(!Io||o!==Cu||i!==$u)&&(Io&&Uh(),Io=setInterval(function(){var c=Ms(document.elementFromPoint(o,i),!0);c!==l&&(l=c,Na()),Au(n,r.options,c,s)},10),Cu=o,$u=i)}else{if(!this.options.bubbleScroll||Ms(a,!0)===ts()){Na();return}Au(n,this.options,Ms(a,!1),!1)}}},In(e,{pluginName:"scroll",initializeByDefault:!0})}function Na(){Vt.forEach(function(e){clearInterval(e.pid)}),Vt=[]}function Uh(){clearInterval(Io)}var Au=wg(function(e,t,n,s){if(!!t.scroll){var r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,a=t.scrollSpeed,l=ts(),c=!1,d;vc!==n&&(vc=n,Na(),Fo=t.scroll,d=t.scrollFn,Fo===!0&&(Fo=Ms(n,!0)));var h=0,f=Fo;do{var m=f,p=Et(m),_=p.top,g=p.bottom,y=p.left,b=p.right,S=p.width,x=p.height,C=void 0,A=void 0,M=m.scrollWidth,j=m.scrollHeight,O=je(m),V=m.scrollLeft,q=m.scrollTop;m===l?(C=S<M&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),A=x<j&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):(C=S<M&&(O.overflowX==="auto"||O.overflowX==="scroll"),A=x<j&&(O.overflowY==="auto"||O.overflowY==="scroll"));var F=C&&(Math.abs(b-r)<=i&&V+S<M)-(Math.abs(y-r)<=i&&!!V),B=A&&(Math.abs(g-o)<=i&&q+x<j)-(Math.abs(_-o)<=i&&!!q);if(!Vt[h])for(var W=0;W<=h;W++)Vt[W]||(Vt[W]={});(Vt[h].vx!=F||Vt[h].vy!=B||Vt[h].el!==m)&&(Vt[h].el=m,Vt[h].vx=F,Vt[h].vy=B,clearInterval(Vt[h].pid),(F!=0||B!=0)&&(c=!0,Vt[h].pid=setInterval(function(){s&&this.layer===0&&Xe.active._onTouchMove(tl);var ue=Vt[this.layer].vy?Vt[this.layer].vy*a:0,te=Vt[this.layer].vx?Vt[this.layer].vx*a:0;typeof d=="function"&&d.call(Xe.dragged.parentNode[Xt],te,ue,e,tl,Vt[this.layer].el)!=="continue"||kg(Vt[this.layer].el,te,ue)}.bind({layer:h}),24))),h++}while(t.bubbleScroll&&f!==l&&(f=Ms(f,!1)));yc=c}},30),Ag=function(t){var n=t.originalEvent,s=t.putSortable,r=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!n){var c=s||o;a();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,h=document.elementFromPoint(d.clientX,d.clientY);l(),c&&!c.el.contains(h)&&(i("spill"),this.onSpill({dragEl:r,putSortable:s}))}};function Fd(){}Fd.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,s=t.putSortable;this.sortable.captureAnimationState(),s&&s.captureAnimationState();var r=oo(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(n,r):this.sortable.el.appendChild(n),this.sortable.animateAll(),s&&s.animateAll()},drop:Ag};In(Fd,{pluginName:"revertOnSpill"});function Id(){}Id.prototype={onSpill:function(t){var n=t.dragEl,s=t.putSortable,r=s||this.sortable;r.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),r.animateAll()},drop:Ag};In(Id,{pluginName:"removeOnSpill"});var Tn;function UE(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var s=n.dragEl;Tn=s},dragOverValid:function(n){var s=n.completed,r=n.target,o=n.onMove,i=n.activeSortable,a=n.changed,l=n.cancel;if(!!i.options.swap){var c=this.sortable.el,d=this.options;if(r&&r!==c){var h=Tn;o(r)!==!1?(Ct(r,d.swapClass,!0),Tn=r):Tn=null,h&&h!==Tn&&Ct(h,d.swapClass,!1)}a(),s(!0),l()}},drop:function(n){var s=n.activeSortable,r=n.putSortable,o=n.dragEl,i=r||this.sortable,a=this.options;Tn&&Ct(Tn,a.swapClass,!1),Tn&&(a.swap||r&&r.options.swap)&&o!==Tn&&(i.captureAnimationState(),i!==s&&s.captureAnimationState(),HE(o,Tn),i.animateAll(),i!==s&&s.animateAll())},nulling:function(){Tn=null}},In(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Tn}}})}function HE(e,t){var n=e.parentNode,s=t.parentNode,r,o;!n||!s||n.isEqualNode(t)||s.isEqualNode(e)||(r=Ft(e),o=Ft(t),n.isEqualNode(s)&&r<o&&o++,n.insertBefore(t,n.children[r]),s.insertBefore(e,s.children[o]))}var tt=[],gn=[],yo,Nn,bo=!1,dn=!1,Pr=!1,kt,wo,Wi;function zE(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?lt(document,"pointerup",this._deselectMultiDrag):(lt(document,"mouseup",this._deselectMultiDrag),lt(document,"touchend",this._deselectMultiDrag)),lt(document,"keydown",this._checkKeyDown),lt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(r,o){var i="";tt.length&&Nn===t?tt.forEach(function(a,l){i+=(l?", ":"")+a.textContent}):i=o.textContent,r.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var s=n.dragEl;kt=s},delayEnded:function(){this.isMultiDrag=~tt.indexOf(kt)},setupClone:function(n){var s=n.sortable,r=n.cancel;if(!!this.isMultiDrag){for(var o=0;o<tt.length;o++)gn.push(Dd(tt[o])),gn[o].sortableIndex=tt[o].sortableIndex,gn[o].draggable=!1,gn[o].style["will-change"]="",Ct(gn[o],this.options.selectedClass,!1),tt[o]===kt&&Ct(gn[o],this.options.chosenClass,!1);s._hideClone(),r()}},clone:function(n){var s=n.sortable,r=n.rootEl,o=n.dispatchSortableEvent,i=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||tt.length&&Nn===s&&(Hh(!0,r),o("clone"),i())},showClone:function(n){var s=n.cloneNowShown,r=n.rootEl,o=n.cancel;!this.isMultiDrag||(Hh(!1,r),gn.forEach(function(i){je(i,"display","")}),s(),Wi=!1,o())},hideClone:function(n){var s=this;n.sortable;var r=n.cloneNowHidden,o=n.cancel;!this.isMultiDrag||(gn.forEach(function(i){je(i,"display","none"),s.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),r(),Wi=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Nn&&Nn.multiDrag._deselectMultiDrag(),tt.forEach(function(s){s.sortableIndex=Ft(s)}),tt=tt.sort(function(s,r){return s.sortableIndex-r.sortableIndex}),Pr=!0},dragStarted:function(n){var s=this,r=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(r.captureAnimationState(),this.options.animation)){tt.forEach(function(i){i!==kt&&je(i,"position","absolute")});var o=Et(kt,!1,!0,!0);tt.forEach(function(i){i!==kt&&Nh(i,o)}),dn=!0,bo=!0}r.animateAll(function(){dn=!1,bo=!1,s.options.animation&&tt.forEach(function(i){bu(i)}),s.options.sort&&Ki()})}},dragOver:function(n){var s=n.target,r=n.completed,o=n.cancel;dn&&~tt.indexOf(s)&&(r(!1),o())},revert:function(n){var s=n.fromSortable,r=n.rootEl,o=n.sortable,i=n.dragRect;tt.length>1&&(tt.forEach(function(a){o.addAnimationState({target:a,rect:dn?Et(a):i}),bu(a),a.fromRect=i,s.removeAnimationState(a)}),dn=!1,qE(!this.options.removeCloneOnHide,r))},dragOverCompleted:function(n){var s=n.sortable,r=n.isOwner,o=n.insertion,i=n.activeSortable,a=n.parentEl,l=n.putSortable,c=this.options;if(o){if(r&&i._hideClone(),bo=!1,c.animation&&tt.length>1&&(dn||!r&&!i.options.sort&&!l)){var d=Et(kt,!1,!0,!0);tt.forEach(function(f){f!==kt&&(Nh(f,d),a.appendChild(f))}),dn=!0}if(!r)if(dn||Ki(),tt.length>1){var h=Wi;i._showClone(s),i.options.animation&&!Wi&&h&&gn.forEach(function(f){i.addAnimationState({target:f,rect:wo}),f.fromRect=wo,f.thisAnimationDuration=null})}else i._showClone(s)}},dragOverAnimationCapture:function(n){var s=n.dragRect,r=n.isOwner,o=n.activeSortable;if(tt.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!r&&o.multiDrag.isMultiDrag){wo=In({},s);var i=cr(kt,!0);wo.top-=i.f,wo.left-=i.e}},dragOverAnimationComplete:function(){dn&&(dn=!1,Ki())},drop:function(n){var s=n.originalEvent,r=n.rootEl,o=n.parentEl,i=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,c=n.putSortable,d=c||this.sortable;if(!!s){var h=this.options,f=o.children;if(!Pr)if(h.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Ct(kt,h.selectedClass,!~tt.indexOf(kt)),~tt.indexOf(kt))tt.splice(tt.indexOf(kt),1),yo=null,Po({sortable:i,rootEl:r,name:"deselect",targetEl:kt,originalEvt:s});else{if(tt.push(kt),Po({sortable:i,rootEl:r,name:"select",targetEl:kt,originalEvt:s}),s.shiftKey&&yo&&i.el.contains(yo)){var m=Ft(yo),p=Ft(kt);if(~m&&~p&&m!==p){var _,g;for(p>m?(g=m,_=p):(g=p,_=m+1);g<_;g++)~tt.indexOf(f[g])||(Ct(f[g],h.selectedClass,!0),tt.push(f[g]),Po({sortable:i,rootEl:r,name:"select",targetEl:f[g],originalEvt:s}))}}else yo=kt;Nn=d}if(Pr&&this.isMultiDrag){if(dn=!1,(o[Xt].options.sort||o!==r)&&tt.length>1){var y=Et(kt),b=Ft(kt,":not(."+this.options.selectedClass+")");if(!bo&&h.animation&&(kt.thisAnimationDuration=null),d.captureAnimationState(),!bo&&(h.animation&&(kt.fromRect=y,tt.forEach(function(x){if(x.thisAnimationDuration=null,x!==kt){var C=dn?Et(x):y;x.fromRect=C,d.addAnimationState({target:x,rect:C})}})),Ki(),tt.forEach(function(x){f[b]?o.insertBefore(x,f[b]):o.appendChild(x),b++}),l===Ft(kt))){var S=!1;tt.forEach(function(x){if(x.sortableIndex!==Ft(x)){S=!0;return}}),S&&a("update")}tt.forEach(function(x){bu(x)}),d.animateAll()}Nn=d}(r===o||c&&c.lastPutMode!=="clone")&&gn.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=Pr=!1,gn.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ot(document,"pointerup",this._deselectMultiDrag),ot(document,"mouseup",this._deselectMultiDrag),ot(document,"touchend",this._deselectMultiDrag),ot(document,"keydown",this._checkKeyDown),ot(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Pr!="undefined"&&Pr)&&Nn===this.sortable&&!(n&&Un(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;tt.length;){var s=tt[0];Ct(s,this.options.selectedClass,!1),tt.shift(),Po({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:s,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},In(e,{pluginName:"multiDrag",utils:{select:function(n){var s=n.parentNode[Xt];!s||!s.options.multiDrag||~tt.indexOf(n)||(Nn&&Nn!==s&&(Nn.multiDrag._deselectMultiDrag(),Nn=s),Ct(n,s.options.selectedClass,!0),tt.push(n))},deselect:function(n){var s=n.parentNode[Xt],r=tt.indexOf(n);!s||!s.options.multiDrag||!~r||(Ct(n,s.options.selectedClass,!1),tt.splice(r,1))}},eventProperties:function(){var n=this,s=[],r=[];return tt.forEach(function(o){s.push({multiDragElement:o,index:o.sortableIndex});var i;dn&&o!==kt?i=-1:dn?i=Ft(o,":not(."+n.options.selectedClass+")"):i=Ft(o),r.push({multiDragElement:o,index:i})}),{items:mE(tt),clones:[].concat(gn),oldIndicies:s,newIndicies:r}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function qE(e,t){tt.forEach(function(n,s){var r=t.children[n.sortableIndex+(e?Number(s):0)];r?t.insertBefore(n,r):t.appendChild(n)})}function Hh(e,t){gn.forEach(function(n,s){var r=t.children[n.sortableIndex+(e?Number(s):0)];r?t.insertBefore(n,r):t.appendChild(n)})}function Ki(){tt.forEach(function(e){e!==kt&&e.parentNode&&e.parentNode.removeChild(e)})}Xe.mount(new BE);Xe.mount(Id,Fd);var GE=Object.freeze(Object.defineProperty({__proto__:null,default:Xe,MultiDrag:zE,Sortable:Xe,Swap:UE},Symbol.toStringTag,{value:"Module"})),WE=eg(GE);(function(e,t){(function(s,r){e.exports=r(Td,WE)})(typeof self!="undefined"?self:tn,function(n,s){return function(r){var o={};function i(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return r[a].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=r,i.c=o,i.d=function(a,l,c){i.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:c})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,l){if(l&1&&(a=i(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var c=Object.create(null);if(i.r(c),Object.defineProperty(c,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var d in a)i.d(c,d,function(h){return a[h]}.bind(null,d));return c},i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,"a",l),l},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.p="",i(i.s="fb15")}({"00ee":function(r,o,i){var a=i("b622"),l=a("toStringTag"),c={};c[l]="z",r.exports=String(c)==="[object z]"},"0366":function(r,o,i){var a=i("1c0b");r.exports=function(l,c,d){if(a(l),c===void 0)return l;switch(d){case 0:return function(){return l.call(c)};case 1:return function(h){return l.call(c,h)};case 2:return function(h,f){return l.call(c,h,f)};case 3:return function(h,f,m){return l.call(c,h,f,m)}}return function(){return l.apply(c,arguments)}}},"057f":function(r,o,i){var a=i("fc6a"),l=i("241c").f,c={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],h=function(f){try{return l(f)}catch{return d.slice()}};r.exports.f=function(m){return d&&c.call(m)=="[object Window]"?h(m):l(a(m))}},"06cf":function(r,o,i){var a=i("83ab"),l=i("d1e7"),c=i("5c6c"),d=i("fc6a"),h=i("c04e"),f=i("5135"),m=i("0cfb"),p=Object.getOwnPropertyDescriptor;o.f=a?p:function(g,y){if(g=d(g),y=h(y,!0),m)try{return p(g,y)}catch{}if(f(g,y))return c(!l.f.call(g,y),g[y])}},"0cfb":function(r,o,i){var a=i("83ab"),l=i("d039"),c=i("cc12");r.exports=!a&&!l(function(){return Object.defineProperty(c("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(r,o,i){var a=i("23e7"),l=i("d58f").left,c=i("a640"),d=i("ae40"),h=c("reduce"),f=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!h||!f},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(r,o,i){var a=i("c6b6"),l=i("9263");r.exports=function(c,d){var h=c.exec;if(typeof h=="function"){var f=h.call(c,d);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(a(c)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(c,d)}},"159b":function(r,o,i){var a=i("da84"),l=i("fdbc"),c=i("17c2"),d=i("9112");for(var h in l){var f=a[h],m=f&&f.prototype;if(m&&m.forEach!==c)try{d(m,"forEach",c)}catch{m.forEach=c}}},"17c2":function(r,o,i){var a=i("b727").forEach,l=i("a640"),c=i("ae40"),d=l("forEach"),h=c("forEach");r.exports=!d||!h?function(m){return a(this,m,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(r,o,i){var a=i("d066");r.exports=a("document","documentElement")},"1c0b":function(r,o){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(r,o,i){var a=i("b622"),l=a("iterator"),c=!1;try{var d=0,h={next:function(){return{done:!!d++}},return:function(){c=!0}};h[l]=function(){return this},Array.from(h,function(){throw 2})}catch{}r.exports=function(f,m){if(!m&&!c)return!1;var p=!1;try{var _={};_[l]=function(){return{next:function(){return{done:p=!0}}}},f(_)}catch{}return p}},"1d80":function(r,o){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(r,o,i){var a=i("d039"),l=i("b622"),c=i("2d00"),d=l("species");r.exports=function(h){return c>=51||!a(function(){var f=[],m=f.constructor={};return m[d]=function(){return{foo:1}},f[h](Boolean).foo!==1})}},"23cb":function(r,o,i){var a=i("a691"),l=Math.max,c=Math.min;r.exports=function(d,h){var f=a(d);return f<0?l(f+h,0):c(f,h)}},"23e7":function(r,o,i){var a=i("da84"),l=i("06cf").f,c=i("9112"),d=i("6eeb"),h=i("ce4e"),f=i("e893"),m=i("94ca");r.exports=function(p,_){var g=p.target,y=p.global,b=p.stat,S,x,C,A,M,j;if(y?x=a:b?x=a[g]||h(g,{}):x=(a[g]||{}).prototype,x)for(C in _){if(M=_[C],p.noTargetGet?(j=l(x,C),A=j&&j.value):A=x[C],S=m(y?C:g+(b?".":"#")+C,p.forced),!S&&A!==void 0){if(typeof M==typeof A)continue;f(M,A)}(p.sham||A&&A.sham)&&c(M,"sham",!0),d(x,C,M,p)}}},"241c":function(r,o,i){var a=i("ca84"),l=i("7839"),c=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(h){return a(h,c)}},"25f0":function(r,o,i){var a=i("6eeb"),l=i("825a"),c=i("d039"),d=i("ad6d"),h="toString",f=RegExp.prototype,m=f[h],p=c(function(){return m.call({source:"a",flags:"b"})!="/a/b"}),_=m.name!=h;(p||_)&&a(RegExp.prototype,h,function(){var y=l(this),b=String(y.source),S=y.flags,x=String(S===void 0&&y instanceof RegExp&&!("flags"in f)?d.call(y):S);return"/"+b+"/"+x},{unsafe:!0})},"2ca0":function(r,o,i){var a=i("23e7"),l=i("06cf").f,c=i("50c4"),d=i("5a34"),h=i("1d80"),f=i("ab13"),m=i("c430"),p="".startsWith,_=Math.min,g=f("startsWith"),y=!m&&!g&&!!function(){var b=l(String.prototype,"startsWith");return b&&!b.writable}();a({target:"String",proto:!0,forced:!y&&!g},{startsWith:function(S){var x=String(h(this));d(S);var C=c(_(arguments.length>1?arguments[1]:void 0,x.length)),A=String(S);return p?p.call(x,A,C):x.slice(C,C+A.length)===A}})},"2d00":function(r,o,i){var a=i("da84"),l=i("342f"),c=a.process,d=c&&c.versions,h=d&&d.v8,f,m;h?(f=h.split("."),m=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(m=f[1]))),r.exports=m&&+m},"342f":function(r,o,i){var a=i("d066");r.exports=a("navigator","userAgent")||""},"35a1":function(r,o,i){var a=i("f5df"),l=i("3f8c"),c=i("b622"),d=c("iterator");r.exports=function(h){if(h!=null)return h[d]||h["@@iterator"]||l[a(h)]}},"37e8":function(r,o,i){var a=i("83ab"),l=i("9bf2"),c=i("825a"),d=i("df75");r.exports=a?Object.defineProperties:function(f,m){c(f);for(var p=d(m),_=p.length,g=0,y;_>g;)l.f(f,y=p[g++],m[y]);return f}},"3bbe":function(r,o,i){var a=i("861d");r.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(r,o,i){var a=i("6547").charAt,l=i("69f3"),c=i("7dd0"),d="String Iterator",h=l.set,f=l.getterFor(d);c(String,"String",function(m){h(this,{type:d,string:String(m),index:0})},function(){var p=f(this),_=p.string,g=p.index,y;return g>=_.length?{value:void 0,done:!0}:(y=a(_,g),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(r,o){r.exports={}},"4160":function(r,o,i){var a=i("23e7"),l=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(r,o,i){var a=i("da84");r.exports=a},"44ad":function(r,o,i){var a=i("d039"),l=i("c6b6"),c="".split;r.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return l(d)=="String"?c.call(d,""):Object(d)}:Object},"44d2":function(r,o,i){var a=i("b622"),l=i("7c73"),c=i("9bf2"),d=a("unscopables"),h=Array.prototype;h[d]==null&&c.f(h,d,{configurable:!0,value:l(null)}),r.exports=function(f){h[d][f]=!0}},"44e7":function(r,o,i){var a=i("861d"),l=i("c6b6"),c=i("b622"),d=c("match");r.exports=function(h){var f;return a(h)&&((f=h[d])!==void 0?!!f:l(h)=="RegExp")}},"4930":function(r,o,i){var a=i("d039");r.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(r,o,i){var a=i("fc6a"),l=i("50c4"),c=i("23cb"),d=function(h){return function(f,m,p){var _=a(f),g=l(_.length),y=c(p,g),b;if(h&&m!=m){for(;g>y;)if(b=_[y++],b!=b)return!0}else for(;g>y;y++)if((h||y in _)&&_[y]===m)return h||y||0;return!h&&-1}};r.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(r,o,i){var a=i("23e7"),l=i("b727").filter,c=i("1dde"),d=i("ae40"),h=c("filter"),f=d("filter");a({target:"Array",proto:!0,forced:!h||!f},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(r,o,i){var a=i("0366"),l=i("7b0b"),c=i("9bdd"),d=i("e95a"),h=i("50c4"),f=i("8418"),m=i("35a1");r.exports=function(_){var g=l(_),y=typeof this=="function"?this:Array,b=arguments.length,S=b>1?arguments[1]:void 0,x=S!==void 0,C=m(g),A=0,M,j,O,V,q,F;if(x&&(S=a(S,b>2?arguments[2]:void 0,2)),C!=null&&!(y==Array&&d(C)))for(V=C.call(g),q=V.next,j=new y;!(O=q.call(V)).done;A++)F=x?c(V,S,[O.value,A],!0):O.value,f(j,A,F);else for(M=h(g.length),j=new y(M);M>A;A++)F=x?S(g[A],A):g[A],f(j,A,F);return j.length=A,j}},"4fad":function(r,o,i){var a=i("23e7"),l=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return l(d)}})},"50c4":function(r,o,i){var a=i("a691"),l=Math.min;r.exports=function(c){return c>0?l(a(c),9007199254740991):0}},"5135":function(r,o){var i={}.hasOwnProperty;r.exports=function(a,l){return i.call(a,l)}},"5319":function(r,o,i){var a=i("d784"),l=i("825a"),c=i("7b0b"),d=i("50c4"),h=i("a691"),f=i("1d80"),m=i("8aa5"),p=i("14c3"),_=Math.max,g=Math.min,y=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,x=function(C){return C===void 0?C:String(C)};a("replace",2,function(C,A,M,j){var O=j.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,V=j.REPLACE_KEEPS_$0,q=O?"$":"$0";return[function(W,ue){var te=f(this),ae=W==null?void 0:W[C];return ae!==void 0?ae.call(W,te,ue):A.call(String(te),W,ue)},function(B,W){if(!O&&V||typeof W=="string"&&W.indexOf(q)===-1){var ue=M(A,B,this,W);if(ue.done)return ue.value}var te=l(B),ae=String(this),ve=typeof W=="function";ve||(W=String(W));var Le=te.global;if(Le){var qe=te.unicode;te.lastIndex=0}for(var me=[];;){var Y=p(te,ae);if(Y===null||(me.push(Y),!Le))break;var ce=String(Y[0]);ce===""&&(te.lastIndex=m(ae,d(te.lastIndex),qe))}for(var we="",U=0,re=0;re<me.length;re++){Y=me[re];for(var ne=String(Y[0]),be=_(g(h(Y.index),ae.length),0),Ue=[],Me=1;Me<Y.length;Me++)Ue.push(x(Y[Me]));var Ae=Y.groups;if(ve){var De=[ne].concat(Ue,be,ae);Ae!==void 0&&De.push(Ae);var $=String(W.apply(void 0,De))}else $=F(ne,ae,be,Ue,Ae,W);be>=U&&(we+=ae.slice(U,be)+$,U=be+ne.length)}return we+ae.slice(U)}];function F(B,W,ue,te,ae,ve){var Le=ue+B.length,qe=te.length,me=S;return ae!==void 0&&(ae=c(ae),me=b),A.call(ve,me,function(Y,ce){var we;switch(ce.charAt(0)){case"$":return"$";case"&":return B;case"`":return W.slice(0,ue);case"'":return W.slice(Le);case"<":we=ae[ce.slice(1,-1)];break;default:var U=+ce;if(U===0)return Y;if(U>qe){var re=y(U/10);return re===0?Y:re<=qe?te[re-1]===void 0?ce.charAt(1):te[re-1]+ce.charAt(1):Y}we=te[U-1]}return we===void 0?"":we})}})},"5692":function(r,o,i){var a=i("c430"),l=i("c6cd");(r.exports=function(c,d){return l[c]||(l[c]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(r,o,i){var a=i("d066"),l=i("241c"),c=i("7418"),d=i("825a");r.exports=a("Reflect","ownKeys")||function(f){var m=l.f(d(f)),p=c.f;return p?m.concat(p(f)):m}},"5a34":function(r,o,i){var a=i("44e7");r.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(r,o){r.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"5db7":function(r,o,i){var a=i("23e7"),l=i("a2bf"),c=i("7b0b"),d=i("50c4"),h=i("1c0b"),f=i("65f0");a({target:"Array",proto:!0},{flatMap:function(p){var _=c(this),g=d(_.length),y;return h(p),y=f(_,0),y.length=l(y,_,_,g,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},"6547":function(r,o,i){var a=i("a691"),l=i("1d80"),c=function(d){return function(h,f){var m=String(l(h)),p=a(f),_=m.length,g,y;return p<0||p>=_?d?"":void 0:(g=m.charCodeAt(p),g<55296||g>56319||p+1===_||(y=m.charCodeAt(p+1))<56320||y>57343?d?m.charAt(p):g:d?m.slice(p,p+2):(g-55296<<10)+(y-56320)+65536)}};r.exports={codeAt:c(!1),charAt:c(!0)}},"65f0":function(r,o,i){var a=i("861d"),l=i("e8b5"),c=i("b622"),d=c("species");r.exports=function(h,f){var m;return l(h)&&(m=h.constructor,typeof m=="function"&&(m===Array||l(m.prototype))?m=void 0:a(m)&&(m=m[d],m===null&&(m=void 0))),new(m===void 0?Array:m)(f===0?0:f)}},"69f3":function(r,o,i){var a=i("7f9a"),l=i("da84"),c=i("861d"),d=i("9112"),h=i("5135"),f=i("f772"),m=i("d012"),p=l.WeakMap,_,g,y,b=function(O){return y(O)?g(O):_(O,{})},S=function(O){return function(V){var q;if(!c(V)||(q=g(V)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return q}};if(a){var x=new p,C=x.get,A=x.has,M=x.set;_=function(O,V){return M.call(x,O,V),V},g=function(O){return C.call(x,O)||{}},y=function(O){return A.call(x,O)}}else{var j=f("state");m[j]=!0,_=function(O,V){return d(O,j,V),V},g=function(O){return h(O,j)?O[j]:{}},y=function(O){return h(O,j)}}r.exports={set:_,get:g,has:y,enforce:b,getterFor:S}},"6eeb":function(r,o,i){var a=i("da84"),l=i("9112"),c=i("5135"),d=i("ce4e"),h=i("8925"),f=i("69f3"),m=f.get,p=f.enforce,_=String(String).split("String");(r.exports=function(g,y,b,S){var x=S?!!S.unsafe:!1,C=S?!!S.enumerable:!1,A=S?!!S.noTargetGet:!1;if(typeof b=="function"&&(typeof y=="string"&&!c(b,"name")&&l(b,"name",y),p(b).source=_.join(typeof y=="string"?y:"")),g===a){C?g[y]=b:d(y,b);return}else x?!A&&g[y]&&(C=!0):delete g[y];C?g[y]=b:l(g,y,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&m(this).source||h(this)})},"6f53":function(r,o,i){var a=i("83ab"),l=i("df75"),c=i("fc6a"),d=i("d1e7").f,h=function(f){return function(m){for(var p=c(m),_=l(p),g=_.length,y=0,b=[],S;g>y;)S=_[y++],(!a||d.call(p,S))&&b.push(f?[S,p[S]]:p[S]);return b}};r.exports={entries:h(!0),values:h(!1)}},"73d9":function(r,o,i){var a=i("44d2");a("flatMap")},"7418":function(r,o){o.f=Object.getOwnPropertySymbols},"746f":function(r,o,i){var a=i("428f"),l=i("5135"),c=i("e538"),d=i("9bf2").f;r.exports=function(h){var f=a.Symbol||(a.Symbol={});l(f,h)||d(f,h,{value:c.f(h)})}},"7839":function(r,o){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(r,o,i){var a=i("1d80");r.exports=function(l){return Object(a(l))}},"7c73":function(r,o,i){var a=i("825a"),l=i("37e8"),c=i("7839"),d=i("d012"),h=i("1be4"),f=i("cc12"),m=i("f772"),p=">",_="<",g="prototype",y="script",b=m("IE_PROTO"),S=function(){},x=function(O){return _+y+p+O+_+"/"+y+p},C=function(O){O.write(x("")),O.close();var V=O.parentWindow.Object;return O=null,V},A=function(){var O=f("iframe"),V="java"+y+":",q;return O.style.display="none",h.appendChild(O),O.src=String(V),q=O.contentWindow.document,q.open(),q.write(x("document.F=Object")),q.close(),q.F},M,j=function(){try{M=document.domain&&new ActiveXObject("htmlfile")}catch{}j=M?C(M):A();for(var O=c.length;O--;)delete j[g][c[O]];return j()};d[b]=!0,r.exports=Object.create||function(V,q){var F;return V!==null?(S[g]=a(V),F=new S,S[g]=null,F[b]=V):F=j(),q===void 0?F:l(F,q)}},"7dd0":function(r,o,i){var a=i("23e7"),l=i("9ed3"),c=i("e163"),d=i("d2bb"),h=i("d44e"),f=i("9112"),m=i("6eeb"),p=i("b622"),_=i("c430"),g=i("3f8c"),y=i("ae93"),b=y.IteratorPrototype,S=y.BUGGY_SAFARI_ITERATORS,x=p("iterator"),C="keys",A="values",M="entries",j=function(){return this};r.exports=function(O,V,q,F,B,W,ue){l(q,V,F);var te=function(re){if(re===B&&me)return me;if(!S&&re in Le)return Le[re];switch(re){case C:return function(){return new q(this,re)};case A:return function(){return new q(this,re)};case M:return function(){return new q(this,re)}}return function(){return new q(this)}},ae=V+" Iterator",ve=!1,Le=O.prototype,qe=Le[x]||Le["@@iterator"]||B&&Le[B],me=!S&&qe||te(B),Y=V=="Array"&&Le.entries||qe,ce,we,U;if(Y&&(ce=c(Y.call(new O)),b!==Object.prototype&&ce.next&&(!_&&c(ce)!==b&&(d?d(ce,b):typeof ce[x]!="function"&&f(ce,x,j)),h(ce,ae,!0,!0),_&&(g[ae]=j))),B==A&&qe&&qe.name!==A&&(ve=!0,me=function(){return qe.call(this)}),(!_||ue)&&Le[x]!==me&&f(Le,x,me),g[V]=me,B)if(we={values:te(A),keys:W?me:te(C),entries:te(M)},ue)for(U in we)(S||ve||!(U in Le))&&m(Le,U,we[U]);else a({target:V,proto:!0,forced:S||ve},we);return we}},"7f9a":function(r,o,i){var a=i("da84"),l=i("8925"),c=a.WeakMap;r.exports=typeof c=="function"&&/native code/.test(l(c))},"825a":function(r,o,i){var a=i("861d");r.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(r,o,i){var a=i("d039");r.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"8418":function(r,o,i){var a=i("c04e"),l=i("9bf2"),c=i("5c6c");r.exports=function(d,h,f){var m=a(h);m in d?l.f(d,m,c(0,f)):d[m]=f}},"861d":function(r,o){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"8875":function(r,o,i){var a,l,c;(function(d,h){l=[],a=h,c=typeof a=="function"?a.apply(o,l):a,c!==void 0&&(r.exports=c)})(typeof self!="undefined"?self:this,function(){function d(){var h=Object.getOwnPropertyDescriptor(document,"currentScript");if(!h&&"currentScript"in document&&document.currentScript||h&&h.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(M){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,m=/@([^@]*):(\d+):(\d+)\s*$/ig,p=f.exec(M.stack)||m.exec(M.stack),_=p&&p[1]||!1,g=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),b,S,x,C=document.getElementsByTagName("script");_===y&&(b=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),x=b.replace(S,"$1").trim());for(var A=0;A<C.length;A++)if(C[A].readyState==="interactive"||C[A].src===_||_===y&&C[A].innerHTML&&C[A].innerHTML.trim()===x)return C[A];return null}}return d})},"8925":function(r,o,i){var a=i("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(c){return l.call(c)}),r.exports=a.inspectSource},"8aa5":function(r,o,i){var a=i("6547").charAt;r.exports=function(l,c,d){return c+(d?a(l,c).length:1)}},"8bbf":function(r,o){r.exports=n},"90e3":function(r,o){var i=0,a=Math.random();r.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++i+a).toString(36)}},"9112":function(r,o,i){var a=i("83ab"),l=i("9bf2"),c=i("5c6c");r.exports=a?function(d,h,f){return l.f(d,h,c(1,f))}:function(d,h,f){return d[h]=f,d}},"9263":function(r,o,i){var a=i("ad6d"),l=i("9f7f"),c=RegExp.prototype.exec,d=String.prototype.replace,h=c,f=function(){var g=/a/,y=/b*/g;return c.call(g,"a"),c.call(y,"a"),g.lastIndex!==0||y.lastIndex!==0}(),m=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,_=f||p||m;_&&(h=function(y){var b=this,S,x,C,A,M=m&&b.sticky,j=a.call(b),O=b.source,V=0,q=y;return M&&(j=j.replace("y",""),j.indexOf("g")===-1&&(j+="g"),q=String(y).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&y[b.lastIndex-1]!==`
|
|
`)&&(O="(?: "+O+")",q=" "+q,V++),x=new RegExp("^(?:"+O+")",j)),p&&(x=new RegExp("^"+O+"$(?!\\s)",j)),f&&(S=b.lastIndex),C=c.call(M?x:b,q),M?C?(C.input=C.input.slice(V),C[0]=C[0].slice(V),C.index=b.lastIndex,b.lastIndex+=C[0].length):b.lastIndex=0:f&&C&&(b.lastIndex=b.global?C.index+C[0].length:S),p&&C&&C.length>1&&d.call(C[0],x,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&(C[A]=void 0)}),C}),r.exports=h},"94ca":function(r,o,i){var a=i("d039"),l=/#|\.prototype\./,c=function(p,_){var g=h[d(p)];return g==m?!0:g==f?!1:typeof _=="function"?a(_):!!_},d=c.normalize=function(p){return String(p).replace(l,".").toLowerCase()},h=c.data={},f=c.NATIVE="N",m=c.POLYFILL="P";r.exports=c},"99af":function(r,o,i){var a=i("23e7"),l=i("d039"),c=i("e8b5"),d=i("861d"),h=i("7b0b"),f=i("50c4"),m=i("8418"),p=i("65f0"),_=i("1dde"),g=i("b622"),y=i("2d00"),b=g("isConcatSpreadable"),S=9007199254740991,x="Maximum allowed index exceeded",C=y>=51||!l(function(){var O=[];return O[b]=!1,O.concat()[0]!==O}),A=_("concat"),M=function(O){if(!d(O))return!1;var V=O[b];return V!==void 0?!!V:c(O)},j=!C||!A;a({target:"Array",proto:!0,forced:j},{concat:function(V){var q=h(this),F=p(q,0),B=0,W,ue,te,ae,ve;for(W=-1,te=arguments.length;W<te;W++)if(ve=W===-1?q:arguments[W],M(ve)){if(ae=f(ve.length),B+ae>S)throw TypeError(x);for(ue=0;ue<ae;ue++,B++)ue in ve&&m(F,B,ve[ue])}else{if(B>=S)throw TypeError(x);m(F,B++,ve)}return F.length=B,F}})},"9bdd":function(r,o,i){var a=i("825a");r.exports=function(l,c,d,h){try{return h?c(a(d)[0],d[1]):c(d)}catch(m){var f=l.return;throw f!==void 0&&a(f.call(l)),m}}},"9bf2":function(r,o,i){var a=i("83ab"),l=i("0cfb"),c=i("825a"),d=i("c04e"),h=Object.defineProperty;o.f=a?h:function(m,p,_){if(c(m),p=d(p,!0),c(_),l)try{return h(m,p,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(m[p]=_.value),m}},"9ed3":function(r,o,i){var a=i("ae93").IteratorPrototype,l=i("7c73"),c=i("5c6c"),d=i("d44e"),h=i("3f8c"),f=function(){return this};r.exports=function(m,p,_){var g=p+" Iterator";return m.prototype=l(a,{next:c(1,_)}),d(m,g,!1,!0),h[g]=f,m}},"9f7f":function(r,o,i){var a=i("d039");function l(c,d){return RegExp(c,d)}o.UNSUPPORTED_Y=a(function(){var c=l("a","y");return c.lastIndex=2,c.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var c=l("^r","gy");return c.lastIndex=2,c.exec("str")!=null})},a2bf:function(r,o,i){var a=i("e8b5"),l=i("50c4"),c=i("0366"),d=function(h,f,m,p,_,g,y,b){for(var S=_,x=0,C=y?c(y,b,3):!1,A;x<p;){if(x in m){if(A=C?C(m[x],x,f):m[x],g>0&&a(A))S=d(h,f,A,l(A.length),S,g-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");h[S]=A}S++}x++}return S};r.exports=d},a352:function(r,o){r.exports=s},a434:function(r,o,i){var a=i("23e7"),l=i("23cb"),c=i("a691"),d=i("50c4"),h=i("7b0b"),f=i("65f0"),m=i("8418"),p=i("1dde"),_=i("ae40"),g=p("splice"),y=_("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,S=Math.min,x=9007199254740991,C="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!g||!y},{splice:function(M,j){var O=h(this),V=d(O.length),q=l(M,V),F=arguments.length,B,W,ue,te,ae,ve;if(F===0?B=W=0:F===1?(B=0,W=V-q):(B=F-2,W=S(b(c(j),0),V-q)),V+B-W>x)throw TypeError(C);for(ue=f(O,W),te=0;te<W;te++)ae=q+te,ae in O&&m(ue,te,O[ae]);if(ue.length=W,B<W){for(te=q;te<V-W;te++)ae=te+W,ve=te+B,ae in O?O[ve]=O[ae]:delete O[ve];for(te=V;te>V-W+B;te--)delete O[te-1]}else if(B>W)for(te=V-W;te>q;te--)ae=te+W-1,ve=te+B-1,ae in O?O[ve]=O[ae]:delete O[ve];for(te=0;te<B;te++)O[te+q]=arguments[te+2];return O.length=V-W+B,ue}})},a4d3:function(r,o,i){var a=i("23e7"),l=i("da84"),c=i("d066"),d=i("c430"),h=i("83ab"),f=i("4930"),m=i("fdbf"),p=i("d039"),_=i("5135"),g=i("e8b5"),y=i("861d"),b=i("825a"),S=i("7b0b"),x=i("fc6a"),C=i("c04e"),A=i("5c6c"),M=i("7c73"),j=i("df75"),O=i("241c"),V=i("057f"),q=i("7418"),F=i("06cf"),B=i("9bf2"),W=i("d1e7"),ue=i("9112"),te=i("6eeb"),ae=i("5692"),ve=i("f772"),Le=i("d012"),qe=i("90e3"),me=i("b622"),Y=i("e538"),ce=i("746f"),we=i("d44e"),U=i("69f3"),re=i("b727").forEach,ne=ve("hidden"),be="Symbol",Ue="prototype",Me=me("toPrimitive"),Ae=U.set,De=U.getterFor(be),$=Object[Ue],L=l.Symbol,K=c("JSON","stringify"),oe=F.f,le=B.f,ye=V.f,ke=W.f,he=ae("symbols"),pe=ae("op-symbols"),fe=ae("string-to-symbol-registry"),Ne=ae("symbol-to-string-registry"),Ce=ae("wks"),Re=l.QObject,He=!Re||!Re[Ue]||!Re[Ue].findChild,Je=h&&p(function(){return M(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(ie,X,se){var Ve=oe($,X);Ve&&delete $[X],le(ie,X,se),Ve&&ie!==$&&le($,X,Ve)}:le,st=function(ie,X){var se=he[ie]=M(L[Ue]);return Ae(se,{type:be,tag:ie,description:X}),h||(se.description=X),se},k=m?function(ie){return typeof ie=="symbol"}:function(ie){return Object(ie)instanceof L},v=function(X,se,Ve){X===$&&v(pe,se,Ve),b(X);var Be=C(se,!0);return b(Ve),_(he,Be)?(Ve.enumerable?(_(X,ne)&&X[ne][Be]&&(X[ne][Be]=!1),Ve=M(Ve,{enumerable:A(0,!1)})):(_(X,ne)||le(X,ne,A(1,{})),X[ne][Be]=!0),Je(X,Be,Ve)):le(X,Be,Ve)},I=function(X,se){b(X);var Ve=x(se),Be=j(Ve).concat(Ie(Ve));return re(Be,function(ct){(!h||J.call(Ve,ct))&&v(X,ct,Ve[ct])}),X},z=function(X,se){return se===void 0?M(X):I(M(X),se)},J=function(X){var se=C(X,!0),Ve=ke.call(this,se);return this===$&&_(he,se)&&!_(pe,se)?!1:Ve||!_(this,se)||!_(he,se)||_(this,ne)&&this[ne][se]?Ve:!0},de=function(X,se){var Ve=x(X),Be=C(se,!0);if(!(Ve===$&&_(he,Be)&&!_(pe,Be))){var ct=oe(Ve,Be);return ct&&_(he,Be)&&!(_(Ve,ne)&&Ve[ne][Be])&&(ct.enumerable=!0),ct}},Ee=function(X){var se=ye(x(X)),Ve=[];return re(se,function(Be){!_(he,Be)&&!_(Le,Be)&&Ve.push(Be)}),Ve},Ie=function(X){var se=X===$,Ve=ye(se?pe:x(X)),Be=[];return re(Ve,function(ct){_(he,ct)&&(!se||_($,ct))&&Be.push(he[ct])}),Be};if(f||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor");var X=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),se=qe(X),Ve=function(Be){this===$&&Ve.call(pe,Be),_(this,ne)&&_(this[ne],se)&&(this[ne][se]=!1),Je(this,se,A(1,Be))};return h&&He&&Je($,se,{configurable:!0,set:Ve}),st(se,X)},te(L[Ue],"toString",function(){return De(this).tag}),te(L,"withoutSetter",function(ie){return st(qe(ie),ie)}),W.f=J,B.f=v,F.f=de,O.f=V.f=Ee,q.f=Ie,Y.f=function(ie){return st(me(ie),ie)},h&&(le(L[Ue],"description",{configurable:!0,get:function(){return De(this).description}}),d||te($,"propertyIsEnumerable",J,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:L}),re(j(Ce),function(ie){ce(ie)}),a({target:be,stat:!0,forced:!f},{for:function(ie){var X=String(ie);if(_(fe,X))return fe[X];var se=L(X);return fe[X]=se,Ne[se]=X,se},keyFor:function(X){if(!k(X))throw TypeError(X+" is not a symbol");if(_(Ne,X))return Ne[X]},useSetter:function(){He=!0},useSimple:function(){He=!1}}),a({target:"Object",stat:!0,forced:!f,sham:!h},{create:z,defineProperty:v,defineProperties:I,getOwnPropertyDescriptor:de}),a({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:Ee,getOwnPropertySymbols:Ie}),a({target:"Object",stat:!0,forced:p(function(){q.f(1)})},{getOwnPropertySymbols:function(X){return q.f(S(X))}}),K){var ee=!f||p(function(){var ie=L();return K([ie])!="[null]"||K({a:ie})!="{}"||K(Object(ie))!="{}"});a({target:"JSON",stat:!0,forced:ee},{stringify:function(X,se,Ve){for(var Be=[X],ct=1,ln;arguments.length>ct;)Be.push(arguments[ct++]);if(ln=se,!(!y(se)&&X===void 0||k(X)))return g(se)||(se=function(Mn,Rn){if(typeof ln=="function"&&(Rn=ln.call(this,Mn,Rn)),!k(Rn))return Rn}),Be[1]=se,K.apply(null,Be)}})}L[Ue][Me]||ue(L[Ue],Me,L[Ue].valueOf),we(L,be),Le[ne]=!0},a630:function(r,o,i){var a=i("23e7"),l=i("4df4"),c=i("1c7e"),d=!c(function(h){Array.from(h)});a({target:"Array",stat:!0,forced:d},{from:l})},a640:function(r,o,i){var a=i("d039");r.exports=function(l,c){var d=[][l];return!!d&&a(function(){d.call(null,c||function(){throw 1},1)})}},a691:function(r,o){var i=Math.ceil,a=Math.floor;r.exports=function(l){return isNaN(l=+l)?0:(l>0?a:i)(l)}},ab13:function(r,o,i){var a=i("b622"),l=a("match");r.exports=function(c){var d=/./;try{"/./"[c](d)}catch{try{return d[l]=!1,"/./"[c](d)}catch{}}return!1}},ac1f:function(r,o,i){var a=i("23e7"),l=i("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(r,o,i){var a=i("825a");r.exports=function(){var l=a(this),c="";return l.global&&(c+="g"),l.ignoreCase&&(c+="i"),l.multiline&&(c+="m"),l.dotAll&&(c+="s"),l.unicode&&(c+="u"),l.sticky&&(c+="y"),c}},ae40:function(r,o,i){var a=i("83ab"),l=i("d039"),c=i("5135"),d=Object.defineProperty,h={},f=function(m){throw m};r.exports=function(m,p){if(c(h,m))return h[m];p||(p={});var _=[][m],g=c(p,"ACCESSORS")?p.ACCESSORS:!1,y=c(p,0)?p[0]:f,b=c(p,1)?p[1]:void 0;return h[m]=!!_&&!l(function(){if(g&&!a)return!0;var S={length:-1};g?d(S,1,{enumerable:!0,get:f}):S[1]=1,_.call(S,y,b)})}},ae93:function(r,o,i){var a=i("e163"),l=i("9112"),c=i("5135"),d=i("b622"),h=i("c430"),f=d("iterator"),m=!1,p=function(){return this},_,g,y;[].keys&&(y=[].keys(),"next"in y?(g=a(a(y)),g!==Object.prototype&&(_=g)):m=!0),_==null&&(_={}),!h&&!c(_,f)&&l(_,f,p),r.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:m}},b041:function(r,o,i){var a=i("00ee"),l=i("f5df");r.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(r,o,i){var a=i("83ab"),l=i("9bf2").f,c=Function.prototype,d=c.toString,h=/^\s*function ([^ (]*)/,f="name";a&&!(f in c)&&l(c,f,{configurable:!0,get:function(){try{return d.call(this).match(h)[1]}catch{return""}}})},b622:function(r,o,i){var a=i("da84"),l=i("5692"),c=i("5135"),d=i("90e3"),h=i("4930"),f=i("fdbf"),m=l("wks"),p=a.Symbol,_=f?p:p&&p.withoutSetter||d;r.exports=function(g){return c(m,g)||(h&&c(p,g)?m[g]=p[g]:m[g]=_("Symbol."+g)),m[g]}},b64b:function(r,o,i){var a=i("23e7"),l=i("7b0b"),c=i("df75"),d=i("d039"),h=d(function(){c(1)});a({target:"Object",stat:!0,forced:h},{keys:function(m){return c(l(m))}})},b727:function(r,o,i){var a=i("0366"),l=i("44ad"),c=i("7b0b"),d=i("50c4"),h=i("65f0"),f=[].push,m=function(p){var _=p==1,g=p==2,y=p==3,b=p==4,S=p==6,x=p==5||S;return function(C,A,M,j){for(var O=c(C),V=l(O),q=a(A,M,3),F=d(V.length),B=0,W=j||h,ue=_?W(C,F):g?W(C,0):void 0,te,ae;F>B;B++)if((x||B in V)&&(te=V[B],ae=q(te,B,O),p)){if(_)ue[B]=ae;else if(ae)switch(p){case 3:return!0;case 5:return te;case 6:return B;case 2:f.call(ue,te)}else if(b)return!1}return S?-1:y||b?b:ue}};r.exports={forEach:m(0),map:m(1),filter:m(2),some:m(3),every:m(4),find:m(5),findIndex:m(6)}},c04e:function(r,o,i){var a=i("861d");r.exports=function(l,c){if(!a(l))return l;var d,h;if(c&&typeof(d=l.toString)=="function"&&!a(h=d.call(l))||typeof(d=l.valueOf)=="function"&&!a(h=d.call(l))||!c&&typeof(d=l.toString)=="function"&&!a(h=d.call(l)))return h;throw TypeError("Can't convert object to primitive value")}},c430:function(r,o){r.exports=!1},c6b6:function(r,o){var i={}.toString;r.exports=function(a){return i.call(a).slice(8,-1)}},c6cd:function(r,o,i){var a=i("da84"),l=i("ce4e"),c="__core-js_shared__",d=a[c]||l(c,{});r.exports=d},c740:function(r,o,i){var a=i("23e7"),l=i("b727").findIndex,c=i("44d2"),d=i("ae40"),h="findIndex",f=!0,m=d(h);h in[]&&Array(1)[h](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!m},{findIndex:function(_){return l(this,_,arguments.length>1?arguments[1]:void 0)}}),c(h)},c8ba:function(r,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}r.exports=i},c975:function(r,o,i){var a=i("23e7"),l=i("4d64").indexOf,c=i("a640"),d=i("ae40"),h=[].indexOf,f=!!h&&1/[1].indexOf(1,-0)<0,m=c("indexOf"),p=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!m||!p},{indexOf:function(g){return f?h.apply(this,arguments)||0:l(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(r,o,i){var a=i("5135"),l=i("fc6a"),c=i("4d64").indexOf,d=i("d012");r.exports=function(h,f){var m=l(h),p=0,_=[],g;for(g in m)!a(d,g)&&a(m,g)&&_.push(g);for(;f.length>p;)a(m,g=f[p++])&&(~c(_,g)||_.push(g));return _}},caad:function(r,o,i){var a=i("23e7"),l=i("4d64").includes,c=i("44d2"),d=i("ae40"),h=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!h},{includes:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),c("includes")},cc12:function(r,o,i){var a=i("da84"),l=i("861d"),c=a.document,d=l(c)&&l(c.createElement);r.exports=function(h){return d?c.createElement(h):{}}},ce4e:function(r,o,i){var a=i("da84"),l=i("9112");r.exports=function(c,d){try{l(a,c,d)}catch{a[c]=d}return d}},d012:function(r,o){r.exports={}},d039:function(r,o){r.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(r,o,i){var a=i("428f"),l=i("da84"),c=function(d){return typeof d=="function"?d:void 0};r.exports=function(d,h){return arguments.length<2?c(a[d])||c(l[d]):a[d]&&a[d][h]||l[d]&&l[d][h]}},d1e7:function(r,o,i){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,c=l&&!a.call({1:2},1);o.f=c?function(h){var f=l(this,h);return!!f&&f.enumerable}:a},d28b:function(r,o,i){var a=i("746f");a("iterator")},d2bb:function(r,o,i){var a=i("825a"),l=i("3bbe");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var c=!1,d={},h;try{h=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,h.call(d,[]),c=d instanceof Array}catch{}return function(m,p){return a(m),l(p),c?h.call(m,p):m.__proto__=p,m}}():void 0)},d3b7:function(r,o,i){var a=i("00ee"),l=i("6eeb"),c=i("b041");a||l(Object.prototype,"toString",c,{unsafe:!0})},d44e:function(r,o,i){var a=i("9bf2").f,l=i("5135"),c=i("b622"),d=c("toStringTag");r.exports=function(h,f,m){h&&!l(h=m?h:h.prototype,d)&&a(h,d,{configurable:!0,value:f})}},d58f:function(r,o,i){var a=i("1c0b"),l=i("7b0b"),c=i("44ad"),d=i("50c4"),h=function(f){return function(m,p,_,g){a(p);var y=l(m),b=c(y),S=d(y.length),x=f?S-1:0,C=f?-1:1;if(_<2)for(;;){if(x in b){g=b[x],x+=C;break}if(x+=C,f?x<0:S<=x)throw TypeError("Reduce of empty array with no initial value")}for(;f?x>=0:S>x;x+=C)x in b&&(g=p(g,b[x],x,y));return g}};r.exports={left:h(!1),right:h(!0)}},d784:function(r,o,i){i("ac1f");var a=i("6eeb"),l=i("d039"),c=i("b622"),d=i("9263"),h=i("9112"),f=c("species"),m=!l(function(){var b=/./;return b.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(b,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),_=c("replace"),g=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),y=!l(function(){var b=/(?:)/,S=b.exec;b.exec=function(){return S.apply(this,arguments)};var x="ab".split(b);return x.length!==2||x[0]!=="a"||x[1]!=="b"});r.exports=function(b,S,x,C){var A=c(b),M=!l(function(){var B={};return B[A]=function(){return 7},""[b](B)!=7}),j=M&&!l(function(){var B=!1,W=/a/;return b==="split"&&(W={},W.constructor={},W.constructor[f]=function(){return W},W.flags="",W[A]=/./[A]),W.exec=function(){return B=!0,null},W[A](""),!B});if(!M||!j||b==="replace"&&!(m&&p&&!g)||b==="split"&&!y){var O=/./[A],V=x(A,""[b],function(B,W,ue,te,ae){return W.exec===d?M&&!ae?{done:!0,value:O.call(W,ue,te)}:{done:!0,value:B.call(ue,W,te)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),q=V[0],F=V[1];a(String.prototype,b,q),a(RegExp.prototype,A,S==2?function(B,W){return F.call(B,this,W)}:function(B){return F.call(B,this)})}C&&h(RegExp.prototype[A],"sham",!0)}},d81d:function(r,o,i){var a=i("23e7"),l=i("b727").map,c=i("1dde"),d=i("ae40"),h=c("map"),f=d("map");a({target:"Array",proto:!0,forced:!h||!f},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(r,o,i){(function(a){var l=function(c){return c&&c.Math==Math&&c};r.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(r,o,i){var a=i("23e7"),l=i("83ab"),c=i("56ef"),d=i("fc6a"),h=i("06cf"),f=i("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var _=d(p),g=h.f,y=c(_),b={},S=0,x,C;y.length>S;)C=g(_,x=y[S++]),C!==void 0&&f(b,x,C);return b}})},dbf1:function(r,o,i){(function(a){i.d(o,"a",function(){return c});function l(){return typeof window!="undefined"?window.console:a.console}var c=l()}).call(this,i("c8ba"))},ddb0:function(r,o,i){var a=i("da84"),l=i("fdbc"),c=i("e260"),d=i("9112"),h=i("b622"),f=h("iterator"),m=h("toStringTag"),p=c.values;for(var _ in l){var g=a[_],y=g&&g.prototype;if(y){if(y[f]!==p)try{d(y,f,p)}catch{y[f]=p}if(y[m]||d(y,m,_),l[_]){for(var b in c)if(y[b]!==c[b])try{d(y,b,c[b])}catch{y[b]=c[b]}}}}},df75:function(r,o,i){var a=i("ca84"),l=i("7839");r.exports=Object.keys||function(d){return a(d,l)}},e01a:function(r,o,i){var a=i("23e7"),l=i("83ab"),c=i("da84"),d=i("5135"),h=i("861d"),f=i("9bf2").f,m=i("e893"),p=c.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var _={},g=function(){var A=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),M=this instanceof g?new p(A):A===void 0?p():p(A);return A===""&&(_[M]=!0),M};m(g,p);var y=g.prototype=p.prototype;y.constructor=g;var b=y.toString,S=String(p("test"))=="Symbol(test)",x=/^Symbol\((.*)\)[^)]+$/;f(y,"description",{configurable:!0,get:function(){var A=h(this)?this.valueOf():this,M=b.call(A);if(d(_,A))return"";var j=S?M.slice(7,-1):M.replace(x,"$1");return j===""?void 0:j}}),a({global:!0,forced:!0},{Symbol:g})}},e163:function(r,o,i){var a=i("5135"),l=i("7b0b"),c=i("f772"),d=i("e177"),h=c("IE_PROTO"),f=Object.prototype;r.exports=d?Object.getPrototypeOf:function(m){return m=l(m),a(m,h)?m[h]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?f:null}},e177:function(r,o,i){var a=i("d039");r.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(r,o,i){var a=i("fc6a"),l=i("44d2"),c=i("3f8c"),d=i("69f3"),h=i("7dd0"),f="Array Iterator",m=d.set,p=d.getterFor(f);r.exports=h(Array,"Array",function(_,g){m(this,{type:f,target:a(_),index:0,kind:g})},function(){var _=p(this),g=_.target,y=_.kind,b=_.index++;return!g||b>=g.length?(_.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:b,done:!1}:y=="values"?{value:g[b],done:!1}:{value:[b,g[b]],done:!1}},"values"),c.Arguments=c.Array,l("keys"),l("values"),l("entries")},e439:function(r,o,i){var a=i("23e7"),l=i("d039"),c=i("fc6a"),d=i("06cf").f,h=i("83ab"),f=l(function(){d(1)}),m=!h||f;a({target:"Object",stat:!0,forced:m,sham:!h},{getOwnPropertyDescriptor:function(_,g){return d(c(_),g)}})},e538:function(r,o,i){var a=i("b622");o.f=a},e893:function(r,o,i){var a=i("5135"),l=i("56ef"),c=i("06cf"),d=i("9bf2");r.exports=function(h,f){for(var m=l(f),p=d.f,_=c.f,g=0;g<m.length;g++){var y=m[g];a(h,y)||p(h,y,_(f,y))}}},e8b5:function(r,o,i){var a=i("c6b6");r.exports=Array.isArray||function(c){return a(c)=="Array"}},e95a:function(r,o,i){var a=i("b622"),l=i("3f8c"),c=a("iterator"),d=Array.prototype;r.exports=function(h){return h!==void 0&&(l.Array===h||d[c]===h)}},f5df:function(r,o,i){var a=i("00ee"),l=i("c6b6"),c=i("b622"),d=c("toStringTag"),h=l(function(){return arguments}())=="Arguments",f=function(m,p){try{return m[p]}catch{}};r.exports=a?l:function(m){var p,_,g;return m===void 0?"Undefined":m===null?"Null":typeof(_=f(p=Object(m),d))=="string"?_:h?l(p):(g=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(r,o,i){var a=i("5692"),l=i("90e3"),c=a("keys");r.exports=function(d){return c[d]||(c[d]=l(d))}},fb15:function(r,o,i){if(i.r(o),typeof window!="undefined"){var a=window.document.currentScript;{var l=i("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var c=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);c&&(i.p=c[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function d(k,v,I){return v in k?Object.defineProperty(k,v,{value:I,enumerable:!0,configurable:!0,writable:!0}):k[v]=I,k}function h(k,v){var I=Object.keys(k);if(Object.getOwnPropertySymbols){var z=Object.getOwnPropertySymbols(k);v&&(z=z.filter(function(J){return Object.getOwnPropertyDescriptor(k,J).enumerable})),I.push.apply(I,z)}return I}function f(k){for(var v=1;v<arguments.length;v++){var I=arguments[v]!=null?arguments[v]:{};v%2?h(Object(I),!0).forEach(function(z){d(k,z,I[z])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(I)):h(Object(I)).forEach(function(z){Object.defineProperty(k,z,Object.getOwnPropertyDescriptor(I,z))})}return k}function m(k){if(Array.isArray(k))return k}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function p(k,v){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(k)))){var I=[],z=!0,J=!1,de=void 0;try{for(var Ee=k[Symbol.iterator](),Ie;!(z=(Ie=Ee.next()).done)&&(I.push(Ie.value),!(v&&I.length===v));z=!0);}catch(ee){J=!0,de=ee}finally{try{!z&&Ee.return!=null&&Ee.return()}finally{if(J)throw de}}return I}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function _(k,v){(v==null||v>k.length)&&(v=k.length);for(var I=0,z=new Array(v);I<v;I++)z[I]=k[I];return z}function g(k,v){if(!!k){if(typeof k=="string")return _(k,v);var I=Object.prototype.toString.call(k).slice(8,-1);if(I==="Object"&&k.constructor&&(I=k.constructor.name),I==="Map"||I==="Set")return Array.from(k);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return _(k,v)}}function y(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(k,v){return m(k)||p(k,v)||g(k,v)||y()}function S(k){if(Array.isArray(k))return _(k)}function x(k){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(k))return Array.from(k)}function C(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(k){return S(k)||x(k)||g(k)||C()}var M=i("a352"),j=i.n(M);function O(k){k.parentElement!==null&&k.parentElement.removeChild(k)}function V(k,v,I){var z=I===0?k.children[0]:k.children[I-1].nextSibling;k.insertBefore(v,z)}var q=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function F(k){var v=Object.create(null);return function(z){var J=v[z];return J||(v[z]=k(z))}}var B=/-(\w)/g,W=F(function(k){return k.replace(B,function(v,I){return I.toUpperCase()})});i("5db7"),i("73d9");var ue=["Start","Add","Remove","Update","End"],te=["Choose","Unchoose","Sort","Filter","Clone"],ae=["Move"],ve=[ae,ue,te].flatMap(function(k){return k}).map(function(k){return"on".concat(k)}),Le={manage:ae,manageAndEmit:ue,emit:te};function qe(k){return ve.indexOf(k)!==-1}i("caad"),i("2ca0");var me=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function Y(k){return me.includes(k)}function ce(k){return["transition-group","TransitionGroup"].includes(k)}function we(k){return["id","class","role","style"].includes(k)||k.startsWith("data-")||k.startsWith("aria-")||k.startsWith("on")}function U(k){return k.reduce(function(v,I){var z=b(I,2),J=z[0],de=z[1];return v[J]=de,v},{})}function re(k){var v=k.$attrs,I=k.componentData,z=I===void 0?{}:I,J=U(Object.entries(v).filter(function(de){var Ee=b(de,2),Ie=Ee[0];return Ee[1],we(Ie)}));return f(f({},J),z)}function ne(k){var v=k.$attrs,I=k.callBackBuilder,z=U(be(v));Object.entries(I).forEach(function(de){var Ee=b(de,2),Ie=Ee[0],ee=Ee[1];Le[Ie].forEach(function(ie){z["on".concat(ie)]=ee(ie)})});var J="[data-draggable]".concat(z.draggable||"");return f(f({},z),{},{draggable:J})}function be(k){return Object.entries(k).filter(function(v){var I=b(v,2),z=I[0];return I[1],!we(z)}).map(function(v){var I=b(v,2),z=I[0],J=I[1];return[W(z),J]}).filter(function(v){var I=b(v,2),z=I[0];return I[1],!qe(z)})}i("c740");function Ue(k,v){if(!(k instanceof v))throw new TypeError("Cannot call a class as a function")}function Me(k,v){for(var I=0;I<v.length;I++){var z=v[I];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(k,z.key,z)}}function Ae(k,v,I){return v&&Me(k.prototype,v),I&&Me(k,I),k}var De=function(v){var I=v.el;return I},$=function(v,I){return v.__draggable_context=I},L=function(v){return v.__draggable_context},K=function(){function k(v){var I=v.nodes,z=I.header,J=I.default,de=I.footer,Ee=v.root,Ie=v.realList;Ue(this,k),this.defaultNodes=J,this.children=[].concat(A(z),A(J),A(de)),this.externalComponent=Ee.externalComponent,this.rootTransition=Ee.transition,this.tag=Ee.tag,this.realList=Ie}return Ae(k,[{key:"render",value:function(I,z){var J=this.tag,de=this.children,Ee=this._isRootComponent,Ie=Ee?{default:function(){return de}}:de;return I(J,z,Ie)}},{key:"updated",value:function(){var I=this.defaultNodes,z=this.realList;I.forEach(function(J,de){$(De(J),{element:z[de],index:de})})}},{key:"getUnderlyingVm",value:function(I){return L(I)}},{key:"getVmIndexFromDomIndex",value:function(I,z){var J=this.defaultNodes,de=J.length,Ee=z.children,Ie=Ee.item(I);if(Ie===null)return de;var ee=L(Ie);if(ee)return ee.index;if(de===0)return 0;var ie=De(J[0]),X=A(Ee).findIndex(function(se){return se===ie});return I<X?0:de}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),k}(),oe=i("8bbf");function le(k,v){var I=k[v];return I?I():[]}function ye(k){var v=k.$slots,I=k.realList,z=k.getKey,J=I||[],de=["header","footer"].map(function(se){return le(v,se)}),Ee=b(de,2),Ie=Ee[0],ee=Ee[1],ie=v.item;if(!ie)throw new Error("draggable element must have an item slot");var X=J.flatMap(function(se,Ve){return ie({element:se,index:Ve}).map(function(Be){return Be.key=z(se),Be.props=f(f({},Be.props||{}),{},{"data-draggable":!0}),Be})});if(X.length!==J.length)throw new Error("Item slot must have only one child");return{header:Ie,footer:ee,default:X}}function ke(k){var v=ce(k),I=!Y(k)&&!v;return{transition:v,externalComponent:I,tag:I?Object(oe.resolveComponent)(k):v?oe.TransitionGroup:k}}function he(k){var v=k.$slots,I=k.tag,z=k.realList,J=k.getKey,de=ye({$slots:v,realList:z,getKey:J}),Ee=ke(I);return new K({nodes:de,root:Ee,realList:z})}function pe(k,v){var I=this;Object(oe.nextTick)(function(){return I.$emit(k.toLowerCase(),v)})}function fe(k){var v=this;return function(I,z){if(v.realList!==null)return v["onDrag".concat(k)](I,z)}}function Ne(k){var v=this,I=fe.call(this,k);return function(z,J){I.call(v,z,J),pe.call(v,k,z)}}var Ce=null,Re={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(v){return v}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},He=["update:modelValue","change"].concat(A([].concat(A(Le.manageAndEmit),A(Le.emit)).map(function(k){return k.toLowerCase()}))),Je=Object(oe.defineComponent)({name:"draggable",inheritAttrs:!1,props:Re,emits:He,data:function(){return{error:!1}},render:function(){try{this.error=!1;var v=this.$slots,I=this.$attrs,z=this.tag,J=this.componentData,de=this.realList,Ee=this.getKey,Ie=he({$slots:v,tag:z,realList:de,getKey:Ee});this.componentStructure=Ie;var ee=re({$attrs:I,componentData:J});return Ie.render(oe.h,ee)}catch(ie){return this.error=!0,Object(oe.h)("pre",{style:{color:"red"}},ie.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&q.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var v=this;if(!this.error){var I=this.$attrs,z=this.$el,J=this.componentStructure;J.updated();var de=ne({$attrs:I,callBackBuilder:{manageAndEmit:function(ee){return Ne.call(v,ee)},emit:function(ee){return pe.bind(v,ee)},manage:function(ee){return fe.call(v,ee)}}}),Ee=z.nodeType===1?z:z.parentElement;this._sortable=new j.a(Ee,de),this.targetDomElement=Ee,Ee.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var v=this.list;return v||this.modelValue},getKey:function(){var v=this.itemKey;return typeof v=="function"?v:function(I){return I[v]}}},watch:{$attrs:{handler:function(v){var I=this._sortable;!I||be(v).forEach(function(z){var J=b(z,2),de=J[0],Ee=J[1];I.option(de,Ee)})},deep:!0}},methods:{getUnderlyingVm:function(v){return this.componentStructure.getUnderlyingVm(v)||null},getUnderlyingPotencialDraggableComponent:function(v){return v.__draggable_component__},emitChanges:function(v){var I=this;Object(oe.nextTick)(function(){return I.$emit("change",v)})},alterList:function(v){if(this.list){v(this.list);return}var I=A(this.modelValue);v(I),this.$emit("update:modelValue",I)},spliceList:function(){var v=arguments,I=function(J){return J.splice.apply(J,A(v))};this.alterList(I)},updatePosition:function(v,I){var z=function(de){return de.splice(I,0,de.splice(v,1)[0])};this.alterList(z)},getRelatedContextFromMoveEvent:function(v){var I=v.to,z=v.related,J=this.getUnderlyingPotencialDraggableComponent(I);if(!J)return{component:J};var de=J.realList,Ee={list:de,component:J};if(I!==z&&de){var Ie=J.getUnderlyingVm(z)||{};return f(f({},Ie),Ee)}return Ee},getVmIndexFromDomIndex:function(v){return this.componentStructure.getVmIndexFromDomIndex(v,this.targetDomElement)},onDragStart:function(v){this.context=this.getUnderlyingVm(v.item),v.item._underlying_vm_=this.clone(this.context.element),Ce=v.item},onDragAdd:function(v){var I=v.item._underlying_vm_;if(I!==void 0){O(v.item);var z=this.getVmIndexFromDomIndex(v.newIndex);this.spliceList(z,0,I);var J={element:I,newIndex:z};this.emitChanges({added:J})}},onDragRemove:function(v){if(V(this.$el,v.item,v.oldIndex),v.pullMode==="clone"){O(v.clone);return}var I=this.context,z=I.index,J=I.element;this.spliceList(z,1);var de={element:J,oldIndex:z};this.emitChanges({removed:de})},onDragUpdate:function(v){O(v.item),V(v.from,v.item,v.oldIndex);var I=this.context.index,z=this.getVmIndexFromDomIndex(v.newIndex);this.updatePosition(I,z);var J={element:this.context.element,oldIndex:I,newIndex:z};this.emitChanges({moved:J})},computeFutureIndex:function(v,I){if(!v.element)return 0;var z=A(I.to.children).filter(function(Ie){return Ie.style.display!=="none"}),J=z.indexOf(I.related),de=v.component.getVmIndexFromDomIndex(J),Ee=z.indexOf(Ce)!==-1;return Ee||!I.willInsertAfter?de:de+1},onDragMove:function(v,I){var z=this.move,J=this.realList;if(!z||!J)return!0;var de=this.getRelatedContextFromMoveEvent(v),Ee=this.computeFutureIndex(de,v),Ie=f(f({},this.context),{},{futureIndex:Ee}),ee=f(f({},v),{},{relatedContext:de,draggedContext:Ie});return z(ee,I)},onDragEnd:function(){Ce=null}}}),st=Je;o.default=st},fb6a:function(r,o,i){var a=i("23e7"),l=i("861d"),c=i("e8b5"),d=i("23cb"),h=i("50c4"),f=i("fc6a"),m=i("8418"),p=i("b622"),_=i("1dde"),g=i("ae40"),y=_("slice"),b=g("slice",{ACCESSORS:!0,0:0,1:2}),S=p("species"),x=[].slice,C=Math.max;a({target:"Array",proto:!0,forced:!y||!b},{slice:function(M,j){var O=f(this),V=h(O.length),q=d(M,V),F=d(j===void 0?V:j,V),B,W,ue;if(c(O)&&(B=O.constructor,typeof B=="function"&&(B===Array||c(B.prototype))?B=void 0:l(B)&&(B=B[S],B===null&&(B=void 0)),B===Array||B===void 0))return x.call(O,q,F);for(W=new(B===void 0?Array:B)(C(F-q,0)),ue=0;q<F;q++,ue++)q in O&&m(W,ue,O[q]);return W.length=ue,W}})},fc6a:function(r,o,i){var a=i("44ad"),l=i("1d80");r.exports=function(c){return a(l(c))}},fdbc:function(r,o){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(r,o,i){var a=i("4930");r.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(gg);var KE=Q_(gg.exports);const ZE={name:"PageQueue",components:{ContentWithHeading:ht,ListItemQueueItem:TS,draggable:KE,ModalDialogQueueItem:_g,ModalDialogAddUrlStream:Hx,ModalDialogPlaylistSave:cE},data(){return{edit_mode:!1,show_details_modal:!1,show_url_modal:!1,show_pls_save_modal:!1,selected_item:{}}},computed:{state(){return this.$store.state.player},is_queue_save_allowed(){return this.$store.state.config.allow_modifying_stored_playlists&&this.$store.state.config.default_playlist_directory},queue(){return this.$store.state.queue},queue_items:{get(){return this.$store.state.queue.items},set(e){}},current_position(){const e=this.$store.getters.now_playing;return e===void 0||e.position===void 0?-1:this.$store.getters.now_playing.position},show_only_next_items(){return this.$store.state.show_only_next_items}},methods:{queue_clear:function(){G.queue_clear()},update_show_next_items:function(e){this.$store.commit(j_,!this.show_only_next_items)},remove:function(e){G.queue_remove(e.id)},move_item:function(e){const t=this.show_only_next_items?e.oldIndex+this.current_position:e.oldIndex,n=this.queue_items[t],s=n.position+(e.newIndex-e.oldIndex);s!==t&&G.queue_move(n.id,s)},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0},open_add_stream_dialog:function(e){this.show_url_modal=!0},save_dialog:function(e){this.queue_items.length>0&&(this.show_pls_save_modal=!0)}}},YE={class:"heading"},JE=u("p",{class:"title is-4"},"Queue",-1),XE={class:"buttons is-centered"},QE={class:"icon"},eC=u("span",null,"Hide previous",-1),tC={class:"icon"},nC=u("span",null,"Add Stream",-1),sC={class:"icon"},rC=u("span",null,"Edit",-1),oC={class:"icon"},iC=u("span",null,"Clear",-1),aC=["disabled"],lC={class:"icon"},uC=u("span",null,"Save",-1),cC=["onClick"],dC={class:"icon has-text-dark"},fC=["onClick"],hC={class:"icon has-text-grey"};function mC(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-item-queue-item"),l=P("draggable"),c=P("modal-dialog-queue-item"),d=P("modal-dialog-add-url-stream"),h=P("modal-dialog-playlist-save"),f=P("content-with-heading");return E(),Se(f,null,{"heading-left":T(()=>[u("p",YE,R(o.queue.count)+" tracks",1),JE]),"heading-right":T(()=>[u("div",XE,[u("a",{class:We(["button is-small",{"is-info":o.show_only_next_items}]),onClick:t[0]||(t[0]=(...m)=>o.update_show_next_items&&o.update_show_next_items(...m))},[u("span",QE,[w(i,{name:"arrow-collapse-down",size:"16"})]),eC],2),u("a",{class:"button is-small",onClick:t[1]||(t[1]=(...m)=>o.open_add_stream_dialog&&o.open_add_stream_dialog(...m))},[u("span",tC,[w(i,{name:"web",size:"16"})]),nC]),u("a",{class:We(["button is-small",{"is-info":r.edit_mode}]),onClick:t[2]||(t[2]=m=>r.edit_mode=!r.edit_mode)},[u("span",sC,[w(i,{name:"pencil",size:"16"})]),rC],2),u("a",{class:"button is-small",onClick:t[3]||(t[3]=(...m)=>o.queue_clear&&o.queue_clear(...m))},[u("span",oC,[w(i,{name:"delete-empty",size:"16"})]),iC]),o.is_queue_save_allowed?(E(),D("a",{key:0,class:"button is-small",disabled:o.queue_items.length===0,onClick:t[4]||(t[4]=(...m)=>o.save_dialog&&o.save_dialog(...m))},[u("span",lC,[w(i,{name:"content-save",size:"16"})]),uC],8,aC)):Z("",!0)])]),content:T(()=>[w(l,{modelValue:o.queue_items,"onUpdate:modelValue":t[5]||(t[5]=m=>o.queue_items=m),handle:".handle","item-key":"id",onEnd:o.move_item},{item:T(({element:m,index:p})=>[w(a,{item:m,position:p,current_position:o.current_position,show_only_next_items:o.show_only_next_items,edit_mode:r.edit_mode},{actions:T(()=>[r.edit_mode?Z("",!0):(E(),D("a",{key:0,onClick:pt(_=>o.open_dialog(m),["prevent","stop"])},[u("span",dC,[w(i,{name:"dots-vertical",size:"16"})])],8,cC)),m.id!==o.state.item_id&&r.edit_mode?(E(),D("a",{key:1,onClick:pt(_=>o.remove(m),["prevent","stop"])},[u("span",hC,[w(i,{name:"delete",size:"18"})])],8,fC)):Z("",!0)]),_:2},1032,["item","position","current_position","show_only_next_items","edit_mode"])]),_:1},8,["modelValue","onEnd"]),w(c,{show:r.show_details_modal,item:r.selected_item,onClose:t[6]||(t[6]=m=>r.show_details_modal=!1)},null,8,["show","item"]),w(d,{show:r.show_url_modal,onClose:t[7]||(t[7]=m=>r.show_url_modal=!1)},null,8,["show"]),o.is_queue_save_allowed?(E(),Se(h,{key:0,show:r.show_pls_save_modal,onClose:t[8]||(t[8]=m=>r.show_pls_save_modal=!1)},null,8,["show"])):Z("",!0)]),_:1})}var pC=ge(ZE,[["render",mC]]);function Ou(e){return[null,void 0,!1].indexOf(e)!==-1}function zh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function qh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zh(Object(n),!0).forEach(function(s){_C(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zh(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function _C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gC(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Og(e){var t={exports:{}};return e(t,t.exports),t.exports}function bc(e){return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}var Gh=Og(function(e,t){e.exports=function(){var n=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function s(p){return p.split("").reverse().join("")}function r(p,_){return p.substring(0,_.length)===_}function o(p,_){return p.slice(-1*_.length)===_}function i(p,_,g){if((p[_]||p[g])&&p[_]===p[g])throw new Error(_)}function a(p){return typeof p=="number"&&isFinite(p)}function l(p,_){return p=p.toString().split("e"),(+((p=(p=Math.round(+(p[0]+"e"+(p[1]?+p[1]+_:_)))).toString().split("e"))[0]+"e"+(p[1]?+p[1]-_:-_))).toFixed(_)}function c(p,_,g,y,b,S,x,C,A,M,j,O){var V,q,F,B=O,W="",ue="";return S&&(O=S(O)),!!a(O)&&(p!==!1&&parseFloat(O.toFixed(p))===0&&(O=0),O<0&&(V=!0,O=Math.abs(O)),p!==!1&&(O=l(O,p)),(O=O.toString()).indexOf(".")!==-1?(F=(q=O.split("."))[0],g&&(W=g+q[1])):F=O,_&&(F=s(F).match(/.{1,3}/g),F=s(F.join(s(_)))),V&&C&&(ue+=C),y&&(ue+=y),V&&A&&(ue+=A),ue+=F,ue+=W,b&&(ue+=b),M&&(ue=M(ue,B)),ue)}function d(p,_,g,y,b,S,x,C,A,M,j,O){var V,q="";return j&&(O=j(O)),!(!O||typeof O!="string")&&(C&&r(O,C)&&(O=O.replace(C,""),V=!0),y&&r(O,y)&&(O=O.replace(y,"")),A&&r(O,A)&&(O=O.replace(A,""),V=!0),b&&o(O,b)&&(O=O.slice(0,-1*b.length)),_&&(O=O.split(_).join("")),g&&(O=O.replace(g,".")),V&&(q+="-"),(q=(q+=O).replace(/[^0-9\.\-.]/g,""))!==""&&(q=Number(q),x&&(q=x(q)),!!a(q)&&q))}function h(p){var _,g,y,b={};for(p.suffix===void 0&&(p.suffix=p.postfix),_=0;_<n.length;_+=1)if((y=p[g=n[_]])===void 0)g!=="negative"||b.negativeBefore?g==="mark"&&b.thousand!=="."?b[g]=".":b[g]=!1:b[g]="-";else if(g==="decimals"){if(!(y>=0&&y<8))throw new Error(g);b[g]=y}else if(g==="encoder"||g==="decoder"||g==="edit"||g==="undo"){if(typeof y!="function")throw new Error(g);b[g]=y}else{if(typeof y!="string")throw new Error(g);b[g]=y}return i(b,"mark","thousand"),i(b,"prefix","negative"),i(b,"prefix","negativeBefore"),b}function f(p,_,g){var y,b=[];for(y=0;y<n.length;y+=1)b.push(p[n[y]]);return b.push(g),_.apply("",b)}function m(p){if(!(this instanceof m))return new m(p);bc(p)==="object"&&(p=h(p),this.to=function(_){return f(p,c,_)},this.from=function(_){return f(p,d,_)})}return m}()});function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function vC(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yC(e,t,n){var s=Vo(e),r=s.format,o=s.step,i=n.value,a=n.classList,l=Wt(function(){return r&&r.value?typeof r.value=="function"?{to:r.value}:Gh(function(c){for(var d=1;d<arguments.length;d++){var h=arguments[d]!=null?arguments[d]:{};d%2?Wh(Object(h),!0).forEach(function(f){vC(c,f,h[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(c,Object.getOwnPropertyDescriptors(h)):Wh(Object(h)).forEach(function(f){Object.defineProperty(c,f,Object.getOwnPropertyDescriptor(h,f))})}return c}({},r.value)):Gh({decimals:o.value>=0?0:2})});return{tooltipsFormat:Wt(function(){return Array.isArray(i.value)?i.value.map(function(c){return l.value}):l.value}),tooltipsMerge:function(c,d,h){var f=getComputedStyle(c).direction==="rtl",m=c.noUiSlider.options.direction==="rtl",p=c.noUiSlider.options.orientation==="vertical",_=c.noUiSlider.getTooltips(),g=c.noUiSlider.getOrigins();_.forEach(function(y,b){y&&g[b].appendChild(y)}),c.noUiSlider.on("update",function(y,b,S,x,C){var A=[[]],M=[[]],j=[[]],O=0;_[0]&&(A[0][0]=0,M[0][0]=C[0],j[0][0]=l.value.to(parseFloat(y[0])));for(var V=1;V<y.length;V++)(!_[V]||y[V]-y[V-1]>d)&&(A[++O]=[],j[O]=[],M[O]=[]),_[V]&&(A[O].push(V),j[O].push(l.value.to(parseFloat(y[V]))),M[O].push(C[V]));A.forEach(function(q,F){for(var B=q.length,W=0;W<B;W++){var ue=q[W];if(W===B-1){var te=0;M[F].forEach(function(qe){te+=1e3-qe});var ae=p?"bottom":"right",ve=m?0:B-1,Le=1e3-M[F][ve];te=(f&&!p?100:0)+te/B-Le,_[ue].innerHTML=j[F].join(h),_[ue].style.display="block",_[ue].style[ae]=te+"%",a.value.tooltipHidden.split(" ").forEach(function(qe){_[ue].classList.contains(qe)&&_[ue].classList.remove(qe)})}else _[ue].style.display="none",a.value.tooltipHidden.split(" ").forEach(function(qe){_[ue].classList.add(qe)})}})})}}}function ei(e){return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}var bC=gC(Og(function(e,t){(function(n){function s(k){return r(k)&&typeof k.from=="function"}function r(k){return ei(k)==="object"&&typeof k.to=="function"}function o(k){k.parentElement.removeChild(k)}function i(k){return k!=null}function a(k){k.preventDefault()}function l(k){return k.filter(function(v){return!this[v]&&(this[v]=!0)},{})}function c(k,v){return Math.round(k/v)*v}function d(k,v){var I=k.getBoundingClientRect(),z=k.ownerDocument,J=z.documentElement,de=S(z);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(de.x=0),v?I.top+de.y-J.clientTop:I.left+de.x-J.clientLeft}function h(k){return typeof k=="number"&&!isNaN(k)&&isFinite(k)}function f(k,v,I){I>0&&(g(k,v),setTimeout(function(){y(k,v)},I))}function m(k){return Math.max(Math.min(k,100),0)}function p(k){return Array.isArray(k)?k:[k]}function _(k){var v=(k=String(k)).split(".");return v.length>1?v[1].length:0}function g(k,v){k.classList&&!/\s/.test(v)?k.classList.add(v):k.className+=" "+v}function y(k,v){k.classList&&!/\s/.test(v)?k.classList.remove(v):k.className=k.className.replace(new RegExp("(^|\\b)"+v.split(" ").join("|")+"(\\b|$)","gi")," ")}function b(k,v){return k.classList?k.classList.contains(v):new RegExp("\\b"+v+"\\b").test(k.className)}function S(k){var v=window.pageXOffset!==void 0,I=(k.compatMode||"")==="CSS1Compat";return{x:v?window.pageXOffset:I?k.documentElement.scrollLeft:k.body.scrollLeft,y:v?window.pageYOffset:I?k.documentElement.scrollTop:k.body.scrollTop}}function x(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function C(){var k=!1;try{var v=Object.defineProperty({},"passive",{get:function(){k=!0}});window.addEventListener("test",null,v)}catch{}return k}function A(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function M(k,v){return 100/(v-k)}function j(k,v,I){return 100*v/(k[I+1]-k[I])}function O(k,v){return j(k,k[0]<0?v+Math.abs(k[0]):v-k[0],0)}function V(k,v){return v*(k[1]-k[0])/100+k[0]}function q(k,v){for(var I=1;k>=v[I];)I+=1;return I}function F(k,v,I){if(I>=k.slice(-1)[0])return 100;var z=q(I,k),J=k[z-1],de=k[z],Ee=v[z-1],Ie=v[z];return Ee+O([J,de],I)/M(Ee,Ie)}function B(k,v,I){if(I>=100)return k.slice(-1)[0];var z=q(I,v),J=k[z-1],de=k[z],Ee=v[z-1];return V([J,de],(I-Ee)*M(Ee,v[z]))}function W(k,v,I,z){if(z===100)return z;var J=q(z,k),de=k[J-1],Ee=k[J];return I?z-de>(Ee-de)/2?Ee:de:v[J-1]?k[J-1]+c(z-k[J-1],v[J-1]):z}var ue,te;n.PipsMode=void 0,(te=n.PipsMode||(n.PipsMode={})).Range="range",te.Steps="steps",te.Positions="positions",te.Count="count",te.Values="values",n.PipsType=void 0,(ue=n.PipsType||(n.PipsType={}))[ue.None=-1]="None",ue[ue.NoValue=0]="NoValue",ue[ue.LargeValue=1]="LargeValue",ue[ue.SmallValue=2]="SmallValue";var ae=function(){function k(v,I,z){var J;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[z||!1],this.xNumSteps=[!1],this.snap=I;var de=[];for(Object.keys(v).forEach(function(Ee){de.push([p(v[Ee]),Ee])}),de.sort(function(Ee,Ie){return Ee[0][0]-Ie[0][0]}),J=0;J<de.length;J++)this.handleEntryPoint(de[J][1],de[J][0]);for(this.xNumSteps=this.xSteps.slice(0),J=0;J<this.xNumSteps.length;J++)this.handleStepPoint(J,this.xNumSteps[J])}return k.prototype.getDistance=function(v){for(var I=[],z=0;z<this.xNumSteps.length-1;z++)I[z]=j(this.xVal,v,z);return I},k.prototype.getAbsoluteDistance=function(v,I,z){var J,de=0;if(v<this.xPct[this.xPct.length-1])for(;v>this.xPct[de+1];)de++;else v===this.xPct[this.xPct.length-1]&&(de=this.xPct.length-2);z||v!==this.xPct[de+1]||de++,I===null&&(I=[]);var Ee=1,Ie=I[de],ee=0,ie=0,X=0,se=0;for(J=z?(v-this.xPct[de])/(this.xPct[de+1]-this.xPct[de]):(this.xPct[de+1]-v)/(this.xPct[de+1]-this.xPct[de]);Ie>0;)ee=this.xPct[de+1+se]-this.xPct[de+se],I[de+se]*Ee+100-100*J>100?(ie=ee*J,Ee=(Ie-100*J)/I[de+se],J=1):(ie=I[de+se]*ee/100*Ee,Ee=0),z?(X-=ie,this.xPct.length+se>=1&&se--):(X+=ie,this.xPct.length-se>=1&&se++),Ie=I[de+se]*Ee;return v+X},k.prototype.toStepping=function(v){return v=F(this.xVal,this.xPct,v)},k.prototype.fromStepping=function(v){return B(this.xVal,this.xPct,v)},k.prototype.getStep=function(v){return v=W(this.xPct,this.xSteps,this.snap,v)},k.prototype.getDefaultStep=function(v,I,z){var J=q(v,this.xPct);return(v===100||I&&v===this.xPct[J-1])&&(J=Math.max(J-1,1)),(this.xVal[J]-this.xVal[J-1])/z},k.prototype.getNearbySteps=function(v){var I=q(v,this.xPct);return{stepBefore:{startValue:this.xVal[I-2],step:this.xNumSteps[I-2],highestStep:this.xHighestCompleteStep[I-2]},thisStep:{startValue:this.xVal[I-1],step:this.xNumSteps[I-1],highestStep:this.xHighestCompleteStep[I-1]},stepAfter:{startValue:this.xVal[I],step:this.xNumSteps[I],highestStep:this.xHighestCompleteStep[I]}}},k.prototype.countStepDecimals=function(){var v=this.xNumSteps.map(_);return Math.max.apply(null,v)},k.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},k.prototype.convert=function(v){return this.getStep(this.toStepping(v))},k.prototype.handleEntryPoint=function(v,I){var z;if(!h(z=v==="min"?0:v==="max"?100:parseFloat(v))||!h(I[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(z),this.xVal.push(I[0]);var J=Number(I[1]);z?this.xSteps.push(!isNaN(J)&&J):isNaN(J)||(this.xSteps[0]=J),this.xHighestCompleteStep.push(0)},k.prototype.handleStepPoint=function(v,I){if(I)if(this.xVal[v]!==this.xVal[v+1]){this.xSteps[v]=j([this.xVal[v],this.xVal[v+1]],I,0)/M(this.xPct[v],this.xPct[v+1]);var z=(this.xVal[v+1]-this.xVal[v])/this.xNumSteps[v],J=Math.ceil(Number(z.toFixed(3))-1),de=this.xVal[v]+this.xNumSteps[v]*J;this.xHighestCompleteStep[v]=de}else this.xSteps[v]=this.xHighestCompleteStep[v]=this.xVal[v]},k}(),ve={to:function(k){return k===void 0?"":k.toFixed(2)},from:Number},Le={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},qe={tooltips:".__tooltips",aria:".__aria"};function me(k,v){if(!h(v))throw new Error("noUiSlider: 'step' is not numeric.");k.singleStep=v}function Y(k,v){if(!h(v))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");k.keyboardPageMultiplier=v}function ce(k,v){if(!h(v))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");k.keyboardMultiplier=v}function we(k,v){if(!h(v))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");k.keyboardDefaultStep=v}function U(k,v){if(ei(v)!=="object"||Array.isArray(v))throw new Error("noUiSlider: 'range' is not an object.");if(v.min===void 0||v.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");k.spectrum=new ae(v,k.snap||!1,k.singleStep)}function re(k,v){if(v=p(v),!Array.isArray(v)||!v.length)throw new Error("noUiSlider: 'start' option is incorrect.");k.handles=v.length,k.start=v}function ne(k,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");k.snap=v}function be(k,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");k.animate=v}function Ue(k,v){if(typeof v!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");k.animationDuration=v}function Me(k,v){var I,z=[!1];if(v==="lower"?v=[!0,!1]:v==="upper"&&(v=[!1,!0]),v===!0||v===!1){for(I=1;I<k.handles;I++)z.push(v);z.push(!1)}else{if(!Array.isArray(v)||!v.length||v.length!==k.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");z=v}k.connect=z}function Ae(k,v){switch(v){case"horizontal":k.ort=0;break;case"vertical":k.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function De(k,v){if(!h(v))throw new Error("noUiSlider: 'margin' option must be numeric.");v!==0&&(k.margin=k.spectrum.getDistance(v))}function $(k,v){if(!h(v))throw new Error("noUiSlider: 'limit' option must be numeric.");if(k.limit=k.spectrum.getDistance(v),!k.limit||k.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function L(k,v){var I;if(!h(v)&&!Array.isArray(v))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(v)&&v.length!==2&&!h(v[0])&&!h(v[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(v!==0){for(Array.isArray(v)||(v=[v,v]),k.padding=[k.spectrum.getDistance(v[0]),k.spectrum.getDistance(v[1])],I=0;I<k.spectrum.xNumSteps.length-1;I++)if(k.padding[0][I]<0||k.padding[1][I]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var z=v[0]+v[1],J=k.spectrum.xVal[0];if(z/(k.spectrum.xVal[k.spectrum.xVal.length-1]-J)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function K(k,v){switch(v){case"ltr":k.dir=0;break;case"rtl":k.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function oe(k,v){if(typeof v!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var I=v.indexOf("tap")>=0,z=v.indexOf("drag")>=0,J=v.indexOf("fixed")>=0,de=v.indexOf("snap")>=0,Ee=v.indexOf("hover")>=0,Ie=v.indexOf("unconstrained")>=0,ee=v.indexOf("drag-all")>=0;if(J){if(k.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");De(k,k.start[1]-k.start[0])}if(Ie&&(k.margin||k.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");k.events={tap:I||de,drag:z,dragAll:ee,fixed:J,snap:de,hover:Ee,unconstrained:Ie}}function le(k,v){if(v!==!1)if(v===!0||r(v)){k.tooltips=[];for(var I=0;I<k.handles;I++)k.tooltips.push(v)}else{if((v=p(v)).length!==k.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");v.forEach(function(z){if(typeof z!="boolean"&&!r(z))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),k.tooltips=v}}function ye(k,v){if(v.length!==k.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");k.handleAttributes=v}function ke(k,v){if(!r(v))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");k.ariaFormat=v}function he(k,v){if(!s(v))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");k.format=v}function pe(k,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");k.keyboardSupport=v}function fe(k,v){k.documentElement=v}function Ne(k,v){if(typeof v!="string"&&v!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");k.cssPrefix=v}function Ce(k,v){if(ei(v)!=="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof k.cssPrefix=="string"?(k.cssClasses={},Object.keys(v).forEach(function(I){k.cssClasses[I]=k.cssPrefix+v[I]})):k.cssClasses=v}function Re(k){var v={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:ve,format:ve},I={step:{r:!1,t:me},keyboardPageMultiplier:{r:!1,t:Y},keyboardMultiplier:{r:!1,t:ce},keyboardDefaultStep:{r:!1,t:we},start:{r:!0,t:re},connect:{r:!0,t:Me},direction:{r:!0,t:K},snap:{r:!1,t:ne},animate:{r:!1,t:be},animationDuration:{r:!1,t:Ue},range:{r:!0,t:U},orientation:{r:!1,t:Ae},margin:{r:!1,t:De},limit:{r:!1,t:$},padding:{r:!1,t:L},behaviour:{r:!0,t:oe},ariaFormat:{r:!1,t:ke},format:{r:!1,t:he},tooltips:{r:!1,t:le},keyboardSupport:{r:!0,t:pe},documentElement:{r:!1,t:fe},cssPrefix:{r:!0,t:Ne},cssClasses:{r:!0,t:Ce},handleAttributes:{r:!1,t:ye}},z={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Le,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};k.format&&!k.ariaFormat&&(k.ariaFormat=k.format),Object.keys(I).forEach(function(ee){if(i(k[ee])||z[ee]!==void 0)I[ee].t(v,i(k[ee])?k[ee]:z[ee]);else if(I[ee].r)throw new Error("noUiSlider: '"+ee+"' is required.")}),v.pips=k.pips;var J=document.createElement("div"),de=J.style.msTransform!==void 0,Ee=J.style.transform!==void 0;v.transformRule=Ee?"transform":de?"msTransform":"webkitTransform";var Ie=[["left","top"],["right","bottom"]];return v.style=Ie[v.dir][v.ort],v}function He(k,v,I){var z,J,de,Ee,Ie,ee=x(),ie=A()&&C(),X=k,se=v.spectrum,Ve=[],Be=[],ct=[],ln=0,Mn={},Rn=k.ownerDocument,Ci=v.documentElement||Rn.documentElement,$i=Rn.body,Py=Rn.dir==="rtl"||v.ort===1?0:100;function is(N,H){var Q=Rn.createElement("div");return H&&g(Q,H),N.appendChild(Q),Q}function Dy(N,H){var Q=is(N,v.cssClasses.origin),_e=is(Q,v.cssClasses.handle);if(is(_e,v.cssClasses.touchArea),_e.setAttribute("data-handle",String(H)),v.keyboardSupport&&(_e.setAttribute("tabindex","0"),_e.addEventListener("keydown",function(Pe){return Gy(Pe,H)})),v.handleAttributes!==void 0){var Fe=v.handleAttributes[H];Object.keys(Fe).forEach(function(Pe){_e.setAttribute(Pe,Fe[Pe])})}return _e.setAttribute("role","slider"),_e.setAttribute("aria-orientation",v.ort?"vertical":"horizontal"),H===0?g(_e,v.cssClasses.handleLower):H===v.handles-1&&g(_e,v.cssClasses.handleUpper),Q}function nf(N,H){return!!H&&is(N,v.cssClasses.connect)}function Fy(N,H){var Q=is(H,v.cssClasses.connects);J=[],(de=[]).push(nf(Q,N[0]));for(var _e=0;_e<v.handles;_e++)J.push(Dy(H,_e)),ct[_e]=_e,de.push(nf(Q,N[_e+1]))}function Iy(N){return g(N,v.cssClasses.target),v.dir===0?g(N,v.cssClasses.ltr):g(N,v.cssClasses.rtl),v.ort===0?g(N,v.cssClasses.horizontal):g(N,v.cssClasses.vertical),g(N,getComputedStyle(N).direction==="rtl"?v.cssClasses.textDirectionRtl:v.cssClasses.textDirectionLtr),is(N,v.cssClasses.base)}function My(N,H){return!(!v.tooltips||!v.tooltips[H])&&is(N.firstChild,v.cssClasses.tooltip)}function sf(){return X.hasAttribute("disabled")}function Gl(N){return J[N].hasAttribute("disabled")}function Wl(){Ie&&(po("update"+qe.tooltips),Ie.forEach(function(N){N&&o(N)}),Ie=null)}function rf(){Wl(),Ie=J.map(My),Xl("update"+qe.tooltips,function(N,H,Q){if(Ie&&v.tooltips&&Ie[H]!==!1){var _e=N[H];v.tooltips[H]!==!0&&(_e=v.tooltips[H].to(Q[H])),Ie[H].innerHTML=_e}})}function Ry(){po("update"+qe.aria),Xl("update"+qe.aria,function(N,H,Q,_e,Fe){ct.forEach(function(Pe){var Ze=J[Pe],Ge=Ai(Be,Pe,0,!0,!0,!0),Rt=Ai(Be,Pe,100,!0,!0,!0),Ot=Fe[Pe],mt=String(v.ariaFormat.to(Q[Pe]));Ge=se.fromStepping(Ge).toFixed(1),Rt=se.fromStepping(Rt).toFixed(1),Ot=se.fromStepping(Ot).toFixed(1),Ze.children[0].setAttribute("aria-valuemin",Ge),Ze.children[0].setAttribute("aria-valuemax",Rt),Ze.children[0].setAttribute("aria-valuenow",Ot),Ze.children[0].setAttribute("aria-valuetext",mt)})})}function Ly(N){if(N.mode===n.PipsMode.Range||N.mode===n.PipsMode.Steps)return se.xVal;if(N.mode===n.PipsMode.Count){if(N.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var H=N.values-1,Q=100/H,_e=[];H--;)_e[H]=H*Q;return _e.push(100),of(_e,N.stepped)}return N.mode===n.PipsMode.Positions?of(N.values,N.stepped):N.mode===n.PipsMode.Values?N.stepped?N.values.map(function(Fe){return se.fromStepping(se.getStep(se.toStepping(Fe)))}):N.values:[]}function of(N,H){return N.map(function(Q){return se.fromStepping(H?se.getStep(Q):Q)})}function Ny(N){function H(Ot,mt){return Number((Ot+mt).toFixed(7))}var Q=Ly(N),_e={},Fe=se.xVal[0],Pe=se.xVal[se.xVal.length-1],Ze=!1,Ge=!1,Rt=0;return(Q=l(Q.slice().sort(function(Ot,mt){return Ot-mt})))[0]!==Fe&&(Q.unshift(Fe),Ze=!0),Q[Q.length-1]!==Pe&&(Q.push(Pe),Ge=!0),Q.forEach(function(Ot,mt){var zt,vt,un,sn,Nt,pf,tu,_f,gf,vf,nu=Ot,Sr=Q[mt+1],yf=N.mode===n.PipsMode.Steps;for(yf&&(zt=se.xNumSteps[mt]),zt||(zt=Sr-nu),Sr===void 0&&(Sr=nu),zt=Math.max(zt,1e-7),vt=nu;vt<=Sr;vt=H(vt,zt)){for(_f=(Nt=(sn=se.toStepping(vt))-Rt)/(N.density||1),vf=Nt/(gf=Math.round(_f)),un=1;un<=gf;un+=1)_e[(pf=Rt+un*vf).toFixed(5)]=[se.fromStepping(pf),0];tu=Q.indexOf(vt)>-1?n.PipsType.LargeValue:yf?n.PipsType.SmallValue:n.PipsType.NoValue,!mt&&Ze&&vt!==Sr&&(tu=0),vt===Sr&&Ge||(_e[sn.toFixed(5)]=[vt,tu]),Rt=sn}}),_e}function Vy(N,H,Q){var _e,Fe,Pe=Rn.createElement("div"),Ze=((_e={})[n.PipsType.None]="",_e[n.PipsType.NoValue]=v.cssClasses.valueNormal,_e[n.PipsType.LargeValue]=v.cssClasses.valueLarge,_e[n.PipsType.SmallValue]=v.cssClasses.valueSub,_e),Ge=((Fe={})[n.PipsType.None]="",Fe[n.PipsType.NoValue]=v.cssClasses.markerNormal,Fe[n.PipsType.LargeValue]=v.cssClasses.markerLarge,Fe[n.PipsType.SmallValue]=v.cssClasses.markerSub,Fe),Rt=[v.cssClasses.valueHorizontal,v.cssClasses.valueVertical],Ot=[v.cssClasses.markerHorizontal,v.cssClasses.markerVertical];function mt(vt,un){var sn=un===v.cssClasses.value,Nt=sn?Ze:Ge;return un+" "+(sn?Rt:Ot)[v.ort]+" "+Nt[vt]}function zt(vt,un,sn){if((sn=H?H(un,sn):sn)!==n.PipsType.None){var Nt=is(Pe,!1);Nt.className=mt(sn,v.cssClasses.marker),Nt.style[v.style]=vt+"%",sn>n.PipsType.NoValue&&((Nt=is(Pe,!1)).className=mt(sn,v.cssClasses.value),Nt.setAttribute("data-value",String(un)),Nt.style[v.style]=vt+"%",Nt.innerHTML=String(Q.to(un)))}}return g(Pe,v.cssClasses.pips),g(Pe,v.ort===0?v.cssClasses.pipsHorizontal:v.cssClasses.pipsVertical),Object.keys(N).forEach(function(vt){zt(vt,N[vt][0],N[vt][1])}),Pe}function Kl(){Ee&&(o(Ee),Ee=null)}function Zl(N){Kl();var H=Ny(N),Q=N.filter,_e=N.format||{to:function(Fe){return String(Math.round(Fe))}};return Ee=X.appendChild(Vy(H,Q,_e))}function af(){var N=z.getBoundingClientRect(),H="offset"+["Width","Height"][v.ort];return v.ort===0?N.width||z[H]:N.height||z[H]}function Ks(N,H,Q,_e){var Fe=function(Ze){var Ge=jy(Ze,_e.pageOffset,_e.target||H);return!!Ge&&!(sf()&&!_e.doNotReject)&&!(b(X,v.cssClasses.tap)&&!_e.doNotReject)&&!(N===ee.start&&Ge.buttons!==void 0&&Ge.buttons>1)&&(!_e.hover||!Ge.buttons)&&(ie||Ge.preventDefault(),Ge.calcPoint=Ge.points[v.ort],void Q(Ge,_e))},Pe=[];return N.split(" ").forEach(function(Ze){H.addEventListener(Ze,Fe,!!ie&&{passive:!0}),Pe.push([Ze,Fe])}),Pe}function jy(N,H,Q){var _e=N.type.indexOf("touch")===0,Fe=N.type.indexOf("mouse")===0,Pe=N.type.indexOf("pointer")===0,Ze=0,Ge=0;if(N.type.indexOf("MSPointer")===0&&(Pe=!0),N.type==="mousedown"&&!N.buttons&&!N.touches)return!1;if(_e){var Rt=function(zt){var vt=zt.target;return vt===Q||Q.contains(vt)||N.composed&&N.composedPath().shift()===Q};if(N.type==="touchstart"){var Ot=Array.prototype.filter.call(N.touches,Rt);if(Ot.length>1)return!1;Ze=Ot[0].pageX,Ge=Ot[0].pageY}else{var mt=Array.prototype.find.call(N.changedTouches,Rt);if(!mt)return!1;Ze=mt.pageX,Ge=mt.pageY}}return H=H||S(Rn),(Fe||Pe)&&(Ze=N.clientX+H.x,Ge=N.clientY+H.y),N.pageOffset=H,N.points=[Ze,Ge],N.cursor=Fe||Pe,N}function lf(N){var H=100*(N-d(z,v.ort))/af();return H=m(H),v.dir?100-H:H}function By(N){var H=100,Q=!1;return J.forEach(function(_e,Fe){if(!Gl(Fe)){var Pe=Be[Fe],Ze=Math.abs(Pe-N);(Ze<H||Ze<=H&&N>Pe||Ze===100&&H===100)&&(Q=Fe,H=Ze)}}),Q}function Uy(N,H){N.type==="mouseout"&&N.target.nodeName==="HTML"&&N.relatedTarget===null&&Yl(N,H)}function Hy(N,H){if(navigator.appVersion.indexOf("MSIE 9")===-1&&N.buttons===0&&H.buttonsProperty!==0)return Yl(N,H);var Q=(v.dir?-1:1)*(N.calcPoint-H.startCalcPoint);uf(Q>0,100*Q/H.baseSize,H.locations,H.handleNumbers,H.connect)}function Yl(N,H){H.handle&&(y(H.handle,v.cssClasses.active),ln-=1),H.listeners.forEach(function(Q){Ci.removeEventListener(Q[0],Q[1])}),ln===0&&(y(X,v.cssClasses.drag),eu(),N.cursor&&($i.style.cursor="",$i.removeEventListener("selectstart",a))),H.handleNumbers.forEach(function(Q){Lt("change",Q),Lt("set",Q),Lt("end",Q)})}function Jl(N,H){if(!H.handleNumbers.some(Gl)){var Q;H.handleNumbers.length===1&&(Q=J[H.handleNumbers[0]].children[0],ln+=1,g(Q,v.cssClasses.active)),N.stopPropagation();var _e=[],Fe=Ks(ee.move,Ci,Hy,{target:N.target,handle:Q,connect:H.connect,listeners:_e,startCalcPoint:N.calcPoint,baseSize:af(),pageOffset:N.pageOffset,handleNumbers:H.handleNumbers,buttonsProperty:N.buttons,locations:Be.slice()}),Pe=Ks(ee.end,Ci,Yl,{target:N.target,handle:Q,listeners:_e,doNotReject:!0,handleNumbers:H.handleNumbers}),Ze=Ks("mouseout",Ci,Uy,{target:N.target,handle:Q,listeners:_e,doNotReject:!0,handleNumbers:H.handleNumbers});_e.push.apply(_e,Fe.concat(Pe,Ze)),N.cursor&&($i.style.cursor=getComputedStyle(N.target).cursor,J.length>1&&g(X,v.cssClasses.drag),$i.addEventListener("selectstart",a,!1)),H.handleNumbers.forEach(function(Ge){Lt("start",Ge)})}}function zy(N){N.stopPropagation();var H=lf(N.calcPoint),Q=By(H);Q!==!1&&(v.events.snap||f(X,v.cssClasses.tap,v.animationDuration),kr(Q,H,!0,!0),eu(),Lt("slide",Q,!0),Lt("update",Q,!0),v.events.snap?Jl(N,{handleNumbers:[Q]}):(Lt("change",Q,!0),Lt("set",Q,!0)))}function qy(N){var H=lf(N.calcPoint),Q=se.getStep(H),_e=se.fromStepping(Q);Object.keys(Mn).forEach(function(Fe){Fe.split(".")[0]==="hover"&&Mn[Fe].forEach(function(Pe){Pe.call(Ti,_e)})})}function Gy(N,H){if(sf()||Gl(H))return!1;var Q=["Left","Right"],_e=["Down","Up"],Fe=["PageDown","PageUp"],Pe=["Home","End"];v.dir&&!v.ort?Q.reverse():v.ort&&!v.dir&&(_e.reverse(),Fe.reverse());var Ze,Ge=N.key.replace("Arrow",""),Rt=Ge===Fe[0],Ot=Ge===Fe[1],mt=Ge===_e[0]||Ge===Q[0]||Rt,zt=Ge===_e[1]||Ge===Q[1]||Ot,vt=Ge===Pe[0],un=Ge===Pe[1];if(!(mt||zt||vt||un))return!0;if(N.preventDefault(),zt||mt){var sn=mt?0:1,Nt=mf(H)[sn];if(Nt===null)return!1;Nt===!1&&(Nt=se.getDefaultStep(Be[H],mt,v.keyboardDefaultStep)),Nt*=Ot||Rt?v.keyboardPageMultiplier:v.keyboardMultiplier,Nt=Math.max(Nt,1e-7),Nt*=mt?-1:1,Ze=Ve[H]+Nt}else Ze=un?v.spectrum.xVal[v.spectrum.xVal.length-1]:v.spectrum.xVal[0];return kr(H,se.toStepping(Ze),!0,!0),Lt("slide",H),Lt("update",H),Lt("change",H),Lt("set",H),!1}function Wy(N){N.fixed||J.forEach(function(H,Q){Ks(ee.start,H.children[0],Jl,{handleNumbers:[Q]})}),N.tap&&Ks(ee.start,z,zy,{}),N.hover&&Ks(ee.move,z,qy,{hover:!0}),N.drag&&de.forEach(function(H,Q){if(H!==!1&&Q!==0&&Q!==de.length-1){var _e=J[Q-1],Fe=J[Q],Pe=[H],Ze=[_e,Fe],Ge=[Q-1,Q];g(H,v.cssClasses.draggable),N.fixed&&(Pe.push(_e.children[0]),Pe.push(Fe.children[0])),N.dragAll&&(Ze=J,Ge=ct),Pe.forEach(function(Rt){Ks(ee.start,Rt,Jl,{handles:Ze,handleNumbers:Ge,connect:H})})}})}function Xl(N,H){Mn[N]=Mn[N]||[],Mn[N].push(H),N.split(".")[0]==="update"&&J.forEach(function(Q,_e){Lt("update",_e)})}function Ky(N){return N===qe.aria||N===qe.tooltips}function po(N){var H=N&&N.split(".")[0],Q=H?N.substring(H.length):N;Object.keys(Mn).forEach(function(_e){var Fe=_e.split(".")[0],Pe=_e.substring(Fe.length);H&&H!==Fe||Q&&Q!==Pe||Ky(Pe)&&Q!==Pe||delete Mn[_e]})}function Lt(N,H,Q){Object.keys(Mn).forEach(function(_e){var Fe=_e.split(".")[0];N===Fe&&Mn[_e].forEach(function(Pe){Pe.call(Ti,Ve.map(v.format.to),H,Ve.slice(),Q||!1,Be.slice(),Ti)})})}function Ai(N,H,Q,_e,Fe,Pe){var Ze;return J.length>1&&!v.events.unconstrained&&(_e&&H>0&&(Ze=se.getAbsoluteDistance(N[H-1],v.margin,!1),Q=Math.max(Q,Ze)),Fe&&H<J.length-1&&(Ze=se.getAbsoluteDistance(N[H+1],v.margin,!0),Q=Math.min(Q,Ze))),J.length>1&&v.limit&&(_e&&H>0&&(Ze=se.getAbsoluteDistance(N[H-1],v.limit,!1),Q=Math.min(Q,Ze)),Fe&&H<J.length-1&&(Ze=se.getAbsoluteDistance(N[H+1],v.limit,!0),Q=Math.max(Q,Ze))),v.padding&&(H===0&&(Ze=se.getAbsoluteDistance(0,v.padding[0],!1),Q=Math.max(Q,Ze)),H===J.length-1&&(Ze=se.getAbsoluteDistance(100,v.padding[1],!0),Q=Math.min(Q,Ze))),!((Q=m(Q=se.getStep(Q)))===N[H]&&!Pe)&&Q}function Ql(N,H){var Q=v.ort;return(Q?H:N)+", "+(Q?N:H)}function uf(N,H,Q,_e,Fe){var Pe=Q.slice(),Ze=_e[0],Ge=[!N,N],Rt=[N,!N];_e=_e.slice(),N&&_e.reverse(),_e.length>1?_e.forEach(function(mt,zt){var vt=Ai(Pe,mt,Pe[mt]+H,Ge[zt],Rt[zt],!1);vt===!1?H=0:(H=vt-Pe[mt],Pe[mt]=vt)}):Ge=Rt=[!0];var Ot=!1;_e.forEach(function(mt,zt){Ot=kr(mt,Q[mt]+H,Ge[zt],Rt[zt])||Ot}),Ot&&(_e.forEach(function(mt){Lt("update",mt),Lt("slide",mt)}),Fe!=null&&Lt("drag",Ze))}function cf(N,H){return v.dir?100-N-H:N}function Zy(N,H){Be[N]=H,Ve[N]=se.fromStepping(H);var Q="translate("+Ql(cf(H,0)-Py+"%","0")+")";J[N].style[v.transformRule]=Q,df(N),df(N+1)}function eu(){ct.forEach(function(N){var H=Be[N]>50?-1:1,Q=3+(J.length+H*N);J[N].style.zIndex=String(Q)})}function kr(N,H,Q,_e,Fe){return Fe||(H=Ai(Be,N,H,Q,_e,!1)),H!==!1&&(Zy(N,H),!0)}function df(N){if(de[N]){var H=0,Q=100;N!==0&&(H=Be[N-1]),N!==de.length-1&&(Q=Be[N]);var _e=Q-H,Fe="translate("+Ql(cf(H,_e)+"%","0")+")",Pe="scale("+Ql(_e/100,"1")+")";de[N].style[v.transformRule]=Fe+" "+Pe}}function ff(N,H){return N===null||N===!1||N===void 0?Be[H]:(typeof N=="number"&&(N=String(N)),(N=v.format.from(N))!==!1&&(N=se.toStepping(N)),N===!1||isNaN(N)?Be[H]:N)}function Oi(N,H,Q){var _e=p(N),Fe=Be[0]===void 0;H=H===void 0||H,v.animate&&!Fe&&f(X,v.cssClasses.tap,v.animationDuration),ct.forEach(function(Ge){kr(Ge,ff(_e[Ge],Ge),!0,!1,Q)});var Pe=ct.length===1?0:1;if(Fe&&se.hasNoSize()&&(Q=!0,Be[0]=0,ct.length>1)){var Ze=100/(ct.length-1);ct.forEach(function(Ge){Be[Ge]=Ge*Ze})}for(;Pe<ct.length;++Pe)ct.forEach(function(Ge){kr(Ge,Be[Ge],!0,!0,Q)});eu(),ct.forEach(function(Ge){Lt("update",Ge),_e[Ge]!==null&&H&&Lt("set",Ge)})}function Yy(N){Oi(v.start,N)}function Jy(N,H,Q,_e){if(!((N=Number(N))>=0&&N<ct.length))throw new Error("noUiSlider: invalid handle number, got: "+N);kr(N,ff(H,N),!0,!0,_e),Lt("update",N),Q&&Lt("set",N)}function hf(N){if(N===void 0&&(N=!1),N)return Ve.length===1?Ve[0]:Ve.slice(0);var H=Ve.map(v.format.to);return H.length===1?H[0]:H}function Xy(){for(po(qe.aria),po(qe.tooltips),Object.keys(v.cssClasses).forEach(function(N){y(X,v.cssClasses[N])});X.firstChild;)X.removeChild(X.firstChild);delete X.noUiSlider}function mf(N){var H=Be[N],Q=se.getNearbySteps(H),_e=Ve[N],Fe=Q.thisStep.step,Pe=null;if(v.snap)return[_e-Q.stepBefore.startValue||null,Q.stepAfter.startValue-_e||null];Fe!==!1&&_e+Fe>Q.stepAfter.startValue&&(Fe=Q.stepAfter.startValue-_e),Pe=_e>Q.thisStep.startValue?Q.thisStep.step:Q.stepBefore.step!==!1&&_e-Q.stepBefore.highestStep,H===100?Fe=null:H===0&&(Pe=null);var Ze=se.countStepDecimals();return Fe!==null&&Fe!==!1&&(Fe=Number(Fe.toFixed(Ze))),Pe!==null&&Pe!==!1&&(Pe=Number(Pe.toFixed(Ze))),[Pe,Fe]}function Qy(){return ct.map(mf)}function e1(N,H){var Q=hf(),_e=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];_e.forEach(function(Pe){N[Pe]!==void 0&&(I[Pe]=N[Pe])});var Fe=Re(I);_e.forEach(function(Pe){N[Pe]!==void 0&&(v[Pe]=Fe[Pe])}),se=Fe.spectrum,v.margin=Fe.margin,v.limit=Fe.limit,v.padding=Fe.padding,v.pips?Zl(v.pips):Kl(),v.tooltips?rf():Wl(),Be=[],Oi(i(N.start)?N.start:Q,H)}function t1(){z=Iy(X),Fy(v.connect,z),Wy(v.events),Oi(v.start),v.pips&&Zl(v.pips),v.tooltips&&rf(),Ry()}t1();var Ti={destroy:Xy,steps:Qy,on:Xl,off:po,get:hf,set:Oi,setHandle:Jy,reset:Yy,__moveHandles:function(N,H,Q){uf(N,H,Be,Q)},options:I,updateOptions:e1,target:X,removePips:Kl,removeTooltips:Wl,getPositions:function(){return Be.slice()},getTooltips:function(){return Ie},getOrigins:function(){return J},pips:Zl};return Ti}function Je(k,v){if(!k||!k.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+k);if(k.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var I=He(k,Re(v),v);return k.noUiSlider=I,I}var st={__spectrum:ae,cssClasses:Le,create:Je};n.create=Je,n.cssClasses=Le,n.default=st,Object.defineProperty(n,"__esModule",{value:!0})})(t)}));function Kh(e,t){var n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(s,r){return s===n[r]})}var ui={name:"Slider",emits:["input","update:modelValue","update","change","start","end"],props:{value:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},modelValue:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0}},setup(e,t){const n=function(i,a,l){var c=Vo(i),d=c.value,h=c.modelValue,f=a.expose!==void 0?h:d,m=cs(f.value);if(Ou(f.value))throw new Error("Slider v-model must be a Number or Array");if(Array.isArray(f.value)&&f.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:f,initialValue:m}}(e,t),s=function(i,a,l){var c=Vo(i),d=c.classes,h=c.showTooltip,f=c.tooltipPosition,m=c.orientation,p=Wt(function(){return qh({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub"},d.value)});return{classList:Wt(function(){var _=qh({},p.value);return Object.keys(_).forEach(function(g){_[g]=Array.isArray(_[g])?_[g].filter(function(y){return y!==null}).join(" "):_[g]}),h.value!=="always"&&(_.target+=" ".concat(h.value==="drag"?_.tooltipDrag:_.tooltipFocus)),m.value==="horizontal"&&(_.tooltip+=f.value==="bottom"?" ".concat(_.tooltipBottom):" ".concat(_.tooltipTop)),m.value==="vertical"&&(_.tooltip+=f.value==="right"?" ".concat(_.tooltipRight):" ".concat(_.tooltipLeft)),_})}}(e),r=yC(e,0,{value:n.value,classList:s.classList}),o=function(i,a,l){var c=Vo(i),d=c.orientation,h=c.direction,f=c.tooltips,m=c.step,p=c.min,_=c.max,g=c.merge,y=c.id,b=c.disabled,S=c.options,x=c.classes,C=c.format,A=c.lazy,M=l.value,j=l.initialValue,O=l.tooltipsFormat,V=l.tooltipsMerge,q=l.classList,F=cs(null),B=cs(null),W=cs(!1),ue=Wt(function(){var we={cssPrefix:"",cssClasses:q.value,orientation:d.value,direction:h.value,tooltips:!!f.value&&O.value,connect:"lower",start:Ou(M.value)?p.value:M.value,range:{min:p.value,max:_.value}};return m.value>0&&(we.step=m.value),Array.isArray(M.value)&&(we.connect=!0),we}),te=Wt(function(){var we={id:y&&y.value?y.value:void 0};return b.value&&(we.disabled=!0),we}),ae=Wt(function(){return Array.isArray(M.value)}),ve=function(){var we=B.value.get();return Array.isArray(we)?we.map(function(U){return parseFloat(U)}):parseFloat(we)},Le=function(we){var U=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];B.value.set(we,U)},qe=function(we){a.emit("input",we),a.emit("update:modelValue",we),a.emit("update",we)},me=function(){B.value=bC.create(F.value,Object.assign({},ue.value,S.value)),f.value&&ae.value&&g.value>=0&&V(F.value,g.value," - "),B.value.on("set",function(we){var U=ve();a.emit("change",U),A.value&&qe(U)}),B.value.on("update",function(we){if(W.value){var U=ve();ae.value&&Kh(M.value,U)||!ae.value&&M.value==U?a.emit("update",U):A.value||qe(U)}}),B.value.on("start",function(we){var U=ve();a.emit("start",U)}),B.value.on("end",function(we){var U=ve();a.emit("end",U)}),F.value.querySelectorAll("[data-handle]").forEach(function(we){we.onblur=function(){q.value.focused.split(" ").forEach(function(U){F.value.classList.remove(U)})},we.onfocus=function(){q.value.focused.split(" ").forEach(function(U){F.value.classList.add(U)})}}),W.value=!0},Y=function(){B.value.off(),B.value.destroy(),B.value=null},ce=function(we,U){W.value=!1,Y(),me()};return ao(me),gi(Y),jt(ae,ce,{immediate:!1}),jt(p,ce,{immediate:!1}),jt(_,ce,{immediate:!1}),jt(m,ce,{immediate:!1}),jt(d,ce,{immediate:!1}),jt(h,ce,{immediate:!1}),jt(f,ce,{immediate:!1}),jt(g,ce,{immediate:!1}),jt(C,ce,{immediate:!1,deep:!0}),jt(S,ce,{immediate:!1,deep:!0}),jt(x,ce,{immediate:!1,deep:!0}),jt(M,function(we){Ou(we)?Le(p.value,!1):(ae.value&&!Kh(we,ve())||!ae.value&&we!=ve())&&Le(we,!1)},{deep:!0}),{slider:F,slider$:B,isRange:ae,sliderProps:te,init:me,destroy:Y,refresh:ce,update:Le,reset:function(){qe(j.value)}}}(e,t,{value:n.value,initialValue:n.initialValue,tooltipsFormat:r.tooltipsFormat,tooltipsMerge:r.tooltipsMerge,classList:s.classList});return Ye(Ye(Ye({},s),r),o)}};ui.render=function(e,t,n,s,r,o){return E(),D("div",cd(e.sliderProps,{ref:"slider"}),null,16)},ui.__file="src/Slider.vue";var Tg={exports:{}},wC=[{value:"#B0171F",name:"indian red"},{value:"#DC143C",css:!0,name:"crimson"},{value:"#FFB6C1",css:!0,name:"lightpink"},{value:"#FFAEB9",name:"lightpink 1"},{value:"#EEA2AD",name:"lightpink 2"},{value:"#CD8C95",name:"lightpink 3"},{value:"#8B5F65",name:"lightpink 4"},{value:"#FFC0CB",css:!0,name:"pink"},{value:"#FFB5C5",name:"pink 1"},{value:"#EEA9B8",name:"pink 2"},{value:"#CD919E",name:"pink 3"},{value:"#8B636C",name:"pink 4"},{value:"#DB7093",css:!0,name:"palevioletred"},{value:"#FF82AB",name:"palevioletred 1"},{value:"#EE799F",name:"palevioletred 2"},{value:"#CD6889",name:"palevioletred 3"},{value:"#8B475D",name:"palevioletred 4"},{value:"#FFF0F5",name:"lavenderblush 1"},{value:"#FFF0F5",css:!0,name:"lavenderblush"},{value:"#EEE0E5",name:"lavenderblush 2"},{value:"#CDC1C5",name:"lavenderblush 3"},{value:"#8B8386",name:"lavenderblush 4"},{value:"#FF3E96",name:"violetred 1"},{value:"#EE3A8C",name:"violetred 2"},{value:"#CD3278",name:"violetred 3"},{value:"#8B2252",name:"violetred 4"},{value:"#FF69B4",css:!0,name:"hotpink"},{value:"#FF6EB4",name:"hotpink 1"},{value:"#EE6AA7",name:"hotpink 2"},{value:"#CD6090",name:"hotpink 3"},{value:"#8B3A62",name:"hotpink 4"},{value:"#872657",name:"raspberry"},{value:"#FF1493",name:"deeppink 1"},{value:"#FF1493",css:!0,name:"deeppink"},{value:"#EE1289",name:"deeppink 2"},{value:"#CD1076",name:"deeppink 3"},{value:"#8B0A50",name:"deeppink 4"},{value:"#FF34B3",name:"maroon 1"},{value:"#EE30A7",name:"maroon 2"},{value:"#CD2990",name:"maroon 3"},{value:"#8B1C62",name:"maroon 4"},{value:"#C71585",css:!0,name:"mediumvioletred"},{value:"#D02090",name:"violetred"},{value:"#DA70D6",css:!0,name:"orchid"},{value:"#FF83FA",name:"orchid 1"},{value:"#EE7AE9",name:"orchid 2"},{value:"#CD69C9",name:"orchid 3"},{value:"#8B4789",name:"orchid 4"},{value:"#D8BFD8",css:!0,name:"thistle"},{value:"#FFE1FF",name:"thistle 1"},{value:"#EED2EE",name:"thistle 2"},{value:"#CDB5CD",name:"thistle 3"},{value:"#8B7B8B",name:"thistle 4"},{value:"#FFBBFF",name:"plum 1"},{value:"#EEAEEE",name:"plum 2"},{value:"#CD96CD",name:"plum 3"},{value:"#8B668B",name:"plum 4"},{value:"#DDA0DD",css:!0,name:"plum"},{value:"#EE82EE",css:!0,name:"violet"},{value:"#FF00FF",vga:!0,name:"magenta"},{value:"#FF00FF",vga:!0,css:!0,name:"fuchsia"},{value:"#EE00EE",name:"magenta 2"},{value:"#CD00CD",name:"magenta 3"},{value:"#8B008B",name:"magenta 4"},{value:"#8B008B",css:!0,name:"darkmagenta"},{value:"#800080",vga:!0,css:!0,name:"purple"},{value:"#BA55D3",css:!0,name:"mediumorchid"},{value:"#E066FF",name:"mediumorchid 1"},{value:"#D15FEE",name:"mediumorchid 2"},{value:"#B452CD",name:"mediumorchid 3"},{value:"#7A378B",name:"mediumorchid 4"},{value:"#9400D3",css:!0,name:"darkviolet"},{value:"#9932CC",css:!0,name:"darkorchid"},{value:"#BF3EFF",name:"darkorchid 1"},{value:"#B23AEE",name:"darkorchid 2"},{value:"#9A32CD",name:"darkorchid 3"},{value:"#68228B",name:"darkorchid 4"},{value:"#4B0082",css:!0,name:"indigo"},{value:"#8A2BE2",css:!0,name:"blueviolet"},{value:"#9B30FF",name:"purple 1"},{value:"#912CEE",name:"purple 2"},{value:"#7D26CD",name:"purple 3"},{value:"#551A8B",name:"purple 4"},{value:"#9370DB",css:!0,name:"mediumpurple"},{value:"#AB82FF",name:"mediumpurple 1"},{value:"#9F79EE",name:"mediumpurple 2"},{value:"#8968CD",name:"mediumpurple 3"},{value:"#5D478B",name:"mediumpurple 4"},{value:"#483D8B",css:!0,name:"darkslateblue"},{value:"#8470FF",name:"lightslateblue"},{value:"#7B68EE",css:!0,name:"mediumslateblue"},{value:"#6A5ACD",css:!0,name:"slateblue"},{value:"#836FFF",name:"slateblue 1"},{value:"#7A67EE",name:"slateblue 2"},{value:"#6959CD",name:"slateblue 3"},{value:"#473C8B",name:"slateblue 4"},{value:"#F8F8FF",css:!0,name:"ghostwhite"},{value:"#E6E6FA",css:!0,name:"lavender"},{value:"#0000FF",vga:!0,css:!0,name:"blue"},{value:"#0000EE",name:"blue 2"},{value:"#0000CD",name:"blue 3"},{value:"#0000CD",css:!0,name:"mediumblue"},{value:"#00008B",name:"blue 4"},{value:"#00008B",css:!0,name:"darkblue"},{value:"#000080",vga:!0,css:!0,name:"navy"},{value:"#191970",css:!0,name:"midnightblue"},{value:"#3D59AB",name:"cobalt"},{value:"#4169E1",css:!0,name:"royalblue"},{value:"#4876FF",name:"royalblue 1"},{value:"#436EEE",name:"royalblue 2"},{value:"#3A5FCD",name:"royalblue 3"},{value:"#27408B",name:"royalblue 4"},{value:"#6495ED",css:!0,name:"cornflowerblue"},{value:"#B0C4DE",css:!0,name:"lightsteelblue"},{value:"#CAE1FF",name:"lightsteelblue 1"},{value:"#BCD2EE",name:"lightsteelblue 2"},{value:"#A2B5CD",name:"lightsteelblue 3"},{value:"#6E7B8B",name:"lightsteelblue 4"},{value:"#778899",css:!0,name:"lightslategray"},{value:"#708090",css:!0,name:"slategray"},{value:"#C6E2FF",name:"slategray 1"},{value:"#B9D3EE",name:"slategray 2"},{value:"#9FB6CD",name:"slategray 3"},{value:"#6C7B8B",name:"slategray 4"},{value:"#1E90FF",name:"dodgerblue 1"},{value:"#1E90FF",css:!0,name:"dodgerblue"},{value:"#1C86EE",name:"dodgerblue 2"},{value:"#1874CD",name:"dodgerblue 3"},{value:"#104E8B",name:"dodgerblue 4"},{value:"#F0F8FF",css:!0,name:"aliceblue"},{value:"#4682B4",css:!0,name:"steelblue"},{value:"#63B8FF",name:"steelblue 1"},{value:"#5CACEE",name:"steelblue 2"},{value:"#4F94CD",name:"steelblue 3"},{value:"#36648B",name:"steelblue 4"},{value:"#87CEFA",css:!0,name:"lightskyblue"},{value:"#B0E2FF",name:"lightskyblue 1"},{value:"#A4D3EE",name:"lightskyblue 2"},{value:"#8DB6CD",name:"lightskyblue 3"},{value:"#607B8B",name:"lightskyblue 4"},{value:"#87CEFF",name:"skyblue 1"},{value:"#7EC0EE",name:"skyblue 2"},{value:"#6CA6CD",name:"skyblue 3"},{value:"#4A708B",name:"skyblue 4"},{value:"#87CEEB",css:!0,name:"skyblue"},{value:"#00BFFF",name:"deepskyblue 1"},{value:"#00BFFF",css:!0,name:"deepskyblue"},{value:"#00B2EE",name:"deepskyblue 2"},{value:"#009ACD",name:"deepskyblue 3"},{value:"#00688B",name:"deepskyblue 4"},{value:"#33A1C9",name:"peacock"},{value:"#ADD8E6",css:!0,name:"lightblue"},{value:"#BFEFFF",name:"lightblue 1"},{value:"#B2DFEE",name:"lightblue 2"},{value:"#9AC0CD",name:"lightblue 3"},{value:"#68838B",name:"lightblue 4"},{value:"#B0E0E6",css:!0,name:"powderblue"},{value:"#98F5FF",name:"cadetblue 1"},{value:"#8EE5EE",name:"cadetblue 2"},{value:"#7AC5CD",name:"cadetblue 3"},{value:"#53868B",name:"cadetblue 4"},{value:"#00F5FF",name:"turquoise 1"},{value:"#00E5EE",name:"turquoise 2"},{value:"#00C5CD",name:"turquoise 3"},{value:"#00868B",name:"turquoise 4"},{value:"#5F9EA0",css:!0,name:"cadetblue"},{value:"#00CED1",css:!0,name:"darkturquoise"},{value:"#F0FFFF",name:"azure 1"},{value:"#F0FFFF",css:!0,name:"azure"},{value:"#E0EEEE",name:"azure 2"},{value:"#C1CDCD",name:"azure 3"},{value:"#838B8B",name:"azure 4"},{value:"#E0FFFF",name:"lightcyan 1"},{value:"#E0FFFF",css:!0,name:"lightcyan"},{value:"#D1EEEE",name:"lightcyan 2"},{value:"#B4CDCD",name:"lightcyan 3"},{value:"#7A8B8B",name:"lightcyan 4"},{value:"#BBFFFF",name:"paleturquoise 1"},{value:"#AEEEEE",name:"paleturquoise 2"},{value:"#AEEEEE",css:!0,name:"paleturquoise"},{value:"#96CDCD",name:"paleturquoise 3"},{value:"#668B8B",name:"paleturquoise 4"},{value:"#2F4F4F",css:!0,name:"darkslategray"},{value:"#97FFFF",name:"darkslategray 1"},{value:"#8DEEEE",name:"darkslategray 2"},{value:"#79CDCD",name:"darkslategray 3"},{value:"#528B8B",name:"darkslategray 4"},{value:"#00FFFF",name:"cyan"},{value:"#00FFFF",css:!0,name:"aqua"},{value:"#00EEEE",name:"cyan 2"},{value:"#00CDCD",name:"cyan 3"},{value:"#008B8B",name:"cyan 4"},{value:"#008B8B",css:!0,name:"darkcyan"},{value:"#008080",vga:!0,css:!0,name:"teal"},{value:"#48D1CC",css:!0,name:"mediumturquoise"},{value:"#20B2AA",css:!0,name:"lightseagreen"},{value:"#03A89E",name:"manganeseblue"},{value:"#40E0D0",css:!0,name:"turquoise"},{value:"#808A87",name:"coldgrey"},{value:"#00C78C",name:"turquoiseblue"},{value:"#7FFFD4",name:"aquamarine 1"},{value:"#7FFFD4",css:!0,name:"aquamarine"},{value:"#76EEC6",name:"aquamarine 2"},{value:"#66CDAA",name:"aquamarine 3"},{value:"#66CDAA",css:!0,name:"mediumaquamarine"},{value:"#458B74",name:"aquamarine 4"},{value:"#00FA9A",css:!0,name:"mediumspringgreen"},{value:"#F5FFFA",css:!0,name:"mintcream"},{value:"#00FF7F",css:!0,name:"springgreen"},{value:"#00EE76",name:"springgreen 1"},{value:"#00CD66",name:"springgreen 2"},{value:"#008B45",name:"springgreen 3"},{value:"#3CB371",css:!0,name:"mediumseagreen"},{value:"#54FF9F",name:"seagreen 1"},{value:"#4EEE94",name:"seagreen 2"},{value:"#43CD80",name:"seagreen 3"},{value:"#2E8B57",name:"seagreen 4"},{value:"#2E8B57",css:!0,name:"seagreen"},{value:"#00C957",name:"emeraldgreen"},{value:"#BDFCC9",name:"mint"},{value:"#3D9140",name:"cobaltgreen"},{value:"#F0FFF0",name:"honeydew 1"},{value:"#F0FFF0",css:!0,name:"honeydew"},{value:"#E0EEE0",name:"honeydew 2"},{value:"#C1CDC1",name:"honeydew 3"},{value:"#838B83",name:"honeydew 4"},{value:"#8FBC8F",css:!0,name:"darkseagreen"},{value:"#C1FFC1",name:"darkseagreen 1"},{value:"#B4EEB4",name:"darkseagreen 2"},{value:"#9BCD9B",name:"darkseagreen 3"},{value:"#698B69",name:"darkseagreen 4"},{value:"#98FB98",css:!0,name:"palegreen"},{value:"#9AFF9A",name:"palegreen 1"},{value:"#90EE90",name:"palegreen 2"},{value:"#90EE90",css:!0,name:"lightgreen"},{value:"#7CCD7C",name:"palegreen 3"},{value:"#548B54",name:"palegreen 4"},{value:"#32CD32",css:!0,name:"limegreen"},{value:"#228B22",css:!0,name:"forestgreen"},{value:"#00FF00",vga:!0,name:"green 1"},{value:"#00FF00",vga:!0,css:!0,name:"lime"},{value:"#00EE00",name:"green 2"},{value:"#00CD00",name:"green 3"},{value:"#008B00",name:"green 4"},{value:"#008000",vga:!0,css:!0,name:"green"},{value:"#006400",css:!0,name:"darkgreen"},{value:"#308014",name:"sapgreen"},{value:"#7CFC00",css:!0,name:"lawngreen"},{value:"#7FFF00",name:"chartreuse 1"},{value:"#7FFF00",css:!0,name:"chartreuse"},{value:"#76EE00",name:"chartreuse 2"},{value:"#66CD00",name:"chartreuse 3"},{value:"#458B00",name:"chartreuse 4"},{value:"#ADFF2F",css:!0,name:"greenyellow"},{value:"#CAFF70",name:"darkolivegreen 1"},{value:"#BCEE68",name:"darkolivegreen 2"},{value:"#A2CD5A",name:"darkolivegreen 3"},{value:"#6E8B3D",name:"darkolivegreen 4"},{value:"#556B2F",css:!0,name:"darkolivegreen"},{value:"#6B8E23",css:!0,name:"olivedrab"},{value:"#C0FF3E",name:"olivedrab 1"},{value:"#B3EE3A",name:"olivedrab 2"},{value:"#9ACD32",name:"olivedrab 3"},{value:"#9ACD32",css:!0,name:"yellowgreen"},{value:"#698B22",name:"olivedrab 4"},{value:"#FFFFF0",name:"ivory 1"},{value:"#FFFFF0",css:!0,name:"ivory"},{value:"#EEEEE0",name:"ivory 2"},{value:"#CDCDC1",name:"ivory 3"},{value:"#8B8B83",name:"ivory 4"},{value:"#F5F5DC",css:!0,name:"beige"},{value:"#FFFFE0",name:"lightyellow 1"},{value:"#FFFFE0",css:!0,name:"lightyellow"},{value:"#EEEED1",name:"lightyellow 2"},{value:"#CDCDB4",name:"lightyellow 3"},{value:"#8B8B7A",name:"lightyellow 4"},{value:"#FAFAD2",css:!0,name:"lightgoldenrodyellow"},{value:"#FFFF00",vga:!0,name:"yellow 1"},{value:"#FFFF00",vga:!0,css:!0,name:"yellow"},{value:"#EEEE00",name:"yellow 2"},{value:"#CDCD00",name:"yellow 3"},{value:"#8B8B00",name:"yellow 4"},{value:"#808069",name:"warmgrey"},{value:"#808000",vga:!0,css:!0,name:"olive"},{value:"#BDB76B",css:!0,name:"darkkhaki"},{value:"#FFF68F",name:"khaki 1"},{value:"#EEE685",name:"khaki 2"},{value:"#CDC673",name:"khaki 3"},{value:"#8B864E",name:"khaki 4"},{value:"#F0E68C",css:!0,name:"khaki"},{value:"#EEE8AA",css:!0,name:"palegoldenrod"},{value:"#FFFACD",name:"lemonchiffon 1"},{value:"#FFFACD",css:!0,name:"lemonchiffon"},{value:"#EEE9BF",name:"lemonchiffon 2"},{value:"#CDC9A5",name:"lemonchiffon 3"},{value:"#8B8970",name:"lemonchiffon 4"},{value:"#FFEC8B",name:"lightgoldenrod 1"},{value:"#EEDC82",name:"lightgoldenrod 2"},{value:"#CDBE70",name:"lightgoldenrod 3"},{value:"#8B814C",name:"lightgoldenrod 4"},{value:"#E3CF57",name:"banana"},{value:"#FFD700",name:"gold 1"},{value:"#FFD700",css:!0,name:"gold"},{value:"#EEC900",name:"gold 2"},{value:"#CDAD00",name:"gold 3"},{value:"#8B7500",name:"gold 4"},{value:"#FFF8DC",name:"cornsilk 1"},{value:"#FFF8DC",css:!0,name:"cornsilk"},{value:"#EEE8CD",name:"cornsilk 2"},{value:"#CDC8B1",name:"cornsilk 3"},{value:"#8B8878",name:"cornsilk 4"},{value:"#DAA520",css:!0,name:"goldenrod"},{value:"#FFC125",name:"goldenrod 1"},{value:"#EEB422",name:"goldenrod 2"},{value:"#CD9B1D",name:"goldenrod 3"},{value:"#8B6914",name:"goldenrod 4"},{value:"#B8860B",css:!0,name:"darkgoldenrod"},{value:"#FFB90F",name:"darkgoldenrod 1"},{value:"#EEAD0E",name:"darkgoldenrod 2"},{value:"#CD950C",name:"darkgoldenrod 3"},{value:"#8B6508",name:"darkgoldenrod 4"},{value:"#FFA500",name:"orange 1"},{value:"#FF8000",css:!0,name:"orange"},{value:"#EE9A00",name:"orange 2"},{value:"#CD8500",name:"orange 3"},{value:"#8B5A00",name:"orange 4"},{value:"#FFFAF0",css:!0,name:"floralwhite"},{value:"#FDF5E6",css:!0,name:"oldlace"},{value:"#F5DEB3",css:!0,name:"wheat"},{value:"#FFE7BA",name:"wheat 1"},{value:"#EED8AE",name:"wheat 2"},{value:"#CDBA96",name:"wheat 3"},{value:"#8B7E66",name:"wheat 4"},{value:"#FFE4B5",css:!0,name:"moccasin"},{value:"#FFEFD5",css:!0,name:"papayawhip"},{value:"#FFEBCD",css:!0,name:"blanchedalmond"},{value:"#FFDEAD",name:"navajowhite 1"},{value:"#FFDEAD",css:!0,name:"navajowhite"},{value:"#EECFA1",name:"navajowhite 2"},{value:"#CDB38B",name:"navajowhite 3"},{value:"#8B795E",name:"navajowhite 4"},{value:"#FCE6C9",name:"eggshell"},{value:"#D2B48C",css:!0,name:"tan"},{value:"#9C661F",name:"brick"},{value:"#FF9912",name:"cadmiumyellow"},{value:"#FAEBD7",css:!0,name:"antiquewhite"},{value:"#FFEFDB",name:"antiquewhite 1"},{value:"#EEDFCC",name:"antiquewhite 2"},{value:"#CDC0B0",name:"antiquewhite 3"},{value:"#8B8378",name:"antiquewhite 4"},{value:"#DEB887",css:!0,name:"burlywood"},{value:"#FFD39B",name:"burlywood 1"},{value:"#EEC591",name:"burlywood 2"},{value:"#CDAA7D",name:"burlywood 3"},{value:"#8B7355",name:"burlywood 4"},{value:"#FFE4C4",name:"bisque 1"},{value:"#FFE4C4",css:!0,name:"bisque"},{value:"#EED5B7",name:"bisque 2"},{value:"#CDB79E",name:"bisque 3"},{value:"#8B7D6B",name:"bisque 4"},{value:"#E3A869",name:"melon"},{value:"#ED9121",name:"carrot"},{value:"#FF8C00",css:!0,name:"darkorange"},{value:"#FF7F00",name:"darkorange 1"},{value:"#EE7600",name:"darkorange 2"},{value:"#CD6600",name:"darkorange 3"},{value:"#8B4500",name:"darkorange 4"},{value:"#FFA54F",name:"tan 1"},{value:"#EE9A49",name:"tan 2"},{value:"#CD853F",name:"tan 3"},{value:"#CD853F",css:!0,name:"peru"},{value:"#8B5A2B",name:"tan 4"},{value:"#FAF0E6",css:!0,name:"linen"},{value:"#FFDAB9",name:"peachpuff 1"},{value:"#FFDAB9",css:!0,name:"peachpuff"},{value:"#EECBAD",name:"peachpuff 2"},{value:"#CDAF95",name:"peachpuff 3"},{value:"#8B7765",name:"peachpuff 4"},{value:"#FFF5EE",name:"seashell 1"},{value:"#FFF5EE",css:!0,name:"seashell"},{value:"#EEE5DE",name:"seashell 2"},{value:"#CDC5BF",name:"seashell 3"},{value:"#8B8682",name:"seashell 4"},{value:"#F4A460",css:!0,name:"sandybrown"},{value:"#C76114",name:"rawsienna"},{value:"#D2691E",css:!0,name:"chocolate"},{value:"#FF7F24",name:"chocolate 1"},{value:"#EE7621",name:"chocolate 2"},{value:"#CD661D",name:"chocolate 3"},{value:"#8B4513",name:"chocolate 4"},{value:"#8B4513",css:!0,name:"saddlebrown"},{value:"#292421",name:"ivoryblack"},{value:"#FF7D40",name:"flesh"},{value:"#FF6103",name:"cadmiumorange"},{value:"#8A360F",name:"burntsienna"},{value:"#A0522D",css:!0,name:"sienna"},{value:"#FF8247",name:"sienna 1"},{value:"#EE7942",name:"sienna 2"},{value:"#CD6839",name:"sienna 3"},{value:"#8B4726",name:"sienna 4"},{value:"#FFA07A",name:"lightsalmon 1"},{value:"#FFA07A",css:!0,name:"lightsalmon"},{value:"#EE9572",name:"lightsalmon 2"},{value:"#CD8162",name:"lightsalmon 3"},{value:"#8B5742",name:"lightsalmon 4"},{value:"#FF7F50",css:!0,name:"coral"},{value:"#FF4500",name:"orangered 1"},{value:"#FF4500",css:!0,name:"orangered"},{value:"#EE4000",name:"orangered 2"},{value:"#CD3700",name:"orangered 3"},{value:"#8B2500",name:"orangered 4"},{value:"#5E2612",name:"sepia"},{value:"#E9967A",css:!0,name:"darksalmon"},{value:"#FF8C69",name:"salmon 1"},{value:"#EE8262",name:"salmon 2"},{value:"#CD7054",name:"salmon 3"},{value:"#8B4C39",name:"salmon 4"},{value:"#FF7256",name:"coral 1"},{value:"#EE6A50",name:"coral 2"},{value:"#CD5B45",name:"coral 3"},{value:"#8B3E2F",name:"coral 4"},{value:"#8A3324",name:"burntumber"},{value:"#FF6347",name:"tomato 1"},{value:"#FF6347",css:!0,name:"tomato"},{value:"#EE5C42",name:"tomato 2"},{value:"#CD4F39",name:"tomato 3"},{value:"#8B3626",name:"tomato 4"},{value:"#FA8072",css:!0,name:"salmon"},{value:"#FFE4E1",name:"mistyrose 1"},{value:"#FFE4E1",css:!0,name:"mistyrose"},{value:"#EED5D2",name:"mistyrose 2"},{value:"#CDB7B5",name:"mistyrose 3"},{value:"#8B7D7B",name:"mistyrose 4"},{value:"#FFFAFA",name:"snow 1"},{value:"#FFFAFA",css:!0,name:"snow"},{value:"#EEE9E9",name:"snow 2"},{value:"#CDC9C9",name:"snow 3"},{value:"#8B8989",name:"snow 4"},{value:"#BC8F8F",css:!0,name:"rosybrown"},{value:"#FFC1C1",name:"rosybrown 1"},{value:"#EEB4B4",name:"rosybrown 2"},{value:"#CD9B9B",name:"rosybrown 3"},{value:"#8B6969",name:"rosybrown 4"},{value:"#F08080",css:!0,name:"lightcoral"},{value:"#CD5C5C",css:!0,name:"indianred"},{value:"#FF6A6A",name:"indianred 1"},{value:"#EE6363",name:"indianred 2"},{value:"#8B3A3A",name:"indianred 4"},{value:"#CD5555",name:"indianred 3"},{value:"#A52A2A",css:!0,name:"brown"},{value:"#FF4040",name:"brown 1"},{value:"#EE3B3B",name:"brown 2"},{value:"#CD3333",name:"brown 3"},{value:"#8B2323",name:"brown 4"},{value:"#B22222",css:!0,name:"firebrick"},{value:"#FF3030",name:"firebrick 1"},{value:"#EE2C2C",name:"firebrick 2"},{value:"#CD2626",name:"firebrick 3"},{value:"#8B1A1A",name:"firebrick 4"},{value:"#FF0000",vga:!0,name:"red 1"},{value:"#FF0000",vga:!0,css:!0,name:"red"},{value:"#EE0000",name:"red 2"},{value:"#CD0000",name:"red 3"},{value:"#8B0000",name:"red 4"},{value:"#8B0000",css:!0,name:"darkred"},{value:"#800000",vga:!0,css:!0,name:"maroon"},{value:"#8E388E",name:"sgi beet"},{value:"#7171C6",name:"sgi slateblue"},{value:"#7D9EC0",name:"sgi lightblue"},{value:"#388E8E",name:"sgi teal"},{value:"#71C671",name:"sgi chartreuse"},{value:"#8E8E38",name:"sgi olivedrab"},{value:"#C5C1AA",name:"sgi brightgray"},{value:"#C67171",name:"sgi salmon"},{value:"#555555",name:"sgi darkgray"},{value:"#1E1E1E",name:"sgi gray 12"},{value:"#282828",name:"sgi gray 16"},{value:"#515151",name:"sgi gray 32"},{value:"#5B5B5B",name:"sgi gray 36"},{value:"#848484",name:"sgi gray 52"},{value:"#8E8E8E",name:"sgi gray 56"},{value:"#AAAAAA",name:"sgi lightgray"},{value:"#B7B7B7",name:"sgi gray 72"},{value:"#C1C1C1",name:"sgi gray 76"},{value:"#EAEAEA",name:"sgi gray 92"},{value:"#F4F4F4",name:"sgi gray 96"},{value:"#FFFFFF",vga:!0,css:!0,name:"white"},{value:"#F5F5F5",name:"white smoke"},{value:"#F5F5F5",name:"gray 96"},{value:"#DCDCDC",css:!0,name:"gainsboro"},{value:"#D3D3D3",css:!0,name:"lightgrey"},{value:"#C0C0C0",vga:!0,css:!0,name:"silver"},{value:"#A9A9A9",css:!0,name:"darkgray"},{value:"#808080",vga:!0,css:!0,name:"gray"},{value:"#696969",css:!0,name:"dimgray"},{value:"#696969",name:"gray 42"},{value:"#000000",vga:!0,css:!0,name:"black"},{value:"#FCFCFC",name:"gray 99"},{value:"#FAFAFA",name:"gray 98"},{value:"#F7F7F7",name:"gray 97"},{value:"#F2F2F2",name:"gray 95"},{value:"#F0F0F0",name:"gray 94"},{value:"#EDEDED",name:"gray 93"},{value:"#EBEBEB",name:"gray 92"},{value:"#E8E8E8",name:"gray 91"},{value:"#E5E5E5",name:"gray 90"},{value:"#E3E3E3",name:"gray 89"},{value:"#E0E0E0",name:"gray 88"},{value:"#DEDEDE",name:"gray 87"},{value:"#DBDBDB",name:"gray 86"},{value:"#D9D9D9",name:"gray 85"},{value:"#D6D6D6",name:"gray 84"},{value:"#D4D4D4",name:"gray 83"},{value:"#D1D1D1",name:"gray 82"},{value:"#CFCFCF",name:"gray 81"},{value:"#CCCCCC",name:"gray 80"},{value:"#C9C9C9",name:"gray 79"},{value:"#C7C7C7",name:"gray 78"},{value:"#C4C4C4",name:"gray 77"},{value:"#C2C2C2",name:"gray 76"},{value:"#BFBFBF",name:"gray 75"},{value:"#BDBDBD",name:"gray 74"},{value:"#BABABA",name:"gray 73"},{value:"#B8B8B8",name:"gray 72"},{value:"#B5B5B5",name:"gray 71"},{value:"#B3B3B3",name:"gray 70"},{value:"#B0B0B0",name:"gray 69"},{value:"#ADADAD",name:"gray 68"},{value:"#ABABAB",name:"gray 67"},{value:"#A8A8A8",name:"gray 66"},{value:"#A6A6A6",name:"gray 65"},{value:"#A3A3A3",name:"gray 64"},{value:"#A1A1A1",name:"gray 63"},{value:"#9E9E9E",name:"gray 62"},{value:"#9C9C9C",name:"gray 61"},{value:"#999999",name:"gray 60"},{value:"#969696",name:"gray 59"},{value:"#949494",name:"gray 58"},{value:"#919191",name:"gray 57"},{value:"#8F8F8F",name:"gray 56"},{value:"#8C8C8C",name:"gray 55"},{value:"#8A8A8A",name:"gray 54"},{value:"#878787",name:"gray 53"},{value:"#858585",name:"gray 52"},{value:"#828282",name:"gray 51"},{value:"#7F7F7F",name:"gray 50"},{value:"#7D7D7D",name:"gray 49"},{value:"#7A7A7A",name:"gray 48"},{value:"#787878",name:"gray 47"},{value:"#757575",name:"gray 46"},{value:"#737373",name:"gray 45"},{value:"#707070",name:"gray 44"},{value:"#6E6E6E",name:"gray 43"},{value:"#666666",name:"gray 40"},{value:"#636363",name:"gray 39"},{value:"#616161",name:"gray 38"},{value:"#5E5E5E",name:"gray 37"},{value:"#5C5C5C",name:"gray 36"},{value:"#595959",name:"gray 35"},{value:"#575757",name:"gray 34"},{value:"#545454",name:"gray 33"},{value:"#525252",name:"gray 32"},{value:"#4F4F4F",name:"gray 31"},{value:"#4D4D4D",name:"gray 30"},{value:"#4A4A4A",name:"gray 29"},{value:"#474747",name:"gray 28"},{value:"#454545",name:"gray 27"},{value:"#424242",name:"gray 26"},{value:"#404040",name:"gray 25"},{value:"#3D3D3D",name:"gray 24"},{value:"#3B3B3B",name:"gray 23"},{value:"#383838",name:"gray 22"},{value:"#363636",name:"gray 21"},{value:"#333333",name:"gray 20"},{value:"#303030",name:"gray 19"},{value:"#2E2E2E",name:"gray 18"},{value:"#2B2B2B",name:"gray 17"},{value:"#292929",name:"gray 16"},{value:"#262626",name:"gray 15"},{value:"#242424",name:"gray 14"},{value:"#212121",name:"gray 13"},{value:"#1F1F1F",name:"gray 12"},{value:"#1C1C1C",name:"gray 11"},{value:"#1A1A1A",name:"gray 10"},{value:"#171717",name:"gray 9"},{value:"#141414",name:"gray 8"},{value:"#121212",name:"gray 7"},{value:"#0F0F0F",name:"gray 6"},{value:"#0D0D0D",name:"gray 5"},{value:"#0A0A0A",name:"gray 4"},{value:"#080808",name:"gray 3"},{value:"#050505",name:"gray 2"},{value:"#030303",name:"gray 1"},{value:"#F5F5F5",css:!0,name:"whitesmoke"}];(function(e){var t=wC,n=t.filter(function(r){return!!r.css}),s=t.filter(function(r){return!!r.vga});e.exports=function(r){var o=e.exports.get(r);return o&&o.value},e.exports.get=function(r){return r=r||"",r=r.trim().toLowerCase(),t.filter(function(o){return o.name.toLowerCase()===r}).pop()},e.exports.all=e.exports.get.all=function(){return t},e.exports.get.css=function(r){return r?(r=r||"",r=r.trim().toLowerCase(),n.filter(function(o){return o.name.toLowerCase()===r}).pop()):n},e.exports.get.vga=function(r){return r?(r=r||"",r=r.trim().toLowerCase(),s.filter(function(o){return o.name.toLowerCase()===r}).pop()):s}})(Tg);var kC=1/0,SC="[object Symbol]",xC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pg="\\ud800-\\udfff",EC="\\u0300-\\u036f\\ufe20-\\ufe23",CC="\\u20d0-\\u20f0",Dg="\\u2700-\\u27bf",Fg="a-z\\xdf-\\xf6\\xf8-\\xff",$C="\\xac\\xb1\\xd7\\xf7",AC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",OC="\\u2000-\\u206f",TC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ig="A-Z\\xc0-\\xd6\\xd8-\\xde",PC="\\ufe0e\\ufe0f",Mg=$C+AC+OC+TC,Rg="['\u2019]",Zh="["+Mg+"]",DC="["+EC+CC+"]",Lg="\\d+",FC="["+Dg+"]",Ng="["+Fg+"]",Vg="[^"+Pg+Mg+Lg+Dg+Fg+Ig+"]",IC="\\ud83c[\\udffb-\\udfff]",MC="(?:"+DC+"|"+IC+")",RC="[^"+Pg+"]",jg="(?:\\ud83c[\\udde6-\\uddff]){2}",Bg="[\\ud800-\\udbff][\\udc00-\\udfff]",Nr="["+Ig+"]",LC="\\u200d",Yh="(?:"+Ng+"|"+Vg+")",NC="(?:"+Nr+"|"+Vg+")",Jh="(?:"+Rg+"(?:d|ll|m|re|s|t|ve))?",Xh="(?:"+Rg+"(?:D|LL|M|RE|S|T|VE))?",Ug=MC+"?",Hg="["+PC+"]?",VC="(?:"+LC+"(?:"+[RC,jg,Bg].join("|")+")"+Hg+Ug+")*",jC=Hg+Ug+VC,BC="(?:"+[FC,jg,Bg].join("|")+")"+jC,UC=RegExp([Nr+"?"+Ng+"+"+Jh+"(?="+[Zh,Nr,"$"].join("|")+")",NC+"+"+Xh+"(?="+[Zh,Nr+Yh,"$"].join("|")+")",Nr+"?"+Yh+"+"+Jh,Nr+"+"+Xh,Lg,BC].join("|"),"g"),HC=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,zC=typeof tn=="object"&&tn&&tn.Object===Object&&tn,qC=typeof self=="object"&&self&&self.Object===Object&&self,GC=zC||qC||Function("return this")();function WC(e){return e.match(xC)||[]}function KC(e){return HC.test(e)}function ZC(e){return e.match(UC)||[]}var YC=Object.prototype,JC=YC.toString,Qh=GC.Symbol,em=Qh?Qh.prototype:void 0,tm=em?em.toString:void 0;function XC(e){if(typeof e=="string")return e;if(e$(e))return tm?tm.call(e):"";var t=e+"";return t=="0"&&1/e==-kC?"-0":t}function QC(e){return!!e&&typeof e=="object"}function e$(e){return typeof e=="symbol"||QC(e)&&JC.call(e)==SC}function t$(e){return e==null?"":XC(e)}function n$(e,t,n){return e=t$(e),t=n?void 0:t,t===void 0?KC(e)?ZC(e):WC(e):e.match(t)||[]}var s$=n$,r$=1/0,o$="[object Symbol]",i$=/^\s+/,Md="\\ud800-\\udfff",zg="\\u0300-\\u036f\\ufe20-\\ufe23",qg="\\u20d0-\\u20f0",Gg="\\ufe0e\\ufe0f",a$="["+Md+"]",wc="["+zg+qg+"]",kc="\\ud83c[\\udffb-\\udfff]",l$="(?:"+wc+"|"+kc+")",Wg="[^"+Md+"]",Kg="(?:\\ud83c[\\udde6-\\uddff]){2}",Zg="[\\ud800-\\udbff][\\udc00-\\udfff]",Yg="\\u200d",Jg=l$+"?",Xg="["+Gg+"]?",u$="(?:"+Yg+"(?:"+[Wg,Kg,Zg].join("|")+")"+Xg+Jg+")*",c$=Xg+Jg+u$,d$="(?:"+[Wg+wc+"?",wc,Kg,Zg,a$].join("|")+")",f$=RegExp(kc+"(?="+kc+")|"+d$+c$,"g"),h$=RegExp("["+Yg+Md+zg+qg+Gg+"]"),m$=typeof tn=="object"&&tn&&tn.Object===Object&&tn,p$=typeof self=="object"&&self&&self.Object===Object&&self,_$=m$||p$||Function("return this")();function g$(e){return e.split("")}function v$(e,t,n,s){for(var r=e.length,o=n+(s?1:-1);s?o--:++o<r;)if(t(e[o],o,e))return o;return-1}function y$(e,t,n){if(t!==t)return v$(e,b$,n);for(var s=n-1,r=e.length;++s<r;)if(e[s]===t)return s;return-1}function b$(e){return e!==e}function w$(e,t){for(var n=-1,s=e.length;++n<s&&y$(t,e[n],0)>-1;);return n}function k$(e){return h$.test(e)}function nm(e){return k$(e)?S$(e):g$(e)}function S$(e){return e.match(f$)||[]}var x$=Object.prototype,E$=x$.toString,sm=_$.Symbol,rm=sm?sm.prototype:void 0,om=rm?rm.toString:void 0;function C$(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++s<r;)o[s]=e[s+t];return o}function Qg(e){if(typeof e=="string")return e;if(O$(e))return om?om.call(e):"";var t=e+"";return t=="0"&&1/e==-r$?"-0":t}function $$(e,t,n){var s=e.length;return n=n===void 0?s:n,!t&&n>=s?e:C$(e,t,n)}function A$(e){return!!e&&typeof e=="object"}function O$(e){return typeof e=="symbol"||A$(e)&&E$.call(e)==o$}function T$(e){return e==null?"":Qg(e)}function P$(e,t,n){if(e=T$(e),e&&(n||t===void 0))return e.replace(i$,"");if(!e||!(t=Qg(t)))return e;var s=nm(e),r=w$(s,nm(t));return $$(s,r).join("")}var D$=P$,Sc=1/0,F$=9007199254740991,I$=17976931348623157e292,im=0/0,M$="[object Symbol]",R$=/^\s+|\s+$/g,L$=/^[-+]0x[0-9a-f]+$/i,N$=/^0b[01]+$/i,V$=/^0o[0-7]+$/i,Rd="\\ud800-\\udfff",ev="\\u0300-\\u036f\\ufe20-\\ufe23",tv="\\u20d0-\\u20f0",nv="\\ufe0e\\ufe0f",j$="["+Rd+"]",xc="["+ev+tv+"]",Ec="\\ud83c[\\udffb-\\udfff]",B$="(?:"+xc+"|"+Ec+")",sv="[^"+Rd+"]",rv="(?:\\ud83c[\\udde6-\\uddff]){2}",ov="[\\ud800-\\udbff][\\udc00-\\udfff]",iv="\\u200d",av=B$+"?",lv="["+nv+"]?",U$="(?:"+iv+"(?:"+[sv,rv,ov].join("|")+")"+lv+av+")*",H$=lv+av+U$,z$="(?:"+[sv+xc+"?",xc,rv,ov,j$].join("|")+")",Cc=RegExp(Ec+"(?="+Ec+")|"+z$+H$,"g"),q$=RegExp("["+iv+Rd+ev+tv+nv+"]"),G$=parseInt,W$=typeof tn=="object"&&tn&&tn.Object===Object&&tn,K$=typeof self=="object"&&self&&self.Object===Object&&self,Z$=W$||K$||Function("return this")(),Y$=X$("length");function J$(e){return e.split("")}function X$(e){return function(t){return t==null?void 0:t[e]}}function Ld(e){return q$.test(e)}function uv(e){return Ld(e)?e6(e):Y$(e)}function Q$(e){return Ld(e)?t6(e):J$(e)}function e6(e){for(var t=Cc.lastIndex=0;Cc.test(e);)t++;return t}function t6(e){return e.match(Cc)||[]}var n6=Object.prototype,s6=n6.toString,am=Z$.Symbol,r6=Math.ceil,o6=Math.floor,lm=am?am.prototype:void 0,um=lm?lm.toString:void 0;function cm(e,t){var n="";if(!e||t<1||t>F$)return n;do t%2&&(n+=e),t=o6(t/2),t&&(e+=e);while(t);return n}function i6(e,t,n){var s=-1,r=e.length;t<0&&(t=-t>r?0:r+t),n=n>r?r:n,n<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++s<r;)o[s]=e[s+t];return o}function cv(e){if(typeof e=="string")return e;if(dv(e))return um?um.call(e):"";var t=e+"";return t=="0"&&1/e==-Sc?"-0":t}function a6(e,t,n){var s=e.length;return n=n===void 0?s:n,!t&&n>=s?e:i6(e,t,n)}function l6(e,t){t=t===void 0?" ":cv(t);var n=t.length;if(n<2)return n?cm(t,e):t;var s=cm(t,r6(e/uv(t)));return Ld(t)?a6(Q$(s),0,e).join(""):s.slice(0,e)}function dm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function u6(e){return!!e&&typeof e=="object"}function dv(e){return typeof e=="symbol"||u6(e)&&s6.call(e)==M$}function c6(e){if(!e)return e===0?e:0;if(e=f6(e),e===Sc||e===-Sc){var t=e<0?-1:1;return t*I$}return e===e?e:0}function d6(e){var t=c6(e),n=t%1;return t===t?n?t-n:t:0}function f6(e){if(typeof e=="number")return e;if(dv(e))return im;if(dm(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=dm(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(R$,"");var n=N$.test(e);return n||V$.test(e)?G$(e.slice(2),n?2:8):L$.test(e)?im:+e}function h6(e){return e==null?"":cv(e)}function m6(e,t,n){e=h6(e),t=d6(t);var s=t?uv(e):0;return t&&s<t?e+l6(t-s,n):e}var p6=m6,_6=(e,t,n,s)=>{const r=(e+(s||"")).toString().includes("%");if(typeof e=="string"?[e,t,n,s]=e.match(/(0?\.?\d{1,3})%?\b/g).map(Number):s!==void 0&&(s=parseFloat(s)),typeof e!="number"||typeof t!="number"||typeof n!="number"||e>255||t>255||n>255)throw new TypeError("Expected three numbers below 256");if(typeof s=="number"){if(!r&&s>=0&&s<=1)s=Math.round(255*s);else if(r&&s>=0&&s<=100)s=Math.round(255*s/100);else throw new TypeError(`Expected alpha value (${s}) as a fraction or percentage`);s=(s|1<<8).toString(16).slice(1)}else s="";return(n|t<<8|e<<16|1<<24).toString(16).slice(1)+s};const ci="a-f\\d",g6=`#?[${ci}]{3}[${ci}]?`,v6=`#?[${ci}]{6}([${ci}]{2})?`,y6=new RegExp(`[^#${ci}]`,"gi"),b6=new RegExp(`^${g6}$|^${v6}$`,"i");var w6=(e,t={})=>{if(typeof e!="string"||y6.test(e)||!b6.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let n=1;e.length===8&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const s=Number.parseInt(e,16),r=s>>16,o=s>>8&255,i=s&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[r,o,i,a];if(t.format==="css"){const l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${r} ${o} ${i}${l})`}return{red:r,green:o,blue:i,alpha:a}},k6=Tg.exports,S6=s$,x6=D$,E6=p6,C6=_6,fv=w6;const Tu=.75,Pu=.25,Du=16777215,$6=49979693;var A6=function(e){return"#"+P6(String(JSON.stringify(e)))};function O6(e){var t=S6(e),n=[];return t.forEach(function(s){var r=k6(s);r&&n.push(fv(x6(r,"#"),{format:"array"}))}),n}function T6(e){var t=[0,0,0];return e.forEach(function(n){for(var s=0;s<3;s++)t[s]+=n[s]}),[t[0]/e.length,t[1]/e.length,t[2]/e.length]}function P6(e){var t,n=O6(e);n.length>0&&(t=T6(n));var s=1,r=0,o=1;if(e.length>0)for(var i=0;i<e.length;i++)e[i].charCodeAt(0)>r&&(r=e[i].charCodeAt(0)),o=parseInt(Du/r),s=(s+e[i].charCodeAt(0)*o*$6)%Du;var a=(s*e.length%Du).toString(16);a=E6(a,6,a);var l=fv(a,{format:"array"});return t?C6(Pu*l[0]+Tu*t[0],Pu*l[1]+Tu*t[1],Pu*l[2]+Tu*t[2]):a}function D6(e){const t=e.replace(/#/,""),n=parseInt(t.substr(0,2),16),s=parseInt(t.substr(2,2),16),r=parseInt(t.substr(4,2),16);return[.299*n,.587*s,.114*r].reduce((i,a)=>i+a)/255>.5}function F6(e){return D6(e)?"#000000":"#ffffff"}function I6(e){const t='<svg width="'+e.width+'" height="'+e.height+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '+e.width+" "+e.height+'" preserveAspectRatio="none"><defs><style type="text/css"> #holder text { fill: '+e.textColor+"; font-family: "+e.fontFamily+"; font-size: "+e.fontSize+"px; font-weight: "+e.fontWeight+'; } </style></defs><g id="holder"> <rect width="100%" height="100%" fill="'+e.backgroundColor+'"></rect> <g> <text text-anchor="middle" x="50%" y="50%" dy=".3em">'+e.caption+"</text> </g></g></svg>";return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}function hv(e,t,n){const s=A6(t),r=F6(s),o={width:n.width,height:n.height,textColor:r,backgroundColor:s,caption:e,fontFamily:n.font_family,fontSize:n.font_size,fontWeight:n.font_weight};return I6(o)}const M6={name:"CoverArtwork",props:["artist","album","artwork_url","maxwidth","maxheight"],emits:["click"],data(){return{width:600,height:600,font_family:"sans-serif",font_size:200,font_weight:600,lazy_lifecycle:{error:e=>{e.src=this.dataURI()}}}},computed:{artwork_url_with_size:function(){return this.maxwidth>0&&this.maxheight>0?G.artwork_url_append_size_params(this.artwork_url,this.maxwidth,this.maxheight):G.artwork_url_append_size_params(this.artwork_url)},alt_text(){return this.artist+" - "+this.album},caption(){return this.album?this.album.substring(0,2):this.artist?this.artist.substring(0,2):""}},methods:{dataURI:function(){return hv(this.caption,this.alt_text,{width:this.width,height:this.height,font_family:this.font_family,font_size:this.font_size,font_weight:this.font_weight})}}};function R6(e,t,n,s,r,o){const i=xl("lazy");return E(),D("figure",null,[wt(u("img",{onClick:t[0]||(t[0]=a=>e.$emit("click"))},null,512),[[i,{src:o.artwork_url_with_size,lifecycle:r.lazy_lifecycle}]])])}var ys=ge(M6,[["render",R6]]);const L6={name:"PageNowPlaying",components:{ModalDialogQueueItem:_g,Slider:ui,CoverArtwork:ys},data(){return{item_progress_ms:0,interval_id:0,is_dragged:!1,show_details_modal:!1,selected_item:{}}},computed:{state(){return this.$store.state.player},now_playing(){return this.$store.getters.now_playing},settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},settings_option_show_composer_for_genre(){return this.$store.getters.settings_option_show_composer_for_genre},composer(){return this.settings_option_show_composer_now_playing&&(!this.settings_option_show_composer_for_genre||this.now_playing.genre&&this.settings_option_show_composer_for_genre.toLowerCase().split(",").findIndex(e=>this.now_playing.genre.toLowerCase().indexOf(e.trim())>=0)>=0)?this.now_playing.composer:null}},watch:{state(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0),this.item_progress_ms=this.state.item_progress_ms,this.state.state==="play"&&(this.interval_id=window.setInterval(this.tick,1e3))}},mounted:function(){console.log(this.$refs.slider)},created(){this.item_progress_ms=this.state.item_progress_ms,G.player_status().then(({data:e})=>{this.$store.commit(_d,e),this.state.state==="play"&&(this.interval_id=window.setInterval(this.tick,1e3))})},unmounted(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0)},methods:{tick:function(){this.is_dragged||(this.item_progress_ms+=1e3)},start_dragging:function(){console.log("@start"),this.is_dragged=!0},end_dragging:function(){console.log("@end"),this.is_dragged=!1},seek:function(e){G.player_seek_to_pos(e).catch(()=>{this.item_progress_ms=this.state.item_progress_ms})},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0}}},N6={key:0,class:"fd-is-fullheight"},V6={class:"fd-is-expanded"},j6={class:"fd-has-padding-left-right"},B6={class:"container has-text-centered"},U6={class:"control has-text-centered fd-progress-now-playing"},H6={class:"content"},z6={class:"fd-has-padding-left-right"},q6={class:"container has-text-centered fd-has-margin-top"},G6={class:"title is-5"},W6={class:"title is-6"},K6={key:0,class:"subtitle is-6 has-text-grey has-text-weight-bold"},Z6={class:"subtitle is-6"},Y6={key:1,class:"fd-is-fullheight"},J6=u("div",{class:"fd-is-expanded fd-has-padding-left-right",style:{"flex-direction":"column"}},[u("div",{class:"content has-text-centered"},[u("h1",{class:"title is-5"},"Your play queue is empty"),u("p",null,"Add some tracks by browsing your library")])],-1),X6=[J6];function Q6(e,t,n,s,r,o){const i=P("cover-artwork"),a=P("Slider"),l=P("modal-dialog-queue-item");return E(),D("section",null,[o.now_playing.id>0?(E(),D("div",N6,[u("div",V6,[w(i,{artwork_url:o.now_playing.artwork_url,artist:o.now_playing.artist,album:o.now_playing.album,class:"fd-cover-image fd-has-action",onClick:t[0]||(t[0]=c=>o.open_dialog(o.now_playing))},null,8,["artwork_url","artist","album"])]),u("div",j6,[u("div",B6,[u("p",U6,[w(a,{ref:"slider",modelValue:r.item_progress_ms,"onUpdate:modelValue":t[1]||(t[1]=c=>r.item_progress_ms=c),min:0,max:o.state.item_length_ms,step:1e3,tooltips:!1,disabled:o.state.state==="stop",classes:{target:"seek-slider"},onChange:o.seek,onStart:o.start_dragging,onEnd:o.end_dragging},null,8,["modelValue","max","disabled","onChange","onStart","onEnd"])]),u("p",H6,[u("span",null,R(e.$filters.durationInHours(r.item_progress_ms))+" / "+R(e.$filters.durationInHours(o.now_playing.length_ms)),1)])])]),u("div",z6,[u("div",q6,[u("h1",G6,R(o.now_playing.title),1),u("h2",W6,R(o.now_playing.artist),1),o.composer?(E(),D("h2",K6,R(o.composer),1)):Z("",!0),u("h3",Z6,R(o.now_playing.album),1)])])])):(E(),D("div",Y6,X6)),w(l,{show:r.show_details_modal,item:r.selected_item,onClose:t[2]||(t[2]=c=>r.show_details_modal=!1)},null,8,["show","item"])])}var eA=ge(L6,[["render",Q6]]);const tA={name:"TabsMusic",computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid}}},nA={class:"section fd-tabs-section"},sA={class:"container"},rA={class:"columns is-centered"},oA={class:"column is-four-fifths"},iA={class:"tabs is-centered is-small"},aA=["onClick","onKeypress"],lA={class:"icon is-small"},uA=u("span",{class:""},"Browse",-1),cA=["onClick","onKeypress"],dA={class:"icon is-small"},fA=u("span",{class:""},"Artists",-1),hA=["onClick","onKeypress"],mA={class:"icon is-small"},pA=u("span",{class:""},"Albums",-1),_A=["onClick","onKeypress"],gA={class:"icon is-small"},vA=u("span",{class:""},"Genres",-1),yA=["onClick","onKeypress"],bA={class:"icon is-small"},wA=u("span",{class:""},"Composers",-1),kA=["onClick","onKeypress"],SA={class:"icon is-small"},xA=u("span",{class:""},"Spotify",-1);function EA(e,t,n,s,r,o){const i=P("mdicon"),a=P("router-link");return E(),D("section",nA,[u("div",sA,[u("div",rA,[u("div",oA,[u("div",iA,[u("ul",null,[w(a,{to:"/music/browse",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",lA,[w(i,{name:"web",size:"16"})]),uA],40,aA)],2)]),_:1}),w(a,{to:"/music/artists",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",dA,[w(i,{name:"account-music",size:"16"})]),fA],40,cA)],2)]),_:1}),w(a,{to:"/music/albums",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",mA,[w(i,{name:"album",size:"16"})]),pA],40,hA)],2)]),_:1}),w(a,{to:"/music/genres",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",gA,[w(i,{name:"speaker",size:"16"})]),vA],40,_A)],2)]),_:1}),w(a,{to:"/music/composers",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",bA,[w(i,{name:"book-open-page-variant",size:"16"})]),wA],40,yA)],2)]),_:1}),o.spotify_enabled?(E(),Se(a,{key:0,to:"/music/spotify",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",SA,[w(i,{name:"spotify",size:"16"})]),xA],40,kA)],2)]),_:1})):Z("",!0)])])])])])])}var rs=ge(tA,[["render",EA]]);const CA={name:"ModalDialogAlbum",components:{CoverArtwork:ys},props:["show","album","media_kind","new_tracks"],emits:["close","remove-podcast","play-count-changed"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return G.artwork_url_append_size_params(this.album.artwork_url)},media_kind_resolved:function(){return this.media_kind?this.media_kind:this.album.media_kind}},methods:{play:function(){this.$emit("close"),G.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.album.uri)},open_album:function(){this.media_kind_resolved==="podcast"?this.$router.push({path:"/podcasts/"+this.album.id}):this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/"+this.album.id}):this.$router.push({path:"/music/albums/"+this.album.id})},open_artist:function(){this.media_kind_resolved==="podcast"||(this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id}):this.$router.push({path:"/music/artists/"+this.album.artist_id}))},mark_played:function(){G.library_album_track_update(this.album.id,{play_count:"played"}).then(({data:e})=>{this.$emit("play-count-changed"),this.$emit("close")})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}}},$A={key:0,class:"modal is-active"},AA={class:"modal-content fd-modal-card"},OA={class:"card"},TA={class:"card-content"},PA={class:"title is-4"},DA={key:0,class:"buttons"},FA={class:"content is-small"},IA={key:0},MA=u("span",{class:"heading"},"Album artist",-1),RA={key:1},LA=u("span",{class:"heading"},"Release date",-1),NA={class:"title is-6"},VA={key:2},jA=u("span",{class:"heading"},"Year",-1),BA={class:"title is-6"},UA=u("span",{class:"heading"},"Tracks",-1),HA={class:"title is-6"},zA=u("span",{class:"heading"},"Length",-1),qA={class:"title is-6"},GA=u("span",{class:"heading"},"Type",-1),WA={class:"title is-6"},KA=u("span",{class:"heading"},"Added at",-1),ZA={class:"title is-6"},YA={class:"card-footer"},JA={class:"icon"},XA=u("span",{class:"is-size-7"},"Add",-1),QA={class:"icon"},e3=u("span",{class:"is-size-7"},"Add Next",-1),t3={class:"icon"},n3=u("span",{class:"is-size-7"},"Play",-1);function s3(e,t,n,s,r,o){const i=P("cover-artwork"),a=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",$A,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=l=>e.$emit("close"))}),u("div",AA,[u("div",OA,[u("div",TA,[w(i,{artwork_url:n.album.artwork_url,artist:n.album.artist,album:n.album.name,class:"image is-square fd-has-margin-bottom fd-has-shadow"},null,8,["artwork_url","artist","album"]),u("p",PA,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...l)=>o.open_album&&o.open_album(...l))},R(n.album.name),1)]),o.media_kind_resolved==="podcast"?(E(),D("div",DA,[u("a",{class:"button is-small",onClick:t[2]||(t[2]=(...l)=>o.mark_played&&o.mark_played(...l))},"Mark as played"),u("a",{class:"button is-small",onClick:t[3]||(t[3]=l=>e.$emit("remove-podcast"))},"Remove podcast")])):Z("",!0),u("div",FA,[n.album.artist?(E(),D("p",IA,[MA,u("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...l)=>o.open_artist&&o.open_artist(...l))},R(n.album.artist),1)])):Z("",!0),n.album.date_released?(E(),D("p",RA,[LA,u("span",NA,R(e.$filters.date(n.album.date_released)),1)])):n.album.year>0?(E(),D("p",VA,[jA,u("span",BA,R(n.album.year),1)])):Z("",!0),u("p",null,[UA,u("span",HA,R(n.album.track_count),1)]),u("p",null,[zA,u("span",qA,R(e.$filters.durationInHours(n.album.length_ms)),1)]),u("p",null,[GA,u("span",WA,R(n.album.media_kind)+" - "+R(n.album.data_kind),1)]),u("p",null,[KA,u("span",ZA,R(e.$filters.datetime(n.album.time_added)),1)])])]),u("footer",YA,[u("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...l)=>o.queue_add&&o.queue_add(...l))},[u("span",JA,[w(a,{name:"playlist-plus",size:"16"})]),XA]),u("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...l)=>o.queue_add_next&&o.queue_add_next(...l))},[u("span",QA,[w(a,{name:"playlist-play",size:"16"})]),e3]),u("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...l)=>o.play&&o.play(...l))},[u("span",t3,[w(a,{name:"play",size:"16"})]),n3])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=l=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Ll=ge(CA,[["render",s3]]);const r3={name:"ModalDialog",props:["show","title","ok_action","delete_action","close_action"],emits:["delete","close","ok"]},o3={key:0,class:"modal is-active"},i3={class:"modal-content fd-modal-card"},a3={class:"card"},l3={class:"card-content"},u3={key:0,class:"title is-4"},c3={class:"card-footer"},d3={class:"icon"},f3={class:"is-size-7"},h3={class:"icon"},m3={class:"is-size-7"},p3={class:"icon"},_3={class:"is-size-7"};function g3(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",o3,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",i3,[u("div",a3,[u("div",l3,[n.title?(E(),D("p",u3,R(n.title),1)):Z("",!0),St(e.$slots,"modal-content")]),u("footer",c3,[u("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=a=>e.$emit("close"))},[u("span",d3,[w(i,{name:"cancel",size:"16"})]),u("span",f3,R(n.close_action?n.close_action:"Cancel"),1)]),n.delete_action?(E(),D("a",{key:0,class:"card-footer-item has-background-danger has-text-white has-text-weight-bold",onClick:t[2]||(t[2]=a=>e.$emit("delete"))},[u("span",h3,[w(i,{name:"delete",size:"16"})]),u("span",m3,R(n.delete_action),1)])):Z("",!0),n.ok_action?(E(),D("a",{key:1,class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[3]||(t[3]=a=>e.$emit("ok"))},[u("span",p3,[w(i,{name:"check",size:"16"})]),u("span",_3,R(n.ok_action),1)])):Z("",!0)])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):Z("",!0)]),_:3})])}var Nd=ge(r3,[["render",g3]]);const v3={name:"ListAlbums",components:{ModalDialogAlbum:Ll,ModalDialog:Nd},props:["albums","media_kind","hide_group_title"],emits:["play-count-changed","podcast-deleted"],data(){return{show_details_modal:!1,selected_album:{},show_remove_podcast_modal:!1,rss_playlist_to_remove:{},artwork_options:{width:600,height:600,font_family:"sans-serif",font_size:200,font_weight:600,lazy_lifecycle:{error:e=>{e.src=this.dataURI(e.attributes.album.value,e.attributes.artist.value)}}}}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value},media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_album.media_kind}},methods:{open_album:function(e){this.selected_album=e,this.media_kind_resolved==="podcast"?this.$router.push({path:"/podcasts/"+e.id}):this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/"+e.id}):this.$router.push({path:"/music/albums/"+e.id})},open_dialog:function(e){this.selected_album=e,this.show_details_modal=!0},open_remove_podcast_dialog:function(){G.library_album_tracks(this.selected_album.id,{limit:1}).then(({data:e})=>{G.library_track_playlists(e.items[0].id).then(({data:t})=>{const n=t.items.filter(s=>s.type==="rss");if(n.length!==1){this.$store.dispatch("add_notification",{text:"Podcast cannot be removed. Probably it was not added as an RSS playlist.",type:"danger"});return}this.rss_playlist_to_remove=n[0],this.show_remove_podcast_modal=!0,this.show_details_modal=!1})})},play_count_changed:function(){this.$emit("play-count-changed")},remove_podcast:function(){this.show_remove_podcast_modal=!1,G.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$emit("podcast-deleted")})},artwork_url_with_size:function(e){return this.artwork_options.width>0&&this.artwork_options.height>0?G.artwork_url_append_size_params(e,this.artwork_options.width,this.artwork_options.height):G.artwork_url_append_size_params(e)},alt_text(e,t){return t+" - "+e},caption(e,t){return e?e.substring(0,2):t?t.substring(0,2):""},dataURI:function(e,t){const n=this.caption(e,t),s=this.alt_text(e,t);return hv(n,s,{width:this.artwork_options.width,height:this.artwork_options.height,font_family:this.artwork_options.font_family,font_size:this.artwork_options.font_size,font_weight:this.artwork_options.font_weight})}}},y3={key:0,class:"mt-6 mb-5 py-2"},b3=["id"],w3=["onClick"],k3={key:0,class:"media-left fd-has-action"},S3={class:"image is-64x64 fd-has-shadow fd-has-action"},x3=["album","artist"],E3={class:"media-content fd-has-action is-clipped"},C3={style:{"margin-top":"0.7rem"}},$3={class:"title is-6"},A3={class:"subtitle is-7 has-text-grey"},O3={key:0,class:"subtitle is-7 has-text-grey has-text-weight-normal"},T3={class:"media-right",style:{"padding-top":"0.7rem"}},P3=["onClick"],D3={class:"icon has-text-dark"},F3=u("p",null,"Permanently remove this podcast from your library?",-1),I3={class:"is-size-7"},M3=$e(" (This will also remove the RSS playlist "),R3=$e(".) ");function L3(e,t,n,s,r,o){const i=P("mdicon"),a=P("modal-dialog-album"),l=P("modal-dialog"),c=xl("lazy");return E(),D(Ke,null,[(E(!0),D(Ke,null,bt(n.albums,d=>(E(),D(Ke,{key:d.itemId},[!d.isItem&&!n.hide_group_title?(E(),D("div",y3,[u("span",{id:"index_"+d.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(d.groupKey),9,b3)])):d.isItem?(E(),D("div",{key:1,class:"media",onClick:h=>o.open_album(d.item)},[o.is_visible_artwork?(E(),D("div",k3,[u("div",S3,[u("figure",null,[wt(u("img",{album:d.item.name,artist:d.item.artist},null,8,x3),[[c,{src:o.artwork_url_with_size(d.item.artwork_url),lifecycle:r.artwork_options.lazy_lifecycle}]])])])])):Z("",!0),u("div",E3,[u("div",C3,[u("h1",$3,R(d.item.name),1),u("h2",A3,[u("b",null,R(d.item.artist),1)]),d.item.date_released&&d.item.media_kind==="music"?(E(),D("h2",O3,R(e.$filters.date(d.item.date_released)),1)):Z("",!0)])]),u("div",T3,[u("a",{onClick:pt(h=>o.open_dialog(d.item),["prevent","stop"])},[u("span",D3,[w(i,{name:"dots-vertical",size:"16"})])],8,P3)])],8,w3)):Z("",!0)],64))),128)),(E(),Se(qs,{to:"#app"},[w(a,{show:r.show_details_modal,album:r.selected_album,media_kind:n.media_kind,onRemovePodcast:t[0]||(t[0]=d=>o.open_remove_podcast_dialog()),onPlayCountChanged:t[1]||(t[1]=d=>o.play_count_changed()),onClose:t[2]||(t[2]=d=>r.show_details_modal=!1)},null,8,["show","album","media_kind"]),w(l,{show:r.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=d=>r.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":T(()=>[F3,u("p",I3,[M3,u("b",null,R(r.rss_playlist_to_remove.name),1),R3])]),_:1},8,["show","onDelete"])]))],64)}var os=ge(v3,[["render",L3]]);const N3={name:"ModalDialogTrack",props:["show","track"],emits:["close","play-count-changed"],data(){return{spotify_track:{}}},watch:{track(){if(this.track&&this.track.data_kind==="spotify"){const e=new Kn;e.setAccessToken(this.$store.state.spotify.webapi_token),e.getTrack(this.track.path.slice(this.track.path.lastIndexOf(":")+1)).then(t=>{this.spotify_track=t})}else this.spotify_track={}}},methods:{play_track:function(){this.$emit("close"),G.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.track.uri)},open_album:function(){this.$emit("close"),this.track.media_kind==="podcast"?this.$router.push({path:"/podcasts/"+this.track.album_id}):this.track.media_kind==="audiobook"?this.$router.push({path:"/audiobooks/"+this.track.album_id}):this.$router.push({path:"/music/albums/"+this.track.album_id})},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.track.album_artist_id})},open_genre:function(){this.$router.push({name:"Genre",params:{genre:this.track.genre}})},open_spotify_artist:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})},mark_new:function(){G.library_track_update(this.track.id,{play_count:"reset"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})},mark_played:function(){G.library_track_update(this.track.id,{play_count:"increment"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})}}},V3={key:0,class:"modal is-active"},j3={class:"modal-content fd-modal-card"},B3={class:"card"},U3={class:"card-content"},H3={class:"title is-4"},z3={class:"subtitle"},q3={key:0,class:"buttons"},G3={class:"content is-small"},W3=u("span",{class:"heading"},"Album",-1),K3={key:0},Z3=u("span",{class:"heading"},"Album artist",-1),Y3={key:1},J3=u("span",{class:"heading"},"Composer",-1),X3={class:"title is-6"},Q3={key:2},eO=u("span",{class:"heading"},"Release date",-1),tO={class:"title is-6"},nO={key:3},sO=u("span",{class:"heading"},"Year",-1),rO={class:"title is-6"},oO={key:4},iO=u("span",{class:"heading"},"Genre",-1),aO=u("span",{class:"heading"},"Track / Disc",-1),lO={class:"title is-6"},uO=u("span",{class:"heading"},"Length",-1),cO={class:"title is-6"},dO=u("span",{class:"heading"},"Path",-1),fO={class:"title is-6"},hO=u("span",{class:"heading"},"Type",-1),mO={class:"title is-6"},pO={key:0,class:"has-text-weight-normal"},_O=$e("("),gO=$e(", "),vO=$e(")"),yO=u("span",{class:"heading"},"Quality",-1),bO={class:"title is-6"},wO={key:0},kO={key:1},SO={key:2},xO=u("span",{class:"heading"},"Added at",-1),EO={class:"title is-6"},CO=u("span",{class:"heading"},"Rating",-1),$O={class:"title is-6"},AO={key:5},OO=u("span",{class:"heading"},"Comment",-1),TO={class:"title is-6"},PO={class:"card-footer"},DO={class:"icon"},FO=u("span",{class:"is-size-7"},"Add",-1),IO={class:"icon"},MO=u("span",{class:"is-size-7"},"Add Next",-1),RO={class:"icon"},LO=u("span",{class:"is-size-7"},"Play",-1);function NO(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",V3,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",j3,[u("div",B3,[u("div",U3,[u("p",H3,R(n.track.title),1),u("p",z3,R(n.track.artist),1),n.track.media_kind==="podcast"?(E(),D("div",q3,[n.track.play_count>0?(E(),D("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...a)=>o.mark_new&&o.mark_new(...a))},"Mark as new")):Z("",!0),n.track.play_count===0?(E(),D("a",{key:1,class:"button is-small",onClick:t[2]||(t[2]=(...a)=>o.mark_played&&o.mark_played(...a))},"Mark as played")):Z("",!0)])):Z("",!0),u("div",G3,[u("p",null,[W3,u("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a))},R(n.track.album),1)]),n.track.album_artist&&n.track.media_kind!=="audiobook"?(E(),D("p",K3,[Z3,u("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a))},R(n.track.album_artist),1)])):Z("",!0),n.track.composer?(E(),D("p",Y3,[J3,u("span",X3,R(n.track.composer),1)])):Z("",!0),n.track.date_released?(E(),D("p",Q3,[eO,u("span",tO,R(e.$filters.date(n.track.date_released)),1)])):n.track.year>0?(E(),D("p",nO,[sO,u("span",rO,R(n.track.year),1)])):Z("",!0),n.track.genre?(E(),D("p",oO,[iO,u("a",{class:"title is-6 has-text-link",onClick:t[5]||(t[5]=(...a)=>o.open_genre&&o.open_genre(...a))},R(n.track.genre),1)])):Z("",!0),u("p",null,[aO,u("span",lO,R(n.track.track_number)+" / "+R(n.track.disc_number),1)]),u("p",null,[uO,u("span",cO,R(e.$filters.durationInHours(n.track.length_ms)),1)]),u("p",null,[dO,u("span",fO,R(n.track.path),1)]),u("p",null,[hO,u("span",mO,[$e(R(n.track.media_kind)+" - "+R(n.track.data_kind)+" ",1),n.track.data_kind==="spotify"?(E(),D("span",pO,[_O,u("a",{onClick:t[6]||(t[6]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a))},"artist"),gO,u("a",{onClick:t[7]||(t[7]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a))},"album"),vO])):Z("",!0)])]),u("p",null,[yO,u("span",bO,[$e(R(n.track.type)+" ",1),n.track.samplerate?(E(),D("span",wO," | "+R(n.track.samplerate)+" Hz",1)):Z("",!0),n.track.channels?(E(),D("span",kO," | "+R(e.$filters.channels(n.track.channels)),1)):Z("",!0),n.track.bitrate?(E(),D("span",SO," | "+R(n.track.bitrate)+" Kb/s",1)):Z("",!0)])]),u("p",null,[xO,u("span",EO,R(e.$filters.datetime(n.track.time_added)),1)]),u("p",null,[CO,u("span",$O,R(Math.floor(n.track.rating/10))+" / 10",1)]),n.track.comment?(E(),D("p",AO,[OO,u("span",TO,R(n.track.comment),1)])):Z("",!0)])]),u("footer",PO,[u("a",{class:"card-footer-item has-text-dark",onClick:t[8]||(t[8]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",DO,[w(i,{name:"playlist-plus",size:"16"})]),FO]),u("a",{class:"card-footer-item has-text-dark",onClick:t[9]||(t[9]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",IO,[w(i,{name:"playlist-play",size:"16"})]),MO]),u("a",{class:"card-footer-item has-text-dark",onClick:t[10]||(t[10]=(...a)=>o.play_track&&o.play_track(...a))},[u("span",RO,[w(i,{name:"play",size:"16"})]),LO])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[11]||(t[11]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var VO=ge(N3,[["render",NO]]);const jO={name:"ProgressBar",props:["max","value"],computed:{width(){return this.value>0&&this.max>0?parseInt(this.value*100/this.max):0},width_percent(){return this.width+"%"}}};function BO(e,t,n,s,r,o){return o.width>0?(E(),D("div",{key:0,class:"progress-bar mt-2",style:zs({width:o.width_percent})},null,4)):Z("",!0)}var UO=ge(jO,[["render",BO]]);const HO={name:"ListTracks",components:{ModalDialogTrack:VO,ProgressBar:UO},props:["tracks","uris","expression","show_progress","show_icon"],emits:["play-count-changed"],data(){return{show_details_modal:!1,selected_track:{}}},methods:{play_track:function(e,t){this.uris?G.player_play_uri(this.uris,!1,e):this.expression?G.player_play_expression(this.expression,!1,e):G.player_play_uri(t.uri,!1)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},zO=["id","onClick"],qO={key:0,class:"media-left fd-has-action"},GO={class:"icon"},WO={class:"media-content fd-has-action is-clipped"},KO={class:"subtitle is-7 has-text-grey"},ZO={class:"subtitle is-7 has-text-grey"},YO={class:"media-right"},JO=["onClick"],XO={class:"icon has-text-dark"};function QO(e,t,n,s,r,o){const i=P("mdicon"),a=P("progress-bar"),l=P("modal-dialog-track");return E(),D(Ke,null,[(E(!0),D(Ke,null,bt(n.tracks,(c,d)=>(E(),D("div",{id:"index_"+c.title_sort.charAt(0).toUpperCase(),key:c.id,class:We(["media",{"with-progress":n.show_progress}]),onClick:h=>o.play_track(d,c)},[n.show_icon?(E(),D("figure",qO,[u("span",GO,[w(i,{name:"file-outline",size:"16"})])])):Z("",!0),u("div",WO,[u("h1",{class:We(["title is-6",{"has-text-grey":c.media_kind==="podcast"&&c.play_count>0}])},R(c.title),3),u("h2",KO,[u("b",null,R(c.artist),1)]),u("h2",ZO,R(c.album),1),n.show_progress?(E(),Se(a,{key:0,max:c.length_ms,value:c.seek_ms},null,8,["max","value"])):Z("",!0)]),u("div",YO,[u("a",{onClick:pt(h=>o.open_dialog(c),["prevent","stop"])},[u("span",XO,[w(i,{name:"dots-vertical",size:"16"})])],8,JO)])],10,zO))),128)),(E(),Se(qs,{to:"#app"},[w(l,{show:r.show_details_modal,track:r.selected_track,onClose:t[0]||(t[0]=c=>r.show_details_modal=!1),onPlayCountChanged:t[1]||(t[1]=c=>e.$emit("play-count-changed"))},null,8,["show","track"])]))],64)}var $n=ge(HO,[["render",QO]]);const mv="GROUP_KEY_NONE";function pv(){return{compareFn:null,groupKeyFn:e=>mv}}function co(e,t="_"){return{compareFn:null,groupKeyFn:n=>(n[e]||t).charAt(0).toUpperCase()}}function _v(e,t="_"){return{compareFn:(n,s)=>{const r=n[e]||t,o=s[e]||t;return r.localeCompare(o)},groupKeyFn:n=>(n[e]||t).charAt(0).toUpperCase()}}function nl(e,{direction:t="asc",defaultValue:n="0000"}){return{compareFn:(s,r)=>{const o=s[e]||n,i=r[e]||n,a=o.localeCompare(i);return t==="asc"?a:a*-1},groupKeyFn:s=>(s[e]||n).substring(0,4)}}function e4(e,t="0000"){return{compareFn:(n,s)=>{const r=n[e]||t;return(s[e]||t).localeCompare(r)},groupKeyFn:n=>{const s=n[e];if(!s)return t;const r=new Date().getTime()-new Date(s).getTime();return r<864e5?"Today":r<6048e5?"Last week":r<2592e6?"Last month":s.substring(0,4)}}}class rt{constructor({items:t=[],total:n=0,offset:s=0,limit:r=-1}={}){this.items=t,this.total=n,this.offset=s,this.limit=r,this.count=t.length,this.indexList=[],this.group(pv())}get(){return this.itemsByGroup}isEmpty(){return!this.items||this.items.length<=0}group(t,n=[]){const s=n?this.items.filter(o=>n.every(i=>i(o))):this.items;this.count=s.length;let r=t.compareFn?[...s].sort(t.compareFn):s;this.indexList=[...new Set(r.map(t.groupKeyFn))],this.itemsByGroup=r.reduce((o,i)=>{const a=t.groupKeyFn(i);return o[a]=[...o[a]||[],i],o},{})}[Symbol.iterator](){let t=-1,n=-1;return{next:()=>{if(t>=this.indexList.length)return{done:!0};if(t<0&&(++t,n=0,this.indexList[t]!==mv))return{value:{groupKey:this.indexList[t],itemId:this.indexList[t],isItem:!1,item:{}},done:!1};let s=this.indexList[t],r=this.itemsByGroup[s];if(n<r.length){const o=this.itemsByGroup[s][n++];return{value:{groupKey:s,itemId:o.id,isItem:!0,item:o},done:!1}}else return++t,n=0,t<this.indexList.length?(s=this.indexList[t],{value:{groupKey:s,itemId:s,isItem:!1,item:{}},done:!1}):{done:!0}}}}}const Zi={load:function(e){return Promise.all([G.search({type:"album",expression:"time_added after 8 weeks ago and media_kind is music having track_count > 3 order by time_added desc",limit:3}),G.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:3})])},set:function(e,t){e.recently_added=new rt(t[0].data.albums),e.recently_played=t[1].data.tracks}},t4={name:"PageBrowse",components:{ContentWithHeading:ht,TabsMusic:rs,ListAlbums:os,ListTracks:$n},beforeRouteEnter(e,t,n){Zi.load(e).then(s=>{n(r=>Zi.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Zi.load(e).then(r=>{Zi.set(s,r),n()})},data(){return{recently_added:[],recently_played:{items:[]},show_track_details_modal:!1,selected_track:{}}},methods:{open_browse:function(e){this.$router.push({path:"/music/browse/"+e})}}},n4={class:"fd-page-with-tabs"},s4=u("p",{class:"title is-4"},"Recently added",-1),r4=u("p",{class:"heading"},"albums",-1),o4={class:"level"},i4={class:"level-item"},a4=u("p",{class:"title is-4"},"Recently played",-1),l4=u("p",{class:"heading"},"tracks",-1),u4={class:"level"},c4={class:"level-item"};function d4(e,t,n,s,r,o){const i=P("tabs-music"),a=P("list-albums"),l=P("content-with-heading"),c=P("list-tracks");return E(),D("div",n4,[w(i),w(l,null,{"heading-left":T(()=>[s4,r4]),content:T(()=>[w(a,{albums:r.recently_added},null,8,["albums"])]),footer:T(()=>[u("nav",o4,[u("p",i4,[u("a",{class:"button is-light is-small is-rounded",onClick:t[0]||(t[0]=d=>o.open_browse("recently_added"))},"Show more")])])]),_:1}),w(l,null,{"heading-left":T(()=>[a4,l4]),content:T(()=>[w(c,{tracks:r.recently_played.items},null,8,["tracks"])]),footer:T(()=>[u("nav",u4,[u("p",c4,[u("a",{class:"button is-light is-small is-rounded",onClick:t[1]||(t[1]=d=>o.open_browse("recently_played"))},"Show more")])])]),_:1})])}var f4=ge(t4,[["render",d4]]);const Yi={load:function(e){const t=at.getters.settings_option_recently_added_limit;return G.search({type:"album",expression:"media_kind is music having track_count > 3 order by time_added desc",limit:t})},set:function(e,t){e.recently_added=new rt(t.data.albums),e.recently_added.group(e4("time_added",{direction:"desc",defaultValue:"0000"}))}},h4={name:"PageBrowseType",components:{ContentWithHeading:ht,TabsMusic:rs,ListAlbums:os},beforeRouteEnter(e,t,n){Yi.load(e).then(s=>{n(r=>Yi.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.recently_added.isEmpty()){n();return}const s=this;Yi.load(e).then(r=>{Yi.set(s,r),n()})},data(){return{recently_added:new rt}}},m4={class:"fd-page-with-tabs"},p4=u("p",{class:"title is-4"},"Recently added",-1),_4=u("p",{class:"heading"},"albums",-1);function g4(e,t,n,s,r,o){const i=P("tabs-music"),a=P("list-albums"),l=P("content-with-heading");return E(),D("div",m4,[w(i),w(l,null,{"heading-left":T(()=>[p4,_4]),content:T(()=>[w(a,{albums:r.recently_added},null,8,["albums"])]),_:1})])}var v4=ge(h4,[["render",g4]]);const Ji={load:function(e){return G.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:50})},set:function(e,t){e.recently_played=t.data.tracks}},y4={name:"PageBrowseType",components:{ContentWithHeading:ht,TabsMusic:rs,ListTracks:$n},beforeRouteEnter(e,t,n){Ji.load(e).then(s=>{n(r=>Ji.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Ji.load(e).then(r=>{Ji.set(s,r),n()})},data(){return{recently_played:{}}}},b4={class:"fd-page-with-tabs"},w4=u("p",{class:"title is-4"},"Recently played",-1),k4=u("p",{class:"heading"},"tracks",-1);function S4(e,t,n,s,r,o){const i=P("tabs-music"),a=P("list-tracks"),l=P("content-with-heading");return E(),D("div",b4,[w(i),w(l,null,{"heading-left":T(()=>[w4,k4]),content:T(()=>[w(a,{tracks:r.recently_played.items},null,8,["tracks"])]),_:1})])}var x4=ge(y4,[["render",S4]]);const E4={name:"IndexButtonList",props:["index"],computed:{filtered_index(){if(!this.index)return[];const e="!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~";return this.index.filter(t=>!e.includes(t))}},methods:{nav:function(e){this.$router.push({hash:"#index_"+e})},scroll_to_top:function(){window.scrollTo({top:0,behavior:"smooth"})}}},C4={class:"buttons is-centered fd-is-square",style:{"margin-bottom":"16px"}},$4=["onClick"];function A4(e,t,n,s,r,o){return E(),D("section",null,[u("nav",C4,[(E(!0),D(Ke,null,bt(o.filtered_index,i=>(E(),D("a",{key:i,class:"button is-small",onClick:a=>o.nav(i)},R(i),9,$4))),128))])])}var bs=ge(E4,[["render",A4]]);const O4={name:"ModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.artist.uri)},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.artist.id})}}},T4={key:0,class:"modal is-active"},P4={class:"modal-content fd-modal-card"},D4={class:"card"},F4={class:"card-content"},I4={class:"title is-4"},M4={class:"content is-small"},R4=u("span",{class:"heading"},"Albums",-1),L4={class:"title is-6"},N4=u("span",{class:"heading"},"Tracks",-1),V4={class:"title is-6"},j4=u("span",{class:"heading"},"Type",-1),B4={class:"title is-6"},U4=u("span",{class:"heading"},"Added at",-1),H4={class:"title is-6"},z4={class:"card-footer"},q4={class:"icon"},G4=u("span",{class:"is-size-7"},"Add",-1),W4={class:"icon"},K4=u("span",{class:"is-size-7"},"Add Next",-1),Z4={class:"icon"},Y4=u("span",{class:"is-size-7"},"Play",-1);function J4(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",T4,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",P4,[u("div",D4,[u("div",F4,[u("p",I4,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a))},R(n.artist.name),1)]),u("div",M4,[u("p",null,[R4,u("span",L4,R(n.artist.album_count),1)]),u("p",null,[N4,u("span",V4,R(n.artist.track_count),1)]),u("p",null,[j4,u("span",B4,R(n.artist.data_kind),1)]),u("p",null,[U4,u("span",H4,R(e.$filters.datetime(n.artist.time_added)),1)])])]),u("footer",z4,[u("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",q4,[w(i,{name:"playlist-plus",size:"16"})]),G4]),u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",W4,[w(i,{name:"playlist-play",size:"16"})]),K4]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[u("span",Z4,[w(i,{name:"play",size:"16"})]),Y4])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Nl=ge(O4,[["render",J4]]);const X4={name:"ListArtists",components:{ModalDialogArtist:Nl},props:["artists","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_artist:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_artist.media_kind}},methods:{open_artist:function(e){this.selected_artist=e,this.media_kind_resolved==="podcast"||(this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+e.id}):this.$router.push({path:"/music/artists/"+e.id}))},open_dialog:function(e){this.selected_artist=e,this.show_details_modal=!0}}},Q4={key:0,class:"mt-6 mb-5 py-2"},eT={class:"media-content is-clipped"},tT=["id"],nT=["onClick"],sT={class:"media-content fd-has-action is-clipped"},rT={class:"title is-6"},oT={class:"media-right"},iT=["onClick"],aT={class:"icon has-text-dark"};function lT(e,t,n,s,r,o){const i=P("mdicon"),a=P("modal-dialog-artist");return E(),D(Ke,null,[(E(!0),D(Ke,null,bt(n.artists,l=>(E(),D(Ke,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(E(),D("div",Q4,[u("div",eT,[u("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(l.groupKey),9,tT)])])):l.isItem?(E(),D("div",{key:1,class:"media",onClick:c=>o.open_artist(l.item)},[u("div",sT,[u("h1",rT,R(l.item.name),1)]),u("div",oT,[u("a",{onClick:pt(c=>o.open_dialog(l.item),["prevent","stop"])},[u("span",aT,[w(i,{name:"dots-vertical",size:"16"})])],8,iT)])],8,nT)):Z("",!0)],64))),128)),(E(),Se(qs,{to:"#app"},[w(a,{show:r.show_details_modal,artist:r.selected_artist,media_kind:n.media_kind,onClose:t[0]||(t[0]=l=>r.show_details_modal=!1)},null,8,["show","artist","media_kind"])]))],64)}var Vd=ge(X4,[["render",lT]]);const uT={name:"DropdownMenu",props:["modelValue","options"],emits:["update:modelValue"],data(){return{is_active:!1}},methods:{onClickOutside(e){this.is_active=!1},select(e){this.is_active=!1,this.$emit("update:modelValue",e)}}},cT={class:"dropdown-trigger"},dT={class:"icon"},fT={id:"dropdown-menu",class:"dropdown-menu",role:"menu"},hT={class:"dropdown-content"},mT=["onClick"];function pT(e,t,n,s,r,o){const i=P("mdicon"),a=xl("click-away");return wt((E(),D("div",{class:We(["dropdown",{"is-active":r.is_active}])},[u("div",cT,[u("button",{class:"button","aria-haspopup":"true","aria-controls":"dropdown-menu",onClick:t[0]||(t[0]=l=>r.is_active=!r.is_active)},[u("span",null,R(n.modelValue),1),u("span",dT,[w(i,{name:"chevron-down",size:"16"})])])]),u("div",fT,[u("div",hT,[(E(!0),D(Ke,null,bt(n.options,l=>(E(),D("a",{key:l,class:We(["dropdown-item",{"is-active":n.modelValue===l}]),onClick:c=>o.select(l)},R(l),11,mT))),128))])])],2)),[[a,o.onClickOutside]])}var jd=ge(uT,[["render",pT]]);const Xi={load:function(e){return G.library_artists("music")},set:function(e,t){e.artists_list=new rt(t.data)}},_T={name:"PageArtists",components:{ContentWithHeading:ht,TabsMusic:rs,IndexButtonList:bs,ListArtists:Vd,DropdownMenu:jd},beforeRouteEnter(e,t,n){Xi.load(e).then(s=>{n(r=>Xi.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const s=this;Xi.load(e).then(r=>{Xi.set(s,r),n()})},data(){return{artists_list:new rt,groupby_options:[{name:"Name",options:co("name_sort")},{name:"Recently added",options:nl("time_added",{direction:"desc",defaultValue:"0000"})}]}},computed:{artists(){if(!this.artists_list)return[];const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_name);return this.artists_list.group(e.options,[t=>!this.hide_singles||t.track_count>t.album_count*2,t=>!this.hide_spotify||t.data_kind!=="spotify"]),this.artists_list},groupby_option_names(){return[...this.groupby_options].map(e=>e.name)},selected_groupby_option_name:{get(){return this.$store.state.artists_sort},set(e){this.$store.commit(L_,e)}},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},hide_singles:{get(){return this.$store.state.hide_singles},set(e){this.$store.commit(Tl,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(bd,e)}}},methods:{}},gT={class:"fd-page-with-tabs"},vT={class:"columns"},yT={class:"column"},bT=u("p",{class:"heading",style:{"margin-bottom":"24px"}},"Filter",-1),wT={class:"field"},kT={class:"control"},ST=u("label",{for:"switchHideSingles"},"Hide singles",-1),xT=u("p",{class:"help"}," If active, hides artists that only appear on singles or playlists. ",-1),ET={key:0,class:"field"},CT={class:"control"},$T=u("label",{for:"switchHideSpotify"},"Hide artists from Spotify",-1),AT=u("p",{class:"help"}," If active, hides artists that only appear in your Spotify library. ",-1),OT={class:"column"},TT=u("p",{class:"heading",style:{"margin-bottom":"24px"}},"Sort by",-1),PT=u("p",{class:"title is-4"},"Artists",-1),DT={class:"heading"};function FT(e,t,n,s,r,o){const i=P("tabs-music"),a=P("index-button-list"),l=P("dropdown-menu"),c=P("list-artists"),d=P("content-with-heading");return E(),D("div",gT,[w(i),w(d,null,{options:T(()=>[w(a,{index:o.artists.indexList},null,8,["index"]),u("div",vT,[u("div",yT,[bT,u("div",wT,[u("div",kT,[wt(u("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=h=>o.hide_singles=h),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[ps,o.hide_singles]]),ST]),xT]),o.spotify_enabled?(E(),D("div",ET,[u("div",CT,[wt(u("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=h=>o.hide_spotify=h),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[ps,o.hide_spotify]]),$T]),AT])):Z("",!0)]),u("div",OT,[TT,w(l,{modelValue:o.selected_groupby_option_name,"onUpdate:modelValue":t[2]||(t[2]=h=>o.selected_groupby_option_name=h),options:o.groupby_option_names},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[PT,u("p",DT,R(o.artists.count)+" Artists",1)]),"heading-right":T(()=>[]),content:T(()=>[w(c,{artists:o.artists},null,8,["artists"])]),_:1})])}var IT=ge(_T,[["render",FT]]);const Qi={load:function(e){return Promise.all([G.library_artist(e.params.artist_id),G.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums_list=new rt(t[1].data)}},MT={name:"PageArtist",components:{ContentWithHeading:ht,ListAlbums:os,ModalDialogArtist:Nl,DropdownMenu:jd},beforeRouteEnter(e,t,n){Qi.load(e).then(s=>{n(r=>Qi.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Qi.load(e).then(r=>{Qi.set(s,r),n()})},data(){return{artist:{},albums_list:new rt,groupby_options:[{name:"Name",options:co("name_sort")},{name:"Release date",options:nl("date_released",{direction:"asc",defaultValue:"0000"})}],show_artist_details_modal:!1}},computed:{albums(){const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_name);return this.albums_list.group(e.options),this.albums_list},groupby_option_names(){return[...this.groupby_options].map(e=>e.name)},selected_groupby_option_name:{get(){return this.$store.state.artist_albums_sort},set(e){this.$store.commit(N_,e)}}},methods:{open_tracks:function(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play:function(){G.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!0)}}},RT={class:"columns"},LT={class:"column"},NT=u("p",{class:"heading",style:{"margin-bottom":"24px"}},"Sort by",-1),VT={class:"title is-4"},jT={class:"buttons is-centered"},BT={class:"icon"},UT={class:"icon"},HT=u("span",null,"Shuffle",-1),zT={class:"heading has-text-centered-mobile"};function qT(e,t,n,s,r,o){const i=P("dropdown-menu"),a=P("mdicon"),l=P("list-albums"),c=P("modal-dialog-artist"),d=P("content-with-heading");return E(),Se(d,null,{options:T(()=>[u("div",RT,[u("div",LT,[NT,w(i,{modelValue:o.selected_groupby_option_name,"onUpdate:modelValue":t[0]||(t[0]=h=>o.selected_groupby_option_name=h),options:o.groupby_option_names},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[u("p",VT,R(r.artist.name),1)]),"heading-right":T(()=>[u("div",jT,[u("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=h=>r.show_artist_details_modal=!0)},[u("span",BT,[w(a,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...h)=>o.play&&o.play(...h))},[u("span",UT,[w(a,{name:"shuffle",size:"16"})]),HT])])]),content:T(()=>[u("p",zT,[$e(R(r.artist.album_count)+" albums | ",1),u("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...h)=>o.open_tracks&&o.open_tracks(...h))},R(r.artist.track_count)+" tracks",1)]),w(l,{albums:o.albums,hide_group_title:!0},null,8,["albums"]),w(c,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[4]||(t[4]=h=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var GT=ge(MT,[["render",qT]]);const ea={load:function(e){return G.library_albums("music")},set:function(e,t){e.albums_list=new rt(t.data)}},WT={name:"PageAlbums",components:{ContentWithHeading:ht,TabsMusic:rs,IndexButtonList:bs,ListAlbums:os,DropdownMenu:jd},beforeRouteEnter(e,t,n){ea.load(e).then(s=>{n(r=>ea.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const s=this;ea.load(e).then(r=>{ea.set(s,r),n()})},data(){return{albums_list:new rt,groupby_options:[{name:"Name",options:co("name_sort")},{name:"Recently added",options:nl("time_added",{direction:"desc",defaultValue:"0000"})},{name:"Recently released",options:nl("date_released",{direction:"desc",defaultValue:"0000"})}]}},computed:{albums(){const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_name);return this.albums_list.group(e.options,[t=>!this.hide_singles||t.track_count>2,t=>!this.hide_spotify||t.data_kind!=="spotify"]),this.albums_list},groupby_option_names(){return[...this.groupby_options].map(e=>e.name)},selected_groupby_option_name:{get(){return this.$store.state.albums_sort},set(e){this.$store.commit(V_,e)}},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},hide_singles:{get(){return this.$store.state.hide_singles},set(e){this.$store.commit(Tl,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(bd,e)}}},methods:{scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}},KT={class:"fd-page-with-tabs"},ZT={class:"columns"},YT={class:"column"},JT=u("p",{class:"heading",style:{"margin-bottom":"24px"}},"Filter",-1),XT={class:"field"},QT={class:"control"},e5=u("label",{for:"switchHideSingles"},"Hide singles",-1),t5=u("p",{class:"help"}," If active, hides singles and albums with tracks that only appear in playlists. ",-1),n5={key:0,class:"field"},s5={class:"control"},r5=u("label",{for:"switchHideSpotify"},"Hide albums from Spotify",-1),o5=u("p",{class:"help"}," If active, hides albums that only appear in your Spotify library. ",-1),i5={class:"column"},a5=u("p",{class:"heading",style:{"margin-bottom":"24px"}},"Sort by",-1),l5=u("p",{class:"title is-4"},"Albums",-1),u5={class:"heading"};function c5(e,t,n,s,r,o){const i=P("tabs-music"),a=P("index-button-list"),l=P("dropdown-menu"),c=P("list-albums"),d=P("content-with-heading");return E(),D("div",KT,[w(i),w(d,null,{options:T(()=>[w(a,{index:o.albums.indexList},null,8,["index"]),u("div",ZT,[u("div",YT,[JT,u("div",XT,[u("div",QT,[wt(u("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=h=>o.hide_singles=h),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[ps,o.hide_singles]]),e5]),t5]),o.spotify_enabled?(E(),D("div",n5,[u("div",s5,[wt(u("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=h=>o.hide_spotify=h),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[ps,o.hide_spotify]]),r5]),o5])):Z("",!0)]),u("div",i5,[a5,w(l,{modelValue:o.selected_groupby_option_name,"onUpdate:modelValue":t[2]||(t[2]=h=>o.selected_groupby_option_name=h),options:o.groupby_option_names},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[l5,u("p",u5,R(o.albums.count)+" Albums",1)]),"heading-right":T(()=>[]),content:T(()=>[w(c,{albums:o.albums},null,8,["albums"])]),_:1})])}var d5=ge(WT,[["render",c5]]);const f5={},h5={class:"hero is-light is-bold fd-content"},m5={class:"hero-body"},p5={class:"container"},_5={class:"columns is-centered"},g5={class:"column is-four-fifths"},v5={class:"columns",style:{"flex-direction":"row-reverse"}},y5={class:"column fd-has-cover"},b5={class:"column is-three-fifths has-text-centered-mobile",style:{margin:"auto 0"}},w5={class:"section fd-content"},k5={class:"container"},S5={class:"columns is-centered"},x5={class:"column is-four-fifths"},E5={style:{"margin-top":"16px"}};function C5(e,t){return E(),D("div",null,[u("section",h5,[u("div",m5,[u("div",p5,[u("div",_5,[u("div",g5,[u("div",v5,[u("div",y5,[St(e.$slots,"heading-right")]),u("div",b5,[St(e.$slots,"heading-left")])])])])])])]),u("section",w5,[u("div",k5,[u("div",S5,[u("div",x5,[St(e.$slots,"content"),u("div",E5,[St(e.$slots,"footer")])])])])])])}var Bd=ge(f5,[["render",C5]]);const ta={load:function(e){return Promise.all([G.library_album(e.params.album_id),G.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},$5={name:"PageAlbum",components:{ContentWithHero:Bd,ListTracks:$n,ModalDialogAlbum:Ll,CoverArtwork:ys},beforeRouteEnter(e,t,n){ta.load(e).then(s=>{n(r=>ta.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ta.load(e).then(r=>{ta.set(s,r),n()})},data(){return{album:{},tracks:[],show_album_details_modal:!1}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.album.artist_id})},play:function(){G.player_play_uri(this.album.uri,!0)}}},A5={class:"title is-5"},O5={class:"subtitle is-6 has-text-link has-text-weight-normal"},T5={class:"buttons fd-is-centered-mobile fd-has-margin-top"},P5={class:"icon"},D5=u("span",null,"Shuffle",-1),F5={class:"icon"},I5={class:"image is-square fd-has-shadow fd-has-action"},M5={class:"heading is-7 has-text-centered-mobile fd-has-margin-top"};function R5(e,t,n,s,r,o){const i=P("mdicon"),a=P("cover-artwork"),l=P("list-tracks"),c=P("modal-dialog-album"),d=P("content-with-hero");return E(),Se(d,null,{"heading-left":T(()=>[u("h1",A5,R(r.album.name),1),u("h2",O5,[u("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...h)=>o.open_artist&&o.open_artist(...h))},R(r.album.artist),1)]),u("div",T5,[u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>o.play&&o.play(...h))},[u("span",P5,[w(i,{name:"shuffle",size:"16"})]),D5]),u("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=h=>r.show_album_details_modal=!0)},[u("span",F5,[w(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":T(()=>[u("p",I5,[w(a,{artwork_url:r.album.artwork_url,artist:r.album.artist,album:r.album.name,onClick:t[3]||(t[3]=h=>r.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[u("p",M5,R(r.album.track_count)+" tracks ",1),w(l,{tracks:r.tracks,uris:r.album.uri},null,8,["tracks","uris"]),w(c,{show:r.show_album_details_modal,album:r.album,onClose:t[4]||(t[4]=h=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var L5=ge($5,[["render",R5]]);const N5={name:"ModalDialogGenre",props:["show","genre"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),G.queue_expression_add('genre is "'+this.genre.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),G.queue_expression_add_next('genre is "'+this.genre.name+'" and media_kind is music')},open_genre:function(){this.$emit("close"),this.$router.push({name:"Genre",params:{genre:this.genre.name}})}}},V5={key:0,class:"modal is-active"},j5={class:"modal-content fd-modal-card"},B5={class:"card"},U5={class:"card-content"},H5={class:"title is-4"},z5={class:"content is-small"},q5=u("span",{class:"heading"},"Albums",-1),G5={class:"title is-6"},W5=u("span",{class:"heading"},"Tracks",-1),K5={class:"title is-6"},Z5=u("span",{class:"heading"},"Length",-1),Y5={class:"title is-6"},J5={class:"card-footer"},X5={class:"icon"},Q5=u("span",{class:"is-size-7"},"Add",-1),e8={class:"icon"},t8=u("span",{class:"is-size-7"},"Add Next",-1),n8={class:"icon"},s8=u("span",{class:"is-size-7"},"Play",-1);function r8(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",V5,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",j5,[u("div",B5,[u("div",U5,[u("p",H5,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_genre&&o.open_genre(...a))},R(n.genre.name),1)]),u("div",z5,[u("p",null,[q5,u("span",G5,R(n.genre.album_count),1)]),u("p",null,[W5,u("span",K5,R(n.genre.track_count),1)]),u("p",null,[Z5,u("span",Y5,R(e.$filters.durationInHours(n.genre.length_ms)),1)])])]),u("footer",J5,[u("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",X5,[w(i,{name:"playlist-plus",size:"16"})]),Q5]),u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",e8,[w(i,{name:"playlist-play",size:"16"})]),t8]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[u("span",n8,[w(i,{name:"play",size:"16"})]),s8])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Ud=ge(N5,[["render",r8]]);const o8={name:"ListGenres",components:{ModalDialogGenre:Ud},props:["genres","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_genre:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_genre.media_kind}},methods:{open_genre:function(e){this.$router.push({name:"Genre",params:{genre:e.name}})},open_dialog:function(e){this.selected_genre=e,this.show_details_modal=!0}}},i8={key:0,class:"mt-6 mb-5 py-2"},a8={class:"media-content is-clipped"},l8=["id"],u8=["onClick"],c8={class:"media-content fd-has-action is-clipped"},d8={class:"title is-6"},f8={class:"media-right"},h8=["onClick"],m8={class:"icon has-text-dark"};function p8(e,t,n,s,r,o){const i=P("mdicon"),a=P("modal-dialog-genre");return E(),D(Ke,null,[(E(!0),D(Ke,null,bt(n.genres,l=>(E(),D(Ke,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(E(),D("div",i8,[u("div",a8,[u("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(l.groupKey),9,l8)])])):l.isItem?(E(),D("div",{key:1,class:"media",onClick:c=>o.open_genre(l.item)},[u("div",c8,[u("h1",d8,R(l.item.name),1)]),u("div",f8,[u("a",{onClick:pt(c=>o.open_dialog(l.item),["prevent","stop"])},[u("span",m8,[w(i,{name:"dots-vertical",size:"16"})])],8,h8)])],8,u8)):Z("",!0)],64))),128)),(E(),Se(qs,{to:"#app"},[w(a,{show:r.show_details_modal,genre:r.selected_genre,onClose:t[0]||(t[0]=l=>r.show_details_modal=!1)},null,8,["show","genre"])]))],64)}var _8=ge(o8,[["render",p8]]);const na={load:function(e){return G.library_genres("music")},set:function(e,t){e.genres=t.data,e.genres=new rt(t.data),e.genres.group(_v("name_sort"))}},g8={name:"PageGenres",components:{ContentWithHeading:ht,TabsMusic:rs,IndexButtonList:bs,ListGenres:_8},beforeRouteEnter(e,t,n){na.load(e).then(s=>{n(r=>na.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;na.load(e).then(r=>{na.set(s,r),n()})},data(){return{genres:new rt}},computed:{},methods:{}},v8={class:"fd-page-with-tabs"},y8=u("p",{class:"title is-4"},"Genres",-1),b8={class:"heading"};function w8(e,t,n,s,r,o){const i=P("tabs-music"),a=P("index-button-list"),l=P("list-genres"),c=P("content-with-heading");return E(),D("div",v8,[w(i),w(c,null,{options:T(()=>[w(a,{index:r.genres.indexList},null,8,["index"])]),"heading-left":T(()=>[y8,u("p",b8,R(r.genres.total)+" genres",1)]),content:T(()=>[w(l,{genres:r.genres},null,8,["genres"])]),_:1})])}var k8=ge(g8,[["render",w8]]);const sa={load:function(e){return Promise.all([G.library_genre(e.params.genre),G.library_genre_albums(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.albums_list=new rt(t[1].data.albums),e.albums_list.group(co("name_sort"))}},S8={name:"PageGenre",components:{ContentWithHeading:ht,IndexButtonList:bs,ListAlbums:os,ModalDialogGenre:Ud},beforeRouteEnter(e,t,n){sa.load(e).then(s=>{n(r=>sa.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const s=this;sa.load(e).then(r=>{sa.set(s,r),n()})},data(){return{genre:{},albums_list:new rt,show_genre_details_modal:!1}},methods:{open_tracks:function(){this.show_details_modal=!1,this.$router.push({name:"GenreTracks",params:{genre:this.genre.name}})},play:function(){G.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!0)}}},x8={class:"title is-4"},E8={class:"buttons is-centered"},C8={class:"icon"},$8={class:"icon"},A8=u("span",null,"Shuffle",-1),O8={class:"heading has-text-centered-mobile"};function T8(e,t,n,s,r,o){const i=P("index-button-list"),a=P("mdicon"),l=P("list-albums"),c=P("modal-dialog-genre"),d=P("content-with-heading");return E(),D("div",null,[w(d,null,{options:T(()=>[w(i,{index:r.albums_list.indexList},null,8,["index"])]),"heading-left":T(()=>[u("p",x8,R(r.genre.name),1)]),"heading-right":T(()=>[u("div",E8,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>r.show_genre_details_modal=!0)},[u("span",C8,[w(a,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>o.play&&o.play(...h))},[u("span",$8,[w(a,{name:"shuffle",size:"16"})]),A8])])]),content:T(()=>[u("p",O8,[$e(R(r.genre.album_count)+" albums | ",1),u("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...h)=>o.open_tracks&&o.open_tracks(...h))},R(r.genre.track_count)+" tracks",1)]),w(l,{albums:r.albums_list},null,8,["albums"]),w(c,{show:r.show_genre_details_modal,genre:r.genre,onClose:t[3]||(t[3]=h=>r.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var P8=ge(S8,[["render",T8]]);const ra={load:function(e){return Promise.all([G.library_genre(e.params.genre),G.library_genre_tracks(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.tracks=t[1].data.tracks}},D8={name:"PageGenreTracks",components:{ContentWithHeading:ht,ListTracks:$n,IndexButtonList:bs,ModalDialogGenre:Ud},beforeRouteEnter(e,t,n){ra.load(e).then(s=>{n(r=>ra.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ra.load(e).then(r=>{ra.set(s,r),n()})},data(){return{tracks:{items:[]},genre:"",show_genre_details_modal:!1}},computed:{index_list(){return[...new Set(this.tracks.items.map(e=>e.title_sort.charAt(0).toUpperCase()))]},expression(){return'genre is "'+this.genre.name+'" and media_kind is music'}},methods:{open_genre:function(){this.show_details_modal=!1,this.$router.push({name:"Genre",params:{genre:this.genre.name}})},play:function(){G.player_play_expression(this.expression,!0)}}},F8={class:"title is-4"},I8={class:"buttons is-centered"},M8={class:"icon"},R8={class:"icon"},L8=u("span",null,"Shuffle",-1),N8={class:"heading has-text-centered-mobile"};function V8(e,t,n,s,r,o){const i=P("index-button-list"),a=P("mdicon"),l=P("list-tracks"),c=P("modal-dialog-genre"),d=P("content-with-heading");return E(),D("div",null,[w(d,null,{options:T(()=>[w(i,{index:o.index_list},null,8,["index"])]),"heading-left":T(()=>[u("p",F8,R(r.genre.name),1)]),"heading-right":T(()=>[u("div",I8,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>r.show_genre_details_modal=!0)},[u("span",M8,[w(a,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>o.play&&o.play(...h))},[u("span",R8,[w(a,{name:"shuffle",size:"16"})]),L8])])]),content:T(()=>[u("p",N8,[u("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...h)=>o.open_genre&&o.open_genre(...h))},R(r.genre.album_count)+" albums",1),$e(" | "+R(r.genre.track_count)+" tracks ",1)]),w(l,{tracks:r.tracks.items,expression:o.expression},null,8,["tracks","expression"]),w(c,{show:r.show_genre_details_modal,genre:r.genre,onClose:t[3]||(t[3]=h=>r.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var j8=ge(D8,[["render",V8]]);const oa={load:function(e){return Promise.all([G.library_artist(e.params.artist_id),G.library_artist_tracks(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.tracks=t[1].data.tracks}},B8={name:"PageArtistTracks",components:{ContentWithHeading:ht,ListTracks:$n,IndexButtonList:bs,ModalDialogArtist:Nl},beforeRouteEnter(e,t,n){oa.load(e).then(s=>{n(r=>oa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;oa.load(e).then(r=>{oa.set(s,r),n()})},data(){return{artist:{},tracks:{items:[]},show_artist_details_modal:!1}},computed:{index_list(){return[...new Set(this.tracks.items.map(e=>e.title_sort.charAt(0).toUpperCase()))]},track_uris(){return this.tracks.items.map(e=>e.uri).join(",")}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.artist.id})},play:function(){G.player_play_uri(this.tracks.items.map(e=>e.uri).join(","),!0)}}},U8={class:"title is-4"},H8={class:"buttons is-centered"},z8={class:"icon"},q8={class:"icon"},G8=u("span",null,"Shuffle",-1),W8={class:"heading has-text-centered-mobile"};function K8(e,t,n,s,r,o){const i=P("index-button-list"),a=P("mdicon"),l=P("list-tracks"),c=P("modal-dialog-artist"),d=P("content-with-heading");return E(),D("div",null,[w(d,null,{options:T(()=>[w(i,{index:o.index_list},null,8,["index"])]),"heading-left":T(()=>[u("p",U8,R(r.artist.name),1)]),"heading-right":T(()=>[u("div",H8,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>r.show_artist_details_modal=!0)},[u("span",z8,[w(a,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>o.play&&o.play(...h))},[u("span",q8,[w(a,{name:"shuffle",size:"16"})]),G8])])]),content:T(()=>[u("p",W8,[u("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...h)=>o.open_artist&&o.open_artist(...h))},R(r.artist.album_count)+" albums",1),$e(" | "+R(r.artist.track_count)+" tracks ",1)]),w(l,{tracks:r.tracks.items,uris:o.track_uris},null,8,["tracks","uris"]),w(c,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[3]||(t[3]=h=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var Z8=ge(B8,[["render",K8]]);const Y8={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),G.queue_expression_add('composer is "'+this.composer.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),G.queue_expression_add_next('composer is "'+this.composer.name+'" and media_kind is music')},open_albums:function(){this.$emit("close"),this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},open_tracks:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})}}},J8={key:0,class:"modal is-active"},X8={class:"modal-content fd-modal-card"},Q8={class:"card"},eP={class:"card-content"},tP={class:"title is-4"},nP=u("span",{class:"heading"},"Albums",-1),sP=u("span",{class:"heading"},"Tracks",-1),rP=u("span",{class:"heading"},"Length",-1),oP={class:"title is-6"},iP={class:"card-footer"},aP={class:"icon"},lP=u("span",{class:"is-size-7"},"Add",-1),uP={class:"icon"},cP=u("span",{class:"is-size-7"},"Add Next",-1),dP={class:"icon"},fP=u("span",{class:"is-size-7"},"Play",-1);function hP(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",J8,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",X8,[u("div",Q8,[u("div",eP,[u("p",tP,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_albums&&o.open_albums(...a))},R(n.composer.name),1)]),u("p",null,[nP,u("a",{class:"has-text-link is-6",onClick:t[2]||(t[2]=(...a)=>o.open_albums&&o.open_albums(...a))},R(n.composer.album_count),1)]),u("p",null,[sP,u("a",{class:"has-text-link is-6",onClick:t[3]||(t[3]=(...a)=>o.open_tracks&&o.open_tracks(...a))},R(n.composer.track_count),1)]),u("p",null,[rP,u("span",oP,R(e.$filters.durationInHours(n.composer.length_ms)),1)])]),u("footer",iP,[u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",aP,[w(i,{name:"playlist-plus",size:"16"})]),lP]),u("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",uP,[w(i,{name:"playlist-play",size:"16"})]),cP]),u("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.play&&o.play(...a))},[u("span",dP,[w(i,{name:"play",size:"16"})]),fP])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[7]||(t[7]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Hd=ge(Y8,[["render",hP]]);const mP={name:"ListComposers",components:{ModalDialogComposer:Hd},props:["composers","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_composer:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_composer.media_kind}},methods:{open_composer:function(e){this.selected_composer=e,this.$router.push({name:"ComposerTracks",params:{composer:e.name}})},open_dialog:function(e){this.selected_composer=e,this.show_details_modal=!0}}},pP={key:0,class:"mt-6 mb-5 py-2"},_P={class:"media-content is-clipped"},gP=["id"],vP=["onClick"],yP={class:"media-content fd-has-action is-clipped"},bP={class:"title is-6"},wP={class:"media-right"},kP=["onClick"],SP={class:"icon has-text-dark"};function xP(e,t,n,s,r,o){const i=P("mdicon"),a=P("modal-dialog-composer");return E(),D(Ke,null,[(E(!0),D(Ke,null,bt(n.composers,l=>(E(),D(Ke,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(E(),D("div",pP,[u("div",_P,[u("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold"},R(l.groupKey),9,gP)])])):l.isItem?(E(),D("div",{key:1,class:"media",onClick:c=>o.open_composer(l.item)},[u("div",yP,[u("h1",bP,R(l.item.name),1)]),u("div",wP,[u("a",{onClick:pt(c=>o.open_dialog(l.item),["prevent","stop"])},[u("span",SP,[w(i,{name:"dots-vertical",size:"16"})])],8,kP)])],8,vP)):Z("",!0)],64))),128)),(E(),Se(qs,{to:"#app"},[w(a,{show:r.show_details_modal,composer:r.selected_composer,media_kind:n.media_kind,onClose:t[0]||(t[0]=l=>r.show_details_modal=!1)},null,8,["show","composer","media_kind"])]))],64)}var gv=ge(mP,[["render",xP]]);const ia={load:function(e){return G.library_composers("music")},set:function(e,t){e.composers=new rt(t.data),e.composers.group(_v("name_sort"))}},EP={name:"PageComposers",components:{ContentWithHeading:ht,TabsMusic:rs,IndexButtonList:bs,ListComposers:gv},beforeRouteEnter(e,t,n){ia.load(e).then(s=>{n(r=>ia.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.composers.isEmpty()){n();return}const s=this;ia.load(e).then(r=>{ia.set(s,r),n()})},data(){return{composers:new rt}},methods:{}},CP=u("p",{class:"title is-4"},"Composers",-1),$P={class:"heading"};function AP(e,t,n,s,r,o){const i=P("tabs-music"),a=P("index-button-list"),l=P("list-composers"),c=P("content-with-heading");return E(),D("div",null,[w(i),w(c,null,{options:T(()=>[w(a,{index:r.composers.indexList},null,8,["index"])]),"heading-left":T(()=>[CP,u("p",$P,R(r.composers.total)+" composers",1)]),content:T(()=>[w(l,{composers:r.composers},null,8,["composers"])]),_:1})])}var OP=ge(EP,[["render",AP]]);const aa={load:function(e){return Promise.all([G.library_composer(e.params.composer),G.library_composer_albums(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.albums_list=new rt(t[1].data.albums)}},TP={name:"PageComposer",components:{ContentWithHeading:ht,ListAlbums:os,ModalDialogComposer:Hd},beforeRouteEnter(e,t,n){aa.load(e).then(s=>{n(r=>aa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;aa.load(e).then(r=>{aa.set(s,r),n()})},data(){return{composer:{},albums_list:new rt,show_composer_details_modal:!1}},methods:{open_tracks:function(){this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})},play:function(){G.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!0)}}},PP={class:"title is-4"},DP={class:"buttons is-centered"},FP={class:"icon"},IP={class:"icon"},MP=u("span",null,"Shuffle",-1),RP={class:"heading has-text-centered-mobile"};function LP(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-albums"),l=P("modal-dialog-composer"),c=P("content-with-heading");return E(),D("div",null,[w(c,null,{"heading-left":T(()=>[u("p",PP,R(r.composer.name),1)]),"heading-right":T(()=>[u("div",DP,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_composer_details_modal=!0)},[u("span",FP,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[u("span",IP,[w(i,{name:"shuffle",size:"16"})]),MP])])]),content:T(()=>[u("p",RP,[$e(R(r.composer.album_count)+" albums | ",1),u("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>o.open_tracks&&o.open_tracks(...d))},R(r.composer.track_count)+" tracks",1)]),w(a,{albums:r.albums_list,hide_group_title:!0},null,8,["albums"]),w(l,{show:r.show_composer_details_modal,composer:r.composer,onClose:t[3]||(t[3]=d=>r.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var NP=ge(TP,[["render",LP]]);const la={load:function(e){return Promise.all([G.library_composer(e.params.composer),G.library_composer_tracks(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.tracks=t[1].data.tracks}},VP={name:"PageComposerTracks",components:{ContentWithHeading:ht,ListTracks:$n,ModalDialogComposer:Hd},beforeRouteEnter(e,t,n){la.load(e).then(s=>{n(r=>la.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;la.load(e).then(r=>{la.set(s,r),n()})},data(){return{tracks:{items:[]},composer:{},show_composer_details_modal:!1}},computed:{play_expression(){return'composer is "'+this.composer.name+'" and media_kind is music'}},methods:{open_albums:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},play:function(){G.player_play_expression(this.play_expression,!0)}}},jP={class:"title is-4"},BP={class:"buttons is-centered"},UP={class:"icon"},HP={class:"icon"},zP=u("span",null,"Shuffle",-1),qP={class:"heading has-text-centered-mobile"};function GP(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-tracks"),l=P("modal-dialog-composer"),c=P("content-with-heading");return E(),D("div",null,[w(c,null,{"heading-left":T(()=>[u("p",jP,R(r.composer.name),1)]),"heading-right":T(()=>[u("div",BP,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_composer_details_modal=!0)},[u("span",UP,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[u("span",HP,[w(i,{name:"shuffle",size:"16"})]),zP])])]),content:T(()=>[u("p",qP,[u("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>o.open_albums&&o.open_albums(...d))},R(r.composer.album_count)+" albums",1),$e(" | "+R(r.composer.track_count)+" tracks ",1)]),w(a,{tracks:r.tracks.items,expression:o.play_expression},null,8,["tracks","expression"]),w(l,{show:r.show_composer_details_modal,composer:r.composer,onClose:t[3]||(t[3]=d=>r.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var WP=ge(VP,[["render",GP]]);const KP={name:"ModalDialogAddRss",props:["show"],emits:["close","podcast-added"],data(){return{url:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.url_field.focus()},10))}},methods:{add_stream:function(){this.loading=!0,G.library_add(this.url).then(()=>{this.$emit("close"),this.$emit("podcast-added"),this.url=""}).catch(()=>{this.loading=!1})}}},ZP={key:0,class:"modal is-active"},YP={class:"modal-content fd-modal-card"},JP={class:"card"},XP={class:"card-content"},QP=u("p",{class:"title is-4"},"Add Podcast RSS feed URL",-1),eD={class:"field"},tD={class:"control is-expanded has-icons-left"},nD=["disabled"],sD={class:"icon is-left"},rD=u("p",{class:"help"}," Adding a podcast includes creating an RSS playlist, that will allow OwnTone to manage the podcast subscription. ",-1),oD={key:0,class:"card-footer"},iD={class:"card-footer-item button is-loading"},aD={class:"icon"},lD=u("span",{class:"is-size-7"},"Processing ...",-1),uD={key:1,class:"card-footer"},cD={class:"icon"},dD=u("span",{class:"is-size-7"},"Cancel",-1),fD={class:"icon"},hD=u("span",{class:"is-size-7"},"Add",-1);function mD(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",ZP,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",YP,[u("div",JP,[u("div",XP,[QP,u("form",{onSubmit:t[2]||(t[2]=pt((...a)=>o.add_stream&&o.add_stream(...a),["prevent"]))},[u("div",eD,[u("p",tD,[wt(u("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.url=a),class:"input is-shadowless",type:"text",placeholder:"http://url-to-rss",disabled:r.loading},null,8,nD),[[en,r.url]]),u("span",sD,[w(i,{name:"rss",size:"16"})])]),rD])],32)]),r.loading?(E(),D("footer",oD,[u("a",iD,[u("span",aD,[w(i,{name:"web",size:"16"})]),lD])])):(E(),D("footer",uD,[u("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[u("span",cD,[w(i,{name:"cancel",size:"16"})]),dD]),u("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[u("span",fD,[w(i,{name:"playlist-plus",size:"16"})]),hD])]))])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var pD=ge(KP,[["render",mD]]);const ua={load:function(e){return Promise.all([G.library_albums("podcast"),G.library_podcasts_new_episodes()])},set:function(e,t){e.albums=new rt(t[0].data),e.new_episodes=t[1].data.tracks}},_D={name:"PagePodcasts",components:{ContentWithHeading:ht,ListTracks:$n,ListAlbums:os,ModalDialogAddRss:pD},beforeRouteEnter(e,t,n){ua.load(e).then(s=>{n(r=>ua.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ua.load(e).then(r=>{ua.set(s,r),n()})},data(){return{albums:[],new_episodes:{items:[]},show_url_modal:!1}},computed:{rss(){return this.$store.state.rss_count}},methods:{mark_all_played:function(){this.new_episodes.items.forEach(e=>{G.library_track_update(e.id,{play_count:"increment"})}),this.new_episodes.items={}},open_add_podcast_dialog:function(e){this.show_url_modal=!0},reload_new_episodes:function(){G.library_podcasts_new_episodes().then(({data:e})=>{this.new_episodes=e.tracks})},reload_podcasts:function(){G.library_albums("podcast").then(({data:e})=>{this.albums=new rt(e),this.reload_new_episodes()})},update_rss:function(){this.$store.commit(wd,"rss"),this.$store.commit(yi,!0)}}},gD=u("p",{class:"title is-4"},"New episodes",-1),vD={class:"buttons is-centered"},yD={class:"icon"},bD=u("span",null,"Mark All Played",-1),wD=u("p",{class:"title is-4"},"Podcasts",-1),kD={class:"heading"},SD={class:"buttons is-centered"},xD={class:"icon"},ED=u("span",null,"Update",-1),CD={class:"icon"},$D=u("span",null,"Add Podcast",-1);function AD(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-tracks"),l=P("content-with-heading"),c=P("list-albums"),d=P("modal-dialog-add-rss");return E(),D("div",null,[r.new_episodes.items.length>0?(E(),Se(l,{key:0},{"heading-left":T(()=>[gD]),"heading-right":T(()=>[u("div",vD,[u("a",{class:"button is-small",onClick:t[0]||(t[0]=(...h)=>o.mark_all_played&&o.mark_all_played(...h))},[u("span",yD,[w(i,{name:"pencil",size:"16"})]),bD])])]),content:T(()=>[w(a,{tracks:r.new_episodes.items,show_progress:!0,onPlayCountChanged:o.reload_new_episodes},null,8,["tracks","onPlayCountChanged"])]),_:1})):Z("",!0),w(l,null,{"heading-left":T(()=>[wD,u("p",kD,R(r.albums.total)+" podcasts",1)]),"heading-right":T(()=>[u("div",SD,[o.rss.tracks>0?(E(),D("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...h)=>o.update_rss&&o.update_rss(...h))},[u("span",xD,[w(i,{name:"refresh",size:"16"})]),ED])):Z("",!0),u("a",{class:"button is-small",onClick:t[2]||(t[2]=(...h)=>o.open_add_podcast_dialog&&o.open_add_podcast_dialog(...h))},[u("span",CD,[w(i,{name:"rss",size:"16"})]),$D])])]),content:T(()=>[w(c,{albums:r.albums,onPlayCountChanged:t[3]||(t[3]=h=>o.reload_new_episodes()),onPodcastDeleted:t[4]||(t[4]=h=>o.reload_podcasts())},null,8,["albums"]),w(d,{show:r.show_url_modal,onClose:t[5]||(t[5]=h=>r.show_url_modal=!1),onPodcastAdded:t[6]||(t[6]=h=>o.reload_podcasts())},null,8,["show"])]),_:1})])}var OD=ge(_D,[["render",AD]]);const ca={load:function(e){return Promise.all([G.library_album(e.params.album_id),G.library_podcast_episodes(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.tracks.items}},TD={name:"PagePodcast",components:{ContentWithHeading:ht,ListTracks:$n,ModalDialogAlbum:Ll,ModalDialog:Nd},beforeRouteEnter(e,t,n){ca.load(e).then(s=>{n(r=>ca.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ca.load(e).then(r=>{ca.set(s,r),n()})},data(){return{album:{},tracks:[],show_album_details_modal:!1,show_remove_podcast_modal:!1,rss_playlist_to_remove:{}}},computed:{new_tracks(){return this.tracks.filter(e=>e.play_count===0).length}},methods:{play:function(){G.player_play_uri(this.album.uri,!1)},open_remove_podcast_dialog:function(){this.show_album_details_modal=!1,G.library_track_playlists(this.tracks[0].id).then(({data:e})=>{const t=e.items.filter(n=>n.type==="rss");if(t.length!==1){this.$store.dispatch("add_notification",{text:"Podcast cannot be removed. Probably it was not added as an RSS playlist.",type:"danger"});return}this.rss_playlist_to_remove=t[0],this.show_remove_podcast_modal=!0})},remove_podcast:function(){this.show_remove_podcast_modal=!1,G.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$router.replace({path:"/podcasts"})})},reload_tracks:function(){G.library_podcast_episodes(this.album.id).then(({data:e})=>{this.tracks=e.tracks.items})}}},PD={class:"title is-4"},DD={class:"buttons is-centered"},FD={class:"icon"},ID={class:"icon"},MD=u("span",null,"Play",-1),RD={class:"heading has-text-centered-mobile"},LD=u("p",null,"Permanently remove this podcast from your library?",-1),ND={class:"is-size-7"},VD=$e(" (This will also remove the RSS playlist "),jD=$e(".) ");function BD(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-tracks"),l=P("modal-dialog-album"),c=P("modal-dialog"),d=P("content-with-heading");return E(),Se(d,null,{"heading-left":T(()=>[u("div",PD,R(r.album.name),1)]),"heading-right":T(()=>[u("div",DD,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>r.show_album_details_modal=!0)},[u("span",FD,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>o.play&&o.play(...h))},[u("span",ID,[w(i,{name:"play",size:"16"})]),MD])])]),content:T(()=>[u("p",RD,R(r.album.track_count)+" tracks ",1),w(a,{tracks:r.tracks,show_progress:!0,onPlayCountChanged:o.reload_tracks},null,8,["tracks","onPlayCountChanged"]),w(l,{show:r.show_album_details_modal,album:r.album,media_kind:"podcast",new_tracks:o.new_tracks,onClose:t[2]||(t[2]=h=>r.show_album_details_modal=!1),onPlayCountChanged:o.reload_tracks,onRemovePodcast:o.open_remove_podcast_dialog},null,8,["show","album","new_tracks","onPlayCountChanged","onRemovePodcast"]),w(c,{show:r.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=h=>r.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":T(()=>[LD,u("p",ND,[VD,u("b",null,R(r.rss_playlist_to_remove.name),1),jD])]),_:1},8,["show","onDelete"])]),_:1})}var UD=ge(TD,[["render",BD]]);const HD={name:"TabsAudiobooks"},zD={class:"section fd-tabs-section"},qD={class:"container"},GD={class:"columns is-centered"},WD={class:"column is-four-fifths"},KD={class:"tabs is-centered is-small"},ZD=["onClick","onKeypress"],YD={class:"icon is-small"},JD=u("span",{class:""},"Authors",-1),XD=["onClick","onKeypress"],QD={class:"icon is-small"},eF=u("span",{class:""},"Audiobooks",-1);function tF(e,t,n,s,r,o){const i=P("mdicon"),a=P("router-link");return E(),D("section",zD,[u("div",qD,[u("div",GD,[u("div",WD,[u("div",KD,[u("ul",null,[w(a,{to:"/audiobooks/artists",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",YD,[w(i,{name:"account-music",size:"16"})]),JD],40,ZD)],2)]),_:1}),w(a,{to:"/audiobooks/albums",custom:""},{default:T(({navigate:l,isActive:c})=>[u("li",{class:We({"is-active":c})},[u("a",{onClick:l,onKeypress:wn(l,["enter"])},[u("span",QD,[w(i,{name:"album",size:"16"})]),eF],40,XD)],2)]),_:1})])])])])])])}var vv=ge(HD,[["render",tF]]);const da={load:function(e){return G.library_albums("audiobook")},set:function(e,t){e.albums=new rt(t.data),e.albums.group(co("name_sort"))}},nF={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:vv,ContentWithHeading:ht,IndexButtonList:bs,ListAlbums:os},beforeRouteEnter(e,t,n){da.load(e).then(s=>{n(r=>da.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const s=this;da.load(e).then(r=>{da.set(s,r),n()})},data(){return{albums:new rt}},methods:{}},sF={class:"fd-page-with-tabs"},rF=u("p",{class:"title is-4"},"Audiobooks",-1),oF={class:"heading"};function iF(e,t,n,s,r,o){const i=P("tabs-audiobooks"),a=P("index-button-list"),l=P("list-albums"),c=P("content-with-heading");return E(),D("div",sF,[w(i),w(c,null,{options:T(()=>[w(a,{index:r.albums.indexList},null,8,["index"])]),"heading-left":T(()=>[rF,u("p",oF,R(r.albums.count)+" Audiobooks",1)]),content:T(()=>[w(l,{albums:r.albums},null,8,["albums"])]),_:1})])}var aF=ge(nF,[["render",iF]]);const fa={load:function(e){return G.library_artists("audiobook")},set:function(e,t){e.artists_list=new rt(t.data)}},lF={name:"PageAudiobooksArtists",components:{ContentWithHeading:ht,TabsAudiobooks:vv,IndexButtonList:bs,ListArtists:Vd},beforeRouteEnter(e,t,n){fa.load(e).then(s=>{n(r=>fa.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const s=this;fa.load(e).then(r=>{fa.set(s,r),n()})},data(){return{artists_list:new rt}},computed:{artists(){return this.artists_list?(this.artists_list.group(co("name_sort")),this.artists_list):[]}},methods:{}},uF={class:"fd-page-with-tabs"},cF=u("p",{class:"title is-4"},"Authors",-1),dF={class:"heading"};function fF(e,t,n,s,r,o){const i=P("tabs-audiobooks"),a=P("index-button-list"),l=P("list-artists"),c=P("content-with-heading");return E(),D("div",uF,[w(i),w(c,null,{options:T(()=>[w(a,{index:o.artists.indexList},null,8,["index"])]),"heading-left":T(()=>[cF,u("p",dF,R(o.artists.count)+" Authors",1)]),"heading-right":T(()=>[]),content:T(()=>[w(l,{artists:o.artists},null,8,["artists"])]),_:1})])}var hF=ge(lF,[["render",fF]]);const ha={load:function(e){return Promise.all([G.library_artist(e.params.artist_id),G.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums=new rt(t[1].data)}},mF={name:"PageAudiobooksArtist",components:{ContentWithHeading:ht,ListAlbums:os,ModalDialogArtist:Nl},beforeRouteEnter(e,t,n){ha.load(e).then(s=>{n(r=>ha.set(r,s))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const s=this;ha.load(e).then(r=>{ha.set(s,r),n()})},data(){return{artist:{},albums:new rt,show_artist_details_modal:!1}},methods:{play:function(){G.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!1)}}},pF={class:"title is-4"},_F={class:"buttons is-centered"},gF={class:"icon"},vF={class:"icon"},yF=u("span",null,"Shuffle",-1),bF={class:"heading has-text-centered-mobile"};function wF(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-albums"),l=P("modal-dialog-artist"),c=P("content-with-heading");return E(),Se(c,null,{"heading-left":T(()=>[u("p",pF,R(r.artist.name),1)]),"heading-right":T(()=>[u("div",_F,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_artist_details_modal=!0)},[u("span",gF,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[u("span",vF,[w(i,{name:"play",size:"16"})]),yF])])]),content:T(()=>[u("p",bF,R(r.artist.album_count)+" albums ",1),w(a,{albums:r.albums},null,8,["albums"]),w(l,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[2]||(t[2]=d=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var kF=ge(mF,[["render",wF]]);const ma={load:function(e){return Promise.all([G.library_album(e.params.album_id),G.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},SF={name:"PageAudiobooksAlbum",components:{ContentWithHero:Bd,ListTracks:$n,ModalDialogAlbum:Ll,CoverArtwork:ys},beforeRouteEnter(e,t,n){ma.load(e).then(s=>{n(r=>ma.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ma.load(e).then(r=>{ma.set(s,r),n()})},data(){return{album:{},tracks:[],show_album_details_modal:!1}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id})},play:function(){G.player_play_uri(this.album.uri,!1)},play_track:function(e){G.player_play_uri(this.album.uri,!1,e)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},xF={class:"title is-5"},EF={class:"subtitle is-6 has-text-link has-text-weight-normal"},CF={class:"buttons fd-is-centered-mobile fd-has-margin-top"},$F={class:"icon"},AF=u("span",null,"Play",-1),OF={class:"icon"},TF={class:"image is-square fd-has-shadow fd-has-action"},PF={class:"heading is-7 has-text-centered-mobile fd-has-margin-top"};function DF(e,t,n,s,r,o){const i=P("mdicon"),a=P("cover-artwork"),l=P("list-tracks"),c=P("modal-dialog-album"),d=P("content-with-hero");return E(),Se(d,null,{"heading-left":T(()=>[u("h1",xF,R(r.album.name),1),u("h2",EF,[u("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...h)=>o.open_artist&&o.open_artist(...h))},R(r.album.artist),1)]),u("div",CF,[u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>o.play&&o.play(...h))},[u("span",$F,[w(i,{name:"play",size:"16"})]),AF]),u("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=h=>r.show_album_details_modal=!0)},[u("span",OF,[w(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":T(()=>[u("p",TF,[w(a,{artwork_url:r.album.artwork_url,artist:r.album.artist,album:r.album.name,onClick:t[3]||(t[3]=h=>r.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[u("p",PF,R(r.album.track_count)+" tracks ",1),w(l,{tracks:r.tracks,uris:r.album.uri},null,8,["tracks","uris"]),w(c,{show:r.show_album_details_modal,album:r.album,media_kind:"audiobook",onClose:t[4]||(t[4]=h=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var FF=ge(SF,[["render",DF]]);const IF={name:"ModalDialogPlaylist",props:["show","playlist","uris"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.uris?this.uris:this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.uris?this.uris:this.playlist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.uris?this.uris:this.playlist.uri)},open_playlist:function(){this.$emit("close"),this.$router.push({path:"/playlists/"+this.playlist.id+"/tracks"})}}},MF={key:0,class:"modal is-active"},RF={class:"modal-content fd-modal-card"},LF={class:"card"},NF={class:"card-content"},VF={class:"title is-4"},jF={class:"content is-small"},BF=u("span",{class:"heading"},"Path",-1),UF={class:"title is-6"},HF=u("span",{class:"heading"},"Type",-1),zF={class:"title is-6"},qF={key:0},GF=u("span",{class:"heading"},"Track count",-1),WF={class:"title is-6"},KF={key:0,class:"card-footer"},ZF={class:"icon"},YF=u("span",{class:"is-size-7"},"Add",-1),JF={class:"icon"},XF=u("span",{class:"is-size-7"},"Add Next",-1),QF={class:"icon"},eI=u("span",{class:"is-size-7"},"Play",-1);function tI(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",MF,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",RF,[u("div",LF,[u("div",NF,[u("p",VF,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a))},R(n.playlist.name),1)]),u("div",jF,[u("p",null,[BF,u("span",UF,R(n.playlist.path),1)]),u("p",null,[HF,u("span",zF,R(n.playlist.type),1)]),n.playlist.folder?Z("",!0):(E(),D("p",qF,[GF,u("span",WF,R(n.playlist.item_count),1)]))])]),n.playlist.folder?Z("",!0):(E(),D("footer",KF,[u("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",ZF,[w(i,{name:"playlist-plus",size:"16"})]),YF]),u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",JF,[w(i,{name:"playlist-play",size:"16"})]),XF]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[u("span",QF,[w(i,{name:"play",size:"16"})]),eI])]))])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var yv=ge(IF,[["render",tI]]);const nI={name:"ListPlaylists",components:{ModalDialogPlaylist:yv},props:["playlists"],data(){return{show_details_modal:!1,selected_playlist:{}}},methods:{open_playlist:function(e){e.type!=="folder"?this.$router.push({path:"/playlists/"+e.id+"/tracks"}):this.$router.push({path:"/playlists/"+e.id})},open_dialog:function(e){this.selected_playlist=e,this.show_details_modal=!0},icon_name:function(e){return e.type==="folder"?"folder":e.type==="rss"?"rss":"music-box-multiple"}}},sI=["playlist","onClick"],rI={class:"media-left fd-has-action"},oI={class:"icon"},iI={class:"media-content fd-has-action is-clipped"},aI={class:"title is-6"},lI={class:"media-right"},uI=["onClick"],cI={class:"icon has-text-dark"};function dI(e,t,n,s,r,o){const i=P("mdicon"),a=P("modal-dialog-playlist");return E(),D(Ke,null,[(E(!0),D(Ke,null,bt(n.playlists,l=>(E(),D("div",{key:l.itemId,class:"media",playlist:l,onClick:c=>o.open_playlist(l.item)},[u("figure",rI,[u("span",oI,[w(i,{name:o.icon_name(l.item),size:"16"},null,8,["name"])])]),u("div",iI,[u("h1",aI,R(l.item.name),1)]),u("div",lI,[u("a",{onClick:pt(c=>o.open_dialog(l.item),["prevent","stop"])},[u("span",cI,[w(i,{name:"dots-vertical",size:"16"})])],8,uI)])],8,sI))),128)),(E(),Se(qs,{to:"#app"},[w(a,{show:r.show_details_modal,playlist:r.selected_playlist,onClose:t[0]||(t[0]=l=>r.show_details_modal=!1)},null,8,["show","playlist"])]))],64)}var zd=ge(nI,[["render",dI]]);const pa={load:function(e){return Promise.all([G.library_playlist(e.params.playlist_id),G.library_playlist_folder(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.playlists_list=new rt(t[1].data)}},fI={name:"PagePlaylists",components:{ContentWithHeading:ht,ListPlaylists:zd},beforeRouteEnter(e,t,n){pa.load(e).then(s=>{n(r=>pa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;pa.load(e).then(r=>{pa.set(s,r),n()})},data(){return{playlist:{},playlists_list:new rt}},computed:{radio_playlists(){return this.$store.state.config.radio_playlists},playlists(){return this.playlists_list.group(pv(),[e=>e.folder||this.radio_playlists||e.stream_count===0||e.item_count>e.stream_count]),this.playlists_list}}},hI={class:"title is-4"},mI={class:"heading"};function pI(e,t,n,s,r,o){const i=P("list-playlists"),a=P("content-with-heading");return E(),Se(a,null,{"heading-left":T(()=>[u("p",hI,R(r.playlist.name),1),u("p",mI,R(o.playlists.count)+" playlists",1)]),content:T(()=>[w(i,{playlists:o.playlists},null,8,["playlists"])]),_:1})}var _I=ge(fI,[["render",pI]]);const _a={load:function(e){return Promise.all([G.library_playlist(e.params.playlist_id),G.library_playlist_tracks(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.tracks=t[1].data.items}},gI={name:"PagePlaylist",components:{ContentWithHeading:ht,ListTracks:$n,ModalDialogPlaylist:yv},beforeRouteEnter(e,t,n){_a.load(e).then(s=>{n(r=>_a.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;_a.load(e).then(r=>{_a.set(s,r),n()})},data(){return{playlist:{},tracks:[],show_playlist_details_modal:!1}},computed:{uris(){return this.playlist.random?this.tracks.map(e=>e.uri).join(","):this.playlist.uri}},methods:{play:function(){G.player_play_uri(this.uris,!0)}}},vI={class:"title is-4"},yI={class:"buttons is-centered"},bI={class:"icon"},wI={class:"icon"},kI=u("span",null,"Shuffle",-1),SI={class:"heading has-text-centered-mobile"};function xI(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-tracks"),l=P("modal-dialog-playlist"),c=P("content-with-heading");return E(),Se(c,null,{"heading-left":T(()=>[u("div",vI,R(r.playlist.name),1)]),"heading-right":T(()=>[u("div",yI,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>r.show_playlist_details_modal=!0)},[u("span",bI,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[u("span",wI,[w(i,{name:"shuffle",size:"16"})]),kI])])]),content:T(()=>[u("p",SI,R(r.tracks.length)+" tracks",1),w(a,{tracks:r.tracks,uris:o.uris},null,8,["tracks","uris"]),w(l,{show:r.show_playlist_details_modal,playlist:r.playlist,uris:o.uris,onClose:t[2]||(t[2]=d=>r.show_playlist_details_modal=!1)},null,8,["show","playlist","uris"])]),_:1})}var EI=ge(gI,[["render",xI]]);const CI={name:"ModalDialogDirectory",props:["show","directory"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_expression('path starts with "'+this.directory.path+'" order by path asc',!1)},queue_add:function(){this.$emit("close"),G.queue_expression_add('path starts with "'+this.directory.path+'" order by path asc')},queue_add_next:function(){this.$emit("close"),G.queue_expression_add_next('path starts with "'+this.directory.path+'" order by path asc')}}},$I={key:0,class:"modal is-active"},AI={class:"modal-content fd-modal-card"},OI={class:"card"},TI={class:"card-content"},PI={class:"title is-4"},DI={class:"card-footer"},FI={class:"icon"},II=u("span",{class:"is-size-7"},"Add",-1),MI={class:"icon"},RI=u("span",{class:"is-size-7"},"Add Next",-1),LI={class:"icon"},NI=u("span",{class:"is-size-7"},"Play",-1);function VI(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",$I,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",AI,[u("div",OI,[u("div",TI,[u("p",PI,R(n.directory.path),1)]),u("footer",DI,[u("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",FI,[w(i,{name:"playlist-plus",size:"16"})]),II]),u("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",MI,[w(i,{name:"playlist-play",size:"16"})]),RI]),u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.play&&o.play(...a))},[u("span",LI,[w(i,{name:"play",size:"16"})]),NI])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var jI=ge(CI,[["render",VI]]);const BI={name:"ListDirectories",components:{ModalDialogDirectory:jI},props:["directories"],data(){return{show_details_modal:!1,selected_directory:{}}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"}},methods:{open_parent_directory:function(){this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))===""||this.$store.state.config.directories.includes(this.current_directory)?this.$router.push({path:"/files"}):this.$router.push({path:"/files",query:{directory:this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))}})},open_directory:function(e){this.$router.push({path:"/files",query:{directory:e.path}})},open_dialog:function(e){this.selected_directory=e,this.show_details_modal=!0}}},UI={class:"media-left fd-has-action"},HI={class:"icon"},zI=u("div",{class:"media-content fd-has-action is-clipped"},[u("h1",{class:"title is-6"},"..")],-1),qI={class:"media-right"},GI=["onClick"],WI={class:"media-left fd-has-action"},KI={class:"icon"},ZI={class:"media-content fd-has-action is-clipped"},YI={class:"title is-6"},JI={class:"subtitle is-7 has-text-grey-light"},XI={class:"media-right"},QI=["onClick"],e7={class:"icon has-text-dark"};function t7(e,t,n,s,r,o){const i=P("mdicon"),a=P("modal-dialog-directory");return E(),D(Ke,null,[e.$route.query.directory?(E(),D("div",{key:0,class:"media",onClick:t[0]||(t[0]=l=>o.open_parent_directory())},[u("figure",UI,[u("span",HI,[w(i,{name:"subdirectory-arrow-left",size:"16"})])]),zI,u("div",qI,[St(e.$slots,"actions")])])):Z("",!0),(E(!0),D(Ke,null,bt(n.directories,l=>(E(),D("div",{key:l.path,class:"media",onClick:c=>o.open_directory(l)},[u("figure",WI,[u("span",KI,[w(i,{name:"folder",size:"16"})])]),u("div",ZI,[u("h1",YI,R(l.path.substring(l.path.lastIndexOf("/")+1)),1),u("h2",JI,R(l.path),1)]),u("div",XI,[u("a",{onClick:pt(c=>o.open_dialog(l),["prevent","stop"])},[u("span",e7,[w(i,{name:"dots-vertical",size:"16"})])],8,QI)])],8,GI))),128)),(E(),Se(qs,{to:"#app"},[w(a,{show:r.show_details_modal,directory:r.selected_directory,onClose:t[1]||(t[1]=l=>r.show_details_modal=!1)},null,8,["show","directory"])]))],64)}var n7=ge(BI,[["render",t7]]);const ga={load:function(e){return e.query.directory?G.library_files(e.query.directory):Promise.resolve()},set:function(e,t){t?e.files=t.data:e.files={directories:e.$store.state.config.directories.map(n=>({path:n})),tracks:{items:[]},playlists:{items:[]}}}},s7={name:"PageFiles",components:{ContentWithHeading:ht,ListDirectories:n7,ListPlaylists:zd,ListTracks:$n},beforeRouteEnter(e,t,n){ga.load(e).then(s=>{n(r=>ga.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ga.load(e).then(r=>{ga.set(s,r),n()})},data(){return{files:{directories:[],tracks:{items:[]},playlists:{items:[]}}}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"},play_expression(){return'path starts with "'+this.current_directory+'" order by path asc'}},methods:{play:function(){G.player_play_expression(this.play_expression,!1)}}},r7=u("p",{class:"title is-4"},"Files",-1),o7={class:"title is-7 has-text-grey"},i7={class:"buttons is-centered"},a7={class:"icon"},l7={class:"icon"},u7=u("span",null,"Play",-1);function c7(e,t,n,s,r,o){const i=P("mdicon"),a=P("list-directories"),l=P("list-playlists"),c=P("list-tracks"),d=P("modal-dialog-directory"),h=P("content-with-heading");return E(),D("div",null,[w(h,null,{"heading-left":T(()=>[r7,u("p",o7,R(o.current_directory),1)]),"heading-right":T(()=>[u("div",i7,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>e.open_directory_dialog({path:o.current_directory}))},[u("span",a7,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[u("span",l7,[w(i,{name:"play",size:"16"})]),u7])])]),content:T(()=>[w(a,{directories:r.files.directories},null,8,["directories"]),w(l,{playlists:r.files.playlists.items},null,8,["playlists"]),w(c,{tracks:r.files.tracks.items,expression:o.play_expression,show_icon:!0},null,8,["tracks","expression"]),w(d,{show:e.show_directory_details_modal,directory:e.selected_directory,onClose:t[2]||(t[2]=f=>e.show_directory_details_modal=!1)},null,8,["show","directory"])]),_:1})])}var d7=ge(s7,[["render",c7]]);const va={load:function(e){return G.library_radio_streams()},set:function(e,t){e.tracks=t.data.tracks}},f7={name:"PageRadioStreams",components:{ContentWithHeading:ht,ListTracks:$n},beforeRouteEnter(e,t,n){va.load(e).then(s=>{n(r=>va.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;va.load(e).then(r=>{va.set(s,r),n()})},data(){return{tracks:{items:[]}}}},h7=u("p",{class:"title is-4"},"Radio",-1),m7={class:"heading has-text-centered-mobile"};function p7(e,t,n,s,r,o){const i=P("list-tracks"),a=P("content-with-heading");return E(),D("div",null,[w(a,null,{"heading-left":T(()=>[h7]),content:T(()=>[u("p",m7,R(r.tracks.total)+" tracks ",1),w(i,{tracks:r.tracks.items},null,8,["tracks"])]),_:1})])}var _7=ge(f7,[["render",p7]]);const g7={name:"ContentText"},v7={class:"section fd-content py-3"},y7={class:"container"},b7={class:"columns is-centered"},w7={class:"column is-four-fifths"};function k7(e,t,n,s,r,o){return E(),D("section",v7,[u("div",y7,[u("div",b7,[u("div",w7,[St(e.$slots,"content")])])])])}var bv=ge(g7,[["render",k7]]);const S7={name:"TabsSearch",props:["query"],computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},route_query:function(){return this.query?{type:"track,artist,album,playlist,audiobook,podcast",query:this.query,limit:3,offset:0}:null}},methods:{search_library:function(){this.$store.commit(uc,"/search/library"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})},search_spotify:function(){this.$store.commit(uc,"/search/spotify"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})}}},x7={key:0,class:"section fd-remove-padding-bottom"},E7={class:"container"},C7={class:"columns is-centered"},$7={class:"column is-four-fifths"},A7={class:"tabs is-centered is-small is-toggle is-toggle-rounded"},O7={class:"icon is-small"},T7=u("span",{class:""},"Library",-1),P7={class:"icon is-small"},D7=u("span",{class:""},"Spotify",-1);function F7(e,t,n,s,r,o){const i=P("mdicon");return o.spotify_enabled?(E(),D("section",x7,[u("div",E7,[u("div",C7,[u("div",$7,[u("div",A7,[u("ul",null,[u("li",{class:We({"is-active":e.$store.state.search_path==="/search/library"})},[u("a",{onClick:t[0]||(t[0]=(...a)=>o.search_library&&o.search_library(...a))},[u("span",O7,[w(i,{name:"bookshelf",size:"16"})]),T7])],2),u("li",{class:We({"is-active":e.$store.state.search_path==="/search/spotify"})},[u("a",{onClick:t[1]||(t[1]=(...a)=>o.search_spotify&&o.search_spotify(...a))},[u("span",P7,[w(i,{name:"spotify",size:"16"})]),D7])],2)])])])])])])):Z("",!0)}var wv=ge(S7,[["render",F7]]);const I7={name:"PageSearch",components:{ContentWithHeading:ht,ContentText:bv,TabsSearch:wv,ListTracks:$n,ListArtists:Vd,ListAlbums:os,ListPlaylists:zd,ListComposers:gv},data(){return{search_query:"",tracks:{items:[],total:0},artists:new rt,albums:new rt,composers:new rt,playlists:new rt,audiobooks:new rt,podcasts:new rt}},computed:{recent_searches(){return this.$store.state.recent_searches},show_tracks(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button(){return this.tracks.total>this.tracks.items.length},show_artists(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button(){return this.artists.total>this.artists.items.length},show_albums(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button(){return this.albums.total>this.albums.items.length},show_composers(){return this.$route.query.type&&this.$route.query.type.includes("composer")},show_all_composers_button(){return this.composers.total>this.composers.items.length},show_playlists(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button(){return this.playlists.total>this.playlists.items.length},show_audiobooks(){return this.$route.query.type&&this.$route.query.type.includes("audiobook")},show_all_audiobooks_button(){return this.audiobooks.total>this.audiobooks.items.length},show_podcasts(){return this.$route.query.type&&this.$route.query.type.includes("podcast")},show_all_podcasts_button(){return this.podcasts.total>this.podcasts.items.length},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},watch:{$route(e,t){this.search(e)}},mounted:function(){this.search(this.$route)},methods:{search:function(e){if(!e.query.query||e.query.query===""){this.search_query="",this.$refs.search_field.focus();return}this.search_query=e.query.query,this.searchMusic(e.query),this.searchAudiobooks(e.query),this.searchPodcasts(e.query),this.$store.commit(yd,e.query.query)},searchMusic:function(e){if(e.type.indexOf("track")<0&&e.type.indexOf("artist")<0&&e.type.indexOf("album")<0&&e.type.indexOf("playlist")<0)return;const t={type:e.type,media_kind:"music"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.query=e.query,e.limit&&(t.limit=e.limit,t.offset=e.offset),G.search(t).then(({data:n})=>{this.tracks=n.tracks?n.tracks:{items:[],total:0},this.artists=new rt(n.artists),this.albums=new rt(n.albums),this.composers=new rt(n.composers),this.playlists=new rt(n.playlists)})},searchAudiobooks:function(e){if(e.type.indexOf("audiobook")<0)return;const t={type:"album",media_kind:"audiobook"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.expression='((album includes "'+e.query+'" or artist includes "'+e.query+'") and media_kind is audiobook)',e.limit&&(t.limit=e.limit,t.offset=e.offset),G.search(t).then(({data:n})=>{this.audiobooks=new rt(n.albums)})},searchPodcasts:function(e){if(e.type.indexOf("podcast")<0)return;const t={type:"album",media_kind:"podcast"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.expression='((album includes "'+e.query+'" or artist includes "'+e.query+'") and media_kind is podcast)',e.limit&&(t.limit=e.limit,t.offset=e.offset),G.search(t).then(({data:n})=>{this.podcasts=new rt(n.albums)})},new_search:function(){!this.search_query||(this.$router.push({path:this.$store.state.search_path,query:{type:"track,artist,album,playlist,audiobook,podcast,composer",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks:function(){this.$router.push({path:"/search/library",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/library",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/library",query:{type:"album",query:this.$route.query.query}})},open_search_composers:function(){this.$router.push({path:"/search/library",query:{type:"tracks",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/library",query:{type:"playlist",query:this.$route.query.query}})},open_search_audiobooks:function(){this.$router.push({path:"/search/library",query:{type:"audiobook",query:this.$route.query.query}})},open_search_podcasts:function(){this.$router.push({path:"/search/library",query:{type:"podcast",query:this.$route.query.query}})},open_composer:function(e){this.$router.push({name:"ComposerAlbums",params:{composer:e.name}})},open_playlist:function(e){this.$router.push({path:"/playlists/"+e.id+"/tracks"})},open_recent_search:function(e){this.search_query=e,this.new_search()},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog:function(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_composer_dialog:function(e){this.selected_composer=e,this.show_composer_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},M7={class:"section fd-remove-padding-bottom"},R7={class:"container"},L7={class:"columns is-centered"},N7={class:"column is-four-fifths"},V7={class:"field"},j7={class:"control is-expanded has-icons-left"},B7={class:"icon is-left"},U7=u("p",{class:"help has-text-centered"},[$e(" Tip: you can search by a smart playlist query language "),u("a",{href:"https://github.com/owntone/owntone-server/blob/master/README_SMARTPL.md",target:"_blank"},"expression"),$e(" if you prefix it with "),u("code",null,"query:"),$e(". ")],-1),H7={class:"tags",style:{"margin-top":"16px"}},z7=["onClick"],q7=u("p",{class:"title is-4"},"Tracks",-1),G7={key:0,class:"level"},W7={class:"level-item"},K7=u("p",null,[u("i",null,"No tracks found")],-1),Z7=u("p",{class:"title is-4"},"Artists",-1),Y7={key:0,class:"level"},J7={class:"level-item"},X7=u("p",null,[u("i",null,"No artists found")],-1),Q7=u("p",{class:"title is-4"},"Albums",-1),eM={key:0,class:"level"},tM={class:"level-item"},nM=u("p",null,[u("i",null,"No albums found")],-1),sM=u("p",{class:"title is-4"},"Composers",-1),rM={key:0,class:"level"},oM={class:"level-item"},iM=u("p",null,[u("i",null,"No composers found")],-1),aM=u("p",{class:"title is-4"},"Playlists",-1),lM={key:0,class:"level"},uM={class:"level-item"},cM=u("p",null,[u("i",null,"No playlists found")],-1),dM=u("p",{class:"title is-4"},"Podcasts",-1),fM={key:0,class:"level"},hM={class:"level-item"},mM=u("p",null,[u("i",null,"No podcasts found")],-1),pM=u("p",{class:"title is-4"},"Audiobooks",-1),_M={key:0,class:"level"},gM={class:"level-item"},vM=u("p",null,[u("i",null,"No audiobooks found")],-1);function yM(e,t,n,s,r,o){const i=P("mdicon"),a=P("tabs-search"),l=P("list-tracks"),c=P("content-with-heading"),d=P("content-text"),h=P("list-artists"),f=P("list-albums"),m=P("list-composers"),p=P("list-playlists");return E(),D("div",null,[u("section",M7,[u("div",R7,[u("div",L7,[u("div",N7,[u("form",{onSubmit:t[1]||(t[1]=pt((..._)=>o.new_search&&o.new_search(..._),["prevent"]))},[u("div",V7,[u("p",j7,[wt(u("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=_=>r.search_query=_),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[en,r.search_query]]),u("span",B7,[w(i,{name:"magnify",size:"16"})])]),U7])],32),u("div",H7,[(E(!0),D(Ke,null,bt(o.recent_searches,_=>(E(),D("a",{key:_,class:"tag",onClick:g=>o.open_recent_search(_)},R(_),9,z7))),128))])])])])]),w(a,{query:r.search_query},null,8,["query"]),o.show_tracks&&r.tracks.total?(E(),Se(c,{key:0},{"heading-left":T(()=>[q7]),content:T(()=>[w(l,{tracks:r.tracks.items},null,8,["tracks"])]),footer:T(()=>[o.show_all_tracks_button?(E(),D("nav",G7,[u("p",W7,[u("a",{class:"button is-light is-small is-rounded",onClick:t[2]||(t[2]=(..._)=>o.open_search_tracks&&o.open_search_tracks(..._))},"Show all "+R(r.tracks.total.toLocaleString())+" tracks",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_tracks&&!r.tracks.total?(E(),Se(d,{key:1,class:"mt-6"},{content:T(()=>[K7]),_:1})):Z("",!0),o.show_artists&&r.artists.total?(E(),Se(c,{key:2},{"heading-left":T(()=>[Z7]),content:T(()=>[w(h,{artists:r.artists,hide_group_title:!0},null,8,["artists"])]),footer:T(()=>[o.show_all_artists_button?(E(),D("nav",Y7,[u("p",J7,[u("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(..._)=>o.open_search_artists&&o.open_search_artists(..._))},"Show all "+R(r.artists.total.toLocaleString())+" artists",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_artists&&!r.artists.total?(E(),Se(d,{key:3},{content:T(()=>[X7]),_:1})):Z("",!0),o.show_albums&&r.albums.total?(E(),Se(c,{key:4},{"heading-left":T(()=>[Q7]),content:T(()=>[w(f,{albums:r.albums,hide_group_title:!0},null,8,["albums"])]),footer:T(()=>[o.show_all_albums_button?(E(),D("nav",eM,[u("p",tM,[u("a",{class:"button is-light is-small is-rounded",onClick:t[4]||(t[4]=(..._)=>o.open_search_albums&&o.open_search_albums(..._))},"Show all "+R(r.albums.total.toLocaleString())+" albums",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_albums&&!r.albums.total?(E(),Se(d,{key:5},{content:T(()=>[nM]),_:1})):Z("",!0),o.show_composers&&r.composers.total?(E(),Se(c,{key:6},{"heading-left":T(()=>[sM]),content:T(()=>[w(m,{composers:r.composers},null,8,["composers"])]),footer:T(()=>[o.show_all_composers_button?(E(),D("nav",rM,[u("p",oM,[u("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(..._)=>o.open_search_composers&&o.open_search_composers(..._))},"Show all "+R(r.composers.total.toLocaleString())+" composers",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_composers&&!r.composers.total?(E(),Se(d,{key:7},{content:T(()=>[iM]),_:1})):Z("",!0),o.show_playlists&&r.playlists.total?(E(),Se(c,{key:8},{"heading-left":T(()=>[aM]),content:T(()=>[w(p,{playlists:r.playlists},null,8,["playlists"])]),footer:T(()=>[o.show_all_playlists_button?(E(),D("nav",lM,[u("p",uM,[u("a",{class:"button is-light is-small is-rounded",onClick:t[6]||(t[6]=(..._)=>o.open_search_playlists&&o.open_search_playlists(..._))},"Show all "+R(r.playlists.total.toLocaleString())+" playlists",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_playlists&&!r.playlists.total?(E(),Se(d,{key:9},{content:T(()=>[cM]),_:1})):Z("",!0),o.show_podcasts&&r.podcasts.total?(E(),Se(c,{key:10},{"heading-left":T(()=>[dM]),content:T(()=>[w(f,{albums:r.podcasts},null,8,["albums"])]),footer:T(()=>[o.show_all_podcasts_button?(E(),D("nav",fM,[u("p",hM,[u("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(..._)=>o.open_search_podcasts&&o.open_search_podcasts(..._))},"Show all "+R(r.podcasts.total.toLocaleString())+" podcasts",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_podcasts&&!r.podcasts.total?(E(),Se(d,{key:11},{content:T(()=>[mM]),_:1})):Z("",!0),o.show_audiobooks&&r.audiobooks.total?(E(),Se(c,{key:12},{"heading-left":T(()=>[pM]),content:T(()=>[w(f,{albums:r.audiobooks},null,8,["albums"])]),footer:T(()=>[o.show_all_audiobooks_button?(E(),D("nav",_M,[u("p",gM,[u("a",{class:"button is-light is-small is-rounded",onClick:t[8]||(t[8]=(..._)=>o.open_search_audiobooks&&o.open_search_audiobooks(..._))},"Show all "+R(r.audiobooks.total.toLocaleString())+" audiobooks",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_audiobooks&&!r.audiobooks.total?(E(),Se(d,{key:13},{content:T(()=>[vM]),_:1})):Z("",!0)])}var bM=ge(I7,[["render",yM]]);const wM={name:"PageAbout",data(){return{show_update_dropdown:!1,show_update_library:!1}},computed:{config(){return this.$store.state.config},library(){return this.$store.state.library}},methods:{onClickOutside(e){this.show_update_dropdown=!1},showUpdateDialog(){this.$store.commit(yi,!0)}}},kM={class:"section"},SM={class:"container"},xM={class:"columns is-centered"},EM={class:"column is-four-fifths has-text-centered-mobile"},CM={class:"heading"},$M=u("b",null,"OwnTone",-1),AM={class:"title is-4"},OM={class:"section"},TM={class:"container"},PM={class:"columns is-centered"},DM={class:"column is-four-fifths"},FM={class:"content"},IM={class:"level is-mobile"},MM=u("div",{class:"level-left"},[u("div",{class:"level-item"},[u("h2",{class:"title is-5"},"Library")])],-1),RM={class:"level-right"},LM={key:0},NM=u("a",{class:"button is-small is-loading"},"Update",-1),VM=[NM],jM={key:1},BM={class:"table"},UM=u("th",null,"Artists",-1),HM={class:"has-text-right"},zM=u("th",null,"Albums",-1),qM={class:"has-text-right"},GM=u("th",null,"Tracks",-1),WM={class:"has-text-right"},KM=u("th",null,"Total playtime",-1),ZM={class:"has-text-right"},YM=u("th",null,"Library updated",-1),JM={class:"has-text-right"},XM={class:"has-text-grey"},QM=u("th",null,"Uptime",-1),e9={class:"has-text-right"},t9={class:"has-text-grey"},n9={class:"section"},s9={class:"container"},r9={class:"columns is-centered"},o9={class:"column is-four-fifths"},i9={class:"content has-text-centered-mobile"},a9={class:"is-size-7"},l9=Hp('<p class="is-size-7"> Web interface built with <a href="http://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> and <a href="https://github.com/owntone/owntone-server/network/dependencies">more</a>. </p>',1);function u9(e,t,n,s,r,o){return E(),D("div",null,[u("section",kM,[u("div",SM,[u("div",xM,[u("div",EM,[u("p",CM,[$M,$e(" - version "+R(o.config.version),1)]),u("h1",AM,R(o.config.library_name),1)])])])]),u("section",OM,[u("div",TM,[u("div",PM,[u("div",DM,[u("div",FM,[u("nav",IM,[MM,u("div",RM,[o.library.updating?(E(),D("div",LM,VM)):(E(),D("div",jM,[u("a",{class:"button is-small",onClick:t[0]||(t[0]=i=>o.showUpdateDialog())},"Update")]))])]),u("table",BM,[u("tbody",null,[u("tr",null,[UM,u("td",HM,R(e.$filters.number(o.library.artists)),1)]),u("tr",null,[zM,u("td",qM,R(e.$filters.number(o.library.albums)),1)]),u("tr",null,[GM,u("td",WM,R(e.$filters.number(o.library.songs)),1)]),u("tr",null,[KM,u("td",ZM,R(e.$filters.durationInDays(o.library.db_playtime*1e3)),1)]),u("tr",null,[YM,u("td",JM,[$e(R(e.$filters.timeFromNow(o.library.updated_at))+" ago ",1),u("span",XM,"("+R(e.$filters.datetime(o.library.updated_at))+")",1)])]),u("tr",null,[QM,u("td",e9,[$e(R(e.$filters.timeFromNow(o.library.started_at,!0))+" ",1),u("span",t9,"("+R(e.$filters.datetime(o.library.started_at))+")",1)])])])])])])])])]),u("section",n9,[u("div",s9,[u("div",r9,[u("div",o9,[u("div",i9,[u("p",a9," Compiled with support for "+R(o.config.buildoptions.join(", "))+". ",1),l9])])])])])])}var c9=ge(wM,[["render",u9]]);const d9={name:"SpotifyListItemAlbum",props:["album"]},f9={class:"media"},h9={key:0,class:"media-left fd-has-action"},m9={class:"media-content fd-has-action is-clipped"},p9={class:"title is-6"},_9={class:"subtitle is-7 has-text-grey"},g9={class:"subtitle is-7 has-text-grey has-text-weight-normal"},v9={class:"media-right"};function y9(e,t,n,s,r,o){return E(),D("div",f9,[e.$slots.artwork?(E(),D("div",h9,[St(e.$slots,"artwork")])):Z("",!0),u("div",m9,[u("h1",p9,R(n.album.name),1),u("h2",_9,[u("b",null,R(n.album.artists[0].name),1)]),u("h2",g9," ("+R(n.album.album_type)+", "+R(e.$filters.date(n.album.release_date))+") ",1)]),u("div",v9,[St(e.$slots,"actions")])])}var Vl=ge(d9,[["render",y9]]);const b9={name:"SpotifyListItemPlaylist",props:["playlist"],methods:{open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},w9={class:"media"},k9={class:"title is-6"},S9={class:"subtitle is-7"},x9={class:"media-right"};function E9(e,t,n,s,r,o){return E(),D("div",w9,[u("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_playlist&&o.open_playlist(...i))},[u("h1",k9,R(n.playlist.name),1),u("h2",S9,R(n.playlist.owner.display_name),1)]),u("div",x9,[St(e.$slots,"actions")])])}var qd=ge(b9,[["render",E9]]);const C9={name:"SpotifyModalDialogAlbum",props:["show","album"],emits:["close"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{play:function(){this.$emit("close"),G.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.album.uri)},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}}},$9={key:0,class:"modal is-active"},A9={class:"modal-content fd-modal-card"},O9={class:"card"},T9={class:"card-content"},P9={class:"image is-square fd-has-margin-bottom"},D9=["src"],F9={class:"title is-4"},I9={class:"content is-small"},M9=u("span",{class:"heading"},"Album artist",-1),R9=u("span",{class:"heading"},"Release date",-1),L9={class:"title is-6"},N9=u("span",{class:"heading"},"Type",-1),V9={class:"title is-6"},j9={class:"card-footer"},B9={class:"icon"},U9=u("span",{class:"is-size-7"},"Add",-1),H9={class:"icon"},z9=u("span",{class:"is-size-7"},"Add Next",-1),q9={class:"icon"},G9=u("span",{class:"is-size-7"},"Play",-1);function W9(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",$9,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",A9,[u("div",O9,[u("div",T9,[wt(u("figure",P9,[u("img",{src:o.artwork_url,class:"fd-has-shadow",onLoad:t[1]||(t[1]=(...a)=>o.artwork_loaded&&o.artwork_loaded(...a)),onError:t[2]||(t[2]=(...a)=>o.artwork_error&&o.artwork_error(...a))},null,40,D9)],512),[[Qr,r.artwork_visible]]),u("p",F9,[u("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a))},R(n.album.name),1)]),u("div",I9,[u("p",null,[M9,u("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a))},R(n.album.artists[0].name),1)]),u("p",null,[R9,u("span",L9,R(e.$filters.date(n.album.release_date)),1)]),u("p",null,[N9,u("span",V9,R(n.album.album_type),1)])])]),u("footer",j9,[u("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",B9,[w(i,{name:"playlist-plus",size:"16"})]),U9]),u("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",H9,[w(i,{name:"playlist-play",size:"16"})]),z9]),u("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[u("span",q9,[w(i,{name:"play",size:"16"})]),G9])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Si=ge(C9,[["render",W9]]);const K9={name:"SpotifyModalDialogPlaylist",props:["show","playlist"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.playlist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.playlist.uri)},open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},Z9={key:0,class:"modal is-active"},Y9={class:"modal-content fd-modal-card"},J9={class:"card"},X9={class:"card-content"},Q9={class:"title is-4"},eR={class:"content is-small"},tR=u("span",{class:"heading"},"Owner",-1),nR={class:"title is-6"},sR=u("span",{class:"heading"},"Tracks",-1),rR={class:"title is-6"},oR=u("span",{class:"heading"},"Path",-1),iR={class:"title is-6"},aR={class:"card-footer"},lR={class:"icon"},uR=u("span",{class:"is-size-7"},"Add",-1),cR={class:"icon"},dR=u("span",{class:"is-size-7"},"Add Next",-1),fR={class:"icon"},hR=u("span",{class:"is-size-7"},"Play",-1);function mR(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",Z9,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",Y9,[u("div",J9,[u("div",X9,[u("p",Q9,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a))},R(n.playlist.name),1)]),u("div",eR,[u("p",null,[tR,u("span",nR,R(n.playlist.owner.display_name),1)]),u("p",null,[sR,u("span",rR,R(n.playlist.tracks.total),1)]),u("p",null,[oR,u("span",iR,R(n.playlist.uri),1)])])]),u("footer",aR,[u("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",lR,[w(i,{name:"playlist-plus",size:"16"})]),uR]),u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",cR,[w(i,{name:"playlist-play",size:"16"})]),dR]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[u("span",fR,[w(i,{name:"play",size:"16"})]),hR])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var jl=ge(K9,[["render",mR]]);const ya={load:function(e){if(at.state.spotify_new_releases.length>0&&at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new Kn;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getNewReleases({country:at.state.spotify.webapi_country,limit:50}),t.getFeaturedPlaylists({country:at.state.spotify.webapi_country,limit:50})])},set:function(e,t){t&&(at.commit(gd,t[0].albums.items),at.commit(vd,t[1].playlists.items))}},pR={name:"SpotifyPageBrowse",components:{ContentWithHeading:ht,TabsMusic:rs,SpotifyListItemAlbum:Vl,SpotifyListItemPlaylist:qd,SpotifyModalDialogAlbum:Si,SpotifyModalDialogPlaylist:jl,CoverArtwork:ys},beforeRouteEnter(e,t,n){ya.load(e).then(s=>{n(r=>ya.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ya.load(e).then(r=>{ya.set(s,r),n()})},data(){return{show_album_details_modal:!1,selected_album:{},show_playlist_details_modal:!1,selected_playlist:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases.slice(0,3)},featured_playlists(){return this.$store.state.spotify_featured_playlists.slice(0,3)},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},_R={class:"fd-page-with-tabs"},gR=u("p",{class:"title is-4"},"New Releases",-1),vR={class:"image is-64x64 fd-has-shadow fd-has-action"},yR=["onClick"],bR={class:"icon has-text-dark"},wR={class:"level"},kR={class:"level-item"},SR=$e(" Show more "),xR=u("p",{class:"title is-4"},"Featured Playlists",-1),ER=["onClick"],CR={class:"icon has-text-dark"},$R={class:"level"},AR={class:"level-item"},OR=$e(" Show more ");function TR(e,t,n,s,r,o){const i=P("tabs-music"),a=P("cover-artwork"),l=P("mdicon"),c=P("spotify-list-item-album"),d=P("spotify-modal-dialog-album"),h=P("router-link"),f=P("content-with-heading"),m=P("spotify-list-item-playlist"),p=P("spotify-modal-dialog-playlist");return E(),D("div",_R,[w(i),w(f,null,{"heading-left":T(()=>[gR]),content:T(()=>[(E(!0),D(Ke,null,bt(o.new_releases,_=>(E(),Se(c,{key:_.id,album:_,onClick:g=>o.open_album(_)},vi({actions:T(()=>[u("a",{onClick:pt(g=>o.open_album_dialog(_),["prevent","stop"])},[u("span",bR,[w(l,{name:"dots-vertical",size:"16"})])],8,yR)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:T(()=>[u("p",vR,[w(a,{artwork_url:o.artwork_url(_),artist:_.artist,album:_.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),w(d,{show:r.show_album_details_modal,album:r.selected_album,onClose:t[0]||(t[0]=_=>r.show_album_details_modal=!1)},null,8,["show","album"])]),footer:T(()=>[u("nav",wR,[u("p",kR,[w(h,{to:"/music/spotify/new-releases",class:"button is-light is-small is-rounded"},{default:T(()=>[SR]),_:1})])])]),_:1}),w(f,null,{"heading-left":T(()=>[xR]),content:T(()=>[(E(!0),D(Ke,null,bt(o.featured_playlists,_=>(E(),Se(m,{key:_.id,playlist:_},{actions:T(()=>[u("a",{onClick:pt(g=>o.open_playlist_dialog(_),["prevent","stop"])},[u("span",CR,[w(l,{name:"dots-vertical",size:"16"})])],8,ER)]),_:2},1032,["playlist"]))),128)),w(p,{show:r.show_playlist_details_modal,playlist:r.selected_playlist,onClose:t[1]||(t[1]=_=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:T(()=>[u("nav",$R,[u("p",AR,[w(h,{to:"/music/spotify/featured-playlists",class:"button is-light is-small is-rounded"},{default:T(()=>[OR]),_:1})])])]),_:1})])}var PR=ge(pR,[["render",TR]]);const ba={load:function(e){if(at.state.spotify_new_releases.length>0)return Promise.resolve();const t=new Kn;return t.setAccessToken(at.state.spotify.webapi_token),t.getNewReleases({country:at.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&at.commit(gd,t.albums.items)}},DR={name:"SpotifyPageBrowseNewReleases",components:{ContentWithHeading:ht,TabsMusic:rs,SpotifyListItemAlbum:Vl,SpotifyModalDialogAlbum:Si,CoverArtwork:ys},beforeRouteEnter(e,t,n){ba.load(e).then(s=>{n(r=>ba.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ba.load(e).then(r=>{ba.set(s,r),n()})},data(){return{show_album_details_modal:!1,selected_album:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},FR={class:"fd-page-with-tabs"},IR=u("p",{class:"title is-4"},"New Releases",-1),MR={class:"image is-64x64 fd-has-shadow fd-has-action"},RR=["onClick"],LR={class:"icon has-text-dark"};function NR(e,t,n,s,r,o){const i=P("tabs-music"),a=P("cover-artwork"),l=P("mdicon"),c=P("spotify-list-item-album"),d=P("spotify-modal-dialog-album"),h=P("content-with-heading");return E(),D("div",FR,[w(i),w(h,null,{"heading-left":T(()=>[IR]),content:T(()=>[(E(!0),D(Ke,null,bt(o.new_releases,f=>(E(),Se(c,{key:f.id,album:f,onClick:m=>o.open_album(f)},vi({actions:T(()=>[u("a",{onClick:pt(m=>o.open_album_dialog(f),["prevent","stop"])},[u("span",LR,[w(l,{name:"dots-vertical",size:"16"})])],8,RR)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:T(()=>[u("p",MR,[w(a,{artwork_url:o.artwork_url(f),artist:f.artist,album:f.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),w(d,{show:r.show_album_details_modal,album:r.selected_album,onClose:t[0]||(t[0]=f=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var VR=ge(DR,[["render",NR]]);const wa={load:function(e){if(at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new Kn;t.setAccessToken(at.state.spotify.webapi_token),t.getFeaturedPlaylists({country:at.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&at.commit(vd,t.playlists.items)}},jR={name:"SpotifyPageBrowseFeaturedPlaylists",components:{ContentWithHeading:ht,TabsMusic:rs,SpotifyListItemPlaylist:qd,SpotifyModalDialogPlaylist:jl},beforeRouteEnter(e,t,n){wa.load(e).then(s=>{n(r=>wa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;wa.load(e).then(r=>{wa.set(s,r),n()})},data(){return{show_playlist_details_modal:!1,selected_playlist:{}}},computed:{featured_playlists(){return this.$store.state.spotify_featured_playlists}},methods:{open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},BR={class:"fd-page-with-tabs"},UR=u("p",{class:"title is-4"},"Featured Playlists",-1),HR=["onClick"],zR={class:"icon has-text-dark"};function qR(e,t,n,s,r,o){const i=P("tabs-music"),a=P("mdicon"),l=P("spotify-list-item-playlist"),c=P("spotify-modal-dialog-playlist"),d=P("content-with-heading");return E(),D("div",BR,[w(i),w(d,null,{"heading-left":T(()=>[UR]),content:T(()=>[(E(!0),D(Ke,null,bt(o.featured_playlists,h=>(E(),Se(l,{key:h.id,playlist:h},{actions:T(()=>[u("a",{onClick:pt(f=>o.open_playlist_dialog(h),["prevent","stop"])},[u("span",zR,[w(a,{name:"dots-vertical",size:"16"})])],8,HR)]),_:2},1032,["playlist"]))),128)),w(c,{show:r.show_playlist_details_modal,playlist:r.selected_playlist,onClose:t[0]||(t[0]=h=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var GR=ge(jR,[["render",qR]]);const WR={name:"SpotifyModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.artist.uri)},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},KR={key:0,class:"modal is-active"},ZR={class:"modal-content fd-modal-card"},YR={class:"card"},JR={class:"card-content"},XR={class:"title is-4"},QR={class:"content is-small"},eL=u("span",{class:"heading"},"Popularity / Followers",-1),tL={class:"title is-6"},nL=u("span",{class:"heading"},"Genres",-1),sL={class:"title is-6"},rL={class:"card-footer"},oL={class:"icon"},iL=u("span",{class:"is-size-7"},"Add",-1),aL={class:"icon"},lL=u("span",{class:"is-size-7"},"Add Next",-1),uL={class:"icon"},cL=u("span",{class:"is-size-7"},"Play",-1);function dL(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",KR,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",ZR,[u("div",YR,[u("div",JR,[u("p",XR,[u("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a))},R(n.artist.name),1)]),u("div",QR,[u("p",null,[eL,u("span",tL,R(n.artist.popularity)+" / "+R(n.artist.followers.total),1)]),u("p",null,[nL,u("span",sL,R(n.artist.genres.join(", ")),1)])])]),u("footer",rL,[u("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",oL,[w(i,{name:"playlist-plus",size:"16"})]),iL]),u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",aL,[w(i,{name:"playlist-play",size:"16"})]),lL]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[u("span",uL,[w(i,{name:"play",size:"16"})]),cL])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var kv=ge(WR,[["render",dL]]),Bl={exports:{}};/*!
|
|
*
|
|
* @ts-pro/vue-eternal-loading v1.1.1
|
|
* (c) 2021 Oleksandr Havrashenko
|
|
* MIT License
|
|
*
|
|
*/(function(e,t){(function(n,s){e.exports=s(Td)})(typeof self!="undefined"?self:tn,function(n){return function(s){var r={};function o(i){if(r[i])return r[i].exports;var a=r[i]={i,l:!1,exports:{}};return s[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=s,o.c=r,o.d=function(i,a,l){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var c in i)o.d(l,c,function(d){return i[d]}.bind(null,c));return l},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s="fae3")}({"00ee":function(s,r,o){var i=o("b622"),a=i("toStringTag"),l={};l[a]="z",s.exports=String(l)==="[object z]"},"0366":function(s,r,o){var i=o("1c0b");s.exports=function(a,l,c){if(i(a),l===void 0)return a;switch(c){case 0:return function(){return a.call(l)};case 1:return function(d){return a.call(l,d)};case 2:return function(d,h){return a.call(l,d,h)};case 3:return function(d,h,f){return a.call(l,d,h,f)}}return function(){return a.apply(l,arguments)}}},"057f":function(s,r,o){var i=o("fc6a"),a=o("241c").f,l={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(h){try{return a(h)}catch{return c.slice()}};s.exports.f=function(h){return c&&l.call(h)=="[object Window]"?d(h):a(i(h))}},"06cf":function(s,r,o){var i=o("83ab"),a=o("d1e7"),l=o("5c6c"),c=o("fc6a"),d=o("c04e"),h=o("5135"),f=o("0cfb"),m=Object.getOwnPropertyDescriptor;r.f=i?m:function(p,_){if(p=c(p),_=d(_,!0),f)try{return m(p,_)}catch{}if(h(p,_))return l(!a.f.call(p,_),p[_])}},"0cfb":function(s,r,o){var i=o("83ab"),a=o("d039"),l=o("cc12");s.exports=!i&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(s,r,o){var i=o("d066");s.exports=i("document","documentElement")},"1c0b":function(s,r){s.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(s,r,o){var i=o("b622"),a=i("iterator"),l=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){l=!0}};d[a]=function(){return this},Array.from(d,function(){throw 2})}catch{}s.exports=function(h,f){if(!f&&!l)return!1;var m=!1;try{var p={};p[a]=function(){return{next:function(){return{done:m=!0}}}},h(p)}catch{}return m}},"1d80":function(s,r){s.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(s,r,o){var i=o("d039"),a=o("b622"),l=o("2d00"),c=a("species");s.exports=function(d){return l>=51||!i(function(){var h=[],f=h.constructor={};return f[c]=function(){return{foo:1}},h[d](Boolean).foo!==1})}},"23cb":function(s,r,o){var i=o("a691"),a=Math.max,l=Math.min;s.exports=function(c,d){var h=i(c);return h<0?a(h+d,0):l(h,d)}},"23e7":function(s,r,o){var i=o("da84"),a=o("06cf").f,l=o("9112"),c=o("6eeb"),d=o("ce4e"),h=o("e893"),f=o("94ca");s.exports=function(m,p){var _,g,y,b,S,x,C=m.target,A=m.global,M=m.stat;if(g=A?i:M?i[C]||d(C,{}):(i[C]||{}).prototype,g)for(y in p){if(S=p[y],m.noTargetGet?(x=a(g,y),b=x&&x.value):b=g[y],_=f(A?y:C+(M?".":"#")+y,m.forced),!_&&b!==void 0){if(typeof S==typeof b)continue;h(S,b)}(m.sham||b&&b.sham)&&l(S,"sham",!0),c(g,y,S,m)}}},"241c":function(s,r,o){var i=o("ca84"),a=o("7839"),l=a.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(c){return i(c,l)}},"2a62":function(s,r,o){var i=o("825a");s.exports=function(a){var l=a.return;if(l!==void 0)return i(l.call(a)).value}},"2d00":function(s,r,o){var i,a,l=o("da84"),c=o("342f"),d=l.process,h=d&&d.versions,f=h&&h.v8;f?(i=f.split("."),a=i[0]<4?1:i[0]+i[1]):c&&(i=c.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=c.match(/Chrome\/(\d+)/),i&&(a=i[1]))),s.exports=a&&+a},"342f":function(s,r,o){var i=o("d066");s.exports=i("navigator","userAgent")||""},"35a1":function(s,r,o){var i=o("f5df"),a=o("3f8c"),l=o("b622"),c=l("iterator");s.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||a[i(d)]}},"37e8":function(s,r,o){var i=o("83ab"),a=o("9bf2"),l=o("825a"),c=o("df75");s.exports=i?Object.defineProperties:function(d,h){l(d);for(var f,m=c(h),p=m.length,_=0;p>_;)a.f(d,f=m[_++],h[f]);return d}},"3bbe":function(s,r,o){var i=o("861d");s.exports=function(a){if(!i(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(s,r,o){var i=o("6547").charAt,a=o("69f3"),l=o("7dd0"),c="String Iterator",d=a.set,h=a.getterFor(c);l(String,"String",function(f){d(this,{type:c,string:String(f),index:0})},function(){var f,m=h(this),p=m.string,_=m.index;return _>=p.length?{value:void 0,done:!0}:(f=i(p,_),m.index+=f.length,{value:f,done:!1})})},"3f8c":function(s,r){s.exports={}},"428f":function(s,r,o){var i=o("da84");s.exports=i},"44ad":function(s,r,o){var i=o("d039"),a=o("c6b6"),l="".split;s.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return a(c)=="String"?l.call(c,""):Object(c)}:Object},"44d2":function(s,r,o){var i=o("b622"),a=o("7c73"),l=o("9bf2"),c=i("unscopables"),d=Array.prototype;d[c]==null&&l.f(d,c,{configurable:!0,value:a(null)}),s.exports=function(h){d[c][h]=!0}},4930:function(s,r,o){var i=o("2d00"),a=o("d039");s.exports=!!Object.getOwnPropertySymbols&&!a(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&i&&i<41})},"4d64":function(s,r,o){var i=o("fc6a"),a=o("50c4"),l=o("23cb"),c=function(d){return function(h,f,m){var p,_=i(h),g=a(_.length),y=l(m,g);if(d&&f!=f){for(;g>y;)if(p=_[y++],p!=p)return!0}else for(;g>y;y++)if((d||y in _)&&_[y]===f)return d||y||0;return!d&&-1}};s.exports={includes:c(!0),indexOf:c(!1)}},"4df4":function(s,r,o){var i=o("0366"),a=o("7b0b"),l=o("9bdd"),c=o("e95a"),d=o("50c4"),h=o("8418"),f=o("35a1");s.exports=function(m){var p,_,g,y,b,S,x=a(m),C=typeof this=="function"?this:Array,A=arguments.length,M=A>1?arguments[1]:void 0,j=M!==void 0,O=f(x),V=0;if(j&&(M=i(M,A>2?arguments[2]:void 0,2)),O==null||C==Array&&c(O))for(p=d(x.length),_=new C(p);p>V;V++)S=j?M(x[V],V):x[V],h(_,V,S);else for(y=O.call(x),b=y.next,_=new C;!(g=b.call(y)).done;V++)S=j?l(y,M,[g.value,V],!0):g.value,h(_,V,S);return _.length=V,_}},"50c4":function(s,r,o){var i=o("a691"),a=Math.min;s.exports=function(l){return l>0?a(i(l),9007199254740991):0}},5135:function(s,r,o){var i=o("7b0b"),a={}.hasOwnProperty;s.exports=Object.hasOwn||function(l,c){return a.call(i(l),c)}},5692:function(s,r,o){var i=o("c430"),a=o("c6cd");(s.exports=function(l,c){return a[l]||(a[l]=c!==void 0?c:{})})("versions",[]).push({version:"3.15.2",mode:i?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(s,r,o){var i=o("d066"),a=o("241c"),l=o("7418"),c=o("825a");s.exports=i("Reflect","ownKeys")||function(d){var h=a.f(c(d)),f=l.f;return f?h.concat(f(d)):h}},"5c6c":function(s,r){s.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},6547:function(s,r,o){var i=o("a691"),a=o("1d80"),l=function(c){return function(d,h){var f,m,p=String(a(d)),_=i(h),g=p.length;return _<0||_>=g?c?"":void 0:(f=p.charCodeAt(_),f<55296||f>56319||_+1===g||(m=p.charCodeAt(_+1))<56320||m>57343?c?p.charAt(_):f:c?p.slice(_,_+2):m-56320+(f-55296<<10)+65536)}};s.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(s,r,o){var i=o("861d"),a=o("e8b5"),l=o("b622"),c=l("species");s.exports=function(d,h){var f;return a(d)&&(f=d.constructor,typeof f!="function"||f!==Array&&!a(f.prototype)?i(f)&&(f=f[c],f===null&&(f=void 0)):f=void 0),new(f===void 0?Array:f)(h===0?0:h)}},"69f3":function(s,r,o){var i,a,l,c=o("7f9a"),d=o("da84"),h=o("861d"),f=o("9112"),m=o("5135"),p=o("c6cd"),_=o("f772"),g=o("d012"),y="Object already initialized",b=d.WeakMap,S=function(V){return l(V)?a(V):i(V,{})},x=function(V){return function(q){var F;if(!h(q)||(F=a(q)).type!==V)throw TypeError("Incompatible receiver, "+V+" required");return F}};if(c||p.state){var C=p.state||(p.state=new b),A=C.get,M=C.has,j=C.set;i=function(V,q){if(M.call(C,V))throw new TypeError(y);return q.facade=V,j.call(C,V,q),q},a=function(V){return A.call(C,V)||{}},l=function(V){return M.call(C,V)}}else{var O=_("state");g[O]=!0,i=function(V,q){if(m(V,O))throw new TypeError(y);return q.facade=V,f(V,O,q),q},a=function(V){return m(V,O)?V[O]:{}},l=function(V){return m(V,O)}}s.exports={set:i,get:a,has:l,enforce:S,getterFor:x}},"6eeb":function(s,r,o){var i=o("da84"),a=o("9112"),l=o("5135"),c=o("ce4e"),d=o("8925"),h=o("69f3"),f=h.get,m=h.enforce,p=String(String).split("String");(s.exports=function(_,g,y,b){var S,x=!!b&&!!b.unsafe,C=!!b&&!!b.enumerable,A=!!b&&!!b.noTargetGet;typeof y=="function"&&(typeof g!="string"||l(y,"name")||a(y,"name",g),S=m(y),S.source||(S.source=p.join(typeof g=="string"?g:""))),_!==i?(x?!A&&_[g]&&(C=!0):delete _[g],C?_[g]=y:a(_,g,y)):C?_[g]=y:c(g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d(this)})},7418:function(s,r){r.f=Object.getOwnPropertySymbols},"746f":function(s,r,o){var i=o("428f"),a=o("5135"),l=o("e538"),c=o("9bf2").f;s.exports=function(d){var h=i.Symbol||(i.Symbol={});a(h,d)||c(h,d,{value:l.f(d)})}},7839:function(s,r){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(s,r,o){var i=o("1d80");s.exports=function(a){return Object(i(a))}},"7c73":function(s,r,o){var i,a=o("825a"),l=o("37e8"),c=o("7839"),d=o("d012"),h=o("1be4"),f=o("cc12"),m=o("f772"),p=">",_="<",g="prototype",y="script",b=m("IE_PROTO"),S=function(){},x=function(j){return _+y+p+j+_+"/"+y+p},C=function(j){j.write(x("")),j.close();var O=j.parentWindow.Object;return j=null,O},A=function(){var j,O=f("iframe"),V="java"+y+":";return O.style.display="none",h.appendChild(O),O.src=String(V),j=O.contentWindow.document,j.open(),j.write(x("document.F=Object")),j.close(),j.F},M=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch{}M=i?C(i):A();for(var j=c.length;j--;)delete M[g][c[j]];return M()};d[b]=!0,s.exports=Object.create||function(j,O){var V;return j!==null?(S[g]=a(j),V=new S,S[g]=null,V[b]=j):V=M(),O===void 0?V:l(V,O)}},"7dd0":function(s,r,o){var i=o("23e7"),a=o("9ed3"),l=o("e163"),c=o("d2bb"),d=o("d44e"),h=o("9112"),f=o("6eeb"),m=o("b622"),p=o("c430"),_=o("3f8c"),g=o("ae93"),y=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,S=m("iterator"),x="keys",C="values",A="entries",M=function(){return this};s.exports=function(j,O,V,q,F,B,W){a(V,O,q);var ue,te,ae,ve=function(U){if(U===F&&ce)return ce;if(!b&&U in me)return me[U];switch(U){case x:return function(){return new V(this,U)};case C:return function(){return new V(this,U)};case A:return function(){return new V(this,U)}}return function(){return new V(this)}},Le=O+" Iterator",qe=!1,me=j.prototype,Y=me[S]||me["@@iterator"]||F&&me[F],ce=!b&&Y||ve(F),we=O=="Array"&&me.entries||Y;if(we&&(ue=l(we.call(new j)),y!==Object.prototype&&ue.next&&(p||l(ue)===y||(c?c(ue,y):typeof ue[S]!="function"&&h(ue,S,M)),d(ue,Le,!0,!0),p&&(_[Le]=M))),F==C&&Y&&Y.name!==C&&(qe=!0,ce=function(){return Y.call(this)}),p&&!W||me[S]===ce||h(me,S,ce),_[O]=ce,F)if(te={values:ve(C),keys:B?ce:ve(x),entries:ve(A)},W)for(ae in te)(b||qe||!(ae in me))&&f(me,ae,te[ae]);else i({target:O,proto:!0,forced:b||qe},te);return te}},"7f9a":function(s,r,o){var i=o("da84"),a=o("8925"),l=i.WeakMap;s.exports=typeof l=="function"&&/native code/.test(a(l))},"825a":function(s,r,o){var i=o("861d");s.exports=function(a){if(!i(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(s,r,o){var i=o("d039");s.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(s,r,o){var i=o("c04e"),a=o("9bf2"),l=o("5c6c");s.exports=function(c,d,h){var f=i(d);f in c?a.f(c,f,l(0,h)):c[f]=h}},"861d":function(s,r){s.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(s,r,o){var i,a,l;(function(c,d){a=[],i=d,l=typeof i=="function"?i.apply(r,a):i,l===void 0||(s.exports=l)})(typeof self!="undefined"&&self,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(A){var h,f,m,p=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,_=/@([^@]*):(\d+):(\d+)\s*$/gi,g=p.exec(A.stack)||_.exec(A.stack),y=g&&g[1]||!1,b=g&&g[2]||!1,S=document.location.href.replace(document.location.hash,""),x=document.getElementsByTagName("script");y===S&&(h=document.documentElement.outerHTML,f=new RegExp("(?:[^\\n]+?\\n){0,"+(b-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),m=h.replace(f,"$1").trim());for(var C=0;C<x.length;C++)if(x[C].readyState==="interactive"||x[C].src===y||y===S&&x[C].innerHTML&&x[C].innerHTML.trim()===m)return x[C];return null}}return c})},8925:function(s,r,o){var i=o("c6cd"),a=Function.toString;typeof i.inspectSource!="function"&&(i.inspectSource=function(l){return a.call(l)}),s.exports=i.inspectSource},"8bbf":function(s,r){s.exports=n},"90e3":function(s,r){var o=0,i=Math.random();s.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++o+i).toString(36)}},9112:function(s,r,o){var i=o("83ab"),a=o("9bf2"),l=o("5c6c");s.exports=i?function(c,d,h){return a.f(c,d,l(1,h))}:function(c,d,h){return c[d]=h,c}},"94ca":function(s,r,o){var i=o("d039"),a=/#|\.prototype\./,l=function(m,p){var _=d[c(m)];return _==f||_!=h&&(typeof p=="function"?i(p):!!p)},c=l.normalize=function(m){return String(m).replace(a,".").toLowerCase()},d=l.data={},h=l.NATIVE="N",f=l.POLYFILL="P";s.exports=l},"9bdd":function(s,r,o){var i=o("825a"),a=o("2a62");s.exports=function(l,c,d,h){try{return h?c(i(d)[0],d[1]):c(d)}catch(f){throw a(l),f}}},"9bf2":function(s,r,o){var i=o("83ab"),a=o("0cfb"),l=o("825a"),c=o("c04e"),d=Object.defineProperty;r.f=i?d:function(h,f,m){if(l(h),f=c(f,!0),l(m),a)try{return d(h,f,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(h[f]=m.value),h}},"9ed3":function(s,r,o){var i=o("ae93").IteratorPrototype,a=o("7c73"),l=o("5c6c"),c=o("d44e"),d=o("3f8c"),h=function(){return this};s.exports=function(f,m,p){var _=m+" Iterator";return f.prototype=a(i,{next:l(1,p)}),c(f,_,!1,!0),d[_]=h,f}},a4d3:function(s,r,o){var i=o("23e7"),a=o("da84"),l=o("d066"),c=o("c430"),d=o("83ab"),h=o("4930"),f=o("fdbf"),m=o("d039"),p=o("5135"),_=o("e8b5"),g=o("861d"),y=o("825a"),b=o("7b0b"),S=o("fc6a"),x=o("c04e"),C=o("5c6c"),A=o("7c73"),M=o("df75"),j=o("241c"),O=o("057f"),V=o("7418"),q=o("06cf"),F=o("9bf2"),B=o("d1e7"),W=o("9112"),ue=o("6eeb"),te=o("5692"),ae=o("f772"),ve=o("d012"),Le=o("90e3"),qe=o("b622"),me=o("e538"),Y=o("746f"),ce=o("d44e"),we=o("69f3"),U=o("b727").forEach,re=ae("hidden"),ne="Symbol",be="prototype",Ue=qe("toPrimitive"),Me=we.set,Ae=we.getterFor(ne),De=Object[be],$=a.Symbol,L=l("JSON","stringify"),K=q.f,oe=F.f,le=O.f,ye=B.f,ke=te("symbols"),he=te("op-symbols"),pe=te("string-to-symbol-registry"),fe=te("symbol-to-string-registry"),Ne=te("wks"),Ce=a.QObject,Re=!Ce||!Ce[be]||!Ce[be].findChild,He=d&&m(function(){return A(oe({},"a",{get:function(){return oe(this,"a",{value:7}).a}})).a!=7})?function(ee,ie,X){var se=K(De,ie);se&&delete De[ie],oe(ee,ie,X),se&&ee!==De&&oe(De,ie,se)}:oe,Je=function(ee,ie){var X=ke[ee]=A($[be]);return Me(X,{type:ne,tag:ee,description:ie}),d||(X.description=ie),X},st=f?function(ee){return typeof ee=="symbol"}:function(ee){return Object(ee)instanceof $},k=function(ee,ie,X){ee===De&&k(he,ie,X),y(ee);var se=x(ie,!0);return y(X),p(ke,se)?(X.enumerable?(p(ee,re)&&ee[re][se]&&(ee[re][se]=!1),X=A(X,{enumerable:C(0,!1)})):(p(ee,re)||oe(ee,re,C(1,{})),ee[re][se]=!0),He(ee,se,X)):oe(ee,se,X)},v=function(ee,ie){y(ee);var X=S(ie),se=M(X).concat(Ee(X));return U(se,function(Ve){d&&!z.call(X,Ve)||k(ee,Ve,X[Ve])}),ee},I=function(ee,ie){return ie===void 0?A(ee):v(A(ee),ie)},z=function(ee){var ie=x(ee,!0),X=ye.call(this,ie);return!(this===De&&p(ke,ie)&&!p(he,ie))&&(!(X||!p(this,ie)||!p(ke,ie)||p(this,re)&&this[re][ie])||X)},J=function(ee,ie){var X=S(ee),se=x(ie,!0);if(X!==De||!p(ke,se)||p(he,se)){var Ve=K(X,se);return!Ve||!p(ke,se)||p(X,re)&&X[re][se]||(Ve.enumerable=!0),Ve}},de=function(ee){var ie=le(S(ee)),X=[];return U(ie,function(se){p(ke,se)||p(ve,se)||X.push(se)}),X},Ee=function(ee){var ie=ee===De,X=le(ie?he:S(ee)),se=[];return U(X,function(Ve){!p(ke,Ve)||ie&&!p(De,Ve)||se.push(ke[Ve])}),se};if(h||($=function(){if(this instanceof $)throw TypeError("Symbol is not a constructor");var ee=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,ie=Le(ee),X=function(se){this===De&&X.call(he,se),p(this,re)&&p(this[re],ie)&&(this[re][ie]=!1),He(this,ie,C(1,se))};return d&&Re&&He(De,ie,{configurable:!0,set:X}),Je(ie,ee)},ue($[be],"toString",function(){return Ae(this).tag}),ue($,"withoutSetter",function(ee){return Je(Le(ee),ee)}),B.f=z,F.f=k,q.f=J,j.f=O.f=de,V.f=Ee,me.f=function(ee){return Je(qe(ee),ee)},d&&(oe($[be],"description",{configurable:!0,get:function(){return Ae(this).description}}),c||ue(De,"propertyIsEnumerable",z,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:$}),U(M(Ne),function(ee){Y(ee)}),i({target:ne,stat:!0,forced:!h},{for:function(ee){var ie=String(ee);if(p(pe,ie))return pe[ie];var X=$(ie);return pe[ie]=X,fe[X]=ie,X},keyFor:function(ee){if(!st(ee))throw TypeError(ee+" is not a symbol");if(p(fe,ee))return fe[ee]},useSetter:function(){Re=!0},useSimple:function(){Re=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!d},{create:I,defineProperty:k,defineProperties:v,getOwnPropertyDescriptor:J}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:de,getOwnPropertySymbols:Ee}),i({target:"Object",stat:!0,forced:m(function(){V.f(1)})},{getOwnPropertySymbols:function(ee){return V.f(b(ee))}}),L){var Ie=!h||m(function(){var ee=$();return L([ee])!="[null]"||L({a:ee})!="{}"||L(Object(ee))!="{}"});i({target:"JSON",stat:!0,forced:Ie},{stringify:function(ee,ie,X){for(var se,Ve=[ee],Be=1;arguments.length>Be;)Ve.push(arguments[Be++]);if(se=ie,(g(ie)||ee!==void 0)&&!st(ee))return _(ie)||(ie=function(ct,ln){if(typeof se=="function"&&(ln=se.call(this,ct,ln)),!st(ln))return ln}),Ve[1]=ie,L.apply(null,Ve)}})}$[be][Ue]||W($[be],Ue,$[be].valueOf),ce($,ne),ve[re]=!0},a630:function(s,r,o){var i=o("23e7"),a=o("4df4"),l=o("1c7e"),c=!l(function(d){Array.from(d)});i({target:"Array",stat:!0,forced:c},{from:a})},a691:function(s,r){var o=Math.ceil,i=Math.floor;s.exports=function(a){return isNaN(a=+a)?0:(a>0?i:o)(a)}},ae93:function(s,r,o){var i,a,l,c=o("d039"),d=o("e163"),h=o("9112"),f=o("5135"),m=o("b622"),p=o("c430"),_=m("iterator"),g=!1,y=function(){return this};[].keys&&(l=[].keys(),"next"in l?(a=d(d(l)),a!==Object.prototype&&(i=a)):g=!0);var b=i==null||c(function(){var S={};return i[_].call(S)!==S});b&&(i={}),p&&!b||f(i,_)||h(i,_,y),s.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},b041:function(s,r,o){var i=o("00ee"),a=o("f5df");s.exports=i?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(s,r,o){var i=o("83ab"),a=o("9bf2").f,l=Function.prototype,c=l.toString,d=/^\s*function ([^ (]*)/,h="name";i&&!(h in l)&&a(l,h,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})},b622:function(s,r,o){var i=o("da84"),a=o("5692"),l=o("5135"),c=o("90e3"),d=o("4930"),h=o("fdbf"),f=a("wks"),m=i.Symbol,p=h?m:m&&m.withoutSetter||c;s.exports=function(_){return l(f,_)&&(d||typeof f[_]=="string")||(d&&l(m,_)?f[_]=m[_]:f[_]=p("Symbol."+_)),f[_]}},b727:function(s,r,o){var i=o("0366"),a=o("44ad"),l=o("7b0b"),c=o("50c4"),d=o("65f0"),h=[].push,f=function(m){var p=m==1,_=m==2,g=m==3,y=m==4,b=m==6,S=m==7,x=m==5||b;return function(C,A,M,j){for(var O,V,q=l(C),F=a(q),B=i(A,M,3),W=c(F.length),ue=0,te=j||d,ae=p?te(C,W):_||S?te(C,0):void 0;W>ue;ue++)if((x||ue in F)&&(O=F[ue],V=B(O,ue,q),m))if(p)ae[ue]=V;else if(V)switch(m){case 3:return!0;case 5:return O;case 6:return ue;case 2:h.call(ae,O)}else switch(m){case 4:return!1;case 7:h.call(ae,O)}return b?-1:g||y?y:ae}};s.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},c04e:function(s,r,o){var i=o("861d");s.exports=function(a,l){if(!i(a))return a;var c,d;if(l&&typeof(c=a.toString)=="function"&&!i(d=c.call(a))||typeof(c=a.valueOf)=="function"&&!i(d=c.call(a))||!l&&typeof(c=a.toString)=="function"&&!i(d=c.call(a)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(s,r){s.exports=!1},c6b6:function(s,r){var o={}.toString;s.exports=function(i){return o.call(i).slice(8,-1)}},c6cd:function(s,r,o){var i=o("da84"),a=o("ce4e"),l="__core-js_shared__",c=i[l]||a(l,{});s.exports=c},c8ba:function(s,r){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}s.exports=o},ca84:function(s,r,o){var i=o("5135"),a=o("fc6a"),l=o("4d64").indexOf,c=o("d012");s.exports=function(d,h){var f,m=a(d),p=0,_=[];for(f in m)!i(c,f)&&i(m,f)&&_.push(f);for(;h.length>p;)i(m,f=h[p++])&&(~l(_,f)||_.push(f));return _}},cc12:function(s,r,o){var i=o("da84"),a=o("861d"),l=i.document,c=a(l)&&a(l.createElement);s.exports=function(d){return c?l.createElement(d):{}}},ce4e:function(s,r,o){var i=o("da84"),a=o("9112");s.exports=function(l,c){try{a(i,l,c)}catch{i[l]=c}return c}},d012:function(s,r){s.exports={}},d039:function(s,r){s.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(s,r,o){var i=o("428f"),a=o("da84"),l=function(c){return typeof c=="function"?c:void 0};s.exports=function(c,d){return arguments.length<2?l(i[c])||l(a[c]):i[c]&&i[c][d]||a[c]&&a[c][d]}},d1e7:function(s,r,o){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!i.call({1:2},1);r.f=l?function(c){var d=a(this,c);return!!d&&d.enumerable}:i},d28b:function(s,r,o){var i=o("746f");i("iterator")},d2bb:function(s,r,o){var i=o("825a"),a=o("3bbe");s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l,c=!1,d={};try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(d,[]),c=d instanceof Array}catch{}return function(h,f){return i(h),a(f),c?l.call(h,f):h.__proto__=f,h}}():void 0)},d3b7:function(s,r,o){var i=o("00ee"),a=o("6eeb"),l=o("b041");i||a(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(s,r,o){var i=o("9bf2").f,a=o("5135"),l=o("b622"),c=l("toStringTag");s.exports=function(d,h,f){d&&!a(d=f?d:d.prototype,c)&&i(d,c,{configurable:!0,value:h})}},da84:function(s,r,o){(function(i){var a=function(l){return l&&l.Math==Math&&l};s.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||Function("return this")()}).call(this,o("c8ba"))},ddb0:function(s,r,o){var i=o("da84"),a=o("fdbc"),l=o("e260"),c=o("9112"),d=o("b622"),h=d("iterator"),f=d("toStringTag"),m=l.values;for(var p in a){var _=i[p],g=_&&_.prototype;if(g){if(g[h]!==m)try{c(g,h,m)}catch{g[h]=m}if(g[f]||c(g,f,p),a[p]){for(var y in l)if(g[y]!==l[y])try{c(g,y,l[y])}catch{g[y]=l[y]}}}}},df75:function(s,r,o){var i=o("ca84"),a=o("7839");s.exports=Object.keys||function(l){return i(l,a)}},e01a:function(s,r,o){var i=o("23e7"),a=o("83ab"),l=o("da84"),c=o("5135"),d=o("861d"),h=o("9bf2").f,f=o("e893"),m=l.Symbol;if(a&&typeof m=="function"&&(!("description"in m.prototype)||m().description!==void 0)){var p={},_=function(){var x=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),C=this instanceof _?new m(x):x===void 0?m():m(x);return x===""&&(p[C]=!0),C};f(_,m);var g=_.prototype=m.prototype;g.constructor=_;var y=g.toString,b=String(m("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;h(g,"description",{configurable:!0,get:function(){var x=d(this)?this.valueOf():this,C=y.call(x);if(c(p,x))return"";var A=b?C.slice(7,-1):C.replace(S,"$1");return A===""?void 0:A}}),i({global:!0,forced:!0},{Symbol:_})}},e163:function(s,r,o){var i=o("5135"),a=o("7b0b"),l=o("f772"),c=o("e177"),d=l("IE_PROTO"),h=Object.prototype;s.exports=c?Object.getPrototypeOf:function(f){return f=a(f),i(f,d)?f[d]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?h:null}},e177:function(s,r,o){var i=o("d039");s.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},e260:function(s,r,o){var i=o("fc6a"),a=o("44d2"),l=o("3f8c"),c=o("69f3"),d=o("7dd0"),h="Array Iterator",f=c.set,m=c.getterFor(h);s.exports=d(Array,"Array",function(p,_){f(this,{type:h,target:i(p),index:0,kind:_})},function(){var p=m(this),_=p.target,g=p.kind,y=p.index++;return!_||y>=_.length?(p.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:_[y],done:!1}:{value:[y,_[y]],done:!1}},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},e538:function(s,r,o){var i=o("b622");r.f=i},e893:function(s,r,o){var i=o("5135"),a=o("56ef"),l=o("06cf"),c=o("9bf2");s.exports=function(d,h){for(var f=a(h),m=c.f,p=l.f,_=0;_<f.length;_++){var g=f[_];i(d,g)||m(d,g,p(h,g))}}},e8b5:function(s,r,o){var i=o("c6b6");s.exports=Array.isArray||function(a){return i(a)=="Array"}},e95a:function(s,r,o){var i=o("b622"),a=o("3f8c"),l=i("iterator"),c=Array.prototype;s.exports=function(d){return d!==void 0&&(a.Array===d||c[l]===d)}},f5df:function(s,r,o){var i=o("00ee"),a=o("c6b6"),l=o("b622"),c=l("toStringTag"),d=a(function(){return arguments}())=="Arguments",h=function(f,m){try{return f[m]}catch{}};s.exports=i?a:function(f){var m,p,_;return f===void 0?"Undefined":f===null?"Null":typeof(p=h(m=Object(f),c))=="string"?p:d?a(m):(_=a(m))=="Object"&&typeof m.callee=="function"?"Arguments":_}},f772:function(s,r,o){var i=o("5692"),a=o("90e3"),l=i("keys");s.exports=function(c){return l[c]||(l[c]=a(c))}},fae3:function(s,r,o){if(o.r(r),o.d(r,"VueEternalLoading",function(){return q}),typeof window!="undefined"){var i=window.document.currentScript,a=o("8875");i=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var l=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(o.p=l[1])}var c=o("8bbf"),d={class:"vue-eternal-loading",ref:"rootRef"},h=Object(c.createVNode)("div",{class:"loading"},"Loading...",-1),f=Object(c.createVNode)("div",{class:"no-more"},"No more.",-1),m=Object(c.createVNode)("div",{class:"no-results"},"No results.",-1),p=Object(c.createVNode)("div",{class:"error"},"Error.",-1);function _(F,B,W,ue,te,ae){return Object(c.openBlock)(),Object(c.createBlock)("div",d,[F.state==="loading"?Object(c.renderSlot)(F.$slots,"loading",Object(c.mergeProps)({key:0},{isFirstLoad:F.isFirstLoad}),function(){return[h]}):F.state==="no-more"?Object(c.renderSlot)(F.$slots,"no-more",Object(c.mergeProps)({key:1},{retry:F.retry}),function(){return[f]}):F.state==="no-results"?Object(c.renderSlot)(F.$slots,"no-results",Object(c.mergeProps)({key:2},{retry:F.retry}),function(){return[m]}):F.state==="error"?Object(c.renderSlot)(F.$slots,"error",Object(c.mergeProps)({key:3},{retry:F.retry}),function(){return[p]}):Object(c.createCommentVNode)("",!0)],512)}function g(F){if(Array.isArray(F))return F}o("a4d3"),o("e01a"),o("d3b7"),o("d28b"),o("e260"),o("3ca3"),o("ddb0");function y(F,B){var W=F==null?null:typeof Symbol!="undefined"&&F[Symbol.iterator]||F["@@iterator"];if(W!=null){var ue,te,ae=[],ve=!0,Le=!1;try{for(W=W.call(F);!(ve=(ue=W.next()).done)&&(ae.push(ue.value),!(B&&ae.length===B));ve=!0);}catch(qe){Le=!0,te=qe}finally{try{ve||W.return==null||W.return()}finally{if(Le)throw te}}return ae}}o("fb6a"),o("b0c0"),o("a630");function b(F,B){(B==null||B>F.length)&&(B=F.length);for(var W=0,ue=new Array(B);W<B;W++)ue[W]=F[W];return ue}function S(F,B){if(F){if(typeof F=="string")return b(F,B);var W=Object.prototype.toString.call(F).slice(8,-1);return W==="Object"&&F.constructor&&(W=F.constructor.name),W==="Map"||W==="Set"?Array.from(F):W==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(W)?b(F,B):void 0}}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(F,B){return g(F)||y(F,B)||S(F,B)||x()}function A(F){return F.scrollHeight}function M(F){return F.scrollWidth}function j(F,B){F.scrollTop=F.scrollHeight-B+F.scrollTop}function O(F,B){F.scrollLeft=F.scrollWidth-B+F.scrollLeft}var V=Object(c.defineComponent)({name:"VueEternalLoading",props:{load:{required:!0,type:Function},isInitial:{required:!1,type:Boolean,default:!0},position:{required:!1,type:String,default:"default"},container:{required:!1,type:Object,default:null},margin:{required:!1,type:String,default:void 0}},setup:function(F,B){var W,ue=Object(c.ref)(),te=Object(c.ref)("loading"),ae=Object(c.ref)(F.isInitial),ve=0;function Le(){Object(c.nextTick)(function(){var Me;if(F.position==="top")j((Me=F.container)!==null&&Me!==void 0?Me:document.documentElement,ve);else if(F.position==="left"){var Ae;O((Ae=F.container)!==null&&Ae!==void 0?Ae:document.documentElement,ve)}})}function qe(Me,Ae){return Me===0?ae.value?(Y(),"no-results"):(me(),"no-more"):Me!==void 0&&Ae!==void 0&&Me<Ae?(me(),"no-more"):(ae.value=!1,Le(),be(),"loading")}function me(){ae.value=!1,re("no-more"),Le()}function Y(){ae.value=!1,re("no-results"),Le()}function ce(){ae.value=!1,re("error"),Le()}function we(){ae.value=!0,re("loading"),be()}function U(){re("loading"),be()}function re(Me){te.value=Me}function ne(){ue.value&&W.unobserve(ue.value)}function be(){ue.value&&W.observe(ue.value)}function Ue(){return new IntersectionObserver(function(Me){var Ae=C(Me,1),De=Ae[0];if(De.isIntersecting){var $;if(F.position==="top")ve=A(($=F.container)!==null&&$!==void 0?$:document.documentElement);else if(F.position==="left"){var L;ve=M((L=F.container)!==null&&L!==void 0?L:document.documentElement)}ne(),F.load({loaded:qe,noMore:me,noResults:Y,error:ce},{isFirstLoad:ae.value})}},{root:F.container,threshold:0,rootMargin:F.margin})}return Object(c.watchEffect)(function(){W&&ne(),W=Ue(),be()},{flush:"post"}),Object(c.watch)(function(){return F.isInitial},function(Me){Me&&we()}),Object(c.watch)(ae,function(Me){Me||B.emit("update:isInitial",!1)}),{rootRef:ue,state:te,isFirstLoad:ae,retry:U}}});V.render=_;var q=V},fb6a:function(s,r,o){var i=o("23e7"),a=o("861d"),l=o("e8b5"),c=o("23cb"),d=o("50c4"),h=o("fc6a"),f=o("8418"),m=o("b622"),p=o("1dde"),_=p("slice"),g=m("species"),y=[].slice,b=Math.max;i({target:"Array",proto:!0,forced:!_},{slice:function(S,x){var C,A,M,j=h(this),O=d(j.length),V=c(S,O),q=c(x===void 0?O:x,O);if(l(j)&&(C=j.constructor,typeof C!="function"||C!==Array&&!l(C.prototype)?a(C)&&(C=C[g],C===null&&(C=void 0)):C=void 0,C===Array||C===void 0))return y.call(j,V,q);for(A=new(C===void 0?Array:C)(b(q-V,0)),M=0;V<q;V++,M++)V in j&&f(A,M,j[V]);return A.length=M,A}})},fc6a:function(s,r,o){var i=o("44ad"),a=o("1d80");s.exports=function(l){return i(a(l))}},fdbc:function(s,r){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(s,r,o){var i=o("4930");s.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(Bl);const $c=50,ka={load:function(e){const t=new Kn;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getArtist(e.params.artist_id),t.getArtistAlbums(e.params.artist_id,{limit:$c,offset:0,include_groups:"album,single",market:at.state.spotify.webapi_country})])},set:function(e,t){e.artist=t[0],e.albums=[],e.total=0,e.offset=0,e.append_albums(t[1])}},fL={name:"SpotifyPageArtist",components:{ContentWithHeading:ht,SpotifyListItemAlbum:Vl,SpotifyModalDialogAlbum:Si,SpotifyModalDialogArtist:kv,VueEternalLoading:Bl.exports.VueEternalLoading,CoverArtwork:ys},beforeRouteEnter(e,t,n){ka.load(e).then(s=>{n(r=>ka.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;ka.load(e).then(r=>{ka.set(s,r),n()})},data(){return{artist:{},albums:[],total:0,offset:0,show_details_modal:!1,selected_album:{},show_artist_details_modal:!1}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{load_next:function({loaded:e}){const t=new Kn;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getArtistAlbums(this.artist.id,{limit:$c,offset:this.offset,include_groups:"album,single"}).then(n=>{this.append_albums(n),e(n.items.length,$c)})},append_albums:function(e){this.albums=this.albums.concat(e.items),this.total=e.total,this.offset+=e.limit},play:function(){this.show_details_modal=!1,G.player_play_uri(this.artist.uri,!0)},open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_dialog:function(e){this.selected_album=e,this.show_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},hL={class:"title is-4"},mL={class:"buttons is-centered"},pL={class:"icon"},_L={class:"icon"},gL=u("span",null,"Shuffle",-1),vL={class:"heading has-text-centered-mobile"},yL={class:"image is-64x64 fd-has-shadow fd-has-action"},bL=["onClick"],wL={class:"icon has-text-dark"},kL=$e(" . ");function SL(e,t,n,s,r,o){const i=P("mdicon"),a=P("cover-artwork"),l=P("spotify-list-item-album"),c=P("VueEternalLoading"),d=P("spotify-modal-dialog-album"),h=P("spotify-modal-dialog-artist"),f=P("content-with-heading");return E(),Se(f,null,{"heading-left":T(()=>[u("p",hL,R(r.artist.name),1)]),"heading-right":T(()=>[u("div",mL,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>r.show_artist_details_modal=!0)},[u("span",pL,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[u("span",_L,[w(i,{name:"shuffle",size:"16"})]),gL])])]),content:T(()=>[u("p",vL,R(r.total)+" albums",1),(E(!0),D(Ke,null,bt(r.albums,m=>(E(),Se(l,{key:m.id,album:m,onClick:p=>o.open_album(m)},vi({actions:T(()=>[u("a",{onClick:pt(p=>o.open_dialog(m),["prevent","stop"])},[u("span",wL,[w(i,{name:"dots-vertical",size:"16"})])],8,bL)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:T(()=>[u("p",yL,[w(a,{artwork_url:o.artwork_url(m),artist:m.artist,album:m.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),r.offset<r.total?(E(),Se(c,{key:0,load:o.load_next},{"no-more":T(()=>[kL]),_:1},8,["load"])):Z("",!0),w(d,{show:r.show_details_modal,album:r.selected_album,onClose:t[2]||(t[2]=m=>r.show_details_modal=!1)},null,8,["show","album"]),w(h,{show:r.show_artist_details_modal,artist:r.artist,onClose:t[3]||(t[3]=m=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var xL=ge(fL,[["render",SL]]);const EL={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],methods:{play:function(){G.player_play_uri(this.context_uri,!1,this.position)}}},CL={class:"media"},$L={key:0,class:"subtitle is-7"},AL=$e(" (Track is not playable"),OL={key:0},TL=$e(") "),PL={class:"media-right"};function DL(e,t,n,s,r,o){return E(),D("div",CL,[u("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.play&&o.play(...i))},[u("h1",{class:We(["title is-6",{"has-text-grey-light":n.track.is_playable===!1}])},R(n.track.name),3),u("h2",{class:We(["subtitle is-7",{"has-text-grey":n.track.is_playable,"has-text-grey-light":n.track.is_playable===!1}])},[u("b",null,R(n.track.artists[0].name),1)],2),n.track.is_playable===!1?(E(),D("h2",$L,[AL,n.track.restrictions&&n.track.restrictions.reason?(E(),D("span",OL,", restriction reason: "+R(n.track.restrictions.reason),1)):Z("",!0),TL])):Z("",!0)]),u("div",PL,[St(e.$slots,"actions")])])}var Gd=ge(EL,[["render",DL]]);const FL={name:"SpotifyModalDialogTrack",props:["show","track","album"],emits:["close"],methods:{play:function(){this.$emit("close"),G.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),G.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),G.queue_add_next(this.track.uri)},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})}}},IL={key:0,class:"modal is-active"},ML={class:"modal-content fd-modal-card"},RL={class:"card"},LL={class:"card-content"},NL={class:"title is-4"},VL={class:"subtitle"},jL={class:"content is-small"},BL=u("span",{class:"heading"},"Album",-1),UL=u("span",{class:"heading"},"Album artist",-1),HL=u("span",{class:"heading"},"Release date",-1),zL={class:"title is-6"},qL=u("span",{class:"heading"},"Track / Disc",-1),GL={class:"title is-6"},WL=u("span",{class:"heading"},"Length",-1),KL={class:"title is-6"},ZL=u("span",{class:"heading"},"Path",-1),YL={class:"title is-6"},JL={class:"card-footer"},XL={class:"icon"},QL=u("span",{class:"is-size-7"},"Add",-1),eN={class:"icon"},tN=u("span",{class:"is-size-7"},"Add Next",-1),nN={class:"icon"},sN=u("span",{class:"is-size-7"},"Play",-1);function rN(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",IL,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",ML,[u("div",RL,[u("div",LL,[u("p",NL,R(n.track.name),1),u("p",VL,R(n.track.artists[0].name),1),u("div",jL,[u("p",null,[BL,u("a",{class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a))},R(n.album.name),1)]),u("p",null,[UL,u("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_artist&&o.open_artist(...a))},R(n.album.artists[0].name),1)]),u("p",null,[HL,u("span",zL,R(e.$filters.date(n.album.release_date)),1)]),u("p",null,[qL,u("span",GL,R(n.track.track_number)+" / "+R(n.track.disc_number),1)]),u("p",null,[WL,u("span",KL,R(e.$filters.durationInHours(n.track.duration_ms)),1)]),u("p",null,[ZL,u("span",YL,R(n.track.uri),1)])])]),u("footer",JL,[u("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add&&o.queue_add(...a))},[u("span",XL,[w(i,{name:"playlist-plus",size:"16"})]),QL]),u("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[u("span",eN,[w(i,{name:"playlist-play",size:"16"})]),tN]),u("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[u("span",nN,[w(i,{name:"play",size:"16"})]),sN])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var Wd=ge(FL,[["render",rN]]);const Sa={load:function(e){const t=new Kn;return t.setAccessToken(at.state.spotify.webapi_token),t.getAlbum(e.params.album_id,{market:at.state.spotify.webapi_country})},set:function(e,t){e.album=t}},oN={name:"PageAlbum",components:{ContentWithHero:Bd,SpotifyListItemTrack:Gd,SpotifyModalDialogTrack:Wd,SpotifyModalDialogAlbum:Si,CoverArtwork:ys},beforeRouteEnter(e,t,n){Sa.load(e).then(s=>{n(r=>Sa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;Sa.load(e).then(r=>{Sa.set(s,r),n()})},data(){return{album:{artists:[{}],tracks:{}},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play:function(){this.show_details_modal=!1,G.player_play_uri(this.album.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},iN={class:"title is-5"},aN={class:"subtitle is-6 has-text-link has-text-weight-normal"},lN={class:"buttons fd-is-centered-mobile fd-has-margin-top"},uN={class:"icon"},cN=u("span",null,"Shuffle",-1),dN={class:"icon"},fN={class:"image is-square fd-has-shadow fd-has-action"},hN={class:"heading is-7 has-text-centered-mobile fd-has-margin-top"},mN=["onClick"],pN={class:"icon has-text-dark"};function _N(e,t,n,s,r,o){const i=P("mdicon"),a=P("cover-artwork"),l=P("spotify-list-item-track"),c=P("spotify-modal-dialog-track"),d=P("spotify-modal-dialog-album"),h=P("content-with-hero");return E(),Se(h,null,{"heading-left":T(()=>[u("h1",iN,R(r.album.name),1),u("h2",aN,[u("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>o.open_artist&&o.open_artist(...f))},R(r.album.artists[0].name),1)]),u("div",lN,[u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[u("span",uN,[w(i,{name:"shuffle",size:"16"})]),cN]),u("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>r.show_album_details_modal=!0)},[u("span",dN,[w(i,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":T(()=>[u("p",fN,[w(a,{artwork_url:o.artwork_url,artist:r.album.artist,album:r.album.name,onClick:t[3]||(t[3]=f=>r.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[u("p",hN,R(r.album.tracks.total)+" tracks ",1),(E(!0),D(Ke,null,bt(r.album.tracks.items,(f,m)=>(E(),Se(l,{key:f.id,track:f,position:m,album:r.album,context_uri:r.album.uri},{actions:T(()=>[u("a",{onClick:pt(p=>o.open_track_dialog(f),["prevent","stop"])},[u("span",pN,[w(i,{name:"dots-vertical",size:"16"})])],8,mN)]),_:2},1032,["track","position","album","context_uri"]))),128)),w(c,{show:r.show_track_details_modal,track:r.selected_track,album:r.album,onClose:t[4]||(t[4]=f=>r.show_track_details_modal=!1)},null,8,["show","track","album"]),w(d,{show:r.show_album_details_modal,album:r.album,onClose:t[5]||(t[5]=f=>r.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var gN=ge(oN,[["render",_N]]);const Ac=50,xa={load:function(e){const t=new Kn;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getPlaylist(e.params.playlist_id),t.getPlaylistTracks(e.params.playlist_id,{limit:Ac,offset:0})])},set:function(e,t){e.playlist=t[0],e.tracks=[],e.total=0,e.offset=0,e.append_tracks(t[1])}},vN={name:"SpotifyPagePlaylist",components:{ContentWithHeading:ht,SpotifyListItemTrack:Gd,SpotifyModalDialogTrack:Wd,SpotifyModalDialogPlaylist:jl,VueEternalLoading:Bl.exports.VueEternalLoading},beforeRouteEnter(e,t,n){xa.load(e).then(s=>{n(r=>xa.set(r,s))})},beforeRouteUpdate(e,t,n){const s=this;xa.load(e).then(r=>{xa.set(s,r),n()})},data(){return{playlist:{tracks:{}},tracks:[],total:0,offset:0,show_track_details_modal:!1,selected_track:{},show_playlist_details_modal:!1}},methods:{load_next:function({loaded:e}){const t=new Kn;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getPlaylistTracks(this.playlist.id,{limit:Ac,offset:this.offset}).then(n=>{this.append_tracks(n),e(n.items.length,Ac)})},append_tracks:function(e){this.tracks=this.tracks.concat(e.items),this.total=e.total,this.offset+=e.limit},play:function(){this.show_details_modal=!1,G.player_play_uri(this.playlist.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},yN={class:"title is-4"},bN={class:"buttons is-centered"},wN={class:"icon"},kN={class:"icon"},SN=u("span",null,"Shuffle",-1),xN={class:"heading has-text-centered-mobile"},EN=["onClick"],CN={class:"icon has-text-dark"},$N=$e(" . ");function AN(e,t,n,s,r,o){const i=P("mdicon"),a=P("spotify-list-item-track"),l=P("VueEternalLoading"),c=P("spotify-modal-dialog-track"),d=P("spotify-modal-dialog-playlist"),h=P("content-with-heading");return E(),Se(h,null,{"heading-left":T(()=>[u("div",yN,R(r.playlist.name),1)]),"heading-right":T(()=>[u("div",bN,[u("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>r.show_playlist_details_modal=!0)},[u("span",wN,[w(i,{name:"dots-horizontal",size:"16"})])]),u("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[u("span",kN,[w(i,{name:"shuffle",size:"16"})]),SN])])]),content:T(()=>[u("p",xN,R(r.playlist.tracks.total)+" tracks ",1),(E(!0),D(Ke,null,bt(r.tracks,(f,m)=>(E(),Se(a,{key:f.track.id,track:f.track,album:f.track.album,position:m,context_uri:r.playlist.uri},{actions:T(()=>[u("a",{onClick:pt(p=>o.open_track_dialog(f.track),["prevent","stop"])},[u("span",CN,[w(i,{name:"dots-vertical",size:"16"})])],8,EN)]),_:2},1032,["track","album","position","context_uri"]))),128)),r.offset<r.total?(E(),Se(l,{key:0,load:o.load_next},{"no-more":T(()=>[$N]),_:1},8,["load"])):Z("",!0),w(c,{show:r.show_track_details_modal,track:r.selected_track,album:r.selected_track.album,onClose:t[2]||(t[2]=f=>r.show_track_details_modal=!1)},null,8,["show","track","album"]),w(d,{show:r.show_playlist_details_modal,playlist:r.playlist,onClose:t[3]||(t[3]=f=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})}var ON=ge(vN,[["render",AN]]);const TN={name:"SpotifyListItemArtist",props:["artist"],methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},PN={class:"media"},DN={class:"title is-6"},FN={class:"media-right"};function IN(e,t,n,s,r,o){return E(),D("div",PN,[u("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_artist&&o.open_artist(...i))},[u("h1",DN,R(n.artist.name),1)]),u("div",FN,[St(e.$slots,"actions")])])}var MN=ge(TN,[["render",IN]]);const ko=50,RN={name:"SpotifyPageSearch",components:{ContentWithHeading:ht,ContentText:bv,TabsSearch:wv,SpotifyListItemTrack:Gd,SpotifyListItemArtist:MN,SpotifyListItemAlbum:Vl,SpotifyListItemPlaylist:qd,SpotifyModalDialogTrack:Wd,SpotifyModalDialogArtist:kv,SpotifyModalDialogAlbum:Si,SpotifyModalDialogPlaylist:jl,VueEternalLoading:Bl.exports.VueEternalLoading,CoverArtwork:ys},data(){return{search_query:"",tracks:{items:[],total:0},artists:{items:[],total:0},albums:{items:[],total:0},playlists:{items:[],total:0},query:{},search_param:{},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1,selected_album:{},show_artist_details_modal:!1,selected_artist:{},show_playlist_details_modal:!1,selected_playlist:{},validSearchTypes:["track","artist","album","playlist"]}},computed:{recent_searches(){return this.$store.state.recent_searches.filter(e=>!e.startsWith("query:"))},show_tracks(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button(){return this.tracks.total>this.tracks.items.length},show_artists(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button(){return this.artists.total>this.artists.items.length},show_albums(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button(){return this.albums.total>this.albums.items.length},show_playlists(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button(){return this.playlists.total>this.playlists.items.length},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},watch:{$route(e,t){this.query=e.query,this.search()}},mounted:function(){this.query=this.$route.query,this.search()},methods:{reset:function(){this.tracks={items:[],total:0},this.artists={items:[],total:0},this.albums={items:[],total:0},this.playlists={items:[],total:0}},search:function(){if(this.reset(),!this.query.query||this.query.query===""||this.query.query.startsWith("query:")){this.search_query="",this.$refs.search_field.focus();return}this.search_query=this.query.query,this.search_param.limit=this.query.limit?this.query.limit:ko,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit(yd,this.query.query),this.search_all()},spotify_search:function(){return G.spotify().then(({data:e})=>{this.search_param.market=e.webapi_country;const t=new Kn;t.setAccessToken(e.webapi_token);const n=this.query.type.split(",").filter(s=>this.validSearchTypes.includes(s));return t.search(this.query.query,n,this.search_param)})},search_all:function(){this.spotify_search().then(e=>{this.tracks=e.tracks?e.tracks:{items:[],total:0},this.artists=e.artists?e.artists:{items:[],total:0},this.albums=e.albums?e.albums:{items:[],total:0},this.playlists=e.playlists?e.playlists:{items:[],total:0}})},search_tracks_next:function({loaded:e}){this.spotify_search().then(t=>{this.tracks.items=this.tracks.items.concat(t.tracks.items),this.tracks.total=t.tracks.total,this.search_param.offset+=t.tracks.limit,e(t.tracks.items.length,ko)})},search_artists_next:function({loaded:e}){this.spotify_search().then(t=>{this.artists.items=this.artists.items.concat(t.artists.items),this.artists.total=t.artists.total,this.search_param.offset+=t.artists.limit,e(t.artists.items.length,ko)})},search_albums_next:function({loaded:e}){this.spotify_search().then(t=>{this.albums.items=this.albums.items.concat(t.albums.items),this.albums.total=t.albums.total,this.search_param.offset+=t.albums.limit,e(t.albums.items.length,ko)})},search_playlists_next:function({loaded:e}){this.spotify_search().then(t=>{this.playlists.items=this.playlists.items.concat(t.playlists.items),this.playlists.total=t.playlists.total,this.search_param.offset+=t.playlists.limit,e(t.playlists.items.length,ko)})},new_search:function(){!this.search_query||(this.$router.push({path:"/search/spotify",query:{type:"track,artist,album,playlist,audiobook,podcast",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks:function(){this.$router.push({path:"/search/spotify",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/spotify",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/spotify",query:{type:"album",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/spotify",query:{type:"playlist",query:this.$route.query.query}})},open_recent_search:function(e){this.search_query=e,this.new_search()},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog:function(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},LN={class:"section fd-remove-padding-bottom"},NN={class:"container"},VN={class:"columns is-centered"},jN={class:"column is-four-fifths"},BN={class:"field"},UN={class:"control is-expanded has-icons-left"},HN={class:"icon is-left"},zN={class:"tags",style:{"margin-top":"16px"}},qN=["onClick"],GN=u("p",{class:"title is-4"},"Tracks",-1),WN=["onClick"],KN={class:"icon has-text-dark"},ZN=$e(" . "),YN={key:0,class:"level"},JN={class:"level-item"},XN=u("p",null,[u("i",null,"No tracks found")],-1),QN=u("p",{class:"title is-4"},"Artists",-1),eV=["onClick"],tV={class:"icon has-text-dark"},nV=$e(" . "),sV={key:0,class:"level"},rV={class:"level-item"},oV=u("p",null,[u("i",null,"No artists found")],-1),iV=u("p",{class:"title is-4"},"Albums",-1),aV={class:"image is-64x64 fd-has-shadow fd-has-action"},lV=["onClick"],uV={class:"icon has-text-dark"},cV=$e(" . "),dV={key:0,class:"level"},fV={class:"level-item"},hV=u("p",null,[u("i",null,"No albums found")],-1),mV=u("p",{class:"title is-4"},"Playlists",-1),pV=["onClick"],_V={class:"icon has-text-dark"},gV=$e(" . "),vV={key:0,class:"level"},yV={class:"level-item"},bV=u("p",null,[u("i",null,"No playlists found")],-1);function wV(e,t,n,s,r,o){const i=P("mdicon"),a=P("tabs-search"),l=P("spotify-list-item-track"),c=P("VueEternalLoading"),d=P("spotify-modal-dialog-track"),h=P("content-with-heading"),f=P("content-text"),m=P("spotify-list-item-artist"),p=P("spotify-modal-dialog-artist"),_=P("cover-artwork"),g=P("spotify-list-item-album"),y=P("spotify-modal-dialog-album"),b=P("spotify-list-item-playlist"),S=P("spotify-modal-dialog-playlist");return E(),D("div",null,[u("section",LN,[u("div",NN,[u("div",VN,[u("div",jN,[u("form",{onSubmit:t[1]||(t[1]=pt((...x)=>o.new_search&&o.new_search(...x),["prevent"]))},[u("div",BN,[u("p",UN,[wt(u("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=x=>r.search_query=x),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[en,r.search_query]]),u("span",HN,[w(i,{name:"magnify",size:"16"})])])])],32),u("div",zN,[(E(!0),D(Ke,null,bt(o.recent_searches,x=>(E(),D("a",{key:x,class:"tag",onClick:C=>o.open_recent_search(x)},R(x),9,qN))),128))])])])])]),w(a,{query:r.search_query},null,8,["query"]),o.show_tracks&&r.tracks.total?(E(),Se(h,{key:0},{"heading-left":T(()=>[GN]),content:T(()=>[(E(!0),D(Ke,null,bt(r.tracks.items,x=>(E(),Se(l,{key:x.id,track:x,album:x.album,position:0,context_uri:x.uri},{actions:T(()=>[u("a",{onClick:pt(C=>o.open_track_dialog(x),["prevent","stop"])},[u("span",KN,[w(i,{name:"dots-vertical",size:"16"})])],8,WN)]),_:2},1032,["track","album","context_uri"]))),128)),r.query.type==="track"?(E(),Se(c,{key:0,load:o.search_tracks_next},{"no-more":T(()=>[ZN]),_:1},8,["load"])):Z("",!0),w(d,{show:r.show_track_details_modal,track:r.selected_track,album:r.selected_track.album,onClose:t[2]||(t[2]=x=>r.show_track_details_modal=!1)},null,8,["show","track","album"])]),footer:T(()=>[o.show_all_tracks_button?(E(),D("nav",YN,[u("p",JN,[u("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...x)=>o.open_search_tracks&&o.open_search_tracks(...x))},"Show all "+R(r.tracks.total.toLocaleString())+" tracks",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_tracks&&!r.tracks.total?(E(),Se(f,{key:1,class:"mt-6"},{content:T(()=>[XN]),_:1})):Z("",!0),o.show_artists&&r.artists.total?(E(),Se(h,{key:2},{"heading-left":T(()=>[QN]),content:T(()=>[(E(!0),D(Ke,null,bt(r.artists.items,x=>(E(),Se(m,{key:x.id,artist:x},{actions:T(()=>[u("a",{onClick:pt(C=>o.open_artist_dialog(x),["prevent","stop"])},[u("span",tV,[w(i,{name:"dots-vertical",size:"16"})])],8,eV)]),_:2},1032,["artist"]))),128)),r.query.type==="artist"?(E(),Se(c,{key:0,load:o.search_artists_next},{"no-more":T(()=>[nV]),_:1},8,["load"])):Z("",!0),w(p,{show:r.show_artist_details_modal,artist:r.selected_artist,onClose:t[4]||(t[4]=x=>r.show_artist_details_modal=!1)},null,8,["show","artist"])]),footer:T(()=>[o.show_all_artists_button?(E(),D("nav",sV,[u("p",rV,[u("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...x)=>o.open_search_artists&&o.open_search_artists(...x))},"Show all "+R(r.artists.total.toLocaleString())+" artists",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_artists&&!r.artists.total?(E(),Se(f,{key:3},{content:T(()=>[oV]),_:1})):Z("",!0),o.show_albums&&r.albums.total?(E(),Se(h,{key:4},{"heading-left":T(()=>[iV]),content:T(()=>[(E(!0),D(Ke,null,bt(r.albums.items,x=>(E(),Se(g,{key:x.id,album:x,onClick:C=>o.open_album(x)},vi({actions:T(()=>[u("a",{onClick:pt(C=>o.open_album_dialog(x),["prevent","stop"])},[u("span",uV,[w(i,{name:"dots-vertical",size:"16"})])],8,lV)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:T(()=>[u("p",aV,[w(_,{artwork_url:o.artwork_url(x),artist:x.artist,album:x.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),r.query.type==="album"?(E(),Se(c,{key:0,load:o.search_albums_next},{"no-more":T(()=>[cV]),_:1},8,["load"])):Z("",!0),w(y,{show:r.show_album_details_modal,album:r.selected_album,onClose:t[6]||(t[6]=x=>r.show_album_details_modal=!1)},null,8,["show","album"])]),footer:T(()=>[o.show_all_albums_button?(E(),D("nav",dV,[u("p",fV,[u("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...x)=>o.open_search_albums&&o.open_search_albums(...x))},"Show all "+R(r.albums.total.toLocaleString())+" albums",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_albums&&!r.albums.total?(E(),Se(f,{key:5},{content:T(()=>[hV]),_:1})):Z("",!0),o.show_playlists&&r.playlists.total?(E(),Se(h,{key:6},{"heading-left":T(()=>[mV]),content:T(()=>[(E(!0),D(Ke,null,bt(r.playlists.items,x=>(E(),Se(b,{key:x.id,playlist:x},{actions:T(()=>[u("a",{onClick:pt(C=>o.open_playlist_dialog(x),["prevent","stop"])},[u("span",_V,[w(i,{name:"dots-vertical",size:"16"})])],8,pV)]),_:2},1032,["playlist"]))),128)),r.query.type==="playlist"?(E(),Se(c,{key:0,load:o.search_playlists_next},{"no-more":T(()=>[gV]),_:1},8,["load"])):Z("",!0),w(S,{show:r.show_playlist_details_modal,playlist:r.selected_playlist,onClose:t[8]||(t[8]=x=>r.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:T(()=>[o.show_all_playlists_button?(E(),D("nav",vV,[u("p",yV,[u("a",{class:"button is-light is-small is-rounded",onClick:t[9]||(t[9]=(...x)=>o.open_search_playlists&&o.open_search_playlists(...x))},"Show all "+R(r.playlists.total.toLocaleString())+" playlists",1)])])):Z("",!0)]),_:1})):Z("",!0),o.show_playlists&&!r.playlists.total?(E(),Se(f,{key:7},{content:T(()=>[bV]),_:1})):Z("",!0)])}var kV=ge(RN,[["render",wV]]);const SV={name:"TabsSettings",computed:{}},xV={class:"section fd-tabs-section"},EV={class:"container"},CV={class:"columns is-centered"},$V={class:"column is-four-fifths"},AV={class:"tabs is-centered is-small"},OV=["onClick","onKeypress"],TV=u("span",{class:""},"Webinterface",-1),PV=[TV],DV=["onClick","onKeypress"],FV=u("span",{class:""},"Remotes & Outputs",-1),IV=[FV],MV=["onClick","onKeypress"],RV=u("span",{class:""},"Artwork",-1),LV=[RV],NV=["onClick","onKeypress"],VV=u("span",{class:""},"Online Services",-1),jV=[VV];function BV(e,t,n,s,r,o){const i=P("router-link");return E(),D("section",xV,[u("div",EV,[u("div",CV,[u("div",$V,[u("div",AV,[u("ul",null,[w(i,{to:"/settings/webinterface",custom:""},{default:T(({navigate:a,isActive:l})=>[u("li",{class:We({"is-active":l})},[u("a",{onClick:a,onKeypress:wn(a,["enter"])},PV,40,OV)],2)]),_:1}),w(i,{to:"/settings/remotes-outputs",custom:""},{default:T(({navigate:a,isActive:l})=>[u("li",{class:We({"is-active":l})},[u("a",{onClick:a,onKeypress:wn(a,["enter"])},IV,40,DV)],2)]),_:1}),w(i,{to:"/settings/artwork",custom:""},{default:T(({navigate:a,isActive:l})=>[u("li",{class:We({"is-active":l})},[u("a",{onClick:a,onKeypress:wn(a,["enter"])},LV,40,MV)],2)]),_:1}),w(i,{to:"/settings/online-services",custom:""},{default:T(({navigate:a,isActive:l})=>[u("li",{class:We({"is-active":l})},[u("a",{onClick:a,onKeypress:wn(a,["enter"])},jV,40,NV)],2)]),_:1})])])])])])])}var Ul=ge(SV,[["render",BV]]);const UV={name:"SettingsCheckbox",props:["category_name","option_name"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?"(setting saved)":this.statusUpdate==="error"?"(error saving setting)":""}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.settings_checkbox.checked!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.settings_checkbox.checked;if(console.log(this.$refs.settings_checkbox),e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};G.settings_update(this.category.name,t).then(()=>{this.$store.commit(Ol,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.settings_checkbox.checked=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},HV={class:"field"},zV={class:"checkbox"},qV=["checked"],GV={key:0,class:"help"};function WV(e,t,n,s,r,o){return E(),D("div",HV,[u("label",zV,[u("input",{ref:"settings_checkbox",type:"checkbox",checked:o.value,onChange:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,qV),St(e.$slots,"label"),u("i",{class:We(["is-size-7",{"has-text-info":r.statusUpdate==="success","has-text-danger":r.statusUpdate==="error"}])},R(o.info),3)]),e.$slots.info?(E(),D("p",GV,[St(e.$slots,"info")])):Z("",!0)])}var Sv=ge(UV,[["render",WV]]);const KV={name:"SettingsTextfield",props:["category_name","option_name","placeholder","disabled"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?"(setting saved)":this.statusUpdate==="error"?"(error saving setting)":""}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.settings_text.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.settings_text.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};G.settings_update(this.category.name,t).then(()=>{this.$store.commit(Ol,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.settings_text.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},ZV=["disabled"],YV={class:"field"},JV={class:"label has-text-weight-normal"},XV={class:"control"},QV=["placeholder","value"],ej={key:0,class:"help"};function tj(e,t,n,s,r,o){return E(),D("fieldset",{disabled:n.disabled},[u("div",YV,[u("label",JV,[St(e.$slots,"label"),u("i",{class:We(["is-size-7",{"has-text-info":r.statusUpdate==="success","has-text-danger":r.statusUpdate==="error"}])},R(o.info),3)]),u("div",XV,[u("input",{ref:"settings_text",class:"input",type:"text",placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,QV)]),e.$slots.info?(E(),D("p",ej,[St(e.$slots,"info")])):Z("",!0)])],8,ZV)}var nj=ge(KV,[["render",tj]]);const sj={name:"SettingsIntfield",props:["category_name","option_name","placeholder","disabled"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?"(setting saved)":this.statusUpdate==="error"?"(error saving setting)":""}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.settings_number.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.settings_number.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:parseInt(e,10)};G.settings_update(this.category.name,t).then(()=>{this.$store.commit(Ol,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.settings_number.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},rj=["disabled"],oj={class:"field"},ij={class:"label has-text-weight-normal"},aj={class:"control"},lj=["placeholder","value"],uj={key:0,class:"help"};function cj(e,t,n,s,r,o){return E(),D("fieldset",{disabled:n.disabled},[u("div",oj,[u("label",ij,[St(e.$slots,"label"),u("i",{class:We(["is-size-7",{"has-text-info":r.statusUpdate==="success","has-text-danger":r.statusUpdate==="error"}])},R(o.info),3)]),u("div",aj,[u("input",{ref:"settings_number",class:"input",type:"number",min:"0",style:{width:"10em"},placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,lj)]),e.$slots.info?(E(),D("p",uj,[St(e.$slots,"info")])):Z("",!0)])],8,rj)}var dj=ge(sj,[["render",cj]]);const fj={name:"SettingsPageWebinterface",components:{ContentWithHeading:ht,TabsSettings:Ul,SettingsCheckbox:Sv,SettingsTextfield:nj,SettingsIntfield:dj},computed:{settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing}}},hj={class:"fd-page-with-tabs"},mj=u("div",{class:"title is-4"},"Navbar items",-1),pj=u("p",{class:"content"},"Select the top navigation bar menu items",-1),_j=u("div",{class:"notification is-size-7"}," If you select more items than can be shown on your screen then the burger menu will disappear. ",-1),gj=$e(" Playlists "),vj=$e(" Music "),yj=$e(" Podcasts "),bj=$e(" Audiobooks "),wj=$e(" Radio "),kj=$e(" Files "),Sj=$e(" Search "),xj=u("div",{class:"title is-4"},"Album lists",-1),Ej=$e(" Show cover artwork in album list "),Cj=u("div",{class:"title is-4"},"Now playing page",-1),$j=$e(" Show composer "),Aj=$e(' If enabled the composer of the current playing track is shown on the "now playing page" '),Oj=$e(" Show composer only for listed genres "),Tj=u("p",{class:"help"},' Comma separated list of genres the composer should be displayed on the "now playing page". ',-1),Pj=u("p",{class:"help"},"Leave empty to always show the composer.",-1),Dj=u("p",{class:"help"},[$e(" The genre tag of the current track is matched by checking, if one of the defined genres are included. For example setting to "),u("code",null,"classical, soundtrack"),$e(' will show the composer for tracks with a genre tag of "Contemporary Classical".'),u("br")],-1),Fj=u("div",{class:"title is-4"},"Recently added page",-1),Ij=$e(' Limit the number of albums shown on the "Recently Added" page ');function Mj(e,t,n,s,r,o){const i=P("tabs-settings"),a=P("settings-checkbox"),l=P("content-with-heading"),c=P("settings-textfield"),d=P("settings-intfield");return E(),D("div",hj,[w(i),w(l,null,{"heading-left":T(()=>[mj]),content:T(()=>[pj,_j,w(a,{category_name:"webinterface",option_name:"show_menu_item_playlists"},{label:T(()=>[gj]),_:1}),w(a,{category_name:"webinterface",option_name:"show_menu_item_music"},{label:T(()=>[vj]),_:1}),w(a,{category_name:"webinterface",option_name:"show_menu_item_podcasts"},{label:T(()=>[yj]),_:1}),w(a,{category_name:"webinterface",option_name:"show_menu_item_audiobooks"},{label:T(()=>[bj]),_:1}),w(a,{category_name:"webinterface",option_name:"show_menu_item_radio"},{label:T(()=>[wj]),_:1}),w(a,{category_name:"webinterface",option_name:"show_menu_item_files"},{label:T(()=>[kj]),_:1}),w(a,{category_name:"webinterface",option_name:"show_menu_item_search"},{label:T(()=>[Sj]),_:1})]),_:1}),w(l,null,{"heading-left":T(()=>[xj]),content:T(()=>[w(a,{category_name:"webinterface",option_name:"show_cover_artwork_in_album_lists"},{label:T(()=>[Ej]),_:1})]),_:1}),w(l,null,{"heading-left":T(()=>[Cj]),content:T(()=>[w(a,{category_name:"webinterface",option_name:"show_composer_now_playing"},{label:T(()=>[$j]),info:T(()=>[Aj]),_:1}),w(c,{category_name:"webinterface",option_name:"show_composer_for_genre",disabled:!o.settings_option_show_composer_now_playing,placeholder:"Genres"},{label:T(()=>[Oj]),info:T(()=>[Tj,Pj,Dj]),_:1},8,["disabled"])]),_:1}),w(l,null,{"heading-left":T(()=>[Fj]),content:T(()=>[w(d,{category_name:"webinterface",option_name:"recently_added_limit"},{label:T(()=>[Ij]),_:1})]),_:1})])}var Rj=ge(fj,[["render",Mj]]);const Lj={name:"SettingsPageArtwork",components:{ContentWithHeading:ht,TabsSettings:Ul,SettingsCheckbox:Sv},computed:{spotify(){return this.$store.state.spotify}}},Nj={class:"fd-page-with-tabs"},Vj=u("div",{class:"title is-4"},"Artwork",-1),jj=u("div",{class:"content"},[u("p",null," OwnTone supports PNG and JPEG artwork which is either placed as separate image files in the library, embedded in the media files or made available online by radio stations. "),u("p",null," In addition to that, you can enable fetching artwork from the following artwork providers: ")],-1),Bj=$e(" Spotify "),Uj=$e(" Discogs ("),Hj=u("a",{href:"https://www.discogs.com/"},"https://www.discogs.com/",-1),zj=$e(") "),qj=$e(" Cover Art Archive ("),Gj=u("a",{href:"https://coverartarchive.org/"},"https://coverartarchive.org/",-1),Wj=$e(") ");function Kj(e,t,n,s,r,o){const i=P("tabs-settings"),a=P("settings-checkbox"),l=P("content-with-heading");return E(),D("div",Nj,[w(i),w(l,null,{"heading-left":T(()=>[Vj]),content:T(()=>[jj,o.spotify.libspotify_logged_in?(E(),Se(a,{key:0,category_name:"artwork",option_name:"use_artwork_source_spotify"},{label:T(()=>[Bj]),_:1})):Z("",!0),w(a,{category_name:"artwork",option_name:"use_artwork_source_discogs"},{label:T(()=>[Uj,Hj,zj]),_:1}),w(a,{category_name:"artwork",option_name:"use_artwork_source_coverartarchive"},{label:T(()=>[qj,Gj,Wj]),_:1})]),_:1})])}var Zj=ge(Lj,[["render",Kj]]);const Yj={name:"SettingsPageOnlineServices",components:{ContentWithHeading:ht,TabsSettings:Ul},filters:{join(e){return e.join(", ")}},data(){return{libspotify:{user:"",password:"",errors:{user:"",password:"",error:""}},lastfm_login:{user:"",password:"",errors:{user:"",password:"",error:""}}}},computed:{lastfm(){return this.$store.state.lastfm},spotify(){return this.$store.state.spotify},spotify_required_scope(){return this.spotify.webapi_required_scope?this.spotify.webapi_required_scope.split(" "):[]},spotify_missing_scope(){return this.spotify.webapi_token_valid&&this.spotify.webapi_granted_scope&&this.spotify.webapi_required_scope?this.spotify.webapi_required_scope.split(" ").filter(e=>this.spotify.webapi_granted_scope.indexOf(e)<0):[]},use_libspotify(){return this.$store.state.config.use_libspotify}},methods:{login_libspotify(){G.spotify_login(this.libspotify).then(e=>{this.libspotify.user="",this.libspotify.password="",this.libspotify.errors.user="",this.libspotify.errors.password="",this.libspotify.errors.error="",e.data.success||(this.libspotify.errors.user=e.data.errors.user,this.libspotify.errors.password=e.data.errors.password,this.libspotify.errors.error=e.data.errors.error)})},logout_spotify(){G.spotify_logout()},login_lastfm(){G.lastfm_login(this.lastfm_login).then(e=>{this.lastfm_login.user="",this.lastfm_login.password="",this.lastfm_login.errors.user="",this.lastfm_login.errors.password="",this.lastfm_login.errors.error="",e.data.success||(this.lastfm_login.errors.user=e.data.errors.user,this.lastfm_login.errors.password=e.data.errors.password,this.lastfm_login.errors.error=e.data.errors.error)})},logoutLastfm(){G.lastfm_logout()}}},Jj={class:"fd-page-with-tabs"},Xj=u("div",{class:"title is-4"},"Spotify",-1),Qj={key:0,class:"notification is-size-7"},eB=u("p",null," OwnTone was either built without support for Spotify or libspotify is not installed. ",-1),tB=[eB],nB={key:1},sB={class:"notification is-size-7"},rB=u("b",null,"You must have a Spotify premium account",-1),oB=$e(". "),iB={key:0},aB={key:0},lB=u("p",{class:"content"},[u("b",null,"libspotify"),$e(" - Login with your Spotify username and password ")],-1),uB={key:0,class:"fd-has-margin-bottom"},cB=$e(" Logged in as "),dB={class:"field is-grouped"},fB={class:"control is-expanded"},hB={class:"help is-danger"},mB={class:"control is-expanded"},pB={class:"help is-danger"},_B=u("div",{class:"control"},[u("button",{class:"button is-info"},"Login")],-1),gB={class:"help is-danger"},vB=u("p",{class:"help"}," libspotify enables OwnTone to play Spotify tracks. ",-1),yB=u("p",{class:"help"}," OwnTone will not store your password, but will still be able to log you in automatically afterwards, because libspotify saves a login token. ",-1),bB={class:"fd-has-margin-top"},wB=u("p",{class:"content"},[u("b",null,"Spotify Web API"),$e(" - Grant access to the Spotify Web API ")],-1),kB={key:0},SB=$e(" Access granted for "),xB={key:1,class:"help is-danger"},EB=$e(" Please reauthorize Web API access to grant OwnTone the following additional access rights: "),CB={class:"field fd-has-margin-top"},$B={class:"control"},AB=["href"],OB={class:"help"},TB=$e(" Access to the Spotify Web API enables scanning of your Spotify library. Required scopes are "),PB=$e(". "),DB={key:2,class:"field fd-has-margin-top"},FB={class:"control"},IB=u("div",{class:"title is-4"},"Last.fm",-1),MB={key:0,class:"notification is-size-7"},RB=u("p",null,"OwnTone was built without support for Last.fm.",-1),LB=[RB],NB={key:1},VB=u("p",{class:"content"},[u("b",null,"Last.fm"),$e(" - Login with your Last.fm username and password to enable scrobbling ")],-1),jB={key:0},BB={key:1},UB={class:"field is-grouped"},HB={class:"control is-expanded"},zB={class:"help is-danger"},qB={class:"control is-expanded"},GB={class:"help is-danger"},WB=u("div",{class:"control"},[u("button",{class:"button is-info",type:"submit"},"Login")],-1),KB={class:"help is-danger"},ZB=u("p",{class:"help"}," OwnTone will not store your Last.fm username/password, only the session key. The session key does not expire. ",-1);function YB(e,t,n,s,r,o){const i=P("tabs-settings"),a=P("content-with-heading");return E(),D("div",Jj,[w(i),w(a,null,{"heading-left":T(()=>[Xj]),content:T(()=>[o.spotify.spotify_installed?Z("",!0):(E(),D("div",Qj,tB)),o.spotify.spotify_installed?(E(),D("div",nB,[u("div",sB,[rB,oB,e.use_libspotity?(E(),D("span",iB,"If you normally log into Spotify with your Facebook account you must first go to Spotify's web site where you can get the Spotify username and password that matches your account.")):Z("",!0)]),e.use_libspotity?(E(),D("div",aB,[lB,o.spotify.libspotify_logged_in?(E(),D("p",uB,[cB,u("b",null,[u("code",null,R(o.spotify.libspotify_user),1)])])):Z("",!0),o.spotify.spotify_installed&&!o.spotify.libspotify_logged_in?(E(),D("form",{key:1,onSubmit:t[2]||(t[2]=pt((...l)=>o.login_libspotify&&o.login_libspotify(...l),["prevent"]))},[u("div",dB,[u("div",fB,[wt(u("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>r.libspotify.user=l),class:"input",type:"text",placeholder:"Username"},null,512),[[en,r.libspotify.user]]),u("p",hB,R(r.libspotify.errors.user),1)]),u("div",mB,[wt(u("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>r.libspotify.password=l),class:"input",type:"password",placeholder:"Password"},null,512),[[en,r.libspotify.password]]),u("p",pB,R(r.libspotify.errors.password),1)]),_B])],32)):Z("",!0),u("p",gB,R(r.libspotify.errors.error),1),vB,yB])):Z("",!0),u("div",bB,[wB,o.spotify.webapi_token_valid?(E(),D("p",kB,[SB,u("b",null,[u("code",null,R(o.spotify.webapi_user),1)])])):Z("",!0),o.spotify_missing_scope.length>0?(E(),D("p",xB,[EB,u("b",null,[u("code",null,R(o.spotify_missing_scope.join()),1)])])):Z("",!0),u("div",CB,[u("div",$B,[u("a",{class:We(["button",{"is-info":!o.spotify.webapi_token_valid||o.spotify_missing_scope.length>0}]),href:o.spotify.oauth_uri},"Authorize Web API access",10,AB)])]),u("p",OB,[TB,u("code",null,R(o.spotify_required_scope.join()),1),PB]),o.spotify.webapi_token_valid?(E(),D("div",DB,[u("div",FB,[u("a",{class:"button is-danger",onClick:t[3]||(t[3]=(...l)=>o.logout_spotify&&o.logout_spotify(...l))},"Logout")])])):Z("",!0)])])):Z("",!0)]),_:1}),w(a,null,{"heading-left":T(()=>[IB]),content:T(()=>[o.lastfm.enabled?Z("",!0):(E(),D("div",MB,LB)),o.lastfm.enabled?(E(),D("div",NB,[VB,o.lastfm.scrobbling_enabled?(E(),D("div",jB,[u("a",{class:"button",onClick:t[4]||(t[4]=(...l)=>o.logoutLastfm&&o.logoutLastfm(...l))},"Stop scrobbling")])):Z("",!0),o.lastfm.scrobbling_enabled?Z("",!0):(E(),D("div",BB,[u("form",{onSubmit:t[7]||(t[7]=pt((...l)=>o.login_lastfm&&o.login_lastfm(...l),["prevent"]))},[u("div",UB,[u("div",HB,[wt(u("input",{"onUpdate:modelValue":t[5]||(t[5]=l=>r.lastfm_login.user=l),class:"input",type:"text",placeholder:"Username"},null,512),[[en,r.lastfm_login.user]]),u("p",zB,R(r.lastfm_login.errors.user),1)]),u("div",qB,[wt(u("input",{"onUpdate:modelValue":t[6]||(t[6]=l=>r.lastfm_login.password=l),class:"input",type:"password",placeholder:"Password"},null,512),[[en,r.lastfm_login.password]]),u("p",GB,R(r.lastfm_login.errors.password),1)]),WB]),u("p",KB,R(r.lastfm_login.errors.error),1),ZB],32)]))])):Z("",!0)]),_:1})])}var JB=ge(Yj,[["render",YB]]);const XB={name:"SettingsPageRemotesOutputs",components:{ContentWithHeading:ht,TabsSettings:Ul},filters:{},data(){return{pairing_req:{pin:""},verification_req:{pin:""}}},computed:{pairing(){return this.$store.state.pairing},outputs(){return this.$store.state.outputs}},methods:{kickoff_pairing(){G.pairing_kickoff(this.pairing_req)},output_toggle(e){G.output_toggle(e)},kickoff_verification(e){G.output_update(e,this.verification_req)}}},QB={class:"fd-page-with-tabs"},eU=u("div",{class:"title is-4"},"Remote Pairing",-1),tU={key:0,class:"notification"},nU={class:"label has-text-weight-normal"},sU=$e(" Remote pairing request from "),rU={class:"field is-grouped"},oU={class:"control"},iU=u("div",{class:"control"},[u("button",{class:"button is-info",type:"submit"},"Send")],-1),aU={key:1,class:"content"},lU=u("p",null,"No active pairing request.",-1),uU=[lU],cU=u("div",{class:"title is-4"},"Speaker pairing and device verification",-1),dU=u("p",{class:"content"}," If your speaker requires pairing then activate it below and enter the PIN that it displays. ",-1),fU={class:"field"},hU={class:"control"},mU={class:"checkbox"},pU=["onUpdate:modelValue","onChange"],_U=["onSubmit"],gU={class:"field is-grouped"},vU={class:"control"},yU=u("div",{class:"control"},[u("button",{class:"button is-info",type:"submit"},"Verify")],-1);function bU(e,t,n,s,r,o){const i=P("tabs-settings"),a=P("content-with-heading");return E(),D("div",QB,[w(i),w(a,null,{"heading-left":T(()=>[eU]),content:T(()=>[o.pairing.active?(E(),D("div",tU,[u("form",{onSubmit:t[1]||(t[1]=pt((...l)=>o.kickoff_pairing&&o.kickoff_pairing(...l),["prevent"]))},[u("label",nU,[sU,u("b",null,R(o.pairing.remote),1)]),u("div",rU,[u("div",oU,[wt(u("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>r.pairing_req.pin=l),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[en,r.pairing_req.pin]])]),iU])],32)])):Z("",!0),o.pairing.active?Z("",!0):(E(),D("div",aU,uU))]),_:1}),w(a,null,{"heading-left":T(()=>[cU]),content:T(()=>[dU,(E(!0),D(Ke,null,bt(o.outputs,l=>(E(),D("div",{key:l.id},[u("div",fU,[u("div",hU,[u("label",mU,[wt(u("input",{"onUpdate:modelValue":c=>l.selected=c,type:"checkbox",onChange:c=>o.output_toggle(l.id)},null,40,pU),[[ps,l.selected]]),$e(" "+R(l.name),1)])])]),l.needs_auth_key?(E(),D("form",{key:0,class:"fd-has-margin-bottom",onSubmit:pt(c=>o.kickoff_verification(l.id),["prevent"])},[u("div",gU,[u("div",vU,[wt(u("input",{"onUpdate:modelValue":t[2]||(t[2]=c=>r.verification_req.pin=c),class:"input",type:"text",placeholder:"Enter verification code"},null,512),[[en,r.verification_req.pin]])]),yU])],40,_U)):Z("",!0)]))),128))]),_:1})])}var wU=ge(XB,[["render",bU]]);const xv=Y2({history:f2(),routes:[{path:"/",name:"PageQueue",component:pC},{path:"/about",name:"About",component:c9},{path:"/now-playing",name:"Now playing",component:eA},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:f4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:v4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:x4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/artists",name:"Artists",component:IT,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:GT,meta:{show_progress:!0,has_index:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:Z8,meta:{show_progress:!0,has_index:!0}},{path:"/music/albums",name:"Albums",component:d5,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/albums/:album_id",name:"Album",component:L5,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:k8,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/genres/:genre",name:"Genre",component:P8,meta:{show_progress:!0,has_index:!0}},{path:"/music/genres/:genre/tracks",name:"GenreTracks",component:j8,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers",name:"Composers",component:OP,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/albums",name:"ComposerAlbums",component:NP,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/tracks",name:"ComposerTracks",component:WP,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/podcasts",name:"Podcasts",component:OD,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:UD,meta:{show_progress:!0}},{path:"/audiobooks",redirect:"/audiobooks/artists"},{path:"/audiobooks/artists",name:"AudiobooksArtists",component:hF,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/artists/:artist_id",name:"AudiobooksArtist",component:kF,meta:{show_progress:!0}},{path:"/audiobooks/albums",name:"AudiobooksAlbums",component:aF,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:FF,meta:{show_progress:!0}},{path:"/radio",name:"Radio",component:_7,meta:{show_progress:!0}},{path:"/files",name:"Files",component:d7,meta:{show_progress:!0}},{path:"/playlists",redirect:"/playlists/0"},{path:"/playlists/:playlist_id",name:"Playlists",component:_I,meta:{show_progress:!0}},{path:"/playlists/:playlist_id/tracks",name:"Playlist",component:EI,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:bM},{path:"/music/spotify",name:"Spotify",component:PR,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:VR,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:GR,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:xL,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:gN,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:ON,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:kV},{path:"/settings/webinterface",name:"Settings Webinterface",component:Rj},{path:"/settings/artwork",name:"Settings Artwork",component:Zj},{path:"/settings/online-services",name:"Settings Online Services",component:JB},{path:"/settings/remotes-outputs",name:"Settings Remotes Outputs",component:wU}],scrollBehavior(e,t,n){return n?new Promise((r,o)=>{setTimeout(()=>{r(n)},0)}):e.path===t.path&&e.hash?{el:e.hash,top:120}:e.hash?new Promise((r,o)=>{setTimeout(()=>{r({el:e.hash,top:120})},0)}):e.meta.has_index?new Promise((r,o)=>{setTimeout(()=>{e.meta.has_tabs?r({el:"#top",top:140}):r({el:"#top",top:110})},0)}):{left:0,top:0}}});xv.beforeEach((e,t,n)=>{if(at.state.show_burger_menu){at.commit(eo,!1),n(!1);return}if(at.state.show_player_menu){at.commit(to,!1),n(!1);return}n(!0)});var Ev={exports:{}};(function(e){e.exports=function(t){var n={};function s(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,s),o.l=!0,o.exports}return s.m=t,s.c=n,s.d=function(r,o,i){s.o(r,o)||Object.defineProperty(r,o,{enumerable:!0,get:i})},s.r=function(r){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},s.t=function(r,o){if(o&1&&(r=s(r)),o&8||o&4&&typeof r=="object"&&r&&r.__esModule)return r;var i=Object.create(null);if(s.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:r}),o&2&&typeof r!="string")for(var a in r)s.d(i,a,function(l){return r[l]}.bind(null,a));return i},s.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return s.d(o,"a",o),o},s.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},s.p="",s(s.s="fb15")}({"8875":function(t,n,s){var r,o,i;(function(a,l){o=[],r=l,i=typeof r=="function"?r.apply(n,o):r,i!==void 0&&(t.exports=i)})(typeof self!="undefined"?self:this,function(){function a(){var l=Object.getOwnPropertyDescriptor(document,"currentScript");if(!l&&"currentScript"in document&&document.currentScript||l&&l.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(x){var c=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,h=c.exec(x.stack)||d.exec(x.stack),f=h&&h[1]||!1,m=h&&h[2]||!1,p=document.location.href.replace(document.location.hash,""),_,g,y,b=document.getElementsByTagName("script");f===p&&(_=document.documentElement.outerHTML,g=new RegExp("(?:[^\\n]+?\\n){0,"+(m-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=_.replace(g,"$1").trim());for(var S=0;S<b.length;S++)if(b[S].readyState==="interactive"||b[S].src===f||f===p&&b[S].innerHTML&&b[S].innerHTML.trim()===y)return b[S];return null}}return a})},"8bbf":function(t,n){t.exports=Td},fb15:function(t,n,s){if(s.r(n),typeof window!="undefined"){var r=window.document.currentScript;{var o=s("8875");r=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(s.p=i[1])}var a=s("8bbf");function l(p,_,g,y,b,S){return Object(a.openBlock)(),Object(a.createBlock)("div",{style:y.finalStyle},null,4)}var c=typeof window!="undefined",d={name:"VueProgress",serverCacheKey:function(){return"Progress"},setup:function(){var _=c?Object(a.inject)("RADON_LOADING_BAR"):{percent:0,options:{canSuccess:!0,show:!1,color:"rgb(19, 91, 55)",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},location:"top",autoRevert:!0,inverse:!1}},g=Object(a.computed)(function(){var y=_.options,b=!!y.show,S=y.location,x={"z-index":999999,"background-color":y.canSuccess?y.color:y.failedColor,opacity:y.show?1:0,position:y.position};return S==="top"||S==="bottom"?(S==="top"?x.top="0px":x.bottom="0px",y.inverse?x.right="0px":x.left="0px",x.width=_.percent+"%",x.height=y.thickness,x.transition=(b?"width "+y.transition.speed+", ":"")+"opacity "+y.transition.opacity):(S==="left"||S==="right")&&(S==="left"?x.left="0px":x.right="0px",y.inverse?x.top="0px":x.bottom="0px",x.height=_.percent+"%",x.width=y.thickness,x.transition=(b?"height "+y.transition.speed+", ":"")+"opacity "+y.transition.opacity),x});return{progress:_,finalStyle:g}}};d.render=l;var h=d;function f(p,_){for(var g=1,y,b;g<arguments.length;++g){b=arguments[g];for(y in b)Object.prototype.hasOwnProperty.call(b,y)&&(p[y]=b[y])}return p}var m={install:function(_,g){var y={canSuccess:!0,show:!1,color:"#73ccec",position:"fixed",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},autoRevert:!0,location:"top",inverse:!1,autoFinish:!0},b=f(y,g),S=Object(a.reactive)({percent:0,options:b});_.provide("RADON_LOADING_BAR",S);var x={state:{tFailColor:"",tColor:"",timer:null,cut:0},start:function(A){var M=this;A||(A=3e3),S.percent=0,S.options.show=!0,S.options.canSuccess=!0,this.state.cut=1e4/Math.floor(A),clearInterval(this.state.timer),this.state.timer=setInterval(function(){M.increase(M.state.cut*Math.random()),S.percent>95&&S.options.autoFinish&&M.finish()},100)},set:function(A){S.options.show=!0,S.options.canSuccess=!0,S.percent=Math.floor(A)},get:function(){return Math.floor(S.percent)},increase:function(A){S.percent=Math.min(99,S.percent+Math.floor(A))},decrease:function(A){S.percent=S.percent-Math.floor(A)},hide:function(){var A=this;clearInterval(this.state.timer),this.state.timer=null,setTimeout(function(){S.options.show=!1,Object(a.nextTick)(function(){setTimeout(function(){S.percent=0},100),S.options.autoRevert&&setTimeout(function(){A.revert()},300)})},S.options.transition.termination)},pause:function(){clearInterval(this.state.timer)},finish:function(){S.percent=100,this.hide()},fail:function(){S.options.canSuccess=!1,S.percent=100,this.hide()},setFailColor:function(A){S.options.failedColor=A},setColor:function(A){S.options.color=A},setLocation:function(A){S.options.location=A},setTransition:function(A){S.options.transition=A},tempFailColor:function(A){this.state.tFailColor=S.options.failedColor,S.options.failedColor=A},tempColor:function(A){this.state.tColor=S.options.color,S.options.color=A},tempLocation:function(A){this.state.tLocation=S.options.location,S.options.location=A},tempTransition:function(A){this.state.tTransition=S.options.transition,S.options.transition=A},revertColor:function(){S.options.color=this.state.tColor,this.state.tColor=""},revertFailColor:function(){S.options.failedColor=this.state.tFailColor,this.state.tFailColor=""},revertLocation:function(){S.options.location=this.state.tLocation,this.state.tLocation=""},revertTransition:function(){S.options.transition=this.state.tTransition,this.state.tTransition={}},revert:function(){S.options.autoRevert&&(this.state.tColor&&this.revertColor(),this.state.tFailColor&&this.revertFailColor(),this.state.tLocation&&this.revertLocation(),this.state.tTransition&&(this.state.tTransition.speed!==void 0||this.state.tTransition.opacity!==void 0)&&this.revertTransition())},parseMeta:function(A){for(var M in A.func){var j=A.func[M];switch(j.call){case"color":switch(j.modifier){case"set":this.setColor(j.argument);break;case"temp":this.tempColor(j.argument);break}break;case"fail":switch(j.modifier){case"set":this.setFailColor(j.argument);break;case"temp":this.tempFailColor(j.argument);break}break;case"location":switch(j.modifier){case"set":this.setLocation(j.argument);break;case"temp":this.tempLocation(j.argument);break}break;case"transition":switch(j.modifier){case"set":this.setTransition(j.argument);break;case"temp":this.tempTransition(j.argument);break}break}}}};_.component("vue-progress-bar",h),_.config.globalProperties.$Progress=x}};n.default=m}})})(Ev);var kU=Q_(Ev.exports);const Cv=function(){return document.ontouchstart!==null?"click":"touchstart"},sl="__vue_click_away__",$v=function(e,t,n){Av(e);let s=n.context,r=t.value,o=!1;setTimeout(function(){o=!0},0),e[sl]=function(i){if((!e||!e.contains(i.target))&&r&&o&&typeof r=="function")return r.call(s,i)},document.addEventListener(Cv(),e[sl],!1)},Av=function(e){document.removeEventListener(Cv(),e[sl],!1),delete e[sl]},SU=function(e,t,n){t.value!==t.oldValue&&$v(e,t,n)},xU={install:function(e){e.directive("click-away",EU)}},EU={mounted:$v,updated:SU,unmounted:Av};/*!
|
|
* Vue3-Lazyload.js v0.2.5-beta
|
|
* A Vue3.x image lazyload plugin
|
|
* (c) 2021 MuRong <admin@imuboy.cn>
|
|
* Released under the MIT License.
|
|
*/var Bn;(function(e){e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"})(Bn||(Bn={}));var CU=typeof window!="undefined"&&window!==null,$U=PU(),AU=Object.prototype.propertyIsEnumerable,fm=Object.getOwnPropertySymbols;function ti(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function OU(e){return typeof e=="object"?e===null:typeof e!="function"}function TU(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function PU(){return CU&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0):!1}function DU(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!ti(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof fm!="function")return e;for(var s=0,r=t;s<r.length;s++)for(var o=r[s],i=fm(o),a=0,l=i;a<l.length;a++){var c=l[a];AU.call(o,c)&&(e[c]=o[c])}return e}function Ov(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var s=0;for(OU(e)&&(e=t[s++]),e||(e={});s<t.length;s++)if(ti(t[s])){for(var r=0,o=Object.keys(t[s]);r<o.length;r++){var i=o[r];TU(i)&&(ti(e[i])&&ti(t[s][i])?Ov(e[i],t[s][i]):e[i]=t[s][i])}DU(e,t[s])}return e}var FU={rootMargin:"0px",threshold:0},hm="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",IU="",MU=function(){function e(t){this.options={loading:hm,error:IU,observerOptions:FU,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}return e.prototype.config=function(t){t===void 0&&(t={}),Ov(this.options,t)},e.prototype.mount=function(t,n){var s=this._valueFormatter(n.value),r=s.src,o=s.loading,i=s.error,a=s.lifecycle;this._lifecycle(Bn.LOADING,a,t),t.setAttribute("src",o||hm),$U||(this.loadImages(t,r,i,a),this._log(function(){throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,r,i,a)},e.prototype.update=function(t,n){var s;(s=this._realObserver(t))===null||s===void 0||s.unobserve(t);var r=this._valueFormatter(n.value),o=r.src,i=r.error,a=r.lifecycle;this._initIntersectionObserver(t,o,i,a)},e.prototype.unmount=function(t){var n;(n=this._realObserver(t))===null||n===void 0||n.unobserve(t),this._images.delete(t)},e.prototype.loadImages=function(t,n,s,r){this._setImageSrc(t,n,s,r)},e.prototype._setImageSrc=function(t,n,s,r){var o=this;if(t.tagName.toLowerCase()==="img"){if(n){var i=t.getAttribute("src");i!==n&&t.setAttribute("src",n)}this._listenImageStatus(t,function(){o._lifecycle(Bn.LOADED,r,t)},function(){var a;t.onload=null,o._lifecycle(Bn.ERROR,r,t),(a=o._realObserver(t))===null||a===void 0||a.disconnect(),s&&t.setAttribute("src",s),o._log(function(){throw new Error("Image failed to load!")})})}else t.style.backgroundImage="url('"+n+"')"},e.prototype._initIntersectionObserver=function(t,n,s,r){var o=this,i,a=this.options.observerOptions;this._images.set(t,new IntersectionObserver(function(l){Array.prototype.forEach.call(l,function(c){var d;c.isIntersecting&&((d=o._realObserver(t))===null||d===void 0||d.unobserve(c.target),o._setImageSrc(t,n,s,r))})},a)),(i=this._realObserver(t))===null||i===void 0||i.observe(t)},e.prototype._listenImageStatus=function(t,n,s){t.onload=n,t.onerror=s},e.prototype._valueFormatter=function(t){var n=t,s=this.options.loading,r=this.options.error,o=this.options.lifecycle;return ti(t)&&(n=t.src,s=t.loading||this.options.loading,r=t.error||this.options.error,o=t.lifecycle||this.options.lifecycle),{src:n,loading:s,error:r,lifecycle:o}},e.prototype._log=function(t){this.options.log&&t()},e.prototype._lifecycle=function(t,n,s){switch(t){case Bn.LOADING:s==null||s.setAttribute("lazy",Bn.LOADING),n!=null&&n.loading&&n.loading(s);break;case Bn.LOADED:s==null||s.setAttribute("lazy",Bn.LOADED),n!=null&&n.loaded&&n.loaded(s);break;case Bn.ERROR:s==null||s.setAttribute("lazy",Bn.ERROR),n!=null&&n.error&&n.error(s);break}},e.prototype._realObserver=function(t){return this._images.get(t)},e}(),RU={install:function(e,t){var n=new MU(t);e.config.globalProperties.$Lazyload=n,e.provide("Lazyload",n),e.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}},Tv={exports:{}};/*!
|
|
* vue-scrollto v2.20.0
|
|
* (c) 2019 Randjelovic Igor
|
|
* @license MIT
|
|
*/(function(e,t){(function(n,s){e.exports=s()})(tn,function(){function n(me){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(Y){return typeof Y}:n=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},n(me)}function s(){return s=Object.assign||function(me){for(var Y=1;Y<arguments.length;Y++){var ce=arguments[Y];for(var we in ce)Object.prototype.hasOwnProperty.call(ce,we)&&(me[we]=ce[we])}return me},s.apply(this,arguments)}var r=4,o=.001,i=1e-7,a=10,l=11,c=1/(l-1),d=typeof Float32Array=="function";function h(me,Y){return 1-3*Y+3*me}function f(me,Y){return 3*Y-6*me}function m(me){return 3*me}function p(me,Y,ce){return((h(Y,ce)*me+f(Y,ce))*me+m(Y))*me}function _(me,Y,ce){return 3*h(Y,ce)*me*me+2*f(Y,ce)*me+m(Y)}function g(me,Y,ce,we,U){var re,ne,be=0;do ne=Y+(ce-Y)/2,re=p(ne,we,U)-me,re>0?ce=ne:Y=ne;while(Math.abs(re)>i&&++be<a);return ne}function y(me,Y,ce,we){for(var U=0;U<r;++U){var re=_(Y,ce,we);if(re===0)return Y;var ne=p(Y,ce,we)-me;Y-=ne/re}return Y}function b(me){return me}var S=function(Y,ce,we,U){if(!(0<=Y&&Y<=1&&0<=we&&we<=1))throw new Error("bezier x values must be in [0, 1] range");if(Y===ce&&we===U)return b;for(var re=d?new Float32Array(l):new Array(l),ne=0;ne<l;++ne)re[ne]=p(ne*c,Y,we);function be(Ue){for(var Me=0,Ae=1,De=l-1;Ae!==De&&re[Ae]<=Ue;++Ae)Me+=c;--Ae;var $=(Ue-re[Ae])/(re[Ae+1]-re[Ae]),L=Me+$*c,K=_(L,Y,we);return K>=o?y(Ue,L,Y,we):K===0?L:g(Ue,Me,Me+c,Y,we)}return function(Me){return Me===0?0:Me===1?1:p(be(Me),ce,U)}},x={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},C=!1;try{var A=Object.defineProperty({},"passive",{get:function(){C=!0}});window.addEventListener("test",null,A)}catch{}var M={$:function(Y){return typeof Y!="string"?Y:document.querySelector(Y)},on:function(Y,ce,we){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};ce instanceof Array||(ce=[ce]);for(var re=0;re<ce.length;re++)Y.addEventListener(ce[re],we,C?U:!1)},off:function(Y,ce,we){ce instanceof Array||(ce=[ce]);for(var U=0;U<ce.length;U++)Y.removeEventListener(ce[U],we)},cumulativeOffset:function(Y){var ce=0,we=0;do ce+=Y.offsetTop||0,we+=Y.offsetLeft||0,Y=Y.offsetParent;while(Y);return{top:ce,left:we}}},j=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],O={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function V(me){O=s({},O,me)}var q=function(){var Y,ce,we,U,re,ne,be,Ue,Me,Ae,De,$,L,K,oe,le,ye,ke,he,pe,fe,Ne,Ce,Re=function(ie){!Ue||(Ce=ie,pe=!0)},He,Je,st,k;function v(ee){var ie=ee.scrollTop;return ee.tagName.toLowerCase()==="body"&&(ie=ie||document.documentElement.scrollTop),ie}function I(ee){var ie=ee.scrollLeft;return ee.tagName.toLowerCase()==="body"&&(ie=ie||document.documentElement.scrollLeft),ie}function z(){fe=M.cumulativeOffset(ce),Ne=M.cumulativeOffset(Y),$&&(oe=Ne.left-fe.left+ne,ke=oe-K),L&&(ye=Ne.top-fe.top+ne,he=ye-le)}function J(ee){if(pe)return de();Je||(Je=ee),re||z(),st=ee-Je,k=Math.min(st/we,1),k=He(k),Ee(ce,le+he*k,K+ke*k),st<we?window.requestAnimationFrame(J):de()}function de(){pe||Ee(ce,ye,oe),Je=!1,M.off(ce,j,Re),pe&&De&&De(Ce,Y),!pe&&Ae&&Ae(Y)}function Ee(ee,ie,X){L&&(ee.scrollTop=ie),$&&(ee.scrollLeft=X),ee.tagName.toLowerCase()==="body"&&(L&&(document.documentElement.scrollTop=ie),$&&(document.documentElement.scrollLeft=X))}function Ie(ee,ie){var X=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(ie)==="object"?X=ie:typeof ie=="number"&&(X.duration=ie),Y=M.$(ee),!Y)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+ee);if(ce=M.$(X.container||O.container),we=X.hasOwnProperty("duration")?X.duration:O.duration,re=X.hasOwnProperty("lazy")?X.lazy:O.lazy,U=X.easing||O.easing,ne=X.hasOwnProperty("offset")?X.offset:O.offset,be=X.hasOwnProperty("force")?X.force!==!1:O.force,Ue=X.hasOwnProperty("cancelable")?X.cancelable!==!1:O.cancelable,Me=X.onStart||O.onStart,Ae=X.onDone||O.onDone,De=X.onCancel||O.onCancel,$=X.x===void 0?O.x:X.x,L=X.y===void 0?O.y:X.y,typeof ne=="function"&&(ne=ne(Y,ce)),K=I(ce),le=v(ce),z(),pe=!1,!be){var se=ce.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:ce.offsetHeight,Ve=le,Be=Ve+se,ct=ye-ne,ln=ct+Y.offsetHeight;if(ct>=Ve&&ln<=Be){Ae&&Ae(Y);return}}if(Me&&Me(Y),!he&&!ke){Ae&&Ae(Y);return}return typeof U=="string"&&(U=x[U]||x.ease),He=S.apply(S,U),M.on(ce,j,Re,{passive:!0}),window.requestAnimationFrame(J),function(){Ce=null,pe=!0}}return Ie},F=q(),B=[];function W(me){for(var Y=0;Y<B.length;++Y)if(B[Y].el===me)return B.splice(Y,1),!0;return!1}function ue(me){for(var Y=0;Y<B.length;++Y)if(B[Y].el===me)return B[Y]}function te(me){var Y=ue(me);return Y||(B.push(Y={el:me,binding:{}}),Y)}function ae(me){var Y=te(this).binding;if(!!Y.value){if(me.preventDefault(),typeof Y.value=="string")return F(Y.value);F(Y.value.el||Y.value.element,Y.value)}}var ve={bind:function(Y,ce){te(Y).binding=ce,M.on(Y,"click",ae)},unbind:function(Y){W(Y),M.off(Y,"click",ae)},update:function(Y,ce){te(Y).binding=ce}},Le={bind:ve.bind,unbind:ve.unbind,update:ve.update,beforeMount:ve.bind,unmounted:ve.unbind,updated:ve.update,scrollTo:F,bindings:B},qe=function(Y,ce){ce&&V(ce),Y.directive("scroll-to",Le);var we=Y.config.globalProperties||Y.prototype;we.$scrollTo=Le.scrollTo};return typeof window!="undefined"&&window.Vue&&(window.VueScrollTo=Le,window.VueScrollTo.setDefaults=V,window.VueScrollTo.scroller=q,window.Vue.use&&window.Vue.use(qe)),Le.install=qe,Le})})(Tv);var LU=Tv.exports,NU="M11,14C12,14 13.05,14.16 14.2,14.44C13.39,15.31 13,16.33 13,17.5C13,18.39 13.25,19.23 13.78,20H3V18C3,16.81 3.91,15.85 5.74,15.12C7.57,14.38 9.33,14 11,14M11,12C9.92,12 9,11.61 8.18,10.83C7.38,10.05 7,9.11 7,8C7,6.92 7.38,6 8.18,5.18C9,4.38 9.92,4 11,4C12.11,4 13.05,4.38 13.83,5.18C14.61,6 15,6.92 15,8C15,9.11 14.61,10.05 13.83,10.83C13.05,11.61 12.11,12 11,12M18.5,10H20L22,10V12H20V17.5A2.5,2.5 0 0,1 17.5,20A2.5,2.5 0 0,1 15,17.5A2.5,2.5 0 0,1 17.5,15C17.86,15 18.19,15.07 18.5,15.21V10Z",VU="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12,16.5C9.5,16.5 7.5,14.5 7.5,12C7.5,9.5 9.5,7.5 12,7.5C14.5,7.5 16.5,9.5 16.5,12C16.5,14.5 14.5,16.5 12,16.5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",jU="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",BU="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",UU="M19 2L14 6.5V17.5L19 13V2M6.5 5C4.55 5 2.45 5.4 1 6.5V21.16C1 21.41 1.25 21.66 1.5 21.66C1.6 21.66 1.65 21.59 1.75 21.59C3.1 20.94 5.05 20.5 6.5 20.5C8.45 20.5 10.55 20.9 12 22C13.35 21.15 15.8 20.5 17.5 20.5C19.15 20.5 20.85 20.81 22.25 21.56C22.35 21.61 22.4 21.59 22.5 21.59C22.75 21.59 23 21.34 23 21.09V6.5C22.4 6.05 21.75 5.75 21 5.5V19C19.9 18.65 18.7 18.5 17.5 18.5C15.8 18.5 13.35 19.15 12 20V6.5C10.55 5.4 8.45 5 6.5 5Z",HU="M17.5 14.33C18.29 14.33 19.13 14.41 20 14.57V16.07C19.38 15.91 18.54 15.83 17.5 15.83C15.6 15.83 14.11 16.16 13 16.82V15.13C14.17 14.6 15.67 14.33 17.5 14.33M13 12.46C14.29 11.93 15.79 11.67 17.5 11.67C18.29 11.67 19.13 11.74 20 11.9V13.4C19.38 13.24 18.54 13.16 17.5 13.16C15.6 13.16 14.11 13.5 13 14.15M17.5 10.5C15.6 10.5 14.11 10.82 13 11.5V9.84C14.23 9.28 15.73 9 17.5 9C18.29 9 19.13 9.08 20 9.23V10.78C19.26 10.59 18.41 10.5 17.5 10.5M21 18.5V7C19.96 6.67 18.79 6.5 17.5 6.5C15.45 6.5 13.62 7 12 8V19.5C13.62 18.5 15.45 18 17.5 18C18.69 18 19.86 18.16 21 18.5M17.5 4.5C19.85 4.5 21.69 5 23 6V20.56C23 20.68 22.95 20.8 22.84 20.91C22.73 21 22.61 21.08 22.5 21.08C22.39 21.08 22.31 21.06 22.25 21.03C20.97 20.34 19.38 20 17.5 20C15.45 20 13.62 20.5 12 21.5C10.66 20.5 8.83 20 6.5 20C4.84 20 3.25 20.36 1.75 21.07C1.72 21.08 1.68 21.08 1.63 21.1C1.59 21.11 1.55 21.12 1.5 21.12C1.39 21.12 1.27 21.08 1.16 21C1.05 20.89 1 20.78 1 20.65V6C2.34 5 4.18 4.5 6.5 4.5C8.83 4.5 10.66 5 12 6C13.34 5 15.17 4.5 17.5 4.5Z",zU="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",qU="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",GU="M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z",WU="M6,22H18L12,16M21,3H3A2,2 0 0,0 1,5V17A2,2 0 0,0 3,19H7V17H3V5H21V17H17V19H21A2,2 0 0,0 23,17V5A2,2 0 0,0 21,3Z",KU="M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z",ZU="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",YU="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",JU="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",XU="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",QU="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",eH="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",tH="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",nH="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",sH="M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z",rH="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",oH="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z",iH="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",aH="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",lH="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",uH="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",cH="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",dH="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",fH="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",hH="M21,3V15.5A3.5,3.5 0 0,1 17.5,19A3.5,3.5 0 0,1 14,15.5A3.5,3.5 0 0,1 17.5,12C18.04,12 18.55,12.12 19,12.34V6.47L9,8.6V17.5A3.5,3.5 0 0,1 5.5,21A3.5,3.5 0 0,1 2,17.5A3.5,3.5 0 0,1 5.5,14C6.04,14 6.55,14.12 7,14.34V6L21,3Z",mH="M4,6H2V20A2,2 0 0,0 4,22H18V20H4M18,7H15V12.5A2.5,2.5 0 0,1 12.5,15A2.5,2.5 0 0,1 10,12.5A2.5,2.5 0 0,1 12.5,10C13.07,10 13.58,10.19 14,10.5V5H18M20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2Z",pH="M14,19H18V5H14M6,19H10V5H6V19Z",_H="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",gH="M22,14H20V16H14V13H16V11H14V6A2,2 0 0,0 12,4H4V2H2V10H4V8H10V11H8V13H10V18A2,2 0 0,0 12,20H20V22H22",vH="M8,5.14V19.14L19,12.14L8,5.14Z",yH="M19,9H2V11H19V9M19,5H2V7H19V5M2,15H15V13H2V15M17,13V19L22,16L17,13Z",bH="M2,16H10V14H2M18,14V10H16V14H12V16H16V20H18V16H22V14M14,6H2V8H14M14,10H2V12H14V10Z",wH="M20,6A2,2 0 0,1 22,8V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V8C2,7.15 2.53,6.42 3.28,6.13L15.71,1L16.47,2.83L8.83,6H20M20,8H4V12H16V10H18V12H20V8M7,14A3,3 0 0,0 4,17A3,3 0 0,0 7,20A3,3 0 0,0 10,17A3,3 0 0,0 7,14Z",kH="M12,10A2,2 0 0,1 14,12C14,12.5 13.82,12.94 13.53,13.29L16.7,22H14.57L12,14.93L9.43,22H7.3L10.47,13.29C10.18,12.94 10,12.5 10,12A2,2 0 0,1 12,10M12,8A4,4 0 0,0 8,12C8,12.5 8.1,13 8.28,13.46L7.4,15.86C6.53,14.81 6,13.47 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12C18,13.47 17.47,14.81 16.6,15.86L15.72,13.46C15.9,13 16,12.5 16,12A4,4 0 0,0 12,8M12,4A8,8 0 0,0 4,12C4,14.36 5,16.5 6.64,17.94L5.92,19.94C3.54,18.11 2,15.23 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12C22,15.23 20.46,18.11 18.08,19.94L17.36,17.94C19,16.5 20,14.36 20,12A8,8 0 0,0 12,4Z",SH="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",xH="M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",EH="M2,5.27L3.28,4L20,20.72L18.73,22L15.73,19H7V22L3,18L7,14V17H13.73L7,10.27V11H5V8.27L2,5.27M17,13H19V17.18L17,15.18V13M17,5V2L21,6L17,10V7H8.82L6.82,5H17Z",CH="M13,15V9H12L10,10V11H11.5V15M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",$H="M11.5,12L20,18V6M11,18V6L2.5,12L11,18Z",AH="M6.18,15.64A2.18,2.18 0 0,1 8.36,17.82C8.36,19 7.38,20 6.18,20C5,20 4,19 4,17.82A2.18,2.18 0 0,1 6.18,15.64M4,4.44A15.56,15.56 0 0,1 19.56,20H16.73A12.73,12.73 0 0,0 4,7.27V4.44M4,10.1A9.9,9.9 0 0,1 13.9,20H11.07A7.07,7.07 0 0,0 4,12.93V10.1Z",OH="M4,1H20A1,1 0 0,1 21,2V6A1,1 0 0,1 20,7H4A1,1 0 0,1 3,6V2A1,1 0 0,1 4,1M4,9H20A1,1 0 0,1 21,10V14A1,1 0 0,1 20,15H4A1,1 0 0,1 3,14V10A1,1 0 0,1 4,9M4,17H20A1,1 0 0,1 21,18V22A1,1 0 0,1 20,23H4A1,1 0 0,1 3,22V18A1,1 0 0,1 4,17M9,5H10V3H9V5M9,13H10V11H9V13M9,21H10V19H9V21M5,3V5H7V3H5M5,11V13H7V11H5M5,19V21H7V19H5Z",TH="M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z",PH="M16,4.5V7H5V9H16V11.5L19.5,8M16,12.5V15H5V17H16V19.5L19.5,16",DH="M20,5V19L13,12M6,5V19H4V5M13,5V19L6,12",FH="M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12",IH="M12,12A3,3 0 0,0 9,15A3,3 0 0,0 12,18A3,3 0 0,0 15,15A3,3 0 0,0 12,12M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8C10.89,8 10,7.1 10,6C10,4.89 10.89,4 12,4M17,2H7C5.89,2 5,2.89 5,4V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V4C19,2.89 18.1,2 17,2Z",MH="M17.9,10.9C14.7,9 9.35,8.8 6.3,9.75C5.8,9.9 5.3,9.6 5.15,9.15C5,8.65 5.3,8.15 5.75,8C9.3,6.95 15.15,7.15 18.85,9.35C19.3,9.6 19.45,10.2 19.2,10.65C18.95,11 18.35,11.15 17.9,10.9M17.8,13.7C17.55,14.05 17.1,14.2 16.75,13.95C14.05,12.3 9.95,11.8 6.8,12.8C6.4,12.9 5.95,12.7 5.85,12.3C5.75,11.9 5.95,11.45 6.35,11.35C10,10.25 14.5,10.8 17.6,12.7C17.9,12.85 18.05,13.35 17.8,13.7M16.6,16.45C16.4,16.75 16.05,16.85 15.75,16.65C13.4,15.2 10.45,14.9 6.95,15.7C6.6,15.8 6.3,15.55 6.2,15.25C6.1,14.9 6.35,14.6 6.65,14.5C10.45,13.65 13.75,14 16.35,15.6C16.7,15.75 16.75,16.15 16.6,16.45M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",RH="M18,18H6V6H18V18Z",LH="M11,9L12.42,10.42L8.83,14H18V4H20V16H8.83L12.42,19.58L11,21L5,15L11,9Z",NH="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",VH="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",jH="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";const BH={title:[String],spin:[Boolean],width:[Number,String],height:[Number,String],ariaLabel:[String],staticClass:[String],class:[String],name:{type:String,required:!0,default:"alert"},size:{type:[Number,String],default:24},viewBox:{type:String,default:"0 0 24 24"},xmlns:{type:String,default:"http://www.w3.org/2000/svg"},role:{type:String,default:"img"},spin:{type:Boolean,default:!1}};const UH=e=>e.charAt(0).toUpperCase()+e.slice(1),HH=e=>e.split("-").map(UH).join(""),zH=(e,t,n)=>{const s=e[`mdi${HH(t.name)}`]||jU,r=Ye({role:t.role,"aria-label":t.ariaLabel},n),o={fill:"currentColor",width:t.width||t.size,height:t.height||t.size,viewBox:t.viewBox,xmlns:t.xmlns};return{spanAttrs:r,svgAttrs:o,pathAttrs:{d:s}}},qH=(e,t)=>({[t.staticClass||""]:!0,[t.class||""]:!0,[`mdi mdi-${e.name}`]:!0,"mdi-spin":e.spin===!0}),GH=(e,t={})=>({install(n,{icons:s}){if(s===void 0)throw new Error("Icons must be provided separately");n.component("mdicon",An(Ye({name:"MDIcon",props:BH},t),{render:e(s)}))}}),WH=e=>function(){const{spanAttrs:n,svgAttrs:s,pathAttrs:r}=zH(e,this,this.$attrs);return Is("span",An(Ye({},n),{class:qH(this,this)}),[Is("svg",s,[this.title?Is("title",[this.title]):void 0,Is("path",r)])])};var KH=GH(WH);class yr extends Error{}class ZH extends yr{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class YH extends yr{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class JH extends yr{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Mo extends yr{}class Pv extends yr{constructor(t){super(`Invalid unit ${t}`)}}class Dn extends yr{}class Cs extends yr{constructor(){super("Zone is an abstract class")}}const Te="numeric",Gn="short",xn="long",Oc={year:Te,month:Te,day:Te},Dv={year:Te,month:Gn,day:Te},XH={year:Te,month:Gn,day:Te,weekday:Gn},Fv={year:Te,month:xn,day:Te},Iv={year:Te,month:xn,day:Te,weekday:xn},Mv={hour:Te,minute:Te},Rv={hour:Te,minute:Te,second:Te},Lv={hour:Te,minute:Te,second:Te,timeZoneName:Gn},Nv={hour:Te,minute:Te,second:Te,timeZoneName:xn},Vv={hour:Te,minute:Te,hourCycle:"h23"},jv={hour:Te,minute:Te,second:Te,hourCycle:"h23"},Bv={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:Gn},Uv={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:xn},Hv={year:Te,month:Te,day:Te,hour:Te,minute:Te},zv={year:Te,month:Te,day:Te,hour:Te,minute:Te,second:Te},qv={year:Te,month:Gn,day:Te,hour:Te,minute:Te},Gv={year:Te,month:Gn,day:Te,hour:Te,minute:Te,second:Te},QH={year:Te,month:Gn,day:Te,weekday:Gn,hour:Te,minute:Te},Wv={year:Te,month:xn,day:Te,hour:Te,minute:Te,timeZoneName:Gn},Kv={year:Te,month:xn,day:Te,hour:Te,minute:Te,second:Te,timeZoneName:Gn},Zv={year:Te,month:xn,day:Te,weekday:xn,hour:Te,minute:Te,timeZoneName:xn},Yv={year:Te,month:xn,day:Te,weekday:xn,hour:Te,minute:Te,second:Te,timeZoneName:xn};function dt(e){return typeof e=="undefined"}function dr(e){return typeof e=="number"}function Hl(e){return typeof e=="number"&&e%1===0}function ez(e){return typeof e=="string"}function tz(e){return Object.prototype.toString.call(e)==="[object Date]"}function Jv(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function nz(e){return Array.isArray(e)?e:[e]}function mm(e,t,n){if(e.length!==0)return e.reduce((s,r)=>{const o=[t(r),r];return s&&n(s[0],o[0])===s[0]?s:o},null)[1]}function sz(e,t){return t.reduce((n,s)=>(n[s]=e[s],n),{})}function io(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ds(e,t,n){return Hl(e)&&e>=t&&e<=n}function rz(e,t){return e-t*Math.floor(e/t)}function Bt(e,t=2){const n=e<0;let s;return n?s="-"+(""+-e).padStart(t,"0"):s=(""+e).padStart(t,"0"),s}function Ps(e){if(!(dt(e)||e===null||e===""))return parseInt(e,10)}function Qs(e){if(!(dt(e)||e===null||e===""))return parseFloat(e)}function Kd(e){if(!(dt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Zd(e,t,n=!1){const s=10**t;return(n?Math.trunc:Math.round)(e*s)/s}function xi(e){return e%4===0&&(e%100!==0||e%400===0)}function ni(e){return xi(e)?366:365}function rl(e,t){const n=rz(t-1,12)+1,s=e+(t-n)/12;return n===2?xi(s)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Yd(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function ol(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,s=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||s===3?53:52}function Tc(e){return e>99?e:e>60?1900+e:2e3+e}function Xv(e,t,n,s=null){const r=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};s&&(o.timeZone=s);const i=Ye({timeZoneName:t},o),a=new Intl.DateTimeFormat(n,i).formatToParts(r).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function zl(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const s=parseInt(t,10)||0,r=n<0||Object.is(n,-0)?-s:s;return n*60+r}function Qv(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Dn(`Invalid unit value ${e}`);return t}function il(e,t){const n={};for(const s in e)if(io(e,s)){const r=e[s];if(r==null)continue;n[t(s)]=Qv(r)}return n}function al(e,t){const n=Math.trunc(Math.abs(e/60)),s=Math.trunc(Math.abs(e%60)),r=e>=0?"+":"-";switch(t){case"short":return`${r}${Bt(n,2)}:${Bt(s,2)}`;case"narrow":return`${r}${n}${s>0?`:${s}`:""}`;case"techie":return`${r}${Bt(n,2)}${Bt(s,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function ql(e){return sz(e,["hour","minute","second","millisecond"])}const oz=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,iz=["January","February","March","April","May","June","July","August","September","October","November","December"],ey=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],az=["J","F","M","A","M","J","J","A","S","O","N","D"];function ty(e){switch(e){case"narrow":return[...az];case"short":return[...ey];case"long":return[...iz];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const ny=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],sy=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lz=["M","T","W","T","F","S","S"];function ry(e){switch(e){case"narrow":return[...lz];case"short":return[...sy];case"long":return[...ny];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const oy=["AM","PM"],uz=["Before Christ","Anno Domini"],cz=["BC","AD"],dz=["B","A"];function iy(e){switch(e){case"narrow":return[...dz];case"short":return[...cz];case"long":return[...uz];default:return null}}function fz(e){return oy[e.hour<12?0:1]}function hz(e,t){return ry(t)[e.weekday-1]}function mz(e,t){return ty(t)[e.month-1]}function pz(e,t){return iy(t)[e.year<0?0:1]}function _z(e,t,n="always",s=!1){const r={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const h=e==="days";switch(t){case 1:return h?"tomorrow":`next ${r[e][0]}`;case-1:return h?"yesterday":`last ${r[e][0]}`;case 0:return h?"today":`this ${r[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,c=r[e],d=s?l?c[1]:c[2]||c[1]:l?r[e][0]:e;return i?`${a} ${d} ago`:`in ${a} ${d}`}function pm(e,t){let n="";for(const s of e)s.literal?n+=s.val:n+=t(s.val);return n}const gz={D:Oc,DD:Dv,DDD:Fv,DDDD:Iv,t:Mv,tt:Rv,ttt:Lv,tttt:Nv,T:Vv,TT:jv,TTT:Bv,TTTT:Uv,f:Hv,ff:qv,fff:Wv,ffff:Zv,F:zv,FF:Gv,FFF:Kv,FFFF:Yv};class hn{static create(t,n={}){return new hn(t,n)}static parseFormat(t){let n=null,s="",r=!1;const o=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);a==="'"?(s.length>0&&o.push({literal:r,val:s}),n=null,s="",r=!r):r||a===n?s+=a:(s.length>0&&o.push({literal:!1,val:s}),s=a,n=a)}return s.length>0&&o.push({literal:r,val:s}),o}static macroTokenToFormatOpts(t){return gz[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Ye(Ye({},this.opts),n)).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,Ye(Ye({},this.opts),n)).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,Ye(Ye({},this.opts),n)).formatToParts()}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,Ye(Ye({},this.opts),n)).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return Bt(t,n);const s=Ye({},this.opts);return n>0&&(s.padTo=n),this.loc.numberFormatter(s).format(t)}formatDateTimeFromString(t,n){const s=this.loc.listingMode()==="en",r=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(m,p)=>this.loc.extract(t,m,p),i=m=>t.isOffsetFixed&&t.offset===0&&m.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,m.format):"",a=()=>s?fz(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(m,p)=>s?mz(t,m):o(p?{month:m}:{month:m,day:"numeric"},"month"),c=(m,p)=>s?hz(t,m):o(p?{weekday:m}:{weekday:m,month:"long",day:"numeric"},"weekday"),d=m=>{const p=hn.macroTokenToFormatOpts(m);return p?this.formatWithSystemDefault(t,p):m},h=m=>s?pz(t,m):o({era:m},"era"),f=m=>{switch(m){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return r?o({day:"numeric"},"day"):this.num(t.day);case"dd":return r?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return c("short",!0);case"cccc":return c("long",!0);case"ccccc":return c("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return c("short",!1);case"EEEE":return c("long",!1);case"EEEEE":return c("narrow",!1);case"L":return r?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return r?o({month:"numeric"},"month"):this.num(t.month);case"MM":return r?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return r?o({year:"numeric"},"year"):this.num(t.year);case"yy":return r?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return h("short");case"GG":return h("long");case"GGGGG":return h("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(m)}};return pm(hn.parseFormat(n),f)}formatDurationFromString(t,n){const s=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"M":return"month";case"y":return"year";default:return null}},r=l=>c=>{const d=s(c);return d?this.num(l.get(d),c.length):c},o=hn.parseFormat(n),i=o.reduce((l,{literal:c,val:d})=>c?l:l.concat(d),[]),a=t.shiftTo(...i.map(s).filter(l=>l));return pm(o,r(a))}}class zn{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Ei{get type(){throw new Cs}get name(){throw new Cs}get isUniversal(){throw new Cs}offsetName(t,n){throw new Cs}formatOffset(t,n){throw new Cs}offset(t){throw new Cs}equals(t){throw new Cs}get isValid(){throw new Cs}}let Fu=null;class Jd extends Ei{static get instance(){return Fu===null&&(Fu=new Jd),Fu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:s}){return Xv(t,n,s)}formatOffset(t,n){return al(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let Va={};function vz(e){return Va[e]||(Va[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})),Va[e]}const yz={year:0,month:1,day:2,hour:3,minute:4,second:5};function bz(e,t){const n=e.format(t).replace(/\u200E/g,""),s=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n),[,r,o,i,a,l,c]=s;return[i,r,o,a,l,c]}function wz(e,t){const n=e.formatToParts(t),s=[];for(let r=0;r<n.length;r++){const{type:o,value:i}=n[r],a=yz[o];dt(a)||(s[a]=parseInt(i,10))}return s}let Ea={};class _s extends Ei{static create(t){return Ea[t]||(Ea[t]=new _s(t)),Ea[t]}static resetCache(){Ea={},Va={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super();this.zoneName=t,this.valid=_s.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:s}){return Xv(t,n,s,this.name)}formatOffset(t,n){return al(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const s=vz(this.name),[r,o,i,a,l,c]=s.formatToParts?wz(s,n):bz(s,n),h=Yd({year:r,month:o,day:i,hour:a===24?0:a,minute:l,second:c,millisecond:0});let f=+n;const m=f%1e3;return f-=m>=0?m:1e3+m,(h-f)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let Iu=null;class an extends Ei{static get utcInstance(){return Iu===null&&(Iu=new an(0)),Iu}static instance(t){return t===0?an.utcInstance:new an(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new an(zl(n[1],n[2]))}return null}constructor(t){super();this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${al(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return al(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class kz extends Ei{constructor(t){super();this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Fs(e,t){if(dt(e)||e===null)return t;if(e instanceof Ei)return e;if(ez(e)){const n=e.toLowerCase();return n==="local"||n==="system"?t:n==="utc"||n==="gmt"?an.utcInstance:an.parseSpecifier(n)||_s.create(e)}else return dr(e)?an.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new kz(e)}let _m=()=>Date.now(),gm="system",vm=null,ym=null,bm=null,wm;class qt{static get now(){return _m}static set now(t){_m=t}static set defaultZone(t){gm=t}static get defaultZone(){return Fs(gm,Jd.instance)}static get defaultLocale(){return vm}static set defaultLocale(t){vm=t}static get defaultNumberingSystem(){return ym}static set defaultNumberingSystem(t){ym=t}static get defaultOutputCalendar(){return bm}static set defaultOutputCalendar(t){bm=t}static get throwOnInvalid(){return wm}static set throwOnInvalid(t){wm=t}static resetCaches(){$t.resetCache(),_s.resetCache()}}let km={};function Sz(e,t={}){const n=JSON.stringify([e,t]);let s=km[n];return s||(s=new Intl.ListFormat(e,t),km[n]=s),s}let Pc={};function Dc(e,t={}){const n=JSON.stringify([e,t]);let s=Pc[n];return s||(s=new Intl.DateTimeFormat(e,t),Pc[n]=s),s}let Fc={};function xz(e,t={}){const n=JSON.stringify([e,t]);let s=Fc[n];return s||(s=new Intl.NumberFormat(e,t),Fc[n]=s),s}let Ic={};function Ez(e,t={}){const i=t,{base:n}=i,s=su(i,["base"]),r=JSON.stringify([e,s]);let o=Ic[r];return o||(o=new Intl.RelativeTimeFormat(e,t),Ic[r]=o),o}let Ro=null;function Cz(){return Ro||(Ro=new Intl.DateTimeFormat().resolvedOptions().locale,Ro)}function $z(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const s=e.substring(0,t);try{n=Dc(e).resolvedOptions()}catch{n=Dc(s).resolvedOptions()}const{numberingSystem:r,calendar:o}=n;return[s,r,o]}}function Az(e,t,n){return(n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function Oz(e){const t=[];for(let n=1;n<=12;n++){const s=Qe.utc(2016,n,1);t.push(e(s))}return t}function Tz(e){const t=[];for(let n=1;n<=7;n++){const s=Qe.utc(2016,11,13+n);t.push(e(s))}return t}function Ca(e,t,n,s,r){const o=e.listingMode(n);return o==="error"?null:o==="en"?s(t):r(t)}function Pz(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class Dz{constructor(t,n,s){this.padTo=s.padTo||0,this.floor=s.floor||!1;const a=s,{padTo:r,floor:o}=a,i=su(a,["padTo","floor"]);if(!n||Object.keys(i).length>0){const l=Ye({useGrouping:!1},s);s.padTo>0&&(l.minimumIntegerDigits=s.padTo),this.inf=xz(t,l)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Zd(t,3);return Bt(n,this.padTo)}}}class Fz{constructor(t,n,s){this.opts=s;let r;if(t.zone.isUniversal){const i=-1*(t.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;t.offset!==0&&_s.create(a).valid?(r=a,this.dt=t):(r="UTC",s.timeZoneName?this.dt=t:this.dt=t.offset===0?t:Qe.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,r=t.zone.name);const o=Ye({},this.opts);r&&(o.timeZone=r),this.dtf=Dc(n,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class Iz{constructor(t,n,s){this.opts=Ye({style:"long"},s),!n&&Jv()&&(this.rtf=Ez(t,s))}format(t,n){return this.rtf?this.rtf.format(t,n):_z(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class $t{static fromOpts(t){return $t.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,s,r=!1){const o=t||qt.defaultLocale,i=o||(r?"en-US":Cz()),a=n||qt.defaultNumberingSystem,l=s||qt.defaultOutputCalendar;return new $t(i,a,l,o)}static resetCache(){Ro=null,Pc={},Fc={},Ic={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:s}={}){return $t.create(t,n,s)}constructor(t,n,s,r){const[o,i,a]=$z(t);this.locale=o,this.numberingSystem=n||i||null,this.outputCalendar=s||a||null,this.intl=Az(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Pz(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:$t.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(An(Ye({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(An(Ye({},t),{defaultToEN:!1}))}months(t,n=!1,s=!0){return Ca(this,t,s,ty,()=>{const r=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=Oz(i=>this.extract(i,r,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1,s=!0){return Ca(this,t,s,ry,()=>{const r=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=Tz(i=>this.extract(i,r,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return Ca(this,void 0,t,()=>oy,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Qe.utc(2016,11,13,9),Qe.utc(2016,11,13,19)].map(s=>this.extract(s,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return Ca(this,t,n,iy,()=>{const s={era:t};return this.eraCache[t]||(this.eraCache[t]=[Qe.utc(-40,1,1),Qe.utc(2017,1,1)].map(r=>this.extract(r,s,"era"))),this.eraCache[t]})}extract(t,n,s){const r=this.dtFormatter(t,n),o=r.formatToParts(),i=o.find(a=>a.type.toLowerCase()===s);return i?i.value:null}numberFormatter(t={}){return new Dz(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new Fz(t,this.intl,n)}relFormatter(t={}){return new Iz(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Sz(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function fo(...e){const t=e.reduce((n,s)=>n+s.source,"");return RegExp(`^${t}$`)}function br(...e){return t=>e.reduce(([n,s,r],o)=>{const[i,a,l]=o(t,r);return[Ye(Ye({},n),i),s||a,l]},[{},null,1]).slice(0,2)}function ho(e,...t){if(e==null)return[null,null];for(const[n,s]of t){const r=n.exec(e);if(r)return s(r)}return[null,null]}function ay(...e){return(t,n)=>{const s={};let r;for(r=0;r<e.length;r++)s[e[r]]=Ps(t[n+r]);return[s,null,n+r]}}const ly=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,Xd=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,uy=RegExp(`${Xd.source}${ly.source}?`),Qd=RegExp(`(?:T${uy.source})?`),Mz=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Rz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Lz=/(\d{4})-?(\d{3})/,Nz=ay("weekYear","weekNumber","weekDay"),Vz=ay("year","ordinal"),jz=/(\d{4})-(\d\d)-(\d\d)/,cy=RegExp(`${Xd.source} ?(?:${ly.source}|(${oz.source}))?`),Bz=RegExp(`(?: ${cy.source})?`);function qr(e,t,n){const s=e[t];return dt(s)?n:Ps(s)}function dy(e,t){return[{year:qr(e,t),month:qr(e,t+1,1),day:qr(e,t+2,1)},null,t+3]}function wr(e,t){return[{hours:qr(e,t,0),minutes:qr(e,t+1,0),seconds:qr(e,t+2,0),milliseconds:Kd(e[t+3])},null,t+4]}function mo(e,t){const n=!e[t]&&!e[t+1],s=zl(e[t+1],e[t+2]),r=n?null:an.instance(s);return[{},r,t+3]}function fy(e,t){const n=e[t]?_s.create(e[t]):null;return[{},n,t+1]}const Uz=RegExp(`^T?${Xd.source}$`),Hz=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function zz(e){const[t,n,s,r,o,i,a,l,c]=e,d=t[0]==="-",h=l&&l[0]==="-",f=(m,p=!1)=>m!==void 0&&(p||m&&d)?-m:m;return[{years:f(Qs(n)),months:f(Qs(s)),weeks:f(Qs(r)),days:f(Qs(o)),hours:f(Qs(i)),minutes:f(Qs(a)),seconds:f(Qs(l),l==="-0"),milliseconds:f(Kd(c),h)}]}const qz={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ef(e,t,n,s,r,o,i){const a={year:t.length===2?Tc(Ps(t)):Ps(t),month:ey.indexOf(n)+1,day:Ps(s),hour:Ps(r),minute:Ps(o)};return i&&(a.second=Ps(i)),e&&(a.weekday=e.length>3?ny.indexOf(e)+1:sy.indexOf(e)+1),a}const Gz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Wz(e){const[,t,n,s,r,o,i,a,l,c,d,h]=e,f=ef(t,r,s,n,o,i,a);let m;return l?m=qz[l]:c?m=0:m=zl(d,h),[f,new an(m)]}function Kz(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const Zz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Yz=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Jz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Sm(e){const[,t,n,s,r,o,i,a]=e;return[ef(t,r,s,n,o,i,a),an.utcInstance]}function Xz(e){const[,t,n,s,r,o,i,a]=e;return[ef(t,a,n,s,r,o,i),an.utcInstance]}const Qz=fo(Mz,Qd),eq=fo(Rz,Qd),tq=fo(Lz,Qd),nq=fo(uy),sq=br(dy,wr,mo),rq=br(Nz,wr,mo),oq=br(Vz,wr,mo),iq=br(wr,mo);function aq(e){return ho(e,[Qz,sq],[eq,rq],[tq,oq],[nq,iq])}function lq(e){return ho(Kz(e),[Gz,Wz])}function uq(e){return ho(e,[Zz,Sm],[Yz,Sm],[Jz,Xz])}function cq(e){return ho(e,[Hz,zz])}const dq=br(wr);function fq(e){return ho(e,[Uz,dq])}const hq=fo(jz,Bz),mq=fo(cy),pq=br(dy,wr,mo,fy),_q=br(wr,mo,fy);function gq(e){return ho(e,[hq,pq],[mq,_q])}const vq="Invalid Duration",hy={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},yq=Ye({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},hy),Pn=146097/400,Dr=146097/4800,bq=Ye({years:{quarters:4,months:12,weeks:Pn/7,days:Pn,hours:Pn*24,minutes:Pn*24*60,seconds:Pn*24*60*60,milliseconds:Pn*24*60*60*1e3},quarters:{months:3,weeks:Pn/28,days:Pn/4,hours:Pn*24/4,minutes:Pn*24*60/4,seconds:Pn*24*60*60/4,milliseconds:Pn*24*60*60*1e3/4},months:{weeks:Dr/7,days:Dr,hours:Dr*24,minutes:Dr*24*60,seconds:Dr*24*60*60,milliseconds:Dr*24*60*60*1e3}},hy),rr=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],wq=rr.slice(0).reverse();function er(e,t,n=!1){const s={values:n?t.values:Ye(Ye({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new it(s)}function kq(e){return e<0?Math.floor(e):Math.ceil(e)}function my(e,t,n,s,r){const o=e[r][n],i=t[n]/o,a=Math.sign(i)===Math.sign(s[r]),l=!a&&s[r]!==0&&Math.abs(i)<=1?kq(i):Math.trunc(i);s[r]+=l,t[n]-=l*o}function Sq(e,t){wq.reduce((n,s)=>dt(t[s])?n:(n&&my(e,t,n,t,s),s),null)}class it{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||$t.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?bq:yq,this.isLuxonDuration=!0}static fromMillis(t,n){return it.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Dn(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new it({values:il(t,it.normalizeUnit),loc:$t.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(t){if(dr(t))return it.fromMillis(t);if(it.isDuration(t))return t;if(typeof t=="object")return it.fromObject(t);throw new Dn(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[s]=cq(t);return s?it.fromObject(s,n):it.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[s]=fq(t);return s?it.fromObject(s,n):it.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Dn("need to specify a reason the Duration is invalid");const s=t instanceof zn?t:new zn(t,n);if(qt.throwOnInvalid)throw new JH(s);return new it({invalid:s})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new Pv(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const s=An(Ye({},n),{floor:n.round!==!1&&n.floor!==!1});return this.isValid?hn.create(this.loc,s).formatDurationFromString(this,t):vq}toHuman(t={}){const n=rr.map(s=>{const r=this.values[s];return dt(r)?null:this.loc.numberFormatter(An(Ye({style:"unit",unitDisplay:"long"},t),{unit:s.slice(0,-1)})).format(r)}).filter(s=>s);return this.loc.listFormatter(Ye({type:"conjunction",style:t.listStyle||"narrow"},t)).format(n)}toObject(){return this.isValid?Ye({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Zd(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t=Ye({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const s=this.shiftTo("hours","minutes","seconds","milliseconds");let r=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||s.seconds!==0||s.milliseconds!==0)&&(r+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||s.milliseconds!==0)&&(r+=".SSS"));let o=s.toFormat(r);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t),s={};for(const r of rr)(io(n.values,r)||io(this.values,r))&&(s[r]=n.get(r)+this.get(r));return er(this,{values:s},!0)}minus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const s of Object.keys(this.values))n[s]=Qv(t(this.values[s],s));return er(this,{values:n},!0)}get(t){return this[it.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n=Ye(Ye({},this.values),il(t,it.normalizeUnit));return er(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:s}={}){const r=this.loc.clone({locale:t,numberingSystem:n}),o={loc:r};return s&&(o.conversionAccuracy=s),er(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Sq(this.matrix,t),er(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(i=>it.normalizeUnit(i));const n={},s={},r=this.toObject();let o;for(const i of rr)if(t.indexOf(i)>=0){o=i;let a=0;for(const c in s)a+=this.matrix[c][i]*s[c],s[c]=0;dr(r[i])&&(a+=r[i]);const l=Math.trunc(a);n[i]=l,s[i]=(a*1e3-l*1e3)/1e3;for(const c in r)rr.indexOf(c)>rr.indexOf(i)&&my(this.matrix,r,c,n,i)}else dr(r[i])&&(s[i]=r[i]);for(const i in s)s[i]!==0&&(n[o]+=i===o?s[i]:s[i]/this.matrix[o][i]);return er(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return er(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(s,r){return s===void 0||s===0?r===void 0||r===0:s===r}for(const s of rr)if(!n(this.values[s],t.values[s]))return!1;return!0}}const So="Invalid Interval";function xq(e,t){return!e||!e.isValid?Dt.invalid("missing or invalid start"):!t||!t.isValid?Dt.invalid("missing or invalid end"):t<e?Dt.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class Dt{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Dn("need to specify a reason the Interval is invalid");const s=t instanceof zn?t:new zn(t,n);if(qt.throwOnInvalid)throw new YH(s);return new Dt({invalid:s})}static fromDateTimes(t,n){const s=Co(t),r=Co(n),o=xq(s,r);return o==null?new Dt({start:s,end:r}):o}static after(t,n){const s=it.fromDurationLike(n),r=Co(t);return Dt.fromDateTimes(r,r.plus(s))}static before(t,n){const s=it.fromDurationLike(n),r=Co(t);return Dt.fromDateTimes(r.minus(s),r)}static fromISO(t,n){const[s,r]=(t||"").split("/",2);if(s&&r){let o,i;try{o=Qe.fromISO(s,n),i=o.isValid}catch{i=!1}let a,l;try{a=Qe.fromISO(r,n),l=a.isValid}catch{l=!1}if(i&&l)return Dt.fromDateTimes(o,a);if(i){const c=it.fromISO(r,n);if(c.isValid)return Dt.after(o,c)}else if(l){const c=it.fromISO(s,n);if(c.isValid)return Dt.before(a,c)}}return Dt.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),s=this.end.startOf(t);return Math.floor(s.diff(n,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?Dt.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(Co).filter(i=>this.contains(i)).sort(),s=[];let{s:r}=this,o=0;for(;r<this.e;){const i=n[o]||this.e,a=+i>+this.e?this.e:i;s.push(Dt.fromDateTimes(r,a)),r=a,o+=1}return s}splitBy(t){const n=it.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s}=this,r=1,o;const i=[];for(;s<this.e;){const a=this.start.plus(n.mapUnits(l=>l*r));o=+a>+this.e?this.e:a,i.push(Dt.fromDateTimes(s,o)),s=o,r+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,s=this.e<t.e?this.e:t.e;return n>=s?null:Dt.fromDateTimes(n,s)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,s=this.e>t.e?this.e:t.e;return Dt.fromDateTimes(n,s)}static merge(t){const[n,s]=t.sort((r,o)=>r.s-o.s).reduce(([r,o],i)=>o?o.overlaps(i)||o.abutsStart(i)?[r,o.union(i)]:[r.concat([o]),i]:[r,i],[[],null]);return s&&n.push(s),n}static xor(t){let n=null,s=0;const r=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),i=Array.prototype.concat(...o),a=i.sort((l,c)=>l.time-c.time);for(const l of a)s+=l.type==="s"?1:-1,s===1?n=l.time:(n&&+n!=+l.time&&r.push(Dt.fromDateTimes(n,l.time)),n=null);return Dt.merge(r)}difference(...t){return Dt.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:So}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:So}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:So}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:So}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:So}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):it.invalid(this.invalidReason)}mapEndpoints(t){return Dt.fromDateTimes(t(this.s),t(this.e))}}class $a{static hasDST(t=qt.defaultZone){const n=Qe.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return _s.isValidZone(t)}static normalizeZone(t){return Fs(t,qt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||$t.create(n,s,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null,outputCalendar:o="gregory"}={}){return(r||$t.create(n,s,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||$t.create(n,s,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:s=null,locObj:r=null}={}){return(r||$t.create(n,s,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return $t.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return $t.create(n,null,"gregory").eras(t)}static features(){return{relative:Jv()}}}function xm(e,t){const n=r=>r.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),s=n(t)-n(e);return Math.floor(it.fromMillis(s).as("days"))}function Eq(e,t,n){const s=[["years",(a,l)=>l.year-a.year],["quarters",(a,l)=>l.quarter-a.quarter],["months",(a,l)=>l.month-a.month+(l.year-a.year)*12],["weeks",(a,l)=>{const c=xm(a,l);return(c-c%7)/7}],["days",xm]],r={};let o,i;for(const[a,l]of s)if(n.indexOf(a)>=0){o=a;let c=l(e,t);i=e.plus({[a]:c}),i>t?(e=e.plus({[a]:c-1}),c-=1):e=i,r[a]=c}return[e,r,i,o]}function Cq(e,t,n,s){let[r,o,i,a]=Eq(e,t,n);const l=t-r,c=n.filter(h=>["hours","minutes","seconds","milliseconds"].indexOf(h)>=0);c.length===0&&(i<t&&(i=r.plus({[a]:1})),i!==r&&(o[a]=(o[a]||0)+l/(i-r)));const d=it.fromObject(o,s);return c.length>0?it.fromMillis(l,s).shiftTo(...c).plus(d):d}const tf={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Em={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},$q=tf.hanidec.replace(/[\[|\]]/g,"").split("");function Aq(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const s=e.charCodeAt(n);if(e[n].search(tf.hanidec)!==-1)t+=$q.indexOf(e[n]);else for(const r in Em){const[o,i]=Em[r];s>=o&&s<=i&&(t+=s-o)}}return parseInt(t,10)}else return t}function Vn({numberingSystem:e},t=""){return new RegExp(`${tf[e||"latn"]}${t}`)}const Oq="missing Intl.DateTimeFormat.formatToParts support";function _t(e,t=n=>n){return{regex:e,deser:([n])=>t(Aq(n))}}const Tq=String.fromCharCode(160),py=`( |${Tq})`,_y=new RegExp(py,"g");function Pq(e){return e.replace(/\./g,"\\.?").replace(_y,py)}function Cm(e){return e.replace(/\./g,"").replace(_y," ").toLowerCase()}function jn(e,t){return e===null?null:{regex:RegExp(e.map(Pq).join("|")),deser:([n])=>e.findIndex(s=>Cm(n)===Cm(s))+t}}function $m(e,t){return{regex:e,deser:([,n,s])=>zl(n,s),groups:t}}function Mu(e){return{regex:e,deser:([t])=>t}}function Dq(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function Fq(e,t){const n=Vn(t),s=Vn(t,"{2}"),r=Vn(t,"{3}"),o=Vn(t,"{4}"),i=Vn(t,"{6}"),a=Vn(t,"{1,2}"),l=Vn(t,"{1,3}"),c=Vn(t,"{1,6}"),d=Vn(t,"{1,9}"),h=Vn(t,"{2,4}"),f=Vn(t,"{4,6}"),m=g=>({regex:RegExp(Dq(g.val)),deser:([y])=>y,literal:!0}),_=(g=>{if(e.literal)return m(g);switch(g.val){case"G":return jn(t.eras("short",!1),0);case"GG":return jn(t.eras("long",!1),0);case"y":return _t(c);case"yy":return _t(h,Tc);case"yyyy":return _t(o);case"yyyyy":return _t(f);case"yyyyyy":return _t(i);case"M":return _t(a);case"MM":return _t(s);case"MMM":return jn(t.months("short",!0,!1),1);case"MMMM":return jn(t.months("long",!0,!1),1);case"L":return _t(a);case"LL":return _t(s);case"LLL":return jn(t.months("short",!1,!1),1);case"LLLL":return jn(t.months("long",!1,!1),1);case"d":return _t(a);case"dd":return _t(s);case"o":return _t(l);case"ooo":return _t(r);case"HH":return _t(s);case"H":return _t(a);case"hh":return _t(s);case"h":return _t(a);case"mm":return _t(s);case"m":return _t(a);case"q":return _t(a);case"qq":return _t(s);case"s":return _t(a);case"ss":return _t(s);case"S":return _t(l);case"SSS":return _t(r);case"u":return Mu(d);case"uu":return Mu(a);case"uuu":return _t(n);case"a":return jn(t.meridiems(),0);case"kkkk":return _t(o);case"kk":return _t(h,Tc);case"W":return _t(a);case"WW":return _t(s);case"E":case"c":return _t(n);case"EEE":return jn(t.weekdays("short",!1,!1),1);case"EEEE":return jn(t.weekdays("long",!1,!1),1);case"ccc":return jn(t.weekdays("short",!0,!1),1);case"cccc":return jn(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return $m(new RegExp(`([+-]${a.source})(?::(${s.source}))?`),2);case"ZZZ":return $m(new RegExp(`([+-]${a.source})(${s.source})?`),2);case"z":return Mu(/[a-z_+-/]{1,256}?/i);default:return m(g)}})(e)||{invalidReason:Oq};return _.token=e,_}const Iq={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function Mq(e,t,n){const{type:s,value:r}=e;if(s==="literal")return{literal:!0,val:r};const o=n[s];let i=Iq[s];if(typeof i=="object"&&(i=i[o]),i)return{literal:!1,val:i}}function Rq(e){return[`^${e.map(n=>n.regex).reduce((n,s)=>`${n}(${s.source})`,"")}$`,e]}function Lq(e,t,n){const s=e.match(t);if(s){const r={};let o=1;for(const i in n)if(io(n,i)){const a=n[i],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(r[a.token.val[0]]=a.deser(s.slice(o,o+l))),o+=l}return[s,r]}else return[s,{}]}function Nq(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,s;return dt(e.z)||(n=_s.create(e.z)),dt(e.Z)||(n||(n=new an(e.Z)),s=e.Z),dt(e.q)||(e.M=(e.q-1)*3+1),dt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),dt(e.u)||(e.S=Kd(e.u)),[Object.keys(e).reduce((o,i)=>{const a=t(i);return a&&(o[a]=e[i]),o},{}),n,s]}let Ru=null;function Vq(){return Ru||(Ru=Qe.fromMillis(1555555555555)),Ru}function jq(e,t){if(e.literal)return e;const n=hn.macroTokenToFormatOpts(e.val);if(!n)return e;const o=hn.create(t,n).formatDateTimeParts(Vq()).map(i=>Mq(i,t,n));return o.includes(void 0)?e:o}function Bq(e,t){return Array.prototype.concat(...e.map(n=>jq(n,t)))}function gy(e,t,n){const s=Bq(hn.parseFormat(n),e),r=s.map(i=>Fq(i,e)),o=r.find(i=>i.invalidReason);if(o)return{input:t,tokens:s,invalidReason:o.invalidReason};{const[i,a]=Rq(r),l=RegExp(i,"i"),[c,d]=Lq(t,l,a),[h,f,m]=d?Nq(d):[null,null,void 0];if(io(d,"a")&&io(d,"H"))throw new Mo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:s,regex:l,rawMatches:c,matches:d,result:h,zone:f,specificOffset:m}}}function Uq(e,t,n){const{result:s,zone:r,specificOffset:o,invalidReason:i}=gy(e,t,n);return[s,r,o,i]}const vy=[0,31,59,90,120,151,181,212,243,273,304,334],yy=[0,31,60,91,121,152,182,213,244,274,305,335];function Fn(e,t){return new zn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function by(e,t,n){const s=new Date(Date.UTC(e,t-1,n)).getUTCDay();return s===0?7:s}function wy(e,t,n){return n+(xi(e)?yy:vy)[t-1]}function ky(e,t){const n=xi(e)?yy:vy,s=n.findIndex(o=>o<t),r=t-n[s];return{month:s+1,day:r}}function Mc(e){const{year:t,month:n,day:s}=e,r=wy(t,n,s),o=by(t,n,s);let i=Math.floor((r-o+10)/7),a;return i<1?(a=t-1,i=ol(a)):i>ol(t)?(a=t+1,i=1):a=t,Ye({weekYear:a,weekNumber:i,weekday:o},ql(e))}function Am(e){const{weekYear:t,weekNumber:n,weekday:s}=e,r=by(t,1,4),o=ni(t);let i=n*7+s-r-3,a;i<1?(a=t-1,i+=ni(a)):i>o?(a=t+1,i-=ni(t)):a=t;const{month:l,day:c}=ky(a,i);return Ye({year:a,month:l,day:c},ql(e))}function Lu(e){const{year:t,month:n,day:s}=e,r=wy(t,n,s);return Ye({year:t,ordinal:r},ql(e))}function Om(e){const{year:t,ordinal:n}=e,{month:s,day:r}=ky(t,n);return Ye({year:t,month:s,day:r},ql(e))}function Hq(e){const t=Hl(e.weekYear),n=ds(e.weekNumber,1,ol(e.weekYear)),s=ds(e.weekday,1,7);return t?n?s?!1:Fn("weekday",e.weekday):Fn("week",e.week):Fn("weekYear",e.weekYear)}function zq(e){const t=Hl(e.year),n=ds(e.ordinal,1,ni(e.year));return t?n?!1:Fn("ordinal",e.ordinal):Fn("year",e.year)}function Sy(e){const t=Hl(e.year),n=ds(e.month,1,12),s=ds(e.day,1,rl(e.year,e.month));return t?n?s?!1:Fn("day",e.day):Fn("month",e.month):Fn("year",e.year)}function xy(e){const{hour:t,minute:n,second:s,millisecond:r}=e,o=ds(t,0,23)||t===24&&n===0&&s===0&&r===0,i=ds(n,0,59),a=ds(s,0,59),l=ds(r,0,999);return o?i?a?l?!1:Fn("millisecond",r):Fn("second",s):Fn("minute",n):Fn("hour",t)}const Nu="Invalid DateTime",Tm=864e13;function Aa(e){return new zn("unsupported zone",`the zone "${e.name}" is not supported`)}function Vu(e){return e.weekData===null&&(e.weekData=Mc(e.c)),e.weekData}function xo(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Qe(An(Ye(Ye({},n),t),{old:n}))}function Ey(e,t,n){let s=e-t*60*1e3;const r=n.offset(s);if(t===r)return[s,t];s-=(r-t)*60*1e3;const o=n.offset(s);return r===o?[s,r]:[e-Math.min(r,o)*60*1e3,Math.max(r,o)]}function Pm(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function ja(e,t,n){return Ey(Yd(e),t,n)}function Dm(e,t){const n=e.o,s=e.c.year+Math.trunc(t.years),r=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o=An(Ye({},e.c),{year:s,month:r,day:Math.min(e.c.day,rl(s,r))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),i=it.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Yd(o);let[l,c]=Ey(a,n,e.zone);return i!==0&&(l+=i,c=e.zone.offset(l)),{ts:l,o:c}}function Eo(e,t,n,s,r,o){const{setZone:i,zone:a}=n;if(e&&Object.keys(e).length!==0){const l=t||a,c=Qe.fromObject(e,An(Ye({},n),{zone:l,specificOffset:o}));return i?c:c.setZone(a)}else return Qe.invalid(new zn("unparsable",`the input "${r}" can't be parsed as ${s}`))}function Oa(e,t,n=!0){return e.isValid?hn.create($t.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ju(e,t){const n=e.c.year>9999||e.c.year<0;let s="";return n&&e.c.year>=0&&(s+="+"),s+=Bt(e.c.year,n?6:4),t?(s+="-",s+=Bt(e.c.month),s+="-",s+=Bt(e.c.day)):(s+=Bt(e.c.month),s+=Bt(e.c.day)),s}function Fm(e,t,n,s,r){let o=Bt(e.c.hour);return t?(o+=":",o+=Bt(e.c.minute),(e.c.second!==0||!n)&&(o+=":")):o+=Bt(e.c.minute),(e.c.second!==0||!n)&&(o+=Bt(e.c.second),(e.c.millisecond!==0||!s)&&(o+=".",o+=Bt(e.c.millisecond,3))),r&&(e.isOffsetFixed&&e.offset===0?o+="Z":e.o<0?(o+="-",o+=Bt(Math.trunc(-e.o/60)),o+=":",o+=Bt(Math.trunc(-e.o%60))):(o+="+",o+=Bt(Math.trunc(e.o/60)),o+=":",o+=Bt(Math.trunc(e.o%60)))),o}const Cy={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},qq={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Gq={ordinal:1,hour:0,minute:0,second:0,millisecond:0},$y=["year","month","day","hour","minute","second","millisecond"],Wq=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Kq=["year","ordinal","hour","minute","second","millisecond"];function Im(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Pv(e);return t}function Mm(e,t){const n=Fs(t.zone,qt.defaultZone),s=$t.fromObject(t),r=qt.now();let o,i;if(dt(e.year))o=r;else{for(const c of $y)dt(e[c])&&(e[c]=Cy[c]);const a=Sy(e)||xy(e);if(a)return Qe.invalid(a);const l=n.offset(r);[o,i]=ja(e,l,n)}return new Qe({ts:o,zone:n,loc:s,o:i})}function Rm(e,t,n){const s=dt(n.round)?!0:n.round,r=(i,a)=>(i=Zd(i,s||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(i,a)),o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return r(o(n.unit),n.unit);for(const i of n.units){const a=o(i);if(Math.abs(a)>=1)return r(a,i)}return r(e>t?-0:0,n.units[n.units.length-1])}function Lm(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class Qe{constructor(t){const n=t.zone||qt.defaultZone;let s=t.invalid||(Number.isNaN(t.ts)?new zn("invalid input"):null)||(n.isValid?null:Aa(n));this.ts=dt(t.ts)?qt.now():t.ts;let r=null,o=null;if(!s)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[r,o]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);r=Pm(this.ts,a),s=Number.isNaN(r.year)?new zn("invalid input"):null,r=s?null:r,o=s?null:a}this._zone=n,this.loc=t.loc||$t.create(),this.invalid=s,this.weekData=null,this.c=r,this.o=o,this.isLuxonDateTime=!0}static now(){return new Qe({})}static local(){const[t,n]=Lm(arguments),[s,r,o,i,a,l,c]=n;return Mm({year:s,month:r,day:o,hour:i,minute:a,second:l,millisecond:c},t)}static utc(){const[t,n]=Lm(arguments),[s,r,o,i,a,l,c]=n;return t.zone=an.utcInstance,Mm({year:s,month:r,day:o,hour:i,minute:a,second:l,millisecond:c},t)}static fromJSDate(t,n={}){const s=tz(t)?t.valueOf():NaN;if(Number.isNaN(s))return Qe.invalid("invalid input");const r=Fs(n.zone,qt.defaultZone);return r.isValid?new Qe({ts:s,zone:r,loc:$t.fromObject(n)}):Qe.invalid(Aa(r))}static fromMillis(t,n={}){if(dr(t))return t<-Tm||t>Tm?Qe.invalid("Timestamp out of range"):new Qe({ts:t,zone:Fs(n.zone,qt.defaultZone),loc:$t.fromObject(n)});throw new Dn(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(dr(t))return new Qe({ts:t*1e3,zone:Fs(n.zone,qt.defaultZone),loc:$t.fromObject(n)});throw new Dn("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const s=Fs(n.zone,qt.defaultZone);if(!s.isValid)return Qe.invalid(Aa(s));const r=qt.now(),o=dt(n.specificOffset)?s.offset(r):n.specificOffset,i=il(t,Im),a=!dt(i.ordinal),l=!dt(i.year),c=!dt(i.month)||!dt(i.day),d=l||c,h=i.weekYear||i.weekNumber,f=$t.fromObject(n);if((d||a)&&h)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(c&&a)throw new Mo("Can't mix ordinal dates with month/day");const m=h||i.weekday&&!d;let p,_,g=Pm(r,o);m?(p=Wq,_=qq,g=Mc(g)):a?(p=Kq,_=Gq,g=Lu(g)):(p=$y,_=Cy);let y=!1;for(const j of p){const O=i[j];dt(O)?y?i[j]=_[j]:i[j]=g[j]:y=!0}const b=m?Hq(i):a?zq(i):Sy(i),S=b||xy(i);if(S)return Qe.invalid(S);const x=m?Am(i):a?Om(i):i,[C,A]=ja(x,o,s),M=new Qe({ts:C,zone:s,o:A,loc:f});return i.weekday&&d&&t.weekday!==M.weekday?Qe.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${M.toISO()}`):M}static fromISO(t,n={}){const[s,r]=aq(t);return Eo(s,r,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[s,r]=lq(t);return Eo(s,r,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[s,r]=uq(t);return Eo(s,r,n,"HTTP",n)}static fromFormat(t,n,s={}){if(dt(t)||dt(n))throw new Dn("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:o=null}=s,i=$t.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0}),[a,l,c,d]=Uq(i,t,n);return d?Qe.invalid(d):Eo(a,l,s,`format ${n}`,t,c)}static fromString(t,n,s={}){return Qe.fromFormat(t,n,s)}static fromSQL(t,n={}){const[s,r]=gq(t);return Eo(s,r,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Dn("need to specify a reason the DateTime is invalid");const s=t instanceof zn?t:new zn(t,n);if(qt.throwOnInvalid)throw new ZH(s);return new Qe({invalid:s})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Vu(this).weekYear:NaN}get weekNumber(){return this.isValid?Vu(this).weekNumber:NaN}get weekday(){return this.isValid?Vu(this).weekday:NaN}get ordinal(){return this.isValid?Lu(this.c).ordinal:NaN}get monthShort(){return this.isValid?$a.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?$a.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?$a.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?$a.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return xi(this.year)}get daysInMonth(){return rl(this.year,this.month)}get daysInYear(){return this.isValid?ni(this.year):NaN}get weeksInWeekYear(){return this.isValid?ol(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:s,calendar:r}=hn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:s,outputCalendar:r}}toUTC(t=0,n={}){return this.setZone(an.instance(t),n)}toLocal(){return this.setZone(qt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:s=!1}={}){if(t=Fs(t,qt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let r=this.ts;if(n||s){const o=t.offset(this.ts),i=this.toObject();[r]=ja(i,o,t)}return xo(this,{ts:r,zone:t})}else return Qe.invalid(Aa(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:s}={}){const r=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:s});return xo(this,{loc:r})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=il(t,Im),s=!dt(n.weekYear)||!dt(n.weekNumber)||!dt(n.weekday),r=!dt(n.ordinal),o=!dt(n.year),i=!dt(n.month)||!dt(n.day),a=o||i,l=n.weekYear||n.weekNumber;if((a||r)&&l)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&r)throw new Mo("Can't mix ordinal dates with month/day");let c;s?c=Am(Ye(Ye({},Mc(this.c)),n)):dt(n.ordinal)?(c=Ye(Ye({},this.toObject()),n),dt(n.day)&&(c.day=Math.min(rl(c.year,c.month),c.day))):c=Om(Ye(Ye({},Lu(this.c)),n));const[d,h]=ja(c,this.o,this.zone);return xo(this,{ts:d,o:h})}plus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t);return xo(this,Dm(this,n))}minus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t).negate();return xo(this,Dm(this,n))}startOf(t){if(!this.isValid)return this;const n={},s=it.normalizeUnit(t);switch(s){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(s==="weeks"&&(n.weekday=1),s==="quarters"){const r=Math.ceil(this.month/3);n.month=(r-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?hn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):Nu}toLocaleString(t=Oc,n={}){return this.isValid?hn.create(this.loc.clone(n),t).formatDateTime(this):Nu}toLocaleParts(t={}){return this.isValid?hn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:s=!1,includeOffset:r=!0}={}){if(!this.isValid)return null;const o=t==="extended";let i=ju(this,o);return i+="T",i+=Fm(this,o,n,s,r),i}toISODate({format:t="extended"}={}){return this.isValid?ju(this,t==="extended"):null}toISOWeekDate(){return Oa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:s=!0,includePrefix:r=!1,format:o="extended"}={}){return this.isValid?(r?"T":"")+Fm(this,o==="extended",n,t,s):null}toRFC2822(){return Oa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Oa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ju(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:s=!0}={}){let r="HH:mm:ss.SSS";return(n||t)&&(s&&(r+=" "),n?r+="z":t&&(r+="ZZ")),Oa(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():Nu}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n=Ye({},this.c);return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",s={}){if(!this.isValid||!t.isValid)return it.invalid("created by diffing an invalid DateTime");const r=Ye({locale:this.locale,numberingSystem:this.numberingSystem},s),o=nz(n).map(it.normalizeUnit),i=t.valueOf()>this.valueOf(),a=i?this:t,l=i?t:this,c=Cq(a,l,o,r);return i?c.negate():c}diffNow(t="milliseconds",n={}){return this.diff(Qe.now(),t,n)}until(t){return this.isValid?Dt.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const s=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(n)<=s&&s<=r.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Qe.fromObject({},{zone:this.zone}),s=t.padding?this<n?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(r=t.unit,o=void 0),Rm(n,this.plus(s),An(Ye({},t),{numeric:"always",units:r,unit:o}))}toRelativeCalendar(t={}){return this.isValid?Rm(t.base||Qe.fromObject({},{zone:this.zone}),this,An(Ye({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(Qe.isDateTime))throw new Dn("min requires all arguments be DateTimes");return mm(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Qe.isDateTime))throw new Dn("max requires all arguments be DateTimes");return mm(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,s={}){const{locale:r=null,numberingSystem:o=null}=s,i=$t.fromOpts({locale:r,numberingSystem:o,defaultToEN:!0});return gy(i,t,n)}static fromStringExplain(t,n,s={}){return Qe.fromFormatExplain(t,n,s)}static get DATE_SHORT(){return Oc}static get DATE_MED(){return Dv}static get DATE_MED_WITH_WEEKDAY(){return XH}static get DATE_FULL(){return Fv}static get DATE_HUGE(){return Iv}static get TIME_SIMPLE(){return Mv}static get TIME_WITH_SECONDS(){return Rv}static get TIME_WITH_SHORT_OFFSET(){return Lv}static get TIME_WITH_LONG_OFFSET(){return Nv}static get TIME_24_SIMPLE(){return Vv}static get TIME_24_WITH_SECONDS(){return jv}static get TIME_24_WITH_SHORT_OFFSET(){return Bv}static get TIME_24_WITH_LONG_OFFSET(){return Uv}static get DATETIME_SHORT(){return Hv}static get DATETIME_SHORT_WITH_SECONDS(){return zv}static get DATETIME_MED(){return qv}static get DATETIME_MED_WITH_SECONDS(){return Gv}static get DATETIME_MED_WITH_WEEKDAY(){return QH}static get DATETIME_FULL(){return Wv}static get DATETIME_FULL_WITH_SECONDS(){return Kv}static get DATETIME_HUGE(){return Zv}static get DATETIME_HUGE_WITH_SECONDS(){return Yv}}function Co(e){if(Qe.isDateTime(e))return e;if(e&&e.valueOf&&dr(e.valueOf()))return Qe.fromJSDate(e);if(e&&typeof e=="object")return Qe.fromObject(e);throw new Dn(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const Zq={durationInHours:function(e){const t=Math.floor(e/1e3);return t>3600?it.fromObject({seconds:t}).shiftTo("hours","minutes","seconds").toFormat("hh:mm:ss"):it.fromObject({seconds:t}).shiftTo("minutes","seconds").toFormat("mm:ss")},durationInDays:function(e){const t=Math.floor(e/6e4);return t>1440?it.fromObject({minutes:t}).shiftTo("days","hours","minutes").toHuman():t>60?it.fromObject({minutes:t}).shiftTo("hours","minutes").toHuman():it.fromObject({minutes:t}).shiftTo("minutes").toHuman()},date:function(e){return Qe.fromISO(e).toLocaleString(Qe.DATE_FULL)},datetime:function(e){return Qe.fromISO(e).toLocaleString(Qe.DATETIME_MED)},timeFromNow:function(e){var t=Qe.now().diff(Qe.fromISO(e));return this.durationInDays(t.as("milliseconds"))},number:function(e){return e.toLocaleString()},channels:function(e){return e===1?"mono":e===2?"stereo":e?e+" channels":""}},Yq={mdiAccountMusic:NU,mdiAlbum:VU,mdiArrowCollapseDown:BU,mdiBookOpenVariant:HU,mdiBookOpenPageVariant:UU,mdiBookshelf:zU,mdiCancel:qU,mdiCast:GU,mdiCastVariant:WU,mdiCellphone:KU,mdiCheck:ZU,mdiChevronDown:YU,mdiChevronUp:JU,mdiContentSave:XU,mdiDelete:QU,mdiDeleteEmpty:eH,mdiDotsHorizontal:tH,mdiDotsVertical:nH,mdiDragHorizontal:sH,mdiFastForward:rH,mdiFileMusic:oH,mdiFileOutline:iH,mdiFire:aH,mdiFolder:lH,mdiFolderOpen:uH,mdiMagnify:cH,mdiMenu:dH,mdiMicrophone:fH,mdiMusic:hH,mdiMusicBoxMultiple:mH,mdiPause:pH,mdiPencil:_H,mdiPipe:gH,mdiPlay:vH,mdiPlaylistPlay:yH,mdiPlaylistPlus:bH,mdiRadio:wH,mdiRadioTower:kH,mdiRefresh:SH,mdiRepeat:xH,mdiRepeatOff:EH,mdiRepeatOnce:CH,mdiRewind:$H,mdiRss:AH,mdiServer:OH,mdiShuffle:TH,mdiShuffleDisabled:PH,mdiSkipBackward:DH,mdiSkipForward:FH,mdiSpeaker:IH,mdiSpotify:MH,mdiStop:RH,mdiSubdirectoryArrowLeft:LH,mdiVolumeHigh:NH,mdiVolumeOff:VH,mdiWeb:jH},Jq={name:"NavbarItemLink",props:{to:String,exact:Boolean},computed:{is_active(){return this.exact?this.$route.path===this.to:this.$route.path.startsWith(this.to)},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(to,e)}},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(eo,e)}}},methods:{open_link:function(){this.show_burger_menu&&this.$store.commit(eo,!1),this.show_player_menu&&this.$store.commit(to,!1),this.$router.push({path:this.to})},full_path:function(){return this.$router.resolve(this.to).href}}},Xq=["href"];function Qq(e,t,n,s,r,o){return E(),D("a",{class:We(["navbar-item",{"is-active":o.is_active}]),href:o.full_path(),onClick:t[0]||(t[0]=pt(i=>o.open_link(),["stop","prevent"]))},[St(e.$slots,"default")],10,Xq)}var Ay=ge(Jq,[["render",Qq]]);const eG={name:"NavbarTop",components:{NavbarItemLink:Ay},data(){return{show_settings_menu:!1}},computed:{is_visible_playlists(){return this.$store.getters.settings_option("webinterface","show_menu_item_playlists").value},is_visible_music(){return this.$store.getters.settings_option("webinterface","show_menu_item_music").value},is_visible_podcasts(){return this.$store.getters.settings_option("webinterface","show_menu_item_podcasts").value},is_visible_audiobooks(){return this.$store.getters.settings_option("webinterface","show_menu_item_audiobooks").value},is_visible_radio(){return this.$store.getters.settings_option("webinterface","show_menu_item_radio").value},is_visible_files(){return this.$store.getters.settings_option("webinterface","show_menu_item_files").value},is_visible_search(){return this.$store.getters.settings_option("webinterface","show_menu_item_search").value},player(){return this.$store.state.player},config(){return this.$store.state.config},library(){return this.$store.state.library},audiobooks(){return this.$store.state.audiobooks_count},podcasts(){return this.$store.state.podcasts_count},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(eo,e)}},show_player_menu(){return this.$store.state.show_player_menu},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(yi,e)}},zindex(){return this.show_player_menu?"z-index: 20":""}},watch:{$route(e,t){this.show_settings_menu=!1}},methods:{on_click_outside_settings(){this.show_settings_menu=!this.show_settings_menu},open_update_dialog(){this.show_update_dialog=!0,this.show_settings_menu=!1,this.show_burger_menu=!1}}},tG={class:"navbar-brand"},nG={class:"icon"},sG={class:"icon"},rG={class:"icon"},oG={class:"icon"},iG={class:"icon"},aG={class:"icon"},lG={class:"icon"},uG=u("span",null,null,-1),cG=u("span",null,null,-1),dG=u("span",null,null,-1),fG=[uG,cG,dG],hG=u("div",{class:"navbar-start"},null,-1),mG={class:"navbar-end"},pG={class:"navbar-link is-arrowless"},_G={class:"icon is-hidden-touch"},gG=u("span",{class:"is-hidden-desktop has-text-weight-bold"},"OwnTone",-1),vG={class:"navbar-dropdown is-right"},yG={class:"icon"},bG=u("b",null,"Playlists",-1),wG={class:"icon"},kG=u("b",null,"Music",-1),SG=u("span",{class:"fd-navbar-item-level2"},"Artists",-1),xG=u("span",{class:"fd-navbar-item-level2"},"Albums",-1),EG=u("span",{class:"fd-navbar-item-level2"},"Genres",-1),CG=u("span",{class:"fd-navbar-item-level2"},"Spotify",-1),$G={class:"icon"},AG=u("b",null,"Podcasts",-1),OG={class:"icon"},TG=u("b",null,"Audiobooks",-1),PG={class:"icon"},DG=u("b",null,"Radio",-1),FG={class:"icon"},IG=u("b",null,"Files",-1),MG={class:"icon"},RG=u("b",null,"Search",-1),LG=u("hr",{class:"fd-navbar-divider"},null,-1),NG=$e(" Settings "),VG=$e(" About "),jG=u("div",{class:"navbar-item is-hidden-desktop",style:{"margin-bottom":"2.5rem"}},null,-1);function BG(e,t,n,s,r,o){const i=P("mdicon"),a=P("navbar-item-link");return E(),D("nav",{class:"fd-top-navbar navbar is-light is-fixed-top",style:zs(o.zindex),role:"navigation","aria-label":"main navigation"},[u("div",tG,[o.is_visible_playlists?(E(),Se(a,{key:0,to:"/playlists"},{default:T(()=>[u("span",nG,[w(i,{name:"music-box-multiple",size:"16"})])]),_:1})):Z("",!0),o.is_visible_music?(E(),Se(a,{key:1,to:"/music"},{default:T(()=>[u("span",sG,[w(i,{name:"music",size:"16"})])]),_:1})):Z("",!0),o.is_visible_podcasts?(E(),Se(a,{key:2,to:"/podcasts"},{default:T(()=>[u("span",rG,[w(i,{name:"microphone",size:"16"})])]),_:1})):Z("",!0),o.is_visible_audiobooks?(E(),Se(a,{key:3,to:"/audiobooks"},{default:T(()=>[u("span",oG,[w(i,{name:"book-open-variant",size:"16"})])]),_:1})):Z("",!0),o.is_visible_radio?(E(),Se(a,{key:4,to:"/radio"},{default:T(()=>[u("span",iG,[w(i,{name:"radio",size:"16"})])]),_:1})):Z("",!0),o.is_visible_files?(E(),Se(a,{key:5,to:"/files"},{default:T(()=>[u("span",aG,[w(i,{name:"folder-open",size:"16"})])]),_:1})):Z("",!0),o.is_visible_search?(E(),Se(a,{key:6,to:"/search"},{default:T(()=>[u("span",lG,[w(i,{name:"magnify",size:"16"})])]),_:1})):Z("",!0),u("div",{class:We(["navbar-burger",{"is-active":o.show_burger_menu}]),onClick:t[0]||(t[0]=l=>o.show_burger_menu=!o.show_burger_menu)},fG,2)]),u("div",{class:We(["navbar-menu",{"is-active":o.show_burger_menu}])},[hG,u("div",mG,[u("div",{class:We(["navbar-item has-dropdown is-hoverable",{"is-active":r.show_settings_menu}]),onClick:t[2]||(t[2]=(...l)=>o.on_click_outside_settings&&o.on_click_outside_settings(...l))},[u("a",pG,[u("span",_G,[w(i,{name:"menu",size:"24"})]),gG]),u("div",vG,[w(a,{to:"/playlists"},{default:T(()=>[u("span",yG,[w(i,{name:"music-box-multiple",size:"16"})]),bG]),_:1}),w(a,{to:"/music",exact:""},{default:T(()=>[u("span",wG,[w(i,{name:"music",size:"16"})]),kG]),_:1}),w(a,{to:"/music/artists"},{default:T(()=>[SG]),_:1}),w(a,{to:"/music/albums"},{default:T(()=>[xG]),_:1}),w(a,{to:"/music/genres"},{default:T(()=>[EG]),_:1}),o.spotify_enabled?(E(),Se(a,{key:0,to:"/music/spotify"},{default:T(()=>[CG]),_:1})):Z("",!0),w(a,{to:"/podcasts"},{default:T(()=>[u("span",$G,[w(i,{name:"microphone",size:"16"})]),AG]),_:1}),w(a,{to:"/audiobooks"},{default:T(()=>[u("span",OG,[w(i,{name:"book-open-variant",size:"16"})]),TG]),_:1}),w(a,{to:"/radio"},{default:T(()=>[u("span",PG,[w(i,{name:"radio",size:"16"})]),DG]),_:1}),w(a,{to:"/files"},{default:T(()=>[u("span",FG,[w(i,{name:"folder-open",size:"16"})]),IG]),_:1}),w(a,{to:"/search"},{default:T(()=>[u("span",MG,[w(i,{name:"magnify",size:"16"})]),RG]),_:1}),LG,w(a,{to:"/settings/webinterface"},{default:T(()=>[NG]),_:1}),u("a",{class:"navbar-item",onClick:t[1]||(t[1]=pt(l=>o.open_update_dialog(),["stop","prevent"]))}," Update Library "),w(a,{to:"/about"},{default:T(()=>[VG]),_:1}),jG])],2)])],2),wt(u("div",{class:"is-overlay",style:{"z-index":"10",width:"100vw",height:"100vh"},onClick:t[3]||(t[3]=l=>r.show_settings_menu=!1)},null,512),[[Qr,r.show_settings_menu]])],4)}var UG=ge(eG,[["render",BG]]),$o={_audio:new Audio,_context:null,_source:null,_gain:null,setupAudio(){const e=window.AudioContext||window.webkitAudioContext;return this._context=new e,this._source=this._context.createMediaElementSource(this._audio),this._gain=this._context.createGain(),this._source.connect(this._gain),this._gain.connect(this._context.destination),this._audio.addEventListener("canplaythrough",t=>{this._audio.play()}),this._audio.addEventListener("canplay",t=>{this._audio.play()}),this._audio},setVolume(e){!this._gain||(e=parseFloat(e)||0,e=e<0?0:e,e=e>1?1:e,this._gain.gain.value=e)},playSource(e){this.stopAudio(),this._context.resume().then(()=>{this._audio.src=String(e||"")+"?x="+Date.now(),this._audio.crossOrigin="anonymous",this._audio.load()})},stopAudio(){try{this._audio.pause()}catch{}try{this._audio.stop()}catch{}try{this._audio.close()}catch{}}};const HG={name:"NavbarItemOutput",components:{Slider:ui},props:["output"],computed:{type_class(){return this.output.type.startsWith("AirPlay")?"cast-variant":this.output.type==="Chromecast"?"cast":this.output.type==="fifo"?"pipe":"server"},volume(){return this.output.selected?this.output.volume:0}},methods:{play_next:function(){G.player_next()},set_volume:function(e){G.player_output_volume(this.output.id,e)},set_enabled:function(){const e={selected:!this.output.selected};G.output_update(this.output.id,e)}}},zG={class:"navbar-item"},qG={class:"level is-mobile"},GG={class:"level-left fd-expanded"},WG={class:"level-item",style:{"flex-grow":"0"}},KG={class:"button is-white is-small"},ZG={class:"level-item fd-expanded"},YG={class:"fd-expanded"};function JG(e,t,n,s,r,o){const i=P("mdicon"),a=P("Slider");return E(),D("div",zG,[u("div",qG,[u("div",GG,[u("div",WG,[u("a",KG,[u("span",{class:We(["icon fd-has-action",{"has-text-grey-light":!n.output.selected}]),onClick:t[0]||(t[0]=(...l)=>o.set_enabled&&o.set_enabled(...l))},[w(i,{name:o.type_class,size:"18",title:n.output.type},null,8,["name","title"])],2)])]),u("div",ZG,[u("div",YG,[u("p",{class:We(["heading",{"has-text-grey-light":!n.output.selected}])},R(n.output.name),3),w(a,{modelValue:o.volume,"onUpdate:modelValue":t[1]||(t[1]=l=>o.volume=l),min:0,max:100,step:1,tooltips:!1,disabled:!n.output.selected,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","disabled","onChange"])])])])])])}var XG=ge(HG,[["render",JG]]);const QG={name:"PlayerButtonPlayPause",props:{icon_size:{type:Number,default:16},show_disabled_message:Boolean},computed:{is_playing(){return this.$store.state.player.state==="play"},is_pause_allowed(){return this.$store.getters.now_playing&&this.$store.getters.now_playing.data_kind!=="pipe"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0},icon_name(){if(this.is_playing){if(this.is_pause_allowed)return"pause"}else return"play";return"stop"}},methods:{toggle_play_pause:function(){if(this.disabled){this.show_disabled_message&&this.$store.dispatch("add_notification",{text:"Queue is empty",type:"info",topic:"connection",timeout:2e3});return}this.is_playing&&this.is_pause_allowed?G.player_pause():this.is_playing&&!this.is_pause_allowed?G.player_stop():G.player_play()}}},eW=["disabled"],tW={class:"icon"};function nW(e,t,n,s,r,o){const i=P("mdicon");return E(),D("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.toggle_play_pause&&o.toggle_play_pause(...a))},[u("span",tW,[w(i,{name:o.icon_name,size:n.icon_size},null,8,["name","size"])])],8,eW)}var sW=ge(QG,[["render",nW]]);const rW={name:"PlayerButtonNext",props:{icon_size:{type:Number,default:16}},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_next:function(){this.disabled||G.player_next()}}},oW=["disabled"],iW={class:"icon"};function aW(e,t,n,s,r,o){const i=P("mdicon");return E(),D("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_next&&o.play_next(...a))},[u("span",iW,[w(i,{name:"skip-forward",size:n.icon_size},null,8,["size"])])],8,oW)}var lW=ge(rW,[["render",aW]]);const uW={name:"PlayerButtonPrevious",props:{icon_size:{type:Number,default:16}},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_previous:function(){this.disabled||G.player_previous()}}},cW=["disabled"],dW={class:"icon"};function fW(e,t,n,s,r,o){const i=P("mdicon");return E(),D("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_previous&&o.play_previous(...a))},[u("span",dW,[w(i,{name:"skip-backward",size:n.icon_size},null,8,["size"])])],8,cW)}var hW=ge(uW,[["render",fW]]);const mW={name:"PlayerButtonShuffle",props:{icon_size:{type:Number,default:16}},computed:{is_shuffle(){return this.$store.state.player.shuffle},icon_name(){return this.is_shuffle?"shuffle":"shuffle-disabled"}},methods:{toggle_shuffle_mode:function(){G.player_shuffle(!this.is_shuffle)}}},pW={class:"icon"};function _W(e,t,n,s,r,o){const i=P("mdicon");return E(),D("a",{class:We({"is-warning":o.is_shuffle}),onClick:t[0]||(t[0]=(...a)=>o.toggle_shuffle_mode&&o.toggle_shuffle_mode(...a))},[u("span",pW,[w(i,{name:o.icon_name,size:n.icon_size},null,8,["name","size"])])],2)}var gW=ge(mW,[["render",_W]]);const vW={name:"PlayerButtonConsume",props:{icon_size:{type:Number,default:16}},computed:{is_consume(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){G.player_consume(!this.is_consume)}}},yW={class:"icon"};function bW(e,t,n,s,r,o){const i=P("mdicon");return E(),D("a",{class:We({"is-warning":o.is_consume}),onClick:t[0]||(t[0]=(...a)=>o.toggle_consume_mode&&o.toggle_consume_mode(...a))},[u("span",yW,[w(i,{name:"fire",size:n.icon_size},null,8,["size"])])],2)}var wW=ge(vW,[["render",bW]]);const kW={name:"PlayerButtonRepeat",props:{icon_size:{type:Number,default:16}},computed:{is_repeat_all(){return this.$store.state.player.repeat==="all"},is_repeat_single(){return this.$store.state.player.repeat==="single"},is_repeat_off(){return!this.is_repeat_all&&!this.is_repeat_single},icon_name(){return this.is_repeat_all?"repeat":this.is_repeat_single?"repeat-once":"repeat-off"}},methods:{toggle_repeat_mode:function(){this.is_repeat_all?G.player_repeat("single"):this.is_repeat_single?G.player_repeat("off"):G.player_repeat("all")}}},SW={class:"icon"};function xW(e,t,n,s,r,o){const i=P("mdicon");return E(),D("a",{class:We({"is-warning":!o.is_repeat_off}),onClick:t[0]||(t[0]=(...a)=>o.toggle_repeat_mode&&o.toggle_repeat_mode(...a))},[u("span",SW,[w(i,{name:o.icon_name,size:n.icon_size},null,8,["name","size"])])],2)}var EW=ge(kW,[["render",xW]]);const CW={name:"PlayerButtonSeekBack",props:{seek_ms:Number,icon_size:{type:Number,default:16}},computed:{now_playing(){return this.$store.getters.now_playing},is_stopped(){return this.$store.state.player.state==="stop"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0||this.is_stopped||this.now_playing.data_kind==="pipe"},visible(){return["podcast","audiobook"].includes(this.now_playing.media_kind)}},methods:{seek:function(){this.disabled||G.player_seek(this.seek_ms*-1)}}},$W=["disabled"],AW={class:"icon"};function OW(e,t,n,s,r,o){const i=P("mdicon");return o.visible?(E(),D("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[u("span",AW,[w(i,{name:"rewind",size:n.icon_size},null,8,["size"])])],8,$W)):Z("",!0)}var TW=ge(CW,[["render",OW]]);const PW={name:"PlayerButtonSeekForward",props:{seek_ms:Number,icon_size:{type:Number,default:16}},computed:{now_playing(){return this.$store.getters.now_playing},is_stopped(){return this.$store.state.player.state==="stop"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0||this.is_stopped||this.now_playing.data_kind==="pipe"},visible(){return["podcast","audiobook"].includes(this.now_playing.media_kind)}},methods:{seek:function(){this.disabled||G.player_seek(this.seek_ms)}}},DW=["disabled"],FW={class:"icon"};function IW(e,t,n,s,r,o){const i=P("mdicon");return o.visible?(E(),D("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[u("span",FW,[w(i,{name:"fast-forward",size:n.icon_size},null,8,["size"])])],8,DW)):Z("",!0)}var MW=ge(PW,[["render",IW]]);const RW={name:"NavbarBottom",components:{NavbarItemLink:Ay,NavbarItemOutput:XG,Slider:ui,PlayerButtonPlayPause:sW,PlayerButtonNext:lW,PlayerButtonPrevious:hW,PlayerButtonShuffle:gW,PlayerButtonConsume:wW,PlayerButtonRepeat:EW,PlayerButtonSeekForward:MW,PlayerButtonSeekBack:TW},data(){return{old_volume:0,playing:!1,loading:!1,stream_volume:10,show_outputs_menu:!1,show_desktop_outputs_menu:!1}},computed:{show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(to,e)}},show_burger_menu(){return this.$store.state.show_burger_menu},zindex(){return this.show_burger_menu?"z-index: 20":""},state(){return this.$store.state.player},now_playing(){return this.$store.getters.now_playing},is_now_playing_page(){return this.$route.path==="/now-playing"},outputs(){return this.$store.state.outputs},player(){return this.$store.state.player},config(){return this.$store.state.config}},watch:{"$store.state.player.volume"(){this.player.volume>0&&(this.old_volume=this.player.volume)}},mounted(){this.setupAudio()},unmounted(){this.closeAudio()},methods:{on_click_outside_outputs(){this.show_outputs_menu=!1},set_volume:function(e){G.player_volume(e)},toggle_mute_volume:function(){this.player.volume>0?this.set_volume(0):this.set_volume(this.old_volume)},setupAudio:function(){const e=$o.setupAudio();e.addEventListener("waiting",t=>{this.playing=!1,this.loading=!0}),e.addEventListener("playing",t=>{this.playing=!0,this.loading=!1}),e.addEventListener("ended",t=>{this.playing=!1,this.loading=!1}),e.addEventListener("error",t=>{this.closeAudio(),this.$store.dispatch("add_notification",{text:"HTTP stream error: failed to load stream or stopped loading due to network problem",type:"danger"}),this.playing=!1,this.loading=!1})},closeAudio:function(){$o.stopAudio(),this.playing=!1},playChannel:function(){if(this.playing)return;const e="/stream.mp3";this.loading=!0,$o.playSource(e),$o.setVolume(this.stream_volume/100)},togglePlay:function(){if(!this.loading)return this.playing?this.closeAudio():this.playChannel()},set_stream_volume:function(e){this.stream_volume=e,$o.setVolume(this.stream_volume/100)}}},LW={class:"navbar-brand fd-expanded"},NW={class:"icon"},VW={class:"is-clipped"},jW={class:"is-size-7 fd-is-text-clipped"},BW=u("br",null,null,-1),UW={key:0},HW={class:"icon"},zW={class:"icon"},qW={class:"navbar-dropdown is-right is-boxed",style:{"margin-right":"6px","margin-bottom":"6px","border-radius":"6px"}},GW={class:"navbar-item"},WW={class:"level is-mobile"},KW={class:"level-left fd-expanded"},ZW={class:"level-item",style:{"flex-grow":"0"}},YW={class:"icon"},JW={class:"level-item fd-expanded"},XW={class:"fd-expanded"},QW=u("p",{class:"heading"},"Volume",-1),eK=u("hr",{class:"fd-navbar-divider"},null,-1),tK=u("hr",{class:"fd-navbar-divider"},null,-1),nK={class:"navbar-item"},sK={class:"level is-mobile"},rK={class:"level-left fd-expanded"},oK={class:"level-item",style:{"flex-grow":"0"}},iK={class:"level-item fd-expanded"},aK={class:"fd-expanded"},lK=$e(" HTTP stream "),uK=u("a",{href:"stream.mp3"},[u("span",{class:"is-lowercase"},"(stream.mp3)")],-1),cK=[lK,uK],dK=u("hr",{class:"fd-navbar-divider"},null,-1),fK={class:"navbar-item"},hK={class:"level is-mobile fd-expanded"},mK={class:"level-item"},pK={class:"buttons has-addons"},_K=u("div",{class:"navbar-start"},null,-1),gK={class:"navbar-end"},vK={class:"navbar-item"},yK={class:"buttons is-centered"},bK=u("hr",{class:"fd-navbar-divider"},null,-1),wK={class:"navbar-item"},kK={class:"level is-mobile"},SK={class:"level-left fd-expanded"},xK={class:"level-item",style:{"flex-grow":"0"}},EK={class:"icon"},CK={class:"level-item fd-expanded"},$K={class:"fd-expanded"},AK=u("p",{class:"heading"},"Volume",-1),OK=u("hr",{class:"fd-navbar-divider"},null,-1),TK={class:"navbar-item fd-has-margin-bottom"},PK={class:"level is-mobile"},DK={class:"level-left fd-expanded"},FK={class:"level-item",style:{"flex-grow":"0"}},IK={class:"level-item fd-expanded"},MK={class:"fd-expanded"},RK=$e(" HTTP stream "),LK=u("a",{href:"stream.mp3"},[u("span",{class:"is-lowercase"},"(stream.mp3)")],-1),NK=[RK,LK];function VK(e,t,n,s,r,o){const i=P("mdicon"),a=P("navbar-item-link"),l=P("router-link"),c=P("player-button-previous"),d=P("player-button-seek-back"),h=P("player-button-play-pause"),f=P("player-button-seek-forward"),m=P("player-button-next"),p=P("Slider"),_=P("navbar-item-output"),g=P("player-button-repeat"),y=P("player-button-shuffle"),b=P("player-button-consume");return E(),D("nav",{class:We(["fd-bottom-navbar navbar is-white is-fixed-bottom",{"is-transparent":o.is_now_playing_page,"is-dark":!o.is_now_playing_page}]),style:zs(o.zindex),role:"navigation","aria-label":"player controls"},[u("div",LW,[w(a,{to:"/",exact:""},{default:T(()=>[u("span",NW,[w(i,{name:"playlist-play",size:"24"})])]),_:1}),o.is_now_playing_page?Z("",!0):(E(),Se(l,{key:0,to:"/now-playing",class:"navbar-item is-expanded is-clipped","active-class":"is-active",exact:""},{default:T(()=>[u("div",VW,[u("p",jW,[u("strong",null,R(o.now_playing.title),1),BW,$e(" "+R(o.now_playing.artist),1),o.now_playing.data_kind==="url"?(E(),D("span",UW," - "+R(o.now_playing.album),1)):Z("",!0)])])]),_:1})),o.is_now_playing_page?(E(),Se(c,{key:1,class:"navbar-item fd-margin-left-auto",icon_size:24})):Z("",!0),o.is_now_playing_page?(E(),Se(d,{key:2,seek_ms:1e4,class:"navbar-item",icon_size:24})):Z("",!0),w(h,{class:"navbar-item",icon_size:36,show_disabled_message:""}),o.is_now_playing_page?(E(),Se(f,{key:3,seek_ms:3e4,class:"navbar-item",icon_size:24})):Z("",!0),o.is_now_playing_page?(E(),Se(m,{key:4,class:"navbar-item",icon_size:24})):Z("",!0),u("a",{class:"navbar-item fd-margin-left-auto is-hidden-desktop",onClick:t[0]||(t[0]=S=>o.show_player_menu=!o.show_player_menu)},[u("span",HW,[w(i,{name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),u("div",{class:We(["navbar-item has-dropdown has-dropdown-up fd-margin-left-auto is-hidden-touch",{"is-active":o.show_player_menu}])},[u("a",{class:"navbar-link is-arrowless",onClick:t[1]||(t[1]=S=>o.show_player_menu=!o.show_player_menu)},[u("span",zW,[w(i,{name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),u("div",qW,[u("div",GW,[u("div",WW,[u("div",KW,[u("div",ZW,[u("a",{class:"button is-white is-small",onClick:t[2]||(t[2]=(...S)=>o.toggle_mute_volume&&o.toggle_mute_volume(...S))},[u("span",YW,[w(i,{name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),u("div",JW,[u("div",XW,[QW,w(p,{modelValue:o.player.volume,"onUpdate:modelValue":t[3]||(t[3]=S=>o.player.volume=S),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","onChange"])])])])])]),eK,(E(!0),D(Ke,null,bt(o.outputs,S=>(E(),Se(_,{key:S.id,output:S},null,8,["output"]))),128)),tK,u("div",nK,[u("div",sK,[u("div",rK,[u("div",oK,[u("a",{class:We(["button is-white is-small",{"is-loading":r.loading}])},[u("span",{class:We(["icon fd-has-action",{"has-text-grey-light":!r.playing&&!r.loading,"is-loading":r.loading}]),onClick:t[4]||(t[4]=(...S)=>o.togglePlay&&o.togglePlay(...S))},[w(i,{name:"radio-tower",size:"18"})],2)],2)]),u("div",iK,[u("div",aK,[u("p",{class:We(["heading",{"has-text-grey-light":!r.playing}])},cK,2),w(p,{modelValue:r.stream_volume,"onUpdate:modelValue":t[5]||(t[5]=S=>r.stream_volume=S),min:0,max:100,step:1,tooltips:!1,disabled:!r.playing,classes:{target:"slider"},onChange:o.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])]),dK,u("div",fK,[u("div",hK,[u("div",mK,[u("div",pK,[w(g,{class:"button"}),w(y,{class:"button"}),w(b,{class:"button"})])])])])])],2)]),u("div",{class:We(["navbar-menu is-hidden-desktop",{"is-active":o.show_player_menu}])},[_K,u("div",gK,[u("div",vK,[u("div",yK,[w(g,{class:"button",icon_size:18}),w(y,{class:"button",icon_size:18}),w(b,{class:"button",icon_size:18})])]),bK,u("div",wK,[u("div",kK,[u("div",SK,[u("div",xK,[u("a",{class:"button is-white is-small",onClick:t[6]||(t[6]=(...S)=>o.toggle_mute_volume&&o.toggle_mute_volume(...S))},[u("span",EK,[w(i,{name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),u("div",CK,[u("div",$K,[AK,w(p,{modelValue:o.player.volume,"onUpdate:modelValue":t[7]||(t[7]=S=>o.player.volume=S),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","onChange"])])])])])]),(E(!0),D(Ke,null,bt(o.outputs,S=>(E(),Se(_,{key:S.id,output:S},null,8,["output"]))),128)),OK,u("div",TK,[u("div",PK,[u("div",DK,[u("div",FK,[u("a",{class:We(["button is-white is-small",{"is-loading":r.loading}])},[u("span",{class:We(["icon fd-has-action",{"has-text-grey-light":!r.playing&&!r.loading,"is-loading":r.loading}]),onClick:t[8]||(t[8]=(...S)=>o.togglePlay&&o.togglePlay(...S))},[w(i,{name:"radio-tower",size:"16"})],2)],2)]),u("div",IK,[u("div",MK,[u("p",{class:We(["heading",{"has-text-grey-light":!r.playing}])},NK,2),w(p,{modelValue:r.stream_volume,"onUpdate:modelValue":t[9]||(t[9]=S=>r.stream_volume=S),min:0,max:100,step:1,tooltips:!1,disabled:!r.playing,classes:{target:"slider"},onChange:o.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])])])],2)],6)}var jK=ge(RW,[["render",VK]]);const BK={name:"NotificationList",components:{},data(){return{showNav:!1}},computed:{notifications(){return this.$store.state.notifications.list}},methods:{remove:function(e){this.$store.commit(lc,e)}}},UK={key:0,class:"fd-notifications"},HK={class:"columns is-centered"},zK={class:"column is-half"},qK=["onClick"];function GK(e,t,n,s,r,o){return o.notifications.length>0?(E(),D("section",UK,[u("div",HK,[u("div",zK,[(E(!0),D(Ke,null,bt(o.notifications,i=>(E(),D("div",{key:i.id,class:We(["notification has-shadow",["notification",i.type?`is-${i.type}`:""]])},[u("button",{class:"delete",onClick:a=>o.remove(i)},null,8,qK),$e(" "+R(i.text),1)],2))),128))])])])):Z("",!0)}var WK=ge(BK,[["render",GK]]);const KK={name:"ModalDialogRemotePairing",props:["show"],emits:["close"],data(){return{pairing_req:{pin:""}}},computed:{pairing(){return this.$store.state.pairing}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.pin_field.focus()},10))}},methods:{kickoff_pairing(){G.pairing_kickoff(this.pairing_req).then(()=>{this.pairing_req.pin=""})}}},ZK={key:0,class:"modal is-active"},YK={class:"modal-content fd-modal-card"},JK={class:"card"},XK={class:"card-content"},QK=u("p",{class:"title is-4"},"Remote pairing request",-1),eZ={class:"label"},tZ={class:"field"},nZ={class:"control"},sZ={class:"card-footer"},rZ={class:"icon"},oZ=u("span",{class:"is-size-7"},"Cancel",-1),iZ={class:"icon"},aZ=u("span",{class:"is-size-7"},"Pair Remote",-1);function lZ(e,t,n,s,r,o){const i=P("mdicon");return E(),D("div",null,[w(Ht,{name:"fade"},{default:T(()=>[n.show?(E(),D("div",ZK,[u("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),u("div",YK,[u("div",JK,[u("div",XK,[QK,u("form",{onSubmit:t[2]||(t[2]=pt((...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a),["prevent"]))},[u("label",eZ,R(o.pairing.remote),1),u("div",tZ,[u("div",nZ,[wt(u("input",{ref:"pin_field","onUpdate:modelValue":t[1]||(t[1]=a=>r.pairing_req.pin=a),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[en,r.pairing_req.pin]])])])],32)]),u("footer",sZ,[u("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[u("span",rZ,[w(i,{name:"cancel",size:"16"})]),oZ]),u("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a))},[u("span",iZ,[w(i,{name:"cellphone",size:"16"})]),aZ])])])]),u("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Z("",!0)]),_:1})])}var uZ=ge(KK,[["render",lZ]]);const cZ={name:"ModalDialogUpdate",components:{ModalDialog:Nd},props:["show"],emits:["close"],data(){return{rescan_metadata:!1}},computed:{library(){return this.$store.state.library},rss(){return this.$store.state.rss_count},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},update_dialog_scan_kind:{get(){return this.$store.state.update_dialog_scan_kind},set(e){this.$store.commit(wd,e)}}},methods:{update_library(){this.rescan_metadata?G.library_rescan(this.update_dialog_scan_kind):G.library_update(this.update_dialog_scan_kind)},close(){this.update_dialog_scan_kind="",this.$emit("close")}}},dZ={key:0},fZ=u("p",{class:"mb-3"},"Scan for new, deleted and modified files",-1),hZ={key:0,class:"field"},mZ={class:"control"},pZ={class:"select is-small"},_Z=u("option",{value:""},"Update everything",-1),gZ=u("option",{value:"files"},"Only update local library",-1),vZ={key:0,value:"spotify"},yZ={key:1,value:"rss"},bZ={class:"field"},wZ={class:"checkbox is-size-7 is-small"},kZ=$e(" Rescan metadata for unmodified files "),SZ={key:1},xZ=u("p",{class:"mb-3"},"Library update in progress ...",-1),EZ=[xZ];function CZ(e,t,n,s,r,o){const i=P("modal-dialog");return E(),Se(i,{show:n.show,title:"Update library",ok_action:o.library.updating?"":"Rescan",close_action:"Close",onOk:o.update_library,onClose:t[2]||(t[2]=a=>o.close())},{"modal-content":T(()=>[o.library.updating?(E(),D("div",SZ,EZ)):(E(),D("div",dZ,[fZ,o.spotify_enabled||o.rss.tracks>0?(E(),D("div",hZ,[u("div",mZ,[u("div",pZ,[wt(u("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>o.update_dialog_scan_kind=a)},[_Z,gZ,o.spotify_enabled?(E(),D("option",vZ," Only update Spotify ")):Z("",!0),o.rss.tracks>0?(E(),D("option",yZ," Only update RSS feeds ")):Z("",!0)],512),[[fd,o.update_dialog_scan_kind]])])])])):Z("",!0),u("div",bZ,[u("label",wZ,[wt(u("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>r.rescan_metadata=a),type:"checkbox"},null,512),[[ps,r.rescan_metadata]]),kZ])])]))]),_:1},8,["show","ok_action","onOk"])}var $Z=ge(cZ,[["render",CZ]]),Oy={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(tn,function(){if(!("WebSocket"in window))return;function t(n,s,r){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};r||(r={});for(var i in o)typeof r[i]!="undefined"?this[i]=r[i]:this[i]=o[i];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var a=this,l,c=!1,d=!1,h=document.createElement("div");h.addEventListener("open",function(m){a.onopen(m)}),h.addEventListener("close",function(m){a.onclose(m)}),h.addEventListener("connecting",function(m){a.onconnecting(m)}),h.addEventListener("message",function(m){a.onmessage(m)}),h.addEventListener("error",function(m){a.onerror(m)}),this.addEventListener=h.addEventListener.bind(h),this.removeEventListener=h.removeEventListener.bind(h),this.dispatchEvent=h.dispatchEvent.bind(h);function f(m,p){var _=document.createEvent("CustomEvent");return _.initCustomEvent(m,!1,!1,p),_}this.open=function(m){if(l=new WebSocket(a.url,s||[]),m){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else h.dispatchEvent(f("connecting")),this.reconnectAttempts=0;(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",a.url);var p=l,_=setTimeout(function(){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",a.url),d=!0,p.close(),d=!1},a.timeoutInterval);l.onopen=function(g){clearTimeout(_),(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",a.url),a.protocol=l.protocol,a.readyState=WebSocket.OPEN,a.reconnectAttempts=0;var y=f("open");y.isReconnect=m,m=!1,h.dispatchEvent(y)},l.onclose=function(g){if(clearTimeout(b),l=null,c)a.readyState=WebSocket.CLOSED,h.dispatchEvent(f("close"));else{a.readyState=WebSocket.CONNECTING;var y=f("connecting");y.code=g.code,y.reason=g.reason,y.wasClean=g.wasClean,h.dispatchEvent(y),!m&&!d&&((a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",a.url),h.dispatchEvent(f("close")));var b=a.reconnectInterval*Math.pow(a.reconnectDecay,a.reconnectAttempts);setTimeout(function(){a.reconnectAttempts++,a.open(!0)},b>a.maxReconnectInterval?a.maxReconnectInterval:b)}},l.onmessage=function(g){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",a.url,g.data);var y=f("message");y.data=g.data,h.dispatchEvent(y)},l.onerror=function(g){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",a.url,g),h.dispatchEvent(f("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(m){if(l)return(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",a.url,m),l.send(m);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(m,p){typeof m=="undefined"&&(m=1e3),c=!0,l&&l.close(m,p)},this.refresh=function(){l&&l.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})})(Oy);var AZ=Oy.exports;const OZ={name:"App",components:{NavbarTop:UG,NavbarBottom:jK,NotificationList:WK,ModalDialogRemotePairing:uZ,ModalDialogUpdate:$Z},data(){return{token_timer_id:0,reconnect_attempts:0,pairing_active:!1}},computed:{show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(eo,e)}},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(to,e)}},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(yi,e)}}},watch:{show_burger_menu(){this.update_is_clipped()},show_player_menu(){this.update_is_clipped()}},created:function(){this.connect(),this.$Progress.start(),this.$router.beforeEach((e,t,n)=>{if(e.meta.show_progress){if(e.meta.progress!==void 0){const s=e.meta.progress;this.$Progress.parseMeta(s)}this.$Progress.start()}n()}),this.$router.afterEach((e,t)=>{e.meta.show_progress&&this.$Progress.finish()})},methods:{connect:function(){G.config().then(({data:e})=>{this.$store.commit(C_,e),this.$store.commit(Tl,e.hide_singles),document.title=e.library_name,this.open_ws(),this.$Progress.finish()}).catch(()=>{this.$store.dispatch("add_notification",{text:"Failed to connect to OwnTone server",type:"danger",topic:"connection"})})},open_ws:function(){if(this.$store.state.config.websocket_port<=0){this.$store.dispatch("add_notification",{text:"Missing websocket port",type:"danger"});return}const e=this;let t="ws://";window.location.protocol==="https:"&&(t="wss://");let n=t+window.location.hostname+":"+e.$store.state.config.websocket_port;const s=new AZ(n,"notify",{reconnectInterval:1e3,maxReconnectInterval:2e3});s.onopen=function(){e.reconnect_attempts=0,s.send(JSON.stringify({notify:["update","database","player","options","outputs","volume","queue","spotify","lastfm","pairing"]})),e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing()},s.onclose=function(){};var r=!1;function o(){r||(e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing(),r=!0,setTimeout(function(){r=!1},500))}window.addEventListener("focus",o),document.addEventListener("visibilitychange",function(){document.visibilityState==="visible"&&o()}),s.onmessage=function(i){const a=JSON.parse(i.data);(a.notify.includes("update")||a.notify.includes("database"))&&e.update_library_stats(),(a.notify.includes("player")||a.notify.includes("options")||a.notify.includes("volume"))&&e.update_player_status(),(a.notify.includes("outputs")||a.notify.includes("volume"))&&e.update_outputs(),a.notify.includes("queue")&&e.update_queue(),a.notify.includes("spotify")&&e.update_spotify(),a.notify.includes("lastfm")&&e.update_lastfm(),a.notify.includes("pairing")&&e.update_pairing()}},update_library_stats:function(){G.library_stats().then(({data:e})=>{this.$store.commit(A_,e)}),G.library_count("media_kind is audiobook").then(({data:e})=>{this.$store.commit(O_,e)}),G.library_count("media_kind is podcast").then(({data:e})=>{this.$store.commit(T_,e)}),G.library_count("scan_kind is rss").then(({data:e})=>{this.$store.commit(P_,e)})},update_outputs:function(){G.outputs().then(({data:e})=>{this.$store.commit(D_,e.outputs)})},update_player_status:function(){G.player_status().then(({data:e})=>{this.$store.commit(_d,e)})},update_queue:function(){G.queue().then(({data:e})=>{this.$store.commit(F_,e)})},update_settings:function(){G.settings().then(({data:e})=>{this.$store.commit($_,e)})},update_lastfm:function(){G.lastfm().then(({data:e})=>{this.$store.commit(I_,e)})},update_spotify:function(){G.spotify().then(({data:e})=>{this.$store.commit(M_,e),this.token_timer_id>0&&(window.clearTimeout(this.token_timer_id),this.token_timer_id=0),e.webapi_token_expires_in>0&&e.webapi_token&&(this.token_timer_id=window.setTimeout(this.update_spotify,1e3*e.webapi_token_expires_in))})},update_pairing:function(){G.pairing().then(({data:e})=>{this.$store.commit(R_,e),this.pairing_active=e.active})},update_is_clipped:function(){this.show_burger_menu||this.show_player_menu?document.querySelector("html").classList.add("is-clipped"):document.querySelector("html").classList.remove("is-clipped")}},template:"<App/>"},TZ={id:"app"};function PZ(e,t,n,s,r,o){const i=P("navbar-top"),a=P("vue-progress-bar"),l=P("router-view"),c=P("modal-dialog-remote-pairing"),d=P("modal-dialog-update"),h=P("notification-list"),f=P("navbar-bottom");return E(),D("div",TZ,[w(i),w(a,{class:"fd-progress-bar"}),w(l,null,{default:T(({Component:m})=>[(E(),Se(Np(m),{class:"fd-page"}))]),_:1}),w(c,{show:r.pairing_active,onClose:t[0]||(t[0]=m=>r.pairing_active=!1)},null,8,["show"]),w(d,{show:o.show_update_dialog,onClose:t[1]||(t[1]=m=>o.show_update_dialog=!1)},null,8,["show"]),wt(w(h,null,null,512),[[Qr,!o.show_burger_menu]]),w(f),wt(u("div",{class:"fd-overlay-fullscreen",onClick:t[2]||(t[2]=m=>o.show_burger_menu=o.show_player_menu=!1)},null,512),[[Qr,o.show_burger_menu||o.show_player_menu]])])}var DZ=ge(OZ,[["render",PZ]]);const Ty=m_(DZ).use(at).use(xv).use(kU,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"}).use(xU).use(RU,{log:!1}).use(LU).use(KH,{icons:Yq});Ty.config.globalProperties.$filters=Zq;Ty.mount("#app");
|