!function(bVeG,gfbA){"object"==typeof exports&&"object"==typeof module?module.exports=gfbA():"function"==typeof define&&define.amd?define("APlayer",[],gfbA):"object"==typeof exports?exports.APlayer=gfbA():bVeG.APlayer=gfbA()}(window,function(){return function(bVeG){var gfbA={};function eBbe(fMbb){if(gfbA[fMbb])return gfbA[fMbb].exports;var dccf=gfbA[fMbb]={i:fMbb,l:!1,exports:{}};return bVeG[fMbb].call(dccf.exports,dccf,dccf.exports,eBbe),dccf.l=!0,dccf.exports}return eBbe.m=bVeG,eBbe.c=gfbA,eBbe.d=function(bVeG,gfbA,fMbb){eBbe.o(bVeG,gfbA)||Object.defineProperty(bVeG,gfbA,{configurable:!1,enumerable:!0,get:fMbb})},eBbe.r=function(bVeG){Object.defineProperty(bVeG,"__esModule",{value:!0})},eBbe.n=function(bVeG){var gfbA=bVeG&&bVeG.__esModule?function(){return bVeG.default}:function(){return bVeG};return eBbe.d(gfbA,"a",gfbA),gfbA},eBbe.o=function(bVeG,gfbA){return Object.prototype.hasOwnProperty.call(bVeG,gfbA)},eBbe.p="/",eBbe(eBbe.s=41)}([function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=/mobile/i.test(window.navigator.userAgent),dccf={secondToTime:function(bVeG){var gfbA=Math.floor(bVeG/3600),eBbe=Math.floor((bVeG-3600*gfbA)/60),fMbb=Math.floor(bVeG-3600*gfbA-60*eBbe);return(gfbA>0?[gfbA,eBbe,fMbb]:[eBbe,fMbb]).map(function(bVeG){return bVeG<10?"0"+bVeG:""+bVeG}).join(":")},getElementViewLeft:function(bVeG){var gfbA=bVeG.offsetLeft,eBbe=bVeG.offsetParent,fMbb=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==eBbe&&eBbe!==bVeG;)gfbA+=eBbe.offsetLeft,eBbe=eBbe.offsetParent;else for(;null!==eBbe;)gfbA+=eBbe.offsetLeft,eBbe=eBbe.offsetParent;return gfbA-fMbb},getElementViewTop:function(bVeG,gfbA){for(var eBbe,fMbb=bVeG.offsetTop,dccf=bVeG.offsetParent;null!==dccf;)fMbb+=dccf.offsetTop,dccf=dccf.offsetParent;return eBbe=document.body.scrollTop+document.documentElement.scrollTop,gfbA?fMbb:fMbb-eBbe},isMobile:fMbb,storage:{set:function(bVeG,gfbA){localStorage.setItem(bVeG,gfbA)},get:function(bVeG){return localStorage.getItem(bVeG)}},nameMap:{dragStart:fMbb?"touchstart":"mousedown",dragMove:fMbb?"touchmove":"mousemove",dragEnd:fMbb?"touchend":"mouseup"},randomOrder:function(bVeG){return function(bVeG){for(var gfbA=bVeG.length-1;gfbA>=0;gfbA--){var eBbe=Math.floor(Math.random()*(gfbA+1)),fMbb=bVeG[eBbe];bVeG[eBbe]=bVeG[gfbA],bVeG[gfbA]=fMbb}return bVeG}([].concat(function(bVeG){if(Array.isArray(bVeG)){for(var gfbA=0,eBbe=Array(bVeG.length);gfbA<bVeG.length;gfbA++)eBbe[gfbA]=bVeG[gfbA];return eBbe}return Array.from(bVeG)}(Array(bVeG))).map(function(bVeG,gfbA){return gfbA}))}};gfbA.default=dccf},function(bVeG,gfbA,eBbe){var fMbb=eBbe(2);bVeG.exports=function(bVeG){"use strict";bVeG=bVeG||{};var gfbA="",eBbe=fMbb.$each,dccf=bVeG.audio,gBdX=(bVeG.$value,bVeG.$index,fMbb.$escape),fGgO=bVeG.theme,cNae=bVeG.index;return eBbe(dccf,function(bVeG,eBbe){gfbA+='\n<li>\n    <span class="aplayer-list-cur" style="background-color: ',gfbA+=gBdX(bVeG.theme||fGgO),gfbA+=';"></span>\n    <span class="aplayer-list-index">',gfbA+=gBdX(eBbe+cNae),gfbA+='</span>\n    <span class="aplayer-list-title">',gfbA+=gBdX(bVeG.name),gfbA+='</span>\n    <span class="aplayer-list-author">',gfbA+=gBdX(bVeG.artist),gfbA+="</span>\n</li>\n"}),gfbA}},function(bVeG,gfbA,eBbe){"use strict";bVeG.exports=eBbe(15)},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=fMbbbVeG(eBbe(33)),dccf=fMbbbVeG(eBbe(32)),gBdX=fMbbbVeG(eBbe(31)),fGgO=fMbbbVeG(eBbe(30)),cNae=fMbbbVeG(eBbe(29)),fLeC=fMbbbVeG(eBbe(28)),eMfd=fMbbbVeG(eBbe(27)),giaX=fMbbbVeG(eBbe(26)),aGfT=fMbbbVeG(eBbe(25)),eHeD=fMbbbVeG(eBbe(24)),fVhc=fMbbbVeG(eBbe(23)),_=fMbbbVeG(eBbe(22)),bVeGbVeG=fMbbbVeG(eBbe(21)),gfbAbVeG=fMbbbVeG(eBbe(20)),eBbebVeG=fMbbbVeG(eBbe(19));function fMbbbVeG(bVeG){return bVeG&&bVeG.__esModule?bVeG:{default:bVeG}}var dccfbVeG={play:fMbb.default,pause:dccf.default,volumeUp:gBdX.default,volumeDown:fGgO.default,volumeOff:cNae.default,orderRandom:fLeC.default,orderList:eMfd.default,menu:giaX.default,loopAll:aGfT.default,loopOne:eHeD.default,loopNone:fVhc.default,loading:_.default,right:bVeGbVeG.default,skip:gfbAbVeG.default,lrc:eBbebVeG.default};gfbA.default=dccfbVeG},function(bVeG,gfbA,eBbe){"use strict";var fMbb,dccf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(bVeG){return typeof bVeG}:function(bVeG){return bVeG&&"function"==typeof Symbol&&bVeG.constructor===Symbol&&bVeG!==Symbol.prototype?"symbol":typeof bVeG};fMbb=function(){return this}();try{fMbb=fMbb||Function("return this")()||(0,eval)("this")}catch(bVeG){"object"===("undefined"==typeof window?"undefined":dccf(window))&&(fMbb=window)}bVeG.exports=fMbb},function(bVeG,gfbA,eBbe){"use strict";var fMbb,dccf,gBdX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(bVeG){return typeof bVeG}:function(bVeG){return bVeG&&"function"==typeof Symbol&&bVeG.constructor===Symbol&&bVeG!==Symbol.prototype?"symbol":typeof bVeG};void 0===(dccf="function"==typeof(fMbb=function(){if("object"===("undefined"==typeof window?"undefined":gBdX(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var bVeG=function(bVeG,gfbA,eBbe,fMbb){return eBbe>fMbb?gfbA:bVeG+(gfbA-bVeG)*((dccf=eBbe/fMbb)<.5?4*dccf*dccf*dccf:(dccf-1)*(2*dccf-2)*(2*dccf-2)+1);var dccf},gfbA=function(gfbA,eBbe,fMbb,dccf){eBbe=eBbe||500;var gBdX=(dccf=dccf||window).scrollTop||window.pageYOffset;if("number"==typeof gfbA)var fGgO=parseInt(gfbA);else var fGgO=function(bVeG,gfbA){return"HTML"===bVeG.nodeName?-gfbA:bVeG.getBoundingClientRect().top+gfbA}(gfbA,gBdX);var cNae=Date.now(),fLeC=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(bVeG){window.setTimeout(bVeG,15)};!function eMfd(){var giaX=Date.now()-cNae;dccf!==window?dccf.scrollTop=bVeG(gBdX,fGgO,giaX,eBbe):window.scroll(0,bVeG(gBdX,fGgO,giaX,eBbe)),giaX>eBbe?"function"==typeof fMbb&&fMbb(gfbA):fLeC(eMfd)}()},eBbe=function(bVeG){if(!bVeG.defaultPrevented){bVeG.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var eBbe=document.getElementById(this.hash.substring(1));if(!eBbe)return;gfbA(eBbe,500,function(bVeG){location.replace("#"+bVeG.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var bVeG,gfbA=document.querySelectorAll('a[href^="#"]:not([href="#"])'),fMbb=gfbA.length;bVeG=gfbA[--fMbb];)bVeG.addEventListener("click",eBbe,!1)}),gfbA}})?fMbb.call(gfbA,eBbe,gfbA,bVeG):fMbb)||(bVeG.exports=dccf)},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}(),dccf=cNae(eBbe(1)),gBdX=cNae(eBbe(0)),fGgO=cNae(eBbe(5));function cNae(bVeG){return bVeG&&bVeG.__esModule?bVeG:{default:bVeG}}var fLeC=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.player=gfbA,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return fMbb(bVeG,[{key:"bindEvents",value:function(){var bVeG=this;this.player.template.list.addEventListener("click",function(gfbA){var eBbe=void 0;eBbe="LI"===gfbA.target.tagName.toUpperCase()?gfbA.target:gfbA.target.parentElement;var fMbb=parseInt(eBbe.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;fMbb!==bVeG.index?(bVeG.switch(fMbb),bVeG.player.play()):bVeG.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(bVeG){this.player.events.trigger("listadd",{audios:bVeG}),"[object Array]"!==Object.prototype.toString.call(bVeG)&&(bVeG=[bVeG]),bVeG.map(function(bVeG){return bVeG.name=bVeG.name||bVeG.title||"Audio name",bVeG.artist=bVeG.artist||bVeG.author||"Audio artist",bVeG.cover=bVeG.cover||bVeG.pic,bVeG.type=bVeG.type||"normal",bVeG});var gfbA=!(this.audios.length>1),eBbe=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,dccf.default)({theme:this.player.options.theme,audio:bVeG,index:this.audios.length+1}),this.audios=this.audios.concat(bVeG),gfbA&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=gBdX.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=bVeG.theme||this.player.options.theme,eBbe&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(bVeG){if(this.player.events.trigger("listremove",{index:bVeG}),this.audios[bVeG])if(this.audios.length>1){var gfbA=this.player.container.querySelectorAll(".aplayer-list li");gfbA[bVeG].remove(),this.audios.splice(bVeG,1),this.player.lrc&&this.player.lrc.remove(bVeG),bVeG===this.index&&(this.audios[bVeG]?this.switch(bVeG):this.switch(bVeG-1)),this.index>bVeG&&this.index--;for(var eBbe=bVeG;eBbe<gfbA.length;eBbe++)gfbA[eBbe].getElementsByClassName("aplayer-list-index")[0].textContent=eBbe;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(bVeG){if(this.player.events.trigger("listswitch",{index:bVeG}),void 0!==bVeG&&this.audios[bVeG]){this.index=bVeG;var gfbA=this.audios[this.index];this.player.template.pic.style.backgroundImage=gfbA.cover?"url('"+gfbA.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=gfbA.name,this.player.template.author.innerHTML=gfbA.artist?" - "+gfbA.artist:"";var eBbe=this.player.container.getElementsByClassName("aplayer-list-light")[0];eBbe&&eBbe.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,fGgO.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(gfbA),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=gBdX.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=gBdX.default.secondToTime(0)}}]),bVeG}();gfbA.default=fLeC},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}();var dccf=function(){function bVeG(){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return fMbb(bVeG,[{key:"on",value:function(bVeG,gfbA){this.type(bVeG)&&"function"==typeof gfbA&&(this.events[bVeG]||(this.events[bVeG]=[]),this.events[bVeG].push(gfbA))}},{key:"trigger",value:function(bVeG,gfbA){if(this.events[bVeG]&&this.events[bVeG].length)for(var eBbe=0;eBbe<this.events[bVeG].length;eBbe++)this.events[bVeG][eBbe](gfbA)}},{key:"type",value:function(bVeG){return-1!==this.playerEvents.indexOf(bVeG)?"player":-1!==this.audioEvents.indexOf(bVeG)?"audio":(console.error("Unknown event name: "+bVeG),null)}}]),bVeG}();gfbA.default=dccf},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}();var dccf=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.player=gfbA,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(bVeG){window.setTimeout(bVeG,1e3/60)},this.types=["loading"],this.init()}return fMbb(bVeG,[{key:"init",value:function(){var bVeG=this;this.types.forEach(function(gfbA){bVeG["init"+gfbA+"Checker"]()})}},{key:"initloadingChecker",value:function(){var bVeG=this,gfbA=0,eBbe=0,fMbb=!1;this.loadingChecker=setInterval(function(){bVeG.enableloadingChecker&&(eBbe=bVeG.player.audio.currentTime,fMbb||eBbe!==gfbA||bVeG.player.audio.paused||(bVeG.player.container.classList.add("aplayer-loading"),fMbb=!0),fMbb&&eBbe>gfbA&&!bVeG.player.audio.paused&&(bVeG.player.container.classList.remove("aplayer-loading"),fMbb=!1),gfbA=eBbe)},100)}},{key:"enable",value:function(bVeG){this["enable"+bVeG+"Checker"]=!0,"fps"===bVeG&&this.initfpsChecker()}},{key:"disable",value:function(bVeG){this["enable"+bVeG+"Checker"]=!1}},{key:"destroy",value:function(){var bVeG=this;this.types.forEach(function(gfbA){bVeG["enable"+gfbA+"Checker"]=!1,bVeG[gfbA+"Checker"]&&clearInterval(bVeG[gfbA+"Checker"])})}}]),bVeG}();gfbA.default=dccf},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}(),dccf=fGgO(eBbe(0)),gBdX=fGgO(eBbe(3));function fGgO(bVeG){return bVeG&&bVeG.__esModule?bVeG:{default:bVeG}}var cNae=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.player=gfbA,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),dccf.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return fMbb(bVeG,[{key:"initPlayButton",value:function(){var bVeG=this;this.player.template.pic.addEventListener("click",function(){bVeG.player.toggle()})}},{key:"initPlayBar",value:function(){var bVeG=this,gfbA=function(gfbA){var eBbe=((gfbA.clientX||gfbA.changedTouches[0].clientX)-dccf.default.getElementViewLeft(bVeG.player.template.barWrap))/bVeG.player.template.barWrap.clientWidth;eBbe=Math.max(eBbe,0),eBbe=Math.min(eBbe,1),bVeG.player.bar.set("played",eBbe,"width"),bVeG.player.lrc&&bVeG.player.lrc.update(eBbe*bVeG.player.duration),bVeG.player.template.ptime.innerHTML=dccf.default.secondToTime(eBbe*bVeG.player.duration)},eBbe=function eBbe(fMbb){document.removeEventListener(dccf.default.nameMap.dragEnd,eBbe),document.removeEventListener(dccf.default.nameMap.dragMove,gfbA);var gBdX=((fMbb.clientX||fMbb.changedTouches[0].clientX)-dccf.default.getElementViewLeft(bVeG.player.template.barWrap))/bVeG.player.template.barWrap.clientWidth;gBdX=Math.max(gBdX,0),gBdX=Math.min(gBdX,1),bVeG.player.bar.set("played",gBdX,"width"),bVeG.player.seek(bVeG.player.bar.get("played","width")*bVeG.player.duration),bVeG.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(dccf.default.nameMap.dragStart,function(){bVeG.player.disableTimeupdate=!0,document.addEventListener(dccf.default.nameMap.dragMove,gfbA),document.addEventListener(dccf.default.nameMap.dragEnd,eBbe)})}},{key:"initVolumeButton",value:function(){var bVeG=this;this.player.template.volumeButton.addEventListener("click",function(){bVeG.player.audio.muted?(bVeG.player.audio.muted=!1,bVeG.player.switchVolumeIcon(),bVeG.player.bar.set("volume",bVeG.player.volume(),"height")):(bVeG.player.audio.muted=!0,bVeG.player.switchVolumeIcon(),bVeG.player.bar.set("volume",0,"height"))});var gfbA=function(gfbA){var eBbe=1-((gfbA.clientY||gfbA.changedTouches[0].clientY)-dccf.default.getElementViewTop(bVeG.player.template.volumeBar,bVeG.player.options.fixed))/bVeG.player.template.volumeBar.clientHeight;eBbe=Math.max(eBbe,0),eBbe=Math.min(eBbe,1),bVeG.player.volume(eBbe)},eBbe=function eBbe(fMbb){bVeG.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(dccf.default.nameMap.dragEnd,eBbe),document.removeEventListener(dccf.default.nameMap.dragMove,gfbA);var gBdX=1-((fMbb.clientY||fMbb.changedTouches[0].clientY)-dccf.default.getElementViewTop(bVeG.player.template.volumeBar,bVeG.player.options.fixed))/bVeG.player.template.volumeBar.clientHeight;gBdX=Math.max(gBdX,0),gBdX=Math.min(gBdX,1),bVeG.player.volume(gBdX)};this.player.template.volumeBarWrap.addEventListener(dccf.default.nameMap.dragStart,function(){bVeG.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(dccf.default.nameMap.dragMove,gfbA),document.addEventListener(dccf.default.nameMap.dragEnd,eBbe)})}},{key:"initOrderButton",value:function(){var bVeG=this;this.player.template.order.addEventListener("click",function(){"list"===bVeG.player.options.order?(bVeG.player.options.order="random",bVeG.player.template.order.innerHTML=gBdX.default.orderRandom):"random"===bVeG.player.options.order&&(bVeG.player.options.order="list",bVeG.player.template.order.innerHTML=gBdX.default.orderList)})}},{key:"initLoopButton",value:function(){var bVeG=this;this.player.template.loop.addEventListener("click",function(){bVeG.player.list.audios.length>1?"one"===bVeG.player.options.loop?(bVeG.player.options.loop="none",bVeG.player.template.loop.innerHTML=gBdX.default.loopNone):"none"===bVeG.player.options.loop?(bVeG.player.options.loop="all",bVeG.player.template.loop.innerHTML=gBdX.default.loopAll):"all"===bVeG.player.options.loop&&(bVeG.player.options.loop="one",bVeG.player.template.loop.innerHTML=gBdX.default.loopOne):"one"===bVeG.player.options.loop||"all"===bVeG.player.options.loop?(bVeG.player.options.loop="none",bVeG.player.template.loop.innerHTML=gBdX.default.loopNone):"none"===bVeG.player.options.loop&&(bVeG.player.options.loop="all",bVeG.player.template.loop.innerHTML=gBdX.default.loopAll)})}},{key:"initMenuButton",value:function(){var bVeG=this;this.player.template.menu.addEventListener("click",function(){bVeG.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var bVeG=this;this.player.template.miniSwitcher.addEventListener("click",function(){bVeG.player.setMode("mini"===bVeG.player.mode?"normal":"mini")})}},{key:"initSkipButton",value:function(){var bVeG=this;this.player.template.skipBackButton.addEventListener("click",function(){bVeG.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){bVeG.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){bVeG.player.toggle()})}},{key:"initLrcButton",value:function(){var bVeG=this;this.player.template.lrcButton.addEventListener("click",function(){bVeG.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(bVeG.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),bVeG.player.lrc&&bVeG.player.lrc.show()):(bVeG.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),bVeG.player.lrc&&bVeG.player.lrc.hide())})}}]),bVeG}();gfbA.default=cNae},function(bVeG,gfbA,eBbe){var fMbb=eBbe(2);bVeG.exports=function(bVeG){"use strict";bVeG=bVeG||{};var gfbA="",eBbe=fMbb.$each,dccf=bVeG.lyrics,gBdX=(bVeG.$value,bVeG.$index,fMbb.$escape);return eBbe(dccf,function(bVeG,eBbe){gfbA+="\n    <p",0===eBbe&&(gfbA+=' class="aplayer-lrc-current"'),gfbA+=">",gfbA+=gBdX(bVeG[1]),gfbA+="</p>\n"}),gfbA}},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb,dccf=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}(),gBdX=eBbe(10),fGgO=(fMbb=gBdX)&&fMbb.__esModule?fMbb:{default:fMbb};var cNae=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.container=gfbA.container,this.async=gfbA.async,this.player=gfbA.player,this.parsed=[],this.index=0,this.current=[]}return dccf(bVeG,[{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 bVeG=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||bVeG<this.current[this.index][0]||!this.current[this.index+1]||bVeG>=this.current[this.index+1][0])for(var gfbA=0;gfbA<this.current.length;gfbA++)bVeG>=this.current[gfbA][0]&&(!this.current[gfbA+1]||bVeG<this.current[gfbA+1][0])&&(this.index=gfbA,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")[gfbA].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(bVeG){var gfbA=this;if(!this.parsed[bVeG])if(this.async){this.parsed[bVeG]=[["00:00","Loading"]];var eBbe=new XMLHttpRequest;eBbe.onreadystatechange=function(){bVeG===gfbA.player.list.index&&4===eBbe.readyState&&(eBbe.status>=200&&eBbe.status<300||304===eBbe.status?gfbA.parsed[bVeG]=gfbA.parse(eBbe.responseText):(gfbA.player.notice("LRC file request fails: status "+eBbe.status),gfbA.parsed[bVeG]=[["00:00","Not available"]]),gfbA.container.innerHTML=(0,fGgO.default)({lyrics:gfbA.parsed[bVeG]}),gfbA.update(0),gfbA.current=gfbA.parsed[bVeG])};var fMbb=this.player.list.audios[bVeG].lrc;eBbe.open("get",fMbb,!0),eBbe.send(null)}else this.player.list.audios[bVeG].lrc?this.parsed[bVeG]=this.parse(this.player.list.audios[bVeG].lrc):this.parsed[bVeG]=[["00:00","Not available"]];this.container.innerHTML=(0,fGgO.default)({lyrics:this.parsed[bVeG]}),this.update(0),this.current=this.parsed[bVeG]}},{key:"parse",value:function(bVeG){if(bVeG){for(var gfbA=(bVeG=bVeG.replace(/([^\]^\n])\[/g,function(bVeG,gfbA){return gfbA+"\n["})).split("\n"),eBbe=[],fMbb=gfbA.length,dccf=0;dccf<fMbb;dccf++){var gBdX=gfbA[dccf].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),fGgO=gfbA[dccf].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(gBdX)for(var cNae=gBdX.length,fLeC=0;fLeC<cNae;fLeC++){var eMfd=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(gBdX[fLeC]),giaX=60*eMfd[1]+parseInt(eMfd[2])+(eMfd[4]?parseInt(eMfd[4])/(2===(eMfd[4]+"").length?100:1e3):0);eBbe.push([giaX,fGgO])}}return(eBbe=eBbe.filter(function(bVeG){return bVeG[1]})).sort(function(bVeG,gfbA){return bVeG[0]-gfbA[0]}),eBbe}return[]}},{key:"remove",value:function(bVeG){this.parsed.splice(bVeG,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),bVeG}();gfbA.default=cNae},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb,dccf=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}(),gBdX=eBbe(0),fGgO=(fMbb=gBdX)&&fMbb.__esModule?fMbb:{default:fMbb};var cNae=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.storageName=gfbA.options.storageName,this.data=JSON.parse(fGgO.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||gfbA.options.volume}return dccf(bVeG,[{key:"get",value:function(bVeG){return this.data[bVeG]}},{key:"set",value:function(bVeG,gfbA){this.data[bVeG]=gfbA,fGgO.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),bVeG}();gfbA.default=cNae},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}();var dccf=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.elements={},this.elements.volume=gfbA.volume,this.elements.played=gfbA.played,this.elements.loaded=gfbA.loaded}return fMbb(bVeG,[{key:"set",value:function(bVeG,gfbA,eBbe){gfbA=Math.max(gfbA,0),gfbA=Math.min(gfbA,1),this.elements[bVeG].style[eBbe]=100*gfbA+"%"}},{key:"get",value:function(bVeG,gfbA){return parseFloat(this.elements[bVeG].style[gfbA])/100}}]),bVeG}();gfbA.default=dccf},function(bVeG,gfbA,eBbe){"use strict";(function(gfbA){bVeG.exports=!1;try{bVeG.exports="[object process]"===Object.prototype.toString.call(gfbA.process)}catch(bVeG){}}).call(this,eBbe(4))},function(bVeG,gfbA,eBbe){"use strict";(function(gfbA){var fMbb=eBbe(14),dccf=Object.create(fMbb?gfbA:window),gBdX=/["&'<>]/;dccf.$escape=function(bVeG){return function(bVeG){var gfbA=""+bVeG,eBbe=gBdX.exec(gfbA);if(!eBbe)return bVeG;var fMbb="",dccf=void 0,fGgO=void 0,cNae=void 0;for(dccf=eBbe.index,fGgO=0;dccf<gfbA.length;dccf++){switch(gfbA.charCodeAt(dccf)){case 34:cNae="&#34;";break;case 38:cNae="&#38;";break;case 39:cNae="&#39;";break;case 60:cNae="&#60;";break;case 62:cNae="&#62;";break;default:continue}fGgO!==dccf&&(fMbb+=gfbA.substring(fGgO,dccf)),fGgO=dccf+1,fMbb+=cNae}return fGgO!==dccf?fMbb+gfbA.substring(fGgO,dccf):fMbb}(function bVeG(gfbA){"string"!=typeof gfbA&&(gfbA=void 0===gfbA||null===gfbA?"":"function"==typeof gfbA?bVeG(gfbA.call(gfbA)):JSON.stringify(gfbA));return gfbA}(bVeG))},dccf.$each=function(bVeG,gfbA){if(Array.isArray(bVeG))for(var eBbe=0,fMbb=bVeG.length;eBbe<fMbb;eBbe++)gfbA(bVeG[eBbe],eBbe);else for(var dccf in bVeG)gfbA(bVeG[dccf],dccf)},bVeG.exports=dccf}).call(this,eBbe(4))},function(bVeG,gfbA,eBbe){var fMbb=eBbe(2);bVeG.exports=function(bVeG){"use strict";var gfbA="",dccf=(bVeG=bVeG||{}).options,gBdX=bVeG.cover,fGgO=fMbb.$escape,cNae=bVeG.icons,fLeC=(arguments[1],function(bVeG){return gfbA+=bVeG}),eMfd=bVeG.getObject;bVeG.theme,bVeG.audio,bVeG.index;return dccf.fixed?(gfbA+='\n<div class="aplayer-list',dccf.listFolded&&(gfbA+=" aplayer-list-hide"),gfbA+='"',dccf.listMaxHeight&&(gfbA+=' style="max-height: ',gfbA+=fGgO(dccf.listMaxHeight),gfbA+='"'),gfbA+=">\n    <ol",dccf.listMaxHeight&&(gfbA+=' style="max-height: ',gfbA+=fGgO(dccf.listMaxHeight),gfbA+='"'),gfbA+=">\n        ",fLeC(eBbe(1)(eMfd({theme:dccf.theme,audio:dccf.audio,index:1}))),gfbA+='\n    </ol>\n</div>\n<div class="aplayer-body">\n    <div class="aplayer-pic" style="',gBdX&&(gfbA+="background-image: url(&quot;",gfbA+=fGgO(gBdX),gfbA+="&quot;);"),gfbA+="background-color: ",gfbA+=fGgO(dccf.theme),gfbA+=';">\n        <div class="aplayer-button aplayer-play">',gfbA+=cNae.play,gfbA+='</div>\n    </div>\n    <div class="aplayer-info" style="display: none;">\n        <div class="aplayer-music">\n            <span class="aplayer-title">No audio</span>\n            <span class="aplayer-author"></span>\n        </div>\n        <div class="aplayer-controller">\n            <div class="aplayer-bar-wrap">\n                <div class="aplayer-bar">\n                    <div class="aplayer-loaded" style="width: 0"></div>\n                    <div class="aplayer-played" style="width: 0; background: ',gfbA+=fGgO(dccf.theme),gfbA+=';">\n                        <span class="aplayer-thumb" style="background: ',gfbA+=fGgO(dccf.theme),gfbA+=';">\n                            <span class="aplayer-loading-icon">',gfbA+=cNae.loading,gfbA+='</span>\n                        </span>\n                    </div>\n                </div>\n            </div>\n            <div class="aplayer-time">\n                <span class="aplayer-time-inner">\n                    <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n                </span>\n                <span class="aplayer-icon aplayer-icon-back">\n                    ',gfbA+=cNae.skip,gfbA+='\n                </span>\n                <span class="aplayer-icon aplayer-icon-play">\n                    ',gfbA+=cNae.play,gfbA+='\n                </span>\n                <span class="aplayer-icon aplayer-icon-forward">\n                    ',gfbA+=cNae.skip,gfbA+='\n                </span>\n                <div class="aplayer-volume-wrap">\n                    <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n                        ',gfbA+=cNae.volumeDown,gfbA+='\n                    </button>\n                    <div class="aplayer-volume-bar-wrap">\n                        <div class="aplayer-volume-bar">\n                            <div class="aplayer-volume" style="height: 80%; background: ',gfbA+=fGgO(dccf.theme),gfbA+=';"></div>\n                        </div>\n                    </div>\n                </div>\n                <button type="button" class="aplayer-icon aplayer-icon-order">\n                    ',"list"===dccf.order?gfbA+=cNae.orderList:"random"===dccf.order&&(gfbA+=cNae.orderRandom),gfbA+='\n                </button>\n                <button type="button" class="aplayer-icon aplayer-icon-loop">\n                    ',"one"===dccf.loop?gfbA+=cNae.loopOne:"all"===dccf.loop?gfbA+=cNae.loopAll:"none"===dccf.loop&&(gfbA+=cNae.loopNone),gfbA+='\n                </button>\n                <button type="button" class="aplayer-icon aplayer-icon-menu">\n                    ',gfbA+=cNae.menu,gfbA+='\n                </button>\n                <button type="button" class="aplayer-icon aplayer-icon-lrc">\n                    ',gfbA+=cNae.lrc,gfbA+='\n                </button>\n            </div>\n        </div>\n    </div>\n    <div class="aplayer-notice"></div>\n    <div class="aplayer-miniswitcher"><button class="aplayer-icon">',gfbA+=cNae.right,gfbA+='</button></div>\n</div>\n<div class="aplayer-lrc">\n    <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(gfbA+='\n<div class="aplayer-body" style="',gBdX&&(gfbA+="background: url(&quot;",gfbA+=fGgO(gBdX),gfbA+="&quot;) no-repeat center center/cover;"),gfbA+='">\n    <div class="aplayer-pic" style="',gBdX&&(gfbA+="background-image: url(&quot;",gfbA+=fGgO(gBdX),gfbA+="&quot;);"),gfbA+="background-color: ",gfbA+=fGgO(dccf.theme),gfbA+=';">\n        <div class="aplayer-button aplayer-play">',gfbA+=cNae.play,gfbA+='</div>\n    </div>\n    <div class="aplayer-info">\n        <div class="aplayer-music">\n            <span class="aplayer-title">No audio</span>\n            <span class="aplayer-author"></span>\n        </div>\n        <div class="aplayer-lrc">\n            <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n        </div>\n        <div class="aplayer-controller">\n            <div class="aplayer-bar-wrap">\n                <div class="aplayer-bar">\n                    <div class="aplayer-loaded" style="width: 0"></div>\n                    <div class="aplayer-played" style="width: 0; background: ',gfbA+=fGgO(dccf.theme),gfbA+=';">\n                        <span class="aplayer-thumb" style="background: ',gfbA+=fGgO(dccf.theme),gfbA+=';">\n                            <span class="aplayer-loading-icon">',gfbA+=cNae.loading,gfbA+='</span>\n                        </span>\n                    </div>\n                </div>\n            </div>\n            <div class="aplayer-time">\n                <span class="aplayer-time-inner">\n                    <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n                </span>\n                <span class="aplayer-icon aplayer-icon-back">\n                    ',gfbA+=cNae.skip,gfbA+='\n                </span>\n                <span class="aplayer-icon aplayer-icon-play">\n                    ',gfbA+=cNae.play,gfbA+='\n                </span>\n                <span class="aplayer-icon aplayer-icon-forward">\n                    ',gfbA+=cNae.skip,gfbA+='\n                </span>\n                <div class="aplayer-volume-wrap">\n                    <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n                        ',gfbA+=cNae.volumeDown,gfbA+='\n                    </button>\n                    <div class="aplayer-volume-bar-wrap">\n                        <div class="aplayer-volume-bar">\n                            <div class="aplayer-volume" style="height: 80%; background: ',gfbA+=fGgO(dccf.theme),gfbA+=';"></div>\n                        </div>\n                    </div>\n                </div>\n                <button type="button" class="aplayer-icon aplayer-icon-order">\n                    ',"list"===dccf.order?gfbA+=cNae.orderList:"random"===dccf.order&&(gfbA+=cNae.orderRandom),gfbA+='\n                </button>\n                <button type="button" class="aplayer-icon aplayer-icon-loop">\n                    ',"one"===dccf.loop?gfbA+=cNae.loopOne:"all"===dccf.loop?gfbA+=cNae.loopAll:"none"===dccf.loop&&(gfbA+=cNae.loopNone),gfbA+='\n                </button>\n                <button type="button" class="aplayer-icon aplayer-icon-menu">\n                    ',gfbA+=cNae.menu,gfbA+='\n                </button>\n                <button type="button" class="aplayer-icon aplayer-icon-lrc">\n                    ',gfbA+=cNae.lrc,gfbA+='\n                </button>\n            </div>\n        </div>\n    </div>\n    <div class="aplayer-notice"></div>\n    <div class="aplayer-miniswitcher"><button class="aplayer-icon">',gfbA+=cNae.right,gfbA+='</button></div>\n</div>\n<div class="aplayer-list',dccf.listFolded&&(gfbA+=" aplayer-list-hide"),gfbA+='"',dccf.listMaxHeight&&(gfbA+=' style="max-height: ',gfbA+=fGgO(dccf.listMaxHeight),gfbA+='"'),gfbA+=">\n    <ol",dccf.listMaxHeight&&(gfbA+=' style="max-height: ',gfbA+=fGgO(dccf.listMaxHeight),gfbA+='"'),gfbA+=">\n        ",fLeC(eBbe(1)(eMfd({theme:dccf.theme,audio:dccf.audio,index:1}))),gfbA+="\n    </ol>\n</div>\n"),gfbA}},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}(),dccf=fGgO(eBbe(3)),gBdX=fGgO(eBbe(16));function fGgO(bVeG){return bVeG&&bVeG.__esModule?bVeG:{default:bVeG}}var cNae=function(){function bVeG(gfbA){!function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.container=gfbA.container,this.options=gfbA.options,this.randomOrder=gfbA.randomOrder,this.init()}return fMbb(bVeG,[{key:"init",value:function(){var bVeG="";this.options.audio.length&&(bVeG="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,gBdX.default)({options:this.options,icons:dccf.default,cover:bVeG,getObject:function(bVeG){return bVeG}}),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")}}]),bVeG}();gfbA.default=cNae},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0}),gfbA.default=function(bVeG){var gfbA={container:bVeG.element||document.getElementsByClassName("aplayer")[0],mini:bVeG.narrow||bVeG.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:bVeG.showlrc||bVeG.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:bVeG.fixed,listMaxHeight:bVeG.listmaxheight||"250px",audio:bVeG.music||[],storageName:"aplayer-setting"};for(var eBbe in gfbA)gfbA.hasOwnProperty(eBbe)&&!bVeG.hasOwnProperty(eBbe)&&(bVeG[eBbe]=gfbA[eBbe]);return"[object Array]"!==Object.prototype.toString.call(bVeG.audio)&&(bVeG.audio=[bVeG.audio]),bVeG.audio.map(function(bVeG){return bVeG.name=bVeG.name||bVeG.title||"Audio name",bVeG.artist=bVeG.artist||bVeG.author||"Audio artist",bVeG.cover=bVeG.cover||bVeG.pic,bVeG.type=bVeG.type||"normal",bVeG}),bVeG.audio.length<=1&&"one"===bVeG.loop&&(bVeG.loop="all"),bVeG}},function(bVeG,gfbA){bVeG.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-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(bVeG,gfbA){bVeG.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(bVeG,gfbA,eBbe){"use strict";var fMbb,dccf,gBdX=bVeG.exports={};function fGgO(){throw new Error("setTimeout has not been defined")}function cNae(){throw new Error("clearTimeout has not been defined")}function fLeC(bVeG){if(fMbb===setTimeout)return setTimeout(bVeG,0);if((fMbb===fGgO||!fMbb)&&setTimeout)return fMbb=setTimeout,setTimeout(bVeG,0);try{return fMbb(bVeG,0)}catch(gfbA){try{return fMbb.call(null,bVeG,0)}catch(gfbA){return fMbb.call(this,bVeG,0)}}}!function(){try{fMbb="function"==typeof setTimeout?setTimeout:fGgO}catch(bVeG){fMbb=fGgO}try{dccf="function"==typeof clearTimeout?clearTimeout:cNae}catch(bVeG){dccf=cNae}}();var eMfd,giaX=[],aGfT=!1,eHeD=-1;function fVhc(){aGfT&&eMfd&&(aGfT=!1,eMfd.length?giaX=eMfd.concat(giaX):eHeD=-1,giaX.length&&_())}function _(){if(!aGfT){var bVeG=fLeC(fVhc);aGfT=!0;for(var gfbA=giaX.length;gfbA;){for(eMfd=giaX,giaX=[];++eHeD<gfbA;)eMfd&&eMfd[eHeD].run();eHeD=-1,gfbA=giaX.length}eMfd=null,aGfT=!1,function(bVeG){if(dccf===clearTimeout)return clearTimeout(bVeG);if((dccf===cNae||!dccf)&&clearTimeout)return dccf=clearTimeout,clearTimeout(bVeG);try{dccf(bVeG)}catch(gfbA){try{return dccf.call(null,bVeG)}catch(gfbA){return dccf.call(this,bVeG)}}}(bVeG)}}function bVeGbVeG(bVeG,gfbA){this.fun=bVeG,this.array=gfbA}function gfbAbVeG(){}gBdX.nextTick=function(bVeG){var gfbA=new Array(arguments.length-1);if(arguments.length>1)for(var eBbe=1;eBbe<arguments.length;eBbe++)gfbA[eBbe-1]=arguments[eBbe];giaX.push(new bVeGbVeG(bVeG,gfbA)),1!==giaX.length||aGfT||fLeC(_)},bVeGbVeG.prototype.run=function(){this.fun.apply(null,this.array)},gBdX.title="browser",gBdX.browser=!0,gBdX.env={},gBdX.argv=[],gBdX.version="",gBdX.versions={},gBdX.on=gfbAbVeG,gBdX.addListener=gfbAbVeG,gBdX.once=gfbAbVeG,gBdX.off=gfbAbVeG,gBdX.removeListener=gfbAbVeG,gBdX.removeAllListeners=gfbAbVeG,gBdX.emit=gfbAbVeG,gBdX.prependListener=gfbAbVeG,gBdX.prependOnceListener=gfbAbVeG,gBdX.listeners=function(bVeG){return[]},gBdX.binding=function(bVeG){throw new Error("process.binding is not supported")},gBdX.cwd=function(){return"/"},gBdX.chdir=function(bVeG){throw new Error("process.chdir is not supported")},gBdX.umask=function(){return 0}},function(bVeG,gfbA,eBbe){"use strict";(function(bVeG,gfbA){!function(bVeG,eBbe){if(!bVeG.setImmediate){var fMbb,dccf,gBdX,fGgO,cNae,fLeC=1,eMfd={},giaX=!1,aGfT=bVeG.document,eHeD=Object.getPrototypeOf&&Object.getPrototypeOf(bVeG);eHeD=eHeD&&eHeD.setTimeout?eHeD:bVeG,"[object process]"==={}.toString.call(bVeG.process)?fMbb=function(bVeG){gfbA.nextTick(function(){_(bVeG)})}:!function(){if(bVeG.postMessage&&!bVeG.importScripts){var gfbA=!0,eBbe=bVeG.onmessage;return bVeG.onmessage=function(){gfbA=!1},bVeG.postMessage("","*"),bVeG.onmessage=eBbe,gfbA}}()?bVeG.MessageChannel?((gBdX=new MessageChannel).port1.onmessage=function(bVeG){_(bVeG.data)},fMbb=function(bVeG){gBdX.port2.postMessage(bVeG)}):aGfT&&"onreadystatechange"in aGfT.createElement("script")?(dccf=aGfT.documentElement,fMbb=function(bVeG){var gfbA=aGfT.createElement("script");gfbA.onreadystatechange=function(){_(bVeG),gfbA.onreadystatechange=null,dccf.removeChild(gfbA),gfbA=null},dccf.appendChild(gfbA)}):fMbb=function(bVeG){setTimeout(_,0,bVeG)}:(fGgO="setImmediate$"+Math.random()+"$",cNae=function(gfbA){gfbA.source===bVeG&&"string"==typeof gfbA.data&&0===gfbA.data.indexOf(fGgO)&&_(+gfbA.data.slice(fGgO.length))},bVeG.addEventListener?bVeG.addEventListener("message",cNae,!1):bVeG.attachEvent("onmessage",cNae),fMbb=function(gfbA){bVeG.postMessage(fGgO+gfbA,"*")}),eHeD.setImmediate=function(bVeG){"function"!=typeof bVeG&&(bVeG=new Function(""+bVeG));for(var gfbA=new Array(arguments.length-1),eBbe=0;eBbe<gfbA.length;eBbe++)gfbA[eBbe]=arguments[eBbe+1];var dccf={callback:bVeG,args:gfbA};return eMfd[fLeC]=dccf,fMbb(fLeC),fLeC++},eHeD.clearImmediate=fVhc}function fVhc(bVeG){delete eMfd[bVeG]}function _(bVeG){if(giaX)setTimeout(_,0,bVeG);else{var gfbA=eMfd[bVeG];if(gfbA){giaX=!0;try{!function(bVeG){var gfbA=bVeG.callback,fMbb=bVeG.args;switch(fMbb.length){case 0:gfbA();break;case 1:gfbA(fMbb[0]);break;case 2:gfbA(fMbb[0],fMbb[1]);break;case 3:gfbA(fMbb[0],fMbb[1],fMbb[2]);break;default:gfbA.apply(eBbe,fMbb)}}(gfbA)}finally{fVhc(bVeG),giaX=!1}}}}}("undefined"==typeof self?void 0===bVeG?void 0:bVeG:self)}).call(this,eBbe(4),eBbe(34))},function(bVeG,gfbA,eBbe){"use strict";var fMbb=Function.prototype.apply;function dccf(bVeG,gfbA){this._id=bVeG,this._clearFn=gfbA}gfbA.setTimeout=function(){return new dccf(fMbb.call(setTimeout,window,arguments),clearTimeout)},gfbA.setInterval=function(){return new dccf(fMbb.call(setInterval,window,arguments),clearInterval)},gfbA.clearTimeout=gfbA.clearInterval=function(bVeG){bVeG&&bVeG.close()},dccf.prototype.unref=dccf.prototype.ref=function(){},dccf.prototype.close=function(){this._clearFn.call(window,this._id)},gfbA.enroll=function(bVeG,gfbA){clearTimeout(bVeG._idleTimeoutId),bVeG._idleTimeout=gfbA},gfbA.unenroll=function(bVeG){clearTimeout(bVeG._idleTimeoutId),bVeG._idleTimeout=-1},gfbA._unrefActive=gfbA.active=function(bVeG){clearTimeout(bVeG._idleTimeoutId);var gfbA=bVeG._idleTimeout;gfbA>=0&&(bVeG._idleTimeoutId=setTimeout(function(){bVeG._onTimeout&&bVeG._onTimeout()},gfbA))},eBbe(35),gfbA.setImmediate=setImmediate,gfbA.clearImmediate=clearImmediate},function(bVeG,gfbA,eBbe){"use strict";(function(gfbA){var eBbe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(bVeG){return typeof bVeG}:function(bVeG){return bVeG&&"function"==typeof Symbol&&bVeG.constructor===Symbol&&bVeG!==Symbol.prototype?"symbol":typeof bVeG},fMbb=setTimeout;function dccf(){}function gBdX(bVeG){if(!(this instanceof gBdX))throw new TypeError("Promises must be constructed via new");if("function"!=typeof bVeG)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],giaX(bVeG,this)}function fGgO(bVeG,gfbA){for(;3===bVeG._state;)bVeG=bVeG._value;0!==bVeG._state?(bVeG._handled=!0,gBdX._immediateFn(function(){var eBbe=1===bVeG._state?gfbA.onFulfilled:gfbA.onRejected;if(null!==eBbe){var fMbb;try{fMbb=eBbe(bVeG._value)}catch(bVeG){return void fLeC(gfbA.promise,bVeG)}cNae(gfbA.promise,fMbb)}else(1===bVeG._state?cNae:fLeC)(gfbA.promise,bVeG._value)})):bVeG._deferreds.push(gfbA)}function cNae(bVeG,gfbA){try{if(gfbA===bVeG)throw new TypeError("A promise cannot be resolved with itself.");if(gfbA&&("object"===(void 0===gfbA?"undefined":eBbe(gfbA))||"function"==typeof gfbA)){var fMbb=gfbA.then;if(gfbA instanceof gBdX)return bVeG._state=3,bVeG._value=gfbA,void eMfd(bVeG);if("function"==typeof fMbb)return void giaX((dccf=fMbb,fGgO=gfbA,function(){dccf.apply(fGgO,arguments)}),bVeG)}bVeG._state=1,bVeG._value=gfbA,eMfd(bVeG)}catch(gfbA){fLeC(bVeG,gfbA)}var dccf,fGgO}function fLeC(bVeG,gfbA){bVeG._state=2,bVeG._value=gfbA,eMfd(bVeG)}function eMfd(bVeG){2===bVeG._state&&0===bVeG._deferreds.length&&gBdX._immediateFn(function(){bVeG._handled||gBdX._unhandledRejectionFn(bVeG._value)});for(var gfbA=0,eBbe=bVeG._deferreds.length;gfbA<eBbe;gfbA++)fGgO(bVeG,bVeG._deferreds[gfbA]);bVeG._deferreds=null}function giaX(bVeG,gfbA){var eBbe=!1;try{bVeG(function(bVeG){eBbe||(eBbe=!0,cNae(gfbA,bVeG))},function(bVeG){eBbe||(eBbe=!0,fLeC(gfbA,bVeG))})}catch(bVeG){if(eBbe)return;eBbe=!0,fLeC(gfbA,bVeG)}}gBdX.prototype.catch=function(bVeG){return this.then(null,bVeG)},gBdX.prototype.then=function(bVeG,gfbA){var eBbe=new this.constructor(dccf);return fGgO(this,new function(bVeG,gfbA,eBbe){this.onFulfilled="function"==typeof bVeG?bVeG:null,this.onRejected="function"==typeof gfbA?gfbA:null,this.promise=eBbe}(bVeG,gfbA,eBbe)),eBbe},gBdX.prototype.finally=function(bVeG){var gfbA=this.constructor;return this.then(function(eBbe){return gfbA.resolve(bVeG()).then(function(){return eBbe})},function(eBbe){return gfbA.resolve(bVeG()).then(function(){return gfbA.reject(eBbe)})})},gBdX.all=function(bVeG){return new gBdX(function(gfbA,fMbb){if(!bVeG||void 0===bVeG.length)throw new TypeError("Promise.all accepts an array");var dccf=Array.prototype.slice.call(bVeG);if(0===dccf.length)return gfbA([]);var gBdX=dccf.length;function fGgO(bVeG,cNae){try{if(cNae&&("object"===(void 0===cNae?"undefined":eBbe(cNae))||"function"==typeof cNae)){var fLeC=cNae.then;if("function"==typeof fLeC)return void fLeC.call(cNae,function(gfbA){fGgO(bVeG,gfbA)},fMbb)}dccf[bVeG]=cNae,0==--gBdX&&gfbA(dccf)}catch(bVeG){fMbb(bVeG)}}for(var cNae=0;cNae<dccf.length;cNae++)fGgO(cNae,dccf[cNae])})},gBdX.resolve=function(bVeG){return bVeG&&"object"===(void 0===bVeG?"undefined":eBbe(bVeG))&&bVeG.constructor===gBdX?bVeG:new gBdX(function(gfbA){gfbA(bVeG)})},gBdX.reject=function(bVeG){return new gBdX(function(gfbA,eBbe){eBbe(bVeG)})},gBdX.race=function(bVeG){return new gBdX(function(gfbA,eBbe){for(var fMbb=0,dccf=bVeG.length;fMbb<dccf;fMbb++)bVeG[fMbb].then(gfbA,eBbe)})},gBdX._immediateFn="function"==typeof gfbA&&function(bVeG){gfbA(bVeG)}||function(bVeG){fMbb(bVeG,0)},gBdX._unhandledRejectionFn=function(bVeG){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",bVeG)},bVeG.exports=gBdX}).call(this,eBbe(36).setImmediate)},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0});var fMbb=function(){function bVeG(bVeG,gfbA){for(var eBbe=0;eBbe<gfbA.length;eBbe++){var fMbb=gfbA[eBbe];fMbb.enumerable=fMbb.enumerable||!1,fMbb.configurable=!0,"value"in fMbb&&(fMbb.writable=!0),Object.defineProperty(bVeG,fMbb.key,fMbb)}}return function(gfbA,eBbe,fMbb){return eBbe&&bVeG(gfbA.prototype,eBbe),fMbb&&bVeG(gfbA,fMbb),gfbA}}(),dccf=gfbAbVeG(eBbe(37)),gBdX=gfbAbVeG(eBbe(0)),fGgO=gfbAbVeG(eBbe(3)),cNae=gfbAbVeG(eBbe(18)),fLeC=gfbAbVeG(eBbe(17)),eMfd=gfbAbVeG(eBbe(13)),giaX=gfbAbVeG(eBbe(12)),aGfT=gfbAbVeG(eBbe(11)),eHeD=gfbAbVeG(eBbe(9)),fVhc=gfbAbVeG(eBbe(8)),_=gfbAbVeG(eBbe(7)),bVeGbVeG=gfbAbVeG(eBbe(6));function gfbAbVeG(bVeG){return bVeG&&bVeG.__esModule?bVeG:{default:bVeG}}var eBbebVeG=[],fMbbbVeG=function(){function bVeG(gfbA){if(function(bVeG,gfbA){if(!(bVeG instanceof gfbA))throw new TypeError("Cannot call a class as a function")}(this,bVeG),this.options=(0,cNae.default)(gfbA),this.container=this.options.container,this.paused=!0,this.playedPromise=dccf.default.resolve(),this.mode="normal",this.randomOrder=gBdX.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),gBdX.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var eBbe=this.container.getElementsByClassName("aplayer-lrc-content"),fMbb=0;fMbb<eBbe.length;fMbb++)this.options.audio[fMbb]&&(this.options.audio[fMbb].lrc=eBbe[fMbb].innerHTML);this.template=new fLeC.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new aGfT.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new _.default,this.storage=new giaX.default(this),this.bar=new eMfd.default(this.template),this.controller=new eHeD.default(this),this.timer=new fVhc.default(this),this.list=new bVeGbVeG.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),eBbebVeG.push(this)}return fMbb(bVeG,[{key:"initAudio",value:function(){var bVeG=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var gfbA=function(gfbA){bVeG.audio.addEventListener(bVeG.events.audioEvents[gfbA],function(eBbe){bVeG.events.trigger(bVeG.events.audioEvents[gfbA],eBbe)})},eBbe=0;eBbe<this.events.audioEvents.length;eBbe++)gfbA(eBbe);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var bVeG=this;this.on("play",function(){bVeG.paused&&bVeG.setUIPlaying()}),this.on("pause",function(){bVeG.paused||bVeG.setUIPaused()}),this.on("timeupdate",function(){if(!bVeG.disableTimeupdate){bVeG.bar.set("played",bVeG.audio.currentTime/bVeG.duration,"width"),bVeG.lrc&&bVeG.lrc.update();var gfbA=gBdX.default.secondToTime(bVeG.audio.currentTime);bVeG.template.ptime.innerHTML!==gfbA&&(bVeG.template.ptime.innerHTML=gfbA)}}),this.on("durationchange",function(){1!==bVeG.duration&&(bVeG.template.dtime.innerHTML=gBdX.default.secondToTime(bVeG.duration))}),this.on("progress",function(){var gfbA=bVeG.audio.buffered.length?bVeG.audio.buffered.end(bVeG.audio.buffered.length-1)/bVeG.duration:0;bVeG.bar.set("loaded",gfbA,"width")});var gfbA=void 0;this.on("error",function(){bVeG.list.audios.length>1?(bVeG.notice("An audio error has occurred, player will skip forward in 2 seconds."),gfbA=setTimeout(function(){bVeG.skipForward(),bVeG.paused||bVeG.play()},2e3)):1===bVeG.list.audios.length&&bVeG.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){gfbA&&clearTimeout(gfbA)}),this.on("ended",function(){"none"===bVeG.options.loop?"list"===bVeG.options.order?bVeG.list.index<bVeG.list.audios.length-1?(bVeG.list.switch((bVeG.list.index+1)%bVeG.list.audios.length),bVeG.play()):(bVeG.list.switch((bVeG.list.index+1)%bVeG.list.audios.length),bVeG.pause()):"random"===bVeG.options.order&&(bVeG.randomOrder.indexOf(bVeG.list.index)<bVeG.randomOrder.length-1?(bVeG.list.switch(bVeG.nextIndex()),bVeG.play()):(bVeG.list.switch(bVeG.nextIndex()),bVeG.pause())):"one"===bVeG.options.loop?(bVeG.list.switch(bVeG.list.index),bVeG.play()):"all"===bVeG.options.loop&&(bVeG.skipForward(),bVeG.play())})}},{key:"setAudio",value:function(bVeG){this.hls&&(this.hls.destroy(),this.hls=null);var gfbA=bVeG.type;this.options.customAudioType&&this.options.customAudioType[gfbA]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[gfbA])?this.options.customAudioType[gfbA](this.audio,bVeG,this):console.error("Illegal customType: "+gfbA):(gfbA&&"auto"!==gfbA||(gfbA=/m3u8(#|\?|$)/i.exec(bVeG.url)?"hls":"normal"),"hls"===gfbA?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(bVeG.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=bVeG.url:this.notice("Error: HLS is not supported."):"normal"===gfbA&&(this.audio.src=bVeG.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var bVeG=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,gfbA=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[gfbA]&&(this.list.audios[gfbA].theme=bVeG),this.template.listCurs[gfbA]&&(this.template.listCurs[gfbA].style.backgroundColor=bVeG),gfbA===this.list.index&&(this.template.pic.style.backgroundColor=bVeG,this.template.played.style.background=bVeG,this.template.thumb.style.background=bVeG,this.template.volume.style.background=bVeG)}},{key:"seek",value:function(bVeG){bVeG=Math.max(bVeG,0),bVeG=Math.min(bVeG,this.duration),this.audio.currentTime=bVeG,this.bar.set("played",bVeG/this.duration,"width"),this.template.ptime.innerHTML=gBdX.default.secondToTime(bVeG)}},{key:"setUIPlaying",value:function(){var bVeG=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout(function(){bVeG.template.button.innerHTML=fGgO.default.pause},100),this.template.skipPlayButton.innerHTML=fGgO.default.pause),this.timer.enable("loading"),this.options.mutex)for(var gfbA=0;gfbA<eBbebVeG.length;gfbA++)this!==eBbebVeG[gfbA]&&eBbebVeG[gfbA].pause()}},{key:"play",value:function(){var bVeG=this;this.setUIPlaying();var gfbA=this.audio.play();gfbA&&gfbA.catch(function(gfbA){console.warn(gfbA),"NotAllowedError"===gfbA.name&&bVeG.setUIPaused()})}},{key:"setUIPaused",value:function(){var bVeG=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout(function(){bVeG.template.button.innerHTML=fGgO.default.play},100),this.template.skipPlayButton.innerHTML=fGgO.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=fGgO.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=fGgO.default.volumeDown:this.template.volumeButton.innerHTML=fGgO.default.volumeOff}},{key:"volume",value:function(bVeG,gfbA){return bVeG=parseFloat(bVeG),isNaN(bVeG)||(bVeG=Math.max(bVeG,0),bVeG=Math.min(bVeG,1),this.bar.set("volume",bVeG,"height"),gfbA||this.storage.set("volume",bVeG),this.audio.volume=bVeG,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(bVeG,gfbA){this.events.on(bVeG,gfbA)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(bVeG){this.list.switch(bVeG)}},{key:"addAudio",value:function(bVeG){this.list.add(bVeG)}},{key:"removeAudio",value:function(bVeG){this.list.remove(bVeG)}},{key:"destroy",value:function(){eBbebVeG.splice(eBbebVeG.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var bVeG=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=bVeG,"mini"===bVeG?this.container.classList.add("aplayer-narrow"):"normal"===bVeG&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(bVeG){var gfbA=this,eBbe=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,fMbb=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=bVeG,this.template.notice.style.opacity=fMbb,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:bVeG}),eBbe&&(this.noticeTime=setTimeout(function(){gfbA.template.notice.style.opacity=0,gfbA.events.trigger("noticehide")},eBbe))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var bVeG=this.randomOrder.indexOf(this.list.index);return 0===bVeG?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[bVeG-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var bVeG=this.randomOrder.indexOf(this.list.index);return bVeG===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[bVeG+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),bVeG}();gfbA.default=fMbbbVeG},,function(bVeG,gfbA,eBbe){},function(bVeG,gfbA,eBbe){"use strict";Object.defineProperty(gfbA,"__esModule",{value:!0}),eBbe(40);var fMbb,dccf=eBbe(38),gBdX=(fMbb=dccf)&&fMbb.__esModule?fMbb:{default:fMbb};console.log("\n %c APlayer v1.10.1 af84efb %c http://aplayer.js.org \n","color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),gfbA.default=gBdX.default}]).default});