@everymatrix/casino-tournaments-list-controller 0.0.372 → 0.0.374
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function b(){}function E(e){return e()}function x(){return Object.create(null)}function P(e){e.forEach(E)}function k(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let M,D;function I(e,t){return(M=M||document.createElement("a")).href=t,e===M.href}function Y(e,...t){if(null==e)return b;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function te(e,t,r){e.$$.on_destroy.push(Y(t,r))}function A(e){return e&&k(e.destroy)?e.destroy:b}function C(e,t){e.appendChild(t)}function O(e,t,r){e.insertBefore(t,r||null)}function B(e){e.parentNode.removeChild(e)}function U(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function N(e){return document.createElement(e)}function d(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function H(e){return document.createTextNode(e)}function R(){return H(" ")}function z(){return H("")}function F(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function L(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:L(e,t,r)}function $(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function f(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function G(e,t,r){e.classList[r?"add":"remove"](t)}function j(e){const t={};for(const r of e)t[r.name]=r.value;return t}function W(e){D=e}function re(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const V=[],J=[],Z=[],X=[],K=Promise.resolve();let q=!1;function Q(e){Z.push(e)}const ne=new Set;let ie=0;function g(){const e=D;do{for(;ie<V.length;){const e=V[ie];ie++,W(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),P(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(Q))}for(W(null),V.length=0,ie=0;J.length;)J.pop()();for(let e=0;e<Z.length;e+=1){const n=Z[e];ne.has(n)||(ne.add(n),n())}}while(Z.length=0,V.length);for(;X.length;)X.pop()();q=!1,ne.clear(),W(e)}const se=new Set;function oe(n,e,t,r,i,s,o,a=[-1]){var l=D;W(n);const u=n.$$={fragment:null,ctx:null,props:s,update:b,not_equal:i,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:x(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let h=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),h&&(r=e,-1===(e=n).$$.dirty[0]&&(V.push(e),q||(q=!0,K.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),h=!0,P(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){s=e.target;const b=Array.from(s.childNodes);u.fragment&&u.fragment.l(b),b.forEach(B)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));{var c=n;o=e.target;t=e.anchor;r=e.customElement;const{fragment:d,on_mount:f,on_destroy:m,after_update:p}=c.$$;d&&d.m(o,t),r||Q(()=>{var e=f.map(E).filter(k);m?m.push(...e):P(e),c.$$.on_mount=[]}),p.forEach(Q)}g()}W(l)}let e;function Ar(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(E).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(P(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=b}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});Cr=ae={path:void 0,exports:{},require:function(e,t){return Ar(null==t&&ae.path)}},ae.exports,Cr.exports=function(){var R;function m(){return R.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function a(e){return void 0===e}function $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function I(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var r=[],n=e.length,i=0;i<n;++i)r.push(t(e[i],i));return r}function U(e,t){for(var r in t)p(t,r)&&(e[r]=t[r]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,r,n){return Ct(e,t,r,n,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function z(e){if(null==e._isValid){var t=g(e),r=j.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function G(e){var t=u(NaN);return null!=e?U(g(t),e):g(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},W=m.momentProperties=[],V=!1;function J(e,t){var r,n,i,s=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(r=0;r<s;r++)a(i=t[n=W[r]])||(e[n]=i);return e}function Z(e){J(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),a){for(var e,t,r=[],n=arguments.length,i=0;i<n;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];r.push(e)}X(s+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var K={};function q(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function h(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var r,n=U({},e);for(r in t)p(t,r)&&(F(e[r])&&F(t[r])?(n[r]={},U(n[r],e[r]),U(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)p(e,r)&&!p(t,r)&&F(e[r])&&(n[r]=U({},n[r]));return n}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)p(e,t)&&r.push(t);return r};function s(e,t,r){var n=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var re=/(\[[^\[]*\])|(\\)?([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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function n(e,t,r,n){var i="string"==typeof n?function(){return this[n]()}:n;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),r&&(se[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(n){for(var e,i=n.match(re),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<s;r++)t+=h(i[r])?i[r].call(e,n):i[r];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=r&&ne.test(e);)e=e.replace(ne,n),ne.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function c(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,r,n={};for(r in e)p(e,r)&&(t=c(r))&&(n[t]=e[r]);return n}var he={};function r(e,t){he[e]=t}function ce(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,r){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,r),this):fe(this,t)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(r=f(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ne(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var i=/\d/,y=/\d\d/,pe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,_e=/\d{1,3}/,we=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,Ee=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _(e,r,n){De[e]=h(r)?r:function(e,t){return e&&n?n:r}}function Me(e,t){return p(De,e)?De[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var De={},Pe={};function T(e,r){var t,n,i=r;for("string"==typeof e&&(e=[e]),$(r)&&(i=function(e,t){t[r]=f(e)}),n=e.length,t=0;t<n;t++)Pe[e[t]]=i}function Ae(e,i){T(e,function(e,t,r,n){r._w=r._w||{},i(e,r._w,r,n)})}var S,E=0,x=1,k=2,M=3,D=4,P=5,Ce=6,Oe=7,Be=8;function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%(r=12)+r)%r;return e+=(t-r)/12,1==r?ce(e)?29:28:31-r%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),_("M",b),_("MM",b,y),_("MMM",function(e,t){return t.monthsShortRegex(e)}),_("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[x]=f(e)-1}),T(["MMM","MMMM"],function(e,t,r,n){n=r._locale.monthsParse(e,n,r._strict);null!=n?t[x]=n:g(r).invalidMonth=e});var He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le=v,$e=v;function Ie(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!$(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function Ye(e){return null!=e?(Ie(this,e),m.updateOffset(this,!0),this):fe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,r=[],n=[],i=[],s=0;s<12;s++)t=u([2e3,s]),r.push(this.monthsShort(t,"")),n.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(r.sort(e),n.sort(e),i.sort(e),s=0;s<12;s++)r[s]=w(r[s]),n[s]=w(n[s]);for(s=0;s<24;s++)i[s]=w(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){return ce(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),_("Y",Ee),_("YY",b,y),_("YYYY",we,ge),_("YYYYY",Te,ye),_("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],E),T("YYYY",function(e,t){t[E]=2===e.length?m.parseTwoDigitYear(e):f(e)}),T("YY",function(e,t){t[E]=m.parseTwoDigitYear(e)}),T("Y",function(e,t){t[E]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)};var Ge=de("FullYear",!0);function je(e,t,r,n,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,n,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,s,o),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,r){r=7+t-r;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function Je(e,t,r,n,i){var s,t=1+7*(t-1)+(7+r-n)%7+Ve(e,n,i),r=t<=0?ze(s=e-1)+t:t>ze(e)?(s=e+1,t-ze(e)):(s=e,t);return{year:s,dayOfYear:r}}function Ze(e,t,r){var n,i,s=Ve(e.year(),t,r),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?n=s+A(i=e.year()-1,t,r):s>A(e.year(),t,r)?(n=s-A(e.year(),t,r),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function A(e,t,r){var n=Ve(e,t,r),t=Ve(e+1,t,r);return(ze(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),_("w",b),_("ww",b,y),_("W",b),_("WW",b,y),Ae(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=f(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),_("d",b),_("e",b),_("E",b),_("dd",function(e,t){return t.weekdaysMinRegex(e)}),_("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_("dddd",function(e,t){return t.weekdaysRegex(e)}),Ae(["dd","ddd","dddd"],function(e,t,r,n){n=r._locale.weekdaysParse(e,n,r._strict);null!=n?t.d=n:g(r).invalidWeekday=e}),Ae(["d","e","E"],function(e,t,r,n){t[n]=f(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,rt=v;function nt(){function e(e,t){return t.length-e.length}for(var t,r,n,i=[],s=[],o=[],a=[],l=0;l<7;l++)n=u([2e3,1]).day(l),t=w(this.weekdaysMin(n,"")),r=w(this.weekdaysShort(n,"")),n=w(this.weekdays(n,"")),i.push(t),s.push(r),o.push(n),a.push(t),a.push(r),a.push(n);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,it),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)}),n("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),r("hour",13),_("a",ot),_("A",ot),_("H",b),_("h",b),_("k",b),_("HH",b,y),_("hh",b,y),_("kk",b,y),_("hmm",be),_("hmmss",ve),_("Hmm",be),_("Hmmss",ve),T(["H","HH"],M),T(["k","kk"],function(e,t,r){e=f(e);t[M]=24===e?0:e}),T(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),T(["h","hh"],function(e,t,r){t[M]=f(e),g(r).bigHour=!0}),T("hmm",function(e,t,r){var n=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n)),g(r).bigHour=!0}),T("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n,2)),t[P]=f(e.substr(i)),g(r).bigHour=!0}),T("Hmm",function(e,t,r){var n=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n))}),T("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n,2)),t[P]=f(e.substr(i))});v=de("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},C={},ut={};function ht(e){return e&&e.toLowerCase().replace("_","-")}function ct(e){for(var t,r,n,i,s=0;s<e.length;){for(t=(i=ht(e[s]).split("-")).length,r=(r=ht(e[s+1]))?r.split("-"):null;0<t;){if(n=dt(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}(i,r)>=t-1)break;t--}s++}return at}function dt(t){var e;if(void 0===C[t]&&Cr&&Cr.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Ar(),ft(e)}catch(e){C[t]=null}return C[t]}function ft(e,t){return e&&((t=a(t)?O(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete C[e],null;var r,n=lt;if(t.abbr=e,null!=C[e])q("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=C[e]._config;else if(null!=t.parentLocale)if(null!=C[t.parentLocale])n=C[t.parentLocale]._config;else{if(null==(r=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;n=r._config}return C[e]=new ee(Q(n,t)),ut[e]&&ut[e].forEach(function(e){mt(e.name,e.config)}),ft(e),C[e]}function O(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=dt(e))return t;e=[e]}return ct(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[k]<1||t[k]>Ne(t[E],t[x])?k:t[M]<0||24<t[M]||24===t[M]&&(0!==t[D]||0!==t[P]||0!==t[Ce])?M:t[D]<0||59<t[D]?D:t[P]<0||59<t[P]?P:t[Ce]<0||999<t[Ce]?Ce:-1,g(e)._overflowDayOfYear&&(t<E||k<t)&&(t=k),g(e)._overflowWeeks&&-1===t&&(t=Oe),g(e)._overflowWeekday&&-1===t&&(t=Be),g(e).overflow=t),e}var gt=/^\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)?)?$/,yt=/^\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)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["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]],_t=[["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/]],wt=/^\/?Date\((-?\d+)/i,Tt=/^(?:(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}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,r,n,i,s,o,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=_t.length;if(l){for(g(e).iso=!0,t=0,r=a;t<r;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],n=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,r=u;t<r;t++)if(_t[t][1].exec(l[3])){s=(l[2]||" ")+_t[t][0];break}if(null==s)return e._isValid=!1}if(!n&&null!=s)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Pt(e)}else e._isValid=!1}function xt(e,t,r,n,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function kt(e){var t,r,n,i,s=Tt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),r=s[1],n=t,i=e,r&&qe.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(r=s[8],n=s[9],i=s[10],r?St[r]:n?0:((r=parseInt(i,10))-(n=r%100))/100*60+n),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,r){return null!=e?e:null!=t?t:r}function Dt(e){var t,r,n,i,s,o,a,l,u,h,c,d=[];if(!e._d){for(h=e,c=new Date(m.now()),r=h._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[k]&&null==e._a[x]&&(null!=(c=(h=e)._w).GG||null!=c.W||null!=c.E?(o=1,a=4,n=Mt(c.GG,h._a[E],Ze(B(),1,4).year),i=Mt(c.W,1),((s=Mt(c.E,1))<1||7<s)&&(l=!0)):(o=h._locale._week.dow,a=h._locale._week.doy,u=Ze(B(),o,a),n=Mt(c.gg,h._a[E],u.year),i=Mt(c.w,u.week),null!=c.d?((s=c.d)<0||6<s)&&(l=!0):null!=c.e?(s=c.e+o,(c.e<0||6<c.e)&&(l=!0)):s=o),i<1||i>A(n,o,a)?g(h)._overflowWeeks=!0:null!=l?g(h)._overflowWeekday=!0:(u=Je(n,i,s,o,a),h._a[E]=u.year,h._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(c=Mt(e._a[E],r[E]),(e._dayOfYear>ze(c)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(c,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=r[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[D]&&0===e._a[P]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?We:je).apply(null,d),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function Pt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,r,n,i=""+e._i,s=i.length,o=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)n=r[l],(t=(i.match(Me(n,e))||[])[0])&&(0<(c=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(c),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[n]?(t?g(e).empty=!1:g(e).unusedTokens.push(n),c=n,f=e,null!=(d=t)&&p(Pe,c)&&Pe[c](d,f._a,f,c)):e._strict&&!t&&g(e).unusedTokens.push(n);g(e).charsLeftOver=s-o,0<i.length&&g(e).unusedInput.push(i),e._a[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(s=e._locale,u=e._a[M],null==(h=e._meridiem)?u:null!=s.meridiemHour?s.meridiemHour(u,h):null!=s.isPM?((s=s.isPM(h))&&u<12&&(u+=12),u=s||12!==u?u:0):u),null!==(h=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(h,e._a[E])),Dt(e),pt(e)}else kt(e);else Et(e);var u,h,c,d,f}function At(e){var t,r=e._i,n=e._f;{var i,s;if(e._locale=e._locale||O(e._l),null===r||void 0===n&&""===r)return G({nullInput:!0});else return"string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new Z(pt(r)):(I(r)?e._d=r:o(n)?function(e){var t,r,n,i,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Pt(t),z(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<n&&(n=s,r=t):(null==n||s<n||o)&&(n=s,r=t,o&&(a=!0));U(e,r||t)}(e):n?Pt(e):a(n=(r=e)._i)?r._d=new Date(m.now()):I(n)?r._d=new Date(n.valueOf()):"string"==typeof n?(i=r,null===(s=wt.exec(i._i))?(Et(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i)))):i._d=new Date(+s[1])):o(n)?(r._a=Y(n.slice(0),function(e){return parseInt(e,10)}),Dt(r)):F(n)?(i=r)._d||(t=void 0===(s=ue(i._i)).day?s.date:s.day,i._a=Y([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Dt(i)):$(n)?r._d=new Date(n):m.createFromInputFallback(r),z(e)||(e._d=null),e)}}function Ct(e,t,r,n,i){var s={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(F(e)&&L(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=e,s._f=t,s._strict=n,(i=new Z(pt(At(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function B(e,t,r,n){return Ct(e,t,r,n,!1)}m.createFromInputFallback=e("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":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:G()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:G()});function Ot(e,t){var r,n;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return B();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=ue(e),t=e.year||0,r=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,r,n=!1,i=Bt.length;for(t in e)if(p(e,t)&&(-1===S.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Bt[r]]){if(n)return!1;parseFloat(e[Bt[r]])!==f(e[Bt[r]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+n+3*r+12*t,this._data={},this._locale=O(),this._bubble()}function Ht(e){return e instanceof Nt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,r){n(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+r+s(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),_("Z",ke),_("ZZ",ke),T(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=$t(ke,e)});var Lt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+f(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||I(e)?e:B(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),m.updateOffset(t,!1),t):B(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var r,n,i=e,s=null;return Ht(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=zt.exec(e))?(r="-"===s[1]?-1:1,i={y:0,d:f(s[k])*r,h:f(s[M])*r,m:f(s[D])*r,s:f(s[P])*r,ms:f(Rt(1e3*s[Ce]))*r}):(s=Gt.exec(e))?(r="-"===s[1]?-1:1,i={y:jt(s[2],r),M:jt(s[3],r),w:jt(s[4],r),d:jt(s[5],r),h:jt(s[6],r),m:jt(s[7],r),s:jt(s[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=B(i.from),s=B(i.to),r=t.isValid()&&s.isValid()?(s=It(s,t),t.isBefore(s)?n=Wt(t,s):((n=Wt(s,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),s=new Nt(i),Ht(e)&&p(e,"_locale")&&(s._locale=e._locale),Ht(e)&&p(e,"_isValid")&&(s._isValid=e._isValid),s}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Vt(n,i){return function(e,t){var r;return null===t||isNaN(+t)||(q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),Jt(this,N(e,t),n),this}}function Jt(e,t,r,n){var i=t._milliseconds,s=Rt(t._days),t=Rt(t._months);e.isValid()&&(n=null==n||n,t&&Ie(e,fe(e,"Month")+t*r),s&&me(e,"Date",fe(e,"Date")+s*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&m.updateOffset(e,s||t))}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};He=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||I(e)||Zt(e)||$(e)||(r=o(t=e),n=!1,r&&(n=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),r&&n)||function(e){var t,r,n=F(e)&&!L(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)r=s[t],i=i||p(e,r);return n&&i}(e)||null==e;var t,r,n}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(1+r,"months")-n)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=O(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function nr(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function ir(e,t){return t.erasAbbrRegex(e)}function sr(){for(var e=[],t=[],r=[],n=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(w(i[s].name)),e.push(w(i[s].abbr)),r.push(w(i[s].narrow)),n.push(w(i[s].name)),n.push(w(i[s].abbr)),n.push(w(i[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")}function or(e,t){n(0,[e,e.length],0,t)}function ar(e,t,r,n,i){var s;return null==e?Ze(this,n,i).year:(t>(s=A(e,n,i))&&(t=s),function(e,t,r,n,i){e=Je(e,t,r,n,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,n,i))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),_("N",ir),_("NN",ir),_("NNN",ir),_("NNNN",function(e,t){return t.erasNameRegex(e)}),_("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){n=r._locale.erasParse(e,n,r._strict);n?g(r).era=n:g(r).invalidEra=e}),_("y",Se),_("yy",Se),_("yyy",Se),_("yyyy",Se),_("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],E),T(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[E]=r._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),or("gggg","weekYear"),or("ggggg","weekYear"),or("GGGG","isoWeekYear"),or("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),_("G",Ee),_("g",Ee),_("GG",b,y),_("gg",b,y),_("GGGG",we,ge),_("gggg",we,ge),_("GGGGG",Te,ye),_("ggggg",Te,ye),Ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=f(e)}),Ae(["gg","GG"],function(e,t,r,n){t[n]=m.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),_("Q",i),T("Q",function(e,t){t[x]=3*(f(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),r("date",9),_("D",b),_("DD",b,y),_("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],k),T("Do",function(e,t){t[k]=f(e.match(b)[0])});we=de("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),_("DDD",_e),_("DDDD",pe),T(["DDD","DDDD"],function(e,t,r){r._dayOfYear=f(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),_("m",b),_("mm",b,y),T(["m","mm"],D);ge=de("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),r("second",15),_("s",b),_("ss",b,y),T(["s","ss"],P);var lr,Te=de("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),_("S",_e,i),_("SS",_e,y),_("SSS",_e,pe),lr="SSSS";lr.length<=9;lr+="S")_(lr,Se);function ur(e,t){t[Ce]=f(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")T(lr,ur);ye=de("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");i=Z.prototype;function hr(e){return e}i.add=He,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<n.length;i+=1)r=r||p(e,n[i]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||B(),r=It(e,this).startOf("day"),r=m.calendarFormat(this,r)||"sameElse",t=t&&(h(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,B(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,r){var n,i,s;if(!this.isValid())return NaN;if(!(n=It(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=c(t)){case"year":s=Kt(this,n)/12;break;case"month":s=Kt(this,n);break;case"quarter":s=Kt(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-i)/864e5;break;case"week":s=(this-n-i)/6048e5;break;default:s=this-n}return r?s:d(s)},i.endOf=function(e){var t,r;if(void 0===(e=c(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?nr:rr,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+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(B(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(B(),e)},i.get=function(e){return h(this[e=c(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,r,n){return e=l(e)?e:B(e),t=l(t)?t:B(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===n[1]?this.isBefore(t,r):!this.isAfter(t,r))},i.isSame=function(e,t){var e=l(e)?e:B(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return z(this)},i.lang=Qe,i.locale=qt,i.localeData=Qt,i.max=ve,i.min=be,i.parsingFlags=function(){return U({},g(this))},i.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)p(e,t)&&r.push({unit:t,priority:he[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=ue(e)),n=r.length,i=0;i<n;i++)this[r[i].unit](e[r[i].unit]);else if(h(this[e=c(e)]))return this[e](t);return this},i.startOf=function(e){var t,r;if(void 0===(e=c(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?nr:rr,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-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},i.subtract=Ke,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){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()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):h(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},i.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",r="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},i.eraYear=function(){for(var e,t,r=this.localeData().eras(),n=0,i=r.length;n<i;++n)if(e=r[n].since<=r[n].until?1:-1,t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return(this.year()-m(r[n].since).year())*e+r[n].offset;return this.year()},i.year=Ge,i.isLeapYear=function(){return ce(this.year())},i.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ye,i.daysInMonth=function(){return Ne(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return A(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return A(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return A(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return A(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},i.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},i.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN;var t,r},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=ge,i.second=i.seconds=Te,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,r){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=$t(ke,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=Yt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,N(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(xe,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?B(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",Ye),i.years=e("years accessor is deprecated. Use year instead",Ge),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return J(t,this),(t=At(t))._a?(e=(t._isUTC?u:B)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o=0;o<n;o++)(r&&e[o]!==t[o]||!r&&f(e[o])!==f(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function cr(e,t,r,n){var i=O(),n=u().set(n,t);return i[r](n,e)}function dr(e,t,r){if($(e)&&(t=e,e=void 0),e=e||"",null!=t)return cr(e,t,r,"month");for(var n=[],i=0;i<12;i++)n[i]=cr(e,i,r,"month");return n}function fr(e,t,r,n){t=("boolean"==typeof e||(r=t=e,e=!1),$(t)&&(r=t,t=void 0),t||"");var i,s=O(),o=e?s._week.dow:0,a=[];if(null!=r)return cr(t,(r+o)%7,n,"day");for(i=0;i<7;i++)a[i]=cr(t,(i+o)%7,n,"day");return a}y.calendar=function(e,t,r){return h(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=hr,y.postformat=hr,y.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return h(i)?i(e,t,r,n):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return h(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)p(e,r)&&(h(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,n=this._eras||O("en")._eras,i=0,s=n.length;i<s;++i)switch("string"==typeof n[i].since&&(r=m(n[i].since).startOf("day"),n[i].since=r.valueOf()),typeof n[i].until){case"undefined":n[i].until=1/0;break;case"string":r=m(n[i].until).startOf("day").valueOf(),n[i].until=r.valueOf()}return n},y.erasParse=function(e,t,r){var n,i,s,o,a,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(s=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(s===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if(0<=[s,o,a].indexOf(e))return l[n]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sr.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sr.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sr.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var n,i;if(this._monthsParseExact)return function(e,t,r){var n,i,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=u([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var n,i;if(this._weekdaysParseExact)return function(e,t,r){var n,i,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=u([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},ft("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;return e+(1===f(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",O);var mr=Math.abs;function pr(e,t,r,n){t=N(t,r);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function gr(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function br(e){return 146097*e/4800}function vr(e){return function(){return this.as(e)}}_e=vr("ms"),pe=vr("s"),He=vr("m"),ve=vr("h"),be=vr("d"),Ke=vr("w"),v=vr("M"),ge=vr("Q"),Te=vr("y");function _r(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_r("milliseconds"),we=_r("seconds"),Ge=_r("minutes"),y=_r("hours"),wr=_r("days"),Tr=_r("months"),Sr=_r("years");var Er=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kr(e,t,r,n){var i=N(e).abs(),s=Er(i.as("s")),o=Er(i.as("m")),a=Er(i.as("h")),l=Er(i.as("d")),u=Er(i.as("M")),h=Er(i.as("w")),i=Er(i.as("y")),s=(s<=r.ss?["s",s]:s<r.s&&["ss",s])||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return(s=(s=null!=r.w?s||h<=1&&["w"]||h<r.w&&["ww",h]:s)||u<=1&&["M"]||u<r.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,s[3]=0<+e,s[4]=n,function(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}.apply(null,s)}var Mr=Math.abs;function Dr(e){return(0<e)-(e<0)||+e}function Pr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,s,o,a=Mr(this._milliseconds)/1e3,l=Mr(this._days),u=Mr(this._months),h=this.asSeconds();return h?(e=d(a/60),t=d(e/60),a%=60,e%=60,r=d(u/12),u%=12,n=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dr(this._months)!==Dr(h)?"-":"",s=Dr(this._days)!==Dr(h)?"-":"",o=Dr(this._milliseconds)!==Dr(h)?"-":"",(h<0?"-":"")+"P"+(r?i+r+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+n+"S":"")):"P0D"}var H=Nt.prototype;return H.isValid=function(){return this._isValid},H.abs=function(){var e=this._data;return this._milliseconds=mr(this._milliseconds),this._days=mr(this._days),this._months=mr(this._months),e.milliseconds=mr(e.milliseconds),e.seconds=mr(e.seconds),e.minutes=mr(e.minutes),e.hours=mr(e.hours),e.months=mr(e.months),e.years=mr(e.years),this},H.add=function(e,t){return pr(this,e,t,1)},H.subtract=function(e,t){return pr(this,e,t,-1)},H.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=c(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(br(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},H.asMilliseconds=_e,H.asSeconds=pe,H.asMinutes=He,H.asHours=ve,H.asDays=be,H.asWeeks=Ke,H.asMonths=v,H.asQuarters=ge,H.asYears=Te,H.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},H._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*gr(br(r)+t),r=t=0),n.milliseconds=e%1e3,e=d(e/1e3),n.seconds=e%60,e=d(e/60),n.minutes=e%60,e=d(e/60),n.hours=e%24,t+=d(e/24),r+=e=d(yr(t)),t-=gr(br(e)),e=d(r/12),r%=12,n.days=t,n.months=r,n.years=e,this},H.clone=function(){return N(this)},H.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},H.milliseconds=ye,H.seconds=we,H.minutes=Ge,H.hours=y,H.days=wr,H.weeks=function(){return d(this.days()/7)},H.months=Tr,H.years=Sr,H.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=xr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(n=Object.assign({},xr,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),t=kr(this,!r,n,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)},H.toISOString=Pr,H.toString=Pr,H.toJSON=Pr,H.locale=qt,H.localeData=Qt,H.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pr),H.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),_("x",Ee),_("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,r){r._d=new Date(f(e))}),m.version="2.29.3",R=B,m.fn=i,m.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},m.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=u,m.unix=function(e){return B(1e3*e)},m.months=function(e,t){return dr(e,t,"months")},m.isDate=I,m.locale=ft,m.invalid=G,m.duration=N,m.isMoment=l,m.weekdays=function(e,t,r){return fr(e,t,r,"weekdays")},m.parseZone=function(){return B.apply(null,arguments).parseZone()},m.localeData=O,m.isDuration=Ht,m.monthsShort=function(e,t){return dr(e,t,"monthsShort")},m.weekdaysMin=function(e,t,r){return fr(e,t,r,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var r,n;return null!=t?(n=lt,null!=C[e]&&null!=C[e].parentLocale?C[e].set(Q(C[e]._config,t)):(t=Q(n=null!=(r=dt(e))?r._config:n,t),null==r&&(t.abbr=e),(n=new ee(t)).parentLocale=C[e],C[e]=n),ft(e)):null!=C[e]&&(null!=C[e].parentLocale?(C[e]=C[e].parentLocale,e===ft()&&ft(e)):null!=C[e]&&delete C[e]),C[e]},m.locales=function(){return te(C)},m.weekdaysShort=function(e,t,r){return fr(e,t,r,"weekdaysShort")},m.normalizeUnits=c,m.relativeTimeRounding=function(e){return void 0===e?Er:"function"==typeof e&&(Er=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==xr[e]&&(void 0===t?xr[e]:(xr[e]=t,"s"===e&&(xr.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.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"},m}();var ae,Cr,le=ae.exports;const ue=[];function he(n,i=b){let s;const o=new Set;function a(e){if(t(n,e)&&(n=e,s)){const e=!ue.length;for(const e of o)e[1](),ue.push(e,n);if(e){for(let e=0;e<ue.length;e+=2)ue[e][0](ue[e+1]);ue.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=b){const r=[e,t];return o.add(r),1===o.size&&(s=i(a)||b),e(n),()=>{o.delete(r),0===o.size&&(s(),s=null)}}}}function ce(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,h=a.length<2;return{subscribe:he(t,t=>{let r=!1;const n=[];let i=0,s=b;const o=()=>{var e;i||(s(),e=a(l?n[0]:n,t),h?t(e):s=k(e)?e:b)},e=u.map((e,t)=>Y(e,e=>{n[t]=e,i&=~(1<<t),r&&o()},()=>{i|=1<<t}));return r=!0,o(),function(){P(e),s()}}).subscribe}}function de(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===fe));var t}var fe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function me(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ve(Array.isArray(e)?[]:{},e,t):e}function pe(e,t,r){return e.concat(t).map(function(e){return me(e,r)})}function ge(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ye(e,t){try{return t in e}catch(e){return!1}}function be(n,i,s){var o={};return s.isMergeableObject(n)&&ge(n).forEach(function(e){o[e]=me(n[e],s)}),ge(i).forEach(function(t){var e,r;(!ye(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ye(n,t)&&s.isMergeableObject(i[t])?o[t]=function(e){if(!e.customMerge)return ve;e=e.customMerge(t);return"function"==typeof e?e:ve}(s)(n[t],i[t],s):o[t]=me(i[t],s))}),o}function ve(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||pe,r.isMergeableObject=r.isMergeableObject||de,r.cloneUnlessOtherwiseSpecified=me;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):be(e,t,r):me(t,r)}ve.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return ve(e,t,r)},{});throw new Error("first argument should be an array")};var _e=ve,we=function(e,t){return(we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p,v,Se,_=function(){return(_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function xe(e){return e.type===v.literal}function ke(e){return e.type===v.number}function Me(e){return e.type===v.date}function De(e){return e.type===v.time}function Pe(e){return e.type===v.select}function Ae(e){return e.type===v.plural}function Ce(e){return e.type===v.tag}function Oe(e){return e&&"object"==typeof e&&e.type===Se.number}function Be(e){return e&&"object"==typeof e&&e.type===Se.dateTime}(r=p=p||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=v=v||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=Se=Se||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ne=/(?:[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;var He=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Re=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fe=/^(@+)?(\+|#+)?[rs]?$/g,Le=/(\*)(0+)|(#+)(0+)|(0+)/g,$e=/^(0+)$/;function Ie(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Fe,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Ye(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 Ue(e){return Ye(e)||{}}function ze(e){for(var o={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=_(_(_({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),Ue(t))},{}));continue;case"engineering":o=_(_(_({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),Ue(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Le,function(e,t,r,n,i,s){if(t)o.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if($e.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Re.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Re,function(e,t,r,n,i,s){return"*"===r?o.minimumFractionDigits=t.length:n&&"#"===n[0]?o.maximumFractionDigits=n.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=_(_({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=_(_({},o),Ie(s)))}else Fe.test(i.stem)?o=_(_({},o),Ie(i.stem)):((s=Ye(i.stem))&&(o=_(_({},o),s)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!$e.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_(_({},o),n)))}return o}var Ge={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var je=new RegExp("^".concat(r.source,"*")),We=new RegExp("".concat(r.source,"*$"));function w(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Ve=!!String.fromCodePoint,Je=!!Object.fromEntries,Ze=!!String.prototype.codePointAt,Xe=!!String.prototype.trimStart,Ke=!!String.prototype.trimEnd,qe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qe=!0;try{Qe="a"===(null==(_t=lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:_t[0])}catch(b){Qe=!1}var et,tt,rt=r?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},nt=Ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,s=0;s<i;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},it=Je?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],s=i[0],i=i[1];t[s]=i}return t},st=Ze?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},ot=Xe?function(e){return e.trimStart()}:function(e){return e.replace(je,"")},at=Ke?function(e){return e.trimEnd()}:function(e){return e.replace(We,"")};function lt(e,t){return new RegExp(e,t)}tt=Qe?(et=lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return et.lastIndex=t,null!=(t=et.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=st(e,t);if(void 0===i||ct(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return nt.apply(void 0,n)};n.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(p.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&ht(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{s=this.clonePosition();this.bump(),n.push({type:v.pound,location:w(s,this.clonePosition())})}}}return{val:n,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(n,"/>"),location:w(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ht(this.char()))return this.error(p.INVALID_TAG,w(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,w(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:n,children:t,location:w(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,w(e,this.clonePosition())))}return this.error(p.UNCLOSED_TAG,w(r,this.clonePosition()))}return this.error(p.INVALID_TAG,w(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=w(r,this.clonePosition());return{val:{type:v.literal,value:n,location:r},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ht(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},n.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return nt.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),nt(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,w(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(p.MALFORMED_ARGUMENT,w(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:n,location:w(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(p.MALFORMED_ARGUMENT,w(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=tt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:w(e,this.clonePosition())}},n.prototype.parseArgumentOptions=function(e,t,r,n){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,w(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(f=at(m.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:w(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var h=w(n,this.clonePosition());if(l&&rt(null==l?void 0:l.style,"::",0)){var c=ot(l.style.slice(2));if("number"===o)return(m=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?m:{val:{type:v.number,value:r,location:h,style:m.val},err:null};if(0===c.length)return this.error(p.EXPECT_DATE_TIME_SKELETON,h);var d=c,f=(this.locale&&(d=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Ge[t||""]||Ge[r||""]||Ge["".concat(r,"-001")]||Ge["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===i?"H":i}return r}(c,this.locale)),{type:Se.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},d.replace(Ne,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}});return{val:{type:"date"===o?v.date:v.time,value:r,location:h,style:f},err:null}}return{val:{type:"number"===o?v.number:"date"===o?v.date:v.time,value:r,location:h,style:null!=(c=null==l?void 0:l.style)?c:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,w(d,_({},d)));this.bumpSpace();var m,f=this.parseIdentifierIfPossible(),h=0;if("select"!==o&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),f=this.parseIdentifierIfPossible(),h=m.val}l=this.tryParsePluralOrSelectOptions(e,o,t,f);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;c=w(n,this.clonePosition());return"select"===o?{val:{type:v.select,value:r,options:it(l.val),location:c},err:null}:{val:{type:v.plural,value:r,options:it(l.val),offset:h,pluralType:"plural"===o?"cardinal":"ordinal",location:c},err:null};default:return this.error(p.INVALID_ARGUMENT_TYPE,w(s,a))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(He).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Se.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ze(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,s=[],o=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var c=this.tryParseArgumentClose(h);if(c.err)return c;s.push([a,{value:u.val,location:w(h,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===s.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(p.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:s,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}n=w(n,this.clonePosition());return i?qe(s*=r)?{val:s,err:null}:this.error(t,n):this.error(e,n)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=st(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},n.prototype.bumpIf=function(e){if(rt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&ct(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var ut=n;function n(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ht(e){return 97<=e&&e<=122||65<=e&&e<=90}function ct(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function dt(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new ut(e,t).parse();if(e.err)throw(r=SyntaxError(p[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Pe(e)||Ae(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ke(e)&&Oe(e.style)||(Me(e)||De(e))&&Be(e.style)?delete e.style.location:Ce(e)&&r(e.children)})}(e.val),e.val}function ft(e,t){var r=t&&t.cache?t.cache:wt,n=t&&t.serializer?t.serializer:yt;return(t&&t.strategy?t.strategy:function(e,t){return gt(e,this,1===e.length?mt:pt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function mt(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function pt(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function gt(e,t,r,n,i){return r.bind(t,e,n,i)}var yt=function(){return JSON.stringify(arguments)};function bt(){this.cache=Object.create(null)}bt.prototype.get=function(e){return this.cache[e]},bt.prototype.set=function(e,t){this.cache[e]=t};var vt,_t,wt={create:function(){return new bt}},Tt={variadic:function(e,t){return gt(e,this,pt,t.cache.create(),t.serializer)},monadic:function(e,t){return gt(e,this,mt,t.cache.create(),t.serializer)}};(_t=vt=vt||{}).MISSING_VALUE="MISSING_VALUE",_t.INVALID_VALUE="INVALID_VALUE",_t.MISSING_INTL_API="MISSING_INTL_API";Te(Nt,kt=Error),Nt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,St,Et,xt,kt,Mt=Nt,Dt=(Te(Bt,xt=Mt),Bt),Pt=(Te(Ot,Et=Mt),Ot),At=(Te(Ct,St=Mt),Ct);function Ct(e,t){return St.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),vt.MISSING_VALUE,t)||this}function Ot(e,t,r){return Et.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),vt.INVALID_VALUE,r)||this}function Bt(e,t,r,n){return xt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),vt.INVALID_VALUE,n)||this}function Nt(e,t,r){e=kt.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Ht(e,t,r,n,i,s,o){if(1===e.length&&xe(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var h=u[l];if(xe(h))a.push({type:T.literal,value:h.value});else if(h.type===v.pound)"number"==typeof s&&a.push({type:T.literal,value:r.getNumberFormat(t).format(s)});else{var c=h.value;if(!(i&&c in i))throw new At(c,o);c=i[c];if(h.type===v.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?T.literal:T.object,value:c});else if(Me(h)){var d="string"==typeof h.style?n.date[h.style]:Be(h.style)?h.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,d).format(c)})}else if(De(h))d="string"==typeof h.style?n.time[h.style]:Be(h.style)?h.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,d).format(c)});else if(ke(h))(d="string"==typeof h.style?n.number[h.style]:Oe(h.style)?h.style.parsedOptions:void 0)&&d.scale&&(c*=d.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,d).format(c)});else{if(Ce(h)){var f=h.children,m=h.value,p=i[m];if("function"!=typeof p)throw new Pt(m,"function",o);m=p(Ht(f,t,r,n,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Pe(h)){if(!(g=h.options[c]||h.options.other))throw new Dt(h.value,c,Object.keys(h.options),o);a.push.apply(a,Ht(g.value,t,r,n,i))}else if(Ae(h)){if(!(g=h.options["=".concat(c)])){if(!Intl.PluralRules)throw new Mt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vt.MISSING_INTL_API,o);var p=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0)),g=h.options[p]||h.options.other}if(!g)throw new Dt(h.value,c,Object.keys(h.options),o);a.push.apply(a,Ht(g.value,t,r,n,i,c-(h.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Rt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(r=T=T||{})[r.literal=0]="literal",r[r.object=1]="object",Object.defineProperty(a,"defaultLocale",{get:function(){return a.memoizedDefaultLocale||(a.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),a.memoizedDefaultLocale},enumerable:!1,configurable:!0}),a.memoizedDefaultLocale=null,a.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},a.__parse=dt,a.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"}}};var Ft=a;function a(e,t,r,n){var i,s,o=this;if(void 0===t&&(t=a.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Ht(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=a.resolveLocale(t),"string"==typeof e){if(this.message=e,!a.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=a.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=a.formats,(s=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=s[t])?_(_(_({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=_(_({},r[t]),n[t]||{}),e},{})):r),e},_({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:ft(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ee([void 0],t,!1)))},{cache:Rt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Tt.variadic}),getDateTimeFormat:ft(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ee([void 0],t,!1)))},{cache:Rt(t.dateTime),strategy:Tt.variadic}),getPluralRules:ft(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ee([void 0],t,!1)))},{cache:Rt(t.pluralRules),strategy:Tt.variadic})}}const s={},Lt=(e,t,r)=>r&&(t in s||(s[t]={}),e in s[t]||(s[t][e]=r),r),$t=(t,r)=>{if(null!=r){if(r in s&&t in s[r])return s[r][t];var n=tr(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Ut(e))return null;e=function(e){return It[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Lt(t,r,i)}}};let It;const Yt=he({});function Ut(e){return e in It}function zt(t,...r){delete s[t],Yt.update(e=>(e[t]=_e.all([e[t]||{},...r]),e))}ce([Yt],([e])=>Object.keys(e)),Yt.subscribe(e=>It=e);const Gt={};function jt(e){return Gt[e]}function Wt(e){return null!=e&&tr(e).some(e=>{return null==(e=jt(e))?void 0:e.size})}const Vt={};function Jt(e){if(!Wt(e))return e in Vt?Vt[e]:Promise.resolve();const t=tr(e).map(e=>{var t=jt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vt[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return Gt[t].delete(r),0===Gt[t].size&&delete Gt[t],e().then(e=>e.default||e)}));return r.then(e=>zt(n,...e))}})).then(()=>{if(Wt(e))return Jt(e);delete Vt[e]}),Vt[e]}function Zt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Xt={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Kt=he(!1);let qt;const Qt=he(null);function er(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function tr(e,t=Xt.fallbackLocale){e=er(e);return t?[...new Set([...e,...er(t)])]:e}function rr(){return null!=qt?qt:void 0}Qt.subscribe(e=>{qt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ee=Object.assign(Object.assign({},Qt),{set:t=>{if(t&&function(e){if(null!=e){var t=tr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Ut(r))return r}}}(t)&&Wt(t)){var r=Xt["loadingDelay"];let e;return"undefined"!=typeof window&&null!=rr()&&r?e=window.setTimeout(()=>Kt.set(!0),r):Kt.set(!0),Jt(t).then(()=>{Qt.set(t)}).finally(()=>{clearTimeout(e),Kt.set(!1)})}return Qt.set(t)}}),nr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},ir=(e,t)=>{var r=Xt["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sr=nr(e=>{var{locale:t,format:r}=e,e=Zt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=ir("number",r)),new Intl.NumberFormat(t,e)}),or=nr(e=>{var{locale:t,format:r}=e,e=Zt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=ir("date",r):0===Object.keys(e).length&&(e=ir("date","short")),new Intl.DateTimeFormat(t,e)}),ar=nr(e=>{var{locale:t,format:r}=e,e=Zt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=ir("time",r):0===Object.keys(e).length&&(e=ir("time","short")),new Intl.DateTimeFormat(t,e)}),lr=nr((e,t=rr())=>new Ft(e,t,Xt.formats,{ignoreTag:Xt.ignoreTag})),ur=ce([ee,Yt],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=rr(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=$t(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=Xt).handleMissingMessage)?void 0:r.call(n,{locale:o,id:e,defaultValue:a}))?r:a)?n:e;if(!s)return l;let u=l;try{u=lr(l,o).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),hr=(ce([ee],()=>(e,t)=>((e={})=>{var{locale:t=rr()}=e,e=Zt(e,["locale"]);return ar(Object.assign({locale:t},e))})(t).format(e)),ce([ee],()=>(e,t)=>((e={})=>{var{locale:t=rr()}=e,e=Zt(e,["locale"]);return or(Object.assign({locale:t},e))})(t).format(e)),ce([ee],()=>(e,t)=>((e={})=>{var{locale:t=rr()}=e,e=Zt(e,["locale"]);return sr(Object.assign({locale:t},e))})(t).format(e)),ce([ee,Yt],()=>(e,t=rr())=>$t(e,t)),{en:{tournamentsList:{nothing:"Nothing to show here."}},zh:{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}});var cr,dr,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==l&&l,fr="URLSearchParams"in l,mr="Symbol"in l&&"iterator"in Symbol,pr="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),gr="FormData"in l,yr="ArrayBuffer"in l;function br(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function vr(e){return e="string"!=typeof e?String(e):e}function _r(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return mr&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function wr(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Tr(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Sr(e){var t=new FileReader,r=Tr(t);return t.readAsArrayBuffer(e),r}function Er(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xr(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:pr&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:gr&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:fr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():yr&&pr&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Er(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):yr&&(ArrayBuffer.prototype.isPrototypeOf(e)||dr(e))?this._bodyArrayBuffer=Er(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):fr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pr&&(this.blob=function(){var e=wr(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?wr(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Sr)}),this.text=function(){var e,t,r=wr(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=Tr(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},gr&&(this.formData=function(){return this.text().then(Dr)}),this.json=function(){return this.text().then(JSON.parse)},this}yr&&(cr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dr=ArrayBuffer.isView||function(e){return e&&-1<cr.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=br(e),t=vr(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[br(e)]},u.prototype.get=function(e){return e=br(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(br(e))},u.prototype.set=function(e,t){this.map[br(e)]=vr(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),_r(r)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),_r(t)},u.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),_r(r)},mr&&(u.prototype[Symbol.iterator]=u.prototype.entries);var kr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Mr(e,t){if(!(this instanceof Mr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Mr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<kr.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Dr(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function h(e,t){if(!(this instanceof h))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}Mr.prototype.clone=function(){return new Mr(this,{body:this._bodyInit})},xr.call(Mr.prototype),xr.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var Pr=[301,302,303,307,308],Or=(h.redirect=function(e,t){if(-1===Pr.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},l.DOMException);try{new Or}catch(b){(Or=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Or.prototype.constructor=Or}function Br(n,o){return new Promise(function(i,e){var t=new Mr(n,o);if(t.signal&&t.signal.aborted)return e(new Or("Aborted","AbortError"));var s=new XMLHttpRequest;function r(){s.abort()}s.onload=function(){var e,r,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",r=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new h(n,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){e(new Or("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?s.withCredentials=!0:"omit"===t.credentials&&(s.withCredentials=!1),"responseType"in s&&(pr?s.responseType="blob":yr&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof u?t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(o.headers).forEach(function(e){s.setRequestHeader(e,vr(o.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",r)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}Br.polyfill=!0,l.fetch||(l.fetch=Br,l.Headers=u,l.Request=Mr,l.Response=h),self.fetch.bind(self);var Nr=function(e,t){return(Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Hr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Nr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Rr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function Lr(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function c(e){return"function"==typeof e}function $r(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ir=$r(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Yr(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}i.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Rr(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(c(s))try{s()}catch(e){i=e instanceof Ir?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Rr(s),u=l.next();!u.done;u=l.next()){var h=u.value;try{jr(h)}catch(e){i=null!=i?i:[],e instanceof Ir?i=Lr(Lr([],Fr(i)),Fr(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Ir(i)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)jr(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Yr(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Yr(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((Ve=new i).closed=!0,Ve);var Ur=i,zr=Ur.EMPTY;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Gr(e){return e instanceof Ur||e&&"closed"in e&&c(e.remove)&&c(e.add)&&c(e.unsubscribe)}function jr(e){c(e)?e():e.unsubscribe()}var Wr=void 0,Vr=!1,Jr=!1,Zr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Zr.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Lr([e,t],Fr(r))):setTimeout.apply(void 0,Lr([e,t],Fr(r)))},clearTimeout:function(e){var t=Zr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Xr(){}var Kr=null;function qr(e){if(Vr){var t=!Kr;if(t&&(Kr={errorThrown:!1,error:null}),e(),t){var t=Kr,r=t.errorThrown,t=t.error;if(Kr=null,r)throw t}}else e()}Hr(o,Qr=Ur),o.create=function(e,t,r){return new on(e,t,r)},o.prototype.next=function(e){this.isStopped||this._next(e)},o.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Qr.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Qr,en=o,tn=Function.prototype.bind;function o(e){var t=Qr.call(this)||this;return t.isStopped=!1,e?Gr(t.destination=e)&&e.add(t):t.destination=hn,t}function rn(e,t){return tn.call(e,t)}ln.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){un(e)}},ln.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){un(e)}else un(e)},ln.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){un(e)}};var nn,sn=ln,on=(Hr(an,nn=en),an);function an(e,t,r){var n=nn.call(this)||this,r=c(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Jr?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&rn(e.next,t),error:e.error&&rn(e.error,t),complete:e.complete&&rn(e.complete,t)}):e;return n.destination=new sn(r),n}function ln(e){this.partialObserver=e}function un(e){var t=e;Zr.setTimeout(function(){throw t})}var hn={closed:!0,next:Xr,error:function(e){throw e},complete:Xr},Je="function"==typeof Symbol&&Symbol.observable||"@@observable";function cn(e){return e}m.prototype.lift=function(e){var t=new m;return t.source=this,t.operator=e,t},m.prototype.subscribe=function(e,t,r){var n,i=this,s=(n=e)&&n instanceof en||n&&c(n.next)&&c(n.error)&&c(n.complete)&&Gr(n)?e:new on(e,t,r);return qr(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},m.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},m.prototype.forEach=function(n,e){var i=this;return new(e=fn(e))(function(e,t){var r=new on({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},m.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},m.prototype[Je]=function(){return this},m.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?cn:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},m.prototype.toPromise=function(e){var n=this;return new(e=fn(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},m.create=function(e){return new m(e)};var dn=m;function m(e){e&&(this._subscribe=e)}function fn(e){return null!=(e=null!=e?e:Wr)?e:Promise}var mn,pn,gn,yn=$r(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ze=(Hr(S,gn=dn),S.prototype.lift=function(e){var t=new bn(this,this);return t.operator=e,t},S.prototype._throwIfClosed=function(){if(this.closed)throw new yn},S.prototype.next=function(i){var s=this;qr(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var r=Rr(s.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},S.prototype.error=function(t){var r=this;qr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},S.prototype.complete=function(){var t=this;qr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},S.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(S.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),S.prototype._trySubscribe=function(e){return this._throwIfClosed(),gn.prototype._trySubscribe.call(this,e)},S.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},S.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?zr:(this.currentObservers=null,i.push(e),new Ur(function(){t.currentObservers=null,Yr(i,e)}))},S.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},S.prototype.asObservable=function(){var e=new dn;return e.source=this,e},S.create=function(e,t){return new bn(e,t)},S),bn=(Hr(Tn,pn=Ze),Tn.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},Tn.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},Tn.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Tn.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:zr},Tn),vn={now:function(){return(vn.delegate||Date).now()},delegate:void 0},_n=(Hr(wn,mn=Ze),wn.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(s.now()+t)),this._trimBuffer(),mn.prototype.next.call(this,e)},wn.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},wn.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},wn);function wn(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=vn);var n=mn.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Tn(e,t){var r=pn.call(this)||this;return r.destination=e,r.source=t,r}function S(){var e=gn.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Sn=[],En={};window.emWidgets={topic:(e,t=0)=>{return-1==Sn.indexOf(e)&&(t=new _n(t),En[e]=t,Sn.push(e)),En[e]}};const xn=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",kn={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯 -"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare în timpul înregistrării în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, por favor, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való feliratkozás során. Kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},Mn={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",mostRounds:"MostRounds",betCount:"BetCount",maxWinStakeRatio:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscrisă",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Terminat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei în/la câștig",winStakeRatio:"Pondere a mizei în/la câștig",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:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"RecuentoDeApuestas",maxWinStakeRatio:"RatioDeGananciaMáxima",winStakeRatio:"RatioDeGanancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{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:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio",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 Dn(r){let n,i,s,o,a,l,u;return{c(){n=N("div"),i=H(r[12]),L(n,"class",s="Status "+r[14]),L(n,"part",o="Status "+r[14])},m(e,t){O(e,n,t),C(n,i),l||(u=A(a=r[17].call(null,n)),l=!0)},p(e,t){4096&t&&$(i,e[12]),16384&t&&s!==(s="Status "+e[14])&&L(n,"class",s),16384&t&&o!==(o="Status "+e[14])&&L(n,"part",o)},d(e){e&&B(n),l=!1,u()}}}function Pn(e){let r,n=e[5]&&An(e);return{c(){n&&n.c(),r=z()},m(e,t){n&&n.m(e,t),O(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=An(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(r)}}}function An(e){let r,n,i=e[15]("tournamentsThumbnail.enrolled")+"";return{c(){r=N("div"),n=H(i),L(r,"class","Enrolled"),L(r,"part","Enrolled")},m(e,t){O(e,r,t),C(r,n)},p(e,t){32768&t&&i!==(i=e[15]("tournamentsThumbnail.enrolled")+"")&&$(n,i)},d(e){e&&B(r)}}}function Cn(r){let n,i,s,o,a;return{c(){L(n=N("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),L(n,"part",s="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){O(e,n,t),o||(a=A(r[17].call(null,n)),o=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"class",i),1&t&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"part",s)},d(e){e&&B(n),o=!1,a()}}}function On(r){let n,i,s,o,a;return{c(){L(n=N("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),L(n,"part",s="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('"+r[4]+"')")},m(e,t){O(e,n,t),o||(a=A(r[17].call(null,n)),o=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"class",i),1&t&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"part",s),16&t&&f(n,"background-image","url('"+e[4]+"')")},d(e){e&&B(n),o=!1,a()}}}function Bn(r){let n,i,s,o,a;return{c(){n=N("div"),i=H(r[10]),L(n,"class","Date"),L(n,"part","Date")},m(e,t){O(e,n,t),C(n,i),o||(a=A(s=r[16].call(null,n,r[2])),o=!0)},p(e,t){1024&t&&$(i,e[10]),s&&k(s.update)&&4&t&&s.update.call(null,e[2])},d(e){e&&B(n),o=!1,a()}}}function Nn(r){let n,i,s,o,a,l,u,h,c,d,f,m,p,g,y,b,v,_,w,T,S,E,x=r[15]("tournamentsThumbnail.scoreCriteria")+"",k=r[15]("tournamentsThumbnail.minbet")+"",M=r[15]("tournamentsThumbnail.seegames")+"",D=r[15]("tournamentsThumbnail.here")+"";return{c(){n=N("div"),i=N("p"),s=H(x),o=H(":\n \n "),a=N("span"),l=H(r[13]),h=H("\n ("),c=H(k),d=R(),f=H(r[6]),m=H(")"),p=R(),g=N("div"),y=N("p"),b=H(M),v=R(),_=N("a"),w=H(D),L(a,"part","ScoreCriteriaSpan"),L(i,"part","ScoreCriteriaP"),L(n,"class","ScoreCriteria"),L(n,"part","ScoreCriteria"),L(_,"part","GamesAnchor"),L(_,"href",r[8]),L(_,"target",T="true"===r[9]?"_self":"_blank"),L(y,"part","GamesP"),L(g,"class","Games"),L(g,"part","Games")},m(e,t){O(e,n,t),C(n,i),C(i,s),C(i,o),C(i,a),C(a,l),C(i,h),C(i,c),C(i,d),C(i,f),C(i,m),O(e,p,t),O(e,g,t),C(g,y),C(y,b),C(y,v),C(y,_),C(_,w),S||(E=[A(u=r[18].call(null,a)),F(_,"click",r[24])],S=!0)},p(e,t){32768&t&&x!==(x=e[15]("tournamentsThumbnail.scoreCriteria")+"")&&$(s,x),8192&t&&$(l,e[13]),32768&t&&k!==(k=e[15]("tournamentsThumbnail.minbet")+"")&&$(c,k),64&t&&$(f,e[6]),32768&t&&M!==(M=e[15]("tournamentsThumbnail.seegames")+"")&&$(b,M),32768&t&&D!==(D=e[15]("tournamentsThumbnail.here")+"")&&$(w,D),256&t&&L(_,"href",e[8]),512&t&&T!==(T="true"===e[9]?"_self":"_blank")&&L(_,"target",T)},d(e){e&&B(n),e&&B(p),e&&B(g),S=!1,P(E)}}}function Hn(e){let r,n,i,s,o,a,l,u,h,c=e[0]&&Dn(e),d="true"==e[7]&&Pn(e);function f(e){return e[4]?On:Cn}let m=f(e),p=m(e),g=e[2]&&Bn(e),y=e[11]&&Nn(e);return{c(){r=N("div"),c&&c.c(),n=R(),d&&d.c(),i=R(),p.c(),s=R(),o=N("div"),a=N("div"),l=H(e[1]),u=R(),g&&g.c(),h=R(),y&&y.c(),this.c=b,L(a,"class","Title"),L(a,"part","Title"),L(o,"class","Details"),L(o,"part","Details"),L(r,"class","Thumbnail"),L(r,"part","Thumbnail")},m(e,t){O(e,r,t),c&&c.m(r,null),C(r,n),d&&d.m(r,null),C(r,i),p.m(r,null),C(r,s),C(r,o),C(o,a),C(a,l),C(o,u),g&&g.m(o,null),C(o,h),y&&y.m(o,null)},p(e,[t]){e[0]?c?c.p(e,t):((c=Dn(e)).c(),c.m(r,n)):c&&(c.d(1),c=null),"true"==e[7]?d?d.p(e,t):((d=Pn(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),m===(m=f(e))&&p?p.p(e,t):(p.d(1),(p=m(e))&&(p.c(),p.m(r,s))),2&t&&$(l,e[1]),e[2]?g?g.p(e,t):((g=Bn(e)).c(),g.m(o,h)):g&&(g.d(1),g=null),e[11]?y?y.p(e,t):((y=Nn(e)).c(),y.m(o,null)):y&&(y.d(1),y=null)},i:b,o:b,d(e){e&&B(r),c&&c.d(),d&&d.d(),p.d(),g&&g.d(),y&&y.d()}}}function Rn(t,e,i){let s,{session:r=""}=(te(t,ur,e=>i(15,s=e)),e),{userid:n=""}=e,{title:o=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:h=""}=e,{userenrolled:c=""}=e,{scorecriteria:d=""}=e,{minbetcount:f=""}=e,{showenrolled:m="false"}=e,{gameurl:p=""}=e,{lang:g="en"}=e,{keepbrowsercontext:y="false"}=e,b="",v=!1,_="",w="",T="";Object.keys(Mn).forEach(e=>{zt(e,Mn[e])});const S=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(11,v=!0),e.data.type=="TournamentStatus_"+u&&i(0,l=e.data.status))},E=()=>{let e=new Date(a),t=new Intl.DateTimeFormat(g,{month:"long"}).format(e),r=e.getDate(),n=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(10,b=r+" "+s("tournamentsThumbnail."+t)+", "+s("Running"===l?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},x=()=>{"Unstarted"==l&&(i(12,_=s("tournamentsThumbnail.scheduled")),i(14,T="StatusUnstarted")),"Running"==l&&(i(12,_=s("tournamentsThumbnail.ongoing")),i(14,T="StatusRunning")),"Closed"!=l&&"Closing"!=l||i(12,_=s("tournamentsThumbnail.finished")),"Closed"==l&&i(14,T="StatusClosed"),"Closing"==l&&i(14,T="StatusClosing")},k=()=>{"BetCount"==d&&i(13,w=s("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==d&&i(13,w=s("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==d&&i(13,w=s("tournamentsThumbnail.winStakeRatio"))},M=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};re(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}));return t.$$set=e=>{"session"in e&&i(20,r=e.session),"userid"in e&&i(21,n=e.userid),"title"in e&&i(1,o=e.title),"startdate"in e&&i(2,a=e.startdate),"status"in e&&i(0,l=e.status),"tourid"in e&&i(3,u=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,c=e.userenrolled),"scorecriteria"in e&&i(22,d=e.scorecriteria),"minbetcount"in e&&i(6,f=e.minbetcount),"showenrolled"in e&&i(7,m=e.showenrolled),"gameurl"in e&&i(8,p=e.gameurl),"lang"in e&&i(23,g=e.lang),"keepbrowsercontext"in e&&i(9,y=e.keepbrowsercontext)},t.$$.update=()=>{var e;1048576&t.$$.dirty&&r&&(0<r.length&&"false"!=r?i(11,v=!0):i(11,v=!1)),1&t.$$.dirty&&l&&x(),8388608&t.$$.dirty&&g&&(e=g,ee.set(e),k(),x(),a&&E()),4&t.$$.dirty&&a&&E(),4194304&t.$$.dirty&&d&&k()},[l,o,a,u,h,c,f,m,p,y,b,v,_,w,T,s,E,x,k,M,r,n,d,g,()=>M()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>: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'}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.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(--emfe-w-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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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{font-size:18px;padding-bottom:10px}.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}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Rn,Hn,t,{session:20,userid:21,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:22,minbetcount:6,showenrolled:7,gameurl:8,lang:23,keepbrowsercontext:9},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext"]}get session(){return this.$$.ctx[20]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[21]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}});const Fn={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămas",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Ln(r){let n,i,s,o,a,l,u,h,c,d,f,m,p,g=r[9](r[0])+"",y=r[9](r[1])+"";function b(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Yn:0<e[4]?In:$n}let v=b(r),_=v(r);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Gn:0<e[4]?zn:0<e[3]?Un:void 0}let T=w(r),S=T&&T(r);return{c(){n=N("div"),i=N("div"),s=H(g),o=R(),a=N("div"),l=H(y),u=R(),h=N("div"),c=N("div"),_.c(),d=R(),S&&S.c(),L(i,"class","StartDate"),L(i,"part","StartDate"),L(a,"class","EndDate"),L(a,"part","EndDate"),L(n,"class","TournamentDates"),L(n,"part","TournamentDates"),L(c,"class","ProgressBar"),L(c,"part","ProgressBar"),L(h,"class","ProgressBarWrapper"),L(h,"part","ProgressBarWrapper")},m(e,t){O(e,n,t),C(n,i),C(i,s),C(n,o),C(n,a),C(a,l),O(e,u,t),O(e,h,t),C(h,c),_.m(c,null),C(c,d),S&&S.m(c,null),m||(p=A(f=r[8].call(null,h)),m=!0)},p(e,t){1&t&&g!==(g=e[9](e[0])+"")&&$(s,g),2&t&&y!==(y=e[9](e[1])+"")&&$(l,y),v===(v=b(e))&&_?_.p(e,t):(_.d(1),(_=v(e))&&(_.c(),_.m(c,d))),T===(T=w(e))&&S?S.p(e,t):(S&&S.d(1),(S=T&&T(e))&&(S.c(),S.m(c,null)))},d(e){e&&B(n),e&&B(u),e&&B(h),_.d(),S&&S.d(),m=!1,p()}}}function $n(e){let r;return{c(){L(r=N("div"),"class","ProgressBarFill"),L(r,"part","ProgressBarFill"),f(r,"width",e[6]()+"%")},m(e,t){O(e,r,t)},p(e,t){64&t&&f(r,"width",e[6]()+"%")},d(e){e&&B(r)}}}function In(e){let r;return{c(){L(r=N("div"),"class","ProgressBarFillStarting"),L(r,"part","ProgressBarFillStarting")},m(e,t){O(e,r,t)},p:b,d(e){e&&B(r)}}}function Yn(e){let r;return{c(){L(r=N("div"),"class","ProgressBarFillEnd"),L(r,"part","ProgressBarFillEnd")},m(e,t){O(e,r,t)},p:b,d(e){e&&B(r)}}}function Un(e){let r,n,i,s,o=e[7]("tournamentsDuration.left")+"";return{c(){r=N("div"),n=H(e[5]),i=R(),s=H(o),L(r,"class","Remaining"),L(r,"part","Remaining")},m(e,t){O(e,r,t),C(r,n),C(r,i),C(r,s)},p(e,t){32&t&&$(n,e[5]),128&t&&o!==(o=e[7]("tournamentsDuration.left")+"")&&$(s,o)},d(e){e&&B(r)}}}function zn(e){let r,n,i,s,o=e[7]("tournamentsDuration.starting")+"",a=e[10](e[4])+"";return{c(){r=N("div"),n=H(o),i=R(),s=H(a),L(r,"class","Remaining"),L(r,"part","Remaining")},m(e,t){O(e,r,t),C(r,n),C(r,i),C(r,s)},p(e,t){128&t&&o!==(o=e[7]("tournamentsDuration.starting")+"")&&$(n,o),16&t&&a!==(a=e[10](e[4])+"")&&$(s,a)},d(e){e&&B(r)}}}function Gn(e){let r,n,i=e[7]("tournamentsDuration.finished")+"";return{c(){r=N("div"),n=H(i),L(r,"class","Finished"),L(r,"part","Finished")},m(e,t){O(e,r,t),C(r,n)},p(e,t){128&t&&i!==(i=e[7]("tournamentsDuration.finished")+"")&&$(n,i)},d(e){e&&B(r)}}}function jn(e){let r,n=e[0]&&e[1]&&Ln(e);return{c(){r=N("div"),n&&n.c(),this.c=b,L(r,"class","TournamentDuration"),L(r,"part","TournamentDuration")},m(e,t){O(e,r,t),n&&n.m(r,null)},p(e,[t]){e[0]&&e[1]?n?n.p(e,t):((n=Ln(e)).c(),n.m(r,null)):n&&(n.d(1),n=null)},i:b,o:b,d(e){e&&B(r),n&&n.d()}}}function Wn(e,t,r){let n,i,{startdate:s=""}=(te(e,ur,e=>r(7,i=e)),t),{enddate:o=""}=t,{status:a=""}=t,{lang:l="en"}=t,u="",h="",c="";Object.keys(Fn).forEach(e=>{zt(e,Fn[e])});const d=e=>new Date(e).getTime(),f=(e,t)=>(d(t)-d(e))/6e4,m=new Date,p=()=>{r(3,u=f(m,o)),r(4,h=f(m,s)),r(5,c=g(u))},g=e=>{var t=(e,t)=>e+" "+i(t);return e<60?t(Math.ceil(e),"tournamentsDuration.minutes"):e<1440?t(Math.ceil(e/60),"tournamentsDuration.hours"):t(Math.ceil(e/1440),"tournamentsDuration.days")};return e.$$set=e=>{"startdate"in e&&r(0,s=e.startdate),"enddate"in e&&r(1,o=e.enddate),"status"in e&&r(2,a=e.status),"lang"in e&&r(11,l=e.lang)},e.$$.update=()=>{11&e.$$.dirty&&r(6,n=()=>{if(u<=0)return 100;var e=f(s,o),t=100/e;return Math.floor((e-u)*t)}),11&e.$$.dirty&&s&&o&&p(),2048&e.$$.dirty&&l&&p(),2056&e.$$.dirty&&l&&g(u)},[s,o,a,u,h,c,n,i,p,e=>{let t=new Date(e),r=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},g,l]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Wn,jn,t,{startdate:0,enddate:1,status:2,lang:11},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),g()}});const Vn={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis"}}};function Jn(e,t,r){const n=e.slice();return n[4]=t[r],n[6]=r,n}function Zn(t){let n,i=t[0],s=[];for(let e=0;e<i.length;e+=1)s[e]=Kn(Jn(t,i,e));let o=null;return i.length||(o=Xn(t)),{c(){n=N("div");for(let e=0;e<s.length;e+=1)s[e].c();o&&o.c(),L(n,"class","Prizes"),L(n,"part","Prizes")},m(e,t){O(e,n,t);for(let e=0;e<s.length;e+=1)s[e].m(n,null);o&&o.m(n,null)},p(t,r){if(3&r){let e;for(i=t[0],e=0;e<i.length;e+=1){const o=Jn(t,i,e);s[e]?s[e].p(o,r):(s[e]=Kn(o),s[e].c(),s[e].m(n,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length,!i.length&&o?o.p(t,r):i.length?o&&(o.d(1),o=null):((o=Xn(t)).c(),o.m(n,null))}},d(e){e&&B(n),U(s,e),o&&o.d()}}}function Xn(e){let r,n,i=e[1]("tournamentsPrizes.noprizes")+"";return{c(){r=N("p"),n=H(i)},m(e,t){O(e,r,t),C(r,n)},p(e,t){2&t&&i!==(i=e[1]("tournamentsPrizes.noprizes")+"")&&$(n,i)},d(e){e&&B(r)}}}function Kn(e){let r,n,i,s,o,a,l,t,u,h=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"",c=e[4].name+"";return{c(){r=N("div"),n=N("p"),i=N("span"),s=H(h),o=R(),a=H(c),l=R(),L(i,"class","PrizeRank"),L(i,"part","PrizeRank"),L(n,"class","PrizeText"),L(n,"part","PrizeText"),L(r,"class",t="Prize Prize"+e[6]),L(r,"part",u="Prize Prize"+e[6])},m(e,t){O(e,r,t),C(r,n),C(n,i),C(i,s),C(n,o),C(n,a),C(r,l)},p(e,t){1&t&&h!==(h=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"")&&$(s,h),1&t&&c!==(c=e[4].name+"")&&$(a,c)},d(e){e&&B(r)}}}function qn(e){let r,n,i,s,o,a,l,u=e[1]("tournamentsPrizes.prizes")+"",h=e[0]&&Zn(e);return{c(){r=N("div"),n=N("div"),(i=N("span")).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(--emfe-w-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>',s=R(),o=N("p"),a=H(u),l=R(),h&&h.c(),this.c=b,L(i,"class","TournamentPrizesIconWrapper"),L(i,"part","TournamentPrizesIconWrapper"),L(o,"class","PrizesTitle"),L(o,"part","PrizesTitle"),L(n,"class","TournamentPrizesIconSection"),L(n,"part","TournamentPrizesIconSection"),L(r,"class","TournamentPrizes"),L(r,"part","TournamentPrizes")},m(e,t){O(e,r,t),C(r,n),C(n,i),C(n,s),C(n,o),C(o,a),C(r,l),h&&h.m(r,null)},p(e,[t]){2&t&&u!==(u=e[1]("tournamentsPrizes.prizes")+"")&&$(a,u),e[0]?h?h.p(e,t):((h=Zn(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:b,o:b,d(e){e&&B(r),h&&h.d()}}}function Qn(e,t,r){let n;te(e,ur,e=>r(1,n=e));let i,{tourid:s=""}=t;Object.keys(Vn).forEach(e=>{zt(e,Vn[e])});const o=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&r(0,i=e.data.prizes)};return re(()=>(window.addEventListener("message",o,!1),()=>{window.removeEventListener("message",o)})),e.$$set=e=>{"tourid"in e&&r(2,s=e.tourid)},[i,n,s]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}span{color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Qn,qn,t,{tourid:2},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$$set({tourid:e}),g()}});const ei={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function ti(e,t,r){const n=e.slice();return n[38]=t[r],n[40]=r,n}function ri(r){let i,n,s,o,a,l,u,h,c=r[0],d=[];for(let e=0;e<c.length;e+=1)d[e]=ni(ti(r,c,e));return{c(){(i=N("div")).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>',n=R(),s=N("main"),o=N("div");for(let e=0;e<d.length;e+=1)d[e].c();a=R(),(l=N("div")).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>',L(i,"class","SliderNavButton"),L(i,"part","SliderNavButton"),G(i,"disabled",r[6]),L(o,"class","items"),L(o,"part","items"),f(o,"transform","translateX("+r[1]+"px)"),L(l,"class","SliderNavButton"),L(l,"part","SliderNavButton"),G(l,"disabled",r[7])},m(e,t){O(e,i,t),O(e,n,t),O(e,s,t),C(s,o);for(let e=0;e<d.length;e+=1)d[e].m(o,null);r[22](o),O(e,a,t),O(e,l,t),u||(h=[F(i,"click",r[18]),F(l,"click",r[23])],u=!0)},p(t,r){if(64&r[0]&&G(i,"disabled",t[6]),5913&r[0]){let e;for(c=t[0],e=0;e<c.length;e+=1){var n=ti(t,c,e);d[e]?d[e].p(n,r):(d[e]=ni(n),d[e].c(),d[e].m(o,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=c.length}2&r[0]&&f(o,"transform","translateX("+t[1]+"px)"),128&r[0]&&G(l,"disabled",t[7])},d(e){e&&B(i),e&&B(n),e&&B(s),U(d,e),r[22](null),e&&B(a),e&&B(l),u=!1,P(h)}}}function ni(r){let n,i,s,o,a,l,u,h,c,d,f,m,p,g=r[8]("gamesSlider.playNow")+"";function y(){return r[19](r[38])}function b(){return r[20](r[40])}return{c(){n=N("div"),i=N("span"),s=H(g),l=R(),u=N("img"),f=R(),L(i,"class",o="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),L(i,"part",a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),I(u.src,h=r[38].thumbnail)||L(u,"src",h),L(u,"width","132px"),L(u,"height","100px"),L(u,"alt",c=r[38].name),L(u,"title",d=r[38].name),L(n,"class","item"),L(n,"part","item")},m(e,t){O(e,n,t),C(n,i),C(i,s),C(n,l),C(n,u),C(n,f),m||(p=[F(n,"click",y),F(n,"mouseenter",b),F(n,"mouseleave",r[21])],m=!0)},p(e,t){r=e,256&t[0]&&g!==(g=r[8]("gamesSlider.playNow")+"")&&$(s,g),24&t[0]&&o!==(o="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&L(i,"class",o),24&t[0]&&a!==(a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&L(i,"part",a),1&t[0]&&!I(u.src,h=r[38].thumbnail)&&L(u,"src",h),1&t[0]&&c!==(c=r[38].name)&&L(u,"alt",c),1&t[0]&&d!==(d=r[38].name)&&L(u,"title",d)},d(e){e&&B(n),m=!1,P(p)}}}function ii(r){let n,i=r[0]&&ri(r);return{c(){n=N("div"),i&&i.c(),this.c=b,L(n,"class","TournamentsGamesSlider"),L(n,"part","TournamentsGamesSlider")},m(e,t){O(e,n,t),i&&i.m(n,null),r[24](n)},p(e,t){e[0]?i?i.p(e,t):((i=ri(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:b,o:b,d(e){e&&B(n),i&&i.d(),r[24](null)}}}function si(e,t,r){let n,i,s;te(e,ur,e=>r(8,s=e));let o,a,l,u,{tournamenturl:h=""}=t,{scrollby:c="3"}=t,{pagfactor:d="175"}=t,{lang:f=""}=t,m=window.navigator.userAgent,p=[],g=0,y=null,b=null,v=!1,_=0;Object.keys(ei).forEach(e=>{zt(e,ei[e])});const w=e=>{r(3,v=!0),r(4,l=e)},T=()=>{r(3,v=!1),r(4,l=-1)},S=e=>{e=(e.touches||e.originalEvent.touches)[0];y=e.clientX,b=e.clientY},E=e=>{var t;y&&b&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=y-t,e=b-e,Math.abs(t)>Math.abs(e)&&x(0<t?1:-1),y=null,b=null)},x=e=>{0<e&&!i?(r(1,g-=o),r(1,g=g<_?_:g)):e<0&&!n&&(r(1,g+=o),r(1,g=0<g?0:g))},k=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return re(()=>(o=parseInt(c,10)*parseInt(d,10),()=>{a.removeEventListener("touchstart",S),a.removeEventListener("touchmove",E)})),e.$$set=e=>{"tournamenturl"in e&&r(14,h=e.tournamenturl),"scrollby"in e&&r(15,c=e.scrollby),"pagfactor"in e&&r(13,d=e.pagfactor),"lang"in e&&r(16,f=e.lang)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(6,n=0===g),131074&e.$$.dirty[0]&&r(7,i=g<=_),16384&e.$$.dirty[0]&&h){let e=new URL(h),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${g})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",f),e.searchParams.append("platform",xn(m)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(0,p=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",S,{passive:!0}),a.addEventListener("touchmove",E,{passive:!0})),1&e.$$.dirty[0]&&p.length&&setTimeout(()=>{r(17,_=-1*(u.scrollWidth-u.clientWidth)),r(13,d=new String(u.scrollWidth/p.length)),o=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},r(1,g=0),[p,g,a,v,l,u,n,i,s,w,T,x,k,d,h,c,f,_,()=>x(-1),e=>k(e),e=>w(e),()=>T(),function(e){J[e?"unshift":"push"](()=>{u=e,r(5,u)})},()=>x(1),function(e){J[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}function oi(e){let r,n,i,s,o,a,l,u,h,c=e[10]&&li(e);function d(e){return e[10]?"Closed"!=e[19]&&"Closing"!=e[19]?ci:"true"==e[3]?hi:void 0:di}let f=d(e),m=f&&f(e),p=(e[13]||e[15])&&vi(e),g="true"==e[4]&&_i(e);return{c(){r=N("div"),n=N("casino-tournaments-thumbnail"),i=R(),c&&c.c(),s=R(),o=N("div"),m&&m.c(),a=R(),p&&p.c(),l=R(),g&&g.c(),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"title",e[16]),y(n,"status",e[19]),y(n,"startdate",e[17]),y(n,"tourid",e[20]),y(n,"scorecriteria",e[23]),y(n,"minbetcount",e[24]),y(n,"thumbnail",e[21]),y(n,"userenrolled",e[22]),y(n,"showenrolled",e[5]),y(n,"gameurl",e[26]),y(n,"lang",e[8]),y(n,"keepbrowsercontext",e[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),L(o,"class","TournamentButtons"),L(o,"part","TournamentButtons"),L(r,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),L(r,"part",h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){O(e,r,t),C(r,n),C(r,i),c&&c.m(r,null),C(r,s),C(r,o),m&&m.m(o,null),C(r,a),p&&p.m(r,null),C(r,l),g&&g.m(r,null)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),65536&t[0]&&y(n,"title",e[16]),524288&t[0]&&y(n,"status",e[19]),131072&t[0]&&y(n,"startdate",e[17]),1048576&t[0]&&y(n,"tourid",e[20]),8388608&t[0]&&y(n,"scorecriteria",e[23]),16777216&t[0]&&y(n,"minbetcount",e[24]),2097152&t[0]&&y(n,"thumbnail",e[21]),4194304&t[0]&&y(n,"userenrolled",e[22]),32&t[0]&&y(n,"showenrolled",e[5]),67108864&t[0]&&y(n,"gameurl",e[26]),256&t[0]&&y(n,"lang",e[8]),512&t[0]&&y(n,"keepbrowsercontext",e[9]),e[10]?c?c.p(e,t):((c=li(e)).c(),c.m(r,s)):c&&(c.d(1),c=null),f===(f=d(e))&&m?m.p(e,t):(m&&m.d(1),(m=f&&f(e))&&(m.c(),m.m(o,null))),e[13]||e[15]?p?p.p(e,t):((p=vi(e)).c(),p.m(r,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):((g=_i(e)).c(),g.m(r,null)):g&&(g.d(1),g=null),134217920&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"class",u),134217920&t[0]&&h!==(h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"part",h)},d(e){e&&B(r),c&&c.d(),m&&m.d(),p&&p.d(),g&&g.d()}}}function ai(e){let r,n,i,s;return{c(){r=N("div"),(n=N("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',L(n,"class","ph-item"),L(n,"part","ph-item"),L(r,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),L(r,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){O(e,r,t),C(r,n)},p(e,t){134217920&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"class",i),134217920&t[0]&&s!==(s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"part",s)},d(e){e&&B(r)}}}function li(e){let r,n,i=e[20]&&ui(e);return{c(){i&&i.c(),r=R(),y(n=N("casino-tournaments-thumbnail-duration"),"status",e[19]),y(n,"startdate",e[17]),y(n,"lang",e[8]),y(n,"enddate",e[18]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),O(e,r,t),O(e,n,t)},p(e,t){e[20]?i?i.p(e,t):((i=ui(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),524288&t[0]&&y(n,"status",e[19]),131072&t[0]&&y(n,"startdate",e[17]),256&t[0]&&y(n,"lang",e[8]),262144&t[0]&&y(n,"enddate",e[18])},d(e){i&&i.d(e),e&&B(r),e&&B(n)}}}function ui(r){let n,i,s,o;return{c(){y(n=N("casino-tournaments-thumbnail-prizes"),"tourid",r[20]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){O(e,n,t),s||(o=A(i=r[33].call(null,n,r[20])),s=!0)},p(e,t){1048576&t[0]&&y(n,"tourid",e[20]),i&&k(i.update)&&1048576&t[0]&&i.update.call(null,e[20])},d(e){e&&B(n),s=!1,o()}}}function hi(r){let n,i,s,o,a=r[28]("tournamentsThController.details")+"";return{c(){n=N("button"),i=H(a),L(n,"class","DetailsLargeButton"),L(n,"part","DetailsLargeButton")},m(e,t){O(e,n,t),C(n,i),s||(o=F(n,"click",r[46]),s=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&$(i,a)},d(e){e&&B(n),s=!1,o()}}}function ci(e){let r,n,i="true"==e[3]&&fi(e);function s(e){return 1==e[22]?pi:mi}let o=s(e),a=o(e);return{c(){i&&i.c(),r=R(),a.c(),n=z()},m(e,t){i&&i.m(e,t),O(e,r,t),a.m(e,t),O(e,n,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=fi(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),o===(o=s(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){i&&i.d(e),e&&B(r),a.d(e),e&&B(n)}}}function di(r){let n,i,s,o,a,l,u,h=r[28]("tournamentsThController.login")+"",c=r[28]("tournamentsThController.register")+"";return{c(){n=N("button"),i=H(h),s=R(),o=N("button"),a=H(c),L(n,"class","LoginButton"),L(n,"part","LoginButton"),L(o,"class","RegisterButton"),L(o,"part","RegisterButton")},m(e,t){O(e,n,t),C(n,i),O(e,s,t),O(e,o,t),C(o,a),l||(u=[F(n,"click",r[42]),F(o,"click",r[43])],l=!0)},p(e,t){268435456&t[0]&&h!==(h=e[28]("tournamentsThController.login")+"")&&$(i,h),268435456&t[0]&&c!==(c=e[28]("tournamentsThController.register")+"")&&$(a,c)},d(e){e&&B(n),e&&B(s),e&&B(o),l=!1,P(u)}}}function fi(r){let n,i,s,o,a=r[28]("tournamentsThController.details")+"";return{c(){n=N("button"),i=H(a),L(n,"class","DetailsButton"),L(n,"part","DetailsButton")},m(e,t){O(e,n,t),C(n,i),s||(o=F(n,"click",r[44]),s=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&$(i,a)},d(e){e&&B(n),s=!1,o()}}}function mi(r){let n,i,s,o,a;function l(e){return 1==e[12]?yi:gi}let u=l(r),h=u(r);return{c(){n=N("button"),h.c(),L(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),L(n,"part",s="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[13]},m(e,t){O(e,n,t),h.m(n,null),o||(a=F(n,"click",r[45]),o=!0)},p(e,t){u===(u=l(e))&&h?h.p(e,t):(h.d(1),(h=u(e))&&(h.c(),h.m(n,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&L(n,"class",i),128&t[0]&&s!==(s="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&L(n,"part",s),8192&t[0]&&(n.disabled=e[13])},d(e){e&&B(n),h.d(),o=!1,a()}}}function pi(e){let r,n="true"==e[3]&&bi(e);return{c(){n&&n.c(),r=z()},m(e,t){n&&n.m(e,t),O(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=bi(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(r)}}}function gi(e){let r,n,i,s,o,a,l,u,h,c=e[28]("tournamentsThController.join")+"";return{c(){r=N("span"),n=H(c),i=R(),s=d("svg"),o=d("defs"),a=d("style"),l=H(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=d("g"),h=d("path"),L(r,"part","JoinButtonSpan"),L(h,"class","a"),L(h,"part","a JoinButtonSvgA"),L(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),L(h,"transform","translate(26 26) rotate(180)"),L(u,"transform","translate(26 26) rotate(180)"),L(s,"part","JoinButtonSvg"),L(s,"xmlns","http://www.w3.org/2000/svg"),L(s,"width","26"),L(s,"height","26"),L(s,"viewBox","0 0 26 26")},m(e,t){O(e,r,t),C(r,n),O(e,i,t),O(e,s,t),C(s,o),C(o,a),C(a,l),C(s,u),C(u,h)},p(e,t){268435456&t[0]&&c!==(c=e[28]("tournamentsThController.join")+"")&&$(n,c)},d(e){e&&B(r),e&&B(i),e&&B(s)}}}function yi(e){let r,n;return{c(){r=d("svg"),L(n=d("circle"),"cx","20"),L(n,"cy","20"),L(n,"r","18"),L(r,"class","spinner"),L(r,"part","spinner")},m(e,t){O(e,r,t),C(r,n)},p:b,d(e){e&&B(r)}}}function bi(e){let r,n,i=e[28]("tournamentsThController.enrolled")+"";return{c(){r=N("button"),n=H(i),L(r,"class","EnrolledButton"),L(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){O(e,r,t),C(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("tournamentsThController.enrolled")+"")&&$(n,i)},d(e){e&&B(r)}}}function vi(e){let r,n,i,s,o=e[28]("tournamentsThController.joinerror")+"";return{c(){r=N("span"),n=H(o),i=R(),s=H(e[14]),L(r,"class","ErrorText"),L(r,"part","ErrorText")},m(e,t){O(e,r,t),C(r,n),C(r,i),C(r,s)},p(e,t){268435456&t[0]&&o!==(o=e[28]("tournamentsThController.joinerror")+"")&&$(n,o),16384&t[0]&&$(s,e[14])},d(e){e&&B(r)}}}function _i(e){let r;return{c(){y(r=N("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),y(r,"lang",e[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){O(e,r,t)},p(e,t){4&t[0]&&y(r,"tournamenturl",e[2]),256&t[0]&&y(r,"lang",e[8])},d(e){e&&B(r)}}}function wi(e){let r;function n(e){return e[11]?ai:e[16]?oi:void 0}let i=n(e),s=i&&i(e);return{c(){s&&s.c(),r=z(),this.c=b},m(e,t){s&&s.m(e,t),O(e,r,t)},p(e,t){i===(i=n(e))&&s?s.p(e,t):(s&&s.d(1),(s=i&&i(e))&&(s.c(),s.m(r.parentNode,r)))},i:b,o:b,d(e){s&&s.d(e),e&&B(r)}}}function Ti(e,t,u){let r;te(e,ur,e=>u(28,r=e));let n,i,s,o,h,a,c,l,d,f,{session:m=""}=t,{userid:p=""}=t,{tournamenturl:g=""}=t,y=t["touridx"],{endpoint:b=""}=t,{showdetails:v=""}=t,{showslider:_=""}=t,{showenrolled:R=""}=t,{maxwidth:F=""}=t,{fullsize:L=""}=t,{lang:w=""}=t,{loginevent:T=""}=t,{registerevent:S=""}=t,{loginurl:E=""}=t,{registerurl:x=""}=t,{currency:k=""}=t,{keepbrowsercontext:$="false"}=t,M=!1,D="",P=!0,I=window.navigator.userAgent,A=!1,C=!1,Y="There was an error while trying to join the tournament",O=!1,U=[],B=[],z="#",N=!1;var G,j;({withLocale:G,translations:j}={withLocale:"en",translations:{}}),ee.subscribe(e=>{null==e&&(Yt.set(j),ee.set(G))}),Object.keys(kn).forEach(e=>{zt(e,kn[e])});const W=e=>{J(e),Q(e),q(this,h)},V=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(10,M=!0),D=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(h&&h!=e.id)return;W(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+y){let e=r.data.tournamentData,t=y<4?100*y:300*Math.random()+300;u(27,N=1==y),setTimeout(()=>{u(27,N=!0),u(20,h=e.id),W(e)},t),setTimeout(()=>{u(27,N=!1)},200+t)}},J=e=>{e.state!=o&&(u(19,o=e.state),window.postMessage({type:"TournamentStatus_"+h,status:o},window.location.href))},Z=()=>{T&&window.postMessage({type:T,transition:"Login"},window.location.href),E&&(window.location=E)},X=()=>{S&&window.postMessage({type:S,transition:"Register"},window.location.href),x&&(window.location=x)},H=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},K=async(t,e)=>{u(13,C=!1),u(15,O=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(12,A=!0);let r=new URL(b+"/bonus/claim"),n=new Headers,i={},s=(r.searchParams.append("language",w),r.searchParams.append("platform",xn(I)),n.append("Content-Type","application/json"),n.append("X-SessionID",D),e&&1<=e.length&&(i={language:w,bonusCode:e[0].code,currency:k}),{method:"PUT",headers:n,body:JSON.stringify(i)});const o=()=>{u(12,A=!1),u(22,c=!0)},a=e=>{u(12,A=!1),e&&u(14,Y=e),u(13,C=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,s)).json()}catch(e){a()}return e})();if(l)if(1==l.success)o();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(b+"/tournaments/"+h,{headers:{"X-SessionID":m}})).json())?void 0:e.item)&&t.playerEnrolled?o():(a(l.errorMessage+". Please try again"),u(15,O=!0),u(13,C=!1))}else a(l.errorMessage)},q=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:U},window.location.href)},Q=e=>{e&&(u(16,n=e.nameOrTitle||""),u(17,i=e.startTime),u(18,s=e.endTime),u(19,o=e.state),u(20,h=e.id),u(21,a=e.thumbnail),u(22,c=e.playerEnrolled||!1),u(23,l=e.scoreCriteria),u(24,d=e.minBetCount),U=e.prizes,u(25,B=e.wallets||[]),u(26,z=e.termsUrl||"#"))};return re(()=>(u(11,P=!1),window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)})),e.$$set=e=>{"session"in e&&u(0,m=e.session),"userid"in e&&u(1,p=e.userid),"tournamenturl"in e&&u(2,g=e.tournamenturl),"touridx"in e&&u(34,y=e.touridx),"endpoint"in e&&u(35,b=e.endpoint),"showdetails"in e&&u(3,v=e.showdetails),"showslider"in e&&u(4,_=e.showslider),"showenrolled"in e&&u(5,R=e.showenrolled),"maxwidth"in e&&u(6,F=e.maxwidth),"fullsize"in e&&u(7,L=e.fullsize),"lang"in e&&u(8,w=e.lang),"loginevent"in e&&u(36,T=e.loginevent),"registerevent"in e&&u(37,S=e.registerevent),"loginurl"in e&&u(38,E=e.loginurl),"registerurl"in e&&u(39,x=e.registerurl),"currency"in e&&u(40,k=e.currency),"keepbrowsercontext"in e&&u(9,$=e.keepbrowsercontext)},e.$$.update=()=>{if(1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(D=m,u(10,M=!0)):u(10,M=!1)),260&e.$$.dirty[0]&&u(41,f=g&&w),1024&e.$$.dirty[1]&&f){u(11,P=!0);{var r=g;u(11,P=!0);let e=new URL(r),t=new Headers;e.searchParams.append("language",w),e.searchParams.append("platform",xn(I)),M&&t.append("X-SessionID",D),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(11,P=!1),Q(e.item)})}}},[m,p,g,v,_,R,F,L,w,$,M,P,A,C,Y,O,n,i,s,o,h,a,c,l,d,B,z,N,r,Z,X,H,K,q,y,b,T,S,E,x,k,f,()=>Z(),()=>X(),()=>H(h),()=>K(h,B),()=>H(h)]}function Si(e,t,r){const n=e.slice();return n[21]=t[r],n[23]=r,n}function Ei(t){let n,i=t[11],s=[];for(let e=0;e<i.length;e+=1)s[e]=ki(Si(t,i,e));let o=null;return i.length||(o=xi(t)),{c(){for(let e=0;e<s.length;e+=1)s[e].c();n=z(),o&&o.c()},m(t,r){for(let e=0;e<s.length;e+=1)s[e].m(t,r);O(t,n,r),o&&o.m(t,r)},p(t,r){if(7167&r){let e;for(i=t[11],e=0;e<i.length;e+=1){const o=Si(t,i,e);s[e]?s[e].p(o,r):(s[e]=ki(o),s[e].c(),s[e].m(n.parentNode,n))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length,!i.length&&o?o.p(t,r):i.length?o&&(o.d(1),o=null):((o=xi(t)).c(),o.m(n.parentNode,n))}},d(e){U(s,e),e&&B(n),o&&o.d(e)}}}function xi(e){let r,n,i=e[12]("tournamentsList.nothing")+"";return{c(){r=N("p"),n=H(i)},m(e,t){O(e,r,t),C(r,n)},p(e,t){4096&t&&i!==(i=e[12]("tournamentsList.nothing")+"")&&$(n,i)},d(e){e&&B(r)}}}function ki(e){let r,n,i;return{c(){y(r=N("casino-tournaments-thumbnail-controller"),"touridx",e[23]+1),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"endpoint",e[2]),y(r,"showdetails","true"),y(r,"showslider","false"),y(r,"tournamenturl",n=e[21].href),y(r,"maxwidth",i=e[11].length<=2),y(r,"loginurl",e[5]),y(r,"loginevent",e[3]),y(r,"registerurl",e[6]),y(r,"registerevent",e[4]),y(r,"lang",e[8]),y(r,"currency",e[7]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n 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(e,t){O(e,r,t)},p(e,t){1&t&&y(r,"session",e[0]),2&t&&y(r,"userid",e[1]),4&t&&y(r,"endpoint",e[2]),2048&t&&n!==(n=e[21].href)&&y(r,"tournamenturl",n),2048&t&&i!==(i=e[11].length<=2)&&y(r,"maxwidth",i),32&t&&y(r,"loginurl",e[5]),8&t&&y(r,"loginevent",e[3]),64&t&&y(r,"registerurl",e[6]),16&t&&y(r,"registerevent",e[4]),256&t&&y(r,"lang",e[8]),128&t&&y(r,"currency",e[7]),512&t&&y(r,"keepbrowsercontext",e[9])},d(e){e&&B(r)}}}function Mi(e){let r,n=!e[10]&&Ei(e);return{c(){r=N("div"),n&&n.c(),this.c=b,L(r,"class","TournamentList"),L(r,"part","TournamentList")},m(e,t){O(e,r,t),n&&n.m(r,null)},p(e,[t]){e[10]?n&&(n.d(1),n=null):n?n.p(e,t):((n=Ei(e)).c(),n.m(r,null))},i:b,o:b,d(e){e&&B(r),n&&n.d()}}}function Di(e,t,r){let n,{session:i=""}=(te(e,ur,e=>r(12,n=e)),t),{userid:s=""}=t,{numberoftournaments:o="6"}=t,{endpoint:a=""}=t,{loginevent:l=""}=t,{registerevent:u=""}=t,{loginurl:h=""}=t,{registerurl:c=""}=t,{currency:d=""}=t,{lang:f="en"}=t,{keepbrowsercontext:m="false"}=t,p=!1,g=(le(),"");Object.keys(hr).forEach(e=>{zt(e,hr[e])});const y=t=>{if(t.data&&"TournamentList"==t.data.type&&(r(11,g=[]),r(10,p=!0),r(11,g=t.data.tournamentList),setTimeout(()=>{r(10,p=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&r(11,g=[...g,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!g)return;0==g.filter(e=>e.id==t.data.tournamentData.id).length&&(g.pop(),r(11,g=[t.data.tournamentData,...g]),setTimeout(()=>{g.forEach((e,t)=>{window.postMessage({type:"UpdateSingleTournament_"+(t+1),tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return re(()=>(window.addEventListener("message",y,!0),()=>{window.removeEventListener("message",y,!0)})),e.$$set=e=>{"session"in e&&r(0,i=e.session),"userid"in e&&r(1,s=e.userid),"numberoftournaments"in e&&r(13,o=e.numberoftournaments),"endpoint"in e&&r(2,a=e.endpoint),"loginevent"in e&&r(3,l=e.loginevent),"registerevent"in e&&r(4,u=e.registerevent),"loginurl"in e&&r(5,h=e.loginurl),"registerurl"in e&&r(6,c=e.registerurl),"currency"in e&&r(7,d=e.currency),"lang"in e&&r(8,f=e.lang),"keepbrowsercontext"in e&&r(9,m=e.keepbrowsercontext)},e.$$.update=()=>{1&e.$$.dirty&&i&&i.length,e.$$.dirty},[i,s,a,l,u,h,c,d,f,m,p,g,n,o]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}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(--emfe-w-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(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .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}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},si,ii,t,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16},null,[-1,-1]),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends e{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, 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}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-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(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-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(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.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-picture{width:100%;height:120px;background-color:var(--emfe-w-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(--emfe-w-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}</style>',oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ti,wi,t,{session:0,userid:1,tournamenturl:2,touridx:34,endpoint:35,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:36,registerevent:37,loginurl:38,registerurl:39,currency:40,keepbrowsercontext:9},null,[-1,-1]),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[34]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[36]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[37]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[38]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[39]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[40]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}});class Pi extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(Min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Di,Mi,t,{session:0,userid:1,numberoftournaments:13,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get numberoftournaments(){return this.$$.ctx[13]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),g()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),g()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}}return customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",Pi),Pi});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function b(){}function E(e){return e()}function x(){return Object.create(null)}function P(e){e.forEach(E)}function k(e){return"function"==typeof e}function t(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let M,D;function I(e,t){return(M=M||document.createElement("a")).href=t,e===M.href}function Y(e,...t){if(null==e)return b;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function te(e,t,r){e.$$.on_destroy.push(Y(t,r))}function A(e){return e&&k(e.destroy)?e.destroy:b}function C(e,t){e.appendChild(t)}function O(e,t,r){e.insertBefore(t,r||null)}function B(e){e.parentNode.removeChild(e)}function U(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function N(e){return document.createElement(e)}function d(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function H(e){return document.createTextNode(e)}function R(){return H(" ")}function z(){return H("")}function F(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function L(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:L(e,t,r)}function $(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function f(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function G(e,t,r){e.classList[r?"add":"remove"](t)}function j(e){const t={};for(const r of e)t[r.name]=r.value;return t}function W(e){D=e}function re(e){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const V=[],J=[],Z=[],X=[],K=Promise.resolve();let q=!1;function Q(e){Z.push(e)}const ne=new Set;let ie=0;function g(){const e=D;do{for(;ie<V.length;){const e=V[ie];ie++,W(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),P(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(Q))}for(W(null),V.length=0,ie=0;J.length;)J.pop()();for(let e=0;e<Z.length;e+=1){const n=Z[e];ne.has(n)||(ne.add(n),n())}}while(Z.length=0,V.length);for(;X.length;)X.pop()();q=!1,ne.clear(),W(e)}const se=new Set;function oe(n,e,t,r,i,s,o,a=[-1]){var l=D;W(n);const u=n.$$={fragment:null,ctx:null,props:s,update:b,not_equal:i,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:x(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};o&&o(u.root);let h=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),h&&(r=e,-1===(e=n).$$.dirty[0]&&(V.push(e),q||(q=!0,K.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),h=!0,P(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){s=e.target;const b=Array.from(s.childNodes);u.fragment&&u.fragment.l(b),b.forEach(B)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(se.delete(a),a.i(void 0));{var c=n;o=e.target;t=e.anchor;r=e.customElement;const{fragment:d,on_mount:f,on_destroy:m,after_update:p}=c.$$;d&&d.m(o,t),r||Q(()=>{var e=f.map(E).filter(k);m?m.push(...e):P(e),c.$$.on_mount=[]}),p.forEach(Q)}g()}W(l)}let e;function Ar(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(E).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(P(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=b}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});Cr=ae={path:void 0,exports:{},require:function(e,t){return Ar(null==t&&ae.path)}},ae.exports,Cr.exports=function(){var R;function m(){return R.apply(null,arguments)}function o(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function F(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function L(e){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(var t in e)if(p(e,t))return;return 1}function a(e){return void 0===e}function $(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function I(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function Y(e,t){for(var r=[],n=e.length,i=0;i<n;++i)r.push(t(e[i],i));return r}function U(e,t){for(var r in t)p(t,r)&&(e[r]=t[r]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,r,n){return Ct(e,t,r,n,!0).utc()}function g(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function z(e){if(null==e._isValid){var t=g(e),r=j.call(t.parsedDateParts,function(e){return null!=e}),r=!isNaN(e._d.getTime())&&t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&r);if(e._strict&&(r=r&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return r;e._isValid=r}return e._isValid}function G(e){var t=u(NaN);return null!=e?U(g(t),e):g(t).userInvalidated=!0,t}var j=Array.prototype.some||function(e){for(var t=Object(this),r=t.length>>>0,n=0;n<r;n++)if(n in t&&e.call(this,t[n],n,t))return!0;return!1},W=m.momentProperties=[],V=!1;function J(e,t){var r,n,i,s=W.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=g(t)),a(t._locale)||(e._locale=t._locale),0<s)for(r=0;r<s;r++)a(i=t[n=W[r]])||(e[n]=i);return e}function Z(e){J(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===V&&(V=!0,m.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===m.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(s,o){var a=!0;return U(function(){if(null!=m.deprecationHandler&&m.deprecationHandler(null,s),a){for(var e,t,r=[],n=arguments.length,i=0;i<n;i++){if(e="","object"==typeof arguments[i]){for(t in e+="\n["+i+"] ",arguments[0])p(arguments[0],t)&&(e+=t+": "+arguments[0][t]+", ");e=e.slice(0,-2)}else e=arguments[i];r.push(e)}X(s+"\nArguments: "+Array.prototype.slice.call(r).join("")+"\n"+(new Error).stack),a=!1}return o.apply(this,arguments)},o)}var K={};function q(e,t){null!=m.deprecationHandler&&m.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function h(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var r,n=U({},e);for(r in t)p(t,r)&&(F(e[r])&&F(t[r])?(n[r]={},U(n[r],e[r]),U(n[r],t[r])):null!=t[r]?n[r]=t[r]:delete n[r]);for(r in e)p(e,r)&&!p(t,r)&&F(e[r])&&(n[r]=U({},n[r]));return n}function ee(e){null!=e&&this.set(e)}m.suppressDeprecationWarnings=!1,m.deprecationHandler=null;var te=Object.keys||function(e){var t,r=[];for(t in e)p(e,t)&&r.push(t);return r};function s(e,t,r){var n=""+Math.abs(e);return(0<=e?r?"+":"":"-")+Math.pow(10,Math.max(0,t-n.length)).toString().substr(1)+n}var re=/(\[[^\[]*\])|(\\)?([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,ne=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},se={};function n(e,t,r,n){var i="string"==typeof n?function(){return this[n]()}:n;e&&(se[e]=i),t&&(se[t[0]]=function(){return s(i.apply(this,arguments),t[1],t[2])}),r&&(se[r]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function oe(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(n){for(var e,i=n.match(re),t=0,s=i.length;t<s;t++)se[i[t]]?i[t]=se[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",r=0;r<s;r++)t+=h(i[r])?i[r].call(e,n):i[r];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var r=5;function n(e){return t.longDateFormat(e)||e}for(ne.lastIndex=0;0<=r&&ne.test(e);)e=e.replace(ne,n),ne.lastIndex=0,--r;return e}var le={};function t(e,t){var r=e.toLowerCase();le[r]=le[r+"s"]=le[t]=e}function c(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,r,n={};for(r in e)p(e,r)&&(t=c(r))&&(n[t]=e[r]);return n}var he={};function r(e,t){he[e]=t}function ce(e){return e%4==0&&e%100!=0||e%400==0}function d(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function f(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,r){return function(e){return null!=e?(me(this,t,e),m.updateOffset(this,r),this):fe(this,t)}}function fe(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function me(e,t,r){e.isValid()&&!isNaN(r)&&("FullYear"===t&&ce(e.year())&&1===e.month()&&29===e.date()?(r=f(r),e._d["set"+(e._isUTC?"UTC":"")+t](r,e.month(),Ne(r,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](r))}var i=/\d/,y=/\d\d/,pe=/\d{3}/,ge=/\d{4}/,ye=/[+-]?\d{6}/,b=/\d\d?/,be=/\d\d\d\d?/,ve=/\d\d\d\d\d\d?/,_e=/\d{1,3}/,we=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,Ee=/[+-]?\d+/,xe=/Z|[+-]\d\d:?\d\d/gi,ke=/Z|[+-]\d\d(?::?\d\d)?/gi,v=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _(e,r,n){De[e]=h(r)?r:function(e,t){return e&&n?n:r}}function Me(e,t){return p(De,e)?De[e](t._strict,t._locale):new RegExp(w(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,r,n,i){return t||r||n||i})))}function w(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var De={},Pe={};function T(e,r){var t,n,i=r;for("string"==typeof e&&(e=[e]),$(r)&&(i=function(e,t){t[r]=f(e)}),n=e.length,t=0;t<n;t++)Pe[e[t]]=i}function Ae(e,i){T(e,function(e,t,r,n){r._w=r._w||{},i(e,r._w,r,n)})}var S,E=0,x=1,k=2,M=3,D=4,P=5,Ce=6,Oe=7,Be=8;function Ne(e,t){if(isNaN(e)||isNaN(t))return NaN;var r=(t%(r=12)+r)%r;return e+=(t-r)/12,1==r?ce(e)?29:28:31-r%7%2}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},n("M",["MM",2],"Mo",function(){return this.month()+1}),n("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),n("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),r("month",8),_("M",b),_("MM",b,y),_("MMM",function(e,t){return t.monthsShortRegex(e)}),_("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[x]=f(e)-1}),T(["MMM","MMMM"],function(e,t,r,n){n=r._locale.monthsParse(e,n,r._strict);null!=n?t[x]=n:g(r).invalidMonth=e});var He="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Re="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Fe=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Le=v,$e=v;function Ie(e,t){var r;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=f(t);else if(!$(t=e.localeData().monthsParse(t)))return;r=Math.min(e.date(),Ne(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,r)}}function Ye(e){return null!=e?(Ie(this,e),m.updateOffset(this,!0),this):fe(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,r=[],n=[],i=[],s=0;s<12;s++)t=u([2e3,s]),r.push(this.monthsShort(t,"")),n.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(r.sort(e),n.sort(e),i.sort(e),s=0;s<12;s++)r[s]=w(r[s]),n[s]=w(n[s]);for(s=0;s<24;s++)i[s]=w(i[s]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+r.join("|")+")","i")}function ze(e){return ce(e)?366:365}n("Y",0,0,function(){var e=this.year();return e<=9999?s(e,4):"+"+e}),n(0,["YY",2],0,function(){return this.year()%100}),n(0,["YYYY",4],0,"year"),n(0,["YYYYY",5],0,"year"),n(0,["YYYYYY",6,!0],0,"year"),t("year","y"),r("year",1),_("Y",Ee),_("YY",b,y),_("YYYY",we,ge),_("YYYYY",Te,ye),_("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],E),T("YYYY",function(e,t){t[E]=2===e.length?m.parseTwoDigitYear(e):f(e)}),T("YY",function(e,t){t[E]=m.parseTwoDigitYear(e)}),T("Y",function(e,t){t[E]=parseInt(e,10)}),m.parseTwoDigitYear=function(e){return f(e)+(68<f(e)?1900:2e3)};var Ge=de("FullYear",!0);function je(e,t,r,n,i,s,o){var a;return e<100&&0<=e?(a=new Date(e+400,t,r,n,i,s,o),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,r,n,i,s,o),a}function We(e){var t;return e<100&&0<=e?((t=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,t)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Ve(e,t,r){r=7+t-r;return-(7+We(e,0,r).getUTCDay()-t)%7+r-1}function Je(e,t,r,n,i){var s,t=1+7*(t-1)+(7+r-n)%7+Ve(e,n,i),r=t<=0?ze(s=e-1)+t:t>ze(e)?(s=e+1,t-ze(e)):(s=e,t);return{year:s,dayOfYear:r}}function Ze(e,t,r){var n,i,s=Ve(e.year(),t,r),s=Math.floor((e.dayOfYear()-s-1)/7)+1;return s<1?n=s+A(i=e.year()-1,t,r):s>A(e.year(),t,r)?(n=s-A(e.year(),t,r),i=e.year()+1):(i=e.year(),n=s),{week:n,year:i}}function A(e,t,r){var n=Ve(e,t,r),t=Ve(e+1,t,r);return(ze(e)-n+t)/7}n("w",["ww",2],"wo","week"),n("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),r("week",5),r("isoWeek",5),_("w",b),_("ww",b,y),_("W",b),_("WW",b,y),Ae(["w","ww","W","WW"],function(e,t,r,n){t[n.substr(0,1)]=f(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}n("d",0,"do","day"),n("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),n("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),n("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),n("e",0,0,"weekday"),n("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),r("day",11),r("weekday",11),r("isoWeekday",11),_("d",b),_("e",b),_("E",b),_("dd",function(e,t){return t.weekdaysMinRegex(e)}),_("ddd",function(e,t){return t.weekdaysShortRegex(e)}),_("dddd",function(e,t){return t.weekdaysRegex(e)}),Ae(["dd","ddd","dddd"],function(e,t,r,n){n=r._locale.weekdaysParse(e,n,r._strict);null!=n?t.d=n:g(r).invalidWeekday=e}),Ae(["d","e","E"],function(e,t,r,n){t[n]=f(e)});var Ke="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Qe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),et=v,tt=v,rt=v;function nt(){function e(e,t){return t.length-e.length}for(var t,r,n,i=[],s=[],o=[],a=[],l=0;l<7;l++)n=u([2e3,1]).day(l),t=w(this.weekdaysMin(n,"")),r=w(this.weekdaysShort(n,"")),n=w(this.weekdays(n,"")),i.push(t),s.push(r),o.push(n),a.push(t),a.push(r),a.push(n);i.sort(e),s.sort(e),o.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function st(e,t){n(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function ot(e,t){return t._meridiemParse}n("H",["HH",2],0,"hour"),n("h",["hh",2],0,it),n("k",["kk",2],0,function(){return this.hours()||24}),n("hmm",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)}),n("hmmss",0,0,function(){return""+it.apply(this)+s(this.minutes(),2)+s(this.seconds(),2)}),n("Hmm",0,0,function(){return""+this.hours()+s(this.minutes(),2)}),n("Hmmss",0,0,function(){return""+this.hours()+s(this.minutes(),2)+s(this.seconds(),2)}),st("a",!0),st("A",!1),t("hour","h"),r("hour",13),_("a",ot),_("A",ot),_("H",b),_("h",b),_("k",b),_("HH",b,y),_("hh",b,y),_("kk",b,y),_("hmm",be),_("hmmss",ve),_("Hmm",be),_("Hmmss",ve),T(["H","HH"],M),T(["k","kk"],function(e,t,r){e=f(e);t[M]=24===e?0:e}),T(["a","A"],function(e,t,r){r._isPm=r._locale.isPM(e),r._meridiem=e}),T(["h","hh"],function(e,t,r){t[M]=f(e),g(r).bigHour=!0}),T("hmm",function(e,t,r){var n=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n)),g(r).bigHour=!0}),T("hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n,2)),t[P]=f(e.substr(i)),g(r).bigHour=!0}),T("Hmm",function(e,t,r){var n=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n))}),T("Hmmss",function(e,t,r){var n=e.length-4,i=e.length-2;t[M]=f(e.substr(0,n)),t[D]=f(e.substr(n,2)),t[P]=f(e.substr(i))});v=de("Hours",!0);var at,lt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:He,monthsShort:Re,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},C={},ut={};function ht(e){return e&&e.toLowerCase().replace("_","-")}function ct(e){for(var t,r,n,i,s=0;s<e.length;){for(t=(i=ht(e[s]).split("-")).length,r=(r=ht(e[s+1]))?r.split("-"):null;0<t;){if(n=dt(i.slice(0,t).join("-")))return n;if(r&&r.length>=t&&function(e,t){for(var r=Math.min(e.length,t.length),n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}(i,r)>=t-1)break;t--}s++}return at}function dt(t){var e;if(void 0===C[t]&&Cr&&Cr.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Ar(),ft(e)}catch(e){C[t]=null}return C[t]}function ft(e,t){return e&&((t=a(t)?O(e):mt(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function mt(e,t){if(null===t)return delete C[e],null;var r,n=lt;if(t.abbr=e,null!=C[e])q("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=C[e]._config;else if(null!=t.parentLocale)if(null!=C[t.parentLocale])n=C[t.parentLocale]._config;else{if(null==(r=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;n=r._config}return C[e]=new ee(Q(n,t)),ut[e]&&ut[e].forEach(function(e){mt(e.name,e.config)}),ft(e),C[e]}function O(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!o(e)){if(t=dt(e))return t;e=[e]}return ct(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[x]<0||11<t[x]?x:t[k]<1||t[k]>Ne(t[E],t[x])?k:t[M]<0||24<t[M]||24===t[M]&&(0!==t[D]||0!==t[P]||0!==t[Ce])?M:t[D]<0||59<t[D]?D:t[P]<0||59<t[P]?P:t[Ce]<0||999<t[Ce]?Ce:-1,g(e)._overflowDayOfYear&&(t<E||k<t)&&(t=k),g(e)._overflowWeeks&&-1===t&&(t=Oe),g(e)._overflowWeekday&&-1===t&&(t=Be),g(e).overflow=t),e}var gt=/^\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)?)?$/,yt=/^\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)?)?$/,bt=/Z|[+-]\d\d(?::?\d\d)?/,vt=[["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]],_t=[["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/]],wt=/^\/?Date\((-?\d+)/i,Tt=/^(?:(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}))$/,St={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Et(e){var t,r,n,i,s,o,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=_t.length;if(l){for(g(e).iso=!0,t=0,r=a;t<r;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],n=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,r=u;t<r;t++)if(_t[t][1].exec(l[3])){s=(l[2]||" ")+_t[t][0];break}if(null==s)return e._isValid=!1}if(!n&&null!=s)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;o="Z"}e._f=i+(s||"")+(o||""),Pt(e)}else e._isValid=!1}function xt(e,t,r,n,i,s){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Re.indexOf(t),parseInt(r,10),parseInt(n,10),parseInt(i,10)];return s&&e.push(parseInt(s,10)),e}function kt(e){var t,r,n,i,s=Tt.exec(e._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));s?(t=xt(s[4],s[3],s[2],s[5],s[6],s[7]),r=s[1],n=t,i=e,r&&qe.indexOf(r)!==new Date(n[0],n[1],n[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(r=s[8],n=s[9],i=s[10],r?St[r]:n?0:((r=parseInt(i,10))-(n=r%100))/100*60+n),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Mt(e,t,r){return null!=e?e:null!=t?t:r}function Dt(e){var t,r,n,i,s,o,a,l,u,h,c,d=[];if(!e._d){for(h=e,c=new Date(m.now()),r=h._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[k]&&null==e._a[x]&&(null!=(c=(h=e)._w).GG||null!=c.W||null!=c.E?(o=1,a=4,n=Mt(c.GG,h._a[E],Ze(B(),1,4).year),i=Mt(c.W,1),((s=Mt(c.E,1))<1||7<s)&&(l=!0)):(o=h._locale._week.dow,a=h._locale._week.doy,u=Ze(B(),o,a),n=Mt(c.gg,h._a[E],u.year),i=Mt(c.w,u.week),null!=c.d?((s=c.d)<0||6<s)&&(l=!0):null!=c.e?(s=c.e+o,(c.e<0||6<c.e)&&(l=!0)):s=o),i<1||i>A(n,o,a)?g(h)._overflowWeeks=!0:null!=l?g(h)._overflowWeekday=!0:(u=Je(n,i,s,o,a),h._a[E]=u.year,h._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(c=Mt(e._a[E],r[E]),(e._dayOfYear>ze(c)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(c,0,e._dayOfYear),e._a[x]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=r[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[M]&&0===e._a[D]&&0===e._a[P]&&0===e._a[Ce]&&(e._nextDay=!0,e._a[M]=0),e._d=(e._useUTC?We:je).apply(null,d),n=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[M]=24),e._w&&void 0!==e._w.d&&e._w.d!==n&&(g(e).weekdayMismatch=!0)}}function Pt(e){if(e._f!==m.ISO_8601)if(e._f!==m.RFC_2822){e._a=[],g(e).empty=!0;for(var t,r,n,i=""+e._i,s=i.length,o=0,a=(r=ae(e._f,e._locale).match(re)||[]).length,l=0;l<a;l++)n=r[l],(t=(i.match(Me(n,e))||[])[0])&&(0<(c=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(c),i=i.slice(i.indexOf(t)+t.length),o+=t.length),se[n]?(t?g(e).empty=!1:g(e).unusedTokens.push(n),c=n,f=e,null!=(d=t)&&p(Pe,c)&&Pe[c](d,f._a,f,c)):e._strict&&!t&&g(e).unusedTokens.push(n);g(e).charsLeftOver=s-o,0<i.length&&g(e).unusedInput.push(i),e._a[M]<=12&&!0===g(e).bigHour&&0<e._a[M]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[M]=(s=e._locale,u=e._a[M],null==(h=e._meridiem)?u:null!=s.meridiemHour?s.meridiemHour(u,h):null!=s.isPM?((s=s.isPM(h))&&u<12&&(u+=12),u=s||12!==u?u:0):u),null!==(h=g(e).era)&&(e._a[E]=e._locale.erasConvertYear(h,e._a[E])),Dt(e),pt(e)}else kt(e);else Et(e);var u,h,c,d,f}function At(e){var t,r=e._i,n=e._f;{var i,s;if(e._locale=e._locale||O(e._l),null===r||void 0===n&&""===r)return G({nullInput:!0});else return"string"==typeof r&&(e._i=r=e._locale.preparse(r)),l(r)?new Z(pt(r)):(I(r)?e._d=r:o(n)?function(e){var t,r,n,i,s,o,a=!1,l=e._f.length;if(0===l)return g(e).invalidFormat=!0,e._d=new Date(NaN);for(i=0;i<l;i++)s=0,o=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],Pt(t),z(t)&&(o=!0),s=(s+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=s,a?s<n&&(n=s,r=t):(null==n||s<n||o)&&(n=s,r=t,o&&(a=!0));U(e,r||t)}(e):n?Pt(e):a(n=(r=e)._i)?r._d=new Date(m.now()):I(n)?r._d=new Date(n.valueOf()):"string"==typeof n?(i=r,null===(s=wt.exec(i._i))?(Et(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid&&(delete i._isValid,i._strict?i._isValid=!1:m.createFromInputFallback(i)))):i._d=new Date(+s[1])):o(n)?(r._a=Y(n.slice(0),function(e){return parseInt(e,10)}),Dt(r)):F(n)?(i=r)._d||(t=void 0===(s=ue(i._i)).day?s.date:s.day,i._a=Y([s.year,s.month,t,s.hour,s.minute,s.second,s.millisecond],function(e){return e&&parseInt(e,10)}),Dt(i)):$(n)?r._d=new Date(n):m.createFromInputFallback(r),z(e)||(e._d=null),e)}}function Ct(e,t,r,n,i){var s={};return!0!==t&&!1!==t||(n=t,t=void 0),!0!==r&&!1!==r||(n=r,r=void 0),(F(e)&&L(e)||o(e)&&0===e.length)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=i,s._l=r,s._i=e,s._f=t,s._strict=n,(i=new Z(pt(At(i=s))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function B(e,t,r,n){return Ct(e,t,r,n,!1)}m.createFromInputFallback=e("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":""))}),m.ISO_8601=function(){},m.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:G()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=B.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:G()});function Ot(e,t){var r,n;if(!(t=1===t.length&&o(t[0])?t[0]:t).length)return B();for(r=t[0],n=1;n<t.length;++n)t[n].isValid()&&!t[n][e](r)||(r=t[n]);return r}var Bt=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Nt(e){var e=ue(e),t=e.year||0,r=e.quarter||0,n=e.month||0,i=e.week||e.isoWeek||0,s=e.day||0,o=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,r,n=!1,i=Bt.length;for(t in e)if(p(e,t)&&(-1===S.call(Bt,t)||null!=e[t]&&isNaN(e[t])))return!1;for(r=0;r<i;++r)if(e[Bt[r]]){if(n)return!1;parseFloat(e[Bt[r]])!==f(e[Bt[r]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*o*60*60,this._days=+s+7*i,this._months=+n+3*r+12*t,this._data={},this._locale=O(),this._bubble()}function Ht(e){return e instanceof Nt}function Rt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Ft(e,r){n(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+s(~~(e/60),2)+r+s(~~e%60,2)})}Ft("Z",":"),Ft("ZZ",""),_("Z",ke),_("ZZ",ke),T(["Z","ZZ"],function(e,t,r){r._useUTC=!0,r._tzm=$t(ke,e)});var Lt=/([\+\-]|\d\d)/gi;function $t(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Lt)||["-",0,0])[1]+f(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var r;return t._isUTC?(t=t.clone(),r=(l(e)||I(e)?e:B(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+r),m.updateOffset(t,!1),t):B(e).local()}function Yt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}m.updateOffset=function(){};var zt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Gt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function N(e,t){var r,n,i=e,s=null;return Ht(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:$(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(s=zt.exec(e))?(r="-"===s[1]?-1:1,i={y:0,d:f(s[k])*r,h:f(s[M])*r,m:f(s[D])*r,s:f(s[P])*r,ms:f(Rt(1e3*s[Ce]))*r}):(s=Gt.exec(e))?(r="-"===s[1]?-1:1,i={y:jt(s[2],r),M:jt(s[3],r),w:jt(s[4],r),d:jt(s[5],r),h:jt(s[6],r),m:jt(s[7],r),s:jt(s[8],r)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=B(i.from),s=B(i.to),r=t.isValid()&&s.isValid()?(s=It(s,t),t.isBefore(s)?n=Wt(t,s):((n=Wt(s,t)).milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0},(i={}).ms=r.milliseconds,i.M=r.months),s=new Nt(i),Ht(e)&&p(e,"_locale")&&(s._locale=e._locale),Ht(e)&&p(e,"_isValid")&&(s._isValid=e._isValid),s}function jt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var r={};return r.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(r.months,"M").isAfter(t)&&--r.months,r.milliseconds=+t-+e.clone().add(r.months,"M"),r}function Vt(n,i){return function(e,t){var r;return null===t||isNaN(+t)||(q(i,"moment()."+i+"(period, number) is deprecated. Please use moment()."+i+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=e,e=t,t=r),Jt(this,N(e,t),n),this}}function Jt(e,t,r,n){var i=t._milliseconds,s=Rt(t._days),t=Rt(t._months);e.isValid()&&(n=null==n||n,t&&Ie(e,fe(e,"Month")+t*r),s&&me(e,"Date",fe(e,"Date")+s*r),i&&e._d.setTime(e._d.valueOf()+i*r),n&&m.updateOffset(e,s||t))}N.fn=Nt.prototype,N.invalid=function(){return N(NaN)};He=Vt(1,"add"),Ke=Vt(-1,"subtract");function Zt(e){return"string"==typeof e||e instanceof String}function Xt(e){return l(e)||I(e)||Zt(e)||$(e)||(r=o(t=e),n=!1,r&&(n=0===t.filter(function(e){return!$(e)&&Zt(t)}).length),r&&n)||function(e){var t,r,n=F(e)&&!L(e),i=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],o=s.length;for(t=0;t<o;t+=1)r=s[t],i=i||p(e,r);return n&&i}(e)||null==e;var t,r,n}function Kt(e,t){if(e.date()<t.date())return-Kt(t,e);var r=12*(t.year()-e.year())+(t.month()-e.month()),n=e.clone().add(r,"months");return-(r+(t-n<0?(t-n)/(n-e.clone().add(r-1,"months")):(t-n)/(e.clone().add(1+r,"months")-n)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=O(e))&&(this._locale=e),this)}m.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",m.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";Qe=e("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function Qt(){return this._locale}var er=126227808e5;function tr(e,t){return(e%t+t)%t}function rr(e,t,r){return e<100&&0<=e?new Date(e+400,t,r)-er:new Date(e,t,r).valueOf()}function nr(e,t,r){return e<100&&0<=e?Date.UTC(e+400,t,r)-er:Date.UTC(e,t,r)}function ir(e,t){return t.erasAbbrRegex(e)}function sr(){for(var e=[],t=[],r=[],n=[],i=this.eras(),s=0,o=i.length;s<o;++s)t.push(w(i[s].name)),e.push(w(i[s].abbr)),r.push(w(i[s].narrow)),n.push(w(i[s].name)),n.push(w(i[s].abbr)),n.push(w(i[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")}function or(e,t){n(0,[e,e.length],0,t)}function ar(e,t,r,n,i){var s;return null==e?Ze(this,n,i).year:(t>(s=A(e,n,i))&&(t=s),function(e,t,r,n,i){e=Je(e,t,r,n,i),t=We(e.year,0,e.dayOfYear);return this.year(t.getUTCFullYear()),this.month(t.getUTCMonth()),this.date(t.getUTCDate()),this}.call(this,e,t,r,n,i))}n("N",0,0,"eraAbbr"),n("NN",0,0,"eraAbbr"),n("NNN",0,0,"eraAbbr"),n("NNNN",0,0,"eraName"),n("NNNNN",0,0,"eraNarrow"),n("y",["y",1],"yo","eraYear"),n("y",["yy",2],0,"eraYear"),n("y",["yyy",3],0,"eraYear"),n("y",["yyyy",4],0,"eraYear"),_("N",ir),_("NN",ir),_("NNN",ir),_("NNNN",function(e,t){return t.erasNameRegex(e)}),_("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,r,n){n=r._locale.erasParse(e,n,r._strict);n?g(r).era=n:g(r).invalidEra=e}),_("y",Se),_("yy",Se),_("yyy",Se),_("yyyy",Se),_("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],E),T(["yo"],function(e,t,r,n){var i;r._locale._eraYearOrdinalRegex&&(i=e.match(r._locale._eraYearOrdinalRegex)),r._locale.eraYearOrdinalParse?t[E]=r._locale.eraYearOrdinalParse(e,i):t[E]=parseInt(e,10)}),n(0,["gg",2],0,function(){return this.weekYear()%100}),n(0,["GG",2],0,function(){return this.isoWeekYear()%100}),or("gggg","weekYear"),or("ggggg","weekYear"),or("GGGG","isoWeekYear"),or("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),r("weekYear",1),r("isoWeekYear",1),_("G",Ee),_("g",Ee),_("GG",b,y),_("gg",b,y),_("GGGG",we,ge),_("gggg",we,ge),_("GGGGG",Te,ye),_("ggggg",Te,ye),Ae(["gggg","ggggg","GGGG","GGGGG"],function(e,t,r,n){t[n.substr(0,2)]=f(e)}),Ae(["gg","GG"],function(e,t,r,n){t[n]=m.parseTwoDigitYear(e)}),n("Q",0,"Qo","quarter"),t("quarter","Q"),r("quarter",7),_("Q",i),T("Q",function(e,t){t[x]=3*(f(e)-1)}),n("D",["DD",2],"Do","date"),t("date","D"),r("date",9),_("D",b),_("DD",b,y),_("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],k),T("Do",function(e,t){t[k]=f(e.match(b)[0])});we=de("Date",!0);n("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),r("dayOfYear",4),_("DDD",_e),_("DDDD",pe),T(["DDD","DDDD"],function(e,t,r){r._dayOfYear=f(e)}),n("m",["mm",2],0,"minute"),t("minute","m"),r("minute",14),_("m",b),_("mm",b,y),T(["m","mm"],D);ge=de("Minutes",!1);n("s",["ss",2],0,"second"),t("second","s"),r("second",15),_("s",b),_("ss",b,y),T(["s","ss"],P);var lr,Te=de("Seconds",!1);for(n("S",0,0,function(){return~~(this.millisecond()/100)}),n(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),n(0,["SSS",3],0,"millisecond"),n(0,["SSSS",4],0,function(){return 10*this.millisecond()}),n(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),n(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),n(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),n(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),n(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),r("millisecond",16),_("S",_e,i),_("SS",_e,y),_("SSS",_e,pe),lr="SSSS";lr.length<=9;lr+="S")_(lr,Se);function ur(e,t){t[Ce]=f(1e3*("0."+e))}for(lr="S";lr.length<=9;lr+="S")T(lr,ur);ye=de("Milliseconds",!1),n("z",0,0,"zoneAbbr"),n("zz",0,0,"zoneName");i=Z.prototype;function hr(e){return e}i.add=He,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=F(e)&&!L(e),r=!1,n=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<n.length;i+=1)r=r||p(e,n[i]);return t&&r}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||B(),r=It(e,this).startOf("day"),r=m.calendarFormat(this,r)||"sameElse",t=t&&(h(t[r])?t[r].call(this,e):t[r]);return this.format(t||this.localeData().calendar(r,this,B(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,r){var n,i,s;if(!this.isValid())return NaN;if(!(n=It(e,this)).isValid())return NaN;switch(i=6e4*(n.utcOffset()-this.utcOffset()),t=c(t)){case"year":s=Kt(this,n)/12;break;case"month":s=Kt(this,n);break;case"quarter":s=Kt(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-i)/864e5;break;case"week":s=(this-n-i)/6048e5;break;default:s=this-n}return r?s:d(s)},i.endOf=function(e){var t,r;if(void 0===(e=c(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?nr:rr,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+=36e5-tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tr(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tr(t,1e3)-1}return this._d.setTime(t),m.updateOffset(this,!0),this},i.format=function(e){return e=e||(this.isUtc()?m.defaultFormatUtc:m.defaultFormat),e=oe(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?N({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(B(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||B(e).isValid())?N({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(B(),e)},i.get=function(e){return h(this[e=c(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:B(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,r,n){return e=l(e)?e:B(e),t=l(t)?t:B(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(n=n||"()")[0]?this.isAfter(e,r):!this.isBefore(e,r))&&(")"===n[1]?this.isBefore(t,r):!this.isAfter(t,r))},i.isSame=function(e,t){var e=l(e)?e:B(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=c(t)||"millisecond")?this.valueOf()===e.valueOf():(e=e.valueOf(),this.clone().startOf(t).valueOf()<=e&&e<=this.clone().endOf(t).valueOf()))},i.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},i.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},i.isValid=function(){return z(this)},i.lang=Qe,i.locale=qt,i.localeData=Qt,i.max=ve,i.min=be,i.parsingFlags=function(){return U({},g(this))},i.set=function(e,t){if("object"==typeof e)for(var r=function(e){var t,r=[];for(t in e)p(e,t)&&r.push({unit:t,priority:he[t]});return r.sort(function(e,t){return e.priority-t.priority}),r}(e=ue(e)),n=r.length,i=0;i<n;i++)this[r[i].unit](e[r[i].unit]);else if(h(this[e=c(e)]))return this[e](t);return this},i.startOf=function(e){var t,r;if(void 0===(e=c(e))||"millisecond"===e||!this.isValid())return this;switch(r=this._isUTC?nr:rr,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-=tr(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tr(t,6e4);break;case"second":t=this._d.valueOf(),t-=tr(t,1e3)}return this._d.setTime(t),m.updateOffset(this,!0),this},i.subtract=Ke,i.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},i.toObject=function(){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()}},i.toDate=function(){return new Date(this.valueOf())},i.toISOString=function(e){if(!this.isValid())return null;var t=(e=!0!==e)?this.clone().utc():this;return t.year()<0||9999<t.year()?oe(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):h(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",oe(t,"Z")):oe(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},i.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t="moment",r="";return this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(r+'[")]'))},"undefined"!=typeof Symbol&&null!=Symbol.for&&(i[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),i.toJSON=function(){return this.isValid()?this.toISOString():null},i.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},i.unix=function(){return Math.floor(this.valueOf()/1e3)},i.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},i.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},i.eraName=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].name;if(t[r].until<=e&&e<=t[r].since)return t[r].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].narrow;if(t[r].until<=e&&e<=t[r].since)return t[r].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),r=0,n=t.length;r<n;++r){if(e=this.clone().startOf("day").valueOf(),t[r].since<=e&&e<=t[r].until)return t[r].abbr;if(t[r].until<=e&&e<=t[r].since)return t[r].abbr}return""},i.eraYear=function(){for(var e,t,r=this.localeData().eras(),n=0,i=r.length;n<i;++n)if(e=r[n].since<=r[n].until?1:-1,t=this.clone().startOf("day").valueOf(),r[n].since<=t&&t<=r[n].until||r[n].until<=t&&t<=r[n].since)return(this.year()-m(r[n].since).year())*e+r[n].offset;return this.year()},i.year=Ge,i.isLeapYear=function(){return ce(this.year())},i.weekYear=function(e){return ar.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ar.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},i.quarter=i.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},i.month=Ye,i.daysInMonth=function(){return Ne(this.year(),this.month())},i.week=i.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},i.isoWeek=i.isoWeeks=function(e){var t=Ze(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},i.weeksInYear=function(){var e=this.localeData()._week;return A(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return A(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return A(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return A(this.isoWeekYear(),1,4)},i.date=we,i.day=i.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,r,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(t=e,r=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=r.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-n,"d")):n},i.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},i.isoWeekday=function(e){return this.isValid()?null!=e?(t=e,r=this.localeData(),r="string"==typeof t?r.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?r:r-7)):this.day()||7:null!=e?this:NaN;var t,r},i.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},i.hour=i.hours=v,i.minute=i.minutes=ge,i.second=i.seconds=Te,i.millisecond=i.milliseconds=ye,i.utcOffset=function(e,t,r){var n,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:Yt(this);if("string"==typeof e){if(null===(e=$t(ke,e)))return this}else Math.abs(e)<16&&!r&&(e*=60);return!this._isUTC&&t&&(n=Yt(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,N(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,m.updateOffset(this,!0),this._changeInProgress=null)),this},i.utc=function(e){return this.utcOffset(0,e)},i.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(Yt(this),"m")),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=$t(xe,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?B(e).utcOffset():0,(this.utcOffset()-e)%60==0)},i.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},i.isLocal=function(){return!!this.isValid()&&!this._isUTC},i.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},i.isUtc=Ut,i.isUTC=Ut,i.zoneAbbr=function(){return this._isUTC?"UTC":""},i.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},i.dates=e("dates accessor is deprecated. Use date instead.",we),i.months=e("months accessor is deprecated. Use month instead",Ye),i.years=e("years accessor is deprecated. Use year instead",Ge),i.zone=e("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?(this.utcOffset(e="string"!=typeof e?-e:e,t),this):-this.utcOffset()}),i.isDSTShifted=e("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return J(t,this),(t=At(t))._a?(e=(t._isUTC?u:B)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,r){for(var n=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),s=0,o=0;o<n;o++)(r&&e[o]!==t[o]||!r&&f(e[o])!==f(t[o]))&&s++;return s+i}(t._a,e.toArray())):this._isDSTShifted=!1,this._isDSTShifted});y=ee.prototype;function cr(e,t,r,n){var i=O(),n=u().set(n,t);return i[r](n,e)}function dr(e,t,r){if($(e)&&(t=e,e=void 0),e=e||"",null!=t)return cr(e,t,r,"month");for(var n=[],i=0;i<12;i++)n[i]=cr(e,i,r,"month");return n}function fr(e,t,r,n){t=("boolean"==typeof e||(r=t=e,e=!1),$(t)&&(r=t,t=void 0),t||"");var i,s=O(),o=e?s._week.dow:0,a=[];if(null!=r)return cr(t,(r+o)%7,n,"day");for(i=0;i<7;i++)a[i]=cr(t,(i+o)%7,n,"day");return a}y.calendar=function(e,t,r){return h(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,r):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],r=this._longDateFormat[e.toUpperCase()];return t||!r?t:(this._longDateFormat[e]=r.match(re).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},y.invalidDate=function(){return this._invalidDate},y.ordinal=function(e){return this._ordinal.replace("%d",e)},y.preparse=hr,y.postformat=hr,y.relativeTime=function(e,t,r,n){var i=this._relativeTime[r];return h(i)?i(e,t,r,n):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return h(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,r;for(r in e)p(e,r)&&(h(t=e[r])?this[r]=t:this["_"+r]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},y.eras=function(e,t){for(var r,n=this._eras||O("en")._eras,i=0,s=n.length;i<s;++i)switch("string"==typeof n[i].since&&(r=m(n[i].since).startOf("day"),n[i].since=r.valueOf()),typeof n[i].until){case"undefined":n[i].until=1/0;break;case"string":r=m(n[i].until).startOf("day").valueOf(),n[i].until=r.valueOf()}return n},y.erasParse=function(e,t,r){var n,i,s,o,a,l=this.eras();for(e=e.toUpperCase(),n=0,i=l.length;n<i;++n)if(s=l[n].name.toUpperCase(),o=l[n].abbr.toUpperCase(),a=l[n].narrow.toUpperCase(),r)switch(t){case"N":case"NN":case"NNN":if(o===e)return l[n];break;case"NNNN":if(s===e)return l[n];break;case"NNNNN":if(a===e)return l[n]}else if(0<=[s,o,a].indexOf(e))return l[n]},y.erasConvertYear=function(e,t){var r=e.since<=e.until?1:-1;return void 0===t?m(e.since).year():m(e.since).year()+(t-e.offset)*r},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sr.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sr.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sr.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(o(this._months)?this._months:this._months[(this._months.isFormat||Fe).test(t)?"format":"standalone"])[e.month()]:o(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(o(this._monthsShort)?this._monthsShort:this._monthsShort[Fe.test(t)?"format":"standalone"])[e.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,r){var n,i;if(this._monthsParseExact)return function(e,t,r){var n,i,s,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=u([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return r?"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))?i:null:"MMM"===t?-1!==(i=S.call(this._shortMonthsParse,e))||-1!==(i=S.call(this._longMonthsParse,e))?i:null:-1!==(i=S.call(this._longMonthsParse,e))||-1!==(i=S.call(this._shortMonthsParse,e))?i:null}.call(this,e,t,r);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(i=u([2e3,n]),r&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),r||this._monthsParse[n]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[n]=new RegExp(i.replace(".",""),"i")),r&&"MMMM"===t&&this._longMonthsParse[n].test(e))return n;if(r&&"MMM"===t&&this._shortMonthsParse[n].test(e))return n;if(!r&&this._monthsParse[n].test(e))return n}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=$e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},y.monthsShortRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ue.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(p(this,"_monthsShortRegex")||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},y.week=function(e){return Ze(e,this._week.dow,this._week.doy).week},y.firstDayOfYear=function(){return this._week.doy},y.firstDayOfWeek=function(){return this._week.dow},y.weekdays=function(e,t){return t=o(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"],!0===e?Xe(t,this._week.dow):e?t[e.day()]:t},y.weekdaysMin=function(e){return!0===e?Xe(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},y.weekdaysShort=function(e){return!0===e?Xe(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},y.weekdaysParse=function(e,t,r){var n,i;if(this._weekdaysParseExact)return function(e,t,r){var n,i,s,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=u([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return r?"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"dddd"===t?-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:"ddd"===t?-1!==(i=S.call(this._shortWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._minWeekdaysParse,e))?i:null:-1!==(i=S.call(this._minWeekdaysParse,e))||-1!==(i=S.call(this._weekdaysParse,e))||-1!==(i=S.call(this._shortWeekdaysParse,e))?i:null}.call(this,e,t,r);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(i=u([2e3,1]).day(n),r&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[n]=new RegExp(i.replace(".",""),"i")),r&&"dddd"===t&&this._fullWeekdaysParse[n].test(e))return n;if(r&&"ddd"===t&&this._shortWeekdaysParse[n].test(e))return n;if(r&&"dd"===t&&this._minWeekdaysParse[n].test(e))return n;if(!r&&this._weekdaysParse[n].test(e))return n}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(p(this,"_weekdaysRegex")||(this._weekdaysRegex=et),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},y.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(p(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=tt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},y.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||nt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,r){return 11<e?r?"pm":"PM":r?"am":"AM"},ft("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;return e+(1===f(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),m.lang=e("moment.lang is deprecated. Use moment.locale instead.",ft),m.langData=e("moment.langData is deprecated. Use moment.localeData instead.",O);var mr=Math.abs;function pr(e,t,r,n){t=N(t,r);return e._milliseconds+=n*t._milliseconds,e._days+=n*t._days,e._months+=n*t._months,e._bubble()}function gr(e){return e<0?Math.floor(e):Math.ceil(e)}function yr(e){return 4800*e/146097}function br(e){return 146097*e/4800}function vr(e){return function(){return this.as(e)}}_e=vr("ms"),pe=vr("s"),He=vr("m"),ve=vr("h"),be=vr("d"),Ke=vr("w"),v=vr("M"),ge=vr("Q"),Te=vr("y");function _r(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_r("milliseconds"),we=_r("seconds"),Ge=_r("minutes"),y=_r("hours"),wr=_r("days"),Tr=_r("months"),Sr=_r("years");var Er=Math.round,xr={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kr(e,t,r,n){var i=N(e).abs(),s=Er(i.as("s")),o=Er(i.as("m")),a=Er(i.as("h")),l=Er(i.as("d")),u=Er(i.as("M")),h=Er(i.as("w")),i=Er(i.as("y")),s=(s<=r.ss?["s",s]:s<r.s&&["ss",s])||o<=1&&["m"]||o<r.m&&["mm",o]||a<=1&&["h"]||a<r.h&&["hh",a]||l<=1&&["d"]||l<r.d&&["dd",l];return(s=(s=null!=r.w?s||h<=1&&["w"]||h<r.w&&["ww",h]:s)||u<=1&&["M"]||u<r.M&&["MM",u]||i<=1&&["y"]||["yy",i])[2]=t,s[3]=0<+e,s[4]=n,function(e,t,r,n,i){return i.relativeTime(t||1,!!r,e,n)}.apply(null,s)}var Mr=Math.abs;function Dr(e){return(0<e)-(e<0)||+e}function Pr(){if(!this.isValid())return this.localeData().invalidDate();var e,t,r,n,i,s,o,a=Mr(this._milliseconds)/1e3,l=Mr(this._days),u=Mr(this._months),h=this.asSeconds();return h?(e=d(a/60),t=d(e/60),a%=60,e%=60,r=d(u/12),u%=12,n=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=Dr(this._months)!==Dr(h)?"-":"",s=Dr(this._days)!==Dr(h)?"-":"",o=Dr(this._milliseconds)!==Dr(h)?"-":"",(h<0?"-":"")+"P"+(r?i+r+"Y":"")+(u?i+u+"M":"")+(l?s+l+"D":"")+(t||e||a?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(a?o+n+"S":"")):"P0D"}var H=Nt.prototype;return H.isValid=function(){return this._isValid},H.abs=function(){var e=this._data;return this._milliseconds=mr(this._milliseconds),this._days=mr(this._days),this._months=mr(this._months),e.milliseconds=mr(e.milliseconds),e.seconds=mr(e.seconds),e.minutes=mr(e.minutes),e.hours=mr(e.hours),e.months=mr(e.months),e.years=mr(e.years),this},H.add=function(e,t){return pr(this,e,t,1)},H.subtract=function(e,t){return pr(this,e,t,-1)},H.as=function(e){if(!this.isValid())return NaN;var t,r,n=this._milliseconds;if("month"===(e=c(e))||"quarter"===e||"year"===e)switch(t=this._days+n/864e5,r=this._months+yr(t),e){case"month":return r;case"quarter":return r/3;case"year":return r/12}else switch(t=this._days+Math.round(br(this._months)),e){case"week":return t/7+n/6048e5;case"day":return t+n/864e5;case"hour":return 24*t+n/36e5;case"minute":return 1440*t+n/6e4;case"second":return 86400*t+n/1e3;case"millisecond":return Math.floor(864e5*t)+n;default:throw new Error("Unknown unit "+e)}},H.asMilliseconds=_e,H.asSeconds=pe,H.asMinutes=He,H.asHours=ve,H.asDays=be,H.asWeeks=Ke,H.asMonths=v,H.asQuarters=ge,H.asYears=Te,H.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12):NaN},H._bubble=function(){var e=this._milliseconds,t=this._days,r=this._months,n=this._data;return 0<=e&&0<=t&&0<=r||e<=0&&t<=0&&r<=0||(e+=864e5*gr(br(r)+t),r=t=0),n.milliseconds=e%1e3,e=d(e/1e3),n.seconds=e%60,e=d(e/60),n.minutes=e%60,e=d(e/60),n.hours=e%24,t+=d(e/24),r+=e=d(yr(t)),t-=gr(br(e)),e=d(r/12),r%=12,n.days=t,n.months=r,n.years=e,this},H.clone=function(){return N(this)},H.get=function(e){return e=c(e),this.isValid()?this[e+"s"]():NaN},H.milliseconds=ye,H.seconds=we,H.minutes=Ge,H.hours=y,H.days=wr,H.weeks=function(){return d(this.days()/7)},H.months=Tr,H.years=Sr,H.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var r=!1,n=xr;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(r=e),"object"==typeof t&&(n=Object.assign({},xr,t),null!=t.s&&null==t.ss&&(n.ss=t.s-1)),t=kr(this,!r,n,e=this.localeData()),r&&(t=e.pastFuture(+this,t)),e.postformat(t)},H.toISOString=Pr,H.toString=Pr,H.toJSON=Pr,H.locale=qt,H.localeData=Qt,H.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pr),H.lang=Qe,n("X",0,0,"unix"),n("x",0,0,"valueOf"),_("x",Ee),_("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,r){r._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,r){r._d=new Date(f(e))}),m.version="2.29.3",R=B,m.fn=i,m.min=function(){return Ot("isBefore",[].slice.call(arguments,0))},m.max=function(){return Ot("isAfter",[].slice.call(arguments,0))},m.now=function(){return Date.now?Date.now():+new Date},m.utc=u,m.unix=function(e){return B(1e3*e)},m.months=function(e,t){return dr(e,t,"months")},m.isDate=I,m.locale=ft,m.invalid=G,m.duration=N,m.isMoment=l,m.weekdays=function(e,t,r){return fr(e,t,r,"weekdays")},m.parseZone=function(){return B.apply(null,arguments).parseZone()},m.localeData=O,m.isDuration=Ht,m.monthsShort=function(e,t){return dr(e,t,"monthsShort")},m.weekdaysMin=function(e,t,r){return fr(e,t,r,"weekdaysMin")},m.defineLocale=mt,m.updateLocale=function(e,t){var r,n;return null!=t?(n=lt,null!=C[e]&&null!=C[e].parentLocale?C[e].set(Q(C[e]._config,t)):(t=Q(n=null!=(r=dt(e))?r._config:n,t),null==r&&(t.abbr=e),(n=new ee(t)).parentLocale=C[e],C[e]=n),ft(e)):null!=C[e]&&(null!=C[e].parentLocale?(C[e]=C[e].parentLocale,e===ft()&&ft(e)):null!=C[e]&&delete C[e]),C[e]},m.locales=function(){return te(C)},m.weekdaysShort=function(e,t,r){return fr(e,t,r,"weekdaysShort")},m.normalizeUnits=c,m.relativeTimeRounding=function(e){return void 0===e?Er:"function"==typeof e&&(Er=e,!0)},m.relativeTimeThreshold=function(e,t){return void 0!==xr[e]&&(void 0===t?xr[e]:(xr[e]=t,"s"===e&&(xr.ss=t-1),!0))},m.calendarFormat=function(e,t){return(e=e.diff(t,"days",!0))<-6?"sameElse":e<-1?"lastWeek":e<0?"lastDay":e<1?"sameDay":e<2?"nextDay":e<7?"nextWeek":"sameElse"},m.prototype=i,m.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"},m}();var ae,Cr,le=ae.exports;const ue=[];function he(n,i=b){let s;const o=new Set;function a(e){if(t(n,e)&&(n=e,s)){const e=!ue.length;for(const e of o)e[1](),ue.push(e,n);if(e){for(let e=0;e<ue.length;e+=2)ue[e][0](ue[e+1]);ue.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=b){const r=[e,t];return o.add(r),1===o.size&&(s=i(a)||b),e(n),()=>{o.delete(r),0===o.size&&(s(),s=null)}}}}function ce(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,h=a.length<2;return{subscribe:he(t,t=>{let r=!1;const n=[];let i=0,s=b;const o=()=>{var e;i||(s(),e=a(l?n[0]:n,t),h?t(e):s=k(e)?e:b)},e=u.map((e,t)=>Y(e,e=>{n[t]=e,i&=~(1<<t),r&&o()},()=>{i|=1<<t}));return r=!0,o(),function(){P(e),s()}}).subscribe}}function de(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===fe));var t}var fe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function me(e,t){return!1!==t.clone&&t.isMergeableObject(e)?ve(Array.isArray(e)?[]:{},e,t):e}function pe(e,t,r){return e.concat(t).map(function(e){return me(e,r)})}function ge(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function ye(e,t){try{return t in e}catch(e){return!1}}function be(n,i,s){var o={};return s.isMergeableObject(n)&&ge(n).forEach(function(e){o[e]=me(n[e],s)}),ge(i).forEach(function(t){var e,r;(!ye(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(ye(n,t)&&s.isMergeableObject(i[t])?o[t]=function(e){if(!e.customMerge)return ve;e=e.customMerge(t);return"function"==typeof e?e:ve}(s)(n[t],i[t],s):o[t]=me(i[t],s))}),o}function ve(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||pe,r.isMergeableObject=r.isMergeableObject||de,r.cloneUnlessOtherwiseSpecified=me;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):be(e,t,r):me(t,r)}ve.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return ve(e,t,r)},{});throw new Error("first argument should be an array")};var _e=ve,we=function(e,t){return(we=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}we(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var p,v,Se,_=function(){return(_=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Ee(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function xe(e){return e.type===v.literal}function ke(e){return e.type===v.number}function Me(e){return e.type===v.date}function De(e){return e.type===v.time}function Pe(e){return e.type===v.select}function Ae(e){return e.type===v.plural}function Ce(e){return e.type===v.tag}function Oe(e){return e&&"object"==typeof e&&e.type===Se.number}function Be(e){return e&&"object"==typeof e&&e.type===Se.dateTime}(r=p=p||{})[r.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",r[r.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",r[r.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",r[r.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",r[r.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",r[r.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",r[r.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",r[r.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",r[r.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",r[r.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",r[r.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",r[r.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",r[r.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",r[r.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",r[r.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",r[r.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",r[r.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",r[r.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",r[r.INVALID_TAG=23]="INVALID_TAG",r[r.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",r[r.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",r[r.UNCLOSED_TAG=27]="UNCLOSED_TAG",(r=v=v||{})[r.literal=0]="literal",r[r.argument=1]="argument",r[r.number=2]="number",r[r.date=3]="date",r[r.time=4]="time",r[r.select=5]="select",r[r.plural=6]="plural",r[r.pound=7]="pound",r[r.tag=8]="tag",(r=Se=Se||{})[r.number=0]="number",r[r.dateTime=1]="dateTime";var r=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ne=/(?:[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;var He=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Re=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Fe=/^(@+)?(\+|#+)?[rs]?$/g,Le=/(\*)(0+)|(#+)(0+)|(0+)/g,$e=/^(0+)$/;function Ie(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Fe,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Ye(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 Ue(e){return Ye(e)||{}}function ze(e){for(var o={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":o.style="percent";continue;case"%x100":o.style="percent",o.scale=100;continue;case"currency":o.style="currency",o.currency=i.options[0];continue;case"group-off":case",_":o.useGrouping=!1;continue;case"precision-integer":case".":o.maximumFractionDigits=0;continue;case"measure-unit":case"unit":o.style="unit",o.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":o.notation="compact",o.compactDisplay="short";continue;case"compact-long":case"KK":o.notation="compact",o.compactDisplay="long";continue;case"scientific":o=_(_(_({},o),{notation:"scientific"}),i.options.reduce(function(e,t){return _(_({},e),Ue(t))},{}));continue;case"engineering":o=_(_(_({},o),{notation:"engineering"}),i.options.reduce(function(e,t){return _(_({},e),Ue(t))},{}));continue;case"notation-simple":o.notation="standard";continue;case"unit-width-narrow":o.currencyDisplay="narrowSymbol",o.unitDisplay="narrow";continue;case"unit-width-short":o.currencyDisplay="code",o.unitDisplay="short";continue;case"unit-width-full-name":o.currencyDisplay="name",o.unitDisplay="long";continue;case"unit-width-iso-code":o.currencyDisplay="symbol";continue;case"scale":o.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Le,function(e,t,r,n,i,s){if(t)o.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(s)throw new Error("We currently do not support exact integer digits")}return""});continue}if($e.test(i.stem))o.minimumIntegerDigits=i.stem.length;else if(Re.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Re,function(e,t,r,n,i,s){return"*"===r?o.minimumFractionDigits=t.length:n&&"#"===n[0]?o.maximumFractionDigits=n.length:i&&s?(o.minimumFractionDigits=i.length,o.maximumFractionDigits=i.length+s.length):(o.minimumFractionDigits=t.length,o.maximumFractionDigits=t.length),""});var s=i.options[0];"w"===s?o=_(_({},o),{trailingZeroDisplay:"stripIfInteger"}):s&&(o=_(_({},o),Ie(s)))}else Fe.test(i.stem)?o=_(_({},o),Ie(i.stem)):((s=Ye(i.stem))&&(o=_(_({},o),s)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(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)),!$e.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(o=_(_({},o),n)))}return o}var Ge={AX:["H"],BQ:["H"],CP:["H"],CZ:["H"],DK:["H"],FI:["H"],ID:["H"],IS:["H"],ML:["H"],NE:["H"],RU:["H"],SE:["H"],SJ:["H"],SK:["H"],AS:["h","H"],BT:["h","H"],DJ:["h","H"],ER:["h","H"],GH:["h","H"],IN:["h","H"],LS:["h","H"],PG:["h","H"],PW:["h","H"],SO:["h","H"],TO:["h","H"],VU:["h","H"],WS:["h","H"],"001":["H","h"],AL:["h","H","hB"],TD:["h","H","hB"],"ca-ES":["H","h","hB"],CF:["H","h","hB"],CM:["H","h","hB"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],LU:["H","h","hB"],NP:["H","h","hB"],PF:["H","h","hB"],SC:["H","h","hB"],SM:["H","h","hB"],SN:["H","h","hB"],TF:["H","h","hB"],VA:["H","h","hB"],CY:["h","H","hb","hB"],GR:["h","H","hb","hB"],CO:["h","H","hB","hb"],DO:["h","H","hB","hb"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],NA:["h","H","hB","hb"],PA:["h","H","hB","hb"],PR:["h","H","hB","hb"],VE:["h","H","hB","hb"],AC:["H","h","hb","hB"],AI:["H","h","hb","hB"],BW:["H","h","hb","hB"],BZ:["H","h","hb","hB"],CC:["H","h","hb","hB"],CK:["H","h","hb","hB"],CX:["H","h","hb","hB"],DG:["H","h","hb","hB"],FK:["H","h","hb","hB"],GB:["H","h","hb","hB"],GG:["H","h","hb","hB"],GI:["H","h","hb","hB"],IE:["H","h","hb","hB"],IM:["H","h","hb","hB"],IO:["H","h","hb","hB"],JE:["H","h","hb","hB"],LT:["H","h","hb","hB"],MK:["H","h","hb","hB"],MN:["H","h","hb","hB"],MS:["H","h","hb","hB"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],PN:["H","h","hb","hB"],SH:["H","h","hb","hB"],SX:["H","h","hb","hB"],TA:["H","h","hb","hB"],ZA:["H","h","hb","hB"],"af-ZA":["H","h","hB","hb"],AR:["H","h","hB","hb"],CL:["H","h","hB","hb"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],EA:["H","h","hB","hb"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],GT:["H","h","hB","hb"],HN:["H","h","hB","hb"],IC:["H","h","hB","hb"],KG:["H","h","hB","hb"],KM:["H","h","hB","hb"],LK:["H","h","hB","hb"],MA:["H","h","hB","hb"],MX:["H","h","hB","hb"],NI:["H","h","hB","hb"],PY:["H","h","hB","hb"],SV:["H","h","hB","hb"],UY:["H","h","hB","hb"],JP:["H","h","K"],AD:["H","hB"],AM:["H","hB"],AO:["H","hB"],AT:["H","hB"],AW:["H","hB"],BE:["H","hB"],BF:["H","hB"],BJ:["H","hB"],BL:["H","hB"],BR:["H","hB"],CG:["H","hB"],CI:["H","hB"],CV:["H","hB"],DE:["H","hB"],EE:["H","hB"],FR:["H","hB"],GA:["H","hB"],GF:["H","hB"],GN:["H","hB"],GP:["H","hB"],GW:["H","hB"],HR:["H","hB"],IL:["H","hB"],IT:["H","hB"],KZ:["H","hB"],MC:["H","hB"],MD:["H","hB"],MF:["H","hB"],MQ:["H","hB"],MZ:["H","hB"],NC:["H","hB"],NL:["H","hB"],PM:["H","hB"],PT:["H","hB"],RE:["H","hB"],RO:["H","hB"],SI:["H","hB"],SR:["H","hB"],ST:["H","hB"],TG:["H","hB"],TR:["H","hB"],WF:["H","hB"],YT:["H","hB"],BD:["h","hB","H"],PK:["h","hB","H"],AZ:["H","hB","h"],BA:["H","hB","h"],BG:["H","hB","h"],CH:["H","hB","h"],GE:["H","hB","h"],LI:["H","hB","h"],ME:["H","hB","h"],RS:["H","hB","h"],UA:["H","hB","h"],UZ:["H","hB","h"],XK:["H","hB","h"],AG:["h","hb","H","hB"],AU:["h","hb","H","hB"],BB:["h","hb","H","hB"],BM:["h","hb","H","hB"],BS:["h","hb","H","hB"],CA:["h","hb","H","hB"],DM:["h","hb","H","hB"],"en-001":["h","hb","H","hB"],FJ:["h","hb","H","hB"],FM:["h","hb","H","hB"],GD:["h","hb","H","hB"],GM:["h","hb","H","hB"],GU:["h","hb","H","hB"],GY:["h","hb","H","hB"],JM:["h","hb","H","hB"],KI:["h","hb","H","hB"],KN:["h","hb","H","hB"],KY:["h","hb","H","hB"],LC:["h","hb","H","hB"],LR:["h","hb","H","hB"],MH:["h","hb","H","hB"],MP:["h","hb","H","hB"],MW:["h","hb","H","hB"],NZ:["h","hb","H","hB"],SB:["h","hb","H","hB"],SG:["h","hb","H","hB"],SL:["h","hb","H","hB"],SS:["h","hb","H","hB"],SZ:["h","hb","H","hB"],TC:["h","hb","H","hB"],TT:["h","hb","H","hB"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],VC:["h","hb","H","hB"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],ZM:["h","hb","H","hB"],BO:["H","hB","h","hb"],EC:["H","hB","h","hb"],ES:["H","hB","h","hb"],GQ:["H","hB","h","hb"],PE:["H","hB","h","hb"],AE:["h","hB","hb","H"],"ar-001":["h","hB","hb","H"],BH:["h","hB","hb","H"],DZ:["h","hB","hb","H"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],HK:["h","hB","hb","H"],IQ:["h","hB","hb","H"],JO:["h","hB","hb","H"],KW:["h","hB","hb","H"],LB:["h","hB","hb","H"],LY:["h","hB","hb","H"],MO:["h","hB","hb","H"],MR:["h","hB","hb","H"],OM:["h","hB","hb","H"],PH:["h","hB","hb","H"],PS:["h","hB","hb","H"],QA:["h","hB","hb","H"],SA:["h","hB","hb","H"],SD:["h","hB","hb","H"],SY:["h","hB","hb","H"],TN:["h","hB","hb","H"],YE:["h","hB","hb","H"],AF:["H","hb","hB","h"],LA:["H","hb","hB","h"],CN:["H","hB","hb","h"],LV:["H","hB","hb","h"],TL:["H","hB","hb","h"],"zu-ZA":["H","hB","hb","h"],CD:["hB","H"],IR:["hB","H"],"hi-IN":["hB","h","H"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"te-IN":["hB","h","H"],KH:["hB","h","H","hb"],"ta-IN":["hB","h","hb","H"],BN:["hb","hB","h","H"],MY:["hb","hB","h","H"],ET:["hB","hb","h","H"],"gu-IN":["hB","hb","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],TW:["hB","hb","h","H"],KE:["hB","hb","H","h"],MM:["hB","hb","H","h"],TZ:["hB","hb","H","h"],UG:["hB","hb","H","h"]};var je=new RegExp("^".concat(r.source,"*")),We=new RegExp("".concat(r.source,"*$"));function w(e,t){return{start:e,end:t}}var r=!!String.prototype.startsWith,Ve=!!String.fromCodePoint,Je=!!Object.fromEntries,Ze=!!String.prototype.codePointAt,Xe=!!String.prototype.trimStart,Ke=!!String.prototype.trimEnd,qe=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Qe=!0;try{Qe="a"===(null==(_t=lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:_t[0])}catch(b){Qe=!1}var et,tt,rt=r?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},nt=Ve?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,s=0;s<i;){if(1114111<(r=e[s++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},it=Je?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],s=i[0],i=i[1];t[s]=i}return t},st=Ze?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},ot=Xe?function(e){return e.trimStart()}:function(e){return e.replace(je,"")},at=Ke?function(e){return e.trimEnd()}:function(e){return e.replace(We,"")};function lt(e,t){return new RegExp(e,t)}tt=Qe?(et=lt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return et.lastIndex=t,null!=(t=et.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=st(e,t);if(void 0===i||ct(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return nt.apply(void 0,n)};n.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,s=this.char();if(123===s){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===s&&0<e)break;if(35!==s||"plural"!==t&&"selectordinal"!==t){if(60===s&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(p.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===s&&!this.ignoreTag&&ht(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{s=this.clonePosition();this.bump(),n.push({type:v.pound,location:w(s,this.clonePosition())})}}}return{val:n,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:v.literal,value:"<".concat(n,"/>"),location:w(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ht(this.char()))return this.error(p.INVALID_TAG,w(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,w(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:v.tag,value:n,children:t,location:w(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,w(e,this.clonePosition())))}return this.error(p.UNCLOSED_TAG,w(r,this.clonePosition()))}return this.error(p.INVALID_TAG,w(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=w(r,this.clonePosition());return{val:{type:v.literal,value:n,location:r},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ht(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},n.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return nt.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),nt(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,w(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(p.MALFORMED_ARGUMENT,w(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:v.argument,value:n,location:w(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(p.MALFORMED_ARGUMENT,w(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=tt(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:w(e,this.clonePosition())}},n.prototype.parseArgumentOptions=function(e,t,r,n){var i,s=this.clonePosition(),o=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(o){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,w(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(f=at(m.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:w(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var h=w(n,this.clonePosition());if(l&&rt(null==l?void 0:l.style,"::",0)){var c=ot(l.style.slice(2));if("number"===o)return(m=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?m:{val:{type:v.number,value:r,location:h,style:m.val},err:null};if(0===c.length)return this.error(p.EXPECT_DATE_TIME_SKELETON,h);var d=c,f=(this.locale&&(d=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var o=1+(1&s),a=s<2?1:3+(s>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Ge[t||""]||Ge[r||""]||Ge["".concat(r,"-001")]||Ge["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<o--;)r=l+r}else r+="J"===i?"H":i}return r}(c,this.locale)),{type:Se.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},d.replace(Ne,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"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":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-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":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<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""}),i):{}});return{val:{type:"date"===o?v.date:v.time,value:r,location:h,style:f},err:null}}return{val:{type:"number"===o?v.number:"date"===o?v.date:v.time,value:r,location:h,style:null!=(c=null==l?void 0:l.style)?c:null},err:null};case"plural":case"selectordinal":case"select":d=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,w(d,_({},d)));this.bumpSpace();var m,f=this.parseIdentifierIfPossible(),h=0;if("select"!==o&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),f=this.parseIdentifierIfPossible(),h=m.val}l=this.tryParsePluralOrSelectOptions(e,o,t,f);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;c=w(n,this.clonePosition());return"select"===o?{val:{type:v.select,value:r,options:it(l.val),location:c},err:null}:{val:{type:v.plural,value:r,options:it(l.val),offset:h,pluralType:"plural"===o?"cardinal":"ordinal",location:c},err:null};default:return this.error(p.INVALID_ARGUMENT_TYPE,w(s,a))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(He).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var s=i[0],i=i.slice(1),o=0,a=i;o<a.length;o++)if(0===a[o].length)throw new Error("Invalid number skeleton");t.push({stem:s,options:i})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Se.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?ze(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,s=[],o=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(h.err)return h;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(o.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();h=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:p.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var c=this.tryParseArgumentClose(h);if(c.err)return c;s.push([a,{value:u.val,location:w(h,this.clonePosition())}]),o.add(a),this.bumpSpace(),a=(c=this.parseIdentifierIfPossible()).value,l=c.location}return 0===s.length?this.error("select"===t?p.EXPECT_SELECT_ARGUMENT_SELECTOR:p.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(p.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:s,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,s=0;!this.isEOF();){var o=this.char();if(!(48<=o&&o<=57))break;i=!0,s=10*s+(o-48),this.bump()}n=w(n,this.clonePosition());return i?qe(s*=r)?{val:s,err:null}:this.error(t,n):this.error(e,n)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=st(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},n.prototype.bumpIf=function(e){if(rt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),e=this.message.indexOf(e,t);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&ct(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var ut=n;function n(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function ht(e){return 97<=e&&e<=122||65<=e&&e<=90}function ct(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function dt(e,t){t=_({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new ut(e,t).parse();if(e.err)throw(r=SyntaxError(p[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Pe(e)||Ae(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else ke(e)&&Oe(e.style)||(Me(e)||De(e))&&Be(e.style)?delete e.style.location:Ce(e)&&r(e.children)})}(e.val),e.val}function ft(e,t){var r=t&&t.cache?t.cache:wt,n=t&&t.serializer?t.serializer:yt;return(t&&t.strategy?t.strategy:function(e,t){return gt(e,this,1===e.length?mt:pt,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function mt(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function pt(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function gt(e,t,r,n,i){return r.bind(t,e,n,i)}var yt=function(){return JSON.stringify(arguments)};function bt(){this.cache=Object.create(null)}bt.prototype.get=function(e){return this.cache[e]},bt.prototype.set=function(e,t){this.cache[e]=t};var vt,_t,wt={create:function(){return new bt}},Tt={variadic:function(e,t){return gt(e,this,pt,t.cache.create(),t.serializer)},monadic:function(e,t){return gt(e,this,mt,t.cache.create(),t.serializer)}};(_t=vt=vt||{}).MISSING_VALUE="MISSING_VALUE",_t.INVALID_VALUE="INVALID_VALUE",_t.MISSING_INTL_API="MISSING_INTL_API";Te(Nt,kt=Error),Nt.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,St,Et,xt,kt,Mt=Nt,Dt=(Te(Bt,xt=Mt),Bt),Pt=(Te(Ot,Et=Mt),Ot),At=(Te(Ct,St=Mt),Ct);function Ct(e,t){return St.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),vt.MISSING_VALUE,t)||this}function Ot(e,t,r){return Et.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),vt.INVALID_VALUE,r)||this}function Bt(e,t,r,n){return xt.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),vt.INVALID_VALUE,n)||this}function Nt(e,t,r){e=kt.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Ht(e,t,r,n,i,s,o){if(1===e.length&&xe(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var h=u[l];if(xe(h))a.push({type:T.literal,value:h.value});else if(h.type===v.pound)"number"==typeof s&&a.push({type:T.literal,value:r.getNumberFormat(t).format(s)});else{var c=h.value;if(!(i&&c in i))throw new At(c,o);c=i[c];if(h.type===v.argument)c&&"string"!=typeof c&&"number"!=typeof c||(c="string"==typeof c||"number"==typeof c?String(c):""),a.push({type:"string"==typeof c?T.literal:T.object,value:c});else if(Me(h)){var d="string"==typeof h.style?n.date[h.style]:Be(h.style)?h.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,d).format(c)})}else if(De(h))d="string"==typeof h.style?n.time[h.style]:Be(h.style)?h.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,d).format(c)});else if(ke(h))(d="string"==typeof h.style?n.number[h.style]:Oe(h.style)?h.style.parsedOptions:void 0)&&d.scale&&(c*=d.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,d).format(c)});else{if(Ce(h)){var f=h.children,m=h.value,p=i[m];if("function"!=typeof p)throw new Pt(m,"function",o);m=p(Ht(f,t,r,n,i,s).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Pe(h)){if(!(g=h.options[c]||h.options.other))throw new Dt(h.value,c,Object.keys(h.options),o);a.push.apply(a,Ht(g.value,t,r,n,i))}else if(Ae(h)){if(!(g=h.options["=".concat(c)])){if(!Intl.PluralRules)throw new Mt('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',vt.MISSING_INTL_API,o);var p=r.getPluralRules(t,{type:h.pluralType}).select(c-(h.offset||0)),g=h.options[p]||h.options.other}if(!g)throw new Dt(h.value,c,Object.keys(h.options),o);a.push.apply(a,Ht(g.value,t,r,n,i,c-(h.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Rt(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(r=T=T||{})[r.literal=0]="literal",r[r.object=1]="object",Object.defineProperty(a,"defaultLocale",{get:function(){return a.memoizedDefaultLocale||(a.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),a.memoizedDefaultLocale},enumerable:!1,configurable:!0}),a.memoizedDefaultLocale=null,a.resolveLocale=function(e){var t=Intl.NumberFormat.supportedLocalesOf(e);return 0<t.length?new Intl.Locale(t[0]):new Intl.Locale("string"==typeof e?e:e[0])},a.__parse=dt,a.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"}}};var Ft=a;function a(e,t,r,n){var i,s,o=this;if(void 0===t&&(t=a.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=o.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Ht(o.ast,o.locales,o.formatters,o.formats,e,void 0,o.message)},this.resolvedOptions=function(){return{locale:o.resolvedLocale.toString()}},this.getAst=function(){return o.ast},this.locales=t,this.resolvedLocale=a.resolveLocale(t),"string"==typeof e){if(this.message=e,!a.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=a.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=a.formats,(s=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=s[t])?_(_(_({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=_(_({},r[t]),n[t]||{}),e},{})):r),e},_({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:ft(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,Ee([void 0],t,!1)))},{cache:Rt((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Tt.variadic}),getDateTimeFormat:ft(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,Ee([void 0],t,!1)))},{cache:Rt(t.dateTime),strategy:Tt.variadic}),getPluralRules:ft(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,Ee([void 0],t,!1)))},{cache:Rt(t.pluralRules),strategy:Tt.variadic})}}const s={},Lt=(e,t,r)=>r&&(t in s||(s[t]={}),e in s[t]||(s[t][e]=r),r),$t=(t,r)=>{if(null!=r){if(r in s&&t in s[r])return s[r][t];var n=tr(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Ut(e))return null;e=function(e){return It[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Lt(t,r,i)}}};let It;const Yt=he({});function Ut(e){return e in It}function zt(t,...r){delete s[t],Yt.update(e=>(e[t]=_e.all([e[t]||{},...r]),e))}ce([Yt],([e])=>Object.keys(e)),Yt.subscribe(e=>It=e);const Gt={};function jt(e){return Gt[e]}function Wt(e){return null!=e&&tr(e).some(e=>{return null==(e=jt(e))?void 0:e.size})}const Vt={};function Jt(e){if(!Wt(e))return e in Vt?Vt[e]:Promise.resolve();const t=tr(e).map(e=>{var t=jt(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Vt[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return Gt[t].delete(r),0===Gt[t].size&&delete Gt[t],e().then(e=>e.default||e)}));return r.then(e=>zt(n,...e))}})).then(()=>{if(Wt(e))return Jt(e);delete Vt[e]}),Vt[e]}function Zt(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const Xt={fallbackLocale:null,loadingDelay:200,formats:{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"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};const Kt=he(!1);let qt;const Qt=he(null);function er(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function tr(e,t=Xt.fallbackLocale){e=er(e);return t?[...new Set([...e,...er(t)])]:e}function rr(){return null!=qt?qt:void 0}Qt.subscribe(e=>{qt=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ee=Object.assign(Object.assign({},Qt),{set:t=>{if(t&&function(e){if(null!=e){var t=tr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Ut(r))return r}}}(t)&&Wt(t)){var r=Xt["loadingDelay"];let e;return"undefined"!=typeof window&&null!=rr()&&r?e=window.setTimeout(()=>Kt.set(!0),r):Kt.set(!0),Jt(t).then(()=>{Qt.set(t)}).finally(()=>{clearTimeout(e),Kt.set(!1)})}return Qt.set(t)}}),nr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},ir=(e,t)=>{var r=Xt["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},sr=nr(e=>{var{locale:t,format:r}=e,e=Zt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=ir("number",r)),new Intl.NumberFormat(t,e)}),or=nr(e=>{var{locale:t,format:r}=e,e=Zt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=ir("date",r):0===Object.keys(e).length&&(e=ir("date","short")),new Intl.DateTimeFormat(t,e)}),ar=nr(e=>{var{locale:t,format:r}=e,e=Zt(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=ir("time",r):0===Object.keys(e).length&&(e=ir("time","short")),new Intl.DateTimeFormat(t,e)}),lr=nr((e,t=rr())=>new Ft(e,t,Xt.formats,{ignoreTag:Xt.ignoreTag})),ur=ce([ee,Yt],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:s,locale:o=rr(),default:a}=i;if(null==o)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=$t(e,o);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof l}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),l}else l=null!=(n=null!=(r=null==(r=(n=Xt).handleMissingMessage)?void 0:r.call(n,{locale:o,id:e,defaultValue:a}))?r:a)?n:e;if(!s)return l;let u=l;try{u=lr(l,o).format(s)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),hr=(ce([ee],()=>(e,t)=>((e={})=>{var{locale:t=rr()}=e,e=Zt(e,["locale"]);return ar(Object.assign({locale:t},e))})(t).format(e)),ce([ee],()=>(e,t)=>((e={})=>{var{locale:t=rr()}=e,e=Zt(e,["locale"]);return or(Object.assign({locale:t},e))})(t).format(e)),ce([ee],()=>(e,t)=>((e={})=>{var{locale:t=rr()}=e,e=Zt(e,["locale"]);return sr(Object.assign({locale:t},e))})(t).format(e)),ce([ee,Yt],()=>(e,t=rr())=>$t(e,t)),{en:{tournamentsList:{nothing:"Nothing to show here."}},zh:{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Gösterilecek."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}});var cr,dr,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==l&&l,fr="URLSearchParams"in l,mr="Symbol"in l&&"iterator"in Symbol,pr="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),gr="FormData"in l,yr="ArrayBuffer"in l;function br(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function vr(e){return e="string"!=typeof e?String(e):e}function _r(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return mr&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function wr(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Tr(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Sr(e){var t=new FileReader,r=Tr(t);return t.readAsArrayBuffer(e),r}function Er(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function xr(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:pr&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:gr&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:fr&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():yr&&pr&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Er(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):yr&&(ArrayBuffer.prototype.isPrototypeOf(e)||dr(e))?this._bodyArrayBuffer=Er(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):fr&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pr&&(this.blob=function(){var e=wr(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?wr(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(Sr)}),this.text=function(){var e,t,r=wr(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=Tr(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},gr&&(this.formData=function(){return this.text().then(Dr)}),this.json=function(){return this.text().then(JSON.parse)},this}yr&&(cr=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],dr=ArrayBuffer.isView||function(e){return e&&-1<cr.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=br(e),t=vr(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},u.prototype.delete=function(e){delete this.map[br(e)]},u.prototype.get=function(e){return e=br(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(br(e))},u.prototype.set=function(e,t){this.map[br(e)]=vr(t)},u.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},u.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),_r(r)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),_r(t)},u.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),_r(r)},mr&&(u.prototype[Symbol.iterator]=u.prototype.entries);var kr=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Mr(e,t){if(!(this instanceof Mr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof Mr){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new u(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new u(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<kr.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Dr(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function h(e,t){if(!(this instanceof h))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new u(t.headers),this.url=t.url||"",this._initBody(e)}Mr.prototype.clone=function(){return new Mr(this,{body:this._bodyInit})},xr.call(Mr.prototype),xr.call(h.prototype),h.prototype.clone=function(){return new h(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},h.error=function(){var e=new h(null,{status:0,statusText:""});return e.type="error",e};var Pr=[301,302,303,307,308],Or=(h.redirect=function(e,t){if(-1===Pr.indexOf(t))throw new RangeError("Invalid status code");return new h(null,{status:t,headers:{location:e}})},l.DOMException);try{new Or}catch(b){(Or=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Or.prototype.constructor=Or}function Br(n,o){return new Promise(function(i,e){var t=new Mr(n,o);if(t.signal&&t.signal.aborted)return e(new Or("Aborted","AbortError"));var s=new XMLHttpRequest;function r(){s.abort()}s.onload=function(){var e,r,t={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",r=new u,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new h(n,t))},0)},s.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){e(new Or("Aborted","AbortError"))},0)},s.open(t.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?s.withCredentials=!0:"omit"===t.credentials&&(s.withCredentials=!1),"responseType"in s&&(pr?s.responseType="blob":yr&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof u?t.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(o.headers).forEach(function(e){s.setRequestHeader(e,vr(o.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),s.onreadystatechange=function(){4===s.readyState&&t.signal.removeEventListener("abort",r)}),s.send(void 0===t._bodyInit?null:t._bodyInit)})}Br.polyfill=!0,l.fetch||(l.fetch=Br,l.Headers=u,l.Request=Mr,l.Response=h),self.fetch.bind(self);var Nr=function(e,t){return(Nr=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Hr(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Nr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function Rr(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,s=r.call(e),o=[];try{for(;(void 0===t||0<t--)&&!(n=s.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return o}function Lr(e,t,r){if(r||2===arguments.length)for(var n,i=0,s=t.length;i<s;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function c(e){return"function"==typeof e}function $r(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var Ir=$r(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function Yr(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}i.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var o=Rr(s),a=o.next();!a.done;a=o.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}else s.remove(this);s=this.initialTeardown;if(c(s))try{s()}catch(e){i=e instanceof Ir?e.errors:[e]}s=this._finalizers;if(s){this._finalizers=null;try{for(var l=Rr(s),u=l.next();!u.done;u=l.next()){var h=u.value;try{jr(h)}catch(e){i=null!=i?i:[],e instanceof Ir?i=Lr(Lr([],Fr(i)),Fr(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Ir(i)}},i.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)jr(e);else{if(e instanceof i){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},i.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},i.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},i.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Yr(t,e)},i.prototype.remove=function(e){var t=this._finalizers;t&&Yr(t,e),e instanceof i&&e._removeParent(this)},i.EMPTY=((Ve=new i).closed=!0,Ve);var Ur=i,zr=Ur.EMPTY;function i(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Gr(e){return e instanceof Ur||e&&"closed"in e&&c(e.remove)&&c(e.add)&&c(e.unsubscribe)}function jr(e){c(e)?e():e.unsubscribe()}var Wr=void 0,Vr=!1,Jr=!1,Zr={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Zr.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Lr([e,t],Fr(r))):setTimeout.apply(void 0,Lr([e,t],Fr(r)))},clearTimeout:function(e){var t=Zr.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Xr(){}var Kr=null;function qr(e){if(Vr){var t=!Kr;if(t&&(Kr={errorThrown:!1,error:null}),e(),t){var t=Kr,r=t.errorThrown,t=t.error;if(Kr=null,r)throw t}}else e()}Hr(o,Qr=Ur),o.create=function(e,t,r){return new on(e,t,r)},o.prototype.next=function(e){this.isStopped||this._next(e)},o.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},o.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},o.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Qr.prototype.unsubscribe.call(this),this.destination=null)},o.prototype._next=function(e){this.destination.next(e)},o.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},o.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Qr,en=o,tn=Function.prototype.bind;function o(e){var t=Qr.call(this)||this;return t.isStopped=!1,e?Gr(t.destination=e)&&e.add(t):t.destination=hn,t}function rn(e,t){return tn.call(e,t)}ln.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){un(e)}},ln.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){un(e)}else un(e)},ln.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){un(e)}};var nn,sn=ln,on=(Hr(an,nn=en),an);function an(e,t,r){var n=nn.call(this)||this,r=c(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Jr?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&rn(e.next,t),error:e.error&&rn(e.error,t),complete:e.complete&&rn(e.complete,t)}):e;return n.destination=new sn(r),n}function ln(e){this.partialObserver=e}function un(e){var t=e;Zr.setTimeout(function(){throw t})}var hn={closed:!0,next:Xr,error:function(e){throw e},complete:Xr},Je="function"==typeof Symbol&&Symbol.observable||"@@observable";function cn(e){return e}m.prototype.lift=function(e){var t=new m;return t.source=this,t.operator=e,t},m.prototype.subscribe=function(e,t,r){var n,i=this,s=(n=e)&&n instanceof en||n&&c(n.next)&&c(n.error)&&c(n.complete)&&Gr(n)?e:new on(e,t,r);return qr(function(){var e=i.operator,t=i.source;s.add(e?e.call(s,t):t?i._subscribe(s):i._trySubscribe(s))}),s},m.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},m.prototype.forEach=function(n,e){var i=this;return new(e=fn(e))(function(e,t){var r=new on({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},m.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},m.prototype[Je]=function(){return this},m.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?cn:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},m.prototype.toPromise=function(e){var n=this;return new(e=fn(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},m.create=function(e){return new m(e)};var dn=m;function m(e){e&&(this._subscribe=e)}function fn(e){return null!=(e=null!=e?e:Wr)?e:Promise}var mn,pn,gn,yn=$r(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ze=(Hr(S,gn=dn),S.prototype.lift=function(e){var t=new bn(this,this);return t.operator=e,t},S.prototype._throwIfClosed=function(){if(this.closed)throw new yn},S.prototype.next=function(i){var s=this;qr(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var r=Rr(s.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},S.prototype.error=function(t){var r=this;qr(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},S.prototype.complete=function(){var t=this;qr(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},S.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(S.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),S.prototype._trySubscribe=function(e){return this._throwIfClosed(),gn.prototype._trySubscribe.call(this,e)},S.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},S.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?zr:(this.currentObservers=null,i.push(e),new Ur(function(){t.currentObservers=null,Yr(i,e)}))},S.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},S.prototype.asObservable=function(){var e=new dn;return e.source=this,e},S.create=function(e,t){return new bn(e,t)},S),bn=(Hr(Tn,pn=Ze),Tn.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},Tn.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},Tn.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},Tn.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:zr},Tn),vn={now:function(){return(vn.delegate||Date).now()},delegate:void 0},_n=(Hr(wn,mn=Ze),wn.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,s=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(s.now()+t)),this._trimBuffer(),mn.prototype.next.call(this,e)},wn.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},wn.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var s=t.now(),o=0,a=1;a<r.length&&r[a]<=s;a+=2)o=a;o&&r.splice(0,o+1)}},wn);function wn(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=vn);var n=mn.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Tn(e,t){var r=pn.call(this)||this;return r.destination=e,r.source=t,r}function S(){var e=gn.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Sn=[],En={};window.emWidgets={topic:(e,t=0)=>{return-1==Sn.indexOf(e)&&(t=new _n(t),En[e]=t,Sn.push(e)),En[e]}};const xn=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC",kn={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"There was an error joining the tournament - "}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯 -"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare în timpul înregistrării în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş",register:"Kayıt Ol",details:"Detaylar",enrolled:"Katıldın",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά την διαδικασία εγγραφής στο τουρνουά - "}},es:{tournamentsThController:{login:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, por favor, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való feliratkozás során. Kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}},Mn={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet counts",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"OnGoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",mostRounds:"MostRounds",betCount:"BetCount",maxWinStakeRatio:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscrisă",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Terminat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei în/la câștig",winStakeRatio:"Pondere a mizei în/la câștig",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:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"RecuentoDeApuestas",maxWinStakeRatio:"RatioDeGananciaMáxima",winStakeRatio:"RatioDeGanancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{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:"MaxWinStakeRatio",winStakeRatio:"WinStakeRatio",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 Dn(r){let n,i,s,o,a,l,u;return{c(){n=N("div"),i=H(r[12]),L(n,"class",s="Status "+r[14]),L(n,"part",o="Status "+r[14])},m(e,t){O(e,n,t),C(n,i),l||(u=A(a=r[17].call(null,n)),l=!0)},p(e,t){4096&t&&$(i,e[12]),16384&t&&s!==(s="Status "+e[14])&&L(n,"class",s),16384&t&&o!==(o="Status "+e[14])&&L(n,"part",o)},d(e){e&&B(n),l=!1,u()}}}function Pn(e){let r,n=e[5]&&An(e);return{c(){n&&n.c(),r=z()},m(e,t){n&&n.m(e,t),O(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=An(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(r)}}}function An(e){let r,n,i=e[15]("tournamentsThumbnail.enrolled")+"";return{c(){r=N("div"),n=H(i),L(r,"class","Enrolled"),L(r,"part","Enrolled")},m(e,t){O(e,r,t),C(r,n)},p(e,t){32768&t&&i!==(i=e[15]("tournamentsThumbnail.enrolled")+"")&&$(n,i)},d(e){e&&B(r)}}}function Cn(r){let n,i,s,o,a;return{c(){L(n=N("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),L(n,"part",s="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){O(e,n,t),o||(a=A(r[17].call(null,n)),o=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"class",i),1&t&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"part",s)},d(e){e&&B(n),o=!1,a()}}}function On(r){let n,i,s,o,a;return{c(){L(n=N("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),L(n,"part",s="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),f(n,"background-image","url('"+r[4]+"')")},m(e,t){O(e,n,t),o||(a=A(r[17].call(null,n)),o=!0)},p(e,t){1&t&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"class",i),1&t&&s!==(s="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&L(n,"part",s),16&t&&f(n,"background-image","url('"+e[4]+"')")},d(e){e&&B(n),o=!1,a()}}}function Bn(r){let n,i,s,o,a;return{c(){n=N("div"),i=H(r[10]),L(n,"class","Date"),L(n,"part","Date")},m(e,t){O(e,n,t),C(n,i),o||(a=A(s=r[16].call(null,n,r[2])),o=!0)},p(e,t){1024&t&&$(i,e[10]),s&&k(s.update)&&4&t&&s.update.call(null,e[2])},d(e){e&&B(n),o=!1,a()}}}function Nn(r){let n,i,s,o,a,l,u,h,c,d,f,m,p,g,y,b,v,_,w,T,S,E,x=r[15]("tournamentsThumbnail.scoreCriteria")+"",k=r[15]("tournamentsThumbnail.minbet")+"",M=r[15]("tournamentsThumbnail.seegames")+"",D=r[15]("tournamentsThumbnail.here")+"";return{c(){n=N("div"),i=N("p"),s=H(x),o=H(":\n \n "),a=N("span"),l=H(r[13]),h=H("\n ("),c=H(k),d=R(),f=H(r[6]),m=H(")"),p=R(),g=N("div"),y=N("p"),b=H(M),v=R(),_=N("a"),w=H(D),L(a,"part","ScoreCriteriaSpan"),L(i,"part","ScoreCriteriaP"),L(n,"class","ScoreCriteria"),L(n,"part","ScoreCriteria"),L(_,"part","GamesAnchor"),L(_,"href",r[8]),L(_,"target",T="true"===r[9]?"_self":"_blank"),L(y,"part","GamesP"),L(g,"class","Games"),L(g,"part","Games")},m(e,t){O(e,n,t),C(n,i),C(i,s),C(i,o),C(i,a),C(a,l),C(i,h),C(i,c),C(i,d),C(i,f),C(i,m),O(e,p,t),O(e,g,t),C(g,y),C(y,b),C(y,v),C(y,_),C(_,w),S||(E=[A(u=r[18].call(null,a)),F(_,"click",r[24])],S=!0)},p(e,t){32768&t&&x!==(x=e[15]("tournamentsThumbnail.scoreCriteria")+"")&&$(s,x),8192&t&&$(l,e[13]),32768&t&&k!==(k=e[15]("tournamentsThumbnail.minbet")+"")&&$(c,k),64&t&&$(f,e[6]),32768&t&&M!==(M=e[15]("tournamentsThumbnail.seegames")+"")&&$(b,M),32768&t&&D!==(D=e[15]("tournamentsThumbnail.here")+"")&&$(w,D),256&t&&L(_,"href",e[8]),512&t&&T!==(T="true"===e[9]?"_self":"_blank")&&L(_,"target",T)},d(e){e&&B(n),e&&B(p),e&&B(g),S=!1,P(E)}}}function Hn(e){let r,n,i,s,o,a,l,u,h,c=e[0]&&Dn(e),d="true"==e[7]&&Pn(e);function f(e){return e[4]?On:Cn}let m=f(e),p=m(e),g=e[2]&&Bn(e),y=e[11]&&Nn(e);return{c(){r=N("div"),c&&c.c(),n=R(),d&&d.c(),i=R(),p.c(),s=R(),o=N("div"),a=N("div"),l=H(e[1]),u=R(),g&&g.c(),h=R(),y&&y.c(),this.c=b,L(a,"class","Title"),L(a,"part","Title"),L(o,"class","Details"),L(o,"part","Details"),L(r,"class","Thumbnail"),L(r,"part","Thumbnail")},m(e,t){O(e,r,t),c&&c.m(r,null),C(r,n),d&&d.m(r,null),C(r,i),p.m(r,null),C(r,s),C(r,o),C(o,a),C(a,l),C(o,u),g&&g.m(o,null),C(o,h),y&&y.m(o,null)},p(e,[t]){e[0]?c?c.p(e,t):((c=Dn(e)).c(),c.m(r,n)):c&&(c.d(1),c=null),"true"==e[7]?d?d.p(e,t):((d=Pn(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),m===(m=f(e))&&p?p.p(e,t):(p.d(1),(p=m(e))&&(p.c(),p.m(r,s))),2&t&&$(l,e[1]),e[2]?g?g.p(e,t):((g=Bn(e)).c(),g.m(o,h)):g&&(g.d(1),g=null),e[11]?y?y.p(e,t):((y=Nn(e)).c(),y.m(o,null)):y&&(y.d(1),y=null)},i:b,o:b,d(e){e&&B(r),c&&c.d(),d&&d.d(),p.d(),g&&g.d(),y&&y.d()}}}function Rn(t,e,i){let s,{session:r=""}=(te(t,ur,e=>i(15,s=e)),e),{userid:n=""}=e,{title:o=""}=e,{startdate:a=""}=e,{status:l=""}=e,{tourid:u=""}=e,{thumbnail:h=""}=e,{userenrolled:c=""}=e,{scorecriteria:d=""}=e,{minbetcount:f=""}=e,{showenrolled:m="false"}=e,{gameurl:p=""}=e,{lang:g="en"}=e,{keepbrowsercontext:y="false"}=e,b="",v=!1,_="",w="",T="";Object.keys(Mn).forEach(e=>{zt(e,Mn[e])});const S=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(11,v=!0),e.data.type=="TournamentStatus_"+u&&i(0,l=e.data.status))},E=()=>{let e=new Date(a),t=new Intl.DateTimeFormat(g,{month:"long"}).format(e),r=e.getDate(),n=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(10,b=r+" "+s("tournamentsThumbnail."+t)+", "+s("Running"===l?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},x=()=>{"Unstarted"==l&&(i(12,_=s("tournamentsThumbnail.scheduled")),i(14,T="StatusUnstarted")),"Running"==l&&(i(12,_=s("tournamentsThumbnail.ongoing")),i(14,T="StatusRunning")),"Closed"!=l&&"Closing"!=l||i(12,_=s("tournamentsThumbnail.finished")),"Closed"==l&&i(14,T="StatusClosed"),"Closing"==l&&i(14,T="StatusClosing")},k=()=>{"BetCount"==d&&i(13,w=s("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==d&&i(13,w=s("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==d&&i(13,w=s("tournamentsThumbnail.winStakeRatio"))},M=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};re(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S)}));return t.$$set=e=>{"session"in e&&i(20,r=e.session),"userid"in e&&i(21,n=e.userid),"title"in e&&i(1,o=e.title),"startdate"in e&&i(2,a=e.startdate),"status"in e&&i(0,l=e.status),"tourid"in e&&i(3,u=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,c=e.userenrolled),"scorecriteria"in e&&i(22,d=e.scorecriteria),"minbetcount"in e&&i(6,f=e.minbetcount),"showenrolled"in e&&i(7,m=e.showenrolled),"gameurl"in e&&i(8,p=e.gameurl),"lang"in e&&i(23,g=e.lang),"keepbrowsercontext"in e&&i(9,y=e.keepbrowsercontext)},t.$$.update=()=>{var e;1048576&t.$$.dirty&&r&&(0<r.length&&"false"!=r?i(11,v=!0):i(11,v=!1)),1&t.$$.dirty&&l&&x(),8388610&t.$$.dirty&&g&&o&&(e=g,ee.set(e),k(),x(),a&&E()),4&t.$$.dirty&&a&&E(),4194304&t.$$.dirty&&d&&k()},[l,o,a,u,h,c,f,m,p,y,b,v,_,w,T,s,E,x,k,M,r,n,d,g,()=>M()]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>: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'}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.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(--emfe-w-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(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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{font-size:18px;padding-bottom:10px}.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}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Rn,Hn,t,{session:20,userid:21,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:22,minbetcount:6,showenrolled:7,gameurl:8,lang:23,keepbrowsercontext:9},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext"]}get session(){return this.$$.ctx[20]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[21]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[22]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[23]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}});const Fn={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"rămas",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function Ln(r){let n,i,s,o,a,l,u,h,c,d,f,m,p,g=r[9](r[0])+"",y=r[9](r[1])+"";function b(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Yn:0<e[4]?In:$n}let v=b(r),_=v(r);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Gn:0<e[4]?zn:0<e[3]?Un:void 0}let T=w(r),S=T&&T(r);return{c(){n=N("div"),i=N("div"),s=H(g),o=R(),a=N("div"),l=H(y),u=R(),h=N("div"),c=N("div"),_.c(),d=R(),S&&S.c(),L(i,"class","StartDate"),L(i,"part","StartDate"),L(a,"class","EndDate"),L(a,"part","EndDate"),L(n,"class","TournamentDates"),L(n,"part","TournamentDates"),L(c,"class","ProgressBar"),L(c,"part","ProgressBar"),L(h,"class","ProgressBarWrapper"),L(h,"part","ProgressBarWrapper")},m(e,t){O(e,n,t),C(n,i),C(i,s),C(n,o),C(n,a),C(a,l),O(e,u,t),O(e,h,t),C(h,c),_.m(c,null),C(c,d),S&&S.m(c,null),m||(p=A(f=r[8].call(null,h)),m=!0)},p(e,t){1&t&&g!==(g=e[9](e[0])+"")&&$(s,g),2&t&&y!==(y=e[9](e[1])+"")&&$(l,y),v===(v=b(e))&&_?_.p(e,t):(_.d(1),(_=v(e))&&(_.c(),_.m(c,d))),T===(T=w(e))&&S?S.p(e,t):(S&&S.d(1),(S=T&&T(e))&&(S.c(),S.m(c,null)))},d(e){e&&B(n),e&&B(u),e&&B(h),_.d(),S&&S.d(),m=!1,p()}}}function $n(e){let r;return{c(){L(r=N("div"),"class","ProgressBarFill"),L(r,"part","ProgressBarFill"),f(r,"width",e[6]()+"%")},m(e,t){O(e,r,t)},p(e,t){64&t&&f(r,"width",e[6]()+"%")},d(e){e&&B(r)}}}function In(e){let r;return{c(){L(r=N("div"),"class","ProgressBarFillStarting"),L(r,"part","ProgressBarFillStarting")},m(e,t){O(e,r,t)},p:b,d(e){e&&B(r)}}}function Yn(e){let r;return{c(){L(r=N("div"),"class","ProgressBarFillEnd"),L(r,"part","ProgressBarFillEnd")},m(e,t){O(e,r,t)},p:b,d(e){e&&B(r)}}}function Un(e){let r,n,i,s,o=e[7]("tournamentsDuration.left")+"";return{c(){r=N("div"),n=H(e[5]),i=R(),s=H(o),L(r,"class","Remaining"),L(r,"part","Remaining")},m(e,t){O(e,r,t),C(r,n),C(r,i),C(r,s)},p(e,t){32&t&&$(n,e[5]),128&t&&o!==(o=e[7]("tournamentsDuration.left")+"")&&$(s,o)},d(e){e&&B(r)}}}function zn(e){let r,n,i,s,o=e[7]("tournamentsDuration.starting")+"",a=e[10](e[4])+"";return{c(){r=N("div"),n=H(o),i=R(),s=H(a),L(r,"class","Remaining"),L(r,"part","Remaining")},m(e,t){O(e,r,t),C(r,n),C(r,i),C(r,s)},p(e,t){128&t&&o!==(o=e[7]("tournamentsDuration.starting")+"")&&$(n,o),16&t&&a!==(a=e[10](e[4])+"")&&$(s,a)},d(e){e&&B(r)}}}function Gn(e){let r,n,i=e[7]("tournamentsDuration.finished")+"";return{c(){r=N("div"),n=H(i),L(r,"class","Finished"),L(r,"part","Finished")},m(e,t){O(e,r,t),C(r,n)},p(e,t){128&t&&i!==(i=e[7]("tournamentsDuration.finished")+"")&&$(n,i)},d(e){e&&B(r)}}}function jn(e){let r,n=e[0]&&e[1]&&Ln(e);return{c(){r=N("div"),n&&n.c(),this.c=b,L(r,"class","TournamentDuration"),L(r,"part","TournamentDuration")},m(e,t){O(e,r,t),n&&n.m(r,null)},p(e,[t]){e[0]&&e[1]?n?n.p(e,t):((n=Ln(e)).c(),n.m(r,null)):n&&(n.d(1),n=null)},i:b,o:b,d(e){e&&B(r),n&&n.d()}}}function Wn(e,t,r){let n,i,{startdate:s=""}=(te(e,ur,e=>r(7,i=e)),t),{enddate:o=""}=t,{status:a=""}=t,{lang:l="en"}=t,u="",h="",c="";Object.keys(Fn).forEach(e=>{zt(e,Fn[e])});const d=e=>new Date(e).getTime(),f=(e,t)=>(d(t)-d(e))/6e4,m=new Date,p=()=>{r(3,u=f(m,o)),r(4,h=f(m,s)),r(5,c=g(u))},g=e=>{var t=(e,t)=>e+" "+i(t);return e<60?t(Math.ceil(e),"tournamentsDuration.minutes"):e<1440?t(Math.ceil(e/60),"tournamentsDuration.hours"):t(Math.ceil(e/1440),"tournamentsDuration.days")};return e.$$set=e=>{"startdate"in e&&r(0,s=e.startdate),"enddate"in e&&r(1,o=e.enddate),"status"in e&&r(2,a=e.status),"lang"in e&&r(11,l=e.lang)},e.$$.update=()=>{11&e.$$.dirty&&r(6,n=()=>{if(u<=0)return 100;var e=f(s,o),t=100/e;return Math.floor((e-u)*t)}),11&e.$$.dirty&&s&&o&&p(),2048&e.$$.dirty&&l&&p(),2056&e.$$.dirty&&l&&g(u)},[s,o,a,u,h,c,n,i,p,e=>{let t=new Date(e),r=new Intl.DateTimeFormat(l,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},g,l]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Wn,jn,t,{startdate:0,enddate:1,status:2,lang:11},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[11]}set lang(e){this.$$set({lang:e}),g()}});const Vn={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis"}}};function Jn(e,t,r){const n=e.slice();return n[4]=t[r],n[6]=r,n}function Zn(t){let n,i=t[0],s=[];for(let e=0;e<i.length;e+=1)s[e]=Kn(Jn(t,i,e));let o=null;return i.length||(o=Xn(t)),{c(){n=N("div");for(let e=0;e<s.length;e+=1)s[e].c();o&&o.c(),L(n,"class","Prizes"),L(n,"part","Prizes")},m(e,t){O(e,n,t);for(let e=0;e<s.length;e+=1)s[e].m(n,null);o&&o.m(n,null)},p(t,r){if(3&r){let e;for(i=t[0],e=0;e<i.length;e+=1){const o=Jn(t,i,e);s[e]?s[e].p(o,r):(s[e]=Kn(o),s[e].c(),s[e].m(n,null))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length,!i.length&&o?o.p(t,r):i.length?o&&(o.d(1),o=null):((o=Xn(t)).c(),o.m(n,null))}},d(e){e&&B(n),U(s,e),o&&o.d()}}}function Xn(e){let r,n,i=e[1]("tournamentsPrizes.noprizes")+"";return{c(){r=N("p"),n=H(i)},m(e,t){O(e,r,t),C(r,n)},p(e,t){2&t&&i!==(i=e[1]("tournamentsPrizes.noprizes")+"")&&$(n,i)},d(e){e&&B(r)}}}function Kn(e){let r,n,i,s,o,a,l,t,u,h=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"",c=e[4].name+"";return{c(){r=N("div"),n=N("p"),i=N("span"),s=H(h),o=R(),a=H(c),l=R(),L(i,"class","PrizeRank"),L(i,"part","PrizeRank"),L(n,"class","PrizeText"),L(n,"part","PrizeText"),L(r,"class",t="Prize Prize"+e[6]),L(r,"part",u="Prize Prize"+e[6])},m(e,t){O(e,r,t),C(r,n),C(n,i),C(i,s),C(n,o),C(n,a),C(r,l)},p(e,t){1&t&&h!==(h=(1<e[4].count?e[4].rank+"~"+(e[4].rank+e[4].count-1):e[4].rank)+"")&&$(s,h),1&t&&c!==(c=e[4].name+"")&&$(a,c)},d(e){e&&B(r)}}}function qn(e){let r,n,i,s,o,a,l,u=e[1]("tournamentsPrizes.prizes")+"",h=e[0]&&Zn(e);return{c(){r=N("div"),n=N("div"),(i=N("span")).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(--emfe-w-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>',s=R(),o=N("p"),a=H(u),l=R(),h&&h.c(),this.c=b,L(i,"class","TournamentPrizesIconWrapper"),L(i,"part","TournamentPrizesIconWrapper"),L(o,"class","PrizesTitle"),L(o,"part","PrizesTitle"),L(n,"class","TournamentPrizesIconSection"),L(n,"part","TournamentPrizesIconSection"),L(r,"class","TournamentPrizes"),L(r,"part","TournamentPrizes")},m(e,t){O(e,r,t),C(r,n),C(n,i),C(n,s),C(n,o),C(o,a),C(r,l),h&&h.m(r,null)},p(e,[t]){2&t&&u!==(u=e[1]("tournamentsPrizes.prizes")+"")&&$(a,u),e[0]?h?h.p(e,t):((h=Zn(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:b,o:b,d(e){e&&B(r),h&&h.d()}}}function Qn(e,t,r){let n;te(e,ur,e=>r(1,n=e));let i,{tourid:s=""}=t;Object.keys(Vn).forEach(e=>{zt(e,Vn[e])});const o=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&r(0,i=e.data.prizes)};return re(()=>(window.addEventListener("message",o,!1),()=>{window.removeEventListener("message",o)})),e.$$set=e=>{"tourid"in e&&r(2,s=e.tourid)},[i,n,s]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}span{color:var(--emfe-w-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(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Qn,qn,t,{tourid:2},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid"]}get tourid(){return this.$$.ctx[2]}set tourid(e){this.$$set({tourid:e}),g()}});const ei={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function ti(e,t,r){const n=e.slice();return n[38]=t[r],n[40]=r,n}function ri(r){let i,n,s,o,a,l,u,h,c=r[0],d=[];for(let e=0;e<c.length;e+=1)d[e]=ni(ti(r,c,e));return{c(){(i=N("div")).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>',n=R(),s=N("main"),o=N("div");for(let e=0;e<d.length;e+=1)d[e].c();a=R(),(l=N("div")).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>',L(i,"class","SliderNavButton"),L(i,"part","SliderNavButton"),G(i,"disabled",r[6]),L(o,"class","items"),L(o,"part","items"),f(o,"transform","translateX("+r[1]+"px)"),L(l,"class","SliderNavButton"),L(l,"part","SliderNavButton"),G(l,"disabled",r[7])},m(e,t){O(e,i,t),O(e,n,t),O(e,s,t),C(s,o);for(let e=0;e<d.length;e+=1)d[e].m(o,null);r[22](o),O(e,a,t),O(e,l,t),u||(h=[F(i,"click",r[18]),F(l,"click",r[23])],u=!0)},p(t,r){if(64&r[0]&&G(i,"disabled",t[6]),5913&r[0]){let e;for(c=t[0],e=0;e<c.length;e+=1){var n=ti(t,c,e);d[e]?d[e].p(n,r):(d[e]=ni(n),d[e].c(),d[e].m(o,null))}for(;e<d.length;e+=1)d[e].d(1);d.length=c.length}2&r[0]&&f(o,"transform","translateX("+t[1]+"px)"),128&r[0]&&G(l,"disabled",t[7])},d(e){e&&B(i),e&&B(n),e&&B(s),U(d,e),r[22](null),e&&B(a),e&&B(l),u=!1,P(h)}}}function ni(r){let n,i,s,o,a,l,u,h,c,d,f,m,p,g=r[8]("gamesSlider.playNow")+"";function y(){return r[19](r[38])}function b(){return r[20](r[40])}return{c(){n=N("div"),i=N("span"),s=H(g),l=R(),u=N("img"),f=R(),L(i,"class",o="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),L(i,"part",a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),I(u.src,h=r[38].thumbnail)||L(u,"src",h),L(u,"width","132px"),L(u,"height","100px"),L(u,"alt",c=r[38].name),L(u,"title",d=r[38].name),L(n,"class","item"),L(n,"part","item")},m(e,t){O(e,n,t),C(n,i),C(i,s),C(n,l),C(n,u),C(n,f),m||(p=[F(n,"click",y),F(n,"mouseenter",b),F(n,"mouseleave",r[21])],m=!0)},p(e,t){r=e,256&t[0]&&g!==(g=r[8]("gamesSlider.playNow")+"")&&$(s,g),24&t[0]&&o!==(o="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&L(i,"class",o),24&t[0]&&a!==(a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&L(i,"part",a),1&t[0]&&!I(u.src,h=r[38].thumbnail)&&L(u,"src",h),1&t[0]&&c!==(c=r[38].name)&&L(u,"alt",c),1&t[0]&&d!==(d=r[38].name)&&L(u,"title",d)},d(e){e&&B(n),m=!1,P(p)}}}function ii(r){let n,i=r[0]&&ri(r);return{c(){n=N("div"),i&&i.c(),this.c=b,L(n,"class","TournamentsGamesSlider"),L(n,"part","TournamentsGamesSlider")},m(e,t){O(e,n,t),i&&i.m(n,null),r[24](n)},p(e,t){e[0]?i?i.p(e,t):((i=ri(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:b,o:b,d(e){e&&B(n),i&&i.d(),r[24](null)}}}function si(e,t,r){let n,i,s;te(e,ur,e=>r(8,s=e));let o,a,l,u,{tournamenturl:h=""}=t,{scrollby:c="3"}=t,{pagfactor:d="175"}=t,{lang:f=""}=t,m=window.navigator.userAgent,p=[],g=0,y=null,b=null,v=!1,_=0;Object.keys(ei).forEach(e=>{zt(e,ei[e])});const w=e=>{r(3,v=!0),r(4,l=e)},T=()=>{r(3,v=!1),r(4,l=-1)},S=e=>{e=(e.touches||e.originalEvent.touches)[0];y=e.clientX,b=e.clientY},E=e=>{var t;y&&b&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=y-t,e=b-e,Math.abs(t)>Math.abs(e)&&x(0<t?1:-1),y=null,b=null)},x=e=>{0<e&&!i?(r(1,g-=o),r(1,g=g<_?_:g)):e<0&&!n&&(r(1,g+=o),r(1,g=0<g?0:g))},k=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return re(()=>(o=parseInt(c,10)*parseInt(d,10),()=>{a.removeEventListener("touchstart",S),a.removeEventListener("touchmove",E)})),e.$$set=e=>{"tournamenturl"in e&&r(14,h=e.tournamenturl),"scrollby"in e&&r(15,c=e.scrollby),"pagfactor"in e&&r(13,d=e.pagfactor),"lang"in e&&r(16,f=e.lang)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(6,n=0===g),131074&e.$$.dirty[0]&&r(7,i=g<=_),16384&e.$$.dirty[0]&&h){let e=new URL(h),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${g})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",f),e.searchParams.append("platform",xn(m)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(0,p=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",S,{passive:!0}),a.addEventListener("touchmove",E,{passive:!0})),1&e.$$.dirty[0]&&p.length&&setTimeout(()=>{r(17,_=-1*(u.scrollWidth-u.clientWidth)),r(13,d=new String(u.scrollWidth/p.length)),o=parseInt(c,10)*parseFloat(d,2).toFixed(2)},1e3)},r(1,g=0),[p,g,a,v,l,u,n,i,s,w,T,x,k,d,h,c,f,_,()=>x(-1),e=>k(e),e=>w(e),()=>T(),function(e){J[e?"unshift":"push"](()=>{u=e,r(5,u)})},()=>x(1),function(e){J[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}function oi(e){let r,n,i,s,o,a,l,u,h,c=e[10]&&li(e);function d(e){return e[10]?"Closed"!=e[19]&&"Closing"!=e[19]?ci:"true"==e[3]?hi:void 0:di}let f=d(e),m=f&&f(e),p=(e[13]||e[15])&&vi(e),g="true"==e[4]&&_i(e);return{c(){r=N("div"),n=N("casino-tournaments-thumbnail"),i=R(),c&&c.c(),s=R(),o=N("div"),m&&m.c(),a=R(),p&&p.c(),l=R(),g&&g.c(),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"title",e[16]),y(n,"status",e[19]),y(n,"startdate",e[17]),y(n,"tourid",e[20]),y(n,"scorecriteria",e[23]),y(n,"minbetcount",e[24]),y(n,"thumbnail",e[21]),y(n,"userenrolled",e[22]),y(n,"showenrolled",e[5]),y(n,"gameurl",e[26]),y(n,"lang",e[8]),y(n,"keepbrowsercontext",e[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),L(o,"class","TournamentButtons"),L(o,"part","TournamentButtons"),L(r,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),L(r,"part",h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){O(e,r,t),C(r,n),C(r,i),c&&c.m(r,null),C(r,s),C(r,o),m&&m.m(o,null),C(r,a),p&&p.m(r,null),C(r,l),g&&g.m(r,null)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),65536&t[0]&&y(n,"title",e[16]),524288&t[0]&&y(n,"status",e[19]),131072&t[0]&&y(n,"startdate",e[17]),1048576&t[0]&&y(n,"tourid",e[20]),8388608&t[0]&&y(n,"scorecriteria",e[23]),16777216&t[0]&&y(n,"minbetcount",e[24]),2097152&t[0]&&y(n,"thumbnail",e[21]),4194304&t[0]&&y(n,"userenrolled",e[22]),32&t[0]&&y(n,"showenrolled",e[5]),67108864&t[0]&&y(n,"gameurl",e[26]),256&t[0]&&y(n,"lang",e[8]),512&t[0]&&y(n,"keepbrowsercontext",e[9]),e[10]?c?c.p(e,t):((c=li(e)).c(),c.m(r,s)):c&&(c.d(1),c=null),f===(f=d(e))&&m?m.p(e,t):(m&&m.d(1),(m=f&&f(e))&&(m.c(),m.m(o,null))),e[13]||e[15]?p?p.p(e,t):((p=vi(e)).c(),p.m(r,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):((g=_i(e)).c(),g.m(r,null)):g&&(g.d(1),g=null),134217920&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"class",u),134217920&t[0]&&h!==(h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"part",h)},d(e){e&&B(r),c&&c.d(),m&&m.d(),p&&p.d(),g&&g.d()}}}function ai(e){let r,n,i,s;return{c(){r=N("div"),(n=N("div")).innerHTML='<div class="ph-col-12" part="ph-col-12"><div class="ph-picture" part="ph-picture"></div> \n <div class="ph-row" part="ph-row"><div class="ph-col-6 big" part="ph-col-6 big"></div> \n <div class="ph-col-4 empty big" part="ph-col-4 empty big"></div> \n <div class="ph-col-4" part="ph-col-4"></div> \n <div class="ph-col-8 empty" part="ph-col-8 empty"></div> \n <div class="ph-col-6" part="ph-col-6"></div> \n <div class="ph-col-6 empty" part="ph-col-6 empty"></div> \n <div class="ph-col-12" part="ph-col-12"></div></div></div>',L(n,"class","ph-item"),L(n,"part","ph-item"),L(r,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")),L(r,"part",s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){O(e,r,t),C(r,n)},p(e,t){134217920&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"class",i),134217920&t[0]&&s!==(s="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn")+" "+(e[27]?"elementToFadeOut":"elementToFadeIn"))&&L(r,"part",s)},d(e){e&&B(r)}}}function li(e){let r,n,i=e[20]&&ui(e);return{c(){i&&i.c(),r=R(),y(n=N("casino-tournaments-thumbnail-duration"),"status",e[19]),y(n,"startdate",e[17]),y(n,"lang",e[8]),y(n,"enddate",e[18]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),O(e,r,t),O(e,n,t)},p(e,t){e[20]?i?i.p(e,t):((i=ui(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),524288&t[0]&&y(n,"status",e[19]),131072&t[0]&&y(n,"startdate",e[17]),256&t[0]&&y(n,"lang",e[8]),262144&t[0]&&y(n,"enddate",e[18])},d(e){i&&i.d(e),e&&B(r),e&&B(n)}}}function ui(r){let n,i,s,o;return{c(){y(n=N("casino-tournaments-thumbnail-prizes"),"tourid",r[20]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){O(e,n,t),s||(o=A(i=r[33].call(null,n,r[20])),s=!0)},p(e,t){1048576&t[0]&&y(n,"tourid",e[20]),i&&k(i.update)&&1048576&t[0]&&i.update.call(null,e[20])},d(e){e&&B(n),s=!1,o()}}}function hi(r){let n,i,s,o,a=r[28]("tournamentsThController.details")+"";return{c(){n=N("button"),i=H(a),L(n,"class","DetailsLargeButton"),L(n,"part","DetailsLargeButton")},m(e,t){O(e,n,t),C(n,i),s||(o=F(n,"click",r[46]),s=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&$(i,a)},d(e){e&&B(n),s=!1,o()}}}function ci(e){let r,n,i="true"==e[3]&&fi(e);function s(e){return 1==e[22]?pi:mi}let o=s(e),a=o(e);return{c(){i&&i.c(),r=R(),a.c(),n=z()},m(e,t){i&&i.m(e,t),O(e,r,t),a.m(e,t),O(e,n,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=fi(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),o===(o=s(e))&&a?a.p(e,t):(a.d(1),(a=o(e))&&(a.c(),a.m(n.parentNode,n)))},d(e){i&&i.d(e),e&&B(r),a.d(e),e&&B(n)}}}function di(r){let n,i,s,o,a,l,u,h=r[28]("tournamentsThController.login")+"",c=r[28]("tournamentsThController.register")+"";return{c(){n=N("button"),i=H(h),s=R(),o=N("button"),a=H(c),L(n,"class","LoginButton"),L(n,"part","LoginButton"),L(o,"class","RegisterButton"),L(o,"part","RegisterButton")},m(e,t){O(e,n,t),C(n,i),O(e,s,t),O(e,o,t),C(o,a),l||(u=[F(n,"click",r[42]),F(o,"click",r[43])],l=!0)},p(e,t){268435456&t[0]&&h!==(h=e[28]("tournamentsThController.login")+"")&&$(i,h),268435456&t[0]&&c!==(c=e[28]("tournamentsThController.register")+"")&&$(a,c)},d(e){e&&B(n),e&&B(s),e&&B(o),l=!1,P(u)}}}function fi(r){let n,i,s,o,a=r[28]("tournamentsThController.details")+"";return{c(){n=N("button"),i=H(a),L(n,"class","DetailsButton"),L(n,"part","DetailsButton")},m(e,t){O(e,n,t),C(n,i),s||(o=F(n,"click",r[44]),s=!0)},p(e,t){268435456&t[0]&&a!==(a=e[28]("tournamentsThController.details")+"")&&$(i,a)},d(e){e&&B(n),s=!1,o()}}}function mi(r){let n,i,s,o,a;function l(e){return 1==e[12]?yi:gi}let u=l(r),h=u(r);return{c(){n=N("button"),h.c(),L(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),L(n,"part",s="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[13]},m(e,t){O(e,n,t),h.m(n,null),o||(a=F(n,"click",r[45]),o=!0)},p(e,t){u===(u=l(e))&&h?h.p(e,t):(h.d(1),(h=u(e))&&(h.c(),h.m(n,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&L(n,"class",i),128&t[0]&&s!==(s="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&L(n,"part",s),8192&t[0]&&(n.disabled=e[13])},d(e){e&&B(n),h.d(),o=!1,a()}}}function pi(e){let r,n="true"==e[3]&&bi(e);return{c(){n&&n.c(),r=z()},m(e,t){n&&n.m(e,t),O(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=bi(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&B(r)}}}function gi(e){let r,n,i,s,o,a,l,u,h,c=e[28]("tournamentsThController.join")+"";return{c(){r=N("span"),n=H(c),i=R(),s=d("svg"),o=d("defs"),a=d("style"),l=H(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=d("g"),h=d("path"),L(r,"part","JoinButtonSpan"),L(h,"class","a"),L(h,"part","a JoinButtonSvgA"),L(h,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),L(h,"transform","translate(26 26) rotate(180)"),L(u,"transform","translate(26 26) rotate(180)"),L(s,"part","JoinButtonSvg"),L(s,"xmlns","http://www.w3.org/2000/svg"),L(s,"width","26"),L(s,"height","26"),L(s,"viewBox","0 0 26 26")},m(e,t){O(e,r,t),C(r,n),O(e,i,t),O(e,s,t),C(s,o),C(o,a),C(a,l),C(s,u),C(u,h)},p(e,t){268435456&t[0]&&c!==(c=e[28]("tournamentsThController.join")+"")&&$(n,c)},d(e){e&&B(r),e&&B(i),e&&B(s)}}}function yi(e){let r,n;return{c(){r=d("svg"),L(n=d("circle"),"cx","20"),L(n,"cy","20"),L(n,"r","18"),L(r,"class","spinner"),L(r,"part","spinner")},m(e,t){O(e,r,t),C(r,n)},p:b,d(e){e&&B(r)}}}function bi(e){let r,n,i=e[28]("tournamentsThController.enrolled")+"";return{c(){r=N("button"),n=H(i),L(r,"class","EnrolledButton"),L(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){O(e,r,t),C(r,n)},p(e,t){268435456&t[0]&&i!==(i=e[28]("tournamentsThController.enrolled")+"")&&$(n,i)},d(e){e&&B(r)}}}function vi(e){let r,n,i,s,o=e[28]("tournamentsThController.joinerror")+"";return{c(){r=N("span"),n=H(o),i=R(),s=H(e[14]),L(r,"class","ErrorText"),L(r,"part","ErrorText")},m(e,t){O(e,r,t),C(r,n),C(r,i),C(r,s)},p(e,t){268435456&t[0]&&o!==(o=e[28]("tournamentsThController.joinerror")+"")&&$(n,o),16384&t[0]&&$(s,e[14])},d(e){e&&B(r)}}}function _i(e){let r;return{c(){y(r=N("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),y(r,"lang",e[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){O(e,r,t)},p(e,t){4&t[0]&&y(r,"tournamenturl",e[2]),256&t[0]&&y(r,"lang",e[8])},d(e){e&&B(r)}}}function wi(e){let r;function n(e){return e[11]?ai:e[16]?oi:void 0}let i=n(e),s=i&&i(e);return{c(){s&&s.c(),r=z(),this.c=b},m(e,t){s&&s.m(e,t),O(e,r,t)},p(e,t){i===(i=n(e))&&s?s.p(e,t):(s&&s.d(1),(s=i&&i(e))&&(s.c(),s.m(r.parentNode,r)))},i:b,o:b,d(e){s&&s.d(e),e&&B(r)}}}function Ti(e,t,u){let r;te(e,ur,e=>u(28,r=e));let n,i,s,o,h,a,c,l,d,f,{session:m=""}=t,{userid:p=""}=t,{tournamenturl:g=""}=t,y=t["touridx"],{endpoint:b=""}=t,{showdetails:v=""}=t,{showslider:_=""}=t,{showenrolled:R=""}=t,{maxwidth:F=""}=t,{fullsize:L=""}=t,{lang:w=""}=t,{loginevent:T=""}=t,{registerevent:S=""}=t,{loginurl:E=""}=t,{registerurl:x=""}=t,{currency:k=""}=t,{keepbrowsercontext:$="false"}=t,M=!1,D="",P=!0,I=window.navigator.userAgent,A=!1,C=!1,Y="There was an error while trying to join the tournament",O=!1,U=[],B=[],z="#",N=!1;var G,j;({withLocale:G,translations:j}={withLocale:"en",translations:{}}),ee.subscribe(e=>{null==e&&(Yt.set(j),ee.set(G))}),Object.keys(kn).forEach(e=>{zt(e,kn[e])});const W=e=>{J(e),Q(e),q(this,h)},V=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(10,M=!0),D=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(h&&h!=e.id)return;W(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+y){let e=r.data.tournamentData,t=y<4?100*y:300*Math.random()+300;u(27,N=1==y),setTimeout(()=>{u(27,N=!0),u(20,h=e.id),W(e)},t),setTimeout(()=>{u(27,N=!1)},200+t)}},J=e=>{e.state!=o&&(u(19,o=e.state),window.postMessage({type:"TournamentStatus_"+h,status:o},window.location.href))},Z=()=>{T&&window.postMessage({type:T,transition:"Login"},window.location.href),E&&(window.location=E)},X=()=>{S&&window.postMessage({type:S,transition:"Register"},window.location.href),x&&(window.location=x)},H=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},K=async(t,e)=>{u(13,C=!1),u(15,O=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(12,A=!0);let r=new URL(b+"/bonus/claim"),n=new Headers,i={},s=(r.searchParams.append("language",w),r.searchParams.append("platform",xn(I)),n.append("Content-Type","application/json"),n.append("X-SessionID",D),e&&1<=e.length&&(i={language:w,bonusCode:e[0].code,currency:k}),{method:"PUT",headers:n,body:JSON.stringify(i)});const o=()=>{u(12,A=!1),u(22,c=!0)},a=e=>{u(12,A=!1),e&&u(14,Y=e),u(13,C=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,s)).json()}catch(e){a()}return e})();if(l)if(1==l.success)o();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(b+"/tournaments/"+h,{headers:{"X-SessionID":m}})).json())?void 0:e.item)&&t.playerEnrolled?o():(a(l.errorMessage+". Please try again"),u(15,O=!0),u(13,C=!1))}else a(l.errorMessage)},q=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:U},window.location.href)},Q=e=>{e&&(u(16,n=e.nameOrTitle||""),u(17,i=e.startTime),u(18,s=e.endTime),u(19,o=e.state),u(20,h=e.id),u(21,a=e.thumbnail),u(22,c=e.playerEnrolled||!1),u(23,l=e.scoreCriteria),u(24,d=e.minBetCount),U=e.prizes,u(25,B=e.wallets||[]),u(26,z=e.termsUrl||"#"))};return re(()=>(u(11,P=!1),window.addEventListener("message",V,!1),()=>{window.removeEventListener("message",V)})),e.$$set=e=>{"session"in e&&u(0,m=e.session),"userid"in e&&u(1,p=e.userid),"tournamenturl"in e&&u(2,g=e.tournamenturl),"touridx"in e&&u(34,y=e.touridx),"endpoint"in e&&u(35,b=e.endpoint),"showdetails"in e&&u(3,v=e.showdetails),"showslider"in e&&u(4,_=e.showslider),"showenrolled"in e&&u(5,R=e.showenrolled),"maxwidth"in e&&u(6,F=e.maxwidth),"fullsize"in e&&u(7,L=e.fullsize),"lang"in e&&u(8,w=e.lang),"loginevent"in e&&u(36,T=e.loginevent),"registerevent"in e&&u(37,S=e.registerevent),"loginurl"in e&&u(38,E=e.loginurl),"registerurl"in e&&u(39,x=e.registerurl),"currency"in e&&u(40,k=e.currency),"keepbrowsercontext"in e&&u(9,$=e.keepbrowsercontext)},e.$$.update=()=>{if(1&e.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?(D=m,u(10,M=!0)):u(10,M=!1)),260&e.$$.dirty[0]&&u(41,f=g&&w),1024&e.$$.dirty[1]&&f){u(11,P=!0);{var r=g;u(11,P=!0);let e=new URL(r),t=new Headers;e.searchParams.append("language",w),e.searchParams.append("platform",xn(I)),M&&t.append("X-SessionID",D),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(11,P=!1),Q(e.item)})}}},[m,p,g,v,_,R,F,L,w,$,M,P,A,C,Y,O,n,i,s,o,h,a,c,l,d,B,z,N,r,Z,X,H,K,q,y,b,T,S,E,x,k,f,()=>Z(),()=>X(),()=>H(h),()=>K(h,B),()=>H(h)]}function Si(e,t,r){const n=e.slice();return n[21]=t[r],n[23]=r,n}function Ei(t){let n,i=t[11],s=[];for(let e=0;e<i.length;e+=1)s[e]=ki(Si(t,i,e));let o=null;return i.length||(o=xi(t)),{c(){for(let e=0;e<s.length;e+=1)s[e].c();n=z(),o&&o.c()},m(t,r){for(let e=0;e<s.length;e+=1)s[e].m(t,r);O(t,n,r),o&&o.m(t,r)},p(t,r){if(7167&r){let e;for(i=t[11],e=0;e<i.length;e+=1){const o=Si(t,i,e);s[e]?s[e].p(o,r):(s[e]=ki(o),s[e].c(),s[e].m(n.parentNode,n))}for(;e<s.length;e+=1)s[e].d(1);s.length=i.length,!i.length&&o?o.p(t,r):i.length?o&&(o.d(1),o=null):((o=xi(t)).c(),o.m(n.parentNode,n))}},d(e){U(s,e),e&&B(n),o&&o.d(e)}}}function xi(e){let r,n,i=e[12]("tournamentsList.nothing")+"";return{c(){r=N("p"),n=H(i)},m(e,t){O(e,r,t),C(r,n)},p(e,t){4096&t&&i!==(i=e[12]("tournamentsList.nothing")+"")&&$(n,i)},d(e){e&&B(r)}}}function ki(e){let r,n,i;return{c(){y(r=N("casino-tournaments-thumbnail-controller"),"touridx",e[23]+1),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"endpoint",e[2]),y(r,"showdetails","true"),y(r,"showslider","false"),y(r,"tournamenturl",n=e[21].href),y(r,"maxwidth",i=e[11].length<=2),y(r,"loginurl",e[5]),y(r,"loginevent",e[3]),y(r,"registerurl",e[6]),y(r,"registerevent",e[4]),y(r,"lang",e[8]),y(r,"currency",e[7]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank,\n TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill,\n TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton\n 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(e,t){O(e,r,t)},p(e,t){1&t&&y(r,"session",e[0]),2&t&&y(r,"userid",e[1]),4&t&&y(r,"endpoint",e[2]),2048&t&&n!==(n=e[21].href)&&y(r,"tournamenturl",n),2048&t&&i!==(i=e[11].length<=2)&&y(r,"maxwidth",i),32&t&&y(r,"loginurl",e[5]),8&t&&y(r,"loginevent",e[3]),64&t&&y(r,"registerurl",e[6]),16&t&&y(r,"registerevent",e[4]),256&t&&y(r,"lang",e[8]),128&t&&y(r,"currency",e[7]),512&t&&y(r,"keepbrowsercontext",e[9])},d(e){e&&B(r)}}}function Mi(e){let r,n=!e[10]&&Ei(e);return{c(){r=N("div"),n&&n.c(),this.c=b,L(r,"class","TournamentList"),L(r,"part","TournamentList")},m(e,t){O(e,r,t),n&&n.m(r,null)},p(e,[t]){e[10]?n&&(n.d(1),n=null):n?n.p(e,t):((n=Ei(e)).c(),n.m(r,null))},i:b,o:b,d(e){e&&B(r),n&&n.d()}}}function Di(e,t,r){let n,{session:i=""}=(te(e,ur,e=>r(12,n=e)),t),{userid:s=""}=t,{numberoftournaments:o="6"}=t,{endpoint:a=""}=t,{loginevent:l=""}=t,{registerevent:u=""}=t,{loginurl:h=""}=t,{registerurl:c=""}=t,{currency:d=""}=t,{lang:f="en"}=t,{keepbrowsercontext:m="false"}=t,p=!1,g=(le(),"");Object.keys(hr).forEach(e=>{zt(e,hr[e])});const y=t=>{if(t.data&&"TournamentList"==t.data.type&&(r(11,g=[]),r(10,p=!0),r(11,g=t.data.tournamentList),setTimeout(()=>{r(10,p=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&r(11,g=[...g,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!g)return;0==g.filter(e=>e.id==t.data.tournamentData.id).length&&(g.pop(),r(11,g=[t.data.tournamentData,...g]),setTimeout(()=>{g.forEach((e,t)=>{window.postMessage({type:"UpdateSingleTournament_"+(t+1),tournamentData:e},window.location.href)})},100))}t.data&&"UserSessionID"==t.data.type&&t.data.session};return re(()=>(window.addEventListener("message",y,!0),()=>{window.removeEventListener("message",y,!0)})),e.$$set=e=>{"session"in e&&r(0,i=e.session),"userid"in e&&r(1,s=e.userid),"numberoftournaments"in e&&r(13,o=e.numberoftournaments),"endpoint"in e&&r(2,a=e.endpoint),"loginevent"in e&&r(3,l=e.loginevent),"registerevent"in e&&r(4,u=e.registerevent),"loginurl"in e&&r(5,h=e.loginurl),"registerurl"in e&&r(6,c=e.registerurl),"currency"in e&&r(7,d=e.currency),"lang"in e&&r(8,f=e.lang),"keepbrowsercontext"in e&&r(9,m=e.keepbrowsercontext)},e.$$.update=()=>{1&e.$$.dirty&&i&&i.length,e.$$.dirty},[i,s,a,l,u,h,c,d,f,m,p,g,n,o]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}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(--emfe-w-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(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .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}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},si,ii,t,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16},null,[-1,-1]),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends e{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, 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}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-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(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-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(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-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(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-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(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.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-picture{width:100%;height:120px;background-color:var(--emfe-w-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(--emfe-w-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}</style>',oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Ti,wi,t,{session:0,userid:1,tournamenturl:2,touridx:34,endpoint:35,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:36,registerevent:37,loginurl:38,registerurl:39,currency:40,keepbrowsercontext:9},null,[-1,-1]),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[34]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[35]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[36]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[37]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[38]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[39]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[40]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}});class Pi extends e{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, 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}.TournamentList{width:100%;display:grid;grid-template-columns:repeat(auto-fit, minmax(Min(380px, 100%), 1fr));grid-auto-flow:dense;gap:25px}</style>",oe(this,{target:this.shadowRoot,props:j(this.attributes),customElement:!0},Di,Mi,t,{session:0,userid:1,numberoftournaments:13,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9},null),e&&(e.target&&O(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get numberoftournaments(){return this.$$.ctx[13]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),g()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),g()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}}return customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",Pi),Pi});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-list-controller.js.map
|