@everymatrix/casino-tournaments-list-controller 1.94.47 → 1.94.49
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.
- package/components/{CasinoTournamentsListController-BSNYZkzo.js → CasinoTournamentsListController-B1l9g4hh.js} +1 -1
- package/components/{CasinoTournamentsListController-DCd6cP-y.cjs → CasinoTournamentsListController-B8c_8tBp.cjs} +1 -1
- package/components/{CasinoTournamentsListController-Cc1Egq3m.js → CasinoTournamentsListController-DngncLEG.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-D2ywCP0m.cjs → CasinoTournamentsThumbnail-0jZor3n-.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnail-g5Qt76nt.js → CasinoTournamentsThumbnail-BdHuphKQ.js} +1 -1
- package/components/{CasinoTournamentsThumbnail-BpWTrxlm.js → CasinoTournamentsThumbnail-HapYQiqZ.js} +1 -1
- package/components/{CasinoTournamentsThumbnailController-CchbBWHd.cjs → CasinoTournamentsThumbnailController-BO2iRvy8.cjs} +2 -2
- package/components/{CasinoTournamentsThumbnailController-CdIivVd2.js → CasinoTournamentsThumbnailController-C6AhrA4S.js} +5 -5
- package/components/{CasinoTournamentsThumbnailController-CBvU8A_6.js → CasinoTournamentsThumbnailController-CTIYOwlX.js} +5 -5
- package/components/{CasinoTournamentsThumbnailDuration-C2G0rdfr.js → CasinoTournamentsThumbnailDuration-DR1XV1Xz.js} +3 -3
- package/components/{CasinoTournamentsThumbnailDuration-iz7w5_Sb.cjs → CasinoTournamentsThumbnailDuration-DZExV6Fi.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailDuration-ChJd5hA7.js → CasinoTournamentsThumbnailDuration-Z67iwX7z.js} +3 -3
- package/components/{CasinoTournamentsThumbnailGamesSlider-DCAIiZYm.js → CasinoTournamentsThumbnailGamesSlider-C87BCHTu.js} +2 -2
- package/components/{CasinoTournamentsThumbnailGamesSlider-C7ixf9YD.cjs → CasinoTournamentsThumbnailGamesSlider-CoMWyn3W.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailGamesSlider-TiclIE7g.js → CasinoTournamentsThumbnailGamesSlider-c2ahzL43.js} +2 -2
- package/components/{CasinoTournamentsThumbnailPrizes-pEfEVbHI.js → CasinoTournamentsThumbnailPrizes-BGqtQYxy.js} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-BQOM6Olb.cjs → CasinoTournamentsThumbnailPrizes-DNe_e6ay.cjs} +1 -1
- package/components/{CasinoTournamentsThumbnailPrizes-DLth7Ktj.js → CasinoTournamentsThumbnailPrizes-n4KjOvrb.js} +1 -1
- package/es2015/casino-tournaments-list-controller.cjs +1 -1
- package/es2015/casino-tournaments-list-controller.js +1 -1
- package/esnext/casino-tournaments-list-controller.js +1 -1
- package/package.json +1 -1
|
@@ -6420,7 +6420,7 @@ if (typeof window != "undefined") {
|
|
|
6420
6420
|
}
|
|
6421
6421
|
};
|
|
6422
6422
|
};
|
|
6423
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-
|
|
6423
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-CTIYOwlX.js").then((t) => t.C).then(
|
|
6424
6424
|
({ default: t }) => {
|
|
6425
6425
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
6426
6426
|
"casino-tournaments-thumbnail-controller",
|
|
@@ -9,7 +9,7 @@ Arguments: `+Array.prototype.slice.call(n).join("")+`
|
|
|
9
9
|
`+new Error().stack),r=!1}return t.apply(this,arguments)},t)}var gn={};function ts(e,t){c.deprecationHandler!=null&&c.deprecationHandler(e,t),gn[e]||(es(t),gn[e]=!0)}c.suppressDeprecationWarnings=!1;c.deprecationHandler=null;function le(e){return typeof Function!="undefined"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Ki(e){var t,r;for(r in e)E(e,r)&&(t=e[r],le(t)?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Er(e,t){var r=be({},e),n;for(n in t)E(t,n)&&(Oe(e[n])&&Oe(t[n])?(r[n]={},be(r[n],e[n]),be(r[n],t[n])):t[n]!=null?r[n]=t[n]:delete r[n]);for(n in e)E(e,n)&&!E(t,n)&&Oe(e[n])&&(r[n]=be({},r[n]));return r}function $r(e){e!=null&&this.set(e)}var Tr;Object.keys?Tr=Object.keys:Tr=function(e){var t,r=[];for(t in e)E(e,t)&&r.push(t);return r};var ea={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function ta(e,t,r){var n=this._calendar[e]||this._calendar.sameElse;return le(n)?n.call(t,r):n}function oe(e,t,r){var n=""+Math.abs(e),s=t-n.length,i=e>=0;return(i?r?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+n}var Wr=/(\[[^\[]*\])|(\\)?([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,xt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,fr={},Ue={};function y(e,t,r,n){var s=n;typeof n=="string"&&(s=function(){return this[n]()}),e&&(Ue[e]=s),t&&(Ue[t[0]]=function(){return oe(s.apply(this,arguments),t[1],t[2])}),r&&(Ue[r]=function(){return this.localeData().ordinal(s.apply(this,arguments),e)})}function ra(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function na(e){var t=e.match(Wr),r,n;for(r=0,n=t.length;r<n;r++)Ue[t[r]]?t[r]=Ue[t[r]]:t[r]=ra(t[r]);return function(s){var i="",a;for(a=0;a<n;a++)i+=le(t[a])?t[a].call(s,e):t[a];return i}}function Ot(e,t){return e.isValid()?(t=rs(t,e.localeData()),fr[t]=fr[t]||na(t),fr[t](e)):e.localeData().invalidDate()}function rs(e,t){var r=5;function n(s){return t.longDateFormat(s)||s}for(xt.lastIndex=0;r>=0&&xt.test(e);)e=e.replace(xt,n),xt.lastIndex=0,r-=1;return e}var sa={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"};function ia(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(Wr).map(function(n){return n==="MMMM"||n==="MM"||n==="DD"||n==="dddd"?n.slice(1):n}).join(""),this._longDateFormat[e])}var aa="Invalid date";function oa(){return this._invalidDate}var ua="%d",la=/\d{1,2}/;function ha(e){return this._ordinal.replace("%d",e)}var fa={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"};function ca(e,t,r,n){var s=this._relativeTime[r];return le(s)?s(e,t,r,n):s.replace(/%d/i,e)}function da(e,t){var r=this._relativeTime[e>0?"future":"past"];return le(r)?r(t):r.replace(/%s/i,t)}var ot={};function U(e,t){var r=e.toLowerCase();ot[r]=ot[r+"s"]=ot[t]=e}function K(e){return typeof e=="string"?ot[e]||ot[e.toLowerCase()]:void 0}function jr(e){var t={},r,n;for(n in e)E(e,n)&&(r=K(n),r&&(t[r]=e[n]));return t}var ns={};function G(e,t){ns[e]=t}function ma(e){var t=[],r;for(r in e)E(e,r)&&t.push({unit:r,priority:ns[r]});return t.sort(function(n,s){return n.priority-s.priority}),t}function Vt(e){return e%4===0&&e%100!==0||e%400===0}function J(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function v(e){var t=+e,r=0;return t!==0&&isFinite(t)&&(r=J(t)),r}function qe(e,t){return function(r){return r!=null?(ss(this,e,r),c.updateOffset(this,t),this):Lt(this,e)}}function Lt(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function ss(e,t,r){e.isValid()&&!isNaN(r)&&(t==="FullYear"&&Vt(e.year())&&e.month()===1&&e.date()===29?(r=v(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Qt(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}function _a(e){return e=K(e),le(this[e])?this[e]():this}function ya(e,t){if(typeof e=="object"){e=jr(e);var r=ma(e),n,s=r.length;for(n=0;n<s;n++)this[r[n].unit](e[r[n].unit])}else if(e=K(e),le(this[e]))return this[e](t);return this}var is=/\d/,Z=/\d\d/,as=/\d{3}/,Vr=/\d{4}/,zt=/[+-]?\d{6}/,N=/\d\d?/,os=/\d\d\d\d?/,us=/\d\d\d\d\d\d?/,Zt=/\d{1,3}/,zr=/\d{1,4}/,Xt=/[+-]?\d{1,6}/,Je=/\d+/,qt=/[+-]?\d+/,ga=/Z|[+-]\d\d:?\d\d/gi,Jt=/Z|[+-]\d\d(?::?\d\d)?/gi,pa=/[+-]?\d+(\.\d{1,3})?/,bt=/[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,Rt;Rt={};function d(e,t,r){Rt[e]=le(t)?t:function(n,s){return n&&r?r:t}}function ba(e,t){return E(Rt,e)?Rt[e](t._strict,t._locale):new RegExp(va(e))}function va(e){return V(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,r,n,s,i){return r||n||s||i}))}function V(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Mr={};function M(e,t){var r,n=t,s;for(typeof e=="string"&&(e=[e]),ye(t)&&(n=function(i,a){a[t]=v(i)}),s=e.length,r=0;r<s;r++)Mr[e[r]]=n}function vt(e,t){M(e,function(r,n,s,i){s._w=s._w||{},t(r,s._w,s,i)})}function Sa(e,t,r){t!=null&&E(Mr,e)&&Mr[e](t,r._a,r,e)}var F=0,de=1,ie=2,I=3,ee=4,me=5,Me=6,wa=7,xa=8;function Ea(e,t){return(e%t+t)%t}var L;Array.prototype.indexOf?L=Array.prototype.indexOf:L=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function Qt(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=Ea(t,12);return e+=(t-r)/12,r===1?Vt(e)?29:28:31-r%7%2}y("M",["MM",2],"Mo",function(){return this.month()+1});y("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});y("MMMM",0,0,function(e){return this.localeData().months(this,e)});U("month","M");G("month",8);d("M",N);d("MM",N,Z);d("MMM",function(e,t){return t.monthsShortRegex(e)});d("MMMM",function(e,t){return t.monthsRegex(e)});M(["M","MM"],function(e,t){t[de]=v(e)-1});M(["MMM","MMMM"],function(e,t,r,n){var s=r._locale.monthsParse(e,n,r._strict);s!=null?t[de]=s:p(r).invalidMonth=e});var Ta="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ls="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),hs=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Ma=bt,Oa=bt;function Da(e,t){return e?te(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||hs).test(t)?"format":"standalone"][e.month()]:te(this._months)?this._months:this._months.standalone}function Pa(e,t){return e?te(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[hs.test(t)?"format":"standalone"][e.month()]:te(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function Na(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)i=ue([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(i,"").toLocaleLowerCase();return r?t==="MMM"?(s=L.call(this._shortMonthsParse,a),s!==-1?s:null):(s=L.call(this._longMonthsParse,a),s!==-1?s:null):t==="MMM"?(s=L.call(this._shortMonthsParse,a),s!==-1?s:(s=L.call(this._longMonthsParse,a),s!==-1?s:null)):(s=L.call(this._longMonthsParse,a),s!==-1?s:(s=L.call(this._shortMonthsParse,a),s!==-1?s:null))}function ka(e,t,r){var n,s,i;if(this._monthsParseExact)return Na.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(s=ue([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!r&&!this._monthsParse[n]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="MMMM"&&this._longMonthsParse[n].test(e))return n;if(r&&t==="MMM"&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}}function fs(e,t){var r;if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=v(t);else if(t=e.localeData().monthsParse(t),!ye(t))return e}return r=Math.min(e.date(),Qt(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r),e}function cs(e){return e!=null?(fs(this,e),c.updateOffset(this,!0),this):Lt(this,"Month")}function Ha(){return Qt(this.year(),this.month())}function Aa(e){return this._monthsParseExact?(E(this,"_monthsRegex")||ds.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(E(this,"_monthsShortRegex")||(this._monthsShortRegex=Ma),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function La(e){return this._monthsParseExact?(E(this,"_monthsRegex")||ds.call(this),e?this._monthsStrictRegex:this._monthsRegex):(E(this,"_monthsRegex")||(this._monthsRegex=Oa),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function ds(){function e(a,o){return o.length-a.length}var t=[],r=[],n=[],s,i;for(s=0;s<12;s++)i=ue([2e3,s]),t.push(this.monthsShort(i,"")),r.push(this.months(i,"")),n.push(this.months(i,"")),n.push(this.monthsShort(i,""));for(t.sort(e),r.sort(e),n.sort(e),s=0;s<12;s++)t[s]=V(t[s]),r[s]=V(r[s]);for(s=0;s<24;s++)n[s]=V(n[s]);this._monthsRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}y("Y",0,0,function(){var e=this.year();return e<=9999?oe(e,4):"+"+e});y(0,["YY",2],0,function(){return this.year()%100});y(0,["YYYY",4],0,"year");y(0,["YYYYY",5],0,"year");y(0,["YYYYYY",6,!0],0,"year");U("year","y");G("year",1);d("Y",qt);d("YY",N,Z);d("YYYY",zr,Vr);d("YYYYY",Xt,zt);d("YYYYYY",Xt,zt);M(["YYYYY","YYYYYY"],F);M("YYYY",function(e,t){t[F]=e.length===2?c.parseTwoDigitYear(e):v(e)});M("YY",function(e,t){t[F]=c.parseTwoDigitYear(e)});M("Y",function(e,t){t[F]=parseInt(e,10)});function ut(e){return Vt(e)?366:365}c.parseTwoDigitYear=function(e){return v(e)+(v(e)>68?1900:2e3)};var ms=qe("FullYear",!0);function Ra(){return Vt(this.year())}function Ca(e,t,r,n,s,i,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,r,n,s,i,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,r,n,s,i,a),o}function ft(e){var t,r;return e<100&&e>=0?(r=Array.prototype.slice.call(arguments),r[0]=e+400,t=new Date(Date.UTC.apply(null,r)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ct(e,t,r){var n=7+t-r,s=(7+ft(e,0,n).getUTCDay()-t)%7;return-s+n-1}function _s(e,t,r,n,s){var i=(7+r-n)%7,a=Ct(e,n,s),o=1+7*(t-1)+i+a,l,u;return o<=0?(l=e-1,u=ut(l)+o):o>ut(e)?(l=e+1,u=o-ut(e)):(l=e,u=o),{year:l,dayOfYear:u}}function ct(e,t,r){var n=Ct(e.year(),t,r),s=Math.floor((e.dayOfYear()-n-1)/7)+1,i,a;return s<1?(a=e.year()-1,i=s+_e(a,t,r)):s>_e(e.year(),t,r)?(i=s-_e(e.year(),t,r),a=e.year()+1):(a=e.year(),i=s),{week:i,year:a}}function _e(e,t,r){var n=Ct(e,t,r),s=Ct(e+1,t,r);return(ut(e)-n+s)/7}y("w",["ww",2],"wo","week");y("W",["WW",2],"Wo","isoWeek");U("week","w");U("isoWeek","W");G("week",5);G("isoWeek",5);d("w",N);d("ww",N,Z);d("W",N);d("WW",N,Z);vt(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=v(e)});function Ia(e){return ct(e,this._week.dow,this._week.doy).week}var Ba={dow:0,doy:6};function Ya(){return this._week.dow}function Fa(){return this._week.doy}function Ua(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function Ga(e){var t=ct(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}y("d",0,"do","day");y("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});y("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});y("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});y("e",0,0,"weekday");y("E",0,0,"isoWeekday");U("day","d");U("weekday","e");U("isoWeekday","E");G("day",11);G("weekday",11);G("isoWeekday",11);d("d",N);d("e",N);d("E",N);d("dd",function(e,t){return t.weekdaysMinRegex(e)});d("ddd",function(e,t){return t.weekdaysShortRegex(e)});d("dddd",function(e,t){return t.weekdaysRegex(e)});vt(["dd","ddd","dddd"],function(e,t,r,n){var s=r._locale.weekdaysParse(e,n,r._strict);s!=null?t.d=s:p(r).invalidWeekday=e});vt(["d","e","E"],function(e,t,r,n){t[n]=v(e)});function $a(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function Wa(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Zr(e,t){return e.slice(t,7).concat(e.slice(0,t))}var ja="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),ys="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Va="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),za=bt,Za=bt,Xa=bt;function qa(e,t){var r=te(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Zr(r,this._week.dow):e?r[e.day()]:r}function Ja(e){return e===!0?Zr(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Qa(e){return e===!0?Zr(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function Ka(e,t,r){var n,s,i,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)i=ue([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(i,"").toLocaleLowerCase();return r?t==="dddd"?(s=L.call(this._weekdaysParse,a),s!==-1?s:null):t==="ddd"?(s=L.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=L.call(this._minWeekdaysParse,a),s!==-1?s:null):t==="dddd"?(s=L.call(this._weekdaysParse,a),s!==-1||(s=L.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=L.call(this._minWeekdaysParse,a),s!==-1?s:null)):t==="ddd"?(s=L.call(this._shortWeekdaysParse,a),s!==-1||(s=L.call(this._weekdaysParse,a),s!==-1)?s:(s=L.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=L.call(this._minWeekdaysParse,a),s!==-1||(s=L.call(this._weekdaysParse,a),s!==-1)?s:(s=L.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function eo(e,t,r){var n,s,i;if(this._weekdaysParseExact)return Ka.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(s=ue([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&t==="dddd"&&this._fullWeekdaysParse[n].test(e))return n;if(r&&t==="ddd"&&this._shortWeekdaysParse[n].test(e))return n;if(r&&t==="dd"&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}}function to(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=$a(e,this.localeData()),this.add(e-t,"d")):t}function ro(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function no(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=Wa(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function so(e){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||Xr.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(E(this,"_weekdaysRegex")||(this._weekdaysRegex=za),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function io(e){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||Xr.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(E(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Za),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function ao(e){return this._weekdaysParseExact?(E(this,"_weekdaysRegex")||Xr.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(E(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Xa),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Xr(){function e(f,m){return m.length-f.length}var t=[],r=[],n=[],s=[],i,a,o,l,u;for(i=0;i<7;i++)a=ue([2e3,1]).day(i),o=V(this.weekdaysMin(a,"")),l=V(this.weekdaysShort(a,"")),u=V(this.weekdays(a,"")),t.push(o),r.push(l),n.push(u),s.push(o),s.push(l),s.push(u);t.sort(e),r.sort(e),n.sort(e),s.sort(e),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function qr(){return this.hours()%12||12}function oo(){return this.hours()||24}y("H",["HH",2],0,"hour");y("h",["hh",2],0,qr);y("k",["kk",2],0,oo);y("hmm",0,0,function(){return""+qr.apply(this)+oe(this.minutes(),2)});y("hmmss",0,0,function(){return""+qr.apply(this)+oe(this.minutes(),2)+oe(this.seconds(),2)});y("Hmm",0,0,function(){return""+this.hours()+oe(this.minutes(),2)});y("Hmmss",0,0,function(){return""+this.hours()+oe(this.minutes(),2)+oe(this.seconds(),2)});function gs(e,t){y(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}gs("a",!0);gs("A",!1);U("hour","h");G("hour",13);function ps(e,t){return t._meridiemParse}d("a",ps);d("A",ps);d("H",N);d("h",N);d("k",N);d("HH",N,Z);d("hh",N,Z);d("kk",N,Z);d("hmm",os);d("hmmss",us);d("Hmm",os);d("Hmmss",us);M(["H","HH"],I);M(["k","kk"],function(e,t,r){var n=v(e);t[I]=n===24?0:n});M(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e});M(["h","hh"],function(e,t,r){t[I]=v(e),p(r).bigHour=!0});M("hmm",function(e,t,r){var n=e.length-2;t[I]=v(e.substr(0,n)),t[ee]=v(e.substr(n)),p(r).bigHour=!0});M("hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[I]=v(e.substr(0,n)),t[ee]=v(e.substr(n,2)),t[me]=v(e.substr(s)),p(r).bigHour=!0});M("Hmm",function(e,t,r){var n=e.length-2;t[I]=v(e.substr(0,n)),t[ee]=v(e.substr(n))});M("Hmmss",function(e,t,r){var n=e.length-4,s=e.length-2;t[I]=v(e.substr(0,n)),t[ee]=v(e.substr(n,2)),t[me]=v(e.substr(s))});function uo(e){return(e+"").toLowerCase().charAt(0)==="p"}var lo=/[ap]\.?m?\.?/i,ho=qe("Hours",!0);function fo(e,t,r){return e>11?r?"pm":"PM":r?"am":"AM"}var bs={calendar:ea,longDateFormat:sa,invalidDate:aa,ordinal:ua,dayOfMonthOrdinalParse:la,relativeTime:fa,months:Ta,monthsShort:ls,week:Ba,weekdays:ja,weekdaysMin:Va,weekdaysShort:ys,meridiemParse:lo},k={},nt={},dt;function co(e,t){var r,n=Math.min(e.length,t.length);for(r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}function pn(e){return e&&e.toLowerCase().replace("_","-")}function mo(e){for(var t=0,r,n,s,i;t<e.length;){for(i=pn(e[t]).split("-"),r=i.length,n=pn(e[t+1]),n=n?n.split("-"):null;r>0;){if(s=Kt(i.slice(0,r).join("-")),s)return s;if(n&&n.length>=r&&co(i,n)>=r-1)break;r--}t++}return dt}function _o(e){return e.match("^[^/\\\\]*$")!=null}function Kt(e){var t=null,r;if(k[e]===void 0&&typeof module!="undefined"&&module&&module.exports&&_o(e))try{t=dt._abbr,r=qi,r("./locale/"+e),we(t)}catch(n){k[e]=null}return k[e]}function we(e,t){var r;return e&&(j(t)?r=ge(e):r=Jr(e,t),r?dt=r:typeof console!="undefined"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),dt._abbr}function Jr(e,t){if(t!==null){var r,n=bs;if(t.abbr=e,k[e]!=null)ts("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=k[e]._config;else if(t.parentLocale!=null)if(k[t.parentLocale]!=null)n=k[t.parentLocale]._config;else if(r=Kt(t.parentLocale),r!=null)n=r._config;else return nt[t.parentLocale]||(nt[t.parentLocale]=[]),nt[t.parentLocale].push({name:e,config:t}),null;return k[e]=new $r(Er(n,t)),nt[e]&&nt[e].forEach(function(s){Jr(s.name,s.config)}),we(e),k[e]}else return delete k[e],null}function yo(e,t){if(t!=null){var r,n,s=bs;k[e]!=null&&k[e].parentLocale!=null?k[e].set(Er(k[e]._config,t)):(n=Kt(e),n!=null&&(s=n._config),t=Er(s,t),n==null&&(t.abbr=e),r=new $r(t),r.parentLocale=k[e],k[e]=r),we(e)}else k[e]!=null&&(k[e].parentLocale!=null?(k[e]=k[e].parentLocale,e===we()&&we(e)):k[e]!=null&&delete k[e]);return k[e]}function ge(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dt;if(!te(e)){if(t=Kt(e),t)return t;e=[e]}return mo(e)}function go(){return Tr(k)}function Qr(e){var t,r=e._a;return r&&p(e).overflow===-2&&(t=r[de]<0||r[de]>11?de:r[ie]<1||r[ie]>Qt(r[F],r[de])?ie:r[I]<0||r[I]>24||r[I]===24&&(r[ee]!==0||r[me]!==0||r[Me]!==0)?I:r[ee]<0||r[ee]>59?ee:r[me]<0||r[me]>59?me:r[Me]<0||r[Me]>999?Me:-1,p(e)._overflowDayOfYear&&(t<F||t>ie)&&(t=ie),p(e)._overflowWeeks&&t===-1&&(t=wa),p(e)._overflowWeekday&&t===-1&&(t=xa),p(e).overflow=t),e}var po=/^\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)?)?$/,bo=/^\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)?)?$/,vo=/Z|[+-]\d\d(?::?\d\d)?/,Et=[["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]],cr=[["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/]],So=/^\/?Date\((-?\d+)/i,wo=/^(?:(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}))$/,xo={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function vs(e){var t,r,n=e._i,s=po.exec(n)||bo.exec(n),i,a,o,l,u=Et.length,f=cr.length;if(s){for(p(e).iso=!0,t=0,r=u;t<r;t++)if(Et[t][1].exec(s[1])){a=Et[t][0],i=Et[t][2]!==!1;break}if(a==null){e._isValid=!1;return}if(s[3]){for(t=0,r=f;t<r;t++)if(cr[t][1].exec(s[3])){o=(s[2]||" ")+cr[t][0];break}if(o==null){e._isValid=!1;return}}if(!i&&o!=null){e._isValid=!1;return}if(s[4])if(vo.exec(s[4]))l="Z";else{e._isValid=!1;return}e._f=a+(o||"")+(l||""),en(e)}else e._isValid=!1}function Eo(e,t,r,n,s,i){var a=[To(e),ls.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(s,10)];return i&&a.push(parseInt(i,10)),a}function To(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function Mo(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Oo(e,t,r){if(e){var n=ys.indexOf(e),s=new Date(t[0],t[1],t[2]).getDay();if(n!==s)return p(r).weekdayMismatch=!0,r._isValid=!1,!1}return!0}function Do(e,t,r){if(e)return xo[e];if(t)return 0;var n=parseInt(r,10),s=n%100,i=(n-s)/100;return i*60+s}function Ss(e){var t=wo.exec(Mo(e._i)),r;if(t){if(r=Eo(t[4],t[3],t[2],t[5],t[6],t[7]),!Oo(t[1],r,e))return;e._a=r,e._tzm=Do(t[8],t[9],t[10]),e._d=ft.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function Po(e){var t=So.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(vs(e),e._isValid===!1)delete e._isValid;else return;if(Ss(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:c.createFromInputFallback(e)}c.createFromInputFallback=Q("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(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Ie(e,t,r){return e!=null?e:t!=null?t:r}function No(e){var t=new Date(c.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function Kr(e){var t,r,n=[],s,i,a;if(!e._d){for(s=No(e),e._w&&e._a[ie]==null&&e._a[de]==null&&ko(e),e._dayOfYear!=null&&(a=Ie(e._a[F],s[F]),(e._dayOfYear>ut(a)||e._dayOfYear===0)&&(p(e)._overflowDayOfYear=!0),r=ft(a,0,e._dayOfYear),e._a[de]=r.getUTCMonth(),e._a[ie]=r.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=n[t]=s[t];for(;t<7;t++)e._a[t]=n[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[I]===24&&e._a[ee]===0&&e._a[me]===0&&e._a[Me]===0&&(e._nextDay=!0,e._a[I]=0),e._d=(e._useUTC?ft:Ca).apply(null,n),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[I]=24),e._w&&typeof e._w.d!="undefined"&&e._w.d!==i&&(p(e).weekdayMismatch=!0)}}function ko(e){var t,r,n,s,i,a,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(i=1,a=4,r=Ie(t.GG,e._a[F],ct(P(),1,4).year),n=Ie(t.W,1),s=Ie(t.E,1),(s<1||s>7)&&(l=!0)):(i=e._locale._week.dow,a=e._locale._week.doy,u=ct(P(),i,a),r=Ie(t.gg,e._a[F],u.year),n=Ie(t.w,u.week),t.d!=null?(s=t.d,(s<0||s>6)&&(l=!0)):t.e!=null?(s=t.e+i,(t.e<0||t.e>6)&&(l=!0)):s=i),n<1||n>_e(r,i,a)?p(e)._overflowWeeks=!0:l!=null?p(e)._overflowWeekday=!0:(o=_s(r,n,s,i,a),e._a[F]=o.year,e._dayOfYear=o.dayOfYear)}c.ISO_8601=function(){};c.RFC_2822=function(){};function en(e){if(e._f===c.ISO_8601){vs(e);return}if(e._f===c.RFC_2822){Ss(e);return}e._a=[],p(e).empty=!0;var t=""+e._i,r,n,s,i,a,o=t.length,l=0,u,f;for(s=rs(e._f,e._locale).match(Wr)||[],f=s.length,r=0;r<f;r++)i=s[r],n=(t.match(ba(i,e))||[])[0],n&&(a=t.substr(0,t.indexOf(n)),a.length>0&&p(e).unusedInput.push(a),t=t.slice(t.indexOf(n)+n.length),l+=n.length),Ue[i]?(n?p(e).empty=!1:p(e).unusedTokens.push(i),Sa(i,n,e)):e._strict&&!n&&p(e).unusedTokens.push(i);p(e).charsLeftOver=o-l,t.length>0&&p(e).unusedInput.push(t),e._a[I]<=12&&p(e).bigHour===!0&&e._a[I]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[I]=Ho(e._locale,e._a[I],e._meridiem),u=p(e).era,u!==null&&(e._a[F]=e._locale.erasConvertYear(u,e._a[F])),Kr(e),Qr(e)}function Ho(e,t,r){var n;return r==null?t:e.meridiemHour!=null?e.meridiemHour(t,r):(e.isPM!=null&&(n=e.isPM(r),n&&t<12&&(t+=12),!n&&t===12&&(t=0)),t)}function Ao(e){var t,r,n,s,i,a,o=!1,l=e._f.length;if(l===0){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(s=0;s<l;s++)i=0,a=!1,t=Gr({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[s],en(t),Ur(t)&&(a=!0),i+=p(t).charsLeftOver,i+=p(t).unusedTokens.length*10,p(t).score=i,o?i<n&&(n=i,r=t):(n==null||i<n||a)&&(n=i,r=t,a&&(o=!0));be(e,r||t)}function Lo(e){if(!e._d){var t=jr(e._i),r=t.day===void 0?t.date:t.day;e._a=Kn([t.year,t.month,r,t.hour,t.minute,t.second,t.millisecond],function(n){return n&&parseInt(n,10)}),Kr(e)}}function Ro(e){var t=new pt(Qr(ws(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function ws(e){var t=e._i,r=e._f;return e._locale=e._locale||ge(e._l),t===null||r===void 0&&t===""?jt({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),re(t)?new pt(Qr(t)):(gt(t)?e._d=t:te(r)?Ao(e):r?en(e):Co(e),Ur(e)||(e._d=null),e))}function Co(e){var t=e._i;j(t)?e._d=new Date(c.now()):gt(t)?e._d=new Date(t.valueOf()):typeof t=="string"?Po(e):te(t)?(e._a=Kn(t.slice(0),function(r){return parseInt(r,10)}),Kr(e)):Oe(t)?Lo(e):ye(t)?e._d=new Date(t):c.createFromInputFallback(e)}function xs(e,t,r,n,s){var i={};return(t===!0||t===!1)&&(n=t,t=void 0),(r===!0||r===!1)&&(n=r,r=void 0),(Oe(e)&&Fr(e)||te(e)&&e.length===0)&&(e=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=r,i._i=e,i._f=t,i._strict=n,Ro(i)}function P(e,t,r,n){return xs(e,t,r,n,!1)}var Io=Q("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:jt()}),Bo=Q("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=P.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:jt()});function Es(e,t){var r,n;if(t.length===1&&te(t[0])&&(t=t[0]),!t.length)return P();for(r=t[0],n=1;n<t.length;++n)(!t[n].isValid()||t[n][e](r))&&(r=t[n]);return r}function Yo(){var e=[].slice.call(arguments,0);return Es("isBefore",e)}function Fo(){var e=[].slice.call(arguments,0);return Es("isAfter",e)}var Uo=function(){return Date.now?Date.now():+new Date},st=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Go(e){var t,r=!1,n,s=st.length;for(t in e)if(E(e,t)&&!(L.call(st,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(n=0;n<s;++n)if(e[st[n]]){if(r)return!1;parseFloat(e[st[n]])!==v(e[st[n]])&&(r=!0)}return!0}function $o(){return this._isValid}function Wo(){return ne(NaN)}function er(e){var t=jr(e),r=t.year||0,n=t.quarter||0,s=t.month||0,i=t.week||t.isoWeek||0,a=t.day||0,o=t.hour||0,l=t.minute||0,u=t.second||0,f=t.millisecond||0;this._isValid=Go(t),this._milliseconds=+f+u*1e3+l*6e4+o*1e3*60*60,this._days=+a+i*7,this._months=+s+n*3+r*12,this._data={},this._locale=ge(),this._bubble()}function Dt(e){return e instanceof er}function Or(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function jo(e,t,r){var n=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),i=0,a;for(a=0;a<n;a++)v(e[a])!==v(t[a])&&i++;return i+s}function Ts(e,t){y(e,0,0,function(){var r=this.utcOffset(),n="+";return r<0&&(r=-r,n="-"),n+oe(~~(r/60),2)+t+oe(~~r%60,2)})}Ts("Z",":");Ts("ZZ","");d("Z",Jt);d("ZZ",Jt);M(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=tn(Jt,e)});var Vo=/([\+\-]|\d\d)/gi;function tn(e,t){var r=(t||"").match(e),n,s,i;return r===null?null:(n=r[r.length-1]||[],s=(n+"").match(Vo)||["-",0,0],i=+(s[1]*60)+v(s[2]),i===0?0:s[0]==="+"?i:-i)}function rn(e,t){var r,n;return t._isUTC?(r=t.clone(),n=(re(e)||gt(e)?e.valueOf():P(e).valueOf())-r.valueOf(),r._d.setTime(r._d.valueOf()+n),c.updateOffset(r,!1),r):P(e).local()}function Dr(e){return-Math.round(e._d.getTimezoneOffset())}c.updateOffset=function(){};function zo(e,t,r){var n=this._offset||0,s;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=tn(Jt,e),e===null)return this}else Math.abs(e)<16&&!r&&(e=e*60);return!this._isUTC&&t&&(s=Dr(this)),this._offset=e,this._isUTC=!0,s!=null&&this.add(s,"m"),n!==e&&(!t||this._changeInProgress?Ds(this,ne(e-n,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,c.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?n:Dr(this)}function Zo(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Xo(e){return this.utcOffset(0,e)}function qo(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Dr(this),"m")),this}function Jo(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=tn(ga,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Qo(e){return this.isValid()?(e=e?P(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ko(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function eu(){if(!j(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Gr(e,this),e=ws(e),e._a?(t=e._isUTC?ue(e._a):P(e._a),this._isDSTShifted=this.isValid()&&jo(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function tu(){return this.isValid()?!this._isUTC:!1}function ru(){return this.isValid()?this._isUTC:!1}function Ms(){return this.isValid()?this._isUTC&&this._offset===0:!1}var nu=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,su=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ne(e,t){var r=e,n=null,s,i,a;return Dt(e)?r={ms:e._milliseconds,d:e._days,M:e._months}:ye(e)||!isNaN(+e)?(r={},t?r[t]=+e:r.milliseconds=+e):(n=nu.exec(e))?(s=n[1]==="-"?-1:1,r={y:0,d:v(n[ie])*s,h:v(n[I])*s,m:v(n[ee])*s,s:v(n[me])*s,ms:v(Or(n[Me]*1e3))*s}):(n=su.exec(e))?(s=n[1]==="-"?-1:1,r={y:Te(n[2],s),M:Te(n[3],s),w:Te(n[4],s),d:Te(n[5],s),h:Te(n[6],s),m:Te(n[7],s),s:Te(n[8],s)}):r==null?r={}:typeof r=="object"&&("from"in r||"to"in r)&&(a=iu(P(r.from),P(r.to)),r={},r.ms=a.milliseconds,r.M=a.months),i=new er(r),Dt(e)&&E(e,"_locale")&&(i._locale=e._locale),Dt(e)&&E(e,"_isValid")&&(i._isValid=e._isValid),i}ne.fn=er.prototype;ne.invalid=Wo;function Te(e,t){var r=e&&parseFloat(e.replace(",","."));return(isNaN(r)?0:r)*t}function bn(e,t){var r={};return r.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function iu(e,t){var r;return e.isValid()&&t.isValid()?(t=rn(t,e),e.isBefore(t)?r=bn(e,t):(r=bn(t,e),r.milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0}}function Os(e,t){return function(r,n){var s,i;return n!==null&&!isNaN(+n)&&(ts(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=r,r=n,n=i),s=ne(r,n),Ds(this,s,e),this}}function Ds(e,t,r,n){var s=t._milliseconds,i=Or(t._days),a=Or(t._months);e.isValid()&&(n=n==null?!0:n,a&&fs(e,Lt(e,"Month")+a*r),i&&ss(e,"Date",Lt(e,"Date")+i*r),s&&e._d.setTime(e._d.valueOf()+s*r),n&&c.updateOffset(e,i||a))}var au=Os(1,"add"),ou=Os(-1,"subtract");function Ps(e){return typeof e=="string"||e instanceof String}function uu(e){return re(e)||gt(e)||Ps(e)||ye(e)||hu(e)||lu(e)||e===null||e===void 0}function lu(e){var t=Oe(e)&&!Fr(e),r=!1,n=["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,i,a=n.length;for(s=0;s<a;s+=1)i=n[s],r=r||E(e,i);return t&&r}function hu(e){var t=te(e),r=!1;return t&&(r=e.filter(function(n){return!ye(n)&&Ps(e)}).length===0),t&&r}function fu(e){var t=Oe(e)&&!Fr(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<n.length;s+=1)i=n[s],r=r||E(e,i);return t&&r}function cu(e,t){var r=e.diff(t,"days",!0);return r<-6?"sameElse":r<-1?"lastWeek":r<0?"lastDay":r<1?"sameDay":r<2?"nextDay":r<7?"nextWeek":"sameElse"}function du(e,t){arguments.length===1&&(arguments[0]?uu(arguments[0])?(e=arguments[0],t=void 0):fu(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var r=e||P(),n=rn(r,this).startOf("day"),s=c.calendarFormat(this,n)||"sameElse",i=t&&(le(t[s])?t[s].call(this,r):t[s]);return this.format(i||this.localeData().calendar(s,this,P(r)))}function mu(){return new pt(this)}function _u(e,t){var r=re(e)?e:P(e);return this.isValid()&&r.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()>r.valueOf():r.valueOf()<this.clone().startOf(t).valueOf()):!1}function yu(e,t){var r=re(e)?e:P(e);return this.isValid()&&r.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()<r.valueOf():this.clone().endOf(t).valueOf()<r.valueOf()):!1}function gu(e,t,r,n){var s=re(e)?e:P(e),i=re(t)?t:P(t);return this.isValid()&&s.isValid()&&i.isValid()?(n=n||"()",(n[0]==="("?this.isAfter(s,r):!this.isBefore(s,r))&&(n[1]===")"?this.isBefore(i,r):!this.isAfter(i,r))):!1}function pu(e,t){var r=re(e)?e:P(e),n;return this.isValid()&&r.isValid()?(t=K(t)||"millisecond",t==="millisecond"?this.valueOf()===r.valueOf():(n=r.valueOf(),this.clone().startOf(t).valueOf()<=n&&n<=this.clone().endOf(t).valueOf())):!1}function bu(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function vu(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function Su(e,t,r){var n,s,i;if(!this.isValid())return NaN;if(n=rn(e,this),!n.isValid())return NaN;switch(s=(n.utcOffset()-this.utcOffset())*6e4,t=K(t),t){case"year":i=Pt(this,n)/12;break;case"month":i=Pt(this,n);break;case"quarter":i=Pt(this,n)/3;break;case"second":i=(this-n)/1e3;break;case"minute":i=(this-n)/6e4;break;case"hour":i=(this-n)/36e5;break;case"day":i=(this-n-s)/864e5;break;case"week":i=(this-n-s)/6048e5;break;default:i=this-n}return r?i:J(i)}function Pt(e,t){if(e.date()<t.date())return-Pt(t,e);var r=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(r,"months"),s,i;return t-n<0?(s=e.clone().add(r-1,"months"),i=(t-n)/(n-s)):(s=e.clone().add(r+1,"months"),i=(t-n)/(s-n)),-(r+i)||0}c.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";c.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function wu(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function xu(e){if(!this.isValid())return null;var t=e!==!0,r=t?this.clone().utc():this;return r.year()<0||r.year()>9999?Ot(r,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):le(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",Ot(r,"Z")):Ot(r,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Eu(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",r,n,s,i;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),r="["+e+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=t+'[")]',this.format(r+n+s+i)}function Tu(e){e||(e=this.isUtc()?c.defaultFormatUtc:c.defaultFormat);var t=Ot(this,e);return this.localeData().postformat(t)}function Mu(e,t){return this.isValid()&&(re(e)&&e.isValid()||P(e).isValid())?ne({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Ou(e){return this.from(P(),e)}function Du(e,t){return this.isValid()&&(re(e)&&e.isValid()||P(e).isValid())?ne({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function Pu(e){return this.to(P(),e)}function Ns(e){var t;return e===void 0?this._locale._abbr:(t=ge(e),t!=null&&(this._locale=t),this)}var ks=Q("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Hs(){return this._locale}var It=1e3,Ge=60*It,Bt=60*Ge,As=(365*400+97)*24*Bt;function $e(e,t){return(e%t+t)%t}function Ls(e,t,r){return e<100&&e>=0?new Date(e+400,t,r)-As:new Date(e,t,r).valueOf()}function Rs(e,t,r){return e<100&&e>=0?Date.UTC(e+400,t,r)-As:Date.UTC(e,t,r)}function Nu(e){var t,r;if(e=K(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Rs:Ls,e){case"year":t=r(this.year(),0,1);break;case"quarter":t=r(this.year(),this.month()-this.month()%3,1);break;case"month":t=r(this.year(),this.month(),1);break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=r(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=$e(t+(this._isUTC?0:this.utcOffset()*Ge),Bt);break;case"minute":t=this._d.valueOf(),t-=$e(t,Ge);break;case"second":t=this._d.valueOf(),t-=$e(t,It);break}return this._d.setTime(t),c.updateOffset(this,!0),this}function ku(e){var t,r;if(e=K(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(r=this._isUTC?Rs:Ls,e){case"year":t=r(this.year()+1,0,1)-1;break;case"quarter":t=r(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=r(this.year(),this.month()+1,1)-1;break;case"week":t=r(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=r(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=r(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Bt-$e(t+(this._isUTC?0:this.utcOffset()*Ge),Bt)-1;break;case"minute":t=this._d.valueOf(),t+=Ge-$e(t,Ge)-1;break;case"second":t=this._d.valueOf(),t+=It-$e(t,It)-1;break}return this._d.setTime(t),c.updateOffset(this,!0),this}function Hu(){return this._d.valueOf()-(this._offset||0)*6e4}function Au(){return Math.floor(this.valueOf()/1e3)}function Lu(){return new Date(this.valueOf())}function Ru(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Cu(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function Iu(){return this.isValid()?this.toISOString():null}function Bu(){return Ur(this)}function Yu(){return be({},p(this))}function Fu(){return p(this).overflow}function Uu(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}y("N",0,0,"eraAbbr");y("NN",0,0,"eraAbbr");y("NNN",0,0,"eraAbbr");y("NNNN",0,0,"eraName");y("NNNNN",0,0,"eraNarrow");y("y",["y",1],"yo","eraYear");y("y",["yy",2],0,"eraYear");y("y",["yyy",3],0,"eraYear");y("y",["yyyy",4],0,"eraYear");d("N",nn);d("NN",nn);d("NNN",nn);d("NNNN",Qu);d("NNNNN",Ku);M(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){var s=r._locale.erasParse(e,n,r._strict);s?p(r).era=s:p(r).invalidEra=e});d("y",Je);d("yy",Je);d("yyy",Je);d("yyyy",Je);d("yo",el);M(["y","yy","yyy","yyyy"],F);M(["yo"],function(e,t,r,n){var s;r._locale._eraYearOrdinalRegex&&(s=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[F]=r._locale.eraYearOrdinalParse(e,s):t[F]=parseInt(e,10)});function Gu(e,t){var r,n,s,i=this._eras||ge("en")._eras;for(r=0,n=i.length;r<n;++r){switch(typeof i[r].since){case"string":s=c(i[r].since).startOf("day"),i[r].since=s.valueOf();break}switch(typeof i[r].until){case"undefined":i[r].until=1/0;break;case"string":s=c(i[r].until).startOf("day").valueOf(),i[r].until=s.valueOf();break}}return i}function $u(e,t,r){var n,s,i=this.eras(),a,o,l;for(e=e.toUpperCase(),n=0,s=i.length;n<s;++n)if(a=i[n].name.toUpperCase(),o=i[n].abbr.toUpperCase(),l=i[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return i[n];break;case"NNNN":if(a===e)return i[n];break;case"NNNNN":if(l===e)return i[n];break}else if([a,o,l].indexOf(e)>=0)return i[n]}function Wu(e,t){var r=e.since<=e.until?1:-1;return t===void 0?c(e.since).year():c(e.since).year()+(t-e.offset)*r}function ju(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].name;return""}function Vu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].narrow;return""}function zu(){var e,t,r,n=this.localeData().eras();for(e=0,t=n.length;e<t;++e)if(r=this.clone().startOf("day").valueOf(),n[e].since<=r&&r<=n[e].until||n[e].until<=r&&r<=n[e].since)return n[e].abbr;return""}function Zu(){var e,t,r,n,s=this.localeData().eras();for(e=0,t=s.length;e<t;++e)if(r=s[e].since<=s[e].until?1:-1,n=this.clone().startOf("day").valueOf(),s[e].since<=n&&n<=s[e].until||s[e].until<=n&&n<=s[e].since)return(this.year()-c(s[e].since).year())*r+s[e].offset;return this.year()}function Xu(e){return E(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex}function qu(e){return E(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex}function Ju(e){return E(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex}function nn(e,t){return t.erasAbbrRegex(e)}function Qu(e,t){return t.erasNameRegex(e)}function Ku(e,t){return t.erasNarrowRegex(e)}function el(e,t){return t._eraYearOrdinalRegex||Je}function sn(){var e=[],t=[],r=[],n=[],s,i,a=this.eras();for(s=0,i=a.length;s<i;++s)t.push(V(a[s].name)),e.push(V(a[s].abbr)),r.push(V(a[s].narrow)),n.push(V(a[s].name)),n.push(V(a[s].abbr)),n.push(V(a[s].narrow));this._erasRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}y(0,["gg",2],0,function(){return this.weekYear()%100});y(0,["GG",2],0,function(){return this.isoWeekYear()%100});function tr(e,t){y(0,[e,e.length],0,t)}tr("gggg","weekYear");tr("ggggg","weekYear");tr("GGGG","isoWeekYear");tr("GGGGG","isoWeekYear");U("weekYear","gg");U("isoWeekYear","GG");G("weekYear",1);G("isoWeekYear",1);d("G",qt);d("g",qt);d("GG",N,Z);d("gg",N,Z);d("GGGG",zr,Vr);d("gggg",zr,Vr);d("GGGGG",Xt,zt);d("ggggg",Xt,zt);vt(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=v(e)});vt(["gg","GG"],function(e,t,r,n){t[n]=c.parseTwoDigitYear(e)});function tl(e){return Cs.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function rl(e){return Cs.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function nl(){return _e(this.year(),1,4)}function sl(){return _e(this.isoWeekYear(),1,4)}function il(){var e=this.localeData()._week;return _e(this.year(),e.dow,e.doy)}function al(){var e=this.localeData()._week;return _e(this.weekYear(),e.dow,e.doy)}function Cs(e,t,r,n,s){var i;return e==null?ct(this,n,s).year:(i=_e(e,n,s),t>i&&(t=i),ol.call(this,e,t,r,n,s))}function ol(e,t,r,n,s){var i=_s(e,t,r,n,s),a=ft(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}y("Q",0,"Qo","quarter");U("quarter","Q");G("quarter",7);d("Q",is);M("Q",function(e,t){t[de]=(v(e)-1)*3});function ul(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}y("D",["DD",2],"Do","date");U("date","D");G("date",9);d("D",N);d("DD",N,Z);d("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});M(["D","DD"],ie);M("Do",function(e,t){t[ie]=v(e.match(N)[0])});var Is=qe("Date",!0);y("DDD",["DDDD",3],"DDDo","dayOfYear");U("dayOfYear","DDD");G("dayOfYear",4);d("DDD",Zt);d("DDDD",as);M(["DDD","DDDD"],function(e,t,r){r._dayOfYear=v(e)});function ll(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}y("m",["mm",2],0,"minute");U("minute","m");G("minute",14);d("m",N);d("mm",N,Z);M(["m","mm"],ee);var hl=qe("Minutes",!1);y("s",["ss",2],0,"second");U("second","s");G("second",15);d("s",N);d("ss",N,Z);M(["s","ss"],me);var fl=qe("Seconds",!1);y("S",0,0,function(){return~~(this.millisecond()/100)});y(0,["SS",2],0,function(){return~~(this.millisecond()/10)});y(0,["SSS",3],0,"millisecond");y(0,["SSSS",4],0,function(){return this.millisecond()*10});y(0,["SSSSS",5],0,function(){return this.millisecond()*100});y(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});y(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});y(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});y(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});U("millisecond","ms");G("millisecond",16);d("S",Zt,is);d("SS",Zt,Z);d("SSS",Zt,as);var ve,Bs;for(ve="SSSS";ve.length<=9;ve+="S")d(ve,Je);function cl(e,t){t[Me]=v(("0."+e)*1e3)}for(ve="S";ve.length<=9;ve+="S")M(ve,cl);Bs=qe("Milliseconds",!1);y("z",0,0,"zoneAbbr");y("zz",0,0,"zoneName");function dl(){return this._isUTC?"UTC":""}function ml(){return this._isUTC?"Coordinated Universal Time":""}var h=pt.prototype;h.add=au;h.calendar=du;h.clone=mu;h.diff=Su;h.endOf=ku;h.format=Tu;h.from=Mu;h.fromNow=Ou;h.to=Du;h.toNow=Pu;h.get=_a;h.invalidAt=Fu;h.isAfter=_u;h.isBefore=yu;h.isBetween=gu;h.isSame=pu;h.isSameOrAfter=bu;h.isSameOrBefore=vu;h.isValid=Bu;h.lang=ks;h.locale=Ns;h.localeData=Hs;h.max=Bo;h.min=Io;h.parsingFlags=Yu;h.set=ya;h.startOf=Nu;h.subtract=ou;h.toArray=Ru;h.toObject=Cu;h.toDate=Lu;h.toISOString=xu;h.inspect=Eu;typeof Symbol!="undefined"&&Symbol.for!=null&&(h[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});h.toJSON=Iu;h.toString=wu;h.unix=Au;h.valueOf=Hu;h.creationData=Uu;h.eraName=ju;h.eraNarrow=Vu;h.eraAbbr=zu;h.eraYear=Zu;h.year=ms;h.isLeapYear=Ra;h.weekYear=tl;h.isoWeekYear=rl;h.quarter=h.quarters=ul;h.month=cs;h.daysInMonth=Ha;h.week=h.weeks=Ua;h.isoWeek=h.isoWeeks=Ga;h.weeksInYear=il;h.weeksInWeekYear=al;h.isoWeeksInYear=nl;h.isoWeeksInISOWeekYear=sl;h.date=Is;h.day=h.days=to;h.weekday=ro;h.isoWeekday=no;h.dayOfYear=ll;h.hour=h.hours=ho;h.minute=h.minutes=hl;h.second=h.seconds=fl;h.millisecond=h.milliseconds=Bs;h.utcOffset=zo;h.utc=Xo;h.local=qo;h.parseZone=Jo;h.hasAlignedHourOffset=Qo;h.isDST=Ko;h.isLocal=tu;h.isUtcOffset=ru;h.isUtc=Ms;h.isUTC=Ms;h.zoneAbbr=dl;h.zoneName=ml;h.dates=Q("dates accessor is deprecated. Use date instead.",Is);h.months=Q("months accessor is deprecated. Use month instead",cs);h.years=Q("years accessor is deprecated. Use year instead",ms);h.zone=Q("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Zo);h.isDSTShifted=Q("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",eu);function _l(e){return P(e*1e3)}function yl(){return P.apply(null,arguments).parseZone()}function Ys(e){return e}var T=$r.prototype;T.calendar=ta;T.longDateFormat=ia;T.invalidDate=oa;T.ordinal=ha;T.preparse=Ys;T.postformat=Ys;T.relativeTime=ca;T.pastFuture=da;T.set=Ki;T.eras=Gu;T.erasParse=$u;T.erasConvertYear=Wu;T.erasAbbrRegex=qu;T.erasNameRegex=Xu;T.erasNarrowRegex=Ju;T.months=Da;T.monthsShort=Pa;T.monthsParse=ka;T.monthsRegex=La;T.monthsShortRegex=Aa;T.week=Ia;T.firstDayOfYear=Fa;T.firstDayOfWeek=Ya;T.weekdays=qa;T.weekdaysMin=Qa;T.weekdaysShort=Ja;T.weekdaysParse=eo;T.weekdaysRegex=so;T.weekdaysShortRegex=io;T.weekdaysMinRegex=ao;T.isPM=uo;T.meridiem=fo;function Yt(e,t,r,n){var s=ge(),i=ue().set(n,t);return s[r](i,e)}function Fs(e,t,r){if(ye(e)&&(t=e,e=void 0),e=e||"",t!=null)return Yt(e,t,r,"month");var n,s=[];for(n=0;n<12;n++)s[n]=Yt(e,n,r,"month");return s}function an(e,t,r,n){typeof e=="boolean"?(ye(t)&&(r=t,t=void 0),t=t||""):(t=e,r=t,e=!1,ye(t)&&(r=t,t=void 0),t=t||"");var s=ge(),i=e?s._week.dow:0,a,o=[];if(r!=null)return Yt(t,(r+i)%7,n,"day");for(a=0;a<7;a++)o[a]=Yt(t,(a+i)%7,n,"day");return o}function gl(e,t){return Fs(e,t,"months")}function pl(e,t){return Fs(e,t,"monthsShort")}function bl(e,t,r){return an(e,t,r,"weekdays")}function vl(e,t,r){return an(e,t,r,"weekdaysShort")}function Sl(e,t,r){return an(e,t,r,"weekdaysMin")}we("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(e){var t=e%10,r=v(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+r}});c.lang=Q("moment.lang is deprecated. Use moment.locale instead.",we);c.langData=Q("moment.langData is deprecated. Use moment.localeData instead.",ge);var fe=Math.abs;function wl(){var e=this._data;return this._milliseconds=fe(this._milliseconds),this._days=fe(this._days),this._months=fe(this._months),e.milliseconds=fe(e.milliseconds),e.seconds=fe(e.seconds),e.minutes=fe(e.minutes),e.hours=fe(e.hours),e.months=fe(e.months),e.years=fe(e.years),this}function Us(e,t,r,n){var s=ne(t,r);return e._milliseconds+=n*s._milliseconds,e._days+=n*s._days,e._months+=n*s._months,e._bubble()}function xl(e,t){return Us(this,e,t,1)}function El(e,t){return Us(this,e,t,-1)}function vn(e){return e<0?Math.floor(e):Math.ceil(e)}function Tl(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data,s,i,a,o,l;return e>=0&&t>=0&&r>=0||e<=0&&t<=0&&r<=0||(e+=vn(Pr(r)+t)*864e5,t=0,r=0),n.milliseconds=e%1e3,s=J(e/1e3),n.seconds=s%60,i=J(s/60),n.minutes=i%60,a=J(i/60),n.hours=a%24,t+=J(a/24),l=J(Gs(t)),r+=l,t-=vn(Pr(l)),o=J(r/12),r%=12,n.days=t,n.months=r,n.years=o,this}function Gs(e){return e*4800/146097}function Pr(e){return e*146097/4800}function Ml(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if(e=K(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+n/864e5,r=this._months+Gs(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(Pr(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return t*24+n/36e5;case"minute":return t*1440+n/6e4;case"second":return t*86400+n/1e3;case"millisecond":return Math.floor(t*864e5)+n;default:throw new Error("Unknown unit "+e)}}function Ol(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+v(this._months/12)*31536e6:NaN}function pe(e){return function(){return this.as(e)}}var Dl=pe("ms"),Pl=pe("s"),Nl=pe("m"),kl=pe("h"),Hl=pe("d"),Al=pe("w"),Ll=pe("M"),Rl=pe("Q"),Cl=pe("y");function Il(){return ne(this)}function Bl(e){return e=K(e),this.isValid()?this[e+"s"]():NaN}function Pe(e){return function(){return this.isValid()?this._data[e]:NaN}}var Yl=Pe("milliseconds"),Fl=Pe("seconds"),Ul=Pe("minutes"),Gl=Pe("hours"),$l=Pe("days"),Wl=Pe("months"),jl=Pe("years");function Vl(){return J(this.days()/7)}var ce=Math.round,Ye={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function zl(e,t,r,n,s){return s.relativeTime(t||1,!!r,e,n)}function Zl(e,t,r,n){var s=ne(e).abs(),i=ce(s.as("s")),a=ce(s.as("m")),o=ce(s.as("h")),l=ce(s.as("d")),u=ce(s.as("M")),f=ce(s.as("w")),m=ce(s.as("y")),_=i<=r.ss&&["s",i]||i<r.s&&["ss",i]||a<=1&&["m"]||a<r.m&&["mm",a]||o<=1&&["h"]||o<r.h&&["hh",o]||l<=1&&["d"]||l<r.d&&["dd",l];return r.w!=null&&(_=_||f<=1&&["w"]||f<r.w&&["ww",f]),_=_||u<=1&&["M"]||u<r.M&&["MM",u]||m<=1&&["y"]||["yy",m],_[2]=t,_[3]=+e>0,_[4]=n,zl.apply(null,_)}function Xl(e){return e===void 0?ce:typeof e=="function"?(ce=e,!0):!1}function ql(e,t){return Ye[e]===void 0?!1:t===void 0?Ye[e]:(Ye[e]=t,e==="s"&&(Ye.ss=t-1),!0)}function Jl(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=Ye,s,i;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(r=e),typeof t=="object"&&(n=Object.assign({},Ye,t),t.s!=null&&t.ss==null&&(n.ss=t.s-1)),s=this.localeData(),i=Zl(this,!r,n,s),r&&(i=s.pastFuture(+this,i)),s.postformat(i)}var dr=Math.abs;function Le(e){return(e>0)-(e<0)||+e}function rr(){if(!this.isValid())return this.localeData().invalidDate();var e=dr(this._milliseconds)/1e3,t=dr(this._days),r=dr(this._months),n,s,i,a,o=this.asSeconds(),l,u,f,m;return o?(n=J(e/60),s=J(n/60),e%=60,n%=60,i=J(r/12),r%=12,a=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=Le(this._months)!==Le(o)?"-":"",f=Le(this._days)!==Le(o)?"-":"",m=Le(this._milliseconds)!==Le(o)?"-":"",l+"P"+(i?u+i+"Y":"")+(r?u+r+"M":"")+(t?f+t+"D":"")+(s||n||e?"T":"")+(s?m+s+"H":"")+(n?m+n+"M":"")+(e?m+a+"S":"")):"P0D"}var x=er.prototype;x.isValid=$o;x.abs=wl;x.add=xl;x.subtract=El;x.as=Ml;x.asMilliseconds=Dl;x.asSeconds=Pl;x.asMinutes=Nl;x.asHours=kl;x.asDays=Hl;x.asWeeks=Al;x.asMonths=Ll;x.asQuarters=Rl;x.asYears=Cl;x.valueOf=Ol;x._bubble=Tl;x.clone=Il;x.get=Bl;x.milliseconds=Yl;x.seconds=Fl;x.minutes=Ul;x.hours=Gl;x.days=$l;x.weeks=Vl;x.months=Wl;x.years=jl;x.humanize=Jl;x.toISOString=rr;x.toString=rr;x.toJSON=rr;x.locale=Ns;x.localeData=Hs;x.toIsoString=Q("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",rr);x.lang=ks;y("X",0,0,"unix");y("x",0,0,"valueOf");d("x",qt);d("X",pa);M("X",function(e,t,r){r._d=new Date(parseFloat(e)*1e3)});M("x",function(e,t,r){r._d=new Date(v(e))});//! moment.js
|
|
10
10
|
c.version="2.29.4";Ji(P);c.fn=h;c.min=Yo;c.max=Fo;c.now=Uo;c.utc=ue;c.unix=_l;c.months=gl;c.isDate=gt;c.locale=we;c.invalid=jt;c.duration=ne;c.isMoment=re;c.weekdays=bl;c.parseZone=yl;c.localeData=ge;c.isDuration=Dt;c.monthsShort=pl;c.weekdaysMin=Sl;c.defineLocale=Jr;c.updateLocale=yo;c.locales=go;c.weekdaysShort=vl;c.normalizeUnits=K;c.relativeTimeRounding=Xl;c.relativeTimeThreshold=ql;c.calendarFormat=cu;c.prototype=h;c.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 Re=[];function Ql(e,t){return{subscribe:nr(e,t).subscribe}}function nr(e,t=z){let r;const n=new Set;function s(o){if(Yr(e,o)&&(e=o,r)){const l=!Re.length;for(const u of n)u[1](),Re.push(u,e);if(l){for(let u=0;u<Re.length;u+=2)Re[u][0](Re[u+1]);Re.length=0}}}function i(o){s(o(e))}function a(o,l=z){const u=[o,l];return n.add(u),n.size===1&&(r=t(s,i)||z),o(e),()=>{n.delete(u),n.size===0&&r&&(r(),r=null)}}return{set:s,update:i,subscribe:a}}function Qe(e,t,r){const n=!Array.isArray(e),s=n?[e]:e;if(!s.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const i=t.length<2;return Ql(r,(a,o)=>{let l=!1;const u=[];let f=0,m=z;const _=()=>{if(f)return;m();const D=t(n?u[0]:u,a,o);i?a(D):m=yt(D)?D:z},O=s.map((D,R)=>Un(D,W=>{u[R]=W,f&=~(1<<R),l&&_()},()=>{f|=1<<R}));return l=!0,_(),function(){Ze(O),m(),l=!1}})}var Kl=function(t){return eh(t)&&!th(t)};function eh(e){return!!e&&typeof e=="object"}function th(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sh(e)}var rh=typeof Symbol=="function"&&Symbol.for,nh=rh?Symbol.for("react.element"):60103;function sh(e){return e.$$typeof===nh}function ih(e){return Array.isArray(e)?[]:{}}function mt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?We(ih(e),e,t):e}function ah(e,t,r){return e.concat(t).map(function(n){return mt(n,r)})}function oh(e,t){if(!t.customMerge)return We;var r=t.customMerge(e);return typeof r=="function"?r:We}function uh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Sn(e){return Object.keys(e).concat(uh(e))}function $s(e,t){try{return t in e}catch(r){return!1}}function lh(e,t){return $s(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function hh(e,t,r){var n={};return r.isMergeableObject(e)&&Sn(e).forEach(function(s){n[s]=mt(e[s],r)}),Sn(t).forEach(function(s){lh(e,s)||($s(e,s)&&r.isMergeableObject(t[s])?n[s]=oh(s,r)(e[s],t[s],r):n[s]=mt(t[s],r))}),n}function We(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||ah,r.isMergeableObject=r.isMergeableObject||Kl,r.cloneUnlessOtherwiseSpecified=mt;var n=Array.isArray(t),s=Array.isArray(e),i=n===s;return i?n?r.arrayMerge(e,t,r):hh(e,t,r):mt(t,r)}We.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,s){return We(n,s,r)},{})};var fh=We,ch=fh;const dh=Xi(ch);var Nr=function(e,t){return Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Nr(e,t)};function sr(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Nr(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var ae=function(){return ae=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},ae.apply(this,arguments)};function mh(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]]);return r}function mr(e,t,r){if(r||arguments.length===2)for(var n=0,s=t.length,i;n<s;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))}function _r(e,t){var r=t&&t.cache?t.cache:Sh,n=t&&t.serializer?t.serializer:bh,s=t&&t.strategy?t.strategy:gh;return s(e,{cache:r,serializer:n})}function _h(e){return e==null||typeof e=="number"||typeof e=="boolean"}function yh(e,t,r,n){var s=_h(n)?n:r(n),i=t.get(s);return typeof i=="undefined"&&(i=e.call(this,n),t.set(s,i)),i}function Ws(e,t,r){var n=Array.prototype.slice.call(arguments,3),s=r(n),i=t.get(s);return typeof i=="undefined"&&(i=e.apply(this,n),t.set(s,i)),i}function js(e,t,r,n,s){return r.bind(t,e,n,s)}function gh(e,t){var r=e.length===1?yh:Ws;return js(e,this,r,t.cache.create(),t.serializer)}function ph(e,t){return js(e,this,Ws,t.cache.create(),t.serializer)}var bh=function(){return JSON.stringify(arguments)},vh=function(){function e(){this.cache=Object.create(null)}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r},e}(),Sh={create:function(){return new vh}},yr={variadic:ph},Ft=function(){return Ft=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ft.apply(this,arguments)};var S;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(S||(S={}));var H;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(H||(H={}));var je;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(je||(je={}));function wn(e){return e.type===H.literal}function wh(e){return e.type===H.argument}function Vs(e){return e.type===H.number}function zs(e){return e.type===H.date}function Zs(e){return e.type===H.time}function Xs(e){return e.type===H.select}function qs(e){return e.type===H.plural}function xh(e){return e.type===H.pound}function Js(e){return e.type===H.tag}function Qs(e){return!!(e&&typeof e=="object"&&e.type===je.number)}function kr(e){return!!(e&&typeof e=="object"&&e.type===je.dateTime)}var Ks=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Eh=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Th(e){var t={};return e.replace(Eh,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var A=function(){return A=Object.assign||function(t){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},A.apply(this,arguments)};var Mh=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Oh(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Mh).filter(function(_){return _.length>0}),r=[],n=0,s=t;n<s.length;n++){var i=s[n],a=i.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],l=a.slice(1),u=0,f=l;u<f.length;u++){var m=f[u];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:l})}return r}function Dh(e){return e.replace(/^(.*?)-/,"")}var xn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,ei=/^(@+)?(\+|#+)?[rs]?$/g,Ph=/(\*)(0+)|(#+)(0+)|(0+)/g,ti=/^(0+)$/;function En(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(ei,function(r,n,s){return typeof s!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):s==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof s=="string"?s.length:0)),""}),t}function ri(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Nh(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!ti.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Tn(e){var t={},r=ri(e);return r||t}function kh(e){for(var t={},r=0,n=e;r<n.length;r++){var s=n[r];switch(s.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=s.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Dh(s.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=A(A(A({},t),{notation:"scientific"}),s.options.reduce(function(l,u){return A(A({},l),Tn(u))},{}));continue;case"engineering":t=A(A(A({},t),{notation:"engineering"}),s.options.reduce(function(l,u){return A(A({},l),Tn(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(s.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(s.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");s.options[0].replace(Ph,function(l,u,f,m,_,O){if(u)t.minimumIntegerDigits=f.length;else{if(m&&_)throw new Error("We currently do not support maximum integer digits");if(O)throw new Error("We currently do not support exact integer digits")}return""});continue}if(ti.test(s.stem)){t.minimumIntegerDigits=s.stem.length;continue}if(xn.test(s.stem)){if(s.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");s.stem.replace(xn,function(l,u,f,m,_,O){return f==="*"?t.minimumFractionDigits=u.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:_&&O?(t.minimumFractionDigits=_.length,t.maximumFractionDigits=_.length+O.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var i=s.options[0];i==="w"?t=A(A({},t),{trailingZeroDisplay:"stripIfInteger"}):i&&(t=A(A({},t),En(i)));continue}if(ei.test(s.stem)){t=A(A({},t),En(s.stem));continue}var a=ri(s.stem);a&&(t=A(A({},t),a));var o=Nh(s.stem);o&&(t=A(A({},t),o))}return t}var Tt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function Hh(e,t){for(var r="",n=0;n<e.length;n++){var s=e.charAt(n);if(s==="j"){for(var i=0;n+1<e.length&&e.charAt(n+1)===s;)i++,n++;var a=1+(i&1),o=i<2?1:3+(i>>1),l="a",u=Ah(t);for((u=="H"||u=="k")&&(o=0);o-- >0;)r+=l;for(;a-- >0;)r=u+r}else s==="J"?r+="H":r+=s}return r}function Ah(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var s=Tt[n||""]||Tt[r||""]||Tt["".concat(r,"-001")]||Tt["001"];return s[0]}var gr,Lh=new RegExp("^".concat(Ks.source,"*")),Rh=new RegExp("".concat(Ks.source,"*$"));function w(e,t){return{start:e,end:t}}var Ch=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ih=!!String.fromCodePoint,Bh=!!Object.fromEntries,Yh=!!String.prototype.codePointAt,Fh=!!String.prototype.trimStart,Uh=!!String.prototype.trimEnd,Gh=!!Number.isSafeInteger,$h=Gh?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Hr=!0;try{var Wh=si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Hr=((gr=Wh.exec("a"))===null||gr===void 0?void 0:gr[0])==="a"}catch(e){Hr=!1}var Mn=Ch?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ar=Ih?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",s=t.length,i=0,a;s>i;){if(a=t[i++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},On=Bh?Object.fromEntries:function(t){for(var r={},n=0,s=t;n<s.length;n++){var i=s[n],a=i[0],o=i[1];r[a]=o}return r},ni=Yh?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var s=t.charCodeAt(r),i;return s<55296||s>56319||r+1===n||(i=t.charCodeAt(r+1))<56320||i>57343?s:(s-55296<<10)+(i-56320)+65536}},jh=Fh?function(t){return t.trimStart()}:function(t){return t.replace(Lh,"")},Vh=Uh?function(t){return t.trimEnd()}:function(t){return t.replace(Rh,"")};function si(e,t){return new RegExp(e,t)}var Lr;if(Hr){var Dn=si("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Lr=function(t,r){var n;Dn.lastIndex=r;var s=Dn.exec(t);return(n=s[1])!==null&&n!==void 0?n:""}}else Lr=function(t,r){for(var n=[];;){var s=ni(t,r);if(s===void 0||ii(s)||qh(s))break;n.push(s),r+=s>=65536?2:1}return Ar.apply(void 0,n)};var zh=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var s=[];!this.isEOF();){var i=this.char();if(i===123){var a=this.parseArgument(t,n);if(a.err)return a;s.push(a.val)}else{if(i===125&&t>0)break;if(i===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),s.push({type:H.pound,location:w(o,this.clonePosition())})}else if(i===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(i===60&&!this.ignoreTag&&Rr(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;s.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;s.push(a.val)}}}return{val:s,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var s=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:H.literal,value:"<".concat(s,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(t+1,r,!0);if(i.err)return i;var a=i.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Rr(this.char()))return this.error(S.INVALID_TAG,w(o,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return s!==u?this.error(S.UNMATCHED_CLOSING_TAG,w(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:s,children:a,location:w(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,w(o,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Xh(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),s="";;){var i=this.tryParseQuote(r);if(i){s+=i;continue}var a=this.tryParseUnquoted(t,r);if(a){s+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){s+=o;continue}break}var l=w(n,this.clonePosition());return{val:{type:H.literal,value:s,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Zh(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ar.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ar(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,w(n,this.clonePosition()));var s=this.parseIdentifierIfPossible().value;if(!s)return this.error(S.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:s,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,s,n);default:return this.error(S.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Lr(this.message,r),s=r+n.length;this.bumpTo(s);var i=this.clonePosition(),a=w(t,i);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,s){var i,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(o){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,w(a,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var f=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var _=Vh(m.val);if(_.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var O=w(f,this.clonePosition());u={style:_,styleLocation:O}}var D=this.tryParseArgumentClose(s);if(D.err)return D;var R=w(s,this.clonePosition());if(u&&Mn(u==null?void 0:u.style,"::",0)){var W=jh(u.style.slice(2));if(o==="number"){var m=this.parseNumberSkeletonFromString(W,u.styleLocation);return m.err?m:{val:{type:H.number,value:n,location:R,style:m.val},err:null}}else{if(W.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,R);var se=W;this.locale&&(se=Hh(W,this.locale));var _={type:je.dateTime,pattern:se,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?Th(se):{}},Y=o==="date"?H.date:H.time;return{val:{type:Y,value:n,location:R,style:_},err:null}}}return{val:{type:o==="number"?H.number:o==="date"?H.date:H.time,value:n,location:R,style:(i=u==null?void 0:u.style)!==null&&i!==void 0?i:null},err:null}}case"plural":case"selectordinal":case"select":{var X=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,w(X,Ft({},X)));this.bumpSpace();var he=this.parseIdentifierIfPossible(),C=0;if(o!=="select"&&he.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),he=this.parseIdentifierIfPossible(),C=m.val}var ke=this.tryParsePluralOrSelectOptions(t,o,r,he);if(ke.err)return ke;var D=this.tryParseArgumentClose(s);if(D.err)return D;var rt=w(s,this.clonePosition());return o==="select"?{val:{type:H.select,value:n,options:On(ke.val),location:rt},err:null}:{val:{type:H.plural,value:n,options:On(ke.val),offset:C,pluralType:o==="plural"?"cardinal":"ordinal",location:rt},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,w(a,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,w(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var s=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(s,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Oh(t)}catch(s){return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:je.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?kh(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,s){for(var i,a=!1,o=[],l=new Set,u=s.value,f=s.location;;){if(u.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var _=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(_.err)return _;f=w(m,this.clonePosition()),u=this.message.slice(m.offset,this.offset())}else break}if(l.has(u))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,f);u==="other"&&(a=!0),this.bumpSpace();var O=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var D=this.parseMessage(t+1,r,n);if(D.err)return D;var R=this.tryParseArgumentClose(O);if(R.err)return R;o.push([u,{value:D.val,location:w(O,this.clonePosition())}]),l.add(u),this.bumpSpace(),i=this.parseIdentifierIfPossible(),u=i.value,f=i.location}return o.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,s=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)i=!0,a=a*10+(o-48),this.bump();else break}var l=w(s,this.clonePosition());return i?(a*=n,$h(a)?{val:a,err:null}:this.error(r,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=ni(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Mn(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&ii(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Rr(e){return e>=97&&e<=122||e>=65&&e<=90}function Zh(e){return Rr(e)||e===47}function Xh(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ii(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function qh(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Cr(e){e.forEach(function(t){if(delete t.location,Xs(t)||qs(t))for(var r in t.options)delete t.options[r].location,Cr(t.options[r].value);else Vs(t)&&Qs(t.style)||(zs(t)||Zs(t))&&kr(t.style)?delete t.style.location:Js(t)&&Cr(t.children)})}function Jh(e,t){t===void 0&&(t={}),t=Ft({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new zh(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Cr(r.val),r.val}var Ve;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ve||(Ve={}));var ir=function(e){sr(t,e);function t(r,n,s){var i=e.call(this,r)||this;return i.code=n,i.originalMessage=s,i}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Pn=function(e){sr(t,e);function t(r,n,s,i){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(s).join('", "'),'"'),Ve.INVALID_VALUE,i)||this}return t}(ir),Qh=function(e){sr(t,e);function t(r,n,s){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Ve.INVALID_VALUE,s)||this}return t}(ir),Kh=function(e){sr(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Ve.MISSING_VALUE,n)||this}return t}(ir),$;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})($||($={}));function ef(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==$.literal||r.type!==$.literal?t.push(r):n.value+=r.value,t},[])}function tf(e){return typeof e=="function"}function Nt(e,t,r,n,s,i,a){if(e.length===1&&wn(e[0]))return[{type:$.literal,value:e[0].value}];for(var o=[],l=0,u=e;l<u.length;l++){var f=u[l];if(wn(f)){o.push({type:$.literal,value:f.value});continue}if(xh(f)){typeof i=="number"&&o.push({type:$.literal,value:r.getNumberFormat(t).format(i)});continue}var m=f.value;if(!(s&&m in s))throw new Kh(m,a);var _=s[m];if(wh(f)){(!_||typeof _=="string"||typeof _=="number")&&(_=typeof _=="string"||typeof _=="number"?String(_):""),o.push({type:typeof _=="string"?$.literal:$.object,value:_});continue}if(zs(f)){var O=typeof f.style=="string"?n.date[f.style]:kr(f.style)?f.style.parsedOptions:void 0;o.push({type:$.literal,value:r.getDateTimeFormat(t,O).format(_)});continue}if(Zs(f)){var O=typeof f.style=="string"?n.time[f.style]:kr(f.style)?f.style.parsedOptions:n.time.medium;o.push({type:$.literal,value:r.getDateTimeFormat(t,O).format(_)});continue}if(Vs(f)){var O=typeof f.style=="string"?n.number[f.style]:Qs(f.style)?f.style.parsedOptions:void 0;O&&O.scale&&(_=_*(O.scale||1)),o.push({type:$.literal,value:r.getNumberFormat(t,O).format(_)});continue}if(Js(f)){var D=f.children,R=f.value,W=s[R];if(!tf(W))throw new Qh(R,"function",a);var se=Nt(D,t,r,n,s,i),Y=W(se.map(function(C){return C.value}));Array.isArray(Y)||(Y=[Y]),o.push.apply(o,Y.map(function(C){return{type:typeof C=="string"?$.literal:$.object,value:C}}))}if(Xs(f)){var X=f.options[_]||f.options.other;if(!X)throw new Pn(f.value,_,Object.keys(f.options),a);o.push.apply(o,Nt(X.value,t,r,n,s));continue}if(qs(f)){var X=f.options["=".concat(_)];if(!X){if(!Intl.PluralRules)throw new ir(`Intl.PluralRules is not available in this environment.
|
|
11
11
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
12
|
-
`,Ve.MISSING_INTL_API,a);var he=r.getPluralRules(t,{type:f.pluralType}).select(_-(f.offset||0));X=f.options[he]||f.options.other}if(!X)throw new Pn(f.value,_,Object.keys(f.options),a);o.push.apply(o,Nt(X.value,t,r,n,s,_-(f.offset||0)));continue}}return ef(o)}function rf(e,t){return t?ae(ae(ae({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ae(ae({},e[n]),t[n]||{}),r},{})):e}function nf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=rf(e[n],t[n]),r},ae({},e)):e}function pr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function sf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:pr(e.number),strategy:yr.variadic}),getDateTimeFormat:_r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:pr(e.dateTime),strategy:yr.variadic}),getPluralRules:_r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,mr([void 0],r,!1)))},{cache:pr(e.pluralRules),strategy:yr.variadic})}}var af=function(){function e(t,r,n,s){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=i.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(m,_){return!m.length||_.type!==$.literal||typeof m[m.length-1]!="string"?m.push(_.value):m[m.length-1]+=_.value,m},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Nt(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=s||{};a.formatters;var o=mh(a,["formatters"]);this.ast=e.__parse(t,ae(ae({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=nf(e.formats,n),this.formatters=s&&s.formatters||sf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Jh,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function of(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let s=0;s<r.length;s++)if(typeof n=="object"){if(s>0){const i=r.slice(s,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[s]]}else n=void 0;return n}const Se={},uf=(e,t,r)=>r&&(t in Se||(Se[t]={}),e in Se[t]||(Se[t][e]=r),r),ai=(e,t)=>{if(t==null)return;if(t in Se&&e in Se[t])return Se[t][e];const r=ar(t);for(let n=0;n<r.length;n++){const s=r[n],i=hf(s,e);if(i)return uf(e,t,i)}};let on;const Ke=nr({});function lf(e){return on[e]||null}function oi(e){return e in on}function hf(e,t){if(!oi(e))return null;const r=lf(e);return of(r,t)}function ff(e){if(e==null)return;const t=ar(e);for(let r=0;r<t.length;r++){const n=t[r];if(oi(n))return n}}function un(e,...t){delete Se[e],Ke.update(r=>(r[e]=dh.all([r[e]||{},...t]),r))}Qe([Ke],([e])=>Object.keys(e));Ke.subscribe(e=>on=e);const kt={};function cf(e,t){kt[e].delete(t),kt[e].size===0&&delete kt[e]}function ui(e){return kt[e]}function df(e){return ar(e).map(t=>{const r=ui(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ir(e){return e==null?!1:ar(e).some(t=>{var r;return(r=ui(t))==null?void 0:r.size})}function mf(e,t){return Promise.all(t.map(n=>(cf(e,n),n().then(s=>s.default||s)))).then(n=>un(e,...n))}const it={};function li(e){if(!Ir(e))return e in it?it[e]:Promise.resolve();const t=df(e);return it[e]=Promise.all(t.map(([r,n])=>mf(r,n))).then(()=>{if(Ir(e))return li(e);delete it[e]}),it[e]}const _f={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},yf={fallbackLocale:null,loadingDelay:200,formats:_f,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},gf=yf;function ze(){return gf}const br=nr(!1);var pf=Object.defineProperty,bf=Object.defineProperties,vf=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,Sf=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,kn=(e,t,r)=>t in e?pf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xf=(e,t)=>{for(var r in t||(t={}))Sf.call(t,r)&&kn(e,r,t[r]);if(Nn)for(var r of Nn(t))wf.call(t,r)&&kn(e,r,t[r]);return e},Ef=(e,t)=>bf(e,vf(t));let Br;const Ut=nr(null);function Hn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ar(e,t=ze().fallbackLocale){const r=Hn(e);return t?[...new Set([...r,...Hn(t)])]:r}function Ne(){return Br!=null?Br:void 0}Ut.subscribe(e=>{Br=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Tf=e=>{if(e&&ff(e)&&Ir(e)){const{loadingDelay:t}=ze();let r;return typeof window!="undefined"&&Ne()!=null&&t?r=window.setTimeout(()=>br.set(!0),t):br.set(!0),li(e).then(()=>{Ut.set(e)}).finally(()=>{clearTimeout(r),br.set(!1)})}return Ut.set(e)},et=Ef(xf({},Ut),{set:Tf}),or=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var Mf=Object.defineProperty,Gt=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,An=(e,t,r)=>t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ln=(e,t)=>{for(var r in t||(t={}))hi.call(t,r)&&An(e,r,t[r]);if(Gt)for(var r of Gt(t))fi.call(t,r)&&An(e,r,t[r]);return e},tt=(e,t)=>{var r={};for(var n in e)hi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&fi.call(e,n)&&(r[n]=e[n]);return r};const _t=(e,t)=>{const{formats:r}=ze();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Of=or(e=>{var t=e,{locale:r,format:n}=t,s=tt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=_t("number",n)),new Intl.NumberFormat(r,s)}),Df=or(e=>{var t=e,{locale:r,format:n}=t,s=tt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=_t("date",n):Object.keys(s).length===0&&(s=_t("date","short")),new Intl.DateTimeFormat(r,s)}),Pf=or(e=>{var t=e,{locale:r,format:n}=t,s=tt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=_t("time",n):Object.keys(s).length===0&&(s=_t("time","short")),new Intl.DateTimeFormat(r,s)}),Nf=(e={})=>{var t=e,{locale:r=Ne()}=t,n=tt(t,["locale"]);return Of(ln({locale:r},n))},kf=(e={})=>{var t=e,{locale:r=Ne()}=t,n=tt(t,["locale"]);return Df(ln({locale:r},n))},Hf=(e={})=>{var t=e,{locale:r=Ne()}=t,n=tt(t,["locale"]);return Pf(ln({locale:r},n))},Af=or((e,t=Ne())=>new af(e,t,ze().formats,{ignoreTag:ze().ignoreTag})),Lf=(e,t={})=>{var r,n,s,i;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=Ne(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ai(e,l);if(!f)f=(i=(s=(n=(r=ze()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?s:u)!=null?i:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let m=f;try{m=Af(f,l).format(o)}catch(_){_ instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,_.message)}return m},Rf=(e,t)=>Hf(t).format(e),Cf=(e,t)=>kf(t).format(e),If=(e,t)=>Nf(t).format(e),Bf=(e,t=Ne())=>ai(e,t),ci=Qe([et,Ke],()=>Lf);Qe([et],()=>Rf);Qe([et],()=>Cf);Qe([et],()=>If);Qe([et,Ke],()=>Bf);function Ln(e,t){un(e,t)}const Rn={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."},"en-us":{nothing:"Nothing to show here."}},Be="__WIDGET_GLOBAL_STYLE_CACHE__";function di(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function mi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const s=document.createElement("style");s.innerHTML=n,e&&e.appendChild(s)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function _i(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Yf(e,t),r;window[Be]||(window[Be]={}),r=Ff(e,t);const i=r.unsubscribe.bind(r),a=()=>{if(window[Be][t]){const o=window[Be][t];o.refCount>1?o.refCount=o.refCount-1:delete window[Be][t]}i()};return r.unsubscribe=a,r}function Yf(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Ff(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),s=window[Be];let i=s[t]&&s[t].sheet;i?s[t].refCount=s[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(r),s[t]={sheet:i,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(i)||(n.adoptedStyleSheets=[...a,i])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-CchbBWHd.cjs")).then(t=>t.CasinoTournamentsThumbnailController_ce).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function Uf(e){$n(e,"svelte-gkejaq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function Cn(e,t,r){const n=e.slice();return n[28]=t[r],n[30]=r,n}function In(e){let t,r=wr(e[16]),n=[];for(let i=0;i<r.length;i+=1)n[i]=Yn(Cn(e,r,i));let s=null;return r.length||(s=Bn(e)),{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=jn(),s&&s.c()},m(i,a){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,a);Xe(i,t,a),s&&s.m(i,a)},p(i,a){if(a&212991){r=wr(i[16]);let o;for(o=0;o<r.length;o+=1){const l=Cn(i,r,o);n[o]?n[o].p(l,a):(n[o]=Yn(l),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length,!r.length&&s?s.p(i,a):r.length?s&&(s.d(1),s=null):(s=Bn(i),s.c(),s.m(t.parentNode,t))}},d(i){i&&xe(t),Wn(n,i),s&&s.d(i)}}}function Bn(e){let t,r=e[17]("nothing")+"",n;return{c(){t=De("p"),n=Wt(r)},m(s,i){Xe(s,t,i),$t(t,n)},p(s,i){i&131072&&r!==(r=s[17]("nothing")+"")&&Vn(n,r)},d(s){s&&xe(t)}}}function Yn(e){let t,r,n,s;return{c(){t=De("casino-tournaments-thumbnail-controller"),b(t,"touridx",e[30]+1),b(t,"userid",e[1]),b(t,"showdetails","true"),b(t,"showslider","false"),b(t,"tournamenturl",r=e[28].href),b(t,"maxwidth",n=e[16].length<=2),b(t,"loginurl",e[5]),b(t,"loginevent",e[3]),b(t,"registerurl",e[6]),b(t,"tournamentinfo",s=e[28]),b(t,"registerevent",e[4]),b(t,"detailsevent",$f),b(t,"clientstyling",e[10]),b(t,"clientstylingurl",e[11]),b(t,"translationurl",e[12]),b(t,"lang",e[8]),b(t,"currency",e[7]),b(t,"keepbrowsercontext",e[9]),b(t,"mbsource",e[13]),b(t,"session",e[0]),b(t,"endpoint",e[2]),b(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
|
|
12
|
+
`,Ve.MISSING_INTL_API,a);var he=r.getPluralRules(t,{type:f.pluralType}).select(_-(f.offset||0));X=f.options[he]||f.options.other}if(!X)throw new Pn(f.value,_,Object.keys(f.options),a);o.push.apply(o,Nt(X.value,t,r,n,s,_-(f.offset||0)));continue}}return ef(o)}function rf(e,t){return t?ae(ae(ae({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=ae(ae({},e[n]),t[n]||{}),r},{})):e}function nf(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=rf(e[n],t[n]),r},ae({},e)):e}function pr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function sf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:_r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:pr(e.number),strategy:yr.variadic}),getDateTimeFormat:_r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,mr([void 0],r,!1)))},{cache:pr(e.dateTime),strategy:yr.variadic}),getPluralRules:_r(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,mr([void 0],r,!1)))},{cache:pr(e.pluralRules),strategy:yr.variadic})}}var af=function(){function e(t,r,n,s){r===void 0&&(r=e.defaultLocale);var i=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=i.formatToParts(l);if(u.length===1)return u[0].value;var f=u.reduce(function(m,_){return!m.length||_.type!==$.literal||typeof m[m.length-1]!="string"?m.push(_.value):m[m.length-1]+=_.value,m},[]);return f.length<=1?f[0]||"":f},this.formatToParts=function(l){return Nt(i.ast,i.locales,i.formatters,i.formats,l,void 0,i.message)},this.resolvedOptions=function(){var l;return{locale:((l=i.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(i.locales)[0]}},this.getAst=function(){return i.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=s||{};a.formatters;var o=mh(a,["formatters"]);this.ast=e.__parse(t,ae(ae({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=nf(e.formats,n),this.formatters=s&&s.formatters||sf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Jh,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function of(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let s=0;s<r.length;s++)if(typeof n=="object"){if(s>0){const i=r.slice(s,r.length).join(".");if(i in n){n=n[i];break}}n=n[r[s]]}else n=void 0;return n}const Se={},uf=(e,t,r)=>r&&(t in Se||(Se[t]={}),e in Se[t]||(Se[t][e]=r),r),ai=(e,t)=>{if(t==null)return;if(t in Se&&e in Se[t])return Se[t][e];const r=ar(t);for(let n=0;n<r.length;n++){const s=r[n],i=hf(s,e);if(i)return uf(e,t,i)}};let on;const Ke=nr({});function lf(e){return on[e]||null}function oi(e){return e in on}function hf(e,t){if(!oi(e))return null;const r=lf(e);return of(r,t)}function ff(e){if(e==null)return;const t=ar(e);for(let r=0;r<t.length;r++){const n=t[r];if(oi(n))return n}}function un(e,...t){delete Se[e],Ke.update(r=>(r[e]=dh.all([r[e]||{},...t]),r))}Qe([Ke],([e])=>Object.keys(e));Ke.subscribe(e=>on=e);const kt={};function cf(e,t){kt[e].delete(t),kt[e].size===0&&delete kt[e]}function ui(e){return kt[e]}function df(e){return ar(e).map(t=>{const r=ui(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Ir(e){return e==null?!1:ar(e).some(t=>{var r;return(r=ui(t))==null?void 0:r.size})}function mf(e,t){return Promise.all(t.map(n=>(cf(e,n),n().then(s=>s.default||s)))).then(n=>un(e,...n))}const it={};function li(e){if(!Ir(e))return e in it?it[e]:Promise.resolve();const t=df(e);return it[e]=Promise.all(t.map(([r,n])=>mf(r,n))).then(()=>{if(Ir(e))return li(e);delete it[e]}),it[e]}const _f={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},yf={fallbackLocale:null,loadingDelay:200,formats:_f,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},gf=yf;function ze(){return gf}const br=nr(!1);var pf=Object.defineProperty,bf=Object.defineProperties,vf=Object.getOwnPropertyDescriptors,Nn=Object.getOwnPropertySymbols,Sf=Object.prototype.hasOwnProperty,wf=Object.prototype.propertyIsEnumerable,kn=(e,t,r)=>t in e?pf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,xf=(e,t)=>{for(var r in t||(t={}))Sf.call(t,r)&&kn(e,r,t[r]);if(Nn)for(var r of Nn(t))wf.call(t,r)&&kn(e,r,t[r]);return e},Ef=(e,t)=>bf(e,vf(t));let Br;const Ut=nr(null);function Hn(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ar(e,t=ze().fallbackLocale){const r=Hn(e);return t?[...new Set([...r,...Hn(t)])]:r}function Ne(){return Br!=null?Br:void 0}Ut.subscribe(e=>{Br=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const Tf=e=>{if(e&&ff(e)&&Ir(e)){const{loadingDelay:t}=ze();let r;return typeof window!="undefined"&&Ne()!=null&&t?r=window.setTimeout(()=>br.set(!0),t):br.set(!0),li(e).then(()=>{Ut.set(e)}).finally(()=>{clearTimeout(r),br.set(!1)})}return Ut.set(e)},et=Ef(xf({},Ut),{set:Tf}),or=e=>{const t=Object.create(null);return n=>{const s=JSON.stringify(n);return s in t?t[s]:t[s]=e(n)}};var Mf=Object.defineProperty,Gt=Object.getOwnPropertySymbols,hi=Object.prototype.hasOwnProperty,fi=Object.prototype.propertyIsEnumerable,An=(e,t,r)=>t in e?Mf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ln=(e,t)=>{for(var r in t||(t={}))hi.call(t,r)&&An(e,r,t[r]);if(Gt)for(var r of Gt(t))fi.call(t,r)&&An(e,r,t[r]);return e},tt=(e,t)=>{var r={};for(var n in e)hi.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Gt)for(var n of Gt(e))t.indexOf(n)<0&&fi.call(e,n)&&(r[n]=e[n]);return r};const _t=(e,t)=>{const{formats:r}=ze();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Of=or(e=>{var t=e,{locale:r,format:n}=t,s=tt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(s=_t("number",n)),new Intl.NumberFormat(r,s)}),Df=or(e=>{var t=e,{locale:r,format:n}=t,s=tt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?s=_t("date",n):Object.keys(s).length===0&&(s=_t("date","short")),new Intl.DateTimeFormat(r,s)}),Pf=or(e=>{var t=e,{locale:r,format:n}=t,s=tt(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?s=_t("time",n):Object.keys(s).length===0&&(s=_t("time","short")),new Intl.DateTimeFormat(r,s)}),Nf=(e={})=>{var t=e,{locale:r=Ne()}=t,n=tt(t,["locale"]);return Of(ln({locale:r},n))},kf=(e={})=>{var t=e,{locale:r=Ne()}=t,n=tt(t,["locale"]);return Df(ln({locale:r},n))},Hf=(e={})=>{var t=e,{locale:r=Ne()}=t,n=tt(t,["locale"]);return Pf(ln({locale:r},n))},Af=or((e,t=Ne())=>new af(e,t,ze().formats,{ignoreTag:ze().ignoreTag})),Lf=(e,t={})=>{var r,n,s,i;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:l=Ne(),default:u}=a;if(l==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let f=ai(e,l);if(!f)f=(i=(s=(n=(r=ze()).handleMissingMessage)==null?void 0:n.call(r,{locale:l,id:e,defaultValue:u}))!=null?s:u)!=null?i:e;else if(typeof f!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof f}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),f;if(!o)return f;let m=f;try{m=Af(f,l).format(o)}catch(_){_ instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,_.message)}return m},Rf=(e,t)=>Hf(t).format(e),Cf=(e,t)=>kf(t).format(e),If=(e,t)=>Nf(t).format(e),Bf=(e,t=Ne())=>ai(e,t),ci=Qe([et,Ke],()=>Lf);Qe([et],()=>Rf);Qe([et],()=>Cf);Qe([et],()=>If);Qe([et,Ke],()=>Bf);function Ln(e,t){un(e,t)}const Rn={en:{nothing:"Nothing to show here."},hr:{nothing:"Nema ničega za prikazati ovdje."},"zh-hk":{nothing:"這裡沒有什麼可顯示的。"},fr:{nothing:"Rien à montrer ici."},ro:{nothing:"Niciun turneu disponibil aici."},tr:{nothing:"Burada gösterilecek bir şey yok."},el:{nothing:"Δεν υπάρχει τίποτα εδώ."},es:{nothing:"Nada que mostrar aquí."},hu:{nothing:"Nincs megjelenítendő adat."},pt:{nothing:"Nada para mostrar aqui."},"en-us":{nothing:"Nothing to show here."}},Be="__WIDGET_GLOBAL_STYLE_CACHE__";function di(e,t){if(e){const r=document.createElement("style");r.innerHTML=t,e.appendChild(r)}}function mi(e,t){if(!e||!t)return;const r=new URL(t);fetch(r.href).then(n=>n.text()).then(n=>{const s=document.createElement("style");s.innerHTML=n,e&&e.appendChild(s)}).catch(n=>{console.error("There was an error while trying to load client styling from URL",n)})}function _i(e,t,r,n=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!n)return r=Yf(e,t),r;window[Be]||(window[Be]={}),r=Ff(e,t);const i=r.unsubscribe.bind(r),a=()=>{if(window[Be][t]){const o=window[Be][t];o.refCount>1?o.refCount=o.refCount-1:delete window[Be][t]}i()};return r.unsubscribe=a,r}function Yf(e,t){const r=document.createElement("style");return window.emMessageBus.subscribe(t,n=>{e&&(r.innerHTML=n,e.appendChild(r))})}function Ff(e,t){return window.emMessageBus.subscribe(t,r=>{if(!e)return;const n=e.getRootNode(),s=window[Be];let i=s[t]&&s[t].sheet;i?s[t].refCount=s[t].refCount+1:(i=new CSSStyleSheet,i.replaceSync(r),s[t]={sheet:i,refCount:1});const a=n.adoptedStyleSheets||[];a.includes(i)||(n.adoptedStyleSheets=[...a,i])})}if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailController-BO2iRvy8.cjs")).then(t=>t.CasinoTournamentsThumbnailController_ce).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-controller")&&customElements.define("casino-tournaments-thumbnail-controller",t.element)})}function Uf(e){$n(e,"svelte-gkejaq","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}")}function Cn(e,t,r){const n=e.slice();return n[28]=t[r],n[30]=r,n}function In(e){let t,r=wr(e[16]),n=[];for(let i=0;i<r.length;i+=1)n[i]=Yn(Cn(e,r,i));let s=null;return r.length||(s=Bn(e)),{c(){for(let i=0;i<n.length;i+=1)n[i].c();t=jn(),s&&s.c()},m(i,a){for(let o=0;o<n.length;o+=1)n[o]&&n[o].m(i,a);Xe(i,t,a),s&&s.m(i,a)},p(i,a){if(a&212991){r=wr(i[16]);let o;for(o=0;o<r.length;o+=1){const l=Cn(i,r,o);n[o]?n[o].p(l,a):(n[o]=Yn(l),n[o].c(),n[o].m(t.parentNode,t))}for(;o<n.length;o+=1)n[o].d(1);n.length=r.length,!r.length&&s?s.p(i,a):r.length?s&&(s.d(1),s=null):(s=Bn(i),s.c(),s.m(t.parentNode,t))}},d(i){i&&xe(t),Wn(n,i),s&&s.d(i)}}}function Bn(e){let t,r=e[17]("nothing")+"",n;return{c(){t=De("p"),n=Wt(r)},m(s,i){Xe(s,t,i),$t(t,n)},p(s,i){i&131072&&r!==(r=s[17]("nothing")+"")&&Vn(n,r)},d(s){s&&xe(t)}}}function Yn(e){let t,r,n,s;return{c(){t=De("casino-tournaments-thumbnail-controller"),b(t,"touridx",e[30]+1),b(t,"userid",e[1]),b(t,"showdetails","true"),b(t,"showslider","false"),b(t,"tournamenturl",r=e[28].href),b(t,"maxwidth",n=e[16].length<=2),b(t,"loginurl",e[5]),b(t,"loginevent",e[3]),b(t,"registerurl",e[6]),b(t,"tournamentinfo",s=e[28]),b(t,"registerevent",e[4]),b(t,"detailsevent",$f),b(t,"clientstyling",e[10]),b(t,"clientstylingurl",e[11]),b(t,"translationurl",e[12]),b(t,"lang",e[8]),b(t,"currency",e[7]),b(t,"keepbrowsercontext",e[9]),b(t,"mbsource",e[13]),b(t,"session",e[0]),b(t,"endpoint",e[2]),b(t,"exportparts",`Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,
|
|
13
13
|
TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,
|
|
14
14
|
TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton
|
|
15
15
|
TournamentCard, CardMaxWidth, CardFullSize, elementToFadeOut, elementToFadeIn, ph-item, ph-col-12, ph-picture, ph-row, ph-col-6, big, ph-col-4, empty, ph-col-8, TournamentButtons, LoginButton, RegisterButton, DetailsButton, EnrolledButton, JoinButton, JoinButtonSpan, JoinButtonSvg, JoinButtonSvgA, JoinButtonFullSize, spinner, DetailsLargeButton, ErrorText, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper`)},m(i,a){Xe(i,t,a)},p(i,a){a&2&&b(t,"userid",i[1]),a&65536&&r!==(r=i[28].href)&&b(t,"tournamenturl",r),a&65536&&n!==(n=i[16].length<=2)&&b(t,"maxwidth",n),a&32&&b(t,"loginurl",i[5]),a&8&&b(t,"loginevent",i[3]),a&64&&b(t,"registerurl",i[6]),a&65536&&s!==(s=i[28])&&b(t,"tournamentinfo",s),a&16&&b(t,"registerevent",i[4]),a&1024&&b(t,"clientstyling",i[10]),a&2048&&b(t,"clientstylingurl",i[11]),a&4096&&b(t,"translationurl",i[12]),a&256&&b(t,"lang",i[8]),a&128&&b(t,"currency",i[7]),a&512&&b(t,"keepbrowsercontext",i[9]),a&8192&&b(t,"mbsource",i[13]),a&1&&b(t,"session",i[0]),a&4&&b(t,"endpoint",i[2])},d(i){i&&xe(t)}}}function Gf(e){let t,r=!e[15]&&In(e);return{c(){t=De("div"),r&&r.c(),lt(t,"class","TournamentList"),lt(t,"part","TournamentList")},m(n,s){Xe(n,t,s),r&&r.m(t,null),e[18](t)},p(n,[s]){n[15]?r&&(r.d(1),r=null):r?r.p(n,s):(r=In(n),r.c(),r.m(t,null))},i:z,o:z,d(n){n&&xe(t),r&&r.d(),e[18](null)}}}let $f="TournamentDetailsClicked";function Wf(e,t,r){let n;Gn(e,ci,g=>r(17,n=g));let{session:s=""}=t,{userid:i=""}=t,{endpoint:a=""}=t,{loginevent:o=""}=t,{registerevent:l=""}=t,{loginurl:u=""}=t,{registerurl:f=""}=t,{currency:m=""}=t,{lang:_="en"}=t,{keepbrowsercontext:O="false"}=t,{clientstyling:D=""}=t,{clientstylingurl:R=""}=t,{translationurl:W=""}=t,{mbsource:se}=t,Y,X,he=!1;c();let C="";const ke=()=>{fetch(W).then(Ee=>Ee.json()).then(Ee=>{Object.keys(Ee).forEach(He=>{Ln(He,Ee[He])})}).catch(Ee=>{console.log(Ee)})};Object.keys(Rn).forEach(g=>{Ln(g,Rn[g])});const rt=g=>{if(g.data&&g.data.type=="TournamentList"&&(r(16,C=[]),r(15,he=!0),r(16,C=g.data.tournamentList),setTimeout(()=>{r(15,he=!1)},10)),g.data&&g.data.type=="TournamentListShowMore"&&r(16,C=[...C,...g.data.tournamentList]),g.data.type=="UpdateTournamentView"){if(!C)return;C.filter(He=>He.id==g.data.tournamentData.id).length==0&&(C.pop(),r(16,C=[g.data.tournamentData,...C]),setTimeout(()=>{C.forEach((He,bi)=>{window.postMessage({type:`UpdateSingleTournament_${bi+1}`,tournamentData:He},window.location.href)})},100))}g.data&&g.data.type=="UserSessionID"&&g.data.session},gi=()=>{s.length>0&&s!="false"};zn(()=>(window.addEventListener("message",rt,!0),()=>{window.removeEventListener("message",rt,!0)}));function pi(g){Ht[g?"unshift":"push"](()=>{Y=g,r(14,Y)})}return e.$$set=g=>{"session"in g&&r(0,s=g.session),"userid"in g&&r(1,i=g.userid),"endpoint"in g&&r(2,a=g.endpoint),"loginevent"in g&&r(3,o=g.loginevent),"registerevent"in g&&r(4,l=g.registerevent),"loginurl"in g&&r(5,u=g.loginurl),"registerurl"in g&&r(6,f=g.registerurl),"currency"in g&&r(7,m=g.currency),"lang"in g&&r(8,_=g.lang),"keepbrowsercontext"in g&&r(9,O=g.keepbrowsercontext),"clientstyling"in g&&r(10,D=g.clientstyling),"clientstylingurl"in g&&r(11,R=g.clientstylingurl),"translationurl"in g&&r(12,W=g.translationurl),"mbsource"in g&&r(13,se=g.mbsource)},e.$$.update=()=>{e.$$.dirty&4096&&W&&ke(),e.$$.dirty&1&&s&&gi(),e.$$.dirty&2,e.$$.dirty&17408&&D&&Y&&di(Y,D),e.$$.dirty&18432&&R&&Y&&mi(Y,R),e.$$.dirty&24576&&se&&Y&&_i(Y,`${se}.Style`,X)},[s,i,a,o,l,u,f,m,_,O,D,R,W,se,Y,he,C,n,pi]}class yi extends Jn{constructor(t){super(),Zn(this,t,Wf,Gf,Yr,{session:0,userid:1,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,mbsource:13},Uf)}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),B()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),B()}get endpoint(){return this.$$.ctx[2]}set endpoint(t){this.$$set({endpoint:t}),B()}get loginevent(){return this.$$.ctx[3]}set loginevent(t){this.$$set({loginevent:t}),B()}get registerevent(){return this.$$.ctx[4]}set registerevent(t){this.$$set({registerevent:t}),B()}get loginurl(){return this.$$.ctx[5]}set loginurl(t){this.$$set({loginurl:t}),B()}get registerurl(){return this.$$.ctx[6]}set registerurl(t){this.$$set({registerurl:t}),B()}get currency(){return this.$$.ctx[7]}set currency(t){this.$$set({currency:t}),B()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),B()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),B()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),B()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),B()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),B()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),B()}}qn(yi,{session:{},userid:{},endpoint:{},loginevent:{},registerevent:{},loginurl:{},registerurl:{},currency:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);const jf=Object.freeze(Object.defineProperty({__proto__:null,default:yi},Symbol.toStringTag,{value:"Module"}));exports.$dictionary=Ke;exports.$format=ci;exports.$locale=et;exports.CasinoTournamentsListController_ce=jf;exports.SvelteComponent=Jn;exports.action_destroyer=Oi;exports.addMessages=un;exports.add_iframe_resize_listener=Ri;exports.add_render_callback=At;exports.append=$t;exports.append_styles=$n;exports.attr=lt;exports.binding_callbacks=Ht;exports.component_subscribe=Gn;exports.create_custom_element=qn;exports.destroy_each=Wn;exports.detach=xe;exports.element=De;exports.empty=jn;exports.ensure_array_like=wr;exports.flush=B;exports.init=Zn;exports.insert=Xe;exports.is_function=yt;exports.listen=vr;exports.noop=z;exports.onMount=zn;exports.run_all=Ze;exports.safe_not_equal=Yr;exports.setClientStyling=di;exports.setClientStylingURL=mi;exports.setStreamStyling=_i;exports.set_custom_element_data=b;exports.set_data=Vn;exports.set_style=Ai;exports.space=ki;exports.src_url_equal=Ti;exports.svg_element=Ni;exports.text=Wt;exports.toggle_class=Ci;
|
|
@@ -6383,7 +6383,7 @@ if (typeof window < "u") {
|
|
|
6383
6383
|
}
|
|
6384
6384
|
};
|
|
6385
6385
|
};
|
|
6386
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-
|
|
6386
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsThumbnailController-C6AhrA4S.js").then((t) => t.C).then(
|
|
6387
6387
|
({ default: t }) => {
|
|
6388
6388
|
!customElements.get("casino-tournaments-thumbnail-controller") && customElements.define(
|
|
6389
6389
|
"casino-tournaments-thumbnail-controller",
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-DCd6cP-y.cjs");require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function $({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function ee(a){e.$locale.set(a)}const G={en:{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",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:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",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"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},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",stake:"Turnover",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",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",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ă",stake:"Turnover",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:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görmek için",here:"tıklayın",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Başlangıç saati:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Çevrim",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",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},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",stake:"Turnover",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",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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function te(a){e.append_styles(a,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,s,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,n,l,o,u,m,g,_,k=a[14]("scoreCriteria")+"",W,E,C,L,R,D=a[14]("minbet")+"",T,I,w,F,y,x,A,v=a[14]("seegames")+"",j,M,S,z=a[14]("here")+"",N,J,O,P,f=a[0]&&V(a),h=a[6]=="true"&&H(a);function B(d,c){return d[3]?ae:ie}let r=B(a),b=r(a),p=a[2]&&Z(a);return{c(){f&&f.c(),t=e.space(),h&&h.c(),i=e.space(),b.c(),s=e.space(),n=e.element("div"),l=e.element("div"),o=e.text(a[1]),u=e.space(),p&&p.c(),m=e.space(),g=e.element("div"),_=e.element("p"),W=e.text(k),E=e.text(`:
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-B8c_8tBp.cjs");require("../stencil/ui-skeleton-CImpq9cv.cjs");require("../stencil/ui-image-GKGnzjWQ.cjs");function $({withLocale:a,translations:t}){e.$locale.subscribe(i=>{i==null&&(e.$dictionary.set(t),e.$locale.set(a))})}function U(a,t){e.addMessages(a,t)}function ee(a){e.$locale.set(a)}const G={en:{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",win:"Winnings",winBetCount:"Winnings and Number of Rounds",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:"Sudjeluje",scoreCriteria:"Kriterij bodovanja",minbet:"Minimalni ulog",seegames:"Vidi igre",here:"ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Završeno",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj uloga",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Dobitak po ulogu",stake:"Ulog",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"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},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",stake:"Turnover",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",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",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ă",stake:"Turnover",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:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görmek için",here:"tıklayın",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Başlangıç saati:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Çevrim",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",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"},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",stake:"Turnover",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",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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"en-us":{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 {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}};function te(a){e.append_styles(a,"svelte-52u9sp",':host{font-family:"Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:"Roboto"}ui-image.UIImage{height:100%;text-align:center}.UIImage img{width:100%;height:auto;max-height:100%}.Loading{margin:2px 0px}.Loading ui-skeleton .SkeletonContainer .Skeleton{margin:2px 0px}.Loading.Thumbnail .Details{padding:10px 20px 0;display:flex;flex-direction:column;gap:5px}a{color:var(--emw--color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{cursor:pointer;position:relative}.Thumbnail .Skeleton.CardImg{background:transparent}.Thumbnail .CardImg{height:300px;width:100%;background-image:url("https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emw--color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{cursor:pointer;font-size:18px;padding-bottom:10px;background-color:transparent}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}')}function q(a){let t,i,s;return{c(){t=e.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="100%" height="300px"></ui-skeleton>',i=e.space(),s=e.element("div"),s.innerHTML='<ui-skeleton structure="title" width="228px" class="Title" height="30px"></ui-skeleton> <ui-skeleton structure="text" width="120px" class="Date"></ui-skeleton> <ui-skeleton structure="text" width="150px" height="20px" class="ScoreCriteria"></ui-skeleton> <ui-skeleton structure="text" width="128px" height="20px" class="Games"></ui-skeleton>',e.attr(t,"class","Skeleton CardImg"),e.attr(s,"class","Details"),e.attr(s,"part","Details")},m(n,l){e.insert(n,t,l),e.insert(n,i,l),e.insert(n,s,l)},d(n){n&&(e.detach(t),e.detach(i),e.detach(s))}}}function K(a){let t,i,s,n,l,o,u,m,g,_,k=a[14]("scoreCriteria")+"",W,E,C,L,R,D=a[14]("minbet")+"",T,I,w,F,y,x,A,v=a[14]("seegames")+"",j,M,S,z=a[14]("here")+"",N,J,O,P,f=a[0]&&V(a),h=a[6]=="true"&&H(a);function B(d,c){return d[3]?ae:ie}let r=B(a),b=r(a),p=a[2]&&Z(a);return{c(){f&&f.c(),t=e.space(),h&&h.c(),i=e.space(),b.c(),s=e.space(),n=e.element("div"),l=e.element("div"),o=e.text(a[1]),u=e.space(),p&&p.c(),m=e.space(),g=e.element("div"),_=e.element("p"),W=e.text(k),E=e.text(`:
|
|
2
2
|
`),C=e.element("span"),L=e.text(a[12]),R=e.text(`
|
|
3
3
|
(`),T=e.text(D),I=e.space(),w=e.text(a[5]),F=e.text(")"),y=e.space(),x=e.element("div"),A=e.element("p"),j=e.text(v),M=e.space(),S=e.element("a"),N=e.text(z),e.attr(l,"class","Title"),e.attr(l,"part","Title"),e.attr(C,"part","ScoreCriteriaSpan"),e.attr(_,"part","ScoreCriteriaP"),e.attr(g,"class","ScoreCriteria"),e.attr(g,"part","ScoreCriteria"),e.attr(S,"part","GamesAnchor"),e.attr(S,"href",a[7]),e.attr(S,"target",J=a[8]==="true"?"_self":"_blank"),e.attr(A,"part","GamesP"),e.attr(x,"class","Games"),e.attr(x,"part","Games"),e.attr(n,"class","Details"),e.attr(n,"part","Details")},m(d,c){f&&f.m(d,c),e.insert(d,t,c),h&&h.m(d,c),e.insert(d,i,c),b.m(d,c),e.insert(d,s,c),e.insert(d,n,c),e.append(n,l),e.append(l,o),e.append(n,u),p&&p.m(n,null),e.append(n,m),e.append(n,g),e.append(g,_),e.append(_,W),e.append(_,E),e.append(_,C),e.append(C,L),e.append(_,R),e.append(_,T),e.append(_,I),e.append(_,w),e.append(_,F),e.append(n,y),e.append(n,x),e.append(x,A),e.append(A,j),e.append(A,M),e.append(A,S),e.append(S,N),O||(P=[e.listen(l,"click",a[19]),e.action_destroyer(a[17].call(null,C)),e.listen(S,"click",a[18])],O=!0)},p(d,c){d[0]?f?f.p(d,c):(f=V(d),f.c(),f.m(t.parentNode,t)):f&&(f.d(1),f=null),d[6]=="true"?h?h.p(d,c):(h=H(d),h.c(),h.m(i.parentNode,i)):h&&(h.d(1),h=null),r===(r=B(d))&&b?b.p(d,c):(b.d(1),b=r(d),b&&(b.c(),b.m(s.parentNode,s))),c[0]&2&&e.set_data(o,d[1]),d[2]?p?p.p(d,c):(p=Z(d),p.c(),p.m(n,m)):p&&(p.d(1),p=null),c[0]&16384&&k!==(k=d[14]("scoreCriteria")+"")&&e.set_data(W,k),c[0]&4096&&e.set_data(L,d[12]),c[0]&16384&&D!==(D=d[14]("minbet")+"")&&e.set_data(T,D),c[0]&32&&e.set_data(w,d[5]),c[0]&16384&&v!==(v=d[14]("seegames")+"")&&e.set_data(j,v),c[0]&16384&&z!==(z=d[14]("here")+"")&&e.set_data(N,z),c[0]&128&&e.attr(S,"href",d[7]),c[0]&256&&J!==(J=d[8]==="true"?"_self":"_blank")&&e.attr(S,"target",J)},d(d){d&&(e.detach(t),e.detach(i),e.detach(s),e.detach(n)),f&&f.d(d),h&&h.d(d),b.d(d),p&&p.d(),O=!1,e.run_all(P)}}}function V(a){let t,i,s,n,l,o;return{c(){t=e.element("div"),i=e.text(a[11]),e.attr(t,"class",s="Status "+a[13]),e.attr(t,"part",n="Status "+a[13])},m(u,m){e.insert(u,t,m),e.append(t,i),l||(o=e.action_destroyer(a[16].call(null,t)),l=!0)},p(u,m){m[0]&2048&&e.set_data(i,u[11]),m[0]&8192&&s!==(s="Status "+u[13])&&e.attr(t,"class",s),m[0]&8192&&n!==(n="Status "+u[13])&&e.attr(t,"part",n)},d(u){u&&e.detach(t),l=!1,o()}}}function H(a){let t,i=a[4]&&Y(a);return{c(){i&&i.c(),t=e.empty()},m(s,n){i&&i.m(s,n),e.insert(s,t,n)},p(s,n){s[4]?i?i.p(s,n):(i=Y(s),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null)},d(s){s&&e.detach(t),i&&i.d(s)}}}function Y(a){let t,i=a[14]("enrolled")+"",s;return{c(){t=e.element("div"),s=e.text(i),e.attr(t,"class","Enrolled"),e.attr(t,"part","Enrolled")},m(n,l){e.insert(n,t,l),e.append(t,s)},p(n,l){l[0]&16384&&i!==(i=n[14]("enrolled")+"")&&e.set_data(s,i)},d(n){n&&e.detach(t)}}}function ie(a){let t,i,s,n,l,o,u;return{c(){t=e.element("div"),i=e.element("ui-image"),e.src_url_equal(i.src,s="https://i.stack.imgur.com/y9DpT.jpg")||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,g){e.insert(m,t,g),e.append(t,i),o||(u=[e.action_destroyer(a[16].call(null,t)),e.listen(t,"click",a[19])],o=!0)},p(m,g){g[0]&1&&n!==(n="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),g[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),o=!1,e.run_all(u)}}}function ae(a){let t,i,s,n,l,o,u;return{c(){t=e.element("div"),i=e.element("ui-image"),e.set_custom_element_data(i,"class","UIImage"),e.src_url_equal(i.src,s=a[3])||e.set_custom_element_data(i,"src",s),e.set_custom_element_data(i,"alt","icon"),e.attr(t,"class",n="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":"")),e.attr(t,"part",l="CardImg "+(a[0]=="Closing"||a[0]=="Closed"?"CardImgFinished":""))},m(m,g){e.insert(m,t,g),e.append(t,i),o||(u=[e.action_destroyer(a[16].call(null,t)),e.listen(t,"click",a[19])],o=!0)},p(m,g){g[0]&8&&!e.src_url_equal(i.src,s=m[3])&&e.set_custom_element_data(i,"src",s),g[0]&1&&n!==(n="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"class",n),g[0]&1&&l!==(l="CardImg "+(m[0]=="Closing"||m[0]=="Closed"?"CardImgFinished":""))&&e.attr(t,"part",l)},d(m){m&&e.detach(t),o=!1,e.run_all(u)}}}function Z(a){let t,i,s,n,l;return{c(){t=e.element("div"),i=e.text(a[10]),e.attr(t,"class","Date"),e.attr(t,"part","Date")},m(o,u){e.insert(o,t,u),e.append(t,i),n||(l=e.action_destroyer(s=a[15].call(null,t,a[2])),n=!0)},p(o,u){u[0]&1024&&e.set_data(i,o[10]),s&&e.is_function(s.update)&&u[0]&4&&s.update.call(null,o[2])},d(o){o&&e.detach(t),n=!1,l()}}}function ne(a){let t,i,s,n=a[1]==="undefined"&&q(),l=a[1]!=="undefined"&&K(a);return{c(){t=e.element("div"),n&&n.c(),i=e.space(),l&&l.c(),e.attr(t,"class",s=`Thumbnail ${a[1]==="undefined"?"Loading":""}`),e.attr(t,"part","Thumbnail")},m(o,u){e.insert(o,t,u),n&&n.m(t,null),e.append(t,i),l&&l.m(t,null),a[29](t)},p(o,u){o[1]==="undefined"?n||(n=q(),n.c(),n.m(t,i)):n&&(n.d(1),n=null),o[1]!=="undefined"?l?l.p(o,u):(l=K(o),l.c(),l.m(t,null)):l&&(l.d(1),l=null),u[0]&2&&s!==(s=`Thumbnail ${o[1]==="undefined"?"Loading":""}`)&&e.attr(t,"class",s)},i:e.noop,o:e.noop,d(o){o&&e.detach(t),n&&n.d(),l&&l.d(),a[29](null)}}}function re(a,t,i){let s;e.component_subscribe(a,e.$format,r=>i(14,s=r));let{userid:n=""}=t,{title:l=""}=t,{startdate:o=""}=t,{status:u=""}=t,{tourid:m=""}=t,{thumbnail:g=""}=t,{userenrolled:_=""}=t,{scorecriteria:k=""}=t,{minbetcount:W=""}=t,{showenrolled:E="false"}=t,{detailsevent:C=""}=t,{gameurl:L=""}=t,{lang:R="en"}=t,{keepbrowsercontext:D="false"}=t,{clientstyling:T=""}=t,{clientstylingurl:I=""}=t,{translationurl:w=""}=t,{mbsource:F}=t,y,x,A="",v="",j="",M="";$({withLocale:"en",translations:{}});const S=()=>{fetch(w).then(r=>r.json()).then(r=>{Object.keys(r).forEach(b=>{U(b,r[b])}),o&&h()}).catch(r=>{console.log(r)})};Object.keys(G).forEach(r=>{U(r,G[r])});const z=r=>{r.data&&r.data.type==`TournamentStatus_${m}`&&i(0,u=r.data.status)},N=()=>{const r={month:"long"};let b=new Date(o),p=new Intl.DateTimeFormat("en",r).format(b),d=b.getDate(),c=b.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});const X=()=>s(u==="Unstarted"?"startingAt":"startedAt");i(10,A=`${d} `+s(`${p}`)+", "+X()+` ${c}`)},J=()=>{u=="Unstarted"&&(i(11,v=s("scheduled")),i(13,M="StatusUnstarted")),u=="Running"&&(i(11,v=s("ongoing")),i(13,M="StatusRunning")),(u=="Closed"||u=="Closing")&&i(11,v=s("finished")),u=="Closed"&&i(13,M="StatusClosed"),u=="Closing"&&i(13,M="StatusClosing")},O=()=>{if(!k||k.length<=1){i(12,j=k);return}i(12,j=s(k.charAt(0).toLowerCase()+k.slice(1)))},P=()=>{window.postMessage({type:"tournamentGamesClicked",tourid:m},window.location.href)},f=()=>{C&&window.postMessage({type:C,tournamentId:m,showLeaderboard:!0},window.location.href)};e.onMount(()=>(setTimeout(()=>h(),1),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",z,!1),()=>{window.removeEventListener("message",z)}));const h=()=>{ee(R),O(),J(),o&&N()};function B(r){e.binding_callbacks[r?"unshift":"push"](()=>{y=r,i(9,y)})}return a.$$set=r=>{"userid"in r&&i(20,n=r.userid),"title"in r&&i(1,l=r.title),"startdate"in r&&i(2,o=r.startdate),"status"in r&&i(0,u=r.status),"tourid"in r&&i(21,m=r.tourid),"thumbnail"in r&&i(3,g=r.thumbnail),"userenrolled"in r&&i(4,_=r.userenrolled),"scorecriteria"in r&&i(22,k=r.scorecriteria),"minbetcount"in r&&i(5,W=r.minbetcount),"showenrolled"in r&&i(6,E=r.showenrolled),"detailsevent"in r&&i(23,C=r.detailsevent),"gameurl"in r&&i(7,L=r.gameurl),"lang"in r&&i(24,R=r.lang),"keepbrowsercontext"in r&&i(8,D=r.keepbrowsercontext),"clientstyling"in r&&i(25,T=r.clientstyling),"clientstylingurl"in r&&i(26,I=r.clientstylingurl),"translationurl"in r&&i(27,w=r.translationurl),"mbsource"in r&&i(28,F=r.mbsource)},a.$$.update=()=>{a.$$.dirty[0]&33554944&&T&&y&&e.setClientStyling(y,T),a.$$.dirty[0]&67109376&&I&&y&&e.setClientStylingURL(y,I),a.$$.dirty[0]&268435968&&F&&y&&e.setStreamStyling(y,`${F}.Style`,x),a.$$.dirty[0]&134217728&&w&&S(),a.$$.dirty[0]&1&&u&&J(),a.$$.dirty[0]&16777218&&l&&R&&h(),a.$$.dirty[0]&4&&o&&N(),a.$$.dirty[0]&4194304&&k&&O()},[u,l,o,g,_,W,E,L,D,y,A,v,j,M,s,N,J,O,P,f,n,m,k,C,R,T,I,w,F,B]}class Q extends e.SvelteComponent{constructor(t){super(),e.init(this,t,re,ne,e.safe_not_equal,{userid:20,title:1,startdate:2,status:0,tourid:21,thumbnail:3,userenrolled:4,scorecriteria:22,minbetcount:5,showenrolled:6,detailsevent:23,gameurl:7,lang:24,keepbrowsercontext:8,clientstyling:25,clientstylingurl:26,translationurl:27,mbsource:28},te,[-1,-1])}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),e.flush()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),e.flush()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),e.flush()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),e.flush()}get tourid(){return this.$$.ctx[21]}set tourid(t){this.$$set({tourid:t}),e.flush()}get thumbnail(){return this.$$.ctx[3]}set thumbnail(t){this.$$set({thumbnail:t}),e.flush()}get userenrolled(){return this.$$.ctx[4]}set userenrolled(t){this.$$set({userenrolled:t}),e.flush()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(t){this.$$set({scorecriteria:t}),e.flush()}get minbetcount(){return this.$$.ctx[5]}set minbetcount(t){this.$$set({minbetcount:t}),e.flush()}get showenrolled(){return this.$$.ctx[6]}set showenrolled(t){this.$$set({showenrolled:t}),e.flush()}get detailsevent(){return this.$$.ctx[23]}set detailsevent(t){this.$$set({detailsevent:t}),e.flush()}get gameurl(){return this.$$.ctx[7]}set gameurl(t){this.$$set({gameurl:t}),e.flush()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),e.flush()}get keepbrowsercontext(){return this.$$.ctx[8]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),e.flush()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[28]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(Q,{userid:{},title:{},startdate:{},status:{},tourid:{},thumbnail:{},userenrolled:{},scorecriteria:{},minbetcount:{},showenrolled:{},detailsevent:{},gameurl:{},lang:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=Q;
|
package/components/{CasinoTournamentsThumbnail-g5Qt76nt.js → CasinoTournamentsThumbnail-BdHuphKQ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ee, a as ge, b as be, S as fe, i as he, s as pe, f as h, c as ke, n as ae, d as _, g as m, h as A, j as c, k as p, l as R, m as ye, o as Se, v as ie, t as D, w as $, r as Z, u as T, p as Ce, q as _e, E as te, e as H, x as Ae, z as ve, A as Te, B as we, C as Me, D as Je } from "./CasinoTournamentsListController-
|
|
1
|
+
import { $ as ee, a as ge, b as be, S as fe, i as he, s as pe, f as h, c as ke, n as ae, d as _, g as m, h as A, j as c, k as p, l as R, m as ye, o as Se, v as ie, t as D, w as $, r as Z, u as T, p as Ce, q as _e, E as te, e as H, x as Ae, z as ve, A as Te, B as we, C as Me, D as Je } from "./CasinoTournamentsListController-B1l9g4hh.js";
|
|
2
2
|
import "../stencil/ui-skeleton-DGlqF493.js";
|
|
3
3
|
import "../stencil/ui-image-BiEqrTjD.js";
|
|
4
4
|
function Re({ withLocale: i, translations: e }) {
|
package/components/{CasinoTournamentsThumbnail-BpWTrxlm.js → CasinoTournamentsThumbnail-HapYQiqZ.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as ee, a as ge, b as be, S as fe, i as he, s as pe, f as h, d as ke, n as ae, e as _, h as m, j as A, k as c, l as p, m as R, o as ye, p as Se, w as ie, u as D, x as $, t as Z, v as T, q as Ce, r as _e, E as te, g as H, y as Ae, B as ve, C as Te, D as we, c as Me, A as Je } from "./CasinoTournamentsListController-
|
|
1
|
+
import { $ as ee, a as ge, b as be, S as fe, i as he, s as pe, f as h, d as ke, n as ae, e as _, h as m, j as A, k as c, l as p, m as R, o as ye, p as Se, w as ie, u as D, x as $, t as Z, v as T, q as Ce, r as _e, E as te, g as H, y as Ae, B as ve, C as Te, D as we, c as Me, A as Je } from "./CasinoTournamentsListController-DngncLEG.js";
|
|
2
2
|
import "../stencil/ui-skeleton-CCeXOW4G.js";
|
|
3
3
|
import "../stencil/ui-image-DyN7Fe9v.js";
|
|
4
4
|
function Re({ withLocale: i, translations: e }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var te=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(p){o(p)}},a=c=>{try{u(e.throw(c))}catch(p){o(p)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";var te=(r,t,e)=>new Promise((i,o)=>{var s=c=>{try{u(e.next(c))}catch(p){o(p)}},a=c=>{try{u(e.throw(c))}catch(p){o(p)}},u=c=>c.done?i(c.value):Promise.resolve(c.value).then(s,a);u((e=e.apply(r,t)).next())});const n=require("./CasinoTournamentsListController-B8c_8tBp.cjs");/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -13,4 +13,4 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
13
13
|
PERFORMANCE OF THIS SOFTWARE.
|
|
14
14
|
***************************************************************************** */var re=function(r,t){return re=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])},re(r,t)};function C(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");re(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function ie(r){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function oe(r,t){var e=typeof Symbol=="function"&&r[Symbol.iterator];if(!e)return r;var i=e.call(r),o,s=[],a;try{for(;(t===void 0||t-- >0)&&!(o=i.next()).done;)s.push(o.value)}catch(u){a={error:u}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(a)throw a.error}}return s}function se(r,t,e){if(arguments.length===2)for(var i=0,o=t.length,s;i<o;i++)(s||!(i in t))&&(s||(s=Array.prototype.slice.call(t,0,i)),s[i]=t[i]);return r.concat(s||t)}function S(r){return typeof r=="function"}function He(r){var t=function(i){Error.call(i),i.stack=new Error().stack},e=r(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var ne=He(function(r){return function(e){r(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
15
15
|
`+e.map(function(i,o){return o+1+") "+i.toString()}).join(`
|
|
16
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function ae(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var G=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=ie(a),c=u.next();!c.done;c=u.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(S(h))try{h()}catch(_){s=_ instanceof ne?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=ie(f),g=d.next();!g.done;g=d.next()){var m=g.value;try{ze(m)}catch(_){s=s!=null?s:[],_ instanceof ne?s=se(se([],oe(s)),oe(_.errors)):s.push(_)}}}catch(_){i={error:_}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}if(s)throw new ne(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ze(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ae(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&ae(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),qe=G.EMPTY;function Ge(r){return r instanceof G||r&&"closed"in r&&S(r.remove)&&S(r.add)&&S(r.unsubscribe)}function ze(r){S(r)?r():r.unsubscribe()}var st={Promise:void 0},at={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,se([r,t],oe(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function lt(r){at.setTimeout(function(){throw r})}function Pe(){}function q(r){r()}var Ne=function(r){C(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Ge(e)&&e.add(i)):i.destination=ft,i}return t.create=function(e,i,o){return new le(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(G),ut=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){H(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){H(i)}else H(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},r}(),le=function(r){C(t,r);function t(e,i,o){var s=r.call(this)||this,a;return S(e)||!e?a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new ut(a),s}return t}(Ne);function H(r){lt(r)}function ct(r){throw r}var ft={closed:!0,next:Pe,error:ct,complete:Pe},dt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mt(r){return r}function ht(r){return r.length===0?mt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Ce=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=_t(t)?t:new le(t,e,i);return q(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Be(e),new e(function(o,s){var a=new le({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[dt]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ht(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Be(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Be(r){var t;return(t=r!=null?r:st.Promise)!==null&&t!==void 0?t:Promise}function pt(r){return r&&S(r.next)&&S(r.error)&&S(r.complete)}function _t(r){return r&&r instanceof Ne||pt(r)&&Ge(r)}var gt=He(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=function(r){C(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new xe(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new gt},t.prototype.next=function(e){var i=this;q(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=ie(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;q(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?qe:(this.currentObservers=null,u.push(e),new G(function(){i.currentObservers=null,ae(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Ce;return e.source=this,e},t.create=function(e,i){return new xe(e,i)},t}(Ce),xe=function(r){C(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:qe},t}(Xe),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},bt=function(r){C(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Ye);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),p=0,h=1;h<s.length&&s[h]<=c;h+=2)p=h;p&&s.splice(0,p+1)}},t}(Xe);const Oe=[],Ae={},wt=(r,t=0)=>{if(Oe.indexOf(r)==-1){const e=new bt(t);Ae[r]=e,Oe.push(r)}return Ae[r]};window.emWidgets={topic:wt};const ue=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function yt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function De(r,t){n.addMessages(r,t)}function vt(r){n.$locale.set(r)}const Le={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-D2ywCP0m.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-iz7w5_Sb.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-BQOM6Olb.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-C7ixf9YD.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function kt(r){n.append_styles(r,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function St(r){let t,e,i,o,s,a,u,c=r[25]&&Ie(r);function p(m,_){if(!m[15])return jt;if(m[24]!="Closed"&&m[24]!="Closing")return Et;if(m[2]=="true")return Ft}let h=p(r),f=h&&h(r),d=(r[18]||r[20])&&Ue(r),g=r[3]=="true"&&Je(r);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),i=n.space(),o=n.element("div"),f&&f.c(),s=n.space(),d&&d.c(),a=n.space(),g&&g.c(),u=n.empty(),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[24]),n.set_custom_element_data(e,"startdate",r[22]),n.set_custom_element_data(e,"lang",r[7]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"enddate",r[23]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),n.attr(o,"class","TournamentButtons"),n.attr(o,"part","TournamentButtons")},m(m,_){c&&c.m(m,_),n.insert(m,t,_),n.insert(m,e,_),n.insert(m,i,_),n.insert(m,o,_),f&&f.m(o,null),n.insert(m,s,_),d&&d.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,u,_)},p(m,_){m[25]?c?c.p(m,_):(c=Ie(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&1024&&n.set_custom_element_data(e,"clientstyling",m[10]),_[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",m[11]),_[0]&4096&&n.set_custom_element_data(e,"translationurl",m[12]),_[0]&16777216&&n.set_custom_element_data(e,"status",m[24]),_[0]&4194304&&n.set_custom_element_data(e,"startdate",m[22]),_[0]&128&&n.set_custom_element_data(e,"lang",m[7]),_[0]&8192&&n.set_custom_element_data(e,"mbsource",m[13]),_[0]&8388608&&n.set_custom_element_data(e,"enddate",m[23]),h===(h=p(m))&&f?f.p(m,_):(f&&f.d(1),f=h&&h(m),f&&(f.c(),f.m(o,null))),m[18]||m[20]?d?d.p(m,_):(d=Ue(m),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),m[3]=="true"?g?g.p(m,_):(g=Je(m),g.c(),g.m(u.parentNode,u)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(i),n.detach(o),n.detach(s),n.detach(a),n.detach(u)),c&&c.d(m),f&&f.d(),d&&d.d(m),g&&g.d(m)}}}function Tt(r){let t,e,i;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e=n.space(),i=n.element("div"),i.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(i,"class","TournamentButtons"),n.attr(i,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,i,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(i))}}}function Ie(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[25]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"mbsource",r[13]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),i||(o=n.action_destroyer(e=r[38].call(null,t,r[25])),i=!0)},p(s,a){a[0]&33554432&&n.set_custom_element_data(t,"tourid",s[25]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&8192&&n.set_custom_element_data(t,"mbsource",s[13]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&33554432&&e.update.call(null,s[25])},d(s){s&&n.detach(t),i=!1,o()}}}function Ft(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(r){let t,e,i=r[2]=="true"&&Me(r);function o(u,c){return u[27]?Pt:zt}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[2]=="true"?i?i.p(u,c):(i=Me(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function jt(r){let t,e=r[33]("login")+"",i,o,s,a=r[33]("register")+"",u,c,p;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(h,f){n.insert(h,t,f),n.append(t,i),n.insert(h,o,f),n.insert(h,s,f),n.append(s,u),c||(p=[n.listen(t,"click",r[34]),n.listen(s,"click",r[35])],c=!0)},p(h,f){f[1]&4&&e!==(e=h[33]("login")+"")&&n.set_data(i,e),f[1]&4&&a!==(a=h[33]("register")+"")&&n.set_data(u,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Me(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function zt(r){let t,e,i,o,s;function a(p,h){return p[17]==!0?Bt:Ct}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[6]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[6]?"JoinButtonFullSize":"")),t.disabled=r[18]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",r[49]),o=!0)},p(p,h){u===(u=a(p))&&c?c.p(p,h):(c.d(1),c=u(p),c&&(c.c(),c.m(t,null))),h[0]&64&&e!==(e="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&64&&i!==(i="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),h[0]&262144&&(t.disabled=p[18])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function Pt(r){let t,e=r[2]=="true"&&Re(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[2]=="true"?e?e.p(i,o):(e=Re(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function Ct(r){let t,e=r[33]("join")+"",i,o,s,a,u,c,p,h;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),p=n.svg_element("g"),h=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(h,"class","a"),n.attr(h,"part","a JoinButtonSvgA"),n.attr(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(h,"transform","translate(26 26) rotate(180)"),n.attr(p,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(f,d){n.insert(f,t,d),n.append(t,i),n.insert(f,o,d),n.insert(f,s,d),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,p),n.append(p,h)},p(f,d){d[1]&4&&e!==(e=f[33]("join")+"")&&n.set_data(i,e)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s))}}}function Bt(r){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function Re(r){let t,e=r[33]("enrolled")+"",i;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,i)},p(o,s){s[1]&4&&e!==(e=o[33]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Ue(r){let t,e=r[33]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[19]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&4&&e!==(e=a[33]("joinerror")+"")&&n.set_data(i,e),u[0]&524288&&n.set_data(s,a[19])},d(a){a&&n.detach(t)}}}function Je(r){let t,e,i=r[16]&&We();return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"tournamenturl",r[1]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"lang",r[7]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[16]?i||(i=We(),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&2&&n.set_custom_element_data(e,"tournamenturl",o[1]),s[0]&8192&&n.set_custom_element_data(e,"mbsource",o[13]),s[0]&128&&n.set_custom_element_data(e,"lang",o[7])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function We(r){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,i){n.insert(e,t,i)},d(e){e&&n.detach(t)}}}function xt(r){let t,e,i,o,s,a,u;function c(f,d){return f[16]?Tt:St}let p=c(r),h=p(r);return{c(){t=n.element("div"),e=n.element("div"),i=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(i,"detailsevent",r[8]),n.set_custom_element_data(i,"userid",r[0]),n.set_custom_element_data(i,"title",r[21]),n.set_custom_element_data(i,"status",r[24]),n.set_custom_element_data(i,"startdate",r[22]),n.set_custom_element_data(i,"tourid",r[25]),n.set_custom_element_data(i,"scorecriteria",r[28]),n.set_custom_element_data(i,"minbetcount",r[29]),n.set_custom_element_data(i,"thumbnail",r[26]),n.set_custom_element_data(i,"showenrolled",r[4]),n.set_custom_element_data(i,"gameurl",r[31]),n.set_custom_element_data(i,"mbsource",r[13]),n.set_custom_element_data(i,"userenrolled",r[27]),n.set_custom_element_data(i,"clientstyling",r[10]),n.set_custom_element_data(i,"clientstylingurl",r[11]),n.set_custom_element_data(i,"translationurl",r[12]),n.set_custom_element_data(i,"lang",r[7]),n.set_custom_element_data(i,"keepbrowsercontext",r[9]),n.set_custom_element_data(i,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(e,"class",s="TournamentCard "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",u=`${r[16]?"Loading":""}`)},m(f,d){n.insert(f,t,d),n.append(t,e),n.append(e,i),n.append(e,o),h.m(e,null),r[50](t)},p(f,d){d[0]&256&&n.set_custom_element_data(i,"detailsevent",f[8]),d[0]&1&&n.set_custom_element_data(i,"userid",f[0]),d[0]&2097152&&n.set_custom_element_data(i,"title",f[21]),d[0]&16777216&&n.set_custom_element_data(i,"status",f[24]),d[0]&4194304&&n.set_custom_element_data(i,"startdate",f[22]),d[0]&33554432&&n.set_custom_element_data(i,"tourid",f[25]),d[0]&268435456&&n.set_custom_element_data(i,"scorecriteria",f[28]),d[0]&536870912&&n.set_custom_element_data(i,"minbetcount",f[29]),d[0]&67108864&&n.set_custom_element_data(i,"thumbnail",f[26]),d[0]&16&&n.set_custom_element_data(i,"showenrolled",f[4]),d[1]&1&&n.set_custom_element_data(i,"gameurl",f[31]),d[0]&8192&&n.set_custom_element_data(i,"mbsource",f[13]),d[0]&134217728&&n.set_custom_element_data(i,"userenrolled",f[27]),d[0]&1024&&n.set_custom_element_data(i,"clientstyling",f[10]),d[0]&2048&&n.set_custom_element_data(i,"clientstylingurl",f[11]),d[0]&4096&&n.set_custom_element_data(i,"translationurl",f[12]),d[0]&128&&n.set_custom_element_data(i,"lang",f[7]),d[0]&512&&n.set_custom_element_data(i,"keepbrowsercontext",f[9]),p===(p=c(f))&&h?h.p(f,d):(h.d(1),h=p(f),h&&(h.c(),h.m(e,null))),d[0]&96|d[1]&2&&s!==(s="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),d[0]&96|d[1]&2&&a!==(a="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),d[0]&65536&&u!==(u=`${f[16]?"Loading":""}`)&&n.attr(t,"class",u)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),h.d(),r[50](null)}}}function Ot(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(33,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:d=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:B=""}=t,{detailsevent:ce=""}=t,{loginurl:x=""}=t,{registerurl:O=""}=t,{currency:N=""}=t,{keepbrowsercontext:fe="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:D=""}=t,{translationurl:L=""}=t,{tournamentinfo:I}=t,{mbsource:M}=t,{tournamentid:X}=t,v,Ve,F=!1,R="",E=!0,de=window.navigator.userAgent,U=!1,J=!1,me="There was an error while trying to join the tournament",Y=!1,K,he,pe,j,k,_e,V,ge,be,we=[],Z=[],ye="#",W=!1;yt({withLocale:"en",translations:{}});const Ze=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{De(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(Le).forEach(l=>{De(l,Le[l])});const ve=l=>{Qe(l),Q(l),Te(this,k)},ke=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(15,F=!0),R=l.data.session,Fe(c)),l.data.type=="UpdateTournamentView"){let b=l.data.tournamentData;if(k&&k!=b.id)return;ve(b)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let b=l.data.tournamentData,y=u<4?u*100:Math.random()*300+300;e(32,W=u==1),setTimeout(()=>{e(32,W=!0),e(25,k=b.id),ve(b)},y),setTimeout(()=>{e(32,W=!1)},y+200)}},Qe=l=>{l.state!=j&&(e(24,j=l.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},$e=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},et=()=>{B&&(window.postMessage({type:B,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),O&&(window.location=O)},tt=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Se=(l,b)=>te(this,null,function*(){var je;e(18,J=!1),e(20,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(17,U=!0);let y=new URL(`${c}/v1/bonus/claim`),T=new Headers,$={};y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),T.append("Content-Type","application/json"),T.append("X-SessionID",R),b&&b.length>=1&&($={language:m,bonusCode:b[0].code,currency:N,type:"tournament"});let z={method:"PUT",headers:T,body:JSON.stringify($)};const Ee=()=>{e(17,U=!1),e(27,V=!0)},ee=w=>{e(17,U=!1),w&&e(19,me=w),e(18,J=!0)},P=yield te(this,null,function*(){let w;try{w=yield fetch(y,z),w=yield w.json()}catch(Lt){ee()}return w});if(P)if(P.success==!0)Ee();else if(P.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(je=w==null?void 0:w.item)!=null&&je.playerEnrolled?Ee():(ee(P.errorMessage),e(20,Y=!0),e(18,J=!1))}else ee(P.errorMessage)}),Te=(l,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:we},window.location.href)},Q=l=>{l&&(e(21,K=l.nameOrTitle||""),e(22,he=l.startTime),e(23,pe=l.endTime),e(24,j=l.state),e(25,k=l.id),e(26,_e=l.thumbnail),e(27,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(28,ge=l.scoreCriteria),e(29,be=l.minBetCount),we=l.prizes,e(30,Z=l.wallets||[]),e(31,ye=l.termsUrl||"#"))},Fe=l=>{e(16,E=!0);const b=l?`${l}/v1/tournaments/${X}`:a,y=new URL(b),T=new Headers;y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),F&&T.append("X-SessionID",R),fetch(y,{method:"GET",headers:T}).then(z=>z.json()).then(z=>{Q(z.item)}).finally(()=>{e(16,E=!1)})},nt=()=>{e(15,F=(o==null?void 0:o.length)>10),F&&(R=o)},rt=()=>{if(I){Q(I);return}e(16,E=!0),Fe(c)};n.onMount(()=>(e(16,E=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ke,!1),()=>{window.removeEventListener("message",ke)}));const it=()=>Se(k,Z);function ot(l){n.binding_callbacks[l?"unshift":"push"](()=>{v=l,e(14,v)})}return r.$$set=l=>{"session"in l&&e(39,o=l.session),"userid"in l&&e(0,s=l.userid),"tournamenturl"in l&&e(1,a=l.tournamenturl),"touridx"in l&&e(40,u=l.touridx),"endpoint"in l&&e(41,c=l.endpoint),"showdetails"in l&&e(2,p=l.showdetails),"showslider"in l&&e(3,h=l.showslider),"showenrolled"in l&&e(4,f=l.showenrolled),"maxwidth"in l&&e(5,d=l.maxwidth),"fullsize"in l&&e(6,g=l.fullsize),"lang"in l&&e(7,m=l.lang),"loginevent"in l&&e(42,_=l.loginevent),"registerevent"in l&&e(43,B=l.registerevent),"detailsevent"in l&&e(8,ce=l.detailsevent),"loginurl"in l&&e(44,x=l.loginurl),"registerurl"in l&&e(45,O=l.registerurl),"currency"in l&&e(46,N=l.currency),"keepbrowsercontext"in l&&e(9,fe=l.keepbrowsercontext),"clientstyling"in l&&e(10,A=l.clientstyling),"clientstylingurl"in l&&e(11,D=l.clientstylingurl),"translationurl"in l&&e(12,L=l.translationurl),"tournamentinfo"in l&&e(47,I=l.tournamentinfo),"mbsource"in l&&e(13,M=l.mbsource),"tournamentid"in l&&e(48,X=l.tournamentid)},r.$$.update=()=>{r.$$.dirty[0]&128&&m&&vt(m),r.$$.dirty[0]&4096&&L&&Ze(),r.$$.dirty[1]&256&&o&&nt(),r.$$.dirty[0]&130&&a&&m&&rt(),r.$$.dirty[0]&17408&&A&&v&&n.setClientStyling(v,A),r.$$.dirty[0]&18432&&D&&v&&n.setClientStylingURL(v,D),r.$$.dirty[0]&24576&&M&&v&&n.setStreamStyling(v,`${M}.Style`,Ve)},[s,a,p,h,f,d,g,m,ce,fe,A,D,L,M,v,F,E,U,J,me,Y,K,he,pe,j,k,_e,V,ge,be,Z,ye,W,i,$e,et,tt,Se,Te,o,u,c,_,B,x,O,N,I,X,it,ot]}class Ke extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Ot,xt,n.safe_not_equal,{session:39,userid:0,tournamenturl:1,touridx:40,endpoint:41,showdetails:2,showslider:3,showenrolled:4,maxwidth:5,fullsize:6,lang:7,loginevent:42,registerevent:43,detailsevent:8,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:47,mbsource:13,tournamentid:48},kt,[-1,-1,-1])}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[0]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[1]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[40]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[2]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[3]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[4]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[5]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[6]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[42]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[43]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get detailsevent(){return this.$$.ctx[8]}set detailsevent(t){this.$$set({detailsevent:t}),n.flush()}get loginurl(){return this.$$.ctx[44]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[45]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[46]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[47]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}get tournamentid(){return this.$$.ctx[48]}set tournamentid(t){this.$$set({tournamentid:t}),n.flush()}}n.create_custom_element(Ke,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{}},[],[],!0);const At=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=At;exports.getDevice=ue;
|
|
16
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function ae(r,t){if(r){var e=r.indexOf(t);0<=e&&r.splice(e,1)}}var G=function(){function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var t,e,i,o,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=ie(a),c=u.next();!c.done;c=u.next()){var p=c.value;p.remove(this)}}catch(_){t={error:_}}finally{try{c&&!c.done&&(e=u.return)&&e.call(u)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(S(h))try{h()}catch(_){s=_ instanceof ne?_.errors:[_]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var d=ie(f),g=d.next();!g.done;g=d.next()){var m=g.value;try{ze(m)}catch(_){s=s!=null?s:[],_ instanceof ne?s=se(se([],oe(s)),oe(_.errors)):s.push(_)}}}catch(_){i={error:_}}finally{try{g&&!g.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}if(s)throw new ne(s)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ze(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ae(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&ae(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=function(){var t=new r;return t.closed=!0,t}(),r}(),qe=G.EMPTY;function Ge(r){return r instanceof G||r&&"closed"in r&&S(r.remove)&&S(r.add)&&S(r.unsubscribe)}function ze(r){S(r)?r():r.unsubscribe()}var st={Promise:void 0},at={setTimeout:function(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return setTimeout.apply(void 0,se([r,t],oe(e)))},clearTimeout:function(r){return clearTimeout(r)},delegate:void 0};function lt(r){at.setTimeout(function(){throw r})}function Pe(){}function q(r){r()}var Ne=function(r){C(t,r);function t(e){var i=r.call(this)||this;return i.isStopped=!1,e?(i.destination=e,Ge(e)&&e.add(i)):i.destination=ft,i}return t.create=function(e,i,o){return new le(e,i,o)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,r.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(G),ut=function(){function r(t){this.partialObserver=t}return r.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(i){H(i)}},r.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(i){H(i)}else H(t)},r.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){H(e)}},r}(),le=function(r){C(t,r);function t(e,i,o){var s=r.call(this)||this,a;return S(e)||!e?a={next:e!=null?e:void 0,error:i!=null?i:void 0,complete:o!=null?o:void 0}:a=e,s.destination=new ut(a),s}return t}(Ne);function H(r){lt(r)}function ct(r){throw r}var ft={closed:!0,next:Pe,error:ct,complete:Pe},dt=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function mt(r){return r}function ht(r){return r.length===0?mt:r.length===1?r[0]:function(e){return r.reduce(function(i,o){return o(i)},e)}}var Ce=function(){function r(t){t&&(this._subscribe=t)}return r.prototype.lift=function(t){var e=new r;return e.source=this,e.operator=t,e},r.prototype.subscribe=function(t,e,i){var o=this,s=_t(t)?t:new le(t,e,i);return q(function(){var a=o,u=a.operator,c=a.source;s.add(u?u.call(s,c):c?o._subscribe(s):o._trySubscribe(s))}),s},r.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},r.prototype.forEach=function(t,e){var i=this;return e=Be(e),new e(function(o,s){var a=new le({next:function(u){try{t(u)}catch(c){s(c),a.unsubscribe()}},error:s,complete:o});i.subscribe(a)})},r.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},r.prototype[dt]=function(){return this},r.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return ht(t)(this)},r.prototype.toPromise=function(t){var e=this;return t=Be(t),new t(function(i,o){var s;e.subscribe(function(a){return s=a},function(a){return o(a)},function(){return i(s)})})},r.create=function(t){return new r(t)},r}();function Be(r){var t;return(t=r!=null?r:st.Promise)!==null&&t!==void 0?t:Promise}function pt(r){return r&&S(r.next)&&S(r.error)&&S(r.complete)}function _t(r){return r&&r instanceof Ne||pt(r)&&Ge(r)}var gt=He(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xe=function(r){C(t,r);function t(){var e=r.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var i=new xe(this,this);return i.operator=e,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new gt},t.prototype.next=function(e){var i=this;q(function(){var o,s;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var a=ie(i.currentObservers),u=a.next();!u.done;u=a.next()){var c=u.value;c.next(e)}}catch(p){o={error:p}}finally{try{u&&!u.done&&(s=a.return)&&s.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(e){var i=this;q(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=e;for(var o=i.observers;o.length;)o.shift().error(e)}})},t.prototype.complete=function(){var e=this;q(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var i=e.observers;i.length;)i.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),r.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var i=this,o=this,s=o.hasError,a=o.isStopped,u=o.observers;return s||a?qe:(this.currentObservers=null,u.push(e),new G(function(){i.currentObservers=null,ae(u,e)}))},t.prototype._checkFinalizedStatuses=function(e){var i=this,o=i.hasError,s=i.thrownError,a=i.isStopped;o?e.error(s):a&&e.complete()},t.prototype.asObservable=function(){var e=new Ce;return e.source=this,e},t.create=function(e,i){return new xe(e,i)},t}(Ce),xe=function(r){C(t,r);function t(e,i){var o=r.call(this)||this;return o.destination=e,o.source=i,o}return t.prototype.next=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.next)===null||o===void 0||o.call(i,e)},t.prototype.error=function(e){var i,o;(o=(i=this.destination)===null||i===void 0?void 0:i.error)===null||o===void 0||o.call(i,e)},t.prototype.complete=function(){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||i===void 0||i.call(e)},t.prototype._subscribe=function(e){var i,o;return(o=(i=this.source)===null||i===void 0?void 0:i.subscribe(e))!==null&&o!==void 0?o:qe},t}(Xe),Ye={now:function(){return(Ye.delegate||Date).now()},delegate:void 0},bt=function(r){C(t,r);function t(e,i,o){e===void 0&&(e=1/0),i===void 0&&(i=1/0),o===void 0&&(o=Ye);var s=r.call(this)||this;return s._bufferSize=e,s._windowTime=i,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=i===1/0,s._bufferSize=Math.max(1,e),s._windowTime=Math.max(1,i),s}return t.prototype.next=function(e){var i=this,o=i.isStopped,s=i._buffer,a=i._infiniteTimeWindow,u=i._timestampProvider,c=i._windowTime;o||(s.push(e),!a&&s.push(u.now()+c)),this._trimBuffer(),r.prototype.next.call(this,e)},t.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(e),o=this,s=o._infiniteTimeWindow,a=o._buffer,u=a.slice(),c=0;c<u.length&&!e.closed;c+=s?1:2)e.next(u[c]);return this._checkFinalizedStatuses(e),i},t.prototype._trimBuffer=function(){var e=this,i=e._bufferSize,o=e._timestampProvider,s=e._buffer,a=e._infiniteTimeWindow,u=(a?1:2)*i;if(i<1/0&&u<s.length&&s.splice(0,s.length-u),!a){for(var c=o.now(),p=0,h=1;h<s.length&&s[h]<=c;h+=2)p=h;p&&s.splice(0,p+1)}},t}(Xe);const Oe=[],Ae={},wt=(r,t=0)=>{if(Oe.indexOf(r)==-1){const e=new bt(t);Ae[r]=e,Oe.push(r)}return Ae[r]};window.emWidgets={topic:wt};const ue=r=>r.toLowerCase().match(/android/i)?"Android":r.toLowerCase().match(/iphone/i)?"iPhone":r.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";String(Number.MAX_SAFE_INTEGER).length;function yt({withLocale:r,translations:t}){n.$locale.subscribe(e=>{e==null&&(n.$dictionary.set(t),n.$locale.set(r))})}function De(r,t){n.addMessages(r,t)}function vt(r){n.$locale.set(r)}const Le={en:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."},hr:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."},"zh-hk":{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi"},ro:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."},el:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},hu:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},pt:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"},"en-us":{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}};if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnail-0jZor3n-.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail")&&customElements.define("casino-tournaments-thumbnail",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailDuration-DZExV6Fi.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-duration")&&customElements.define("casino-tournaments-thumbnail-duration",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailPrizes-DNe_e6ay.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-prizes")&&customElements.define("casino-tournaments-thumbnail-prizes",t.element)})}if(typeof window!="undefined"){let r=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=r(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsThumbnailGamesSlider-CoMWyn3W.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-thumbnail-games-slider")&&customElements.define("casino-tournaments-thumbnail-games-slider",t.element)})}function kt(r){n.append_styles(r,"svelte-1oqyfnf",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.Loading .TournamentCard{background-color:transparent}.Loading .TournamentButtons,.Loading .TournamentPrizes,.Loading .TournamentsGamesSlider{width:100%;display:block;margin:0}.Loading .TournamentButtons .SkeletonRectangle.Skeleton,.Loading .TournamentPrizes .SkeletonRectangle.Skeleton,.Loading .TournamentsGamesSlider .SkeletonRectangle.Skeleton{width:100%}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emw--color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emw--color-contrast, #07072A);width:40%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emw--color-contrast, #07072A);width:100%;height:50px;border:solid var(--emw--color-white, #FFFFFF) 1px;text-align:center;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emw--color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emw--color-green, #48952a);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emw--color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emw--color-white, #FFFFFF);border:solid var(--emw--color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emw--color-contrast, #07072A);border:1px solid var(--emw--color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emw--color-contrast, #07072A), 0) 46%, rgba(var(--emw--color-contrast, #07072A), 0.35) 50%, rgba(var(--emw--color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emw--color-gray-100, #E6E6E6)}.ph-row .big,.ph-row.big div{height:20px}.ph-row .empty{background-color:rgba(var(--emw--color-contrast, #07072A), 0)}.ph-col-2{flex:0 0 16.6666666667%}.ph-col-4{flex:0 0 33.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-10{flex:0 0 83.3333333333%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-avatar{position:relative;width:100%;min-width:60px;overflow:hidden;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.ph-avatar::before{display:block;padding-top:100%;content:" "}.ph-picture{width:100%;height:120px;background-color:var(--emw--color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emw--color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}')}function St(r){let t,e,i,o,s,a,u,c=r[25]&&Ie(r);function p(m,_){if(!m[15])return jt;if(m[24]!="Closed"&&m[24]!="Closing")return Et;if(m[2]=="true")return Ft}let h=p(r),f=h&&h(r),d=(r[18]||r[20])&&Ue(r),g=r[3]=="true"&&Je(r);return{c(){c&&c.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-duration"),i=n.space(),o=n.element("div"),f&&f.c(),s=n.space(),d&&d.c(),a=n.space(),g&&g.c(),u=n.empty(),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"status",r[24]),n.set_custom_element_data(e,"startdate",r[22]),n.set_custom_element_data(e,"lang",r[7]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"enddate",r[23]),n.set_custom_element_data(e,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill"),n.attr(o,"class","TournamentButtons"),n.attr(o,"part","TournamentButtons")},m(m,_){c&&c.m(m,_),n.insert(m,t,_),n.insert(m,e,_),n.insert(m,i,_),n.insert(m,o,_),f&&f.m(o,null),n.insert(m,s,_),d&&d.m(m,_),n.insert(m,a,_),g&&g.m(m,_),n.insert(m,u,_)},p(m,_){m[25]?c?c.p(m,_):(c=Ie(m),c.c(),c.m(t.parentNode,t)):c&&(c.d(1),c=null),_[0]&1024&&n.set_custom_element_data(e,"clientstyling",m[10]),_[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",m[11]),_[0]&4096&&n.set_custom_element_data(e,"translationurl",m[12]),_[0]&16777216&&n.set_custom_element_data(e,"status",m[24]),_[0]&4194304&&n.set_custom_element_data(e,"startdate",m[22]),_[0]&128&&n.set_custom_element_data(e,"lang",m[7]),_[0]&8192&&n.set_custom_element_data(e,"mbsource",m[13]),_[0]&8388608&&n.set_custom_element_data(e,"enddate",m[23]),h===(h=p(m))&&f?f.p(m,_):(f&&f.d(1),f=h&&h(m),f&&(f.c(),f.m(o,null))),m[18]||m[20]?d?d.p(m,_):(d=Ue(m),d.c(),d.m(a.parentNode,a)):d&&(d.d(1),d=null),m[3]=="true"?g?g.p(m,_):(g=Je(m),g.c(),g.m(u.parentNode,u)):g&&(g.d(1),g=null)},d(m){m&&(n.detach(t),n.detach(e),n.detach(i),n.detach(o),n.detach(s),n.detach(a),n.detach(u)),c&&c.d(m),f&&f.d(),d&&d.d(m),g&&g.d(m)}}}function Tt(r){let t,e,i;return{c(){t=n.element("div"),t.innerHTML='<div class="TournamentPrizesIconSection" part="TournamentPrizesIconSection"><ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton></div>',e=n.space(),i=n.element("div"),i.innerHTML='<ui-skeleton structure="rectangle" width="200px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentPrizes"),n.attr(t,"part","TournamentPrizes"),n.attr(i,"class","TournamentButtons"),n.attr(i,"part","TournamentButtons")},m(o,s){n.insert(o,t,s),n.insert(o,e,s),n.insert(o,i,s)},p:n.noop,d(o){o&&(n.detach(t),n.detach(e),n.detach(i))}}}function Ie(r){let t,e,i,o;return{c(){t=n.element("casino-tournaments-thumbnail-prizes"),n.set_custom_element_data(t,"tourid",r[25]),n.set_custom_element_data(t,"clientstyling",r[10]),n.set_custom_element_data(t,"clientstylingurl",r[11]),n.set_custom_element_data(t,"mbsource",r[13]),n.set_custom_element_data(t,"translationurl",r[12]),n.set_custom_element_data(t,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(s,a){n.insert(s,t,a),i||(o=n.action_destroyer(e=r[38].call(null,t,r[25])),i=!0)},p(s,a){a[0]&33554432&&n.set_custom_element_data(t,"tourid",s[25]),a[0]&1024&&n.set_custom_element_data(t,"clientstyling",s[10]),a[0]&2048&&n.set_custom_element_data(t,"clientstylingurl",s[11]),a[0]&8192&&n.set_custom_element_data(t,"mbsource",s[13]),a[0]&4096&&n.set_custom_element_data(t,"translationurl",s[12]),e&&n.is_function(e.update)&&a[0]&33554432&&e.update.call(null,s[25])},d(s){s&&n.detach(t),i=!1,o()}}}function Ft(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsLargeButton"),n.attr(t,"part","DetailsLargeButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function Et(r){let t,e,i=r[2]=="true"&&Me(r);function o(u,c){return u[27]?Pt:zt}let s=o(r),a=s(r);return{c(){i&&i.c(),t=n.space(),a.c(),e=n.empty()},m(u,c){i&&i.m(u,c),n.insert(u,t,c),a.m(u,c),n.insert(u,e,c)},p(u,c){u[2]=="true"?i?i.p(u,c):(i=Me(u),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s===(s=o(u))&&a?a.p(u,c):(a.d(1),a=s(u),a&&(a.c(),a.m(e.parentNode,e)))},d(u){u&&(n.detach(t),n.detach(e)),i&&i.d(u),a.d(u)}}}function jt(r){let t,e=r[33]("login")+"",i,o,s,a=r[33]("register")+"",u,c,p;return{c(){t=n.element("button"),i=n.text(e),o=n.space(),s=n.element("button"),u=n.text(a),n.attr(t,"class","LoginButton"),n.attr(t,"part","LoginButton"),n.attr(s,"class","RegisterButton"),n.attr(s,"part","RegisterButton")},m(h,f){n.insert(h,t,f),n.append(t,i),n.insert(h,o,f),n.insert(h,s,f),n.append(s,u),c||(p=[n.listen(t,"click",r[34]),n.listen(s,"click",r[35])],c=!0)},p(h,f){f[1]&4&&e!==(e=h[33]("login")+"")&&n.set_data(i,e),f[1]&4&&a!==(a=h[33]("register")+"")&&n.set_data(u,a)},d(h){h&&(n.detach(t),n.detach(o),n.detach(s)),c=!1,n.run_all(p)}}}function Me(r){let t,e=r[33]("details")+"",i,o,s;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","DetailsButton"),n.attr(t,"part","DetailsButton")},m(a,u){n.insert(a,t,u),n.append(t,i),o||(s=n.listen(t,"click",function(){n.is_function(r[36].bind(this,r[25]))&&r[36].bind(this,r[25]).apply(this,arguments)}),o=!0)},p(a,u){r=a,u[1]&4&&e!==(e=r[33]("details")+"")&&n.set_data(i,e)},d(a){a&&n.detach(t),o=!1,s()}}}function zt(r){let t,e,i,o,s;function a(p,h){return p[17]==!0?Bt:Ct}let u=a(r),c=u(r);return{c(){t=n.element("button"),c.c(),n.attr(t,"class",e="JoinButton "+(r[6]?"JoinButtonFullSize":"")),n.attr(t,"part",i="JoinButton "+(r[6]?"JoinButtonFullSize":"")),t.disabled=r[18]},m(p,h){n.insert(p,t,h),c.m(t,null),o||(s=n.listen(t,"click",r[49]),o=!0)},p(p,h){u===(u=a(p))&&c?c.p(p,h):(c.d(1),c=u(p),c&&(c.c(),c.m(t,null))),h[0]&64&&e!==(e="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"class",e),h[0]&64&&i!==(i="JoinButton "+(p[6]?"JoinButtonFullSize":""))&&n.attr(t,"part",i),h[0]&262144&&(t.disabled=p[18])},d(p){p&&n.detach(t),c.d(),o=!1,s()}}}function Pt(r){let t,e=r[2]=="true"&&Re(r);return{c(){e&&e.c(),t=n.empty()},m(i,o){e&&e.m(i,o),n.insert(i,t,o)},p(i,o){i[2]=="true"?e?e.p(i,o):(e=Re(i),e.c(),e.m(t.parentNode,t)):e&&(e.d(1),e=null)},d(i){i&&n.detach(t),e&&e.d(i)}}}function Ct(r){let t,e=r[33]("join")+"",i,o,s,a,u,c,p,h;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.svg_element("svg"),a=n.svg_element("defs"),u=n.svg_element("style"),c=n.text(".a{fill:var(--emw--color-white, #FFFFFF);}"),p=n.svg_element("g"),h=n.svg_element("path"),n.attr(t,"part","JoinButtonSpan"),n.attr(h,"class","a"),n.attr(h,"part","a JoinButtonSvgA"),n.attr(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),n.attr(h,"transform","translate(26 26) rotate(180)"),n.attr(p,"transform","translate(26 26) rotate(180)"),n.attr(s,"part","JoinButtonSvg"),n.attr(s,"xmlns","http://www.w3.org/2000/svg"),n.attr(s,"width","26"),n.attr(s,"height","26"),n.attr(s,"viewBox","0 0 26 26")},m(f,d){n.insert(f,t,d),n.append(t,i),n.insert(f,o,d),n.insert(f,s,d),n.append(s,a),n.append(a,u),n.append(u,c),n.append(s,p),n.append(p,h)},p(f,d){d[1]&4&&e!==(e=f[33]("join")+"")&&n.set_data(i,e)},d(f){f&&(n.detach(t),n.detach(o),n.detach(s))}}}function Bt(r){let t,e;return{c(){t=n.svg_element("svg"),e=n.svg_element("circle"),n.attr(e,"cx","20"),n.attr(e,"cy","20"),n.attr(e,"r","18"),n.attr(t,"class","spinner"),n.attr(t,"part","spinner")},m(i,o){n.insert(i,t,o),n.append(t,e)},p:n.noop,d(i){i&&n.detach(t)}}}function Re(r){let t,e=r[33]("enrolled")+"",i;return{c(){t=n.element("button"),i=n.text(e),n.attr(t,"class","EnrolledButton"),n.attr(t,"part","EnrolledButton"),t.disabled=!0},m(o,s){n.insert(o,t,s),n.append(t,i)},p(o,s){s[1]&4&&e!==(e=o[33]("enrolled")+"")&&n.set_data(i,e)},d(o){o&&n.detach(t)}}}function Ue(r){let t,e=r[33]("joinerror")+"",i,o,s;return{c(){t=n.element("span"),i=n.text(e),o=n.space(),s=n.text(r[19]),n.attr(t,"class","ErrorText"),n.attr(t,"part","ErrorText")},m(a,u){n.insert(a,t,u),n.append(t,i),n.append(t,o),n.append(t,s)},p(a,u){u[1]&4&&e!==(e=a[33]("joinerror")+"")&&n.set_data(i,e),u[0]&524288&&n.set_data(s,a[19])},d(a){a&&n.detach(t)}}}function Je(r){let t,e,i=r[16]&&We();return{c(){i&&i.c(),t=n.space(),e=n.element("casino-tournaments-thumbnail-games-slider"),n.set_custom_element_data(e,"clientstyling",r[10]),n.set_custom_element_data(e,"clientstylingurl",r[11]),n.set_custom_element_data(e,"translationurl",r[12]),n.set_custom_element_data(e,"tournamenturl",r[1]),n.set_custom_element_data(e,"mbsource",r[13]),n.set_custom_element_data(e,"lang",r[7]),n.set_custom_element_data(e,"scrollby","2"),n.set_custom_element_data(e,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(o,s){i&&i.m(o,s),n.insert(o,t,s),n.insert(o,e,s)},p(o,s){o[16]?i||(i=We(),i.c(),i.m(t.parentNode,t)):i&&(i.d(1),i=null),s[0]&1024&&n.set_custom_element_data(e,"clientstyling",o[10]),s[0]&2048&&n.set_custom_element_data(e,"clientstylingurl",o[11]),s[0]&4096&&n.set_custom_element_data(e,"translationurl",o[12]),s[0]&2&&n.set_custom_element_data(e,"tournamenturl",o[1]),s[0]&8192&&n.set_custom_element_data(e,"mbsource",o[13]),s[0]&128&&n.set_custom_element_data(e,"lang",o[7])},d(o){o&&(n.detach(t),n.detach(e)),i&&i.d(o)}}}function We(r){let t;return{c(){t=n.element("div"),t.innerHTML='<ui-skeleton structure="rectangle" width="290px" height="80px"></ui-skeleton>',n.attr(t,"class","TournamentsGamesSlider")},m(e,i){n.insert(e,t,i)},d(e){e&&n.detach(t)}}}function xt(r){let t,e,i,o,s,a,u;function c(f,d){return f[16]?Tt:St}let p=c(r),h=p(r);return{c(){t=n.element("div"),e=n.element("div"),i=n.element("casino-tournaments-thumbnail"),o=n.space(),h.c(),n.set_custom_element_data(i,"detailsevent",r[8]),n.set_custom_element_data(i,"userid",r[0]),n.set_custom_element_data(i,"title",r[21]),n.set_custom_element_data(i,"status",r[24]),n.set_custom_element_data(i,"startdate",r[22]),n.set_custom_element_data(i,"tourid",r[25]),n.set_custom_element_data(i,"scorecriteria",r[28]),n.set_custom_element_data(i,"minbetcount",r[29]),n.set_custom_element_data(i,"thumbnail",r[26]),n.set_custom_element_data(i,"showenrolled",r[4]),n.set_custom_element_data(i,"gameurl",r[31]),n.set_custom_element_data(i,"mbsource",r[13]),n.set_custom_element_data(i,"userenrolled",r[27]),n.set_custom_element_data(i,"clientstyling",r[10]),n.set_custom_element_data(i,"clientstylingurl",r[11]),n.set_custom_element_data(i,"translationurl",r[12]),n.set_custom_element_data(i,"lang",r[7]),n.set_custom_element_data(i,"keepbrowsercontext",r[9]),n.set_custom_element_data(i,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),n.attr(e,"class",s="TournamentCard "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(e,"part",a="TournamentCard "+(r[5]?"CardMaxWidth":"")+(r[6]?"CardFullSize":"")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")+" "+(r[32]?"elementToFadeOut":"elementToFadeIn")),n.attr(t,"class",u=`${r[16]?"Loading":""}`)},m(f,d){n.insert(f,t,d),n.append(t,e),n.append(e,i),n.append(e,o),h.m(e,null),r[50](t)},p(f,d){d[0]&256&&n.set_custom_element_data(i,"detailsevent",f[8]),d[0]&1&&n.set_custom_element_data(i,"userid",f[0]),d[0]&2097152&&n.set_custom_element_data(i,"title",f[21]),d[0]&16777216&&n.set_custom_element_data(i,"status",f[24]),d[0]&4194304&&n.set_custom_element_data(i,"startdate",f[22]),d[0]&33554432&&n.set_custom_element_data(i,"tourid",f[25]),d[0]&268435456&&n.set_custom_element_data(i,"scorecriteria",f[28]),d[0]&536870912&&n.set_custom_element_data(i,"minbetcount",f[29]),d[0]&67108864&&n.set_custom_element_data(i,"thumbnail",f[26]),d[0]&16&&n.set_custom_element_data(i,"showenrolled",f[4]),d[1]&1&&n.set_custom_element_data(i,"gameurl",f[31]),d[0]&8192&&n.set_custom_element_data(i,"mbsource",f[13]),d[0]&134217728&&n.set_custom_element_data(i,"userenrolled",f[27]),d[0]&1024&&n.set_custom_element_data(i,"clientstyling",f[10]),d[0]&2048&&n.set_custom_element_data(i,"clientstylingurl",f[11]),d[0]&4096&&n.set_custom_element_data(i,"translationurl",f[12]),d[0]&128&&n.set_custom_element_data(i,"lang",f[7]),d[0]&512&&n.set_custom_element_data(i,"keepbrowsercontext",f[9]),p===(p=c(f))&&h?h.p(f,d):(h.d(1),h=p(f),h&&(h.c(),h.m(e,null))),d[0]&96|d[1]&2&&s!==(s="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"class",s),d[0]&96|d[1]&2&&a!==(a="TournamentCard "+(f[5]?"CardMaxWidth":"")+(f[6]?"CardFullSize":"")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn")+" "+(f[32]?"elementToFadeOut":"elementToFadeIn"))&&n.attr(e,"part",a),d[0]&65536&&u!==(u=`${f[16]?"Loading":""}`)&&n.attr(t,"class",u)},i:n.noop,o:n.noop,d(f){f&&n.detach(t),h.d(),r[50](null)}}}function Ot(r,t,e){let i;n.component_subscribe(r,n.$format,l=>e(33,i=l));let{session:o=""}=t,{userid:s=""}=t,{tournamenturl:a=""}=t,{touridx:u}=t,{endpoint:c=""}=t,{showdetails:p=""}=t,{showslider:h=""}=t,{showenrolled:f=""}=t,{maxwidth:d=""}=t,{fullsize:g=""}=t,{lang:m=""}=t,{loginevent:_=""}=t,{registerevent:B=""}=t,{detailsevent:ce=""}=t,{loginurl:x=""}=t,{registerurl:O=""}=t,{currency:N=""}=t,{keepbrowsercontext:fe="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:D=""}=t,{translationurl:L=""}=t,{tournamentinfo:I}=t,{mbsource:M}=t,{tournamentid:X}=t,v,Ve,F=!1,R="",E=!0,de=window.navigator.userAgent,U=!1,J=!1,me="There was an error while trying to join the tournament",Y=!1,K,he,pe,j,k,_e,V,ge,be,we=[],Z=[],ye="#",W=!1;yt({withLocale:"en",translations:{}});const Ze=()=>{fetch(L).then(b=>b.json()).then(b=>{Object.keys(b).forEach(y=>{De(y,b[y])})}).catch(b=>{console.log(b)})};Object.keys(Le).forEach(l=>{De(l,Le[l])});const ve=l=>{Qe(l),Q(l),Te(this,k)},ke=l=>{if(l.data&&l.data.type=="UserSessionID"&&(e(15,F=!0),R=l.data.session,Fe(c)),l.data.type=="UpdateTournamentView"){let b=l.data.tournamentData;if(k&&k!=b.id)return;ve(b)}if(l.data&&l.data.type==`UpdateSingleTournament_${u}`){let b=l.data.tournamentData,y=u<4?u*100:Math.random()*300+300;e(32,W=u==1),setTimeout(()=>{e(32,W=!0),e(25,k=b.id),ve(b)},y),setTimeout(()=>{e(32,W=!1)},y+200)}},Qe=l=>{l.state!=j&&(e(24,j=l.state),window.postMessage({type:`TournamentStatus_${k}`,status:j},window.location.href))},$e=()=>{_&&(window.postMessage({type:_,transition:"Login"},window.location.href),typeof gtag=="function"&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},et=()=>{B&&(window.postMessage({type:B,transition:"Register"},window.location.href),typeof gtag=="function"&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),O&&(window.location=O)},tt=l=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:l,showLeaderboard:!0},window.location.href)},Se=(l,b)=>te(this,null,function*(){var je;e(18,J=!1),e(20,Y=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:l},window.location.href),e(17,U=!0);let y=new URL(`${c}/v1/bonus/claim`),T=new Headers,$={};y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),T.append("Content-Type","application/json"),T.append("X-SessionID",R),b&&b.length>=1&&($={language:m,bonusCode:b[0].code,currency:N,type:"tournament"});let z={method:"PUT",headers:T,body:JSON.stringify($)};const Ee=()=>{e(17,U=!1),e(27,V=!0)},ee=w=>{e(17,U=!1),w&&e(19,me=w),e(18,J=!0)},P=yield te(this,null,function*(){let w;try{w=yield fetch(y,z),w=yield w.json()}catch(Lt){ee()}return w});if(P)if(P.success==!0)Ee();else if(P.errorMessage.match("VersionMismatchException")){let w;w=yield fetch(`${c}/tournaments/${k}`,{headers:{"X-SessionID":o}}),w=yield w.json(),(je=w==null?void 0:w.item)!=null&&je.playerEnrolled?Ee():(ee(P.errorMessage),e(20,Y=!0),e(18,J=!1))}else ee(P.errorMessage)}),Te=(l,b)=>{window.postMessage({type:`TournamentPrizes_${b}`,prizes:we},window.location.href)},Q=l=>{l&&(e(21,K=l.nameOrTitle||""),e(22,he=l.startTime),e(23,pe=l.endTime),e(24,j=l.state),e(25,k=l.id),e(26,_e=l.thumbnail),e(27,V=l.playerEnrolled==="true"||l.playerEnrolled==!0||!1),e(28,ge=l.scoreCriteria),e(29,be=l.minBetCount),we=l.prizes,e(30,Z=l.wallets||[]),e(31,ye=l.termsUrl||"#"))},Fe=l=>{e(16,E=!0);const b=l?`${l}/v1/tournaments/${X}`:a,y=new URL(b),T=new Headers;y.searchParams.append("language",m),y.searchParams.append("platform",ue(de)),F&&T.append("X-SessionID",R),fetch(y,{method:"GET",headers:T}).then(z=>z.json()).then(z=>{Q(z.item)}).finally(()=>{e(16,E=!1)})},nt=()=>{e(15,F=(o==null?void 0:o.length)>10),F&&(R=o)},rt=()=>{if(I){Q(I);return}e(16,E=!0),Fe(c)};n.onMount(()=>(e(16,E=!K),window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",ke,!1),()=>{window.removeEventListener("message",ke)}));const it=()=>Se(k,Z);function ot(l){n.binding_callbacks[l?"unshift":"push"](()=>{v=l,e(14,v)})}return r.$$set=l=>{"session"in l&&e(39,o=l.session),"userid"in l&&e(0,s=l.userid),"tournamenturl"in l&&e(1,a=l.tournamenturl),"touridx"in l&&e(40,u=l.touridx),"endpoint"in l&&e(41,c=l.endpoint),"showdetails"in l&&e(2,p=l.showdetails),"showslider"in l&&e(3,h=l.showslider),"showenrolled"in l&&e(4,f=l.showenrolled),"maxwidth"in l&&e(5,d=l.maxwidth),"fullsize"in l&&e(6,g=l.fullsize),"lang"in l&&e(7,m=l.lang),"loginevent"in l&&e(42,_=l.loginevent),"registerevent"in l&&e(43,B=l.registerevent),"detailsevent"in l&&e(8,ce=l.detailsevent),"loginurl"in l&&e(44,x=l.loginurl),"registerurl"in l&&e(45,O=l.registerurl),"currency"in l&&e(46,N=l.currency),"keepbrowsercontext"in l&&e(9,fe=l.keepbrowsercontext),"clientstyling"in l&&e(10,A=l.clientstyling),"clientstylingurl"in l&&e(11,D=l.clientstylingurl),"translationurl"in l&&e(12,L=l.translationurl),"tournamentinfo"in l&&e(47,I=l.tournamentinfo),"mbsource"in l&&e(13,M=l.mbsource),"tournamentid"in l&&e(48,X=l.tournamentid)},r.$$.update=()=>{r.$$.dirty[0]&128&&m&&vt(m),r.$$.dirty[0]&4096&&L&&Ze(),r.$$.dirty[1]&256&&o&&nt(),r.$$.dirty[0]&130&&a&&m&&rt(),r.$$.dirty[0]&17408&&A&&v&&n.setClientStyling(v,A),r.$$.dirty[0]&18432&&D&&v&&n.setClientStylingURL(v,D),r.$$.dirty[0]&24576&&M&&v&&n.setStreamStyling(v,`${M}.Style`,Ve)},[s,a,p,h,f,d,g,m,ce,fe,A,D,L,M,v,F,E,U,J,me,Y,K,he,pe,j,k,_e,V,ge,be,Z,ye,W,i,$e,et,tt,Se,Te,o,u,c,_,B,x,O,N,I,X,it,ot]}class Ke extends n.SvelteComponent{constructor(t){super(),n.init(this,t,Ot,xt,n.safe_not_equal,{session:39,userid:0,tournamenturl:1,touridx:40,endpoint:41,showdetails:2,showslider:3,showenrolled:4,maxwidth:5,fullsize:6,lang:7,loginevent:42,registerevent:43,detailsevent:8,loginurl:44,registerurl:45,currency:46,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:12,tournamentinfo:47,mbsource:13,tournamentid:48},kt,[-1,-1,-1])}get session(){return this.$$.ctx[39]}set session(t){this.$$set({session:t}),n.flush()}get userid(){return this.$$.ctx[0]}set userid(t){this.$$set({userid:t}),n.flush()}get tournamenturl(){return this.$$.ctx[1]}set tournamenturl(t){this.$$set({tournamenturl:t}),n.flush()}get touridx(){return this.$$.ctx[40]}set touridx(t){this.$$set({touridx:t}),n.flush()}get endpoint(){return this.$$.ctx[41]}set endpoint(t){this.$$set({endpoint:t}),n.flush()}get showdetails(){return this.$$.ctx[2]}set showdetails(t){this.$$set({showdetails:t}),n.flush()}get showslider(){return this.$$.ctx[3]}set showslider(t){this.$$set({showslider:t}),n.flush()}get showenrolled(){return this.$$.ctx[4]}set showenrolled(t){this.$$set({showenrolled:t}),n.flush()}get maxwidth(){return this.$$.ctx[5]}set maxwidth(t){this.$$set({maxwidth:t}),n.flush()}get fullsize(){return this.$$.ctx[6]}set fullsize(t){this.$$set({fullsize:t}),n.flush()}get lang(){return this.$$.ctx[7]}set lang(t){this.$$set({lang:t}),n.flush()}get loginevent(){return this.$$.ctx[42]}set loginevent(t){this.$$set({loginevent:t}),n.flush()}get registerevent(){return this.$$.ctx[43]}set registerevent(t){this.$$set({registerevent:t}),n.flush()}get detailsevent(){return this.$$.ctx[8]}set detailsevent(t){this.$$set({detailsevent:t}),n.flush()}get loginurl(){return this.$$.ctx[44]}set loginurl(t){this.$$set({loginurl:t}),n.flush()}get registerurl(){return this.$$.ctx[45]}set registerurl(t){this.$$set({registerurl:t}),n.flush()}get currency(){return this.$$.ctx[46]}set currency(t){this.$$set({currency:t}),n.flush()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),n.flush()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),n.flush()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),n.flush()}get translationurl(){return this.$$.ctx[12]}set translationurl(t){this.$$set({translationurl:t}),n.flush()}get tournamentinfo(){return this.$$.ctx[47]}set tournamentinfo(t){this.$$set({tournamentinfo:t}),n.flush()}get mbsource(){return this.$$.ctx[13]}set mbsource(t){this.$$set({mbsource:t}),n.flush()}get tournamentid(){return this.$$.ctx[48]}set tournamentid(t){this.$$set({tournamentid:t}),n.flush()}}n.create_custom_element(Ke,{session:{},userid:{},tournamenturl:{},touridx:{},endpoint:{},showdetails:{},showslider:{},showenrolled:{},maxwidth:{},fullsize:{},lang:{},loginevent:{},registerevent:{},detailsevent:{},loginurl:{},registerurl:{},currency:{},keepbrowsercontext:{},clientstyling:{},clientstylingurl:{},translationurl:{},tournamentinfo:{},mbsource:{},tournamentid:{}},[],[],!0);const At=Object.freeze(Object.defineProperty({__proto__:null,default:Ke},Symbol.toStringTag,{value:"Module"}));exports.CasinoTournamentsThumbnailController_ce=At;exports.getDevice=ue;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as he, a as yt, b as vt, S as _t, i as kt, f as v, s as St, c as Tt, d as Ft, n as ne, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as Et, p as jt, q as zt, r as _e, t as Pt, u as O, v as B, w as Ct, x as U, y as ke, z as x, A as Bt, B as Ot, C as xt, D as At } from "./CasinoTournamentsListController-
|
|
1
|
+
import { $ as he, a as yt, b as vt, S as _t, i as kt, f as v, s as St, c as Tt, d as Ft, n as ne, e as w, g as u, h as p, j as y, k as S, l as T, m as j, o as Et, p as jt, q as zt, r as _e, t as Pt, u as O, v as B, w as Ct, x as U, y as ke, z as x, A as Bt, B as Ot, C as xt, D as At } from "./CasinoTournamentsListController-DngncLEG.js";
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -635,7 +635,7 @@ if (typeof window < "u") {
|
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
};
|
|
638
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
638
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-HapYQiqZ.js").then(({ default: t }) => {
|
|
639
639
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
640
640
|
});
|
|
641
641
|
}
|
|
@@ -651,7 +651,7 @@ if (typeof window < "u") {
|
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
654
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-Z67iwX7z.js").then(({ default: t }) => {
|
|
655
655
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
656
656
|
"casino-tournaments-thumbnail-duration",
|
|
657
657
|
t.element
|
|
@@ -670,7 +670,7 @@ if (typeof window < "u") {
|
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
672
|
};
|
|
673
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
673
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-BGqtQYxy.js").then(({ default: t }) => {
|
|
674
674
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
675
675
|
});
|
|
676
676
|
}
|
|
@@ -686,7 +686,7 @@ if (typeof window < "u") {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
689
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-c2ahzL43.js").then(
|
|
690
690
|
({ default: t }) => {
|
|
691
691
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
692
692
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -14,7 +14,7 @@ var me = (n, t, e) => new Promise((r, i) => {
|
|
|
14
14
|
}, l = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(o, s);
|
|
15
15
|
l((e = e.apply(n, t)).next());
|
|
16
16
|
});
|
|
17
|
-
import { $ as pe, a as _t, b as kt, S as St, i as Tt, s as Ft, f as v, c as Et, n as ne, d as w, e as f, g as p, h as y, j as S, k as T, l as j, m as jt, o as zt, p as Pt, q as ke, r as Bt, t as O, u as C, v as Ct, w as U, x as Se, y as x, z as Ot, A as xt, B as At, C as Dt, D as Lt } from "./CasinoTournamentsListController-
|
|
17
|
+
import { $ as pe, a as _t, b as kt, S as St, i as Tt, s as Ft, f as v, c as Et, n as ne, d as w, e as f, g as p, h as y, j as S, k as T, l as j, m as jt, o as zt, p as Pt, q as ke, r as Bt, t as O, u as C, v as Ct, w as U, x as Se, y as x, z as Ot, A as xt, B as At, C as Dt, D as Lt } from "./CasinoTournamentsListController-B1l9g4hh.js";
|
|
18
18
|
/*! *****************************************************************************
|
|
19
19
|
Copyright (c) Microsoft Corporation.
|
|
20
20
|
|
|
@@ -651,7 +651,7 @@ if (typeof window != "undefined") {
|
|
|
651
651
|
}
|
|
652
652
|
};
|
|
653
653
|
};
|
|
654
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-
|
|
654
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnail-BdHuphKQ.js").then(({ default: t }) => {
|
|
655
655
|
!customElements.get("casino-tournaments-thumbnail") && customElements.define("casino-tournaments-thumbnail", t.element);
|
|
656
656
|
});
|
|
657
657
|
}
|
|
@@ -667,7 +667,7 @@ if (typeof window != "undefined") {
|
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
};
|
|
670
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-
|
|
670
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailDuration-DR1XV1Xz.js").then(({ default: t }) => {
|
|
671
671
|
!customElements.get("casino-tournaments-thumbnail-duration") && customElements.define(
|
|
672
672
|
"casino-tournaments-thumbnail-duration",
|
|
673
673
|
t.element
|
|
@@ -686,7 +686,7 @@ if (typeof window != "undefined") {
|
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
688
|
};
|
|
689
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-
|
|
689
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailPrizes-n4KjOvrb.js").then(({ default: t }) => {
|
|
690
690
|
!customElements.get("casino-tournaments-thumbnail-prizes") && customElements.define("casino-tournaments-thumbnail-prizes", t.element);
|
|
691
691
|
});
|
|
692
692
|
}
|
|
@@ -702,7 +702,7 @@ if (typeof window != "undefined") {
|
|
|
702
702
|
}
|
|
703
703
|
};
|
|
704
704
|
};
|
|
705
|
-
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-
|
|
705
|
+
customElements.define = n(customElements.define), import("./CasinoTournamentsThumbnailGamesSlider-C87BCHTu.js").then(
|
|
706
706
|
({ default: t }) => {
|
|
707
707
|
!customElements.get("casino-tournaments-thumbnail-games-slider") && customElements.define(
|
|
708
708
|
"casino-tournaments-thumbnail-games-slider",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as N, d as k, h as w, k as v, g as l, m as V, o as X, t as M, j as h, r as $, u as j, l as R, p as tt, F as O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsListController-
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as z, c as Q, n as N, d as k, h as w, k as v, g as l, m as V, o as X, t as M, j as h, r as $, u as j, l as R, p as tt, F as O, z as et, A as nt, B as it, C as st, D as rt } from "./CasinoTournamentsListController-B1l9g4hh.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
K(n, t);
|
|
4
4
|
}
|
|
@@ -46,10 +46,10 @@ const q = {
|
|
|
46
46
|
tr: {
|
|
47
47
|
finished: "Bitti",
|
|
48
48
|
starting: "Turnuvaya kalan zaman",
|
|
49
|
-
left: "
|
|
49
|
+
left: "kaldı",
|
|
50
50
|
minutes: "dakika",
|
|
51
51
|
hours: "saat",
|
|
52
|
-
days: "
|
|
52
|
+
days: "gün"
|
|
53
53
|
},
|
|
54
54
|
el: {
|
|
55
55
|
finished: "Ολοκληρωμένα",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./CasinoTournamentsListController-B8c_8tBp.cjs");function z(r,e){t.addMessages(r,e)}const M={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"},"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:"Bitti",starting:"Turnuvaya kalan zaman",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",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"},"en-us":{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}};function L(r){t.append_styles(r,"svelte-6h4bfy","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emw--color-green, #48952a)}")}function E(r){let e,n,a=r[10](r[0])+"",l,u,o,d=r[10](r[1])+"",f,k,y,g,w,h,B;function b(s,_){return s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed"?U:s[5]>0?N:O}let S=b(r),p=S(r);function P(s,_){if(s[2]=="Finished"||s[2]=="Closing"||s[2]=="Closed")return W;if(s[5]>0)return A;if(s[4]>0)return q}let D=P(r),c=D&&D(r);return{c(){e=t.element("div"),n=t.element("div"),l=t.text(a),u=t.space(),o=t.element("div"),f=t.text(d),k=t.space(),y=t.element("div"),g=t.element("div"),p.c(),w=t.space(),c&&c.c(),t.attr(n,"class","StartDate"),t.attr(n,"part","StartDate"),t.attr(o,"class","EndDate"),t.attr(o,"part","EndDate"),t.attr(e,"class","TournamentDates"),t.attr(e,"part","TournamentDates"),t.attr(g,"class","ProgressBar"),t.attr(g,"part","ProgressBar"),t.attr(y,"class","ProgressBarWrapper"),t.attr(y,"part","ProgressBarWrapper")},m(s,_){t.insert(s,e,_),t.append(e,n),t.append(n,l),t.append(e,u),t.append(e,o),t.append(o,f),t.insert(s,k,_),t.insert(s,y,_),t.append(y,g),p.m(g,null),t.append(g,w),c&&c.m(g,null),h||(B=t.action_destroyer(r[9].call(null,y)),h=!0)},p(s,_){_&1&&a!==(a=s[10](s[0])+"")&&t.set_data(l,a),_&2&&d!==(d=s[10](s[1])+"")&&t.set_data(f,d),S===(S=b(s))&&p?p.p(s,_):(p.d(1),p=S(s),p&&(p.c(),p.m(g,w))),D===(D=P(s))&&c?c.p(s,_):(c&&c.d(1),c=D&&D(s),c&&(c.c(),c.m(g,null)))},d(s){s&&(t.detach(e),t.detach(k),t.detach(y)),p.d(),c&&c.d(),h=!1,B()}}}function O(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFill"),t.attr(e,"part","ProgressBarFill"),t.set_style(e,"width",r[7]()+"%")},m(n,a){t.insert(n,e,a)},p(n,a){a&128&&t.set_style(e,"width",n[7]()+"%")},d(n){n&&t.detach(e)}}}function N(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillStarting"),t.attr(e,"part","ProgressBarFillStarting")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function U(r){let e;return{c(){e=t.element("div"),t.attr(e,"class","ProgressBarFillEnd"),t.attr(e,"part","ProgressBarFillEnd")},m(n,a){t.insert(n,e,a)},p:t.noop,d(n){n&&t.detach(e)}}}function q(r){let e,n,a,l=r[8]("left")+"",u;return{c(){e=t.element("div"),n=t.text(r[6]),a=t.space(),u=t.text(l),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(o,d){t.insert(o,e,d),t.append(e,n),t.append(e,a),t.append(e,u)},p(o,d){d&64&&t.set_data(n,o[6]),d&256&&l!==(l=o[8]("left")+"")&&t.set_data(u,l)},d(o){o&&t.detach(e)}}}function A(r){let e,n=r[8]("starting")+"",a,l,u=r[11](r[5])+"",o;return{c(){e=t.element("div"),a=t.text(n),l=t.space(),o=t.text(u),t.attr(e,"class","Remaining"),t.attr(e,"part","Remaining")},m(d,f){t.insert(d,e,f),t.append(e,a),t.append(e,l),t.append(e,o)},p(d,f){f&256&&n!==(n=d[8]("starting")+"")&&t.set_data(a,n),f&32&&u!==(u=d[11](d[5])+"")&&t.set_data(o,u)},d(d){d&&t.detach(e)}}}function W(r){let e,n=r[8]("finished")+"",a;return{c(){e=t.element("div"),a=t.text(n),t.attr(e,"class","Finished"),t.attr(e,"part","Finished")},m(l,u){t.insert(l,e,u),t.append(e,a)},p(l,u){u&256&&n!==(n=l[8]("finished")+"")&&t.set_data(a,n)},d(l){l&&t.detach(e)}}}function G(r){let e,n=r[0]&&r[1]&&E(r);return{c(){e=t.element("div"),n&&n.c(),t.attr(e,"class","TournamentDuration"),t.attr(e,"part","TournamentDuration")},m(a,l){t.insert(a,e,l),n&&n.m(e,null),r[17](e)},p(a,[l]){a[0]&&a[1]?n?n.p(a,l):(n=E(a),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},i:t.noop,o:t.noop,d(a){a&&t.detach(e),n&&n.d(),r[17](null)}}}function H(r,e,n){let a,l;t.component_subscribe(r,t.$format,i=>n(8,l=i));let{startdate:u=""}=e,{enddate:o=""}=e,{status:d=""}=e,{lang:f="en"}=e,{clientstyling:k=""}=e,{clientstylingurl:y=""}=e,{translationurl:g=""}=e,{mbsource:w}=e,h,B,b="",S="",p="";const P=()=>{fetch(g).then(m=>m.json()).then(m=>{Object.keys(m).forEach(F=>{z(F,m[F])})}).catch(m=>{console.log(m)})};Object.keys(M).forEach(i=>{z(i,M[i])});const D=i=>new Date(i).getTime(),c=(i,m)=>(D(m)-D(i))/(1e3*60),s=()=>{const i=new Date;n(4,b=c(i,o)),n(5,S=c(i,u)),n(6,p=C(b))},_=i=>{const m={month:"long"};let F=new Date(i),T=new Intl.DateTimeFormat(f,m).format(F);return`${F.getDate()} ${T}, ${F.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${F.getUTCFullYear()}`},C=i=>{const m=(T,v)=>T+" "+l(v),F=T=>{const v=Math.floor(T);return v<10?`0${v}`:`${v}`};if(i<1440){const T=i/60,v=i%60,x=(v-Math.floor(v))*60;return[T,v,x].map(I=>F(I)).join(":")}return m(Math.ceil(i/(60*24)),"days")};t.onMount(()=>{window.postMessage({type:"TournamentThumbnailMounted"},window.location.href);const i=setInterval(()=>{u&&o&&s()},1e3);return()=>{clearInterval(i)}});function R(i){t.binding_callbacks[i?"unshift":"push"](()=>{h=i,n(3,h)})}return r.$$set=i=>{"startdate"in i&&n(0,u=i.startdate),"enddate"in i&&n(1,o=i.enddate),"status"in i&&n(2,d=i.status),"lang"in i&&n(12,f=i.lang),"clientstyling"in i&&n(13,k=i.clientstyling),"clientstylingurl"in i&&n(14,y=i.clientstylingurl),"translationurl"in i&&n(15,g=i.translationurl),"mbsource"in i&&n(16,w=i.mbsource)},r.$$.update=()=>{r.$$.dirty&19&&n(7,a=()=>{if(b<=0)return 100;const i=c(u,o),m=100/i;return Math.floor((i-b)*m)}),r.$$.dirty&19&&u&&o&&s()&&C(b),r.$$.dirty&4096&&f&&s(),r.$$.dirty&4112&&f&&C(b),r.$$.dirty&32768&&g&&P(),r.$$.dirty&8200&&k&&h&&t.setClientStyling(h,k),r.$$.dirty&16392&&y&&h&&t.setClientStylingURL(h,y),r.$$.dirty&65544&&w&&h&&t.setStreamStyling(h,`${w}.Style`,B)},[u,o,d,h,b,S,p,a,l,s,_,C,f,k,y,g,w,R]}class j extends t.SvelteComponent{constructor(e){super(),t.init(this,e,H,G,t.safe_not_equal,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15,mbsource:16},L)}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),t.flush()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),t.flush()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),t.flush()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),t.flush()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),t.flush()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),t.flush()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),t.flush()}get mbsource(){return this.$$.ctx[16]}set mbsource(e){this.$$set({mbsource:e}),t.flush()}}t.create_custom_element(j,{startdate:{},enddate:{},status:{},lang:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=j;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as K, S as Y, i as Z, s as J, f as C, d as Q, n as N, e as k, j as w, l as v, h as l, o as V, p as X, u as M, k as h, t as $, v as j, m as R, q as tt, F as O, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsListController-
|
|
1
|
+
import { b as K, S as Y, i as Z, s as J, f as C, d as Q, n as N, e as k, j as w, l as v, h as l, o as V, p as X, u as M, k as h, t as $, v as j, m as R, q as tt, F as O, B as et, C as nt, D as it, c as st, A as rt } from "./CasinoTournamentsListController-DngncLEG.js";
|
|
2
2
|
function U(n, t) {
|
|
3
3
|
K(n, t);
|
|
4
4
|
}
|
|
@@ -46,10 +46,10 @@ const q = {
|
|
|
46
46
|
tr: {
|
|
47
47
|
finished: "Bitti",
|
|
48
48
|
starting: "Turnuvaya kalan zaman",
|
|
49
|
-
left: "
|
|
49
|
+
left: "kaldı",
|
|
50
50
|
minutes: "dakika",
|
|
51
51
|
hours: "saat",
|
|
52
|
-
days: "
|
|
52
|
+
days: "gün"
|
|
53
53
|
},
|
|
54
54
|
el: {
|
|
55
55
|
finished: "Ολοκληρωμένα",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, h as q, k as N, m as Te, o as Fe, G as K, H as Be, v as le, I as C, F as Z, j as v, J as Pe, w as A, l as D, g as o, K as Me, p as G, t as Ee, E as Q, u as je, z as ze, A as Ae, B as He, C as Le, D as Ce } from "./CasinoTournamentsListController-
|
|
2
|
-
import { g as De } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as be, S as ve, i as ke, s as Ne, f as T, c as Se, n as Y, d as W, h as q, k as N, m as Te, o as Fe, G as K, H as Be, v as le, I as C, F as Z, j as v, J as Pe, w as A, l as D, g as o, K as Me, p as G, t as Ee, E as Q, u as je, z as ze, A as Ae, B as He, C as Le, D as Ce } from "./CasinoTournamentsListController-B1l9g4hh.js";
|
|
2
|
+
import { g as De } from "./CasinoTournamentsThumbnailController-CTIYOwlX.js";
|
|
3
3
|
function V(e, n) {
|
|
4
4
|
be(e, n);
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-B8c_8tBp.cjs"),ie=require("./CasinoTournamentsThumbnailController-BO2iRvy8.cjs");function D(t,l){e.addMessages(t,l)}const I={en:{playNow:"Play now"},hr:{playNow:"Započni sada"},"zh-hk":{playNow:"现在播放"},fr:{playNow:"Joue maintenant"},ro:{playNow:"Joaca acum"},tr:{playNow:"Şimdi oyna"},el:{playNow:"Παίξε τώρα"},es:{playNow:"Jugar Ya"},pt:{playNow:"Jogue agora"},"en-us":{playNow:"Play now"}};function oe(t){e.append_styles(t,"svelte-xgd67c","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emw--color-contrast, #07072A);color:var(--emw--color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emw--color-contrast, #07072A)}.SliderNavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}.NavButton{background:var(--emw--color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emw--color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emw--color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem 0.5rem;color:var(--emw--color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}")}function W(t,l,n){const i=t.slice();return i[49]=l[n],i[51]=n,i}function G(t){let l,n,i,m,d,y,_,s,w,b,h=e.ensure_array_like(t[1]),o=[];for(let a=0;a<h.length;a+=1)o[a]=O(W(t,h,a));return{c(){l=e.element("div"),n=e.element("div"),n.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',i=e.space(),m=e.element("main"),d=e.element("div");for(let a=0;a<o.length;a+=1)o[a].c();_=e.space(),s=e.element("div"),s.innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>',e.attr(n,"class","SliderNavButton"),e.attr(n,"part","SliderNavButton"),e.toggle_class(n,"disabled",t[8]),e.attr(d,"class","items"),e.attr(d,"part","items"),e.set_style(d,"transform","translateX("+t[2]+"px)"),e.add_render_callback(()=>t[29].call(m)),e.attr(s,"class","SliderNavButton"),e.attr(s,"part","SliderNavButton"),e.toggle_class(s,"disabled",t[9]),e.attr(l,"class","TournamentsGamesSlider"),e.attr(l,"part","TournamentsGamesSlider")},m(a,u){e.insert(a,l,u),e.append(l,n),e.append(l,i),e.append(l,m),e.append(m,d);for(let c=0;c<o.length;c+=1)o[c]&&o[c].m(d,null);t[28](d),y=e.add_iframe_resize_listener(m,t[29].bind(m)),e.append(l,_),e.append(l,s),t[31](l),w||(b=[e.listen(n,"click",t[24]),e.listen(s,"click",t[30])],w=!0)},p(a,u){if(u[0]&256&&e.toggle_class(n,"disabled",a[8]),u[0]&23650){h=e.ensure_array_like(a[1]);let c;for(c=0;c<h.length;c+=1){const T=W(a,h,c);o[c]?o[c].p(T,u):(o[c]=O(T),o[c].c(),o[c].m(d,null))}for(;c<o.length;c+=1)o[c].d(1);o.length=h.length}u[0]&4&&e.set_style(d,"transform","translateX("+a[2]+"px)"),u[0]&512&&e.toggle_class(s,"disabled",a[9])},d(a){a&&e.detach(l),e.destroy_each(o,a),t[28](null),y(),t[31](null),w=!1,e.run_all(b)}}}function O(t){let l,n,i=t[10]("playNow")+"",m,d,y,_,s,w,b,h,o,a,u;function c(){return t[25](t[49])}function T(){return t[26](t[51])}return{c(){l=e.element("div"),n=e.element("span"),m=e.text(i),_=e.space(),s=e.element("img"),o=e.space(),e.attr(n,"class",d="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.attr(n,"part",y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":"")),e.src_url_equal(s.src,w=t[49].thumbnail)||e.attr(s,"src",w),e.attr(s,"width","132px"),e.attr(s,"height","100px"),e.attr(s,"alt",b=t[49].name),e.attr(s,"title",h=t[49].name),e.attr(l,"class","item"),e.attr(l,"part","item")},m(v,g){e.insert(v,l,g),e.append(l,n),e.append(n,m),e.append(l,_),e.append(l,s),e.append(l,o),a||(u=[e.listen(l,"click",c),e.listen(l,"mouseenter",T),e.listen(l,"mouseleave",t[27])],a=!0)},p(v,g){t=v,g[0]&1024&&i!==(i=t[10]("playNow")+"")&&e.set_data(m,i),g[0]&96&&d!==(d="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"class",d),g[0]&96&&y!==(y="PlayNowButton "+(t[5]&&t[6]==t[51]?"itemHover":""))&&e.attr(n,"part",y),g[0]&2&&!e.src_url_equal(s.src,w=t[49].thumbnail)&&e.attr(s,"src",w),g[0]&2&&b!==(b=t[49].name)&&e.attr(s,"alt",b),g[0]&2&&h!==(h=t[49].name)&&e.attr(s,"title",h)},d(v){v&&e.detach(l),a=!1,e.run_all(u)}}}function ce(t){let l,n=t[1]&&t[1].length>0&&G(t);return{c(){l=e.element("div"),n&&n.c()},m(i,m){e.insert(i,l,m),n&&n.m(l,null),t[32](l)},p(i,m){i[1]&&i[1].length>0?n?n.p(i,m):(n=G(i),n.c(),n.m(l,null)):n&&(n.d(1),n=null)},i:e.noop,o:e.noop,d(i){i&&e.detach(l),n&&n.d(),t[32](null)}}}let ue=30;function me(t,l,n){let i,m,d;e.component_subscribe(t,e.$format,r=>n(10,d=r));let{tournamenturl:y=""}=l,{scrollby:_="3"}=l,{pagfactor:s="175"}=l,{lang:w=""}=l,{translationurl:b=""}=l,{clientstyling:h=""}=l,{clientstylingurl:o=""}=l,{mbsource:a}=l,u,c,T=window.navigator.userAgent,v,g=[],f=0,k,C=null,E=null,j=!1,L,P,F=0,S;const J=()=>{fetch(b).then(p=>p.json()).then(p=>{Object.keys(p).forEach(B=>{D(B,p[B])})}).catch(p=>{console.log(p)})};Object.keys(I).forEach(r=>{D(r,I[r])});const z=r=>{n(5,j=!0),n(6,L=r)},A=()=>{n(5,j=!1),n(6,L=-1)},R=r=>r.touches||r.originalEvent.touches,H=r=>{const p=R(r)[0];C=p.clientX,E=p.clientY},q=r=>{if(!C||!E)return;let p=r.touches[0].clientX,B=r.touches[0].clientY,N=C-p,ae=E-B;Math.abs(N)>Math.abs(ae)&&(N>0?M(1):M(-1)),C=null,E=null},M=r=>{r>0&&!m?(n(2,f-=v),n(2,f=f<F?F:f)):r<0&&!i&&(n(2,f+=v),n(2,f=f>0?0:f))},U=r=>{window.postMessage({type:"TournamentGameAction",gameId:r.id,name:r.name,launchUrl:r.launchUrl},window.location.href)},x=()=>{let r=new URL(y),p=new Headers;r.searchParams.append("expand","games"),r.searchParams.append("pagination",`games(limit=${ue},offset=${f})`),r.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),r.searchParams.append("language",w),r.searchParams.append("platform",ie.getDevice(T)),fetch(r,{method:"GET",headers:p}).then(N=>N.json()).then(N=>{n(1,g=N.item.games.items),N.item.games.total})},Y=()=>{k.addEventListener("touchstart",H,{passive:!0}),k.addEventListener("touchmove",q,{passive:!0})},Z=()=>{setTimeout(()=>{n(23,F=(P.scrollWidth-P.clientWidth)*-1),n(16,s=new String(P.scrollWidth/g.length)),v=parseInt(_,10)*parseFloat(s,2).toFixed(2)},1e3)},K=()=>{S>0&&S<Math.floor((parseInt(_)+1)*s)&&n(15,_=Math.ceil(S/s).toString())};e.onMount(()=>(v=parseInt(_,10)*parseInt(s,10),()=>{k.removeEventListener("touchstart",H),k.removeEventListener("touchmove",q)}));const Q=()=>M(-1),V=r=>U(r),$=r=>z(r),ee=()=>A();function te(r){e.binding_callbacks[r?"unshift":"push"](()=>{P=r,n(7,P)})}function ne(){S=this.clientWidth,n(4,S)}const le=()=>M(1);function re(r){e.binding_callbacks[r?"unshift":"push"](()=>{k=r,n(3,k)})}function se(r){e.binding_callbacks[r?"unshift":"push"](()=>{u=r,n(0,u)})}return t.$$set=r=>{"tournamenturl"in r&&n(17,y=r.tournamenturl),"scrollby"in r&&n(15,_=r.scrollby),"pagfactor"in r&&n(16,s=r.pagfactor),"lang"in r&&n(18,w=r.lang),"translationurl"in r&&n(19,b=r.translationurl),"clientstyling"in r&&n(20,h=r.clientstyling),"clientstylingurl"in r&&n(21,o=r.clientstylingurl),"mbsource"in r&&n(22,a=r.mbsource)},t.$$.update=()=>{t.$$.dirty[0]&4&&n(8,i=f===0),t.$$.dirty[0]&8388612&&n(9,m=f<=F),t.$$.dirty[0]&16&&S&&K(),t.$$.dirty[0]&131072&&y&&x(),t.$$.dirty[0]&8&&k&&Y(),t.$$.dirty[0]&524288&&b&&J(),t.$$.dirty[0]&2&&g.length&&Z(),t.$$.dirty[0]&1048577&&h&&u&&e.setClientStyling(u,h),t.$$.dirty[0]&2097153&&o&&u&&e.setClientStylingURL(u,o),t.$$.dirty[0]&4194305&&a&&u&&e.setStreamStyling(u,`${a}.Style`,c)},n(2,f=0),[u,g,f,k,S,j,L,P,i,m,d,z,A,M,U,_,s,y,w,b,h,o,a,F,Q,V,$,ee,te,ne,le,re,se]}class X extends e.SvelteComponent{constructor(l){super(),e.init(this,l,me,ce,e.safe_not_equal,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21,mbsource:22},oe,[-1,-1])}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(l){this.$$set({tournamenturl:l}),e.flush()}get scrollby(){return this.$$.ctx[15]}set scrollby(l){this.$$set({scrollby:l}),e.flush()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(l){this.$$set({pagfactor:l}),e.flush()}get lang(){return this.$$.ctx[18]}set lang(l){this.$$set({lang:l}),e.flush()}get translationurl(){return this.$$.ctx[19]}set translationurl(l){this.$$set({translationurl:l}),e.flush()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(l){this.$$set({clientstyling:l}),e.flush()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(l){this.$$set({clientstylingurl:l}),e.flush()}get mbsource(){return this.$$.ctx[22]}set mbsource(l){this.$$set({mbsource:l}),e.flush()}}e.create_custom_element(X,{tournamenturl:{},scrollby:{},pagfactor:{},lang:{},translationurl:{},clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);exports.default=X;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { b as be, S as ve, i as ke, s as Ne, f as T, d as Se, n as Y, e as W, j as q, l as N, o as Te, p as Fe, G as K, H as Be, w as le, I as C, F as Z, k as v, J as Pe, x as H, m as D, h as o, K as Me, q as G, u as Ee, E as Q, v as je, B as Ae, C as He, D as Le, c as ze, A as Ce } from "./CasinoTournamentsListController-
|
|
2
|
-
import { g as De } from "./CasinoTournamentsThumbnailController-
|
|
1
|
+
import { b as be, S as ve, i as ke, s as Ne, f as T, d as Se, n as Y, e as W, j as q, l as N, o as Te, p as Fe, G as K, H as Be, w as le, I as C, F as Z, k as v, J as Pe, x as H, m as D, h as o, K as Me, q as G, u as Ee, E as Q, v as je, B as Ae, C as He, D as Le, c as ze, A as Ce } from "./CasinoTournamentsListController-DngncLEG.js";
|
|
2
|
+
import { g as De } from "./CasinoTournamentsThumbnailController-C6AhrA4S.js";
|
|
3
3
|
function V(e, n) {
|
|
4
4
|
be(e, n);
|
|
5
5
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as L, S as Z, i as j, s as B, f as _, d as I, n as F, e as T, u as b, j as k, k as d, l as g, m as w, v as P, h as u, o as R, p as O, G as N, H as q, q as D, B as U, C as V, D as W, c as G, A as J } from "./CasinoTournamentsListController-
|
|
1
|
+
import { b as L, S as Z, i as j, s as B, f as _, d as I, n as F, e as T, u as b, j as k, k as d, l as g, m as w, v as P, h as u, o as R, p as O, G as N, H as q, q as D, B as U, C as V, D as W, c as G, A as J } from "./CasinoTournamentsListController-DngncLEG.js";
|
|
2
2
|
function M(l, e) {
|
|
3
3
|
L(l, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsListController-B8c_8tBp.cjs");function y(l,t){e.addMessages(l,t)}const P={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},"en-us":{prizes:"Prizes",noprizes:"No available prizes",place:"place"}};function S(l){e.append_styles(l,"svelte-1bsrm1d","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emw--color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}")}function b(l,t,n){const i=l.slice();return i[12]=t[n],i[14]=n,i}function v(l){let t,n=e.ensure_array_like(l[1]),i=[];for(let r=0;r<n.length;r+=1)i[r]=T(b(l,n,r));let a=null;return n.length||(a=w(l)),{c(){t=e.element("div");for(let r=0;r<i.length;r+=1)i[r].c();a&&a.c(),e.attr(t,"class","Prizes"),e.attr(t,"part","Prizes")},m(r,c){e.insert(r,t,c);for(let s=0;s<i.length;s+=1)i[s]&&i[s].m(t,null);a&&a.m(t,null)},p(r,c){if(c&6){n=e.ensure_array_like(r[1]);let s;for(s=0;s<n.length;s+=1){const d=b(r,n,s);i[s]?i[s].p(d,c):(i[s]=T(d),i[s].c(),i[s].m(t,null))}for(;s<i.length;s+=1)i[s].d(1);i.length=n.length,!n.length&&a?a.p(r,c):n.length?a&&(a.d(1),a=null):(a=w(r),a.c(),a.m(t,null))}},d(r){r&&e.detach(t),e.destroy_each(i,r),a&&a.d()}}}function w(l){let t,n=l[2]("noprizes")+"",i;return{c(){t=e.element("p"),i=e.text(n)},m(a,r){e.insert(a,t,r),e.append(t,i)},p(a,r){r&4&&n!==(n=a[2]("noprizes")+"")&&e.set_data(i,n)},d(a){a&&e.detach(t)}}}function T(l){let t,n,i,a=(l[12].count>1?`${l[12].rank}~${l[12].rank+l[12].count-1}`:l[12].rank)+"",r,c,s=l[2]("place")+"",d,o,u=l[12].name+"",f,z;return{c(){t=e.element("div"),n=e.element("p"),i=e.element("span"),r=e.text(a),c=e.space(),d=e.text(s),o=e.text(": "),f=e.text(u),z=e.space(),e.attr(i,"class","PrizeRank"),e.attr(i,"part","PrizeRank"),e.attr(n,"class","PrizeText"),e.attr(n,"part","PrizeText"),e.attr(t,"class","Prize Prize"+l[14]),e.attr(t,"part","Prize Prize"+l[14])},m(m,h){e.insert(m,t,h),e.append(t,n),e.append(n,i),e.append(i,r),e.append(n,c),e.append(n,d),e.append(n,o),e.append(n,f),e.append(t,z)},p(m,h){h&2&&a!==(a=(m[12].count>1?`${m[12].rank}~${m[12].rank+m[12].count-1}`:m[12].rank)+"")&&e.set_data(r,a),h&4&&s!==(s=m[2]("place")+"")&&e.set_data(d,s),h&2&&u!==(u=m[12].name+"")&&e.set_data(f,u)},d(m){m&&e.detach(t)}}}function F(l){let t,n,i,a,r,c=l[2]("prizes")+"",s,d,o=l[1]&&v(l);return{c(){t=e.element("div"),n=e.element("div"),i=e.element("span"),i.innerHTML='<svg part="TournamentPrizesSvg" xmlns="http://www.w3.org/2000/svg" width="30" height="27.454" viewBox="0 0 30 27.454"><defs><style>.a{fill:var(--emw--color-white, #FFFFFF);}</style></defs><path class="a" part="a TournamentPrizesSvgA" d="M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z" transform="translate(-5.999 -9.76)"></path></svg>',a=e.space(),r=e.element("p"),s=e.text(c),d=e.space(),o&&o.c(),e.attr(i,"class","TournamentPrizesIconWrapper"),e.attr(i,"part","TournamentPrizesIconWrapper"),e.attr(r,"class","PrizesTitle"),e.attr(r,"part","PrizesTitle"),e.attr(n,"class","TournamentPrizesIconSection"),e.attr(n,"part","TournamentPrizesIconSection"),e.attr(t,"class","TournamentPrizes"),e.attr(t,"part","TournamentPrizes")},m(u,f){e.insert(u,t,f),e.append(t,n),e.append(n,i),e.append(n,a),e.append(n,r),e.append(r,s),e.append(t,d),o&&o.m(t,null),l[8](t)},p(u,[f]){f&4&&c!==(c=u[2]("prizes")+"")&&e.set_data(s,c),u[1]?o?o.p(u,f):(o=v(u),o.c(),o.m(t,null)):o&&(o.d(1),o=null)},i:e.noop,o:e.noop,d(u){u&&e.detach(t),o&&o.d(),l[8](null)}}}function M(l,t,n){let i;e.component_subscribe(l,e.$format,p=>n(2,i=p));let{tourid:a=""}=t,{clientstyling:r=""}=t,{clientstylingurl:c=""}=t,{translationurl:s=""}=t,{mbsource:d}=t,o,u,f;const z=()=>{fetch(s).then(g=>g.json()).then(g=>{Object.keys(g).forEach(_=>{y(_,g[_])})}).catch(g=>{console.log(g)})};Object.keys(P).forEach(p=>{y(p,P[p])});const m=p=>{p.data&&p.data.type==`TournamentPrizes_${a}`&&n(1,f=p.data.prizes)};e.onMount(()=>(window.postMessage({type:"TournamentThumbnailMounted"},window.location.href),window.addEventListener("message",m,!1),()=>{window.removeEventListener("message",m)}));function h(p){e.binding_callbacks[p?"unshift":"push"](()=>{o=p,n(0,o)})}return l.$$set=p=>{"tourid"in p&&n(3,a=p.tourid),"clientstyling"in p&&n(4,r=p.clientstyling),"clientstylingurl"in p&&n(5,c=p.clientstylingurl),"translationurl"in p&&n(6,s=p.translationurl),"mbsource"in p&&n(7,d=p.mbsource)},l.$$.update=()=>{l.$$.dirty&17&&r&&o&&e.setClientStyling(o,r),l.$$.dirty&33&&c&&o&&e.setClientStylingURL(o,c),l.$$.dirty&129&&d&&o&&e.setStreamStyling(o,`${d}.Style`,u),l.$$.dirty&64&&s&&z()},[o,f,i,a,r,c,s,d,h]}class k extends e.SvelteComponent{constructor(t){super(),e.init(this,t,M,F,e.safe_not_equal,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6,mbsource:7},S)}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),e.flush()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),e.flush()}get mbsource(){return this.$$.ctx[7]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(k,{tourid:{},clientstyling:{},clientstylingurl:{},translationurl:{},mbsource:{}},[],[],!0);exports.default=k;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as L, S as Z, i as j, s as B, f as _, c as I, n as F, d as T, t as b, h as k, j as d, k as g, l as w, u as P, g as u, m as R, o as O, G as N, H as D, p as U, z as V, A as W, B as q, C as G, D as J } from "./CasinoTournamentsListController-
|
|
1
|
+
import { b as L, S as Z, i as j, s as B, f as _, c as I, n as F, d as T, t as b, h as k, j as d, k as g, l as w, u as P, g as u, m as R, o as O, G as N, H as D, p as U, z as V, A as W, B as q, C as G, D as J } from "./CasinoTournamentsListController-B1l9g4hh.js";
|
|
2
2
|
function M(l, e) {
|
|
3
3
|
L(l, e);
|
|
4
4
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsListController-B8c_8tBp.cjs")).then(e=>e.CasinoTournamentsListController_ce).then(({default:e})=>{!customElements.get("casino-tournaments-list-controller")&&customElements.define("casino-tournaments-list-controller",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsListController-B1l9g4hh.js").then((e) => e.L).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-list-controller") && customElements.define("casino-tournaments-list-controller", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED