RoadSign/test/data/warden/dist/client/_astro/Media.7FWSwaPB.js

180 lines
210 KiB
JavaScript
Raw Normal View History

2024-02-12 16:01:39 +00:00
import{r as Z}from"./index.LFf77hJu.js";var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var ye={exports:{}},de={};/**
* @license React
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Le=Z,Ce=Symbol.for("react.element"),Be=Symbol.for("react.fragment"),Fe=Object.prototype.hasOwnProperty,He=Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ae={key:!0,ref:!0,__self:!0,__source:!0};function be(F,A,o){var h,s={},e=null,t=null;o!==void 0&&(e=""+o),A.key!==void 0&&(e=""+A.key),A.ref!==void 0&&(t=A.ref);for(h in A)Fe.call(A,h)&&!Ae.hasOwnProperty(h)&&(s[h]=A[h]);if(F&&F.defaultProps)for(h in A=F.defaultProps,A)s[h]===void 0&&(s[h]=A[h]);return{$$typeof:Ce,type:F,key:e,ref:t,props:s,_owner:He.current}}de.Fragment=Be;de.jsx=be;de.jsxs=be;ye.exports=de;var z=ye.exports,we={exports:{}};(function(F,A){(function(o,h){F.exports=h()})(window,function(){return function(o){var h={};function s(e){if(h[e])return h[e].exports;var t=h[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}return s.m=o,s.c=h,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},s.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s(s.s=41)}([function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=/mobile/i.test(window.navigator.userAgent),t={secondToTime:function(r){var n=Math.floor(r/3600),i=Math.floor((r-3600*n)/60),u=Math.floor(r-3600*n-60*i);return(n>0?[n,i,u]:[i,u]).map(function(a){return a<10?"0"+a:""+a}).join(":")},getElementViewLeft:function(r){var n=r.offsetLeft,i=r.offsetParent,u=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;i!==null&&i!==r;)n+=i.offsetLeft,i=i.offsetParent;else for(;i!==null;)n+=i.offsetLeft,i=i.offsetParent;return n-u},getElementViewTop:function(r,n){for(var i,u=r.offsetTop,a=r.offsetParent;a!==null;)u+=a.offsetTop,a=a.offsetParent;return i=document.body.scrollTop+document.documentElement.scrollTop,n?u:u-i},isMobile:e,storage:{set:function(r,n){localStorage.setItem(r,n)},get:function(r){return localStorage.getItem(r)}},nameMap:{dragStart:e?"touchstart":"mousedown",dragMove:e?"touchmove":"mousemove",dragEnd:e?"touchend":"mouseup"},randomOrder:function(r){return function(n){for(var i=n.length-1;i>=0;i--){var u=Math.floor(Math.random()*(i+1)),a=n[u];n[u]=n[i],n[i]=a}return n}([].concat(function(n){if(Array.isArray(n)){for(var i=0,u=Array(n.length);i<n.length;i++)u[i]=n[i];return u}return Array.from(n)}(Array(r))).map(function(n,i){return i}))}};h.default=t},function(o,h,s){var e=s(2);o.exports=function(t){t=t||{};var r="",n=e.$each,i=t.audio,u=(t.$value,t.$index,e.$escape),a=t.theme,l=t.index;return n(i,function(c,p){r+=`
<li>
<span class="aplayer-list-cur" style="background-color: `,r+=u(c.theme||a),r+=`;"></span>
<span class="aplayer-list-index">`,r+=u(p+l),r+=`</span>
<span class="aplayer-list-title">`,r+=u(c.name),r+=`</span>
<span class="aplayer-list-author">`,r+=u(c.artist),r+=`</span>
</li>
`}),r}},function(o,h,s){o.exports=s(15)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=b(s(33)),t=b(s(32)),r=b(s(31)),n=b(s(30)),i=b(s(29)),u=b(s(28)),a=b(s(27)),l=b(s(26)),c=b(s(25)),p=b(s(24)),d=b(s(23)),y=b(s(22)),m=b(s(21)),w=b(s(20)),x=b(s(19));function b(f){return f&&f.__esModule?f:{default:f}}var g={play:e.default,pause:t.default,volumeUp:r.default,volumeDown:n.default,volumeOff:i.default,orderRandom:u.default,orderList:a.default,menu:l.default,loopAll:c.default,loopOne:p.default,loopNone:d.default,loading:y.default,right:m.default,skip:w.default,lrc:x.default};h.default=g},function(o,h,s){var e,t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":t(window))==="object"&&(e=window)}o.exports=e},function(o,h,s){var e,t,r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};(t=typeof(e=function(){if((typeof window>"u"?"undefined":r(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var n=function(a,l,c,p){return c>p?l:a+(l-a)*((d=c/p)<.5?4*d*d*d:(d-1)*(2*d-2)*(2*d-2)+1);var d},i=function(a,l,c,p){l=l||500;var d=(p=p||window).scrollTop||window.pageYOffset;if(typeof a=="number")var y=parseInt(a);else var y=function(x,b){return x.nodeName==="HTML"?-b:x.getBoundingClientRect().top+b}(a,d);var m=Date.now(),w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(x){window.setTimeout(x,15)};(function x(){var b=Date.now()-m;p!==window?p.scrollTop=n(d,y,b,l):window.scroll(0,n(d,y,b,l)),b>l?typeof c=="function"&&c(a):w(x)})()},u=function(a){if(!a.defaultPrevented){a.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var l=document.getElementById(this.hash.substring(1));if(!l)return;i(l,500,function(c){location.replace("#"+c.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var a,l=document.querySelectorAll('a[href^="#"]:not([href="#"])'),c=l.length;a=l[--c];)a.addEventListener("click",u,!1)}),i}})=="function"?e.call(h,s,h,o):e)===void 0||(o.exports=t)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function a(l,c){for(var p=0;p<c.length;p++){var d=c[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}return function(l,c,p){return c&&a(l.prototype,c),p&&a(l,p),l}}(),t=i(s(1)),r=i(s(0)),n=i(s(5));function i(a){return a&&a.__esModule?a:{default:a}}var u=function(){function a(l){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,a),this.player=l,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return e(a,[{key:"bindEvents",value:function(){var l=this;this.player.template.list.addEventListener("click",function(c){var p=void 0;p=c.target.tagName.toUpperCase()==="LI"?c.target:c.target.parentElement;var d=parseInt(p.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;d!==l.index?(l.switch(d),l.player.play()):l.player.toggle()})}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(l){this.player.events.trigger("listadd",{audios:l}),Object.prototype.toString.call(l)!=="[object Array]"&&(l=[l]),l.map(function(d){return d.name=d.name||d.title||"Au
<p`,l===0&&(r+=' class="aplayer-lrc-current"'),r+=">",r+=u(a[1]),r+=`</p>
`}),r}},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e,t=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),r=s(10),n=(e=r)&&e.__esModule?e:{default:e},i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.container=a.container,this.async=a.async,this.player=a.player,this.parsed=[],this.index=0,this.current=[]}return t(u,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||a<this.current[this.index][0]||!this.current[this.index+1]||a>=this.current[this.index+1][0])for(var l=0;l<this.current.length;l++)a>=this.current[l][0]&&(!this.current[l+1]||a<this.current[l+1][0])&&(this.index=l,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[l].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(a){var l=this;if(!this.parsed[a])if(this.async){this.parsed[a]=[["00:00","Loading"]];var c=new XMLHttpRequest;c.onreadystatechange=function(){a===l.player.list.index&&c.readyState===4&&(c.status>=200&&c.status<300||c.status===304?l.parsed[a]=l.parse(c.responseText):(l.player.notice("LRC file request fails: status "+c.status),l.parsed[a]=[["00:00","Not available"]]),l.container.innerHTML=(0,n.default)({lyrics:l.parsed[a]}),l.update(0),l.current=l.parsed[a])};var p=this.player.list.audios[a].lrc;c.open("get",p,!0),c.send(null)}else this.player.list.audios[a].lrc?this.parsed[a]=this.parse(this.player.list.audios[a].lrc):this.parsed[a]=[["00:00","Not available"]];this.container.innerHTML=(0,n.default)({lyrics:this.parsed[a]}),this.update(0),this.current=this.parsed[a]}},{key:"parse",value:function(a){if(a){for(var l=(a=a.replace(/([^\]^\n])\[/g,function(f,v){return v+`
[`})).split(`
`),c=[],p=l.length,d=0;d<p;d++){var y=l[d].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),m=l[d].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(y)for(var w=y.length,x=0;x<w;x++){var b=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(y[x]),g=60*b[1]+parseInt(b[2])+(b[4]?parseInt(b[4])/((b[4]+"").length===2?100:1e3):0);c.push([g,m])}}return(c=c.filter(function(f){return f[1]})).sort(function(f,v){return f[0]-v[0]}),c}return[]}},{key:"remove",value:function(a){this.parsed.splice(a,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),u}();h.default=i},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e,t=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),r=s(0),n=(e=r)&&e.__esModule?e:{default:e},i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.storageName=a.options.storageName,this.data=JSON.parse(n.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||a.options.volume}return t(u,[{key:"get",value:function(a){return this.data[a]}},{key:"set",value:function(a,l){this.data[a]=l,n.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),u}();h.default=i},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function r(n,i){for(var u=0;u<i.length;u++){var a=i[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return function(n,i,u){return i&&r(n.prototype,i),u&&r(n,u),n}}(),t=function(){function r(n){(function(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")})(this,r),this.elements={},this.elements.volume=n.volume,this.elements.played=n.played,this.elements.loaded=n.loaded}return e(r,[{key:"set",value:function(n,i,u){i=Math.max(i,0),i=Math.min(i,1),this.elements[n].style[u]=100*i+"%"}},{key:"get",value:function(n,i){return parseFloat(this.elements[n].style[i])/100}}]),r}();h.default=t},function(o,h,s){(function(e){o.exports=!1;try{o.exports=Object.prototype.toString.call(e.process)==="[object process]"}catch{}}).call(this,s(4))},function(o,h,s){(function(e){var t=s(14),r=Object.create(t?e:window),n=/["&'<>]/;r.$escape=function(i){return function(u){var a=""+u,l=n.exec(a);if(!l)return u;var c="",p=void 0,d=void 0,y=void 0;for(p=l.index,d=0;p<a.length;p++){switch(a.charCodeAt(p)){case 34:y="&#34;";break;case 38:y="&#38;";break;case 39:y="&#39;";break;case 60:y="&#60;";break;case 62:y="&#62;";break;default:continue}d!==p&&(c+=a.substring(d,p)),d=p+1,c+=y}return d!==p?c+a.substring(d,p):c}(function u(a){return typeof a!="string"&&(a=a==null?"":typeof a=="function"?u(a.call(a)):JSON.stringify(a)),a}(i))},r.$each=function(i,u){if(Array.isArray(i))for(var a=0,l=i.length;a<l;a++)u(i[a],a);else for(var c in i)u(i[c],c)},o.exports=r}).call(this,s(4))},function(o,h,s){var e=s(2);o.exports=function(t){var r="",n=(t=t||{}).options,i=t.cover,u=e.$escape,a=t.icons,l=function(p){return r+=p},c=t.getObject;return t.theme,t.audio,t.index,n.fixed?(r+=`
<div class="aplayer-list`,n.listFolded&&(r+=" aplayer-list-hide"),r+='"',n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
<ol`,n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
`,l(s(1)(c({theme:n.theme,audio:n.audio,index:1}))),r+=`
</ol>
</div>
<div class="aplayer-body">
<div class="aplayer-pic" style="`,i&&(r+="background-image: url(&quot;",r+=u(i),r+="&quot;);"),r+="background-color: ",r+=u(n.theme),r+=`;">
<div class="aplayer-button aplayer-play">`,r+=a.play,r+=`</div>
</div>
<div class="aplayer-info" style="display: none;">
<div class="aplayer-music">
<span class="aplayer-title">No audio</span>
<span class="aplayer-author"></span>
</div>
<div class="aplayer-controller">
<div class="aplayer-bar-wrap">
<div class="aplayer-bar">
<div class="aplayer-loaded" style="width: 0"></div>
<div class="aplayer-played" style="width: 0; background: `,r+=u(n.theme),r+=`;">
<span class="aplayer-thumb" style="background: `,r+=u(n.theme),r+=`;">
<span class="aplayer-loading-icon">`,r+=a.loading,r+=`</span>
</span>
</div>
</div>
</div>
<div class="aplayer-time">
<span class="aplayer-time-inner">
<span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
</span>
<span class="aplayer-icon aplayer-icon-back">
`,r+=a.skip,r+=`
</span>
<span class="aplayer-icon aplayer-icon-play">
`,r+=a.play,r+=`
</span>
<span class="aplayer-icon aplayer-icon-forward">
`,r+=a.skip,r+=`
</span>
<div class="aplayer-volume-wrap">
<button type="button" class="aplayer-icon aplayer-icon-volume-down">
`,r+=a.volumeDown,r+=`
</button>
<div class="aplayer-volume-bar-wrap">
<div class="aplayer-volume-bar">
<div class="aplayer-volume" style="height: 80%; background: `,r+=u(n.theme),r+=`;"></div>
</div>
</div>
</div>
<button type="button" class="aplayer-icon aplayer-icon-order">
`,n.order==="list"?r+=a.orderList:n.order==="random"&&(r+=a.orderRandom),r+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-loop">
`,n.loop==="one"?r+=a.loopOne:n.loop==="all"?r+=a.loopAll:n.loop==="none"&&(r+=a.loopNone),r+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-menu">
`,r+=a.menu,r+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-lrc">
`,r+=a.lrc,r+=`
</button>
</div>
</div>
</div>
<div class="aplayer-notice"></div>
<div class="aplayer-miniswitcher"><button class="aplayer-icon">`,r+=a.right,r+=`</button></div>
</div>
<div class="aplayer-lrc">
<div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>
</div>
`):(r+=`
<div class="aplayer-body">
<div class="aplayer-pic" style="`,i&&(r+="background-image: url(&quot;",r+=u(i),r+="&quot;);"),r+="background-color: ",r+=u(n.theme),r+=`;">
<div class="aplayer-button aplayer-play">`,r+=a.play,r+=`</div>
</div>
<div class="aplayer-info">
<div class="aplayer-music">
<span class="aplayer-title">No audio</span>
<span class="aplayer-author"></span>
</div>
<div class="aplayer-lrc">
<div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>
</div>
<div class="aplayer-controller">
<div class="aplayer-bar-wrap">
<div class="aplayer-bar">
<div class="aplayer-loaded" style="width: 0"></div>
<div class="aplayer-played" style="width: 0; background: `,r+=u(n.theme),r+=`;">
<span class="aplayer-thumb" style="background: `,r+=u(n.theme),r+=`;">
<span class="aplayer-loading-icon">`,r+=a.loading,r+=`</span>
</span>
</div>
</div>
</div>
<div class="aplayer-time">
<span class="aplayer-time-inner">
<span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
</span>
<span class="aplayer-icon aplayer-icon-back">
`,r+=a.skip,r+=`
</span>
<span class="aplayer-icon aplayer-icon-play">
`,r+=a.play,r+=`
</span>
<span class="aplayer-icon aplayer-icon-forward">
`,r+=a.skip,r+=`
</span>
<div class="aplayer-volume-wrap">
<button type="button" class="aplayer-icon aplayer-icon-volume-down">
`,r+=a.volumeDown,r+=`
</button>
<div class="aplayer-volume-bar-wrap">
<div class="aplayer-volume-bar">
<div class="aplayer-volume" style="height: 80%; background: `,r+=u(n.theme),r+=`;"></div>
</div>
</div>
</div>
<button type="button" class="aplayer-icon aplayer-icon-order">
`,n.order==="list"?r+=a.orderList:n.order==="random"&&(r+=a.orderRandom),r+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-loop">
`,n.loop==="one"?r+=a.loopOne:n.loop==="all"?r+=a.loopAll:n.loop==="none"&&(r+=a.loopNone),r+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-menu">
`,r+=a.menu,r+=`
</button>
<button type="button" class="aplayer-icon aplayer-icon-lrc">
`,r+=a.lrc,r+=`
</button>
</div>
</div>
</div>
<div class="aplayer-notice"></div>
<div class="aplayer-miniswitcher"><button class="aplayer-icon">`,r+=a.right,r+=`</button></div>
</div>
<div class="aplayer-list`,n.listFolded&&(r+=" aplayer-list-hide"),r+='"',n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
<ol`,n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
`,l(s(1)(c({theme:n.theme,audio:n.audio,index:1}))),r+=`
</ol>
</div>
`),r}},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),t=n(s(3)),r=n(s(16));function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.container=a.container,this.options=a.options,this.randomOrder=a.randomOrder,this.init()}return e(u,[{key:"init",value:function(){var a="";this.options.audio.length&&(a=this.options.order==="random"?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:t.default,cover:a,getObject:function(l){return l}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),u}();h.default=i},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r]);return Object.prototype.toString.call(e.audio)!=="[object Array]"&&(e.audio=[e.audio]),e.audio.map(function(n){return n.name=n.name||n.title||"Audio name",n.artist=n.artist||n.author||"Audio artist",n.cover=n.cover||n.pic,n.type=n.type||"normal",n}),e.audio.length<=1&&e.loop==="one"&&(e.loop="all"),e}},function(o,h){o.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0
%c APlayer v1.10.1 af84efb %c http://aplayer.js.org
`,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),h.default=r.default}]).default})})(we);var _e=we.exports;const Re=ve(_e);function ge(F){throw new Error('Could not dynamically require "'+F+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pe={exports:{}};/*!
* artplayer.js v5.1.1
* Github: https://github.com/zhw2590582/ArtPlayer
* (c) 2017-2024 Harvey Zack
* Released under the MIT License.
*/pe.exports;(function(F,A){(function(o,h,s,e,t){var r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof me<"u"?me:{},n=typeof r[e]=="function"&&r[e],i=n.cache||{},u=typeof ge=="function"&&ge.bind(F);function a(p,d){if(!i[p]){if(!o[p]){var y=typeof r[e]=="function"&&r[e];if(!d&&y)return y(p,!0);if(n)return n(p,!0);if(u&&typeof p=="string")return u(p);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}x.resolve=function(b){var g=o[p][1][b];return g??b},x.cache={};var w=i[p]=new a.Module(p);o[p][0].call(w.exports,x,w,w.exports,this)}return i[p].exports;function x(b){var g=x.resolve(b);return g===!1?{}:a(g)}}a.isParcelRequire=!0,a.Module=function(p){this.id=p,this.bundle=a,this.exports={}},a.modules=o,a.cache=i,a.parent=n,a.register=function(p,d){o[p]=[function(y,m){m.exports=d},{}]},Object.defineProperty(a,"root",{get:function(){return r[e]}}),r[e]=a;for(var l=0;l<h.length;l++)a(h[l]);if(s){var c=a(s);F.exports=c}})({abjMI:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("bundle-text:./style/index.less"),r=e.interopDefault(t),n=o("option-validator"),i=e.interopDefault(n),u=o("./utils/emitter"),a=e.interopDefault(u),l=o("./utils"),c=o("./scheme"),p=e.interopDefault(c),d=o("./config"),y=e.interopDefault(d),m=o("./template"),w=e.interopDefault(m),x=o("./i18n"),b=e.interopDefault(x),g=o("./player"),f=e.interopDefault(g),v=o("./control"),k=e.interopDefault(v),T=o("./contextmenu"),j=e.interopDefault(T),M=o("./info"),S=e.interopDefault(M),$=o("./subtitle"),B=e.interopDefault($),I=o("./events"),C=e.interopDefault(I),E=o("./hotkey"),H=e.interopDefault(E),_=o("./layer"),R=e.interopDefault(_),D=o("./loading"),Y=e.interopDefault(D),K=o("./notice"),G=e.interopDefault(K),X=o("./mask"),J=e.interopDefault(X),Q=o("./icons"),ee=e.interopDefault(Q),te=o("./setting"),re=e.interopDefault(te),ae=o("./storage"),ne=e.interopDefault(ae),oe=o("./plugins"),ie=e.interopDefault(oe);let se=0;const N=[];class O extends a.default{constructor(P,W){super(),this.id=++se;const U=l.mergeDeep(O.option,P);if(U.container=P.container,this.option=(0,i.default)(U,p.default),this.isLock=!1,this.isReady=!1,this.isFocus=!1,this.isInput=!1,this.isRotate=!1,this.isDestroy=!1,this.template=new w.default(this),this.events=new C.default(this),this.storage=new ne.default(this),this.icons=new ee.default(this),this.i18n=new b.default(this),this.notice=new G.default(this),this.player=new f.default(this),this.layers=new R.default(this),this.controls=new k.default(this),this.contextmenu=new j.default(this),this.subtitle=new B.default(this),this.info=new S.default(this),this.loading=new Y.default(this),this.hotkey=new H.default(this),this.mask=new J.default(this),this.setting=new re.default(this),this.plugins=new ie.default(this),typeof W=="function"&&this.on("ready",()=>W.call(this,this)),O.DEBUG){const V=q=>console.log(`[ART.${this.id}] -> ${q}`);V("Version@"+O.version),V("Env@"+O.env),V("Build@"+O.build);for(let q=0;q<y.default.events.length;q++)this.on("video:"+y.default.events[q],le=>V("Event@"+le.type))}N.push(this)}static get instances(){return N}static get version(){return"5.1.1"}static get env(){return"production"}static get build(){return"2024-01-11 10:39:44"}static get config(){return y.default}static get utils(){return l}static get scheme(){return p.default}static get Emitter(){return a.default}static get validator(){return i.default}static get kindOf(){return i.default.kindOf}static get html(){return w.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number
\r
`.concat((u=i,u.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(a,l,c)=>{let p=c.slice(0,3);return c.length===1&&(p=c+"00"),c.length===2&&(p=c+"0"),`${l},${p}`})).replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat(`\r
\r
`));var u}function r(i){return URL.createObjectURL(new Blob([i],{type:"text/vtt"}))}function n(i){const u=new RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function a(l=""){return l.split(/[:.]/).map((c,p,d)=>{if(p===d.length-1){if(c.length===1)return`.${c}00`;if(c.length===2)return`.${c}0`}else if(c.length===1)return(p===0?"0":":0")+c;return p===0?c:p===d.length-1?`.${c}`:`:${c}`}).join("")}return`WEBVTT
${i.split(/\r?\n/).map(l=>{const c=l.match(u);return c?{start:a(c[1].trim()),end:a(c[2].trim()),text:c[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,`
`).trim().split(/\r?\n/).map(p=>p.trim()).join(`
`)}:null}).filter(l=>l).map((l,c)=>l?`${c+1}
${l.start} --> ${l.end}
${l.text}`:"").filter(l=>l.trim()).join(`
`)}`}e.defineInteropFlag(s),e.export(s,"srtToVtt",()=>t),e.export(s,"vttToBlob",()=>r),e.export(s,"assToVtt",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1VRQn":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(n){return n.includes("?")?t(n.split("?")[0]):n.includes("#")?t(n.split("#")[0]):n.trim().toLowerCase().split(".").pop()}function r(n,i){const u=document.createElement("a");u.style.display="none",u.href=n,u.download=i,document.body.appendChild(u),u.click(),document.body.removeChild(u)}e.defineInteropFlag(s),e.export(s,"getExt",()=>t),e.export(s,"download",()=>r)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3weX2":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"def",()=>t),e.export(s,"has",()=>n),e.export(s,"get",()=>i),e.export(s,"mergeDeep",()=>u);const t=Object.defineProperty,{hasOwnProperty:r}=Object.prototype;function n(a,l){return r.call(a,l)}function i(a,l){return Object.getOwnPropertyDescriptor(a,l)}function u(...a){const l=c=>c&&typeof c=="object"&&!Array.isArray(c);return a.reduce((c,p)=>(Object.keys(p).forEach(d=>{const y=c[d],m=p[d];Array.isArray(y)&&Array.isArray(m)?c[d]=y.concat(...m):l(y)&&l(m)?c[d]=u(y,m):c[d]=m}),c),{})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7kBIx":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(i=0){return new Promise(u=>setTimeout(u,i))}function r(i,u){let a;return function(...l){clearTimeout(a),a=setTimeout(()=>(a=null,i.apply(this,l)),u)}}function n(i,u){let a=!1;return function(...l){a||(i.apply(this,l),a=!0,setTimeout(function(){a=!1},u))}}e.defineInteropFlag(s),e.export(s,"sleep",()=>t),e.export(s,"debounce",()=>r),e.export(s,"throttle",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"13atT":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(l,c,p){return Math.max(Math.min(l,Math.max(c,p)),Math.min(c,p))}function r(l){return l.charAt(0).toUpperCase()+l.slice(1)}function n(l){return["string","number"].includes(typeof l)}function i(l){if(!l)return"00:00";const c=Math.floor(l/3600),p=Math.floor((l-3600*c)/60),d=Math.floor(l-3600*c-60*p);return(c>0?[c,p,d]:[p,d]).map(y=>y<10?`0${y}`:String(y)).join(":")}function u(l){return l.replace(/[&<>'"]/g,c=>({"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"})[c]||c)}function a(l){const c={"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&quot;":'"'},p=new RegExp(`(${Object.keys(c).join("|")})`,"g");return l.replace(p,d=>c[d]||d)}e.defineInteropFlag(s),e.export(s,"clamp",()=>t),e.export(s,"capitalize",()=>r),e.export(s,"isStringOrNumber",()=>n),e.export(s,"secondToTime",()=>i),e.export(s,"escape",()=>u),e.export(s,"unescape",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],AdvwB:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"ComponentOption",()=>p);var t=o("../utils");const r="array",n="boolean",i="string",u="number",a="object",l="function";function c(d,y,m){return(0,t.errorHandle)(y===i||y===u||d instanceof Element,`${m.join(".")} require '${i}' or 'Element' type`)}const p={html:c,disable:`?${n}`,name:`?${i}`,index:`?${u}`,style:`?${a}`,click:`?${l}`,mounted:`?${l}`,tooltip:`?${i}|${u}`,width:`?${u}`,selector:`?${r}`,onSelect:`?${l}`,switch:`?${n}`,onSwitch:`?${l}`,range:`?${r}`,onRange:`?${l}`,onChange:`?${l}`};s.default={id:i,container:c,url:i,poster:i,type:i,theme:i,lang:i,volume:u,isLive:n,muted:n,autoplay:n,autoSize:n,autoMini:n,loop:n,flip:n,playbackRate:n,aspectRatio:n,screenshot:n,setting:n,hotkey:n,pip:n,mutex:n,backdrop:n,fullscreen:n,fullscreenWeb:n,subtitleOffset:n,miniProgressBar:n,useSSR:n,playsInline:n,lock:n,fastForward:n,autoPlayback:n,autoOrientation:n,airplay:n,plugins:[l],layers:[p],contextmenu:[p],settings:[p],controls:[{...p,position:(d,y,m)=>{const w=["top","left","right"];return(0,t.errorHandle)(w.includes(d),`${m.join(".")} only accept ${w.toString()} as parameters`)}}],qual