@everymatrix/casino-tournaments-controller 1.35.0 → 1.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,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 v(){}function x(e){return e()}function E(){return Object.create(null)}function M(e){e.forEach(x)}function k(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let C,H,L;function I(e,t){return(C=C||document.createElement("a")).href=t,e===C.href}function z(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function se(e,t,n){e.$$.on_destroy.push(z(t,n))}function U(e){return e&&k(e.destroy)?e.destroy:v}function $(e,t){e.appendChild(t)}function P(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function j(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function D(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function F(){return O(" ")}function Y(){return O("")}function B(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function N(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:N(e,t,n)}function R(e,t){e.data!==(t=""+t)&&(e.data=t)}function G(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function W(e,t,n){e.classList[n?"add":"remove"](t)}function V(e){var t={};for(const n of e)t[n.name]=n.value;return t}function J(e){L=e}function ae(e){!function(){if(L)return L;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const Z=[],ie=[];let X=[];const K=[],q=Promise.resolve();let Q=!1;function ee(e){X.push(e)}const te=new Set;let ne=0;function d(){if(0===ne){const r=L;do{try{for(;ne<Z.length;){const r=Z[ne];ne++,J(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),M(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ee))}}catch(r){throw Z.length=0,ne=0,r}for(J(null),Z.length=0,ne=0;ie.length;)ie.pop()();for(let e=0;e<X.length;e+=1){var n=X[e];te.has(n)||(te.add(n),n())}}while(X.length=0,Z.length);for(;K.length;)K.pop()();Q=!1,te.clear(),J(r)}}const re=new Set;function le(r,e,t,n,i,o,s,a=[-1]){var l=L;J(r);const u=r.$$={fragment:null,ctx:[],props:o,update:v,not_equal:i,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:E(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c)&&(n=e,-1===(e=r).$$.dirty[0]&&(Z.push(e),Q||(Q=!0,q.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],u.update(),c=!0,M(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){o=e.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(re.delete(a),a.i(void 0));var h=r,s=e.target,t=e.anchor,n=e.customElement,{fragment:o,after_update:a}=h.$$;o&&o.m(s,t),n||ee(()=>{var e=h.$$.on_mount.map(x).filter(k);h.$$.on_destroy?h.$$.on_destroy.push(...e):M(e),h.$$.on_mount=[]}),a.forEach(ee),d()}J(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(x).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){M(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];X.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),X=r}M(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!k(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,ce,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},he="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,me="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),fe="FormData"in l,pe="ArrayBuffer"in l;function ge(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 ye(e){return e="string"!=typeof e?String(e):e}function be(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(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){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ve(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function we(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function _e(e){var t=new FileReader,n=we(t);return t.readAsArrayBuffer(e),n}function Te(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:me&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:he&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():pe&&me&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Te(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):pe&&(ArrayBuffer.prototype.isPrototypeOf(e)||ce(e))?this._bodyArrayBuffer=Te(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):he&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},me&&(this.blob=function(){var e=ve(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(){if(this._bodyArrayBuffer)return ve(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(me)return this.blob().then(_e);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ve(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fe&&(this.formData=function(){return this.text().then(ke)}),this.json=function(){return this.text().then(JSON.parse)},this}pe&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ce=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=ge(e),t=ye(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[ge(e)]},u.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},u.prototype.set=function(e,t){this.map[ge(e)]=ye(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),be(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),be(n)},de&&(u.prototype[Symbol.iterator]=u.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ee){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,r||null==e._bodyInit||(r=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=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ke(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");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)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},Se.call(Ee.prototype),Se.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ce=[301,302,303,307,308],Me=(c.redirect=function(e,t){if(-1===Ce.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new Me}catch(v){(Me=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Me.prototype.constructor=Me}function $e(r,a){return new Promise(function(i,e){var o=new Ee(r,a);if(o.signal&&o.signal.aborted)return e(new Me("Aborted","AbortError"));var n,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,r,t={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 t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(o.url.startsWith("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new c(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 timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Me("Aborted","AbortError"))},0)},s.open(o.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(me?s.responseType="blob":pe&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(ge(e)),s.setRequestHeader(e,ye(a.headers[e]))}),o.headers.forEach(function(e,t){-1===n.indexOf(t)&&s.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",t)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}$e.polyfill=!0,l.fetch||(l.fetch=$e,l.Headers=u,l.Request=Ee,l.Response=c);var Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ae(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Dn(null==t&&n.path)}},n.exports),n.exports}function Dn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var De=function(e,t){return(De=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Fe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Be(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Re(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 He=Re(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 Le(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Fe(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(e){i=e instanceof He?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Fe(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{je(c)}catch(e){i=null!=i?i:[],e instanceof He?i=Ne(Ne([],Be(i)),Be(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new He(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)je(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Le(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((o=new r).closed=!0,o);var Ie=r,ze=Ie.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ue(e){return e instanceof Ie||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function je(e){h(e)?e():e.unsubscribe()}var Ye=void 0,Ge=!1,We=!1,Ve={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ve.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Be(n))):setTimeout.apply(void 0,Ne([e,t],Be(n)))},clearTimeout:function(e){var t=Ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Je(){}var Ze=null;function Xe(e){if(Ge){var t=!Ze;if(t&&(Ze={errorThrown:!1,error:null}),e(),t){var t=Ze,n=t.errorThrown,t=t.error;if(Ze=null,n)throw t}}else e()}Oe(i,Ke=Ie),i.create=function(e,t,n){return new rt(e,t,n)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ke.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ke,qe=i,Qe=Function.prototype.bind;function i(e){var t=Ke.call(this)||this;return t.isStopped=!1,e?Ue(t.destination=e)&&e.add(t):t.destination=at,t}function et(e,t){return Qe.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){st(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){st(e)}else st(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){st(e)}};var tt,nt=ot,rt=(Oe(it,tt=qe),it);function it(e,t,n){var r=tt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&We?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&et(e.next,t),error:e.error&&et(e.error,t),complete:e.complete&&et(e.complete,t)}):e;return r.destination=new nt(n),r}function ot(e){this.partialObserver=e}function st(e){var t=e;Ve.setTimeout(function(){throw t})}var at={closed:!0,next:Je,error:function(e){throw e},complete:Je},o="function"==typeof Symbol&&Symbol.observable||"@@observable";s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof qe||r&&h(r.next)&&h(r.error)&&h(r.complete)&&Ue(r)?e:new rt(e,t,n);return Xe(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new rt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[o]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},s.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},s.create=function(e){return new s(e)};var lt=s;function s(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:Ye)?e:Promise}var ct,ht,dt,mt=Re(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=(Oe(a,dt=lt),a.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new mt},a.prototype.next=function(i){var o=this;Xe(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Fe(o.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var n=this;Xe(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},a.prototype.complete=function(){var t=this;Xe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),dt.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ze:(this.currentObservers=null,i.push(e),new Ie(function(){t.currentObservers=null,Le(i,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},a.prototype.asObservable=function(){var e=new lt;return e.source=this,e},a.create=function(e,t){return new ft(e,t)},a),ft=(Oe(bt,ht=o),bt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},bt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},bt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},bt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ze},bt),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},gt=(Oe(yt,ct=o),yt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(o.now()+t),this._trimBuffer(),ct.prototype.next.call(this,e)},yt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},yt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},yt);function yt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=pt);var r=ct.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function bt(e,t){var n=ht.call(this)||this;return n.destination=e,n.source=t,n}function a(){var e=dt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let vt=[],wt={};const _t=[];function Tt(r,i=v){let o;const s=new Set;function a(e){if(n(r,e)&&(r=e,o)){const e=!_t.length;for(const e of s)e[1](),_t.push(e,r);if(e){for(let e=0;e<_t.length;e+=2)_t[e][0](_t[e+1]);_t.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return s.add(n),1===s.size&&(o=i(a)||v),e(r),()=>{s.delete(n),0===s.size&&o&&(o(),o=null)}}}}function St(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:Tt(t,t=>{let n=!1;const r=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),c?t(e):o=k(e)?e:v)},e=u.map((e,t)=>z(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){M(e),o(),n=!1}}).subscribe}}function xt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Et);var t}var Et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function kt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?At(Array.isArray(e)?[]:{},e,t):e}function Ct(e,t,n){return e.concat(t).map(function(e){return kt(e,n)})}function Mt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function $t(e,t){try{return t in e}catch(e){return!1}}function Pt(r,i,o){var s={};return o.isMergeableObject(r)&&Mt(r).forEach(function(e){s[e]=kt(r[e],o)}),Mt(i).forEach(function(e){var t,n;(!$t(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&($t(r,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:At)(r[e],i[e],o):s[e]=kt(i[e],o))}),s}function At(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ct,n.isMergeableObject=n.isMergeableObject||xt,n.cloneUnlessOtherwiseSpecified=kt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Pt(e,t,n):kt(t,n)}At.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return At(e,t,n)},{});throw new Error("first argument should be an array")};var Dt=At,Ot=function(e,t){return(Ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ft(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,b,Bt,g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Nt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Rt(e){return e.type===b.literal}function Ht(e){return e.type===b.number}function Lt(e){return e.type===b.date}function It(e){return e.type===b.time}function zt(e){return e.type===b.select}function Ut(e){return e.type===b.plural}function jt(e){return e.type===b.tag}function Yt(e){return e&&"object"==typeof e&&e.type===Bt.number}function Gt(e){return e&&"object"==typeof e&&e.type===Bt.dateTime}(o=p=p||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=b=b||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=Bt=Bt||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wt=/(?:[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 Vt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function qt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function Qt(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 en(e){return Qt(e)||{}}function tn(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=g(g(g({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return g(g({},e),en(t))},{}));continue;case"engineering":s=g(g(g({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return g(g({},e),en(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.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(Xt,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Jt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=g(g({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=g(g({},s),qt(o)))}else Zt.test(i.stem)?s=g(g({},s),qt(i.stem)):((o=Qt(i.stem))&&(s=g(g({},s),o)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=g(g({},s),r)))}return s}var nn={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 rn=new RegExp("^".concat(o.source,"*")),on=new RegExp("".concat(o.source,"*$"));function w(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,sn=!!String.fromCodePoint,an=!!Object.fromEntries,ln=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,cn=!!String.prototype.trimEnd,hn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dn=!0;try{dn="a"===(null==(Fn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Fn[0])}catch(v){dn=!1}var mn,fn,pn=o?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},gn=sn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},yn=an?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},bn=ln?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},vn=un?function(e){return e.trimStart()}:function(e){return e.replace(rn,"")},wn=cn?function(e){return e.trimEnd()}:function(e){return e.replace(on,"")};function _n(e,t){return new RegExp(e,t)}fn=dn?(mn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return mn.lastIndex=t,null!=(t=mn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=bn(e,t);if(void 0===i||xn(i)||33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(i),t+=65536<=i?2:1}return gn.apply(void 0,r)};m.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},m.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(p.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Sn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{o=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(o,this.clonePosition())})}}}return{val:r,err:null}},m.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:w(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Sn(this.char())?this.error(p.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:w(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,w(e,this.clonePosition())))):this.error(p.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(p.INVALID_TAG,w(r,this.clonePosition()))},m.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())},m.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=w(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},m.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Sn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},m.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return gn.apply(void 0,t)},m.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),gn(n))},m.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},m.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=fn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},m.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,w(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=wn(h.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(r)).err?u:(m=w(r,this.clonePosition()),l&&pn(null==l?void 0:l.style,"::",0)?(f=vn(l.style.slice(2)),"number"===s?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:m,style:h.val},err:null}:0===f.length?this.error(p.EXPECT_DATE_TIME_SKELETON,m):(c=f,this.locale&&(c=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(nn[t||""]||nn[n||""]||nn["".concat(n,"-001")]||nn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===i?"H":i}return n}(f,this.locale)),d={type:Bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Wt,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):{}},{val:{type:"date"===s?b.date:b.time,value:n,location:m,style:d},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:n,location:m,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,w(c,g({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),m=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,s,t,d);return l.err?l:(u=this.tryParseArgumentClose(r)).err?u:(f=w(r,this.clonePosition()),"select"===s?{val:{type:b.select,value:n,options:yn(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:yn(l.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null});default:return this.error(p.INVALID_ARGUMENT_TYPE,w(o,a))}},m.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})},m.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(n,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}},m.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Vt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Bt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?tn(n):{}},err:null}},m.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=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,n);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:w(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.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:o,err:null}},m.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=w(r,this.clonePosition());return i?hn(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},m.prototype.offset=function(){return this.position.offset},m.prototype.isEOF=function(){return this.offset()===this.message.length},m.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},m.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=bn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},m.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},m.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))},m.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},m.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)},m.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}},m.prototype.bumpSpace=function(){for(;!this.isEOF()&&xn(this.char());)this.bump()},m.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Tn=m;function m(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 Sn(e){return 97<=e&&e<=122||65<=e&&e<=90}function xn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function En(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Tn(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,zt(e)||Ut(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ht(e)&&Yt(e.style)||(Lt(e)||It(e))&&Gt(e.style)?delete e.style.location:jt(e)&&n(e.children)})}(e.val),e.val}function kn(e,t){var n=t&&t.cache?t.cache:Bn,r=t&&t.serializer?t.serializer:Pn;return(t&&t.strategy?t.strategy:function(e,t){return $n(e,this,1===e.length?Cn:Mn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Cn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function Mn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function $n(e,t,n,r,i){return n.bind(t,e,r,i)}var Pn=function(){return JSON.stringify(arguments)};function An(){this.cache=Object.create(null)}An.prototype.get=function(e){return this.cache[e]},An.prototype.set=function(e,t){this.cache[e]=t};var On,Fn,Bn={create:function(){return new An}},Nn={variadic:function(e,t){return $n(e,this,Mn,t.cache.create(),t.serializer)},monadic:function(e,t){return $n(e,this,Cn,t.cache.create(),t.serializer)}};(Fn=On=On||{}).MISSING_VALUE="MISSING_VALUE",Fn.INVALID_VALUE="INVALID_VALUE",Fn.MISSING_INTL_API="MISSING_INTL_API";Ft(Jn,In=Error),Jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var _,Rn,Hn,Ln,In,zn=Jn,Un=(Ft(Vn,Ln=zn),Vn),jn=(Ft(Wn,Hn=zn),Wn),Yn=(Ft(Gn,Rn=zn),Gn);function Gn(e,t){return Rn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),On.MISSING_VALUE,t)||this}function Wn(e,t,n){return Hn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),On.INVALID_VALUE,n)||this}function Vn(e,t,n,r){return Ln.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),On.INVALID_VALUE,r)||this}function Jn(e,t,n){e=In.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Zn(e,t,n,r,i,o,s){if(1===e.length&&Rt(e[0]))return[{type:_.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Rt(c))a.push({type:_.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:_.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Yn(h,s);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?_.literal:_.object,value:h});else if(Lt(c)){var d="string"==typeof c.style?r.date[c.style]:Gt(c.style)?c.style.parsedOptions:void 0;a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(It(c))d="string"==typeof c.style?r.time[c.style]:Gt(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Ht(c))(d="string"==typeof c.style?r.number[c.style]:Yt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:_.literal,value:n.getNumberFormat(t,d).format(h)});else{if(jt(c)){var m=c.children,f=c.value,p=i[f];if("function"!=typeof p)throw new jn(f,"function",s);f=p(Zn(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?_.literal:_.object,value:e}}))}if(zt(c)){if(!(g=c.options[h]||c.options.other))throw new Un(c.value,h,Object.keys(c.options),s);a.push.apply(a,Zn(g.value,t,n,r,i))}else if(Ut(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new zn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',On.MISSING_INTL_API,s);var p=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[p]||c.options.other}if(!g)throw new Un(c.value,h,Object.keys(c.options),s);a.push.apply(a,Zn(g.value,t,n,r,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===_.literal&&t.type===_.literal?n.value+=t.value:e.push(t),e},[])}function Xn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(o=_=_||{})[o.literal=0]="literal",o[o.object=1]="object";Object.defineProperty(f,"defaultLocale",{get:function(){return f.memoizedDefaultLocale||(f.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),f.memoizedDefaultLocale},enumerable:!1,configurable:!0}),f.memoizedDefaultLocale=null,f.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])},f.__parse=En,f.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 Kn=f;function f(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=f.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===_.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Zn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=f.resolveLocale(t),"string"==typeof e){if(this.message=e,!f.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=f.__parse(e,{ignoreTag:null==r?void 0:r.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=f.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?g(g(g({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),r[t]||{}),e},{})):n),e},g({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn(t.dateTime),strategy:Nn.variadic}),getPluralRules:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn(t.pluralRules),strategy:Nn.variadic})}}const qn={},Qn=(e,t,n)=>n&&(t in qn||(qn[t]={}),e in qn[t]||(qn[t][e]=n),n),er=(t,n)=>{if(null!=n){if(n in qn&&t in qn[n])return qn[n][t];var r=vr(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!rr(e))return null;e=function(e){return tr[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(i)return Qn(t,n,i)}}};let tr;const nr=Tt({});function rr(e){return e in tr}function T(t,...n){delete qn[t],nr.update(e=>(e[t]=Dt.all([e[t]||{},...n]),e))}St([nr],([e])=>Object.keys(e)),nr.subscribe(e=>tr=e);const ir={};function or(e){return ir[e]}function sr(e){return null!=e&&vr(e).some(e=>{return null==(e=or(e))?void 0:e.size})}function ar(r,e){return Promise.all(e.map(e=>{return t=r,n=e,ir[t].delete(n),0===ir[t].size&&delete ir[t],e().then(e=>e.default||e);var t,n})).then(e=>T(r,...e))}const lr={};const ur={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 cr=Tt(!1);var hr=Object.defineProperty,sn=Object.defineProperties,an=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,pr=(e,t,n)=>t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let gr;const yr=Tt(null);function br(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function vr(e,t=ur.fallbackLocale){e=br(e);return t?[...new Set([...e,...br(t)])]:e}function wr(){return null!=gr?gr:void 0}yr.subscribe(e=>{gr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const oe=sn(((e,t)=>{for(var n in t=t||{})mr.call(t,n)&&pr(e,n,t[n]);if(dr)for(var n of dr(t))fr.call(t,n)&&pr(e,n,t[n]);return e})({},yr),an({set:t=>{if(t&&function(e){if(null!=e){var t=vr(e);for(let e=0;e<t.length;e++){var n=t[e];if(rr(n))return n}}}(t)&&sr(t)){var n=ur["loadingDelay"];let e;return"undefined"!=typeof window&&null!=wr()&&n?e=window.setTimeout(()=>cr.set(!0),n):cr.set(!0),function e(t){var n;return sr(t)?(n=vr(t).map(e=>{var t=or(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),lr[t]=Promise.all(n.map(([e,t])=>ar(e,t))).then(()=>{if(sr(t))return e(t);delete lr[t]}),lr[t]):t in lr?lr[t]:Promise.resolve()}(t).then(()=>{yr.set(t)}).finally(()=>{clearTimeout(e),cr.set(!1)})}return yr.set(t)}}));var ln=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},_r=Object.defineProperty,Tr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Er=(e,t,n)=>t in e?_r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kr=(e,t)=>{for(var n in t=t||{})Sr.call(t,n)&&Er(e,n,t[n]);if(Tr)for(var n of Tr(t))xr.call(t,n)&&Er(e,n,t[n]);return e},Cr=(e,t)=>{var n={};for(r in e)Sr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tr)for(var r of Tr(e))t.indexOf(r)<0&&xr.call(e,r)&&(n[r]=e[r]);return n};const Mr=(e,t)=>{var n=ur["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$r=ln(e=>{var{locale:t,format:n}=e,e=Cr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Mr("number",n)),new Intl.NumberFormat(t,e)}),Pr=ln(e=>{var{locale:t,format:n}=e,e=Cr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Mr("date",n):0===Object.keys(e).length&&(e=Mr("date","short")),new Intl.DateTimeFormat(t,e)}),Ar=ln(e=>{var{locale:t,format:n}=e,e=Cr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Mr("time",n):0===Object.keys(e).length&&(e=Mr("time","short")),new Intl.DateTimeFormat(t,e)}),Dr=ln((e,t=wr())=>new Kn(e,t,ur.formats,{ignoreTag:ur.ignoreTag})),Or=St([oe,nr],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=wr(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=er(e,s);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!=(r=null!=(n=null==(n=(r=ur).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!o)return l;let u=l;try{u=Dr(l,s).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),S=(St([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Cr(e,["locale"]);return Ar(kr({locale:t},e))})(t).format(e)),St([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Cr(e,["locale"]);return Pr(kr({locale:t},e))})(t).format(e)),St([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Cr(e,["locale"]);return $r(kr({locale:t},e))})(t).format(e)),St([oe,nr],()=>(e,t=wr())=>er(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==vt.indexOf(e)&&(t=new gt(t),wt[e]=t,vt.push(e)),wt[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),Fr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Br(e,t){T(e,t)}function Nr(e){oe.set(e)}const Rr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"Ongoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},hr:{tournamentsController:{500:"500 - Interna pogreška poslužitelja",showMore:"Prikaži više",Scheduled:"Planirano",Ongoing:"U tijeku",Finished:"Završeno",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira"}},"zh-hk":{tournamentsController:{500:"500內部服務器錯誤",showMore:"顯示更多",Scheduled:"預定的",Ongoing:"進行中",Finished:"完成的",loading:"加載請稍候 ...",noTournaments:"沒有找到比賽"}},fr:{tournamentsController:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",Scheduled:"Programmé",Ongoing:"En cours",Finished:"Fini",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"}},ro:{tournamentsController:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"În curs",Finished:"Finalizat",loading:"Se încarcă, asteptati ...",noTournaments:"Niciun turneu gasit"}},tr:{tournamentsController:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla",Scheduled:"Planlanmış",Ongoing:"Devam Eden",Finished:"Sona Ermiş",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Herhangi bir turnuva bulunamadı."}},el:{tournamentsController:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"Προγραμματισμένα",Ongoing:"Τρέχοντα",Finished:"Ολοκληρωμένα",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"}},es:{tournamentsController:{500:"500 - Error servidor interno",showMore:"Mostrar más",Scheduled:"Programado",Ongoing:"En vivo",Finished:"Finalizado",loading:"Cargando …",noTournaments:"No se encontraron Torneos"}},hu:{tournamentsController:{500:"500 - Belső szerver hiba",showMore:"Mutass többet",Scheduled:"Ütemezés",Ongoing:"Folyamatban",Finished:"Befejezett",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található"}},pt:{tournamentsController:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"}}};var Hr=Ae(function(_,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Pe:globalThis,A=t.setTimeout,D=t.clearTimeout,O=t.XMLHttpRequest,i=t.XDomainRequest,n=t.ActiveXObject,o=t.EventSource,s=t.document,h=t.Promise,d=t.fetch,a=t.Response,m=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function u(){this.bitsNeeded=0,this.codePoint=0}function c(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=c}function p(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),i=i.join(": ");t[p(o)]=i}this._map=t}function B(){}function y(e){this._headers=e}function N(){}function R(){this._listeners=Object.create(null)}function b(e){A(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function H(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function L(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){v.call(this,e),this.error=t.error}function z(e,t){return e=null==e?t:parseInt(e,10),Y(e=e!=e?t:e)}function U(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",function(e){s.readyState="complete"},!1)),null==O&&null!=n&&(O=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),u.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var a=e[s];0!==i&&(a<128||191<a||!t(o<<6|63&a,i-6,n(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(o=0<=a&&a<=127?(i=0,a):192<=a&&a<=223?(i=6,31&a):224<=a&&a<=239?(i=12,15&a):240<=a&&a<=247?(i=18,7&a):(i=0,65533),0===i||t(o,i,n(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?r+=String.fromCharCode(o):r=(r+=String.fromCharCode(55296+(o-65535-1>>10)))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=i,this.codePoint=o,r},null!=m&&null!=l&&function(){try{return"test"===(new m).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(m=u),F.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:c}),l(),1===s||2===s||3===s){if(s=4,0!==r&&(D(r),r=0),i.readyState=4,"load"===e)i.onload(t);else if("error"===e)i.onerror(t);else{if("abort"!==e)throw new TypeError;i.onabort(t)}i.onreadystatechange()}}var i=this,o=this._xhr,s=1,r=0,a=(this._abort=function(e){0!==i._sendTimeout&&(D(i._sendTimeout),i._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,o.onload=c,o.onerror=c,o.onabort=c,o.onprogress=c,o.onreadystatechange=c,o.abort(),0!==r&&(D(r),r=0),e)||(i.readyState=4,i.onabort(null),i.onreadystatechange()),s=0},function(){if(1===s){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(s=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}),l=function(){if(a(),2===s||3===s){s=3;var e="";try{e=o.responseText}catch(e){}i.readyState=3,i.responseText=e,i.onprogress()}},u=function(){r=A(function(){u()},500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(e){n("load",e)}),"onerror"in o&&(o.onerror=function(e){n("error",e)}),"onabort"in o&&(o.onabort=function(e){n("abort",e)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||n(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||l():2===o.readyState&&a())}),!("contentType"in o)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(r=A(function(){u()},0))},F.prototype.abort=function(){this._abort(!1)},F.prototype.getResponseHeader=function(e){return this._contentType},F.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},F.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},F.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=A(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[p(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),B.prototype.open=function(i,o,t,n,e,r,s){i.open("GET",e);var a,l=0;for(a in i.onprogress=function(){var e=i.responseText.slice(l);l+=e.length,t(e)},i.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var e,t,n,r;i.readyState===O.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),o(e,t,n,new g(r)))},i.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&i.setRequestHeader(a,s[a]);return i.send(),i},y.prototype.get=function(e){return this._headers.get(e)},N.prototype.open=function(e,t,i,n,r,o,s){var a=null,l=new f,u=l.signal,c=new m;return d(r,{headers:s,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new h(function(t,n){function r(){a.read().then(function(e){e.done?t(void 0):(e=c.decode(e.value,{stream:!0}),i(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},R.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){b(e)}}},R.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},R.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},H.prototype=Object.create(v.prototype),L.prototype=Object.create(v.prototype),I.prototype=Object.create(v.prototype);var j=/^text\/event\-stream(;.*)?$/i,Y=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){var l,o,s,u,c,h,d,m,f,n,a,p,g,y,b,v,w,_,T,S,x,E,k,C,M,$,P;R.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,o=e,e=t,o=String(o),t=Boolean(e.withCredentials),s=e.lastEventIdQueryParameterName||"lastEventId",u=Y(1e3),c=z(e.heartbeatTimeout,45e3),h="",d=u,m=!1,f=0,n=e.headers||{},e=e.Transport,a=G&&null==e?void 0:new F(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==i?O:i)),p=new(null!=e&&"string"!=typeof e?e:null==a?N:B),g=void 0,b=-1,T=_=w=v="",E=x=S=y=0,k=function(e,t,n,r){var i,o;0===b&&(200===e&&null!=n&&j.test(n)?(b=1,m=Date.now(),d=u,l.readyState=1,i=new L("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),U(l,l.onopen,i)):(o="",o=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",$(),i=new L("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),U(l,l.onerror,i),console.error(o)))},C=function(e){if(1===b){for(var t=-1,n=0;n<e.length;n+=1)(s=e.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(m=Date.now(),f+=e.length);for(var i=0;i<r.length;i+=1){var o,s=r.charCodeAt(i);if(-1===S&&s==="\n".charCodeAt(0))S=0;else if(-1===S&&(S=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==S&&(1===S&&(E=i+1),a=r.slice(x,E-1),o=r.slice(E+(E<i&&r.charCodeAt(E)===" ".charCodeAt(0)?1:0),i),"data"===a?v=v+"\n"+o:"id"===a?w=o:"event"===a?_=o:"retry"===a?(u=z(o,u),d=u):"heartbeatTimeout"===a&&(c=z(o,c),0!==y)&&(D(y),y=A(function(){P()},c))),0===S){if(""!==v){h=w;var a=new H(_=""===_?"message":_,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(a),"open"===_?U(l,l.onopen,a):"message"===_?U(l,l.onmessage,a):"error"===_&&U(l,l.onerror,a),2===b)return}_=v=""}S=s==="\r".charCodeAt(0)?-1:0}else 0===S&&(x=i,S=1),1===S?s===":".charCodeAt(0)&&(E=i+1,S=2):2===S&&(S=3)}}},M=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(D(y),y=0),y=A(function(){P()},d),d=Y(Math.min(16*u,2*d)),l.readyState=0,t=new I("error",{error:e}),l.dispatchEvent(t),U(l,l.onerror,t),null!=e&&console.error(e))},$=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(D(y),y=0),l.readyState=2},P=function(){if(y=0,-1===b){m=!1,f=0,y=A(function(){P()},c),w=h,T=_=v="",S=E=x=b=0;var e=o,t=("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===s?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+s+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);try{g=p.open(a,k,C,M,e,t,n)}catch(e){throw $(),e}}else m||null==g?(e=Math.max((m||Date.now())+c-Date.now(),1),m=!1,y=A(function(){P()},e)):(M(new Error("No activity within "+c+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=$,P()}var G=null!=d&&null!=a&&"body"in a.prototype;(w.prototype=Object.create(R.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0,t=o,null==O||null!=o&&"withCredentials"in o.prototype||(t=w),(a=e).EventSourcePolyfill=w,a.NativeEventSource=o,a.EventSource=t});function Lr(e,t){T(e,t)}const Ir={en:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"}},hr:{tournamentsFilter:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"}},"zh-hk":{tournamentsFilter:{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"}},fr:{tournamentsFilter:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"}},ro:{tournamentsFilter:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"}},tr:{tournamentsFilter:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş"}},el:{tournamentsFilter:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"}},es:{tournamentsFilter:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"}},hu:{tournamentsFilter:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"}},pt:{tournamentsFilter:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}}};function zr(e,t,n){e=e.slice();return e[22]=t[n],e[24]=n,e}function Ur(t){let i,n,o,r,s,e=t[4]("tournamentsFilter.tournaments")+"",a=t[1],l=[];for(let e=0;e<a.length;e+=1)l[e]=Jr(zr(t,a,e));return{c(){i=D("ul"),n=D("li"),o=O(e),r=O(":"),s=F();for(let e=0;e<l.length;e+=1)l[e].c();N(n,"class","FiltersTitle "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),N(n,"part","FiltersTitle "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"class","FiltersList "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"part","FiltersList "+(S(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){P(e,i,t),$(i,n),$(n,o),$(n,r),$(i,s);for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(i,null)},p(t,n){if(16&n&&e!==(e=t[4]("tournamentsFilter.tournaments")+"")&&R(o,e),126&n){let e;for(a=t[1],e=0;e<a.length;e+=1){var r=zr(t,a,e);l[e]?l[e].p(r,n):(l[e]=Jr(r),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=a.length}},d(e){e&&A(i),j(l,e)}}}function jr(){let n,r;return{c(){n=t("svg"),N(r=t("path"),"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","16"),N(n,"height","16"),N(n,"fill","currentColor"),N(n,"class","bi bi-check"),N(n,"part","bi bi-check"),N(n,"viewBox","0 0 16 16")},m(e,t){P(e,n,t),$(n,r)},d(e){e&&A(n)}}}function Yr(e){let n,r=e[4]("tournamentsFilter.scheduled")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.scheduled")+"")&&R(n,r)},d(e){e&&A(n)}}}function Gr(e){let n,r=e[4]("tournamentsFilter.ongoing")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.ongoing")+"")&&R(n,r)},d(e){e&&A(n)}}}function Wr(e){let n,r=e[4]("tournamentsFilter.finished")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.finished")+"")&&R(n,r)},d(e){e&&A(n)}}}function Vr(e){let n,r=e[4]("tournamentsFilter.all")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.all")+"")&&R(n,r)},d(e){e&&A(n)}}}function Jr(n){let r,i,o,s,a,l,u,c,h,d,m,f,p=(1==n[2][n[24]]||n[3]&&0==n[24])&&jr(),g="Scheduled"==n[22]&&Yr(n),y="Ongoing"==n[22]&&Gr(n),b="Finished"==n[22]&&Wr(n),v="All"==n[22]&&Vr(n);function w(){return n[12](n[22],n[24])}return{c(){r=D("li"),i=D("button"),p&&p.c(),o=F(),s=D("div"),g&&g.c(),a=F(),y&&y.c(),l=F(),b&&b.c(),u=F(),v&&v.c(),d=F(),N(s,"class","FilterButton "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(s,"part","FilterButton "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"class",c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"part",h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(r,"class","FiltersItem"),N(r,"part","FiltersItem")},m(e,t){P(e,r,t),$(r,i),p&&p.m(i,null),$(i,o),$(i,s),g&&g.m(s,null),$(s,a),y&&y.m(s,null),$(s,l),b&&b.m(s,null),$(s,u),v&&v.m(s,null),$(r,d),m||(f=B(r,"click",w),m=!0)},p(e,t){1==(n=e)[2][n[24]]||n[3]&&0==n[24]?p||((p=jr()).c(),p.m(i,o)):p&&(p.d(1),p=null),"Scheduled"==n[22]?g?g.p(n,t):((g=Yr(n)).c(),g.m(s,a)):g&&(g.d(1),g=null),"Ongoing"==n[22]?y?y.p(n,t):((y=Gr(n)).c(),y.m(s,l)):y&&(y.d(1),y=null),"Finished"==n[22]?b?b.p(n,t):((b=Wr(n)).c(),b.m(s,u)):b&&(b.d(1),b=null),"All"==n[22]?v?v.p(n,t):((v=Vr(n)).c(),v.m(s,null)):v&&(v.d(1),v=null),12&t&&c!==(c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))&&N(i,"class",c),12&t&&h!==(h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))&&N(i,"part",h)},d(e){e&&A(r),p&&p.d(),g&&g.d(),y&&y.d(),b&&b.d(),v&&v.d(),m=!1,f()}}}function Zr(n){let r,i=0<n[1].length&&Ur(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","FiltersController "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(r,"part","FiltersController "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){P(e,r,t),i&&i.m(r,null),n[13](r)},p(e,[t]){0<e[1].length?i?i.p(e,t):((i=Ur(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[13](null)}}}function Xr(t,e,r){let n;se(t,Or,e=>r(4,n=e));let i,{filters:o=""}=e,{activefilters:s=""}=e,{translationurl:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,c=[],h=0,d=new Array(100),m=!0,f=window.navigator.userAgent;Object.keys(Ir).forEach(e=>{Lr(e,Ir[e])});const p=(e,t)=>{if(0==t)r(3,m=!0),r(2,d=new Array(h)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(r(3,m=!1),1==d[t]?(r(2,d[t]=0,d),-1==d.indexOf(1)&&r(3,m=!0)):r(2,d[t]=1,d),-1==d.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{var n=[];for(let e=0;e<c.length;e++)1==d[e]&&n.push(c[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:n},window.location.href)}};return t.$$set=e=>{"filters"in e&&r(7,o=e.filters),"activefilters"in e&&r(8,s=e.activefilters),"translationurl"in e&&r(9,a=e.translationurl),"clientstyling"in e&&r(10,l=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl)},t.$$.update=()=>{if(1025&t.$$.dirty&&i&&l&&((e=document.createElement("style")).innerHTML=l,i.appendChild(e)),2049&t.$$.dirty&&i&&u){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;512&t.$$.dirty&&a&&fetch(a).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lr(e,t[e])})}).catch(e=>{console.log(e)}),128&t.$$.dirty&&o&&(r(1,c=o.split(",")),h=c.length),256&t.$$.dirty&&s&&(e=s.split(","),r(2,d=new Array(h)),-1!=e.indexOf("All")?r(3,m=!0):(r(3,m=!1),e.forEach(e=>{e=c.indexOf(e);0<e&&r(2,d[e]=1,d)})))},[i,c,d,m,n,f,p,o,s,a,l,u,(e,t)=>p(0,t),function(e){ie[e?"unshift":"push"](()=>{i=e,r(0,i)})}]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Xr,Zr,n,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["filters","activefilters","translationurl","clientstyling","clientstylingurl"]}get filters(){return this.$$.ctx[7]}set filters(e){this.$$set({filters:e}),d()}get activefilters(){return this.$$.ctx[8]}set activefilters(e){this.$$set({activefilters:e}),d()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});var Kr=Ae(function(An,e){An.exports=function(){var N;function f(){return N.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(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 L(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 z(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function U(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return At(e,t,n,r,!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 j(e){if(null==e._isValid){var t=g(e),n=G.call(t.parsedDateParts,function(e){return null!=e}),n=!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&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function Y(e){var t=u(NaN);return null!=e?U(g(t),e):g(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},W=f.momentProperties=[],V=!1;function J(e,t){var n,r,i,o=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<o)for(n=0;n<o;n++)a(i=t[r=W[n]])||(e[r]=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,f.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,s){var a=!0;return U(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,o),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;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];n.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var K={};function q(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=U({},e);for(n in t)p(t,n)&&(R(e[n])&&R(t[n])?(r[n]={},U(r[n],e[n]),U(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&R(e[n])&&(r[n]=U({},r[n]));return r}function ee(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function o(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([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,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,o=i.length;t<o;t++)oe[i[t]]?i[t]=oe[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=c(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function h(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,n,r={};for(n in e)p(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(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 m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(fe(this,t,e),f.updateOffset(this,n),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=m(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Fe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}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?/,we=/\d{1,3}/,_e=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,xe=/[+-]?\d+/,Ee=/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 w(e,n,r){Me[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Ce(e,t){return p(Me,e)?Me[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Me={},$e={};function T(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),L(n)&&(i=function(e,t){t[n]=m(e)}),r=e.length,t=0;t<r;t++)$e[e[t]]=i}function Pe(e,i){T(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,x=0,E=1,k=2,C=3,M=4,$=5,Ae=6,De=7,Oe=8;function Fe(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2)}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[E]=m(e)-1}),T(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:g(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He=v,Le=v;function Ie(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!L(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Fe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function ze(e){return null!=e?(Ie(this,e),f.updateOffset(this,!0),this):me(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=u([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=_(n[o]),r[o]=_(r[o]);for(o=0;o<24;o++)i[o]=_(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function je(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",xe),w("YY",b,y),w("YYYY",_e,ge),w("YYYYY",Te,ye),w("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],x),T("YYYY",function(e,t){t[x]=2===e.length?f.parseTwoDigitYear(e):m(e)}),T("YY",function(e,t){t[x]=f.parseTwoDigitYear(e)}),T("Y",function(e,t){t[x]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var Ye=de("FullYear",!0);function Ge(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),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,n){n=7+t-n;return-(7+We(e,0,n).getUTCDay()-t)%7+n-1}function Je(e,t,n,r,i){var o,t=1+7*(t-1)+(7+n-r)%7+Ve(e,r,i),n=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:n}}function Ze(e,t,n){var r,i,o=Ve(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+P(i=e.year()-1,t,n):o>P(e.year(),t,n)?(r=o-P(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function P(e,t,n){var r=Ve(e,t,n),t=Ve(e+1,t,n);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Pe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=m(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,n,r){t[r]=m(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,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=u([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),n=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("hour",13),w("a",st),w("A",st),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),T(["H","HH"],C),T(["k","kk"],function(e,t,n){e=m(e);t[C]=24===e?0:e}),T(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),T(["h","hh"],function(e,t,n){t[C]=m(e),g(n).bigHour=!0}),T("hmm",function(e,t,n){var r=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r)),g(n).bigHour=!0}),T("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r,2)),t[$]=m(e.substr(i)),g(n).bigHour=!0}),T("Hmm",function(e,t,n){var r=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r))}),T("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r,2)),t[$]=m(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:Be,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},A={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ct(e[o]).split("-")).length,n=(n=ct(e[o+1]))?n.split("-"):null;0<t;){if(r=dt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return at}function dt(t){var e;if(void 0===A[t]&&An&&An.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Dn(),mt(e)}catch(e){A[t]=null}return A[t]}function mt(e,t){return e&&((t=a(t)?D(e):ft(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null===t)return delete A[e],null;var n,r=lt;if(t.abbr=e,null!=A[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."),r=A[e]._config;else if(null!=t.parentLocale)if(null!=A[t.parentLocale])r=A[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return A[e]=new ee(Q(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),mt(e),A[e]}function D(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[E]<0||11<t[E]?E:t[k]<1||t[k]>Fe(t[x],t[E])?k:t[C]<0||24<t[C]||24===t[C]&&(0!==t[M]||0!==t[$]||0!==t[Ae])?C:t[M]<0||59<t[M]?M:t[$]<0||59<t[$]?$:t[Ae]<0||999<t[Ae]?Ae:-1,g(e)._overflowDayOfYear&&(t<x||k<t)&&(t=k),g(e)._overflowWeeks&&-1===t&&(t=De),g(e)._overflowWeekday&&-1===t&&(t=Oe),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]],wt=[["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/]],_t=/^\/?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 xt(e){var t,n,r,i,o,s,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=wt.length;if(l){for(g(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=u;t<n;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),$t(e)}else e._isValid=!1}function Et(e,t,n,r,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function kt(e){var t,n,r,i,o=Tt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],r=t,i=e,n&&qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=o[8],r=o[9],i=o[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var t,n,r,i,o,s,a,l,u,c,h,d=[];if(!e._d){for(c=e,h=new Date(f.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[k]&&null==e._a[E]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(s=1,a=4,r=Ct(h.GG,c._a[x],Ze(O(),1,4).year),i=Ct(h.W,1),((o=Ct(h.E,1))<1||7<o)&&(l=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,u=Ze(O(),s,a),r=Ct(h.gg,c._a[x],u.year),i=Ct(h.w,u.week),null!=h.d?((o=h.d)<0||6<o)&&(l=!0):null!=h.e?(o=h.e+s,(h.e<0||6<h.e)&&(l=!0)):o=s),i<1||i>P(r,s,a)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=Je(r,i,o,s,a),c._a[x]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(h=Ct(e._a[x],n[x]),(e._dayOfYear>je(h)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(h,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[C]&&0===e._a[M]&&0===e._a[$]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[C]=0),e._d=(e._useUTC?We:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[C]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function $t(e){if(e._f!==f.ISO_8601)if(e._f!==f.RFC_2822){e._a=[],g(e).empty=!0;for(var t,n,r,i=""+e._i,o=i.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Ce(r,e))||[])[0])&&(0<(h=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(h),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),h=r,m=e,null!=(d=t)&&p($e,h)&&$e[h](d,m._a,m,h)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-s,0<i.length&&g(e).unusedInput.push(i),e._a[C]<=12&&!0===g(e).bigHour&&0<e._a[C]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[C]=(o=e._locale,u=e._a[C],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[x]=e._locale.erasConvertYear(c,e._a[x])),Mt(e),pt(e)}else kt(e);else xt(e);var u,c,h,d,m}function Pt(e){var t,n=e._i,r=e._f;{var i,o;return(e._locale=e._locale||D(e._l),null===n||void 0===r&&""===n)?Y({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new Z(pt(n)):(I(n)?e._d=n:s(r)?function(e){var t,n,r,i,o,s,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++)o=0,s=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],$t(t),j(t)&&(s=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s)&&(a=!0);U(e,n||t)}(e):r?$t(e):a(r=(n=e)._i)?n._d=new Date(f.now()):I(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(o=_t.exec(i._i))?(xt(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:f.createFromInputFallback(i))):i._d=new Date(+o[1])):s(r)?(n._a=z(r.slice(0),function(e){return parseInt(e,10)}),Mt(n)):R(r)?(i=n)._d||(t=void 0===(o=ue(i._i)).day?o.date:o.day,i._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Mt(i)):L(r)?n._d=new Date(r):f.createFromInputFallback(n),j(e)||(e._d=null),e))}}function At(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(R(e)&&H(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(i=new Z(pt(Pt(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function O(e,t,n,r){return At(e,t,n,r,!1)}f.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":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:Y()});function Dt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return O();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var e=ue(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=Ot.length;for(t in e)if(p(e,t)&&(-1===S.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ot[n]]){if(r)return!1;parseFloat(e[Ot[n]])!==m(e[Ot[n]])&&(r=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=D(),this._bubble()}function Bt(e){return e instanceof Ft}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),w("Z",ke),w("ZZ",ke),T(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(ke,e)});var Ht=/([\+\-]|\d\d)/gi;function Lt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ht)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||I(e)?e:O(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),f.updateOffset(t,!1),t):O(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function F(e,t){var n,r,i=e;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:L(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:m(t[k])*n,h:m(t[C])*n,m:m(t[M])*n,s:m(t[$])*n,ms:m(Nt(1e3*t[Ae]))*n}):(t=Yt.exec(e))?(n="-"===t[1]?-1:1,i={y:Gt(t[2],n),M:Gt(t[3],n),w:Gt(t[4],n),d:Gt(t[5],n),h:Gt(t[6],n),m:Gt(t[7],n),s:Gt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=O(i.from),n=O(i.to),t=t.isValid()&&n.isValid()?(n=It(n,t),t.isBefore(n)?r=Wt(t,n):((r=Wt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Ft(i),Bt(e)&&p(e,"_locale")&&(r._locale=e._locale),Bt(e)&&p(e,"_isValid")&&(r._isValid=e._isValid),r}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(r,i){return function(e,t){var n;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."),n=e,e=t,t=n),Jt(this,F(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&Ie(e,me(e,"Month")+t*n),o&&fe(e,"Date",me(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&f.updateOffset(e,o||t)}F.fn=Ft.prototype,F.invalid=function(){return F(NaN)};Be=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)||L(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!L(e)&&Zt(t)}).length),n&&r)||function(e){var t,n,r=R(e)&&!H(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)n=o[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function Kt(e,t){var n,r;return e.date()<t.date()?-Kt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=D(e))&&(this._locale=e),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.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 en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(_(i[o].name)),e.push(_(i[o].abbr)),n.push(_(i[o].narrow)),r.push(_(i[o].name)),r.push(_(i[o].abbr)),r.push(_(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Ze(this,r,i).year:(t>(o=P(e,r,i))&&(t=o),function(e,t,n,r,i){e=Je(e,t,n,r,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,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),w("N",on),w("NN",on),w("NNN",on),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?g(n).era=r:g(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],x),T(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[x]=n._locale.eraYearOrdinalParse(e,i):t[x]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",xe),w("g",xe),w("GG",b,y),w("gg",b,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Te,ye),w("ggggg",Te,ye),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=m(e)}),Pe(["gg","GG"],function(e,t,n,r){t[r]=f.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",i),T("Q",function(e,t){t[E]=3*(m(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],k),T("Do",function(e,t){t[k]=m(e.match(b)[0])});_e=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),T(["DDD","DDDD"],function(e,t,n){n._dayOfYear=m(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),T(["m","mm"],M);ge=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),T(["s","ss"],$);var un,Te=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,i),w("SS",we,y),w("SSS",we,pe),un="SSSS";un.length<=9;un+="S")w(un,Se);function cn(e,t){t[Ae]=m(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")T(un,cn);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=Z.prototype;function hn(e){return e}i.add=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!H(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||O(),n=It(e,this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,O(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:d(o)},i.endOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),f.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),e=se(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||O(e).isValid())?F({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(O(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||O(e).isValid())?F({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(O(),e)},i.get=function(e){return c(this[e=h(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:O(e),t=l(t)?t:O(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:O(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(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 j(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 n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),f.updateOffset(this,!0)}return 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){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"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(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-f(n[r].since).year())*e+n[r].offset;return this.year()},i.year=Ye,i.isLeapYear=function(){return he(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.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=ze,i.daysInMonth=function(){return Fe(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 P(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return P(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return P(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return P(this.isoWeekYear(),1,4)},i.date=_e,i.day=i.days=function(e){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},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,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:zt(this);if("string"==typeof e){if(null===(e=Lt(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,F(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.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(zt(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Lt(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?O(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.",_e),i.months=e("months accessor is deprecated. Use month instead",ze),i.years=e("years accessor is deprecated. Use year instead",Ye),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(){var e,t;return a(this._isDSTShifted)&&(J(t={},this),(t=Pt(t))._a?(e=(t._isUTC?u:O)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&m(e[s])!==m(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=D(),r=u().set(r,t);return i[n](r,e)}function mn(e,t,n){if(L(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function fn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),L(t)&&(n=t,t=void 0),t||"");var i,o=D(),s=e?o._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+s)%7,r,"day");return a}y.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).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=hn,y.postformat=hn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(c(t=e[n])?this[n]=t:this["_"+n]=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 n,r=this._eras||D("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=f(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=f(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=u([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"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,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Le),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=He),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=s(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,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=u([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"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,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=u([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.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")||rt.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")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},mt("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===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),f.langData=e("moment.langData is deprecated. Use moment.localeData instead.",D);var pn=Math.abs;function gn(e,t,n,r){t=F(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Be=wn("m"),ve=wn("h"),be=wn("d"),Ke=wn("w"),v=wn("M"),ge=wn("Q"),Te=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),Ye=_n("minutes"),y=_n("hours"),Tn=_n("days"),Sn=_n("months"),xn=_n("years");var En=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cn(e,t,n,r){var i=F(e).abs(),o=En(i.as("s")),s=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),u=En(i.as("M")),c=En(i.as("w")),i=En(i.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(o=(o=null!=n.w?o||(c<=1?["w"]:c<n.w&&["ww",c]):o)||(u<=1?["M"]:u<n.M&&["MM",u])||(i<=1?["y"]:["yy",i]))[2]=t,o[3]=0<+e,o[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,o)}var Mn=Math.abs;function $n(e){return(0<e)-(e<0)||+e}function Pn(){var e,t,n,r,i,o,s,a,l,u,c;return this.isValid()?(a=Mn(this._milliseconds)/1e3,l=Mn(this._days),u=Mn(this._months),(c=this.asSeconds())?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=$n(this._months)!==$n(c)?"-":"",o=$n(this._days)!==$n(c)?"-":"",s=$n(this._milliseconds)!==$n(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"):this.localeData().invalidDate()}var B=Ft.prototype;return B.isValid=function(){return this._isValid},B.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},B.add=function(e,t){return gn(this,e,t,1)},B.subtract=function(e,t){return gn(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=we,B.asSeconds=pe,B.asMinutes=Be,B.asHours=ve,B.asDays=be,B.asWeeks=Ke,B.asMonths=v,B.asQuarters=ge,B.asYears=Te,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},B.clone=function(){return F(this)},B.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=_e,B.minutes=Ye,B.hours=y,B.days=Tn,B.weeks=function(){return d(this.days()/7)},B.months=Sn,B.years=xn,B.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=kn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},kn,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Cn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=Pn,B.toString=Pn,B.toJSON=Pn,B.locale=qt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),w("x",xe),w("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,n){n._d=new Date(m(e))}),f.version="2.29.4",N=O,f.fn=i,f.min=function(){return Dt("isBefore",[].slice.call(arguments,0))},f.max=function(){return Dt("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=u,f.unix=function(e){return O(1e3*e)},f.months=function(e,t){return mn(e,t,"months")},f.isDate=I,f.locale=mt,f.invalid=Y,f.duration=F,f.isMoment=l,f.weekdays=function(e,t,n){return fn(e,t,n,"weekdays")},f.parseZone=function(){return O.apply(null,arguments).parseZone()},f.localeData=D,f.isDuration=Bt,f.monthsShort=function(e,t){return mn(e,t,"monthsShort")},f.weekdaysMin=function(e,t,n){return fn(e,t,n,"weekdaysMin")},f.defineLocale=ft,f.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=A[e]&&null!=A[e].parentLocale?A[e].set(Q(A[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=A[e],A[e]=r),mt(e)):null!=A[e]&&(null!=A[e].parentLocale?(A[e]=A[e].parentLocale,e===mt()&&mt(e)):null!=A[e]&&delete A[e]),A[e]},f.locales=function(){return te(A)},f.weekdaysShort=function(e,t,n){return fn(e,t,n,"weekdaysShort")},f.normalizeUnits=h,f.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==kn[e]&&(void 0===t?kn[e]:(kn[e]=t,"s"===e&&(kn.ss=t-1),!0))},f.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"},f.prototype=i,f.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"},f}()});function qr(e,t){T(e,t)}const Qr={en:{tournamentsList:{nothing:"Nothing to show here."}},hr:{tournamentsList:{nothing:"Nema ničega za prikazati ovdje."}},"zh-hk":{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."}}};function ei(e,t){T(e,t)}const ti={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"zh-hk":{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 la înregistrarea î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:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}}};function ni(e,t){T(e,t)}const ri={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{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ı",stake:"Turnover",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{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:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function ii(n){let r,i,o,s,a,l;return{c(){r=D("div"),i=O(n[13]),N(r,"class",o="Status "+n[15]),N(r,"part",s="Status "+n[15])},m(e,t){P(e,r,t),$(r,i),a||(l=U(n[18].call(null,r)),a=!0)},p(e,t){8192&t[0]&&R(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&N(r,"class",o),32768&t[0]&&s!==(s="Status "+e[15])&&N(r,"part",s)},d(e){e&&A(r),a=!1,l()}}}function oi(e){let n,r=e[5]&&si(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),P(e,n,t)},p(e,t){e[5]?r?r.p(e,t):((r=si(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&A(n)}}}function si(e){let n,r,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){n=D("div"),r=O(i),N(n,"class","Enrolled"),N(n,"part","Enrolled")},m(e,t){P(e,n,t),$(n,r)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&R(r,i)},d(e){e&&A(n)}}}function ai(n){let r,i,o,s,a;return{c(){N(r=D("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),N(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),G(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){P(e,r,t),s||(a=U(n[18].call(null,r)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"part",o)},d(e){e&&A(r),s=!1,a()}}}function li(n){let r,i,o,s,a;return{c(){N(r=D("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),N(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),G(r,"background-image","url('"+n[4]+"')")},m(e,t){P(e,r,t),s||(a=U(n[18].call(null,r)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"part",o),16&t[0]&&G(r,"background-image","url('"+e[4]+"')")},d(e){e&&A(r),s=!1,a()}}}function ui(n){let r,i,o,s,a;return{c(){r=D("div"),i=O(n[11]),N(r,"class","Date"),N(r,"part","Date")},m(e,t){P(e,r,t),$(r,i),s||(a=U(o=n[17].call(null,r,n[2])),s=!0)},p(e,t){2048&t[0]&&R(i,e[11]),o&&k(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&A(r),s=!1,a()}}}function ci(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g,y,b,v,w,_,T,S,x=n[16]("tournamentsThumbnail.scoreCriteria")+"",E=n[16]("tournamentsThumbnail.minbet")+"",k=n[16]("tournamentsThumbnail.seegames")+"",C=n[16]("tournamentsThumbnail.here")+"";return{c(){r=D("div"),i=D("p"),o=O(x),s=O(":\n \n "),a=D("span"),l=O(n[14]),u=O("\n ("),c=O(E),h=F(),d=O(n[6]),m=O(")"),f=F(),p=D("div"),g=D("p"),y=O(k),b=F(),v=D("a"),w=O(C),N(a,"part","ScoreCriteriaSpan"),N(i,"part","ScoreCriteriaP"),N(r,"class","ScoreCriteria"),N(r,"part","ScoreCriteria"),N(v,"part","GamesAnchor"),N(v,"href",n[8]),N(v,"target",_="true"===n[9]?"_self":"_blank"),N(g,"part","GamesP"),N(p,"class","Games"),N(p,"part","Games")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(i,s),$(i,a),$(a,l),$(i,u),$(i,c),$(i,h),$(i,d),$(i,m),P(e,f,t),P(e,p,t),$(p,g),$(g,y),$(g,b),$(g,v),$(v,w),T||(S=[U(n[19].call(null,a)),B(v,"click",n[28])],T=!0)},p(e,t){65536&t[0]&&x!==(x=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&R(o,x),16384&t[0]&&R(l,e[14]),65536&t[0]&&E!==(E=e[16]("tournamentsThumbnail.minbet")+"")&&R(c,E),64&t[0]&&R(d,e[6]),65536&t[0]&&k!==(k=e[16]("tournamentsThumbnail.seegames")+"")&&R(y,k),65536&t[0]&&C!==(C=e[16]("tournamentsThumbnail.here")+"")&&R(w,C),256&t[0]&&N(v,"href",e[8]),512&t[0]&&_!==(_="true"===e[9]?"_self":"_blank")&&N(v,"target",_)},d(e){e&&A(r),e&&A(f),e&&A(p),T=!1,M(S)}}}function hi(n){let r,i,o,s,a,l,u,c,h,d=n[0]&&ii(n),m="true"==n[7]&&oi(n);function f(e){return e[4]?li:ai}let p=f(n),g=p(n),y=n[2]&&ui(n),b=n[12]&&ci(n);return{c(){r=D("div"),d&&d.c(),i=F(),m&&m.c(),o=F(),g.c(),s=F(),a=D("div"),l=D("div"),u=O(n[1]),c=F(),y&&y.c(),h=F(),b&&b.c(),this.c=v,N(l,"class","Title"),N(l,"part","Title"),N(a,"class","Details"),N(a,"part","Details"),N(r,"class","Thumbnail"),N(r,"part","Thumbnail")},m(e,t){P(e,r,t),d&&d.m(r,null),$(r,i),m&&m.m(r,null),$(r,o),g.m(r,null),$(r,s),$(r,a),$(a,l),$(l,u),$(a,c),y&&y.m(a,null),$(a,h),b&&b.m(a,null),n[29](r)},p(e,t){e[0]?d?d.p(e,t):((d=ii(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),"true"==e[7]?m?m.p(e,t):((m=oi(e)).c(),m.m(r,o)):m&&(m.d(1),m=null),p===(p=f(e))&&g?g.p(e,t):(g.d(1),(g=p(e))&&(g.c(),g.m(r,s))),2&t[0]&&R(u,e[1]),e[2]?y?y.p(e,t):((y=ui(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=ci(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&A(r),d&&d.d(),m&&m.d(),g.d(),y&&y.d(),b&&b.d(),n[29](null)}}}function di(t,e,r){let i;se(t,Or,e=>r(16,i=e));let n,{session:o=""}=e,{userid:s=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:m=""}=e,{minbetcount:f=""}=e,{showenrolled:p="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:_=""}=e,T="",S=!1,x="",E="",k="";Object.keys(ri).forEach(e=>{ni(e,ri[e])});const C=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&r(12,S=!0),e.data.type=="TournamentStatus_"+c)&&r(0,u=e.data.status)},M=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),n=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});r(11,T=n+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+e)},$=()=>{"Unstarted"==u&&(r(13,x=i("tournamentsThumbnail.scheduled")),r(15,k="StatusUnstarted")),"Running"==u&&(r(13,x=i("tournamentsThumbnail.ongoing")),r(15,k="StatusRunning")),"Closed"!=u&&"Closing"!=u||r(13,x=i("tournamentsThumbnail.finished")),"Closed"==u&&r(15,k="StatusClosed"),"Closing"==u&&r(15,k="StatusClosing")},P=()=>{"BetCount"==m&&r(14,E=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==m&&r(14,E=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==m&&r(14,E=i("tournamentsThumbnail.winStakeRatio")),"Stake"==m&&r(14,E=i("tournamentsThumbnail.stake"))},A=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};ae(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));return t.$$set=e=>{"session"in e&&r(21,o=e.session),"userid"in e&&r(22,s=e.userid),"title"in e&&r(1,a=e.title),"startdate"in e&&r(2,l=e.startdate),"status"in e&&r(0,u=e.status),"tourid"in e&&r(3,c=e.tourid),"thumbnail"in e&&r(4,h=e.thumbnail),"userenrolled"in e&&r(5,d=e.userenrolled),"scorecriteria"in e&&r(23,m=e.scorecriteria),"minbetcount"in e&&r(6,f=e.minbetcount),"showenrolled"in e&&r(7,p=e.showenrolled),"gameurl"in e&&r(8,g=e.gameurl),"lang"in e&&r(24,y=e.lang),"keepbrowsercontext"in e&&r(9,b=e.keepbrowsercontext),"clientstyling"in e&&r(25,v=e.clientstyling),"clientstylingurl"in e&&r(26,w=e.clientstylingurl),"translationurl"in e&&r(27,_=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&n&&v&&((e=document.createElement("style")).innerHTML=v,n.appendChild(e)),67109888&t.$$.dirty[0]&&n&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&_&&fetch(_).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ni(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&o&&(0<o.length&&"false"!=o?r(12,S=!0):r(12,S=!1)),1&t.$$.dirty[0]&&u&&$(),16777218&t.$$.dirty[0]&&y&&a&&(e=y,oe.set(e),P(),$(),l)&&M(),4&t.$$.dirty[0]&&l&&M(),8388608&t.$$.dirty[0]&&m&&P()},[u,a,l,c,h,d,f,p,g,b,n,T,S,x,E,k,i,M,$,P,A,o,s,m,y,v,w,_,()=>A(),function(e){ie[e?"unshift":"push"](()=>{n=e,r(10,n)})}]}function mi(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':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}',this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},di,hi,n,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),d()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),d()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),d()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),d()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),d()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),d()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),d()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),d()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),d()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),d()}});const fi={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Počinje za ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{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ămase",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:"Finalizado",starting:"Iniciando en ",left:"queda",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 pi(n){let r,i,o,s,a,l,u,c,h,d,m,f,p=n[10](n[0])+"",g=n[10](n[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?bi:0<e[5]?yi:gi}let b=y(n),v=b(n);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?_i:0<e[5]?wi:0<e[4]?vi:void 0}let _=w(n),T=_&&_(n);return{c(){r=D("div"),i=D("div"),o=O(p),s=F(),a=D("div"),l=O(g),u=F(),c=D("div"),h=D("div"),v.c(),d=F(),T&&T.c(),N(i,"class","StartDate"),N(i,"part","StartDate"),N(a,"class","EndDate"),N(a,"part","EndDate"),N(r,"class","TournamentDates"),N(r,"part","TournamentDates"),N(h,"class","ProgressBar"),N(h,"part","ProgressBar"),N(c,"class","ProgressBarWrapper"),N(c,"part","ProgressBarWrapper")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(r,s),$(r,a),$(a,l),P(e,u,t),P(e,c,t),$(c,h),v.m(h,null),$(h,d),T&&T.m(h,null),m||(f=U(n[9].call(null,c)),m=!0)},p(e,t){1&t&&p!==(p=e[10](e[0])+"")&&R(o,p),2&t&&g!==(g=e[10](e[1])+"")&&R(l,g),b===(b=y(e))&&v?v.p(e,t):(v.d(1),(v=b(e))&&(v.c(),v.m(h,d))),_===(_=w(e))&&T?T.p(e,t):(T&&T.d(1),(T=_&&_(e))&&(T.c(),T.m(h,null)))},d(e){e&&A(r),e&&A(u),e&&A(c),v.d(),T&&T.d(),m=!1,f()}}}function gi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFill"),N(n,"part","ProgressBarFill"),G(n,"width",e[7]()+"%")},m(e,t){P(e,n,t)},p(e,t){128&t&&G(n,"width",e[7]()+"%")},d(e){e&&A(n)}}}function yi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFillStarting"),N(n,"part","ProgressBarFillStarting")},m(e,t){P(e,n,t)},p:v,d(e){e&&A(n)}}}function bi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFillEnd"),N(n,"part","ProgressBarFillEnd")},m(e,t){P(e,n,t)},p:v,d(e){e&&A(n)}}}function vi(e){let n,r,i,o,s=e[8]("tournamentsDuration.left")+"";return{c(){n=D("div"),r=O(e[6]),i=F(),o=O(s),N(n,"class","Remaining"),N(n,"part","Remaining")},m(e,t){P(e,n,t),$(n,r),$(n,i),$(n,o)},p(e,t){64&t&&R(r,e[6]),256&t&&s!==(s=e[8]("tournamentsDuration.left")+"")&&R(o,s)},d(e){e&&A(n)}}}function wi(e){let n,r,i,o,s=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){n=D("div"),r=O(s),i=F(),o=O(a),N(n,"class","Remaining"),N(n,"part","Remaining")},m(e,t){P(e,n,t),$(n,r),$(n,i),$(n,o)},p(e,t){256&t&&s!==(s=e[8]("tournamentsDuration.starting")+"")&&R(r,s),32&t&&a!==(a=e[11](e[5])+"")&&R(o,a)},d(e){e&&A(n)}}}function _i(e){let n,r,i=e[8]("tournamentsDuration.finished")+"";return{c(){n=D("div"),r=O(i),N(n,"class","Finished"),N(n,"part","Finished")},m(e,t){P(e,n,t),$(n,r)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&R(r,i)},d(e){e&&A(n)}}}function Ti(n){let r,i=n[0]&&n[1]&&pi(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","TournamentDuration"),N(r,"part","TournamentDuration")},m(e,t){P(e,r,t),i&&i.m(r,null),n[16](r)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=pi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[16](null)}}}function Si(t,e,n){let r,i;se(t,Or,e=>n(8,i=e));let o,{startdate:s=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,m="",f="",p="";Object.keys(fi).forEach(e=>{mi(e,fi[e])});const g=e=>new Date(e).getTime(),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;n(4,m=y(e,a)),n(5,f=y(e,s)),n(6,p=v(m))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>{return(e=Math.floor(e))<10?"0"+e:""+e}).join(":"):Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return ae(()=>{const e=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(e)}),t.$$set=e=>{"startdate"in e&&n(0,s=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,l=e.status),"lang"in e&&n(12,u=e.lang),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,h=e.clientstylingurl),"translationurl"in e&&n(15,d=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&n(7,r=()=>{var e,t;return m<=0?100:(t=100/(e=y(s,a)),Math.floor((e-m)*t))}),19&t.$$.dirty&&s&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(m),32768&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mi(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&o&&c&&((e=document.createElement("style")).innerHTML=c,o.appendChild(e)),16392&t.$$.dirty&&o&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[s,a,l,o,m,f,p,r,i,b,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,d,function(e){ie[e?"unshift":"push"](()=>{o=e,n(3,o)})}]}function xi(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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)}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Si,Ti,n,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),d()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),d()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),d()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),d()}});const Ei={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function ki(e,t,n){e=e.slice();return e[13]=t[n],e[15]=n,e}function Ci(t){let r,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=$i(ki(t,i,e));let s=null;return i.length||(s=Mi(t)),{c(){r=D("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),N(r,"class","Prizes"),N(r,"part","Prizes")},m(e,t){P(e,r,t);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(r,null);s&&s.m(r,null)},p(t,n){if(6&n){let e;for(i=t[1],e=0;e<i.length;e+=1){const s=ki(t,i,e);o[e]?o[e].p(s,n):(o[e]=$i(s),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):((s=Mi(t)).c(),s.m(r,null))}},d(e){e&&A(r),j(o,e),s&&s.d()}}}function Mi(e){let n,r,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){n=D("p"),r=O(i)},m(e,t){P(e,n,t),$(n,r)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&R(r,i)},d(e){e&&A(n)}}}function $i(e){let n,r,i,o,s,a,l,u,c,h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"",d=e[2]("tournamentsPrizes.place")+"",m=e[13].name+"";return{c(){n=D("div"),r=D("p"),i=D("span"),o=O(h),s=F(),a=O(d),l=O(": "),u=O(m),c=F(),N(i,"class","PrizeRank"),N(i,"part","PrizeRank"),N(r,"class","PrizeText"),N(r,"part","PrizeText"),N(n,"class","Prize Prize"+e[15]),N(n,"part","Prize Prize"+e[15])},m(e,t){P(e,n,t),$(n,r),$(r,i),$(i,o),$(r,s),$(r,a),$(r,l),$(r,u),$(n,c)},p(e,t){2&t&&h!==(h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"")&&R(o,h),4&t&&d!==(d=e[2]("tournamentsPrizes.place")+"")&&R(a,d),2&t&&m!==(m=e[13].name+"")&&R(u,m)},d(e){e&&A(n)}}}function Pi(n){let r,i,o,s,a,l,u,c=n[2]("tournamentsPrizes.prizes")+"",h=n[1]&&Ci(n);return{c(){r=D("div"),i=D("div"),(o=D("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=F(),a=D("p"),l=O(c),u=F(),h&&h.c(),this.c=v,N(o,"class","TournamentPrizesIconWrapper"),N(o,"part","TournamentPrizesIconWrapper"),N(a,"class","PrizesTitle"),N(a,"part","PrizesTitle"),N(i,"class","TournamentPrizesIconSection"),N(i,"part","TournamentPrizesIconSection"),N(r,"class","TournamentPrizes"),N(r,"part","TournamentPrizes")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(i,s),$(i,a),$(a,l),$(r,u),h&&h.m(r,null),n[7](r)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&R(l,c),e[1]?h?h.p(e,t):((h=Ci(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&A(r),h&&h.d(),n[7](null)}}}function Ai(t,e,n){let r;se(t,Or,e=>n(2,r=e));let i,o,{tourid:s=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e;Object.keys(Ei).forEach(e=>{xi(e,Ei[e])});const c=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&n(1,o=e.data.prizes)};return ae(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"tourid"in e&&n(3,s=e.tourid),"clientstyling"in e&&n(4,a=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl),"translationurl"in e&&n(6,u=e.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a&&((e=document.createElement("style")).innerHTML=a,i.appendChild(e)),33&t.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;64&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{xi(e,t[e])})}).catch(e=>{console.log(e)})},[i,o,r,s,a,l,u,function(e){ie[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function Di(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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)}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Ai,Pi,n,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),d()}});const Oi={en:{gamesSlider:{playNow:"Play now"}},hr:{gamesSlider:{playNow:"Započni sada"}},"zh-hk":{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function Fi(e,t,n){e=e.slice();return e[50]=t[n],e[52]=n,e}function Bi(n){let r,i,o,s,a,l,u,c,h,d,m=n[1],f=[];for(let e=0;e<m.length;e+=1)f[e]=Ni(Fi(n,m,e));return{c(){r=D("div"),(i=D("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>',o=F(),s=D("main"),a=D("div");for(let e=0;e<f.length;e+=1)f[e].c();u=F(),(c=D("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>',N(i,"class","SliderNavButton"),N(i,"part","SliderNavButton"),W(i,"disabled",n[8]),N(a,"class","items"),N(a,"part","items"),G(a,"transform","translateX("+n[2]+"px)"),ee(()=>n[28].call(s)),N(c,"class","SliderNavButton"),N(c,"part","SliderNavButton"),W(c,"disabled",n[9]),N(r,"class","TournamentsGamesSlider"),N(r,"part","TournamentsGamesSlider")},m(e,t){P(e,r,t),$(r,i),$(r,o),$(r,s),$(s,a);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(a,null);n[27](a),l=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=D("iframe"),r=(n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1,function(){if(void 0===H){H=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){H=!0}}return H}());let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=B(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{i=B(n.contentWindow,"resize",t),t()}),$(e,n),()=>{(r||i&&n.contentWindow)&&i(),A(n)}}(s,n[28].bind(s)),$(r,u),$(r,c),n[30](r),h||(d=[B(i,"click",n[23]),B(c,"click",n[29])],h=!0)},p(t,n){if(256&n[0]&&W(i,"disabled",t[8]),23650&n[0]){let e;for(m=t[1],e=0;e<m.length;e+=1){var r=Fi(t,m,e);f[e]?f[e].p(r,n):(f[e]=Ni(r),f[e].c(),f[e].m(a,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}4&n[0]&&G(a,"transform","translateX("+t[2]+"px)"),512&n[0]&&W(c,"disabled",t[9])},d(e){e&&A(r),j(f,e),n[27](null),l(),n[30](null),h=!1,M(d)}}}function Ni(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g=n[10]("gamesSlider.playNow")+"";function y(){return n[24](n[50])}function b(){return n[25](n[52])}return{c(){r=D("div"),i=D("span"),o=O(g),l=F(),u=D("img"),m=F(),N(i,"class",s="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),N(i,"part",a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),I(u.src,c=n[50].thumbnail)||N(u,"src",c),N(u,"width","132px"),N(u,"height","100px"),N(u,"alt",h=n[50].name),N(u,"title",d=n[50].name),N(r,"class","item"),N(r,"part","item")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(r,l),$(r,u),$(r,m),f||(p=[B(r,"click",y),B(r,"mouseenter",b),B(r,"mouseleave",n[26])],f=!0)},p(e,t){n=e,1024&t[0]&&g!==(g=n[10]("gamesSlider.playNow")+"")&&R(o,g),96&t[0]&&s!==(s="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&N(i,"class",s),96&t[0]&&a!==(a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&N(i,"part",a),2&t[0]&&!I(u.src,c=n[50].thumbnail)&&N(u,"src",c),2&t[0]&&h!==(h=n[50].name)&&N(u,"alt",h),2&t[0]&&d!==(d=n[50].name)&&N(u,"title",d)},d(e){e&&A(r),f=!1,M(p)}}}function Ri(n){let r,i=n[1]&&0<n[1].length&&Bi(n);return{c(){r=D("div"),i&&i.c(),this.c=v},m(e,t){P(e,r,t),i&&i.m(r,null),n[31](r)},p(e,t){e[1]&&0<e[1].length?i?i.p(e,t):((i=Bi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[31](null)}}}function Hi(n,e,r){let i,o,t;se(n,Or,e=>r(10,t=e));let s,a,l,u,c,h,{tournamenturl:d=""}=e,{scrollby:m="3"}=e,{pagfactor:f="175"}=e,{lang:p=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],_=0,T=null,S=null,x=!1,E=0;Object.keys(Oi).forEach(e=>{Di(e,Oi[e])});const k=e=>{r(5,x=!0),r(6,u=e)},C=()=>{r(5,x=!1),r(6,u=-1)},M=e=>{e=(e.touches||e.originalEvent.touches)[0];T=e.clientX,S=e.clientY},$=e=>{var t;T&&S&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=T-t,e=S-e,Math.abs(t)>Math.abs(e)&&P(0<t?1:-1),T=null,S=null)},P=e=>{0<e&&!o?(r(2,_-=a),r(2,_=_<E?E:_)):e<0&&!i&&(r(2,_+=a),r(2,_=0<_?0:_))},A=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};return ae(()=>(a=parseInt(m,10)*parseInt(f,10),()=>{l.removeEventListener("touchstart",M),l.removeEventListener("touchmove",$)})),n.$$set=e=>{"tournamenturl"in e&&r(17,d=e.tournamenturl),"scrollby"in e&&r(15,m=e.scrollby),"pagfactor"in e&&r(16,f=e.pagfactor),"lang"in e&&r(18,p=e.lang),"translationurl"in e&&r(19,g=e.translationurl),"clientstyling"in e&&r(20,y=e.clientstyling),"clientstylingurl"in e&&r(21,b=e.clientstylingurl)},n.$$.update=()=>{if(4&n.$$.dirty[0]&&r(8,i=0===_),4194308&n.$$.dirty[0]&&r(9,o=_<=E),16&n.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(m)+1)*f)&&r(15,m=Math.ceil(h/f).toString()),131072&n.$$.dirty[0]&&d&&(e=new URL(d),t=new Headers,e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${_})`),e.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),e.searchParams.append("language",p),e.searchParams.append("platform",Fr(v)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(1,w=e.item.games.items),e.item.games.total})),8&n.$$.dirty[0]&&l&&(l.addEventListener("touchstart",M,{passive:!0}),l.addEventListener("touchmove",$,{passive:!0})),524288&n.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Di(e,t[e])})}).catch(e=>{console.log(e)}),2&n.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,E=-1*(c.scrollWidth-c.clientWidth)),r(16,f=new String(c.scrollWidth/w.length)),a=parseInt(m,10)*parseFloat(f,2).toFixed(2)},1e3),1048577&n.$$.dirty[0]&&y&&s&&((e=document.createElement("style")).innerHTML=y,s.appendChild(e)),2097153&n.$$.dirty[0]&&b&&s){let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t},r(2,_=0),[s,w,_,l,h,x,u,c,i,o,t,k,C,P,A,m,f,d,p,g,y,b,E,()=>P(-1),e=>A(e),e=>k(e),()=>C(),function(e){ie[e?"unshift":"push"](()=>{c=e,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>P(1),function(e){ie[e?"unshift":"push"](()=>{l=e,r(3,l)})},function(e){ie[e?"unshift":"push"](()=>{s=e,r(0,s)})}]}function Li(e){let n,r,i,o,s,a,l,u,c,h=e[13]&&zi(e);function d(e){return e[13]?"Closed"!=e[22]&&"Closing"!=e[22]?Yi:"true"==e[3]?ji:void 0:Gi}let m=d(e),f=m&&m(e),p=(e[16]||e[18])&&qi(e),g="true"==e[4]&&Qi(e);return{c(){n=D("div"),r=D("casino-tournaments-thumbnail"),i=F(),h&&h.c(),o=F(),s=D("div"),f&&f.c(),a=F(),p&&p.c(),l=F(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[19]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"tourid",e[23]),y(r,"scorecriteria",e[26]),y(r,"minbetcount",e[27]),y(r,"thumbnail",e[24]),y(r,"userenrolled",e[25]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[29]),y(r,"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"lang",e[8]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),N(s,"class","TournamentButtons"),N(s,"part","TournamentButtons"),N(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),N(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){P(e,n,t),$(n,r),$(n,i),h&&h.m(n,null),$(n,o),$(n,s),f&&f.m(s,null),$(n,a),p&&p.m(n,null),$(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),524288&t[0]&&y(r,"title",e[19]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),8388608&t[0]&&y(r,"tourid",e[23]),67108864&t[0]&&y(r,"scorecriteria",e[26]),134217728&t[0]&&y(r,"minbetcount",e[27]),16777216&t[0]&&y(r,"thumbnail",e[24]),33554432&t[0]&&y(r,"userenrolled",e[25]),32&t[0]&&y(r,"showenrolled",e[5]),536870912&t[0]&&y(r,"gameurl",e[29]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),256&t[0]&&y(r,"lang",e[8]),512&t[0]&&y(r,"keepbrowsercontext",e[9]),e[13]?h?h.p(e,t):((h=zi(e)).c(),h.m(n,o)):h&&(h.d(1),h=null),m===(m=d(e))&&f?f.p(e,t):(f&&f.d(1),(f=m&&m(e))&&(f.c(),f.m(s,null))),e[16]||e[18]?p?p.p(e,t):((p=qi(e)).c(),p.m(n,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):((g=Qi(e)).c(),g.m(n,null)):g&&(g.d(1),g=null),1073742016&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"class",u),1073742016&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"part",c)},d(e){e&&A(n),h&&h.d(),f&&f.d(),p&&p.d(),g&&g.d()}}}function Ii(e){let n,r,i,o;return{c(){n=D("div"),(r=D("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>',N(r,"class","ph-item"),N(r,"part","ph-item"),N(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),N(n,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){P(e,n,t),$(n,r)},p(e,t){1073742016&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"class",i),1073742016&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"part",o)},d(e){e&&A(n)}}}function zi(e){let n,r,i=e[23]&&Ui(e);return{c(){i&&i.c(),n=F(),y(r=D("casino-tournaments-thumbnail-duration"),"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"lang",e[8]),y(r,"enddate",e[21]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),P(e,n,t),P(e,r,t)},p(e,t){e[23]?i?i.p(e,t):((i=Ui(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),256&t[0]&&y(r,"lang",e[8]),2097152&t[0]&&y(r,"enddate",e[21])},d(e){i&&i.d(e),e&&A(n),e&&A(r)}}}function Ui(n){let r,i,o,s;return{c(){y(r=D("casino-tournaments-thumbnail-prizes"),"tourid",n[23]),y(r,"clientstyling",n[10]),y(r,"clientstylingurl",n[11]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){P(e,r,t),o||(s=U(i=n[36].call(null,r,n[23])),o=!0)},p(e,t){8388608&t[0]&&y(r,"tourid",e[23]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),i&&k(i.update)&&8388608&t[0]&&i.update.call(null,e[23])},d(e){e&&A(r),o=!1,s()}}}function ji(n){let r,i,o,s,a=n[31]("tournamentsThController.details")+"";return{c(){r=D("button"),i=O(a),N(r,"class","DetailsLargeButton"),N(r,"part","DetailsLargeButton")},m(e,t){P(e,r,t),$(r,i),o||(s=B(r,"click",n[50]),o=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&A(r),o=!1,s()}}}function Yi(e){let n,r,i="true"==e[3]&&Wi(e);function o(e){return 1==e[25]?Ji:Vi}let s=o(e),a=s(e);return{c(){i&&i.c(),n=F(),a.c(),r=Y()},m(e,t){i&&i.m(e,t),P(e,n,t),a.m(e,t),P(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=Wi(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),(a=s(e))&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&A(n),a.d(e),e&&A(r)}}}function Gi(n){let r,i,o,s,a,l,u,c=n[31]("tournamentsThController.login")+"",h=n[31]("tournamentsThController.register")+"";return{c(){r=D("button"),i=O(c),o=F(),s=D("button"),a=O(h),N(r,"class","LoginButton"),N(r,"part","LoginButton"),N(s,"class","RegisterButton"),N(s,"part","RegisterButton")},m(e,t){P(e,r,t),$(r,i),P(e,o,t),P(e,s,t),$(s,a),l||(u=[B(r,"click",n[46]),B(s,"click",n[47])],l=!0)},p(e,t){1&t[1]&&c!==(c=e[31]("tournamentsThController.login")+"")&&R(i,c),1&t[1]&&h!==(h=e[31]("tournamentsThController.register")+"")&&R(a,h)},d(e){e&&A(r),e&&A(o),e&&A(s),l=!1,M(u)}}}function Wi(n){let r,i,o,s,a=n[31]("tournamentsThController.details")+"";return{c(){r=D("button"),i=O(a),N(r,"class","DetailsButton"),N(r,"part","DetailsButton")},m(e,t){P(e,r,t),$(r,i),o||(s=B(r,"click",n[48]),o=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&A(r),o=!1,s()}}}function Vi(n){let r,i,o,s,a;function l(e){return 1==e[15]?Xi:Zi}let u=l(n),c=u(n);return{c(){r=D("button"),c.c(),N(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),N(r,"part",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[16]},m(e,t){P(e,r,t),c.m(r,null),s||(a=B(r,"click",n[49]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&N(r,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&N(r,"part",o),65536&t[0]&&(r.disabled=e[16])},d(e){e&&A(r),c.d(),s=!1,a()}}}function Ji(e){let n,r="true"==e[3]&&Ki(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),P(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):((r=Ki(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&A(n)}}}function Zi(e){let n,r,i,o,s,a,l,u,c,h=e[31]("tournamentsThController.join")+"";return{c(){n=D("span"),r=O(h),i=F(),o=t("svg"),s=t("defs"),a=t("style"),l=O(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),N(n,"part","JoinButtonSpan"),N(c,"class","a"),N(c,"part","a JoinButtonSvgA"),N(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),N(c,"transform","translate(26 26) rotate(180)"),N(u,"transform","translate(26 26) rotate(180)"),N(o,"part","JoinButtonSvg"),N(o,"xmlns","http://www.w3.org/2000/svg"),N(o,"width","26"),N(o,"height","26"),N(o,"viewBox","0 0 26 26")},m(e,t){P(e,n,t),$(n,r),P(e,i,t),P(e,o,t),$(o,s),$(s,a),$(a,l),$(o,u),$(u,c)},p(e,t){1&t[1]&&h!==(h=e[31]("tournamentsThController.join")+"")&&R(r,h)},d(e){e&&A(n),e&&A(i),e&&A(o)}}}function Xi(e){let n,r;return{c(){n=t("svg"),N(r=t("circle"),"cx","20"),N(r,"cy","20"),N(r,"r","18"),N(n,"class","spinner"),N(n,"part","spinner")},m(e,t){P(e,n,t),$(n,r)},p:v,d(e){e&&A(n)}}}function Ki(e){let n,r,i=e[31]("tournamentsThController.enrolled")+"";return{c(){n=D("button"),r=O(i),N(n,"class","EnrolledButton"),N(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){P(e,n,t),$(n,r)},p(e,t){1&t[1]&&i!==(i=e[31]("tournamentsThController.enrolled")+"")&&R(r,i)},d(e){e&&A(n)}}}function qi(e){let n,r,i,o,s=e[31]("tournamentsThController.joinerror")+"";return{c(){n=D("span"),r=O(s),i=F(),o=O(e[17]),N(n,"class","ErrorText"),N(n,"part","ErrorText")},m(e,t){P(e,n,t),$(n,r),$(n,i),$(n,o)},p(e,t){1&t[1]&&s!==(s=e[31]("tournamentsThController.joinerror")+"")&&R(r,s),131072&t[0]&&R(o,e[17])},d(e){e&&A(n)}}}function Qi(e){let n;return{c(){y(n=D("casino-tournaments-thumbnail-games-slider"),"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){P(e,n,t)},p(e,t){1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&A(n)}}}function eo(n){let r;function i(e){return e[14]?Ii:e[19]?Li:void 0}let o=i(n),s=o&&o(n);return{c(){r=D("div"),s&&s.c(),this.c=v},m(e,t){P(e,r,t),s&&s.m(r,null),n[51](r)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s&&s.d(1),(s=o&&o(e))&&(s.c(),s.m(r,null)))},i:v,o:v,d(e){e&&A(r),s&&s.d(),n[51](null)}}}function to(n,e,u){let t;se(n,Or,e=>u(31,t=e));let r,i,o,s,a,c,l,h,d,N,m,{session:f=""}=e,{userid:R=""}=e,{tournamenturl:p=""}=e,g=e["touridx"],{endpoint:y=""}=e,{showdetails:H=""}=e,{showslider:L=""}=e,{showenrolled:I=""}=e,{maxwidth:z=""}=e,{fullsize:U=""}=e,{lang:b=""}=e,{loginevent:v=""}=e,{registerevent:w=""}=e,{loginurl:_=""}=e,{registerurl:T=""}=e,{currency:S=""}=e,{keepbrowsercontext:j="false"}=e,{clientstyling:x=""}=e,{clientstylingurl:E=""}=e,{translationurl:k=""}=e,C=!1,M="",$=!0,Y=window.navigator.userAgent,P=!1,A=!1,G="There was an error while trying to join the tournament",D=!1,W=[],O=[],V="#",F=!1;var J,Z;({withLocale:J,translations:Z}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(nr.set(Z),oe.set(J))}),Object.keys(ti).forEach(e=>{ei(e,ti[e])});const X=e=>{q(e),re(e),ne(this,c)},K=n=>{if(n.data&&"UserSessionID"==n.data.type&&(u(13,C=!0),M=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(c&&c!=e.id)return;X(e)}if(n.data&&n.data.type=="UpdateSingleTournament_"+g){let e=n.data.tournamentData,t=g<4?100*g:300*Math.random()+300;u(30,F=1==g),setTimeout(()=>{u(30,F=!0),u(23,c=e.id),X(e)},t),setTimeout(()=>{u(30,F=!1)},200+t)}},q=e=>{e.state!=a&&(u(22,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag)&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"}),_&&(window.location=_)},ee=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag)&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),T&&(window.location=T)},B=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},te=async(t,e)=>{u(16,A=!1),u(18,D=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(15,P=!0);let n=new URL(y+"/v1/bonus/claim"),r=new Headers,i={},o=(n.searchParams.append("language",b),n.searchParams.append("platform",Fr(Y)),r.append("Content-Type","application/json"),r.append("X-SessionID",M),e&&1<=e.length&&(i={language:b,bonusCode:e[0].code,currency:S}),{method:"PUT",headers:r,body:JSON.stringify(i)});const s=()=>{u(15,P=!1),u(25,h=!0)},a=e=>{u(15,P=!1),e&&u(17,G=e),u(16,A=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(n,o)).json()}catch(e){a()}return e})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":f}})).json())?void 0:e.item)&&t.playerEnrolled?s():(a(l.errorMessage),u(18,D=!0),u(16,A=!1))}else a(l.errorMessage)},ne=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:W},window.location.href)},re=e=>{e&&(u(19,i=e.nameOrTitle||""),u(20,o=e.startTime),u(21,s=e.endTime),u(22,a=e.state),u(23,c=e.id),u(24,l=e.thumbnail),u(25,h=e.playerEnrolled||!1),u(26,d=e.scoreCriteria),u(27,N=e.minBetCount),W=e.prizes,u(28,O=e.wallets||[]),u(29,V=e.termsUrl||"#"))};return ae(()=>(u(14,$=!1),window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),n.$$set=e=>{"session"in e&&u(0,f=e.session),"userid"in e&&u(1,R=e.userid),"tournamenturl"in e&&u(2,p=e.tournamenturl),"touridx"in e&&u(37,g=e.touridx),"endpoint"in e&&u(38,y=e.endpoint),"showdetails"in e&&u(3,H=e.showdetails),"showslider"in e&&u(4,L=e.showslider),"showenrolled"in e&&u(5,I=e.showenrolled),"maxwidth"in e&&u(6,z=e.maxwidth),"fullsize"in e&&u(7,U=e.fullsize),"lang"in e&&u(8,b=e.lang),"loginevent"in e&&u(39,v=e.loginevent),"registerevent"in e&&u(40,w=e.registerevent),"loginurl"in e&&u(41,_=e.loginurl),"registerurl"in e&&u(42,T=e.registerurl),"currency"in e&&u(43,S=e.currency),"keepbrowsercontext"in e&&u(9,j=e.keepbrowsercontext),"clientstyling"in e&&u(10,x=e.clientstyling),"clientstylingurl"in e&&u(11,E=e.clientstylingurl),"translationurl"in e&&u(44,k=e.translationurl)},n.$$.update=()=>{if(5120&n.$$.dirty[0]&&r&&x&&((t=document.createElement("style")).innerHTML=x,r.appendChild(t)),6144&n.$$.dirty[0]&&r&&E){let e=new URL(E),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;8192&n.$$.dirty[1]&&k&&fetch(k).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ei(e,t[e])})}).catch(e=>{console.log(e)}),1&n.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(M=f,u(13,C=!0)):u(13,C=!1)),260&n.$$.dirty[0]&&u(45,m=p&&b),16384&n.$$.dirty[1]&&m&&(u(14,$=!0),t=p,u(14,$=!0),t=new URL(t),e=new Headers,t.searchParams.append("language",b),t.searchParams.append("platform",Fr(Y)),C&&e.append("X-SessionID",M),fetch(t,{method:"GET",headers:e}).then(e=>e.json()).then(e=>{u(14,$=!1),re(e.item)}))},[f,R,p,H,L,I,z,U,b,j,x,E,r,C,$,P,A,G,D,i,o,s,a,c,l,h,d,N,O,V,F,t,Q,ee,B,te,ne,g,y,v,w,_,T,S,k,m,()=>Q(),()=>ee(),()=>B(c),()=>te(c,O),()=>B(c),function(e){ie[e?"unshift":"push"](()=>{r=e,u(12,r)})}]}function no(e,t,n){e=e.slice();return e[30]=t[n],e[32]=n,e}function ro(t){let r,i=t[14],o=[];for(let e=0;e<i.length;e+=1)o[e]=oo(no(t,i,e));let s=null;return i.length||(s=io(t)),{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=Y(),s&&s.c()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);P(t,r,n),s&&s.m(t,n)},p(t,n){if(53247&n[0]){let e;for(i=t[14],e=0;e<i.length;e+=1){const s=no(t,i,e);o[e]?o[e].p(s,n):(o[e]=oo(s),o[e].c(),o[e].m(r.parentNode,r))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):((s=io(t)).c(),s.m(r.parentNode,r))}},d(e){j(o,e),e&&A(r),s&&s.d(e)}}}function io(e){let n,r,i=e[15]("tournamentsList.nothing")+"";return{c(){n=D("p"),r=O(i)},m(e,t){P(e,n,t),$(n,r)},p(e,t){32768&t[0]&&i!==(i=e[15]("tournamentsList.nothing")+"")&&R(r,i)},d(e){e&&A(n)}}}function oo(e){let n,r,i;return{c(){y(n=D("casino-tournaments-thumbnail-controller"),"touridx",e[32]+1),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"endpoint",e[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[30].href),y(n,"maxwidth",i=e[14].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"registerevent",e[4]),y(n,"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"keepbrowsercontext",e[9]),y(n,"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){P(e,n,t)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),4&t[0]&&y(n,"endpoint",e[2]),16384&t[0]&&r!==(r=e[30].href)&&y(n,"tournamenturl",r),16384&t[0]&&i!==(i=e[14].length<=2)&&y(n,"maxwidth",i),32&t[0]&&y(n,"loginurl",e[5]),8&t[0]&&y(n,"loginevent",e[3]),64&t[0]&&y(n,"registerurl",e[6]),16&t[0]&&y(n,"registerevent",e[4]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),256&t[0]&&y(n,"lang",e[8]),128&t[0]&&y(n,"currency",e[7]),512&t[0]&&y(n,"keepbrowsercontext",e[9])},d(e){e&&A(n)}}}function so(n){let r,i=!n[13]&&ro(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","TournamentList"),N(r,"part","TournamentList")},m(e,t){P(e,r,t),i&&i.m(r,null),n[18](r)},p(e,t){e[13]?i&&(i.d(1),i=null):i?i.p(e,t):((i=ro(e)).c(),i.m(r,null))},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[18](null)}}}function ao(t,e,n){let r;se(t,Or,e=>n(15,r=e));let i,{session:o=""}=e,{userid:s=""}=e,{numberoftournaments:a="6"}=e,{endpoint:l=""}=e,{loginevent:u=""}=e,{registerevent:c=""}=e,{loginurl:h=""}=e,{registerurl:d=""}=e,{currency:m=""}=e,{lang:f="en"}=e,{keepbrowsercontext:p="false"}=e,{clientstyling:g=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,v=!1,w=(Kr(),"");Object.keys(Qr).forEach(e=>{qr(e,Qr[e])});const _=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(14,w=[]),n(13,v=!0),n(14,w=t.data.tournamentList),setTimeout(()=>{n(13,v=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(14,w=[...w,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!w)return;0==w.filter(e=>e.id==t.data.tournamentData.id).length&&(w.pop(),n(14,w=[t.data.tournamentData,...w]),setTimeout(()=>{w.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 ae(()=>(window.addEventListener("message",_,!0),()=>{window.removeEventListener("message",_,!0)})),t.$$set=e=>{"session"in e&&n(0,o=e.session),"userid"in e&&n(1,s=e.userid),"numberoftournaments"in e&&n(16,a=e.numberoftournaments),"endpoint"in e&&n(2,l=e.endpoint),"loginevent"in e&&n(3,u=e.loginevent),"registerevent"in e&&n(4,c=e.registerevent),"loginurl"in e&&n(5,h=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,m=e.currency),"lang"in e&&n(8,f=e.lang),"keepbrowsercontext"in e&&n(9,p=e.keepbrowsercontext),"clientstyling"in e&&n(10,g=e.clientstyling),"clientstylingurl"in e&&n(11,y=e.clientstylingurl),"translationurl"in e&&n(17,b=e.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&i&&g&&((e=document.createElement("style")).innerHTML=g,i.appendChild(e)),6144&t.$$.dirty[0]&&i&&y){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;131072&t.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qr(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[0]&&o&&o.length,t.$$.dirty[0]},[o,s,l,u,c,h,d,m,f,p,g,y,i,v,w,r,a,b,function(e){ie[e?"unshift":"push"](()=>{i=e,n(12,i)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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 0.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 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Hi,Ri,n,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),d()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),d()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(e){this.$$set({pagfactor:e}),d()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::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.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.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}',this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},to,eo,n,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},null,[-1,-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),d()}get touridx(){return this.$$.ctx[37]}set touridx(e){this.$$set({touridx:e}),d()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),d()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),d()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),d()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),d()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),d()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),d()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[43]}set currency(e){this.$$set({currency:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),d()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},ao,so,n,{session:0,userid:1,numberoftournaments:16,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:17},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get numberoftournaments(){return this.$$.ctx[16]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),d()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),d()}});const lo=e=>0<e.length&&"false"!=e;function uo(e){let n,r,i,o,s,a,l=e[18]&&ho(e);function u(e){return 0==e[19]?fo:mo}let c=u(e),h=c(e),d=!e[20]&&yo(e);return{c(){n=D("div"),r=D("div"),i=D("div"),l&&l.c(),o=F(),s=D("div"),h.c(),a=F(),d&&d.c(),N(i,"class","FirstRow"),N(i,"part","FirstRow"),N(s,"class","SecondRow"),N(s,"part","SecondRow"),N(r,"class","Tournaments"),N(r,"part","Tournaments"),N(n,"class","TournamentsWrapper"),N(n,"part","TournamentsWrapper")},m(e,t){P(e,n,t),$(n,r),$(r,i),l&&l.m(i,null),$(r,o),$(r,s),h.m(s,null),$(r,a),d&&d.m(r,null)},p(e,t){e[18]?l?l.p(e,t):((l=ho(e)).c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(e))&&h?h.p(e,t):(h.d(1),(h=c(e))&&(h.c(),h.m(s,null))),e[20]?d&&(d.d(1),d=null):d?d.p(e,t):((d=yo(e)).c(),d.m(r,null))},d(e){e&&A(n),l&&l.d(),h.d(),d&&d.d()}}}function co(e){let n,r,i,o,s,a=e[21]("tournamentsController.500")+"";return{c(){n=D("p"),r=O(a),i=F(),o=D("p"),s=O(e[16])},m(e,t){P(e,n,t),$(n,r),P(e,i,t),P(e,o,t),$(o,s)},p(e,t){2097152&t[0]&&a!==(a=e[21]("tournamentsController.500")+"")&&R(r,a),65536&t[0]&&R(s,e[16])},d(e){e&&A(n),e&&A(i),e&&A(o)}}}function ho(e){let n;return{c(){y(n=D("casino-tournaments-filter-controller"),"clientstyling",e[12]),y(n,"clientstylingurl",e[13]),y(n,"filters",vo),y(n,"activefilters",e[5]),y(n,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(e,t){P(e,n,t)},p(e,t){4096&t[0]&&y(n,"clientstyling",e[12]),8192&t[0]&&y(n,"clientstylingurl",e[13]),32&t[0]&&y(n,"activefilters",e[5])},d(e){e&&A(n)}}}function mo(e){let n;return{c(){y(n=D("casino-tournaments-list-controller"),"clientstyling",e[12]),y(n,"clientstylingurl",e[13]),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"numberoftournaments",e[4]),y(n,"endpoint",e[2]),y(n,"loginurl",e[8]),y(n,"loginevent",e[6]),y(n,"registerurl",e[9]),y(n,"registerevent",e[7]),y(n,"lang",e[3]),y(n,"currency",e[10]),y(n,"keepbrowsercontext",e[11]),y(n,"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, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){P(e,n,t)},p(e,t){4096&t[0]&&y(n,"clientstyling",e[12]),8192&t[0]&&y(n,"clientstylingurl",e[13]),1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),16&t[0]&&y(n,"numberoftournaments",e[4]),4&t[0]&&y(n,"endpoint",e[2]),256&t[0]&&y(n,"loginurl",e[8]),64&t[0]&&y(n,"loginevent",e[6]),512&t[0]&&y(n,"registerurl",e[9]),128&t[0]&&y(n,"registerevent",e[7]),8&t[0]&&y(n,"lang",e[3]),1024&t[0]&&y(n,"currency",e[10]),2048&t[0]&&y(n,"keepbrowsercontext",e[11])},d(e){e&&A(n)}}}function fo(e){let n;function r(e){return e[17]?go:po}let i=r(e),o=i(e);return{c(){o.c(),n=Y()},m(e,t){o.m(e,t),P(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),(o=i(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&A(n)}}}function po(e){let n,r,i=e[21]("tournamentsController.noTournaments")+"";return{c(){n=D("p"),r=O(i),N(n,"class","NoTournaments"),N(n,"part","NoTournaments")},m(e,t){P(e,n,t),$(n,r)},p(e,t){2097152&t[0]&&i!==(i=e[21]("tournamentsController.noTournaments")+"")&&R(r,i)},d(e){e&&A(n)}}}function go(e){let n,r,i=e[21]("tournamentsController.loading")+"";return{c(){n=D("p"),r=O(i),N(n,"class","LoadingMessage"),N(n,"part","LoadingMessage")},m(e,t){P(e,n,t),$(n,r)},p(e,t){2097152&t[0]&&i!==(i=e[21]("tournamentsController.loading")+"")&&R(r,i)},d(e){e&&A(n)}}}function yo(n){let r,i,o,s,a,l,u=n[21]("tournamentsController.showMore")+"";return{c(){r=D("div"),i=D("div"),o=D("button"),s=O(u),N(o,"class","ShowMoreButton"),N(o,"part","ShowMoreButton"),N(o,"title","Show More"),N(i,"class","CenterButton"),N(i,"part","CenterButton"),N(r,"class","ThirdRow"),N(r,"part","ThirdRow")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(o,s),a||(l=B(o,"click",n[32]),a=!0)},p(e,t){2097152&t[0]&&u!==(u=e[21]("tournamentsController.showMore")+"")&&R(s,u)},d(e){e&&A(r),a=!1,l()}}}function bo(n){let r;function i(e){return e[15]?co:uo}let o=i(n),s=o(n);return{c(){r=D("div"),s.c(),this.c=v},m(e,t){P(e,r,t),s.m(r,null),n[33](r)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s.d(1),(s=o(e))&&(s.c(),s.m(r,null)))},i:v,o:v,d(e){e&&A(r),s.d(),n[33](null)}}}let vo="All,Scheduled,Ongoing,Finished";function wo(t,e,s){let n;se(t,Or,e=>s(21,n=e));let r,a,i,{session:l=""}=e,{userid:o=""}=e,{endpoint:u=""}=e,{lang:c="en"}=e,{translationurl:h=""}=e,{numberoftournaments:d="6"}=e,{showmorestep:m="2"}=e,{filters:f="All"}=e,{loginevent:N=""}=e,{registerevent:R=""}=e,{loginurl:H=""}=e,{registerurl:L=""}=e,{currency:I="EUR"}=e,{keepbrowsercontext:z="false"}=e,{sorttype:p=""}=e,{sortorder:g=""}=e,{starttimeafter:y=""}=e,{showanonymoustournaments:b="true"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{delaybeforeload:_=1e3}=e,T=!1,S="",x=!1,E="",U=window.navigator.userAgent,k=!0,j=!1,C=!1,M=0,$=!1,P=6,A=!0,D=[],O=!1;var Y,G;({withLocale:Y,translations:G}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(nr.set(G),oe.set(Y))}),Object.keys(Rr).forEach(e=>{Br(e,Rr[e])});const W=e=>{e.data&&"UserSessionID"===e.data.type&&(x=!0,s(30,E=e.data.session),e.data.userid,F(u,0,P)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(D=e.data.filters,F(u,0,P))},F=async(e,t,n)=>{s(17,k=!0),s(19,M=0);const r=await J(e,t,n);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)},50),s(17,k=!1)},V=()=>{var e=new Date;return y?e.setDate(e.getDate()-Number(y)):e.setMonth(e.getMonth()-1),e.toISOString().substring(0,10)},J=async(e,t,n)=>{let r=new URL(e+"/v1/tournaments"),i=new Headers;r.searchParams.append("pagination",`offset=${t},limit=`+n),r.searchParams.append("sortField","StartTime"),r.searchParams.append("sortOrder",g||"desc"),r.searchParams.append("language",c);const o={StartTimeAfter:V()};lo(l)||"false"!==b||(o.tags="no-role-set"),0<D.length&&"All"!=D[0]&&(o.state=D.map(e=>{return"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed"}).join("|"));e=Object.keys(o).map(e=>e+"="+o[e]).join(",");return r.searchParams.append("filter",e),r.searchParams.append("platform",Fr(U)),p&&r.searchParams.append("sortType",p),x&&i.append("X-SessionID",E),fetch(r,{method:"GET",headers:i,cache:"no-cache"}).then(e=>e.json()).then(e=>(a=r.searchParams.toString(),s(19,M=e.total),s(20,A=P>=M),C||Z(),e))},B=e=>{if("message"==e.type){var t=e.data;if(t)try{var n,r=JSON.parse(t);r&&r.item&&(n=r.item,"TournamentUpdate"==r.messageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentRemove"==r.messageType)&&window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)}catch(e){console.error(e)}}},Z=()=>{C=!0,setTimeout(()=>{C=!1},1e3),i&&(i.removeEventListener("message",B),i.close());var e=u+"/v1/tournaments/updates?"+a;void 0!==(i=new Hr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":l}}))&&i.addEventListener("message",B)},X=async()=>{var e=P,t=parseInt(m,10),n=(P+=t,window.postMessage({type:"TournamentsPagination",offset:0,limit:P},window.location.href),u);n=await J(n,e,t),window.postMessage({type:"TournamentListShowMore",tournamentList:n.items},window.location.href),await 0,P>=M&&s(20,A=!0)},K=()=>{if(!$)return!1;u||(s(16,S="Endpoint is missing! Please provide a valid endpointURL."),s(15,T=!0),console.error(S)),c&&2==c.length||(s(16,S="Language is missing! Please provide a valid language (alpha2code)"),s(15,T=!0),console.error(S)),T||(P=parseInt(d,10),Nr(c),F(u,0,P))},q=async()=>{O||(O=!0,await K(),O=!1)};return ae(()=>(setTimeout(()=>{s(31,$=!0)},_),window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W),i&&(i.removeEventListener("message",B),i.close())})),t.$$set=e=>{"session"in e&&s(0,l=e.session),"userid"in e&&s(1,o=e.userid),"endpoint"in e&&s(2,u=e.endpoint),"lang"in e&&s(3,c=e.lang),"translationurl"in e&&s(23,h=e.translationurl),"numberoftournaments"in e&&s(4,d=e.numberoftournaments),"showmorestep"in e&&s(24,m=e.showmorestep),"filters"in e&&s(5,f=e.filters),"loginevent"in e&&s(6,N=e.loginevent),"registerevent"in e&&s(7,R=e.registerevent),"loginurl"in e&&s(8,H=e.loginurl),"registerurl"in e&&s(9,L=e.registerurl),"currency"in e&&s(10,I=e.currency),"keepbrowsercontext"in e&&s(11,z=e.keepbrowsercontext),"sorttype"in e&&s(25,p=e.sorttype),"sortorder"in e&&s(26,g=e.sortorder),"starttimeafter"in e&&s(27,y=e.starttimeafter),"showanonymoustournaments"in e&&s(28,b=e.showanonymoustournaments),"clientstyling"in e&&s(12,v=e.clientstyling),"clientstylingurl"in e&&s(13,w=e.clientstylingurl),"delaybeforeload"in e&&s(29,_=e.delaybeforeload)},t.$$.update=()=>{if(20480&t.$$.dirty[0]&&r&&v&&((e=document.createElement("style")).innerHTML=v,r.appendChild(e)),24576&t.$$.dirty[0]&&r&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;t.$$.dirty[0],32&t.$$.dirty[0]&&f&&(D=f.split(","),s(18,j=!0)),8&t.$$.dirty[0]&&c&&Nr(c),8388608&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Br(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[1]&&$&&K(),1&t.$$.dirty[0]&&(""===l||l)&&(lo(l)?(x=!0,s(30,E=l)):(x=!1,s(30,E=""))),1073741824&t.$$.dirty[0]&&(""===E||E)&&q(),285212700&t.$$.dirty[0]&&u&&d&&m&&c&&b&&q()},[l,o,u,c,d,f,N,R,H,L,I,z,v,w,r,T,S,k,j,M,A,n,X,h,m,p,g,y,b,_,E,$,()=>X(),function(e){ie[e?"unshift":"push"](()=>{r=e,s(14,r)})}]}class _o extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emfe-w-color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},wo,bo,n,{session:0,userid:1,endpoint:2,lang:3,translationurl:23,numberoftournaments:4,showmorestep:24,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,keepbrowsercontext:11,sorttype:25,sortorder:26,starttimeafter:27,showanonymoustournaments:28,clientstyling:12,clientstylingurl:13,delaybeforeload:29},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","lang","translationurl","numberoftournaments","showmorestep","filters","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","sorttype","sortorder","starttimeafter","showanonymoustournaments","clientstyling","clientstylingurl","delaybeforeload"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),d()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),d()}get showmorestep(){return this.$$.ctx[24]}set showmorestep(e){this.$$set({showmorestep:e}),d()}get filters(){return this.$$.ctx[5]}set filters(e){this.$$set({filters:e}),d()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[10]}set currency(e){this.$$set({currency:e}),d()}get keepbrowsercontext(){return this.$$.ctx[11]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get sorttype(){return this.$$.ctx[25]}set sorttype(e){this.$$set({sorttype:e}),d()}get sortorder(){return this.$$.ctx[26]}set sortorder(e){this.$$set({sortorder:e}),d()}get starttimeafter(){return this.$$.ctx[27]}set starttimeafter(e){this.$$set({starttimeafter:e}),d()}get showanonymoustournaments(){return this.$$.ctx[28]}set showanonymoustournaments(e){this.$$set({showanonymoustournaments:e}),d()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get delaybeforeload(){return this.$$.ctx[29]}set delaybeforeload(e){this.$$set({delaybeforeload:e}),d()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",_o),_o});
|
|
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 v(){}function x(e){return e()}function E(){return Object.create(null)}function M(e){e.forEach(x)}function k(e){return"function"==typeof e}function n(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let C,H,L;function I(e,t){return(C=C||document.createElement("a")).href=t,e===C.href}function z(e,...t){if(null==e)return v;const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function se(e,t,n){e.$$.on_destroy.push(z(t,n))}function U(e){return e&&k(e.destroy)?e.destroy:v}function $(e,t){e.appendChild(t)}function P(e,t,n){e.insertBefore(t,n||null)}function A(e){e.parentNode&&e.parentNode.removeChild(e)}function j(t,n){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(n)}function D(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function O(e){return document.createTextNode(e)}function F(){return O(" ")}function Y(){return O("")}function B(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function N(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function y(e,t,n){t in e?e[t]="boolean"==typeof e[t]&&""===n||n:N(e,t,n)}function R(e,t){e.data!==(t=""+t)&&(e.data=t)}function G(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function W(e,t,n){e.classList[n?"add":"remove"](t)}function V(e){var t={};for(const n of e)t[n.name]=n.value;return t}function J(e){L=e}function ae(e){!function(){if(L)return L;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const Z=[],ie=[];let X=[];const K=[],q=Promise.resolve();let Q=!1;function ee(e){X.push(e)}const te=new Set;let ne=0;function d(){if(0===ne){const r=L;do{try{for(;ne<Z.length;){const r=Z[ne];ne++,J(r),e=t=void 0;var e,t=r.$$;null!==t.fragment&&(t.update(),M(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(ee))}}catch(r){throw Z.length=0,ne=0,r}for(J(null),Z.length=0,ne=0;ie.length;)ie.pop()();for(let e=0;e<X.length;e+=1){var n=X[e];te.has(n)||(te.add(n),n())}}while(X.length=0,Z.length);for(;K.length;)K.pop()();Q=!1,te.clear(),J(r)}}const re=new Set;function le(r,e,t,n,i,o,s,a=[-1]){var l=L;J(r);const u=r.$$={fragment:null,ctx:[],props:o,update:v,not_equal:i,bound:E(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:E(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(r,e.props||{},(e,t,...n)=>{var n=n.length?n[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=n)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](n),c)&&(n=e,-1===(e=r).$$.dirty[0]&&(Z.push(e),Q||(Q=!0,q.then(d)),e.$$.dirty.fill(0)),e.$$.dirty[n/31|0]|=1<<n%31),t}):[],u.update(),c=!0,M(u.before_update),u.fragment=!!n&&n(u.ctx),e.target){if(e.hydrate){o=e.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(A)}else u.fragment&&u.fragment.c();e.intro&&(a=r.$$.fragment)&&a.i&&(re.delete(a),a.i(void 0));var h=r,s=e.target,t=e.anchor,n=e.customElement,{fragment:o,after_update:a}=h.$$;o&&o.m(s,t),n||ee(()=>{var e=h.$$.on_mount.map(x).filter(k);h.$$.on_destroy?h.$$.on_destroy.push(...e):M(e),h.$$.on_mount=[]}),a.forEach(ee),d()}J(l)}let e;"function"==typeof HTMLElement&&(e=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(x).filter(k);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,n){this[e]=n}disconnectedCallback(){M(this.$$.on_disconnect)}$destroy(){var e=this,t=1;if(null!==(e=e.$$).fragment){{var n=e.after_update;const r=[],i=[];X.forEach(e=>(-1===n.indexOf(e)?r:i).push(e)),i.forEach(e=>e()),X=r}M(e.on_destroy),e.fragment&&e.fragment.d(t),e.on_destroy=e.fragment=null,e.ctx=[]}this.$destroy=v}$on(e,t){if(!k(t))return v;const n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),()=>{var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var ue,ce,l="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},he="URLSearchParams"in l,de="Symbol"in l&&"iterator"in Symbol,me="FileReader"in l&&"Blob"in l&&function(){try{return new Blob,!0}catch(e){return!1}}(),fe="FormData"in l,pe="ArrayBuffer"in l;function ge(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 ye(e){return e="string"!=typeof e?String(e):e}function be(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return de&&(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){if(2!=e.length)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+e.length);this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ve(e){if(!e._noBody)return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function we(n){return new Promise(function(e,t){n.onload=function(){e(n.result)},n.onerror=function(){t(n.error)}})}function _e(e){var t=new FileReader,n=we(t);return t.readAsArrayBuffer(e),n}function Te(e){var t;return e.slice?e.slice(0):((t=new Uint8Array(e.byteLength)).set(new Uint8Array(e)),t.buffer)}function Se(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:me&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fe&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:he&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():pe&&me&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Te(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):pe&&(ArrayBuffer.prototype.isPrototypeOf(e)||ce(e))?this._bodyArrayBuffer=Te(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,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):he&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},me&&(this.blob=function(){var e=ve(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(){if(this._bodyArrayBuffer)return ve(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer));if(me)return this.blob().then(_e);throw new Error("could not read as ArrayBuffer")},this.text=function(){var e,t,n,r=ve(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=we(e=new FileReader),n=(n=/charset=([A-Za-z0-9_-]+)/.exec(r.type))?n[1]:"utf-8",e.readAsText(r,n),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fe&&(this.formData=function(){return this.text().then(ke)}),this.json=function(){return this.text().then(JSON.parse)},this}pe&&(ue=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ce=ArrayBuffer.isView||function(e){return e&&-1<ue.indexOf(Object.prototype.toString.call(e))}),u.prototype.append=function(e,t){e=ge(e),t=ye(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},u.prototype.delete=function(e){delete this.map[ge(e)]},u.prototype.get=function(e){return e=ge(e),this.has(e)?this.map[e]:null},u.prototype.has=function(e){return this.map.hasOwnProperty(ge(e))},u.prototype.set=function(e,t){this.map[ge(e)]=ye(t)},u.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},u.prototype.keys=function(){var n=[];return this.forEach(function(e,t){n.push(t)}),be(n)},u.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},u.prototype.entries=function(){var n=[];return this.forEach(function(e,t){n.push([t,e])}),be(n)},de&&(u.prototype[Symbol.iterator]=u.prototype.entries);var xe=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function Ee(e,t){if(!(this instanceof Ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r=(t=t||{}).body;if(e instanceof Ee){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,r||null==e._bodyInit||(r=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=(n=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(n)?n:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in l)return(new AbortController).signal}(),this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((n=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(n,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function ke(e){var n=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),n.append(decodeURIComponent(t),decodeURIComponent(e)))}),n}function c(e,t){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.status<200||599<this.status)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");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)}Ee.prototype.clone=function(){return new Ee(this,{body:this._bodyInit})},Se.call(Ee.prototype),Se.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:200,statusText:""});return e.status=0,e.type="error",e};var Ce=[301,302,303,307,308],Me=(c.redirect=function(e,t){if(-1===Ce.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},l.DOMException);try{new Me}catch(v){(Me=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),Me.prototype.constructor=Me}function $e(r,a){return new Promise(function(i,e){var o=new Ee(r,a);if(o.signal&&o.signal.aborted)return e(new Me("Aborted","AbortError"));var n,s=new XMLHttpRequest;function t(){s.abort()}s.onload=function(){var e,r,t={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 t=e.split(":"),n=t.shift().trim();if(n){t=t.join(":").trim();try{r.append(n,t)}catch(e){console.warn("Response "+e.message)}}}),r)},n=(o.url.startsWith("file://")&&(s.status<200||599<s.status)?t.status=200:t.status=s.status,t.url="responseURL"in s?s.responseURL:t.headers.get("X-Request-URL"),"response"in s?s.response:s.responseText);setTimeout(function(){i(new c(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 timed out"))},0)},s.onabort=function(){setTimeout(function(){e(new Me("Aborted","AbortError"))},0)},s.open(o.method,function(t){try{return""===t&&l.location.href?l.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?s.withCredentials=!0:"omit"===o.credentials&&(s.withCredentials=!1),"responseType"in s&&(me?s.responseType="blob":pe&&(s.responseType="arraybuffer")),a&&"object"==typeof a.headers&&!(a.headers instanceof u||l.Headers&&a.headers instanceof l.Headers)?(n=[],Object.getOwnPropertyNames(a.headers).forEach(function(e){n.push(ge(e)),s.setRequestHeader(e,ye(a.headers[e]))}),o.headers.forEach(function(e,t){-1===n.indexOf(t)&&s.setRequestHeader(t,e)})):o.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),o.signal&&(o.signal.addEventListener("abort",t),s.onreadystatechange=function(){4===s.readyState&&o.signal.removeEventListener("abort",t)}),s.send(void 0===o._bodyInit?null:o._bodyInit)})}$e.polyfill=!0,l.fetch||(l.fetch=$e,l.Headers=u,l.Request=Ee,l.Response=c);var Pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Ae(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return Dn(null==t&&n.path)}},n.exports),n.exports}function Dn(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}self.fetch.bind(self);var De=function(e,t){return(De=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}De(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Fe(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Be(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function Ne(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Re(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 He=Re(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 Le(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,n,r,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=Fe(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(e){i=e instanceof He?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Fe(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{je(c)}catch(e){i=null!=i?i:[],e instanceof He?i=Ne(Ne([],Be(i)),Be(e.errors)):i.push(e)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}}if(i)throw new He(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)je(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&Le(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Le(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((o=new r).closed=!0,o);var Ie=r,ze=Ie.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Ue(e){return e instanceof Ie||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function je(e){h(e)?e():e.unsubscribe()}var Ye=void 0,Ge=!1,We=!1,Ve={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=Ve.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Ne([e,t],Be(n))):setTimeout.apply(void 0,Ne([e,t],Be(n)))},clearTimeout:function(e){var t=Ve.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Je(){}var Ze=null;function Xe(e){if(Ge){var t=!Ze;if(t&&(Ze={errorThrown:!1,error:null}),e(),t){var t=Ze,n=t.errorThrown,t=t.error;if(Ze=null,n)throw t}}else e()}Oe(i,Ke=Ie),i.create=function(e,t,n){return new rt(e,t,n)},i.prototype.next=function(e){this.isStopped||this._next(e)},i.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},i.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},i.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ke.prototype.unsubscribe.call(this),this.destination=null)},i.prototype._next=function(e){this.destination.next(e)},i.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},i.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Ke,qe=i,Qe=Function.prototype.bind;function i(e){var t=Ke.call(this)||this;return t.isStopped=!1,e?Ue(t.destination=e)&&e.add(t):t.destination=at,t}function et(e,t){return Qe.call(e,t)}ot.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){st(e)}},ot.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){st(e)}else st(e)},ot.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){st(e)}};var tt,nt=ot,rt=(Oe(it,tt=qe),it);function it(e,t,n){var r=tt.call(this)||this,n=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=n?n:void 0}:r&&We?((t=Object.create(e)).unsubscribe=function(){return r.unsubscribe()},{next:e.next&&et(e.next,t),error:e.error&&et(e.error,t),complete:e.complete&&et(e.complete,t)}):e;return r.destination=new nt(n),r}function ot(e){this.partialObserver=e}function st(e){var t=e;Ve.setTimeout(function(){throw t})}var at={closed:!0,next:Je,error:function(e){throw e},complete:Je},o="function"==typeof Symbol&&Symbol.observable||"@@observable";s.prototype.lift=function(e){var t=new s;return t.source=this,t.operator=e,t},s.prototype.subscribe=function(e,t,n){var r,i=this,o=(r=e)&&r instanceof qe||r&&h(r.next)&&h(r.error)&&h(r.complete)&&Ue(r)?e:new rt(e,t,n);return Xe(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},s.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},s.prototype.forEach=function(r,e){var i=this;return new(e=ut(e))(function(e,t){var n=new rt({next:function(e){try{r(e)}catch(e){t(e),n.unsubscribe()}},error:t,complete:e});i.subscribe(n)})},s.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},s.prototype[o]=function(){return this},s.prototype.pipe=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return(0===(t=e).length?function(e){return e}:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},s.prototype.toPromise=function(e){var r=this;return new(e=ut(e))(function(e,t){var n;r.subscribe(function(e){return n=e},function(e){return t(e)},function(){return e(n)})})},s.create=function(e){return new s(e)};var lt=s;function s(e){e&&(this._subscribe=e)}function ut(e){return null!=(e=null!=e?e:Ye)?e:Promise}var ct,ht,dt,mt=Re(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),o=(Oe(a,dt=lt),a.prototype.lift=function(e){var t=new ft(this,this);return t.operator=e,t},a.prototype._throwIfClosed=function(){if(this.closed)throw new mt},a.prototype.next=function(i){var o=this;Xe(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var n=Fe(o.currentObservers),r=n.next();!r.done;r=n.next())r.value.next(i)}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},a.prototype.error=function(t){var n=this;Xe(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var e=n.observers;e.length;)e.shift().error(t)}})},a.prototype.complete=function(){var t=this;Xe(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},a.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(a.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),a.prototype._trySubscribe=function(e){return this._throwIfClosed(),dt.prototype._trySubscribe.call(this,e)},a.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},a.prototype._innerSubscribe=function(e){var t=this,n=this.hasError,r=this.isStopped,i=this.observers;return n||r?ze:(this.currentObservers=null,i.push(e),new Ie(function(){t.currentObservers=null,Le(i,e)}))},a.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,n=this.thrownError,r=this.isStopped;t?e.error(n):r&&e.complete()},a.prototype.asObservable=function(){var e=new lt;return e.source=this,e},a.create=function(e,t){return new ft(e,t)},a),ft=(Oe(bt,ht=o),bt.prototype.next=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.next)&&n.call(t,e)},bt.prototype.error=function(e){var t,n;null!=(n=null==(t=this.destination)?void 0:t.error)&&n.call(t,e)},bt.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},bt.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:ze},bt),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},gt=(Oe(yt,ct=o),yt.prototype.next=function(e){var t=this,n=t.isStopped,r=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;n||(r.push(e),i)||r.push(o.now()+t),this._trimBuffer(),ct.prototype.next.call(this,e)},yt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),n=this._infiniteTimeWindow,r=this._buffer.slice(),i=0;i<r.length&&!e.closed;i+=n?1:2)e.next(r[i]);return this._checkFinalizedStatuses(e),t},yt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,n=this._buffer,r=this._infiniteTimeWindow,i=(r?1:2)*e;if(e<1/0&&i<n.length&&n.splice(0,n.length-i),!r){for(var o=t.now(),s=0,a=1;a<n.length&&n[a]<=o;a+=2)s=a;s&&n.splice(0,s+1)}},yt);function yt(e,t,n){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===n&&(n=pt);var r=ct.call(this)||this;return r._bufferSize=e,r._windowTime=t,r._timestampProvider=n,r._buffer=[],r._infiniteTimeWindow=!0,r._infiniteTimeWindow=t===1/0,r._bufferSize=Math.max(1,e),r._windowTime=Math.max(1,t),r}function bt(e,t){var n=ht.call(this)||this;return n.destination=e,n.source=t,n}function a(){var e=dt.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let vt=[],wt={};const _t=[];function Tt(r,i=v){let o;const s=new Set;function a(e){if(n(r,e)&&(r=e,o)){const e=!_t.length;for(const e of s)e[1](),_t.push(e,r);if(e){for(let e=0;e<_t.length;e+=2)_t[e][0](_t[e+1]);_t.length=0}}}return{set:a,update:function(e){a(e(r))},subscribe:function(e,t=v){const n=[e,t];return s.add(n),1===s.size&&(o=i(a)||v),e(r),()=>{s.delete(n),0===s.size&&o&&(o(),o=null)}}}}function St(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:Tt(t,t=>{let n=!1;const r=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?r[0]:r,t),c?t(e):o=k(e)?e:v)},e=u.map((e,t)=>z(e,e=>{r[t]=e,i&=~(1<<t),n&&s()},()=>{i|=1<<t}));return n=!0,s(),function(){M(e),o(),n=!1}}).subscribe}}function xt(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e)))||"[object Date]"===t||e.$$typeof===Et);var t}var Et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function kt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?At(Array.isArray(e)?[]:{},e,t):e}function Ct(e,t,n){return e.concat(t).map(function(e){return kt(e,n)})}function Mt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]));var t}function $t(e,t){try{return t in e}catch(e){return!1}}function Pt(r,i,o){var s={};return o.isMergeableObject(r)&&Mt(r).forEach(function(e){s[e]=kt(r[e],o)}),Mt(i).forEach(function(e){var t,n;(!$t(t=r,n=e)||Object.hasOwnProperty.call(t,n)&&Object.propertyIsEnumerable.call(t,n))&&($t(r,e)&&o.isMergeableObject(i[e])?s[e]=((t=o).customMerge&&"function"==typeof(t=t.customMerge(e))?t:At)(r[e],i[e],o):s[e]=kt(i[e],o))}),s}function At(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||Ct,n.isMergeableObject=n.isMergeableObject||xt,n.cloneUnlessOtherwiseSpecified=kt;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):Pt(e,t,n):kt(t,n)}At.all=function(e,n){if(Array.isArray(e))return e.reduce(function(e,t){return At(e,t,n)},{});throw new Error("first argument should be an array")};var Dt=At,Ot=function(e,t){return(Ot=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}))(e,t)};function Ft(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}Ot(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var p,b,Bt,g=function(){return(g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function Nt(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||((r=r||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}function Rt(e){return e.type===b.literal}function Ht(e){return e.type===b.number}function Lt(e){return e.type===b.date}function It(e){return e.type===b.time}function zt(e){return e.type===b.select}function Ut(e){return e.type===b.plural}function jt(e){return e.type===b.tag}function Yt(e){return e&&"object"==typeof e&&e.type===Bt.number}function Gt(e){return e&&"object"==typeof e&&e.type===Bt.dateTime}(o=p=p||{})[o.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",o[o.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",o[o.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",o[o.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",o[o.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",o[o.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",o[o.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",o[o.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",o[o.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",o[o.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",o[o.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",o[o.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",o[o.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",o[o.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",o[o.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",o[o.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",o[o.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",o[o.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",o[o.INVALID_TAG=23]="INVALID_TAG",o[o.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",o[o.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",o[o.UNCLOSED_TAG=27]="UNCLOSED_TAG",(o=b=b||{})[o.literal=0]="literal",o[o.argument=1]="argument",o[o.number=2]="number",o[o.date=3]="date",o[o.time=4]="time",o[o.select=5]="select",o[o.plural=6]="plural",o[o.pound=7]="pound",o[o.tag=8]="tag",(o=Bt=Bt||{})[o.number=0]="number",o[o.dateTime=1]="dateTime";var o=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wt=/(?:[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 Vt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Zt=/^(@+)?(\+|#+)?[rs]?$/g,Xt=/(\*)(0+)|(#+)(0+)|(0+)/g,Kt=/^(0+)$/;function qt(e){var r={};return"r"===e[e.length-1]?r.roundingPriority="morePrecision":"s"===e[e.length-1]&&(r.roundingPriority="lessPrecision"),e.replace(Zt,function(e,t,n){return"string"!=typeof n?(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length):"+"===n?r.minimumSignificantDigits=t.length:"#"===t[0]?r.maximumSignificantDigits=t.length:(r.minimumSignificantDigits=t.length,r.maximumSignificantDigits=t.length+("string"==typeof n?n.length:0)),""}),r}function Qt(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 en(e){return Qt(e)||{}}function tn(e){for(var s={},t=0,n=e;t<n.length;t++){var r,i=n[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=g(g(g({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return g(g({},e),en(t))},{}));continue;case"engineering":s=g(g(g({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return g(g({},e),en(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.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(Xt,function(e,t,n,r,i,o){if(t)s.minimumIntegerDigits=n.length;else{if(r&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Kt.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Jt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Jt,function(e,t,n,r,i,o){return"*"===n?s.minimumFractionDigits=t.length:r&&"#"===r[0]?s.maximumFractionDigits=r.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""});var o=i.options[0];"w"===o?s=g(g({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=g(g({},s),qt(o)))}else Zt.test(i.stem)?s=g(g({},s),qt(i.stem)):((o=Qt(i.stem))&&(s=g(g({},s),o)),(r=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 n=e.slice(0,2);if("+!"===n?(t.signDisplay="always",e=e.slice(2)):"+?"===n&&(t.signDisplay="exceptZero",e=e.slice(2)),!Kt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=g(g({},s),r)))}return s}var nn={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 rn=new RegExp("^".concat(o.source,"*")),on=new RegExp("".concat(o.source,"*$"));function w(e,t){return{start:e,end:t}}var o=!!String.prototype.startsWith,sn=!!String.fromCodePoint,an=!!Object.fromEntries,ln=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,cn=!!String.prototype.trimEnd,hn=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},dn=!0;try{dn="a"===(null==(Fn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Fn[0])}catch(v){dn=!1}var mn,fn,pn=o?function(e,t,n){return e.startsWith(t,n)}:function(e,t,n){return e.slice(n,n+t.length)===t},gn=sn?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n,r="",i=e.length,o=0;o<i;){if(1114111<(n=e[o++]))throw RangeError(n+" is not a valid code point");r+=n<65536?String.fromCharCode(n):String.fromCharCode(55296+((n-=65536)>>10),n%1024+56320)}return r},yn=an?Object.fromEntries:function(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n],o=i[0],i=i[1];t[o]=i}return t},bn=ln?function(e,t){return e.codePointAt(t)}:function(e,t){var n,r=e.length;if(!(t<0||r<=t))return(n=e.charCodeAt(t))<55296||56319<n||t+1===r||(r=e.charCodeAt(t+1))<56320||57343<r?n:r-56320+(n-55296<<10)+65536},vn=un?function(e){return e.trimStart()}:function(e){return e.replace(rn,"")},wn=cn?function(e){return e.trimEnd()}:function(e){return e.replace(on,"")};function _n(e,t){return new RegExp(e,t)}fn=dn?(mn=_n("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return mn.lastIndex=t,null!=(t=mn.exec(e)[1])?t:""}):function(e,t){for(var n,r=[];;){var i=bn(e,t);if(void 0===i||xn(i)||33<=(n=i)&&n<=35||36===n||37<=n&&n<=39||40===n||41===n||42===n||43===n||44===n||45===n||46<=n&&n<=47||58<=n&&n<=59||60<=n&&n<=62||63<=n&&n<=64||91===n||92===n||93===n||94===n||96===n||123===n||124===n||125===n||126===n||161===n||162<=n&&n<=165||166===n||167===n||169===n||171===n||172===n||174===n||176===n||177===n||182===n||187===n||191===n||215===n||247===n||8208<=n&&n<=8213||8214<=n&&n<=8215||8216===n||8217===n||8218===n||8219<=n&&n<=8220||8221===n||8222===n||8223===n||8224<=n&&n<=8231||8240<=n&&n<=8248||8249===n||8250===n||8251<=n&&n<=8254||8257<=n&&n<=8259||8260===n||8261===n||8262===n||8263<=n&&n<=8273||8274===n||8275===n||8277<=n&&n<=8286||8592<=n&&n<=8596||8597<=n&&n<=8601||8602<=n&&n<=8603||8604<=n&&n<=8607||8608===n||8609<=n&&n<=8610||8611===n||8612<=n&&n<=8613||8614===n||8615<=n&&n<=8621||8622===n||8623<=n&&n<=8653||8654<=n&&n<=8655||8656<=n&&n<=8657||8658===n||8659===n||8660===n||8661<=n&&n<=8691||8692<=n&&n<=8959||8960<=n&&n<=8967||8968===n||8969===n||8970===n||8971===n||8972<=n&&n<=8991||8992<=n&&n<=8993||8994<=n&&n<=9e3||9001===n||9002===n||9003<=n&&n<=9083||9084===n||9085<=n&&n<=9114||9115<=n&&n<=9139||9140<=n&&n<=9179||9180<=n&&n<=9185||9186<=n&&n<=9254||9255<=n&&n<=9279||9280<=n&&n<=9290||9291<=n&&n<=9311||9472<=n&&n<=9654||9655===n||9656<=n&&n<=9664||9665===n||9666<=n&&n<=9719||9720<=n&&n<=9727||9728<=n&&n<=9838||9839===n||9840<=n&&n<=10087||10088===n||10089===n||10090===n||10091===n||10092===n||10093===n||10094===n||10095===n||10096===n||10097===n||10098===n||10099===n||10100===n||10101===n||10132<=n&&n<=10175||10176<=n&&n<=10180||10181===n||10182===n||10183<=n&&n<=10213||10214===n||10215===n||10216===n||10217===n||10218===n||10219===n||10220===n||10221===n||10222===n||10223===n||10224<=n&&n<=10239||10240<=n&&n<=10495||10496<=n&&n<=10626||10627===n||10628===n||10629===n||10630===n||10631===n||10632===n||10633===n||10634===n||10635===n||10636===n||10637===n||10638===n||10639===n||10640===n||10641===n||10642===n||10643===n||10644===n||10645===n||10646===n||10647===n||10648===n||10649<=n&&n<=10711||10712===n||10713===n||10714===n||10715===n||10716<=n&&n<=10747||10748===n||10749===n||10750<=n&&n<=11007||11008<=n&&n<=11055||11056<=n&&n<=11076||11077<=n&&n<=11078||11079<=n&&n<=11084||11085<=n&&n<=11123||11124<=n&&n<=11125||11126<=n&&n<=11157||11158===n||11159<=n&&n<=11263||11776<=n&&n<=11777||11778===n||11779===n||11780===n||11781===n||11782<=n&&n<=11784||11785===n||11786===n||11787===n||11788===n||11789===n||11790<=n&&n<=11798||11799===n||11800<=n&&n<=11801||11802===n||11803===n||11804===n||11805===n||11806<=n&&n<=11807||11808===n||11809===n||11810===n||11811===n||11812===n||11813===n||11814===n||11815===n||11816===n||11817===n||11818<=n&&n<=11822||11823===n||11824<=n&&n<=11833||11834<=n&&n<=11835||11836<=n&&n<=11839||11840===n||11841===n||11842===n||11843<=n&&n<=11855||11856<=n&&n<=11857||11858===n||11859<=n&&n<=11903||12289<=n&&n<=12291||12296===n||12297===n||12298===n||12299===n||12300===n||12301===n||12302===n||12303===n||12304===n||12305===n||12306<=n&&n<=12307||12308===n||12309===n||12310===n||12311===n||12312===n||12313===n||12314===n||12315===n||12316===n||12317===n||12318<=n&&n<=12319||12320===n||12336===n||64830===n||64831===n||65093<=n&&n<=65094)break;r.push(i),t+=65536<=i?2:1}return gn.apply(void 0,r)};m.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},m.prototype.parseMessage=function(e,t,n){for(var r=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,n)).err)return i;r.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(n)break;return this.error(p.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Sn(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i}else if((i=this.parseLiteral(e,t)).err)return i;r.push(i.val)}else{o=this.clonePosition();this.bump(),r.push({type:b.pound,location:w(o,this.clonePosition())})}}}return{val:r,err:null}},m.prototype.parseTag=function(e,t){var n,r=this.clonePosition(),i=(this.bump(),this.parseTagName());return this.bumpSpace(),this.bumpIf("/>")?{val:{type:b.literal,value:"<".concat(i,"/>"),location:w(r,this.clonePosition())},err:null}:this.bumpIf(">")?(e=this.parseMessage(e+1,t,!0)).err?e:(t=e.val,e=this.clonePosition(),this.bumpIf("</")?this.isEOF()||!Sn(this.char())?this.error(p.INVALID_TAG,w(e,this.clonePosition())):(n=this.clonePosition(),i!==this.parseTagName()?this.error(p.UNMATCHED_CLOSING_TAG,w(n,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:i,children:t,location:w(r,this.clonePosition())},err:null}:this.error(p.INVALID_TAG,w(e,this.clonePosition())))):this.error(p.UNCLOSED_TAG,w(r,this.clonePosition()))):this.error(p.INVALID_TAG,w(r,this.clonePosition()))},m.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())},m.prototype.parseLiteral=function(e,t){for(var n=this.clonePosition(),r="";;){var i=this.tryParseQuote(t);if(i)r+=i;else{i=this.tryParseUnquoted(e,t);if(i)r+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;r+=i}}}n=w(n,this.clonePosition());return{val:{type:b.literal,value:r,location:n},err:null}},m.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(Sn(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},m.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 n=this.char();if(39===n){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(n);this.bump()}return gn.apply(void 0,t)},m.prototype.tryParseUnquoted=function(e,t){var n;return this.isEOF()||60===(n=this.char())||123===n||35===n&&("plural"===t||"selectordinal"===t)||125===n&&0<e?null:(this.bump(),gn(n))},m.prototype.parseArgument=function(e,t){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(125===this.char())return this.bump(),this.error(p.EMPTY_ARGUMENT,w(n,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:r,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(p.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(e,t,r,n);default:return this.error(p.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},m.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),n=fn(this.message,t),t=t+n.length;return this.bumpTo(t),{value:n,location:w(e,this.clonePosition())}},m.prototype.parseArgumentOptions=function(e,t,n,r){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(p.EXPECT_ARGUMENT_TYPE,w(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(d=wn(h.val)).length)return this.error(p.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:w(u,this.clonePosition())}}return(u=this.tryParseArgumentClose(r)).err?u:(m=w(r,this.clonePosition()),l&&pn(null==l?void 0:l.style,"::",0)?(f=vn(l.style.slice(2)),"number"===s?(h=this.parseNumberSkeletonFromString(f,l.styleLocation)).err?h:{val:{type:b.number,value:n,location:m,style:h.val},err:null}:0===f.length?this.error(p.EXPECT_DATE_TIME_SKELETON,m):(c=f,this.locale&&(c=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if("j"===i){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,n=e.hourCycle;if(n=void 0===n&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:n)switch(n){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(n=e.language)&&(t=e.maximize().region),(nn[t||""]||nn[n||""]||nn["".concat(n,"-001")]||nn["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)n+="a";for(;0<s--;)n=l+n}else n+="J"===i?"H":i}return n}(f,this.locale)),d={type:Bt.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(Wt,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):{}},{val:{type:"date"===s?b.date:b.time,value:n,location:m,style:d},err:null})):{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:n,location:m,style:null!=(f=null==l?void 0:l.style)?f:null},err:null});case"plural":case"selectordinal":case"select":var c=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(p.EXPECT_SELECT_ARGUMENT_OPTIONS,w(c,g({},c)));this.bumpSpace();var h,d=this.parseIdentifierIfPossible(),m=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,p.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),d=this.parseIdentifierIfPossible(),m=h.val}var f,l=this.tryParsePluralOrSelectOptions(e,s,t,d);return l.err?l:(u=this.tryParseArgumentClose(r)).err?u:(f=w(r,this.clonePosition()),"select"===s?{val:{type:b.select,value:n,options:yn(l.val),location:f},err:null}:{val:{type:b.plural,value:n,options:yn(l.val),offset:m,pluralType:"plural"===s?"cardinal":"ordinal",location:f},err:null});default:return this.error(p.INVALID_ARGUMENT_TYPE,w(o,a))}},m.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})},m.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var n=this.clonePosition();if(!this.bumpUntil("'"))return this.error(p.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(n,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}},m.prototype.parseNumberSkeletonFromString=function(e,t){var n=[];try{n=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],n=0,r=e.split(Vt).filter(function(e){return 0<e.length});n<r.length;n++){var i=r[n].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(p.INVALID_NUMBER_SKELETON,t)}return{val:{type:Bt.number,tokens:n,location:t,parsedOptions:this.shouldParseSkeletons?tn(n):{}},err:null}},m.prototype.tryParsePluralOrSelectOptions=function(e,t,n,r){for(var i=!1,o=[],s=new Set,a=r.value,l=r.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(p.EXPECT_PLURAL_ARGUMENT_SELECTOR,p.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=w(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?p.DUPLICATE_SELECT_ARGUMENT_SELECTOR:p.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=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,n);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:w(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.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:o,err:null}},m.prototype.tryParseDecimalInteger=function(e,t){var n=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}r=w(r,this.clonePosition());return i?hn(o*=n)?{val:o,err:null}:this.error(t,r):this.error(e,r)},m.prototype.offset=function(){return this.position.offset},m.prototype.isEOF=function(){return this.offset()===this.message.length},m.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},m.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=bn(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},m.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},m.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))},m.prototype.bumpIf=function(e){if(pn(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},m.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)},m.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}},m.prototype.bumpSpace=function(){for(;!this.isEOF()&&xn(this.char());)this.bump()},m.prototype.peek=function(){var e,t;return!this.isEOF()&&(e=this.char(),t=this.offset(),null!=(t=this.message.charCodeAt(t+(65536<=e?2:1))))?t:null};var Tn=m;function m(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 Sn(e){return 97<=e&&e<=122||65<=e&&e<=90}function xn(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function En(e,t){t=g({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var n,e=new Tn(e,t).parse();if(e.err)throw(n=SyntaxError(p[e.err.kind])).location=e.err.location,n.originalMessage=e.err.message,n;return null!=t&&t.captureLocation||function n(e){e.forEach(function(e){if(delete e.location,zt(e)||Ut(e))for(var t in e.options)delete e.options[t].location,n(e.options[t].value);else Ht(e)&&Yt(e.style)||(Lt(e)||It(e))&&Gt(e.style)?delete e.style.location:jt(e)&&n(e.children)})}(e.val),e.val}function kn(e,t){var n=t&&t.cache?t.cache:Bn,r=t&&t.serializer?t.serializer:Pn;return(t&&t.strategy?t.strategy:function(e,t){return $n(e,this,1===e.length?Cn:Mn,t.cache.create(),t.serializer)})(e,{cache:n,serializer:r})}function Cn(e,t,n,r){var n=null==r||"number"==typeof r||"boolean"==typeof r?r:n(r),i=t.get(n);return void 0===i&&(i=e.call(this,r),t.set(n,i)),i}function Mn(e,t,n){var r=Array.prototype.slice.call(arguments,3),n=n(r),i=t.get(n);return void 0===i&&(i=e.apply(this,r),t.set(n,i)),i}function $n(e,t,n,r,i){return n.bind(t,e,r,i)}var Pn=function(){return JSON.stringify(arguments)};function An(){this.cache=Object.create(null)}An.prototype.get=function(e){return this.cache[e]},An.prototype.set=function(e,t){this.cache[e]=t};var On,Fn,Bn={create:function(){return new An}},Nn={variadic:function(e,t){return $n(e,this,Mn,t.cache.create(),t.serializer)},monadic:function(e,t){return $n(e,this,Cn,t.cache.create(),t.serializer)}};(Fn=On=On||{}).MISSING_VALUE="MISSING_VALUE",Fn.INVALID_VALUE="INVALID_VALUE",Fn.MISSING_INTL_API="MISSING_INTL_API";Ft(Jn,In=Error),Jn.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var _,Rn,Hn,Ln,In,zn=Jn,Un=(Ft(Vn,Ln=zn),Vn),jn=(Ft(Wn,Hn=zn),Wn),Yn=(Ft(Gn,Rn=zn),Gn);function Gn(e,t){return Rn.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),On.MISSING_VALUE,t)||this}function Wn(e,t,n){return Hn.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),On.INVALID_VALUE,n)||this}function Vn(e,t,n,r){return Ln.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(n).join('", "'),'"'),On.INVALID_VALUE,r)||this}function Jn(e,t,n){e=In.call(this,e)||this;return e.code=t,e.originalMessage=n,e}function Zn(e,t,n,r,i,o,s){if(1===e.length&&Rt(e[0]))return[{type:_.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Rt(c))a.push({type:_.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:_.literal,value:n.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Yn(h,s);h=i[h];if(c.type===b.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?_.literal:_.object,value:h});else if(Lt(c)){var d="string"==typeof c.style?r.date[c.style]:Gt(c.style)?c.style.parsedOptions:void 0;a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)})}else if(It(c))d="string"==typeof c.style?r.time[c.style]:Gt(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:_.literal,value:n.getDateTimeFormat(t,d).format(h)});else if(Ht(c))(d="string"==typeof c.style?r.number[c.style]:Yt(c.style)?c.style.parsedOptions:void 0)&&d.scale&&(h*=d.scale||1),a.push({type:_.literal,value:n.getNumberFormat(t,d).format(h)});else{if(jt(c)){var m=c.children,f=c.value,p=i[f];if("function"!=typeof p)throw new jn(f,"function",s);f=p(Zn(m,t,n,r,i,o).map(function(e){return e.value}));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map(function(e){return{type:"string"==typeof e?_.literal:_.object,value:e}}))}if(zt(c)){if(!(g=c.options[h]||c.options.other))throw new Un(c.value,h,Object.keys(c.options),s);a.push.apply(a,Zn(g.value,t,n,r,i))}else if(Ut(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new zn('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',On.MISSING_INTL_API,s);var p=n.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[p]||c.options.other}if(!g)throw new Un(c.value,h,Object.keys(c.options),s);a.push.apply(a,Zn(g.value,t,n,r,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var n=e[e.length-1];return n&&n.type===_.literal&&t.type===_.literal?n.value+=t.value:e.push(t),e},[])}function Xn(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}(o=_=_||{})[o.literal=0]="literal",o[o.object=1]="object";Object.defineProperty(f,"defaultLocale",{get:function(){return f.memoizedDefaultLocale||(f.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),f.memoizedDefaultLocale},enumerable:!1,configurable:!0}),f.memoizedDefaultLocale=null,f.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])},f.__parse=En,f.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 Kn=f;function f(e,t,n,r){var i,o,s=this;if(void 0===t&&(t=f.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){var e=s.formatToParts(e);return 1===e.length?e[0].value:(e=e.reduce(function(e,t){return e.length&&t.type===_.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[])).length<=1?e[0]||"":e},this.formatToParts=function(e){return Zn(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=f.resolveLocale(t),"string"==typeof e){if(this.message=e,!f.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=f.__parse(e,{ignoreTag:null==r?void 0:r.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=f.formats,(o=n)?Object.keys(i).reduce(function(e,t){var n,r;return e[t]=(n=i[t],(r=o[t])?g(g(g({},n||{}),r||{}),Object.keys(n).reduce(function(e,t){return e[t]=g(g({},n[t]),r[t]||{}),e},{})):n),e},g({},i)):i),this.formatters=r&&r.formatters||{getNumberFormat:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Nn.variadic}),getDateTimeFormat:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn(t.dateTime),strategy:Nn.variadic}),getPluralRules:kn(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Nt([void 0],t,!1)))},{cache:Xn(t.pluralRules),strategy:Nn.variadic})}}const qn={},Qn=(e,t,n)=>n&&(t in qn||(qn[t]={}),e in qn[t]||(qn[t][e]=n),n),er=(t,n)=>{if(null!=n){if(n in qn&&t in qn[n])return qn[n][t];var r=vr(n);for(let e=0;e<r.length;e++){var i=function(e,t){if(!rr(e))return null;e=function(e){return tr[e]||null}(e);{var n=t;if(null!=n){if(n in e)return e[n];var r=n.split(".");let t=e;for(let e=0;e<r.length;e++)if("object"==typeof t){if(0<e){const n=r.slice(e,r.length).join(".");if(n in t){t=t[n];break}}t=t[r[e]]}else t=void 0;return t}}}(r[e],t);if(i)return Qn(t,n,i)}}};let tr;const nr=Tt({});function rr(e){return e in tr}function T(t,...n){delete qn[t],nr.update(e=>(e[t]=Dt.all([e[t]||{},...n]),e))}St([nr],([e])=>Object.keys(e)),nr.subscribe(e=>tr=e);const ir={};function or(e){return ir[e]}function sr(e){return null!=e&&vr(e).some(e=>{return null==(e=or(e))?void 0:e.size})}function ar(r,e){return Promise.all(e.map(e=>{return t=r,n=e,ir[t].delete(n),0===ir[t].size&&delete ir[t],e().then(e=>e.default||e);var t,n})).then(e=>T(r,...e))}const lr={};const ur={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 cr=Tt(!1);var hr=Object.defineProperty,sn=Object.defineProperties,an=Object.getOwnPropertyDescriptors,dr=Object.getOwnPropertySymbols,mr=Object.prototype.hasOwnProperty,fr=Object.prototype.propertyIsEnumerable,pr=(e,t,n)=>t in e?hr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;let gr;const yr=Tt(null);function br(e){return e.split("-").map((e,t,n)=>n.slice(0,t+1).join("-")).reverse()}function vr(e,t=ur.fallbackLocale){e=br(e);return t?[...new Set([...e,...br(t)])]:e}function wr(){return null!=gr?gr:void 0}yr.subscribe(e=>{gr=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const oe=sn(((e,t)=>{for(var n in t=t||{})mr.call(t,n)&&pr(e,n,t[n]);if(dr)for(var n of dr(t))fr.call(t,n)&&pr(e,n,t[n]);return e})({},yr),an({set:t=>{if(t&&function(e){if(null!=e){var t=vr(e);for(let e=0;e<t.length;e++){var n=t[e];if(rr(n))return n}}}(t)&&sr(t)){var n=ur["loadingDelay"];let e;return"undefined"!=typeof window&&null!=wr()&&n?e=window.setTimeout(()=>cr.set(!0),n):cr.set(!0),function e(t){var n;return sr(t)?(n=vr(t).map(e=>{var t=or(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length),lr[t]=Promise.all(n.map(([e,t])=>ar(e,t))).then(()=>{if(sr(t))return e(t);delete lr[t]}),lr[t]):t in lr?lr[t]:Promise.resolve()}(t).then(()=>{yr.set(t)}).finally(()=>{clearTimeout(e),cr.set(!1)})}return yr.set(t)}}));var ln=n=>{const r=Object.create(null);return e=>{var t=JSON.stringify(e);return t in r?r[t]:r[t]=n(e)}},_r=Object.defineProperty,Tr=Object.getOwnPropertySymbols,Sr=Object.prototype.hasOwnProperty,xr=Object.prototype.propertyIsEnumerable,Er=(e,t,n)=>t in e?_r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,kr=(e,t)=>{for(var n in t=t||{})Sr.call(t,n)&&Er(e,n,t[n]);if(Tr)for(var n of Tr(t))xr.call(t,n)&&Er(e,n,t[n]);return e},Cr=(e,t)=>{var n={};for(r in e)Sr.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&Tr)for(var r of Tr(e))t.indexOf(r)<0&&xr.call(e,r)&&(n[r]=e[r]);return n};const Mr=(e,t)=>{var n=ur["formats"];if(e in n&&t in n[e])return n[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},$r=ln(e=>{var{locale:t,format:n}=e,e=Cr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(e=Mr("number",n)),new Intl.NumberFormat(t,e)}),Pr=ln(e=>{var{locale:t,format:n}=e,e=Cr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?e=Mr("date",n):0===Object.keys(e).length&&(e=Mr("date","short")),new Intl.DateTimeFormat(t,e)}),Ar=ln(e=>{var{locale:t,format:n}=e,e=Cr(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?e=Mr("time",n):0===Object.keys(e).length&&(e=Mr("time","short")),new Intl.DateTimeFormat(t,e)}),Dr=ln((e,t=wr())=>new Kn(e,t,ur.formats,{ignoreTag:ur.ignoreTag})),Or=St([oe,nr],()=>(e,t={})=>{var n,r;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=wr(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=er(e,s);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!=(r=null!=(n=null==(n=(r=ur).handleMissingMessage)?void 0:n.call(r,{locale:s,id:e,defaultValue:a}))?n:a)?r:e;if(!o)return l;let u=l;try{u=Dr(l,s).format(o)}catch(t){t instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),S=(St([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Cr(e,["locale"]);return Ar(kr({locale:t},e))})(t).format(e)),St([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Cr(e,["locale"]);return Pr(kr({locale:t},e))})(t).format(e)),St([oe],()=>(e,t)=>((e={})=>{var{locale:t=wr()}=e,e=Cr(e,["locale"]);return $r(kr({locale:t},e))})(t).format(e)),St([oe,nr],()=>(e,t=wr())=>er(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==vt.indexOf(e)&&(t=new gt(t),wt[e]=t,vt.push(e)),wt[e]}},e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))),Fr=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Br(e,t){T(e,t)}function Nr(e){oe.set(e)}const Rr={en:{tournamentsController:{500:"500 - Internal server error",showMore:"Show more",Scheduled:"Scheduled",Ongoing:"Ongoing",Finished:"Finished",loading:"Loading, please wait ...",noTournaments:"No tournaments found"}},hr:{tournamentsController:{500:"500 - Interna pogreška poslužitelja",showMore:"Prikaži više",Scheduled:"Planirano",Ongoing:"U tijeku",Finished:"Završeno",loading:"Učitavanje, molimo pričekajte ...",noTournaments:"Nema pronađenih turnira"}},"zh-hk":{tournamentsController:{500:"500內部服務器錯誤",showMore:"顯示更多",Scheduled:"預定的",Ongoing:"進行中",Finished:"完成的",loading:"加載請稍候 ...",noTournaments:"沒有找到比賽"}},fr:{tournamentsController:{500:"500 - erreur de serveur interne",showMore:"Afficher plus",Scheduled:"Programmé",Ongoing:"En cours",Finished:"Fini",loading:"Chargement , veuillez patienter ...",noTournaments:"Aucun tournoi trouvé"}},ro:{tournamentsController:{500:"500 - Internal server error",showMore:"Mai mult",Scheduled:"Programate",Ongoing:"În curs",Finished:"Finalizat",loading:"Se încarcă, asteptati ...",noTournaments:"Niciun turneu gasit"}},tr:{tournamentsController:{500:"500 - Dahili sunucu hatası",showMore:"Daha fazla göster",Scheduled:"Planlanmış",Ongoing:"Devam ediyor",Finished:"Tamamlanmış",loading:"Yükleniyor, lütfen bekleyin ...",noTournaments:"Turnuva bulunamadı"}},el:{tournamentsController:{500:"500 - Σφάλμα Διακομιστή",showMore:"Περισσότερα",Scheduled:"Προγραμματισμένα",Ongoing:"Τρέχοντα",Finished:"Ολοκληρωμένα",loading:"Φορτώνει, παρακαλούμε περιμένετε ...",noTournaments:"Δεν βρέθηκαν τουρνουά"}},es:{tournamentsController:{500:"500 - Error servidor interno",showMore:"Mostrar más",Scheduled:"Programado",Ongoing:"En vivo",Finished:"Finalizado",loading:"Cargando …",noTournaments:"No se encontraron Torneos"}},hu:{tournamentsController:{500:"500 - Belső szerver hiba",showMore:"Mutass többet",Scheduled:"Ütemezés",Ongoing:"Folyamatban",Finished:"Befejezett",loading:"Betöltés, kérjük várjon...",noTournaments:"Verseny nem található"}},pt:{tournamentsController:{500:"Erro 500 - Erro interno do servidor",showMore:"Ver mais",Scheduled:"Agendado",Ongoing:"Em progresso",Finished:"Finalizado",loading:"Carregando, por favor espere ...",noTournaments:"Nenhum torneio encontrado"}}};var Hr=Ae(function(_,e){var r,t="undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:Pe:globalThis,A=t.setTimeout,D=t.clearTimeout,O=t.XMLHttpRequest,i=t.XDomainRequest,n=t.ActiveXObject,o=t.EventSource,s=t.document,h=t.Promise,d=t.fetch,a=t.Response,m=t.TextDecoder,l=t.TextEncoder,f=t.AbortController;function u(){this.bitsNeeded=0,this.codePoint=0}function c(){}function F(e){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=c,this.onload=c,this.onerror=c,this.onreadystatechange=c,this._contentType="",this._xhr=e,this._sendTimeout=0,this._abort=c}function p(e){return e.replace(/[A-Z]/g,function(e){return String.fromCharCode(e.charCodeAt(0)+32)})}function g(e){for(var t=Object.create(null),n=e.split("\r\n"),r=0;r<n.length;r+=1){var i=n[r].split(": "),o=i.shift(),i=i.join(": ");t[p(o)]=i}this._map=t}function B(){}function y(e){this._headers=e}function N(){}function R(){this._listeners=Object.create(null)}function b(e){A(function(){throw e},0)}function v(e){this.type=e,this.target=void 0}function H(e,t){v.call(this,e),this.data=t.data,this.lastEventId=t.lastEventId}function L(e,t){v.call(this,e),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function I(e,t){v.call(this,e),this.error=t.error}function z(e,t){return e=null==e?t:parseInt(e,10),Y(e=e!=e?t:e)}function U(e,t,n){try{"function"==typeof t&&t.call(e,n)}catch(e){b(e)}}"undefined"==typeof window||void 0===s||"readyState"in s||null!=s.body||(s.readyState="loading",window.addEventListener("load",function(e){s.readyState="complete"},!1)),null==O&&null!=n&&(O=function(){return new n("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(e){function t(){}return t.prototype=e,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==f&&(r=d,d=function(e,t){var n=t.signal;return r(e,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then(function(e){var t=e.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:e.status,statusText:e.statusText,headers:e.headers,body:{getReader:function(){return t}}}})},f=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}),u.prototype.decode=function(e){function t(e,t,n){if(1===n)return 128>>t<=e&&e<<t<=2047;if(2===n)return 2048>>t<=e&&e<<t<=55295||57344>>t<=e&&e<<t<=65535;if(3===n)return 65536>>t<=e&&e<<t<=1114111;throw new Error}function n(e,t){if(6===e)return 15<t>>6?3:31<t?2:1;if(12===e)return 15<t?3:2;if(18===e)return 3;throw new Error}for(var r="",i=this.bitsNeeded,o=this.codePoint,s=0;s<e.length;s+=1){var a=e[s];0!==i&&(a<128||191<a||!t(o<<6|63&a,i-6,n(i,o)))&&(i=0,o=65533,r+=String.fromCharCode(o)),0===i?(o=0<=a&&a<=127?(i=0,a):192<=a&&a<=223?(i=6,31&a):224<=a&&a<=239?(i=12,15&a):240<=a&&a<=247?(i=18,7&a):(i=0,65533),0===i||t(o,i,n(i,o))||(i=0,o=65533)):(i-=6,o=o<<6|63&a),0===i&&(o<=65535?r+=String.fromCharCode(o):r=(r+=String.fromCharCode(55296+(o-65535-1>>10)))+String.fromCharCode(56320+(o-65535-1&1023)))}return this.bitsNeeded=i,this.codePoint=o,r},null!=m&&null!=l&&function(){try{return"test"===(new m).decode((new l).encode("test"),{stream:!0})}catch(e){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+e)}}()||(m=u),F.prototype.open=function(e,t){this._abort(!0);function n(e,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:c}),l(),1===s||2===s||3===s){if(s=4,0!==r&&(D(r),r=0),i.readyState=4,"load"===e)i.onload(t);else if("error"===e)i.onerror(t);else{if("abort"!==e)throw new TypeError;i.onabort(t)}i.onreadystatechange()}}var i=this,o=this._xhr,s=1,r=0,a=(this._abort=function(e){0!==i._sendTimeout&&(D(i._sendTimeout),i._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,o.onload=c,o.onerror=c,o.onabort=c,o.onprogress=c,o.onreadystatechange=c,o.abort(),0!==r&&(D(r),r=0),e)||(i.readyState=4,i.onabort(null),i.onreadystatechange()),s=0},function(){if(1===s){var t=0,n="",r=void 0;if("contentType"in o)t=200,n="OK",r=o.contentType;else try{t=o.status,n=o.statusText,r=o.getResponseHeader("Content-Type")}catch(e){n="",r=void(t=0)}0!==t&&(s=2,i.readyState=2,i.status=t,i.statusText=n,i._contentType=r,i.onreadystatechange())}}),l=function(){if(a(),2===s||3===s){s=3;var e="";try{e=o.responseText}catch(e){}i.readyState=3,i.responseText=e,i.onprogress()}},u=function(){r=A(function(){u()},500),3===o.readyState&&l()};"onload"in o&&(o.onload=function(e){n("load",e)}),"onerror"in o&&(o.onerror=function(e){n("error",e)}),"onabort"in o&&(o.onabort=function(e){n("abort",e)}),"onprogress"in o&&(o.onprogress=l),"onreadystatechange"in o&&(o.onreadystatechange=function(e){e=e,null!=o&&(4===o.readyState?"onload"in o&&"onerror"in o&&"onabort"in o||n(""===o.responseText?"error":"load",e):3===o.readyState?"onprogress"in o||l():2===o.readyState&&a())}),!("contentType"in o)&&"ontimeout"in O.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),o.open(e,t,!0),"readyState"in o&&(r=A(function(){u()},0))},F.prototype.abort=function(){this._abort(!1)},F.prototype.getResponseHeader=function(e){return this._contentType},F.prototype.setRequestHeader=function(e,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(e,t)},F.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},F.prototype.send=function(){if("ontimeout"in O.prototype&&("sendAsBinary"in O.prototype||"mozAnon"in O.prototype)||null==s||null==s.readyState||"complete"===s.readyState){var e=this._xhr;"withCredentials"in e&&(e.withCredentials=this.withCredentials);try{e.send(void 0)}catch(e){throw e}}else{var t=this;t._sendTimeout=A(function(){t._sendTimeout=0,t.send()},4)}},g.prototype.get=function(e){return this._map[p(e)]},null!=O&&null==O.HEADERS_RECEIVED&&(O.HEADERS_RECEIVED=2),B.prototype.open=function(i,o,t,n,e,r,s){i.open("GET",e);var a,l=0;for(a in i.onprogress=function(){var e=i.responseText.slice(l);l+=e.length,t(e)},i.onerror=function(e){e.preventDefault(),n(new Error("NetworkError"))},i.onload=function(){n(null)},i.onabort=function(){n(null)},i.onreadystatechange=function(){var e,t,n,r;i.readyState===O.HEADERS_RECEIVED&&(e=i.status,t=i.statusText,n=i.getResponseHeader("Content-Type"),r=i.getAllResponseHeaders(),o(e,t,n,new g(r)))},i.withCredentials=r,s)Object.prototype.hasOwnProperty.call(s,a)&&i.setRequestHeader(a,s[a]);return i.send(),i},y.prototype.get=function(e){return this._headers.get(e)},N.prototype.open=function(e,t,i,n,r,o,s){var a=null,l=new f,u=l.signal,c=new m;return d(r,{headers:s,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then(function(e){return a=e.body.getReader(),t(e.status,e.statusText,e.headers.get("Content-Type"),new y(e.headers)),new h(function(t,n){function r(){a.read().then(function(e){e.done?t(void 0):(e=c.decode(e.value,{stream:!0}),i(e),r())}).catch(function(e){n(e)})}r()})}).catch(function(e){return"AbortError"===e.name?void 0:e}).then(function(e){n(e)}),{abort:function(){null!=a&&a.cancel(),l.abort()}}},R.prototype.dispatchEvent=function(e){var t=(e.target=this)._listeners[e.type];if(null!=t)for(var n=t.length,r=0;r<n;r+=1){var i=t[r];try{"function"==typeof i.handleEvent?i.handleEvent(e):i.call(this,e)}catch(e){b(e)}}},R.prototype.addEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];null==r&&(n[e]=r=[]);for(var i=!1,o=0;o<r.length;o+=1)r[o]===t&&(i=!0);i||r.push(t)},R.prototype.removeEventListener=function(e,t){e=String(e);var n=this._listeners,r=n[e];if(null!=r){for(var i=[],o=0;o<r.length;o+=1)r[o]!==t&&i.push(r[o]);0===i.length?delete n[e]:n[e]=i}},H.prototype=Object.create(v.prototype),L.prototype=Object.create(v.prototype),I.prototype=Object.create(v.prototype);var j=/^text\/event\-stream(;.*)?$/i,Y=function(e){return Math.min(Math.max(e,1e3),18e6)};function w(e,t){var l,o,s,u,c,h,d,m,f,n,a,p,g,y,b,v,w,_,T,S,x,E,k,C,M,$,P;R.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,l=this,o=e,e=t,o=String(o),t=Boolean(e.withCredentials),s=e.lastEventIdQueryParameterName||"lastEventId",u=Y(1e3),c=z(e.heartbeatTimeout,45e3),h="",d=u,m=!1,f=0,n=e.headers||{},e=e.Transport,a=G&&null==e?void 0:new F(new(null!=e?e:null!=O&&"withCredentials"in O.prototype||null==i?O:i)),p=new(null!=e&&"string"!=typeof e?e:null==a?N:B),g=void 0,b=-1,T=_=w=v="",E=x=S=y=0,k=function(e,t,n,r){var i,o;0===b&&(200===e&&null!=n&&j.test(n)?(b=1,m=Date.now(),d=u,l.readyState=1,i=new L("open",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),U(l,l.onopen,i)):(o="",o=200!==e?"EventSource's response has a status "+e+" "+(t=t&&t.replace(/\s+/g," "))+" that is not 200. Aborting the connection.":"EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",$(),i=new L("error",{status:e,statusText:t,headers:r}),l.dispatchEvent(i),U(l,l.onerror,i),console.error(o)))},C=function(e){if(1===b){for(var t=-1,n=0;n<e.length;n+=1)(s=e.charCodeAt(n))!=="\n".charCodeAt(0)&&s!=="\r".charCodeAt(0)||(t=n);var r=(-1!==t?T:"")+e.slice(0,t+1);T=(-1===t?T:"")+e.slice(t+1),""!==e&&(m=Date.now(),f+=e.length);for(var i=0;i<r.length;i+=1){var o,s=r.charCodeAt(i);if(-1===S&&s==="\n".charCodeAt(0))S=0;else if(-1===S&&(S=0),s==="\r".charCodeAt(0)||s==="\n".charCodeAt(0)){if(0!==S&&(1===S&&(E=i+1),a=r.slice(x,E-1),o=r.slice(E+(E<i&&r.charCodeAt(E)===" ".charCodeAt(0)?1:0),i),"data"===a?v=v+"\n"+o:"id"===a?w=o:"event"===a?_=o:"retry"===a?(u=z(o,u),d=u):"heartbeatTimeout"===a&&(c=z(o,c),0!==y)&&(D(y),y=A(function(){P()},c))),0===S){if(""!==v){h=w;var a=new H(_=""===_?"message":_,{data:v.slice(1),lastEventId:w});if(l.dispatchEvent(a),"open"===_?U(l,l.onopen,a):"message"===_?U(l,l.onmessage,a):"error"===_&&U(l,l.onerror,a),2===b)return}_=v=""}S=s==="\r".charCodeAt(0)?-1:0}else 0===S&&(x=i,S=1),1===S?s===":".charCodeAt(0)&&(E=i+1,S=2):2===S&&(S=3)}}},M=function(e){var t;1!==b&&0!==b||(b=-1,0!==y&&(D(y),y=0),y=A(function(){P()},d),d=Y(Math.min(16*u,2*d)),l.readyState=0,t=new I("error",{error:e}),l.dispatchEvent(t),U(l,l.onerror,t),null!=e&&console.error(e))},$=function(){b=2,null!=g&&(g.abort(),g=void 0),0!==y&&(D(y),y=0),l.readyState=2},P=function(){if(y=0,-1===b){m=!1,f=0,y=A(function(){P()},c),w=h,T=_=v="",S=E=x=b=0;var e=o,t=("data:"!==o.slice(0,5)&&"blob:"!==o.slice(0,5)&&""!==h&&(e=-1===(t=o.indexOf("?"))?o:o.slice(0,t+1)+o.slice(t+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(e,t){return t===s?"":e}),e+=(-1===o.indexOf("?")?"?":"&")+s+"="+encodeURIComponent(h)),l.withCredentials),n={Accept:"text/event-stream"},r=l.headers;if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i]);try{g=p.open(a,k,C,M,e,t,n)}catch(e){throw $(),e}}else m||null==g?(e=Math.max((m||Date.now())+c-Date.now(),1),m=!1,y=A(function(){P()},e)):(M(new Error("No activity within "+c+" milliseconds. "+(0===b?"No response received.":f+" chars received.")+" Reconnecting.")),null!=g&&(g.abort(),g=void 0))},l.url=o,l.readyState=0,l.withCredentials=t,l.headers=n,l._close=$,P()}var G=null!=d&&null!=a&&"body"in a.prototype;(w.prototype=Object.create(R.prototype)).CONNECTING=0,w.prototype.OPEN=1,w.prototype.CLOSED=2,w.prototype.close=function(){this._close()},w.CONNECTING=0,w.OPEN=1,w.CLOSED=2,w.prototype.withCredentials=void 0,t=o,null==O||null!=o&&"withCredentials"in o.prototype||(t=w),(a=e).EventSourcePolyfill=w,a.NativeEventSource=o,a.EventSource=t});function Lr(e,t){T(e,t)}const Ir={en:{tournamentsFilter:{tournaments:"Tournaments",all:"All",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished"}},hr:{tournamentsFilter:{tournaments:"Turniri",all:"Svi",scheduled:"Planirani",ongoing:"U tijeku",finished:"Završeni"}},"zh-hk":{tournamentsFilter:{tournaments:"錦標賽",all:"全部",scheduled:"預定的",ongoing:"進行中",finished:"完成的"}},fr:{tournamentsFilter:{tournaments:"Tournois",all:"Tous",scheduled:"Programmé",ongoing:"En cours",finished:"Fini"}},ro:{tournamentsFilter:{tournaments:"Turnee",all:"Toate",scheduled:"Programate",ongoing:"În curs",finished:"Finalizat"}},tr:{tournamentsFilter:{tournaments:"Turnuvalar",all:"Hepsi",scheduled:"Planlanmış",ongoing:"Devam ediyor",finished:"Tamamlanmış"}},el:{tournamentsFilter:{tournaments:"Τουρνουά",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα"}},es:{tournamentsFilter:{tournaments:"Torneos",all:"Todos",scheduled:"Programado",ongoing:"En vivo",finished:"Finalizado"}},hu:{tournamentsFilter:{tournaments:"Versenyek",all:"Mind",scheduled:"Ütemezés",ongoing:"Folyamatban",finished:"Befejezett"}},pt:{tournamentsFilter:{tournaments:"Torneios",all:"Tudo",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado"}}};function zr(e,t,n){e=e.slice();return e[22]=t[n],e[24]=n,e}function Ur(t){let i,n,o,r,s,e=t[4]("tournamentsFilter.tournaments")+"",a=t[1],l=[];for(let e=0;e<a.length;e+=1)l[e]=Jr(zr(t,a,e));return{c(){i=D("ul"),n=D("li"),o=O(e),r=O(":"),s=F();for(let e=0;e<l.length;e+=1)l[e].c();N(n,"class","FiltersTitle "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),N(n,"part","FiltersTitle "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"class","FiltersList "+(S(t[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"part","FiltersList "+(S(t[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){P(e,i,t),$(i,n),$(n,o),$(n,r),$(i,s);for(let e=0;e<l.length;e+=1)l[e]&&l[e].m(i,null)},p(t,n){if(16&n&&e!==(e=t[4]("tournamentsFilter.tournaments")+"")&&R(o,e),126&n){let e;for(a=t[1],e=0;e<a.length;e+=1){var r=zr(t,a,e);l[e]?l[e].p(r,n):(l[e]=Jr(r),l[e].c(),l[e].m(i,null))}for(;e<l.length;e+=1)l[e].d(1);l.length=a.length}},d(e){e&&A(i),j(l,e)}}}function jr(){let n,r;return{c(){n=t("svg"),N(r=t("path"),"d","M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425a.267.267 0 0 1 .02-.022z"),N(n,"xmlns","http://www.w3.org/2000/svg"),N(n,"width","16"),N(n,"height","16"),N(n,"fill","currentColor"),N(n,"class","bi bi-check"),N(n,"part","bi bi-check"),N(n,"viewBox","0 0 16 16")},m(e,t){P(e,n,t),$(n,r)},d(e){e&&A(n)}}}function Yr(e){let n,r=e[4]("tournamentsFilter.scheduled")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.scheduled")+"")&&R(n,r)},d(e){e&&A(n)}}}function Gr(e){let n,r=e[4]("tournamentsFilter.ongoing")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.ongoing")+"")&&R(n,r)},d(e){e&&A(n)}}}function Wr(e){let n,r=e[4]("tournamentsFilter.finished")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.finished")+"")&&R(n,r)},d(e){e&&A(n)}}}function Vr(e){let n,r=e[4]("tournamentsFilter.all")+"";return{c(){n=O(r)},m(e,t){P(e,n,t)},p(e,t){16&t&&r!==(r=e[4]("tournamentsFilter.all")+"")&&R(n,r)},d(e){e&&A(n)}}}function Jr(n){let r,i,o,s,a,l,u,c,h,d,m,f,p=(1==n[2][n[24]]||n[3]&&0==n[24])&&jr(),g="Scheduled"==n[22]&&Yr(n),y="Ongoing"==n[22]&&Gr(n),b="Finished"==n[22]&&Wr(n),v="All"==n[22]&&Vr(n);function w(){return n[12](n[22],n[24])}return{c(){r=D("li"),i=D("button"),p&&p.c(),o=F(),s=D("div"),g&&g.c(),a=F(),y&&y.c(),l=F(),b&&b.c(),u=F(),v&&v.c(),d=F(),N(s,"class","FilterButton "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(s,"part","FilterButton "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"class",c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(i,"part",h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(r,"class","FiltersItem"),N(r,"part","FiltersItem")},m(e,t){P(e,r,t),$(r,i),p&&p.m(i,null),$(i,o),$(i,s),g&&g.m(s,null),$(s,a),y&&y.m(s,null),$(s,l),b&&b.m(s,null),$(s,u),v&&v.m(s,null),$(r,d),m||(f=B(r,"click",w),m=!0)},p(e,t){1==(n=e)[2][n[24]]||n[3]&&0==n[24]?p||((p=jr()).c(),p.m(i,o)):p&&(p.d(1),p=null),"Scheduled"==n[22]?g?g.p(n,t):((g=Yr(n)).c(),g.m(s,a)):g&&(g.d(1),g=null),"Ongoing"==n[22]?y?y.p(n,t):((y=Gr(n)).c(),y.m(s,l)):y&&(y.d(1),y=null),"Finished"==n[22]?b?b.p(n,t):((b=Wr(n)).c(),b.m(s,u)):b&&(b.d(1),b=null),"All"==n[22]?v?v.p(n,t):((v=Vr(n)).c(),v.m(s,null)):v&&(v.d(1),v=null),12&t&&c!==(c=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))&&N(i,"class",c),12&t&&h!==(h=(1==n[2][n[24]]||n[3]&&0==n[24]?"Active":"")+" "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))&&N(i,"part",h)},d(e){e&&A(r),p&&p.d(),g&&g.d(),y&&y.d(),b&&b.d(),v&&v.d(),m=!1,f()}}}function Zr(n){let r,i=0<n[1].length&&Ur(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","FiltersController "+(S(n[5])?"MobileClass":"Non-MobileClass/empty")),N(r,"part","FiltersController "+(S(n[5])?"MobileClass":"Non-MobileClass/empty"))},m(e,t){P(e,r,t),i&&i.m(r,null),n[13](r)},p(e,[t]){0<e[1].length?i?i.p(e,t):((i=Ur(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[13](null)}}}function Xr(t,e,r){let n;se(t,Or,e=>r(4,n=e));let i,{filters:o=""}=e,{activefilters:s=""}=e,{translationurl:a=""}=e,{clientstyling:l=""}=e,{clientstylingurl:u=""}=e,c=[],h=0,d=new Array(100),m=!0,f=window.navigator.userAgent;Object.keys(Ir).forEach(e=>{Lr(e,Ir[e])});const p=(e,t)=>{if(0==t)r(3,m=!0),r(2,d=new Array(h)),window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else if(r(3,m=!1),1==d[t]?(r(2,d[t]=0,d),-1==d.indexOf(1)&&r(3,m=!0)):r(2,d[t]=1,d),-1==d.indexOf(1))window.postMessage({type:"TournamentsFiltersSelected",filters:["All"]},window.location.href);else{var n=[];for(let e=0;e<c.length;e++)1==d[e]&&n.push(c[e]);window.postMessage({type:"TournamentsFiltersSelected",filters:n},window.location.href)}};return t.$$set=e=>{"filters"in e&&r(7,o=e.filters),"activefilters"in e&&r(8,s=e.activefilters),"translationurl"in e&&r(9,a=e.translationurl),"clientstyling"in e&&r(10,l=e.clientstyling),"clientstylingurl"in e&&r(11,u=e.clientstylingurl)},t.$$.update=()=>{if(1025&t.$$.dirty&&i&&l&&((e=document.createElement("style")).innerHTML=l,i.appendChild(e)),2049&t.$$.dirty&&i&&u){let e=new URL(u),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;512&t.$$.dirty&&a&&fetch(a).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Lr(e,t[e])})}).catch(e=>{console.log(e)}),128&t.$$.dirty&&o&&(r(1,c=o.split(",")),h=c.length),256&t.$$.dirty&&s&&(e=s.split(","),r(2,d=new Array(h)),-1!=e.indexOf("All")?r(3,m=!0):(r(3,m=!1),e.forEach(e=>{e=c.indexOf(e);0<e&&r(2,d[e]=1,d)})))},[i,c,d,m,n,f,p,o,s,a,l,u,(e,t)=>p(0,t),function(e){ie[e?"unshift":"push"](()=>{i=e,r(0,i)})}]}customElements.get("casino-tournaments-filter-controller")||customElements.define("casino-tournaments-filter-controller",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}ul{display:flex;gap:10px;overflow-x:auto}ul.MobileClass{padding-top:21px}li:first-child{height:100%;position:realtive;padding:1em 0;margin:0;font-size:14px;text-align:center;letter-spacing:0px;color:var(--emfe-w-color-white, #FFFFFF);opacity:1}li.MobileClass{position:absolute;left:10px;top:-15px;font-size:14px;height:auto}button{display:flex;align-items:center;background-color:transparent;justify-content:center;padding:10px;height:40px;border:1px solid var(--emfe-w-color-white, #FFFFFF);min-width:40px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}button.MobileClass{height:30px}button:hover{background-color:var(--emfe-w-color-gray-100, #E6E6E6);border:1px solid var(--emfe-w-color-gray-100, #E6E6E6);color:var(--emfe-w-color-black, #000000);cursor:pointer}.FiltersController{color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:flex-end;margin-bottom:20px}.FiltersController.MobileClass{justify-content:flex-start;margin-bottom:10px}.FiltersController .FilterButton{font-size:14px;letter-spacing:0px;opacity:1;text-transform:uppercase}.FiltersController .FilterButton.MobileClass{font-size:10px}.FiltersController .Active{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}.FiltersController .Active:hover{background-color:var(--emfe-w-color-gray-300, #58586B);border:1px solid var(--emfe-w-color-gray-300, #58586B)}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Xr,Zr,n,{filters:7,activefilters:8,translationurl:9,clientstyling:10,clientstylingurl:11},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["filters","activefilters","translationurl","clientstyling","clientstylingurl"]}get filters(){return this.$$.ctx[7]}set filters(e){this.$$set({filters:e}),d()}get activefilters(){return this.$$.ctx[8]}set activefilters(e){this.$$set({activefilters:e}),d()}get translationurl(){return this.$$.ctx[9]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}});var Kr=Ae(function(An,e){An.exports=function(){var N;function f(){return N.apply(null,arguments)}function s(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function R(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function p(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function H(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 L(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 z(e,t){for(var n=[],r=e.length,i=0;i<r;++i)n.push(t(e[i],i));return n}function U(e,t){for(var n in t)p(t,n)&&(e[n]=t[n]);return p(t,"toString")&&(e.toString=t.toString),p(t,"valueOf")&&(e.valueOf=t.valueOf),e}function u(e,t,n,r){return At(e,t,n,r,!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 j(e){if(null==e._isValid){var t=g(e),n=G.call(t.parsedDateParts,function(e){return null!=e}),n=!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&&n);if(e._strict&&(n=n&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour),null!=Object.isFrozen&&Object.isFrozen(e))return n;e._isValid=n}return e._isValid}function Y(e){var t=u(NaN);return null!=e?U(g(t),e):g(t).userInvalidated=!0,t}var G=Array.prototype.some||function(e){for(var t=Object(this),n=t.length>>>0,r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1},W=f.momentProperties=[],V=!1;function J(e,t){var n,r,i,o=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<o)for(n=0;n<o;n++)a(i=t[r=W[n]])||(e[r]=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,f.updateOffset(this),V=!1)}function l(e){return e instanceof Z||null!=e&&null!=e._isAMomentObject}function X(e){!1===f.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function e(o,s){var a=!0;return U(function(){if(null!=f.deprecationHandler&&f.deprecationHandler(null,o),a){for(var e,t,n=[],r=arguments.length,i=0;i<r;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];n.push(e)}X(o+"\nArguments: "+Array.prototype.slice.call(n).join("")+"\n"+(new Error).stack),a=!1}return s.apply(this,arguments)},s)}var K={};function q(e,t){null!=f.deprecationHandler&&f.deprecationHandler(e,t),K[e]||(X(t),K[e]=!0)}function c(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function Q(e,t){var n,r=U({},e);for(n in t)p(t,n)&&(R(e[n])&&R(t[n])?(r[n]={},U(r[n],e[n]),U(r[n],t[n])):null!=t[n]?r[n]=t[n]:delete r[n]);for(n in e)p(e,n)&&!p(t,n)&&R(e[n])&&(r[n]=U({},r[n]));return r}function ee(e){null!=e&&this.set(e)}f.suppressDeprecationWarnings=!1,f.deprecationHandler=null;var te=Object.keys||function(e){var t,n=[];for(t in e)p(e,t)&&n.push(t);return n};function o(e,t,n){var r=""+Math.abs(e);return(0<=e?n?"+":"":"-")+Math.pow(10,Math.max(0,t-r.length)).toString().substr(1)+r}var ne=/(\[[^\[]*\])|(\\)?([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,re=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ie={},oe={};function r(e,t,n,r){var i="string"==typeof r?function(){return this[r]()}:r;e&&(oe[e]=i),t&&(oe[t[0]]=function(){return o(i.apply(this,arguments),t[1],t[2])}),n&&(oe[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function se(e,t){return e.isValid()?(t=ae(t,e.localeData()),ie[t]=ie[t]||function(r){for(var e,i=r.match(ne),t=0,o=i.length;t<o;t++)oe[i[t]]?i[t]=oe[i[t]]:i[t]=(e=i[t]).match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"");return function(e){for(var t="",n=0;n<o;n++)t+=c(i[n])?i[n].call(e,r):i[n];return t}}(t),ie[t](e)):e.localeData().invalidDate()}function ae(e,t){var n=5;function r(e){return t.longDateFormat(e)||e}for(re.lastIndex=0;0<=n&&re.test(e);)e=e.replace(re,r),re.lastIndex=0,--n;return e}var le={};function t(e,t){var n=e.toLowerCase();le[n]=le[n+"s"]=le[t]=e}function h(e){return"string"==typeof e?le[e]||le[e.toLowerCase()]:void 0}function ue(e){var t,n,r={};for(n in e)p(e,n)&&(t=h(n))&&(r[t]=e[n]);return r}var ce={};function n(e,t){ce[e]=t}function he(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 m(e){var e=+e,t=0;return t=0!=e&&isFinite(e)?d(e):t}function de(t,n){return function(e){return null!=e?(fe(this,t,e),f.updateOffset(this,n),this):me(this,t)}}function me(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function fe(e,t,n){e.isValid()&&!isNaN(n)&&("FullYear"===t&&he(e.year())&&1===e.month()&&29===e.date()?(n=m(n),e._d["set"+(e._isUTC?"UTC":"")+t](n,e.month(),Fe(n,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](n))}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?/,we=/\d{1,3}/,_e=/\d{1,4}/,Te=/[+-]?\d{1,6}/,Se=/\d+/,xe=/[+-]?\d+/,Ee=/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 w(e,n,r){Me[e]=c(n)?n:function(e,t){return e&&r?r:n}}function Ce(e,t){return p(Me,e)?Me[e](t._strict,t._locale):new RegExp(_(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,r,i){return t||n||r||i})))}function _(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Me={},$e={};function T(e,n){var t,r,i=n;for("string"==typeof e&&(e=[e]),L(n)&&(i=function(e,t){t[n]=m(e)}),r=e.length,t=0;t<r;t++)$e[e[t]]=i}function Pe(e,i){T(e,function(e,t,n,r){n._w=n._w||{},i(e,n._w,n,r)})}var S,x=0,E=1,k=2,C=3,M=4,$=5,Ae=6,De=7,Oe=8;function Fe(e,t){var n;return isNaN(e)||isNaN(t)?NaN:(n=(t%(n=12)+n)%n,e+=(t-n)/12,1==n?he(e)?29:28:31-n%7%2)}S=Array.prototype.indexOf||function(e){for(var t=0;t<this.length;++t)if(this[t]===e)return t;return-1},r("M",["MM",2],"Mo",function(){return this.month()+1}),r("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),r("MMMM",0,0,function(e){return this.localeData().months(this,e)}),t("month","M"),n("month",8),w("M",b),w("MM",b,y),w("MMM",function(e,t){return t.monthsShortRegex(e)}),w("MMMM",function(e,t){return t.monthsRegex(e)}),T(["M","MM"],function(e,t){t[E]=m(e)-1}),T(["MMM","MMMM"],function(e,t,n,r){r=n._locale.monthsParse(e,r,n._strict);null!=r?t[E]=r:g(n).invalidMonth=e});var Be="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ne="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Re=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,He=v,Le=v;function Ie(e,t){var n;if(e.isValid()){if("string"==typeof t)if(/^\d+$/.test(t))t=m(t);else if(!L(t=e.localeData().monthsParse(t)))return;n=Math.min(e.date(),Fe(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)}}function ze(e){return null!=e?(Ie(this,e),f.updateOffset(this,!0),this):me(this,"Month")}function Ue(){function e(e,t){return t.length-e.length}for(var t,n=[],r=[],i=[],o=0;o<12;o++)t=u([2e3,o]),n.push(this.monthsShort(t,"")),r.push(this.months(t,"")),i.push(this.months(t,"")),i.push(this.monthsShort(t,""));for(n.sort(e),r.sort(e),i.sort(e),o=0;o<12;o++)n[o]=_(n[o]),r[o]=_(r[o]);for(o=0;o<24;o++)i[o]=_(i[o]);this._monthsRegex=new RegExp("^("+i.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function je(e){return he(e)?366:365}r("Y",0,0,function(){var e=this.year();return e<=9999?o(e,4):"+"+e}),r(0,["YY",2],0,function(){return this.year()%100}),r(0,["YYYY",4],0,"year"),r(0,["YYYYY",5],0,"year"),r(0,["YYYYYY",6,!0],0,"year"),t("year","y"),n("year",1),w("Y",xe),w("YY",b,y),w("YYYY",_e,ge),w("YYYYY",Te,ye),w("YYYYYY",Te,ye),T(["YYYYY","YYYYYY"],x),T("YYYY",function(e,t){t[x]=2===e.length?f.parseTwoDigitYear(e):m(e)}),T("YY",function(e,t){t[x]=f.parseTwoDigitYear(e)}),T("Y",function(e,t){t[x]=parseInt(e,10)}),f.parseTwoDigitYear=function(e){return m(e)+(68<m(e)?1900:2e3)};var Ye=de("FullYear",!0);function Ge(e,t,n,r,i,o,s){var a;return e<100&&0<=e?(a=new Date(e+400,t,n,r,i,o,s),isFinite(a.getFullYear())&&a.setFullYear(e)):a=new Date(e,t,n,r,i,o,s),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,n){n=7+t-n;return-(7+We(e,0,n).getUTCDay()-t)%7+n-1}function Je(e,t,n,r,i){var o,t=1+7*(t-1)+(7+n-r)%7+Ve(e,r,i),n=t<=0?je(o=e-1)+t:t>je(e)?(o=e+1,t-je(e)):(o=e,t);return{year:o,dayOfYear:n}}function Ze(e,t,n){var r,i,o=Ve(e.year(),t,n),o=Math.floor((e.dayOfYear()-o-1)/7)+1;return o<1?r=o+P(i=e.year()-1,t,n):o>P(e.year(),t,n)?(r=o-P(e.year(),t,n),i=e.year()+1):(i=e.year(),r=o),{week:r,year:i}}function P(e,t,n){var r=Ve(e,t,n),t=Ve(e+1,t,n);return(je(e)-r+t)/7}r("w",["ww",2],"wo","week"),r("W",["WW",2],"Wo","isoWeek"),t("week","w"),t("isoWeek","W"),n("week",5),n("isoWeek",5),w("w",b),w("ww",b,y),w("W",b),w("WW",b,y),Pe(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=m(e)});function Xe(e,t){return e.slice(t,7).concat(e.slice(0,t))}r("d",0,"do","day"),r("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),r("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),r("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),r("e",0,0,"weekday"),r("E",0,0,"isoWeekday"),t("day","d"),t("weekday","e"),t("isoWeekday","E"),n("day",11),n("weekday",11),n("isoWeekday",11),w("d",b),w("e",b),w("E",b),w("dd",function(e,t){return t.weekdaysMinRegex(e)}),w("ddd",function(e,t){return t.weekdaysShortRegex(e)}),w("dddd",function(e,t){return t.weekdaysRegex(e)}),Pe(["dd","ddd","dddd"],function(e,t,n,r){r=n._locale.weekdaysParse(e,r,n._strict);null!=r?t.d=r:g(n).invalidWeekday=e}),Pe(["d","e","E"],function(e,t,n,r){t[r]=m(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,nt=v;function rt(){function e(e,t){return t.length-e.length}for(var t,n,r,i=[],o=[],s=[],a=[],l=0;l<7;l++)r=u([2e3,1]).day(l),t=_(this.weekdaysMin(r,"")),n=_(this.weekdaysShort(r,"")),r=_(this.weekdays(r,"")),i.push(t),o.push(n),s.push(r),a.push(t),a.push(n),a.push(r);i.sort(e),o.sort(e),s.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+i.join("|")+")","i")}function it(){return this.hours()%12||12}function ot(e,t){r(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function st(e,t){return t._meridiemParse}r("H",["HH",2],0,"hour"),r("h",["hh",2],0,it),r("k",["kk",2],0,function(){return this.hours()||24}),r("hmm",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)}),r("hmmss",0,0,function(){return""+it.apply(this)+o(this.minutes(),2)+o(this.seconds(),2)}),r("Hmm",0,0,function(){return""+this.hours()+o(this.minutes(),2)}),r("Hmmss",0,0,function(){return""+this.hours()+o(this.minutes(),2)+o(this.seconds(),2)}),ot("a",!0),ot("A",!1),t("hour","h"),n("hour",13),w("a",st),w("A",st),w("H",b),w("h",b),w("k",b),w("HH",b,y),w("hh",b,y),w("kk",b,y),w("hmm",be),w("hmmss",ve),w("Hmm",be),w("Hmmss",ve),T(["H","HH"],C),T(["k","kk"],function(e,t,n){e=m(e);t[C]=24===e?0:e}),T(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),T(["h","hh"],function(e,t,n){t[C]=m(e),g(n).bigHour=!0}),T("hmm",function(e,t,n){var r=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r)),g(n).bigHour=!0}),T("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r,2)),t[$]=m(e.substr(i)),g(n).bigHour=!0}),T("Hmm",function(e,t,n){var r=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r))}),T("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[C]=m(e.substr(0,r)),t[M]=m(e.substr(r,2)),t[$]=m(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:Be,monthsShort:Ne,week:{dow:0,doy:6},weekdays:Ke,weekdaysMin:Qe,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},A={},ut={};function ct(e){return e&&e.toLowerCase().replace("_","-")}function ht(e){for(var t,n,r,i,o=0;o<e.length;){for(t=(i=ct(e[o]).split("-")).length,n=(n=ct(e[o+1]))?n.split("-"):null;0<t;){if(r=dt(i.slice(0,t).join("-")))return r;if(n&&n.length>=t&&function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r+=1)if(e[r]!==t[r])return r;return n}(i,n)>=t-1)break;t--}o++}return at}function dt(t){var e;if(void 0===A[t]&&An&&An.exports&&null!=t.match("^[^/\\\\]*$"))try{e=at._abbr,Dn(),mt(e)}catch(e){A[t]=null}return A[t]}function mt(e,t){return e&&((t=a(t)?D(e):ft(e,t))?at=t:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),at._abbr}function ft(e,t){if(null===t)return delete A[e],null;var n,r=lt;if(t.abbr=e,null!=A[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."),r=A[e]._config;else if(null!=t.parentLocale)if(null!=A[t.parentLocale])r=A[t.parentLocale]._config;else{if(null==(n=dt(t.parentLocale)))return ut[t.parentLocale]||(ut[t.parentLocale]=[]),ut[t.parentLocale].push({name:e,config:t}),null;r=n._config}return A[e]=new ee(Q(r,t)),ut[e]&&ut[e].forEach(function(e){ft(e.name,e.config)}),mt(e),A[e]}function D(e){var t;if(!(e=e&&e._locale&&e._locale._abbr?e._locale._abbr:e))return at;if(!s(e)){if(t=dt(e))return t;e=[e]}return ht(e)}function pt(e){var t=e._a;return t&&-2===g(e).overflow&&(t=t[E]<0||11<t[E]?E:t[k]<1||t[k]>Fe(t[x],t[E])?k:t[C]<0||24<t[C]||24===t[C]&&(0!==t[M]||0!==t[$]||0!==t[Ae])?C:t[M]<0||59<t[M]?M:t[$]<0||59<t[$]?$:t[Ae]<0||999<t[Ae]?Ae:-1,g(e)._overflowDayOfYear&&(t<x||k<t)&&(t=k),g(e)._overflowWeeks&&-1===t&&(t=De),g(e)._overflowWeekday&&-1===t&&(t=Oe),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]],wt=[["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/]],_t=/^\/?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 xt(e){var t,n,r,i,o,s,a=e._i,l=gt.exec(a)||yt.exec(a),a=vt.length,u=wt.length;if(l){for(g(e).iso=!0,t=0,n=a;t<n;t++)if(vt[t][1].exec(l[1])){i=vt[t][0],r=!1!==vt[t][2];break}if(null==i)return e._isValid=!1;if(l[3]){for(t=0,n=u;t<n;t++)if(wt[t][1].exec(l[3])){o=(l[2]||" ")+wt[t][0];break}if(null==o)return e._isValid=!1}if(!r&&null!=o)return e._isValid=!1;if(l[4]){if(!bt.exec(l[4]))return e._isValid=!1;s="Z"}e._f=i+(o||"")+(s||""),$t(e)}else e._isValid=!1}function Et(e,t,n,r,i,o){e=[function(e){e=parseInt(e,10);return e<=49?2e3+e:e<=999?1900+e:e}(e),Ne.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return o&&e.push(parseInt(o,10)),e}function kt(e){var t,n,r,i,o=Tt.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));o?(t=Et(o[4],o[3],o[2],o[5],o[6],o[7]),n=o[1],r=t,i=e,n&&qe.indexOf(n)!==new Date(r[0],r[1],r[2]).getDay()?(g(i).weekdayMismatch=!0,i._isValid=!1):(e._a=t,e._tzm=(n=o[8],r=o[9],i=o[10],n?St[n]:r?0:((n=parseInt(i,10))-(r=n%100))/100*60+r),e._d=We.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),g(e).rfc2822=!0)):e._isValid=!1}function Ct(e,t,n){return null!=e?e:null!=t?t:n}function Mt(e){var t,n,r,i,o,s,a,l,u,c,h,d=[];if(!e._d){for(c=e,h=new Date(f.now()),n=c._useUTC?[h.getUTCFullYear(),h.getUTCMonth(),h.getUTCDate()]:[h.getFullYear(),h.getMonth(),h.getDate()],e._w&&null==e._a[k]&&null==e._a[E]&&(null!=(h=(c=e)._w).GG||null!=h.W||null!=h.E?(s=1,a=4,r=Ct(h.GG,c._a[x],Ze(O(),1,4).year),i=Ct(h.W,1),((o=Ct(h.E,1))<1||7<o)&&(l=!0)):(s=c._locale._week.dow,a=c._locale._week.doy,u=Ze(O(),s,a),r=Ct(h.gg,c._a[x],u.year),i=Ct(h.w,u.week),null!=h.d?((o=h.d)<0||6<o)&&(l=!0):null!=h.e?(o=h.e+s,(h.e<0||6<h.e)&&(l=!0)):o=s),i<1||i>P(r,s,a)?g(c)._overflowWeeks=!0:null!=l?g(c)._overflowWeekday=!0:(u=Je(r,i,o,s,a),c._a[x]=u.year,c._dayOfYear=u.dayOfYear)),null!=e._dayOfYear&&(h=Ct(e._a[x],n[x]),(e._dayOfYear>je(h)||0===e._dayOfYear)&&(g(e)._overflowDayOfYear=!0),l=We(h,0,e._dayOfYear),e._a[E]=l.getUTCMonth(),e._a[k]=l.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=d[t]=n[t];for(;t<7;t++)e._a[t]=d[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[C]&&0===e._a[M]&&0===e._a[$]&&0===e._a[Ae]&&(e._nextDay=!0,e._a[C]=0),e._d=(e._useUTC?We:Ge).apply(null,d),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[C]=24),e._w&&void 0!==e._w.d&&e._w.d!==r&&(g(e).weekdayMismatch=!0)}}function $t(e){if(e._f!==f.ISO_8601)if(e._f!==f.RFC_2822){e._a=[],g(e).empty=!0;for(var t,n,r,i=""+e._i,o=i.length,s=0,a=(n=ae(e._f,e._locale).match(ne)||[]).length,l=0;l<a;l++)r=n[l],(t=(i.match(Ce(r,e))||[])[0])&&(0<(h=i.substr(0,i.indexOf(t))).length&&g(e).unusedInput.push(h),i=i.slice(i.indexOf(t)+t.length),s+=t.length),oe[r]?(t?g(e).empty=!1:g(e).unusedTokens.push(r),h=r,m=e,null!=(d=t)&&p($e,h)&&$e[h](d,m._a,m,h)):e._strict&&!t&&g(e).unusedTokens.push(r);g(e).charsLeftOver=o-s,0<i.length&&g(e).unusedInput.push(i),e._a[C]<=12&&!0===g(e).bigHour&&0<e._a[C]&&(g(e).bigHour=void 0),g(e).parsedDateParts=e._a.slice(0),g(e).meridiem=e._meridiem,e._a[C]=(o=e._locale,u=e._a[C],null==(c=e._meridiem)?u:null!=o.meridiemHour?o.meridiemHour(u,c):null!=o.isPM?((o=o.isPM(c))&&u<12&&(u+=12),u=o||12!==u?u:0):u),null!==(c=g(e).era)&&(e._a[x]=e._locale.erasConvertYear(c,e._a[x])),Mt(e),pt(e)}else kt(e);else xt(e);var u,c,h,d,m}function Pt(e){var t,n=e._i,r=e._f;{var i,o;return(e._locale=e._locale||D(e._l),null===n||void 0===r&&""===n)?Y({nullInput:!0}):("string"==typeof n&&(e._i=n=e._locale.preparse(n)),l(n)?new Z(pt(n)):(I(n)?e._d=n:s(r)?function(e){var t,n,r,i,o,s,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++)o=0,s=!1,t=J({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[i],$t(t),j(t)&&(s=!0),o=(o+=g(t).charsLeftOver)+10*g(t).unusedTokens.length,g(t).score=o,a?o<r&&(r=o,n=t):(null==r||o<r||s)&&(r=o,n=t,s)&&(a=!0);U(e,n||t)}(e):r?$t(e):a(r=(n=e)._i)?n._d=new Date(f.now()):I(r)?n._d=new Date(r.valueOf()):"string"==typeof r?(i=n,null===(o=_t.exec(i._i))?(xt(i),!1===i._isValid&&(delete i._isValid,kt(i),!1===i._isValid)&&(delete i._isValid,i._strict?i._isValid=!1:f.createFromInputFallback(i))):i._d=new Date(+o[1])):s(r)?(n._a=z(r.slice(0),function(e){return parseInt(e,10)}),Mt(n)):R(r)?(i=n)._d||(t=void 0===(o=ue(i._i)).day?o.date:o.day,i._a=z([o.year,o.month,t,o.hour,o.minute,o.second,o.millisecond],function(e){return e&&parseInt(e,10)}),Mt(i)):L(r)?n._d=new Date(r):f.createFromInputFallback(n),j(e)||(e._d=null),e))}}function At(e,t,n,r,i){var o={};return!0!==t&&!1!==t||(r=t,t=void 0),!0!==n&&!1!==n||(r=n,n=void 0),(R(e)&&H(e)||s(e)&&0===e.length)&&(e=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=i,o._l=n,o._i=e,o._f=t,o._strict=r,(i=new Z(pt(Pt(i=o))))._nextDay&&(i.add(1,"d"),i._nextDay=void 0),i}function O(e,t,n,r){return At(e,t,n,r,!1)}f.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":""))}),f.ISO_8601=function(){},f.RFC_2822=function(){};be=e("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Y()}),ve=e("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=O.apply(null,arguments);return this.isValid()&&e.isValid()?this<e?this:e:Y()});function Dt(e,t){var n,r;if(!(t=1===t.length&&s(t[0])?t[0]:t).length)return O();for(n=t[0],r=1;r<t.length;++r)t[r].isValid()&&!t[r][e](n)||(n=t[r]);return n}var Ot=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ft(e){var e=ue(e),t=e.year||0,n=e.quarter||0,r=e.month||0,i=e.week||e.isoWeek||0,o=e.day||0,s=e.hour||0,a=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(e){var t,n,r=!1,i=Ot.length;for(t in e)if(p(e,t)&&(-1===S.call(Ot,t)||null!=e[t]&&isNaN(e[t])))return!1;for(n=0;n<i;++n)if(e[Ot[n]]){if(r)return!1;parseFloat(e[Ot[n]])!==m(e[Ot[n]])&&(r=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*a+1e3*s*60*60,this._days=+o+7*i,this._months=+r+3*n+12*t,this._data={},this._locale=D(),this._bubble()}function Bt(e){return e instanceof Ft}function Nt(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function Rt(e,n){r(e,0,0,function(){var e=this.utcOffset(),t="+";return e<0&&(e=-e,t="-"),t+o(~~(e/60),2)+n+o(~~e%60,2)})}Rt("Z",":"),Rt("ZZ",""),w("Z",ke),w("ZZ",ke),T(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=Lt(ke,e)});var Ht=/([\+\-]|\d\d)/gi;function Lt(e,t){var t=(t||"").match(e);return null===t?null:0===(t=60*(e=((t[t.length-1]||[])+"").match(Ht)||["-",0,0])[1]+m(e[2]))?0:"+"===e[0]?t:-t}function It(e,t){var n;return t._isUTC?(t=t.clone(),n=(l(e)||I(e)?e:O(e)).valueOf()-t.valueOf(),t._d.setTime(t._d.valueOf()+n),f.updateOffset(t,!1),t):O(e).local()}function zt(e){return-Math.round(e._d.getTimezoneOffset())}function Ut(){return!!this.isValid()&&this._isUTC&&0===this._offset}f.updateOffset=function(){};var jt=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Yt=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function F(e,t){var n,r,i=e;return Bt(e)?i={ms:e._milliseconds,d:e._days,M:e._months}:L(e)||!isNaN(+e)?(i={},t?i[t]=+e:i.milliseconds=+e):(t=jt.exec(e))?(n="-"===t[1]?-1:1,i={y:0,d:m(t[k])*n,h:m(t[C])*n,m:m(t[M])*n,s:m(t[$])*n,ms:m(Nt(1e3*t[Ae]))*n}):(t=Yt.exec(e))?(n="-"===t[1]?-1:1,i={y:Gt(t[2],n),M:Gt(t[3],n),w:Gt(t[4],n),d:Gt(t[5],n),h:Gt(t[6],n),m:Gt(t[7],n),s:Gt(t[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(t=O(i.from),n=O(i.to),t=t.isValid()&&n.isValid()?(n=It(n,t),t.isBefore(n)?r=Wt(t,n):((r=Wt(n,t)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(i={}).ms=t.milliseconds,i.M=t.months),r=new Ft(i),Bt(e)&&p(e,"_locale")&&(r._locale=e._locale),Bt(e)&&p(e,"_isValid")&&(r._isValid=e._isValid),r}function Gt(e,t){e=e&&parseFloat(e.replace(",","."));return(isNaN(e)?0:e)*t}function Wt(e,t){var n={};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Vt(r,i){return function(e,t){var n;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."),n=e,e=t,t=n),Jt(this,F(e,t),r),this}}function Jt(e,t,n,r){var i=t._milliseconds,o=Nt(t._days),t=Nt(t._months);e.isValid()&&(r=null==r||r,t&&Ie(e,me(e,"Month")+t*n),o&&fe(e,"Date",me(e,"Date")+o*n),i&&e._d.setTime(e._d.valueOf()+i*n),r)&&f.updateOffset(e,o||t)}F.fn=Ft.prototype,F.invalid=function(){return F(NaN)};Be=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)||L(e)||(n=s(t=e),r=!1,n&&(r=0===t.filter(function(e){return!L(e)&&Zt(t)}).length),n&&r)||function(e){var t,n,r=R(e)&&!H(e),i=!1,o=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=o.length;for(t=0;t<s;t+=1)n=o[t],i=i||p(e,n);return r&&i}(e)||null==e;var t,n,r}function Kt(e,t){var n,r;return e.date()<t.date()?-Kt(t,e):-((n=12*(t.year()-e.year())+(t.month()-e.month()))+(t-(r=e.clone().add(n,"months"))<0?(t-r)/(r-e.clone().add(n-1,"months")):(t-r)/(e.clone().add(1+n,"months")-r)))||0}function qt(e){return void 0===e?this._locale._abbr:(null!=(e=D(e))&&(this._locale=e),this)}f.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",f.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 en=126227808e5;function tn(e,t){return(e%t+t)%t}function nn(e,t,n){return e<100&&0<=e?new Date(e+400,t,n)-en:new Date(e,t,n).valueOf()}function rn(e,t,n){return e<100&&0<=e?Date.UTC(e+400,t,n)-en:Date.UTC(e,t,n)}function on(e,t){return t.erasAbbrRegex(e)}function sn(){for(var e=[],t=[],n=[],r=[],i=this.eras(),o=0,s=i.length;o<s;++o)t.push(_(i[o].name)),e.push(_(i[o].abbr)),n.push(_(i[o].narrow)),r.push(_(i[o].name)),r.push(_(i[o].abbr)),r.push(_(i[o].narrow));this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}function an(e,t){r(0,[e,e.length],0,t)}function ln(e,t,n,r,i){var o;return null==e?Ze(this,r,i).year:(t>(o=P(e,r,i))&&(t=o),function(e,t,n,r,i){e=Je(e,t,n,r,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,n,r,i))}r("N",0,0,"eraAbbr"),r("NN",0,0,"eraAbbr"),r("NNN",0,0,"eraAbbr"),r("NNNN",0,0,"eraName"),r("NNNNN",0,0,"eraNarrow"),r("y",["y",1],"yo","eraYear"),r("y",["yy",2],0,"eraYear"),r("y",["yyy",3],0,"eraYear"),r("y",["yyyy",4],0,"eraYear"),w("N",on),w("NN",on),w("NNN",on),w("NNNN",function(e,t){return t.erasNameRegex(e)}),w("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),T(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){r=n._locale.erasParse(e,r,n._strict);r?g(n).era=r:g(n).invalidEra=e}),w("y",Se),w("yy",Se),w("yyy",Se),w("yyyy",Se),w("yo",function(e,t){return t._eraYearOrdinalRegex||Se}),T(["y","yy","yyy","yyyy"],x),T(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[x]=n._locale.eraYearOrdinalParse(e,i):t[x]=parseInt(e,10)}),r(0,["gg",2],0,function(){return this.weekYear()%100}),r(0,["GG",2],0,function(){return this.isoWeekYear()%100}),an("gggg","weekYear"),an("ggggg","weekYear"),an("GGGG","isoWeekYear"),an("GGGGG","isoWeekYear"),t("weekYear","gg"),t("isoWeekYear","GG"),n("weekYear",1),n("isoWeekYear",1),w("G",xe),w("g",xe),w("GG",b,y),w("gg",b,y),w("GGGG",_e,ge),w("gggg",_e,ge),w("GGGGG",Te,ye),w("ggggg",Te,ye),Pe(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=m(e)}),Pe(["gg","GG"],function(e,t,n,r){t[r]=f.parseTwoDigitYear(e)}),r("Q",0,"Qo","quarter"),t("quarter","Q"),n("quarter",7),w("Q",i),T("Q",function(e,t){t[E]=3*(m(e)-1)}),r("D",["DD",2],"Do","date"),t("date","D"),n("date",9),w("D",b),w("DD",b,y),w("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),T(["D","DD"],k),T("Do",function(e,t){t[k]=m(e.match(b)[0])});_e=de("Date",!0);r("DDD",["DDDD",3],"DDDo","dayOfYear"),t("dayOfYear","DDD"),n("dayOfYear",4),w("DDD",we),w("DDDD",pe),T(["DDD","DDDD"],function(e,t,n){n._dayOfYear=m(e)}),r("m",["mm",2],0,"minute"),t("minute","m"),n("minute",14),w("m",b),w("mm",b,y),T(["m","mm"],M);ge=de("Minutes",!1);r("s",["ss",2],0,"second"),t("second","s"),n("second",15),w("s",b),w("ss",b,y),T(["s","ss"],$);var un,Te=de("Seconds",!1);for(r("S",0,0,function(){return~~(this.millisecond()/100)}),r(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),r(0,["SSS",3],0,"millisecond"),r(0,["SSSS",4],0,function(){return 10*this.millisecond()}),r(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),r(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),r(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),r(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),r(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),t("millisecond","ms"),n("millisecond",16),w("S",we,i),w("SS",we,y),w("SSS",we,pe),un="SSSS";un.length<=9;un+="S")w(un,Se);function cn(e,t){t[Ae]=m(1e3*("0."+e))}for(un="S";un.length<=9;un+="S")T(un,cn);ye=de("Milliseconds",!1),r("z",0,0,"zoneAbbr"),r("zz",0,0,"zoneName");i=Z.prototype;function hn(e){return e}i.add=Be,i.calendar=function(e,t){1===arguments.length&&(arguments[0]?Xt(arguments[0])?(e=arguments[0],t=void 0):function(e){for(var t=R(e)&&!H(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i=0;i<r.length;i+=1)n=n||p(e,r[i]);return t&&n}(arguments[0])&&(t=arguments[0],e=void 0):t=e=void 0);var e=e||O(),n=It(e,this).startOf("day"),n=f.calendarFormat(this,n)||"sameElse",t=t&&(c(t[n])?t[n].call(this,e):t[n]);return this.format(t||this.localeData().calendar(n,this,O(e)))},i.clone=function(){return new Z(this)},i.diff=function(e,t,n){var r,i,o;if(!this.isValid())return NaN;if(!(r=It(e,this)).isValid())return NaN;switch(i=6e4*(r.utcOffset()-this.utcOffset()),t=h(t)){case"year":o=Kt(this,r)/12;break;case"month":o=Kt(this,r);break;case"quarter":o=Kt(this,r)/3;break;case"second":o=(this-r)/1e3;break;case"minute":o=(this-r)/6e4;break;case"hour":o=(this-r)/36e5;break;case"day":o=(this-r-i)/864e5;break;case"week":o=(this-r-i)/6048e5;break;default:o=this-r}return n?o:d(o)},i.endOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=36e5-tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":t=this._d.valueOf(),t+=6e4-tn(t,6e4)-1;break;case"second":t=this._d.valueOf(),t+=1e3-tn(t,1e3)-1}this._d.setTime(t),f.updateOffset(this,!0)}return this},i.format=function(e){return e=e||(this.isUtc()?f.defaultFormatUtc:f.defaultFormat),e=se(this,e),this.localeData().postformat(e)},i.from=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||O(e).isValid())?F({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.fromNow=function(e){return this.from(O(),e)},i.to=function(e,t){return this.isValid()&&(l(e)&&e.isValid()||O(e).isValid())?F({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},i.toNow=function(e){return this.to(O(),e)},i.get=function(e){return c(this[e=h(e)])?this[e]():this},i.invalidAt=function(){return g(this).overflow},i.isAfter=function(e,t){return e=l(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()>e.valueOf():e.valueOf()<this.clone().startOf(t).valueOf())},i.isBefore=function(e,t){return e=l(e)?e:O(e),!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(t)||"millisecond")?this.valueOf()<e.valueOf():this.clone().endOf(t).valueOf()<e.valueOf())},i.isBetween=function(e,t,n,r){return e=l(e)?e:O(e),t=l(t)?t:O(t),!!(this.isValid()&&e.isValid()&&t.isValid())&&("("===(r=r||"()")[0]?this.isAfter(e,n):!this.isBefore(e,n))&&(")"===r[1]?this.isBefore(t,n):!this.isAfter(t,n))},i.isSame=function(e,t){var e=l(e)?e:O(e);return!(!this.isValid()||!e.isValid())&&("millisecond"===(t=h(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 j(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 n=function(e){var t,n=[];for(t in e)p(e,t)&&n.push({unit:t,priority:ce[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}(e=ue(e)),r=n.length,i=0;i<r;i++)this[n[i].unit](e[n[i].unit]);else if(c(this[e=h(e)]))return this[e](t);return this},i.startOf=function(e){var t,n;if(void 0!==(e=h(e))&&"millisecond"!==e&&this.isValid()){switch(n=this._isUTC?rn:nn,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=tn(t+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":t=this._d.valueOf(),t-=tn(t,6e4);break;case"second":t=this._d.valueOf(),t-=tn(t,1e3)}this._d.setTime(t),f.updateOffset(this,!0)}return 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){var t;return this.isValid()?(t=(e=!0!==e)?this.clone().utc():this).year()<0||9999<t.year()?se(t,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):c(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",se(t,"Z")):se(t,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ"):null},i.inspect=function(){var e,t,n;return this.isValid()?(t="moment",n="",this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+t+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+(n+'[")]'))):"moment.invalid(/* "+this._i+" */)"},"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(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].name;if(t[n].until<=e&&e<=t[n].since)return t[n].name}return""},i.eraNarrow=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].narrow;if(t[n].until<=e&&e<=t[n].since)return t[n].narrow}return""},i.eraAbbr=function(){for(var e,t=this.localeData().eras(),n=0,r=t.length;n<r;++n){if(e=this.clone().startOf("day").valueOf(),t[n].since<=e&&e<=t[n].until)return t[n].abbr;if(t[n].until<=e&&e<=t[n].since)return t[n].abbr}return""},i.eraYear=function(){for(var e,t,n=this.localeData().eras(),r=0,i=n.length;r<i;++r)if(e=n[r].since<=n[r].until?1:-1,t=this.clone().startOf("day").valueOf(),n[r].since<=t&&t<=n[r].until||n[r].until<=t&&t<=n[r].since)return(this.year()-f(n[r].since).year())*e+n[r].offset;return this.year()},i.year=Ye,i.isLeapYear=function(){return he(this.year())},i.weekYear=function(e){return ln.call(this,e,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},i.isoWeekYear=function(e){return ln.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=ze,i.daysInMonth=function(){return Fe(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 P(this.year(),e.dow,e.doy)},i.weeksInWeekYear=function(){var e=this.localeData()._week;return P(this.weekYear(),e.dow,e.doy)},i.isoWeeksInYear=function(){return P(this.year(),1,4)},i.isoWeeksInISOWeekYear=function(){return P(this.isoWeekYear(),1,4)},i.date=_e,i.day=i.days=function(e){var t,n,r;return this.isValid()?(t=this._isUTC?this._d.getUTCDay():this._d.getDay(),null!=e?(n=e,r=this.localeData(),e="string"!=typeof n?n:isNaN(n)?"number"==typeof(n=r.weekdaysParse(n))?n:null:parseInt(n,10),this.add(e-t,"d")):t):null!=e?this:NaN},i.weekday=function(e){var t;return this.isValid()?(t=(this.day()+7-this.localeData()._week.dow)%7,null==e?t:this.add(e-t,"d")):null!=e?this:NaN},i.isoWeekday=function(e){var t,n;return this.isValid()?null!=e?(t=e,n=this.localeData(),n="string"==typeof t?n.weekdaysParse(t)%7||7:isNaN(t)?null:t,this.day(this.day()%7?n:n-7)):this.day()||7:null!=e?this:NaN},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,n){var r,i=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?i:zt(this);if("string"==typeof e){if(null===(e=Lt(ke,e)))return this}else Math.abs(e)<16&&!n&&(e*=60);return!this._isUTC&&t&&(r=zt(this)),this._offset=e,this._isUTC=!0,null!=r&&this.add(r,"m"),i!==e&&(!t||this._changeInProgress?Jt(this,F(e-i,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,f.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(zt(this),"m"),this},i.parseZone=function(){var e;return null!=this._tzm?this.utcOffset(this._tzm,!1,!0):"string"==typeof this._i&&(null!=(e=Lt(Ee,this._i))?this.utcOffset(e):this.utcOffset(0,!0)),this},i.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?O(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.",_e),i.months=e("months accessor is deprecated. Use month instead",ze),i.years=e("years accessor is deprecated. Use year instead",Ye),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(){var e,t;return a(this._isDSTShifted)&&(J(t={},this),(t=Pt(t))._a?(e=(t._isUTC?u:O)(t._a),this._isDSTShifted=this.isValid()&&0<function(e,t,n){for(var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),o=0,s=0;s<r;s++)(n&&e[s]!==t[s]||!n&&m(e[s])!==m(t[s]))&&o++;return o+i}(t._a,e.toArray())):this._isDSTShifted=!1),this._isDSTShifted});y=ee.prototype;function dn(e,t,n,r){var i=D(),r=u().set(r,t);return i[n](r,e)}function mn(e,t,n){if(L(e)&&(t=e,e=void 0),e=e||"",null!=t)return dn(e,t,n,"month");for(var r=[],i=0;i<12;i++)r[i]=dn(e,i,n,"month");return r}function fn(e,t,n,r){t=("boolean"==typeof e||(n=t=e,e=!1),L(t)&&(n=t,t=void 0),t||"");var i,o=D(),s=e?o._week.dow:0,a=[];if(null!=n)return dn(t,(n+s)%7,r,"day");for(i=0;i<7;i++)a[i]=dn(t,(i+s)%7,r,"day");return a}y.calendar=function(e,t,n){return c(e=this._calendar[e]||this._calendar.sameElse)?e.call(t,n):e},y.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(ne).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=hn,y.postformat=hn,y.relativeTime=function(e,t,n,r){var i=this._relativeTime[n];return c(i)?i(e,t,n,r):i.replace(/%d/i,e)},y.pastFuture=function(e,t){return c(e=this._relativeTime[0<e?"future":"past"])?e(t):e.replace(/%s/i,t)},y.set=function(e){var t,n;for(n in e)p(e,n)&&(c(t=e[n])?this[n]=t:this["_"+n]=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 n,r=this._eras||D("en")._eras,i=0,o=r.length;i<o;++i)switch("string"==typeof r[i].since&&(n=f(r[i].since).startOf("day"),r[i].since=n.valueOf()),typeof r[i].until){case"undefined":r[i].until=1/0;break;case"string":n=f(r[i].until).startOf("day").valueOf(),r[i].until=n.valueOf()}return r},y.erasParse=function(e,t,n){var r,i,o,s,a,l=this.eras();for(e=e.toUpperCase(),r=0,i=l.length;r<i;++r)if(o=l[r].name.toUpperCase(),s=l[r].abbr.toUpperCase(),a=l[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return l[r];break;case"NNNN":if(o===e)return l[r];break;case"NNNNN":if(a===e)return l[r]}else if(0<=[o,s,a].indexOf(e))return l[r]},y.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?f(e.since).year():f(e.since).year()+(t-e.offset)*n},y.erasAbbrRegex=function(e){return p(this,"_erasAbbrRegex")||sn.call(this),e?this._erasAbbrRegex:this._erasRegex},y.erasNameRegex=function(e){return p(this,"_erasNameRegex")||sn.call(this),e?this._erasNameRegex:this._erasRegex},y.erasNarrowRegex=function(e){return p(this,"_erasNarrowRegex")||sn.call(this),e?this._erasNarrowRegex:this._erasRegex},y.months=function(e,t){return e?(s(this._months)?this._months:this._months[(this._months.isFormat||Re).test(t)?"format":"standalone"])[e.month()]:s(this._months)?this._months:this._months.standalone},y.monthsShort=function(e,t){return e?(s(this._monthsShort)?this._monthsShort:this._monthsShort[Re.test(t)?"format":"standalone"])[e.month()]:s(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},y.monthsParse=function(e,t,n){var r,i;if(this._monthsParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)o=u([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(o,"").toLocaleLowerCase();return n?"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,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=u([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[r]||(i="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[r].test(e))return r;if(n&&"MMM"===t&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}},y.monthsRegex=function(e){return this._monthsParseExact?(p(this,"_monthsRegex")||Ue.call(this),e?this._monthsStrictRegex:this._monthsRegex):(p(this,"_monthsRegex")||(this._monthsRegex=Le),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=He),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=s(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,n){var r,i;if(this._weekdaysParseExact)return function(e,t,n){var r,i,o,e=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)o=u([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(o,"").toLocaleLowerCase();return n?"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,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=u([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[r].test(e))return r;if(n&&"ddd"===t&&this._shortWeekdaysParse[r].test(e))return r;if(n&&"dd"===t&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}},y.weekdaysRegex=function(e){return this._weekdaysParseExact?(p(this,"_weekdaysRegex")||rt.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")||rt.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")||rt.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(p(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=nt),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},y.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},y.meridiem=function(e,t,n){return 11<e?n?"pm":"PM":n?"am":"AM"},mt("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===m(e%100/10)?"th":1==t?"st":2==t?"nd":3==t?"rd":"th")}}),f.lang=e("moment.lang is deprecated. Use moment.locale instead.",mt),f.langData=e("moment.langData is deprecated. Use moment.localeData instead.",D);var pn=Math.abs;function gn(e,t,n,r){t=F(t,n);return e._milliseconds+=r*t._milliseconds,e._days+=r*t._days,e._months+=r*t._months,e._bubble()}function yn(e){return e<0?Math.floor(e):Math.ceil(e)}function bn(e){return 4800*e/146097}function vn(e){return 146097*e/4800}function wn(e){return function(){return this.as(e)}}we=wn("ms"),pe=wn("s"),Be=wn("m"),ve=wn("h"),be=wn("d"),Ke=wn("w"),v=wn("M"),ge=wn("Q"),Te=wn("y");function _n(e){return function(){return this.isValid()?this._data[e]:NaN}}var ye=_n("milliseconds"),_e=_n("seconds"),Ye=_n("minutes"),y=_n("hours"),Tn=_n("days"),Sn=_n("months"),xn=_n("years");var En=Math.round,kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Cn(e,t,n,r){var i=F(e).abs(),o=En(i.as("s")),s=En(i.as("m")),a=En(i.as("h")),l=En(i.as("d")),u=En(i.as("M")),c=En(i.as("w")),i=En(i.as("y")),o=(o<=n.ss?["s",o]:o<n.s&&["ss",o])||(s<=1?["m"]:s<n.m&&["mm",s])||(a<=1?["h"]:a<n.h&&["hh",a])||(l<=1?["d"]:l<n.d&&["dd",l]);return(o=(o=null!=n.w?o||(c<=1?["w"]:c<n.w&&["ww",c]):o)||(u<=1?["M"]:u<n.M&&["MM",u])||(i<=1?["y"]:["yy",i]))[2]=t,o[3]=0<+e,o[4]=r,function(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}.apply(null,o)}var Mn=Math.abs;function $n(e){return(0<e)-(e<0)||+e}function Pn(){var e,t,n,r,i,o,s,a,l,u,c;return this.isValid()?(a=Mn(this._milliseconds)/1e3,l=Mn(this._days),u=Mn(this._months),(c=this.asSeconds())?(e=d(a/60),t=d(e/60),a%=60,e%=60,n=d(u/12),u%=12,r=a?a.toFixed(3).replace(/\.?0+$/,""):"",i=$n(this._months)!==$n(c)?"-":"",o=$n(this._days)!==$n(c)?"-":"",s=$n(this._milliseconds)!==$n(c)?"-":"",(c<0?"-":"")+"P"+(n?i+n+"Y":"")+(u?i+u+"M":"")+(l?o+l+"D":"")+(t||e||a?"T":"")+(t?s+t+"H":"")+(e?s+e+"M":"")+(a?s+r+"S":"")):"P0D"):this.localeData().invalidDate()}var B=Ft.prototype;return B.isValid=function(){return this._isValid},B.abs=function(){var e=this._data;return this._milliseconds=pn(this._milliseconds),this._days=pn(this._days),this._months=pn(this._months),e.milliseconds=pn(e.milliseconds),e.seconds=pn(e.seconds),e.minutes=pn(e.minutes),e.hours=pn(e.hours),e.months=pn(e.months),e.years=pn(e.years),this},B.add=function(e,t){return gn(this,e,t,1)},B.subtract=function(e,t){return gn(this,e,t,-1)},B.as=function(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if("month"===(e=h(e))||"quarter"===e||"year"===e)switch(t=this._days+r/864e5,n=this._months+bn(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(vn(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return 24*t+r/36e5;case"minute":return 1440*t+r/6e4;case"second":return 86400*t+r/1e3;case"millisecond":return Math.floor(864e5*t)+r;default:throw new Error("Unknown unit "+e)}},B.asMilliseconds=we,B.asSeconds=pe,B.asMinutes=Be,B.asHours=ve,B.asDays=be,B.asWeeks=Ke,B.asMonths=v,B.asQuarters=ge,B.asYears=Te,B.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*m(this._months/12):NaN},B._bubble=function(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data;return 0<=e&&0<=t&&0<=n||e<=0&&t<=0&&n<=0||(e+=864e5*yn(vn(n)+t),n=t=0),r.milliseconds=e%1e3,e=d(e/1e3),r.seconds=e%60,e=d(e/60),r.minutes=e%60,e=d(e/60),r.hours=e%24,t+=d(e/24),n+=e=d(bn(t)),t-=yn(vn(e)),e=d(n/12),n%=12,r.days=t,r.months=n,r.years=e,this},B.clone=function(){return F(this)},B.get=function(e){return e=h(e),this.isValid()?this[e+"s"]():NaN},B.milliseconds=ye,B.seconds=_e,B.minutes=Ye,B.hours=y,B.days=Tn,B.weeks=function(){return d(this.days()/7)},B.months=Sn,B.years=xn,B.humanize=function(e,t){var n,r;return this.isValid()?(n=!1,r=kn,"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(n=e),"object"==typeof t&&(r=Object.assign({},kn,t),null!=t.s)&&null==t.ss&&(r.ss=t.s-1),t=Cn(this,!n,r,e=this.localeData()),n&&(t=e.pastFuture(+this,t)),e.postformat(t)):this.localeData().invalidDate()},B.toISOString=Pn,B.toString=Pn,B.toJSON=Pn,B.locale=qt,B.localeData=Qt,B.toIsoString=e("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Pn),B.lang=Qe,r("X",0,0,"unix"),r("x",0,0,"valueOf"),w("x",xe),w("X",/[+-]?\d+(\.\d{1,3})?/),T("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),T("x",function(e,t,n){n._d=new Date(m(e))}),f.version="2.29.4",N=O,f.fn=i,f.min=function(){return Dt("isBefore",[].slice.call(arguments,0))},f.max=function(){return Dt("isAfter",[].slice.call(arguments,0))},f.now=function(){return Date.now?Date.now():+new Date},f.utc=u,f.unix=function(e){return O(1e3*e)},f.months=function(e,t){return mn(e,t,"months")},f.isDate=I,f.locale=mt,f.invalid=Y,f.duration=F,f.isMoment=l,f.weekdays=function(e,t,n){return fn(e,t,n,"weekdays")},f.parseZone=function(){return O.apply(null,arguments).parseZone()},f.localeData=D,f.isDuration=Bt,f.monthsShort=function(e,t){return mn(e,t,"monthsShort")},f.weekdaysMin=function(e,t,n){return fn(e,t,n,"weekdaysMin")},f.defineLocale=ft,f.updateLocale=function(e,t){var n,r;return null!=t?(r=lt,null!=A[e]&&null!=A[e].parentLocale?A[e].set(Q(A[e]._config,t)):(t=Q(r=null!=(n=dt(e))?n._config:r,t),null==n&&(t.abbr=e),(r=new ee(t)).parentLocale=A[e],A[e]=r),mt(e)):null!=A[e]&&(null!=A[e].parentLocale?(A[e]=A[e].parentLocale,e===mt()&&mt(e)):null!=A[e]&&delete A[e]),A[e]},f.locales=function(){return te(A)},f.weekdaysShort=function(e,t,n){return fn(e,t,n,"weekdaysShort")},f.normalizeUnits=h,f.relativeTimeRounding=function(e){return void 0===e?En:"function"==typeof e&&(En=e,!0)},f.relativeTimeThreshold=function(e,t){return void 0!==kn[e]&&(void 0===t?kn[e]:(kn[e]=t,"s"===e&&(kn.ss=t-1),!0))},f.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"},f.prototype=i,f.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"},f}()});function qr(e,t){T(e,t)}const Qr={en:{tournamentsList:{nothing:"Nothing to show here."}},hr:{tournamentsList:{nothing:"Nema ničega za prikazati ovdje."}},"zh-hk":{tournamentsList:{nothing:"這裡沒有什麼可顯示的。"}},fr:{tournamentsList:{nothing:"Rien à montrer ici."}},ro:{tournamentsList:{nothing:"Niciun turneu disponibil aici."}},tr:{tournamentsList:{nothing:"Burada gösterilecek bir şey yok."}},el:{tournamentsList:{nothing:"Δεν υπάρχει τίποτα εδώ."}},es:{tournamentsList:{nothing:"Nada que mostrar aquí."}},hu:{tournamentsList:{nothing:"Nincs megjelenítendő adat."}},pt:{tournamentsList:{nothing:"Nada para mostrar aqui."}}};function ei(e,t){T(e,t)}const ti={en:{tournamentsThController:{login:"Log in",register:"Register",details:"Details",enrolled:"Enrolled",join:"Join",joinerror:"An error occurred while registering in the tournament, please try again."}},hr:{tournamentsThController:{login:"Prijava",register:"Registracija",details:"Detalji",enrolled:"Upisan",join:"Pridruži se",joinerror:"Došlo je do pogreške prilikom registracije na turnir, molimo pokušajte ponovno."}},"zh-hk":{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 la înregistrarea în turneu, te rugăm să încerci din nou."}},tr:{tournamentsThController:{login:"Giriş yapmak",register:"Kayıt olmak",details:"Detaylar",enrolled:"Katıldın",join:"Katılmak",joinerror:"Turnuvaya kayıt olurken bir hata oluştu, lütfen tekrar deneyin."}},el:{tournamentsThController:{login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",enrolled:"Εγγεγραμμένος",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."}},es:{tournamentsThController:{login:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio"}}};function ni(e,t){T(e,t)}const ri={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hr:{tournamentsThumbnail:{enrolled:"Upisan",scoreCriteria:"Kriterij rezultata",minbet:"Minimalan broj opklada",seegames:"Možete vidjeti igre",here:"ovdje",scheduled:"U tijeku",ongoing:"Završeno",finished:"Počinje u",startingAt:"Počinje u:",startedAt:"Počelo u:",startingAtWithTime:"Počinje {startTime}",startedAtWithTime:"Počelo {startTime}",mostRounds:"Najviše krugova",betCount:"Broj opklada",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",stake:"Ulog",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},"zh-hk":{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",stake:"Turnover",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În curs",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",stake:"Turnover",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Kayıtlı",scoreCriteria:"Puan Kriterleri",minbet:"minimum bahis sayısı",seegames:"Oyunları görebilirsiniz",here:"Burada",scheduled:"planlanmış",ongoing:"devam ediyor",finished:"Bitti",startingAt:"Buradan başlayarak:",startedAt:"Başlangıç:",mostRounds:"En Çok Tur",betCount:"Bahis Sayısı",maxWinStakeRatio:"Bahis Başına Maksimum Kazanç",winStakeRatio:"Bahis Başına Toplam Kazanç",stake:"Devir",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",startingAtWithTime:"{startTime} başlar",startedAtWithTime:"{startTime} başlatıldı"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",stake:"Turnover",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",stake:"Turnover",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{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",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{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:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",stake:"Turnover",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function ii(n){let r,i,o,s,a,l;return{c(){r=D("div"),i=O(n[13]),N(r,"class",o="Status "+n[15]),N(r,"part",s="Status "+n[15])},m(e,t){P(e,r,t),$(r,i),a||(l=U(n[18].call(null,r)),a=!0)},p(e,t){8192&t[0]&&R(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&N(r,"class",o),32768&t[0]&&s!==(s="Status "+e[15])&&N(r,"part",s)},d(e){e&&A(r),a=!1,l()}}}function oi(e){let n,r=e[5]&&si(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),P(e,n,t)},p(e,t){e[5]?r?r.p(e,t):((r=si(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&A(n)}}}function si(e){let n,r,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){n=D("div"),r=O(i),N(n,"class","Enrolled"),N(n,"part","Enrolled")},m(e,t){P(e,n,t),$(n,r)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&R(r,i)},d(e){e&&A(n)}}}function ai(n){let r,i,o,s,a;return{c(){N(r=D("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),N(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),G(r,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){P(e,r,t),s||(a=U(n[18].call(null,r)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"part",o)},d(e){e&&A(r),s=!1,a()}}}function li(n){let r,i,o,s,a;return{c(){N(r=D("div"),"class",i="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),N(r,"part",o="CardImg "+("Closing"==n[0]||"Closed"==n[0]?"CardImgFinished":"")),G(r,"background-image","url('"+n[4]+"')")},m(e,t){P(e,r,t),s||(a=U(n[18].call(null,r)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&N(r,"part",o),16&t[0]&&G(r,"background-image","url('"+e[4]+"')")},d(e){e&&A(r),s=!1,a()}}}function ui(n){let r,i,o,s,a;return{c(){r=D("div"),i=O(n[11]),N(r,"class","Date"),N(r,"part","Date")},m(e,t){P(e,r,t),$(r,i),s||(a=U(o=n[17].call(null,r,n[2])),s=!0)},p(e,t){2048&t[0]&&R(i,e[11]),o&&k(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&A(r),s=!1,a()}}}function ci(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g,y,b,v,w,_,T,S,x=n[16]("tournamentsThumbnail.scoreCriteria")+"",E=n[16]("tournamentsThumbnail.minbet")+"",k=n[16]("tournamentsThumbnail.seegames")+"",C=n[16]("tournamentsThumbnail.here")+"";return{c(){r=D("div"),i=D("p"),o=O(x),s=O(":\n \n "),a=D("span"),l=O(n[14]),u=O("\n ("),c=O(E),h=F(),d=O(n[6]),m=O(")"),f=F(),p=D("div"),g=D("p"),y=O(k),b=F(),v=D("a"),w=O(C),N(a,"part","ScoreCriteriaSpan"),N(i,"part","ScoreCriteriaP"),N(r,"class","ScoreCriteria"),N(r,"part","ScoreCriteria"),N(v,"part","GamesAnchor"),N(v,"href",n[8]),N(v,"target",_="true"===n[9]?"_self":"_blank"),N(g,"part","GamesP"),N(p,"class","Games"),N(p,"part","Games")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(i,s),$(i,a),$(a,l),$(i,u),$(i,c),$(i,h),$(i,d),$(i,m),P(e,f,t),P(e,p,t),$(p,g),$(g,y),$(g,b),$(g,v),$(v,w),T||(S=[U(n[19].call(null,a)),B(v,"click",n[28])],T=!0)},p(e,t){65536&t[0]&&x!==(x=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&R(o,x),16384&t[0]&&R(l,e[14]),65536&t[0]&&E!==(E=e[16]("tournamentsThumbnail.minbet")+"")&&R(c,E),64&t[0]&&R(d,e[6]),65536&t[0]&&k!==(k=e[16]("tournamentsThumbnail.seegames")+"")&&R(y,k),65536&t[0]&&C!==(C=e[16]("tournamentsThumbnail.here")+"")&&R(w,C),256&t[0]&&N(v,"href",e[8]),512&t[0]&&_!==(_="true"===e[9]?"_self":"_blank")&&N(v,"target",_)},d(e){e&&A(r),e&&A(f),e&&A(p),T=!1,M(S)}}}function hi(n){let r,i,o,s,a,l,u,c,h,d=n[0]&&ii(n),m="true"==n[7]&&oi(n);function f(e){return e[4]?li:ai}let p=f(n),g=p(n),y=n[2]&&ui(n),b=n[12]&&ci(n);return{c(){r=D("div"),d&&d.c(),i=F(),m&&m.c(),o=F(),g.c(),s=F(),a=D("div"),l=D("div"),u=O(n[1]),c=F(),y&&y.c(),h=F(),b&&b.c(),this.c=v,N(l,"class","Title"),N(l,"part","Title"),N(a,"class","Details"),N(a,"part","Details"),N(r,"class","Thumbnail"),N(r,"part","Thumbnail")},m(e,t){P(e,r,t),d&&d.m(r,null),$(r,i),m&&m.m(r,null),$(r,o),g.m(r,null),$(r,s),$(r,a),$(a,l),$(l,u),$(a,c),y&&y.m(a,null),$(a,h),b&&b.m(a,null),n[29](r)},p(e,t){e[0]?d?d.p(e,t):((d=ii(e)).c(),d.m(r,i)):d&&(d.d(1),d=null),"true"==e[7]?m?m.p(e,t):((m=oi(e)).c(),m.m(r,o)):m&&(m.d(1),m=null),p===(p=f(e))&&g?g.p(e,t):(g.d(1),(g=p(e))&&(g.c(),g.m(r,s))),2&t[0]&&R(u,e[1]),e[2]?y?y.p(e,t):((y=ui(e)).c(),y.m(a,h)):y&&(y.d(1),y=null),e[12]?b?b.p(e,t):((b=ci(e)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(e){e&&A(r),d&&d.d(),m&&m.d(),g.d(),y&&y.d(),b&&b.d(),n[29](null)}}}function di(t,e,r){let i;se(t,Or,e=>r(16,i=e));let n,{session:o=""}=e,{userid:s=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:d=""}=e,{scorecriteria:m=""}=e,{minbetcount:f=""}=e,{showenrolled:p="false"}=e,{gameurl:g=""}=e,{lang:y="en"}=e,{keepbrowsercontext:b="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{translationurl:_=""}=e,T="",S=!1,x="",E="",k="";Object.keys(ri).forEach(e=>{ni(e,ri[e])});const C=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&r(12,S=!0),e.data.type=="TournamentStatus_"+c)&&r(0,u=e.data.status)},M=()=>{var e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),n=e.getDate(),e=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});r(11,T=n+" "+i("tournamentsThumbnail."+t)+", "+i("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+e)},$=()=>{"Unstarted"==u&&(r(13,x=i("tournamentsThumbnail.scheduled")),r(15,k="StatusUnstarted")),"Running"==u&&(r(13,x=i("tournamentsThumbnail.ongoing")),r(15,k="StatusRunning")),"Closed"!=u&&"Closing"!=u||r(13,x=i("tournamentsThumbnail.finished")),"Closed"==u&&r(15,k="StatusClosed"),"Closing"==u&&r(15,k="StatusClosing")},P=()=>{"BetCount"==m&&r(14,E=i("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==m&&r(14,E=i("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==m&&r(14,E=i("tournamentsThumbnail.winStakeRatio")),"Stake"==m&&r(14,E=i("tournamentsThumbnail.stake"))},A=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};ae(()=>(window.addEventListener("message",C,!1),()=>{window.removeEventListener("message",C)}));return t.$$set=e=>{"session"in e&&r(21,o=e.session),"userid"in e&&r(22,s=e.userid),"title"in e&&r(1,a=e.title),"startdate"in e&&r(2,l=e.startdate),"status"in e&&r(0,u=e.status),"tourid"in e&&r(3,c=e.tourid),"thumbnail"in e&&r(4,h=e.thumbnail),"userenrolled"in e&&r(5,d=e.userenrolled),"scorecriteria"in e&&r(23,m=e.scorecriteria),"minbetcount"in e&&r(6,f=e.minbetcount),"showenrolled"in e&&r(7,p=e.showenrolled),"gameurl"in e&&r(8,g=e.gameurl),"lang"in e&&r(24,y=e.lang),"keepbrowsercontext"in e&&r(9,b=e.keepbrowsercontext),"clientstyling"in e&&r(25,v=e.clientstyling),"clientstylingurl"in e&&r(26,w=e.clientstylingurl),"translationurl"in e&&r(27,_=e.translationurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&n&&v&&((e=document.createElement("style")).innerHTML=v,n.appendChild(e)),67109888&t.$$.dirty[0]&&n&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500)})}var e;134217728&t.$$.dirty[0]&&_&&fetch(_).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ni(e,t[e])})}).catch(e=>{console.log(e)}),2097152&t.$$.dirty[0]&&o&&(0<o.length&&"false"!=o?r(12,S=!0):r(12,S=!1)),1&t.$$.dirty[0]&&u&&$(),16777218&t.$$.dirty[0]&&y&&a&&(e=y,oe.set(e),P(),$(),l)&&M(),4&t.$$.dirty[0]&&l&&M(),8388608&t.$$.dirty[0]&&m&&P()},[u,a,l,c,h,d,f,p,g,b,n,T,S,x,E,k,i,M,$,P,A,o,s,m,y,v,w,_,()=>A(),function(e){ie[e?"unshift":"push"](()=>{n=e,r(10,n)})}]}function mi(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent=':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}',this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},di,hi,n,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),d()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),d()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),d()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),d()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),d()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),d()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),d()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),d()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),d()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[27]}set translationurl(e){this.$$set({translationurl:e}),d()}});const fi={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},hr:{tournamentsDuration:{finished:"Završeno",starting:"Starting in ",left:"preostalo",minutes:"minute",hours:"sati",days:"dana"}},"zh-hk":{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ămase",minutes:"minute",hours:"ore",days:"zile"}},tr:{tournamentsDuration:{finished:"Bitti",starting:"İçinde başlayan",left:"sol",minutes:"dakika",hours:"saat",days:"günler"}},el:{tournamentsDuration:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"}},es:{tournamentsDuration:{finished:"Finalizado",starting:"Iniciando en ",left:"queda",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 pi(n){let r,i,o,s,a,l,u,c,h,d,m,f,p=n[10](n[0])+"",g=n[10](n[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?bi:0<e[5]?yi:gi}let b=y(n),v=b(n);function w(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?_i:0<e[5]?wi:0<e[4]?vi:void 0}let _=w(n),T=_&&_(n);return{c(){r=D("div"),i=D("div"),o=O(p),s=F(),a=D("div"),l=O(g),u=F(),c=D("div"),h=D("div"),v.c(),d=F(),T&&T.c(),N(i,"class","StartDate"),N(i,"part","StartDate"),N(a,"class","EndDate"),N(a,"part","EndDate"),N(r,"class","TournamentDates"),N(r,"part","TournamentDates"),N(h,"class","ProgressBar"),N(h,"part","ProgressBar"),N(c,"class","ProgressBarWrapper"),N(c,"part","ProgressBarWrapper")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(r,s),$(r,a),$(a,l),P(e,u,t),P(e,c,t),$(c,h),v.m(h,null),$(h,d),T&&T.m(h,null),m||(f=U(n[9].call(null,c)),m=!0)},p(e,t){1&t&&p!==(p=e[10](e[0])+"")&&R(o,p),2&t&&g!==(g=e[10](e[1])+"")&&R(l,g),b===(b=y(e))&&v?v.p(e,t):(v.d(1),(v=b(e))&&(v.c(),v.m(h,d))),_===(_=w(e))&&T?T.p(e,t):(T&&T.d(1),(T=_&&_(e))&&(T.c(),T.m(h,null)))},d(e){e&&A(r),e&&A(u),e&&A(c),v.d(),T&&T.d(),m=!1,f()}}}function gi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFill"),N(n,"part","ProgressBarFill"),G(n,"width",e[7]()+"%")},m(e,t){P(e,n,t)},p(e,t){128&t&&G(n,"width",e[7]()+"%")},d(e){e&&A(n)}}}function yi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFillStarting"),N(n,"part","ProgressBarFillStarting")},m(e,t){P(e,n,t)},p:v,d(e){e&&A(n)}}}function bi(e){let n;return{c(){N(n=D("div"),"class","ProgressBarFillEnd"),N(n,"part","ProgressBarFillEnd")},m(e,t){P(e,n,t)},p:v,d(e){e&&A(n)}}}function vi(e){let n,r,i,o,s=e[8]("tournamentsDuration.left")+"";return{c(){n=D("div"),r=O(e[6]),i=F(),o=O(s),N(n,"class","Remaining"),N(n,"part","Remaining")},m(e,t){P(e,n,t),$(n,r),$(n,i),$(n,o)},p(e,t){64&t&&R(r,e[6]),256&t&&s!==(s=e[8]("tournamentsDuration.left")+"")&&R(o,s)},d(e){e&&A(n)}}}function wi(e){let n,r,i,o,s=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){n=D("div"),r=O(s),i=F(),o=O(a),N(n,"class","Remaining"),N(n,"part","Remaining")},m(e,t){P(e,n,t),$(n,r),$(n,i),$(n,o)},p(e,t){256&t&&s!==(s=e[8]("tournamentsDuration.starting")+"")&&R(r,s),32&t&&a!==(a=e[11](e[5])+"")&&R(o,a)},d(e){e&&A(n)}}}function _i(e){let n,r,i=e[8]("tournamentsDuration.finished")+"";return{c(){n=D("div"),r=O(i),N(n,"class","Finished"),N(n,"part","Finished")},m(e,t){P(e,n,t),$(n,r)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&R(r,i)},d(e){e&&A(n)}}}function Ti(n){let r,i=n[0]&&n[1]&&pi(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","TournamentDuration"),N(r,"part","TournamentDuration")},m(e,t){P(e,r,t),i&&i.m(r,null),n[16](r)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=pi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[16](null)}}}function Si(t,e,n){let r,i;se(t,Or,e=>n(8,i=e));let o,{startdate:s=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:d=""}=e,m="",f="",p="";Object.keys(fi).forEach(e=>{mi(e,fi[e])});const g=e=>new Date(e).getTime(),y=(e,t)=>(g(t)-g(e))/6e4,b=()=>{var e=new Date;n(4,m=y(e,a)),n(5,f=y(e,s)),n(6,p=v(m))},v=e=>{var t;return e<1440?[e/60,t=e%60,60*(t-Math.floor(t))].map(e=>{return(e=Math.floor(e))<10?"0"+e:""+e}).join(":"):Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return ae(()=>{const e=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(e)}),t.$$set=e=>{"startdate"in e&&n(0,s=e.startdate),"enddate"in e&&n(1,a=e.enddate),"status"in e&&n(2,l=e.status),"lang"in e&&n(12,u=e.lang),"clientstyling"in e&&n(13,c=e.clientstyling),"clientstylingurl"in e&&n(14,h=e.clientstylingurl),"translationurl"in e&&n(15,d=e.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&n(7,r=()=>{var e,t;return m<=0?100:(t=100/(e=y(s,a)),Math.floor((e-m)*t))}),19&t.$$.dirty&&s&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(m),32768&t.$$.dirty&&d&&fetch(d).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{mi(e,t[e])})}).catch(e=>{console.log(e)}),8200&t.$$.dirty&&o&&c&&((e=document.createElement("style")).innerHTML=c,o.appendChild(e)),16392&t.$$.dirty&&o&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500)})}var e},[s,a,l,o,m,f,p,r,i,b,e=>{var e=new Date(e),t=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${t}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,d,function(e){ie[e?"unshift":"push"](()=>{o=e,n(3,o)})}]}function xi(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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)}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Si,Ti,n,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),d()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),d()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),d()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),d()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[15]}set translationurl(e){this.$$set({translationurl:e}),d()}});const Ei={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},hr:{tournamentsPrizes:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},"zh-hk":{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"位置"}},fr:{tournamentsPrizes:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"}},ro:{tournamentsPrizes:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"}},tr:{tournamentsPrizes:{prizes:"Ödüller",noprizes:"Mevcut ödül yok",place:"yer"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function ki(e,t,n){e=e.slice();return e[13]=t[n],e[15]=n,e}function Ci(t){let r,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=$i(ki(t,i,e));let s=null;return i.length||(s=Mi(t)),{c(){r=D("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),N(r,"class","Prizes"),N(r,"part","Prizes")},m(e,t){P(e,r,t);for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(r,null);s&&s.m(r,null)},p(t,n){if(6&n){let e;for(i=t[1],e=0;e<i.length;e+=1){const s=ki(t,i,e);o[e]?o[e].p(s,n):(o[e]=$i(s),o[e].c(),o[e].m(r,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):((s=Mi(t)).c(),s.m(r,null))}},d(e){e&&A(r),j(o,e),s&&s.d()}}}function Mi(e){let n,r,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){n=D("p"),r=O(i)},m(e,t){P(e,n,t),$(n,r)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&R(r,i)},d(e){e&&A(n)}}}function $i(e){let n,r,i,o,s,a,l,u,c,h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"",d=e[2]("tournamentsPrizes.place")+"",m=e[13].name+"";return{c(){n=D("div"),r=D("p"),i=D("span"),o=O(h),s=F(),a=O(d),l=O(": "),u=O(m),c=F(),N(i,"class","PrizeRank"),N(i,"part","PrizeRank"),N(r,"class","PrizeText"),N(r,"part","PrizeText"),N(n,"class","Prize Prize"+e[15]),N(n,"part","Prize Prize"+e[15])},m(e,t){P(e,n,t),$(n,r),$(r,i),$(i,o),$(r,s),$(r,a),$(r,l),$(r,u),$(n,c)},p(e,t){2&t&&h!==(h=(1<e[13].count?e[13].rank+"~"+(e[13].rank+e[13].count-1):e[13].rank)+"")&&R(o,h),4&t&&d!==(d=e[2]("tournamentsPrizes.place")+"")&&R(a,d),2&t&&m!==(m=e[13].name+"")&&R(u,m)},d(e){e&&A(n)}}}function Pi(n){let r,i,o,s,a,l,u,c=n[2]("tournamentsPrizes.prizes")+"",h=n[1]&&Ci(n);return{c(){r=D("div"),i=D("div"),(o=D("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=F(),a=D("p"),l=O(c),u=F(),h&&h.c(),this.c=v,N(o,"class","TournamentPrizesIconWrapper"),N(o,"part","TournamentPrizesIconWrapper"),N(a,"class","PrizesTitle"),N(a,"part","PrizesTitle"),N(i,"class","TournamentPrizesIconSection"),N(i,"part","TournamentPrizesIconSection"),N(r,"class","TournamentPrizes"),N(r,"part","TournamentPrizes")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(i,s),$(i,a),$(a,l),$(r,u),h&&h.m(r,null),n[7](r)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&R(l,c),e[1]?h?h.p(e,t):((h=Ci(e)).c(),h.m(r,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&A(r),h&&h.d(),n[7](null)}}}function Ai(t,e,n){let r;se(t,Or,e=>n(2,r=e));let i,o,{tourid:s=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e;Object.keys(Ei).forEach(e=>{xi(e,Ei[e])});const c=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&n(1,o=e.data.prizes)};return ae(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=e=>{"tourid"in e&&n(3,s=e.tourid),"clientstyling"in e&&n(4,a=e.clientstyling),"clientstylingurl"in e&&n(5,l=e.clientstylingurl),"translationurl"in e&&n(6,u=e.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a&&((e=document.createElement("style")).innerHTML=a,i.appendChild(e)),33&t.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;64&t.$$.dirty&&u&&fetch(u).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{xi(e,t[e])})}).catch(e=>{console.log(e)})},[i,o,r,s,a,l,u,function(e){ie[e?"unshift":"push"](()=>{i=e,n(0,i)})}]}function Di(e,t){T(e,t)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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)}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Ai,Pi,n,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),d()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[6]}set translationurl(e){this.$$set({translationurl:e}),d()}});const Oi={en:{gamesSlider:{playNow:"Play now"}},hr:{gamesSlider:{playNow:"Započni sada"}},"zh-hk":{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function Fi(e,t,n){e=e.slice();return e[50]=t[n],e[52]=n,e}function Bi(n){let r,i,o,s,a,l,u,c,h,d,m=n[1],f=[];for(let e=0;e<m.length;e+=1)f[e]=Ni(Fi(n,m,e));return{c(){r=D("div"),(i=D("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>',o=F(),s=D("main"),a=D("div");for(let e=0;e<f.length;e+=1)f[e].c();u=F(),(c=D("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>',N(i,"class","SliderNavButton"),N(i,"part","SliderNavButton"),W(i,"disabled",n[8]),N(a,"class","items"),N(a,"part","items"),G(a,"transform","translateX("+n[2]+"px)"),ee(()=>n[28].call(s)),N(c,"class","SliderNavButton"),N(c,"part","SliderNavButton"),W(c,"disabled",n[9]),N(r,"class","TournamentsGamesSlider"),N(r,"part","TournamentsGamesSlider")},m(e,t){P(e,r,t),$(r,i),$(r,o),$(r,s),$(s,a);for(let e=0;e<f.length;e+=1)f[e]&&f[e].m(a,null);n[27](a),l=function(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=D("iframe"),r=(n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1,function(){if(void 0===H){H=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){H=!0}}return H}());let i;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=B(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{i=B(n.contentWindow,"resize",t),t()}),$(e,n),()=>{(r||i&&n.contentWindow)&&i(),A(n)}}(s,n[28].bind(s)),$(r,u),$(r,c),n[30](r),h||(d=[B(i,"click",n[23]),B(c,"click",n[29])],h=!0)},p(t,n){if(256&n[0]&&W(i,"disabled",t[8]),23650&n[0]){let e;for(m=t[1],e=0;e<m.length;e+=1){var r=Fi(t,m,e);f[e]?f[e].p(r,n):(f[e]=Ni(r),f[e].c(),f[e].m(a,null))}for(;e<f.length;e+=1)f[e].d(1);f.length=m.length}4&n[0]&&G(a,"transform","translateX("+t[2]+"px)"),512&n[0]&&W(c,"disabled",t[9])},d(e){e&&A(r),j(f,e),n[27](null),l(),n[30](null),h=!1,M(d)}}}function Ni(n){let r,i,o,s,a,l,u,c,h,d,m,f,p,g=n[10]("gamesSlider.playNow")+"";function y(){return n[24](n[50])}function b(){return n[25](n[52])}return{c(){r=D("div"),i=D("span"),o=O(g),l=F(),u=D("img"),m=F(),N(i,"class",s="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),N(i,"part",a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":"")),I(u.src,c=n[50].thumbnail)||N(u,"src",c),N(u,"width","132px"),N(u,"height","100px"),N(u,"alt",h=n[50].name),N(u,"title",d=n[50].name),N(r,"class","item"),N(r,"part","item")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(r,l),$(r,u),$(r,m),f||(p=[B(r,"click",y),B(r,"mouseenter",b),B(r,"mouseleave",n[26])],f=!0)},p(e,t){n=e,1024&t[0]&&g!==(g=n[10]("gamesSlider.playNow")+"")&&R(o,g),96&t[0]&&s!==(s="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&N(i,"class",s),96&t[0]&&a!==(a="PlayNowButton "+(n[5]&&n[6]==n[52]?"itemHover":""))&&N(i,"part",a),2&t[0]&&!I(u.src,c=n[50].thumbnail)&&N(u,"src",c),2&t[0]&&h!==(h=n[50].name)&&N(u,"alt",h),2&t[0]&&d!==(d=n[50].name)&&N(u,"title",d)},d(e){e&&A(r),f=!1,M(p)}}}function Ri(n){let r,i=n[1]&&0<n[1].length&&Bi(n);return{c(){r=D("div"),i&&i.c(),this.c=v},m(e,t){P(e,r,t),i&&i.m(r,null),n[31](r)},p(e,t){e[1]&&0<e[1].length?i?i.p(e,t):((i=Bi(e)).c(),i.m(r,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[31](null)}}}function Hi(n,e,r){let i,o,t;se(n,Or,e=>r(10,t=e));let s,a,l,u,c,h,{tournamenturl:d=""}=e,{scrollby:m="3"}=e,{pagfactor:f="175"}=e,{lang:p=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],_=0,T=null,S=null,x=!1,E=0;Object.keys(Oi).forEach(e=>{Di(e,Oi[e])});const k=e=>{r(5,x=!0),r(6,u=e)},C=()=>{r(5,x=!1),r(6,u=-1)},M=e=>{e=(e.touches||e.originalEvent.touches)[0];T=e.clientX,S=e.clientY},$=e=>{var t;T&&S&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=T-t,e=S-e,Math.abs(t)>Math.abs(e)&&P(0<t?1:-1),T=null,S=null)},P=e=>{0<e&&!o?(r(2,_-=a),r(2,_=_<E?E:_)):e<0&&!i&&(r(2,_+=a),r(2,_=0<_?0:_))},A=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name,launchUrl:e.launchUrl},window.location.href)};return ae(()=>(a=parseInt(m,10)*parseInt(f,10),()=>{l.removeEventListener("touchstart",M),l.removeEventListener("touchmove",$)})),n.$$set=e=>{"tournamenturl"in e&&r(17,d=e.tournamenturl),"scrollby"in e&&r(15,m=e.scrollby),"pagfactor"in e&&r(16,f=e.pagfactor),"lang"in e&&r(18,p=e.lang),"translationurl"in e&&r(19,g=e.translationurl),"clientstyling"in e&&r(20,y=e.clientstyling),"clientstylingurl"in e&&r(21,b=e.clientstylingurl)},n.$$.update=()=>{if(4&n.$$.dirty[0]&&r(8,i=0===_),4194308&n.$$.dirty[0]&&r(9,o=_<=E),16&n.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(m)+1)*f)&&r(15,m=Math.ceil(h/f).toString()),131072&n.$$.dirty[0]&&d&&(e=new URL(d),t=new Headers,e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${_})`),e.searchParams.append("fields","games(id,name,thumbnail,launchUrl)"),e.searchParams.append("language",p),e.searchParams.append("platform",Fr(v)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(1,w=e.item.games.items),e.item.games.total})),8&n.$$.dirty[0]&&l&&(l.addEventListener("touchstart",M,{passive:!0}),l.addEventListener("touchmove",$,{passive:!0})),524288&n.$$.dirty[0]&&g&&fetch(g).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Di(e,t[e])})}).catch(e=>{console.log(e)}),2&n.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,E=-1*(c.scrollWidth-c.clientWidth)),r(16,f=new String(c.scrollWidth/w.length)),a=parseInt(m,10)*parseFloat(f,2).toFixed(2)},1e3),1048577&n.$$.dirty[0]&&y&&s&&((e=document.createElement("style")).innerHTML=y,s.appendChild(e)),2097153&n.$$.dirty[0]&&b&&s){let e=new URL(b),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{s.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t},r(2,_=0),[s,w,_,l,h,x,u,c,i,o,t,k,C,P,A,m,f,d,p,g,y,b,E,()=>P(-1),e=>A(e),e=>k(e),()=>C(),function(e){ie[e?"unshift":"push"](()=>{c=e,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>P(1),function(e){ie[e?"unshift":"push"](()=>{l=e,r(3,l)})},function(e){ie[e?"unshift":"push"](()=>{s=e,r(0,s)})}]}function Li(e){let n,r,i,o,s,a,l,u,c,h=e[13]&&zi(e);function d(e){return e[13]?"Closed"!=e[22]&&"Closing"!=e[22]?Yi:"true"==e[3]?ji:void 0:Gi}let m=d(e),f=m&&m(e),p=(e[16]||e[18])&&qi(e),g="true"==e[4]&&Qi(e);return{c(){n=D("div"),r=D("casino-tournaments-thumbnail"),i=F(),h&&h.c(),o=F(),s=D("div"),f&&f.c(),a=F(),p&&p.c(),l=F(),g&&g.c(),y(r,"session",e[0]),y(r,"userid",e[1]),y(r,"title",e[19]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"tourid",e[23]),y(r,"scorecriteria",e[26]),y(r,"minbetcount",e[27]),y(r,"thumbnail",e[24]),y(r,"userenrolled",e[25]),y(r,"showenrolled",e[5]),y(r,"gameurl",e[29]),y(r,"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"lang",e[8]),y(r,"keepbrowsercontext",e[9]),y(r,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),N(s,"class","TournamentButtons"),N(s,"part","TournamentButtons"),N(n,"class",u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),N(n,"part",c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){P(e,n,t),$(n,r),$(n,i),h&&h.m(n,null),$(n,o),$(n,s),f&&f.m(s,null),$(n,a),p&&p.m(n,null),$(n,l),g&&g.m(n,null)},p(e,t){1&t[0]&&y(r,"session",e[0]),2&t[0]&&y(r,"userid",e[1]),524288&t[0]&&y(r,"title",e[19]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),8388608&t[0]&&y(r,"tourid",e[23]),67108864&t[0]&&y(r,"scorecriteria",e[26]),134217728&t[0]&&y(r,"minbetcount",e[27]),16777216&t[0]&&y(r,"thumbnail",e[24]),33554432&t[0]&&y(r,"userenrolled",e[25]),32&t[0]&&y(r,"showenrolled",e[5]),536870912&t[0]&&y(r,"gameurl",e[29]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),256&t[0]&&y(r,"lang",e[8]),512&t[0]&&y(r,"keepbrowsercontext",e[9]),e[13]?h?h.p(e,t):((h=zi(e)).c(),h.m(n,o)):h&&(h.d(1),h=null),m===(m=d(e))&&f?f.p(e,t):(f&&f.d(1),(f=m&&m(e))&&(f.c(),f.m(s,null))),e[16]||e[18]?p?p.p(e,t):((p=qi(e)).c(),p.m(n,l)):p&&(p.d(1),p=null),"true"==e[4]?g?g.p(e,t):((g=Qi(e)).c(),g.m(n,null)):g&&(g.d(1),g=null),1073742016&t[0]&&u!==(u="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"class",u),1073742016&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"part",c)},d(e){e&&A(n),h&&h.d(),f&&f.d(),p&&p.d(),g&&g.d()}}}function Ii(e){let n,r,i,o;return{c(){n=D("div"),(r=D("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>',N(r,"class","ph-item"),N(r,"part","ph-item"),N(n,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")),N(n,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){P(e,n,t),$(n,r)},p(e,t){1073742016&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"class",i),1073742016&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn")+" "+(e[30]?"elementToFadeOut":"elementToFadeIn"))&&N(n,"part",o)},d(e){e&&A(n)}}}function zi(e){let n,r,i=e[23]&&Ui(e);return{c(){i&&i.c(),n=F(),y(r=D("casino-tournaments-thumbnail-duration"),"clientstyling",e[10]),y(r,"clientstylingurl",e[11]),y(r,"status",e[22]),y(r,"startdate",e[20]),y(r,"lang",e[8]),y(r,"enddate",e[21]),y(r,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),P(e,n,t),P(e,r,t)},p(e,t){e[23]?i?i.p(e,t):((i=Ui(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),4194304&t[0]&&y(r,"status",e[22]),1048576&t[0]&&y(r,"startdate",e[20]),256&t[0]&&y(r,"lang",e[8]),2097152&t[0]&&y(r,"enddate",e[21])},d(e){i&&i.d(e),e&&A(n),e&&A(r)}}}function Ui(n){let r,i,o,s;return{c(){y(r=D("casino-tournaments-thumbnail-prizes"),"tourid",n[23]),y(r,"clientstyling",n[10]),y(r,"clientstylingurl",n[11]),y(r,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){P(e,r,t),o||(s=U(i=n[36].call(null,r,n[23])),o=!0)},p(e,t){8388608&t[0]&&y(r,"tourid",e[23]),1024&t[0]&&y(r,"clientstyling",e[10]),2048&t[0]&&y(r,"clientstylingurl",e[11]),i&&k(i.update)&&8388608&t[0]&&i.update.call(null,e[23])},d(e){e&&A(r),o=!1,s()}}}function ji(n){let r,i,o,s,a=n[31]("tournamentsThController.details")+"";return{c(){r=D("button"),i=O(a),N(r,"class","DetailsLargeButton"),N(r,"part","DetailsLargeButton")},m(e,t){P(e,r,t),$(r,i),o||(s=B(r,"click",n[50]),o=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&A(r),o=!1,s()}}}function Yi(e){let n,r,i="true"==e[3]&&Wi(e);function o(e){return 1==e[25]?Ji:Vi}let s=o(e),a=s(e);return{c(){i&&i.c(),n=F(),a.c(),r=Y()},m(e,t){i&&i.m(e,t),P(e,n,t),a.m(e,t),P(e,r,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=Wi(e)).c(),i.m(n.parentNode,n)):i&&(i.d(1),i=null),s===(s=o(e))&&a?a.p(e,t):(a.d(1),(a=s(e))&&(a.c(),a.m(r.parentNode,r)))},d(e){i&&i.d(e),e&&A(n),a.d(e),e&&A(r)}}}function Gi(n){let r,i,o,s,a,l,u,c=n[31]("tournamentsThController.login")+"",h=n[31]("tournamentsThController.register")+"";return{c(){r=D("button"),i=O(c),o=F(),s=D("button"),a=O(h),N(r,"class","LoginButton"),N(r,"part","LoginButton"),N(s,"class","RegisterButton"),N(s,"part","RegisterButton")},m(e,t){P(e,r,t),$(r,i),P(e,o,t),P(e,s,t),$(s,a),l||(u=[B(r,"click",n[46]),B(s,"click",n[47])],l=!0)},p(e,t){1&t[1]&&c!==(c=e[31]("tournamentsThController.login")+"")&&R(i,c),1&t[1]&&h!==(h=e[31]("tournamentsThController.register")+"")&&R(a,h)},d(e){e&&A(r),e&&A(o),e&&A(s),l=!1,M(u)}}}function Wi(n){let r,i,o,s,a=n[31]("tournamentsThController.details")+"";return{c(){r=D("button"),i=O(a),N(r,"class","DetailsButton"),N(r,"part","DetailsButton")},m(e,t){P(e,r,t),$(r,i),o||(s=B(r,"click",n[48]),o=!0)},p(e,t){1&t[1]&&a!==(a=e[31]("tournamentsThController.details")+"")&&R(i,a)},d(e){e&&A(r),o=!1,s()}}}function Vi(n){let r,i,o,s,a;function l(e){return 1==e[15]?Xi:Zi}let u=l(n),c=u(n);return{c(){r=D("button"),c.c(),N(r,"class",i="JoinButton "+(n[7]?"JoinButtonFullSize":"")),N(r,"part",o="JoinButton "+(n[7]?"JoinButtonFullSize":"")),r.disabled=n[16]},m(e,t){P(e,r,t),c.m(r,null),s||(a=B(r,"click",n[49]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(r,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&N(r,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&N(r,"part",o),65536&t[0]&&(r.disabled=e[16])},d(e){e&&A(r),c.d(),s=!1,a()}}}function Ji(e){let n,r="true"==e[3]&&Ki(e);return{c(){r&&r.c(),n=Y()},m(e,t){r&&r.m(e,t),P(e,n,t)},p(e,t){"true"==e[3]?r?r.p(e,t):((r=Ki(e)).c(),r.m(n.parentNode,n)):r&&(r.d(1),r=null)},d(e){r&&r.d(e),e&&A(n)}}}function Zi(e){let n,r,i,o,s,a,l,u,c,h=e[31]("tournamentsThController.join")+"";return{c(){n=D("span"),r=O(h),i=F(),o=t("svg"),s=t("defs"),a=t("style"),l=O(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=t("g"),c=t("path"),N(n,"part","JoinButtonSpan"),N(c,"class","a"),N(c,"part","a JoinButtonSvgA"),N(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),N(c,"transform","translate(26 26) rotate(180)"),N(u,"transform","translate(26 26) rotate(180)"),N(o,"part","JoinButtonSvg"),N(o,"xmlns","http://www.w3.org/2000/svg"),N(o,"width","26"),N(o,"height","26"),N(o,"viewBox","0 0 26 26")},m(e,t){P(e,n,t),$(n,r),P(e,i,t),P(e,o,t),$(o,s),$(s,a),$(a,l),$(o,u),$(u,c)},p(e,t){1&t[1]&&h!==(h=e[31]("tournamentsThController.join")+"")&&R(r,h)},d(e){e&&A(n),e&&A(i),e&&A(o)}}}function Xi(e){let n,r;return{c(){n=t("svg"),N(r=t("circle"),"cx","20"),N(r,"cy","20"),N(r,"r","18"),N(n,"class","spinner"),N(n,"part","spinner")},m(e,t){P(e,n,t),$(n,r)},p:v,d(e){e&&A(n)}}}function Ki(e){let n,r,i=e[31]("tournamentsThController.enrolled")+"";return{c(){n=D("button"),r=O(i),N(n,"class","EnrolledButton"),N(n,"part","EnrolledButton"),n.disabled=!0},m(e,t){P(e,n,t),$(n,r)},p(e,t){1&t[1]&&i!==(i=e[31]("tournamentsThController.enrolled")+"")&&R(r,i)},d(e){e&&A(n)}}}function qi(e){let n,r,i,o,s=e[31]("tournamentsThController.joinerror")+"";return{c(){n=D("span"),r=O(s),i=F(),o=O(e[17]),N(n,"class","ErrorText"),N(n,"part","ErrorText")},m(e,t){P(e,n,t),$(n,r),$(n,i),$(n,o)},p(e,t){1&t[1]&&s!==(s=e[31]("tournamentsThController.joinerror")+"")&&R(r,s),131072&t[0]&&R(o,e[17])},d(e){e&&A(n)}}}function Qi(e){let n;return{c(){y(n=D("casino-tournaments-thumbnail-games-slider"),"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"tournamenturl",e[2]),y(n,"lang",e[8]),y(n,"scrollby","2"),y(n,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){P(e,n,t)},p(e,t){1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),4&t[0]&&y(n,"tournamenturl",e[2]),256&t[0]&&y(n,"lang",e[8])},d(e){e&&A(n)}}}function eo(n){let r;function i(e){return e[14]?Ii:e[19]?Li:void 0}let o=i(n),s=o&&o(n);return{c(){r=D("div"),s&&s.c(),this.c=v},m(e,t){P(e,r,t),s&&s.m(r,null),n[51](r)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s&&s.d(1),(s=o&&o(e))&&(s.c(),s.m(r,null)))},i:v,o:v,d(e){e&&A(r),s&&s.d(),n[51](null)}}}function to(n,e,u){let t;se(n,Or,e=>u(31,t=e));let r,i,o,s,a,c,l,h,d,N,m,{session:f=""}=e,{userid:R=""}=e,{tournamenturl:p=""}=e,g=e["touridx"],{endpoint:y=""}=e,{showdetails:H=""}=e,{showslider:L=""}=e,{showenrolled:I=""}=e,{maxwidth:z=""}=e,{fullsize:U=""}=e,{lang:b=""}=e,{loginevent:v=""}=e,{registerevent:w=""}=e,{loginurl:_=""}=e,{registerurl:T=""}=e,{currency:S=""}=e,{keepbrowsercontext:j="false"}=e,{clientstyling:x=""}=e,{clientstylingurl:E=""}=e,{translationurl:k=""}=e,C=!1,M="",$=!0,Y=window.navigator.userAgent,P=!1,A=!1,G="There was an error while trying to join the tournament",D=!1,W=[],O=[],V="#",F=!1;var J,Z;({withLocale:J,translations:Z}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(nr.set(Z),oe.set(J))}),Object.keys(ti).forEach(e=>{ei(e,ti[e])});const X=e=>{q(e),re(e),ne(this,c)},K=n=>{if(n.data&&"UserSessionID"==n.data.type&&(u(13,C=!0),M=n.data.session),"UpdateTournamentView"==n.data.type){var e=n.data.tournamentData;if(c&&c!=e.id)return;X(e)}if(n.data&&n.data.type=="UpdateSingleTournament_"+g){let e=n.data.tournamentData,t=g<4?100*g:300*Math.random()+300;u(30,F=1==g),setTimeout(()=>{u(30,F=!0),u(23,c=e.id),X(e)},t),setTimeout(()=>{u(30,F=!1)},200+t)}},q=e=>{e.state!=a&&(u(22,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag)&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"}),_&&(window.location=_)},ee=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag)&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"}),T&&(window.location=T)},B=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},te=async(t,e)=>{u(16,A=!1),u(18,D=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(15,P=!0);let n=new URL(y+"/v1/bonus/claim"),r=new Headers,i={},o=(n.searchParams.append("language",b),n.searchParams.append("platform",Fr(Y)),r.append("Content-Type","application/json"),r.append("X-SessionID",M),e&&1<=e.length&&(i={language:b,bonusCode:e[0].code,currency:S,type:"tournament"}),{method:"PUT",headers:r,body:JSON.stringify(i)});const s=()=>{u(15,P=!1),u(25,h=!0)},a=e=>{u(15,P=!1),e&&u(17,G=e),u(16,A=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(n,o)).json()}catch(e){a()}return e})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let e;null!=(t=null==(e=await(e=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":f}})).json())?void 0:e.item)&&t.playerEnrolled?s():(a(l.errorMessage),u(18,D=!0),u(16,A=!1))}else a(l.errorMessage)},ne=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:W},window.location.href)},re=e=>{e&&(u(19,i=e.nameOrTitle||""),u(20,o=e.startTime),u(21,s=e.endTime),u(22,a=e.state),u(23,c=e.id),u(24,l=e.thumbnail),u(25,h=e.playerEnrolled||!1),u(26,d=e.scoreCriteria),u(27,N=e.minBetCount),W=e.prizes,u(28,O=e.wallets||[]),u(29,V=e.termsUrl||"#"))};return ae(()=>(u(14,$=!1),window.addEventListener("message",K,!1),()=>{window.removeEventListener("message",K)})),n.$$set=e=>{"session"in e&&u(0,f=e.session),"userid"in e&&u(1,R=e.userid),"tournamenturl"in e&&u(2,p=e.tournamenturl),"touridx"in e&&u(37,g=e.touridx),"endpoint"in e&&u(38,y=e.endpoint),"showdetails"in e&&u(3,H=e.showdetails),"showslider"in e&&u(4,L=e.showslider),"showenrolled"in e&&u(5,I=e.showenrolled),"maxwidth"in e&&u(6,z=e.maxwidth),"fullsize"in e&&u(7,U=e.fullsize),"lang"in e&&u(8,b=e.lang),"loginevent"in e&&u(39,v=e.loginevent),"registerevent"in e&&u(40,w=e.registerevent),"loginurl"in e&&u(41,_=e.loginurl),"registerurl"in e&&u(42,T=e.registerurl),"currency"in e&&u(43,S=e.currency),"keepbrowsercontext"in e&&u(9,j=e.keepbrowsercontext),"clientstyling"in e&&u(10,x=e.clientstyling),"clientstylingurl"in e&&u(11,E=e.clientstylingurl),"translationurl"in e&&u(44,k=e.translationurl)},n.$$.update=()=>{if(5120&n.$$.dirty[0]&&r&&x&&((t=document.createElement("style")).innerHTML=x,r.appendChild(t)),6144&n.$$.dirty[0]&&r&&E){let e=new URL(E),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e,t;8192&n.$$.dirty[1]&&k&&fetch(k).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{ei(e,t[e])})}).catch(e=>{console.log(e)}),1&n.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(M=f,u(13,C=!0)):u(13,C=!1)),260&n.$$.dirty[0]&&u(45,m=p&&b),16384&n.$$.dirty[1]&&m&&(u(14,$=!0),t=p,u(14,$=!0),t=new URL(t),e=new Headers,t.searchParams.append("language",b),t.searchParams.append("platform",Fr(Y)),C&&e.append("X-SessionID",M),fetch(t,{method:"GET",headers:e}).then(e=>e.json()).then(e=>{u(14,$=!1),re(e.item)}))},[f,R,p,H,L,I,z,U,b,j,x,E,r,C,$,P,A,G,D,i,o,s,a,c,l,h,d,N,O,V,F,t,Q,ee,B,te,ne,g,y,v,w,_,T,S,k,m,()=>Q(),()=>ee(),()=>B(c),()=>te(c,O),()=>B(c),function(e){ie[e?"unshift":"push"](()=>{r=e,u(12,r)})}]}function no(e,t,n){e=e.slice();return e[30]=t[n],e[32]=n,e}function ro(t){let r,i=t[14],o=[];for(let e=0;e<i.length;e+=1)o[e]=oo(no(t,i,e));let s=null;return i.length||(s=io(t)),{c(){for(let e=0;e<o.length;e+=1)o[e].c();r=Y(),s&&s.c()},m(t,n){for(let e=0;e<o.length;e+=1)o[e]&&o[e].m(t,n);P(t,r,n),s&&s.m(t,n)},p(t,n){if(53247&n[0]){let e;for(i=t[14],e=0;e<i.length;e+=1){const s=no(t,i,e);o[e]?o[e].p(s,n):(o[e]=oo(s),o[e].c(),o[e].m(r.parentNode,r))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,n):i.length?s&&(s.d(1),s=null):((s=io(t)).c(),s.m(r.parentNode,r))}},d(e){j(o,e),e&&A(r),s&&s.d(e)}}}function io(e){let n,r,i=e[15]("tournamentsList.nothing")+"";return{c(){n=D("p"),r=O(i)},m(e,t){P(e,n,t),$(n,r)},p(e,t){32768&t[0]&&i!==(i=e[15]("tournamentsList.nothing")+"")&&R(r,i)},d(e){e&&A(n)}}}function oo(e){let n,r,i;return{c(){y(n=D("casino-tournaments-thumbnail-controller"),"touridx",e[32]+1),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"endpoint",e[2]),y(n,"showdetails","true"),y(n,"showslider","false"),y(n,"tournamenturl",r=e[30].href),y(n,"maxwidth",i=e[14].length<=2),y(n,"loginurl",e[5]),y(n,"loginevent",e[3]),y(n,"registerurl",e[6]),y(n,"registerevent",e[4]),y(n,"clientstyling",e[10]),y(n,"clientstylingurl",e[11]),y(n,"lang",e[8]),y(n,"currency",e[7]),y(n,"keepbrowsercontext",e[9]),y(n,"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){P(e,n,t)},p(e,t){1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),4&t[0]&&y(n,"endpoint",e[2]),16384&t[0]&&r!==(r=e[30].href)&&y(n,"tournamenturl",r),16384&t[0]&&i!==(i=e[14].length<=2)&&y(n,"maxwidth",i),32&t[0]&&y(n,"loginurl",e[5]),8&t[0]&&y(n,"loginevent",e[3]),64&t[0]&&y(n,"registerurl",e[6]),16&t[0]&&y(n,"registerevent",e[4]),1024&t[0]&&y(n,"clientstyling",e[10]),2048&t[0]&&y(n,"clientstylingurl",e[11]),256&t[0]&&y(n,"lang",e[8]),128&t[0]&&y(n,"currency",e[7]),512&t[0]&&y(n,"keepbrowsercontext",e[9])},d(e){e&&A(n)}}}function so(n){let r,i=!n[13]&&ro(n);return{c(){r=D("div"),i&&i.c(),this.c=v,N(r,"class","TournamentList"),N(r,"part","TournamentList")},m(e,t){P(e,r,t),i&&i.m(r,null),n[18](r)},p(e,t){e[13]?i&&(i.d(1),i=null):i?i.p(e,t):((i=ro(e)).c(),i.m(r,null))},i:v,o:v,d(e){e&&A(r),i&&i.d(),n[18](null)}}}function ao(t,e,n){let r;se(t,Or,e=>n(15,r=e));let i,{session:o=""}=e,{userid:s=""}=e,{numberoftournaments:a="6"}=e,{endpoint:l=""}=e,{loginevent:u=""}=e,{registerevent:c=""}=e,{loginurl:h=""}=e,{registerurl:d=""}=e,{currency:m=""}=e,{lang:f="en"}=e,{keepbrowsercontext:p="false"}=e,{clientstyling:g=""}=e,{clientstylingurl:y=""}=e,{translationurl:b=""}=e,v=!1,w=(Kr(),"");Object.keys(Qr).forEach(e=>{qr(e,Qr[e])});const _=t=>{if(t.data&&"TournamentList"==t.data.type&&(n(14,w=[]),n(13,v=!0),n(14,w=t.data.tournamentList),setTimeout(()=>{n(13,v=!1)},10)),t.data&&"TournamentListShowMore"==t.data.type&&n(14,w=[...w,...t.data.tournamentList]),"UpdateTournamentView"==t.data.type){if(!w)return;0==w.filter(e=>e.id==t.data.tournamentData.id).length&&(w.pop(),n(14,w=[t.data.tournamentData,...w]),setTimeout(()=>{w.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 ae(()=>(window.addEventListener("message",_,!0),()=>{window.removeEventListener("message",_,!0)})),t.$$set=e=>{"session"in e&&n(0,o=e.session),"userid"in e&&n(1,s=e.userid),"numberoftournaments"in e&&n(16,a=e.numberoftournaments),"endpoint"in e&&n(2,l=e.endpoint),"loginevent"in e&&n(3,u=e.loginevent),"registerevent"in e&&n(4,c=e.registerevent),"loginurl"in e&&n(5,h=e.loginurl),"registerurl"in e&&n(6,d=e.registerurl),"currency"in e&&n(7,m=e.currency),"lang"in e&&n(8,f=e.lang),"keepbrowsercontext"in e&&n(9,p=e.keepbrowsercontext),"clientstyling"in e&&n(10,g=e.clientstyling),"clientstylingurl"in e&&n(11,y=e.clientstylingurl),"translationurl"in e&&n(17,b=e.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&i&&g&&((e=document.createElement("style")).innerHTML=g,i.appendChild(e)),6144&t.$$.dirty[0]&&i&&y){let e=new URL(y),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500)})}var e;131072&t.$$.dirty[0]&&b&&fetch(b).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{qr(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[0]&&o&&o.length,t.$$.dirty[0]},[o,s,l,u,c,h,d,m,f,p,g,y,i,v,w,r,a,b,function(e){ie[e?"unshift":"push"](()=>{i=e,n(12,i)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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 0.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 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Hi,Ri,n,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(e){this.$$set({tournamenturl:e}),d()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),d()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(e){this.$$set({pagfactor:e}),d()}get lang(){return this.$$.ctx[18]}set lang(e){this.$$set({lang:e}),d()}get translationurl(){return this.$$.ctx[19]}set translationurl(e){this.$$set({translationurl:e}),d()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}}),customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent='*,*::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.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.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}',this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},to,eo,n,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},null,[-1,-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),d()}get touridx(){return this.$$.ctx[37]}set touridx(e){this.$$set({touridx:e}),d()}get endpoint(){return this.$$.ctx[38]}set endpoint(e){this.$$set({endpoint:e}),d()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),d()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),d()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),d()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),d()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),d()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),d()}get loginevent(){return this.$$.ctx[39]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[40]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[41]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[42]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[43]}set currency(e){this.$$set({currency:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[44]}set translationurl(e){this.$$set({translationurl:e}),d()}}),customElements.get("casino-tournaments-list-controller")||customElements.define("casino-tournaments-list-controller",class extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::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}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},ao,so,n,{session:0,userid:1,numberoftournaments:16,endpoint:2,loginevent:3,registerevent:4,loginurl:5,registerurl:6,currency:7,lang:8,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:17},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","numberoftournaments","endpoint","loginevent","registerevent","loginurl","registerurl","currency","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get numberoftournaments(){return this.$$.ctx[16]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get loginevent(){return this.$$.ctx[3]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[4]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[5]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[6]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[7]}set currency(e){this.$$set({currency:e}),d()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),d()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get translationurl(){return this.$$.ctx[17]}set translationurl(e){this.$$set({translationurl:e}),d()}});const lo=e=>0<e.length&&"false"!=e;function uo(e){let n,r,i,o,s,a,l=e[18]&&ho(e);function u(e){return 0==e[19]?fo:mo}let c=u(e),h=c(e),d=!e[20]&&yo(e);return{c(){n=D("div"),r=D("div"),i=D("div"),l&&l.c(),o=F(),s=D("div"),h.c(),a=F(),d&&d.c(),N(i,"class","FirstRow"),N(i,"part","FirstRow"),N(s,"class","SecondRow"),N(s,"part","SecondRow"),N(r,"class","Tournaments"),N(r,"part","Tournaments"),N(n,"class","TournamentsWrapper"),N(n,"part","TournamentsWrapper")},m(e,t){P(e,n,t),$(n,r),$(r,i),l&&l.m(i,null),$(r,o),$(r,s),h.m(s,null),$(r,a),d&&d.m(r,null)},p(e,t){e[18]?l?l.p(e,t):((l=ho(e)).c(),l.m(i,null)):l&&(l.d(1),l=null),c===(c=u(e))&&h?h.p(e,t):(h.d(1),(h=c(e))&&(h.c(),h.m(s,null))),e[20]?d&&(d.d(1),d=null):d?d.p(e,t):((d=yo(e)).c(),d.m(r,null))},d(e){e&&A(n),l&&l.d(),h.d(),d&&d.d()}}}function co(e){let n,r,i,o,s,a=e[21]("tournamentsController.500")+"";return{c(){n=D("p"),r=O(a),i=F(),o=D("p"),s=O(e[16])},m(e,t){P(e,n,t),$(n,r),P(e,i,t),P(e,o,t),$(o,s)},p(e,t){2097152&t[0]&&a!==(a=e[21]("tournamentsController.500")+"")&&R(r,a),65536&t[0]&&R(s,e[16])},d(e){e&&A(n),e&&A(i),e&&A(o)}}}function ho(e){let n;return{c(){y(n=D("casino-tournaments-filter-controller"),"clientstyling",e[12]),y(n,"clientstylingurl",e[13]),y(n,"filters",vo),y(n,"activefilters",e[5]),y(n,"exportparts","FiltersController, MobileClass, Non-MobileClass/empty, Active, FilterButton, bi, bi-check, FiltersList, FiltersTitle, FiltersItem")},m(e,t){P(e,n,t)},p(e,t){4096&t[0]&&y(n,"clientstyling",e[12]),8192&t[0]&&y(n,"clientstylingurl",e[13]),32&t[0]&&y(n,"activefilters",e[5])},d(e){e&&A(n)}}}function mo(e){let n;return{c(){y(n=D("casino-tournaments-list-controller"),"clientstyling",e[12]),y(n,"clientstylingurl",e[13]),y(n,"session",e[0]),y(n,"userid",e[1]),y(n,"numberoftournaments",e[4]),y(n,"endpoint",e[2]),y(n,"loginurl",e[8]),y(n,"loginevent",e[6]),y(n,"registerurl",e[9]),y(n,"registerevent",e[7]),y(n,"lang",e[3]),y(n,"currency",e[10]),y(n,"keepbrowsercontext",e[11]),y(n,"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, TournamentList, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){P(e,n,t)},p(e,t){4096&t[0]&&y(n,"clientstyling",e[12]),8192&t[0]&&y(n,"clientstylingurl",e[13]),1&t[0]&&y(n,"session",e[0]),2&t[0]&&y(n,"userid",e[1]),16&t[0]&&y(n,"numberoftournaments",e[4]),4&t[0]&&y(n,"endpoint",e[2]),256&t[0]&&y(n,"loginurl",e[8]),64&t[0]&&y(n,"loginevent",e[6]),512&t[0]&&y(n,"registerurl",e[9]),128&t[0]&&y(n,"registerevent",e[7]),8&t[0]&&y(n,"lang",e[3]),1024&t[0]&&y(n,"currency",e[10]),2048&t[0]&&y(n,"keepbrowsercontext",e[11])},d(e){e&&A(n)}}}function fo(e){let n;function r(e){return e[17]?go:po}let i=r(e),o=i(e);return{c(){o.c(),n=Y()},m(e,t){o.m(e,t),P(e,n,t)},p(e,t){i===(i=r(e))&&o?o.p(e,t):(o.d(1),(o=i(e))&&(o.c(),o.m(n.parentNode,n)))},d(e){o.d(e),e&&A(n)}}}function po(e){let n,r,i=e[21]("tournamentsController.noTournaments")+"";return{c(){n=D("p"),r=O(i),N(n,"class","NoTournaments"),N(n,"part","NoTournaments")},m(e,t){P(e,n,t),$(n,r)},p(e,t){2097152&t[0]&&i!==(i=e[21]("tournamentsController.noTournaments")+"")&&R(r,i)},d(e){e&&A(n)}}}function go(e){let n,r,i=e[21]("tournamentsController.loading")+"";return{c(){n=D("p"),r=O(i),N(n,"class","LoadingMessage"),N(n,"part","LoadingMessage")},m(e,t){P(e,n,t),$(n,r)},p(e,t){2097152&t[0]&&i!==(i=e[21]("tournamentsController.loading")+"")&&R(r,i)},d(e){e&&A(n)}}}function yo(n){let r,i,o,s,a,l,u=n[21]("tournamentsController.showMore")+"";return{c(){r=D("div"),i=D("div"),o=D("button"),s=O(u),N(o,"class","ShowMoreButton"),N(o,"part","ShowMoreButton"),N(o,"title","Show More"),N(i,"class","CenterButton"),N(i,"part","CenterButton"),N(r,"class","ThirdRow"),N(r,"part","ThirdRow")},m(e,t){P(e,r,t),$(r,i),$(i,o),$(o,s),a||(l=B(o,"click",n[32]),a=!0)},p(e,t){2097152&t[0]&&u!==(u=e[21]("tournamentsController.showMore")+"")&&R(s,u)},d(e){e&&A(r),a=!1,l()}}}function bo(n){let r;function i(e){return e[15]?co:uo}let o=i(n),s=o(n);return{c(){r=D("div"),s.c(),this.c=v},m(e,t){P(e,r,t),s.m(r,null),n[33](r)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s.d(1),(s=o(e))&&(s.c(),s.m(r,null)))},i:v,o:v,d(e){e&&A(r),s.d(),n[33](null)}}}let vo="All,Scheduled,Ongoing,Finished";function wo(t,e,s){let n;se(t,Or,e=>s(21,n=e));let r,a,i,{session:l=""}=e,{userid:o=""}=e,{endpoint:u=""}=e,{lang:c="en"}=e,{translationurl:h=""}=e,{numberoftournaments:d="6"}=e,{showmorestep:m="2"}=e,{filters:f="All"}=e,{loginevent:N=""}=e,{registerevent:R=""}=e,{loginurl:H=""}=e,{registerurl:L=""}=e,{currency:I="EUR"}=e,{keepbrowsercontext:z="false"}=e,{sorttype:p=""}=e,{sortorder:g=""}=e,{starttimeafter:y=""}=e,{showanonymoustournaments:b="true"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,{delaybeforeload:_=1e3}=e,T=!1,S="",x=!1,E="",U=window.navigator.userAgent,k=!0,j=!1,C=!1,M=0,$=!1,P=6,A=!0,D=[],O=!1;var Y,G;({withLocale:Y,translations:G}={withLocale:"en",translations:{}}),oe.subscribe(e=>{null==e&&(nr.set(G),oe.set(Y))}),Object.keys(Rr).forEach(e=>{Br(e,Rr[e])});const W=e=>{e.data&&"UserSessionID"===e.data.type&&(x=!0,s(30,E=e.data.session),e.data.userid,F(u,0,P)),e.data&&"TournamentsFiltersSelected"===e.data.type&&(D=e.data.filters,F(u,0,P))},F=async(e,t,n)=>{s(17,k=!0),s(19,M=0);const r=await J(e,t,n);setTimeout(()=>{window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)},50),s(17,k=!1)},V=()=>{var e=new Date;return y?e.setDate(e.getDate()-Number(y)):e.setMonth(e.getMonth()-1),e.toISOString().substring(0,10)},J=async(e,t,n)=>{let r=new URL(e+"/v1/tournaments"),i=new Headers;r.searchParams.append("pagination",`offset=${t},limit=`+n),r.searchParams.append("sortField","StartTime"),r.searchParams.append("sortOrder",g||"desc"),r.searchParams.append("language",c);const o={StartTimeAfter:V()};lo(l)||"false"!==b||(o.tags="no-role-set"),0<D.length&&"All"!=D[0]&&(o.state=D.map(e=>{return"Scheduled"==e?"Unstarted":"Ongoing"==e?"Running":"Closing|Closed"}).join("|"));e=Object.keys(o).map(e=>e+"="+o[e]).join(",");return r.searchParams.append("filter",e),r.searchParams.append("platform",Fr(U)),p&&r.searchParams.append("sortType",p),x&&i.append("X-SessionID",E),fetch(r,{method:"GET",headers:i,cache:"no-cache"}).then(e=>e.json()).then(e=>(a=r.searchParams.toString(),s(19,M=e.total),s(20,A=P>=M),C||Z(),e))},B=e=>{if("message"==e.type){var t=e.data;if(t)try{var n,r=JSON.parse(t);r&&r.item&&(n=r.item,"TournamentUpdate"==r.messageType&&window.postMessage({type:"UpdateTournamentView",tournamentData:n},window.location.href),"TournamentRemove"==r.messageType)&&window.postMessage({type:"TournamentList",tournamentList:r.items},window.location.href)}catch(e){console.error(e)}}},Z=()=>{C=!0,setTimeout(()=>{C=!1},1e3),i&&(i.removeEventListener("message",B),i.close());var e=u+"/v1/tournaments/updates?"+a;void 0!==(i=new Hr.EventSourcePolyfill(e,{headers:{accept:"text/event-stream","X-SessionId":l}}))&&i.addEventListener("message",B)},X=async()=>{var e=P,t=parseInt(m,10),n=(P+=t,window.postMessage({type:"TournamentsPagination",offset:0,limit:P},window.location.href),u);n=await J(n,e,t),window.postMessage({type:"TournamentListShowMore",tournamentList:n.items},window.location.href),await 0,P>=M&&s(20,A=!0)},K=()=>{if(!$)return!1;u||(s(16,S="Endpoint is missing! Please provide a valid endpointURL."),s(15,T=!0),console.error(S)),c&&2==c.length||(s(16,S="Language is missing! Please provide a valid language (alpha2code)"),s(15,T=!0),console.error(S)),T||(P=parseInt(d,10),Nr(c),F(u,0,P))},q=async()=>{O||(O=!0,await K(),O=!1)};return ae(()=>(setTimeout(()=>{s(31,$=!0)},_),window.addEventListener("message",W,!1),()=>{window.removeEventListener("message",W),i&&(i.removeEventListener("message",B),i.close())})),t.$$set=e=>{"session"in e&&s(0,l=e.session),"userid"in e&&s(1,o=e.userid),"endpoint"in e&&s(2,u=e.endpoint),"lang"in e&&s(3,c=e.lang),"translationurl"in e&&s(23,h=e.translationurl),"numberoftournaments"in e&&s(4,d=e.numberoftournaments),"showmorestep"in e&&s(24,m=e.showmorestep),"filters"in e&&s(5,f=e.filters),"loginevent"in e&&s(6,N=e.loginevent),"registerevent"in e&&s(7,R=e.registerevent),"loginurl"in e&&s(8,H=e.loginurl),"registerurl"in e&&s(9,L=e.registerurl),"currency"in e&&s(10,I=e.currency),"keepbrowsercontext"in e&&s(11,z=e.keepbrowsercontext),"sorttype"in e&&s(25,p=e.sorttype),"sortorder"in e&&s(26,g=e.sortorder),"starttimeafter"in e&&s(27,y=e.starttimeafter),"showanonymoustournaments"in e&&s(28,b=e.showanonymoustournaments),"clientstyling"in e&&s(12,v=e.clientstyling),"clientstylingurl"in e&&s(13,w=e.clientstylingurl),"delaybeforeload"in e&&s(29,_=e.delaybeforeload)},t.$$.update=()=>{if(20480&t.$$.dirty[0]&&r&&v&&((e=document.createElement("style")).innerHTML=v,r.appendChild(e)),24576&t.$$.dirty[0]&&r&&w){let e=new URL(w),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500)})}var e;t.$$.dirty[0],32&t.$$.dirty[0]&&f&&(D=f.split(","),s(18,j=!0)),8&t.$$.dirty[0]&&c&&Nr(c),8388608&t.$$.dirty[0]&&h&&fetch(h).then(e=>e.json()).then(t=>{Object.keys(t).forEach(e=>{Br(e,t[e])})}).catch(e=>{console.log(e)}),1&t.$$.dirty[1]&&$&&K(),1&t.$$.dirty[0]&&(""===l||l)&&(lo(l)?(x=!0,s(30,E=l)):(x=!1,s(30,E=""))),1073741824&t.$$.dirty[0]&&(""===E||E)&&q(),285212700&t.$$.dirty[0]&&u&&d&&m&&c&&b&&q()},[l,o,u,c,d,f,N,R,H,L,I,z,v,w,r,T,S,k,j,M,A,n,X,h,m,p,g,y,b,_,E,$,()=>X(),function(e){ie[e?"unshift":"push"](()=>{r=e,s(14,r)})}]}class _o extends e{constructor(e){super();var t=document.createElement("style");t.textContent="*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ShowMoreButton{background:var(--emfe-w-color-contrast, #07072A);font-size:18px;width:280px;height:60px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;margin-bottom:20px;cursor:pointer}.ShowMoreButton:hover{opacity:0.7}.TournamentsWrapper{min-height:100vh;background:var(--emfe-w-color-contrast, #07072A);overflow-x:hidden}.Tournaments{color:var(--emfe-w-color-white, #FFFFFF);display:flex;flex-direction:column;position:relative;margin:0 auto;max-width:1300px;padding:24px 0}@media screen and (max-width: 1300px){.Tournaments{padding:24px 2.4%}}.Tournaments .FirstRow{width:100%;margin:0 auto}.Tournaments .SecondRow{margin:0 auto;width:100%}.Tournaments .ThirdRow{display:flex;flex-direction:column;justify-content:center}.Tournaments .ThirdRow .CenterButton{padding-top:20px;width:100%;display:flex;justify-content:center}",this.shadowRoot.appendChild(t),le(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},wo,bo,n,{session:0,userid:1,endpoint:2,lang:3,translationurl:23,numberoftournaments:4,showmorestep:24,filters:5,loginevent:6,registerevent:7,loginurl:8,registerurl:9,currency:10,keepbrowsercontext:11,sorttype:25,sortorder:26,starttimeafter:27,showanonymoustournaments:28,clientstyling:12,clientstylingurl:13,delaybeforeload:29},null,[-1,-1]),e&&(e.target&&P(e.target,this,e.anchor),e.props)&&(this.$set(e.props),d())}static get observedAttributes(){return["session","userid","endpoint","lang","translationurl","numberoftournaments","showmorestep","filters","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","sorttype","sortorder","starttimeafter","showanonymoustournaments","clientstyling","clientstylingurl","delaybeforeload"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),d()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),d()}get endpoint(){return this.$$.ctx[2]}set endpoint(e){this.$$set({endpoint:e}),d()}get lang(){return this.$$.ctx[3]}set lang(e){this.$$set({lang:e}),d()}get translationurl(){return this.$$.ctx[23]}set translationurl(e){this.$$set({translationurl:e}),d()}get numberoftournaments(){return this.$$.ctx[4]}set numberoftournaments(e){this.$$set({numberoftournaments:e}),d()}get showmorestep(){return this.$$.ctx[24]}set showmorestep(e){this.$$set({showmorestep:e}),d()}get filters(){return this.$$.ctx[5]}set filters(e){this.$$set({filters:e}),d()}get loginevent(){return this.$$.ctx[6]}set loginevent(e){this.$$set({loginevent:e}),d()}get registerevent(){return this.$$.ctx[7]}set registerevent(e){this.$$set({registerevent:e}),d()}get loginurl(){return this.$$.ctx[8]}set loginurl(e){this.$$set({loginurl:e}),d()}get registerurl(){return this.$$.ctx[9]}set registerurl(e){this.$$set({registerurl:e}),d()}get currency(){return this.$$.ctx[10]}set currency(e){this.$$set({currency:e}),d()}get keepbrowsercontext(){return this.$$.ctx[11]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),d()}get sorttype(){return this.$$.ctx[25]}set sorttype(e){this.$$set({sorttype:e}),d()}get sortorder(){return this.$$.ctx[26]}set sortorder(e){this.$$set({sortorder:e}),d()}get starttimeafter(){return this.$$.ctx[27]}set starttimeafter(e){this.$$set({starttimeafter:e}),d()}get showanonymoustournaments(){return this.$$.ctx[28]}set showanonymoustournaments(e){this.$$set({showanonymoustournaments:e}),d()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(e){this.$$set({clientstyling:e}),d()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),d()}get delaybeforeload(){return this.$$.ctx[29]}set delaybeforeload(e){this.$$set({delaybeforeload:e}),d()}}return customElements.get("casino-tournaments-controller")||customElements.define("casino-tournaments-controller",_o),_o});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-controller.js.map
|