@everymatrix/casino-tournaments-thumbnail-controller 1.0.3 → 1.0.4
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 S(){return Object.create(null)}function C(e){e.forEach(x)}function A(e){return"function"==typeof e}function _(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let B,P;function D(e,t){return(B=B||document.createElement("a")).href=t,e===B.href}function z(e,...t){if(null==e)return v;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function oe(e,t,r){e.$$.on_destroy.push(z(t,r))}function $(e){return e&&A(e.destroy)?e.destroy:v}function H(e,t){e.appendChild(t)}function F(e,t,r){e.insertBefore(t,r||null)}function I(e){e.parentNode.removeChild(e)}function U(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function L(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 k(){return O(" ")}function j(){return O("")}function R(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function M(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:M(e,t,r)}function N(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function d(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function G(e,t,r){e.classList[r?"add":"remove"](t)}function J(e){const t={};for(const r of e)t[r.name]=r.value;return t}function V(e){P=e}function se(e){!function(){if(P)return P;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const W=[],ne=[],X=[],K=[],Y=Promise.resolve();let Z=!1;function q(e){X.push(e)}const Q=new Set;let ee=0;function g(){const e=P;do{for(;ee<W.length;){const e=W[ee];ee++,V(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),C(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(q))}for(V(null),W.length=0,ee=0;ne.length;)ne.pop()();for(let e=0;e<X.length;e+=1){const n=X[e];Q.has(n)||(Q.add(n),n())}}while(X.length=0,W.length);for(;K.length;)K.pop()();Z=!1,Q.clear(),V(e)}const te=new Set;function re(n,e,t,r,i,o,s,a=[-1]){var l=P;V(n);const u=n.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:S(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(W.push(e),Z||(Z=!0,Y.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,C(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){o=e.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(te.delete(a),a.i(void 0));{var h=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:m,after_update:f}=h.$$;p&&p.m(s,t),r||q(()=>{var e=d.map(x).filter(A);m?m.push(...e):C(e),h.$$.on_mount=[]}),f.forEach(q)}g()}V(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(x).filter(A);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){C(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(C(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=v}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var le,ue,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ce="URLSearchParams"in a,he="Symbol"in a&&"iterator"in Symbol,pe="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),de="FormData"in a,me="ArrayBuffer"in a;function fe(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 ge(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 he&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ye(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ve(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function we(e){var t=new FileReader,r=ve(t);return t.readAsArrayBuffer(e),r}function Ee(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Te(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:pe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:de&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ce&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&pe&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ee(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||ue(e))?this._bodyArrayBuffer=Ee(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ce&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pe&&(this.blob=function(){var e=ye(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ye(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(we)}),this.text=function(){var e,t,r=ye(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=ve(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},de&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ue=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=fe(e),t=ge(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[fe(e)]},l.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},l.prototype.set=function(e,t){this.map[fe(e)]=ge(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),be(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),be(r)},he&&(l.prototype[Symbol.iterator]=l.prototype.entries);var xe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof u){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Se(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function 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.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}u.prototype.clone=function(){return new u(this,{body:this._bodyInit})},Te.call(u.prototype),Te.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Ae=[301,302,303,307,308],_e=(c.redirect=function(e,t){if(-1===Ae.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},a.DOMException);try{new _e}catch(v){(_e=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),_e.prototype.constructor=_e}function Be(n,s){return new Promise(function(i,e){var t=new u(n,s);if(t.signal&&t.signal.aborted)return e(new _e("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new _e("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(pe?o.responseType="blob":me&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,ge(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}Be.polyfill=!0,a.fetch||(a.fetch=Be,a.Headers=l,a.Request=u,a.Response=c),self.fetch.bind(self);var Pe=function(e,t){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function $e(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Fe(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Ie(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 Le=Ie(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 Oe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=$e(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 Le?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=$e(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ne(c)}catch(e){i=null!=i?i:[],e instanceof Le?i=Fe(Fe([],He(i)),He(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Le(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ne(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)&&Oe(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Oe(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var ke=r,Re=ke.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Me(e){return e instanceof ke||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function Ne(e){h(e)?e():e.unsubscribe()}var De=void 0,ze=!1,Ue=!1,je={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=je.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Fe([e,t],He(r))):setTimeout.apply(void 0,Fe([e,t],He(r)))},clearTimeout:function(e){var t=je.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ge(){}var Je=null;function Ve(e){if(ze){var t=!Je;if(t&&(Je={errorThrown:!1,error:null}),e(),t){var t=Je,r=t.errorThrown,t=t.error;if(Je=null,r)throw t}}else e()}Ce(e,We=ke),e.create=function(e,t,r){return new Qe(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,We.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var We,Xe=e,Ke=Function.prototype.bind;function e(e){var t=We.call(this)||this;return t.isStopped=!1,e?Me(t.destination=e)&&e.add(t):t.destination=nt,t}function Ye(e,t){return Ke.call(e,t)}tt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rt(e)}},tt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rt(e)}else rt(e)},tt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rt(e)}};var Ze,qe=tt,Qe=(Ce(et,Ze=Xe),et);function et(e,t,r){var n=Ze.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Ue?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Ye(e.next,t),error:e.error&&Ye(e.error,t),complete:e.complete&&Ye(e.complete,t)}):e;return n.destination=new qe(r),n}function tt(e){this.partialObserver=e}function rt(e){var t=e;je.setTimeout(function(){throw t})}var nt={closed:!0,next:Ge,error:function(e){throw e},complete:Ge},n="function"==typeof Symbol&&Symbol.observable||"@@observable";function it(e){return e}i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Xe||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Me(n)?e:new Qe(e,t,r);return Ve(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(n,e){var i=this;return new(e=st(e))(function(e,t){var r=new Qe({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},i.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},i.prototype[n]=function(){return this},i.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?it:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},i.prototype.toPromise=function(e){var n=this;return new(e=st(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},i.create=function(e){return new i(e)};var ot=i;function i(e){e&&(this._subscribe=e)}function st(e){return null!=(e=null!=e?e:De)?e:Promise}var at,lt,ut,ct=Ie(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(Ce(o,ut=ot),o.prototype.lift=function(e){var t=new ht(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new ct},o.prototype.next=function(i){var o=this;Ve(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=$e(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var r=this;Ve(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},o.prototype.complete=function(){var t=this;Ve(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),ut.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Re:(this.currentObservers=null,i.push(e),new ke(function(){t.currentObservers=null,Oe(i,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},o.prototype.asObservable=function(){var e=new ot;return e.source=this,e},o.create=function(e,t){return new ht(e,t)},o),ht=(Ce(ft,lt=n),ft.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},ft.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},ft.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},ft.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Re},ft),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},dt=(Ce(mt,at=n),mt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),at.prototype.next.call(this,e)},mt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},mt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},mt);function mt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=pt);var n=at.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function ft(e,t){var r=lt.call(this)||this;return r.destination=e,r.source=t,r}function o(){var e=ut.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let gt=[],bt={};const yt=[];function vt(n,i=v){let o;const s=new Set;function a(e){if(_(n,e)&&(n=e,o)){const e=!yt.length;for(const e of s)e[1](),yt.push(e,n);if(e){for(let e=0;e<yt.length;e+=2)yt[e][0](yt[e+1]);yt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=v){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||v),e(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function wt(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:vt(t,t=>{let r=!1;const n=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),c?t(e):o=A(e)?e:v)},e=u.map((e,t)=>z(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){C(e),o()}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Tt));var t}var Tt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function xt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt(Array.isArray(e)?[]:{},e,t):e}function St(e,t,r){return e.concat(t).map(function(e){return xt(e,r)})}function At(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function _t(e,t){try{return t in e}catch(e){return!1}}function Bt(n,i,o){var s={};return o.isMergeableObject(n)&&At(n).forEach(function(e){s[e]=xt(n[e],o)}),At(i).forEach(function(t){var e,r;(!_t(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(_t(n,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return Pt;e=e.customMerge(t);return"function"==typeof e?e:Pt}(o)(n[t],i[t],o):s[t]=xt(i[t],o))}),s}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||St,r.isMergeableObject=r.isMergeableObject||Et,r.cloneUnlessOtherwiseSpecified=xt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Bt(e,t,r):xt(t,r)}Pt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Pt(e,t,r)},{});throw new Error("first argument should be an array")};var Ct=Pt,$t=function(e,t){return($t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$t(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,b,Ft,w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function It(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Lt(e){return e.type===b.literal}function Ot(e){return e.type===b.number}function kt(e){return e.type===b.date}function Rt(e){return e.type===b.time}function Mt(e){return e.type===b.select}function Nt(e){return e.type===b.plural}function Dt(e){return e.type===b.tag}function zt(e){return e&&"object"==typeof e&&e.type===Ft.number}function Ut(e){return e&&"object"==typeof e&&e.type===Ft.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=Ft=Ft||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jt=/(?:[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 Gt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vt=/^(@+)?(\+|#+)?[rs]?$/g,Wt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Kt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Vt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Yt(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 Zt(e){return Yt(e)||{}}function qt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[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=w(w(w({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return w(w({},e),Zt(t))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return w(w({},e),Zt(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(Wt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&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(Xt.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,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.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=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Kt(o)))}else Vt.test(i.stem)?s=w(w({},s),Kt(i.stem)):((o=Yt(i.stem))&&(s=w(w({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=w(w({},s),n)))}return s}var Qt={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 er=new RegExp("^".concat(n.source,"*")),tr=new RegExp("".concat(n.source,"*$"));function E(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,rr=!!String.fromCodePoint,nr=!!Object.fromEntries,ir=!!String.prototype.codePointAt,or=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},lr=!0;try{lr="a"===(null==(Cr=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Cr[0])}catch(v){lr=!1}var ur,cr,hr=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},pr=rr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},dr=nr?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},mr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},fr=or?function(e){return e.trimStart()}:function(e){return e.replace(er,"")},gr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(tr,"")};function br(e,t){return new RegExp(e,t)}cr=lr?(ur=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ur.lastIndex=t,null!=(t=ur.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=mr(e,t);if(void 0===i||wr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return pr.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.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(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&vr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:n,err:null}},s.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(n,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!vr(this.char()))return this.error(f.INVALID_TAG,E(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,E(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:n,children:t,location:E(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,E(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(f.INVALID_TAG,E(r,this.clonePosition()))},s.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())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=E(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return pr.apply(void 0,t)},s.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),pr(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,E(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=gr(m.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var c=E(n,this.clonePosition());if(l&&hr(null==l?void 0:l.style,"::",0)){var h=fr(l.style.slice(2));if("number"===s)return(m=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?m:{val:{type:b.number,value:r,location:c,style:m.val},err:null};if(0===h.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var p=h,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Qt[t||""]||Qt[r||""]||Qt["".concat(r,"-001")]||Qt["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale)),{type:Ft.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(jt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}});return{val:{type:"date"===s?b.date:b.time,value:r,location:c,style:d},err:null}}return{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,E(p,w({},p)));this.bumpSpace();var m,d=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),d=this.parseIdentifierIfPossible(),c=m.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;h=E(n,this.clonePosition());return"select"===s?{val:{type:b.select,value:r,options:dr(l.val),location:h},err:null}:{val:{type:b.plural,value:r,options:dr(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,E(o,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Gt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var 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(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ft.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?qt(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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()}n=E(n,this.clonePosition());return i?ar(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=mr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.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))},s.prototype.bumpIf=function(e){if(hr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.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)},s.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}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&wr(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var yr=s;function s(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 vr(e){return 97<=e&&e<=122||65<=e&&e<=90}function wr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Er(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new yr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Mt(e)||Nt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ot(e)&&zt(e.style)||(kt(e)||Rt(e))&&Ut(e.style)?delete e.style.location:Dt(e)&&r(e.children)})}(e.val),e.val}function Tr(e,t){var r=t&&t.cache?t.cache:$r,n=t&&t.serializer?t.serializer:_r;return(t&&t.strategy?t.strategy:function(e,t){return Ar(e,this,1===e.length?xr:Sr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function xr(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Sr(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Ar(e,t,r,n,i){return r.bind(t,e,n,i)}var _r=function(){return JSON.stringify(arguments)};function Br(){this.cache=Object.create(null)}Br.prototype.get=function(e){return this.cache[e]},Br.prototype.set=function(e,t){this.cache[e]=t};var Pr,Cr,$r={create:function(){return new Br}},Hr={variadic:function(e,t){return Ar(e,this,Sr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ar(e,this,xr,t.cache.create(),t.serializer)}};(Cr=Pr=Pr||{}).MISSING_VALUE="MISSING_VALUE",Cr.INVALID_VALUE="INVALID_VALUE",Cr.MISSING_INTL_API="MISSING_INTL_API";Ht(jr,Or=Error),jr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Fr,Ir,Lr,Or,kr=jr,Rr=(Ht(Ur,Lr=kr),Ur),Mr=(Ht(zr,Ir=kr),zr),Nr=(Ht(Dr,Fr=kr),Dr);function Dr(e,t){return Fr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Pr.MISSING_VALUE,t)||this}function zr(e,t,r){return Ir.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Pr.INVALID_VALUE,r)||this}function Ur(e,t,r,n){return Lr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pr.INVALID_VALUE,n)||this}function jr(e,t,r){e=Or.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Gr(e,t,r,n,i,o,s){if(1===e.length&&Lt(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Lt(c))a.push({type:T.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:T.literal,value:r.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Nr(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?T.literal:T.object,value:h});else if(kt(c)){var p="string"==typeof c.style?n.date[c.style]:Ut(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Rt(c))p="string"==typeof c.style?n.time[c.style]:Ut(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Ot(c))(p="string"==typeof c.style?n.number[c.style]:zt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Dt(c)){var d=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Mr(m,"function",s);m=f(Gr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Mt(c)){if(!(g=c.options[h]||c.options.other))throw new Rr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,t,r,n,i))}else if(Nt(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new kr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Pr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Rr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,t,r,n,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Jr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.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])},p.__parse=Er,p.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 Vr=p;function p(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Gr(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=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),n[t]||{}),e},{})):r),e},w({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,It([void 0],t,!1)))},{cache:Jr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Hr.variadic}),getDateTimeFormat:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,It([void 0],t,!1)))},{cache:Jr(t.dateTime),strategy:Hr.variadic}),getPluralRules:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,It([void 0],t,!1)))},{cache:Jr(t.pluralRules),strategy:Hr.variadic})}}const m={},Wr=(e,t,r)=>r&&(t in m||(m[t]={}),e in m[t]||(m[t][e]=r),r),Xr=(t,r)=>{if(null!=r){if(r in m&&t in m[r])return m[r][t];var n=hn(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Zr(e))return null;e=function(e){return Kr[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Wr(t,r,i)}}};let Kr;const Yr=vt({});function Zr(e){return e in Kr}function qr(t,...r){delete m[t],Yr.update(e=>(e[t]=Ct.all([e[t]||{},...r]),e))}wt([Yr],([e])=>Object.keys(e)),Yr.subscribe(e=>Kr=e);const Qr={};function en(e){return Qr[e]}function tn(e){return null!=e&&hn(e).some(e=>{return null==(e=en(e))?void 0:e.size})}const rn={};function nn(e){if(!tn(e))return e in rn?rn[e]:Promise.resolve();const t=hn(e).map(e=>{var t=en(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return rn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return Qr[t].delete(r),0===Qr[t].size&&delete Qr[t],e().then(e=>e.default||e)}));return r.then(e=>qr(n,...e))}})).then(()=>{if(tn(e))return nn(e);delete rn[e]}),rn[e]}function on(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const sn={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 an=vt(!1);let ln;const un=vt(null);function cn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function hn(e,t=sn.fallbackLocale){e=cn(e);return t?[...new Set([...e,...cn(t)])]:e}function pn(){return null!=ln?ln:void 0}un.subscribe(e=>{ln=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ie=Object.assign(Object.assign({},un),{set:t=>{if(t&&function(e){if(null!=e){var t=hn(e);for(let e=0;e<t.length;e++){var r=t[e];if(Zr(r))return r}}}(t)&&tn(t)){var r=sn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=pn()&&r?e=window.setTimeout(()=>an.set(!0),r):an.set(!0),nn(t).then(()=>{un.set(t)}).finally(()=>{clearTimeout(e),an.set(!1)})}return un.set(t)}}),dn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},mn=(e,t)=>{var r=sn["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},fn=dn(e=>{var{locale:t,format:r}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=mn("number",r)),new Intl.NumberFormat(t,e)}),gn=dn(e=>{var{locale:t,format:r}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=mn("date",r):0===Object.keys(e).length&&(e=mn("date","short")),new Intl.DateTimeFormat(t,e)}),bn=dn(e=>{var{locale:t,format:r}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=mn("time",r):0===Object.keys(e).length&&(e=mn("time","short")),new Intl.DateTimeFormat(t,e)}),yn=dn((e,t=pn())=>new Vr(e,t,sn.formats,{ignoreTag:sn.ignoreTag})),vn=wt([ie,Yr],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=pn(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Xr(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!=(n=null!=(r=null==(r=(n=sn).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let u=l;try{u=yn(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),wn=(wt([ie],()=>(e,t)=>((e={})=>{var{locale:t=pn()}=e,e=on(e,["locale"]);return bn(Object.assign({locale:t},e))})(t).format(e)),wt([ie],()=>(e,t)=>((e={})=>{var{locale:t=pn()}=e,e=on(e,["locale"]);return gn(Object.assign({locale:t},e))})(t).format(e)),wt([ie],()=>(e,t)=>((e={})=>{var{locale:t=pn()}=e,e=on(e,["locale"]);return fn(Object.assign({locale:t},e))})(t).format(e)),wt([ie,Yr],()=>(e,t=pn())=>Xr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==gt.indexOf(e)&&(t=new dt(t),bt[e]=t,gt.push(e)),bt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),En={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."}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare 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:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való 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 -"}}},Tn={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:",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function xn(r){let n,i,o,s,a,l,u;return{c(){n=L("div"),i=O(r[13]),M(n,"class",o="Status "+r[15]),M(n,"part",s="Status "+r[15])},m(e,t){F(e,n,t),H(n,i),l||(u=$(a=r[18].call(null,n)),l=!0)},p(e,t){8192&t[0]&&N(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&M(n,"class",o),32768&t[0]&&s!==(s="Status "+e[15])&&M(n,"part",s)},d(e){e&&I(n),l=!1,u()}}}function Sn(e){let r,n=e[5]&&An(e);return{c(){n&&n.c(),r=j()},m(e,t){n&&n.m(e,t),F(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=An(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function An(e){let r,n,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=L("div"),n=O(i),M(r,"class","Enrolled"),M(r,"part","Enrolled")},m(e,t){F(e,r,t),H(r,n)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&N(n,i)},d(e){e&&I(r)}}}function _n(r){let n,i,o,s,a;return{c(){M(n=L("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){F(e,n,t),s||(a=$(r[18].call(null,n)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",o)},d(e){e&&I(n),s=!1,a()}}}function Bn(r){let n,i,o,s,a;return{c(){M(n=L("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('"+r[4]+"')")},m(e,t){F(e,n,t),s||(a=$(r[18].call(null,n)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",o),16&t[0]&&d(n,"background-image","url('"+e[4]+"')")},d(e){e&&I(n),s=!1,a()}}}function Pn(r){let n,i,o,s,a;return{c(){n=L("div"),i=O(r[11]),M(n,"class","Date"),M(n,"part","Date")},m(e,t){F(e,n,t),H(n,i),s||(a=$(o=r[17].call(null,n,r[2])),s=!0)},p(e,t){2048&t[0]&&N(i,e[11]),o&&A(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&I(n),s=!1,a()}}}function Cn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g,b,y,v,w,E,T,x,S,A=r[16]("tournamentsThumbnail.scoreCriteria")+"",_=r[16]("tournamentsThumbnail.minbet")+"",B=r[16]("tournamentsThumbnail.seegames")+"",P=r[16]("tournamentsThumbnail.here")+"";return{c(){n=L("div"),i=L("p"),o=O(A),s=O(":\n \n "),a=L("span"),l=O(r[14]),c=O("\n ("),h=O(_),p=k(),d=O(r[6]),m=O(")"),f=k(),g=L("div"),b=L("p"),y=O(B),v=k(),w=L("a"),E=O(P),M(a,"part","ScoreCriteriaSpan"),M(i,"part","ScoreCriteriaP"),M(n,"class","ScoreCriteria"),M(n,"part","ScoreCriteria"),M(w,"part","GamesAnchor"),M(w,"href",r[8]),M(w,"target",T="true"===r[9]?"_self":"_blank"),M(b,"part","GamesP"),M(g,"class","Games"),M(g,"part","Games")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(i,s),H(i,a),H(a,l),H(i,c),H(i,h),H(i,p),H(i,d),H(i,m),F(e,f,t),F(e,g,t),H(g,b),H(b,y),H(b,v),H(b,w),H(w,E),x||(S=[$(u=r[19].call(null,a)),R(w,"click",r[27])],x=!0)},p(e,t){65536&t[0]&&A!==(A=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&N(o,A),16384&t[0]&&N(l,e[14]),65536&t[0]&&_!==(_=e[16]("tournamentsThumbnail.minbet")+"")&&N(h,_),64&t[0]&&N(d,e[6]),65536&t[0]&&B!==(B=e[16]("tournamentsThumbnail.seegames")+"")&&N(y,B),65536&t[0]&&P!==(P=e[16]("tournamentsThumbnail.here")+"")&&N(E,P),256&t[0]&&M(w,"href",e[8]),512&t[0]&&T!==(T="true"===e[9]?"_self":"_blank")&&M(w,"target",T)},d(e){e&&I(n),e&&I(f),e&&I(g),x=!1,C(S)}}}function $n(r){let n,i,o,s,a,l,u,c,h,p=r[0]&&xn(r),d="true"==r[7]&&Sn(r);function m(e){return e[4]?Bn:_n}let f=m(r),g=f(r),b=r[2]&&Pn(r),y=r[12]&&Cn(r);return{c(){n=L("div"),p&&p.c(),i=k(),d&&d.c(),o=k(),g.c(),s=k(),a=L("div"),l=L("div"),u=O(r[1]),c=k(),b&&b.c(),h=k(),y&&y.c(),this.c=v,M(l,"class","Title"),M(l,"part","Title"),M(a,"class","Details"),M(a,"part","Details"),M(n,"class","Thumbnail"),M(n,"part","Thumbnail")},m(e,t){F(e,n,t),p&&p.m(n,null),H(n,i),d&&d.m(n,null),H(n,o),g.m(n,null),H(n,s),H(n,a),H(a,l),H(l,u),H(a,c),b&&b.m(a,null),H(a,h),y&&y.m(a,null),r[28](n)},p(e,t){e[0]?p?p.p(e,t):((p=xn(e)).c(),p.m(n,i)):p&&(p.d(1),p=null),"true"==e[7]?d?d.p(e,t):((d=Sn(e)).c(),d.m(n,o)):d&&(d.d(1),d=null),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(n,s))),2&t[0]&&N(u,e[1]),e[2]?b?b.p(e,t):((b=Pn(e)).c(),b.m(a,h)):b&&(b.d(1),b=null),e[12]?y?y.p(e,t):((y=Cn(e)).c(),y.m(a,null)):y&&(y.d(1),y=null)},i:v,o:v,d(e){e&&I(n),p&&p.d(),d&&d.d(),g.d(),b&&b.d(),y&&y.d(),r[28](null)}}}function Hn(t,e,i){let o;oe(t,vn,e=>i(16,o=e));let r,{session:n=""}=e,{userid:s=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:p=""}=e,{scorecriteria:d=""}=e,{minbetcount:m=""}=e,{showenrolled:f="false"}=e,{gameurl:g=""}=e,{lang:b="en"}=e,{keepbrowsercontext:y="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,E="",T=!1,x="",S="",A="";Object.keys(Tn).forEach(e=>{qr(e,Tn[e])});const _=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(12,T=!0),e.data.type=="TournamentStatus_"+c&&i(0,u=e.data.status))},B=()=>{let e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),n=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(11,E=r+" "+o("tournamentsThumbnail."+t)+", "+o("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},P=()=>{"Unstarted"==u&&(i(13,x=o("tournamentsThumbnail.scheduled")),i(15,A="StatusUnstarted")),"Running"==u&&(i(13,x=o("tournamentsThumbnail.ongoing")),i(15,A="StatusRunning")),"Closed"!=u&&"Closing"!=u||i(13,x=o("tournamentsThumbnail.finished")),"Closed"==u&&i(15,A="StatusClosed"),"Closing"==u&&i(15,A="StatusClosing")},C=()=>{"BetCount"==d&&i(14,S=o("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==d&&i(14,S=o("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==d&&i(14,S=o("tournamentsThumbnail.winStakeRatio"))},$=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};se(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));return t.$$set=e=>{"session"in e&&i(21,n=e.session),"userid"in e&&i(22,s=e.userid),"title"in e&&i(1,a=e.title),"startdate"in e&&i(2,l=e.startdate),"status"in e&&i(0,u=e.status),"tourid"in e&&i(3,c=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,p=e.userenrolled),"scorecriteria"in e&&i(23,d=e.scorecriteria),"minbetcount"in e&&i(6,m=e.minbetcount),"showenrolled"in e&&i(7,f=e.showenrolled),"gameurl"in e&&i(8,g=e.gameurl),"lang"in e&&i(24,b=e.lang),"keepbrowsercontext"in e&&i(9,y=e.keepbrowsercontext),"clientstyling"in e&&i(25,v=e.clientstyling),"clientstylingurl"in e&&i(26,w=e.clientstylingurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&r&&v){let e=document.createElement("style");e.innerHTML=v,r.appendChild(e)}if(67109888&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,r&&(setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500))})}var e;2097152&t.$$.dirty[0]&&n&&(0<n.length&&"false"!=n?i(12,T=!0):i(12,T=!1)),1&t.$$.dirty[0]&&u&&P(),16777218&t.$$.dirty[0]&&b&&a&&(e=b,ie.set(e),C(),P(),l&&B()),4&t.$$.dirty[0]&&l&&B(),8388608&t.$$.dirty[0]&&d&&C()},[u,a,l,c,h,p,m,f,g,y,r,E,T,x,S,A,o,B,P,C,$,n,s,d,b,v,w,()=>$(),function(e){ne[e?"unshift":"push"](()=>{r=e,i(10,r)})}]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:'Roboto'}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},Hn,$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},null,[-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const Fn={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"ră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:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function In(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[10](r[0])+"",b=r[10](r[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?kn:0<e[5]?On:Ln}let v=y(r),w=v(r);function E(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Nn:0<e[5]?Mn:0<e[4]?Rn:void 0}let T=E(r),x=T&&T(r);return{c(){n=L("div"),i=L("div"),o=O(g),s=k(),a=L("div"),l=O(b),u=k(),c=L("div"),h=L("div"),w.c(),p=k(),x&&x.c(),M(i,"class","StartDate"),M(i,"part","StartDate"),M(a,"class","EndDate"),M(a,"part","EndDate"),M(n,"class","TournamentDates"),M(n,"part","TournamentDates"),M(h,"class","ProgressBar"),M(h,"part","ProgressBar"),M(c,"class","ProgressBarWrapper"),M(c,"part","ProgressBarWrapper")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(n,s),H(n,a),H(a,l),F(e,u,t),F(e,c,t),H(c,h),w.m(h,null),H(h,p),x&&x.m(h,null),m||(f=$(d=r[9].call(null,c)),m=!0)},p(e,t){1&t&&g!==(g=e[10](e[0])+"")&&N(o,g),2&t&&b!==(b=e[10](e[1])+"")&&N(l,b),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(h,p))),T===(T=E(e))&&x?x.p(e,t):(x&&x.d(1),(x=T&&T(e))&&(x.c(),x.m(h,null)))},d(e){e&&I(n),e&&I(u),e&&I(c),w.d(),x&&x.d(),m=!1,f()}}}function Ln(e){let r;return{c(){M(r=L("div"),"class","ProgressBarFill"),M(r,"part","ProgressBarFill"),d(r,"width",e[7]()+"%")},m(e,t){F(e,r,t)},p(e,t){128&t&&d(r,"width",e[7]()+"%")},d(e){e&&I(r)}}}function On(e){let r;return{c(){M(r=L("div"),"class","ProgressBarFillStarting"),M(r,"part","ProgressBarFillStarting")},m(e,t){F(e,r,t)},p:v,d(e){e&&I(r)}}}function kn(e){let r;return{c(){M(r=L("div"),"class","ProgressBarFillEnd"),M(r,"part","ProgressBarFillEnd")},m(e,t){F(e,r,t)},p:v,d(e){e&&I(r)}}}function Rn(e){let r,n,i,o,s=e[8]("tournamentsDuration.left")+"";return{c(){r=L("div"),n=O(e[6]),i=k(),o=O(s),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){F(e,r,t),H(r,n),H(r,i),H(r,o)},p(e,t){64&t&&N(n,e[6]),256&t&&s!==(s=e[8]("tournamentsDuration.left")+"")&&N(o,s)},d(e){e&&I(r)}}}function Mn(e){let r,n,i,o,s=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){r=L("div"),n=O(s),i=k(),o=O(a),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){F(e,r,t),H(r,n),H(r,i),H(r,o)},p(e,t){256&t&&s!==(s=e[8]("tournamentsDuration.starting")+"")&&N(n,s),32&t&&a!==(a=e[11](e[5])+"")&&N(o,a)},d(e){e&&I(r)}}}function Nn(e){let r,n,i=e[8]("tournamentsDuration.finished")+"";return{c(){r=L("div"),n=O(i),M(r,"class","Finished"),M(r,"part","Finished")},m(e,t){F(e,r,t),H(r,n)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&N(n,i)},d(e){e&&I(r)}}}function Dn(r){let n,i=r[0]&&r[1]&&In(r);return{c(){n=L("div"),i&&i.c(),this.c=v,M(n,"class","TournamentDuration"),M(n,"part","TournamentDuration")},m(e,t){F(e,n,t),i&&i.m(n,null),r[15](n)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=In(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&I(n),i&&i.d(),r[15](null)}}}function zn(e,t,r){let n,i;oe(e,vn,e=>r(8,i=e));let o,{startdate:s=""}=t,{enddate:a=""}=t,{status:l=""}=t,{lang:u="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,p="",d="",m="";Object.keys(Fn).forEach(e=>{qr(e,Fn[e])});const f=e=>new Date(e).getTime(),g=(e,t)=>(f(t)-f(e))/6e4,b=()=>{var e=new Date;r(4,p=g(e,a)),r(5,d=g(e,s)),r(6,m=y(p))},y=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map(e=>{e=Math.floor(e);return e<10?"0"+e:""+e}).join(":")}return Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return se(()=>{const e=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(e)}),e.$$set=e=>{"startdate"in e&&r(0,s=e.startdate),"enddate"in e&&r(1,a=e.enddate),"status"in e&&r(2,l=e.status),"lang"in e&&r(12,u=e.lang),"clientstyling"in e&&r(13,c=e.clientstyling),"clientstylingurl"in e&&r(14,h=e.clientstylingurl)},e.$$.update=()=>{if(8200&e.$$.dirty&&o&&c){let e=document.createElement("style");e.innerHTML=c,o.appendChild(e)}if(16392&e.$$.dirty&&o&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}19&e.$$.dirty&&r(7,n=()=>{if(p<=0)return 100;var e=g(s,a),t=100/e;return Math.floor((e-p)*t)}),19&e.$$.dirty&&s&&a&&b(),4096&e.$$.dirty&&u&&b(),4112&e.$$.dirty&&u&&y(p)},[s,a,l,o,p,d,m,n,i,b,e=>{let t=new Date(e),r=new Intl.DateTimeFormat(u,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},y,u,c,h,function(e){ne[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},zn,Dn,_,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14},null),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const Un={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"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:"place"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},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 jn(e,t,r){const n=e.slice();return n[11]=t[r],n[13]=r,n}function Gn(t){let n,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=Vn(jn(t,i,e));let s=null;return i.length||(s=Jn(t)),{c(){n=L("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),M(n,"class","Prizes"),M(n,"part","Prizes")},m(e,t){F(e,n,t);for(let e=0;e<o.length;e+=1)o[e].m(n,null);s&&s.m(n,null)},p(t,r){if(6&r){let e;for(i=t[1],e=0;e<i.length;e+=1){const s=jn(t,i,e);o[e]?o[e].p(s,r):(o[e]=Vn(s),o[e].c(),o[e].m(n,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,r):i.length?s&&(s.d(1),s=null):((s=Jn(t)).c(),s.m(n,null))}},d(e){e&&I(n),U(o,e),s&&s.d()}}}function Jn(e){let r,n,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){r=L("p"),n=O(i)},m(e,t){F(e,r,t),H(r,n)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&N(n,i)},d(e){e&&I(r)}}}function Vn(e){let r,n,i,o,s,a,l,u,c,t,h,p=(1<e[11].count?e[11].rank+"~"+(e[11].rank+e[11].count-1):e[11].rank)+"",d=e[2]("tournamentsPrizes.place")+"",m=e[11].name+"";return{c(){r=L("div"),n=L("p"),i=L("span"),o=O(p),s=k(),a=O(d),l=O(": "),u=O(m),c=k(),M(i,"class","PrizeRank"),M(i,"part","PrizeRank"),M(n,"class","PrizeText"),M(n,"part","PrizeText"),M(r,"class",t="Prize Prize"+e[13]),M(r,"part",h="Prize Prize"+e[13])},m(e,t){F(e,r,t),H(r,n),H(n,i),H(i,o),H(n,s),H(n,a),H(n,l),H(n,u),H(r,c)},p(e,t){2&t&&p!==(p=(1<e[11].count?e[11].rank+"~"+(e[11].rank+e[11].count-1):e[11].rank)+"")&&N(o,p),4&t&&d!==(d=e[2]("tournamentsPrizes.place")+"")&&N(a,d),2&t&&m!==(m=e[11].name+"")&&N(u,m)},d(e){e&&I(r)}}}function Wn(r){let n,i,o,s,a,l,u,c=r[2]("tournamentsPrizes.prizes")+"",h=r[1]&&Gn(r);return{c(){n=L("div"),i=L("div"),(o=L("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=k(),a=L("p"),l=O(c),u=k(),h&&h.c(),this.c=v,M(o,"class","TournamentPrizesIconWrapper"),M(o,"part","TournamentPrizesIconWrapper"),M(a,"class","PrizesTitle"),M(a,"part","PrizesTitle"),M(i,"class","TournamentPrizesIconSection"),M(i,"part","TournamentPrizesIconSection"),M(n,"class","TournamentPrizes"),M(n,"part","TournamentPrizes")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(i,s),H(i,a),H(a,l),H(n,u),h&&h.m(n,null),r[6](n)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&N(l,c),e[1]?h?h.p(e,t):((h=Gn(e)).c(),h.m(n,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&I(n),h&&h.d(),r[6](null)}}}function Xn(e,t,r){let n;oe(e,vn,e=>r(2,n=e));let i,o,{tourid:s=""}=t,{clientstyling:a=""}=t,{clientstylingurl:l=""}=t;Object.keys(Un).forEach(e=>{qr(e,Un[e])});const u=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&r(1,o=e.data.prizes)};return se(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)})),e.$$set=e=>{"tourid"in e&&r(3,s=e.tourid),"clientstyling"in e&&r(4,a=e.clientstyling),"clientstylingurl"in e&&r(5,l=e.clientstylingurl)},e.$$.update=()=>{if(17&e.$$.dirty&&i&&a){let e=document.createElement("style");e.innerHTML=a,i.appendChild(e)}if(33&e.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,i&&(setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500))})}},[i,o,n,s,a,l,function(e){ne[e?"unshift":"push"](()=>{i=e,r(0,i)})}]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},Xn,Wn,_,{tourid:3,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const Kn={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function Yn(e,t,r){const n=e.slice();return n[38]=t[r],n[40]=r,n}function Zn(r){let i,n,o,s,a,l,u,c,h=r[0],p=[];for(let e=0;e<h.length;e+=1)p[e]=qn(Yn(r,h,e));return{c(){(i=L("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',n=k(),o=L("main"),s=L("div");for(let e=0;e<p.length;e+=1)p[e].c();a=k(),(l=L("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>',M(i,"class","SliderNavButton"),M(i,"part","SliderNavButton"),G(i,"disabled",r[6]),M(s,"class","items"),M(s,"part","items"),d(s,"transform","translateX("+r[1]+"px)"),M(l,"class","SliderNavButton"),M(l,"part","SliderNavButton"),G(l,"disabled",r[7])},m(e,t){F(e,i,t),F(e,n,t),F(e,o,t),H(o,s);for(let e=0;e<p.length;e+=1)p[e].m(s,null);r[22](s),F(e,a,t),F(e,l,t),u||(c=[R(i,"click",r[18]),R(l,"click",r[23])],u=!0)},p(t,r){if(64&r[0]&&G(i,"disabled",t[6]),5913&r[0]){let e;for(h=t[0],e=0;e<h.length;e+=1){var n=Yn(t,h,e);p[e]?p[e].p(n,r):(p[e]=qn(n),p[e].c(),p[e].m(s,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}2&r[0]&&d(s,"transform","translateX("+t[1]+"px)"),128&r[0]&&G(l,"disabled",t[7])},d(e){e&&I(i),e&&I(n),e&&I(o),U(p,e),r[22](null),e&&I(a),e&&I(l),u=!1,C(c)}}}function qn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[8]("gamesSlider.playNow")+"";function b(){return r[19](r[38])}function y(){return r[20](r[40])}return{c(){n=L("div"),i=L("span"),o=O(g),l=k(),u=L("img"),d=k(),M(i,"class",s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),M(i,"part",a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),D(u.src,c=r[38].thumbnail)||M(u,"src",c),M(u,"width","132px"),M(u,"height","100px"),M(u,"alt",h=r[38].name),M(u,"title",p=r[38].name),M(n,"class","item"),M(n,"part","item")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(n,l),H(n,u),H(n,d),m||(f=[R(n,"click",b),R(n,"mouseenter",y),R(n,"mouseleave",r[21])],m=!0)},p(e,t){r=e,256&t[0]&&g!==(g=r[8]("gamesSlider.playNow")+"")&&N(o,g),24&t[0]&&s!==(s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(i,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(i,"part",a),1&t[0]&&!D(u.src,c=r[38].thumbnail)&&M(u,"src",c),1&t[0]&&h!==(h=r[38].name)&&M(u,"alt",h),1&t[0]&&p!==(p=r[38].name)&&M(u,"title",p)},d(e){e&&I(n),m=!1,C(f)}}}function Qn(r){let n,i=r[0]&&Zn(r);return{c(){n=L("div"),i&&i.c(),this.c=v,M(n,"class","TournamentsGamesSlider"),M(n,"part","TournamentsGamesSlider")},m(e,t){F(e,n,t),i&&i.m(n,null),r[24](n)},p(e,t){e[0]?i?i.p(e,t):((i=Zn(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&I(n),i&&i.d(),r[24](null)}}}function ei(e,t,r){let n,i,o;oe(e,vn,e=>r(8,o=e));let s,a,l,u,{tournamenturl:c=""}=t,{scrollby:h="3"}=t,{pagfactor:p="175"}=t,{lang:d=""}=t,m=window.navigator.userAgent,f=[],g=0,b=null,y=null,v=!1,w=0;Object.keys(Kn).forEach(e=>{qr(e,Kn[e])});const E=e=>{r(3,v=!0),r(4,l=e)},T=()=>{r(3,v=!1),r(4,l=-1)},x=e=>{e=(e.touches||e.originalEvent.touches)[0];b=e.clientX,y=e.clientY},S=e=>{var t;b&&y&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=b-t,e=y-e,Math.abs(t)>Math.abs(e)&&A(0<t?1:-1),b=null,y=null)},A=e=>{0<e&&!i?(r(1,g-=s),r(1,g=g<w?w:g)):e<0&&!n&&(r(1,g+=s),r(1,g=0<g?0:g))},_=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return se(()=>(s=parseInt(h,10)*parseInt(p,10),()=>{a.removeEventListener("touchstart",x),a.removeEventListener("touchmove",S)})),e.$$set=e=>{"tournamenturl"in e&&r(14,c=e.tournamenturl),"scrollby"in e&&r(15,h=e.scrollby),"pagfactor"in e&&r(13,p=e.pagfactor),"lang"in e&&r(16,d=e.lang)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(6,n=0===g),131074&e.$$.dirty[0]&&r(7,i=g<=w),16384&e.$$.dirty[0]&&c){let e=new URL(c),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${g})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",d),e.searchParams.append("platform",wn(m)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(0,f=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",x,{passive:!0}),a.addEventListener("touchmove",S,{passive:!0})),1&e.$$.dirty[0]&&f.length&&setTimeout(()=>{r(17,w=-1*(u.scrollWidth-u.clientWidth)),r(13,p=new String(u.scrollWidth/f.length)),s=parseInt(h,10)*parseFloat(p,2).toFixed(2)},1e3)},r(1,g=0),[f,g,a,v,l,u,n,i,o,E,T,A,_,p,c,h,d,w,()=>A(-1),e=>_(e),e=>E(e),()=>T(),function(e){ne[e?"unshift":"push"](()=>{u=e,r(5,u)})},()=>A(1),function(e){ne[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}function ti(r){let n,i,o,s,a,l,u,c,h,p=r[11]&&ni(r);function d(e){return e[11]?"Closed"!=e[20]&&"Closing"!=e[20]?si:"true"==e[3]?oi:void 0:ai}let m=d(r),f=m&&m(r),g=(r[14]||r[16])&&mi(r),b="true"==r[4]&&fi(r);return{c(){n=L("div"),i=L("casino-tournaments-thumbnail"),o=k(),p&&p.c(),s=k(),a=L("div"),f&&f.c(),l=k(),g&&g.c(),u=k(),b&&b.c(),y(i,"session",r[0]),y(i,"userid",r[1]),y(i,"title",r[17]),y(i,"status",r[20]),y(i,"startdate",r[18]),y(i,"tourid",r[21]),y(i,"scorecriteria",r[24]),y(i,"minbetcount",r[25]),y(i,"thumbnail",r[22]),y(i,"userenrolled",r[23]),y(i,"showenrolled",r[5]),y(i,"gameurl",r[27]),y(i,"lang",r[8]),y(i,"keepbrowsercontext",r[9]),y(i,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),M(a,"class","TournamentButtons"),M(a,"part","TournamentButtons"),M(n,"class",c="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[28]?"elementToFadeOut":"elementToFadeIn")),M(n,"part",h="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[28]?"elementToFadeOut":"elementToFadeIn")+" "+(r[28]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){F(e,n,t),H(n,i),H(n,o),p&&p.m(n,null),H(n,s),H(n,a),f&&f.m(a,null),H(n,l),g&&g.m(n,null),H(n,u),b&&b.m(n,null),r[50](n)},p(e,t){1&t[0]&&y(i,"session",e[0]),2&t[0]&&y(i,"userid",e[1]),131072&t[0]&&y(i,"title",e[17]),1048576&t[0]&&y(i,"status",e[20]),262144&t[0]&&y(i,"startdate",e[18]),2097152&t[0]&&y(i,"tourid",e[21]),16777216&t[0]&&y(i,"scorecriteria",e[24]),33554432&t[0]&&y(i,"minbetcount",e[25]),4194304&t[0]&&y(i,"thumbnail",e[22]),8388608&t[0]&&y(i,"userenrolled",e[23]),32&t[0]&&y(i,"showenrolled",e[5]),134217728&t[0]&&y(i,"gameurl",e[27]),256&t[0]&&y(i,"lang",e[8]),512&t[0]&&y(i,"keepbrowsercontext",e[9]),e[11]?p?p.p(e,t):((p=ni(e)).c(),p.m(n,s)):p&&(p.d(1),p=null),m===(m=d(e))&&f?f.p(e,t):(f&&f.d(1),(f=m&&m(e))&&(f.c(),f.m(a,null))),e[14]||e[16]?g?g.p(e,t):((g=mi(e)).c(),g.m(n,u)):g&&(g.d(1),g=null),"true"==e[4]?b?b.p(e,t):((b=fi(e)).c(),b.m(n,null)):b&&(b.d(1),b=null),268435648&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(n,"class",c),268435648&t[0]&&h!==(h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(n,"part",h)},d(e){e&&I(n),p&&p.d(),f&&f.d(),g&&g.d(),b&&b.d(),r[50](null)}}}function ri(e){let r,n,i,o;return{c(){r=L("div"),(n=L("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>',M(n,"class","ph-item"),M(n,"part","ph-item"),M(r,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){F(e,r,t),H(r,n)},p(e,t){268435648&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",i),268435648&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",o)},d(e){e&&I(r)}}}function ni(e){let r,n,i=e[21]&&ii(e);return{c(){i&&i.c(),r=k(),y(n=L("casino-tournaments-thumbnail-duration"),"status",e[20]),y(n,"startdate",e[18]),y(n,"lang",e[8]),y(n,"enddate",e[19]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),F(e,r,t),F(e,n,t)},p(e,t){e[21]?i?i.p(e,t):((i=ii(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),1048576&t[0]&&y(n,"status",e[20]),262144&t[0]&&y(n,"startdate",e[18]),256&t[0]&&y(n,"lang",e[8]),524288&t[0]&&y(n,"enddate",e[19])},d(e){i&&i.d(e),e&&I(r),e&&I(n)}}}function ii(r){let n,i,o,s;return{c(){y(n=L("casino-tournaments-thumbnail-prizes"),"tourid",r[21]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){F(e,n,t),o||(s=$(i=r[34].call(null,n,r[21])),o=!0)},p(e,t){2097152&t[0]&&y(n,"tourid",e[21]),i&&A(i.update)&&2097152&t[0]&&i.update.call(null,e[21])},d(e){e&&I(n),o=!1,s()}}}function oi(r){let n,i,o,s,a=r[29]("tournamentsThController.details")+"";return{c(){n=L("button"),i=O(a),M(n,"class","DetailsLargeButton"),M(n,"part","DetailsLargeButton")},m(e,t){F(e,n,t),H(n,i),o||(s=R(n,"click",r[49]),o=!0)},p(e,t){536870912&t[0]&&a!==(a=e[29]("tournamentsThController.details")+"")&&N(i,a)},d(e){e&&I(n),o=!1,s()}}}function si(e){let r,n,i="true"==e[3]&&li(e);function o(e){return 1==e[23]?ci:ui}let s=o(e),a=s(e);return{c(){i&&i.c(),r=k(),a.c(),n=j()},m(e,t){i&&i.m(e,t),F(e,r,t),a.m(e,t),F(e,n,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=li(e)).c(),i.m(r.parentNode,r)):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(n.parentNode,n)))},d(e){i&&i.d(e),e&&I(r),a.d(e),e&&I(n)}}}function ai(r){let n,i,o,s,a,l,u,c=r[29]("tournamentsThController.login")+"",h=r[29]("tournamentsThController.register")+"";return{c(){n=L("button"),i=O(c),o=k(),s=L("button"),a=O(h),M(n,"class","LoginButton"),M(n,"part","LoginButton"),M(s,"class","RegisterButton"),M(s,"part","RegisterButton")},m(e,t){F(e,n,t),H(n,i),F(e,o,t),F(e,s,t),H(s,a),l||(u=[R(n,"click",r[45]),R(s,"click",r[46])],l=!0)},p(e,t){536870912&t[0]&&c!==(c=e[29]("tournamentsThController.login")+"")&&N(i,c),536870912&t[0]&&h!==(h=e[29]("tournamentsThController.register")+"")&&N(a,h)},d(e){e&&I(n),e&&I(o),e&&I(s),l=!1,C(u)}}}function li(r){let n,i,o,s,a=r[29]("tournamentsThController.details")+"";return{c(){n=L("button"),i=O(a),M(n,"class","DetailsButton"),M(n,"part","DetailsButton")},m(e,t){F(e,n,t),H(n,i),o||(s=R(n,"click",r[47]),o=!0)},p(e,t){536870912&t[0]&&a!==(a=e[29]("tournamentsThController.details")+"")&&N(i,a)},d(e){e&&I(n),o=!1,s()}}}function ui(r){let n,i,o,s,a;function l(e){return 1==e[13]?pi:hi}let u=l(r),c=u(r);return{c(){n=L("button"),c.c(),M(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),M(n,"part",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[14]},m(e,t){F(e,n,t),c.m(n,null),s||(a=R(n,"click",r[48]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(n,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"part",o),16384&t[0]&&(n.disabled=e[14])},d(e){e&&I(n),c.d(),s=!1,a()}}}function ci(e){let r,n="true"==e[3]&&di(e);return{c(){n&&n.c(),r=j()},m(e,t){n&&n.m(e,t),F(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=di(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function hi(e){let r,n,i,o,s,a,l,u,c,h=e[29]("tournamentsThController.join")+"";return{c(){r=L("span"),n=O(h),i=k(),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"),M(r,"part","JoinButtonSpan"),M(c,"class","a"),M(c,"part","a JoinButtonSvgA"),M(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),M(c,"transform","translate(26 26) rotate(180)"),M(u,"transform","translate(26 26) rotate(180)"),M(o,"part","JoinButtonSvg"),M(o,"xmlns","http://www.w3.org/2000/svg"),M(o,"width","26"),M(o,"height","26"),M(o,"viewBox","0 0 26 26")},m(e,t){F(e,r,t),H(r,n),F(e,i,t),F(e,o,t),H(o,s),H(s,a),H(a,l),H(o,u),H(u,c)},p(e,t){536870912&t[0]&&h!==(h=e[29]("tournamentsThController.join")+"")&&N(n,h)},d(e){e&&I(r),e&&I(i),e&&I(o)}}}function pi(e){let r,n;return{c(){r=t("svg"),M(n=t("circle"),"cx","20"),M(n,"cy","20"),M(n,"r","18"),M(r,"class","spinner"),M(r,"part","spinner")},m(e,t){F(e,r,t),H(r,n)},p:v,d(e){e&&I(r)}}}function di(e){let r,n,i=e[29]("tournamentsThController.enrolled")+"";return{c(){r=L("button"),n=O(i),M(r,"class","EnrolledButton"),M(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){F(e,r,t),H(r,n)},p(e,t){536870912&t[0]&&i!==(i=e[29]("tournamentsThController.enrolled")+"")&&N(n,i)},d(e){e&&I(r)}}}function mi(e){let r,n,i,o,s=e[29]("tournamentsThController.joinerror")+"";return{c(){r=L("span"),n=O(s),i=k(),o=O(e[15]),M(r,"class","ErrorText"),M(r,"part","ErrorText")},m(e,t){F(e,r,t),H(r,n),H(r,i),H(r,o)},p(e,t){536870912&t[0]&&s!==(s=e[29]("tournamentsThController.joinerror")+"")&&N(n,s),32768&t[0]&&N(o,e[15])},d(e){e&&I(r)}}}function fi(e){let r;return{c(){y(r=L("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),y(r,"lang",e[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){F(e,r,t)},p(e,t){4&t[0]&&y(r,"tournamenturl",e[2]),256&t[0]&&y(r,"lang",e[8])},d(e){e&&I(r)}}}function gi(e){let r;function n(e){return e[12]?ri:e[17]?ti:void 0}let i=n(e),o=i&&i(e);return{c(){o&&o.c(),r=j(),this.c=v},m(e,t){o&&o.m(e,t),F(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o&&o.d(1),(o=i&&i(e))&&(o.c(),o.m(r.parentNode,r)))},i:v,o:v,d(e){o&&o.d(e),e&&I(r)}}}function bi(e,t,u){let r;oe(e,vn,e=>u(29,r=e));let n,i,o,s,a,c,l,h,p,d,m,{session:f=""}=t,{userid:k=""}=t,{tournamenturl:g=""}=t,b=t["touridx"],{endpoint:y=""}=t,{showdetails:R=""}=t,{showslider:M=""}=t,{showenrolled:N=""}=t,{maxwidth:D=""}=t,{fullsize:z=""}=t,{lang:v=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:T=""}=t,{registerurl:x=""}=t,{currency:S=""}=t,{keepbrowsercontext:U="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:_=""}=t,B=!1,P="",C=!0,j=window.navigator.userAgent,$=!1,H=!1,G="There was an error while trying to join the tournament",F=!1,J=[],I=[],V="#",L=!1;var W,X;({withLocale:W,translations:X}={withLocale:"en",translations:{}}),ie.subscribe(e=>{null==e&&(Yr.set(X),ie.set(W))}),Object.keys(En).forEach(e=>{qr(e,En[e])});const K=e=>{Z(e),re(e),te(this,c)},Y=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(11,B=!0),P=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(c&&c!=e.id)return;K(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+b){let e=r.data.tournamentData,t=b<4?100*b:300*Math.random()+300;u(28,L=1==b),setTimeout(()=>{u(28,L=!0),u(21,c=e.id),K(e)},t),setTimeout(()=>{u(28,L=!1)},200+t)}},Z=e=>{e.state!=a&&(u(20,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},q=()=>{w&&window.postMessage({type:w,transition:"Login"},window.location.href),T&&(window.location=T)},Q=()=>{E&&window.postMessage({type:E,transition:"Register"},window.location.href),x&&(window.location=x)},O=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},ee=async(t,e)=>{u(14,H=!1),u(16,F=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(13,$=!0);let r=new URL(y+"/bonus/claim"),n=new Headers,i={},o=(r.searchParams.append("language",v),r.searchParams.append("platform",wn(j)),n.append("Content-Type","application/json"),n.append("X-SessionID",P),e&&1<=e.length&&(i={language:v,bonusCode:e[0].code,currency:S}),{method:"PUT",headers:n,body:JSON.stringify(i)});const s=()=>{u(13,$=!1),u(23,h=!0)},a=e=>{u(13,$=!1),e&&u(15,G=e),u(14,H=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,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(16,F=!0),u(14,H=!1))}else a(l.errorMessage)},te=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:J},window.location.href)},re=e=>{e&&(u(17,i=e.nameOrTitle||""),u(18,o=e.startTime),u(19,s=e.endTime),u(20,a=e.state),u(21,c=e.id),u(22,l=e.thumbnail),u(23,h=e.playerEnrolled||!1),u(24,p=e.scoreCriteria),u(25,d=e.minBetCount),J=e.prizes,u(26,I=e.wallets||[]),u(27,V=e.termsUrl||"#"))};return se(()=>(u(12,C=!1),window.addEventListener("message",Y,!1),()=>{window.removeEventListener("message",Y)})),e.$$set=e=>{"session"in e&&u(0,f=e.session),"userid"in e&&u(1,k=e.userid),"tournamenturl"in e&&u(2,g=e.tournamenturl),"touridx"in e&&u(35,b=e.touridx),"endpoint"in e&&u(36,y=e.endpoint),"showdetails"in e&&u(3,R=e.showdetails),"showslider"in e&&u(4,M=e.showslider),"showenrolled"in e&&u(5,N=e.showenrolled),"maxwidth"in e&&u(6,D=e.maxwidth),"fullsize"in e&&u(7,z=e.fullsize),"lang"in e&&u(8,v=e.lang),"loginevent"in e&&u(37,w=e.loginevent),"registerevent"in e&&u(38,E=e.registerevent),"loginurl"in e&&u(39,T=e.loginurl),"registerurl"in e&&u(40,x=e.registerurl),"currency"in e&&u(41,S=e.currency),"keepbrowsercontext"in e&&u(9,U=e.keepbrowsercontext),"clientstyling"in e&&u(42,A=e.clientstyling),"clientstylingurl"in e&&u(43,_=e.clientstylingurl)},e.$$.update=()=>{if(1024&e.$$.dirty[0]|2048&e.$$.dirty[1]&&n&&A){let e=document.createElement("style");e.innerHTML=A,n.appendChild(e)}if(1024&e.$$.dirty[0]|4096&e.$$.dirty[1]&&n&&_){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,n&&(setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500))})}if(1&e.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(P=f,u(11,B=!0)):u(11,B=!1)),260&e.$$.dirty[0]&&u(44,m=g&&v),8192&e.$$.dirty[1]&&m){u(12,C=!0);{var r=g;u(12,C=!0);let e=new URL(r),t=new Headers;e.searchParams.append("language",v),e.searchParams.append("platform",wn(j)),B&&t.append("X-SessionID",P),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(12,C=!1),re(e.item)})}}},[f,k,g,R,M,N,D,z,v,U,n,B,C,$,H,G,F,i,o,s,a,c,l,h,p,d,I,V,L,r,q,Q,O,ee,te,b,y,w,E,T,x,S,A,_,m,()=>q(),()=>Q(),()=>O(c),()=>ee(c,I),()=>O(c),function(e){ne[e?"unshift":"push"](()=>{n=e,u(10,n)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},ei,Qn,_,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16},null,[-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}});class yi extends ae{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.ph-col-12{flex:0 0 100%}[class*="ph-col"]{direction:ltr}[class*="ph-col"]>*+.ph-row{margin-top:0}[class*="ph-col"]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}</style>',re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},bi,gi,_,{session:0,userid:1,tournamenturl:2,touridx:35,endpoint:36,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:37,registerevent:38,loginurl:39,registerurl:40,currency:41,keepbrowsercontext:9,clientstyling:42,clientstylingurl:43},null,[-1,-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[35]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[36]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[37]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[38]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[39]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[40]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[41]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",yi),yi});
|
|
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 S(){return Object.create(null)}function C(e){e.forEach(x)}function A(e){return"function"==typeof e}function _(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let B,P;function D(e,t){return(B=B||document.createElement("a")).href=t,e===B.href}function z(e,...t){if(null==e)return v;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function oe(e,t,r){e.$$.on_destroy.push(z(t,r))}function $(e){return e&&A(e.destroy)?e.destroy:v}function H(e,t){e.appendChild(t)}function F(e,t,r){e.insertBefore(t,r||null)}function I(e){e.parentNode.removeChild(e)}function U(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function L(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 k(){return O(" ")}function j(){return O("")}function R(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function M(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function y(e,t,r){t in e?e[t]="boolean"==typeof e[t]&&""===r||r:M(e,t,r)}function N(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}function d(e,t,r,n){null===r?e.style.removeProperty(t):e.style.setProperty(t,r,n?"important":"")}function G(e,t,r){e.classList[r?"add":"remove"](t)}function J(e){const t={};for(const r of e)t[r.name]=r.value;return t}function V(e){P=e}function se(e){!function(){if(P)return P;throw new Error("Function called outside component initialization")}().$$.on_mount.push(e)}const W=[],ne=[],X=[],K=[],Y=Promise.resolve();let Z=!1;function q(e){X.push(e)}const Q=new Set;let ee=0;function g(){const e=P;do{for(;ee<W.length;){const e=W[ee];ee++,V(e),t=r=void 0;var t,r=e.$$;null!==r.fragment&&(r.update(),C(r.before_update),t=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,t),r.after_update.forEach(q))}for(V(null),W.length=0,ee=0;ne.length;)ne.pop()();for(let e=0;e<X.length;e+=1){const n=X[e];Q.has(n)||(Q.add(n),n())}}while(X.length=0,W.length);for(;K.length;)K.pop()();Z=!1,Q.clear(),V(e)}const te=new Set;function re(n,e,t,r,i,o,s,a=[-1]){var l=P;V(n);const u=n.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:S(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:S(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=t?t(n,e.props||{},(e,t,...r)=>{var r=r.length?r[0]:t;return u.ctx&&i(u.ctx[e],u.ctx[e]=r)&&(!u.skip_bound&&u.bound[e]&&u.bound[e](r),c&&(r=e,-1===(e=n).$$.dirty[0]&&(W.push(e),Z||(Z=!0,Y.then(g)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],u.update(),c=!0,C(u.before_update),u.fragment=!!r&&r(u.ctx),e.target){if(e.hydrate){o=e.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(I)}else u.fragment&&u.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(te.delete(a),a.i(void 0));{var h=n;s=e.target;t=e.anchor;r=e.customElement;const{fragment:p,on_mount:d,on_destroy:m,after_update:f}=h.$$;p&&p.m(s,t),r||q(()=>{var e=d.map(x).filter(A);m?m.push(...e):C(e),h.$$.on_mount=[]}),f.forEach(q)}g()}V(l)}let ae;"function"==typeof HTMLElement&&(ae=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=this.$$["on_mount"];this.$$.on_disconnect=e.map(x).filter(A);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){C(this.$$.on_disconnect)}$destroy(){{var e;const t=this.$$;null!==t.fragment&&(C(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}this.$destroy=v}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var le,ue,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ce="URLSearchParams"in a,he="Symbol"in a&&"iterator"in Symbol,pe="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(e){return!1}}(),de="FormData"in a,me="ArrayBuffer"in a;function fe(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 ge(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 he&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function ye(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function ve(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function we(e){var t=new FileReader,r=ve(t);return t.readAsArrayBuffer(e),r}function Ee(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Te(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:pe&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:de&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ce&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():me&&pe&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=Ee(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):me&&(ArrayBuffer.prototype.isPrototypeOf(e)||ue(e))?this._bodyArrayBuffer=Ee(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ce&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},pe&&(this.blob=function(){var e=ye(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ye(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(we)}),this.text=function(){var e,t,r=ye(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,t=ve(e=new FileReader),e.readAsText(r),t;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},de&&(this.formData=function(){return this.text().then(Se)}),this.json=function(){return this.text().then(JSON.parse)},this}me&&(le=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ue=ArrayBuffer.isView||function(e){return e&&-1<le.indexOf(Object.prototype.toString.call(e))}),l.prototype.append=function(e,t){e=fe(e),t=ge(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},l.prototype.delete=function(e){delete this.map[fe(e)]},l.prototype.get=function(e){return e=fe(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(fe(e))},l.prototype.set=function(e,t){this.map[fe(e)]=ge(t)},l.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),be(r)},l.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),be(t)},l.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),be(r)},he&&(l.prototype[Symbol.iterator]=l.prototype.entries);var xe=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function u(e,t){if(!(this instanceof u))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n=(t=t||{}).body;if(e instanceof u){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(e=t.method||this.method||"GET").toUpperCase(),-1<xe.indexOf(r)?r:e),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function Se(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(t=(e=e.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function 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.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}u.prototype.clone=function(){return new u(this,{body:this._bodyInit})},Te.call(u.prototype),Te.call(c.prototype),c.prototype.clone=function(){return new c(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},c.error=function(){var e=new c(null,{status:0,statusText:""});return e.type="error",e};var Ae=[301,302,303,307,308],_e=(c.redirect=function(e,t){if(-1===Ae.indexOf(t))throw new RangeError("Invalid status code");return new c(null,{status:t,headers:{location:e}})},a.DOMException);try{new _e}catch(v){(_e=function(e,t){this.message=e,this.name=t;t=Error(e);this.stack=t.stack}).prototype=Object.create(Error.prototype),_e.prototype.constructor=_e}function Be(n,s){return new Promise(function(i,e){var t=new u(n,s);if(t.signal&&t.signal.aborted)return e(new _e("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var e=e.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)},n=(t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new _e("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&a.location.href?a.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(pe?o.responseType="blob":me&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,ge(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}Be.polyfill=!0,a.fetch||(a.fetch=Be,a.Headers=l,a.Request=u,a.Response=c),self.fetch.bind(self);var Pe=function(e,t){return(Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ce(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}Pe(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function $e(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function He(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function Fe(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return"function"==typeof e}function Ie(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 Le=Ie(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 Oe(e,t){e&&0<=(t=e.indexOf(t))&&e.splice(t,1)}r.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=$e(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 Le?e.errors:[e]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=$e(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Ne(c)}catch(e){i=null!=i?i:[],e instanceof Le?i=Fe(Fe([],He(i)),He(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Le(i)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)Ne(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)&&Oe(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&Oe(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var ke=r,Re=ke.EMPTY;function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}function Me(e){return e instanceof ke||e&&"closed"in e&&h(e.remove)&&h(e.add)&&h(e.unsubscribe)}function Ne(e){h(e)?e():e.unsubscribe()}var De=void 0,ze=!1,Ue=!1,je={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=je.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,Fe([e,t],He(r))):setTimeout.apply(void 0,Fe([e,t],He(r)))},clearTimeout:function(e){var t=je.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Ge(){}var Je=null;function Ve(e){if(ze){var t=!Je;if(t&&(Je={errorThrown:!1,error:null}),e(),t){var t=Je,r=t.errorThrown,t=t.error;if(Je=null,r)throw t}}else e()}Ce(e,We=ke),e.create=function(e,t,r){return new Qe(e,t,r)},e.prototype.next=function(e){this.isStopped||this._next(e)},e.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,We.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(e){this.destination.next(e)},e.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var We,Xe=e,Ke=Function.prototype.bind;function e(e){var t=We.call(this)||this;return t.isStopped=!1,e?Me(t.destination=e)&&e.add(t):t.destination=nt,t}function Ye(e,t){return Ke.call(e,t)}tt.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){rt(e)}},tt.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){rt(e)}else rt(e)},tt.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){rt(e)}};var Ze,qe=tt,Qe=(Ce(et,Ze=Xe),et);function et(e,t,r){var n=Ze.call(this)||this,r=h(e)||!e?{next:null!=e?e:void 0,error:null!=t?t:void 0,complete:null!=r?r:void 0}:n&&Ue?((t=Object.create(e)).unsubscribe=function(){return n.unsubscribe()},{next:e.next&&Ye(e.next,t),error:e.error&&Ye(e.error,t),complete:e.complete&&Ye(e.complete,t)}):e;return n.destination=new qe(r),n}function tt(e){this.partialObserver=e}function rt(e){var t=e;je.setTimeout(function(){throw t})}var nt={closed:!0,next:Ge,error:function(e){throw e},complete:Ge},n="function"==typeof Symbol&&Symbol.observable||"@@observable";function it(e){return e}i.prototype.lift=function(e){var t=new i;return t.source=this,t.operator=e,t},i.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Xe||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Me(n)?e:new Qe(e,t,r);return Ve(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(n,e){var i=this;return new(e=st(e))(function(e,t){var r=new Qe({next:function(e){try{n(e)}catch(e){t(e),r.unsubscribe()}},error:t,complete:e});i.subscribe(r)})},i.prototype._subscribe=function(e){var t;return null==(t=this.source)?void 0:t.subscribe(e)},i.prototype[n]=function(){return this},i.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?it:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},i.prototype.toPromise=function(e){var n=this;return new(e=st(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},i.create=function(e){return new i(e)};var ot=i;function i(e){e&&(this._subscribe=e)}function st(e){return null!=(e=null!=e?e:De)?e:Promise}var at,lt,ut,ct=Ie(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(Ce(o,ut=ot),o.prototype.lift=function(e){var t=new ht(this,this);return t.operator=e,t},o.prototype._throwIfClosed=function(){if(this.closed)throw new ct},o.prototype.next=function(i){var o=this;Ve(function(){var t,e;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=$e(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(e){t={error:e}}finally{try{n&&!n.done&&(e=r.return)&&e.call(r)}finally{if(t)throw t.error}}}})},o.prototype.error=function(t){var r=this;Ve(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},o.prototype.complete=function(){var t=this;Ve(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var e;return 0<(null==(e=this.observers)?void 0:e.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(e){return this._throwIfClosed(),ut.prototype._trySubscribe.call(this,e)},o.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},o.prototype._innerSubscribe=function(e){var t=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Re:(this.currentObservers=null,i.push(e),new ke(function(){t.currentObservers=null,Oe(i,e)}))},o.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},o.prototype.asObservable=function(){var e=new ot;return e.source=this,e},o.create=function(e,t){return new ht(e,t)},o),ht=(Ce(ft,lt=n),ft.prototype.next=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.next)&&r.call(t,e)},ft.prototype.error=function(e){var t,r;null!=(r=null==(t=this.destination)?void 0:t.error)&&r.call(t,e)},ft.prototype.complete=function(){var e,t;null!=(t=null==(e=this.destination)?void 0:e.complete)&&t.call(e)},ft.prototype._subscribe=function(e){var t;return null!=(t=null==(t=this.source)?void 0:t.subscribe(e))?t:Re},ft),pt={now:function(){return(pt.delegate||Date).now()},delegate:void 0},dt=(Ce(mt,at=n),mt.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),at.prototype.next.call(this,e)},mt.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},mt.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},mt);function mt(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=pt);var n=at.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function ft(e,t){var r=lt.call(this)||this;return r.destination=e,r.source=t,r}function o(){var e=ut.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let gt=[],bt={};const yt=[];function vt(n,i=v){let o;const s=new Set;function a(e){if(_(n,e)&&(n=e,o)){const e=!yt.length;for(const e of s)e[1](),yt.push(e,n);if(e){for(let e=0;e<yt.length;e+=2)yt[e][0](yt[e+1]);yt.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=v){const r=[e,t];return s.add(r),1===s.size&&(o=i(a)||v),e(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function wt(e,a,t){const l=!Array.isArray(e),u=l?[e]:e,c=a.length<2;return{subscribe:vt(t,t=>{let r=!1;const n=[];let i=0,o=v;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),c?t(e):o=A(e)?e:v)},e=u.map((e,t)=>z(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){C(e),o()}}).subscribe}}function Et(e){return!(!e||"object"!=typeof e||(e=e,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===Tt));var t}var Tt="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function xt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?Pt(Array.isArray(e)?[]:{},e,t):e}function St(e,t,r){return e.concat(t).map(function(e){return xt(e,r)})}function At(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function _t(e,t){try{return t in e}catch(e){return!1}}function Bt(n,i,o){var s={};return o.isMergeableObject(n)&&At(n).forEach(function(e){s[e]=xt(n[e],o)}),At(i).forEach(function(t){var e,r;(!_t(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(_t(n,t)&&o.isMergeableObject(i[t])?s[t]=function(e){if(!e.customMerge)return Pt;e=e.customMerge(t);return"function"==typeof e?e:Pt}(o)(n[t],i[t],o):s[t]=xt(i[t],o))}),s}function Pt(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||St,r.isMergeableObject=r.isMergeableObject||Et,r.cloneUnlessOtherwiseSpecified=xt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):Bt(e,t,r):xt(t,r)}Pt.all=function(e,r){if(Array.isArray(e))return e.reduce(function(e,t){return Pt(e,t,r)},{});throw new Error("first argument should be an array")};var Ct=Pt,$t=function(e,t){return($t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function Ht(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}$t(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var f,b,Ft,w=function(){return(w=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function It(e,t,r){if(r||2===arguments.length)for(var n,i=0,o=t.length;i<o;i++)!n&&i in t||((n=n||Array.prototype.slice.call(t,0,i))[i]=t[i]);return e.concat(n||Array.prototype.slice.call(t))}function Lt(e){return e.type===b.literal}function Ot(e){return e.type===b.number}function kt(e){return e.type===b.date}function Rt(e){return e.type===b.time}function Mt(e){return e.type===b.select}function Nt(e){return e.type===b.plural}function Dt(e){return e.type===b.tag}function zt(e){return e&&"object"==typeof e&&e.type===Ft.number}function Ut(e){return e&&"object"==typeof e&&e.type===Ft.dateTime}(n=f=f||{})[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG",(n=b=b||{})[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag",(n=Ft=Ft||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,jt=/(?:[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 Gt=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Jt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Vt=/^(@+)?(\+|#+)?[rs]?$/g,Wt=/(\*)(0+)|(#+)(0+)|(0+)/g,Xt=/^(0+)$/;function Kt(e){var n={};return"r"===e[e.length-1]?n.roundingPriority="morePrecision":"s"===e[e.length-1]&&(n.roundingPriority="lessPrecision"),e.replace(Vt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function Yt(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 Zt(e){return Yt(e)||{}}function qt(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[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=w(w(w({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return w(w({},e),Zt(t))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return w(w({},e),Zt(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(Wt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&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(Xt.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,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.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=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Kt(o)))}else Vt.test(i.stem)?s=w(w({},s),Kt(i.stem)):((o=Yt(i.stem))&&(s=w(w({},s),o)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Xt.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=w(w({},s),n)))}return s}var Qt={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 er=new RegExp("^".concat(n.source,"*")),tr=new RegExp("".concat(n.source,"*$"));function E(e,t){return{start:e,end:t}}var n=!!String.prototype.startsWith,rr=!!String.fromCodePoint,nr=!!Object.fromEntries,ir=!!String.prototype.codePointAt,or=!!String.prototype.trimStart,sr=!!String.prototype.trimEnd,ar=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},lr=!0;try{lr="a"===(null==(Cr=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Cr[0])}catch(v){lr=!1}var ur,cr,hr=n?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},pr=rr?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},dr=nr?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},mr=ir?function(e,t){return e.codePointAt(t)}:function(e,t){var r,n=e.length;if(!(t<0||n<=t))return(r=e.charCodeAt(t))<55296||56319<r||t+1===n||(n=e.charCodeAt(t+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},fr=or?function(e){return e.trimStart()}:function(e){return e.replace(er,"")},gr=sr?function(e){return e.trimEnd()}:function(e){return e.replace(tr,"")};function br(e,t){return new RegExp(e,t)}cr=lr?(ur=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return ur.lastIndex=t,null!=(t=ur.exec(e)[1])?t:""}):function(e,t){for(var r,n=[];;){var i=mr(e,t);if(void 0===i||wr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return pr.apply(void 0,n)};s.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},s.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.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(r)break;return this.error(f.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&vr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:b.pound,location:E(o,this.clonePosition())})}}}return{val:n,err:null}},s.prototype.parseTag=function(e,t){var r=this.clonePosition(),n=(this.bump(),this.parseTagName());if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:b.literal,value:"<".concat(n,"/>"),location:E(r,this.clonePosition())},err:null};if(this.bumpIf(">")){e=this.parseMessage(e+1,t,!0);if(e.err)return e;t=e.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!vr(this.char()))return this.error(f.INVALID_TAG,E(e,this.clonePosition()));var i=this.clonePosition();return n!==this.parseTagName()?this.error(f.UNMATCHED_CLOSING_TAG,E(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:b.tag,value:n,children:t,location:E(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,E(e,this.clonePosition())))}return this.error(f.UNCLOSED_TAG,E(r,this.clonePosition()))}return this.error(f.INVALID_TAG,E(r,this.clonePosition()))},s.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())},s.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=E(r,this.clonePosition());return{val:{type:b.literal,value:n,location:r},err:null}},s.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(vr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},s.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return pr.apply(void 0,t)},s.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),pr(r))},s.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(f.EMPTY_ARGUMENT,E(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:b.argument,value:n,location:E(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=cr(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:E(e,this.clonePosition())}},s.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(f.EXPECT_ARGUMENT_TYPE,E(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((m=this.parseSimpleArgStyleIfPossible()).err)return m;if(0===(d=gr(m.val)).length)return this.error(f.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));l={style:d,styleLocation:E(u,this.clonePosition())}}if((u=this.tryParseArgumentClose(n)).err)return u;var c=E(n,this.clonePosition());if(l&&hr(null==l?void 0:l.style,"::",0)){var h=fr(l.style.slice(2));if("number"===s)return(m=this.parseNumberSkeletonFromString(h,l.styleLocation)).err?m:{val:{type:b.number,value:r,location:c,style:m.val},err:null};if(0===h.length)return this.error(f.EXPECT_DATE_TIME_SKELETON,c);var p=h,d=(this.locale&&(p=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if("j"===i){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(e){var t,r=e.hourCycle;if(r=void 0===r&&e.hourCycles&&e.hourCycles.length?e.hourCycles[0]:r)switch(r){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}return"root"!==(r=e.language)&&(t=e.maximize().region),(Qt[t||""]||Qt[r||""]||Qt["".concat(r,"-001")]||Qt["001"])[0]}(t);for("H"!=l&&"k"!=l||(a=0);0<a--;)r+="a";for(;0<s--;)r=l+r}else r+="J"===i?"H":i}return r}(h,this.locale)),{type:Ft.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(jt,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}});return{val:{type:"date"===s?b.date:b.time,value:r,location:c,style:d},err:null}}return{val:{type:"number"===s?b.number:"date"===s?b.date:b.time,value:r,location:c,style:null!=(h=null==l?void 0:l.style)?h:null},err:null};case"plural":case"selectordinal":case"select":p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(f.EXPECT_SELECT_ARGUMENT_OPTIONS,E(p,w({},p)));this.bumpSpace();var m,d=this.parseIdentifierIfPossible(),c=0;if("select"!==s&&"offset"===d.value){if(!this.bumpIf(":"))return this.error(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(m=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,f.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return m;this.bumpSpace(),d=this.parseIdentifierIfPossible(),c=m.val}l=this.tryParsePluralOrSelectOptions(e,s,t,d);if(l.err)return l;if((u=this.tryParseArgumentClose(n)).err)return u;h=E(n,this.clonePosition());return"select"===s?{val:{type:b.select,value:r,options:dr(l.val),location:h},err:null}:{val:{type:b.plural,value:r,options:dr(l.val),offset:c,pluralType:"plural"===s?"cardinal":"ordinal",location:h},err:null};default:return this.error(f.INVALID_ARGUMENT_TYPE,E(o,a))}},s.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(f.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(Gt).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var 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(f.INVALID_NUMBER_SKELETON,t)}return{val:{type:Ft.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?qt(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var u=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(f.EXPECT_PLURAL_ARGUMENT_SELECTOR,f.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=E(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===t?f.DUPLICATE_SELECT_ARGUMENT_SELECTOR:f.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();c=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;var h=this.tryParseArgumentClose(c);if(h.err)return h;o.push([a,{value:u.val,location:E(c,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(h=this.parseIdentifierIfPossible()).value,l=h.location}return 0===o.length?this.error("select"===t?f.EXPECT_SELECT_ARGUMENT_SELECTOR:f.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(f.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},s.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-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()}n=E(n,this.clonePosition());return i?ar(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},s.prototype.offset=function(){return this.position.offset},s.prototype.isEOF=function(){return this.offset()===this.message.length},s.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},s.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=mr(this.message,e);if(void 0===t)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},s.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},s.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))},s.prototype.bumpIf=function(e){if(hr(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},s.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)},s.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}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&wr(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),t=this.message.charCodeAt(t+(65536<=e?2:1));return null!=t?t:null};var yr=s;function s(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 vr(e){return 97<=e&&e<=122||65<=e&&e<=90}function wr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function Er(e,t){t=w({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r,e=new yr(e,t).parse();if(e.err)throw(r=SyntaxError(f[e.err.kind])).location=e.err.location,r.originalMessage=e.err.message,r;return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,Mt(e)||Nt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else Ot(e)&&zt(e.style)||(kt(e)||Rt(e))&&Ut(e.style)?delete e.style.location:Dt(e)&&r(e.children)})}(e.val),e.val}function Tr(e,t){var r=t&&t.cache?t.cache:$r,n=t&&t.serializer?t.serializer:_r;return(t&&t.strategy?t.strategy:function(e,t){return Ar(e,this,1===e.length?xr:Sr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function xr(e,t,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=t.get(r);return void 0===i&&(i=e.call(this,n),t.set(r,i)),i}function Sr(e,t,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=t.get(r);return void 0===i&&(i=e.apply(this,n),t.set(r,i)),i}function Ar(e,t,r,n,i){return r.bind(t,e,n,i)}var _r=function(){return JSON.stringify(arguments)};function Br(){this.cache=Object.create(null)}Br.prototype.get=function(e){return this.cache[e]},Br.prototype.set=function(e,t){this.cache[e]=t};var Pr,Cr,$r={create:function(){return new Br}},Hr={variadic:function(e,t){return Ar(e,this,Sr,t.cache.create(),t.serializer)},monadic:function(e,t){return Ar(e,this,xr,t.cache.create(),t.serializer)}};(Cr=Pr=Pr||{}).MISSING_VALUE="MISSING_VALUE",Cr.INVALID_VALUE="INVALID_VALUE",Cr.MISSING_INTL_API="MISSING_INTL_API";Ht(jr,Or=Error),jr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Fr,Ir,Lr,Or,kr=jr,Rr=(Ht(Ur,Lr=kr),Ur),Mr=(Ht(zr,Ir=kr),zr),Nr=(Ht(Dr,Fr=kr),Dr);function Dr(e,t){return Fr.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),Pr.MISSING_VALUE,t)||this}function zr(e,t,r){return Ir.call(this,'Value for "'.concat(e,'" must be of type ').concat(t),Pr.INVALID_VALUE,r)||this}function Ur(e,t,r,n){return Lr.call(this,'Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pr.INVALID_VALUE,n)||this}function jr(e,t,r){e=Or.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Gr(e,t,r,n,i,o,s){if(1===e.length&&Lt(e[0]))return[{type:T.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Lt(c))a.push({type:T.literal,value:c.value});else if(c.type===b.pound)"number"==typeof o&&a.push({type:T.literal,value:r.getNumberFormat(t).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Nr(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?T.literal:T.object,value:h});else if(kt(c)){var p="string"==typeof c.style?n.date[c.style]:Ut(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(Rt(c))p="string"==typeof c.style?n.time[c.style]:Ut(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(Ot(c))(p="string"==typeof c.style?n.number[c.style]:zt(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Dt(c)){var d=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Mr(m,"function",s);m=f(Gr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(e){return{type:"string"==typeof e?T.literal:T.object,value:e}}))}if(Mt(c)){if(!(g=c.options[h]||c.options.other))throw new Rr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,t,r,n,i))}else if(Nt(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new kr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Pr.MISSING_INTL_API,s);var f=r.getPluralRules(t,{type:c.pluralType}).select(h-(c.offset||0)),g=c.options[f]||c.options.other}if(!g)throw new Rr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Gr(g.value,t,r,n,i,h-(c.offset||0)))}}}}return(e=a).length<2?e:e.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===T.literal&&t.type===T.literal?r.value+=t.value:e.push(t),e},[])}function Jr(r){return{create:function(){return{get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(n=T=T||{})[n.literal=0]="literal",n[n.object=1]="object",Object.defineProperty(p,"defaultLocale",{get:function(){return p.memoizedDefaultLocale||(p.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),p.memoizedDefaultLocale},enumerable:!1,configurable:!0}),p.memoizedDefaultLocale=null,p.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])},p.__parse=Er,p.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 Vr=p;function p(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===T.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Gr(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=p.resolveLocale(t),"string"==typeof e){if(this.message=e,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=w(w({},r[t]),n[t]||{}),e},{})):r),e},w({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,It([void 0],t,!1)))},{cache:Jr((t=void 0===(t=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:t).number),strategy:Hr.variadic}),getDateTimeFormat:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,It([void 0],t,!1)))},{cache:Jr(t.dateTime),strategy:Hr.variadic}),getPluralRules:Tr(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,It([void 0],t,!1)))},{cache:Jr(t.pluralRules),strategy:Hr.variadic})}}const m={},Wr=(e,t,r)=>r&&(t in m||(m[t]={}),e in m[t]||(m[t][e]=r),r),Xr=(t,r)=>{if(null!=r){if(r in m&&t in m[r])return m[r][t];var n=hn(r);for(let e=0;e<n.length;e++){var i=function(e,r){if(!Zr(e))return null;e=function(e){return Kr[e]||null}(e);{var n=r;if(null==n)return;if(n in e)return e[n];const i=n.split(".");let t=e;for(let e=0;e<i.length;e++)if("object"==typeof t){if(0<e){const n=i.slice(e,i.length).join(".");if(n in t){t=t[n];break}}t=t[i[e]]}else t=void 0;return t}}(n[e],t);if(i)return Wr(t,r,i)}}};let Kr;const Yr=vt({});function Zr(e){return e in Kr}function qr(t,...r){delete m[t],Yr.update(e=>(e[t]=Ct.all([e[t]||{},...r]),e))}wt([Yr],([e])=>Object.keys(e)),Yr.subscribe(e=>Kr=e);const Qr={};function en(e){return Qr[e]}function tn(e){return null!=e&&hn(e).some(e=>{return null==(e=en(e))?void 0:e.size})}const rn={};function nn(e){if(!tn(e))return e in rn?rn[e]:Promise.resolve();const t=hn(e).map(e=>{var t=en(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return rn[e]=Promise.all(t.map(([e,t])=>{{var n=e;e=t;const r=Promise.all(e.map(e=>{var t=n,r=e;return Qr[t].delete(r),0===Qr[t].size&&delete Qr[t],e().then(e=>e.default||e)}));return r.then(e=>qr(n,...e))}})).then(()=>{if(tn(e))return nn(e);delete rn[e]}),rn[e]}function on(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const sn={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 an=vt(!1);let ln;const un=vt(null);function cn(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function hn(e,t=sn.fallbackLocale){e=cn(e);return t?[...new Set([...e,...cn(t)])]:e}function pn(){return null!=ln?ln:void 0}un.subscribe(e=>{ln=null!=e?e:void 0,"undefined"!=typeof window&&null!=e&&document.documentElement.setAttribute("lang",e)});const ie=Object.assign(Object.assign({},un),{set:t=>{if(t&&function(e){if(null!=e){var t=hn(e);for(let e=0;e<t.length;e++){var r=t[e];if(Zr(r))return r}}}(t)&&tn(t)){var r=sn["loadingDelay"];let e;return"undefined"!=typeof window&&null!=pn()&&r?e=window.setTimeout(()=>an.set(!0),r):an.set(!0),nn(t).then(()=>{un.set(t)}).finally(()=>{clearTimeout(e),an.set(!1)})}return un.set(t)}}),dn=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},mn=(e,t)=>{var r=sn["formats"];if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},fn=dn(e=>{var{locale:t,format:r}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=mn("number",r)),new Intl.NumberFormat(t,e)}),gn=dn(e=>{var{locale:t,format:r}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=mn("date",r):0===Object.keys(e).length&&(e=mn("date","short")),new Intl.DateTimeFormat(t,e)}),bn=dn(e=>{var{locale:t,format:r}=e,e=on(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=mn("time",r):0===Object.keys(e).length&&(e=mn("time","short")),new Intl.DateTimeFormat(t,e)}),yn=dn((e,t=pn())=>new Vr(e,t,sn.formats,{ignoreTag:sn.ignoreTag})),vn=wt([ie,Yr],()=>(e,t={})=>{var r,n;let i=t;"object"==typeof e&&(e=(i=e).id);var{values:o,locale:s=pn(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Xr(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!=(n=null!=(r=null==(r=(n=sn).handleMissingMessage)?void 0:r.call(n,{locale:s,id:e,defaultValue:a}))?r:a)?n:e;if(!o)return l;let u=l;try{u=yn(l,s).format(o)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return u}),wn=(wt([ie],()=>(e,t)=>((e={})=>{var{locale:t=pn()}=e,e=on(e,["locale"]);return bn(Object.assign({locale:t},e))})(t).format(e)),wt([ie],()=>(e,t)=>((e={})=>{var{locale:t=pn()}=e,e=on(e,["locale"]);return gn(Object.assign({locale:t},e))})(t).format(e)),wt([ie],()=>(e,t)=>((e={})=>{var{locale:t=pn()}=e,e=on(e,["locale"]);return fn(Object.assign({locale:t},e))})(t).format(e)),wt([ie,Yr],()=>(e,t=pn())=>Xr(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==gt.indexOf(e)&&(t=new dt(t),bt[e]=t,gt.push(e)),bt[e]}},e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"),En={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."}},zh:{tournamentsThController:{login:"登錄",register:"登記",details:"細節",enrolled:"已註冊",join:"加入",joinerror:"加入錦標賽時出錯,請重試"}},fr:{tournamentsThController:{login:"Connexion",register:"Enregistre",details:"Détails",enrolled:"Inscrits",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "}},ro:{tournamentsThController:{login:"Autentificare",register:"Înregistrare",details:"Detalii",enrolled:"Înscris",join:"Participă",joinerror:"A apărut o eroare 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:"Entrar",register:"Regístrese en",details:"Detalles",enrolled:"Inscrito",join:"Únase",joinerror:"Se ha producido un error al registrarse en el torneo, inténtelo de nuevo."}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való 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 -"}}},Tn={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:",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},zh:{tournamentsThumbnail:{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},fr:{tournamentsThumbnail:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},ro:{tournamentsThumbnail:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"}},tr:{tournamentsThumbnail:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}},hu:{tournamentsThumbnail:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"}}};function xn(r){let n,i,o,s,a,l,u;return{c(){n=L("div"),i=O(r[13]),M(n,"class",o="Status "+r[15]),M(n,"part",s="Status "+r[15])},m(e,t){F(e,n,t),H(n,i),l||(u=$(a=r[18].call(null,n)),l=!0)},p(e,t){8192&t[0]&&N(i,e[13]),32768&t[0]&&o!==(o="Status "+e[15])&&M(n,"class",o),32768&t[0]&&s!==(s="Status "+e[15])&&M(n,"part",s)},d(e){e&&I(n),l=!1,u()}}}function Sn(e){let r,n=e[5]&&An(e);return{c(){n&&n.c(),r=j()},m(e,t){n&&n.m(e,t),F(e,r,t)},p(e,t){e[5]?n?n.p(e,t):((n=An(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function An(e){let r,n,i=e[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=L("div"),n=O(i),M(r,"class","Enrolled"),M(r,"part","Enrolled")},m(e,t){F(e,r,t),H(r,n)},p(e,t){65536&t[0]&&i!==(i=e[16]("tournamentsThumbnail.enrolled")+"")&&N(n,i)},d(e){e&&I(r)}}}function _n(r){let n,i,o,s,a;return{c(){M(n=L("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(e,t){F(e,n,t),s||(a=$(r[18].call(null,n)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",o)},d(e){e&&I(n),s=!1,a()}}}function Bn(r){let n,i,o,s,a;return{c(){M(n=L("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),M(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),d(n,"background-image","url('"+r[4]+"')")},m(e,t){F(e,n,t),s||(a=$(r[18].call(null,n)),s=!0)},p(e,t){1&t[0]&&i!==(i="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"class",i),1&t[0]&&o!==(o="CardImg "+("Closing"==e[0]||"Closed"==e[0]?"CardImgFinished":""))&&M(n,"part",o),16&t[0]&&d(n,"background-image","url('"+e[4]+"')")},d(e){e&&I(n),s=!1,a()}}}function Pn(r){let n,i,o,s,a;return{c(){n=L("div"),i=O(r[11]),M(n,"class","Date"),M(n,"part","Date")},m(e,t){F(e,n,t),H(n,i),s||(a=$(o=r[17].call(null,n,r[2])),s=!0)},p(e,t){2048&t[0]&&N(i,e[11]),o&&A(o.update)&&4&t[0]&&o.update.call(null,e[2])},d(e){e&&I(n),s=!1,a()}}}function Cn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g,b,y,v,w,E,T,x,S,A=r[16]("tournamentsThumbnail.scoreCriteria")+"",_=r[16]("tournamentsThumbnail.minbet")+"",B=r[16]("tournamentsThumbnail.seegames")+"",P=r[16]("tournamentsThumbnail.here")+"";return{c(){n=L("div"),i=L("p"),o=O(A),s=O(":\n \n "),a=L("span"),l=O(r[14]),c=O("\n ("),h=O(_),p=k(),d=O(r[6]),m=O(")"),f=k(),g=L("div"),b=L("p"),y=O(B),v=k(),w=L("a"),E=O(P),M(a,"part","ScoreCriteriaSpan"),M(i,"part","ScoreCriteriaP"),M(n,"class","ScoreCriteria"),M(n,"part","ScoreCriteria"),M(w,"part","GamesAnchor"),M(w,"href",r[8]),M(w,"target",T="true"===r[9]?"_self":"_blank"),M(b,"part","GamesP"),M(g,"class","Games"),M(g,"part","Games")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(i,s),H(i,a),H(a,l),H(i,c),H(i,h),H(i,p),H(i,d),H(i,m),F(e,f,t),F(e,g,t),H(g,b),H(b,y),H(b,v),H(b,w),H(w,E),x||(S=[$(u=r[19].call(null,a)),R(w,"click",r[27])],x=!0)},p(e,t){65536&t[0]&&A!==(A=e[16]("tournamentsThumbnail.scoreCriteria")+"")&&N(o,A),16384&t[0]&&N(l,e[14]),65536&t[0]&&_!==(_=e[16]("tournamentsThumbnail.minbet")+"")&&N(h,_),64&t[0]&&N(d,e[6]),65536&t[0]&&B!==(B=e[16]("tournamentsThumbnail.seegames")+"")&&N(y,B),65536&t[0]&&P!==(P=e[16]("tournamentsThumbnail.here")+"")&&N(E,P),256&t[0]&&M(w,"href",e[8]),512&t[0]&&T!==(T="true"===e[9]?"_self":"_blank")&&M(w,"target",T)},d(e){e&&I(n),e&&I(f),e&&I(g),x=!1,C(S)}}}function $n(r){let n,i,o,s,a,l,u,c,h,p=r[0]&&xn(r),d="true"==r[7]&&Sn(r);function m(e){return e[4]?Bn:_n}let f=m(r),g=f(r),b=r[2]&&Pn(r),y=r[12]&&Cn(r);return{c(){n=L("div"),p&&p.c(),i=k(),d&&d.c(),o=k(),g.c(),s=k(),a=L("div"),l=L("div"),u=O(r[1]),c=k(),b&&b.c(),h=k(),y&&y.c(),this.c=v,M(l,"class","Title"),M(l,"part","Title"),M(a,"class","Details"),M(a,"part","Details"),M(n,"class","Thumbnail"),M(n,"part","Thumbnail")},m(e,t){F(e,n,t),p&&p.m(n,null),H(n,i),d&&d.m(n,null),H(n,o),g.m(n,null),H(n,s),H(n,a),H(a,l),H(l,u),H(a,c),b&&b.m(a,null),H(a,h),y&&y.m(a,null),r[28](n)},p(e,t){e[0]?p?p.p(e,t):((p=xn(e)).c(),p.m(n,i)):p&&(p.d(1),p=null),"true"==e[7]?d?d.p(e,t):((d=Sn(e)).c(),d.m(n,o)):d&&(d.d(1),d=null),f===(f=m(e))&&g?g.p(e,t):(g.d(1),(g=f(e))&&(g.c(),g.m(n,s))),2&t[0]&&N(u,e[1]),e[2]?b?b.p(e,t):((b=Pn(e)).c(),b.m(a,h)):b&&(b.d(1),b=null),e[12]?y?y.p(e,t):((y=Cn(e)).c(),y.m(a,null)):y&&(y.d(1),y=null)},i:v,o:v,d(e){e&&I(n),p&&p.d(),d&&d.d(),g.d(),b&&b.d(),y&&y.d(),r[28](null)}}}function Hn(t,e,i){let o;oe(t,vn,e=>i(16,o=e));let r,{session:n=""}=e,{userid:s=""}=e,{title:a=""}=e,{startdate:l=""}=e,{status:u=""}=e,{tourid:c=""}=e,{thumbnail:h=""}=e,{userenrolled:p=""}=e,{scorecriteria:d=""}=e,{minbetcount:m=""}=e,{showenrolled:f="false"}=e,{gameurl:g=""}=e,{lang:b="en"}=e,{keepbrowsercontext:y="false"}=e,{clientstyling:v=""}=e,{clientstylingurl:w=""}=e,E="",T=!1,x="",S="",A="";Object.keys(Tn).forEach(e=>{qr(e,Tn[e])});const _=e=>{e.data&&(e.data&&"SessionID"==e.data.type&&i(12,T=!0),e.data.type=="TournamentStatus_"+c&&i(0,u=e.data.status))},B=()=>{let e=new Date(l),t=new Intl.DateTimeFormat("en",{month:"long"}).format(e),r=e.getDate(),n=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(11,E=r+" "+o("tournamentsThumbnail."+t)+", "+o("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},P=()=>{"Unstarted"==u&&(i(13,x=o("tournamentsThumbnail.scheduled")),i(15,A="StatusUnstarted")),"Running"==u&&(i(13,x=o("tournamentsThumbnail.ongoing")),i(15,A="StatusRunning")),"Closed"!=u&&"Closing"!=u||i(13,x=o("tournamentsThumbnail.finished")),"Closed"==u&&i(15,A="StatusClosed"),"Closing"==u&&i(15,A="StatusClosing")},C=()=>{"BetCount"==d&&i(14,S=o("tournamentsThumbnail.betCount")),"MaxWinStakeRatio"==d&&i(14,S=o("tournamentsThumbnail.maxWinStakeRatio")),"WinStakeRatio"==d&&i(14,S=o("tournamentsThumbnail.winStakeRatio"))},$=(e,t)=>{window.postMessage({type:"tournamentGamesClicked",tourId:t},window.location.href)};se(()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}));return t.$$set=e=>{"session"in e&&i(21,n=e.session),"userid"in e&&i(22,s=e.userid),"title"in e&&i(1,a=e.title),"startdate"in e&&i(2,l=e.startdate),"status"in e&&i(0,u=e.status),"tourid"in e&&i(3,c=e.tourid),"thumbnail"in e&&i(4,h=e.thumbnail),"userenrolled"in e&&i(5,p=e.userenrolled),"scorecriteria"in e&&i(23,d=e.scorecriteria),"minbetcount"in e&&i(6,m=e.minbetcount),"showenrolled"in e&&i(7,f=e.showenrolled),"gameurl"in e&&i(8,g=e.gameurl),"lang"in e&&i(24,b=e.lang),"keepbrowsercontext"in e&&i(9,y=e.keepbrowsercontext),"clientstyling"in e&&i(25,v=e.clientstyling),"clientstylingurl"in e&&i(26,w=e.clientstylingurl)},t.$$.update=()=>{if(33555456&t.$$.dirty[0]&&r&&v){let e=document.createElement("style");e.innerHTML=v,r.appendChild(e)}if(67109888&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,r&&(setTimeout(()=>{r.appendChild(t)},1),setTimeout(()=>{},500))})}var e;2097152&t.$$.dirty[0]&&n&&(0<n.length&&"false"!=n?i(12,T=!0):i(12,T=!1)),1&t.$$.dirty[0]&&u&&P(),16777218&t.$$.dirty[0]&&b&&a&&(e=b,ie.set(e),C(),P(),l&&B()),4&t.$$.dirty[0]&&l&&B(),8388608&t.$$.dirty[0]&&d&&C()},[u,a,l,c,h,p,m,f,g,y,r,E,T,x,S,A,o,B,P,C,$,n,s,d,b,v,w,()=>$(),function(e){ne[e?"unshift":"push"](()=>{r=e,i(10,r)})}]}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:'Roboto', system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box;font-family:'Roboto'}a{color:var(--emfe-w-color-green, #48952a);text-decoration:underline;cursor:pointer}.Thumbnail{position:relative}.Thumbnail .CardImg{height:300px;width:100%;background-image:url(\"https://breakthrough.org/wp-content/uploads/2018/10/default-placeholder-image.png\");background-repeat:no-repeat;background-position:center;background-size:cover}.Thumbnail .CardImg.CardImgFinished{filter:grayscale(1)}.Thumbnail .Status{background:var(--emfe-w-color-black, #000000);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;right:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Enrolled{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-gray-150, #828282);display:flex;justify-content:center;align-items:center;position:absolute;top:20px;left:20px;min-height:30px;padding:0 10px;font-size:12px;text-transform:uppercase;z-index:1}.Thumbnail .Details{padding:10px 20px 0}.Thumbnail .Details .Title{font-size:18px;padding-bottom:10px}.Thumbnail .Details .Date{text-transform:uppercase;font-size:12px;padding-bottom:4px}.Thumbnail .Details .ScoreCriteria{font-size:12px;padding-bottom:4px}.Thumbnail .Details .Games{font-size:12px}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},Hn,$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},null,[-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl"]}get session(){return this.$$.ctx[21]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[22]}set userid(e){this.$$set({userid:e}),g()}get title(){return this.$$.ctx[1]}set title(e){this.$$set({title:e}),g()}get startdate(){return this.$$.ctx[2]}set startdate(e){this.$$set({startdate:e}),g()}get status(){return this.$$.ctx[0]}set status(e){this.$$set({status:e}),g()}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(e){this.$$set({thumbnail:e}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(e){this.$$set({userenrolled:e}),g()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(e){this.$$set({scorecriteria:e}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(e){this.$$set({minbetcount:e}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(e){this.$$set({gameurl:e}),g()}get lang(){return this.$$.ctx[24]}set lang(e){this.$$set({lang:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const Fn={en:{tournamentsDuration:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"}},zh:{tournamentsDuration:{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"}},fr:{tournamentsDuration:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"}},ro:{tournamentsDuration:{finished:"Finalizat",starting:"Începe în",left:"ră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:"Terminado",starting:"A partir de ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"}},hu:{tournamentsDuration:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"}},pt:{tournamentsDuration:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}}};function In(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[10](r[0])+"",b=r[10](r[1])+"";function y(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?kn:0<e[5]?On:Ln}let v=y(r),w=v(r);function E(e){return"Finished"==e[2]||"Closing"==e[2]||"Closed"==e[2]?Nn:0<e[5]?Mn:0<e[4]?Rn:void 0}let T=E(r),x=T&&T(r);return{c(){n=L("div"),i=L("div"),o=O(g),s=k(),a=L("div"),l=O(b),u=k(),c=L("div"),h=L("div"),w.c(),p=k(),x&&x.c(),M(i,"class","StartDate"),M(i,"part","StartDate"),M(a,"class","EndDate"),M(a,"part","EndDate"),M(n,"class","TournamentDates"),M(n,"part","TournamentDates"),M(h,"class","ProgressBar"),M(h,"part","ProgressBar"),M(c,"class","ProgressBarWrapper"),M(c,"part","ProgressBarWrapper")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(n,s),H(n,a),H(a,l),F(e,u,t),F(e,c,t),H(c,h),w.m(h,null),H(h,p),x&&x.m(h,null),m||(f=$(d=r[9].call(null,c)),m=!0)},p(e,t){1&t&&g!==(g=e[10](e[0])+"")&&N(o,g),2&t&&b!==(b=e[10](e[1])+"")&&N(l,b),v===(v=y(e))&&w?w.p(e,t):(w.d(1),(w=v(e))&&(w.c(),w.m(h,p))),T===(T=E(e))&&x?x.p(e,t):(x&&x.d(1),(x=T&&T(e))&&(x.c(),x.m(h,null)))},d(e){e&&I(n),e&&I(u),e&&I(c),w.d(),x&&x.d(),m=!1,f()}}}function Ln(e){let r;return{c(){M(r=L("div"),"class","ProgressBarFill"),M(r,"part","ProgressBarFill"),d(r,"width",e[7]()+"%")},m(e,t){F(e,r,t)},p(e,t){128&t&&d(r,"width",e[7]()+"%")},d(e){e&&I(r)}}}function On(e){let r;return{c(){M(r=L("div"),"class","ProgressBarFillStarting"),M(r,"part","ProgressBarFillStarting")},m(e,t){F(e,r,t)},p:v,d(e){e&&I(r)}}}function kn(e){let r;return{c(){M(r=L("div"),"class","ProgressBarFillEnd"),M(r,"part","ProgressBarFillEnd")},m(e,t){F(e,r,t)},p:v,d(e){e&&I(r)}}}function Rn(e){let r,n,i,o,s=e[8]("tournamentsDuration.left")+"";return{c(){r=L("div"),n=O(e[6]),i=k(),o=O(s),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){F(e,r,t),H(r,n),H(r,i),H(r,o)},p(e,t){64&t&&N(n,e[6]),256&t&&s!==(s=e[8]("tournamentsDuration.left")+"")&&N(o,s)},d(e){e&&I(r)}}}function Mn(e){let r,n,i,o,s=e[8]("tournamentsDuration.starting")+"",a=e[11](e[5])+"";return{c(){r=L("div"),n=O(s),i=k(),o=O(a),M(r,"class","Remaining"),M(r,"part","Remaining")},m(e,t){F(e,r,t),H(r,n),H(r,i),H(r,o)},p(e,t){256&t&&s!==(s=e[8]("tournamentsDuration.starting")+"")&&N(n,s),32&t&&a!==(a=e[11](e[5])+"")&&N(o,a)},d(e){e&&I(r)}}}function Nn(e){let r,n,i=e[8]("tournamentsDuration.finished")+"";return{c(){r=L("div"),n=O(i),M(r,"class","Finished"),M(r,"part","Finished")},m(e,t){F(e,r,t),H(r,n)},p(e,t){256&t&&i!==(i=e[8]("tournamentsDuration.finished")+"")&&N(n,i)},d(e){e&&I(r)}}}function Dn(r){let n,i=r[0]&&r[1]&&In(r);return{c(){n=L("div"),i&&i.c(),this.c=v,M(n,"class","TournamentDuration"),M(n,"part","TournamentDuration")},m(e,t){F(e,n,t),i&&i.m(n,null),r[15](n)},p(e,[t]){e[0]&&e[1]?i?i.p(e,t):((i=In(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&I(n),i&&i.d(),r[15](null)}}}function zn(e,t,r){let n,i;oe(e,vn,e=>r(8,i=e));let o,{startdate:s=""}=t,{enddate:a=""}=t,{status:l=""}=t,{lang:u="en"}=t,{clientstyling:c=""}=t,{clientstylingurl:h=""}=t,p="",d="",m="";Object.keys(Fn).forEach(e=>{qr(e,Fn[e])});const f=e=>new Date(e).getTime(),g=(e,t)=>(f(t)-f(e))/6e4,b=()=>{var e=new Date;r(4,p=g(e,a)),r(5,d=g(e,s)),r(6,m=y(p))},y=e=>{if(e<1440){const t=e%60;return[e/60,t,60*(t-Math.floor(t))].map(e=>{e=Math.floor(e);return e<10?"0"+e:""+e}).join(":")}return Math.ceil(e/1440)+" "+i("tournamentsDuration.days")};return se(()=>{const e=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(e)}),e.$$set=e=>{"startdate"in e&&r(0,s=e.startdate),"enddate"in e&&r(1,a=e.enddate),"status"in e&&r(2,l=e.status),"lang"in e&&r(12,u=e.lang),"clientstyling"in e&&r(13,c=e.clientstyling),"clientstylingurl"in e&&r(14,h=e.clientstylingurl)},e.$$.update=()=>{if(8200&e.$$.dirty&&o&&c){let e=document.createElement("style");e.innerHTML=c,o.appendChild(e)}if(16392&e.$$.dirty&&o&&h){let e=new URL(h),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,o&&(setTimeout(()=>{o.appendChild(t)},1),setTimeout(()=>{},500))})}19&e.$$.dirty&&r(7,n=()=>{if(p<=0)return 100;var e=g(s,a),t=100/e;return Math.floor((e-p)*t)}),19&e.$$.dirty&&s&&a&&b(),4096&e.$$.dirty&&u&&b(),4112&e.$$.dirty&&u&&y(p)},[s,a,l,o,p,d,m,n,i,b,e=>{let t=new Date(e),r=new Intl.DateTimeFormat(u,{month:"long"}).format(t);return`${t.getDate()} ${r}, ${t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+t.getUTCFullYear()},y,u,c,h,function(e){ne[e?"unshift":"push"](()=>{o=e,r(3,o)})}]}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentDates{margin-left:20px;margin-right:20px;display:flex;justify-content:space-between}.StartDate{font-size:11px;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:11px;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 20px;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;padding-top:5px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},zn,Dn,_,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14},null),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl"]}get startdate(){return this.$$.ctx[0]}set startdate(e){this.$$set({startdate:e}),g()}get enddate(){return this.$$.ctx[1]}set enddate(e){this.$$set({enddate:e}),g()}get status(){return this.$$.ctx[2]}set status(e){this.$$set({status:e}),g()}get lang(){return this.$$.ctx[12]}set lang(e){this.$$set({lang:e}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const Un={en:{tournamentsPrizes:{prizes:"Prizes",noprizes:"No available prizes",place:"place"}},zh:{tournamentsPrizes:{prizes:"獎品",noprizes:"沒有可用的獎品",place:"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:"place"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"}},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 jn(e,t,r){const n=e.slice();return n[11]=t[r],n[13]=r,n}function Gn(t){let n,i=t[1],o=[];for(let e=0;e<i.length;e+=1)o[e]=Vn(jn(t,i,e));let s=null;return i.length||(s=Jn(t)),{c(){n=L("div");for(let e=0;e<o.length;e+=1)o[e].c();s&&s.c(),M(n,"class","Prizes"),M(n,"part","Prizes")},m(e,t){F(e,n,t);for(let e=0;e<o.length;e+=1)o[e].m(n,null);s&&s.m(n,null)},p(t,r){if(6&r){let e;for(i=t[1],e=0;e<i.length;e+=1){const s=jn(t,i,e);o[e]?o[e].p(s,r):(o[e]=Vn(s),o[e].c(),o[e].m(n,null))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length,!i.length&&s?s.p(t,r):i.length?s&&(s.d(1),s=null):((s=Jn(t)).c(),s.m(n,null))}},d(e){e&&I(n),U(o,e),s&&s.d()}}}function Jn(e){let r,n,i=e[2]("tournamentsPrizes.noprizes")+"";return{c(){r=L("p"),n=O(i)},m(e,t){F(e,r,t),H(r,n)},p(e,t){4&t&&i!==(i=e[2]("tournamentsPrizes.noprizes")+"")&&N(n,i)},d(e){e&&I(r)}}}function Vn(e){let r,n,i,o,s,a,l,u,c,t,h,p=(1<e[11].count?e[11].rank+"~"+(e[11].rank+e[11].count-1):e[11].rank)+"",d=e[2]("tournamentsPrizes.place")+"",m=e[11].name+"";return{c(){r=L("div"),n=L("p"),i=L("span"),o=O(p),s=k(),a=O(d),l=O(": "),u=O(m),c=k(),M(i,"class","PrizeRank"),M(i,"part","PrizeRank"),M(n,"class","PrizeText"),M(n,"part","PrizeText"),M(r,"class",t="Prize Prize"+e[13]),M(r,"part",h="Prize Prize"+e[13])},m(e,t){F(e,r,t),H(r,n),H(n,i),H(i,o),H(n,s),H(n,a),H(n,l),H(n,u),H(r,c)},p(e,t){2&t&&p!==(p=(1<e[11].count?e[11].rank+"~"+(e[11].rank+e[11].count-1):e[11].rank)+"")&&N(o,p),4&t&&d!==(d=e[2]("tournamentsPrizes.place")+"")&&N(a,d),2&t&&m!==(m=e[11].name+"")&&N(u,m)},d(e){e&&I(r)}}}function Wn(r){let n,i,o,s,a,l,u,c=r[2]("tournamentsPrizes.prizes")+"",h=r[1]&&Gn(r);return{c(){n=L("div"),i=L("div"),(o=L("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=k(),a=L("p"),l=O(c),u=k(),h&&h.c(),this.c=v,M(o,"class","TournamentPrizesIconWrapper"),M(o,"part","TournamentPrizesIconWrapper"),M(a,"class","PrizesTitle"),M(a,"part","PrizesTitle"),M(i,"class","TournamentPrizesIconSection"),M(i,"part","TournamentPrizesIconSection"),M(n,"class","TournamentPrizes"),M(n,"part","TournamentPrizes")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(i,s),H(i,a),H(a,l),H(n,u),h&&h.m(n,null),r[6](n)},p(e,[t]){4&t&&c!==(c=e[2]("tournamentsPrizes.prizes")+"")&&N(l,c),e[1]?h?h.p(e,t):((h=Gn(e)).c(),h.m(n,null)):h&&(h.d(1),h=null)},i:v,o:v,d(e){e&&I(n),h&&h.d(),r[6](null)}}}function Xn(e,t,r){let n;oe(e,vn,e=>r(2,n=e));let i,o,{tourid:s=""}=t,{clientstyling:a=""}=t,{clientstylingurl:l=""}=t;Object.keys(Un).forEach(e=>{qr(e,Un[e])});const u=e=>{e.data&&e.data.type=="TournamentPrizes_"+s&&r(1,o=e.data.prizes)};return se(()=>(window.addEventListener("message",u,!1),()=>{window.removeEventListener("message",u)})),e.$$set=e=>{"tourid"in e&&r(3,s=e.tourid),"clientstyling"in e&&r(4,a=e.clientstyling),"clientstylingurl"in e&&r(5,l=e.clientstylingurl)},e.$$.update=()=>{if(17&e.$$.dirty&&i&&a){let e=document.createElement("style");e.innerHTML=a,i.appendChild(e)}if(33&e.$$.dirty&&i&&l){let e=new URL(l),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,i&&(setTimeout(()=>{i.appendChild(t)},1),setTimeout(()=>{},500))})}},[i,o,n,s,a,l,function(e){ne[e?"unshift":"push"](()=>{i=e,r(0,i)})}]}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}span{color:var(--emfe-w-color-gray-100, #E6E6E6)}.TournamentPrizes{font-size:11px;margin-left:20px;margin-right:20px;display:flex;gap:5px}.PrizesTitle{padding-top:8px}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},Xn,Wn,_,{tourid:3,clientstyling:4,clientstylingurl:5},null),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl"]}get tourid(){return this.$$.ctx[3]}set tourid(e){this.$$set({tourid:e}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}});const Kn={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Reproducir ahora"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function Yn(e,t,r){const n=e.slice();return n[38]=t[r],n[40]=r,n}function Zn(r){let i,n,o,s,a,l,u,c,h=r[0],p=[];for(let e=0;e<h.length;e+=1)p[e]=qn(Yn(r,h,e));return{c(){(i=L("div")).innerHTML='<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7"></path></svg>',n=k(),o=L("main"),s=L("div");for(let e=0;e<p.length;e+=1)p[e].c();a=k(),(l=L("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>',M(i,"class","SliderNavButton"),M(i,"part","SliderNavButton"),G(i,"disabled",r[6]),M(s,"class","items"),M(s,"part","items"),d(s,"transform","translateX("+r[1]+"px)"),M(l,"class","SliderNavButton"),M(l,"part","SliderNavButton"),G(l,"disabled",r[7])},m(e,t){F(e,i,t),F(e,n,t),F(e,o,t),H(o,s);for(let e=0;e<p.length;e+=1)p[e].m(s,null);r[22](s),F(e,a,t),F(e,l,t),u||(c=[R(i,"click",r[18]),R(l,"click",r[23])],u=!0)},p(t,r){if(64&r[0]&&G(i,"disabled",t[6]),5913&r[0]){let e;for(h=t[0],e=0;e<h.length;e+=1){var n=Yn(t,h,e);p[e]?p[e].p(n,r):(p[e]=qn(n),p[e].c(),p[e].m(s,null))}for(;e<p.length;e+=1)p[e].d(1);p.length=h.length}2&r[0]&&d(s,"transform","translateX("+t[1]+"px)"),128&r[0]&&G(l,"disabled",t[7])},d(e){e&&I(i),e&&I(n),e&&I(o),U(p,e),r[22](null),e&&I(a),e&&I(l),u=!1,C(c)}}}function qn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[8]("gamesSlider.playNow")+"";function b(){return r[19](r[38])}function y(){return r[20](r[40])}return{c(){n=L("div"),i=L("span"),o=O(g),l=k(),u=L("img"),d=k(),M(i,"class",s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),M(i,"part",a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":"")),D(u.src,c=r[38].thumbnail)||M(u,"src",c),M(u,"width","132px"),M(u,"height","100px"),M(u,"alt",h=r[38].name),M(u,"title",p=r[38].name),M(n,"class","item"),M(n,"part","item")},m(e,t){F(e,n,t),H(n,i),H(i,o),H(n,l),H(n,u),H(n,d),m||(f=[R(n,"click",b),R(n,"mouseenter",y),R(n,"mouseleave",r[21])],m=!0)},p(e,t){r=e,256&t[0]&&g!==(g=r[8]("gamesSlider.playNow")+"")&&N(o,g),24&t[0]&&s!==(s="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(i,"class",s),24&t[0]&&a!==(a="PlayNowButton "+(r[3]&&r[4]==r[40]?"itemHover":""))&&M(i,"part",a),1&t[0]&&!D(u.src,c=r[38].thumbnail)&&M(u,"src",c),1&t[0]&&h!==(h=r[38].name)&&M(u,"alt",h),1&t[0]&&p!==(p=r[38].name)&&M(u,"title",p)},d(e){e&&I(n),m=!1,C(f)}}}function Qn(r){let n,i=r[0]&&Zn(r);return{c(){n=L("div"),i&&i.c(),this.c=v,M(n,"class","TournamentsGamesSlider"),M(n,"part","TournamentsGamesSlider")},m(e,t){F(e,n,t),i&&i.m(n,null),r[24](n)},p(e,t){e[0]?i?i.p(e,t):((i=Zn(e)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(e){e&&I(n),i&&i.d(),r[24](null)}}}function ei(e,t,r){let n,i,o;oe(e,vn,e=>r(8,o=e));let s,a,l,u,{tournamenturl:c=""}=t,{scrollby:h="3"}=t,{pagfactor:p="175"}=t,{lang:d=""}=t,m=window.navigator.userAgent,f=[],g=0,b=null,y=null,v=!1,w=0;Object.keys(Kn).forEach(e=>{qr(e,Kn[e])});const E=e=>{r(3,v=!0),r(4,l=e)},T=()=>{r(3,v=!1),r(4,l=-1)},x=e=>{e=(e.touches||e.originalEvent.touches)[0];b=e.clientX,y=e.clientY},S=e=>{var t;b&&y&&(t=e.touches[0].clientX,e=e.touches[0].clientY,t=b-t,e=y-e,Math.abs(t)>Math.abs(e)&&A(0<t?1:-1),b=null,y=null)},A=e=>{0<e&&!i?(r(1,g-=s),r(1,g=g<w?w:g)):e<0&&!n&&(r(1,g+=s),r(1,g=0<g?0:g))},_=e=>{window.postMessage({type:"TournamentGameAction",gameId:e.id,name:e.name},window.location.href)};return se(()=>(s=parseInt(h,10)*parseInt(p,10),()=>{a.removeEventListener("touchstart",x),a.removeEventListener("touchmove",S)})),e.$$set=e=>{"tournamenturl"in e&&r(14,c=e.tournamenturl),"scrollby"in e&&r(15,h=e.scrollby),"pagfactor"in e&&r(13,p=e.pagfactor),"lang"in e&&r(16,d=e.lang)},e.$$.update=()=>{if(2&e.$$.dirty[0]&&r(6,n=0===g),131074&e.$$.dirty[0]&&r(7,i=g<=w),16384&e.$$.dirty[0]&&c){let e=new URL(c),t=new Headers;e.searchParams.append("expand","games"),e.searchParams.append("pagination",`games(limit=30,offset=${g})`),e.searchParams.append("fields","games(id,name,thumbnail)"),e.searchParams.append("language",d),e.searchParams.append("platform",wn(m)),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{r(0,f=e.item.games.items),e.item.games.total})}4&e.$$.dirty[0]&&a&&(a.addEventListener("touchstart",x,{passive:!0}),a.addEventListener("touchmove",S,{passive:!0})),1&e.$$.dirty[0]&&f.length&&setTimeout(()=>{r(17,w=-1*(u.scrollWidth-u.clientWidth)),r(13,p=new String(u.scrollWidth/f.length)),s=parseInt(h,10)*parseFloat(p,2).toFixed(2)},1e3)},r(1,g=0),[f,g,a,v,l,u,n,i,o,E,T,A,_,p,c,h,d,w,()=>A(-1),e=>_(e),e=>E(e),()=>T(),function(e){ne[e?"unshift":"push"](()=>{u=e,r(5,u)})},()=>A(1),function(e){ne[e?"unshift":"push"](()=>{a=e,r(2,a)})}]}function ti(r){let n,i,o,s,a,l,u,c,h,p=r[11]&&ni(r);function d(e){return e[11]?"Closed"!=e[20]&&"Closing"!=e[20]?si:"true"==e[3]?oi:void 0:ai}let m=d(r),f=m&&m(r),g=(r[14]||r[16])&&mi(r),b="true"==r[4]&&fi(r);return{c(){n=L("div"),i=L("casino-tournaments-thumbnail"),o=k(),p&&p.c(),s=k(),a=L("div"),f&&f.c(),l=k(),g&&g.c(),u=k(),b&&b.c(),y(i,"session",r[0]),y(i,"userid",r[1]),y(i,"title",r[17]),y(i,"status",r[20]),y(i,"startdate",r[18]),y(i,"tourid",r[21]),y(i,"scorecriteria",r[24]),y(i,"minbetcount",r[25]),y(i,"thumbnail",r[22]),y(i,"userenrolled",r[23]),y(i,"showenrolled",r[5]),y(i,"gameurl",r[27]),y(i,"lang",r[8]),y(i,"keepbrowsercontext",r[9]),y(i,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),M(a,"class","TournamentButtons"),M(a,"part","TournamentButtons"),M(n,"class",c="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[28]?"elementToFadeOut":"elementToFadeIn")),M(n,"part",h="TournamentCard "+(r[6]?"CardMaxWidth":"")+(r[7]?"CardFullSize":"")+" "+(r[28]?"elementToFadeOut":"elementToFadeIn")+" "+(r[28]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){F(e,n,t),H(n,i),H(n,o),p&&p.m(n,null),H(n,s),H(n,a),f&&f.m(a,null),H(n,l),g&&g.m(n,null),H(n,u),b&&b.m(n,null),r[50](n)},p(e,t){1&t[0]&&y(i,"session",e[0]),2&t[0]&&y(i,"userid",e[1]),131072&t[0]&&y(i,"title",e[17]),1048576&t[0]&&y(i,"status",e[20]),262144&t[0]&&y(i,"startdate",e[18]),2097152&t[0]&&y(i,"tourid",e[21]),16777216&t[0]&&y(i,"scorecriteria",e[24]),33554432&t[0]&&y(i,"minbetcount",e[25]),4194304&t[0]&&y(i,"thumbnail",e[22]),8388608&t[0]&&y(i,"userenrolled",e[23]),32&t[0]&&y(i,"showenrolled",e[5]),134217728&t[0]&&y(i,"gameurl",e[27]),256&t[0]&&y(i,"lang",e[8]),512&t[0]&&y(i,"keepbrowsercontext",e[9]),e[11]?p?p.p(e,t):((p=ni(e)).c(),p.m(n,s)):p&&(p.d(1),p=null),m===(m=d(e))&&f?f.p(e,t):(f&&f.d(1),(f=m&&m(e))&&(f.c(),f.m(a,null))),e[14]||e[16]?g?g.p(e,t):((g=mi(e)).c(),g.m(n,u)):g&&(g.d(1),g=null),"true"==e[4]?b?b.p(e,t):((b=fi(e)).c(),b.m(n,null)):b&&(b.d(1),b=null),268435648&t[0]&&c!==(c="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(n,"class",c),268435648&t[0]&&h!==(h="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(n,"part",h)},d(e){e&&I(n),p&&p.d(),f&&f.d(),g&&g.d(),b&&b.d(),r[50](null)}}}function ri(e){let r,n,i,o;return{c(){r=L("div"),(n=L("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>',M(n,"class","ph-item"),M(n,"part","ph-item"),M(r,"class",i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")),M(r,"part",o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))},m(e,t){F(e,r,t),H(r,n)},p(e,t){268435648&t[0]&&i!==(i="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"class",i),268435648&t[0]&&o!==(o="TournamentCard "+(e[6]?"CardMaxWidth":"")+(e[7]?"CardFullSize":"")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn")+" "+(e[28]?"elementToFadeOut":"elementToFadeIn"))&&M(r,"part",o)},d(e){e&&I(r)}}}function ni(e){let r,n,i=e[21]&&ii(e);return{c(){i&&i.c(),r=k(),y(n=L("casino-tournaments-thumbnail-duration"),"status",e[20]),y(n,"startdate",e[18]),y(n,"lang",e[8]),y(n,"enddate",e[19]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(e,t){i&&i.m(e,t),F(e,r,t),F(e,n,t)},p(e,t){e[21]?i?i.p(e,t):((i=ii(e)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),1048576&t[0]&&y(n,"status",e[20]),262144&t[0]&&y(n,"startdate",e[18]),256&t[0]&&y(n,"lang",e[8]),524288&t[0]&&y(n,"enddate",e[19])},d(e){i&&i.d(e),e&&I(r),e&&I(n)}}}function ii(r){let n,i,o,s;return{c(){y(n=L("casino-tournaments-thumbnail-prizes"),"tourid",r[21]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(e,t){F(e,n,t),o||(s=$(i=r[34].call(null,n,r[21])),o=!0)},p(e,t){2097152&t[0]&&y(n,"tourid",e[21]),i&&A(i.update)&&2097152&t[0]&&i.update.call(null,e[21])},d(e){e&&I(n),o=!1,s()}}}function oi(r){let n,i,o,s,a=r[29]("tournamentsThController.details")+"";return{c(){n=L("button"),i=O(a),M(n,"class","DetailsLargeButton"),M(n,"part","DetailsLargeButton")},m(e,t){F(e,n,t),H(n,i),o||(s=R(n,"click",r[49]),o=!0)},p(e,t){536870912&t[0]&&a!==(a=e[29]("tournamentsThController.details")+"")&&N(i,a)},d(e){e&&I(n),o=!1,s()}}}function si(e){let r,n,i="true"==e[3]&&li(e);function o(e){return 1==e[23]?ci:ui}let s=o(e),a=s(e);return{c(){i&&i.c(),r=k(),a.c(),n=j()},m(e,t){i&&i.m(e,t),F(e,r,t),a.m(e,t),F(e,n,t)},p(e,t){"true"==e[3]?i?i.p(e,t):((i=li(e)).c(),i.m(r.parentNode,r)):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(n.parentNode,n)))},d(e){i&&i.d(e),e&&I(r),a.d(e),e&&I(n)}}}function ai(r){let n,i,o,s,a,l,u,c=r[29]("tournamentsThController.login")+"",h=r[29]("tournamentsThController.register")+"";return{c(){n=L("button"),i=O(c),o=k(),s=L("button"),a=O(h),M(n,"class","LoginButton"),M(n,"part","LoginButton"),M(s,"class","RegisterButton"),M(s,"part","RegisterButton")},m(e,t){F(e,n,t),H(n,i),F(e,o,t),F(e,s,t),H(s,a),l||(u=[R(n,"click",r[45]),R(s,"click",r[46])],l=!0)},p(e,t){536870912&t[0]&&c!==(c=e[29]("tournamentsThController.login")+"")&&N(i,c),536870912&t[0]&&h!==(h=e[29]("tournamentsThController.register")+"")&&N(a,h)},d(e){e&&I(n),e&&I(o),e&&I(s),l=!1,C(u)}}}function li(r){let n,i,o,s,a=r[29]("tournamentsThController.details")+"";return{c(){n=L("button"),i=O(a),M(n,"class","DetailsButton"),M(n,"part","DetailsButton")},m(e,t){F(e,n,t),H(n,i),o||(s=R(n,"click",r[47]),o=!0)},p(e,t){536870912&t[0]&&a!==(a=e[29]("tournamentsThController.details")+"")&&N(i,a)},d(e){e&&I(n),o=!1,s()}}}function ui(r){let n,i,o,s,a;function l(e){return 1==e[13]?pi:hi}let u=l(r),c=u(r);return{c(){n=L("button"),c.c(),M(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),M(n,"part",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[14]},m(e,t){F(e,n,t),c.m(n,null),s||(a=R(n,"click",r[48]),s=!0)},p(e,t){u===(u=l(e))&&c?c.p(e,t):(c.d(1),(c=u(e))&&(c.c(),c.m(n,null))),128&t[0]&&i!==(i="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"class",i),128&t[0]&&o!==(o="JoinButton "+(e[7]?"JoinButtonFullSize":""))&&M(n,"part",o),16384&t[0]&&(n.disabled=e[14])},d(e){e&&I(n),c.d(),s=!1,a()}}}function ci(e){let r,n="true"==e[3]&&di(e);return{c(){n&&n.c(),r=j()},m(e,t){n&&n.m(e,t),F(e,r,t)},p(e,t){"true"==e[3]?n?n.p(e,t):((n=di(e)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&I(r)}}}function hi(e){let r,n,i,o,s,a,l,u,c,h=e[29]("tournamentsThController.join")+"";return{c(){r=L("span"),n=O(h),i=k(),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"),M(r,"part","JoinButtonSpan"),M(c,"class","a"),M(c,"part","a JoinButtonSvgA"),M(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),M(c,"transform","translate(26 26) rotate(180)"),M(u,"transform","translate(26 26) rotate(180)"),M(o,"part","JoinButtonSvg"),M(o,"xmlns","http://www.w3.org/2000/svg"),M(o,"width","26"),M(o,"height","26"),M(o,"viewBox","0 0 26 26")},m(e,t){F(e,r,t),H(r,n),F(e,i,t),F(e,o,t),H(o,s),H(s,a),H(a,l),H(o,u),H(u,c)},p(e,t){536870912&t[0]&&h!==(h=e[29]("tournamentsThController.join")+"")&&N(n,h)},d(e){e&&I(r),e&&I(i),e&&I(o)}}}function pi(e){let r,n;return{c(){r=t("svg"),M(n=t("circle"),"cx","20"),M(n,"cy","20"),M(n,"r","18"),M(r,"class","spinner"),M(r,"part","spinner")},m(e,t){F(e,r,t),H(r,n)},p:v,d(e){e&&I(r)}}}function di(e){let r,n,i=e[29]("tournamentsThController.enrolled")+"";return{c(){r=L("button"),n=O(i),M(r,"class","EnrolledButton"),M(r,"part","EnrolledButton"),r.disabled=!0},m(e,t){F(e,r,t),H(r,n)},p(e,t){536870912&t[0]&&i!==(i=e[29]("tournamentsThController.enrolled")+"")&&N(n,i)},d(e){e&&I(r)}}}function mi(e){let r,n,i,o,s=e[29]("tournamentsThController.joinerror")+"";return{c(){r=L("span"),n=O(s),i=k(),o=O(e[15]),M(r,"class","ErrorText"),M(r,"part","ErrorText")},m(e,t){F(e,r,t),H(r,n),H(r,i),H(r,o)},p(e,t){536870912&t[0]&&s!==(s=e[29]("tournamentsThController.joinerror")+"")&&N(n,s),32768&t[0]&&N(o,e[15])},d(e){e&&I(r)}}}function fi(e){let r;return{c(){y(r=L("casino-tournaments-thumbnail-games-slider"),"tournamenturl",e[2]),y(r,"lang",e[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(e,t){F(e,r,t)},p(e,t){4&t[0]&&y(r,"tournamenturl",e[2]),256&t[0]&&y(r,"lang",e[8])},d(e){e&&I(r)}}}function gi(e){let r;function n(e){return e[12]?ri:e[17]?ti:void 0}let i=n(e),o=i&&i(e);return{c(){o&&o.c(),r=j(),this.c=v},m(e,t){o&&o.m(e,t),F(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o&&o.d(1),(o=i&&i(e))&&(o.c(),o.m(r.parentNode,r)))},i:v,o:v,d(e){o&&o.d(e),e&&I(r)}}}function bi(e,t,u){let r;oe(e,vn,e=>u(29,r=e));let n,i,o,s,a,c,l,h,p,d,m,{session:f=""}=t,{userid:k=""}=t,{tournamenturl:g=""}=t,b=t["touridx"],{endpoint:y=""}=t,{showdetails:R=""}=t,{showslider:M=""}=t,{showenrolled:N=""}=t,{maxwidth:D=""}=t,{fullsize:z=""}=t,{lang:v=""}=t,{loginevent:w=""}=t,{registerevent:E=""}=t,{loginurl:T=""}=t,{registerurl:x=""}=t,{currency:S=""}=t,{keepbrowsercontext:U="false"}=t,{clientstyling:A=""}=t,{clientstylingurl:_=""}=t,B=!1,P="",C=!0,j=window.navigator.userAgent,$=!1,H=!1,G="There was an error while trying to join the tournament",F=!1,J=[],I=[],V="#",L=!1;var W,X;({withLocale:W,translations:X}={withLocale:"en",translations:{}}),ie.subscribe(e=>{null==e&&(Yr.set(X),ie.set(W))}),Object.keys(En).forEach(e=>{qr(e,En[e])});const K=e=>{Z(e),re(e),te(this,c)},Y=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(11,B=!0),P=r.data.session),"UpdateTournamentView"==r.data.type){var e=r.data.tournamentData;if(c&&c!=e.id)return;K(e)}if(r.data&&r.data.type=="UpdateSingleTournament_"+b){let e=r.data.tournamentData,t=b<4?100*b:300*Math.random()+300;u(28,L=1==b),setTimeout(()=>{u(28,L=!0),u(21,c=e.id),K(e)},t),setTimeout(()=>{u(28,L=!1)},200+t)}},Z=e=>{e.state!=a&&(u(20,a=e.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},q=()=>{w&&(window.postMessage({type:w,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),T&&(window.location=T)},Q=()=>{E&&(window.postMessage({type:E,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),x&&(window.location=x)},O=e=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:e,showLeaderboard:!0},window.location.href)},ee=async(t,e)=>{u(14,H=!1),u(16,F=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),u(13,$=!0);let r=new URL(y+"/bonus/claim"),n=new Headers,i={},o=(r.searchParams.append("language",v),r.searchParams.append("platform",wn(j)),n.append("Content-Type","application/json"),n.append("X-SessionID",P),e&&1<=e.length&&(i={language:v,bonusCode:e[0].code,currency:S}),{method:"PUT",headers:n,body:JSON.stringify(i)});const s=()=>{u(13,$=!1),u(23,h=!0)},a=e=>{u(13,$=!1),e&&u(15,G=e),u(14,H=!0)},l=await(async()=>{let e;try{e=await(e=await fetch(r,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(16,F=!0),u(14,H=!1))}else a(l.errorMessage)},te=(e,t)=>{window.postMessage({type:"TournamentPrizes_"+t,prizes:J},window.location.href)},re=e=>{e&&(u(17,i=e.nameOrTitle||""),u(18,o=e.startTime),u(19,s=e.endTime),u(20,a=e.state),u(21,c=e.id),u(22,l=e.thumbnail),u(23,h=e.playerEnrolled||!1),u(24,p=e.scoreCriteria),u(25,d=e.minBetCount),J=e.prizes,u(26,I=e.wallets||[]),u(27,V=e.termsUrl||"#"))};return se(()=>(u(12,C=!1),window.addEventListener("message",Y,!1),()=>{window.removeEventListener("message",Y)})),e.$$set=e=>{"session"in e&&u(0,f=e.session),"userid"in e&&u(1,k=e.userid),"tournamenturl"in e&&u(2,g=e.tournamenturl),"touridx"in e&&u(35,b=e.touridx),"endpoint"in e&&u(36,y=e.endpoint),"showdetails"in e&&u(3,R=e.showdetails),"showslider"in e&&u(4,M=e.showslider),"showenrolled"in e&&u(5,N=e.showenrolled),"maxwidth"in e&&u(6,D=e.maxwidth),"fullsize"in e&&u(7,z=e.fullsize),"lang"in e&&u(8,v=e.lang),"loginevent"in e&&u(37,w=e.loginevent),"registerevent"in e&&u(38,E=e.registerevent),"loginurl"in e&&u(39,T=e.loginurl),"registerurl"in e&&u(40,x=e.registerurl),"currency"in e&&u(41,S=e.currency),"keepbrowsercontext"in e&&u(9,U=e.keepbrowsercontext),"clientstyling"in e&&u(42,A=e.clientstyling),"clientstylingurl"in e&&u(43,_=e.clientstylingurl)},e.$$.update=()=>{if(1024&e.$$.dirty[0]|2048&e.$$.dirty[1]&&n&&A){let e=document.createElement("style");e.innerHTML=A,n.appendChild(e)}if(1024&e.$$.dirty[0]|4096&e.$$.dirty[1]&&n&&_){let e=new URL(_),t=document.createElement("style");fetch(e.href).then(e=>e.text()).then(e=>{t.innerHTML=e,n&&(setTimeout(()=>{n.appendChild(t)},1),setTimeout(()=>{},500))})}if(1&e.$$.dirty[0]&&f&&(0<f.length&&"false"!=f?(P=f,u(11,B=!0)):u(11,B=!1)),260&e.$$.dirty[0]&&u(44,m=g&&v),8192&e.$$.dirty[1]&&m){u(12,C=!0);{var r=g;u(12,C=!0);let e=new URL(r),t=new Headers;e.searchParams.append("language",v),e.searchParams.append("platform",wn(j)),B&&t.append("X-SessionID",P),fetch(e,{method:"GET",headers:t}).then(e=>e.json()).then(e=>{u(12,C=!1),re(e.item)})}}},[f,k,g,R,M,N,D,z,v,U,n,B,C,$,H,G,F,i,o,s,a,c,l,h,p,d,I,V,L,r,q,Q,O,ee,te,b,y,w,E,T,x,S,A,_,m,()=>q(),()=>Q(),()=>O(c),()=>ee(c,I),()=>O(c),function(e){ne[e?"unshift":"push"](()=>{n=e,u(10,n)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends ae{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentsGamesSlider{background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);display:flex;justify-content:center}.disabled{color:var(--emfe-w-color-contrast, #07072A)}.SliderNavButton{background:var(--emfe-w-color-contrast, #07072A);border:0px;width:25px;display:flex;align-items:center;justify-content:center}.SliderNavButton svg{width:20px}main{width:95%;overflow:hidden}.items{display:flex;transition:transform 0.4s ease-in-out;transform:translateX(0px)}.item{min-width:119px;height:96px;margin:0 4px;background-color:var(--emfe-w-color-secondary, #FD2839);color:white;display:flex;justify-content:center;align-items:center;font-weight:bold;font-size:10rem;user-select:none;overflow:hidden}.PlayNowButton{position:absolute;background:var(--emfe-w-color-green, #48952a);display:block;box-sizing:border-box;padding:0.8rem .5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity .4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>",re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},ei,Qn,_,{tournamenturl:14,scrollby:15,pagfactor:13,lang:16},null,[-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang"]}get tournamenturl(){return this.$$.ctx[14]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(e){this.$$set({scrollby:e}),g()}get pagfactor(){return this.$$.ctx[13]}set pagfactor(e){this.$$set({pagfactor:e}),g()}get lang(){return this.$$.ctx[16]}set lang(e){this.$$set({lang:e}),g()}});class yi extends ae{constructor(e){super(),this.shadowRoot.innerHTML='<style>:host{font-family:system-ui, -apple-system, \'Segoe UI\', Roboto, Helvetica, Arial, sans-serif, \'Apple Color Emoji\', \'Segoe UI Emoji\'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}button{cursor:pointer}.TournamentCard{position:relative;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);border:solid 1px #30313c;gap:20px;display:flex;flex-direction:column;padding-bottom:20px;margin:0 auto}.CardFullSize{width:100%}.CardMaxWidth{max-width:600px}.TournamentButtons{display:flex;justify-content:center;gap:20px;margin:0 20px}.TournamentButtons button{cursor:pointer}.LoginButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:15px}.LoginButton:hover{opacity:0.7}.RegisterButton{background:var(--emfe-w-color-contrast, #07072A);width:50%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px}.RegisterButton:hover{opacity:0.7}.DetailsButton{background:var(--emfe-w-color-contrast, #07072A);width:40%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsButton:hover{opacity:0.7}.DetailsLargeButton{background:var(--emfe-w-color-contrast, #07072A);width:100%;height:50px;border:solid var(--emfe-w-color-white, #FFFFFF) 1px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;font-size:14px}.DetailsLargeButton:hover{opacity:0.7}.EnrolledButton{background:var(--emfe-w-color-contrast, #07072A);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-green, #48952a);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;font-size:14px;cursor:default}.JoinButton{background:var(--emfe-w-color-green, #48952a);width:60%;height:50px;text-align:center;color:var(--emfe-w-color-white, #FFFFFF);border:solid var(--emfe-w-color-green, #48952a) 1px;text-transform:uppercase;display:flex;justify-content:center;align-items:center;gap:20px;font-size:14px}.JoinButton:hover{opacity:0.7}.JoinButton:disabled{cursor:default;opacity:0.7}.JoinButtonFullSize{width:100%}.ErrorText{margin:0 20px;color:red;font-size:14px;font-weight:bold}.ph-item{position:relative;display:flex;flex-wrap:wrap;margin-bottom:30px;padding:30px 15px 15px 15px;overflow:hidden;direction:ltr;background-color:var(--emfe-w-color-contrast, #07072A);border:1px solid var(--emfe-w-color-footer-bg, #212529);border-radius:2px}.ph-item,.ph-item *,.ph-item ::after,.ph-item ::before{box-sizing:border-box}.ph-item::before{position:absolute;top:0;right:0;bottom:0;left:50%;z-index:1;width:500%;margin-left:-250%;background:linear-gradient(to right, rgba(var(--emfe-w-color-contrast, #07072A), 0) 46%, rgba(var(--emfe-w-color-contrast, #07072A), 0.35) 50%, rgba(var(--emfe-w-color-contrast, #07072A), 0) 54%) 50% 50%;animation:phAnimation 0.8s linear infinite;content:" ";pointer-events:none}.ph-item>*{display:flex;flex:1 1 auto;flex-flow:column;margin-bottom:15px;padding-right:15px;padding-left:15px}.ph-row{display:flex;flex-wrap:wrap;margin-top:-7.5px}.ph-row div{height:10px;margin-top:7.5px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}.ph-row .big{height:20px}.ph-row .empty{background-color:rgba(var(--emfe-w-color-contrast, #07072A), 0)}.ph-col-4{flex:0 0 33.33333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.66667%}.ph-col-12{flex:0 0 100%}[class*="ph-col"]{direction:ltr}[class*="ph-col"]>*+.ph-row{margin-top:0}[class*="ph-col"]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}</style>',re(this,{target:this.shadowRoot,props:J(this.attributes),customElement:!0},bi,gi,_,{session:0,userid:1,tournamenturl:2,touridx:35,endpoint:36,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:37,registerevent:38,loginurl:39,registerurl:40,currency:41,keepbrowsercontext:9,clientstyling:42,clientstylingurl:43},null,[-1,-1,-1]),e&&(e.target&&F(e.target,this,e.anchor),e.props&&(this.$set(e.props),g()))}static get observedAttributes(){return["session","userid","tournamenturl","touridx","endpoint","showdetails","showslider","showenrolled","maxwidth","fullsize","lang","loginevent","registerevent","loginurl","registerurl","currency","keepbrowsercontext","clientstyling","clientstylingurl"]}get session(){return this.$$.ctx[0]}set session(e){this.$$set({session:e}),g()}get userid(){return this.$$.ctx[1]}set userid(e){this.$$set({userid:e}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(e){this.$$set({tournamenturl:e}),g()}get touridx(){return this.$$.ctx[35]}set touridx(e){this.$$set({touridx:e}),g()}get endpoint(){return this.$$.ctx[36]}set endpoint(e){this.$$set({endpoint:e}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(e){this.$$set({showdetails:e}),g()}get showslider(){return this.$$.ctx[4]}set showslider(e){this.$$set({showslider:e}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(e){this.$$set({showenrolled:e}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(e){this.$$set({maxwidth:e}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(e){this.$$set({fullsize:e}),g()}get lang(){return this.$$.ctx[8]}set lang(e){this.$$set({lang:e}),g()}get loginevent(){return this.$$.ctx[37]}set loginevent(e){this.$$set({loginevent:e}),g()}get registerevent(){return this.$$.ctx[38]}set registerevent(e){this.$$set({registerevent:e}),g()}get loginurl(){return this.$$.ctx[39]}set loginurl(e){this.$$set({loginurl:e}),g()}get registerurl(){return this.$$.ctx[40]}set registerurl(e){this.$$set({registerurl:e}),g()}get currency(){return this.$$.ctx[41]}set currency(e){this.$$set({currency:e}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(e){this.$$set({keepbrowsercontext:e}),g()}get clientstyling(){return this.$$.ctx[42]}set clientstyling(e){this.$$set({clientstyling:e}),g()}get clientstylingurl(){return this.$$.ctx[43]}set clientstylingurl(e){this.$$set({clientstylingurl:e}),g()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",yi),yi});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-thumbnail-controller.js.map
|