@everymatrix/casino-my-tournaments 1.34.2 → 1.35.0

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{p as t,b as e}from"./p-916b1393.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((t=>e([["p-c28c9043",[[1,"casino-my-tournaments",{endpoint:[1],language:[1],userId:[1,"user-id"],session:[1],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],currency:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[513,"translation-url"],limitStylingAppends:[32],bannerProps:[32],infoProps:[32],leaderboardProps:[32],tournaments:[32],collapsed:[32],translationData:[32]}],[1,"casino-tournament-info",{endpoint:[1],nameOrTitle:[1,"name-or-title"],scoreCriteria:[1,"score-criteria"],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],termsUrl:[1,"terms-url"],keepContext:[4,"keep-context"],useGroup:[4,"use-group"],align:[1],showDates:[4,"show-dates"],showPrizes:[4,"show-prizes"],showButton:[4,"show-button"],shortStart:[4,"short-start"],seeGames:[4,"see-games"],useEvent:[4,"use-event"],startTime:[1,"start-time"],endTime:[1,"end-time"],minBetCount:[2,"min-bet-count"],prizes:[8],shortStartFormat:[1,"short-start-format"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],enrolled:[4],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],translationUrl:[513,"translation-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-leaderboard",{endpoint:[1],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],tableLimit:[2,"table-limit"],mobileLimit:[2,"mobile-limit"],tableColumns:[1,"table-columns"],updateLeaderboard:[4,"update-leaderboard"],userSticky:[4,"user-sticky"],userOnly:[4,"user-only"],showUnqualified:[4,"show-unqualified"],namemask:[1],minscore:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],showHeader:[4,"show-header"],showTitle:[4,"show-title"],showTopIcon:[4,"show-top-icon"],translationData:[520,"translation-data"],limitStylingAppends:[32],items:[32],columns:[32],rankChanged:[32],rankUp:[32],rankDown:[32],rank:[32],arrowDuration:[32]}],[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}],[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]}],[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],t)));
1
+ import{p as t,b as e}from"./p-916b1393.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((t=>e([["p-e9fdab23",[[1,"casino-my-tournaments",{endpoint:[1],language:[1],userId:[1,"user-id"],session:[1],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],currency:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[513,"translation-url"],limitStylingAppends:[32],bannerProps:[32],infoProps:[32],leaderboardProps:[32],tournaments:[32],collapsed:[32],translationData:[32]}],[1,"casino-tournament-info",{endpoint:[1],nameOrTitle:[1,"name-or-title"],scoreCriteria:[1,"score-criteria"],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],termsUrl:[1,"terms-url"],keepContext:[4,"keep-context"],useGroup:[4,"use-group"],align:[1],showDates:[4,"show-dates"],showPrizes:[4,"show-prizes"],showButton:[4,"show-button"],shortStart:[4,"short-start"],seeGames:[4,"see-games"],useEvent:[4,"use-event"],startTime:[1,"start-time"],endTime:[1,"end-time"],minBetCount:[2,"min-bet-count"],prizes:[8],shortStartFormat:[1,"short-start-format"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],enrolled:[4],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],translationUrl:[513,"translation-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-leaderboard",{endpoint:[1],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],tableLimit:[2,"table-limit"],mobileLimit:[2,"mobile-limit"],tableColumns:[1,"table-columns"],updateLeaderboard:[4,"update-leaderboard"],userSticky:[4,"user-sticky"],userOnly:[4,"user-only"],showUnqualified:[4,"show-unqualified"],namemask:[1],minscore:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],showHeader:[4,"show-header"],showTitle:[4,"show-title"],showTopIcon:[4,"show-top-icon"],translationData:[520,"translation-data"],limitStylingAppends:[32],items:[32],columns:[32],rankChanged:[32],rankUp:[32],rankDown:[32],rank:[32],arrowDuration:[32]}],[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}],[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]}],[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],t)));
@@ -6,7 +6,7 @@ import{r as t,c as e,h as i,g as n}from"./p-916b1393.js";const r={en:{casinoMyTo
6
6
  //! momentjs.com
7
7
  var h,l;function d(){return h.apply(null,arguments)}function c(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function m(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function f(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function g(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(f(t,e))return!1;return!0}function p(t){return void 0===t}function b(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 v(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function w(t,e){for(var i in e)f(e,i)&&(t[i]=e[i]);return f(e,"toString")&&(t.toString=e.toString),f(e,"valueOf")&&(t.valueOf=e.valueOf),t}function S(t,e,i,n){return Fe(t,e,i,n,!0).utc()}function k(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 M(t){if(null==t._isValid){var e=k(t),i=l.call(e.parsedDateParts,(function(t){return null!=t})),n=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function C(t){var e=S(NaN);return null!=t?w(k(e),t):k(e).userInvalidated=!0,e}l=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var x=d.momentProperties=[],D=!1;function T(t,e){var i,n,r,s=x.length;if(p(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),p(e._i)||(t._i=e._i),p(e._f)||(t._f=e._f),p(e._l)||(t._l=e._l),p(e._strict)||(t._strict=e._strict),p(e._tzm)||(t._tzm=e._tzm),p(e._isUTC)||(t._isUTC=e._isUTC),p(e._offset)||(t._offset=e._offset),p(e._pf)||(t._pf=k(e)),p(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)p(r=e[n=x[i]])||(t[n]=r);return t}function A(t){T(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===D&&(D=!0,d.updateOffset(this),D=!1)}function R(t){return t instanceof A||null!=t&&null!=t._isAMomentObject}function j(t){!1===d.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function F(t,e){var i=!0;return w((function(){if(null!=d.deprecationHandler&&d.deprecationHandler(null,t),i){var n,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])f(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}j(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var N,Y={};function z(t,e){null!=d.deprecationHandler&&d.deprecationHandler(t,e),Y[t]||(j(e),Y[t]=!0)}function L(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function B(t,e){var i,n=w({},t);for(i in e)f(e,i)&&(m(t[i])&&m(e[i])?(n[i]={},w(n[i],t[i]),w(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)f(t,i)&&!f(e,i)&&m(t[i])&&(n[i]=w({},n[i]));return n}function J(t){null!=t&&this.set(t)}function P(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}d.suppressDeprecationWarnings=!1,d.deprecationHandler=null,N=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)f(t,e)&&i.push(e);return i};var O=/(\[[^\[]*\])|(\\)?([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,H=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},E={};function I(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(E[t]=r),e&&(E[e[0]]=function(){return P(r.apply(this,arguments),e[1],e[2])}),i&&(E[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t,e){return t.isValid()?(e=_(e,t.localeData()),W[e]=W[e]||function(t){var e,i,n,r=t.match(O);for(e=0,i=r.length;e<i;e++)r[e]=E[r[e]]?E[r[e]]:(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<i;n++)s+=L(r[n])?r[n].call(e,t):r[n];return s}}(e),W[e](t)):t.localeData().invalidDate()}function _(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(H.lastIndex=0;i>=0&&H.test(t);)t=t.replace(H,n),H.lastIndex=0,i-=1;return t}var V={};function Z(t,e){var i=t.toLowerCase();V[i]=V[i+"s"]=V[e]=t}function U(t){return"string"==typeof t?V[t]||V[t.toLowerCase()]:void 0}function $(t){var e,i,n={};for(i in t)f(t,i)&&(e=U(i))&&(n[e]=t[i]);return n}var q={};function K(t,e){q[t]=e}function X(t){return t%4==0&&t%100!=0||t%400==0}function Q(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function tt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=Q(e)),i}function et(t,e){return function(i){return null!=i?(nt(this,t,i),d.updateOffset(this,e),this):it(this,t)}}function it(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function nt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&X(t.year())&&1===t.month()&&29===t.date()?(i=tt(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Rt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var rt,st=/\d/,at=/\d\d/,ot=/\d{3}/,ut=/\d{4}/,ht=/[+-]?\d{6}/,lt=/\d\d?/,dt=/\d\d\d\d?/,ct=/\d\d\d\d\d\d?/,mt=/\d{1,3}/,ft=/\d{1,4}/,gt=/[+-]?\d{1,6}/,pt=/\d+/,bt=/[+-]?\d+/,yt=/Z|[+-]\d\d:?\d\d/gi,vt=/Z|[+-]\d\d(?::?\d\d)?/gi,wt=/[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 St(t,e,i){rt[t]=L(e)?e:function(t){return t&&i?i:e}}function kt(t,e){return f(rt,t)?rt[t](e._strict,e._locale):new RegExp(Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}rt={};var Ct,xt={};function Dt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),b(e)&&(r=function(t,i){i[e]=tt(t)}),n=t.length,i=0;i<n;i++)xt[t[i]]=r}function Tt(t,e){Dt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function At(t,e,i){null!=e&&f(xt,t)&&xt[t](e,i._a,i,t)}function Rt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?X(t)?29:28:31-i%7%2}Ct=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),I("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),Z("month","M"),K("month",8),St("M",lt),St("MM",lt,at),St("MMM",(function(t,e){return e.monthsShortRegex(t)})),St("MMMM",(function(t,e){return e.monthsRegex(t)})),Dt(["M","MM"],(function(t,e){e[1]=tt(t)-1})),Dt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[1]=r:k(i).invalidMonth=t}));var jt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ft="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Nt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Yt=wt,zt=wt;function Lt(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=S([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ct.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ct.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ct.call(this._shortMonthsParse,a))||-1!==(r=Ct.call(this._longMonthsParse,a))?r:null:-1!==(r=Ct.call(this._longMonthsParse,a))||-1!==(r=Ct.call(this._shortMonthsParse,a))?r:null}function Bt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=tt(e);else if(!b(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Rt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function Jt(t){return null!=t?(Bt(this,t),d.updateOffset(this,!0),this):it(this,"Month")}function Pt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=S([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)n[e]=Mt(n[e]),r[e]=Mt(r[e]);for(e=0;e<24;e++)s[e]=Mt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function Ot(t){return X(t)?366:365}I("Y",0,0,(function(){var t=this.year();return t<=9999?P(t,4):"+"+t})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),Z("year","y"),K("year",1),St("Y",bt),St("YY",lt,at),St("YYYY",ft,ut),St("YYYYY",gt,ht),St("YYYYYY",gt,ht),Dt(["YYYYY","YYYYYY"],0),Dt("YYYY",(function(t,e){e[0]=2===t.length?d.parseTwoDigitYear(t):tt(t)})),Dt("YY",(function(t,e){e[0]=d.parseTwoDigitYear(t)})),Dt("Y",(function(t,e){e[0]=parseInt(t,10)})),d.parseTwoDigitYear=function(t){return tt(t)+(tt(t)>68?1900:2e3)};var Ht=et("FullYear",!0);function Wt(t,e,i,n,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,i,n,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,n,r,s,a),o}function Et(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function It(t,e,i){var n=7+e-i;return-(7+Et(t,0,n).getUTCDay()-e)%7+n-1}function Gt(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+It(t,n,r);return o<=0?a=Ot(s=t-1)+o:o>Ot(t)?(s=t+1,a=o-Ot(t)):(s=t,a=o),{year:s,dayOfYear:a}}function _t(t,e,i){var n,r,s=It(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+Vt(r=t.year()-1,e,i):a>Vt(t.year(),e,i)?(n=a-Vt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function Vt(t,e,i){var n=It(t,e,i),r=It(t+1,e,i);return(Ot(t)-n+r)/7}function Zt(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),Z("week","w"),Z("isoWeek","W"),K("week",5),K("isoWeek",5),St("w",lt),St("ww",lt,at),St("W",lt),St("WW",lt,at),Tt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=tt(t)})),I("d",0,"do","day"),I("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),I("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),I("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),Z("day","d"),Z("weekday","e"),Z("isoWeekday","E"),K("day",11),K("weekday",11),K("isoWeekday",11),St("d",lt),St("e",lt),St("E",lt),St("dd",(function(t,e){return e.weekdaysMinRegex(t)})),St("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),St("dddd",(function(t,e){return e.weekdaysRegex(t)})),Tt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:k(i).invalidWeekday=t})),Tt(["d","e","E"],(function(t,e,i,n){e[n]=tt(t)}));var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),$t="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kt=wt,Xt=wt,Qt=wt;function te(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=S([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Ct.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ct.call(this._weekdaysParse,a))||-1!==(r=Ct.call(this._shortWeekdaysParse,a))||-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ct.call(this._shortWeekdaysParse,a))||-1!==(r=Ct.call(this._weekdaysParse,a))||-1!==(r=Ct.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ct.call(this._minWeekdaysParse,a))||-1!==(r=Ct.call(this._weekdaysParse,a))||-1!==(r=Ct.call(this._shortWeekdaysParse,a))?r:null}function ee(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)i=S([2e3,1]).day(e),n=Mt(this.weekdaysMin(i,"")),r=Mt(this.weekdaysShort(i,"")),s=Mt(this.weekdays(i,"")),a.push(n),o.push(r),u.push(s),h.push(n),h.push(r),h.push(s);a.sort(t),o.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("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ie(){return this.hours()%12||12}function ne(t,e){I(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function re(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,ie),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+ie.apply(this)+P(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+ie.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),ne("a",!0),ne("A",!1),Z("hour","h"),K("hour",13),St("a",re),St("A",re),St("H",lt),St("h",lt),St("k",lt),St("HH",lt,at),St("hh",lt,at),St("kk",lt,at),St("hmm",dt),St("hmmss",ct),St("Hmm",dt),St("Hmmss",ct),Dt(["H","HH"],3),Dt(["k","kk"],(function(t,e){var i=tt(t);e[3]=24===i?0:i})),Dt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Dt(["h","hh"],(function(t,e,i){e[3]=tt(t),k(i).bigHour=!0})),Dt("hmm",(function(t,e,i){var n=t.length-2;e[3]=tt(t.substr(0,n)),e[4]=tt(t.substr(n)),k(i).bigHour=!0})),Dt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[3]=tt(t.substr(0,n)),e[4]=tt(t.substr(n,2)),e[5]=tt(t.substr(r)),k(i).bigHour=!0})),Dt("Hmm",(function(t,e){var i=t.length-2;e[3]=tt(t.substr(0,i)),e[4]=tt(t.substr(i))})),Dt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[3]=tt(t.substr(0,i)),e[4]=tt(t.substr(i,2)),e[5]=tt(t.substr(n))}));var se,ae=et("Hours",!0),oe={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:Ft,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:qt,weekdaysShort:$t,meridiemParse:/[ap]\.?m?\.?/i},ue={},he={};function le(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function de(t){return t?t.toLowerCase().replace("_","-"):t}function ce(t){var e=null;if(void 0===ue[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=se._abbr,require("./locale/"+t),me(e)}catch(e){ue[t]=null}return ue[t]}function me(t,e){var i;return t&&((i=p(e)?ge(t):fe(t,e))?se=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),se._abbr}function fe(t,e){if(null!==e){var i,n=oe;if(e.abbr=t,null!=ue[t])z("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."),n=ue[t]._config;else if(null!=e.parentLocale)if(null!=ue[e.parentLocale])n=ue[e.parentLocale]._config;else{if(null==(i=ce(e.parentLocale)))return he[e.parentLocale]||(he[e.parentLocale]=[]),he[e.parentLocale].push({name:t,config:e}),null;n=i._config}return ue[t]=new J(B(n,e)),he[t]&&he[t].forEach((function(t){fe(t.name,t.config)})),me(t),ue[t]}return delete ue[t],null}function ge(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return se;if(!c(t)){if(e=ce(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=de(t[s]).split("-")).length,i=(i=de(t[s+1]))?i.split("-"):null;e>0;){if(n=ce(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&le(r,i)>=e-1)break;e--}s++}return se}(t)}function pe(t){var e,i=t._a;return i&&-2===k(t).overflow&&(e=i[1]<0||i[1]>11?1:i[2]<1||i[2]>Rt(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,k(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),k(t)._overflowWeeks&&-1===e&&(e=7),k(t)._overflowWeekday&&-1===e&&(e=8),k(t).overflow=e),t}var be=/^\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)?)?$/,ye=/^\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)?)?$/,ve=/Z|[+-]\d\d(?::?\d\d)?/,we=[["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]],Se=[["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/]],ke=/^\/?Date\((-?\d+)/i,Me=/^(?:(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}))$/,Ce={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xe(t){var e,i,n,r,s,a,o=t._i,u=be.exec(o)||ye.exec(o),h=we.length,l=Se.length;if(u){for(k(t).iso=!0,e=0,i=h;e<i;e++)if(we[e][1].exec(u[1])){r=we[e][0],n=!1!==we[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=l;e<i;e++)if(Se[e][1].exec(u[3])){s=(u[2]||" ")+Se[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!ve.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Re(t)}else t._isValid=!1}function De(t){var e,i,n,r,s,a,o,u,h,l=Me.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(i=l[3],n=l[2],r=l[5],s=l[6],a=l[7],o=[(u=l[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),Ft.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||$t.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(k(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],e=o,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Ce[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=Et.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),k(t).rfc2822=!0}else t._isValid=!1}function Te(t,e,i){return null!=t?t:null!=e?e:i}function Ae(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(d.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,i,n,r,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,i=Te(e.GG,t._a[0],_t(Ne(),1,4).year),n=Te(e.W,1),((r=Te(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=_t(Ne(),s,a),i=Te(e.gg,t._a[0],h.year),n=Te(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),n<1||n>Vt(i,s,a)?k(t)._overflowWeeks=!0:null!=u?k(t)._overflowWeekday=!0:(o=Gt(i,n,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Te(t._a[0],n[0]),(t._dayOfYear>Ot(s)||0===t._dayOfYear)&&(k(t)._overflowDayOfYear=!0),i=Et(s,0,t._dayOfYear),t._a[1]=i.getUTCMonth(),t._a[2]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Et:Wt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(k(t).weekdayMismatch=!0)}}function Re(t){if(t._f!==d.ISO_8601)if(t._f!==d.RFC_2822){t._a=[],k(t).empty=!0;var e,i,n,r,s,a,o,u=""+t._i,h=u.length,l=0;for(o=(n=_(t._f,t._locale).match(O)||[]).length,e=0;e<o;e++)(i=(u.match(kt(r=n[e],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&k(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),l+=i.length),E[r]?(i?k(t).empty=!1:k(t).unusedTokens.push(r),At(r,i,t)):t._strict&&!i&&k(t).unusedTokens.push(r);k(t).charsLeftOver=h-l,u.length>0&&k(t).unusedInput.push(u),t._a[3]<=12&&!0===k(t).bigHour&&t._a[3]>0&&(k(t).bigHour=void 0),k(t).parsedDateParts=t._a.slice(0),k(t).meridiem=t._meridiem,t._a[3]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(a=k(t).era)&&(t._a[0]=t._locale.erasConvertYear(a,t._a[0])),Ae(t),pe(t)}else De(t);else xe(t)}function je(t){var e=t._i,i=t._f;return t._locale=t._locale||ge(t._l),null===e||void 0===i&&""===e?C({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),R(e)?new A(pe(e)):(y(e)?t._d=e:c(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return k(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=T({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Re(e),M(e)&&(a=!0),s+=k(e).charsLeftOver,s+=10*k(e).unusedTokens.length,k(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));w(t,i||e)}(t):i?Re(t):function(t){var e=t._i;p(e)?t._d=new Date(d.now()):y(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=ke.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,De(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:d.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):c(e)?(t._a=v(e.slice(0),(function(t){return parseInt(t,10)})),Ae(t)):m(e)?function(t){if(!t._d){var e=$(t._i);t._a=v([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Ae(t)}}(t):b(e)?t._d=new Date(e):d.createFromInputFallback(t)}(t),M(t)||(t._d=null),t))}function Fe(t,e,i,n,r){var s,a={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(m(t)&&g(t)||c(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=t,a._f=e,a._strict=n,(s=new A(pe(je(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ne(t,e,i,n){return Fe(t,e,i,n,!1)}d.createFromInputFallback=F("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":""))})),d.ISO_8601=function(){},d.RFC_2822=function(){};var Ye=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:C()})),ze=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ne.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:C()}));function Le(t,e){var i,n;if(1===e.length&&c(e[0])&&(e=e[0]),!e.length)return Ne();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Be=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Je(t){var e=$(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,l=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=Be.length;for(e in t)if(f(t,e)&&(-1===Ct.call(Be,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[Be[i]]){if(n)return!1;parseFloat(t[Be[i]])!==tt(t[Be[i]])&&(n=!0)}return!0}(e),this._milliseconds=+l+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=ge(),this._bubble()}function Pe(t){return t instanceof Je}function Oe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function He(t,e){I(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+P(~~(t/60),2)+e+P(~~t%60,2)}))}He("Z",":"),He("ZZ",""),St("Z",vt),St("ZZ",vt),Dt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ee(vt,t)}));var We=/([\+\-]|\d\d)/gi;function Ee(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(We)||["-",0,0])[1]+tt(i[2]))?0:"+"===i[0]?n:-n}function Ie(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(R(t)||y(t)?t.valueOf():Ne(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),d.updateOffset(i,!1),i):Ne(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function _e(){return!!this.isValid()&&this._isUTC&&0===this._offset}d.updateOffset=function(){};var Ve=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ze=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ue(t,e){var i,n,r,s,a,o,u=t,h=null;return Pe(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:b(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=Ve.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:tt(h[2])*i,h:tt(h[3])*i,m:tt(h[4])*i,s:tt(h[5])*i,ms:tt(Oe(1e3*h[6]))*i}):(h=Ze.exec(t))?u={y:$e(h[2],i="-"===h[1]?-1:1),M:$e(h[3],i),w:$e(h[4],i),d:$e(h[5],i),h:$e(h[6],i),m:$e(h[7],i),s:$e(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Ne(u.from),a=Ne(u.to),r=s.isValid()&&a.isValid()?(a=Ie(a,s),s.isBefore(a)?o=qe(s,a):((o=qe(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Je(u),Pe(t)&&f(t,"_locale")&&(n._locale=t._locale),Pe(t)&&f(t,"_isValid")&&(n._isValid=t._isValid),n}function $e(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function qe(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Ke(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(z(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),Xe(this,Ue(i,n),t),this}}function Xe(t,e,i,n){var r=e._milliseconds,s=Oe(e._days),a=Oe(e._months);t.isValid()&&(n=null==n||n,a&&Bt(t,it(t,"Month")+a*i),s&&nt(t,"Date",it(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&d.updateOffset(t,s||a))}Ue.fn=Je.prototype,Ue.invalid=function(){return Ue(NaN)};var Qe=Ke(1,"add"),ti=Ke(-1,"subtract");function ei(t){return"string"==typeof t||t instanceof String}function ii(t){return R(t)||y(t)||ei(t)||b(t)||function(t){var e=c(t),i=!1;return e&&(i=0===t.filter((function(e){return!b(e)&&ei(t)})).length),e&&i}(t)||function(t){var e,i=m(t)&&!g(t),n=!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(e=0;e<s;e+=1)n=n||f(t,r[e]);return i&&n}(t)||null==t}function ni(t){var e,i=m(t)&&!g(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||f(t,r[e]);return i&&n}function ri(t,e){if(t.date()<e.date())return-ri(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function si(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ge(t))&&(this._locale=e),this)}d.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",d.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ai=F("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 oi(){return this._locale}function ui(t,e){return(t%e+e)%e}function hi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-126227808e5:new Date(t,e,i).valueOf()}function li(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-126227808e5:Date.UTC(t,e,i)}function di(t,e){return e.erasAbbrRegex(t)}function ci(){var t,e,i=[],n=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)n.push(Mt(a[t].name)),i.push(Mt(a[t].abbr)),r.push(Mt(a[t].narrow)),s.push(Mt(a[t].name)),s.push(Mt(a[t].abbr)),s.push(Mt(a[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function mi(t,e){I(0,[t,t.length],0,e)}function fi(t,e,i,n,r){var s;return null==t?_t(this,n,r).year:(e>(s=Vt(t,n,r))&&(e=s),gi.call(this,t,e,i,n,r))}function gi(t,e,i,n,r){var s=Gt(t,e,i,n,r),a=Et(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),St("N",di),St("NN",di),St("NNN",di),St("NNNN",(function(t,e){return e.erasNameRegex(t)})),St("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Dt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?k(i).era=r:k(i).invalidEra=t})),St("y",pt),St("yy",pt),St("yyy",pt),St("yyyy",pt),St("yo",(function(t,e){return e._eraYearOrdinalRegex||pt})),Dt(["y","yy","yyy","yyyy"],0),Dt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[0]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),mi("gggg","weekYear"),mi("ggggg","weekYear"),mi("GGGG","isoWeekYear"),mi("GGGGG","isoWeekYear"),Z("weekYear","gg"),Z("isoWeekYear","GG"),K("weekYear",1),K("isoWeekYear",1),St("G",bt),St("g",bt),St("GG",lt,at),St("gg",lt,at),St("GGGG",ft,ut),St("gggg",ft,ut),St("GGGGG",gt,ht),St("ggggg",gt,ht),Tt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=tt(t)})),Tt(["gg","GG"],(function(t,e,i,n){e[n]=d.parseTwoDigitYear(t)})),I("Q",0,"Qo","quarter"),Z("quarter","Q"),K("quarter",7),St("Q",st),Dt("Q",(function(t,e){e[1]=3*(tt(t)-1)})),I("D",["DD",2],"Do","date"),Z("date","D"),K("date",9),St("D",lt),St("DD",lt,at),St("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Dt(["D","DD"],2),Dt("Do",(function(t,e){e[2]=tt(t.match(lt)[0])}));var pi=et("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),Z("dayOfYear","DDD"),K("dayOfYear",4),St("DDD",mt),St("DDDD",ot),Dt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=tt(t)})),I("m",["mm",2],0,"minute"),Z("minute","m"),K("minute",14),St("m",lt),St("mm",lt,at),Dt(["m","mm"],4);var bi=et("Minutes",!1);I("s",["ss",2],0,"second"),Z("second","s"),K("second",15),St("s",lt),St("ss",lt,at),Dt(["s","ss"],5);var yi,vi,wi=et("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),Z("millisecond","ms"),K("millisecond",16),St("S",mt,st),St("SS",mt,at),St("SSS",mt,ot),yi="SSSS";yi.length<=9;yi+="S")St(yi,pt);function Si(t,e){e[6]=tt(1e3*("0."+t))}for(yi="S";yi.length<=9;yi+="S")Dt(yi,Si);vi=et("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var ki=A.prototype;function Mi(t){return t}ki.add=Qe,ki.calendar=function(t,e){1===arguments.length&&(arguments[0]?ii(arguments[0])?(t=arguments[0],e=void 0):ni(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Ne(),n=Ie(i,this).startOf("day"),r=d.calendarFormat(this,n)||"sameElse",s=e&&(L(e[r])?e[r].call(this,i):e[r]);return this.format(s||this.localeData().calendar(r,this,Ne(i)))},ki.clone=function(){return new A(this)},ki.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=Ie(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=U(e)){case"year":s=ri(this,n)/12;break;case"month":s=ri(this,n);break;case"quarter":s=ri(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-r)/864e5;break;case"week":s=(this-n-r)/6048e5;break;default:s=this-n}return i?s:Q(s)},ki.endOf=function(t){var e,i;if(void 0===(t=U(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?li:hi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-ui(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-ui(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-ui(e,1e3)-1}return this._d.setTime(e),d.updateOffset(this,!0),this},ki.format=function(t){t||(t=this.isUtc()?d.defaultFormatUtc:d.defaultFormat);var e=G(this,t);return this.localeData().postformat(e)},ki.from=function(t,e){return this.isValid()&&(R(t)&&t.isValid()||Ne(t).isValid())?Ue({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ki.fromNow=function(t){return this.from(Ne(),t)},ki.to=function(t,e){return this.isValid()&&(R(t)&&t.isValid()||Ne(t).isValid())?Ue({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},ki.toNow=function(t){return this.to(Ne(),t)},ki.get=function(t){return L(this[t=U(t)])?this[t]():this},ki.invalidAt=function(){return k(this).overflow},ki.isAfter=function(t,e){var i=R(t)?t:Ne(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},ki.isBefore=function(t,e){var i=R(t)?t:Ne(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},ki.isBetween=function(t,e,i,n){var r=R(t)?t:Ne(t),s=R(e)?e:Ne(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))},ki.isSame=function(t,e){var i,n=R(t)?t:Ne(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=U(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},ki.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},ki.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},ki.isValid=function(){return M(this)},ki.lang=ai,ki.locale=si,ki.localeData=oi,ki.max=ze,ki.min=Ye,ki.parsingFlags=function(){return w({},k(this))},ki.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)f(t,e)&&i.push({unit:e,priority:q[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=$(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(L(this[t=U(t)]))return this[t](e);return this},ki.startOf=function(t){var e,i;if(void 0===(t=U(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?li:hi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ui(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=ui(e,6e4);break;case"second":e=this._d.valueOf(),e-=ui(e,1e3)}return this._d.setTime(e),d.updateOffset(this,!0),this},ki.subtract=ti,ki.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},ki.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()}},ki.toDate=function(){return new Date(this.valueOf())},ki.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?G(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(i,"Z")):G(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},ki.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(ki[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ki.toJSON=function(){return this.isValid()?this.toISOString():null},ki.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},ki.unix=function(){return Math.floor(this.valueOf()/1e3)},ki.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},ki.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},ki.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},ki.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},ki.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},ki.eraYear=function(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-d(r[t].since).year())*i+r[t].offset;return this.year()},ki.year=Ht,ki.isLeapYear=function(){return X(this.year())},ki.weekYear=function(t){return fi.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},ki.isoWeekYear=function(t){return fi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},ki.quarter=ki.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},ki.month=Jt,ki.daysInMonth=function(){return Rt(this.year(),this.month())},ki.week=ki.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},ki.isoWeek=ki.isoWeeks=function(t){var e=_t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},ki.weeksInYear=function(){var t=this.localeData()._week;return Vt(this.year(),t.dow,t.doy)},ki.weeksInWeekYear=function(){var t=this.localeData()._week;return Vt(this.weekYear(),t.dow,t.doy)},ki.isoWeeksInYear=function(){return Vt(this.year(),1,4)},ki.isoWeeksInISOWeekYear=function(){return Vt(this.isoWeekYear(),1,4)},ki.date=pi,ki.day=ki.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},ki.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},ki.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},ki.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},ki.hour=ki.hours=ae,ki.minute=ki.minutes=bi,ki.second=ki.seconds=wi,ki.millisecond=ki.milliseconds=vi,ki.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ee(vt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Ge(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?Xe(this,Ue(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,d.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ge(this)},ki.utc=function(t){return this.utcOffset(0,t)},ki.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},ki.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ee(yt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},ki.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ne(t).utcOffset():0,(this.utcOffset()-t)%60==0)},ki.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},ki.isLocal=function(){return!!this.isValid()&&!this._isUTC},ki.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},ki.isUtc=_e,ki.isUTC=_e,ki.zoneAbbr=function(){return this._isUTC?"UTC":""},ki.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},ki.dates=F("dates accessor is deprecated. Use date instead.",pi),ki.months=F("months accessor is deprecated. Use month instead",Jt),ki.years=F("years accessor is deprecated. Use year instead",Ht),ki.zone=F("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),ki.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!p(this._isDSTShifted))return this._isDSTShifted;var t,e={};return T(e,this),(e=je(e))._a?(t=e._isUTC?S(e._a):Ne(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<n;i++)tt(t[i])!==tt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Ci=J.prototype;function xi(t,e,i,n){var r=ge(),s=S().set(n,e);return r[i](s,t)}function Di(t,e,i){if(b(t)&&(e=t,t=void 0),t=t||"",null!=e)return xi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=xi(t,n,i,"month");return r}function Ti(t,e,i,n){"boolean"==typeof t?(b(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,b(e)&&(i=e,e=void 0),e=e||"");var r,s=ge(),a=t?s._week.dow:0,o=[];if(null!=i)return xi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=xi(e,(r+a)%7,n,"day");return o}Ci.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return L(n)?n.call(e,i):n},Ci.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Ci.invalidDate=function(){return this._invalidDate},Ci.ordinal=function(t){return this._ordinal.replace("%d",t)},Ci.preparse=Mi,Ci.postformat=Mi,Ci.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return L(r)?r(t,e,i,n):r.replace(/%d/i,t)},Ci.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return L(i)?i(e):i.replace(/%s/i,e)},Ci.set=function(t){var e,i;for(i in t)f(t,i)&&(L(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Ci.eras=function(){var t,e,i,n=this._eras||ge("en")._eras;for(t=0,e=n.length;t<e;++t){switch(typeof n[t].since){case"string":i=d(n[t].since).startOf("day"),n[t].since=i.valueOf()}switch(typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=d(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}}return n},Ci.erasParse=function(t,e,i){var n,r,s,a,o,u=this.eras();for(t=t.toUpperCase(),n=0,r=u.length;n<r;++n)if(s=u[n].name.toUpperCase(),a=u[n].abbr.toUpperCase(),o=u[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[n];break;case"NNNN":if(s===t)return u[n];break;case"NNNNN":if(o===t)return u[n]}else if([s,a,o].indexOf(t)>=0)return u[n]},Ci.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?d(t.since).year():d(t.since).year()+(e-t.offset)*i},Ci.erasAbbrRegex=function(t){return f(this,"_erasAbbrRegex")||ci.call(this),t?this._erasAbbrRegex:this._erasRegex},Ci.erasNameRegex=function(t){return f(this,"_erasNameRegex")||ci.call(this),t?this._erasNameRegex:this._erasRegex},Ci.erasNarrowRegex=function(t){return f(this,"_erasNarrowRegex")||ci.call(this),t?this._erasNarrowRegex:this._erasRegex},Ci.months=function(t,e){return t?c(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Nt).test(e)?"format":"standalone"][t.month()]:c(this._months)?this._months:this._months.standalone},Ci.monthsShort=function(t,e){return t?c(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Nt.test(e)?"format":"standalone"][t.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Ci.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return Lt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=S([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Ci.monthsRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||Pt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(f(this,"_monthsRegex")||(this._monthsRegex=zt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Ci.monthsShortRegex=function(t){return this._monthsParseExact?(f(this,"_monthsRegex")||Pt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(f(this,"_monthsShortRegex")||(this._monthsShortRegex=Yt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Ci.week=function(t){return _t(t,this._week.dow,this._week.doy).week},Ci.firstDayOfYear=function(){return this._week.doy},Ci.firstDayOfWeek=function(){return this._week.dow},Ci.weekdays=function(t,e){var i=c(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Zt(i,this._week.dow):t?i[t.day()]:i},Ci.weekdaysMin=function(t){return!0===t?Zt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Ci.weekdaysShort=function(t){return!0===t?Zt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Ci.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return te.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=S([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Ci.weekdaysRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(f(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Ci.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(f(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Xt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Ci.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(f(this,"_weekdaysRegex")||ee.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(f(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Qt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Ci.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Ci.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},me("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 e=t%10;return t+(1===tt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),d.lang=F("moment.lang is deprecated. Use moment.locale instead.",me),d.langData=F("moment.langData is deprecated. Use moment.localeData instead.",ge);var Ai=Math.abs;function Ri(t,e,i,n){var r=Ue(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function ji(t){return t<0?Math.floor(t):Math.ceil(t)}function Fi(t){return 4800*t/146097}function Ni(t){return 146097*t/4800}function Yi(t){return function(){return this.as(t)}}var zi=Yi("ms"),Li=Yi("s"),Bi=Yi("m"),Ji=Yi("h"),Pi=Yi("d"),Oi=Yi("w"),Hi=Yi("M"),Wi=Yi("Q"),Ei=Yi("y");function Ii(t){return function(){return this.isValid()?this._data[t]:NaN}}var Gi=Ii("milliseconds"),_i=Ii("seconds"),Vi=Ii("minutes"),Zi=Ii("hours"),Ui=Ii("days"),$i=Ii("months"),qi=Ii("years"),Ki=Math.round,Xi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Qi(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var tn=Math.abs;function en(t){return(t>0)-(t<0)||+t}function nn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=tn(this._milliseconds)/1e3,h=tn(this._days),l=tn(this._months),d=this.asSeconds();return d?(t=Q(u/60),e=Q(t/60),u%=60,t%=60,i=Q(l/12),l%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=en(this._months)!==en(d)?"-":"",a=en(this._days)!==en(d)?"-":"",o=en(this._milliseconds)!==en(d)?"-":"",r+"P"+(i?s+i+"Y":"")+(l?s+l+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+n+"S":"")):"P0D"}var rn=Je.prototype;rn.isValid=function(){return this._isValid},rn.abs=function(){var t=this._data;return this._milliseconds=Ai(this._milliseconds),this._days=Ai(this._days),this._months=Ai(this._months),t.milliseconds=Ai(t.milliseconds),t.seconds=Ai(t.seconds),t.minutes=Ai(t.minutes),t.hours=Ai(t.hours),t.months=Ai(t.months),t.years=Ai(t.years),this},rn.add=function(t,e){return Ri(this,t,e,1)},rn.subtract=function(t,e){return Ri(this,t,e,-1)},rn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=U(t))||"quarter"===t||"year"===t)switch(i=this._months+Fi(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Ni(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},rn.asMilliseconds=zi,rn.asSeconds=Li,rn.asMinutes=Bi,rn.asHours=Ji,rn.asDays=Pi,rn.asWeeks=Oi,rn.asMonths=Hi,rn.asQuarters=Wi,rn.asYears=Ei,rn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*tt(this._months/12):NaN},rn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*ji(Ni(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=Q(s/1e3),u.seconds=t%60,e=Q(t/60),u.minutes=e%60,i=Q(e/60),u.hours=i%24,a+=Q(i/24),o+=r=Q(Fi(a)),a-=ji(Ni(r)),n=Q(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},rn.clone=function(){return Ue(this)},rn.get=function(t){return t=U(t),this.isValid()?this[t+"s"]():NaN},rn.milliseconds=Gi,rn.seconds=_i,rn.minutes=Vi,rn.hours=Zi,rn.days=Ui,rn.weeks=function(){return Q(this.days()/7)},rn.months=$i,rn.years=qi,rn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=Xi;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},Xi,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=Ue(t).abs(),s=Ki(r.as("s")),a=Ki(r.as("m")),o=Ki(r.as("h")),u=Ki(r.as("d")),h=Ki(r.as("M")),l=Ki(r.as("w")),d=Ki(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||a<=1&&["m"]||a<i.m&&["mm",a]||o<=1&&["h"]||o<i.h&&["hh",o]||u<=1&&["d"]||u<i.d&&["dd",u];return null!=i.w&&(c=c||l<=1&&["w"]||l<i.w&&["ww",l]),(c=c||h<=1&&["M"]||h<i.M&&["MM",h]||d<=1&&["y"]||["yy",d])[2]=e,c[3]=+t>0,c[4]=n,Qi.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},rn.toISOString=nn,rn.toString=nn,rn.toJSON=nn,rn.locale=si,rn.localeData=oi,rn.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nn),rn.lang=ai,I("X",0,0,"unix"),I("x",0,0,"valueOf"),St("x",bt),St("X",/[+-]?\d+(\.\d{1,3})?/),Dt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Dt("x",(function(t,e,i){i._d=new Date(tt(t))})),
8
8
  //! moment.js
9
- d.version="2.29.4",h=Ne,d.fn=ki,d.min=function(){var t=[].slice.call(arguments,0);return Le("isBefore",t)},d.max=function(){var t=[].slice.call(arguments,0);return Le("isAfter",t)},d.now=function(){return Date.now?Date.now():+new Date},d.utc=S,d.unix=function(t){return Ne(1e3*t)},d.months=function(t,e){return Di(t,e,"months")},d.isDate=y,d.locale=me,d.invalid=C,d.duration=Ue,d.isMoment=R,d.weekdays=function(t,e,i){return Ti(t,e,i,"weekdays")},d.parseZone=function(){return Ne.apply(null,arguments).parseZone()},d.localeData=ge,d.isDuration=Pe,d.monthsShort=function(t,e){return Di(t,e,"monthsShort")},d.weekdaysMin=function(t,e,i){return Ti(t,e,i,"weekdaysMin")},d.defineLocale=fe,d.updateLocale=function(t,e){if(null!=e){var i,n,r=oe;null!=ue[t]&&null!=ue[t].parentLocale?ue[t].set(B(ue[t]._config,e)):(null!=(n=ce(t))&&(r=n._config),e=B(r,e),null==n&&(e.abbr=t),(i=new J(e)).parentLocale=ue[t],ue[t]=i),me(t)}else null!=ue[t]&&(null!=ue[t].parentLocale?(ue[t]=ue[t].parentLocale,t===me()&&me(t)):null!=ue[t]&&delete ue[t]);return ue[t]},d.locales=function(){return N(ue)},d.weekdaysShort=function(t,e,i){return Ti(t,e,i,"weekdaysShort")},d.normalizeUnits=U,d.relativeTimeRounding=function(t){return void 0===t?Ki:"function"==typeof t&&(Ki=t,!0)},d.relativeTimeThreshold=function(t,e){return void 0!==Xi[t]&&(void 0===e?Xi[t]:(Xi[t]=e,"s"===t&&(Xi.ss=e-1),!0))},d.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},d.prototype=ki,d.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 sn=class{constructor(e){t(this,e),this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return" - "+Math.ceil(t/1440)+" "+u("days")}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=u("scheduled",this.language);break;case"Running":e=u("ongoing",this.language);break;default:e=u("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const i=()=>u("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=d(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?u("startedAtWithTime",this.language)+t:u("startingAtWithTime",this.language)+t}else{let n=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),s=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+u(`${n}`,this.language)+", "+i()+` ${s}`}}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),this.state&&(this.stateText=this.getStateText(this.state))),!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return i("div",{class:"TournamentBannerWrap"},this.thumbnail&&i("div",{class:"TournamentBanner",part:"TournamentBanner"},i("img",{src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&i("div",{class:"TournamentBannerInfo",part:"TournamentBannerInfo"},i("div",{class:"BannerInfo",part:"BannerInfo"},i("span",{class:`Tag State ${this.state}`},this.stateText)),i("div",{class:"BannerInfo",part:"BannerInfo"},this.showDate&&i("span",{class:"Tag Date"},this.showCalendar&&i("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),i("div",{class:"BannerInfo",part:"BannerInfo"},this.enrolled&&i("span",{class:"Tag Enroll"},this.showCheck&&i("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),u("enrolled",this.language)))),this.cardMode&&i("div",{class:"TournamentBannerThumb",part:"TournamentBannerThumb"},i("div",{class:"ThumbTitle",part:"ThumbTitle"},u("tournament",this.language)),i("div",{class:"ThumbName",part:"ThumbName"},this.nameOrTitle),i("div",{class:"ThumbState"},this.session&&this.enrolled?i("span",{class:"Tag Join"},i("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),u("joined",this.language)):this.session&&"Closed"!=this.state&&i("span",{class:"Tag Join"},i("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},i("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),u("join",this.language)),"Running"==this.state&&i("span",{class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&i("span",{class:"TagRemain"},this.showRemain," ",u("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&i("span",{class:`Tag Date ${this.state}`},this.showCalendar&&i("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),i("div",{class:"ThumbButtons"},i("casino-tournament-buttons",{enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})),i("div",{class:"ThumbTC"},i("span",{onClick:this.termsClick.bind(this,this.tournamentId)},u("terms",this.language))))))}get host(){return n(this)}};sn.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const an={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},on=(t,e)=>{var i,n;return(null===(i=an[e])||void 0===i?void 0:i[t])||(null===(n=an.en)||void 0===n?void 0:n[t])},un=class{constructor(e){t(this,e),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])an[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(t,e){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let n=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};n.searchParams.append("language",this.language),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled},window.location.href)},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${n.searchParams.toString()}`,a),t=await t.json()}catch(t){u()}return t})();if(h)if(1==h.success)o();else if(h.errorMessage.match("VersionMismatchException")){let t;t=await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(i=null==t?void 0:t.item)||void 0===i?void 0:i.playerEnrolled)?o():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(t){window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)}moreAction(t){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:t},window.location.href)}render(){return i("div",{class:"TournamentButtons"},!this.session&&i("div",{class:"ButtonGroup"},i("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},on("login",this.language)),i("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},on("register",this.language))),this.session&&i("div",null,!this.enrolled&&i("div",{class:"ButtonGroup"},i("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},on("join",this.language)),this.showReadMore&&i("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},on("readmore",this.language))),this.enrolled&&i("div",{class:"ButtonGroup"},i("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},on("details",this.language)),this.showReadMore&&i("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},on("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&i("span",{class:"ErrorText",part:"ErrorText"},on("joinerror",this.language)))}get host(){return n(this)}};un.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';const hn={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Gotovo",starting:"Počinje u ",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}},ln=(t,e)=>{var i,n;return(null===(i=hn[e])||void 0===i?void 0:i[t])||(null===(n=hn.en)||void 0===n?void 0:n[t])},dn=class{constructor(e){t(this,e),this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.tournamentUntilStartDays=this.getDateTimeDiff(t,this.startTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}formatDate(t){let e=new Date(t),i=new Intl.DateTimeFormat(this.language,{month:"long"}).format(e);return`${e.getDate()} ${i}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return Math.ceil(t/1440)+" "+ln("days")}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])hn[e][i]=t[e][i]}))),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){if(this.startTime&&this.endTime)return i("div",{class:"TournamentDurationWrap"},i("div",{class:"TournamentDuration"},i("div",{class:"TournamentDates"},i("div",{class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),i("div",{class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),i("div",{class:"ProgressBarWrapper"},i("div",{class:"ProgressBar",part:"ProgressBar"},"Finished"==this.status||"Closing"==this.status||"Closed"==this.status?i("div",null,i("div",{class:"ProgressBarFillEnd",part:"ProgressBarFillEnd"}),i("div",{class:"Finished",part:"Finished"},ln("finished",this.language))):this.tournamentUntilStartDays>0?i("div",null,i("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),i("div",{class:"Remaining",part:"Remaining"},ln("starting",this.language)," ",this.getTextByDiff(this.tournamentUntilStartDays))):i("div",null,i("div",{class:"ProgressBarFill",part:"ProgressBarFill",style:{width:`${this.getProgress()}%`}}),this.tournamentLeftDays>0&&i("div",{class:"Remaining",part:"Remaining"},this.showRemain," ",ln("left",this.language)))))))}get host(){return n(this)}};dn.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";const cn={en:{enrolled:"Enrolled",details:"Details",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"zh-hk":{enrolled:"已註冊",details:"細節",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",details:"Détails",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",details:"Detalii",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Katıldın",details:"Detaylar",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"},el:{enrolled:"Εγγεγραμμένος",details:"Λεπτομέρειες",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Inscrito",details:"Detalles",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"},pt:{enrolled:"Inscrito",details:"Detalhes",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",details:"Adatok",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},mn=(t,e)=>{var i,n;return(null===(i=cn[e])||void 0===i?void 0:i[t])||(null===(n=cn.en)||void 0===n?void 0:n[t])},fn=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])cn[e][i]=t[e][i]})),e(!0)})),gn=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])cn[e][i]=t[e][i]})),e(!0)}))})),pn=class{constructor(e){t(this,e),this.termsUrl="#",this.keepContext=!1,this.useGroup=!1,this.align="center",this.showDates=!1,this.showPrizes=!1,this.showButton=!1,this.shortStart=!1,this.seeGames=!1,this.useEvent=!1,this.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.showReadMore=!1,this.translationUrl="",this.limitStylingAppends=!1,this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>mn("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=d(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?mn("startedAtWithTime",this.language)+t:mn("startingAtWithTime",this.language)+t}else{let e=new Intl.DateTimeFormat("en",t).format(i),r=i.getDate(),s=i.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startDate=`${r} `+mn(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)}}async infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.translationUrl?await gn(this.translationUrl):this.translationData&&await fn(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return gn(this.translationUrl);if(this.translationData)return fn(JSON.parse(this.translationData))}}setTournamentInfo(){this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:this.scoreCriteria,termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount}}componentWillRender(){this.setTournamentInfo(),this.tournamentInfo.startTime&&this.formatDate()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}tournamentGamesClicked(t){window.postMessage({type:"tournamentGamesClicked",id:t},window.location.href)}render(){if(this.tournamentInfo)return i("div",{class:"TournamentInfoWrap"},i("div",{class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},i("h1",{class:"Title"},this.tournamentInfo.nameOrTitle),i("div",{class:"Details"},i("p",{class:"Score"},mn("scoreCriteria",this.language),":",this.tournamentInfo.scoreCriteria," (",mn("minbet",this.language),":",this.tournamentInfo.minBetCount,")"),this.showDates&&i("p",{class:"Dates"},this.startDate),this.seeGames&&i("p",{class:"SeeGames"},mn("seegames",this.language),":",i("a",{class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",mn("here",this.language))),this.showButton&&i("div",{class:"InfoButtons"},i("casino-tournament-buttons",{enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}))),this.showPrizes&&i("casino-tournament-prizes",{"raw-prizes":JSON.stringify(this.tournamentInfo.prizes),"use-event":"false","use-group":this.useGroup,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl}),i("casino-tournament-duration",{exportparts:"Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate","start-time":this.tournamentInfo.startTime,"end-time":this.tournamentInfo.endTime,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))}get host(){return n(this)}};pn.style=":host{display:block}.TournamentInfo{background:var(--emfe-w-tournament-color-bg, #153a5c);color:var(--emfe-w-color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emfe-w-color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emfe-w-color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emfe-w-color-white, #FFFFFF)}";const bn={en:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Count",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",rank:"Rank",player:"Player",points:"Points",prize:"Prize",unqualifiedTips:"The minimum number of bets has not been reached. Check tournament rules.",me:"Me",myRanking:"My Ranking"},"zh-hk":{leaderboard:"排行榜",score:"分數",betcounts:"投注次數",winstakeratio:"勝率",qualified:"合格的",nowinners:"暫時沒有贏家。 成為他們中的一員!",rank:"秩",player:"播放器",points:"積分",prize:"獎",unqualifiedTips:"未达到最低投注数。检查比赛规则。",me:"我"},fr:{leaderboard:"Tableau des leaders",score:"Score",betcounts:"Le pari compte",winstakeratio:"Indice du gain d'une mise",qualified:"Qualifié",nowinners:"Aucun gagnant pour l'instant, soyez l'un d'entre eux",rank:"Rang",player:"Joueur",points:"Points",prize:"Prix",unqualifiedTips:"Le nombre de mises minimum n'est pas terminé. Vérifiez les règles.",me:"Me"},ro:{leaderboard:"Clasament",score:"Scor",betcounts:"Număr Pariuri",winstakeratio:"Raport de câștig",qualified:"Calificat",nowinners:"Nu există câștigători pentru moment. Fii unul dintre ei!",rank:"Clasament",player:"Jucător",points:"Puncte",prize:"Premiu",unqualifiedTips:"Numărul minim de pariuri nu a fost atins. Verificați regulile.",me:"Eu"},hu:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Bet Counts",winstakeratio:"Fogadás számít",qualified:"Képzett",nowinners:"Egyelőre nincs nyertes. Legyen az egyikük!",rank:"Rang",player:"Játékos",points:"Pontok",prize:"Díj",unqualifiedTips:"A minimális fogadási értéket nem érte el. Kérjük ellenőrizze a szabályokat.",me:"Én"},tr:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",rank:"Sıra",player:"Oyuncu",points:"Puan",prize:"Ödül",unqualifiedTips:"Minimum bahis sayısına ulaşılmadı. Turnuva kurallarını kontrol ediniz.",me:"Ben"},el:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",rank:"Κατάταξη",player:"Όνομα",points:"Πόντοι",prize:"Έπαθλο",unqualifiedTips:"Ο ελάχιστος αριθμός στοιχημάτων δεν έχει επιτευχθεί. Ελέγξτε τους κανόνες του τουρνουά.",me:"Εγώ"},es:{leaderboard:"Marcador",score:"Puntuación",betcounts:"Apuesta cuenta",winstakeratio:"RatioDeGanancia",qualified:"Calificado",nowinners:"No hay ganadores por el momento. ¡Sé uno de ellos!",rank:"Rango",player:"Jugador",points:"Puntos",prize:"Premio",unqualifiedTips:"No se ha completado el recuento mínimo de apuestas. Compruebe las reglas.",me:"Yo"},pt:{leaderboard:"Entre os melhores",score:"Pontuação",betcounts:"Contagens de Apostas",winstakeratio:"Rácio de Vitórias",qualified:"Qualificado",nowinners:"Sem vencedores por enquanto. Seja um deles!",rank:"Classificação",player:"Jogador",points:"Pontos",prize:"Prêmio",unqualifiedTips:"Contagem mínima de apostas não concluída. Confira Regras.",me:"Me"},hr:{leaderboard:"Leaderboard",score:"Rezultat",betcounts:"Broj betova",winstakeratio:"Omjer uloga i dobitaka",qualified:"Kvalificirani",nowinners:"Za sada nema pobjednika. Budi jedan od njih",rank:"Rang",player:"Igrač",points:"Bodovi",prize:"Nagrada",unqualifiedTips:"Minimalni broj uloga nije dosegnut. Provjerite pravila turnira",me:"Ja"}},yn=(t,e)=>{var i,n;return(null===(i=bn[e])||void 0===i?void 0:i[t])||(null===(n=bn.en)||void 0===n?void 0:n[t])};var vn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wn=function(t,e,i){return function(t,e){
9
+ d.version="2.29.4",h=Ne,d.fn=ki,d.min=function(){var t=[].slice.call(arguments,0);return Le("isBefore",t)},d.max=function(){var t=[].slice.call(arguments,0);return Le("isAfter",t)},d.now=function(){return Date.now?Date.now():+new Date},d.utc=S,d.unix=function(t){return Ne(1e3*t)},d.months=function(t,e){return Di(t,e,"months")},d.isDate=y,d.locale=me,d.invalid=C,d.duration=Ue,d.isMoment=R,d.weekdays=function(t,e,i){return Ti(t,e,i,"weekdays")},d.parseZone=function(){return Ne.apply(null,arguments).parseZone()},d.localeData=ge,d.isDuration=Pe,d.monthsShort=function(t,e){return Di(t,e,"monthsShort")},d.weekdaysMin=function(t,e,i){return Ti(t,e,i,"weekdaysMin")},d.defineLocale=fe,d.updateLocale=function(t,e){if(null!=e){var i,n,r=oe;null!=ue[t]&&null!=ue[t].parentLocale?ue[t].set(B(ue[t]._config,e)):(null!=(n=ce(t))&&(r=n._config),e=B(r,e),null==n&&(e.abbr=t),(i=new J(e)).parentLocale=ue[t],ue[t]=i),me(t)}else null!=ue[t]&&(null!=ue[t].parentLocale?(ue[t]=ue[t].parentLocale,t===me()&&me(t)):null!=ue[t]&&delete ue[t]);return ue[t]},d.locales=function(){return N(ue)},d.weekdaysShort=function(t,e,i){return Ti(t,e,i,"weekdaysShort")},d.normalizeUnits=U,d.relativeTimeRounding=function(t){return void 0===t?Ki:"function"==typeof t&&(Ki=t,!0)},d.relativeTimeThreshold=function(t,e){return void 0!==Xi[t]&&(void 0===e?Xi[t]:(Xi[t]=e,"s"===t&&(Xi.ss=e-1),!0))},d.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},d.prototype=ki,d.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 sn=class{constructor(e){t(this,e),this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}watchLanguage(t,e){t&&t!=e&&this.getDuration()}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>" - "+t+" "+u("days",this.language))(Math.ceil(t/1440))}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=u("scheduled",this.language);break;case"Running":e=u("ongoing",this.language);break;default:e=u("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const i=()=>u("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=d(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?u("startedAtWithTime",this.language)+t:u("startingAtWithTime",this.language)+t}else{let n=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),s=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+u(`${n}`,this.language)+", "+i()+` ${s}`}}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),this.state&&(this.stateText=this.getStateText(this.state))),!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return i("div",{class:"TournamentBannerWrap"},this.thumbnail&&i("div",{class:"TournamentBanner",part:"TournamentBanner"},i("img",{src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&i("div",{class:"TournamentBannerInfo",part:"TournamentBannerInfo"},i("div",{class:"BannerInfo",part:"BannerInfo"},i("span",{class:`Tag State ${this.state}`},this.stateText)),i("div",{class:"BannerInfo",part:"BannerInfo"},this.showDate&&i("span",{class:"Tag Date"},this.showCalendar&&i("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),i("div",{class:"BannerInfo",part:"BannerInfo"},this.enrolled&&i("span",{class:"Tag Enroll"},this.showCheck&&i("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),u("enrolled",this.language)))),this.cardMode&&i("div",{class:"TournamentBannerThumb",part:"TournamentBannerThumb"},i("div",{class:"ThumbTitle",part:"ThumbTitle"},u("tournament",this.language)),i("div",{class:"ThumbName",part:"ThumbName"},this.nameOrTitle),i("div",{class:"ThumbState"},this.session&&this.enrolled?i("span",{class:"Tag Join"},i("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),u("joined",this.language)):this.session&&"Closed"!=this.state&&i("span",{class:"Tag Join"},i("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},i("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),u("join",this.language)),"Running"==this.state&&i("span",{class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&i("span",{class:"TagRemain"},this.showRemain," ",u("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&i("span",{class:`Tag Date ${this.state}`},this.showCalendar&&i("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),i("div",{class:"ThumbButtons"},i("casino-tournament-buttons",{enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})),i("div",{class:"ThumbTC"},i("span",{onClick:this.termsClick.bind(this,this.tournamentId)},u("terms",this.language))))))}get host(){return n(this)}static get watchers(){return{language:["watchLanguage"]}}};sn.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const an={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},on=(t,e)=>{var i,n;return(null===(i=an[e])||void 0===i?void 0:i[t])||(null===(n=an.en)||void 0===n?void 0:n[t])},un=class{constructor(e){t(this,e),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])an[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(t,e){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let n=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};n.searchParams.append("language",this.language),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled},window.location.href)},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${n.searchParams.toString()}`,a),t=await t.json()}catch(t){u()}return t})();if(h)if(1==h.success)o();else if(h.errorMessage.match("VersionMismatchException")){let t;t=await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(i=null==t?void 0:t.item)||void 0===i?void 0:i.playerEnrolled)?o():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(t){window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)}moreAction(t){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:t},window.location.href)}render(){return i("div",{class:"TournamentButtons"},!this.session&&i("div",{class:"ButtonGroup"},i("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},on("login",this.language)),i("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},on("register",this.language))),this.session&&i("div",null,!this.enrolled&&i("div",{class:"ButtonGroup"},i("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},on("join",this.language)),this.showReadMore&&i("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},on("readmore",this.language))),this.enrolled&&i("div",{class:"ButtonGroup"},i("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},on("details",this.language)),this.showReadMore&&i("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},on("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&i("span",{class:"ErrorText",part:"ErrorText"},on("joinerror",this.language)))}get host(){return n(this)}};un.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';const hn={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Gotovo",starting:"Počinje u ",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}},ln=(t,e)=>{var i,n;return(null===(i=hn[e])||void 0===i?void 0:i[t])||(null===(n=hn.en)||void 0===n?void 0:n[t])},dn=class{constructor(e){t(this,e),this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}watchLanguage(t,e){t&&t!=e&&this.getDuration()}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.tournamentUntilStartDays=this.getDateTimeDiff(t,this.startTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}formatDate(t){let e=new Date(t),i=new Intl.DateTimeFormat(this.language,{month:"long"}).format(e);return`${e.getDate()} ${i}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>t+" "+ln("days",this.language))(Math.ceil(t/1440))}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])hn[e][i]=t[e][i]}))),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){if(this.startTime&&this.endTime)return i("div",{class:"TournamentDurationWrap"},i("div",{class:"TournamentDuration"},i("div",{class:"TournamentDates"},i("div",{class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),i("div",{class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),i("div",{class:"ProgressBarWrapper"},i("div",{class:"ProgressBar",part:"ProgressBar"},"Finished"==this.status||"Closing"==this.status||"Closed"==this.status?i("div",null,i("div",{class:"ProgressBarFillEnd",part:"ProgressBarFillEnd"}),i("div",{class:"Finished",part:"Finished"},ln("finished",this.language))):this.tournamentUntilStartDays>0?i("div",null,i("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),i("div",{class:"Remaining",part:"Remaining"},ln("starting",this.language)," ",this.getTextByDiff(this.tournamentUntilStartDays))):i("div",null,i("div",{class:"ProgressBarFill",part:"ProgressBarFill",style:{width:`${this.getProgress()}%`}}),this.tournamentLeftDays>0&&i("div",{class:"Remaining",part:"Remaining"},this.showRemain," ",ln("left",this.language)))))))}get host(){return n(this)}static get watchers(){return{language:["watchLanguage"]}}};dn.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";const cn={en:{enrolled:"Enrolled",details:"Details",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"zh-hk":{enrolled:"已註冊",details:"細節",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",details:"Détails",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",details:"Detalii",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Katıldın",details:"Detaylar",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"},el:{enrolled:"Εγγεγραμμένος",details:"Λεπτομέρειες",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Inscrito",details:"Detalles",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"},pt:{enrolled:"Inscrito",details:"Detalhes",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",details:"Adatok",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},mn=(t,e)=>{var i,n;return(null===(i=cn[e])||void 0===i?void 0:i[t])||(null===(n=cn.en)||void 0===n?void 0:n[t])},fn=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])cn[e][i]=t[e][i]})),e(!0)})),gn=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])cn[e][i]=t[e][i]})),e(!0)}))})),pn=class{constructor(e){t(this,e),this.termsUrl="#",this.keepContext=!1,this.useGroup=!1,this.align="center",this.showDates=!1,this.showPrizes=!1,this.showButton=!1,this.shortStart=!1,this.seeGames=!1,this.useEvent=!1,this.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.showReadMore=!1,this.translationUrl="",this.limitStylingAppends=!1,this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>mn("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=d(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?mn("startedAtWithTime",this.language)+t:mn("startingAtWithTime",this.language)+t}else{let e=new Intl.DateTimeFormat("en",t).format(i),r=i.getDate(),s=i.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startDate=`${r} `+mn(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)}}async infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.translationUrl?await gn(this.translationUrl):this.translationData&&await fn(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return gn(this.translationUrl);if(this.translationData)return fn(JSON.parse(this.translationData))}}setTournamentInfo(){var t;this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:(t=this.scoreCriteria,t?t.charAt(0).toLowerCase()+t.slice(1):""),termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount}}componentWillRender(){this.setTournamentInfo(),this.tournamentInfo.startTime&&this.formatDate()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}tournamentGamesClicked(t){window.postMessage({type:"tournamentGamesClicked",id:t},window.location.href)}render(){if(this.tournamentInfo)return i("div",{class:"TournamentInfoWrap"},i("div",{class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},i("h1",{class:"Title"},this.tournamentInfo.nameOrTitle),i("div",{class:"Details"},i("p",{class:"Score"},mn("scoreCriteria",this.language),": ",mn(this.tournamentInfo.scoreCriteria,this.language)," (",mn("minbet",this.language),": ",this.tournamentInfo.minBetCount,")"),this.showDates&&i("p",{class:"Dates"},this.startDate),this.seeGames&&i("p",{class:"SeeGames"},mn("seegames",this.language),":",i("a",{class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",mn("here",this.language))),this.showButton&&i("div",{class:"InfoButtons"},i("casino-tournament-buttons",{enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}))),this.showPrizes&&i("casino-tournament-prizes",{"raw-prizes":JSON.stringify(this.tournamentInfo.prizes),"use-event":"false","use-group":this.useGroup,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl}),i("casino-tournament-duration",{exportparts:"Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate","start-time":this.tournamentInfo.startTime,"end-time":this.tournamentInfo.endTime,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))}get host(){return n(this)}};pn.style=":host{display:block}.TournamentInfo{background:var(--emfe-w-tournament-color-bg, #153a5c);color:var(--emfe-w-color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emfe-w-color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emfe-w-color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emfe-w-color-white, #FFFFFF)}";const bn={en:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Count",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",rank:"Rank",player:"Player",points:"Points",prize:"Prize",unqualifiedTips:"The minimum number of bets has not been reached. Check tournament rules.",me:"Me",myRanking:"My Ranking"},"zh-hk":{leaderboard:"排行榜",score:"分數",betcounts:"投注次數",winstakeratio:"勝率",qualified:"合格的",nowinners:"暫時沒有贏家。 成為他們中的一員!",rank:"秩",player:"播放器",points:"積分",prize:"獎",unqualifiedTips:"未达到最低投注数。检查比赛规则。",me:"我"},fr:{leaderboard:"Tableau des leaders",score:"Score",betcounts:"Le pari compte",winstakeratio:"Indice du gain d'une mise",qualified:"Qualifié",nowinners:"Aucun gagnant pour l'instant, soyez l'un d'entre eux",rank:"Rang",player:"Joueur",points:"Points",prize:"Prix",unqualifiedTips:"Le nombre de mises minimum n'est pas terminé. Vérifiez les règles.",me:"Me"},ro:{leaderboard:"Clasament",score:"Scor",betcounts:"Număr Pariuri",winstakeratio:"Raport de câștig",qualified:"Calificat",nowinners:"Nu există câștigători pentru moment. Fii unul dintre ei!",rank:"Clasament",player:"Jucător",points:"Puncte",prize:"Premiu",unqualifiedTips:"Numărul minim de pariuri nu a fost atins. Verificați regulile.",me:"Eu"},hu:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Bet Counts",winstakeratio:"Fogadás számít",qualified:"Képzett",nowinners:"Egyelőre nincs nyertes. Legyen az egyikük!",rank:"Rang",player:"Játékos",points:"Pontok",prize:"Díj",unqualifiedTips:"A minimális fogadási értéket nem érte el. Kérjük ellenőrizze a szabályokat.",me:"Én"},tr:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",rank:"Sıra",player:"Oyuncu",points:"Puan",prize:"Ödül",unqualifiedTips:"Minimum bahis sayısına ulaşılmadı. Turnuva kurallarını kontrol ediniz.",me:"Ben"},el:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",rank:"Κατάταξη",player:"Όνομα",points:"Πόντοι",prize:"Έπαθλο",unqualifiedTips:"Ο ελάχιστος αριθμός στοιχημάτων δεν έχει επιτευχθεί. Ελέγξτε τους κανόνες του τουρνουά.",me:"Εγώ"},es:{leaderboard:"Marcador",score:"Puntuación",betcounts:"Apuesta cuenta",winstakeratio:"RatioDeGanancia",qualified:"Calificado",nowinners:"No hay ganadores por el momento. ¡Sé uno de ellos!",rank:"Rango",player:"Jugador",points:"Puntos",prize:"Premio",unqualifiedTips:"No se ha completado el recuento mínimo de apuestas. Compruebe las reglas.",me:"Yo"},pt:{leaderboard:"Entre os melhores",score:"Pontuação",betcounts:"Contagens de Apostas",winstakeratio:"Rácio de Vitórias",qualified:"Qualificado",nowinners:"Sem vencedores por enquanto. Seja um deles!",rank:"Classificação",player:"Jogador",points:"Pontos",prize:"Prêmio",unqualifiedTips:"Contagem mínima de apostas não concluída. Confira Regras.",me:"Me"},hr:{leaderboard:"Leaderboard",score:"Rezultat",betcounts:"Broj betova",winstakeratio:"Omjer uloga i dobitaka",qualified:"Kvalificirani",nowinners:"Za sada nema pobjednika. Budi jedan od njih",rank:"Rang",player:"Igrač",points:"Bodovi",prize:"Nagrada",unqualifiedTips:"Minimalni broj uloga nije dosegnut. Provjerite pravila turnira",me:"Ja"}},yn=(t,e)=>{var i,n;return(null===(i=bn[e])||void 0===i?void 0:i[t])||(null===(n=bn.en)||void 0===n?void 0:n[t])};var vn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},wn=function(t,e,i){return function(t,e){
10
10
  /** @license
11
11
  * eventsource.js
12
12
  * Available under MIT License (MIT)
@@ -6312,11 +6312,29 @@ const CasinoTournamentBanner = class {
6312
6312
  this.clientStylingUrl = '';
6313
6313
  this.limitStylingAppends = false;
6314
6314
  }
6315
+ watchLanguage(newValue, oldValue) {
6316
+ if (newValue && newValue != oldValue) {
6317
+ this.getDuration();
6318
+ }
6319
+ }
6320
+ infoCompletedHandler(event) {
6321
+ if (event.detail && this.useEvent) {
6322
+ this.state = event.detail.state;
6323
+ this.stateText = this.getStateText(this.state);
6324
+ this.enrolled = event.detail.playerEnrolled;
6325
+ this.startTime = event.detail.startTime;
6326
+ this.thumbnail = event.detail.thumbnail;
6327
+ this.tournamentId = event.detail.id;
6328
+ if (this.startTime) {
6329
+ this.formatDate();
6330
+ }
6331
+ }
6332
+ }
6315
6333
  getDateTimeDiff(dateString1, dateString2) {
6316
6334
  return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
6317
6335
  }
6318
6336
  getTextByDiff(diff) {
6319
- const renderText = (amount, type) => ' - ' + amount + ' ' + translate$5(type);
6337
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate$5(type, this.language);
6320
6338
  const renderTimeColumn = (column) => {
6321
6339
  const columnInt = Math.floor(column);
6322
6340
  if (columnInt < 10) {
@@ -6339,19 +6357,6 @@ const CasinoTournamentBanner = class {
6339
6357
  this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
6340
6358
  this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
6341
6359
  }
6342
- infoCompletedHandler(event) {
6343
- if (event.detail && this.useEvent) {
6344
- this.state = event.detail.state;
6345
- this.stateText = this.getStateText(this.state);
6346
- this.enrolled = event.detail.playerEnrolled;
6347
- this.startTime = event.detail.startTime;
6348
- this.thumbnail = event.detail.thumbnail;
6349
- this.tournamentId = event.detail.id;
6350
- if (this.startTime) {
6351
- this.formatDate();
6352
- }
6353
- }
6354
- }
6355
6360
  getStateText(state) {
6356
6361
  let text = '';
6357
6362
  switch (state) {
@@ -6470,6 +6475,9 @@ const CasinoTournamentBanner = class {
6470
6475
  index.h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), index.h("div", { class: "ThumbButtons" }, index.h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })), index.h("div", { class: "ThumbTC" }, index.h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate$5('terms', this.language))))));
6471
6476
  }
6472
6477
  get host() { return index.getElement(this); }
6478
+ static get watchers() { return {
6479
+ "language": ["watchLanguage"]
6480
+ }; }
6473
6481
  };
6474
6482
  CasinoTournamentBanner.style = casinoTournamentBannerCss;
6475
6483
 
@@ -7140,6 +7148,11 @@ const CasinoTournamentDuration = class {
7140
7148
  this.clientStylingUrl = '';
7141
7149
  this.limitStylingAppends = false;
7142
7150
  }
7151
+ watchLanguage(newValue, oldValue) {
7152
+ if (newValue && newValue != oldValue) {
7153
+ this.getDuration();
7154
+ }
7155
+ }
7143
7156
  getDateTimeDiff(dateString1, dateString2) {
7144
7157
  return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
7145
7158
  }
@@ -7157,7 +7170,7 @@ const CasinoTournamentDuration = class {
7157
7170
  return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
7158
7171
  }
7159
7172
  getTextByDiff(diff) {
7160
- const renderText = (amount, type) => amount + ' ' + translate$3(type);
7173
+ const renderText = (amount, type) => amount + ' ' + translate$3(type, this.language);
7161
7174
  const renderTimeColumn = (column) => {
7162
7175
  const columnInt = Math.floor(column);
7163
7176
  if (columnInt < 10) {
@@ -7241,9 +7254,16 @@ const CasinoTournamentDuration = class {
7241
7254
  }
7242
7255
  }
7243
7256
  get host() { return index.getElement(this); }
7257
+ static get watchers() { return {
7258
+ "language": ["watchLanguage"]
7259
+ }; }
7244
7260
  };
7245
7261
  CasinoTournamentDuration.style = casinoTournamentDurationCss;
7246
7262
 
7263
+ function lowerCaseFirstLetter(string) {
7264
+ return string ? string.charAt(0).toLowerCase() + string.slice(1) : '';
7265
+ }
7266
+
7247
7267
  const DEFAULT_LANGUAGE$2 = 'en';
7248
7268
  const TRANSLATIONS$2 = {
7249
7269
  en: {
@@ -7701,7 +7721,7 @@ const CasinoTournamentInfo = class {
7701
7721
  setTournamentInfo() {
7702
7722
  this.tournamentInfo = {
7703
7723
  nameOrTitle: this.nameOrTitle,
7704
- scoreCriteria: this.scoreCriteria,
7724
+ scoreCriteria: lowerCaseFirstLetter(this.scoreCriteria),
7705
7725
  termsUrl: this.termsUrl,
7706
7726
  startTime: this.startTime,
7707
7727
  endTime: this.endTime,
@@ -7748,7 +7768,7 @@ const CasinoTournamentInfo = class {
7748
7768
  }
7749
7769
  render() {
7750
7770
  if (this.tournamentInfo) {
7751
- return index.h("div", { class: "TournamentInfoWrap" }, index.h("div", { class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, index.h("h1", { class: "Title" }, this.tournamentInfo.nameOrTitle), index.h("div", { class: "Details" }, index.h("p", { class: "Score" }, translate$2('scoreCriteria', this.language), ":", this.tournamentInfo.scoreCriteria, " (", translate$2('minbet', this.language), ":", this.tournamentInfo.minBetCount, ")"), this.showDates && index.h("p", { class: "Dates" }, this.startDate), this.seeGames && index.h("p", { class: "SeeGames" }, translate$2('seegames', this.language), ":", index.h("a", { class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate$2('here', this.language))), this.showButton &&
7771
+ return index.h("div", { class: "TournamentInfoWrap" }, index.h("div", { class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, index.h("h1", { class: "Title" }, this.tournamentInfo.nameOrTitle), index.h("div", { class: "Details" }, index.h("p", { class: "Score" }, translate$2('scoreCriteria', this.language), ": ", translate$2(this.tournamentInfo.scoreCriteria, this.language), " (", translate$2('minbet', this.language), ": ", this.tournamentInfo.minBetCount, ")"), this.showDates && index.h("p", { class: "Dates" }, this.startDate), this.seeGames && index.h("p", { class: "SeeGames" }, translate$2('seegames', this.language), ":", index.h("a", { class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate$2('here', this.language))), this.showButton &&
7752
7772
  index.h("div", { class: "InfoButtons" }, index.h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }))), this.showPrizes && index.h("casino-tournament-prizes", { "raw-prizes": JSON.stringify(this.tournamentInfo.prizes), "use-event": "false", "use-group": this.useGroup, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl }), index.h("casino-tournament-duration", { exportparts: "Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate", "start-time": this.tournamentInfo.startTime, "end-time": this.tournamentInfo.endTime, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })));
7753
7773
  }
7754
7774
  }
@@ -443,11 +443,29 @@ const CasinoTournamentBanner = /*@__PURE__*/ proxyCustomElement(class extends HT
443
443
  this.clientStylingUrl = '';
444
444
  this.limitStylingAppends = false;
445
445
  }
446
+ watchLanguage(newValue, oldValue) {
447
+ if (newValue && newValue != oldValue) {
448
+ this.getDuration();
449
+ }
450
+ }
451
+ infoCompletedHandler(event) {
452
+ if (event.detail && this.useEvent) {
453
+ this.state = event.detail.state;
454
+ this.stateText = this.getStateText(this.state);
455
+ this.enrolled = event.detail.playerEnrolled;
456
+ this.startTime = event.detail.startTime;
457
+ this.thumbnail = event.detail.thumbnail;
458
+ this.tournamentId = event.detail.id;
459
+ if (this.startTime) {
460
+ this.formatDate();
461
+ }
462
+ }
463
+ }
446
464
  getDateTimeDiff(dateString1, dateString2) {
447
465
  return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
448
466
  }
449
467
  getTextByDiff(diff) {
450
- const renderText = (amount, type) => ' - ' + amount + ' ' + translate(type);
468
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate(type, this.language);
451
469
  const renderTimeColumn = (column) => {
452
470
  const columnInt = Math.floor(column);
453
471
  if (columnInt < 10) {
@@ -470,19 +488,6 @@ const CasinoTournamentBanner = /*@__PURE__*/ proxyCustomElement(class extends HT
470
488
  this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
471
489
  this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
472
490
  }
473
- infoCompletedHandler(event) {
474
- if (event.detail && this.useEvent) {
475
- this.state = event.detail.state;
476
- this.stateText = this.getStateText(this.state);
477
- this.enrolled = event.detail.playerEnrolled;
478
- this.startTime = event.detail.startTime;
479
- this.thumbnail = event.detail.thumbnail;
480
- this.tournamentId = event.detail.id;
481
- if (this.startTime) {
482
- this.formatDate();
483
- }
484
- }
485
- }
486
491
  getStateText(state) {
487
492
  let text = '';
488
493
  switch (state) {
@@ -601,6 +606,9 @@ const CasinoTournamentBanner = /*@__PURE__*/ proxyCustomElement(class extends HT
601
606
  h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { class: "ThumbButtons" }, h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })), h("div", { class: "ThumbTC" }, h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate('terms', this.language))))));
602
607
  }
603
608
  get host() { return this; }
609
+ static get watchers() { return {
610
+ "language": ["watchLanguage"]
611
+ }; }
604
612
  static get style() { return casinoTournamentBannerCss; }
605
613
  }, [1, "casino-tournament-banner", {
606
614
  "useEvent": [1, "use-event"],
@@ -113,6 +113,11 @@ const CasinoTournamentDuration = /*@__PURE__*/ proxyCustomElement(class extends
113
113
  this.clientStylingUrl = '';
114
114
  this.limitStylingAppends = false;
115
115
  }
116
+ watchLanguage(newValue, oldValue) {
117
+ if (newValue && newValue != oldValue) {
118
+ this.getDuration();
119
+ }
120
+ }
116
121
  getDateTimeDiff(dateString1, dateString2) {
117
122
  return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
118
123
  }
@@ -130,7 +135,7 @@ const CasinoTournamentDuration = /*@__PURE__*/ proxyCustomElement(class extends
130
135
  return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
131
136
  }
132
137
  getTextByDiff(diff) {
133
- const renderText = (amount, type) => amount + ' ' + translate(type);
138
+ const renderText = (amount, type) => amount + ' ' + translate(type, this.language);
134
139
  const renderTimeColumn = (column) => {
135
140
  const columnInt = Math.floor(column);
136
141
  if (columnInt < 10) {
@@ -214,6 +219,9 @@ const CasinoTournamentDuration = /*@__PURE__*/ proxyCustomElement(class extends
214
219
  }
215
220
  }
216
221
  get host() { return this; }
222
+ static get watchers() { return {
223
+ "language": ["watchLanguage"]
224
+ }; }
217
225
  static get style() { return casinoTournamentDurationCss; }
218
226
  }, [1, "casino-tournament-duration", {
219
227
  "startTime": [1, "start-time"],
@@ -4,6 +4,10 @@ import { d as defineCustomElement$3 } from './casino-tournament-buttons2.js';
4
4
  import { d as defineCustomElement$2 } from './casino-tournament-duration2.js';
5
5
  import { d as defineCustomElement$1 } from './casino-tournament-prizes2.js';
6
6
 
7
+ function lowerCaseFirstLetter(string) {
8
+ return string ? string.charAt(0).toLowerCase() + string.slice(1) : '';
9
+ }
10
+
7
11
  const DEFAULT_LANGUAGE = 'en';
8
12
  const TRANSLATIONS = {
9
13
  en: {
@@ -463,7 +467,7 @@ const CasinoTournamentInfo = /*@__PURE__*/ proxyCustomElement(class extends HTML
463
467
  setTournamentInfo() {
464
468
  this.tournamentInfo = {
465
469
  nameOrTitle: this.nameOrTitle,
466
- scoreCriteria: this.scoreCriteria,
470
+ scoreCriteria: lowerCaseFirstLetter(this.scoreCriteria),
467
471
  termsUrl: this.termsUrl,
468
472
  startTime: this.startTime,
469
473
  endTime: this.endTime,
@@ -510,7 +514,7 @@ const CasinoTournamentInfo = /*@__PURE__*/ proxyCustomElement(class extends HTML
510
514
  }
511
515
  render() {
512
516
  if (this.tournamentInfo) {
513
- return h("div", { class: "TournamentInfoWrap" }, h("div", { class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, h("h1", { class: "Title" }, this.tournamentInfo.nameOrTitle), h("div", { class: "Details" }, h("p", { class: "Score" }, translate('scoreCriteria', this.language), ":", this.tournamentInfo.scoreCriteria, " (", translate('minbet', this.language), ":", this.tournamentInfo.minBetCount, ")"), this.showDates && h("p", { class: "Dates" }, this.startDate), this.seeGames && h("p", { class: "SeeGames" }, translate('seegames', this.language), ":", h("a", { class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate('here', this.language))), this.showButton &&
517
+ return h("div", { class: "TournamentInfoWrap" }, h("div", { class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, h("h1", { class: "Title" }, this.tournamentInfo.nameOrTitle), h("div", { class: "Details" }, h("p", { class: "Score" }, translate('scoreCriteria', this.language), ": ", translate(this.tournamentInfo.scoreCriteria, this.language), " (", translate('minbet', this.language), ": ", this.tournamentInfo.minBetCount, ")"), this.showDates && h("p", { class: "Dates" }, this.startDate), this.seeGames && h("p", { class: "SeeGames" }, translate('seegames', this.language), ":", h("a", { class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate('here', this.language))), this.showButton &&
514
518
  h("div", { class: "InfoButtons" }, h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }))), this.showPrizes && h("casino-tournament-prizes", { "raw-prizes": JSON.stringify(this.tournamentInfo.prizes), "use-event": "false", "use-group": this.useGroup, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl }), h("casino-tournament-duration", { exportparts: "Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate", "start-time": this.tournamentInfo.startTime, "end-time": this.tournamentInfo.endTime, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })));
515
519
  }
516
520
  }
@@ -6308,11 +6308,29 @@ const CasinoTournamentBanner = class {
6308
6308
  this.clientStylingUrl = '';
6309
6309
  this.limitStylingAppends = false;
6310
6310
  }
6311
+ watchLanguage(newValue, oldValue) {
6312
+ if (newValue && newValue != oldValue) {
6313
+ this.getDuration();
6314
+ }
6315
+ }
6316
+ infoCompletedHandler(event) {
6317
+ if (event.detail && this.useEvent) {
6318
+ this.state = event.detail.state;
6319
+ this.stateText = this.getStateText(this.state);
6320
+ this.enrolled = event.detail.playerEnrolled;
6321
+ this.startTime = event.detail.startTime;
6322
+ this.thumbnail = event.detail.thumbnail;
6323
+ this.tournamentId = event.detail.id;
6324
+ if (this.startTime) {
6325
+ this.formatDate();
6326
+ }
6327
+ }
6328
+ }
6311
6329
  getDateTimeDiff(dateString1, dateString2) {
6312
6330
  return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
6313
6331
  }
6314
6332
  getTextByDiff(diff) {
6315
- const renderText = (amount, type) => ' - ' + amount + ' ' + translate$5(type);
6333
+ const renderText = (amount, type) => ' - ' + amount + ' ' + translate$5(type, this.language);
6316
6334
  const renderTimeColumn = (column) => {
6317
6335
  const columnInt = Math.floor(column);
6318
6336
  if (columnInt < 10) {
@@ -6335,19 +6353,6 @@ const CasinoTournamentBanner = class {
6335
6353
  this.tournamentLeftDays = this.getDateTimeDiff(dateNow, this.endTime);
6336
6354
  this.showRemain = this.getTextByDiff(this.tournamentLeftDays);
6337
6355
  }
6338
- infoCompletedHandler(event) {
6339
- if (event.detail && this.useEvent) {
6340
- this.state = event.detail.state;
6341
- this.stateText = this.getStateText(this.state);
6342
- this.enrolled = event.detail.playerEnrolled;
6343
- this.startTime = event.detail.startTime;
6344
- this.thumbnail = event.detail.thumbnail;
6345
- this.tournamentId = event.detail.id;
6346
- if (this.startTime) {
6347
- this.formatDate();
6348
- }
6349
- }
6350
- }
6351
6356
  getStateText(state) {
6352
6357
  let text = '';
6353
6358
  switch (state) {
@@ -6466,6 +6471,9 @@ const CasinoTournamentBanner = class {
6466
6471
  h("svg", { class: "CalendarIcon", width: "9", height: "11", viewBox: "0 0 9 11", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z", fill: "#1E1616" })), this.startdate)), h("div", { class: "ThumbButtons" }, h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })), h("div", { class: "ThumbTC" }, h("span", { onClick: this.termsClick.bind(this, this.tournamentId) }, translate$5('terms', this.language))))));
6467
6472
  }
6468
6473
  get host() { return getElement(this); }
6474
+ static get watchers() { return {
6475
+ "language": ["watchLanguage"]
6476
+ }; }
6469
6477
  };
6470
6478
  CasinoTournamentBanner.style = casinoTournamentBannerCss;
6471
6479
 
@@ -7136,6 +7144,11 @@ const CasinoTournamentDuration = class {
7136
7144
  this.clientStylingUrl = '';
7137
7145
  this.limitStylingAppends = false;
7138
7146
  }
7147
+ watchLanguage(newValue, oldValue) {
7148
+ if (newValue && newValue != oldValue) {
7149
+ this.getDuration();
7150
+ }
7151
+ }
7139
7152
  getDateTimeDiff(dateString1, dateString2) {
7140
7153
  return ((new Date(dateString2)).getTime() - (new Date(dateString1)).getTime()) / (1000 * 60);
7141
7154
  }
@@ -7153,7 +7166,7 @@ const CasinoTournamentDuration = class {
7153
7166
  return `${currentDay} ${currentMonth}, ${currentDate.toLocaleString('en-GB', { hour: 'numeric', minute: 'numeric' })}, ${currentDate.getUTCFullYear()}`;
7154
7167
  }
7155
7168
  getTextByDiff(diff) {
7156
- const renderText = (amount, type) => amount + ' ' + translate$3(type);
7169
+ const renderText = (amount, type) => amount + ' ' + translate$3(type, this.language);
7157
7170
  const renderTimeColumn = (column) => {
7158
7171
  const columnInt = Math.floor(column);
7159
7172
  if (columnInt < 10) {
@@ -7237,9 +7250,16 @@ const CasinoTournamentDuration = class {
7237
7250
  }
7238
7251
  }
7239
7252
  get host() { return getElement(this); }
7253
+ static get watchers() { return {
7254
+ "language": ["watchLanguage"]
7255
+ }; }
7240
7256
  };
7241
7257
  CasinoTournamentDuration.style = casinoTournamentDurationCss;
7242
7258
 
7259
+ function lowerCaseFirstLetter(string) {
7260
+ return string ? string.charAt(0).toLowerCase() + string.slice(1) : '';
7261
+ }
7262
+
7243
7263
  const DEFAULT_LANGUAGE$2 = 'en';
7244
7264
  const TRANSLATIONS$2 = {
7245
7265
  en: {
@@ -7697,7 +7717,7 @@ const CasinoTournamentInfo = class {
7697
7717
  setTournamentInfo() {
7698
7718
  this.tournamentInfo = {
7699
7719
  nameOrTitle: this.nameOrTitle,
7700
- scoreCriteria: this.scoreCriteria,
7720
+ scoreCriteria: lowerCaseFirstLetter(this.scoreCriteria),
7701
7721
  termsUrl: this.termsUrl,
7702
7722
  startTime: this.startTime,
7703
7723
  endTime: this.endTime,
@@ -7744,7 +7764,7 @@ const CasinoTournamentInfo = class {
7744
7764
  }
7745
7765
  render() {
7746
7766
  if (this.tournamentInfo) {
7747
- return h("div", { class: "TournamentInfoWrap" }, h("div", { class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, h("h1", { class: "Title" }, this.tournamentInfo.nameOrTitle), h("div", { class: "Details" }, h("p", { class: "Score" }, translate$2('scoreCriteria', this.language), ":", this.tournamentInfo.scoreCriteria, " (", translate$2('minbet', this.language), ":", this.tournamentInfo.minBetCount, ")"), this.showDates && h("p", { class: "Dates" }, this.startDate), this.seeGames && h("p", { class: "SeeGames" }, translate$2('seegames', this.language), ":", h("a", { class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate$2('here', this.language))), this.showButton &&
7767
+ return h("div", { class: "TournamentInfoWrap" }, h("div", { class: `TournamentInfo ${this.align}`, part: "TournamentInfo" }, h("h1", { class: "Title" }, this.tournamentInfo.nameOrTitle), h("div", { class: "Details" }, h("p", { class: "Score" }, translate$2('scoreCriteria', this.language), ": ", translate$2(this.tournamentInfo.scoreCriteria, this.language), " (", translate$2('minbet', this.language), ": ", this.tournamentInfo.minBetCount, ")"), this.showDates && h("p", { class: "Dates" }, this.startDate), this.seeGames && h("p", { class: "SeeGames" }, translate$2('seegames', this.language), ":", h("a", { class: "GameLink", href: this.tournamentInfo.termsUrl || '#', target: this.keepContext == true ? '_self' : '_blank', onClick: () => this.tournamentGamesClicked(this.tournamentId) }, " ", translate$2('here', this.language))), this.showButton &&
7748
7768
  h("div", { class: "InfoButtons" }, h("casino-tournament-buttons", { enrolled: this.enrolled, session: this.session, endpoint: this.endpoint, language: this.language, "tournament-id": this.tournamentId, "login-event": this.loginEvent, "login-url": this.loginUrl, "register-event": this.registerEvent, "register-url": this.registerUrl, currency: this.currency, "bonus-code": this.bonusCode, "show-read-more": this.showReadMore, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData }))), this.showPrizes && h("casino-tournament-prizes", { "raw-prizes": JSON.stringify(this.tournamentInfo.prizes), "use-event": "false", "use-group": this.useGroup, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl }), h("casino-tournament-duration", { exportparts: "Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate", "start-time": this.tournamentInfo.startTime, "end-time": this.tournamentInfo.endTime, language: this.language, "client-styling": this.clientStyling, "client-styling-url": this.clientStylingUrl, "translation-data": this.translationData })));
7749
7769
  }
7750
7770
  }
@@ -0,0 +1,2 @@
1
+ import { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-my-tournaments",
3
- "version": "1.34.2",
3
+ "version": "1.35.0",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1,2 +0,0 @@
1
- import { Config } from '../../../../../../../../../../../stencil-public-runtime';
2
- export declare const config: Config;