From 4a054309a79ea467bbeafa4c1948f066cc001149 Mon Sep 17 00:00:00 2001 From: iotcat Date: Sun, 6 Sep 2020 10:02:44 +0800 Subject: [PATCH] block_setting --- dist/ushio-footer.js | 7 ++++--- dist/ushio-footer.min.js | 2 +- dist/ushio-footer.min.js.map | 2 +- ushio-footer.js | 7 ++++--- 4 files changed, 10 insertions(+), 8 deletions(-) diff --git a/dist/ushio-footer.js b/dist/ushio-footer.js index f7e42bd..e3beba8 100644 --- a/dist/ushio-footer.js +++ b/dist/ushio-footer.js @@ -786,8 +786,9 @@ page.setting={ }); } }; -page.setting.init(); - +if(typeof block_setting == "undefined"){ + page.setting.init(); +} /* session health */ SessionLastCntTime = new Date().valueOf(); @@ -816,5 +817,5 @@ function drawBrand(){ if(!session.status){ session_ajax_ini(); } - console.log('\n' + ' %c Ushio v3.4.3 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;'); + console.log('\n' + ' %c Ushio v3.4.4 %c ' + page.ip + ' %c '+ ((session.method == 'WebSocket')?'WebSocket':'Ajax') +' %c https://ushio.cool/ \n', 'color: #FFFFCC; background: #030307; padding:5px 0;', 'color: #FF99FF; background: #030307; padding:5px 0;', 'color: '+((session.method == 'WebSocket')?'#91FF3A':'#F8FF00')+'; background: #030307; padding:5px 0;', 'background: #4682B4; padding:5px 0;'); } \ No newline at end of file diff --git a/dist/ushio-footer.min.js b/dist/ushio-footer.min.js index d8a1bab..666de54 100644 --- a/dist/ushio-footer.min.js +++ b/dist/ushio-footer.min.js @@ -1,2 +1,2 @@ -if(!page.ushio){throw new Error("ushio::Ushio quitted!")}(function(e,t,n){"use strict";if(typeof window!=="undefined"&&typeof define==="function"&&define.amd){define(n)}else if(typeof module!=="undefined"&&module.exports){module.exports=n()}else if(t.exports){t.exports=n()}else{t[e]=n()}})("Fingerprint2",this,(function(){"use strict";if(typeof Array.isArray==="undefined"){Array.isArray=function(e){return Object.prototype.toString.call(e)==="[object Array]"}}var e=function(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];n[3]+=e[3]+t[3];n[2]+=n[3]>>>16;n[3]&=65535;n[2]+=e[2]+t[2];n[1]+=n[2]>>>16;n[2]&=65535;n[1]+=e[1]+t[1];n[0]+=n[1]>>>16;n[1]&=65535;n[0]+=e[0]+t[0];n[0]&=65535;return[n[0]<<16|n[1],n[2]<<16|n[3]]};var t=function(e,t){e=[e[0]>>>16,e[0]&65535,e[1]>>>16,e[1]&65535];t=[t[0]>>>16,t[0]&65535,t[1]>>>16,t[1]&65535];var n=[0,0,0,0];n[3]+=e[3]*t[3];n[2]+=n[3]>>>16;n[3]&=65535;n[2]+=e[2]*t[3];n[1]+=n[2]>>>16;n[2]&=65535;n[2]+=e[3]*t[2];n[1]+=n[2]>>>16;n[2]&=65535;n[1]+=e[1]*t[3];n[0]+=n[1]>>>16;n[1]&=65535;n[1]+=e[2]*t[2];n[0]+=n[1]>>>16;n[1]&=65535;n[1]+=e[3]*t[1];n[0]+=n[1]>>>16;n[1]&=65535;n[0]+=e[0]*t[3]+e[1]*t[2]+e[2]*t[1]+e[3]*t[0];n[0]&=65535;return[n[0]<<16|n[1],n[2]<<16|n[3]]};var n=function(e,t){t%=64;if(t===32){return[e[1],e[0]]}else if(t<32){return[e[0]<>>32-t,e[1]<>>32-t]}else{t-=32;return[e[1]<>>32-t,e[0]<>>32-t]}};var i=function(e,t){t%=64;if(t===0){return e}else if(t<32){return[e[0]<>>32-t,e[1]<>>1]);e=t(e,[4283543511,3981806797]);e=a(e,[0,e[0]>>>1]);e=t(e,[3301882366,444984403]);e=a(e,[0,e[0]>>>1]);return e};var r=function(r,s){r=r||"";s=s||0;var l=r.length%16;var u=r.length-l;var c=[0,s];var d=[0,s];var p=[0,0];var f=[0,0];var h=[2277735313,289559509];var g=[1291169091,658871167];for(var m=0;m>>0).toString(16)).slice(-8)+("00000000"+(c[1]>>>0).toString(16)).slice(-8)+("00000000"+(d[0]>>>0).toString(16)).slice(-8)+("00000000"+(d[1]>>>0).toString(16)).slice(-8)};var s={preprocessor:null,audio:{timeout:1e3,excludeIOS11:true},fonts:{swfContainerId:"fingerprintjs2",swfPath:"flash/compiled/FontList.swf",userDefinedFonts:[],extendedJsFonts:false},screen:{detectScreenOrientation:true},plugins:{sortPluginsFor:[/palemoon/i],excludeIE:false},extraComponents:[],excludes:{enumerateDevices:true,pixelRatio:true,doNotTrack:true,fontsFlash:true},NOT_AVAILABLE:"not available",ERROR:"error",EXCLUDED:"excluded"};var l=function(e,t){if(Array.prototype.forEach&&e.forEach===Array.prototype.forEach){e.forEach(t)}else if(e.length===+e.length){for(var n=0,i=e.length;nt.name){return 1}if(e.name=0){i="Windows Phone"}else if(e.indexOf("windows")>=0||e.indexOf("win16")>=0||e.indexOf("win32")>=0||e.indexOf("win64")>=0||e.indexOf("win95")>=0||e.indexOf("win98")>=0||e.indexOf("winnt")>=0||e.indexOf("wow64")>=0){i="Windows"}else if(e.indexOf("android")>=0){i="Android"}else if(e.indexOf("linux")>=0||e.indexOf("cros")>=0||e.indexOf("x11")>=0){i="Linux"}else if(e.indexOf("iphone")>=0||e.indexOf("ipad")>=0||e.indexOf("ipod")>=0||e.indexOf("crios")>=0||e.indexOf("fxios")>=0){i="iOS"}else if(e.indexOf("macintosh")>=0||e.indexOf("mac_powerpc)")>=0){i="Mac"}else{i="Other"}var a="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;if(a&&i!=="Windows"&&i!=="Windows Phone"&&i!=="Android"&&i!=="iOS"&&i!=="Other"&&e.indexOf("cros")===-1){return true}if(typeof t!=="undefined"){t=t.toLowerCase();if(t.indexOf("win")>=0&&i!=="Windows"&&i!=="Windows Phone"){return true}else if(t.indexOf("linux")>=0&&i!=="Linux"&&i!=="Android"){return true}else if(t.indexOf("mac")>=0&&i!=="Mac"&&i!=="iOS"){return true}else if((t.indexOf("win")===-1&&t.indexOf("linux")===-1&&t.indexOf("mac")===-1)!==(i==="Other")){return true}}if(n.indexOf("win")>=0&&i!=="Windows"&&i!=="Windows Phone"){return true}else if((n.indexOf("linux")>=0||n.indexOf("android")>=0||n.indexOf("pike")>=0)&&i!=="Linux"&&i!=="Android"){return true}else if((n.indexOf("mac")>=0||n.indexOf("ipad")>=0||n.indexOf("ipod")>=0||n.indexOf("iphone")>=0)&&i!=="Mac"&&i!=="iOS"){return true}else if(n.indexOf("arm")>=0&&i==="Windows Phone"){return false}else if(n.indexOf("pike")>=0&&e.indexOf("opera mini")>=0){return false}else{var o=n.indexOf("win")<0&&n.indexOf("linux")<0&&n.indexOf("mac")<0&&n.indexOf("iphone")<0&&n.indexOf("ipad")<0&&n.indexOf("ipod")<0;if(o!==(i==="Other")){return true}}return typeof navigator.plugins==="undefined"&&i!=="Windows"&&i!=="Windows Phone"};var de=function(){var e=navigator.userAgent.toLowerCase();var t=navigator.productSub;var n;if(e.indexOf("edge/")>=0||e.indexOf("iemobile/")>=0){return false}else if(e.indexOf("opera mini")>=0){return false}else if(e.indexOf("firefox/")>=0){n="Firefox"}else if(e.indexOf("opera/")>=0||e.indexOf(" opr/")>=0){n="Opera"}else if(e.indexOf("chrome/")>=0){n="Chrome"}else if(e.indexOf("safari/")>=0){if(e.indexOf("android 1.")>=0||e.indexOf("android 2.")>=0||e.indexOf("android 3.")>=0||e.indexOf("android 4.")>=0){n="AOSP"}else{n="Safari"}}else if(e.indexOf("trident/")>=0){n="Internet Explorer"}else{n="Other"}if((n==="Chrome"||n==="Safari"||n==="Opera")&&t!=="20030107"){return true}var i=eval.toString().length;if(i===37&&n!=="Safari"&&n!=="Firefox"&&n!=="Other"){return true}else if(i===39&&n!=="Internet Explorer"&&n!=="Other"){return true}else if(i===33&&n!=="Chrome"&&n!=="AOSP"&&n!=="Opera"&&n!=="Other"){return true}var a;try{throw"a"}catch(e){try{e.toSource();a=true}catch(e){a=false}}return a&&n!=="Firefox"&&n!=="Other"};var pe=function(){var e=document.createElement("canvas");return!!(e.getContext&&e.getContext("2d"))};var fe=function(){if(!pe()){return false}var e=we();var t=!!window.WebGLRenderingContext&&!!e;be(e);return t};var he=function(){if(navigator.appName==="Microsoft Internet Explorer"){return true}else if(navigator.appName==="Netscape"&&/Trident/.test(navigator.userAgent)){return true}return false};var ge=function(){return typeof window.swfobject!=="undefined"};var me=function(){return window.swfobject.hasFlashPlayerVersion("9.0.0")};var ve=function(e){var t=document.createElement("div");t.setAttribute("id",e.fonts.swfContainerId);document.body.appendChild(t)};var ye=function(e,t){var n="___fp_swf_loaded";window[n]=function(t){e(t)};var i=t.fonts.swfContainerId;ve();var a={onReady:n};var o={allowScriptAccess:"always",menu:"false"};window.swfobject.embedSWF(t.fonts.swfPath,i,"1","1","9.0.0",false,a,o,{})};var we=function(){var e=document.createElement("canvas");var t=null;try{t=e.getContext("webgl")||e.getContext("experimental-webgl")}catch(e){}if(!t){t=null}return t};var be=function(e){var t=e.getExtension("WEBGL_lose_context");if(t!=null){t.loseContext()}};var Te=[{key:"userAgent",getData:h},{key:"webdriver",getData:g},{key:"language",getData:m},{key:"colorDepth",getData:v},{key:"deviceMemory",getData:y},{key:"pixelRatio",getData:w},{key:"hardwareConcurrency",getData:J},{key:"screenResolution",getData:b},{key:"availableScreenResolution",getData:x},{key:"timezoneOffset",getData:L},{key:"timezone",getData:k},{key:"sessionStorage",getData:C},{key:"localStorage",getData:E},{key:"indexedDb",getData:O},{key:"addBehavior",getData:M},{key:"openDatabase",getData:A},{key:"cpuClass",getData:B},{key:"platform",getData:I},{key:"doNotTrack",getData:_},{key:"plugins",getData:W},{key:"canvas",getData:P},{key:"webgl",getData:N},{key:"webglVendorAndRenderer",getData:R},{key:"adBlock",getData:D},{key:"hasLiedLanguages",getData:F},{key:"hasLiedResolution",getData:H},{key:"hasLiedOs",getData:z},{key:"hasLiedBrowser",getData:q},{key:"touchSupport",getData:$},{key:"fonts",getData:U,pauseBefore:true},{key:"fontsFlash",getData:j,pauseBefore:true},{key:"audio",getData:f},{key:"enumerateDevices",getData:d}];var xe=function(e){throw new Error("'new Fingerprint()' is deprecated, see https://github.com/Valve/fingerprintjs2#upgrade-guide-from-182-to-200")};xe.get=function(e,t){if(!t){t=e;e={}}else if(!e){e={}}c(e,s);e.components=e.extraComponents.concat(Te);var n={data:[],addPreprocessedComponent:function(t,i){if(typeof e.preprocessor==="function"){i=e.preprocessor(t,i)}n.data.push({key:t,value:i})}};var i=-1;var a=function(o){i+=1;if(i>=e.components.length){t(n.data);return}var r=e.components[i];if(e.excludes[r.key]){a(false);return}if(!o&&r.pauseBefore){i-=1;setTimeout((function(){a(true)}),1);return}try{r.getData((function(e){n.addPreprocessedComponent(r.key,e);a(false)}),e)}catch(o){n.addPreprocessedComponent(r.key,String(o));a(false)}};a(false)};xe.getPromise=function(e){return new Promise((function(t,n){xe.get(e,t)}))};xe.getV18=function(e,t){if(t==null){t=e;e={}}return xe.get(e,(function(n){var i=[];for(var a=0;al.maxReconnectInterval?l.maxReconnectInterval:o)}},s.onmessage=function(t){(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",l.url,t.data);var n=a("message");n.data=t.data,d.dispatchEvent(n)},s.onerror=function(t){(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","onerror",l.url,t),d.dispatchEvent(a("error"))}},1==this.automaticOpen&&this.open(!1),this.send=function(t){if(s)return(l.debug||e.debugAll)&&console.debug("ReconnectingWebSocket","send",l.url,t),s.send(t);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(e,t){"undefined"==typeof e&&(e=1e3),u=!0,s&&s.close(e,t)},this.refresh=function(){s&&s.close()}}return e.prototype.onopen=function(){},e.prototype.onclose=function(){},e.prototype.onconnecting=function(){},e.prototype.onmessage=function(){},e.prototype.onerror=function(){},e.debugAll=!1,e.CONNECTING=WebSocket.CONNECTING,e.OPEN=WebSocket.OPEN,e.CLOSING=WebSocket.CLOSING,e.CLOSED=WebSocket.CLOSED,e}))}catch(e){}!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/",n(n.s=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t\n ',t+=o(n+s),t+='\n ',t+=o(e.name),t+='\n ',t+=o(e.artist),t+="\n\n"})),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=y(n(33)),a=y(n(32)),o=y(n(31)),r=y(n(30)),s=y(n(29)),l=y(n(28)),u=y(n(27)),c=y(n(26)),d=y(n(25)),p=y(n(24)),f=y(n(23)),h=y(n(22)),g=y(n(21)),m=y(n(20)),v=y(n(19));function y(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:o.default,volumeDown:r.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:d.default,loopOne:p.default,loopNone:f.default,loading:h.default,right:g.default,skip:m.default,lrc:v.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":o(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var o=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var r=parseInt(t);else var r=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,o);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(o,r,c,n):window.scroll(0,e(o,r,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,(function(e){location.replace("#"+e.id)}))}};return document.addEventListener("DOMContentLoaded",(function(){for(var e,t=document.querySelectorAll('a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)})),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=o.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=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;nt&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)}),100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])}))}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var n=0;n1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=o.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=o.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=o.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=o.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=o.default.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,o=(e.$value,e.$index,i.$escape);return n(a,(function(e,n){t+="\n \n"})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e=this.current[this.index+1][0])for(var t=0;t=this.current[t][0]&&(!this.current[t+1]||e=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,r.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,r.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,(function(e,t){return t+"\n["}))).split("\n"),n=[],i=t.length,a=0;a/g,"").replace(/^\s+|\s+$/g,"");if(o)for(var s=o.length,l=0;l]/;a.$escape=function(e){return function(e){var t=""+e,n=o.exec(t);if(!n)return e;var i="",a=void 0,r=void 0,s=void 0;for(a=n.index,r=0;a\n \n
',t+=s.play,t+='
\n \n \n
\n
\n\n
\n
\n
\n'):(t+='\n
\n
\n
',t+=s.play,t+='
\n
\n
\n
\n No audio\n \n
\n
\n
\n
\n
\n
\n
\n
\n
\n \n ',t+=s.loading,t+='\n \n
\n
\n
\n
\n \n 00:00 / 00:00\n \n \n ',t+=s.skip,t+='\n \n \n ',t+=s.play,t+='\n \n \n ',t+=s.skip,t+='\n \n
\n \n
\n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n
\n
\n
\n '},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t,n){"use strict";var i,a,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===r||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:r}catch(e){i=r}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],d=!1,p=-1;function f(){d&&u&&(d=!1,u.length?c=u.concat(c):p=-1,c.length&&h())}function h(){if(!d){var e=l(f);d=!0;for(var t=c.length;t;){for(u=c,c=[];++p1)for(var n=1;n=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function r(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof o)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,r=t,function(){a.apply(r,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,r}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&o._immediateFn((function(){e._handled||o._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t1&&this.container.classList.add("aplayer-withlist"),o.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 n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout((function(){e.skipForward(),e.paused||e.play()}),2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){t&&clearTimeout(t)})),this.on("ended",(function(){"none"===e.options.loop?"list"===e.options.order?e.list.index0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=o.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=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(){e.template.button.innerHTML=r.default.pause}),100),this.template.skipPlayButton.innerHTML=r.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t=.95?this.template.volumeButton.innerHTML=r.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=r.default.volumeDown:this.template.volumeButton.innerHTML=r.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{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(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){v.splice(v.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")}),n))}},{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 e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-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 e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+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"}}]),e}();t.default=y},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=n(38),o=(i=a)&&i.__esModule?i:{default:i};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;"),t.default=o.default}]).default}));if(typeof block_tips=="undefined"){!function(e,t){"function"==typeof define&&define.amd?define([],t(e)):"object"==typeof exports?module.exports=t(e):e.tipsObj=t(e)}("undefined"!=typeof global?global:window||this.window||this.global,(function(e){"use strict";var t={},n="iziToast",i=(document.querySelector("body"),!!/Mobi/.test(navigator.userAgent)),a=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor),o="undefined"!=typeof InstallTrigger,r="ontouchstart"in document.documentElement,s=["bottomRight","bottomLeft","bottomCenter","topRight","topLeft","topCenter","center"],l={info:{color:"blue",icon:"ico-info"},success:{color:"green",icon:"ico-success"},warning:{color:"orange",icon:"ico-warning"},error:{color:"red",icon:"ico-error"},question:{color:"yellow",icon:"ico-question"}},u=568,c={};t.children={};var d={id:null,class:"",title:"",titleColor:"",titleSize:"",titleLineHeight:"",message:"",messageColor:"",messageSize:"",messageLineHeight:"",backgroundColor:"",theme:"light",color:"",icon:"",iconText:"",iconColor:"",iconUrl:null,image:"",imageWidth:50,maxWidth:null,zindex:null,layout:1,balloon:!1,close:!0,closeOnEscape:!1,closeOnClick:!1,displayMode:0,position:"bottomRight",target:"",targetFirst:!0,timeout:5e3,rtl:!1,animateInside:!0,drag:!0,pauseOnHover:!0,resetOnHover:!1,progressBar:!0,progressBarColor:"",progressBarEasing:"linear",overlay:!1,overlayClose:!1,overlayColor:"rgba(0, 0, 0, 0.6)",transitionIn:"fadeInUp",transitionOut:"fadeOut",transitionInMobile:"fadeInUp",transitionOutMobile:"fadeOutDown",buttons:{},inputs:{},onOpening:function(){},onOpened:function(){},onClosing:function(){},onClosed:function(){}};if("remove"in Element.prototype||(Element.prototype.remove=function(){this.parentNode&&this.parentNode.removeChild(this)}),"function"!=typeof window.CustomEvent){var p=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n};p.prototype=window.Event.prototype,window.CustomEvent=p}var f=function(e,t,n){if("[object Object]"===Object.prototype.toString.call(e))for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(n,e[i],i,e);else if(e)for(var a=0,o=e.length;o>a;a++)t.call(n,e[a],a,e)},h=function(e,t){var n={};return f(e,(function(t,i){n[i]=e[i]})),f(t,(function(e,i){n[i]=t[i]})),n},g=function(e){var t=document.createDocumentFragment(),n=document.createElement("div");for(n.innerHTML=e;n.firstChild;)t.appendChild(n.firstChild);return t},m=function(e){var t=btoa(encodeURIComponent(e));return t.replace(/=/g,"")},v=function(e){return"#"==e.substring(0,1)||"rgb"==e.substring(0,3)||"hsl"==e.substring(0,3)},y=function(e){try{return btoa(atob(e))==e}catch(e){return!1}},w=function(){return{move:function(e,t,i,r){var s,l=.3,u=180;0!==r&&(e.classList.add(n+"-dragged"),e.style.transform="translateX("+r+"px)",r>0?(s=(u-r)/u,l>s&&t.hide(h(i,{transitionOut:"fadeOutRight",transitionOutMobile:"fadeOutRight"}),e,"drag")):(s=(u+r)/u,l>s&&t.hide(h(i,{transitionOut:"fadeOutLeft",transitionOutMobile:"fadeOutLeft"}),e,"drag")),e.style.opacity=s,l>s&&((a||o)&&(e.style.left=r+"px"),e.parentNode.style.opacity=l,this.stopMoving(e,null)))},startMoving:function(e,t,n,i){i=i||window.event;var a=r?i.touches[0].clientX:i.clientX,o=e.style.transform.replace("px)","");o=o.replace("translateX(","");var s=a-o;n.transitionIn&&e.classList.remove(n.transitionIn),n.transitionInMobile&&e.classList.remove(n.transitionInMobile),e.style.transition="",r?document.ontouchmove=function(i){i.preventDefault(),i=i||window.event;var a=i.touches[0].clientX,o=a-s;w.move(e,t,n,o)}:document.onmousemove=function(i){i.preventDefault(),i=i||window.event;var a=i.clientX,o=a-s;w.move(e,t,n,o)}},stopMoving:function(e,t){r?document.ontouchmove=function(){}:document.onmousemove=function(){},e.style.opacity="",e.style.transform="",e.classList.contains(n+"-dragged")&&(e.classList.remove(n+"-dragged"),e.style.transition="transform 0.4s ease, opacity 0.4s ease",setTimeout((function(){e.style.transition=""}),400))}}}();return t.setSetting=function(e,n,i){t.children[e][n]=i},t.getSetting=function(e,n){return t.children[e][n]},t.destroy=function(){f(document.querySelectorAll("."+n+"-overlay"),(function(e,t){e.remove()})),f(document.querySelectorAll("."+n+"-wrapper"),(function(e,t){e.remove()})),f(document.querySelectorAll("."+n),(function(e,t){e.remove()})),this.children={},document.removeEventListener(n+"-opened",{},!1),document.removeEventListener(n+"-opening",{},!1),document.removeEventListener(n+"-closing",{},!1),document.removeEventListener(n+"-closed",{},!1),document.removeEventListener("keyup",{},!1),c={}},t.settings=function(e){t.destroy(),c=e,d=h(d,e||{})},f(l,(function(e,n){t[n]=function(t){var n=h(c,t||{});n=h(e,n||{}),this.show(n)}})),t.progress=function(e,t,i){var a=this,o=t.getAttribute("data-iziToast-ref"),r=h(this.children[o],e||{}),s=t.querySelector("."+n+"-progressbar div");return{start:function(){"undefined"==typeof r.time.REMAINING&&(t.classList.remove(n+"-reseted"),null!==s&&(s.style.transition="width "+r.timeout+"ms "+r.progressBarEasing,s.style.width="0%"),r.time.START=(new Date).getTime(),r.time.END=r.time.START+r.timeout,r.time.TIMER=setTimeout((function(){clearTimeout(r.time.TIMER),t.classList.contains(n+"-closing")||(a.hide(r,t,"timeout"),"function"==typeof i&&i.apply(a))}),r.timeout),a.setSetting(o,"time",r.time))},pause:function(){if("undefined"!=typeof r.time.START&&!t.classList.contains(n+"-paused")&&!t.classList.contains(n+"-reseted")){if(t.classList.add(n+"-paused"),r.time.REMAINING=r.time.END-(new Date).getTime(),clearTimeout(r.time.TIMER),a.setSetting(o,"time",r.time),null!==s){var e=window.getComputedStyle(s),l=e.getPropertyValue("width");s.style.transition="none",s.style.width=l}"function"==typeof i&&setTimeout((function(){i.apply(a)}),10)}},resume:function(){"undefined"!=typeof r.time.REMAINING?(t.classList.remove(n+"-paused"),null!==s&&(s.style.transition="width "+r.time.REMAINING+"ms "+r.progressBarEasing,s.style.width="0%"),r.time.END=(new Date).getTime()+r.time.REMAINING,r.time.TIMER=setTimeout((function(){clearTimeout(r.time.TIMER),t.classList.contains(n+"-closing")||(a.hide(r,t,"timeout"),"function"==typeof i&&i.apply(a))}),r.time.REMAINING),a.setSetting(o,"time",r.time)):this.start()},reset:function(){clearTimeout(r.time.TIMER),delete r.time.REMAINING,a.setSetting(o,"time",r.time),t.classList.add(n+"-reseted"),t.classList.remove(n+"-paused"),null!==s&&(s.style.transition="none",s.style.width="100%"),"function"==typeof i&&setTimeout((function(){i.apply(a)}),10)}}},t.hide=function(e,t,a){"object"!=typeof t&&(t=document.querySelector(t));var o=this,r=h(this.children[t.getAttribute("data-iziToast-ref")],e||{});r.closedBy=a||null,delete r.time.REMAINING,t.classList.add(n+"-closing"),function(){var e=document.querySelector("."+n+"-overlay");if(null!==e){var t=e.getAttribute("data-iziToast-ref");t=t.split(",");var i=t.indexOf(String(r.ref));-1!==i&&t.splice(i,1),e.setAttribute("data-iziToast-ref",t.join()),0===t.length&&(e.classList.remove("fadeIn"),e.classList.add("fadeOut"),setTimeout((function(){e.remove()}),700))}}(),r.transitionIn&&t.classList.remove(r.transitionIn),r.transitionInMobile&&t.classList.remove(r.transitionInMobile),i||window.innerWidth<=u?r.transitionOutMobile&&t.classList.add(r.transitionOutMobile):r.transitionOut&&t.classList.add(r.transitionOut);var s=t.parentNode.offsetHeight;t.parentNode.style.height=s+"px",t.style.pointerEvents="none",(!i||window.innerWidth>u)&&(t.parentNode.style.transitionDelay="0.2s");try{var l=new CustomEvent(n+"-closing",{detail:r,bubbles:!0,cancelable:!0});document.dispatchEvent(l)}catch(e){console.warn(e)}setTimeout((function(){t.parentNode.style.height="0px",t.parentNode.style.overflow="",setTimeout((function(){delete o.children[r.ref],t.parentNode.remove();try{var e=new CustomEvent(n+"-closed",{detail:r,bubbles:!0,cancelable:!0});document.dispatchEvent(e)}catch(e){console.warn(e)}"undefined"!=typeof r.onClosed&&r.onClosed.apply(null,[r,t,a])}),1e3)}),200),"undefined"!=typeof r.onClosing&&r.onClosing.apply(null,[r,t,a])},t.show=function(e){var a=this,o=h(c,e||{});if(o=h(d,o),o.time={},null===o.id&&(o.id=m(o.title+o.message+o.color)),1===o.displayMode||"once"==o.displayMode)try{if(document.querySelectorAll("."+n+"#"+o.id).length>0)return!1}catch(e){console.warn("["+n+"] Could not find an element with this selector: #"+o.id+". Try to set an valid id.")}if(2===o.displayMode||"replace"==o.displayMode)try{f(document.querySelectorAll("."+n+"#"+o.id),(function(e,t){a.hide(o,e,"replaced")}))}catch(e){console.warn("["+n+"] Could not find an element with this selector: #"+o.id+". Try to set an valid id.")}o.ref=(new Date).getTime()+Math.floor(1e7*Math.random()+1),t.children[o.ref]=o;var l={body:document.querySelector("body"),overlay:document.createElement("div"),toast:document.createElement("div"),toastBody:document.createElement("div"),toastTexts:document.createElement("div"),toastCapsule:document.createElement("div"),cover:document.createElement("div"),buttons:document.createElement("div"),inputs:document.createElement("div"),icon:o.iconUrl?document.createElement("img"):document.createElement("i"),wrapper:null};l.toast.setAttribute("data-iziToast-ref",o.ref),l.toast.appendChild(l.toastBody),l.toastCapsule.appendChild(l.toast),function(){if(l.toast.classList.add(n),l.toast.classList.add(n+"-opening"),l.toastCapsule.classList.add(n+"-capsule"),l.toastBody.classList.add(n+"-body"),l.toastTexts.classList.add(n+"-texts"),i||window.innerWidth<=u?o.transitionInMobile&&l.toast.classList.add(o.transitionInMobile):o.transitionIn&&l.toast.classList.add(o.transitionIn),o["class"]){var e=o["class"].split(" ");f(e,(function(e,t){l.toast.classList.add(e)}))}o.id&&(l.toast.id=o.id),o.rtl&&(l.toast.classList.add(n+"-rtl"),l.toast.setAttribute("dir","rtl")),o.layout>1&&l.toast.classList.add(n+"-layout"+o.layout),o.balloon&&l.toast.classList.add(n+"-balloon"),o.maxWidth&&(isNaN(o.maxWidth)?l.toast.style.maxWidth=o.maxWidth:l.toast.style.maxWidth=o.maxWidth+"px"),""===o.theme&&"light"===o.theme||l.toast.classList.add(n+"-theme-"+o.theme),o.color&&(v(o.color)?l.toast.style.background=o.color:l.toast.classList.add(n+"-color-"+o.color)),o.backgroundColor&&(l.toast.style.background=o.backgroundColor,o.balloon&&(l.toast.style.borderColor=o.backgroundColor))}(),function(){o.image&&(l.cover.classList.add(n+"-cover"),l.cover.style.width=o.imageWidth+"px",y(o.image.replace(/ /g,""))?l.cover.style.backgroundImage="url(data:image/png;base64,"+o.image.replace(/ /g,"")+")":l.cover.style.backgroundImage="url("+o.image+")",o.rtl?l.toastBody.style.marginRight=o.imageWidth+10+"px":l.toastBody.style.marginLeft=o.imageWidth+10+"px",l.toast.appendChild(l.cover))}(),function(){o.close?(l.buttonClose=document.createElement("button"),l.buttonClose.type="button",l.buttonClose.classList.add(n+"-close"),l.buttonClose.addEventListener("click",(function(e){e.target;a.hide(o,l.toast,"button")})),l.toast.appendChild(l.buttonClose)):o.rtl?l.toast.style.paddingLeft="18px":l.toast.style.paddingRight="18px"}(),function(){o.progressBar&&(l.progressBar=document.createElement("div"),l.progressBarDiv=document.createElement("div"),l.progressBar.classList.add(n+"-progressbar"),l.progressBarDiv.style.background=o.progressBarColor,l.progressBar.appendChild(l.progressBarDiv),l.toast.appendChild(l.progressBar)),o.timeout&&(o.pauseOnHover&&!o.resetOnHover&&(l.toast.addEventListener("mouseenter",(function(e){a.progress(o,l.toast).pause()})),l.toast.addEventListener("mouseleave",(function(e){a.progress(o,l.toast).resume()}))),o.resetOnHover&&(l.toast.addEventListener("mouseenter",(function(e){a.progress(o,l.toast).reset()})),l.toast.addEventListener("mouseleave",(function(e){a.progress(o,l.toast).start()}))))}(),function(){o.iconUrl?(l.icon.setAttribute("class",n+"-icon"),l.icon.setAttribute("src",o.iconUrl)):o.icon&&(l.icon.setAttribute("class",n+"-icon "+o.icon),o.iconText&&l.icon.appendChild(document.createTextNode(o.iconText)),o.iconColor&&(l.icon.style.color=o.iconColor)),(o.icon||o.iconUrl)&&(o.rtl?l.toastBody.style.paddingRight="33px":l.toastBody.style.paddingLeft="33px",l.toastBody.appendChild(l.icon))}(),function(){o.title.length>0&&(l.strong=document.createElement("strong"),l.strong.classList.add(n+"-title"),l.strong.appendChild(g(o.title)),l.toastTexts.appendChild(l.strong),o.titleColor&&(l.strong.style.color=o.titleColor),o.titleSize&&(isNaN(o.titleSize)?l.strong.style.fontSize=o.titleSize:l.strong.style.fontSize=o.titleSize+"px"),o.titleLineHeight&&(isNaN(o.titleSize)?l.strong.style.lineHeight=o.titleLineHeight:l.strong.style.lineHeight=o.titleLineHeight+"px")),o.message.length>0&&(l.p=document.createElement("p"),l.p.classList.add(n+"-message"),l.p.appendChild(g(o.message)),l.toastTexts.appendChild(l.p),o.messageColor&&(l.p.style.color=o.messageColor),o.messageSize&&(isNaN(o.titleSize)?l.p.style.fontSize=o.messageSize:l.p.style.fontSize=o.messageSize+"px"),o.messageLineHeight&&(isNaN(o.titleSize)?l.p.style.lineHeight=o.messageLineHeight:l.p.style.lineHeight=o.messageLineHeight+"px")),o.title.length>0&&o.message.length>0&&(o.rtl?l.strong.style.marginLeft="10px":2===o.layout||o.rtl||(l.strong.style.marginRight="10px"))}(),l.toastBody.appendChild(l.toastTexts);var p;!function(){o.inputs.length>0&&(l.inputs.classList.add(n+"-inputs"),f(o.inputs,(function(e,t){l.inputs.appendChild(g(e[0])),p=l.inputs.childNodes,p[t].classList.add(n+"-inputs-child"),e[3]&&setTimeout((function(){p[t].focus()}),300),p[t].addEventListener(e[1],(function(t){var n=e[2];return n(a,l.toast,this,t)}))})),l.toastBody.appendChild(l.inputs))}(),function(){o.buttons.length>0&&(l.buttons.classList.add(n+"-buttons"),f(o.buttons,(function(e,t){l.buttons.appendChild(g(e[0]));var i=l.buttons.childNodes;i[t].classList.add(n+"-buttons-child"),e[2]&&setTimeout((function(){i[t].focus()}),300),i[t].addEventListener("click",(function(t){t.preventDefault();var n=e[1];return n(a,l.toast,this,t,p)}))}))),l.toastBody.appendChild(l.buttons)}(),o.message.length>0&&(o.inputs.length>0||o.buttons.length>0)&&(l.p.style.marginBottom="0"),(o.inputs.length>0||o.buttons.length>0)&&(o.rtl?l.toastTexts.style.marginLeft="10px":l.toastTexts.style.marginRight="10px",o.inputs.length>0&&o.buttons.length>0&&(o.rtl?l.inputs.style.marginLeft="8px":l.inputs.style.marginRight="8px")),function(){l.toastCapsule.style.visibility="hidden",setTimeout((function(){var e=l.toast.offsetHeight,t=l.toast.currentStyle||window.getComputedStyle(l.toast),n=t.marginTop;n=n.split("px"),n=parseInt(n[0]);var i=t.marginBottom;i=i.split("px"),i=parseInt(i[0]),l.toastCapsule.style.visibility="",l.toastCapsule.style.height=e+i+n+"px",setTimeout((function(){l.toastCapsule.style.height="auto",o.target&&(l.toastCapsule.style.overflow="visible")}),500),o.timeout&&a.progress(o,l.toast).start()}),100)}(),function(){var e=o.position;if(o.target)l.wrapper=document.querySelector(o.target),l.wrapper.classList.add(n+"-target"),o.targetFirst?l.wrapper.insertBefore(l.toastCapsule,l.wrapper.firstChild):l.wrapper.appendChild(l.toastCapsule);else{if(-1==s.indexOf(o.position))return void console.warn("["+n+"] Incorrect position.\nIt can be › "+s);e=i||window.innerWidth<=u?"bottomLeft"==o.position||"bottomRight"==o.position||"bottomCenter"==o.position?n+"-wrapper-bottomCenter":"topLeft"==o.position||"topRight"==o.position||"topCenter"==o.position?n+"-wrapper-topCenter":n+"-wrapper-center":n+"-wrapper-"+e,l.wrapper=document.querySelector("."+n+"-wrapper."+e),l.wrapper||(l.wrapper=document.createElement("div"),l.wrapper.classList.add(n+"-wrapper"),l.wrapper.classList.add(e),document.body.appendChild(l.wrapper)),"topLeft"==o.position||"topCenter"==o.position||"topRight"==o.position?l.wrapper.insertBefore(l.toastCapsule,l.wrapper.firstChild):l.wrapper.appendChild(l.toastCapsule)}isNaN(o.zindex)?console.warn("["+n+"] Invalid zIndex."):l.wrapper.style.zIndex=o.zindex}(),function(){o.overlay&&(null!==document.querySelector("."+n+"-overlay.fadeIn")?(l.overlay=document.querySelector("."+n+"-overlay"),l.overlay.setAttribute("data-iziToast-ref",l.overlay.getAttribute("data-iziToast-ref")+","+o.ref),isNaN(o.zindex)||null===o.zindex||(l.overlay.style.zIndex=o.zindex-1)):(l.overlay.classList.add(n+"-overlay"),l.overlay.classList.add("fadeIn"),l.overlay.style.background=o.overlayColor,l.overlay.setAttribute("data-iziToast-ref",o.ref),isNaN(o.zindex)||null===o.zindex||(l.overlay.style.zIndex=o.zindex-1),document.querySelector("body").appendChild(l.overlay)),o.overlayClose?(l.overlay.removeEventListener("click",{}),l.overlay.addEventListener("click",(function(e){a.hide(o,l.toast,"overlay")}))):l.overlay.removeEventListener("click",{}))}(),function(){if(o.animateInside){l.toast.classList.add(n+"-animateInside");var e=[200,100,300];"bounceInLeft"!=o.transitionIn&&"bounceInRight"!=o.transitionIn||(e=[400,200,400]),o.title.length>0&&setTimeout((function(){l.strong.classList.add("slideIn")}),e[0]),o.message.length>0&&setTimeout((function(){l.p.classList.add("slideIn")}),e[1]),(o.icon||o.iconUrl)&&setTimeout((function(){l.icon.classList.add("revealIn")}),e[2]);var t=150;o.buttons.length>0&&l.buttons&&setTimeout((function(){f(l.buttons.childNodes,(function(e,n){setTimeout((function(){e.classList.add("revealIn")}),t),t+=150}))}),o.inputs.length>0?150:0),o.inputs.length>0&&l.inputs&&(t=150,f(l.inputs.childNodes,(function(e,n){setTimeout((function(){e.classList.add("revealIn")}),t),t+=150})))}}(),o.onOpening.apply(null,[o,l.toast]);try{var b=new CustomEvent(n+"-opening",{detail:o,bubbles:!0,cancelable:!0});document.dispatchEvent(b)}catch(e){console.warn(e)}setTimeout((function(){l.toast.classList.remove(n+"-opening"),l.toast.classList.add(n+"-opened");try{var e=new CustomEvent(n+"-opened",{detail:o,bubbles:!0,cancelable:!0});document.dispatchEvent(e)}catch(e){console.warn(e)}o.onOpened.apply(null,[o,l.toast])}),1e3),o.drag&&(r?(l.toast.addEventListener("touchstart",(function(e){w.startMoving(this,a,o,e)}),!1),l.toast.addEventListener("touchend",(function(e){w.stopMoving(this,e)}),!1)):(l.toast.addEventListener("mousedown",(function(e){e.preventDefault(),w.startMoving(this,a,o,e)}),!1),l.toast.addEventListener("mouseup",(function(e){e.preventDefault(),w.stopMoving(this,e)}),!1))),o.closeOnEscape&&document.addEventListener("keyup",(function(e){e=e||window.event,27==e.keyCode&&a.hide(o,l.toast,"esc")})),o.closeOnClick&&l.toast.addEventListener("click",(function(e){a.hide(o,l.toast,"toast")})),a.toast=l.toast},t}))}if(typeof block_md5=="undefined")document.write('