@everymatrix/bonus-powerups-ingame-list 0.0.34 → 0.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{r as t,c as e,h as i}from"./index-e015b33d.js";import{t as s,C as a,a as o,h as n}from"./bonus-powerups-ingame-list-9d11db33.js";export{B as bonus_powerups_ingame_list}from"./bonus-powerups-ingame-list-9d11db33.js";const r=class{constructor(i){t(this,i),this.activePowerupEvent=e(this,"activePowerupEvent",7),this.pid=void 0,this.language="en",this.isOpen=void 0}activeNow(){this.closeModal(this.pid)}closeModal(t){this.isOpen=!1,this.activePowerupEvent.emit({id:t})}render(){return i("div",{key:"25543e4f879bca50c5e718b30111c6787126179e",class:"ModalContainer "+(this.isOpen?"Shown":"Hidden")},i("div",{key:"f12ee04cdeca841d85e96ad9dd9dbd485401849f",class:"TopBar"},i("div",{key:"94d650f1068fce10dad3a03d66d12c1c649b4595",class:"IconBtn CircleLinearBorder",onClick:()=>this.closeModal(),innerHTML:a})),i("div",{key:"4fc473ba99f996a08885666ea72c838c3bde9a5a",class:"Title"},s("activeTitle",this.language)),i("div",{key:"bc2c939de2a4caaa0a6042788d2bff0d93e142b9",class:"ActivePowerupContent"},s("activeContent",this.language)),i("div",{key:"5cd6df02b0fe15fbc3c3e95e66c7f4936c21dce3",class:"Btns"},i("div",{key:"6e756a744fe6c60ef822b1629e4d586511f6136a",class:"LaterBtn PowupBtn",onClick:()=>this.closeModal()}," ",s("later",this.language)," "),i("div",{key:"daa8c4e16befdd53551fb4760d8b5af4ad66b833",class:"Active PowupBtn",onClick:()=>this.activeNow()}," ",s("activateNow",this.language)," ")))}};r.style=".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";const d=class{constructor(i){t(this,i),this.timeCountDownEvent=e(this,"powerupTimeCountDown",7),this.expireTime=void 0,this.language="en",this.mode="timePeriod",this.inProgress=!1,this.leftRounds=void 0,this.displayTime=void 0,this.isExpireInDay1=!1,this.timeLeft=void 0}componentWillLoad(){this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS||(this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime())}disconnectedCallback(){clearInterval(this.timer)}timeLeftChanged(){this.timeLeft>0||this.timeLeft<-10||this.timeCountDownEvent.emit({type:"powerupTimeCountDown",timeLeft:this.timeLeft})}startTimeChanged(){this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS||(clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime())}updateDisplayTime(){const t=n(),e=n(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=n.duration(e.diff(t));if(this.isExpireInDay1=!0,this.timeLeft=i.asMinutes(),i.asMilliseconds()<=0)return this.displayTime="00:00:00",this.timeLeft=0,void clearInterval(this.timer);const a=Math.floor(i.asHours());if(a>=48)this.displayTime=`${Math.floor(i.asDays())} ${s("days",this.language)}`;else if(a>=24)this.displayTime=`1 ${s("day",this.language)}`;else{const t=a,e=i.minutes(),s=i.seconds();this.displayTime=[t,e,s].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return[this.inProgress&&i("div",{key:"353e5035808ab07ab05947089117cda17cc00865",class:"InprogressLabel"},i("span",{key:"b199da400374669838bcfec1e83952494ffcfdbd",class:"Icon"}),s("inProgress",this.language)),i("span",{key:"fad67125de31a5e9f0394afcc693a206b98bbd8b",class:"Label"},s(this.inProgress?"endsIn":"expiresIn",this.language)," "),this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS?i("span",{class:"TimeCountDown"},this.leftRounds," ",s(this.leftRounds>1?"rounds":"round",this.language)):i("span",{class:"TimeCountDown"},this.displayTime)]}static get watchers(){return{timeLeft:["timeLeftChanged"],expireTime:["startTimeChanged"]}}};export{r as active_confirm_modal,d as time_count}
1
+ import{r as t,c as e,h as i}from"./index-e015b33d.js";import{t as s,C as a,a as o,h as n}from"./bonus-powerups-ingame-list-0ec31d98.js";export{B as bonus_powerups_ingame_list}from"./bonus-powerups-ingame-list-0ec31d98.js";const r=class{constructor(i){t(this,i),this.activePowerupEvent=e(this,"activePowerupEvent",7),this.pid=void 0,this.language="en",this.isOpen=void 0}activeNow(){this.closeModal(this.pid)}closeModal(t){this.isOpen=!1,this.activePowerupEvent.emit({id:t})}render(){return i("div",{key:"25543e4f879bca50c5e718b30111c6787126179e",class:"ModalContainer "+(this.isOpen?"Shown":"Hidden")},i("div",{key:"f12ee04cdeca841d85e96ad9dd9dbd485401849f",class:"TopBar"},i("div",{key:"94d650f1068fce10dad3a03d66d12c1c649b4595",class:"IconBtn CircleLinearBorder",onClick:()=>this.closeModal(),innerHTML:a})),i("div",{key:"4fc473ba99f996a08885666ea72c838c3bde9a5a",class:"Title"},s("activeTitle",this.language)),i("div",{key:"bc2c939de2a4caaa0a6042788d2bff0d93e142b9",class:"ActivePowerupContent"},s("activeContent",this.language)),i("div",{key:"5cd6df02b0fe15fbc3c3e95e66c7f4936c21dce3",class:"Btns"},i("div",{key:"6e756a744fe6c60ef822b1629e4d586511f6136a",class:"LaterBtn PowupBtn",onClick:()=>this.closeModal()}," ",s("later",this.language)," "),i("div",{key:"daa8c4e16befdd53551fb4760d8b5af4ad66b833",class:"Active PowupBtn",onClick:()=>this.activeNow()}," ",s("activateNow",this.language)," ")))}};r.style=".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";const d=class{constructor(i){t(this,i),this.timeCountDownEvent=e(this,"powerupTimeCountDown",7),this.expireTime=void 0,this.language="en",this.mode="timePeriod",this.inProgress=!1,this.leftRounds=void 0,this.displayTime=void 0,this.isExpireInDay1=!1,this.timeLeft=void 0}componentWillLoad(){this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS||(this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime())}disconnectedCallback(){clearInterval(this.timer)}timeLeftChanged(){this.timeLeft>0||this.timeLeft<-10||this.timeCountDownEvent.emit({type:"powerupTimeCountDown",timeLeft:this.timeLeft})}startTimeChanged(){this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS||(clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime())}updateDisplayTime(){const t=n(),e=n(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=n.duration(e.diff(t));if(this.isExpireInDay1=!0,this.timeLeft=i.asMinutes(),i.asMilliseconds()<=0)return this.displayTime="00:00:00",this.timeLeft=0,void clearInterval(this.timer);const a=Math.floor(i.asHours());if(a>=48)this.displayTime=`${Math.floor(i.asDays())} ${s("days",this.language)}`;else if(a>=24)this.displayTime=`1 ${s("day",this.language)}`;else{const t=a,e=i.minutes(),s=i.seconds();this.displayTime=[t,e,s].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return[this.inProgress&&i("div",{key:"353e5035808ab07ab05947089117cda17cc00865",class:"InprogressLabel"},i("span",{key:"b199da400374669838bcfec1e83952494ffcfdbd",class:"Icon"}),s("inProgress",this.language)),i("span",{key:"fad67125de31a5e9f0394afcc693a206b98bbd8b",class:"Label"},s(this.inProgress?"endsIn":"expiresIn",this.language)," "),this.inProgress&&this.mode===o.NUMBER_OF_ROUNDS?i("span",{class:"TimeCountDown"},this.leftRounds," ",s(this.leftRounds>1?"rounds":"round",this.language)):i("span",{class:"TimeCountDown"},this.displayTime)]}static get watchers(){return{timeLeft:["timeLeftChanged"],expireTime:["startTimeChanged"]}}};export{r as active_confirm_modal,d as time_count}
@@ -1,3 +1,3 @@
1
1
  import{r as t,c as n,h as i}from"./index-e015b33d.js";const e="__WIDGET_GLOBAL_STYLE_CACHE__";function r(t,n){if(t){const i=document.createElement("style");i.innerHTML=n,t.appendChild(i)}}function s(t,n){if(!t||!n)return;const i=new URL(n);fetch(i.href).then((t=>t.text())).then((n=>{const i=document.createElement("style");i.innerHTML=n,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function o(t,n,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(t,n){const i=document.createElement("style");return window.emMessageBus.subscribe(n,(n=>{t&&(i.innerHTML=n,t.appendChild(i))}))}(t,n),i;window[e]||(window[e]={}),i=function(t,n){return window.emMessageBus.subscribe(n,(i=>{if(!t)return;const r=t.getRootNode(),s=window[e];let o=s[n]&&s[n].sheet;o?s[n].refCount=s[n].refCount+1:(o=new CSSStyleSheet,o.replaceSync(i),s[n]={sheet:o,refCount:1});const a=r.adoptedStyleSheets||[];a.includes(o)||(r.adoptedStyleSheets=[...a,o])}))}(t,n);const s=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[e][n]){const t=window[e][n];t.refCount>1?t.refCount=t.refCount-1:delete window[e][n]}s()},i}const a={en:{powerups:"Power-ups",activate:"Activate",expiresIn:"Expires in - ",inProgress:"In Progress",endsIn:"Ends in - ",xp:"XP",coins:"Coins",minutes:"min",rounds:"Rounds",days:"Days",round:"Round",day:"Day",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",poweringTooltip:"Power-ups are currently unavailable as you have already activated one power-up. Only one power-up can be active at a time.",later:"Later",activateNow:"Activate Now",activeTitle:"Activate power-up?",activeContent:"In case of activation the countdown starts immediately.\n Are you sure you want to activate?"}},u=t=>new Promise((n=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((n=>{a[n]||(a[n]={});for(let i in t[n])a[n][i]=t[n][i]})),n(!0)}))})),h=(t,n,i)=>{let e=a[void 0!==n&&n in a?n:"en"][t];if(void 0!==i)for(const[t,n]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");e=e.replace(i,n)}return e};var d,c,l,f,m;function p(){return f.apply(null,arguments)}function g(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function w(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function v(t,n){return Object.prototype.hasOwnProperty.call(t,n)}function C(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var n;for(n in t)if(v(t,n))return!1;return!0}function y(t){return void 0===t}function M(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function Y(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function b(t,n){var i,e=[],r=t.length;for(i=0;i<r;++i)e.push(n(t[i],i));return e}function D(t,n){for(var i in n)v(n,i)&&(t[i]=n[i]);return v(n,"toString")&&(t.toString=n.toString),v(n,"valueOf")&&(t.valueOf=n.valueOf),t}function x(t,n,i,e){return Bn(t,n,i,e,!0).utc()}function S(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function N(t){if(null==t._isValid){var n=S(t),i=m.call(n.parsedDateParts,(function(t){return null!=t})),e=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(e=e&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return e;t._isValid=e}return t._isValid}function k(t){var n=x(NaN);return null!=t?D(S(n),t):S(n).userInvalidated=!0,n}!function(t){t.COINS="coins",t.XP="xp"}(d||(d={})),function(t){t.TIME_PERIOD="timePeriod",t.NUMBER_OF_ROUNDS="numberOfRounds"}(c||(c={})),function(t){t[t.ACTIVE=0]="ACTIVE",t[t.ACTIVATED=1]="ACTIVATED",t[t.EXPIRED=2]="EXPIRED",t[t.CONSUMED=3]="CONSUMED",t[t.DISABLED=4]="DISABLED",t[t.ENABLED=6]="ENABLED",t[t.ACTIVATING=999]="ACTIVATING"}(l||(l={})),m=Array.prototype.some?Array.prototype.some:function(t){var n,i=Object(this),e=i.length>>>0;for(n=0;n<e;n++)if(n in i&&t.call(this,i[n],n,i))return!0;return!1};var T=p.momentProperties=[],I=!1;function H(t,n){var i,e,r,s=T.length;if(y(n._isAMomentObject)||(t._isAMomentObject=n._isAMomentObject),y(n._i)||(t._i=n._i),y(n._f)||(t._f=n._f),y(n._l)||(t._l=n._l),y(n._strict)||(t._strict=n._strict),y(n._tzm)||(t._tzm=n._tzm),y(n._isUTC)||(t._isUTC=n._isUTC),y(n._offset)||(t._offset=n._offset),y(n._pf)||(t._pf=S(n)),y(n._locale)||(t._locale=n._locale),s>0)for(i=0;i<s;i++)y(r=n[e=T[i]])||(t[e]=r);return t}function L(t){H(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===I&&(I=!0,p.updateOffset(this),I=!1)}function _(t){return t instanceof L||null!=t&&null!=t._isAMomentObject}function P(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function U(t,n){var i=!0;return D((function(){if(null!=p.deprecationHandler&&p.deprecationHandler(null,t),i){var e,r,s,o=[],a=arguments.length;for(r=0;r<a;r++){if(e="","object"==typeof arguments[r]){for(s in e+="\n["+r+"] ",arguments[0])v(arguments[0],s)&&(e+=s+": "+arguments[0][s]+", ");e=e.slice(0,-2)}else e=arguments[r];o.push(e)}P(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return n.apply(this,arguments)}),n)}var A,E={};function G(t,n){null!=p.deprecationHandler&&p.deprecationHandler(t,n),E[t]||(P(n),E[t]=!0)}function W(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function O(t,n){var i,e=D({},t);for(i in n)v(n,i)&&(w(t[i])&&w(n[i])?(e[i]={},D(e[i],t[i]),D(e[i],n[i])):null!=n[i]?e[i]=n[i]:delete e[i]);for(i in t)v(t,i)&&!v(n,i)&&w(t[i])&&(e[i]=D({},e[i]));return e}function F(t){null!=t&&this.set(t)}function R(t,n,i){var e=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,n-e.length)).toString().substr(1)+e}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,A=Object.keys?Object.keys:function(t){var n,i=[];for(n in t)v(t,n)&&i.push(n);return i};var j=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},$={};function z(t,n,i,e){var r=e;"string"==typeof e&&(r=function(){return this[e]()}),t&&($[t]=r),n&&($[n[0]]=function(){return R(r.apply(this,arguments),n[1],n[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function q(t,n){return t.isValid()?(n=J(n,t.localeData()),B[n]=B[n]||function(t){var n,i,e,r=t.match(j);for(n=0,i=r.length;n<i;n++)r[n]=$[r[n]]?$[r[n]]:(e=r[n]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(n){var e,s="";for(e=0;e<i;e++)s+=W(r[e])?r[e].call(n,t):r[e];return s}}(n),B[n](t)):t.localeData().invalidDate()}function J(t,n){var i=5;function e(t){return n.longDateFormat(t)||t}for(Z.lastIndex=0;i>=0&&Z.test(t);)t=t.replace(Z,e),Z.lastIndex=0,i-=1;return t}var V={};function Q(t,n){var i=t.toLowerCase();V[i]=V[i+"s"]=V[n]=t}function X(t){return"string"==typeof t?V[t]||V[t.toLowerCase()]:void 0}function K(t){var n,i,e={};for(i in t)v(t,i)&&(n=X(i))&&(e[n]=t[i]);return e}var tt={};function nt(t,n){tt[t]=n}function it(t){return t%4==0&&t%100!=0||t%400==0}function et(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function rt(t){var n=+t,i=0;return 0!==n&&isFinite(n)&&(i=et(n)),i}function st(t,n){return function(i){return null!=i?(at(this,t,i),p.updateOffset(this,n),this):ot(this,t)}}function ot(t,n){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+n]():NaN}function at(t,n,i){t.isValid()&&!isNaN(i)&&("FullYear"===n&&it(t.year())&&1===t.month()&&29===t.date()?(i=rt(i),t._d["set"+(t._isUTC?"UTC":"")+n](i,t.month(),Rt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+n](i))}var ut,ht=/\d/,dt=/\d\d/,ct=/\d{3}/,lt=/\d{4}/,ft=/[+-]?\d{6}/,mt=/\d\d?/,pt=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,wt=/\d{1,3}/,vt=/\d{1,4}/,Ct=/[+-]?\d{1,6}/,yt=/\d+/,Mt=/[+-]?\d+/,Yt=/Z|[+-]\d\d:?\d\d/gi,bt=/Z|[+-]\d\d(?::?\d\d)?/gi,Dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function xt(t,n,i){ut[t]=W(n)?n:function(t){return t&&i?i:n}}function St(t,n){return v(ut,t)?ut[t](n._strict,n._locale):new RegExp(Nt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,n,i,e,r){return n||i||e||r}))))}function Nt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}ut={};var kt={};function Tt(t,n){var i,e,r=n;for("string"==typeof t&&(t=[t]),M(n)&&(r=function(t,i){i[n]=rt(t)}),e=t.length,i=0;i<e;i++)kt[t[i]]=r}function It(t,n){Tt(t,(function(t,i,e,r){e._w=e._w||{},n(t,e._w,e,r)}))}function Ht(t,n,i){null!=n&&v(kt,t)&&kt[t](n,i._a,i,t)}var Lt,_t=0,Pt=1,Ut=2,At=3,Et=4,Gt=5,Wt=6,Ot=7,Ft=8;function Rt(t,n){if(isNaN(t)||isNaN(n))return NaN;var i=(n%12+12)%12;return t+=(n-i)/12,1===i?it(t)?29:28:31-i%7%2}Lt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var n;for(n=0;n<this.length;++n)if(this[n]===t)return n;return-1},z("M",["MM",2],"Mo",(function(){return this.month()+1})),z("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),z("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Q("month","M"),nt("month",8),xt("M",mt),xt("MM",mt,dt),xt("MMM",(function(t,n){return n.monthsShortRegex(t)})),xt("MMMM",(function(t,n){return n.monthsRegex(t)})),Tt(["M","MM"],(function(t,n){n[Pt]=rt(t)-1})),Tt(["MMM","MMMM"],(function(t,n,i,e){var r=i._locale.monthsParse(t,e,i._strict);null!=r?n[Pt]=r:S(i).invalidMonth=t}));var jt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Bt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$t=Dt,zt=Dt;function qt(t,n,i){var e,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],e=0;e<12;++e)s=x([2e3,e]),this._shortMonthsParse[e]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[e]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===n?-1!==(r=Lt.call(this._shortMonthsParse,o))?r:null:-1!==(r=Lt.call(this._longMonthsParse,o))?r:null:"MMM"===n?-1!==(r=Lt.call(this._shortMonthsParse,o))||-1!==(r=Lt.call(this._longMonthsParse,o))?r:null:-1!==(r=Lt.call(this._longMonthsParse,o))||-1!==(r=Lt.call(this._shortMonthsParse,o))?r:null}function Jt(t,n){var i;if(!t.isValid())return t;if("string"==typeof n)if(/^\d+$/.test(n))n=rt(n);else if(!M(n=t.localeData().monthsParse(n)))return t;return i=Math.min(t.date(),Rt(t.year(),n)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](n,i),t}function Vt(t){return null!=t?(Jt(this,t),p.updateOffset(this,!0),this):ot(this,"Month")}function Qt(){function t(t,n){return n.length-t.length}var n,i,e=[],r=[],s=[];for(n=0;n<12;n++)i=x([2e3,n]),e.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(e.sort(t),r.sort(t),s.sort(t),n=0;n<12;n++)e[n]=Nt(e[n]),r[n]=Nt(r[n]);for(n=0;n<24;n++)s[n]=Nt(s[n]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Xt(t){return it(t)?366:365}z("Y",0,0,(function(){var t=this.year();return t<=9999?R(t,4):"+"+t})),z(0,["YY",2],0,(function(){return this.year()%100})),z(0,["YYYY",4],0,"year"),z(0,["YYYYY",5],0,"year"),z(0,["YYYYYY",6,!0],0,"year"),Q("year","y"),nt("year",1),xt("Y",Mt),xt("YY",mt,dt),xt("YYYY",vt,lt),xt("YYYYY",Ct,ft),xt("YYYYYY",Ct,ft),Tt(["YYYYY","YYYYYY"],_t),Tt("YYYY",(function(t,n){n[_t]=2===t.length?p.parseTwoDigitYear(t):rt(t)})),Tt("YY",(function(t,n){n[_t]=p.parseTwoDigitYear(t)})),Tt("Y",(function(t,n){n[_t]=parseInt(t,10)})),p.parseTwoDigitYear=function(t){return rt(t)+(rt(t)>68?1900:2e3)};var Kt=st("FullYear",!0);function tn(t,n,i,e,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,n,i,e,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,n,i,e,r,s,o),a}function nn(t){var n,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,n=new Date(Date.UTC.apply(null,i)),isFinite(n.getUTCFullYear())&&n.setUTCFullYear(t)):n=new Date(Date.UTC.apply(null,arguments)),n}function en(t,n,i){var e=7+n-i;return-(7+nn(t,0,e).getUTCDay()-n)%7+e-1}function rn(t,n,i,e,r){var s,o,a=1+7*(n-1)+(7+i-e)%7+en(t,e,r);return a<=0?o=Xt(s=t-1)+a:a>Xt(t)?(s=t+1,o=a-Xt(t)):(s=t,o=a),{year:s,dayOfYear:o}}function sn(t,n,i){var e,r,s=en(t.year(),n,i),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?e=o+on(r=t.year()-1,n,i):o>on(t.year(),n,i)?(e=o-on(t.year(),n,i),r=t.year()+1):(r=t.year(),e=o),{week:e,year:r}}function on(t,n,i){var e=en(t,n,i),r=en(t+1,n,i);return(Xt(t)-e+r)/7}function an(t,n){return t.slice(n,7).concat(t.slice(0,n))}z("w",["ww",2],"wo","week"),z("W",["WW",2],"Wo","isoWeek"),Q("week","w"),Q("isoWeek","W"),nt("week",5),nt("isoWeek",5),xt("w",mt),xt("ww",mt,dt),xt("W",mt),xt("WW",mt,dt),It(["w","ww","W","WW"],(function(t,n,i,e){n[e.substr(0,1)]=rt(t)})),z("d",0,"do","day"),z("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),z("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),z("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),z("e",0,0,"weekday"),z("E",0,0,"isoWeekday"),Q("day","d"),Q("weekday","e"),Q("isoWeekday","E"),nt("day",11),nt("weekday",11),nt("isoWeekday",11),xt("d",mt),xt("e",mt),xt("E",mt),xt("dd",(function(t,n){return n.weekdaysMinRegex(t)})),xt("ddd",(function(t,n){return n.weekdaysShortRegex(t)})),xt("dddd",(function(t,n){return n.weekdaysRegex(t)})),It(["dd","ddd","dddd"],(function(t,n,i,e){var r=i._locale.weekdaysParse(t,e,i._strict);null!=r?n.d=r:S(i).invalidWeekday=t})),It(["d","e","E"],(function(t,n,i,e){n[e]=rt(t)}));var un="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),hn="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dn="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cn=Dt,ln=Dt,fn=Dt;function mn(t,n,i){var e,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],e=0;e<7;++e)s=x([2e3,1]).day(e),this._minWeekdaysParse[e]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[e]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[e]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===n?-1!==(r=Lt.call(this._weekdaysParse,o))?r:null:"ddd"===n?-1!==(r=Lt.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Lt.call(this._minWeekdaysParse,o))?r:null:"dddd"===n?-1!==(r=Lt.call(this._weekdaysParse,o))||-1!==(r=Lt.call(this._shortWeekdaysParse,o))||-1!==(r=Lt.call(this._minWeekdaysParse,o))?r:null:"ddd"===n?-1!==(r=Lt.call(this._shortWeekdaysParse,o))||-1!==(r=Lt.call(this._weekdaysParse,o))||-1!==(r=Lt.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Lt.call(this._minWeekdaysParse,o))||-1!==(r=Lt.call(this._weekdaysParse,o))||-1!==(r=Lt.call(this._shortWeekdaysParse,o))?r:null}function pn(){function t(t,n){return n.length-t.length}var n,i,e,r,s,o=[],a=[],u=[],h=[];for(n=0;n<7;n++)i=x([2e3,1]).day(n),e=Nt(this.weekdaysMin(i,"")),r=Nt(this.weekdaysShort(i,"")),s=Nt(this.weekdays(i,"")),o.push(e),a.push(r),u.push(s),h.push(e),h.push(r),h.push(s);o.sort(t),a.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function gn(){return this.hours()%12||12}function wn(t,n){z(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),n)}))}function vn(t,n){return n._meridiemParse}z("H",["HH",2],0,"hour"),z("h",["hh",2],0,gn),z("k",["kk",2],0,(function(){return this.hours()||24})),z("hmm",0,0,(function(){return""+gn.apply(this)+R(this.minutes(),2)})),z("hmmss",0,0,(function(){return""+gn.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),z("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),z("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),wn("a",!0),wn("A",!1),Q("hour","h"),nt("hour",13),xt("a",vn),xt("A",vn),xt("H",mt),xt("h",mt),xt("k",mt),xt("HH",mt,dt),xt("hh",mt,dt),xt("kk",mt,dt),xt("hmm",pt),xt("hmmss",gt),xt("Hmm",pt),xt("Hmmss",gt),Tt(["H","HH"],At),Tt(["k","kk"],(function(t,n){var i=rt(t);n[At]=24===i?0:i})),Tt(["a","A"],(function(t,n,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Tt(["h","hh"],(function(t,n,i){n[At]=rt(t),S(i).bigHour=!0})),Tt("hmm",(function(t,n,i){var e=t.length-2;n[At]=rt(t.substr(0,e)),n[Et]=rt(t.substr(e)),S(i).bigHour=!0})),Tt("hmmss",(function(t,n,i){var e=t.length-4,r=t.length-2;n[At]=rt(t.substr(0,e)),n[Et]=rt(t.substr(e,2)),n[Gt]=rt(t.substr(r)),S(i).bigHour=!0})),Tt("Hmm",(function(t,n){var i=t.length-2;n[At]=rt(t.substr(0,i)),n[Et]=rt(t.substr(i))})),Tt("Hmmss",(function(t,n){var i=t.length-4,e=t.length-2;n[At]=rt(t.substr(0,i)),n[Et]=rt(t.substr(i,2)),n[Gt]=rt(t.substr(e))}));var Cn,yn=st("Hours",!0),Mn={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:jt,monthsShort:Zt,week:{dow:0,doy:6},weekdays:un,weekdaysMin:dn,weekdaysShort:hn,meridiemParse:/[ap]\.?m?\.?/i},Yn={},bn={};function Dn(t,n){var i,e=Math.min(t.length,n.length);for(i=0;i<e;i+=1)if(t[i]!==n[i])return i;return e}function xn(t){return t?t.toLowerCase().replace("_","-"):t}function Sn(t){var n=null;if(void 0===Yn[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{n=Cn._abbr,require("./locale/"+t),Nn(n)}catch(n){Yn[t]=null}return Yn[t]}function Nn(t,n){var i;return t&&((i=y(n)?Tn(t):kn(t,n))?Cn=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Cn._abbr}function kn(t,n){if(null!==n){var i,e=Mn;if(n.abbr=t,null!=Yn[t])G("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),e=Yn[t]._config;else if(null!=n.parentLocale)if(null!=Yn[n.parentLocale])e=Yn[n.parentLocale]._config;else{if(null==(i=Sn(n.parentLocale)))return bn[n.parentLocale]||(bn[n.parentLocale]=[]),bn[n.parentLocale].push({name:t,config:n}),null;e=i._config}return Yn[t]=new F(O(e,n)),bn[t]&&bn[t].forEach((function(t){kn(t.name,t.config)})),Nn(t),Yn[t]}return delete Yn[t],null}function Tn(t){var n;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Cn;if(!g(t)){if(n=Sn(t))return n;t=[t]}return function(t){for(var n,i,e,r,s=0;s<t.length;){for(n=(r=xn(t[s]).split("-")).length,i=(i=xn(t[s+1]))?i.split("-"):null;n>0;){if(e=Sn(r.slice(0,n).join("-")))return e;if(i&&i.length>=n&&Dn(r,i)>=n-1)break;n--}s++}return Cn}(t)}function In(t){var n,i=t._a;return i&&-2===S(t).overflow&&(n=i[Pt]<0||i[Pt]>11?Pt:i[Ut]<1||i[Ut]>Rt(i[_t],i[Pt])?Ut:i[At]<0||i[At]>24||24===i[At]&&(0!==i[Et]||0!==i[Gt]||0!==i[Wt])?At:i[Et]<0||i[Et]>59?Et:i[Gt]<0||i[Gt]>59?Gt:i[Wt]<0||i[Wt]>999?Wt:-1,S(t)._overflowDayOfYear&&(n<_t||n>Ut)&&(n=Ut),S(t)._overflowWeeks&&-1===n&&(n=Ot),S(t)._overflowWeekday&&-1===n&&(n=Ft),S(t).overflow=n),t}var Hn=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ln=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,_n=/Z|[+-]\d\d(?::?\d\d)?/,Pn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Un=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],An=/^\/?Date\((-?\d+)/i,En=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Gn={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Wn(t){var n,i,e,r,s,o,a=t._i,u=Hn.exec(a)||Ln.exec(a),h=Pn.length,d=Un.length;if(u){for(S(t).iso=!0,n=0,i=h;n<i;n++)if(Pn[n][1].exec(u[1])){r=Pn[n][0],e=!1!==Pn[n][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(n=0,i=d;n<i;n++)if(Un[n][1].exec(u[3])){s=(u[2]||" ")+Un[n][0];break}if(null==s)return void(t._isValid=!1)}if(!e&&null!=s)return void(t._isValid=!1);if(u[4]){if(!_n.exec(u[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),jn(t)}else t._isValid=!1}function On(t){var n,i,e,r,s,o,a,u,h,d=En.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],e=d[2],r=d[5],s=d[6],o=d[7],a=[(u=d[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),Zt.indexOf(i),parseInt(e,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(t,n,i){return!t||hn.indexOf(t)===new Date(n[0],n[1],n[2]).getDay()||(S(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],n=a,t))return;t._a=n,t._tzm=function(t,n,i){if(t)return Gn[t];if(n)return 0;var e=parseInt(i,10),r=e%100;return(e-r)/100*60+r}(d[8],d[9],d[10]),t._d=nn.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),S(t).rfc2822=!0}else t._isValid=!1}function Fn(t,n,i){return null!=t?t:null!=n?n:i}function Rn(t){var n,i,e,r,s,o=[];if(!t._d){for(e=function(t){var n=new Date(p.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}(t),t._w&&null==t._a[Ut]&&null==t._a[Pt]&&function(t){var n,i,e,r,s,o,a,u,h;null!=(n=t._w).GG||null!=n.W||null!=n.E?(s=1,o=4,i=Fn(n.GG,t._a[_t],sn($n(),1,4).year),e=Fn(n.W,1),((r=Fn(n.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,h=sn($n(),s,o),i=Fn(n.gg,t._a[_t],h.year),e=Fn(n.w,h.week),null!=n.d?((r=n.d)<0||r>6)&&(u=!0):null!=n.e?(r=n.e+s,(n.e<0||n.e>6)&&(u=!0)):r=s),e<1||e>on(i,s,o)?S(t)._overflowWeeks=!0:null!=u?S(t)._overflowWeekday=!0:(a=rn(i,e,r,s,o),t._a[_t]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=Fn(t._a[_t],e[_t]),(t._dayOfYear>Xt(s)||0===t._dayOfYear)&&(S(t)._overflowDayOfYear=!0),i=nn(s,0,t._dayOfYear),t._a[Pt]=i.getUTCMonth(),t._a[Ut]=i.getUTCDate()),n=0;n<3&&null==t._a[n];++n)t._a[n]=o[n]=e[n];for(;n<7;n++)t._a[n]=o[n]=null==t._a[n]?2===n?1:0:t._a[n];24===t._a[At]&&0===t._a[Et]&&0===t._a[Gt]&&0===t._a[Wt]&&(t._nextDay=!0,t._a[At]=0),t._d=(t._useUTC?nn:tn).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[At]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(S(t).weekdayMismatch=!0)}}function jn(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],S(t).empty=!0;var n,i,e,r,s,o,a,u=""+t._i,h=u.length,d=0;for(a=(e=J(t._f,t._locale).match(j)||[]).length,n=0;n<a;n++)(i=(u.match(St(r=e[n],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&S(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),d+=i.length),$[r]?(i?S(t).empty=!1:S(t).unusedTokens.push(r),Ht(r,i,t)):t._strict&&!i&&S(t).unusedTokens.push(r);S(t).charsLeftOver=h-d,u.length>0&&S(t).unusedInput.push(u),t._a[At]<=12&&!0===S(t).bigHour&&t._a[At]>0&&(S(t).bigHour=void 0),S(t).parsedDateParts=t._a.slice(0),S(t).meridiem=t._meridiem,t._a[At]=function(t,n,i){var e;return null==i?n:null!=t.meridiemHour?t.meridiemHour(n,i):null!=t.isPM?((e=t.isPM(i))&&n<12&&(n+=12),e||12!==n||(n=0),n):n}(t._locale,t._a[At],t._meridiem),null!==(o=S(t).era)&&(t._a[_t]=t._locale.erasConvertYear(o,t._a[_t])),Rn(t),In(t)}else On(t);else Wn(t)}function Zn(t){var n=t._i,i=t._f;return t._locale=t._locale||Tn(t._l),null===n||void 0===i&&""===n?k({nullInput:!0}):("string"==typeof n&&(t._i=n=t._locale.preparse(n)),_(n)?new L(In(n)):(Y(n)?t._d=n:g(i)?function(t){var n,i,e,r,s,o,a=!1,u=t._f.length;if(0===u)return S(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,o=!1,n=H({},t),null!=t._useUTC&&(n._useUTC=t._useUTC),n._f=t._f[r],jn(n),N(n)&&(o=!0),s+=S(n).charsLeftOver,s+=10*S(n).unusedTokens.length,S(n).score=s,a?s<e&&(e=s,i=n):(null==e||s<e||o)&&(e=s,i=n,o&&(a=!0));D(t,i||n)}(t):i?jn(t):function(t){var n=t._i;y(n)?t._d=new Date(p.now()):Y(n)?t._d=new Date(n.valueOf()):"string"==typeof n?function(t){var n=An.exec(t._i);null===n?(Wn(t),!1===t._isValid&&(delete t._isValid,On(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:p.createFromInputFallback(t)))):t._d=new Date(+n[1])}(t):g(n)?(t._a=b(n.slice(0),(function(t){return parseInt(t,10)})),Rn(t)):w(n)?function(t){if(!t._d){var n=K(t._i);t._a=b([n.year,n.month,void 0===n.day?n.date:n.day,n.hour,n.minute,n.second,n.millisecond],(function(t){return t&&parseInt(t,10)})),Rn(t)}}(t):M(n)?t._d=new Date(n):p.createFromInputFallback(t)}(t),N(t)||(t._d=null),t))}function Bn(t,n,i,e,r){var s,o={};return!0!==n&&!1!==n||(e=n,n=void 0),!0!==i&&!1!==i||(e=i,i=void 0),(w(t)&&C(t)||g(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=t,o._f=n,o._strict=e,(s=new L(In(Zn(o))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function $n(t,n,i,e){return Bn(t,n,i,e,!1)}p.createFromInputFallback=U("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var zn=U("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=$n.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:k()})),qn=U("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=$n.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:k()}));function Jn(t,n){var i,e;if(1===n.length&&g(n[0])&&(n=n[0]),!n.length)return $n();for(i=n[0],e=1;e<n.length;++e)n[e].isValid()&&!n[e][t](i)||(i=n[e]);return i}var Vn=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Qn(t){var n=K(t),i=n.year||0,e=n.quarter||0,r=n.month||0,s=n.week||n.isoWeek||0,o=n.day||0,a=n.hour||0,u=n.minute||0,h=n.second||0,d=n.millisecond||0;this._isValid=function(t){var n,i,e=!1,r=Vn.length;for(n in t)if(v(t,n)&&(-1===Lt.call(Vn,n)||null!=t[n]&&isNaN(t[n])))return!1;for(i=0;i<r;++i)if(t[Vn[i]]){if(e)return!1;parseFloat(t[Vn[i]])!==rt(t[Vn[i]])&&(e=!0)}return!0}(n),this._milliseconds=+d+1e3*h+6e4*u+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*e+12*i,this._data={},this._locale=Tn(),this._bubble()}function Xn(t){return t instanceof Qn}function Kn(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ti(t,n){z(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+R(~~(t/60),2)+n+R(~~t%60,2)}))}ti("Z",":"),ti("ZZ",""),xt("Z",bt),xt("ZZ",bt),Tt(["Z","ZZ"],(function(t,n,i){i._useUTC=!0,i._tzm=ii(bt,t)}));var ni=/([\+\-]|\d\d)/gi;function ii(t,n){var i,e,r=(n||"").match(t);return null===r?null:0===(e=60*(i=((r[r.length-1]||[])+"").match(ni)||["-",0,0])[1]+rt(i[2]))?0:"+"===i[0]?e:-e}function ei(t,n){var i,e;return n._isUTC?(i=n.clone(),e=(_(t)||Y(t)?t.valueOf():$n(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+e),p.updateOffset(i,!1),i):$n(t).local()}function ri(t){return-Math.round(t._d.getTimezoneOffset())}function si(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var oi=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ai=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ui(t,n){var i,e,r,s,o,a,u=t,h=null;return Xn(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:M(t)||!isNaN(+t)?(u={},n?u[n]=+t:u.milliseconds=+t):(h=oi.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:rt(h[Ut])*i,h:rt(h[At])*i,m:rt(h[Et])*i,s:rt(h[Gt])*i,ms:rt(Kn(1e3*h[Wt]))*i}):(h=ai.exec(t))?u={y:hi(h[2],i="-"===h[1]?-1:1),M:hi(h[3],i),w:hi(h[4],i),d:hi(h[5],i),h:hi(h[6],i),m:hi(h[7],i),s:hi(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=$n(u.from),o=$n(u.to),r=s.isValid()&&o.isValid()?(o=ei(o,s),s.isBefore(o)?a=di(s,o):((a=di(o,s)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),e=new Qn(u),Xn(t)&&v(t,"_locale")&&(e._locale=t._locale),Xn(t)&&v(t,"_isValid")&&(e._isValid=t._isValid),e}function hi(t,n){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*n}function di(t,n){var i={};return i.months=n.month()-t.month()+12*(n.year()-t.year()),t.clone().add(i.months,"M").isAfter(n)&&--i.months,i.milliseconds=+n-+t.clone().add(i.months,"M"),i}function ci(t,n){return function(i,e){var r;return null===e||isNaN(+e)||(G(n,"moment()."+n+"(period, number) is deprecated. Please use moment()."+n+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=e,e=r),li(this,ui(i,e),t),this}}function li(t,n,i,e){var r=n._milliseconds,s=Kn(n._days),o=Kn(n._months);t.isValid()&&(e=null==e||e,o&&Jt(t,ot(t,"Month")+o*i),s&&at(t,"Date",ot(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),e&&p.updateOffset(t,s||o))}ui.fn=Qn.prototype,ui.invalid=function(){return ui(NaN)};var fi=ci(1,"add"),mi=ci(-1,"subtract");function pi(t){return"string"==typeof t||t instanceof String}function gi(t,n){if(t.date()<n.date())return-gi(n,t);var i=12*(n.year()-t.year())+(n.month()-t.month()),e=t.clone().add(i,"months");return-(i+(n-e<0?(n-e)/(e-t.clone().add(i-1,"months")):(n-e)/(t.clone().add(i+1,"months")-e)))||0}function wi(t){var n;return void 0===t?this._locale._abbr:(null!=(n=Tn(t))&&(this._locale=n),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var vi=U("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Ci(){return this._locale}var yi=1e3,Mi=6e4,Yi=36e5,bi=126227808e5;function Di(t,n){return(t%n+n)%n}function xi(t,n,i){return t<100&&t>=0?new Date(t+400,n,i)-bi:new Date(t,n,i).valueOf()}function Si(t,n,i){return t<100&&t>=0?Date.UTC(t+400,n,i)-bi:Date.UTC(t,n,i)}function Ni(t,n){return n.erasAbbrRegex(t)}function ki(){var t,n,i=[],e=[],r=[],s=[],o=this.eras();for(t=0,n=o.length;t<n;++t)e.push(Nt(o[t].name)),i.push(Nt(o[t].abbr)),r.push(Nt(o[t].narrow)),s.push(Nt(o[t].name)),s.push(Nt(o[t].abbr)),s.push(Nt(o[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Ti(t,n){z(0,[t,t.length],0,n)}function Ii(t,n,i,e,r){var s;return null==t?sn(this,e,r).year:(n>(s=on(t,e,r))&&(n=s),Hi.call(this,t,n,i,e,r))}function Hi(t,n,i,e,r){var s=rn(t,n,i,e,r),o=nn(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}z("N",0,0,"eraAbbr"),z("NN",0,0,"eraAbbr"),z("NNN",0,0,"eraAbbr"),z("NNNN",0,0,"eraName"),z("NNNNN",0,0,"eraNarrow"),z("y",["y",1],"yo","eraYear"),z("y",["yy",2],0,"eraYear"),z("y",["yyy",3],0,"eraYear"),z("y",["yyyy",4],0,"eraYear"),xt("N",Ni),xt("NN",Ni),xt("NNN",Ni),xt("NNNN",(function(t,n){return n.erasNameRegex(t)})),xt("NNNNN",(function(t,n){return n.erasNarrowRegex(t)})),Tt(["N","NN","NNN","NNNN","NNNNN"],(function(t,n,i,e){var r=i._locale.erasParse(t,e,i._strict);r?S(i).era=r:S(i).invalidEra=t})),xt("y",yt),xt("yy",yt),xt("yyy",yt),xt("yyyy",yt),xt("yo",(function(t,n){return n._eraYearOrdinalRegex||yt})),Tt(["y","yy","yyy","yyyy"],_t),Tt(["yo"],(function(t,n,i){var e;i._locale._eraYearOrdinalRegex&&(e=t.match(i._locale._eraYearOrdinalRegex)),n[_t]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,e):parseInt(t,10)})),z(0,["gg",2],0,(function(){return this.weekYear()%100})),z(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ti("gggg","weekYear"),Ti("ggggg","weekYear"),Ti("GGGG","isoWeekYear"),Ti("GGGGG","isoWeekYear"),Q("weekYear","gg"),Q("isoWeekYear","GG"),nt("weekYear",1),nt("isoWeekYear",1),xt("G",Mt),xt("g",Mt),xt("GG",mt,dt),xt("gg",mt,dt),xt("GGGG",vt,lt),xt("gggg",vt,lt),xt("GGGGG",Ct,ft),xt("ggggg",Ct,ft),It(["gggg","ggggg","GGGG","GGGGG"],(function(t,n,i,e){n[e.substr(0,2)]=rt(t)})),It(["gg","GG"],(function(t,n,i,e){n[e]=p.parseTwoDigitYear(t)})),z("Q",0,"Qo","quarter"),Q("quarter","Q"),nt("quarter",7),xt("Q",ht),Tt("Q",(function(t,n){n[Pt]=3*(rt(t)-1)})),z("D",["DD",2],"Do","date"),Q("date","D"),nt("date",9),xt("D",mt),xt("DD",mt,dt),xt("Do",(function(t,n){return t?n._dayOfMonthOrdinalParse||n._ordinalParse:n._dayOfMonthOrdinalParseLenient})),Tt(["D","DD"],Ut),Tt("Do",(function(t,n){n[Ut]=rt(t.match(mt)[0])}));var Li=st("Date",!0);z("DDD",["DDDD",3],"DDDo","dayOfYear"),Q("dayOfYear","DDD"),nt("dayOfYear",4),xt("DDD",wt),xt("DDDD",ct),Tt(["DDD","DDDD"],(function(t,n,i){i._dayOfYear=rt(t)})),z("m",["mm",2],0,"minute"),Q("minute","m"),nt("minute",14),xt("m",mt),xt("mm",mt,dt),Tt(["m","mm"],Et);var _i=st("Minutes",!1);z("s",["ss",2],0,"second"),Q("second","s"),nt("second",15),xt("s",mt),xt("ss",mt,dt),Tt(["s","ss"],Gt);var Pi,Ui,Ai=st("Seconds",!1);for(z("S",0,0,(function(){return~~(this.millisecond()/100)})),z(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),z(0,["SSS",3],0,"millisecond"),z(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),z(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),z(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),z(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),z(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),z(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Q("millisecond","ms"),nt("millisecond",16),xt("S",wt,ht),xt("SS",wt,dt),xt("SSS",wt,ct),Pi="SSSS";Pi.length<=9;Pi+="S")xt(Pi,yt);function Ei(t,n){n[Wt]=rt(1e3*("0."+t))}for(Pi="S";Pi.length<=9;Pi+="S")Tt(Pi,Ei);Ui=st("Milliseconds",!1),z("z",0,0,"zoneAbbr"),z("zz",0,0,"zoneName");var Gi=L.prototype;function Wi(t){return t}Gi.add=fi,Gi.calendar=function(t,n){var i;1===arguments.length&&(arguments[0]?_(i=arguments[0])||Y(i)||pi(i)||M(i)||function(t){var n=g(t),i=!1;return n&&(i=0===t.filter((function(n){return!M(n)&&pi(t)})).length),n&&i}(i)||function(t){var n,i=w(t)&&!C(t),e=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(n=0;n<s;n+=1)e=e||v(t,r[n]);return i&&e}(i)||null==i?(t=arguments[0],n=void 0):function(t){var n,i=w(t)&&!C(t),e=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(n=0;n<r.length;n+=1)e=e||v(t,r[n]);return i&&e}(arguments[0])&&(n=arguments[0],t=void 0):(t=void 0,n=void 0));var e=t||$n(),r=ei(e,this).startOf("day"),s=p.calendarFormat(this,r)||"sameElse",o=n&&(W(n[s])?n[s].call(this,e):n[s]);return this.format(o||this.localeData().calendar(s,this,$n(e)))},Gi.clone=function(){return new L(this)},Gi.diff=function(t,n,i){var e,r,s;if(!this.isValid())return NaN;if(!(e=ei(t,this)).isValid())return NaN;switch(r=6e4*(e.utcOffset()-this.utcOffset()),n=X(n)){case"year":s=gi(this,e)/12;break;case"month":s=gi(this,e);break;case"quarter":s=gi(this,e)/3;break;case"second":s=(this-e)/1e3;break;case"minute":s=(this-e)/6e4;break;case"hour":s=(this-e)/36e5;break;case"day":s=(this-e-r)/864e5;break;case"week":s=(this-e-r)/6048e5;break;default:s=this-e}return i?s:et(s)},Gi.endOf=function(t){var n,i;if(void 0===(t=X(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Si:xi,t){case"year":n=i(this.year()+1,0,1)-1;break;case"quarter":n=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":n=i(this.year(),this.month()+1,1)-1;break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":n=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":n=this._d.valueOf(),n+=Yi-Di(n+(this._isUTC?0:this.utcOffset()*Mi),Yi)-1;break;case"minute":n=this._d.valueOf(),n+=Mi-Di(n,Mi)-1;break;case"second":n=this._d.valueOf(),n+=yi-Di(n,yi)-1}return this._d.setTime(n),p.updateOffset(this,!0),this},Gi.format=function(t){t||(t=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var n=q(this,t);return this.localeData().postformat(n)},Gi.from=function(t,n){return this.isValid()&&(_(t)&&t.isValid()||$n(t).isValid())?ui({to:this,from:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Gi.fromNow=function(t){return this.from($n(),t)},Gi.to=function(t,n){return this.isValid()&&(_(t)&&t.isValid()||$n(t).isValid())?ui({from:this,to:t}).locale(this.locale()).humanize(!n):this.localeData().invalidDate()},Gi.toNow=function(t){return this.to($n(),t)},Gi.get=function(t){return W(this[t=X(t)])?this[t]():this},Gi.invalidAt=function(){return S(this).overflow},Gi.isAfter=function(t,n){var i=_(t)?t:$n(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=X(n)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(n).valueOf())},Gi.isBefore=function(t,n){var i=_(t)?t:$n(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(n=X(n)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(n).valueOf()<i.valueOf())},Gi.isBetween=function(t,n,i,e){var r=_(t)?t:$n(t),s=_(n)?n:$n(n);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(e=e||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===e[1]?this.isBefore(s,i):!this.isAfter(s,i))},Gi.isSame=function(t,n){var i,e=_(t)?t:$n(t);return!(!this.isValid()||!e.isValid())&&("millisecond"===(n=X(n)||"millisecond")?this.valueOf()===e.valueOf():(i=e.valueOf(),this.clone().startOf(n).valueOf()<=i&&i<=this.clone().endOf(n).valueOf()))},Gi.isSameOrAfter=function(t,n){return this.isSame(t,n)||this.isAfter(t,n)},Gi.isSameOrBefore=function(t,n){return this.isSame(t,n)||this.isBefore(t,n)},Gi.isValid=function(){return N(this)},Gi.lang=vi,Gi.locale=wi,Gi.localeData=Ci,Gi.max=qn,Gi.min=zn,Gi.parsingFlags=function(){return D({},S(this))},Gi.set=function(t,n){if("object"==typeof t){var i,e=function(t){var n,i=[];for(n in t)v(t,n)&&i.push({unit:n,priority:tt[n]});return i.sort((function(t,n){return t.priority-n.priority})),i}(t=K(t)),r=e.length;for(i=0;i<r;i++)this[e[i].unit](t[e[i].unit])}else if(W(this[t=X(t)]))return this[t](n);return this},Gi.startOf=function(t){var n,i;if(void 0===(t=X(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Si:xi,t){case"year":n=i(this.year(),0,1);break;case"quarter":n=i(this.year(),this.month()-this.month()%3,1);break;case"month":n=i(this.year(),this.month(),1);break;case"week":n=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":n=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":n=i(this.year(),this.month(),this.date());break;case"hour":n=this._d.valueOf(),n-=Di(n+(this._isUTC?0:this.utcOffset()*Mi),Yi);break;case"minute":n=this._d.valueOf(),n-=Di(n,Mi);break;case"second":n=this._d.valueOf(),n-=Di(n,yi)}return this._d.setTime(n),p.updateOffset(this,!0),this},Gi.subtract=mi,Gi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Gi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Gi.toDate=function(){return new Date(this.valueOf())},Gi.toISOString=function(t){if(!this.isValid())return null;var n=!0!==t,i=n?this.clone().utc():this;return i.year()<0||i.year()>9999?q(i,n?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):W(Date.prototype.toISOString)?n?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",q(i,"Z")):q(i,n?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Gi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,n,i="moment",e="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z"),t="["+i+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+n+"-MM-DD[T]HH:mm:ss.SSS"+e+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Gi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Gi.toJSON=function(){return this.isValid()?this.toISOString():null},Gi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Gi.unix=function(){return Math.floor(this.valueOf()/1e3)},Gi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Gi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Gi.eraName=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].name;if(e[t].until<=i&&i<=e[t].since)return e[t].name}return""},Gi.eraNarrow=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].narrow;if(e[t].until<=i&&i<=e[t].since)return e[t].narrow}return""},Gi.eraAbbr=function(){var t,n,i,e=this.localeData().eras();for(t=0,n=e.length;t<n;++t){if(i=this.clone().startOf("day").valueOf(),e[t].since<=i&&i<=e[t].until)return e[t].abbr;if(e[t].until<=i&&i<=e[t].since)return e[t].abbr}return""},Gi.eraYear=function(){var t,n,i,e,r=this.localeData().eras();for(t=0,n=r.length;t<n;++t)if(i=r[t].since<=r[t].until?1:-1,e=this.clone().startOf("day").valueOf(),r[t].since<=e&&e<=r[t].until||r[t].until<=e&&e<=r[t].since)return(this.year()-p(r[t].since).year())*i+r[t].offset;return this.year()},Gi.year=Kt,Gi.isLeapYear=function(){return it(this.year())},Gi.weekYear=function(t){return Ii.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Gi.isoWeekYear=function(t){return Ii.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Gi.quarter=Gi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Gi.month=Vt,Gi.daysInMonth=function(){return Rt(this.year(),this.month())},Gi.week=Gi.weeks=function(t){var n=this.localeData().week(this);return null==t?n:this.add(7*(t-n),"d")},Gi.isoWeek=Gi.isoWeeks=function(t){var n=sn(this,1,4).week;return null==t?n:this.add(7*(t-n),"d")},Gi.weeksInYear=function(){var t=this.localeData()._week;return on(this.year(),t.dow,t.doy)},Gi.weeksInWeekYear=function(){var t=this.localeData()._week;return on(this.weekYear(),t.dow,t.doy)},Gi.isoWeeksInYear=function(){return on(this.year(),1,4)},Gi.isoWeeksInISOWeekYear=function(){return on(this.isoWeekYear(),1,4)},Gi.date=Li,Gi.day=Gi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,n){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=n.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-n,"d")):n},Gi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var n=(this.day()+7-this.localeData()._week.dow)%7;return null==t?n:this.add(t-n,"d")},Gi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var n=function(t,n){return"string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?n:n-7)}return this.day()||7},Gi.dayOfYear=function(t){var n=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?n:this.add(t-n,"d")},Gi.hour=Gi.hours=yn,Gi.minute=Gi.minutes=_i,Gi.second=Gi.seconds=Ai,Gi.millisecond=Gi.milliseconds=Ui,Gi.utcOffset=function(t,n,i){var e,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ii(bt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&n&&(e=ri(this)),this._offset=t,this._isUTC=!0,null!=e&&this.add(e,"m"),r!==t&&(!n||this._changeInProgress?li(this,ui(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ri(this)},Gi.utc=function(t){return this.utcOffset(0,t)},Gi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ri(this),"m")),this},Gi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ii(Yt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Gi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?$n(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Gi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Gi.isLocal=function(){return!!this.isValid()&&!this._isUTC},Gi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Gi.isUtc=si,Gi.isUTC=si,Gi.zoneAbbr=function(){return this._isUTC?"UTC":""},Gi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Gi.dates=U("dates accessor is deprecated. Use date instead.",Li),Gi.months=U("months accessor is deprecated. Use month instead",Vt),Gi.years=U("years accessor is deprecated. Use year instead",Kt),Gi.zone=U("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,n){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,n),this):-this.utcOffset()})),Gi.isDSTShifted=U("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!y(this._isDSTShifted))return this._isDSTShifted;var t,n={};return H(n,this),(n=Zn(n))._a?(t=n._isUTC?x(n._a):$n(n._a),this._isDSTShifted=this.isValid()&&function(t,n){var i,e=Math.min(t.length,n.length),r=Math.abs(t.length-n.length),s=0;for(i=0;i<e;i++)rt(t[i])!==rt(n[i])&&s++;return s+r}(n._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Oi=F.prototype;function Fi(t,n,i,e){var r=Tn(),s=x().set(e,n);return r[i](s,t)}function Ri(t,n,i){if(M(t)&&(n=t,t=void 0),t=t||"",null!=n)return Fi(t,n,i,"month");var e,r=[];for(e=0;e<12;e++)r[e]=Fi(t,e,i,"month");return r}function ji(t,n,i,e){"boolean"==typeof t?(M(n)&&(i=n,n=void 0),n=n||""):(i=n=t,t=!1,M(n)&&(i=n,n=void 0),n=n||"");var r,s=Tn(),o=t?s._week.dow:0,a=[];if(null!=i)return Fi(n,(i+o)%7,e,"day");for(r=0;r<7;r++)a[r]=Fi(n,(r+o)%7,e,"day");return a}Oi.calendar=function(t,n,i){var e=this._calendar[t]||this._calendar.sameElse;return W(e)?e.call(n,i):e},Oi.longDateFormat=function(t){var n=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return n||!i?n:(this._longDateFormat[t]=i.match(j).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Oi.invalidDate=function(){return this._invalidDate},Oi.ordinal=function(t){return this._ordinal.replace("%d",t)},Oi.preparse=Wi,Oi.postformat=Wi,Oi.relativeTime=function(t,n,i,e){var r=this._relativeTime[i];return W(r)?r(t,n,i,e):r.replace(/%d/i,t)},Oi.pastFuture=function(t,n){var i=this._relativeTime[t>0?"future":"past"];return W(i)?i(n):i.replace(/%s/i,n)},Oi.set=function(t){var n,i;for(i in t)v(t,i)&&(W(n=t[i])?this[i]=n:this["_"+i]=n);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Oi.eras=function(){var t,n,i,e=this._eras||Tn("en")._eras;for(t=0,n=e.length;t<n;++t)switch("string"==typeof e[t].since&&(i=p(e[t].since).startOf("day"),e[t].since=i.valueOf()),typeof e[t].until){case"undefined":e[t].until=1/0;break;case"string":i=p(e[t].until).startOf("day").valueOf(),e[t].until=i.valueOf()}return e},Oi.erasParse=function(t,n,i){var e,r,s,o,a,u=this.eras();for(t=t.toUpperCase(),e=0,r=u.length;e<r;++e)if(s=u[e].name.toUpperCase(),o=u[e].abbr.toUpperCase(),a=u[e].narrow.toUpperCase(),i)switch(n){case"N":case"NN":case"NNN":if(o===t)return u[e];break;case"NNNN":if(s===t)return u[e];break;case"NNNNN":if(a===t)return u[e]}else if([s,o,a].indexOf(t)>=0)return u[e]},Oi.erasConvertYear=function(t,n){var i=t.since<=t.until?1:-1;return void 0===n?p(t.since).year():p(t.since).year()+(n-t.offset)*i},Oi.erasAbbrRegex=function(t){return v(this,"_erasAbbrRegex")||ki.call(this),t?this._erasAbbrRegex:this._erasRegex},Oi.erasNameRegex=function(t){return v(this,"_erasNameRegex")||ki.call(this),t?this._erasNameRegex:this._erasRegex},Oi.erasNarrowRegex=function(t){return v(this,"_erasNarrowRegex")||ki.call(this),t?this._erasNarrowRegex:this._erasRegex},Oi.months=function(t,n){return t?g(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Bt).test(n)?"format":"standalone"][t.month()]:g(this._months)?this._months:this._months.standalone},Oi.monthsShort=function(t,n){return t?g(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Bt.test(n)?"format":"standalone"][t.month()]:g(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Oi.monthsParse=function(t,n,i){var e,r,s;if(this._monthsParseExact)return qt.call(this,t,n,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),e=0;e<12;e++){if(r=x([2e3,e]),i&&!this._longMonthsParse[e]&&(this._longMonthsParse[e]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[e]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[e]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[e]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===n&&this._longMonthsParse[e].test(t))return e;if(i&&"MMM"===n&&this._shortMonthsParse[e].test(t))return e;if(!i&&this._monthsParse[e].test(t))return e}},Oi.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Qt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=zt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Oi.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||Qt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=$t),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Oi.week=function(t){return sn(t,this._week.dow,this._week.doy).week},Oi.firstDayOfYear=function(){return this._week.doy},Oi.firstDayOfWeek=function(){return this._week.dow},Oi.weekdays=function(t,n){var i=g(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(n)?"format":"standalone"];return!0===t?an(i,this._week.dow):t?i[t.day()]:i},Oi.weekdaysMin=function(t){return!0===t?an(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Oi.weekdaysShort=function(t){return!0===t?an(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Oi.weekdaysParse=function(t,n,i){var e,r,s;if(this._weekdaysParseExact)return mn.call(this,t,n,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),e=0;e<7;e++){if(r=x([2e3,1]).day(e),i&&!this._fullWeekdaysParse[e]&&(this._fullWeekdaysParse[e]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[e]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[e]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[e]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[e]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===n&&this._fullWeekdaysParse[e].test(t))return e;if(i&&"ddd"===n&&this._shortWeekdaysParse[e].test(t))return e;if(i&&"dd"===n&&this._minWeekdaysParse[e].test(t))return e;if(!i&&this._weekdaysParse[e].test(t))return e}},Oi.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=cn),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Oi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ln),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Oi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||pn.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fn),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Oi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Oi.meridiem=function(t,n,i){return t>11?i?"pm":"PM":i?"am":"AM"},Nn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var n=t%10;return t+(1===rt(t%100/10)?"th":1===n?"st":2===n?"nd":3===n?"rd":"th")}}),p.lang=U("moment.lang is deprecated. Use moment.locale instead.",Nn),p.langData=U("moment.langData is deprecated. Use moment.localeData instead.",Tn);var Zi=Math.abs;function Bi(t,n,i,e){var r=ui(n,i);return t._milliseconds+=e*r._milliseconds,t._days+=e*r._days,t._months+=e*r._months,t._bubble()}function $i(t){return t<0?Math.floor(t):Math.ceil(t)}function zi(t){return 4800*t/146097}function qi(t){return 146097*t/4800}function Ji(t){return function(){return this.as(t)}}var Vi=Ji("ms"),Qi=Ji("s"),Xi=Ji("m"),Ki=Ji("h"),te=Ji("d"),ne=Ji("w"),ie=Ji("M"),ee=Ji("Q"),re=Ji("y");function se(t){return function(){return this.isValid()?this._data[t]:NaN}}var oe=se("milliseconds"),ae=se("seconds"),ue=se("minutes"),he=se("hours"),de=se("days"),ce=se("months"),le=se("years"),fe=Math.round,me={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pe(t,n,i,e,r){return r.relativeTime(n||1,!!i,t,e)}var ge=Math.abs;function we(t){return(t>0)-(t<0)||+t}function ve(){if(!this.isValid())return this.localeData().invalidDate();var t,n,i,e,r,s,o,a,u=ge(this._milliseconds)/1e3,h=ge(this._days),d=ge(this._months),c=this.asSeconds();return c?(t=et(u/60),n=et(t/60),u%=60,t%=60,i=et(d/12),d%=12,e=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=we(this._months)!==we(c)?"-":"",o=we(this._days)!==we(c)?"-":"",a=we(this._milliseconds)!==we(c)?"-":"",r+"P"+(i?s+i+"Y":"")+(d?s+d+"M":"")+(h?o+h+"D":"")+(n||t||u?"T":"")+(n?a+n+"H":"")+(t?a+t+"M":"")+(u?a+e+"S":"")):"P0D"}var Ce=Qn.prototype;Ce.isValid=function(){return this._isValid},Ce.abs=function(){var t=this._data;return this._milliseconds=Zi(this._milliseconds),this._days=Zi(this._days),this._months=Zi(this._months),t.milliseconds=Zi(t.milliseconds),t.seconds=Zi(t.seconds),t.minutes=Zi(t.minutes),t.hours=Zi(t.hours),t.months=Zi(t.months),t.years=Zi(t.years),this},Ce.add=function(t,n){return Bi(this,t,n,1)},Ce.subtract=function(t,n){return Bi(this,t,n,-1)},Ce.as=function(t){if(!this.isValid())return NaN;var n,i,e=this._milliseconds;if("month"===(t=X(t))||"quarter"===t||"year"===t)switch(i=this._months+zi(n=this._days+e/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(n=this._days+Math.round(qi(this._months)),t){case"week":return n/7+e/6048e5;case"day":return n+e/864e5;case"hour":return 24*n+e/36e5;case"minute":return 1440*n+e/6e4;case"second":return 86400*n+e/1e3;case"millisecond":return Math.floor(864e5*n)+e;default:throw new Error("Unknown unit "+t)}},Ce.asMilliseconds=Vi,Ce.asSeconds=Qi,Ce.asMinutes=Xi,Ce.asHours=Ki,Ce.asDays=te,Ce.asWeeks=ne,Ce.asMonths=ie,Ce.asQuarters=ee,Ce.asYears=re,Ce.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*rt(this._months/12):NaN},Ce._bubble=function(){var t,n,i,e,r,s=this._milliseconds,o=this._days,a=this._months,u=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*$i(qi(a)+o),o=0,a=0),u.milliseconds=s%1e3,t=et(s/1e3),u.seconds=t%60,n=et(t/60),u.minutes=n%60,i=et(n/60),u.hours=i%24,o+=et(i/24),a+=r=et(zi(o)),o-=$i(qi(r)),e=et(a/12),a%=12,u.days=o,u.months=a,u.years=e,this},Ce.clone=function(){return ui(this)},Ce.get=function(t){return t=X(t),this.isValid()?this[t+"s"]():NaN},Ce.milliseconds=oe,Ce.seconds=ae,Ce.minutes=ue,Ce.hours=he,Ce.days=de,Ce.weeks=function(){return et(this.days()/7)},Ce.months=ce,Ce.years=le,Ce.humanize=function(t,n){if(!this.isValid())return this.localeData().invalidDate();var i,e,r=!1,s=me;return"object"==typeof t&&(n=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof n&&(s=Object.assign({},me,n),null!=n.s&&null==n.ss&&(s.ss=n.s-1)),e=function(t,n,i,e){var r=ui(t).abs(),s=fe(r.as("s")),o=fe(r.as("m")),a=fe(r.as("h")),u=fe(r.as("d")),h=fe(r.as("M")),d=fe(r.as("w")),c=fe(r.as("y")),l=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||a<=1&&["h"]||a<i.h&&["hh",a]||u<=1&&["d"]||u<i.d&&["dd",u];return null!=i.w&&(l=l||d<=1&&["w"]||d<i.w&&["ww",d]),(l=l||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=n,l[3]=+t>0,l[4]=e,pe.apply(null,l)}(this,!r,s,i=this.localeData()),r&&(e=i.pastFuture(+this,e)),i.postformat(e)},Ce.toISOString=ve,Ce.toString=ve,Ce.toJSON=ve,Ce.locale=wi,Ce.localeData=Ci,Ce.toIsoString=U("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ve),Ce.lang=vi,z("X",0,0,"unix"),z("x",0,0,"valueOf"),xt("x",Mt),xt("X",/[+-]?\d+(\.\d{1,3})?/),Tt("X",(function(t,n,i){i._d=new Date(1e3*parseFloat(t))})),Tt("x",(function(t,n,i){i._d=new Date(rt(t))})),
2
2
  //! moment.js
3
- p.version="2.29.4",f=$n,p.fn=Gi,p.min=function(){return Jn("isBefore",[].slice.call(arguments,0))},p.max=function(){return Jn("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=x,p.unix=function(t){return $n(1e3*t)},p.months=function(t,n){return Ri(t,n,"months")},p.isDate=Y,p.locale=Nn,p.invalid=k,p.duration=ui,p.isMoment=_,p.weekdays=function(t,n,i){return ji(t,n,i,"weekdays")},p.parseZone=function(){return $n.apply(null,arguments).parseZone()},p.localeData=Tn,p.isDuration=Xn,p.monthsShort=function(t,n){return Ri(t,n,"monthsShort")},p.weekdaysMin=function(t,n,i){return ji(t,n,i,"weekdaysMin")},p.defineLocale=kn,p.updateLocale=function(t,n){if(null!=n){var i,e,r=Mn;null!=Yn[t]&&null!=Yn[t].parentLocale?Yn[t].set(O(Yn[t]._config,n)):(null!=(e=Sn(t))&&(r=e._config),n=O(r,n),null==e&&(n.abbr=t),(i=new F(n)).parentLocale=Yn[t],Yn[t]=i),Nn(t)}else null!=Yn[t]&&(null!=Yn[t].parentLocale?(Yn[t]=Yn[t].parentLocale,t===Nn()&&Nn(t)):null!=Yn[t]&&delete Yn[t]);return Yn[t]},p.locales=function(){return A(Yn)},p.weekdaysShort=function(t,n,i){return ji(t,n,i,"weekdaysShort")},p.normalizeUnits=X,p.relativeTimeRounding=function(t){return void 0===t?fe:"function"==typeof t&&(fe=t,!0)},p.relativeTimeThreshold=function(t,n){return void 0!==me[t]&&(void 0===n?me[t]:(me[t]=n,"s"===t&&(me.ss=n-1),!0))},p.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},p.prototype=Gi,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ye={fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,usedNumberOfRounds,currentTime,expireTime,activatedAt",status:`${l.ACTIVE},${l.ACTIVATED}`},Me='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1.75 12.2505L12.25 1.75049" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M1.75 1.75049L12.25 12.2505" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',Ye=class{constructor(i){t(this,i),this.showDetailsEvent=n(this,"showPowerupDetails",7),this.powerupsLoadEvent=n(this,"powerupsLoad",7),this.closePowerupsEvent=n(this,"closePowerupsList",7),this.mbSource=void 0,this.gameId=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=30,this.showFullList=!1,this.isLoading=!1,this.isActivating=!1,this.powerups=[],this.total=0,this.isPowering=!1,this.showConfirmModal=!1,this.currentPowerup=void 0,this.validPowerIds=[],this.debouncedReload=function(t){let n;return function(...i){const e=this;clearTimeout(n),n=setTimeout((()=>t.apply(e,i)),100)}}(this.reloadPowerups)}reloadPowerupsHandler(t){var n,i;this.showFullList=(null===(n=t.detail)||void 0===n?void 0:n.showFullList)||!1,this.validPowerIds=(null===(i=t.detail)||void 0===i?void 0:i.validPowerIds)||[],this.reloadPowerups()}activePowerupHandler(t){t.detail.id===this.currentPowerup.id&&this.activePowerUp(this.currentPowerup),this.showConfirmModal=!1}powerupTimeCountDownHandler(t){t.detail.timeLeft<=0&&this.reloadPowerups()}reloadPowerups(){this.powerups=[],this.total=0,this.loadData()}handleConfigChange(){this.debouncedReload()}async loadData(){if(!(this.isLoading||this.total>0&&this.powerups.length>=this.total)){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.powerups.length},limit=${this.limit}`),n={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};this.showFullList||t.searchParams.append("filter",`gameId=${this.gameId}`),Object.entries(ye).forEach((([n,i])=>{t.searchParams.append(n,i)})),t.searchParams.append("language",this.language);const i=await fetch(t,n);if(!i.ok)throw window.postMessage({type:"errorWhenLoadPowerups",status:i.status}),new Error(`HTTP error! status: ${i.status}`);const{data:e,total:r}=await i.json();this.powerups=[...this.powerups,...e],this.isPowering=this.powerups.filter((t=>t.status===l.ACTIVATED)).length>0,this.powerups.forEach((t=>{t.isValidForCurrentGame=!this.isPowering||this.validPowerIds.indexOf(t.powerUpID)>-1})),this.total=r,this.showFullList||this.powerupsLoadEvent.emit({powerups:this.powerups,total:r})}catch(t){"AbortError"!==t.name&&console.error("Failed to load powerups:",t)}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}initializeObserver(){this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.loadMoreObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&this.loadData().catch(console.error)}))})),this.lastItemElement&&this.loadMoreObserver.observe(this.lastItemElement)}async activePowerUp(t){if(this.endpoint&&this.session&&!this.isActivating&&!this.isPowering){this.isActivating=!0,this.powerups.forEach((n=>{n.id===t.id&&(n.status=l.ACTIVATING)})),this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const n=new URL(`${this.endpoint}/v1/elevate/activatepowerup`);let i={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"PUT",signal:this.abortController.signal,body:JSON.stringify({powerUpId:t.id})};const e=await fetch(n.href,i);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();if(null==r?void 0:r.success){t=Object.assign(Object.assign({},t),{status:l.ACTIVATED,activatedAt:p(new Date).format("YYYY-MM-DD HH:mm:ssZ")});const n=this.powerups.findIndex((n=>n.id===t.id));this.powerups[n]=Object.assign({},t),this.powerups=[...this.powerups],this.isPowering=!0}else console.error(r.errorMessage);this.reloadPowerups()}catch(t){console.error(t)}finally{this.abortController.signal.aborted||(this.isActivating=!1)}}}onClose(){this.showFullList=!1,this.closePowerupsEvent.emit({powerups:this.powerups})}showDetail(t){t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1,this.showDetailsEvent.emit({id:t.id,powerup:t})}onActiveBtnClick(t){this.isPowering||this.isActivating||!t.isValidForCurrentGame||(this.currentPowerup=t,this.showConfirmModal=!0)}componentDidUpdate(){this.powerups.length<this.total&&this.initializeObserver()}render(){var t;return i("div",{key:"d0879d4b0b824e936e2844a0ad5ad47fcb5fcf2f",class:"IngamePowerUpsContainer",ref:t=>this.stylingContainer=t},i("div",{key:"5d6468c19f4b05ded25e90db61cb388e48b28bd6",class:"TopBar "+(this.showConfirmModal?"Hidden":"")},i("span",{key:"abbf48114af53a3a322ea2d28aa06c075f94ca22",class:"BarTitle"},h("powerups",this.language)),i("div",{key:"03da4df138bf94d8b1867808a5ab2f38c7862eee",class:"IconBtn CircleLinearBorder",onClick:this.onClose.bind(this),innerHTML:Me})),this.isLoading&&0===this.powerups.length?i("smart-loader",null):i("div",{class:"Cards "+(this.showConfirmModal?"Hidden":"")},this.isPowering&&i("div",{class:"Card PoweringDesc"},i("div",{class:"FlexRow"},i("div",{class:"Icon",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.99967 1.75016C4.10018 1.75016 1.74967 4.10067 1.74967 7.00016C1.74967 9.89966 4.10018 12.2502 6.99967 12.2502C9.89917 12.2502 12.2497 9.89966 12.2497 7.00016C12.2497 4.10067 9.89917 1.75016 6.99967 1.75016ZM0.583008 7.00016C0.583008 3.45634 3.45585 0.583496 6.99967 0.583496C10.5435 0.583496 13.4163 3.45634 13.4163 7.00016C13.4163 10.544 10.5435 13.4168 6.99967 13.4168C3.45585 13.4168 0.583008 10.544 0.583008 7.00016ZM6.41634 4.66683C6.41634 4.34466 6.67751 4.0835 6.99967 4.0835H7.00551C7.32767 4.0835 7.58884 4.34466 7.58884 4.66683C7.58884 4.989 7.32767 5.25016 7.00551 5.25016H6.99967C6.67751 5.25016 6.41634 4.989 6.41634 4.66683ZM6.99967 6.41683C7.32184 6.41683 7.58301 6.678 7.58301 7.00016V9.3335C7.58301 9.65566 7.32184 9.91683 6.99967 9.91683C6.67751 9.91683 6.41634 9.65566 6.41634 9.3335V7.00016C6.41634 6.678 6.67751 6.41683 6.99967 6.41683Z" fill="url(#paint0_linear_4493_116)"/>\n<defs>\n<linearGradient id="paint0_linear_4493_116" x1="9.23362" y1="14.7353" x2="-7.16233" y2="0.909066" gradientUnits="userSpaceOnUse">\n<stop stop-color="#D6FFDC"/>\n<stop offset="0.671344" stop-color="#74B580"/>\n<stop offset="1" stop-color="#509142"/>\n</linearGradient>\n</defs>\n</svg>\n'}),i("div",{class:"Text"},h("poweringTooltip",this.language)))),this.powerups.map(((t,n)=>{return i("div",{class:"Card "+(t.status===l.ACTIVATED?"Actived":""),ref:n===this.powerups.length-1?t=>this.lastItemElement=t:null},i("div",{class:"PowerupTitle FlexRow"},i("div",{class:"LeftOfRow"},i("div",{class:"EnergyIcon",innerHTML:'<svg width="16" height="23" viewBox="0 0 16 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.9994 7.31774H10.7237L13.8675 1.56809C13.9553 1.40902 14.0015 1.22856 14.0015 1.04488C14.0014 0.861196 13.955 0.680783 13.867 0.521802C13.779 0.362822 13.6525 0.230887 13.5002 0.139282C13.3479 0.0476784 13.1752 -0.000360859 12.9995 2.04092e-06H6.00004C5.81422 -8.84852e-05 5.63206 0.0539544 5.47398 0.156068C5.3159 0.258181 5.18817 0.404325 5.1051 0.578103L0.105459 11.032C0.0292615 11.1914 -0.00668829 11.3686 0.00102409 11.5466C0.00873646 11.7246 0.0598548 11.8976 0.149524 12.0492C0.239193 12.2008 0.364436 12.3259 0.513357 12.4126C0.662278 12.4993 0.829932 12.5448 1.0004 12.5447H5.65607L3.04225 21.6532C2.97593 21.8834 2.98756 22.1306 3.0752 22.3529C3.16284 22.5752 3.32112 22.7592 3.52336 22.8738C3.7256 22.9883 3.95944 23.0265 4.18546 22.9818C4.41147 22.9371 4.61585 22.8124 4.76413 22.6285L15.7634 9.03845C15.8866 8.88622 15.9656 8.70031 15.9911 8.50267C16.0165 8.30503 15.9874 8.10389 15.9071 7.923C15.8267 7.74211 15.6986 7.58901 15.5378 7.48176C15.377 7.37452 15.1902 7.3176 14.9994 7.31774ZM6.33702 17.4465L7.9579 11.8014C8.00301 11.6452 8.01251 11.4801 7.98565 11.3194C7.95878 11.1586 7.8963 11.0067 7.80319 10.8757C7.71009 10.7447 7.58895 10.6384 7.44947 10.5651C7.31 10.4919 7.15605 10.4538 6.99997 10.4539H2.61828L6.618 2.09078H11.2757L8.13189 7.84043C8.04405 7.9995 7.99784 8.17996 7.99792 8.36364C7.99801 8.54732 8.04439 8.72774 8.13238 8.88672C8.22038 9.0457 8.34689 9.17763 8.49917 9.26924C8.65146 9.36084 8.82414 9.40888 8.99983 9.40852H12.8436L6.33702 17.4465Z" fill="url(#paint0_linear_3660_5836)"/>\n<defs>\n<linearGradient id="paint0_linear_3660_5836" x1="0" y1="0" x2="21.8708" y2="9.53767" gradientUnits="userSpaceOnUse">\n<stop stop-color="#F68B2E"/>\n<stop offset="1" stop-color="#F6BB5C"/>\n</linearGradient>\n</defs>\n</svg>\n'}),i("div",{class:"Name"},t.powerUpName)),i("div",{class:"DetailIcon",onClick:this.showDetail.bind(this,t)},i("div",{class:"IconBtn CircleLinearBorder",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.33398 2.3335L7.00065 7.00016L2.33398 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M7 2.3335L11.6667 7.00016L7 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}))),i("div",{class:"ExpireTime Status CircleLinearBorder"},i("time-count",t.status===l.ACTIVATED?{"in-progress":!0,mode:t.boostingPeriod.mode,"left-rounds":(t.boostingPeriod.numberOfRounds||0)-(t.usedNumberOfRounds||0),language:this.language,"expire-time":(e=t,e.activatedAt&&e.status==l.ACTIVATED?p(e.activatedAt).add(e.boostingPeriod.minutes,"minute").format("YYYY-MM-DDTHH:mm:ssZ"):e.expireTime)}:{language:this.language,mode:t.boostingPeriod.mode,"expire-time":t.expireTime})),i("div",{class:"MultiplierInfo FlexRow"},i("div",{class:"LeftOfRow"},i("div",{class:"MultiplierIcon",innerHTML:'<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.03794 4.01199L3.03683 4.01253L3.03516 4.01361L3.03794 4.01199ZM8.56797 3.91054C8.52932 3.87413 8.48643 3.84227 8.44019 3.81561C8.37472 3.77797 8.30204 3.75384 8.22664 3.74472C8.15125 3.7356 8.07473 3.74167 8.00184 3.76257C7.92894 3.78347 7.86121 3.81874 7.80282 3.86621C7.74444 3.91369 7.69665 3.97235 7.66241 4.03857C7.47107 4.40687 7.20713 4.73466 6.88574 5.00311C6.93501 4.73271 6.95992 4.45861 6.96018 4.18395C6.96124 3.3486 6.73559 2.52789 6.3062 1.80538C5.87681 1.08287 5.25902 0.484375 4.51572 0.0708199C4.43382 0.0253751 4.34142 0.00101547 4.24722 3.10685e-05C4.15301 -0.000953328 4.0601 0.0214698 3.97722 0.0651925C3.89433 0.108915 3.82419 0.172501 3.77339 0.249974C3.7226 0.327446 3.69281 0.416259 3.68683 0.508064C3.65573 1.0224 3.51802 1.52521 3.28205 1.98604C3.04608 2.44688 2.71676 2.85614 2.31405 3.18903L2.18627 3.29048C1.76494 3.56728 1.39202 3.90853 1.08182 4.30113C0.599746 4.89413 0.265808 5.58866 0.106489 6.32962C-0.0528307 7.07059 -0.0331479 7.83762 0.163976 8.56986C0.361099 9.30211 0.730241 9.97943 1.24212 10.5481C1.754 11.1168 2.39454 11.5612 3.11294 11.846C3.19728 11.8796 3.28877 11.8923 3.37936 11.8832C3.46994 11.8741 3.55684 11.8434 3.63241 11.7937C3.70797 11.7441 3.76989 11.6771 3.8127 11.5986C3.85552 11.5202 3.87792 11.4326 3.87794 11.3437C3.87748 11.2862 3.86812 11.2292 3.85017 11.1744C3.72587 10.7182 3.69006 10.2433 3.74461 9.77428C4.27043 10.7424 5.11436 11.5097 6.14073 11.9529C6.26596 12.0076 6.4075 12.0149 6.53796 11.9735C7.34878 11.7179 8.07921 11.2641 8.65986 10.6553C9.24051 10.0464 9.65209 9.3027 9.8555 8.49478C10.0589 7.68686 10.0474 6.84157 9.82205 6.03922C9.5967 5.23687 9.165 4.5041 8.56797 3.91054ZM6.39851 10.8712C5.91423 10.6316 5.48701 10.2951 5.14463 9.88369C4.80226 9.47226 4.55239 8.99508 4.41128 8.48316C4.36814 8.31077 4.33475 8.13618 4.31128 7.96021C4.29547 7.84814 4.24418 7.74371 4.16459 7.66152C4.085 7.57932 3.98109 7.52348 3.86739 7.5018C3.83243 7.49517 3.79689 7.4919 3.76128 7.49204C3.66366 7.49195 3.56775 7.51697 3.48319 7.56459C3.39863 7.6122 3.32841 7.68074 3.27961 7.76328C2.81874 8.53972 2.58703 9.42559 2.61016 10.3227C2.20469 10.015 1.86581 9.6317 1.61316 9.19511C1.36052 8.75852 1.19913 8.27731 1.13836 7.77936C1.07759 7.28142 1.11864 6.77664 1.25913 6.29431C1.39963 5.81197 1.63677 5.36166 1.95682 4.96948C2.19983 4.66126 2.49299 4.39406 2.8246 4.17853C2.83912 4.16944 2.85303 4.15948 2.86627 4.14869C2.86627 4.14869 3.03072 4.01578 3.03627 4.01307C3.82805 3.3594 4.39126 2.4808 4.64739 1.49973C5.25263 2.04621 5.65615 2.77254 5.79529 3.56593C5.93442 4.35932 5.80139 5.17538 5.41684 5.88736C5.36595 5.9824 5.34505 6.09002 5.35677 6.19665C5.36849 6.30328 5.41232 6.40412 5.48271 6.48644C5.5531 6.56876 5.64689 6.62886 5.75224 6.65914C5.8576 6.68943 5.96978 6.68855 6.07462 6.65661C6.92559 6.39601 7.67437 5.88711 8.22019 5.1984C8.54836 5.67158 8.76292 6.21098 8.8479 6.77639C8.93287 7.34181 8.88606 7.91866 8.71095 8.46396C8.53584 9.00925 8.23695 9.50892 7.83657 9.92572C7.43618 10.3425 6.94461 10.6657 6.39851 10.8712Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),i("div",{class:"MultiplierValue"},t.multiplier.coefficient,"x "),i("div",{class:"MultiplierMode"},h(t.multiplier.mode===d.COINS?"coins":"xp",this.language)),i("div",{class:"MultiplierIcon",innerHTML:'<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.02187 3.84217L9.59599 3.27436C9.71479 3.15556 9.78153 2.99444 9.78153 2.82643C9.78153 2.65842 9.71479 2.49729 9.59599 2.37849C9.47719 2.25969 9.31606 2.19295 9.14805 2.19295C8.98004 2.19295 8.81891 2.25969 8.70011 2.37849L8.1323 2.95261C7.24813 2.26862 6.16191 1.89751 5.04405 1.89751C3.9262 1.89751 2.83997 2.26862 1.9558 2.95261L1.38168 2.37218C1.26205 2.25338 1.10012 2.18697 0.931516 2.18756C0.762915 2.18815 0.601455 2.2557 0.482654 2.37533C0.363853 2.49497 0.297445 2.6569 0.298036 2.8255C0.298628 2.9941 0.366171 3.15556 0.485809 3.27436L1.06624 3.84848C0.374149 4.73019 -0.00137735 5.819 1.65478e-05 6.93989C-0.00204377 7.74455 0.188317 8.53804 0.555222 9.25419C0.922128 9.97034 1.45494 10.5884 2.10923 11.0568C2.76352 11.5252 3.52032 11.8303 4.31651 11.9468C5.11269 12.0633 5.9252 11.9878 6.68625 11.7264C7.4473 11.4651 8.13485 11.0256 8.69154 10.4446C9.24824 9.86362 9.65795 9.15792 9.8865 8.3864C10.1151 7.61487 10.1558 6.79988 10.0054 6.0094C9.85502 5.21892 9.51779 4.47585 9.02187 3.84217ZM5.04721 10.7253C4.29853 10.7253 3.56666 10.5033 2.94415 10.0873C2.32165 9.67138 1.83647 9.08018 1.54996 8.38849C1.26345 7.6968 1.18849 6.93569 1.33455 6.20139C1.48061 5.4671 1.84113 4.79261 2.37053 4.26321C2.89993 3.73381 3.57442 3.37329 4.30871 3.22723C5.04301 3.08117 5.80412 3.15613 6.49581 3.44264C7.1875 3.72915 7.7787 4.21433 8.19465 4.83683C8.61059 5.45934 8.8326 6.19121 8.8326 6.93989C8.8326 7.94383 8.43378 8.90666 7.72388 9.61656C7.01399 10.3265 6.05116 10.7253 5.04721 10.7253ZM3.78541 1.2618H6.309C6.47633 1.2618 6.6368 1.19533 6.75512 1.07701C6.87343 0.958695 6.9399 0.798223 6.9399 0.630899C6.9399 0.463574 6.87343 0.303102 6.75512 0.184786C6.6368 0.0664695 6.47633 0 6.309 0H3.78541C3.61808 0 3.45761 0.0664695 3.3393 0.184786C3.22098 0.303102 3.15451 0.463574 3.15451 0.630899C3.15451 0.798223 3.22098 0.958695 3.3393 1.07701C3.45761 1.19533 3.61808 1.2618 3.78541 1.2618ZM5.67811 5.04719C5.67811 4.87987 5.61164 4.71939 5.49332 4.60108C5.375 4.48276 5.21453 4.41629 5.04721 4.41629C4.87988 4.41629 4.71941 4.48276 4.60109 4.60108C4.48278 4.71939 4.41631 4.87987 4.41631 5.04719V6.23959C4.27345 6.36736 4.17276 6.5355 4.12756 6.72175C4.08235 6.908 4.09477 7.10359 4.16315 7.28263C4.23154 7.46168 4.35268 7.61573 4.51054 7.72442C4.66841 7.83311 4.85555 7.8913 5.04721 7.8913C5.23887 7.8913 5.42601 7.83311 5.58387 7.72442C5.74173 7.61573 5.86287 7.46168 5.93126 7.28263C5.99965 7.10359 6.01206 6.908 5.96686 6.72175C5.92165 6.5355 5.82096 6.36736 5.67811 6.23959V5.04719Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),i("div",{class:"MultiplierValue"},t.boostingPeriod[t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?"numberOfRounds":"minutes"]),i("div",{class:"MultiplierMode"},h(t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?t.boostingPeriod.numberOfRounds>1?"rounds":"round":"minutes",this.language))),(t.status===l.ACTIVE||t.status===l.ACTIVATING)&&i("div",{class:`ActiveBtn CircleLinearBorder ${this.isPowering||!t.isValidForCurrentGame?"Disabled":""} ${this.isActivating?"Activating":""}`,onClick:()=>this.onActiveBtnClick(t)},i("div",{class:"content"}," ",h("activate",this.language)))));var e})),this.isLoading&&this.powerups.length>0&&i("smart-loader",null)),i("active-confirm-modal",{key:"3e58eceec850abeeb700e0beed48d9167e1a9485","is-open":this.showConfirmModal,pid:null===(t=this.currentPowerup)||void 0===t?void 0:t.id,language:this.language}))}handleClientStylingChange(t,n){t!=n&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!=n&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!=n&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){u(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await u(this.translationUrl),this.handleConfigChange()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get assetsDirs(){return["../assets"]}static get watchers(){return{session:["handleConfigChange"],endpoint:["handleConfigChange"],limit:["handleConfigChange"],language:["handleConfigChange"],showFullList:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Ye.style='@charset "UTF-8";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:"";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.8rem;width:max-content;height:25px;backdrop-filter:blur(4.6px);flex-grow:0;border:0px solid;opacity:1;padding:1px}.IngamePowerUpsContainer .Cards .Card .Status::before{background:linear-gradient(97.6deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)) 11.03%, var(--emw--ingame-color-white00, rgba(255, 255, 255, 0)) 95.17%), linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)))}.IngamePowerUpsContainer .Cards .Card .Status .InprogressLabel{width:fit-content;min-width:100px}.IngamePowerUpsContainer .Cards .Card .Status time-count{min-width:172px}.IngamePowerUpsContainer .Cards .Card .Status time-count{background-color:var(--emw--ingame-color-black-middle, #020308);width:calc(100% - 4px);height:calc(100% - 4px);border-radius:20px;text-align:center;align-items:center;display:flex;justify-content:center;padding:2.2px;z-index:1;padding-right:10px}.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating{background-color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843))}.IngamePowerUpsContainer .Cards .Card time-count .Label{margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel{text-align:left;width:fit-content;padding:0 5px;border-radius:18px;border:1px solid rgba(175, 165, 165, 0.5098039216);line-height:21px;margin-right:10px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel .Icon{height:5px;width:5px;background-color:var(--New-Indicator-Yellow, #FFB801);border-radius:3px;display:inline-block;margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .TimeCountDown{letter-spacing:1.5px;font-weight:bold;text-transform:capitalize}.IngamePowerUpsContainer .ActiveBtn{color:var(--emw--ingame-color-black, #090909);position:relative;background:none;overflow:hidden;min-width:88px;height:36px;font-weight:bold;gap:10px;border-radius:20px;animation-duration:0ms}.IngamePowerUpsContainer .ActiveBtn.Disabled .content{background-color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2));color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2))}.IngamePowerUpsContainer .ActiveBtn.Disabled:hover,.IngamePowerUpsContainer .ActiveBtn.Disabled:before{box-shadow:none;background:none}.IngamePowerUpsContainer .ActiveBtn:hover{box-shadow:0px 0px 3px 5px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.IngamePowerUpsContainer .ActiveBtn::before{content:"";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;z-index:1;border-radius:18px;background:linear-gradient(to top right, var(--emw--ingame-color-powerup-brightgreen, #00FA5A), var(--emw--ingame-color-powerup-brightblue, rgba(50, 237, 221, 0.8901960784)))}.IngamePowerUpsContainer .ActiveBtn .content{line-height:1.6;background:var(--emw--ingame-color-powerup-brightgreen, #00FA5A);border-radius:18px;padding:1px;height:calc(100% - 4px);width:calc(100% - 4px);text-align:center;align-items:center;display:flex;justify-content:center;z-index:1}';export{Ye as B,Me as C,c as a,p as h,h as t}
3
+ p.version="2.29.4",f=$n,p.fn=Gi,p.min=function(){return Jn("isBefore",[].slice.call(arguments,0))},p.max=function(){return Jn("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=x,p.unix=function(t){return $n(1e3*t)},p.months=function(t,n){return Ri(t,n,"months")},p.isDate=Y,p.locale=Nn,p.invalid=k,p.duration=ui,p.isMoment=_,p.weekdays=function(t,n,i){return ji(t,n,i,"weekdays")},p.parseZone=function(){return $n.apply(null,arguments).parseZone()},p.localeData=Tn,p.isDuration=Xn,p.monthsShort=function(t,n){return Ri(t,n,"monthsShort")},p.weekdaysMin=function(t,n,i){return ji(t,n,i,"weekdaysMin")},p.defineLocale=kn,p.updateLocale=function(t,n){if(null!=n){var i,e,r=Mn;null!=Yn[t]&&null!=Yn[t].parentLocale?Yn[t].set(O(Yn[t]._config,n)):(null!=(e=Sn(t))&&(r=e._config),n=O(r,n),null==e&&(n.abbr=t),(i=new F(n)).parentLocale=Yn[t],Yn[t]=i),Nn(t)}else null!=Yn[t]&&(null!=Yn[t].parentLocale?(Yn[t]=Yn[t].parentLocale,t===Nn()&&Nn(t)):null!=Yn[t]&&delete Yn[t]);return Yn[t]},p.locales=function(){return A(Yn)},p.weekdaysShort=function(t,n,i){return ji(t,n,i,"weekdaysShort")},p.normalizeUnits=X,p.relativeTimeRounding=function(t){return void 0===t?fe:"function"==typeof t&&(fe=t,!0)},p.relativeTimeThreshold=function(t,n){return void 0!==me[t]&&(void 0===n?me[t]:(me[t]=n,"s"===t&&(me.ss=n-1),!0))},p.calendarFormat=function(t,n){var i=t.diff(n,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},p.prototype=Gi,p.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const ye={fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,usedNumberOfRounds,currentTime,expireTime,activatedAt",status:`${l.ACTIVE},${l.ACTIVATED}`},Me='<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M1.75 12.2505L12.25 1.75049" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M1.75 1.75049L12.25 12.2505" stroke="white" stroke-width="0.952264" stroke-miterlimit="10" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n',Ye=class{constructor(i){t(this,i),this.showDetailsEvent=n(this,"showPowerupDetails",7),this.powerupsLoadEvent=n(this,"powerupsLoad",7),this.closePowerupsEvent=n(this,"closePowerupsList",7),this.mbSource=void 0,this.gameId=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=30,this.showFullList=!1,this.isLoading=!1,this.isActivating=!1,this.powerups=[],this.total=0,this.isPowering=!1,this.showConfirmModal=!1,this.currentPowerup=void 0,this.validPowerIds=[],this.debouncedReload=function(t){let n;return function(...i){const e=this;clearTimeout(n),n=setTimeout((()=>t.apply(e,i)),100)}}(this.reloadPowerups)}reloadPowerupsHandler(t){var n,i;this.showFullList=(null===(n=t.detail)||void 0===n?void 0:n.showFullList)||!1,this.validPowerIds=(null===(i=t.detail)||void 0===i?void 0:i.validPowerIds)||[],this.reloadPowerups()}activePowerupHandler(t){t.detail.id===this.currentPowerup.id&&this.activePowerUp(this.currentPowerup),this.showConfirmModal=!1}powerupTimeCountDownHandler(t){t.detail.timeLeft<=0&&this.reloadPowerups()}reloadPowerups(){this.powerups=[],this.total=0,this.loadData()}handleConfigChange(){this.debouncedReload()}async loadData(){if(!(this.isLoading||this.total>0&&this.powerups.length>=this.total)){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.powerups.length},limit=${this.limit}`),n={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};this.showFullList||t.searchParams.append("filter",`gameId=${this.gameId}`),Object.entries(ye).forEach((([n,i])=>{t.searchParams.append(n,i)})),t.searchParams.append("language",this.language);const i=await fetch(t,n);if(!i.ok)throw window.postMessage({type:"errorWhenLoadPowerups",status:i.status}),new Error(`HTTP error! status: ${i.status}`);const{data:e,total:r}=await i.json();this.powerups=[...this.powerups,...e],this.isPowering=this.powerups.filter((t=>t.status===l.ACTIVATED)).length>0,this.powerups.forEach((t=>{t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1})),this.total=r,this.showFullList||this.powerupsLoadEvent.emit({powerups:this.powerups,total:r})}catch(t){"AbortError"!==t.name&&console.error("Failed to load powerups:",t)}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}initializeObserver(){this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.loadMoreObserver=new IntersectionObserver((t=>{t.forEach((t=>{t.isIntersecting&&this.loadData().catch(console.error)}))})),this.lastItemElement&&this.loadMoreObserver.observe(this.lastItemElement)}async activePowerUp(t){if(this.endpoint&&this.session&&!this.isActivating&&!this.isPowering){this.isActivating=!0,this.powerups.forEach((n=>{n.id===t.id&&(n.status=l.ACTIVATING)})),this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const n=new URL(`${this.endpoint}/v1/elevate/activatepowerup`);let i={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"PUT",signal:this.abortController.signal,body:JSON.stringify({powerUpId:t.id})};const e=await fetch(n.href,i);if(!e.ok)throw new Error(`HTTP error! status: ${e.status}`);const r=await e.json();if(null==r?void 0:r.success){t=Object.assign(Object.assign({},t),{status:l.ACTIVATED,activatedAt:p(new Date).format("YYYY-MM-DD HH:mm:ssZ")});const n=this.powerups.findIndex((n=>n.id===t.id));this.powerups[n]=Object.assign({},t),this.powerups=[...this.powerups],this.isPowering=!0}else console.error(r.errorMessage);this.reloadPowerups()}catch(t){console.error(t)}finally{this.abortController.signal.aborted||(this.isActivating=!1)}}}onClose(){this.showFullList=!1,this.closePowerupsEvent.emit({powerups:this.powerups})}showDetail(t){t.isValidForCurrentGame=!this.isPowering&&this.validPowerIds.indexOf(t.powerUpID)>-1,this.showDetailsEvent.emit({id:t.id,powerup:t})}onActiveBtnClick(t){this.isPowering||this.isActivating||!t.isValidForCurrentGame||(this.currentPowerup=t,this.showConfirmModal=!0)}componentDidUpdate(){this.powerups.length<this.total&&this.initializeObserver()}render(){var t;return i("div",{key:"d0879d4b0b824e936e2844a0ad5ad47fcb5fcf2f",class:"IngamePowerUpsContainer",ref:t=>this.stylingContainer=t},i("div",{key:"5d6468c19f4b05ded25e90db61cb388e48b28bd6",class:"TopBar "+(this.showConfirmModal?"Hidden":"")},i("span",{key:"abbf48114af53a3a322ea2d28aa06c075f94ca22",class:"BarTitle"},h("powerups",this.language)),i("div",{key:"03da4df138bf94d8b1867808a5ab2f38c7862eee",class:"IconBtn CircleLinearBorder",onClick:this.onClose.bind(this),innerHTML:Me})),this.isLoading&&0===this.powerups.length?i("smart-loader",null):i("div",{class:"Cards "+(this.showConfirmModal?"Hidden":"")},this.isPowering&&i("div",{class:"Card PoweringDesc"},i("div",{class:"FlexRow"},i("div",{class:"Icon",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M6.99967 1.75016C4.10018 1.75016 1.74967 4.10067 1.74967 7.00016C1.74967 9.89966 4.10018 12.2502 6.99967 12.2502C9.89917 12.2502 12.2497 9.89966 12.2497 7.00016C12.2497 4.10067 9.89917 1.75016 6.99967 1.75016ZM0.583008 7.00016C0.583008 3.45634 3.45585 0.583496 6.99967 0.583496C10.5435 0.583496 13.4163 3.45634 13.4163 7.00016C13.4163 10.544 10.5435 13.4168 6.99967 13.4168C3.45585 13.4168 0.583008 10.544 0.583008 7.00016ZM6.41634 4.66683C6.41634 4.34466 6.67751 4.0835 6.99967 4.0835H7.00551C7.32767 4.0835 7.58884 4.34466 7.58884 4.66683C7.58884 4.989 7.32767 5.25016 7.00551 5.25016H6.99967C6.67751 5.25016 6.41634 4.989 6.41634 4.66683ZM6.99967 6.41683C7.32184 6.41683 7.58301 6.678 7.58301 7.00016V9.3335C7.58301 9.65566 7.32184 9.91683 6.99967 9.91683C6.67751 9.91683 6.41634 9.65566 6.41634 9.3335V7.00016C6.41634 6.678 6.67751 6.41683 6.99967 6.41683Z" fill="url(#paint0_linear_4493_116)"/>\n<defs>\n<linearGradient id="paint0_linear_4493_116" x1="9.23362" y1="14.7353" x2="-7.16233" y2="0.909066" gradientUnits="userSpaceOnUse">\n<stop stop-color="#D6FFDC"/>\n<stop offset="0.671344" stop-color="#74B580"/>\n<stop offset="1" stop-color="#509142"/>\n</linearGradient>\n</defs>\n</svg>\n'}),i("div",{class:"Text"},h("poweringTooltip",this.language)))),this.powerups.map(((t,n)=>{return i("div",{class:"Card "+(t.status===l.ACTIVATED?"Actived":""),ref:n===this.powerups.length-1?t=>this.lastItemElement=t:null},i("div",{class:"PowerupTitle FlexRow"},i("div",{class:"LeftOfRow"},i("div",{class:"EnergyIcon",innerHTML:'<svg width="16" height="23" viewBox="0 0 16 23" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M14.9994 7.31774H10.7237L13.8675 1.56809C13.9553 1.40902 14.0015 1.22856 14.0015 1.04488C14.0014 0.861196 13.955 0.680783 13.867 0.521802C13.779 0.362822 13.6525 0.230887 13.5002 0.139282C13.3479 0.0476784 13.1752 -0.000360859 12.9995 2.04092e-06H6.00004C5.81422 -8.84852e-05 5.63206 0.0539544 5.47398 0.156068C5.3159 0.258181 5.18817 0.404325 5.1051 0.578103L0.105459 11.032C0.0292615 11.1914 -0.00668829 11.3686 0.00102409 11.5466C0.00873646 11.7246 0.0598548 11.8976 0.149524 12.0492C0.239193 12.2008 0.364436 12.3259 0.513357 12.4126C0.662278 12.4993 0.829932 12.5448 1.0004 12.5447H5.65607L3.04225 21.6532C2.97593 21.8834 2.98756 22.1306 3.0752 22.3529C3.16284 22.5752 3.32112 22.7592 3.52336 22.8738C3.7256 22.9883 3.95944 23.0265 4.18546 22.9818C4.41147 22.9371 4.61585 22.8124 4.76413 22.6285L15.7634 9.03845C15.8866 8.88622 15.9656 8.70031 15.9911 8.50267C16.0165 8.30503 15.9874 8.10389 15.9071 7.923C15.8267 7.74211 15.6986 7.58901 15.5378 7.48176C15.377 7.37452 15.1902 7.3176 14.9994 7.31774ZM6.33702 17.4465L7.9579 11.8014C8.00301 11.6452 8.01251 11.4801 7.98565 11.3194C7.95878 11.1586 7.8963 11.0067 7.80319 10.8757C7.71009 10.7447 7.58895 10.6384 7.44947 10.5651C7.31 10.4919 7.15605 10.4538 6.99997 10.4539H2.61828L6.618 2.09078H11.2757L8.13189 7.84043C8.04405 7.9995 7.99784 8.17996 7.99792 8.36364C7.99801 8.54732 8.04439 8.72774 8.13238 8.88672C8.22038 9.0457 8.34689 9.17763 8.49917 9.26924C8.65146 9.36084 8.82414 9.40888 8.99983 9.40852H12.8436L6.33702 17.4465Z" fill="url(#paint0_linear_3660_5836)"/>\n<defs>\n<linearGradient id="paint0_linear_3660_5836" x1="0" y1="0" x2="21.8708" y2="9.53767" gradientUnits="userSpaceOnUse">\n<stop stop-color="#F68B2E"/>\n<stop offset="1" stop-color="#F6BB5C"/>\n</linearGradient>\n</defs>\n</svg>\n'}),i("div",{class:"Name"},t.powerUpName)),i("div",{class:"DetailIcon",onClick:this.showDetail.bind(this,t)},i("div",{class:"IconBtn CircleLinearBorder",innerHTML:'<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M2.33398 2.3335L7.00065 7.00016L2.33398 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n<path d="M7 2.3335L11.6667 7.00016L7 11.6668" stroke="white" stroke-width="0.952264" stroke-linecap="round" stroke-linejoin="round"/>\n</svg>\n'}))),i("div",{class:"ExpireTime Status CircleLinearBorder"},i("time-count",t.status===l.ACTIVATED?{"in-progress":!0,mode:t.boostingPeriod.mode,"left-rounds":(t.boostingPeriod.numberOfRounds||0)-(t.usedNumberOfRounds||0),language:this.language,"expire-time":(e=t,e.activatedAt&&e.status==l.ACTIVATED?p(e.activatedAt).add(e.boostingPeriod.minutes,"minute").format("YYYY-MM-DDTHH:mm:ssZ"):e.expireTime)}:{language:this.language,mode:t.boostingPeriod.mode,"expire-time":t.expireTime})),i("div",{class:"MultiplierInfo FlexRow"},i("div",{class:"LeftOfRow"},i("div",{class:"MultiplierIcon",innerHTML:'<svg width="10" height="12" viewBox="0 0 10 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M3.03794 4.01199L3.03683 4.01253L3.03516 4.01361L3.03794 4.01199ZM8.56797 3.91054C8.52932 3.87413 8.48643 3.84227 8.44019 3.81561C8.37472 3.77797 8.30204 3.75384 8.22664 3.74472C8.15125 3.7356 8.07473 3.74167 8.00184 3.76257C7.92894 3.78347 7.86121 3.81874 7.80282 3.86621C7.74444 3.91369 7.69665 3.97235 7.66241 4.03857C7.47107 4.40687 7.20713 4.73466 6.88574 5.00311C6.93501 4.73271 6.95992 4.45861 6.96018 4.18395C6.96124 3.3486 6.73559 2.52789 6.3062 1.80538C5.87681 1.08287 5.25902 0.484375 4.51572 0.0708199C4.43382 0.0253751 4.34142 0.00101547 4.24722 3.10685e-05C4.15301 -0.000953328 4.0601 0.0214698 3.97722 0.0651925C3.89433 0.108915 3.82419 0.172501 3.77339 0.249974C3.7226 0.327446 3.69281 0.416259 3.68683 0.508064C3.65573 1.0224 3.51802 1.52521 3.28205 1.98604C3.04608 2.44688 2.71676 2.85614 2.31405 3.18903L2.18627 3.29048C1.76494 3.56728 1.39202 3.90853 1.08182 4.30113C0.599746 4.89413 0.265808 5.58866 0.106489 6.32962C-0.0528307 7.07059 -0.0331479 7.83762 0.163976 8.56986C0.361099 9.30211 0.730241 9.97943 1.24212 10.5481C1.754 11.1168 2.39454 11.5612 3.11294 11.846C3.19728 11.8796 3.28877 11.8923 3.37936 11.8832C3.46994 11.8741 3.55684 11.8434 3.63241 11.7937C3.70797 11.7441 3.76989 11.6771 3.8127 11.5986C3.85552 11.5202 3.87792 11.4326 3.87794 11.3437C3.87748 11.2862 3.86812 11.2292 3.85017 11.1744C3.72587 10.7182 3.69006 10.2433 3.74461 9.77428C4.27043 10.7424 5.11436 11.5097 6.14073 11.9529C6.26596 12.0076 6.4075 12.0149 6.53796 11.9735C7.34878 11.7179 8.07921 11.2641 8.65986 10.6553C9.24051 10.0464 9.65209 9.3027 9.8555 8.49478C10.0589 7.68686 10.0474 6.84157 9.82205 6.03922C9.5967 5.23687 9.165 4.5041 8.56797 3.91054ZM6.39851 10.8712C5.91423 10.6316 5.48701 10.2951 5.14463 9.88369C4.80226 9.47226 4.55239 8.99508 4.41128 8.48316C4.36814 8.31077 4.33475 8.13618 4.31128 7.96021C4.29547 7.84814 4.24418 7.74371 4.16459 7.66152C4.085 7.57932 3.98109 7.52348 3.86739 7.5018C3.83243 7.49517 3.79689 7.4919 3.76128 7.49204C3.66366 7.49195 3.56775 7.51697 3.48319 7.56459C3.39863 7.6122 3.32841 7.68074 3.27961 7.76328C2.81874 8.53972 2.58703 9.42559 2.61016 10.3227C2.20469 10.015 1.86581 9.6317 1.61316 9.19511C1.36052 8.75852 1.19913 8.27731 1.13836 7.77936C1.07759 7.28142 1.11864 6.77664 1.25913 6.29431C1.39963 5.81197 1.63677 5.36166 1.95682 4.96948C2.19983 4.66126 2.49299 4.39406 2.8246 4.17853C2.83912 4.16944 2.85303 4.15948 2.86627 4.14869C2.86627 4.14869 3.03072 4.01578 3.03627 4.01307C3.82805 3.3594 4.39126 2.4808 4.64739 1.49973C5.25263 2.04621 5.65615 2.77254 5.79529 3.56593C5.93442 4.35932 5.80139 5.17538 5.41684 5.88736C5.36595 5.9824 5.34505 6.09002 5.35677 6.19665C5.36849 6.30328 5.41232 6.40412 5.48271 6.48644C5.5531 6.56876 5.64689 6.62886 5.75224 6.65914C5.8576 6.68943 5.96978 6.68855 6.07462 6.65661C6.92559 6.39601 7.67437 5.88711 8.22019 5.1984C8.54836 5.67158 8.76292 6.21098 8.8479 6.77639C8.93287 7.34181 8.88606 7.91866 8.71095 8.46396C8.53584 9.00925 8.23695 9.50892 7.83657 9.92572C7.43618 10.3425 6.94461 10.6657 6.39851 10.8712Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),i("div",{class:"MultiplierValue"},t.multiplier.coefficient,"x "),i("div",{class:"MultiplierMode"},h(t.multiplier.mode===d.COINS?"coins":"xp",this.language)),i("div",{class:"MultiplierIcon",innerHTML:'<svg width="11" height="12" viewBox="0 0 11 12" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.02187 3.84217L9.59599 3.27436C9.71479 3.15556 9.78153 2.99444 9.78153 2.82643C9.78153 2.65842 9.71479 2.49729 9.59599 2.37849C9.47719 2.25969 9.31606 2.19295 9.14805 2.19295C8.98004 2.19295 8.81891 2.25969 8.70011 2.37849L8.1323 2.95261C7.24813 2.26862 6.16191 1.89751 5.04405 1.89751C3.9262 1.89751 2.83997 2.26862 1.9558 2.95261L1.38168 2.37218C1.26205 2.25338 1.10012 2.18697 0.931516 2.18756C0.762915 2.18815 0.601455 2.2557 0.482654 2.37533C0.363853 2.49497 0.297445 2.6569 0.298036 2.8255C0.298628 2.9941 0.366171 3.15556 0.485809 3.27436L1.06624 3.84848C0.374149 4.73019 -0.00137735 5.819 1.65478e-05 6.93989C-0.00204377 7.74455 0.188317 8.53804 0.555222 9.25419C0.922128 9.97034 1.45494 10.5884 2.10923 11.0568C2.76352 11.5252 3.52032 11.8303 4.31651 11.9468C5.11269 12.0633 5.9252 11.9878 6.68625 11.7264C7.4473 11.4651 8.13485 11.0256 8.69154 10.4446C9.24824 9.86362 9.65795 9.15792 9.8865 8.3864C10.1151 7.61487 10.1558 6.79988 10.0054 6.0094C9.85502 5.21892 9.51779 4.47585 9.02187 3.84217ZM5.04721 10.7253C4.29853 10.7253 3.56666 10.5033 2.94415 10.0873C2.32165 9.67138 1.83647 9.08018 1.54996 8.38849C1.26345 7.6968 1.18849 6.93569 1.33455 6.20139C1.48061 5.4671 1.84113 4.79261 2.37053 4.26321C2.89993 3.73381 3.57442 3.37329 4.30871 3.22723C5.04301 3.08117 5.80412 3.15613 6.49581 3.44264C7.1875 3.72915 7.7787 4.21433 8.19465 4.83683C8.61059 5.45934 8.8326 6.19121 8.8326 6.93989C8.8326 7.94383 8.43378 8.90666 7.72388 9.61656C7.01399 10.3265 6.05116 10.7253 5.04721 10.7253ZM3.78541 1.2618H6.309C6.47633 1.2618 6.6368 1.19533 6.75512 1.07701C6.87343 0.958695 6.9399 0.798223 6.9399 0.630899C6.9399 0.463574 6.87343 0.303102 6.75512 0.184786C6.6368 0.0664695 6.47633 0 6.309 0H3.78541C3.61808 0 3.45761 0.0664695 3.3393 0.184786C3.22098 0.303102 3.15451 0.463574 3.15451 0.630899C3.15451 0.798223 3.22098 0.958695 3.3393 1.07701C3.45761 1.19533 3.61808 1.2618 3.78541 1.2618ZM5.67811 5.04719C5.67811 4.87987 5.61164 4.71939 5.49332 4.60108C5.375 4.48276 5.21453 4.41629 5.04721 4.41629C4.87988 4.41629 4.71941 4.48276 4.60109 4.60108C4.48278 4.71939 4.41631 4.87987 4.41631 5.04719V6.23959C4.27345 6.36736 4.17276 6.5355 4.12756 6.72175C4.08235 6.908 4.09477 7.10359 4.16315 7.28263C4.23154 7.46168 4.35268 7.61573 4.51054 7.72442C4.66841 7.83311 4.85555 7.8913 5.04721 7.8913C5.23887 7.8913 5.42601 7.83311 5.58387 7.72442C5.74173 7.61573 5.86287 7.46168 5.93126 7.28263C5.99965 7.10359 6.01206 6.908 5.96686 6.72175C5.92165 6.5355 5.82096 6.36736 5.67811 6.23959V5.04719Z" fill="white" fill-opacity="0.5"/>\n</svg>\n'}),i("div",{class:"MultiplierValue"},t.boostingPeriod[t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?"numberOfRounds":"minutes"]),i("div",{class:"MultiplierMode"},h(t.boostingPeriod.mode===c.NUMBER_OF_ROUNDS?t.boostingPeriod.numberOfRounds>1?"rounds":"round":"minutes",this.language))),(t.status===l.ACTIVE||t.status===l.ACTIVATING)&&i("div",{class:`ActiveBtn CircleLinearBorder ${this.isPowering||!t.isValidForCurrentGame?"Disabled":""} ${this.isActivating?"Activating":""}`,onClick:()=>this.onActiveBtnClick(t)},i("div",{class:"content"}," ",h("activate",this.language)))));var e})),this.isLoading&&this.powerups.length>0&&i("smart-loader",null)),i("active-confirm-modal",{key:"3e58eceec850abeeb700e0beed48d9167e1a9485","is-open":this.showConfirmModal,pid:null===(t=this.currentPowerup)||void 0===t?void 0:t.id,language:this.language}))}handleClientStylingChange(t,n){t!=n&&r(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,n){t!=n&&s(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,n){t!=n&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){u(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await u(this.translationUrl),this.handleConfigChange()}componentDidLoad(){this.stylingContainer&&(this.mbSource&&o(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&r(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&s(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.loadMoreObserver&&this.loadMoreObserver.disconnect(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get assetsDirs(){return["../assets"]}static get watchers(){return{session:["handleConfigChange"],endpoint:["handleConfigChange"],limit:["handleConfigChange"],language:["handleConfigChange"],showFullList:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Ye.style='@charset "UTF-8";.FlexRow{display:flex;flex-direction:row;justify-content:space-between;align-items:flex-start;gap:5px}.IngamePowerUpsContainer{display:block;transition:opacity 200ms ease-in-out;height:100%;padding:var(--emw--ingame-power-container-padding, 8px);}.IngamePowerUpsContainer .IconBtn{width:26px;height:26px}.IngamePowerUpsContainer .Hidden{opacity:0 !important;display:none}.IngamePowerUpsContainer .CircleLinearBorder{position:relative;border-radius:20px;background:none;overflow:hidden;border:1.5px solid transparent;display:flex;align-items:center;justify-content:center;cursor:pointer}.IngamePowerUpsContainer .CircleLinearBorder svg{border-radius:20px;padding:4.5px;background:var(--emw--ingame-color-powerup-bg, rgba(9, 9, 9, 0.8980392157));z-index:1}.IngamePowerUpsContainer .CircleLinearBorder::before{content:"";position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;z-index:0;border-radius:21.5px;background:linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0666666667))), linear-gradient(35.22deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0)), var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.5490196078)) 89.19%)}.IngamePowerUpsContainer .TopBar{opacity:1;transition:all 0.5s ease-in-out;display:flex;justify-content:space-between;align-items:center;padding:15px}.IngamePowerUpsContainer .TopBar .BarTitle{width:calc(100% - 20px);font-weight:600;font-size:1.2rem;text-align:center;vertical-align:middle}.IngamePowerUpsContainer .Cards{opacity:1;transition:all 0.5s ease-in-out;width:100%;height:calc(100% - 70px);gap:16px;opacity:1;padding:1px;overflow:auto;display:flex;flex-direction:column;scrollbar-width:thin;scrollbar-color:var(--emw--color-background, hsl(254, 8.53%, 54.93%)) transparent}.IngamePowerUpsContainer .Cards .Card{background-color:var(--emw--ingame-color-powerup-bg, rgba(27, 27, 27, 0.8901960784));border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));height:99px;gap:12px;opacity:1;border-radius:18px;border-width:1px;padding:14px;align-items:center}.IngamePowerUpsContainer .Cards .Card.PoweringDesc{align-items:flex-start;height:auto;transition:all 0.3s ease-in-out}.IngamePowerUpsContainer .Cards .Card .LeftOfRow{display:flex;flex-direction:row;gap:10px}.IngamePowerUpsContainer .Cards .Card .PowerupTitle,.IngamePowerUpsContainer .Cards .Card .ExpireTime,.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{display:flex;flex-direction:row;align-items:center}.IngamePowerUpsContainer .Cards .Card .PowerupTitle{font-weight:bold}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .LeftOfRow{width:calc(100% - 40px)}.IngamePowerUpsContainer .Cards .Card .PowerupTitle .Name{width:calc(100% - 40px);text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo{align-items:flex-end;height:37.6px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .MultiplierIcon{height:12px}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow{color:var(--emw--ingame-color-white60, rgba(255, 255, 255, 0.4980392157));font-size:0.8rem;gap:3px;align-items:center}.IngamePowerUpsContainer .Cards .Card .MultiplierInfo .LeftOfRow .MultiplierMode{margin-right:15px}.IngamePowerUpsContainer .Cards .Card .Status{display:flex;flex-direction:row;justify-content:center;align-items:center;gap:6px;font-size:0.8rem;width:max-content;height:25px;backdrop-filter:blur(4.6px);flex-grow:0;border:0px solid;opacity:1;padding:1px}.IngamePowerUpsContainer .Cards .Card .Status::before{background:linear-gradient(97.6deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)) 11.03%, var(--emw--ingame-color-white00, rgba(255, 255, 255, 0)) 95.17%), linear-gradient(0deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)), var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.2)))}.IngamePowerUpsContainer .Cards .Card .Status .InprogressLabel{width:fit-content;min-width:100px}.IngamePowerUpsContainer .Cards .Card .Status time-count{min-width:172px}.IngamePowerUpsContainer .Cards .Card .Status time-count{background-color:var(--emw--ingame-color-black-middle, #020308);width:calc(100% - 4px);height:calc(100% - 4px);border-radius:20px;text-align:center;align-items:center;display:flex;justify-content:center;padding:2.2px;z-index:1;padding-right:10px}.IngamePowerUpsContainer .Cards .Card .ActiveButton.Activating{background-color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843));color:var(--emw--ingame-color-white30, rgba(255, 255, 255, 0.3019607843))}.IngamePowerUpsContainer .Cards .Card time-count .Label{margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel{text-align:left;width:fit-content;padding:0 5px;border-radius:18px;border:1px solid rgba(175, 165, 165, 0.5098039216);line-height:21px;margin-right:10px}.IngamePowerUpsContainer .Cards .Card time-count .InprogressLabel .Icon{height:5px;width:5px;background-color:var(--New-Indicator-Yellow, #FFB801);border-radius:3px;display:inline-block;margin-right:5px}.IngamePowerUpsContainer .Cards .Card time-count .TimeCountDown{letter-spacing:1.5px;font-weight:bold;text-transform:capitalize}.IngamePowerUpsContainer .ActiveBtn{color:var(--emw--ingame-color-black, #090909);position:relative;background:none;overflow:hidden;min-width:88px;height:36px;font-weight:bold;gap:10px;border-radius:20px;animation-duration:0ms}.IngamePowerUpsContainer .ActiveBtn.Disabled .content{background-color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2));color:var(--emw--ingame-color-white20, rgba(255, 255, 255, 0.2))}.IngamePowerUpsContainer .ActiveBtn.Disabled:hover,.IngamePowerUpsContainer .ActiveBtn.Disabled:before{box-shadow:none;background:none}.IngamePowerUpsContainer .ActiveBtn:hover{box-shadow:0px 0px 3px 5px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843))}.IngamePowerUpsContainer .ActiveBtn::before{content:"";position:absolute;top:-1px;left:-1px;right:-1px;bottom:-1px;z-index:1;border-radius:18px;background:linear-gradient(to top right, var(--emw--ingame-color-powerup-brightgreen, #00FA5A), var(--emw--ingame-color-powerup-brightblue, rgba(50, 237, 221, 0.8901960784)))}.IngamePowerUpsContainer .ActiveBtn .content{line-height:1.6;background:var(--emw--ingame-color-powerup-brightgreen, #00FA5A);border-radius:18px;padding:1px;height:calc(100% - 4px);width:calc(100% - 4px);text-align:center;align-items:center;display:flex;justify-content:center;z-index:1}';export{Ye as B,Me as C,c as a,p as h,h as t}
@@ -1 +1 @@
1
- export{B as BonusPowerupsIngameList}from"./bonus-powerups-ingame-list-9d11db33.js";import"./index-e015b33d.js";
1
+ export{B as BonusPowerupsIngameList}from"./bonus-powerups-ingame-list-0ec31d98.js";import"./index-e015b33d.js";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1c45277e.js');
6
- const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-3f8f6d31.js');
6
+ const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-392f082a.js');
7
7
 
8
8
  const activeConfirmModalCss = ".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";
9
9
  const ActiveConfirmModalStyle0 = activeConfirmModalCss;
@@ -6025,7 +6025,7 @@ const BonusPowerupsIngameList = class {
6025
6025
  this.powerups = [...this.powerups, ...data];
6026
6026
  this.isPowering = this.powerups.filter(e => e.status === PowerUpStatus.ACTIVATED).length > 0;
6027
6027
  this.powerups.forEach(powerUp => {
6028
- powerUp.isValidForCurrentGame = !this.isPowering || this.validPowerIds.indexOf(powerUp.powerUpID) > -1;
6028
+ powerUp.isValidForCurrentGame = !this.isPowering && this.validPowerIds.indexOf(powerUp.powerUpID) > -1;
6029
6029
  });
6030
6030
  this.total = total;
6031
6031
  if (!this.showFullList) {
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-3f8f6d31.js');
5
+ const bonusPowerupsIngameList = require('./bonus-powerups-ingame-list-392f082a.js');
6
6
  require('./index-1c45277e.js');
7
7
 
8
8
 
@@ -94,7 +94,7 @@ export class BonusPowerupsIngameList {
94
94
  this.powerups = [...this.powerups, ...data];
95
95
  this.isPowering = this.powerups.filter(e => e.status === PowerUpStatus.ACTIVATED).length > 0;
96
96
  this.powerups.forEach(powerUp => {
97
- powerUp.isValidForCurrentGame = !this.isPowering || this.validPowerIds.indexOf(powerUp.powerUpID) > -1;
97
+ powerUp.isValidForCurrentGame = !this.isPowering && this.validPowerIds.indexOf(powerUp.powerUpID) > -1;
98
98
  });
99
99
  this.total = total;
100
100
  if (!this.showFullList) {
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-e015b33d.js';
2
- import { t as translate, C as CloseSvg, a as BoostingPeriodMode, h as hooks } from './bonus-powerups-ingame-list-9d11db33.js';
3
- export { B as bonus_powerups_ingame_list } from './bonus-powerups-ingame-list-9d11db33.js';
2
+ import { t as translate, C as CloseSvg, a as BoostingPeriodMode, h as hooks } from './bonus-powerups-ingame-list-0ec31d98.js';
3
+ export { B as bonus_powerups_ingame_list } from './bonus-powerups-ingame-list-0ec31d98.js';
4
4
 
5
5
  const activeConfirmModalCss = ".ModalContainer{position:absolute;top:calc(50% - 200px);left:0;width:calc(100% - 120px);margin:40px;max-width:400px;height:260px;text-align:center;padding:20px;display:flex;gap:30px;flex-direction:column;border:1px solid var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.0784313725));transition:opacity 200ms ease-in-out;opacity:1;background:var(--emw--ingame-color-black40, rgba(9, 9, 9, 0.5019607843));border-radius:20px;backdrop-filter:blur(22.9411773682px);justify-content:flex-start}.ModalContainer.Hidden{opacity:0 !important}.ModalContainer.Shown .TopBar{justify-content:flex-end;padding:0px}.ModalContainer .Title{font-weight:bold;font-size:1.2rem}.ModalContainer .Btns{display:flex;justify-content:space-evenly}.ModalContainer .PowupBtn{background:linear-gradient(49deg, var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843)) 33.61%, var(--emw--ingame-color-white50, rgba(255, 255, 255, 0.1019607843)) 89.19%);border:1px solid rgba(70, 69, 69, 0.5);border-radius:10px;padding:5px 15px;color:var(--emw--color-powup-light-green, #00FA5A);font-weight:bold;cursor:pointer}.ModalContainer .PowupBtn.Active{background:var(--emw--color-powup-light-green, #00FA5A);box-shadow:0px 0px 6px 10px var(--emw--ingame-color-white10, rgba(255, 255, 255, 0.1019607843));color:#0A0A17}";
6
6
  const ActiveConfirmModalStyle0 = activeConfirmModalCss;
@@ -6023,7 +6023,7 @@ const BonusPowerupsIngameList = class {
6023
6023
  this.powerups = [...this.powerups, ...data];
6024
6024
  this.isPowering = this.powerups.filter(e => e.status === PowerUpStatus.ACTIVATED).length > 0;
6025
6025
  this.powerups.forEach(powerUp => {
6026
- powerUp.isValidForCurrentGame = !this.isPowering || this.validPowerIds.indexOf(powerUp.powerUpID) > -1;
6026
+ powerUp.isValidForCurrentGame = !this.isPowering && this.validPowerIds.indexOf(powerUp.powerUpID) > -1;
6027
6027
  });
6028
6028
  this.total = total;
6029
6029
  if (!this.showFullList) {
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { B as BonusPowerupsIngameList } from './bonus-powerups-ingame-list-9d11db33.js';
1
+ export { B as BonusPowerupsIngameList } from './bonus-powerups-ingame-list-0ec31d98.js';
2
2
  import './index-e015b33d.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/bonus-powerups-ingame-list",
3
- "version": "0.0.34",
3
+ "version": "0.0.38",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",