mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-28 08:05:56 -05:00
11 lines
106 KiB
JavaScript
11 lines
106 KiB
JavaScript
|
import{a0 as er,a1 as nr,J as rr,K as or,_ as on,e as ue,r as zt,o as At,c as Nt,d as it,k as ee,a as K,q as we,t as St,z as ar,w as le,h as qe,j as Gn,Z as Bn,T as Kn,a2 as ir,g as sr}from"./index.js";import{C as lr}from"./ContentWithHeading.js";import{M as ur}from"./ModalDialogQueueItem.js";import"./spotify-web-api.js";var Hn={exports:{}};/**!
|
||
|
* Sortable 1.14.0
|
||
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
* @author owenm <owen23355@gmail.com>
|
||
|
* @license MIT
|
||
|
*/function Dn(a,e){var r=Object.keys(a);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(a);e&&(l=l.filter(function(n){return Object.getOwnPropertyDescriptor(a,n).enumerable})),r.push.apply(r,l)}return r}function Yt(a){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Dn(Object(r),!0).forEach(function(l){fr(a,l,r[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(r)):Dn(Object(r)).forEach(function(l){Object.defineProperty(a,l,Object.getOwnPropertyDescriptor(r,l))})}return a}function Ye(a){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ye=function(e){return typeof e}:Ye=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(a)}function fr(a,e,r){return e in a?Object.defineProperty(a,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):a[e]=r,a}function Ut(){return Ut=Object.assign||function(a){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(a[l]=r[l])}return a},Ut.apply(this,arguments)}function cr(a,e){if(a==null)return{};var r={},l=Object.keys(a),n,s;for(s=0;s<l.length;s++)n=l[s],!(e.indexOf(n)>=0)&&(r[n]=a[n]);return r}function dr(a,e){if(a==null)return{};var r=cr(a,e),l,n;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(a);for(n=0;n<s.length;n++)l=s[n],!(e.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(a,l)&&(r[l]=a[l])}return r}function vr(a){return hr(a)||gr(a)||pr(a)||mr()}function hr(a){if(Array.isArray(a))return Sn(a)}function gr(a){if(typeof Symbol<"u"&&a[Symbol.iterator]!=null||a["@@iterator"]!=null)return Array.from(a)}function pr(a,e){if(a){if(typeof a=="string")return Sn(a,e);var r=Object.prototype.toString.call(a).slice(8,-1);if(r==="Object"&&a.constructor&&(r=a.constructor.name),r==="Map"||r==="Set")return Array.from(a);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Sn(a,e)}}function Sn(a,e){(e==null||e>a.length)&&(e=a.length);for(var r=0,l=new Array(e);r<e;r++)l[r]=a[r];return l}function mr(){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 yr="1.14.0";function Jt(a){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(a)}var Zt=Jt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),$e=Jt(/Edge/i),An=Jt(/firefox/i),Me=Jt(/safari/i)&&!Jt(/chrome/i)&&!Jt(/android/i),Wn=Jt(/iP(ad|od|hone)/i),Sr=Jt(/chrome/i)&&Jt(/android/i),Xn={capture:!1,passive:!1};function k(a,e,r){a.addEventListener(e,r,!Zt&&Xn)}function Z(a,e,r){a.removeEventListener(e,r,!Zt&&Xn)}function _e(a,e){if(e){if(e[0]===">"&&(e=e.substring(1)),a)try{if(a.matches)return a.matches(e);if(a.msMatchesSelector)return a.msMatchesSelector(e);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(e)}catch{return!1}return!1}}function br(a){return a.host&&a!==document&&a.host.nodeType?a.host:a.parentNode}function Ht(a,e,r,l){if(a){r=r||document;do{if(e!=null&&(e[0]===">"?a.parentNode===r&&_e(a,e):_e(a,e))||l&&a===r)return a;if(a===r)break}while(a=br(a))}return null}var Rn=/\s+/g;function ut(a,e,r){if(a&&e)if(a.classList)a.classList[r?"add":"remove"](e);else{var l=(" "+a.className+" ").replace(Rn," ").replace(" "+e+" "," ");a.className=(l+(r?" "+e:"")).replace(Rn," ")}}function L(a,e,r){var l=a&&a.style;if(l){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(a,""):a.currentStyle&&(r=a.currentStyle),e===void 0?r:r[e];!(e in l)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),l[e]=r+(typeof r=="string"?"":"px")}}function fe(a,e){var r="";if(typeof a=="string")r=a;else do{var l=L(a,"transform");l&&l!=="none"&&(r=l+" "+r)}while(!e&&(a=a.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(r)}function zn(a,e,r){if(a){var l=a.getElementsByTagName(e),n=0,s=l.length;if(r)for(;n<s;n++)r(l[n],n);return l}return[]}function Vt(){var a=document.scrollingElement;return a||document.documentElement}function st(a,e,r,l,n){if(!(!a.getBoundingClientRect&&a!==window)){var s,t,o,i,u,c,f;if(a!==window&&a.parentNode&&a!==Vt()?(s=a.getBoundingClientRect(),t=s.top,o=s.left,i=s.bottom,u=s.right,c=s.height,f=s.width):(t=0,o=0,i=window.innerHeight,u=window.innerWidth,c=window.innerHeight,f=window.innerWidth),(e||r)&&a!==window&&(n=n||a.parentNode,!Zt))do if(n&&n.getBoundingClientRect&&(L(n,"transform")!=="none"||r&&L(n,"position")!=="static")){var d=n.getBoundingClientRect();t-=d.top+parseInt(L(n,"border-top-width")),o-=d.left+parseInt(L(n,"border-left-width")),i=t+s.height,u=o+s.width;break}while(n=n.parentNode);if(l&&a!==window){var v=fe(n||a),h=v&&v.a,g=v&&v.d;v&&(t/=g,o/=h,f/=h,c/=g,i=t+c,u=o+f)}return{top:t,left:o,bottom:i,right:u,width:f,height:c}}}function wn(a,e,r){for(var l=ne(a,!0),n=st(a)[e];l;){var s=st(l)[r],t=void 0;if(r==="top"||r==="left"?t=n>=s:t=n<=s,!t)return l;if(l===Vt())break;l=ne(l,!1)}return!1}function me(a,e,r,l){for(var n=0,s=0,t=a.children;s<t.length;){if(t[s].style.display!=="none"&&t[s]!==H.ghost&&(l||t[s]!==H.dragged)&&Ht(t[s],r.draggable,a,!1)){if(n===e)return t[s];n++}s++}return null}function Tn(a,e){for(var r=a.lastElementChild;r&&(r===H.ghost||L(r,"display")==="none"||e&&!_e(r,e));)r=r.previousElementSibling;return r||null}function ht(a,e){var r=0;if(!a||!a.parentNode)return-1;for(;a=a.previousElementSibling;)a.nodeName.toUpperCase()!=="TEMPLATE"&&a!==H.clone&&(!e||_e(a,e))&&r++;return r}function Mn(a){var e=0,r=0,l=Vt();if(a)do{var n=fe(a),s=n.a,t=n.d;e+=a.scrollLeft*s,r+=a.scrollTop*t}while(a!==l&&(a=a.parentNode));return[e,r]}function xr(a,e){for(var r in a)if(a.hasOwnProperty(r)){for(var l in e)if(e.hasOwnProperty(l)&&e[l]===a[r][l])return Number(r)}return-1}function ne(a,e){if(!a||!a.getBoundingClientRect)return Vt();var r=a,l=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var n=L(r);if(r.clientWidth<r.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return Vt();if(l||e)return r;l=!0}}while(r=r.parentNod
|
||
|
`)&&(T="(?: "+T+")",N=" "+N,w++),E=new RegExp("^(?:"+T+")",$)),h&&(E=new RegExp("^"+T+"$(?!\\s)",$)),d&&(I=b.lastIndex),C=u.call(F?E:b,N),F?C?(C.input=C.input.slice(w),C[0]=C[0].slice(w),C.index=b.lastIndex,b.lastIndex+=C[0].length):b.lastIndex=0:d&&C&&(b.lastIndex=b.global?C.index+C[0].length:I),h&&C&&C.length>1&&c.call(C[0],E,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(C[O]=void 0)}),C}),n.exports=f},"94ca":function(n,s,t){var o=t("d039"),i=/#|\.prototype\./,u=function(h,g){var p=f[c(h)];return p==v?!0:p==d?!1:typeof g=="function"?o(g):!!g},c=u.normalize=function(h){return String(h).replace(i,".").toLowerCase()},f=u.data={},d=u.NATIVE="N",v=u.POLYFILL="P";n.exports=u},"99af":function(n,s,t){var o=t("23e7"),i=t("d039"),u=t("e8b5"),c=t("861d"),f=t("7b0b"),d=t("50c4"),v=t("8418"),h=t("65f0"),g=t("1dde"),p=t("b622"),S=t("2d00"),b=p("isConcatSpreadable"),I=9007199254740991,E="Maximum allowed index exceeded",C=S>=51||!i(function(){var T=[];return T[b]=!1,T.concat()[0]!==T}),O=g("concat"),F=function(T){if(!c(T))return!1;var w=T[b];return w!==void 0?!!w:u(T)},$=!C||!O;o({target:"Array",proto:!0,forced:$},{concat:function(w){var N=f(this),V=h(N,0),D=0,R,z,M,G,tt;for(R=-1,M=arguments.length;R<M;R++)if(tt=R===-1?N:arguments[R],F(tt)){if(G=d(tt.length),D+G>I)throw TypeError(E);for(z=0;z<G;z++,D++)z in tt&&v(V,D,tt[z])}else{if(D>=I)throw TypeError(E);v(V,D++,tt)}return V.length=D,V}})},"9bdd":function(n,s,t){var o=t("825a");n.exports=function(i,u,c,f){try{return f?u(o(c)[0],c[1]):u(c)}catch(v){var d=i.return;throw d!==void 0&&o(d.call(i)),v}}},"9bf2":function(n,s,t){var o=t("83ab"),i=t("0cfb"),u=t("825a"),c=t("c04e"),f=Object.defineProperty;s.f=o?f:function(v,h,g){if(u(v),h=c(h,!0),u(g),i)try{return f(v,h,g)}catch{}if("get"in g||"set"in g)throw TypeError("Accessors not supported");return"value"in g&&(v[h]=g.value),v}},"9ed3":function(n,s,t){var o=t("ae93").IteratorPrototype,i=t("7c73"),u=t("5c6c"),c=t("d44e"),f=t("3f8c"),d=function(){return this};n.exports=function(v,h,g){var p=h+" Iterator";return v.prototype=i(o,{next:u(1,g)}),c(v,p,!1,!0),f[p]=d,v}},"9f7f":function(n,s,t){var o=t("d039");function i(u,c){return RegExp(u,c)}s.UNSUPPORTED_Y=o(function(){var u=i("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),s.BROKEN_CARET=o(function(){var u=i("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(n,s,t){var o=t("e8b5"),i=t("50c4"),u=t("0366"),c=function(f,d,v,h,g,p,S,b){for(var I=g,E=0,C=S?u(S,b,3):!1,O;E<h;){if(E in v){if(O=C?C(v[E],E,d):v[E],p>0&&o(O))I=c(f,d,O,i(O.length),I,p-1)-1;else{if(I>=9007199254740991)throw TypeError("Exceed the acceptable array length");f[I]=O}I++}E++}return I};n.exports=c},a352:function(n,s){n.exports=l},a434:function(n,s,t){var o=t("23e7"),i=t("23cb"),u=t("a691"),c=t("50c4"),f=t("7b0b"),d=t("65f0"),v=t("8418"),h=t("1dde"),g=t("ae40"),p=h("splice"),S=g("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,I=Math.min,E=9007199254740991,C="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!p||!S},{splice:function(F,$){var T=f(this),w=c(T.length),N=i(F,w),V=arguments.length,D,R,z,M,G,tt;if(V===0?D=R=0:V===1?(D=0,R=w-N):(D=V-2,R=I(b(u($),0),w-N)),w+D-R>E)throw TypeError(C);for(z=d(T,R),M=0;M<R;M++)G=N+M,G in T&&v(z,M,T[G]);if(z.length=R,D<R){for(M=N;M<w-R;M++)G=M+R,tt=M+D,G in T?T[tt]=T[G]:delete T[tt];for(M=w;M>w-R+D;M--)delete T[M-1]}else if(D>R)for(M=w-R;M>N;M--)G=M+R-1,tt=M+D-1,G in T?T[tt]=T[G]:delete T[tt];for(M=0;M<D;M++)T[M+N]=arguments[M+2];return T.length=w-R+D,z}})},a4d3:function(n,s,t){var o=t("23e7"),i=t("da84"),u=t("d066"),c=t("c430"),f=t("83ab"),d=t("4930"),v=t("fdbf"),h=t("d039"),g=t("5135"),p=t("e8b5"),S=t("861d"),b=t("825a"),I=t("7b0b"),E=t("fc6a"),C=t("c04e"),O=t("5c6c"),F=t("7c73"),$=t("df75"),T=t("241c"),w=t("057f"),N=t("7418"),V=t("06cf"),D=t("9bf2"),R=t("d1e7"),z=t("9112"),M=t("6eeb"),G=t("5692"),tt=t("f772"),rt=t("d012"),xt=t("90e3"),ft=t("b622"),ct=t("e538"),yt=t("746f"),bt=t("d44e"),pt=t("69f3"),ot=t("b727").forEach,lt=tt("hidden"),jt="Symbol",Pt="prototype",Qt=ft("toPrimitive"),re=pt.set,kt=pt.getterFor(jt),Et=Object[Pt],Ot=i.Sym
|
||
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(y,m){return v(y)||h(y,m)||p(y,m)||S()}function I(y){if(Array.isArray(y))return g(y)}function E(y){if(typeof Symbol<"u"&&Symbol.iterator in Object(y))return Array.from(y)}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 O(y){return I(y)||E(y)||p(y)||C()}var F=t("a352"),$=t.n(F);function T(y){y.parentElement!==null&&y.parentElement.removeChild(y)}function w(y,m,x){var P=x===0?y.children[0]:y.children[x-1].nextSibling;y.insertBefore(m,P)}var N=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function V(y){var m=Object.create(null);return function(P){var j=m[P];return j||(m[P]=y(P))}}var D=/-(\w)/g,R=V(function(y){return y.replace(D,function(m,x){return x.toUpperCase()})});t("5db7"),t("73d9");var z=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],G=["Move"],tt=[G,z,M].flatMap(function(y){return y}).map(function(y){return"on".concat(y)}),rt={manage:G,manageAndEmit:z,emit:M};function xt(y){return tt.indexOf(y)!==-1}t("caad"),t("2ca0");var ft=["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 ct(y){return ft.includes(y)}function yt(y){return["transition-group","TransitionGroup"].includes(y)}function bt(y){return["id","class","role","style"].includes(y)||y.startsWith("data-")||y.startsWith("aria-")||y.startsWith("on")}function pt(y){return y.reduce(function(m,x){var P=b(x,2),j=P[0],W=P[1];return m[j]=W,m},{})}function ot(y){var m=y.$attrs,x=y.componentData,P=x===void 0?{}:x,j=pt(Object.entries(m).filter(function(W){var J=b(W,2),et=J[0];return J[1],bt(et)}));return d(d({},j),P)}function lt(y){var m=y.$attrs,x=y.callBackBuilder,P=pt(jt(m));Object.entries(x).forEach(function(W){var J=b(W,2),et=J[0],gt=J[1];rt[et].forEach(function(X){P["on".concat(X)]=gt(X)})});var j="[data-draggable]".concat(P.draggable||"");return d(d({},P),{},{draggable:j})}function jt(y){return Object.entries(y).filter(function(m){var x=b(m,2),P=x[0];return x[1],!bt(P)}).map(function(m){var x=b(m,2),P=x[0],j=x[1];return[R(P),j]}).filter(function(m){var x=b(m,2),P=x[0];return x[1],!xt(P)})}t("c740");function Pt(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function Qt(y,m){for(var x=0;x<m.length;x++){var P=m[x];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(y,P.key,P)}}function re(y,m,x){return m&&Qt(y.prototype,m),x&&Qt(y,x),y}var kt=function(m){var x=m.el;return x},Et=function(m,x){return m.__draggable_context=x},Ot=function(m){return m.__draggable_context},oe=function(){function y(m){var x=m.nodes,P=x.header,j=x.default,W=x.footer,J=m.root,et=m.realList;Pt(this,y),this.defaultNodes=j,this.children=[].concat(O(P),O(j),O(W)),this.externalComponent=J.externalComponent,this.rootTransition=J.transition,this.tag=J.tag,this.realList=et}return re(y,[{key:"render",value:function(x,P){var j=this.tag,W=this.children,J=this._isRootComponent,et=J?{default:function(){return W}}:W;return x(j,P,et)}},{key:"updated",value:function(){var x=this.defaultNodes,P=this.realList;x.forEach(function(j,W){Et(kt(j),{element:P[W],index:W})})}},{key:"getUnderlyingVm",value:function(x){return Ot(x)}},{key:"getVmIndexFromDomIndex",value:function(x,P){var j=this.defaultNodes,W=j.length,J=P.children,et=J.item(x);if(et===null)return W;var gt=Ot(et);if(gt)return gt.index;if(W===0)return 0;var X=kt(j[0]),U=O(J).findIndex(function(B){return B===X});return x<U?0:W}},{key:"_isRootComponent",get:
|