@everymatrix/casino-tournaments-thumbnail-controller 1.4.1 → 1.5.2
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(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function v(){}function x(t){return t()}function A(){return Object.create(null)}function P(t){t.forEach(x)}function S(t){return"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let B,$,D;function z(t,e){return(B=B||document.createElement("a")).href=e,t===B.href}function U(t,...e){if(null==t)return v;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function st(t,e,r){t.$$.on_destroy.push(U(e,r))}function C(t){return t&&S(t.destroy)?t.destroy:v}function H(t,e){t.appendChild(e)}function F(t,e,r){t.insertBefore(e,r||null)}function I(t){t.parentNode.removeChild(t)}function j(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function k(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function O(){return L(" ")}function G(){return L("")}function M(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function R(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:R(t,e,r)}function N(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function m(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function J(t,e,r){t.classList[r?"add":"remove"](e)}function V(t){const e={};for(const r of t)e[r.name]=r.value;return e}function W(t){D=t}function at(t){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(t)}const X=[],it=[],K=[],Y=[],Z=Promise.resolve();let q=!1;function Q(t){K.push(t)}const tt=new Set;let et=0;function g(){const t=D;do{for(;et<X.length;){const t=X[et];et++,W(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),P(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Q))}for(W(null),X.length=0,et=0;it.length;)it.pop()();for(let t=0;t<K.length;t+=1){const n=K[t];tt.has(n)||(tt.add(n),n())}}while(K.length=0,X.length);for(;Y.length;)Y.pop()();q=!1,tt.clear(),W(t)}const rt=new Set;function nt(n,t,e,r,i,o,s,a=[-1]){var l=D;W(n);const u=n.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(n,t.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return u.ctx&&i(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),c&&(r=t,-1===(t=n).$$.dirty[0]&&(X.push(t),q||(q=!0,Z.then(g)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],u.update(),c=!0,P(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){o=t.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(I)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(rt.delete(a),a.i(void 0));{var h=n;s=t.target;e=t.anchor;r=t.customElement;const{fragment:p,on_mount:d,on_destroy:m,after_update:f}=h.$$;p&&p.m(s,e),r||Q(()=>{var t=d.map(x).filter(S);m?m.push(...t):P(t),h.$$.on_mount=[]}),f.forEach(Q)}g()}W(l)}let lt;"function"==typeof HTMLElement&&(lt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(x).filter(S);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(P(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=v}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var ut,ct,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ht="URLSearchParams"in a,pt="Symbol"in a&&"iterator"in Symbol,dt="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(t){return!1}}(),mt="FormData"in a,ft="ArrayBuffer"in a;function gt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function yt(t){return t="string"!=typeof t?String(t):t}function bt(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return pt&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function vt(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function wt(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function Et(t){var e=new FileReader,r=wt(e);return e.readAsArrayBuffer(t),r}function Tt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function xt(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:dt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:mt&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ht&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():ft&&dt&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Tt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ft&&(ArrayBuffer.prototype.isPrototypeOf(t)||ct(t))?this._bodyArrayBuffer=Tt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ht&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},dt&&(this.blob=function(){var t=vt(this);if(t)return t;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?vt(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(Et)}),this.text=function(){var t,e,r=vt(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=wt(t=new FileReader),t.readAsText(r),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},mt&&(this.formData=function(){return this.text().then(St)}),this.json=function(){return this.text().then(JSON.parse)},this}ft&&(ut=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ct=ArrayBuffer.isView||function(t){return t&&-1<ut.indexOf(Object.prototype.toString.call(t))}),l.prototype.append=function(t,e){t=gt(t),e=yt(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},l.prototype.delete=function(t){delete this.map[gt(t)]},l.prototype.get=function(t){return t=gt(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(gt(t))},l.prototype.set=function(t,e){this.map[gt(t)]=yt(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),bt(r)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),bt(e)},l.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),bt(r)},pt&&(l.prototype[Symbol.iterator]=l.prototype.entries);var At=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function u(t,e){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=(e=e||{}).body;if(t instanceof u){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(r=(t=e.method||this.method||"GET").toUpperCase(),-1<At.indexOf(r)?r:t),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function St(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(e=(t=t.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function c(t,e){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}u.prototype.clone=function(){return new u(this,{body:this._bodyInit})},xt.call(u.prototype),xt.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 t=new c(null,{status:0,statusText:""});return t.type="error",t};var _t=[301,302,303,307,308],Bt=(c.redirect=function(t,e){if(-1===_t.indexOf(e))throw new RangeError("Invalid status code");return new c(null,{status:e,headers:{location:t}})},a.DOMException);try{new Bt}catch(v){(Bt=function(t,e){this.message=t,this.name=e;e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Bt.prototype.constructor=Bt}function $t(n,s){return new Promise(function(i,t){var e=new u(n,s);if(e.signal&&e.signal.aborted)return t(new Bt("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var t,r,e={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",r=new l,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var t=t.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)},n=(e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,e))},0)},o.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){t(new Bt("Aborted","AbortError"))},0)},o.open(e.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?o.withCredentials=!0:"omit"===e.credentials&&(o.withCredentials=!1),"responseType"in o&&(dt?o.responseType="blob":ft&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?e.headers.forEach(function(t,e){o.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){o.setRequestHeader(t,yt(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&e.signal.removeEventListener("abort",r)}),o.send(void 0===e._bodyInit?null:e._bodyInit)})}$t.polyfill=!0,a.fetch||(a.fetch=$t,a.Headers=l,a.Request=u,a.Response=c),self.fetch.bind(self);var Pt=function(t,e){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Ct(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ht(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function It(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function h(t){return"function"==typeof t}function kt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var Lt=kt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function Ot(t,e){t&&0<=(e=t.indexOf(e))&&t.splice(e,1)}r.prototype.unsubscribe=function(){var t,e,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=Ht(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(t){i=t instanceof Lt?t.errors:[t]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Ht(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Dt(c)}catch(t){i=null!=i?i:[],t instanceof Lt?i=It(It([],Ft(i)),Ft(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Lt(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Dt(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(e=this._finalizers)?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Ot(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&Ot(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Mt=r,Rt=Mt.EMPTY;function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}function Nt(t){return t instanceof Mt||t&&"closed"in t&&h(t.remove)&&h(t.add)&&h(t.unsubscribe)}function Dt(t){h(t)?t():t.unsubscribe()}var zt=void 0,Ut=!1,jt=!1,Gt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Gt.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,It([t,e],Ft(r))):setTimeout.apply(void 0,It([t,e],Ft(r)))},clearTimeout:function(t){var e=Gt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Jt(){}var Vt=null;function Wt(t){if(Ut){var e=!Vt;if(e&&(Vt={errorThrown:!1,error:null}),t(),e){var e=Vt,r=e.errorThrown,e=e.error;if(Vt=null,r)throw e}}else t()}Ct(t,Xt=Mt),t.create=function(t,e,r){return new te(t,e,r)},t.prototype.next=function(t){this.isStopped||this._next(t)},t.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xt.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(t){this.destination.next(t)},t.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xt,Kt=t,Yt=Function.prototype.bind;function t(t){var e=Xt.call(this)||this;return e.isStopped=!1,t?Nt(e.destination=t)&&t.add(e):e.destination=ie,e}function Zt(t,e){return Yt.call(t,e)}re.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){ne(t)}},re.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){ne(t)}else ne(t)},re.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){ne(t)}};var qt,Qt=re,te=(Ct(ee,qt=Kt),ee);function ee(t,e,r){var n=qt.call(this)||this,r=h(t)||!t?{next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:n&&jt?((e=Object.create(t)).unsubscribe=function(){return n.unsubscribe()},{next:t.next&&Zt(t.next,e),error:t.error&&Zt(t.error,e),complete:t.complete&&Zt(t.complete,e)}):t;return n.destination=new Qt(r),n}function re(t){this.partialObserver=t}function ne(t){var e=t;Gt.setTimeout(function(){throw e})}var ie={closed:!0,next:Jt,error:function(t){throw t},complete:Jt},n="function"==typeof Symbol&&Symbol.observable||"@@observable";function oe(t){return t}i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Kt||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Nt(n)?t:new te(t,e,r);return Wt(function(){var t=i.operator,e=i.source;o.add(t?t.call(o,e):e?i._subscribe(o):i._trySubscribe(o))}),o},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(n,t){var i=this;return new(t=ae(t))(function(t,e){var r=new te({next:function(t){try{n(t)}catch(t){e(t),r.unsubscribe()}},error:e,complete:t});i.subscribe(r)})},i.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},i.prototype[n]=function(){return this},i.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?oe:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},i.prototype.toPromise=function(t){var n=this;return new(t=ae(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},i.create=function(t){return new i(t)};var se=i;function i(t){t&&(this._subscribe=t)}function ae(t){return null!=(t=null!=t?t:zt)?t:Promise}var le,ue,ce,he=kt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(Ct(o,ce=se),o.prototype.lift=function(t){var e=new pe(this,this);return e.operator=t,e},o.prototype._throwIfClosed=function(){if(this.closed)throw new he},o.prototype.next=function(i){var o=this;Wt(function(){var e,t;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Ht(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},o.prototype.error=function(e){var r=this;Wt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},o.prototype.complete=function(){var e=this;Wt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var t;return 0<(null==(t=this.observers)?void 0:t.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),ce.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},o.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Rt:(this.currentObservers=null,i.push(t),new Mt(function(){e.currentObservers=null,Ot(i,t)}))},o.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},o.prototype.asObservable=function(){var t=new se;return t.source=this,t},o.create=function(t,e){return new pe(t,e)},o),pe=(Ct(ge,ue=n),ge.prototype.next=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.next)&&r.call(e,t)},ge.prototype.error=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.error)&&r.call(e,t)},ge.prototype.complete=function(){var t,e;null!=(e=null==(t=this.destination)?void 0:t.complete)&&e.call(t)},ge.prototype._subscribe=function(t){var e;return null!=(e=null==(e=this.source)?void 0:e.subscribe(t))?e:Rt},ge),de={now:function(){return(de.delegate||Date).now()},delegate:void 0},me=(Ct(fe,le=n),fe.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,i=e._infiniteTimeWindow,o=e._timestampProvider,e=e._windowTime;r||(n.push(t),i||n.push(o.now()+e)),this._trimBuffer(),le.prototype.next.call(this,t)},fe.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},fe.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},fe);function fe(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=de);var n=le.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function ge(t,e){var r=ue.call(this)||this;return r.destination=t,r.source=e,r}function o(){var t=ce.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ye=[],be={};const ve=[];function we(n,i=v){let o;const s=new Set;function a(t){if(_(n,t)&&(n=t,o)){const t=!ve.length;for(const t of s)t[1](),ve.push(t,n);if(t){for(let t=0;t<ve.length;t+=2)ve[t][0](ve[t+1]);ve.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=v){const r=[t,e];return s.add(r),1===s.size&&(o=i(a)||v),t(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function Ee(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:we(e,e=>{let r=!1;const n=[];let i=0,o=v;const s=()=>{var t;i||(o(),t=a(l?n[0]:n,e),c?e(t):o=S(t)?t:v)},t=u.map((t,e)=>U(t,t=>{n[e]=t,i&=~(1<<e),r&&s()},()=>{i|=1<<e}));return r=!0,s(),function(){P(t),o()}}).subscribe}}function Te(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===xe));var e}var xe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ae(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Pe(Array.isArray(t)?[]:{},t,e):t}function Se(t,e,r){return t.concat(e).map(function(t){return Ae(t,r)})}function _e(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function Be(t,e){try{return e in t}catch(t){return!1}}function $e(n,i,o){var s={};return o.isMergeableObject(n)&&_e(n).forEach(function(t){s[t]=Ae(n[t],o)}),_e(i).forEach(function(e){var t,r;(!Be(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(Be(n,e)&&o.isMergeableObject(i[e])?s[e]=function(t){if(!t.customMerge)return Pe;t=t.customMerge(e);return"function"==typeof t?t:Pe}(o)(n[e],i[e],o):s[e]=Ae(i[e],o))}),s}function Pe(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Se,r.isMergeableObject=r.isMergeableObject||Te,r.cloneUnlessOtherwiseSpecified=Ae;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):$e(t,e,r):Ae(e,r)}Pe.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return Pe(t,e,r)},{});throw new Error("first argument should be an array")};var Ce=Pe,He=function(t,e){return(He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Fe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var f,b,Ie,w=function(){return(w=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function ke(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Le(t){return t.type===b.literal}function Oe(t){return t.type===b.number}function Me(t){return t.type===b.date}function Re(t){return t.type===b.time}function Ne(t){return t.type===b.select}function De(t){return t.type===b.plural}function ze(t){return t.type===b.tag}function Ue(t){return t&&"object"==typeof t&&t.type===Ie.number}function je(t){return t&&"object"==typeof t&&t.type===Ie.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=Ie=Ie||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ge=/(?:[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 Je=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,We=/^(@+)?(\+|#+)?[rs]?$/g,Xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Ke=/^(0+)$/;function Ye(t){var n={};return"r"===t[t.length-1]?n.roundingPriority="morePrecision":"s"===t[t.length-1]&&(n.roundingPriority="lessPrecision"),t.replace(We,function(t,e,r){return"string"!=typeof r?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===r?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),n}function Ze(t){switch(t){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 qe(t){return Ze(t)||{}}function Qe(t){for(var s={},e=0,r=t;e<r.length;e++){var n,i=r[e];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(t,e){return w(w({},t),qe(e))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(t,e){return w(w({},t),qe(e))},{}));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(Xe,function(t,e,r,n,i,o){if(e)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(Ke.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Ve.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ve,function(t,e,r,n,i,o){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var o=i.options[0];"w"===o?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Ye(o)))}else We.test(i.stem)?s=w(w({},s),Ye(i.stem)):((o=Ze(i.stem))&&(s=w(w({},s),o)),(n=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ke.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(i.stem))&&(s=w(w({},s),n)))}return s}var tr={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,"*")),rr=new RegExp("".concat(n.source,"*$"));function E(t,e){return{start:t,end:e}}var n=!!String.prototype.startsWith,nr=!!String.fromCodePoint,ir=!!Object.fromEntries,or=!!String.prototype.codePointAt,sr=!!String.prototype.trimStart,ar=!!String.prototype.trimEnd,lr=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ur=!0;try{ur="a"===(null==(Cr=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Cr[0])}catch(v){ur=!1}var cr,hr,pr=n?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},dr=nr?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;o<i;){if(1114111<(r=t[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},mr=ir?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],i=i[1];e[o]=i}return e},fr=or?function(t,e){return t.codePointAt(e)}:function(t,e){var r,n=t.length;if(!(e<0||n<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===n||(n=t.charCodeAt(e+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},gr=sr?function(t){return t.trimStart()}:function(t){return t.replace(er,"")},yr=ar?function(t){return t.trimEnd()}:function(t){return t.replace(rr,"")};function br(t,e){return new RegExp(t,e)}hr=ur?(cr=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return cr.lastIndex=e,null!=(e=cr.exec(t)[1])?e:""}):function(t,e){for(var r,n=[];;){var i=fr(t,e);if(void 0===i||Er(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),e+=65536<=i?2:1}return dr.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(t,e,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&0<t)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){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&&wr(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(t,e)).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(t,e){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(">")){t=this.parseMessage(t+1,e,!0);if(t.err)return t;e=t.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wr(this.char()))return this.error(f.INVALID_TAG,E(t,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:e,location:E(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,E(t,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 t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},s.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{i=this.tryParseUnquoted(t,e);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&&(wr(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},s.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return dr.apply(void 0,e)},s.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),dr(r))},s.prototype.parseArgument=function(t,e){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(t,e,n,r);default:return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=hr(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:E(t,this.clonePosition())}},s.prototype.parseArgumentOptions=function(t,e,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=yr(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&&pr(null==l?void 0:l.style,"::",0)){var h=gr(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(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(t){var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.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=t.language)&&(e=t.maximize().region),(tr[e||""]||tr[r||""]||tr["".concat(r,"-001")]||tr["001"])[0]}(e);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:Ie.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(Ge,function(t){var e=t.length;switch(t[0]){case"G":i.era=4===e?"long":5===e?"narrow":"short";break;case"y":i.year=2===e?"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"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][e-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!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-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"][e-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][e-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][e-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][e-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"][e-1];break;case"s":i.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=e<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(t,s,e,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:mr(l.val),location:h},err:null}:{val:{type:b.plural,value:r,options:mr(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(t){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=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:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Je).filter(function(t){return 0<t.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");e.push({stem:o,options:i})}return e}(t)}catch(t){return this.error(f.INVALID_NUMBER_SKELETON,e)}return{val:{type:Ie.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Qe(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(t,e,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"===e||!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"===e?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"===e?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,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"===e?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(t,e){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?lr(o*=r)?{val:o,err:null}:this.error(e,n):this.error(t,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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=fr(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},s.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},s.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},s.prototype.bumpIf=function(t){if(pr(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&Er(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),e=this.message.charCodeAt(e+(65536<=t?2:1));return null!=e?e:null};var vr=s;function s(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function wr(t){return 97<=t&&t<=122||65<=t&&t<=90}function Er(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function Tr(t,e){e=w({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new vr(t,e).parse();if(t.err)throw(r=SyntaxError(f[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,Ne(t)||De(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else Oe(t)&&Ue(t.style)||(Me(t)||Re(t))&&je(t.style)?delete t.style.location:ze(t)&&r(t.children)})}(t.val),t.val}function xr(t,e){var r=e&&e.cache?e.cache:Hr,n=e&&e.serializer?e.serializer:Br;return(e&&e.strategy?e.strategy:function(t,e){return _r(t,this,1===t.length?Ar:Sr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function Ar(t,e,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=e.get(r);return void 0===i&&(i=t.call(this,n),e.set(r,i)),i}function Sr(t,e,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=e.get(r);return void 0===i&&(i=t.apply(this,n),e.set(r,i)),i}function _r(t,e,r,n,i){return r.bind(e,t,n,i)}var Br=function(){return JSON.stringify(arguments)};function $r(){this.cache=Object.create(null)}$r.prototype.get=function(t){return this.cache[t]},$r.prototype.set=function(t,e){this.cache[t]=e};var Pr,Cr,Hr={create:function(){return new $r}},Fr={variadic:function(t,e){return _r(t,this,Sr,e.cache.create(),e.serializer)},monadic:function(t,e){return _r(t,this,Ar,e.cache.create(),e.serializer)}};(Cr=Pr=Pr||{}).MISSING_VALUE="MISSING_VALUE",Cr.INVALID_VALUE="INVALID_VALUE",Cr.MISSING_INTL_API="MISSING_INTL_API";Fe(Gr,Or=Error),Gr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Ir,kr,Lr,Or,Mr=Gr,Rr=(Fe(jr,Lr=Mr),jr),Nr=(Fe(Ur,kr=Mr),Ur),Dr=(Fe(zr,Ir=Mr),zr);function zr(t,e){return Ir.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),Pr.MISSING_VALUE,e)||this}function Ur(t,e,r){return kr.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),Pr.INVALID_VALUE,r)||this}function jr(t,e,r,n){return Lr.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pr.INVALID_VALUE,n)||this}function Gr(t,e,r){t=Or.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Jr(t,e,r,n,i,o,s){if(1===t.length&&Le(t[0]))return[{type:T.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Le(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(e).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Dr(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(Me(c)){var p="string"==typeof c.style?n.date[c.style]:je(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(h)})}else if(Re(c))p="string"==typeof c.style?n.time[c.style]:je(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(h)});else if(Oe(c))(p="string"==typeof c.style?n.number[c.style]:Ue(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(e,p).format(h)});else{if(ze(c)){var d=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Nr(m,"function",s);m=f(Jr(d,e,r,n,i,o).map(function(t){return t.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(t){return{type:"string"==typeof t?T.literal:T.object,value:t}}))}if(Ne(c)){if(!(g=c.options[h]||c.options.other))throw new Rr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jr(g.value,e,r,n,i))}else if(De(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Mr('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(e,{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,Jr(g.value,e,r,n,i,h-(c.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===T.literal&&e.type===T.literal?r.value+=e.value:t.push(e),t},[])}function Vr(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(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(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},p.__parse=Tr,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 Wr=p;function p(t,e,r,n){var i,o,s=this;if(void 0===e&&(e=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===T.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Jr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=p.resolveLocale(e),"string"==typeof t){if(this.message=t,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(o=r)?Object.keys(i).reduce(function(t,e){var r,n;return t[e]=(r=i[e],(n=o[e])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=w(w({},r[e]),n[e]||{}),t},{})):r),t},w({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:xr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ke([void 0],e,!1)))},{cache:Vr((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:Fr.variadic}),getDateTimeFormat:xr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ke([void 0],e,!1)))},{cache:Vr(e.dateTime),strategy:Fr.variadic}),getPluralRules:xr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ke([void 0],e,!1)))},{cache:Vr(e.pluralRules),strategy:Fr.variadic})}}const d={},Xr=(t,e,r)=>r&&(e in d||(d[e]={}),t in d[e]||(d[e][t]=r),r),Kr=(e,r)=>{if(null!=r){if(r in d&&e in d[r])return d[r][e];var n=pn(r);for(let t=0;t<n.length;t++){var i=function(t,r){if(!qr(t))return null;t=function(t){return Yr[t]||null}(t);{var n=r;if(null==n)return;if(n in t)return t[n];const i=n.split(".");let e=t;for(let t=0;t<i.length;t++)if("object"==typeof e){if(0<t){const n=i.slice(t,i.length).join(".");if(n in e){e=e[n];break}}e=e[i[t]]}else e=void 0;return e}}(n[t],e);if(i)return Xr(e,r,i)}}};let Yr;const Zr=we({});function qr(t){return t in Yr}function Qr(e,...r){delete d[e],Zr.update(t=>(t[e]=Ce.all([t[e]||{},...r]),t))}Ee([Zr],([t])=>Object.keys(t)),Zr.subscribe(t=>Yr=t);const tn={};function en(t){return tn[t]}function rn(t){return null!=t&&pn(t).some(t=>{return null==(t=en(t))?void 0:t.size})}const nn={};function on(t){if(!rn(t))return t in nn?nn[t]:Promise.resolve();const e=pn(t).map(t=>{var e=en(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return nn[t]=Promise.all(e.map(([t,e])=>{{var n=t;t=e;const r=Promise.all(t.map(t=>{var e=n,r=t;return tn[e].delete(r),0===tn[e].size&&delete tn[e],t().then(t=>t.default||t)}));return r.then(t=>Qr(n,...t))}})).then(()=>{if(rn(t))return on(t);delete nn[t]}),nn[t]}function sn(t,e){var r={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}const an={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 ln=we(!1);let un;const cn=we(null);function hn(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function pn(t,e=an.fallbackLocale){t=hn(t);return e?[...new Set([...t,...hn(e)])]:t}function dn(){return null!=un?un:void 0}cn.subscribe(t=>{un=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const ot=Object.assign(Object.assign({},cn),{set:e=>{if(e&&function(t){if(null!=t){var e=pn(t);for(let t=0;t<e.length;t++){var r=e[t];if(qr(r))return r}}}(e)&&rn(e)){var r=an["loadingDelay"];let t;return"undefined"!=typeof window&&null!=dn()&&r?t=window.setTimeout(()=>ln.set(!0),r):ln.set(!0),on(e).then(()=>{cn.set(e)}).finally(()=>{clearTimeout(t),ln.set(!1)})}return cn.set(e)}}),mn=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},fn=(t,e)=>{var r=an["formats"];if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},gn=mn(t=>{var{locale:e,format:r}=t,t=sn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=fn("number",r)),new Intl.NumberFormat(e,t)}),yn=mn(t=>{var{locale:e,format:r}=t,t=sn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=fn("date",r):0===Object.keys(t).length&&(t=fn("date","short")),new Intl.DateTimeFormat(e,t)}),bn=mn(t=>{var{locale:e,format:r}=t,t=sn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=fn("time",r):0===Object.keys(t).length&&(t=fn("time","short")),new Intl.DateTimeFormat(e,t)}),vn=mn((t,e=dn())=>new Wr(t,e,an.formats,{ignoreTag:an.ignoreTag})),wn=Ee([ot,Zr],()=>(t,e={})=>{var r,n;let i=e;"object"==typeof t&&(t=(i=t).id);var{values:o,locale:s=dn(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kr(t,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" 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=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:t,defaultValue:a}))?r:a)?n:t;if(!o)return l;let u=l;try{u=vn(l,s).format(o)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u}),En=(Ee([ot],()=>(t,e)=>((t={})=>{var{locale:e=dn()}=t,t=sn(t,["locale"]);return bn(Object.assign({locale:e},t))})(e).format(t)),Ee([ot],()=>(t,e)=>((t={})=>{var{locale:e=dn()}=t,t=sn(t,["locale"]);return yn(Object.assign({locale:e},t))})(e).format(t)),Ee([ot],()=>(t,e)=>((t={})=>{var{locale:e=dn()}=t,t=sn(t,["locale"]);return gn(Object.assign({locale:e},t))})(e).format(t)),Ee([ot,Zr],()=>(t,e=dn())=>Kr(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==ye.indexOf(t)&&(e=new me(e),be[t]=e,ye.push(t)),be[t]}},t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Tn(t,e){Qr(t,e)}const xn={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:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}};function An(t,e){Qr(t,e)}const Sn={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:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",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 _n(r){let n,i,o,s,a,l,u;return{c(){n=k("div"),i=L(r[13]),R(n,"class",o="Status "+r[15]),R(n,"part",s="Status "+r[15])},m(t,e){F(t,n,e),H(n,i),l||(u=C(a=r[18].call(null,n)),l=!0)},p(t,e){8192&e[0]&&N(i,t[13]),32768&e[0]&&o!==(o="Status "+t[15])&&R(n,"class",o),32768&e[0]&&s!==(s="Status "+t[15])&&R(n,"part",s)},d(t){t&&I(n),l=!1,u()}}}function Bn(t){let r,n=t[5]&&$n(t);return{c(){n&&n.c(),r=G()},m(t,e){n&&n.m(t,e),F(t,r,e)},p(t,e){t[5]?n?n.p(t,e):((n=$n(t)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&I(r)}}}function $n(t){let r,n,i=t[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=k("div"),n=L(i),R(r,"class","Enrolled"),R(r,"part","Enrolled")},m(t,e){F(t,r,e),H(r,n)},p(t,e){65536&e[0]&&i!==(i=t[16]("tournamentsThumbnail.enrolled")+"")&&N(n,i)},d(t){t&&I(r)}}}function Pn(r){let n,i,o,s,a;return{c(){R(n=k("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),R(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),m(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(t,e){F(t,n,e),s||(a=C(r[18].call(null,n)),s=!0)},p(t,e){1&e[0]&&i!==(i="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"class",i),1&e[0]&&o!==(o="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"part",o)},d(t){t&&I(n),s=!1,a()}}}function Cn(r){let n,i,o,s,a;return{c(){R(n=k("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),R(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),m(n,"background-image","url('"+r[4]+"')")},m(t,e){F(t,n,e),s||(a=C(r[18].call(null,n)),s=!0)},p(t,e){1&e[0]&&i!==(i="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"class",i),1&e[0]&&o!==(o="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"part",o),16&e[0]&&m(n,"background-image","url('"+t[4]+"')")},d(t){t&&I(n),s=!1,a()}}}function Hn(r){let n,i,o,s,a;return{c(){n=k("div"),i=L(r[11]),R(n,"class","Date"),R(n,"part","Date")},m(t,e){F(t,n,e),H(n,i),s||(a=C(o=r[17].call(null,n,r[2])),s=!0)},p(t,e){2048&e[0]&&N(i,t[11]),o&&S(o.update)&&4&e[0]&&o.update.call(null,t[2])},d(t){t&&I(n),s=!1,a()}}}function Fn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g,y,b,v,w,E,T,x,A,S=r[16]("tournamentsThumbnail.scoreCriteria")+"",_=r[16]("tournamentsThumbnail.minbet")+"",B=r[16]("tournamentsThumbnail.seegames")+"",$=r[16]("tournamentsThumbnail.here")+"";return{c(){n=k("div"),i=k("p"),o=L(S),s=L(":\n \n "),a=k("span"),l=L(r[14]),c=L("\n ("),h=L(_),p=O(),d=L(r[6]),m=L(")"),f=O(),g=k("div"),y=k("p"),b=L(B),v=O(),w=k("a"),E=L($),R(a,"part","ScoreCriteriaSpan"),R(i,"part","ScoreCriteriaP"),R(n,"class","ScoreCriteria"),R(n,"part","ScoreCriteria"),R(w,"part","GamesAnchor"),R(w,"href",r[8]),R(w,"target",T="true"===r[9]?"_self":"_blank"),R(y,"part","GamesP"),R(g,"class","Games"),R(g,"part","Games")},m(t,e){F(t,n,e),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(t,f,e),F(t,g,e),H(g,y),H(y,b),H(y,v),H(y,w),H(w,E),x||(A=[C(u=r[19].call(null,a)),M(w,"click",r[28])],x=!0)},p(t,e){65536&e[0]&&S!==(S=t[16]("tournamentsThumbnail.scoreCriteria")+"")&&N(o,S),16384&e[0]&&N(l,t[14]),65536&e[0]&&_!==(_=t[16]("tournamentsThumbnail.minbet")+"")&&N(h,_),64&e[0]&&N(d,t[6]),65536&e[0]&&B!==(B=t[16]("tournamentsThumbnail.seegames")+"")&&N(b,B),65536&e[0]&&$!==($=t[16]("tournamentsThumbnail.here")+"")&&N(E,$),256&e[0]&&R(w,"href",t[8]),512&e[0]&&T!==(T="true"===t[9]?"_self":"_blank")&&R(w,"target",T)},d(t){t&&I(n),t&&I(f),t&&I(g),x=!1,P(A)}}}function In(r){let n,i,o,s,a,l,u,c,h,p=r[0]&&_n(r),d="true"==r[7]&&Bn(r);function m(t){return t[4]?Cn:Pn}let f=m(r),g=f(r),y=r[2]&&Hn(r),b=r[12]&&Fn(r);return{c(){n=k("div"),p&&p.c(),i=O(),d&&d.c(),o=O(),g.c(),s=O(),a=k("div"),l=k("div"),u=L(r[1]),c=O(),y&&y.c(),h=O(),b&&b.c(),this.c=v,R(l,"class","Title"),R(l,"part","Title"),R(a,"class","Details"),R(a,"part","Details"),R(n,"class","Thumbnail"),R(n,"part","Thumbnail")},m(t,e){F(t,n,e),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),y&&y.m(a,null),H(a,h),b&&b.m(a,null),r[29](n)},p(t,e){t[0]?p?p.p(t,e):((p=_n(t)).c(),p.m(n,i)):p&&(p.d(1),p=null),"true"==t[7]?d?d.p(t,e):((d=Bn(t)).c(),d.m(n,o)):d&&(d.d(1),d=null),f===(f=m(t))&&g?g.p(t,e):(g.d(1),(g=f(t))&&(g.c(),g.m(n,s))),2&e[0]&&N(u,t[1]),t[2]?y?y.p(t,e):((y=Hn(t)).c(),y.m(a,h)):y&&(y.d(1),y=null),t[12]?b?b.p(t,e):((b=Fn(t)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(t){t&&I(n),p&&p.d(),d&&d.d(),g.d(),y&&y.d(),b&&b.d(),r[29](null)}}}function kn(e,t,i){let o;st(e,wn,t=>i(16,o=t));let r,{session:n=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:l=""}=t,{status:u=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:p=""}=t,{scorecriteria:d=""}=t,{minbetcount:m=""}=t,{showenrolled:f="false"}=t,{gameurl:g=""}=t,{lang:y="en"}=t,{keepbrowsercontext:b="false"}=t,{clientstyling:v=""}=t,{clientstylingurl:w=""}=t,{translationurl:E=""}=t,T="",x=!1,A="",S="",_="";Object.keys(Sn).forEach(t=>{An(t,Sn[t])});const B=t=>{t.data&&(t.data&&"SessionID"==t.data.type&&i(12,x=!0),t.data.type=="TournamentStatus_"+c&&i(0,u=t.data.status))},$=()=>{let t=new Date(l),e=new Intl.DateTimeFormat("en",{month:"long"}).format(t),r=t.getDate(),n=t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(11,T=r+" "+o("tournamentsThumbnail."+e)+", "+o("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},P=()=>{"Unstarted"==u&&(i(13,A=o("tournamentsThumbnail.scheduled")),i(15,_="StatusUnstarted")),"Running"==u&&(i(13,A=o("tournamentsThumbnail.ongoing")),i(15,_="StatusRunning")),"Closed"!=u&&"Closing"!=u||i(13,A=o("tournamentsThumbnail.finished")),"Closed"==u&&i(15,_="StatusClosed"),"Closing"==u&&i(15,_="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"))},H=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};at(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)}));return e.$$set=t=>{"session"in t&&i(21,n=t.session),"userid"in t&&i(22,s=t.userid),"title"in t&&i(1,a=t.title),"startdate"in t&&i(2,l=t.startdate),"status"in t&&i(0,u=t.status),"tourid"in t&&i(3,c=t.tourid),"thumbnail"in t&&i(4,h=t.thumbnail),"userenrolled"in t&&i(5,p=t.userenrolled),"scorecriteria"in t&&i(23,d=t.scorecriteria),"minbetcount"in t&&i(6,m=t.minbetcount),"showenrolled"in t&&i(7,f=t.showenrolled),"gameurl"in t&&i(8,g=t.gameurl),"lang"in t&&i(24,y=t.lang),"keepbrowsercontext"in t&&i(9,b=t.keepbrowsercontext),"clientstyling"in t&&i(25,v=t.clientstyling),"clientstylingurl"in t&&i(26,w=t.clientstylingurl),"translationurl"in t&&i(27,E=t.translationurl)},e.$$.update=()=>{if(33555456&e.$$.dirty[0]&&r&&v){let t=document.createElement("style");t.innerHTML=v,r.appendChild(t)}if(67109888&e.$$.dirty[0]&&r&&w){let t=new URL(w),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{r.appendChild(e)},1),setTimeout(()=>{},500)})}var t;134217728&e.$$.dirty[0]&&E&&fetch(E).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{An(t,e[t])})}).catch(t=>{console.log(t)}),2097152&e.$$.dirty[0]&&n&&(0<n.length&&"false"!=n?i(12,x=!0):i(12,x=!1)),1&e.$$.dirty[0]&&u&&P(),16777218&e.$$.dirty[0]&&y&&a&&(t=y,ot.set(t),C(),P(),l&&$()),4&e.$$.dirty[0]&&l&&$(),8388608&e.$$.dirty[0]&&d&&C()},[u,a,l,c,h,p,m,f,g,b,r,T,x,A,S,_,o,$,P,C,H,n,s,d,y,v,w,E,()=>H(),function(t){it[t?"unshift":"push"](()=>{r=t,i(10,r)})}]}function Ln(t,e){Qr(t,e)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends lt{constructor(t){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>",nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},kn,In,_,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),g()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),g()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),g()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),g()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),g()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),g()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),g()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),g()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),g()}});const On={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:"Finalizado",starting:"Iniciando en ",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 Mn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[10](r[0])+"",y=r[10](r[1])+"";function b(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?Dn:0<t[5]?Nn:Rn}let v=b(r),w=v(r);function E(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?jn:0<t[5]?Un:0<t[4]?zn:void 0}let T=E(r),x=T&&T(r);return{c(){n=k("div"),i=k("div"),o=L(g),s=O(),a=k("div"),l=L(y),u=O(),c=k("div"),h=k("div"),w.c(),p=O(),x&&x.c(),R(i,"class","StartDate"),R(i,"part","StartDate"),R(a,"class","EndDate"),R(a,"part","EndDate"),R(n,"class","TournamentDates"),R(n,"part","TournamentDates"),R(h,"class","ProgressBar"),R(h,"part","ProgressBar"),R(c,"class","ProgressBarWrapper"),R(c,"part","ProgressBarWrapper")},m(t,e){F(t,n,e),H(n,i),H(i,o),H(n,s),H(n,a),H(a,l),F(t,u,e),F(t,c,e),H(c,h),w.m(h,null),H(h,p),x&&x.m(h,null),m||(f=C(d=r[9].call(null,c)),m=!0)},p(t,e){1&e&&g!==(g=t[10](t[0])+"")&&N(o,g),2&e&&y!==(y=t[10](t[1])+"")&&N(l,y),v===(v=b(t))&&w?w.p(t,e):(w.d(1),(w=v(t))&&(w.c(),w.m(h,p))),T===(T=E(t))&&x?x.p(t,e):(x&&x.d(1),(x=T&&T(t))&&(x.c(),x.m(h,null)))},d(t){t&&I(n),t&&I(u),t&&I(c),w.d(),x&&x.d(),m=!1,f()}}}function Rn(t){let r;return{c(){R(r=k("div"),"class","ProgressBarFill"),R(r,"part","ProgressBarFill"),m(r,"width",t[7]()+"%")},m(t,e){F(t,r,e)},p(t,e){128&e&&m(r,"width",t[7]()+"%")},d(t){t&&I(r)}}}function Nn(t){let r;return{c(){R(r=k("div"),"class","ProgressBarFillStarting"),R(r,"part","ProgressBarFillStarting")},m(t,e){F(t,r,e)},p:v,d(t){t&&I(r)}}}function Dn(t){let r;return{c(){R(r=k("div"),"class","ProgressBarFillEnd"),R(r,"part","ProgressBarFillEnd")},m(t,e){F(t,r,e)},p:v,d(t){t&&I(r)}}}function zn(t){let r,n,i,o,s=t[8]("tournamentsDuration.left")+"";return{c(){r=k("div"),n=L(t[6]),i=O(),o=L(s),R(r,"class","Remaining"),R(r,"part","Remaining")},m(t,e){F(t,r,e),H(r,n),H(r,i),H(r,o)},p(t,e){64&e&&N(n,t[6]),256&e&&s!==(s=t[8]("tournamentsDuration.left")+"")&&N(o,s)},d(t){t&&I(r)}}}function Un(t){let r,n,i,o,s=t[8]("tournamentsDuration.starting")+"",a=t[11](t[5])+"";return{c(){r=k("div"),n=L(s),i=O(),o=L(a),R(r,"class","Remaining"),R(r,"part","Remaining")},m(t,e){F(t,r,e),H(r,n),H(r,i),H(r,o)},p(t,e){256&e&&s!==(s=t[8]("tournamentsDuration.starting")+"")&&N(n,s),32&e&&a!==(a=t[11](t[5])+"")&&N(o,a)},d(t){t&&I(r)}}}function jn(t){let r,n,i=t[8]("tournamentsDuration.finished")+"";return{c(){r=k("div"),n=L(i),R(r,"class","Finished"),R(r,"part","Finished")},m(t,e){F(t,r,e),H(r,n)},p(t,e){256&e&&i!==(i=t[8]("tournamentsDuration.finished")+"")&&N(n,i)},d(t){t&&I(r)}}}function Gn(r){let n,i=r[0]&&r[1]&&Mn(r);return{c(){n=k("div"),i&&i.c(),this.c=v,R(n,"class","TournamentDuration"),R(n,"part","TournamentDuration")},m(t,e){F(t,n,e),i&&i.m(n,null),r[16](n)},p(t,[e]){t[0]&&t[1]?i?i.p(t,e):((i=Mn(t)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(t){t&&I(n),i&&i.d(),r[16](null)}}}function Jn(t,e,r){let n,i;st(t,wn,t=>r(8,i=t));let o,{startdate:s=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:p=""}=e,d="",m="",f="";Object.keys(On).forEach(t=>{Ln(t,On[t])});const g=t=>new Date(t).getTime(),y=(t,e)=>(g(e)-g(t))/6e4,b=()=>{var t=new Date;r(4,d=y(t,a)),r(5,m=y(t,s)),r(6,f=v(d))},v=t=>{if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map(t=>{t=Math.floor(t);return t<10?"0"+t:""+t}).join(":")}return Math.ceil(t/1440)+" "+i("tournamentsDuration.days")};return at(()=>{const t=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(t)}),t.$$set=t=>{"startdate"in t&&r(0,s=t.startdate),"enddate"in t&&r(1,a=t.enddate),"status"in t&&r(2,l=t.status),"lang"in t&&r(12,u=t.lang),"clientstyling"in t&&r(13,c=t.clientstyling),"clientstylingurl"in t&&r(14,h=t.clientstylingurl),"translationurl"in t&&r(15,p=t.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&r(7,n=()=>{if(d<=0)return 100;var t=y(s,a),e=100/t;return Math.floor((t-d)*e)}),19&t.$$.dirty&&s&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(d),32768&t.$$.dirty&&p&&fetch(p).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Ln(t,e[t])})}).catch(t=>{console.log(t)}),8200&t.$$.dirty&&o&&c){let t=document.createElement("style");t.innerHTML=c,o.appendChild(t)}if(16392&t.$$.dirty&&o&&h){let t=new URL(h),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{o.appendChild(e)},1),setTimeout(()=>{},500)})}},[s,a,l,o,d,m,f,n,i,b,t=>{let e=new Date(t),r=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${r}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,p,function(t){it[t?"unshift":"push"](()=>{o=t,r(3,o)})}]}function Vn(t,e){Qr(t,e)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends lt{constructor(t){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>",nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Jn,Gn,_,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$$set({startdate:t}),g()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$$set({enddate:t}),g()}get status(){return this.$$.ctx[2]}set status(t){this.$$set({status:t}),g()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),g()}});const Wn={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:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function Xn(t,e,r){const n=t.slice();return n[13]=e[r],n[15]=r,n}function Kn(e){let n,i=e[1],o=[];for(let t=0;t<i.length;t+=1)o[t]=Zn(Xn(e,i,t));let s=null;return i.length||(s=Yn(e)),{c(){n=k("div");for(let t=0;t<o.length;t+=1)o[t].c();s&&s.c(),R(n,"class","Prizes"),R(n,"part","Prizes")},m(t,e){F(t,n,e);for(let t=0;t<o.length;t+=1)o[t].m(n,null);s&&s.m(n,null)},p(e,r){if(6&r){let t;for(i=e[1],t=0;t<i.length;t+=1){const s=Xn(e,i,t);o[t]?o[t].p(s,r):(o[t]=Zn(s),o[t].c(),o[t].m(n,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length,!i.length&&s?s.p(e,r):i.length?s&&(s.d(1),s=null):((s=Yn(e)).c(),s.m(n,null))}},d(t){t&&I(n),j(o,t),s&&s.d()}}}function Yn(t){let r,n,i=t[2]("tournamentsPrizes.noprizes")+"";return{c(){r=k("p"),n=L(i)},m(t,e){F(t,r,e),H(r,n)},p(t,e){4&e&&i!==(i=t[2]("tournamentsPrizes.noprizes")+"")&&N(n,i)},d(t){t&&I(r)}}}function Zn(t){let r,n,i,o,s,a,l,u,c,e,h,p=(1<t[13].count?t[13].rank+"~"+(t[13].rank+t[13].count-1):t[13].rank)+"",d=t[2]("tournamentsPrizes.place")+"",m=t[13].name+"";return{c(){r=k("div"),n=k("p"),i=k("span"),o=L(p),s=O(),a=L(d),l=L(": "),u=L(m),c=O(),R(i,"class","PrizeRank"),R(i,"part","PrizeRank"),R(n,"class","PrizeText"),R(n,"part","PrizeText"),R(r,"class",e="Prize Prize"+t[15]),R(r,"part",h="Prize Prize"+t[15])},m(t,e){F(t,r,e),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(t,e){2&e&&p!==(p=(1<t[13].count?t[13].rank+"~"+(t[13].rank+t[13].count-1):t[13].rank)+"")&&N(o,p),4&e&&d!==(d=t[2]("tournamentsPrizes.place")+"")&&N(a,d),2&e&&m!==(m=t[13].name+"")&&N(u,m)},d(t){t&&I(r)}}}function qn(r){let n,i,o,s,a,l,u,c=r[2]("tournamentsPrizes.prizes")+"",h=r[1]&&Kn(r);return{c(){n=k("div"),i=k("div"),(o=k("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=O(),a=k("p"),l=L(c),u=O(),h&&h.c(),this.c=v,R(o,"class","TournamentPrizesIconWrapper"),R(o,"part","TournamentPrizesIconWrapper"),R(a,"class","PrizesTitle"),R(a,"part","PrizesTitle"),R(i,"class","TournamentPrizesIconSection"),R(i,"part","TournamentPrizesIconSection"),R(n,"class","TournamentPrizes"),R(n,"part","TournamentPrizes")},m(t,e){F(t,n,e),H(n,i),H(i,o),H(i,s),H(i,a),H(a,l),H(n,u),h&&h.m(n,null),r[7](n)},p(t,[e]){4&e&&c!==(c=t[2]("tournamentsPrizes.prizes")+"")&&N(l,c),t[1]?h?h.p(t,e):((h=Kn(t)).c(),h.m(n,null)):h&&(h.d(1),h=null)},i:v,o:v,d(t){t&&I(n),h&&h.d(),r[7](null)}}}function Qn(t,e,r){let n;st(t,wn,t=>r(2,n=t));let i,o,{tourid:s=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e;Object.keys(Wn).forEach(t=>{Vn(t,Wn[t])});const c=t=>{t.data&&t.data.type=="TournamentPrizes_"+s&&r(1,o=t.data.prizes)};return at(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=t=>{"tourid"in t&&r(3,s=t.tourid),"clientstyling"in t&&r(4,a=t.clientstyling),"clientstylingurl"in t&&r(5,l=t.clientstylingurl),"translationurl"in t&&r(6,u=t.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a){let t=document.createElement("style");t.innerHTML=a,i.appendChild(t)}if(33&t.$$.dirty&&i&&l){let t=new URL(l),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{i.appendChild(e)},1),setTimeout(()=>{},500)})}64&t.$$.dirty&&u&&fetch(u).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Vn(t,e[t])})}).catch(t=>{console.log(t)})},[i,o,n,s,a,l,u,function(t){it[t?"unshift":"push"](()=>{i=t,r(0,i)})}]}function ti(t,e){Qr(t,e)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends lt{constructor(t){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>",nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Qn,qn,_,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),g()}});const ei={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function ri(t,e,r){const n=t.slice();return n[50]=e[r],n[52]=r,n}function ni(r){let i,n,o,s,a,l,u,c,h,p=r[1],d=[];for(let t=0;t<p.length;t+=1)d[t]=ii(ri(r,p,t));return{c(){(i=k("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=O(),o=k("main"),s=k("div");for(let t=0;t<d.length;t+=1)d[t].c();l=O(),(u=k("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>',R(i,"class","SliderNavButton"),R(i,"part","SliderNavButton"),J(i,"disabled",r[8]),R(s,"class","items"),R(s,"part","items"),m(s,"transform","translateX("+r[2]+"px)"),Q(()=>r[28].call(o)),R(u,"class","SliderNavButton"),R(u,"part","SliderNavButton"),J(u,"disabled",r[9])},m(t,e){F(t,i,e),F(t,n,e),F(t,o,e),H(o,s);for(let t=0;t<d.length;t+=1)d[t].m(s,null);r[27](s),a=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=k("iframe"),n=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,function(){if(void 0===$){$=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){$=!0}}return $}());let i;return n?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=M(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{i=M(r.contentWindow,"resize",e)}),H(t,r),()=>{(n||i&&r.contentWindow)&&i(),I(r)}}(o,r[28].bind(o)),F(t,l,e),F(t,u,e),c||(h=[M(i,"click",r[23]),M(u,"click",r[29])],c=!0)},p(e,r){if(256&r[0]&&J(i,"disabled",e[8]),23650&r[0]){let t;for(p=e[1],t=0;t<p.length;t+=1){var n=ri(e,p,t);d[t]?d[t].p(n,r):(d[t]=ii(n),d[t].c(),d[t].m(s,null))}for(;t<d.length;t+=1)d[t].d(1);d.length=p.length}4&r[0]&&m(s,"transform","translateX("+e[2]+"px)"),512&r[0]&&J(u,"disabled",e[9])},d(t){t&&I(i),t&&I(n),t&&I(o),j(d,t),r[27](null),a(),t&&I(l),t&&I(u),c=!1,P(h)}}}function ii(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[10]("gamesSlider.playNow")+"";function y(){return r[24](r[50])}function b(){return r[25](r[52])}return{c(){n=k("div"),i=k("span"),o=L(g),l=O(),u=k("img"),d=O(),R(i,"class",s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),R(i,"part",a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),z(u.src,c=r[50].thumbnail)||R(u,"src",c),R(u,"width","132px"),R(u,"height","100px"),R(u,"alt",h=r[50].name),R(u,"title",p=r[50].name),R(n,"class","item"),R(n,"part","item")},m(t,e){F(t,n,e),H(n,i),H(i,o),H(n,l),H(n,u),H(n,d),m||(f=[M(n,"click",y),M(n,"mouseenter",b),M(n,"mouseleave",r[26])],m=!0)},p(t,e){r=t,1024&e[0]&&g!==(g=r[10]("gamesSlider.playNow")+"")&&N(o,g),96&e[0]&&s!==(s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&R(i,"class",s),96&e[0]&&a!==(a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&R(i,"part",a),2&e[0]&&!z(u.src,c=r[50].thumbnail)&&R(u,"src",c),2&e[0]&&h!==(h=r[50].name)&&R(u,"alt",h),2&e[0]&&p!==(p=r[50].name)&&R(u,"title",p)},d(t){t&&I(n),m=!1,P(f)}}}function oi(r){let n,i,o=r[1]&&ni(r);return{c(){n=k("div"),i=k("div"),o&&o.c(),this.c=v,R(i,"class","TournamentsGamesSlider"),R(i,"part","TournamentsGamesSlider")},m(t,e){F(t,n,e),H(n,i),o&&o.m(i,null),r[30](i),r[31](n)},p(t,e){t[1]?o?o.p(t,e):((o=ni(t)).c(),o.m(i,null)):o&&(o.d(1),o=null)},i:v,o:v,d(t){t&&I(n),o&&o.d(),r[30](null),r[31](null)}}}function si(t,e,r){let n,i,o;st(t,wn,t=>r(10,o=t));let s,a,l,u,c,h,{tournamenturl:p=""}=e,{scrollby:d="3"}=e,{pagfactor:m="175"}=e,{lang:f=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],E=0,T=null,x=null,A=!1,S=0;Object.keys(ei).forEach(t=>{ti(t,ei[t])});const _=t=>{r(5,A=!0),r(6,u=t)},B=()=>{r(5,A=!1),r(6,u=-1)},$=t=>{t=(t.touches||t.originalEvent.touches)[0];T=t.clientX,x=t.clientY},P=t=>{var e;T&&x&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=T-e,t=x-t,Math.abs(e)>Math.abs(t)&&C(0<e?1:-1),T=null,x=null)},C=t=>{0<t&&!i?(r(2,E-=a),r(2,E=E<S?S:E)):t<0&&!n&&(r(2,E+=a),r(2,E=0<E?0:E))},H=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name},window.location.href)};return at(()=>(a=parseInt(d,10)*parseInt(m,10),()=>{l.removeEventListener("touchstart",$),l.removeEventListener("touchmove",P)})),t.$$set=t=>{"tournamenturl"in t&&r(17,p=t.tournamenturl),"scrollby"in t&&r(15,d=t.scrollby),"pagfactor"in t&&r(16,m=t.pagfactor),"lang"in t&&r(18,f=t.lang),"translationurl"in t&&r(19,g=t.translationurl),"clientstyling"in t&&r(20,y=t.clientstyling),"clientstylingurl"in t&&r(21,b=t.clientstylingurl)},t.$$.update=()=>{if(4&t.$$.dirty[0]&&r(8,n=0===E),4194308&t.$$.dirty[0]&&r(9,i=E<=S),16&t.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(d)+1)*m)&&r(15,d=Math.ceil(h/m).toString()),131072&t.$$.dirty[0]&&p){let t=new URL(p),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${E})`),t.searchParams.append("fields","games(id,name,thumbnail)"),t.searchParams.append("language",f),t.searchParams.append("platform",En(v)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{r(1,w=t.item.games.items),t.item.games.total})}if(8&t.$$.dirty[0]&&l&&(l.addEventListener("touchstart",$,{passive:!0}),l.addEventListener("touchmove",P,{passive:!0})),524288&t.$$.dirty[0]&&g&&fetch(g).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{ti(t,e[t])})}).catch(t=>{console.log(t)}),2&t.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,S=-1*(c.scrollWidth-c.clientWidth)),r(16,m=new String(c.scrollWidth/w.length)),a=parseInt(d,10)*parseFloat(m,2).toFixed(2)},1e3),1048577&t.$$.dirty[0]&&y&&s){let t=document.createElement("style");t.innerHTML=y,s.appendChild(t)}if(2097153&t.$$.dirty[0]&&b&&s){let t=new URL(b),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{s.appendChild(e)},1),setTimeout(()=>{},500)})}},r(2,E=0),[s,w,E,l,h,A,u,c,n,i,o,_,B,C,H,d,m,p,f,g,y,b,S,()=>C(-1),t=>H(t),t=>_(t),()=>B(),function(t){it[t?"unshift":"push"](()=>{c=t,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>C(1),function(t){it[t?"unshift":"push"](()=>{l=t,r(3,l)})},function(t){it[t?"unshift":"push"](()=>{s=t,r(0,s)})}]}function ai(t){let r,n,i,o,s,a,l,u,c,h=t[13]&&ui(t);function p(t){return t[13]?"Closed"!=t[22]&&"Closing"!=t[22]?pi:"true"==t[3]?hi:void 0:di}let d=p(t),m=d&&d(t),f=(t[16]||t[18])&&wi(t),g="true"==t[4]&&Ei(t);return{c(){r=k("div"),n=k("casino-tournaments-thumbnail"),i=O(),h&&h.c(),o=O(),s=k("div"),m&&m.c(),a=O(),f&&f.c(),l=O(),g&&g.c(),y(n,"session",t[0]),y(n,"userid",t[1]),y(n,"title",t[19]),y(n,"status",t[22]),y(n,"startdate",t[20]),y(n,"tourid",t[23]),y(n,"scorecriteria",t[26]),y(n,"minbetcount",t[27]),y(n,"thumbnail",t[24]),y(n,"userenrolled",t[25]),y(n,"showenrolled",t[5]),y(n,"gameurl",t[29]),y(n,"clientstyling",t[10]),y(n,"clientstylingurl",t[11]),y(n,"lang",t[8]),y(n,"keepbrowsercontext",t[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),R(s,"class","TournamentButtons"),R(s,"part","TournamentButtons"),R(r,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")),R(r,"part",c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))},m(t,e){F(t,r,e),H(r,n),H(r,i),h&&h.m(r,null),H(r,o),H(r,s),m&&m.m(s,null),H(r,a),f&&f.m(r,null),H(r,l),g&&g.m(r,null)},p(t,e){1&e[0]&&y(n,"session",t[0]),2&e[0]&&y(n,"userid",t[1]),524288&e[0]&&y(n,"title",t[19]),4194304&e[0]&&y(n,"status",t[22]),1048576&e[0]&&y(n,"startdate",t[20]),8388608&e[0]&&y(n,"tourid",t[23]),67108864&e[0]&&y(n,"scorecriteria",t[26]),134217728&e[0]&&y(n,"minbetcount",t[27]),16777216&e[0]&&y(n,"thumbnail",t[24]),33554432&e[0]&&y(n,"userenrolled",t[25]),32&e[0]&&y(n,"showenrolled",t[5]),536870912&e[0]&&y(n,"gameurl",t[29]),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),256&e[0]&&y(n,"lang",t[8]),512&e[0]&&y(n,"keepbrowsercontext",t[9]),t[13]?h?h.p(t,e):((h=ui(t)).c(),h.m(r,o)):h&&(h.d(1),h=null),d===(d=p(t))&&m?m.p(t,e):(m&&m.d(1),(m=d&&d(t))&&(m.c(),m.m(s,null))),t[16]||t[18]?f?f.p(t,e):((f=wi(t)).c(),f.m(r,l)):f&&(f.d(1),f=null),"true"==t[4]?g?g.p(t,e):((g=Ei(t)).c(),g.m(r,null)):g&&(g.d(1),g=null),1073742016&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"class",u),1073742016&e[0]&&c!==(c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"part",c)},d(t){t&&I(r),h&&h.d(),m&&m.d(),f&&f.d(),g&&g.d()}}}function li(t){let r,n,i,o;return{c(){r=k("div"),(n=k("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>',R(n,"class","ph-item"),R(n,"part","ph-item"),R(r,"class",i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")),R(r,"part",o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))},m(t,e){F(t,r,e),H(r,n)},p(t,e){1073742016&e[0]&&i!==(i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"class",i),1073742016&e[0]&&o!==(o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"part",o)},d(t){t&&I(r)}}}function ui(t){let r,n,i=t[23]&&ci(t);return{c(){i&&i.c(),r=O(),y(n=k("casino-tournaments-thumbnail-duration"),"clientstyling",t[10]),y(n,"clientstylingurl",t[11]),y(n,"status",t[22]),y(n,"startdate",t[20]),y(n,"lang",t[8]),y(n,"enddate",t[21]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(t,e){i&&i.m(t,e),F(t,r,e),F(t,n,e)},p(t,e){t[23]?i?i.p(t,e):((i=ci(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),4194304&e[0]&&y(n,"status",t[22]),1048576&e[0]&&y(n,"startdate",t[20]),256&e[0]&&y(n,"lang",t[8]),2097152&e[0]&&y(n,"enddate",t[21])},d(t){i&&i.d(t),t&&I(r),t&&I(n)}}}function ci(r){let n,i,o,s;return{c(){y(n=k("casino-tournaments-thumbnail-prizes"),"tourid",r[23]),y(n,"clientstyling",r[10]),y(n,"clientstylingurl",r[11]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(t,e){F(t,n,e),o||(s=C(i=r[36].call(null,n,r[23])),o=!0)},p(t,e){8388608&e[0]&&y(n,"tourid",t[23]),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),i&&S(i.update)&&8388608&e[0]&&i.update.call(null,t[23])},d(t){t&&I(n),o=!1,s()}}}function hi(r){let n,i,o,s,a=r[31]("tournamentsThController.details")+"";return{c(){n=k("button"),i=L(a),R(n,"class","DetailsLargeButton"),R(n,"part","DetailsLargeButton")},m(t,e){F(t,n,e),H(n,i),o||(s=M(n,"click",r[50]),o=!0)},p(t,e){1&e[1]&&a!==(a=t[31]("tournamentsThController.details")+"")&&N(i,a)},d(t){t&&I(n),o=!1,s()}}}function pi(t){let r,n,i="true"==t[3]&&mi(t);function o(t){return 1==t[25]?gi:fi}let s=o(t),a=s(t);return{c(){i&&i.c(),r=O(),a.c(),n=G()},m(t,e){i&&i.m(t,e),F(t,r,e),a.m(t,e),F(t,n,e)},p(t,e){"true"==t[3]?i?i.p(t,e):((i=mi(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),s===(s=o(t))&&a?a.p(t,e):(a.d(1),(a=s(t))&&(a.c(),a.m(n.parentNode,n)))},d(t){i&&i.d(t),t&&I(r),a.d(t),t&&I(n)}}}function di(r){let n,i,o,s,a,l,u,c=r[31]("tournamentsThController.login")+"",h=r[31]("tournamentsThController.register")+"";return{c(){n=k("button"),i=L(c),o=O(),s=k("button"),a=L(h),R(n,"class","LoginButton"),R(n,"part","LoginButton"),R(s,"class","RegisterButton"),R(s,"part","RegisterButton")},m(t,e){F(t,n,e),H(n,i),F(t,o,e),F(t,s,e),H(s,a),l||(u=[M(n,"click",r[46]),M(s,"click",r[47])],l=!0)},p(t,e){1&e[1]&&c!==(c=t[31]("tournamentsThController.login")+"")&&N(i,c),1&e[1]&&h!==(h=t[31]("tournamentsThController.register")+"")&&N(a,h)},d(t){t&&I(n),t&&I(o),t&&I(s),l=!1,P(u)}}}function mi(r){let n,i,o,s,a=r[31]("tournamentsThController.details")+"";return{c(){n=k("button"),i=L(a),R(n,"class","DetailsButton"),R(n,"part","DetailsButton")},m(t,e){F(t,n,e),H(n,i),o||(s=M(n,"click",r[48]),o=!0)},p(t,e){1&e[1]&&a!==(a=t[31]("tournamentsThController.details")+"")&&N(i,a)},d(t){t&&I(n),o=!1,s()}}}function fi(r){let n,i,o,s,a;function l(t){return 1==t[15]?bi:yi}let u=l(r),c=u(r);return{c(){n=k("button"),c.c(),R(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),R(n,"part",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[16]},m(t,e){F(t,n,e),c.m(n,null),s||(a=M(n,"click",r[49]),s=!0)},p(t,e){u===(u=l(t))&&c?c.p(t,e):(c.d(1),(c=u(t))&&(c.c(),c.m(n,null))),128&e[0]&&i!==(i="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&R(n,"class",i),128&e[0]&&o!==(o="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&R(n,"part",o),65536&e[0]&&(n.disabled=t[16])},d(t){t&&I(n),c.d(),s=!1,a()}}}function gi(t){let r,n="true"==t[3]&&vi(t);return{c(){n&&n.c(),r=G()},m(t,e){n&&n.m(t,e),F(t,r,e)},p(t,e){"true"==t[3]?n?n.p(t,e):((n=vi(t)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&I(r)}}}function yi(t){let r,n,i,o,s,a,l,u,c,h=t[31]("tournamentsThController.join")+"";return{c(){r=k("span"),n=L(h),i=O(),o=e("svg"),s=e("defs"),a=e("style"),l=L(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e("g"),c=e("path"),R(r,"part","JoinButtonSpan"),R(c,"class","a"),R(c,"part","a JoinButtonSvgA"),R(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),R(c,"transform","translate(26 26) rotate(180)"),R(u,"transform","translate(26 26) rotate(180)"),R(o,"part","JoinButtonSvg"),R(o,"xmlns","http://www.w3.org/2000/svg"),R(o,"width","26"),R(o,"height","26"),R(o,"viewBox","0 0 26 26")},m(t,e){F(t,r,e),H(r,n),F(t,i,e),F(t,o,e),H(o,s),H(s,a),H(a,l),H(o,u),H(u,c)},p(t,e){1&e[1]&&h!==(h=t[31]("tournamentsThController.join")+"")&&N(n,h)},d(t){t&&I(r),t&&I(i),t&&I(o)}}}function bi(t){let r,n;return{c(){r=e("svg"),R(n=e("circle"),"cx","20"),R(n,"cy","20"),R(n,"r","18"),R(r,"class","spinner"),R(r,"part","spinner")},m(t,e){F(t,r,e),H(r,n)},p:v,d(t){t&&I(r)}}}function vi(t){let r,n,i=t[31]("tournamentsThController.enrolled")+"";return{c(){r=k("button"),n=L(i),R(r,"class","EnrolledButton"),R(r,"part","EnrolledButton"),r.disabled=!0},m(t,e){F(t,r,e),H(r,n)},p(t,e){1&e[1]&&i!==(i=t[31]("tournamentsThController.enrolled")+"")&&N(n,i)},d(t){t&&I(r)}}}function wi(t){let r,n,i,o,s=t[31]("tournamentsThController.joinerror")+"";return{c(){r=k("span"),n=L(s),i=O(),o=L(t[17]),R(r,"class","ErrorText"),R(r,"part","ErrorText")},m(t,e){F(t,r,e),H(r,n),H(r,i),H(r,o)},p(t,e){1&e[1]&&s!==(s=t[31]("tournamentsThController.joinerror")+"")&&N(n,s),131072&e[0]&&N(o,t[17])},d(t){t&&I(r)}}}function Ei(t){let r;return{c(){y(r=k("casino-tournaments-thumbnail-games-slider"),"clientstyling",t[10]),y(r,"clientstylingurl",t[11]),y(r,"tournamenturl",t[2]),y(r,"lang",t[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(t,e){F(t,r,e)},p(t,e){1024&e[0]&&y(r,"clientstyling",t[10]),2048&e[0]&&y(r,"clientstylingurl",t[11]),4&e[0]&&y(r,"tournamenturl",t[2]),256&e[0]&&y(r,"lang",t[8])},d(t){t&&I(r)}}}function Ti(r){let n;function i(t){return t[14]?li:t[19]?ai:void 0}let o=i(r),s=o&&o(r);return{c(){n=k("div"),s&&s.c(),this.c=v},m(t,e){F(t,n,e),s&&s.m(n,null),r[51](n)},p(t,e){o===(o=i(t))&&s?s.p(t,e):(s&&s.d(1),(s=o&&o(t))&&(s.c(),s.m(n,null)))},i:v,o:v,d(t){t&&I(n),s&&s.d(),r[51](null)}}}function xi(t,e,u){let r;st(t,wn,t=>u(31,r=t));let n,i,o,s,a,c,l,h,p,O,d,{session:m=""}=e,{userid:M=""}=e,{tournamenturl:f=""}=e,g=e["touridx"],{endpoint:y=""}=e,{showdetails:R=""}=e,{showslider:N=""}=e,{showenrolled:D=""}=e,{maxwidth:z=""}=e,{fullsize:U=""}=e,{lang:b=""}=e,{loginevent:v=""}=e,{registerevent:w=""}=e,{loginurl:E=""}=e,{registerurl:T=""}=e,{currency:x=""}=e,{keepbrowsercontext:j="false"}=e,{clientstyling:A=""}=e,{clientstylingurl:S=""}=e,{translationurl:_=""}=e,B=!1,$="",P=!0,G=window.navigator.userAgent,C=!1,H=!1,J="There was an error while trying to join the tournament",F=!1,V=[],I=[],W="#",k=!1;var X,K;({withLocale:X,translations:K}={withLocale:"en",translations:{}}),ot.subscribe(t=>{null==t&&(Zr.set(K),ot.set(X))}),Object.keys(xn).forEach(t=>{Tn(t,xn[t])});const Y=t=>{q(t),nt(t),rt(this,c)},Z=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(13,B=!0),$=r.data.session),"UpdateTournamentView"==r.data.type){var t=r.data.tournamentData;if(c&&c!=t.id)return;Y(t)}if(r.data&&r.data.type=="UpdateSingleTournament_"+g){let t=r.data.tournamentData,e=g<4?100*g:300*Math.random()+300;u(30,k=1==g),setTimeout(()=>{u(30,k=!0),u(23,c=t.id),Y(t)},e),setTimeout(()=>{u(30,k=!1)},200+e)}},q=t=>{t.state!=a&&(u(22,a=t.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),E&&(window.location=E)},tt=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),T&&(window.location=T)},L=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)},et=async(e,t)=>{u(16,H=!1),u(18,F=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),u(15,C=!0);let r=new URL(y+"/bonus/claim"),n=new Headers,i={},o=(r.searchParams.append("language",b),r.searchParams.append("platform",En(G)),n.append("Content-Type","application/json"),n.append("X-SessionID",$),t&&1<=t.length&&(i={language:b,bonusCode:t[0].code,currency:x}),{method:"PUT",headers:n,body:JSON.stringify(i)});const s=()=>{u(15,C=!1),u(25,h=!0)},a=t=>{u(15,C=!1),t&&u(17,J=t),u(16,H=!0)},l=await(async()=>{let t;try{t=await(t=await fetch(r,o)).json()}catch(t){a()}return t})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let t;null!=(e=null==(t=await(t=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":m}})).json())?void 0:t.item)&&e.playerEnrolled?s():(a(l.errorMessage),u(18,F=!0),u(16,H=!1))}else a(l.errorMessage)},rt=(t,e)=>{window.postMessage({type:"TournamentPrizes_"+e,prizes:V},window.location.href)},nt=t=>{t&&(u(19,i=t.nameOrTitle||""),u(20,o=t.startTime),u(21,s=t.endTime),u(22,a=t.state),u(23,c=t.id),u(24,l=t.thumbnail),u(25,h=t.playerEnrolled||!1),u(26,p=t.scoreCriteria),u(27,O=t.minBetCount),V=t.prizes,u(28,I=t.wallets||[]),u(29,W=t.termsUrl||"#"))};return at(()=>(u(14,P=!1),window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)})),t.$$set=t=>{"session"in t&&u(0,m=t.session),"userid"in t&&u(1,M=t.userid),"tournamenturl"in t&&u(2,f=t.tournamenturl),"touridx"in t&&u(37,g=t.touridx),"endpoint"in t&&u(38,y=t.endpoint),"showdetails"in t&&u(3,R=t.showdetails),"showslider"in t&&u(4,N=t.showslider),"showenrolled"in t&&u(5,D=t.showenrolled),"maxwidth"in t&&u(6,z=t.maxwidth),"fullsize"in t&&u(7,U=t.fullsize),"lang"in t&&u(8,b=t.lang),"loginevent"in t&&u(39,v=t.loginevent),"registerevent"in t&&u(40,w=t.registerevent),"loginurl"in t&&u(41,E=t.loginurl),"registerurl"in t&&u(42,T=t.registerurl),"currency"in t&&u(43,x=t.currency),"keepbrowsercontext"in t&&u(9,j=t.keepbrowsercontext),"clientstyling"in t&&u(10,A=t.clientstyling),"clientstylingurl"in t&&u(11,S=t.clientstylingurl),"translationurl"in t&&u(44,_=t.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&n&&A){let t=document.createElement("style");t.innerHTML=A,n.appendChild(t)}if(6144&t.$$.dirty[0]&&n&&S){let t=new URL(S),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{n.appendChild(e)},1),setTimeout(()=>{},500)})}if(8192&t.$$.dirty[1]&&_&&fetch(_).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Tn(t,e[t])})}).catch(t=>{console.log(t)}),1&t.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?($=m,u(13,B=!0)):u(13,B=!1)),260&t.$$.dirty[0]&&u(45,d=f&&b),16384&t.$$.dirty[1]&&d){u(14,P=!0);{var r=f;u(14,P=!0);let t=new URL(r),e=new Headers;t.searchParams.append("language",b),t.searchParams.append("platform",En(G)),B&&e.append("X-SessionID",$),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{u(14,P=!1),nt(t.item)})}}},[m,M,f,R,N,D,z,U,b,j,A,S,n,B,P,C,H,J,F,i,o,s,a,c,l,h,p,O,I,W,k,r,Q,tt,L,et,rt,g,y,v,w,E,T,x,_,d,()=>Q(),()=>tt(),()=>L(c),()=>et(c,I),()=>L(c),function(t){it[t?"unshift":"push"](()=>{n=t,u(12,n)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends lt{constructor(t){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>",nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},si,oi,_,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(t){this.$$set({tournamenturl:t}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(t){this.$$set({scrollby:t}),g()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(t){this.$$set({pagfactor:t}),g()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),g()}get translationurl(){return this.$$.ctx[19]}set translationurl(t){this.$$set({translationurl:t}),g()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}});class Ai extends lt{constructor(t){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>',nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},xi,Ti,_,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},null,[-1,-1,-1]),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.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","translationurl"]}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),g()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),g()}get touridx(){return this.$$.ctx[37]}set touridx(t){this.$$set({touridx:t}),g()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),g()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),g()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),g()}get loginevent(){return this.$$.ctx[39]}set loginevent(t){this.$$set({loginevent:t}),g()}get registerevent(){return this.$$.ctx[40]}set registerevent(t){this.$$set({registerevent:t}),g()}get loginurl(){return this.$$.ctx[41]}set loginurl(t){this.$$set({loginurl:t}),g()}get registerurl(){return this.$$.ctx[42]}set registerurl(t){this.$$set({registerurl:t}),g()}get currency(){return this.$$.ctx[43]}set currency(t){this.$$set({currency:t}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),g()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[44]}set translationurl(t){this.$$set({translationurl:t}),g()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",Ai),Ai});
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).app=e()}(this,function(){"use strict";function v(){}function x(t){return t()}function A(){return Object.create(null)}function P(t){t.forEach(x)}function S(t){return"function"==typeof t}function _(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}let B,$,D;function z(t,e){return(B=B||document.createElement("a")).href=e,t===B.href}function U(t,...e){if(null==t)return v;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function st(t,e,r){t.$$.on_destroy.push(U(e,r))}function C(t){return t&&S(t.destroy)?t.destroy:v}function H(t,e){t.appendChild(e)}function F(t,e,r){t.insertBefore(e,r||null)}function I(t){t.parentNode.removeChild(t)}function j(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function k(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function L(t){return document.createTextNode(t)}function O(){return L(" ")}function G(){return L("")}function M(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function R(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function y(t,e,r){e in t?t[e]="boolean"==typeof t[e]&&""===r||r:R(t,e,r)}function N(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}function m(t,e,r,n){null===r?t.style.removeProperty(e):t.style.setProperty(e,r,n?"important":"")}function J(t,e,r){t.classList[r?"add":"remove"](e)}function V(t){const e={};for(const r of t)e[r.name]=r.value;return e}function W(t){D=t}function at(t){!function(){if(D)return D;throw new Error("Function called outside component initialization")}().$$.on_mount.push(t)}const X=[],it=[],K=[],Y=[],Z=Promise.resolve();let q=!1;function Q(t){K.push(t)}const tt=new Set;let et=0;function g(){const t=D;do{for(;et<X.length;){const t=X[et];et++,W(t),e=r=void 0;var e,r=t.$$;null!==r.fragment&&(r.update(),P(r.before_update),e=r.dirty,r.dirty=[-1],r.fragment&&r.fragment.p(r.ctx,e),r.after_update.forEach(Q))}for(W(null),X.length=0,et=0;it.length;)it.pop()();for(let t=0;t<K.length;t+=1){const n=K[t];tt.has(n)||(tt.add(n),n())}}while(K.length=0,X.length);for(;Y.length;)Y.pop()();q=!1,tt.clear(),W(t)}const rt=new Set;function nt(n,t,e,r,i,o,s,a=[-1]){var l=D;W(n);const u=n.$$={fragment:null,ctx:null,props:o,update:v,not_equal:i,bound:A(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(l?l.$$.context:[])),callbacks:A(),dirty:a,skip_bound:!1,root:t.target||l.$$.root};s&&s(u.root);let c=!1;if(u.ctx=e?e(n,t.props||{},(t,e,...r)=>{var r=r.length?r[0]:e;return u.ctx&&i(u.ctx[t],u.ctx[t]=r)&&(!u.skip_bound&&u.bound[t]&&u.bound[t](r),c&&(r=t,-1===(t=n).$$.dirty[0]&&(X.push(t),q||(q=!0,Z.then(g)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],u.update(),c=!0,P(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){o=t.target;const v=Array.from(o.childNodes);u.fragment&&u.fragment.l(v),v.forEach(I)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(rt.delete(a),a.i(void 0));{var h=n;s=t.target;e=t.anchor;r=t.customElement;const{fragment:p,on_mount:d,on_destroy:m,after_update:f}=h.$$;p&&p.m(s,e),r||Q(()=>{var t=d.map(x).filter(S);m?m.push(...t):P(t),h.$$.on_mount=[]}),f.forEach(Q)}g()}W(l)}let lt;"function"==typeof HTMLElement&&(lt=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const t=this.$$["on_mount"];this.$$.on_disconnect=t.map(x).filter(S);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){P(this.$$.on_disconnect)}$destroy(){{var t;const e=this.$$;null!==e.fragment&&(P(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}this.$destroy=v}$on(t,e){const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(e),()=>{var t=r.indexOf(e);-1!==t&&r.splice(t,1)}}$set(t){this.$$set&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}});var ut,ct,a="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==a&&a,ht="URLSearchParams"in a,pt="Symbol"in a&&"iterator"in Symbol,dt="FileReader"in a&&"Blob"in a&&function(){try{return new Blob,!0}catch(t){return!1}}(),mt="FormData"in a,ft="ArrayBuffer"in a;function gt(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function yt(t){return t="string"!=typeof t?String(t):t}function bt(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return pt&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach(function(t,e){this.append(e,t)},this):Array.isArray(e)?e.forEach(function(t){this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function vt(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function wt(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function Et(t){var e=new FileReader,r=wt(e);return e.readAsArrayBuffer(t),r}function Tt(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function xt(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:dt&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:mt&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:ht&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():ft&&dt&&(e=t)&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Tt(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):ft&&(ArrayBuffer.prototype.isPrototypeOf(t)||ct(t))?this._bodyArrayBuffer=Tt(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):ht&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},dt&&(this.blob=function(){var t=vt(this);if(t)return t;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?vt(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(Et)}),this.text=function(){var t,e,r=vt(this);if(r)return r;if(this._bodyBlob)return r=this._bodyBlob,e=wt(t=new FileReader),t.readAsText(r),e;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),n=0;n<e.length;n++)r[n]=String.fromCharCode(e[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},mt&&(this.formData=function(){return this.text().then(St)}),this.json=function(){return this.text().then(JSON.parse)},this}ft&&(ut=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ct=ArrayBuffer.isView||function(t){return t&&-1<ut.indexOf(Object.prototype.toString.call(t))}),l.prototype.append=function(t,e){t=gt(t),e=yt(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},l.prototype.delete=function(t){delete this.map[gt(t)]},l.prototype.get=function(t){return t=gt(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(gt(t))},l.prototype.set=function(t,e){this.map[gt(t)]=yt(e)},l.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},l.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),bt(r)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),bt(e)},l.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),bt(r)},pt&&(l.prototype[Symbol.iterator]=l.prototype.entries);var At=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function u(t,e){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=(e=e||{}).body;if(t instanceof u){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,n||null==t._bodyInit||(n=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(r=(t=e.method||this.method||"GET").toUpperCase(),-1<At.indexOf(r)?r:t),this.mode=e.mode||this.mode||null,this.signal=e.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"!==e.cache&&"no-cache"!==e.cache||((r=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(r,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function St(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(e=(t=t.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function c(t,e){if(!(this instanceof c))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e=e||{},this.type="default",this.status=void 0===e.status?200:e.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}u.prototype.clone=function(){return new u(this,{body:this._bodyInit})},xt.call(u.prototype),xt.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 t=new c(null,{status:0,statusText:""});return t.type="error",t};var _t=[301,302,303,307,308],Bt=(c.redirect=function(t,e){if(-1===_t.indexOf(e))throw new RangeError("Invalid status code");return new c(null,{status:e,headers:{location:t}})},a.DOMException);try{new Bt}catch(v){(Bt=function(t,e){this.message=t,this.name=e;e=Error(t);this.stack=e.stack}).prototype=Object.create(Error.prototype),Bt.prototype.constructor=Bt}function $t(n,s){return new Promise(function(i,t){var e=new u(n,s);if(e.signal&&e.signal.aborted)return t(new Bt("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var t,r,e={status:o.status,statusText:o.statusText,headers:(t=o.getAllResponseHeaders()||"",r=new l,t.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t}).forEach(function(t){var t=t.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)},n=(e.url="responseURL"in o?o.responseURL:e.headers.get("X-Request-URL"),"response"in o?o.response:o.responseText);setTimeout(function(){i(new c(n,e))},0)},o.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){t(new Bt("Aborted","AbortError"))},0)},o.open(e.method,function(e){try{return""===e&&a.location.href?a.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?o.withCredentials=!0:"omit"===e.credentials&&(o.withCredentials=!1),"responseType"in o&&(dt?o.responseType="blob":ft&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof l?e.headers.forEach(function(t,e){o.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){o.setRequestHeader(t,yt(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&e.signal.removeEventListener("abort",r)}),o.send(void 0===e._bodyInit?null:e._bodyInit)})}$t.polyfill=!0,a.fetch||(a.fetch=$t,a.Headers=l,a.Request=u,a.Response=c),self.fetch.bind(self);var Pt=function(t,e){return(Pt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Ct(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}Pt(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function Ht(t){var e="function"==typeof Symbol&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return{value:(t=t&&n>=t.length?void 0:t)&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ft(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,i,o=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=o.next()).done;)s.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function It(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function h(t){return"function"==typeof t}function kt(t){t=t(function(t){Error.call(t),t.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t}var Lt=kt(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function Ot(t,e){t&&0<=(e=t.indexOf(e))&&t.splice(e,1)}r.prototype.unsubscribe=function(){var t,e,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=Ht(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(e){t={error:e}}finally{try{a&&!a.done&&(e=s.return)&&e.call(s)}finally{if(t)throw t.error}}else o.remove(this);o=this.initialTeardown;if(h(o))try{o()}catch(t){i=t instanceof Lt?t.errors:[t]}o=this._finalizers;if(o){this._finalizers=null;try{for(var l=Ht(o),u=l.next();!u.done;u=l.next()){var c=u.value;try{Dt(c)}catch(t){i=null!=i?i:[],t instanceof Lt?i=It(It([],Ft(i)),Ft(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new Lt(i)}},r.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)Dt(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(e=this._finalizers)?e:[]).push(t)}},r.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},r.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},r.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Ot(e,t)},r.prototype.remove=function(t){var e=this._finalizers;e&&Ot(e,t),t instanceof r&&t._removeParent(this)},r.EMPTY=((n=new r).closed=!0,n);var Mt=r,Rt=Mt.EMPTY;function r(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}function Nt(t){return t instanceof Mt||t&&"closed"in t&&h(t.remove)&&h(t.add)&&h(t.unsubscribe)}function Dt(t){h(t)?t():t.unsubscribe()}var zt=void 0,Ut=!1,jt=!1,Gt={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var i=Gt.delegate;return null!=i&&i.setTimeout?i.setTimeout.apply(i,It([t,e],Ft(r))):setTimeout.apply(void 0,It([t,e],Ft(r)))},clearTimeout:function(t){var e=Gt.delegate;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Jt(){}var Vt=null;function Wt(t){if(Ut){var e=!Vt;if(e&&(Vt={errorThrown:!1,error:null}),t(),e){var e=Vt,r=e.errorThrown,e=e.error;if(Vt=null,r)throw e}}else t()}Ct(t,Xt=Mt),t.create=function(t,e,r){return new te(t,e,r)},t.prototype.next=function(t){this.isStopped||this._next(t)},t.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Xt.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(t){this.destination.next(t)},t.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}};var Xt,Kt=t,Yt=Function.prototype.bind;function t(t){var e=Xt.call(this)||this;return e.isStopped=!1,t?Nt(e.destination=t)&&t.add(e):e.destination=ie,e}function Zt(t,e){return Yt.call(t,e)}re.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(t){ne(t)}},re.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(t){ne(t)}else ne(t)},re.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){ne(t)}};var qt,Qt=re,te=(Ct(ee,qt=Kt),ee);function ee(t,e,r){var n=qt.call(this)||this,r=h(t)||!t?{next:null!=t?t:void 0,error:null!=e?e:void 0,complete:null!=r?r:void 0}:n&&jt?((e=Object.create(t)).unsubscribe=function(){return n.unsubscribe()},{next:t.next&&Zt(t.next,e),error:t.error&&Zt(t.error,e),complete:t.complete&&Zt(t.complete,e)}):t;return n.destination=new Qt(r),n}function re(t){this.partialObserver=t}function ne(t){var e=t;Gt.setTimeout(function(){throw e})}var ie={closed:!0,next:Jt,error:function(t){throw t},complete:Jt},n="function"==typeof Symbol&&Symbol.observable||"@@observable";function oe(t){return t}i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,r){var n,i=this,o=(n=t)&&n instanceof Kt||n&&h(n.next)&&h(n.error)&&h(n.complete)&&Nt(n)?t:new te(t,e,r);return Wt(function(){var t=i.operator,e=i.source;o.add(t?t.call(o,e):e?i._subscribe(o):i._trySubscribe(o))}),o},i.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},i.prototype.forEach=function(n,t){var i=this;return new(t=ae(t))(function(t,e){var r=new te({next:function(t){try{n(t)}catch(t){e(t),r.unsubscribe()}},error:e,complete:t});i.subscribe(r)})},i.prototype._subscribe=function(t){var e;return null==(e=this.source)?void 0:e.subscribe(t)},i.prototype[n]=function(){return this},i.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?oe:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},i.prototype.toPromise=function(t){var n=this;return new(t=ae(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},i.create=function(t){return new i(t)};var se=i;function i(t){t&&(this._subscribe=t)}function ae(t){return null!=(t=null!=t?t:zt)?t:Promise}var le,ue,ce,he=kt(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),n=(Ct(o,ce=se),o.prototype.lift=function(t){var e=new pe(this,this);return e.operator=t,e},o.prototype._throwIfClosed=function(){if(this.closed)throw new he},o.prototype.next=function(i){var o=this;Wt(function(){var e,t;if(o._throwIfClosed(),!o.isStopped){o.currentObservers||(o.currentObservers=Array.from(o.observers));try{for(var r=Ht(o.currentObservers),n=r.next();!n.done;n=r.next())n.value.next(i)}catch(t){e={error:t}}finally{try{n&&!n.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}}})},o.prototype.error=function(e){var r=this;Wt(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=e;for(var t=r.observers;t.length;)t.shift().error(e)}})},o.prototype.complete=function(){var e=this;Wt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},o.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(o.prototype,"observed",{get:function(){var t;return 0<(null==(t=this.observers)?void 0:t.length)},enumerable:!1,configurable:!0}),o.prototype._trySubscribe=function(t){return this._throwIfClosed(),ce.prototype._trySubscribe.call(this,t)},o.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},o.prototype._innerSubscribe=function(t){var e=this,r=this.hasError,n=this.isStopped,i=this.observers;return r||n?Rt:(this.currentObservers=null,i.push(t),new Mt(function(){e.currentObservers=null,Ot(i,t)}))},o.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},o.prototype.asObservable=function(){var t=new se;return t.source=this,t},o.create=function(t,e){return new pe(t,e)},o),pe=(Ct(ge,ue=n),ge.prototype.next=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.next)&&r.call(e,t)},ge.prototype.error=function(t){var e,r;null!=(r=null==(e=this.destination)?void 0:e.error)&&r.call(e,t)},ge.prototype.complete=function(){var t,e;null!=(e=null==(t=this.destination)?void 0:t.complete)&&e.call(t)},ge.prototype._subscribe=function(t){var e;return null!=(e=null==(e=this.source)?void 0:e.subscribe(t))?e:Rt},ge),de={now:function(){return(de.delegate||Date).now()},delegate:void 0},me=(Ct(fe,le=n),fe.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,i=e._infiniteTimeWindow,o=e._timestampProvider,e=e._windowTime;r||(n.push(t),i||n.push(o.now()+e)),this._trimBuffer(),le.prototype.next.call(this,t)},fe.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!t.closed;i+=r?1:2)t.next(n[i]);return this._checkFinalizedStatuses(t),e},fe.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=e.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},fe);function fe(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=de);var n=le.call(this)||this;return n._bufferSize=t,n._windowTime=e,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=e===1/0,n._bufferSize=Math.max(1,t),n._windowTime=Math.max(1,e),n}function ge(t,e){var r=ue.call(this)||this;return r.destination=t,r.source=e,r}function o(){var t=ce.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let ye=[],be={};const ve=[];function we(n,i=v){let o;const s=new Set;function a(t){if(_(n,t)&&(n=t,o)){const t=!ve.length;for(const t of s)t[1](),ve.push(t,n);if(t){for(let t=0;t<ve.length;t+=2)ve[t][0](ve[t+1]);ve.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=v){const r=[t,e];return s.add(r),1===s.size&&(o=i(a)||v),t(n),()=>{s.delete(r),0===s.size&&(o(),o=null)}}}}function Ee(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:we(e,e=>{let r=!1;const n=[];let i=0,o=v;const s=()=>{var t;i||(o(),t=a(l?n[0]:n,e),c?e(t):o=S(t)?t:v)},t=u.map((t,e)=>U(t,t=>{n[e]=t,i&=~(1<<e),r&&s()},()=>{i|=1<<e}));return r=!0,s(),function(){P(t),o()}}).subscribe}}function Te(t){return!(!t||"object"!=typeof t||(t=t,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===xe));var e}var xe="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ae(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Pe(Array.isArray(t)?[]:{},t,e):t}function Se(t,e,r){return t.concat(e).map(function(t){return Ae(t,r)})}function _e(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function Be(t,e){try{return e in t}catch(t){return!1}}function $e(n,i,o){var s={};return o.isMergeableObject(n)&&_e(n).forEach(function(t){s[t]=Ae(n[t],o)}),_e(i).forEach(function(e){var t,r;(!Be(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(Be(n,e)&&o.isMergeableObject(i[e])?s[e]=function(t){if(!t.customMerge)return Pe;t=t.customMerge(e);return"function"==typeof t?t:Pe}(o)(n[e],i[e],o):s[e]=Ae(i[e],o))}),s}function Pe(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||Se,r.isMergeableObject=r.isMergeableObject||Te,r.cloneUnlessOtherwiseSpecified=Ae;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):$e(t,e,r):Ae(e,r)}Pe.all=function(t,r){if(Array.isArray(t))return t.reduce(function(t,e){return Pe(t,e,r)},{});throw new Error("first argument should be an array")};var Ce=Pe,He=function(t,e){return(He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r])})(t,e)};function Fe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=t}He(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var f,b,Ie,w=function(){return(w=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function ke(t,e,r){if(r||2===arguments.length)for(var n,i=0,o=e.length;i<o;i++)!n&&i in e||((n=n||Array.prototype.slice.call(e,0,i))[i]=e[i]);return t.concat(n||Array.prototype.slice.call(e))}function Le(t){return t.type===b.literal}function Oe(t){return t.type===b.number}function Me(t){return t.type===b.date}function Re(t){return t.type===b.time}function Ne(t){return t.type===b.select}function De(t){return t.type===b.plural}function ze(t){return t.type===b.tag}function Ue(t){return t&&"object"==typeof t&&t.type===Ie.number}function je(t){return t&&"object"==typeof t&&t.type===Ie.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=Ie=Ie||{})[n.number=0]="number",n[n.dateTime=1]="dateTime";var n=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ge=/(?:[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 Je=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ve=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,We=/^(@+)?(\+|#+)?[rs]?$/g,Xe=/(\*)(0+)|(#+)(0+)|(0+)/g,Ke=/^(0+)$/;function Ye(t){var n={};return"r"===t[t.length-1]?n.roundingPriority="morePrecision":"s"===t[t.length-1]&&(n.roundingPriority="lessPrecision"),t.replace(We,function(t,e,r){return"string"!=typeof r?(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length):"+"===r?n.minimumSignificantDigits=e.length:"#"===e[0]?n.maximumSignificantDigits=e.length:(n.minimumSignificantDigits=e.length,n.maximumSignificantDigits=e.length+("string"==typeof r?r.length:0)),""}),n}function Ze(t){switch(t){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 qe(t){return Ze(t)||{}}function Qe(t){for(var s={},e=0,r=t;e<r.length;e++){var n,i=r[e];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(t,e){return w(w({},t),qe(e))},{}));continue;case"engineering":s=w(w(w({},s),{notation:"engineering"}),i.options.reduce(function(t,e){return w(w({},t),qe(e))},{}));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(Xe,function(t,e,r,n,i,o){if(e)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(Ke.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(Ve.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ve,function(t,e,r,n,i,o){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""});var o=i.options[0];"w"===o?s=w(w({},s),{trailingZeroDisplay:"stripIfInteger"}):o&&(s=w(w({},s),Ye(o)))}else We.test(i.stem)?s=w(w({},s),Ye(i.stem)):((o=Ze(i.stem))&&(s=w(w({},s),o)),(n=function(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var r=t.slice(0,2);if("+!"===r?(e.signDisplay="always",t=t.slice(2)):"+?"===r&&(e.signDisplay="exceptZero",t=t.slice(2)),!Ke.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(i.stem))&&(s=w(w({},s),n)))}return s}var tr={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,"*")),rr=new RegExp("".concat(n.source,"*$"));function E(t,e){return{start:t,end:e}}var n=!!String.prototype.startsWith,nr=!!String.fromCodePoint,ir=!!Object.fromEntries,or=!!String.prototype.codePointAt,sr=!!String.prototype.trimStart,ar=!!String.prototype.trimEnd,lr=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},ur=!0;try{ur="a"===(null==(Cr=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))?void 0:Cr[0])}catch(v){ur=!1}var cr,hr,pr=n?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},dr=nr?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",i=t.length,o=0;o<i;){if(1114111<(r=t[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},mr=ir?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var i=n[r],o=i[0],i=i[1];e[o]=i}return e},fr=or?function(t,e){return t.codePointAt(e)}:function(t,e){var r,n=t.length;if(!(e<0||n<=e))return(r=t.charCodeAt(e))<55296||56319<r||e+1===n||(n=t.charCodeAt(e+1))<56320||57343<n?r:n-56320+(r-55296<<10)+65536},gr=sr?function(t){return t.trimStart()}:function(t){return t.replace(er,"")},yr=ar?function(t){return t.trimEnd()}:function(t){return t.replace(rr,"")};function br(t,e){return new RegExp(t,e)}hr=ur?(cr=br("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return cr.lastIndex=e,null!=(e=cr.exec(t)[1])?e:""}):function(t,e){for(var r,n=[];;){var i=fr(t,e);if(void 0===i||Er(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),e+=65536<=i?2:1}return dr.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(t,e,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(t,r)).err)return i;n.push(i.val)}else{if(125===o&&0<t)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){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&&wr(this.peek()||0)){if((i=this.parseTag(t,e)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(t,e)).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(t,e){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(">")){t=this.parseMessage(t+1,e,!0);if(t.err)return t;e=t.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!wr(this.char()))return this.error(f.INVALID_TAG,E(t,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:e,location:E(r,this.clonePosition())},err:null}:this.error(f.INVALID_TAG,E(t,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 t,e=this.offset();for(this.bump();!this.isEOF()&&(45===(t=this.char())||46===t||48<=t&&t<=57||95===t||97<=t&&t<=122||65<=t&&t<=90||183==t||192<=t&&t<=214||216<=t&&t<=246||248<=t&&t<=893||895<=t&&t<=8191||8204<=t&&t<=8205||8255<=t&&t<=8256||8304<=t&&t<=8591||11264<=t&&t<=12271||12289<=t&&t<=55295||63744<=t&&t<=64975||65008<=t&&t<=65533||65536<=t&&t<=983039);)this.bump();return this.message.slice(e,this.offset())},s.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(e);if(i)n+=i;else{i=this.tryParseUnquoted(t,e);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&&(wr(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},s.prototype.tryParseQuote=function(t){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"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(r);this.bump()}return dr.apply(void 0,e)},s.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===e||"selectordinal"===e)||125===r&&0<t?null:(this.bump(),dr(r))},s.prototype.parseArgument=function(t,e){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(t,e,n,r);default:return this.error(f.MALFORMED_ARGUMENT,E(r,this.clonePosition()))}},s.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=hr(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:E(t,this.clonePosition())}},s.prototype.parseArgumentOptions=function(t,e,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=yr(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&&pr(null==l?void 0:l.style,"::",0)){var h=gr(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(t,e){for(var r="",n=0;n<t.length;n++){var i=t.charAt(n);if("j"===i){for(var o=0;n+1<t.length&&t.charAt(n+1)===i;)o++,n++;var s=1+(1&o),a=o<2?1:3+(o>>1),l=function(t){var e,r=t.hourCycle;if(r=void 0===r&&t.hourCycles&&t.hourCycles.length?t.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=t.language)&&(e=t.maximize().region),(tr[e||""]||tr[r||""]||tr["".concat(r,"-001")]||tr["001"])[0]}(e);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:Ie.dateTime,pattern:p,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},p.replace(Ge,function(t){var e=t.length;switch(t[0]){case"G":i.era=4===e?"long":5===e?"narrow":"short";break;case"y":i.year=2===e?"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"][e-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][e-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!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][e-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"][e-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][e-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][e-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][e-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"][e-1];break;case"s":i.second=["numeric","2-digit"][e-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=e<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(t,s,e,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:mr(l.val),location:h},err:null}:{val:{type:b.plural,value:r,options:mr(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(t){return this.isEOF()||125!==this.char()?this.error(f.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},s.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=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:t+=1,this.bump();break;case 125:if(!(0<t))return{val:this.message.slice(e.offset,this.offset()),err:null};--t;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},s.prototype.parseNumberSkeletonFromString=function(t,e){var r=[];try{r=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=[],r=0,n=t.split(Je).filter(function(t){return 0<t.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");e.push({stem:o,options:i})}return e}(t)}catch(t){return this.error(f.INVALID_NUMBER_SKELETON,e)}return{val:{type:Ie.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Qe(r):{}},err:null}},s.prototype.tryParsePluralOrSelectOptions=function(t,e,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"===e||!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"===e?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"===e?f.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:f.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));u=this.parseMessage(t+1,e,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"===e?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(t,e){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?lr(o*=r)?{val:o,err:null}:this.error(e,n):this.error(t,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 t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=fr(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},s.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},s.prototype.bump=function(){var t;this.isEOF()||(10===(t=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2))},s.prototype.bumpIf=function(t){if(pr(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},s.prototype.bumpUntil=function(t){var e=this.offset(),t=this.message.indexOf(t,e);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},s.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},s.prototype.bumpSpace=function(){for(;!this.isEOF()&&Er(this.char());)this.bump()},s.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),e=this.message.charCodeAt(e+(65536<=t?2:1));return null!=e?e:null};var vr=s;function s(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function wr(t){return 97<=t&&t<=122||65<=t&&t<=90}function Er(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function Tr(t,e){e=w({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r,t=new vr(t,e).parse();if(t.err)throw(r=SyntaxError(f[t.err.kind])).location=t.err.location,r.originalMessage=t.err.message,r;return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,Ne(t)||De(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else Oe(t)&&Ue(t.style)||(Me(t)||Re(t))&&je(t.style)?delete t.style.location:ze(t)&&r(t.children)})}(t.val),t.val}function xr(t,e){var r=e&&e.cache?e.cache:Hr,n=e&&e.serializer?e.serializer:Br;return(e&&e.strategy?e.strategy:function(t,e){return _r(t,this,1===t.length?Ar:Sr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function Ar(t,e,r,n){var r=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),i=e.get(r);return void 0===i&&(i=t.call(this,n),e.set(r,i)),i}function Sr(t,e,r){var n=Array.prototype.slice.call(arguments,3),r=r(n),i=e.get(r);return void 0===i&&(i=t.apply(this,n),e.set(r,i)),i}function _r(t,e,r,n,i){return r.bind(e,t,n,i)}var Br=function(){return JSON.stringify(arguments)};function $r(){this.cache=Object.create(null)}$r.prototype.get=function(t){return this.cache[t]},$r.prototype.set=function(t,e){this.cache[t]=e};var Pr,Cr,Hr={create:function(){return new $r}},Fr={variadic:function(t,e){return _r(t,this,Sr,e.cache.create(),e.serializer)},monadic:function(t,e){return _r(t,this,Ar,e.cache.create(),e.serializer)}};(Cr=Pr=Pr||{}).MISSING_VALUE="MISSING_VALUE",Cr.INVALID_VALUE="INVALID_VALUE",Cr.MISSING_INTL_API="MISSING_INTL_API";Fe(Gr,Or=Error),Gr.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)};var T,Ir,kr,Lr,Or,Mr=Gr,Rr=(Fe(jr,Lr=Mr),jr),Nr=(Fe(Ur,kr=Mr),Ur),Dr=(Fe(zr,Ir=Mr),zr);function zr(t,e){return Ir.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(e,'"'),Pr.MISSING_VALUE,e)||this}function Ur(t,e,r){return kr.call(this,'Value for "'.concat(t,'" must be of type ').concat(e),Pr.INVALID_VALUE,r)||this}function jr(t,e,r,n){return Lr.call(this,'Invalid values for "'.concat(t,'": "').concat(e,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pr.INVALID_VALUE,n)||this}function Gr(t,e,r){t=Or.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Jr(t,e,r,n,i,o,s){if(1===t.length&&Le(t[0]))return[{type:T.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(Le(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(e).format(o)});else{var h=c.value;if(!(i&&h in i))throw new Dr(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(Me(c)){var p="string"==typeof c.style?n.date[c.style]:je(c.style)?c.style.parsedOptions:void 0;a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(h)})}else if(Re(c))p="string"==typeof c.style?n.time[c.style]:je(c.style)?c.style.parsedOptions:n.time.medium,a.push({type:T.literal,value:r.getDateTimeFormat(e,p).format(h)});else if(Oe(c))(p="string"==typeof c.style?n.number[c.style]:Ue(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:T.literal,value:r.getNumberFormat(e,p).format(h)});else{if(ze(c)){var d=c.children,m=c.value,f=i[m];if("function"!=typeof f)throw new Nr(m,"function",s);m=f(Jr(d,e,r,n,i,o).map(function(t){return t.value}));Array.isArray(m)||(m=[m]),a.push.apply(a,m.map(function(t){return{type:"string"==typeof t?T.literal:T.object,value:t}}))}if(Ne(c)){if(!(g=c.options[h]||c.options.other))throw new Rr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Jr(g.value,e,r,n,i))}else if(De(c)){if(!(g=c.options["=".concat(h)])){if(!Intl.PluralRules)throw new Mr('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(e,{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,Jr(g.value,e,r,n,i,h-(c.offset||0)))}}}}return(t=a).length<2?t:t.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===T.literal&&e.type===T.literal?r.value+=e.value:t.push(e),t},[])}function Vr(r){return{create:function(){return{get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(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(t){var e=Intl.NumberFormat.supportedLocalesOf(t);return 0<e.length?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])},p.__parse=Tr,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 Wr=p;function p(t,e,r,n){var i,o,s=this;if(void 0===e&&(e=p.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){t=s.formatToParts(t);if(1===t.length)return t[0].value;t=t.reduce(function(t,e){return t.length&&e.type===T.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t},[]);return t.length<=1?t[0]||"":t},this.formatToParts=function(t){return Jr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:s.resolvedLocale.toString()}},this.getAst=function(){return s.ast},this.locales=e,this.resolvedLocale=p.resolveLocale(e),"string"==typeof t){if(this.message=t,!p.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=p.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag,locale:this.resolvedLocale})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=p.formats,(o=r)?Object.keys(i).reduce(function(t,e){var r,n;return t[e]=(r=i[e],(n=o[e])?w(w(w({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=w(w({},r[e]),n[e]||{}),t},{})):r),t},w({},i)):i),this.formatters=n&&n.formatters||{getNumberFormat:xr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,ke([void 0],e,!1)))},{cache:Vr((e=void 0===(e=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:e).number),strategy:Fr.variadic}),getDateTimeFormat:xr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,ke([void 0],e,!1)))},{cache:Vr(e.dateTime),strategy:Fr.variadic}),getPluralRules:xr(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,ke([void 0],e,!1)))},{cache:Vr(e.pluralRules),strategy:Fr.variadic})}}const d={},Xr=(t,e,r)=>r&&(e in d||(d[e]={}),t in d[e]||(d[e][t]=r),r),Kr=(e,r)=>{if(null!=r){if(r in d&&e in d[r])return d[r][e];var n=pn(r);for(let t=0;t<n.length;t++){var i=function(t,r){if(!qr(t))return null;t=function(t){return Yr[t]||null}(t);{var n=r;if(null==n)return;if(n in t)return t[n];const i=n.split(".");let e=t;for(let t=0;t<i.length;t++)if("object"==typeof e){if(0<t){const n=i.slice(t,i.length).join(".");if(n in e){e=e[n];break}}e=e[i[t]]}else e=void 0;return e}}(n[t],e);if(i)return Xr(e,r,i)}}};let Yr;const Zr=we({});function qr(t){return t in Yr}function Qr(e,...r){delete d[e],Zr.update(t=>(t[e]=Ce.all([t[e]||{},...r]),t))}Ee([Zr],([t])=>Object.keys(t)),Zr.subscribe(t=>Yr=t);const tn={};function en(t){return tn[t]}function rn(t){return null!=t&&pn(t).some(t=>{return null==(t=en(t))?void 0:t.size})}const nn={};function on(t){if(!rn(t))return t in nn?nn[t]:Promise.resolve();const e=pn(t).map(t=>{var e=en(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return nn[t]=Promise.all(e.map(([t,e])=>{{var n=t;t=e;const r=Promise.all(t.map(t=>{var e=n,r=t;return tn[e].delete(r),0===tn[e].size&&delete tn[e],t().then(t=>t.default||t)}));return r.then(t=>Qr(n,...t))}})).then(()=>{if(rn(t))return on(t);delete nn[t]}),nn[t]}function sn(t,e){var r={};for(i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(t);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(t,i[n])&&(r[i[n]]=t[i[n]]);return r}const an={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 ln=we(!1);let un;const cn=we(null);function hn(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function pn(t,e=an.fallbackLocale){t=hn(t);return e?[...new Set([...t,...hn(e)])]:t}function dn(){return null!=un?un:void 0}cn.subscribe(t=>{un=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)});const ot=Object.assign(Object.assign({},cn),{set:e=>{if(e&&function(t){if(null!=t){var e=pn(t);for(let t=0;t<e.length;t++){var r=e[t];if(qr(r))return r}}}(e)&&rn(e)){var r=an["loadingDelay"];let t;return"undefined"!=typeof window&&null!=dn()&&r?t=window.setTimeout(()=>ln.set(!0),r):ln.set(!0),on(e).then(()=>{cn.set(e)}).finally(()=>{clearTimeout(t),ln.set(!1)})}return cn.set(e)}}),mn=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},fn=(t,e)=>{var r=an["formats"];if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},gn=mn(t=>{var{locale:e,format:r}=t,t=sn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=fn("number",r)),new Intl.NumberFormat(e,t)}),yn=mn(t=>{var{locale:e,format:r}=t,t=sn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=fn("date",r):0===Object.keys(t).length&&(t=fn("date","short")),new Intl.DateTimeFormat(e,t)}),bn=mn(t=>{var{locale:e,format:r}=t,t=sn(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=fn("time",r):0===Object.keys(t).length&&(t=fn("time","short")),new Intl.DateTimeFormat(e,t)}),vn=mn((t,e=dn())=>new Wr(t,e,an.formats,{ignoreTag:an.ignoreTag})),wn=Ee([ot,Zr],()=>(t,e={})=>{var r,n;let i=e;"object"==typeof t&&(t=(i=t).id);var{values:o,locale:s=dn(),default:a}=i;if(null==s)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let l=Kr(t,s);if(l){if("string"!=typeof l)return console.warn(`[svelte-i18n] Message with id "${t}" 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=an).handleMissingMessage)?void 0:r.call(n,{locale:s,id:t,defaultValue:a}))?r:a)?n:t;if(!o)return l;let u=l;try{u=vn(l,s).format(o)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u}),En=(Ee([ot],()=>(t,e)=>((t={})=>{var{locale:e=dn()}=t,t=sn(t,["locale"]);return bn(Object.assign({locale:e},t))})(e).format(t)),Ee([ot],()=>(t,e)=>((t={})=>{var{locale:e=dn()}=t,t=sn(t,["locale"]);return yn(Object.assign({locale:e},t))})(e).format(t)),Ee([ot],()=>(t,e)=>((t={})=>{var{locale:e=dn()}=t,t=sn(t,["locale"]);return gn(Object.assign({locale:e},t))})(e).format(t)),Ee([ot,Zr],()=>(t,e=dn())=>Kr(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==ye.indexOf(t)&&(e=new me(e),be[t]=e,ye.push(t)),be[t]}},t=>t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC");function Tn(t,e){Qr(t,e)}const xn={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:"Iniciar sesión",register:"Regístrate",details:"Detalles",enrolled:"Participando",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"}},hu:{tournamentsThController:{login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",enrolled:"Feliratkozott",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."}},pt:{tournamentsThController:{login:"Entrar",register:"Registro",details:"Detalhes",enrolled:"Inscrito",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"}}};function An(t,e){Qr(t,e)}const Sn={en:{tournamentsThumbnail:{enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts {startTime}",startedAtWithTime:"Started {startTime}",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",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:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"}},el:{tournamentsThumbnail:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις {startTime}",startedAtWithTime:"Άρχισε στις {startTime}",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"}},es:{tournamentsThumbnail:{enrolled:"Participando",scoreCriteria:"Regla de puntos",minbet:"Apuesta mínima",seegames:"Puede ver los juegos aquí",here:"aquí",scheduled:"Programado",ongoing:"En Vivo",finished:"Finalizado",startingAt:"Iniciando en:",startedAt:"Inicio:",mostRounds:"Más rondas",betCount:"Número de Apuestas",maxWinStakeRatio:"Máxima Ganancia por Apuesta",winStakeRatio:"Total Ganancia por Apuestas",January:"Enero",February:"Febrero",March:"Marzo",April:"April",May:"Mayo",June:"Junio",July:"Julio",August:"Agosto",September:"Septiembre",October:"Octubre",November:"Noviembre",December:"Diciembre"}},pt:{tournamentsThumbnail:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",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 _n(r){let n,i,o,s,a,l,u;return{c(){n=k("div"),i=L(r[13]),R(n,"class",o="Status "+r[15]),R(n,"part",s="Status "+r[15])},m(t,e){F(t,n,e),H(n,i),l||(u=C(a=r[18].call(null,n)),l=!0)},p(t,e){8192&e[0]&&N(i,t[13]),32768&e[0]&&o!==(o="Status "+t[15])&&R(n,"class",o),32768&e[0]&&s!==(s="Status "+t[15])&&R(n,"part",s)},d(t){t&&I(n),l=!1,u()}}}function Bn(t){let r,n=t[5]&&$n(t);return{c(){n&&n.c(),r=G()},m(t,e){n&&n.m(t,e),F(t,r,e)},p(t,e){t[5]?n?n.p(t,e):((n=$n(t)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&I(r)}}}function $n(t){let r,n,i=t[16]("tournamentsThumbnail.enrolled")+"";return{c(){r=k("div"),n=L(i),R(r,"class","Enrolled"),R(r,"part","Enrolled")},m(t,e){F(t,r,e),H(r,n)},p(t,e){65536&e[0]&&i!==(i=t[16]("tournamentsThumbnail.enrolled")+"")&&N(n,i)},d(t){t&&I(r)}}}function Pn(r){let n,i,o,s,a;return{c(){R(n=k("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),R(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),m(n,"background-image","url('https://i.stack.imgur.com/y9DpT.jpg')")},m(t,e){F(t,n,e),s||(a=C(r[18].call(null,n)),s=!0)},p(t,e){1&e[0]&&i!==(i="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"class",i),1&e[0]&&o!==(o="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"part",o)},d(t){t&&I(n),s=!1,a()}}}function Cn(r){let n,i,o,s,a;return{c(){R(n=k("div"),"class",i="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),R(n,"part",o="CardImg "+("Closing"==r[0]||"Closed"==r[0]?"CardImgFinished":"")),m(n,"background-image","url('"+r[4]+"')")},m(t,e){F(t,n,e),s||(a=C(r[18].call(null,n)),s=!0)},p(t,e){1&e[0]&&i!==(i="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"class",i),1&e[0]&&o!==(o="CardImg "+("Closing"==t[0]||"Closed"==t[0]?"CardImgFinished":""))&&R(n,"part",o),16&e[0]&&m(n,"background-image","url('"+t[4]+"')")},d(t){t&&I(n),s=!1,a()}}}function Hn(r){let n,i,o,s,a;return{c(){n=k("div"),i=L(r[11]),R(n,"class","Date"),R(n,"part","Date")},m(t,e){F(t,n,e),H(n,i),s||(a=C(o=r[17].call(null,n,r[2])),s=!0)},p(t,e){2048&e[0]&&N(i,t[11]),o&&S(o.update)&&4&e[0]&&o.update.call(null,t[2])},d(t){t&&I(n),s=!1,a()}}}function Fn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g,y,b,v,w,E,T,x,A,S=r[16]("tournamentsThumbnail.scoreCriteria")+"",_=r[16]("tournamentsThumbnail.minbet")+"",B=r[16]("tournamentsThumbnail.seegames")+"",$=r[16]("tournamentsThumbnail.here")+"";return{c(){n=k("div"),i=k("p"),o=L(S),s=L(":\n \n "),a=k("span"),l=L(r[14]),c=L("\n ("),h=L(_),p=O(),d=L(r[6]),m=L(")"),f=O(),g=k("div"),y=k("p"),b=L(B),v=O(),w=k("a"),E=L($),R(a,"part","ScoreCriteriaSpan"),R(i,"part","ScoreCriteriaP"),R(n,"class","ScoreCriteria"),R(n,"part","ScoreCriteria"),R(w,"part","GamesAnchor"),R(w,"href",r[8]),R(w,"target",T="true"===r[9]?"_self":"_blank"),R(y,"part","GamesP"),R(g,"class","Games"),R(g,"part","Games")},m(t,e){F(t,n,e),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(t,f,e),F(t,g,e),H(g,y),H(y,b),H(y,v),H(y,w),H(w,E),x||(A=[C(u=r[19].call(null,a)),M(w,"click",r[28])],x=!0)},p(t,e){65536&e[0]&&S!==(S=t[16]("tournamentsThumbnail.scoreCriteria")+"")&&N(o,S),16384&e[0]&&N(l,t[14]),65536&e[0]&&_!==(_=t[16]("tournamentsThumbnail.minbet")+"")&&N(h,_),64&e[0]&&N(d,t[6]),65536&e[0]&&B!==(B=t[16]("tournamentsThumbnail.seegames")+"")&&N(b,B),65536&e[0]&&$!==($=t[16]("tournamentsThumbnail.here")+"")&&N(E,$),256&e[0]&&R(w,"href",t[8]),512&e[0]&&T!==(T="true"===t[9]?"_self":"_blank")&&R(w,"target",T)},d(t){t&&I(n),t&&I(f),t&&I(g),x=!1,P(A)}}}function In(r){let n,i,o,s,a,l,u,c,h,p=r[0]&&_n(r),d="true"==r[7]&&Bn(r);function m(t){return t[4]?Cn:Pn}let f=m(r),g=f(r),y=r[2]&&Hn(r),b=r[12]&&Fn(r);return{c(){n=k("div"),p&&p.c(),i=O(),d&&d.c(),o=O(),g.c(),s=O(),a=k("div"),l=k("div"),u=L(r[1]),c=O(),y&&y.c(),h=O(),b&&b.c(),this.c=v,R(l,"class","Title"),R(l,"part","Title"),R(a,"class","Details"),R(a,"part","Details"),R(n,"class","Thumbnail"),R(n,"part","Thumbnail")},m(t,e){F(t,n,e),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),y&&y.m(a,null),H(a,h),b&&b.m(a,null),r[29](n)},p(t,e){t[0]?p?p.p(t,e):((p=_n(t)).c(),p.m(n,i)):p&&(p.d(1),p=null),"true"==t[7]?d?d.p(t,e):((d=Bn(t)).c(),d.m(n,o)):d&&(d.d(1),d=null),f===(f=m(t))&&g?g.p(t,e):(g.d(1),(g=f(t))&&(g.c(),g.m(n,s))),2&e[0]&&N(u,t[1]),t[2]?y?y.p(t,e):((y=Hn(t)).c(),y.m(a,h)):y&&(y.d(1),y=null),t[12]?b?b.p(t,e):((b=Fn(t)).c(),b.m(a,null)):b&&(b.d(1),b=null)},i:v,o:v,d(t){t&&I(n),p&&p.d(),d&&d.d(),g.d(),y&&y.d(),b&&b.d(),r[29](null)}}}function kn(e,t,i){let o;st(e,wn,t=>i(16,o=t));let r,{session:n=""}=t,{userid:s=""}=t,{title:a=""}=t,{startdate:l=""}=t,{status:u=""}=t,{tourid:c=""}=t,{thumbnail:h=""}=t,{userenrolled:p=""}=t,{scorecriteria:d=""}=t,{minbetcount:m=""}=t,{showenrolled:f="false"}=t,{gameurl:g=""}=t,{lang:y="en"}=t,{keepbrowsercontext:b="false"}=t,{clientstyling:v=""}=t,{clientstylingurl:w=""}=t,{translationurl:E=""}=t,T="",x=!1,A="",S="",_="";Object.keys(Sn).forEach(t=>{An(t,Sn[t])});const B=t=>{t.data&&(t.data&&"SessionID"==t.data.type&&i(12,x=!0),t.data.type=="TournamentStatus_"+c&&i(0,u=t.data.status))},$=()=>{let t=new Date(l),e=new Intl.DateTimeFormat("en",{month:"long"}).format(t),r=t.getDate(),n=t.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});i(11,T=r+" "+o("tournamentsThumbnail."+e)+", "+o("Running"===u?"tournamentsThumbnail.startedAt":"tournamentsThumbnail.startingAt")+" "+n)},P=()=>{"Unstarted"==u&&(i(13,A=o("tournamentsThumbnail.scheduled")),i(15,_="StatusUnstarted")),"Running"==u&&(i(13,A=o("tournamentsThumbnail.ongoing")),i(15,_="StatusRunning")),"Closed"!=u&&"Closing"!=u||i(13,A=o("tournamentsThumbnail.finished")),"Closed"==u&&i(15,_="StatusClosed"),"Closing"==u&&i(15,_="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"))},H=(t,e)=>{window.postMessage({type:"tournamentGamesClicked",tourId:e},window.location.href)};at(()=>(window.addEventListener("message",B,!1),()=>{window.removeEventListener("message",B)}));return e.$$set=t=>{"session"in t&&i(21,n=t.session),"userid"in t&&i(22,s=t.userid),"title"in t&&i(1,a=t.title),"startdate"in t&&i(2,l=t.startdate),"status"in t&&i(0,u=t.status),"tourid"in t&&i(3,c=t.tourid),"thumbnail"in t&&i(4,h=t.thumbnail),"userenrolled"in t&&i(5,p=t.userenrolled),"scorecriteria"in t&&i(23,d=t.scorecriteria),"minbetcount"in t&&i(6,m=t.minbetcount),"showenrolled"in t&&i(7,f=t.showenrolled),"gameurl"in t&&i(8,g=t.gameurl),"lang"in t&&i(24,y=t.lang),"keepbrowsercontext"in t&&i(9,b=t.keepbrowsercontext),"clientstyling"in t&&i(25,v=t.clientstyling),"clientstylingurl"in t&&i(26,w=t.clientstylingurl),"translationurl"in t&&i(27,E=t.translationurl)},e.$$.update=()=>{if(33555456&e.$$.dirty[0]&&r&&v){let t=document.createElement("style");t.innerHTML=v,r.appendChild(t)}if(67109888&e.$$.dirty[0]&&r&&w){let t=new URL(w),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{r.appendChild(e)},1),setTimeout(()=>{},500)})}var t;134217728&e.$$.dirty[0]&&E&&fetch(E).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{An(t,e[t])})}).catch(t=>{console.log(t)}),2097152&e.$$.dirty[0]&&n&&(0<n.length&&"false"!=n?i(12,x=!0):i(12,x=!1)),1&e.$$.dirty[0]&&u&&P(),16777218&e.$$.dirty[0]&&y&&a&&(t=y,ot.set(t),C(),P(),l&&$()),4&e.$$.dirty[0]&&l&&$(),8388608&e.$$.dirty[0]&&d&&C()},[u,a,l,c,h,p,m,f,g,b,r,T,x,A,S,_,o,$,P,C,H,n,s,d,y,v,w,E,()=>H(),function(t){it[t?"unshift":"push"](()=>{r=t,i(10,r)})}]}function Ln(t,e){Qr(t,e)}customElements.get("casino-tournaments-thumbnail")||customElements.define("casino-tournaments-thumbnail",class extends lt{constructor(t){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>',nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},kn,In,_,{session:21,userid:22,title:1,startdate:2,status:0,tourid:3,thumbnail:4,userenrolled:5,scorecriteria:23,minbetcount:6,showenrolled:7,gameurl:8,lang:24,keepbrowsercontext:9,clientstyling:25,clientstylingurl:26,translationurl:27},null,[-1,-1]),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["session","userid","title","startdate","status","tourid","thumbnail","userenrolled","scorecriteria","minbetcount","showenrolled","gameurl","lang","keepbrowsercontext","clientstyling","clientstylingurl","translationurl"]}get session(){return this.$$.ctx[21]}set session(t){this.$$set({session:t}),g()}get userid(){return this.$$.ctx[22]}set userid(t){this.$$set({userid:t}),g()}get title(){return this.$$.ctx[1]}set title(t){this.$$set({title:t}),g()}get startdate(){return this.$$.ctx[2]}set startdate(t){this.$$set({startdate:t}),g()}get status(){return this.$$.ctx[0]}set status(t){this.$$set({status:t}),g()}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),g()}get thumbnail(){return this.$$.ctx[4]}set thumbnail(t){this.$$set({thumbnail:t}),g()}get userenrolled(){return this.$$.ctx[5]}set userenrolled(t){this.$$set({userenrolled:t}),g()}get scorecriteria(){return this.$$.ctx[23]}set scorecriteria(t){this.$$set({scorecriteria:t}),g()}get minbetcount(){return this.$$.ctx[6]}set minbetcount(t){this.$$set({minbetcount:t}),g()}get showenrolled(){return this.$$.ctx[7]}set showenrolled(t){this.$$set({showenrolled:t}),g()}get gameurl(){return this.$$.ctx[8]}set gameurl(t){this.$$set({gameurl:t}),g()}get lang(){return this.$$.ctx[24]}set lang(t){this.$$set({lang:t}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),g()}get clientstyling(){return this.$$.ctx[25]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[26]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[27]}set translationurl(t){this.$$set({translationurl:t}),g()}});const On={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:"Finalizado",starting:"Iniciando en ",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 Mn(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[10](r[0])+"",y=r[10](r[1])+"";function b(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?Dn:0<t[5]?Nn:Rn}let v=b(r),w=v(r);function E(t){return"Finished"==t[2]||"Closing"==t[2]||"Closed"==t[2]?jn:0<t[5]?Un:0<t[4]?zn:void 0}let T=E(r),x=T&&T(r);return{c(){n=k("div"),i=k("div"),o=L(g),s=O(),a=k("div"),l=L(y),u=O(),c=k("div"),h=k("div"),w.c(),p=O(),x&&x.c(),R(i,"class","StartDate"),R(i,"part","StartDate"),R(a,"class","EndDate"),R(a,"part","EndDate"),R(n,"class","TournamentDates"),R(n,"part","TournamentDates"),R(h,"class","ProgressBar"),R(h,"part","ProgressBar"),R(c,"class","ProgressBarWrapper"),R(c,"part","ProgressBarWrapper")},m(t,e){F(t,n,e),H(n,i),H(i,o),H(n,s),H(n,a),H(a,l),F(t,u,e),F(t,c,e),H(c,h),w.m(h,null),H(h,p),x&&x.m(h,null),m||(f=C(d=r[9].call(null,c)),m=!0)},p(t,e){1&e&&g!==(g=t[10](t[0])+"")&&N(o,g),2&e&&y!==(y=t[10](t[1])+"")&&N(l,y),v===(v=b(t))&&w?w.p(t,e):(w.d(1),(w=v(t))&&(w.c(),w.m(h,p))),T===(T=E(t))&&x?x.p(t,e):(x&&x.d(1),(x=T&&T(t))&&(x.c(),x.m(h,null)))},d(t){t&&I(n),t&&I(u),t&&I(c),w.d(),x&&x.d(),m=!1,f()}}}function Rn(t){let r;return{c(){R(r=k("div"),"class","ProgressBarFill"),R(r,"part","ProgressBarFill"),m(r,"width",t[7]()+"%")},m(t,e){F(t,r,e)},p(t,e){128&e&&m(r,"width",t[7]()+"%")},d(t){t&&I(r)}}}function Nn(t){let r;return{c(){R(r=k("div"),"class","ProgressBarFillStarting"),R(r,"part","ProgressBarFillStarting")},m(t,e){F(t,r,e)},p:v,d(t){t&&I(r)}}}function Dn(t){let r;return{c(){R(r=k("div"),"class","ProgressBarFillEnd"),R(r,"part","ProgressBarFillEnd")},m(t,e){F(t,r,e)},p:v,d(t){t&&I(r)}}}function zn(t){let r,n,i,o,s=t[8]("tournamentsDuration.left")+"";return{c(){r=k("div"),n=L(t[6]),i=O(),o=L(s),R(r,"class","Remaining"),R(r,"part","Remaining")},m(t,e){F(t,r,e),H(r,n),H(r,i),H(r,o)},p(t,e){64&e&&N(n,t[6]),256&e&&s!==(s=t[8]("tournamentsDuration.left")+"")&&N(o,s)},d(t){t&&I(r)}}}function Un(t){let r,n,i,o,s=t[8]("tournamentsDuration.starting")+"",a=t[11](t[5])+"";return{c(){r=k("div"),n=L(s),i=O(),o=L(a),R(r,"class","Remaining"),R(r,"part","Remaining")},m(t,e){F(t,r,e),H(r,n),H(r,i),H(r,o)},p(t,e){256&e&&s!==(s=t[8]("tournamentsDuration.starting")+"")&&N(n,s),32&e&&a!==(a=t[11](t[5])+"")&&N(o,a)},d(t){t&&I(r)}}}function jn(t){let r,n,i=t[8]("tournamentsDuration.finished")+"";return{c(){r=k("div"),n=L(i),R(r,"class","Finished"),R(r,"part","Finished")},m(t,e){F(t,r,e),H(r,n)},p(t,e){256&e&&i!==(i=t[8]("tournamentsDuration.finished")+"")&&N(n,i)},d(t){t&&I(r)}}}function Gn(r){let n,i=r[0]&&r[1]&&Mn(r);return{c(){n=k("div"),i&&i.c(),this.c=v,R(n,"class","TournamentDuration"),R(n,"part","TournamentDuration")},m(t,e){F(t,n,e),i&&i.m(n,null),r[16](n)},p(t,[e]){t[0]&&t[1]?i?i.p(t,e):((i=Mn(t)).c(),i.m(n,null)):i&&(i.d(1),i=null)},i:v,o:v,d(t){t&&I(n),i&&i.d(),r[16](null)}}}function Jn(t,e,r){let n,i;st(t,wn,t=>r(8,i=t));let o,{startdate:s=""}=e,{enddate:a=""}=e,{status:l=""}=e,{lang:u="en"}=e,{clientstyling:c=""}=e,{clientstylingurl:h=""}=e,{translationurl:p=""}=e,d="",m="",f="";Object.keys(On).forEach(t=>{Ln(t,On[t])});const g=t=>new Date(t).getTime(),y=(t,e)=>(g(e)-g(t))/6e4,b=()=>{var t=new Date;r(4,d=y(t,a)),r(5,m=y(t,s)),r(6,f=v(d))},v=t=>{if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map(t=>{t=Math.floor(t);return t<10?"0"+t:""+t}).join(":")}return Math.ceil(t/1440)+" "+i("tournamentsDuration.days")};return at(()=>{const t=setInterval(()=>{s&&a&&b()},1e3);return()=>clearInterval(t)}),t.$$set=t=>{"startdate"in t&&r(0,s=t.startdate),"enddate"in t&&r(1,a=t.enddate),"status"in t&&r(2,l=t.status),"lang"in t&&r(12,u=t.lang),"clientstyling"in t&&r(13,c=t.clientstyling),"clientstylingurl"in t&&r(14,h=t.clientstylingurl),"translationurl"in t&&r(15,p=t.translationurl)},t.$$.update=()=>{if(19&t.$$.dirty&&r(7,n=()=>{if(d<=0)return 100;var t=y(s,a),e=100/t;return Math.floor((t-d)*e)}),19&t.$$.dirty&&s&&a&&b(),4096&t.$$.dirty&&u&&b(),4112&t.$$.dirty&&u&&v(d),32768&t.$$.dirty&&p&&fetch(p).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Ln(t,e[t])})}).catch(t=>{console.log(t)}),8200&t.$$.dirty&&o&&c){let t=document.createElement("style");t.innerHTML=c,o.appendChild(t)}if(16392&t.$$.dirty&&o&&h){let t=new URL(h),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{o.appendChild(e)},1),setTimeout(()=>{},500)})}},[s,a,l,o,d,m,f,n,i,b,t=>{let e=new Date(t),r=new Intl.DateTimeFormat(u,{month:"long"}).format(e);return`${e.getDate()} ${r}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, `+e.getUTCFullYear()},v,u,c,h,p,function(t){it[t?"unshift":"push"](()=>{o=t,r(3,o)})}]}function Vn(t,e){Qr(t,e)}customElements.get("casino-tournaments-thumbnail-duration")||customElements.define("casino-tournaments-thumbnail-duration",class extends lt{constructor(t){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>',nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Jn,Gn,_,{startdate:0,enddate:1,status:2,lang:12,clientstyling:13,clientstylingurl:14,translationurl:15},null),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["startdate","enddate","status","lang","clientstyling","clientstylingurl","translationurl"]}get startdate(){return this.$$.ctx[0]}set startdate(t){this.$$set({startdate:t}),g()}get enddate(){return this.$$.ctx[1]}set enddate(t){this.$$set({enddate:t}),g()}get status(){return this.$$.ctx[2]}set status(t){this.$$set({status:t}),g()}get lang(){return this.$$.ctx[12]}set lang(t){this.$$set({lang:t}),g()}get clientstyling(){return this.$$.ctx[13]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[14]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[15]}set translationurl(t){this.$$set({translationurl:t}),g()}});const Wn={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:"Sıra"}},el:{tournamentsPrizes:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"}},es:{tournamentsPrizes:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"lugar"}},hu:{tournamentsPrizes:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"}},pt:{tournamentsPrizes:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"}}};function Xn(t,e,r){const n=t.slice();return n[13]=e[r],n[15]=r,n}function Kn(e){let n,i=e[1],o=[];for(let t=0;t<i.length;t+=1)o[t]=Zn(Xn(e,i,t));let s=null;return i.length||(s=Yn(e)),{c(){n=k("div");for(let t=0;t<o.length;t+=1)o[t].c();s&&s.c(),R(n,"class","Prizes"),R(n,"part","Prizes")},m(t,e){F(t,n,e);for(let t=0;t<o.length;t+=1)o[t].m(n,null);s&&s.m(n,null)},p(e,r){if(6&r){let t;for(i=e[1],t=0;t<i.length;t+=1){const s=Xn(e,i,t);o[t]?o[t].p(s,r):(o[t]=Zn(s),o[t].c(),o[t].m(n,null))}for(;t<o.length;t+=1)o[t].d(1);o.length=i.length,!i.length&&s?s.p(e,r):i.length?s&&(s.d(1),s=null):((s=Yn(e)).c(),s.m(n,null))}},d(t){t&&I(n),j(o,t),s&&s.d()}}}function Yn(t){let r,n,i=t[2]("tournamentsPrizes.noprizes")+"";return{c(){r=k("p"),n=L(i)},m(t,e){F(t,r,e),H(r,n)},p(t,e){4&e&&i!==(i=t[2]("tournamentsPrizes.noprizes")+"")&&N(n,i)},d(t){t&&I(r)}}}function Zn(t){let r,n,i,o,s,a,l,u,c,e,h,p=(1<t[13].count?t[13].rank+"~"+(t[13].rank+t[13].count-1):t[13].rank)+"",d=t[2]("tournamentsPrizes.place")+"",m=t[13].name+"";return{c(){r=k("div"),n=k("p"),i=k("span"),o=L(p),s=O(),a=L(d),l=L(": "),u=L(m),c=O(),R(i,"class","PrizeRank"),R(i,"part","PrizeRank"),R(n,"class","PrizeText"),R(n,"part","PrizeText"),R(r,"class",e="Prize Prize"+t[15]),R(r,"part",h="Prize Prize"+t[15])},m(t,e){F(t,r,e),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(t,e){2&e&&p!==(p=(1<t[13].count?t[13].rank+"~"+(t[13].rank+t[13].count-1):t[13].rank)+"")&&N(o,p),4&e&&d!==(d=t[2]("tournamentsPrizes.place")+"")&&N(a,d),2&e&&m!==(m=t[13].name+"")&&N(u,m)},d(t){t&&I(r)}}}function qn(r){let n,i,o,s,a,l,u,c=r[2]("tournamentsPrizes.prizes")+"",h=r[1]&&Kn(r);return{c(){n=k("div"),i=k("div"),(o=k("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=O(),a=k("p"),l=L(c),u=O(),h&&h.c(),this.c=v,R(o,"class","TournamentPrizesIconWrapper"),R(o,"part","TournamentPrizesIconWrapper"),R(a,"class","PrizesTitle"),R(a,"part","PrizesTitle"),R(i,"class","TournamentPrizesIconSection"),R(i,"part","TournamentPrizesIconSection"),R(n,"class","TournamentPrizes"),R(n,"part","TournamentPrizes")},m(t,e){F(t,n,e),H(n,i),H(i,o),H(i,s),H(i,a),H(a,l),H(n,u),h&&h.m(n,null),r[7](n)},p(t,[e]){4&e&&c!==(c=t[2]("tournamentsPrizes.prizes")+"")&&N(l,c),t[1]?h?h.p(t,e):((h=Kn(t)).c(),h.m(n,null)):h&&(h.d(1),h=null)},i:v,o:v,d(t){t&&I(n),h&&h.d(),r[7](null)}}}function Qn(t,e,r){let n;st(t,wn,t=>r(2,n=t));let i,o,{tourid:s=""}=e,{clientstyling:a=""}=e,{clientstylingurl:l=""}=e,{translationurl:u=""}=e;Object.keys(Wn).forEach(t=>{Vn(t,Wn[t])});const c=t=>{t.data&&t.data.type=="TournamentPrizes_"+s&&r(1,o=t.data.prizes)};return at(()=>(window.addEventListener("message",c,!1),()=>{window.removeEventListener("message",c)})),t.$$set=t=>{"tourid"in t&&r(3,s=t.tourid),"clientstyling"in t&&r(4,a=t.clientstyling),"clientstylingurl"in t&&r(5,l=t.clientstylingurl),"translationurl"in t&&r(6,u=t.translationurl)},t.$$.update=()=>{if(17&t.$$.dirty&&i&&a){let t=document.createElement("style");t.innerHTML=a,i.appendChild(t)}if(33&t.$$.dirty&&i&&l){let t=new URL(l),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{i.appendChild(e)},1),setTimeout(()=>{},500)})}64&t.$$.dirty&&u&&fetch(u).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Vn(t,e[t])})}).catch(t=>{console.log(t)})},[i,o,n,s,a,l,u,function(t){it[t?"unshift":"push"](()=>{i=t,r(0,i)})}]}function ti(t,e){Qr(t,e)}customElements.get("casino-tournaments-thumbnail-prizes")||customElements.define("casino-tournaments-thumbnail-prizes",class extends lt{constructor(t){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>',nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},Qn,qn,_,{tourid:3,clientstyling:4,clientstylingurl:5,translationurl:6},null),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["tourid","clientstyling","clientstylingurl","translationurl"]}get tourid(){return this.$$.ctx[3]}set tourid(t){this.$$set({tourid:t}),g()}get clientstyling(){return this.$$.ctx[4]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[5]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[6]}set translationurl(t){this.$$set({translationurl:t}),g()}});const ei={en:{gamesSlider:{playNow:"Play now"}},zh:{gamesSlider:{playNow:"现在播放"}},fr:{gamesSlider:{playNow:"Joue maintenant"}},ro:{gamesSlider:{playNow:"Joaca acum"}},tr:{gamesSlider:{playNow:"Şimdi oyna"}},el:{gamesSlider:{playNow:"Παίξε τώρα"}},es:{gamesSlider:{playNow:"Jugar Ya"}},pt:{gamesSlider:{playNow:"Jogue agora"}}};function ri(t,e,r){const n=t.slice();return n[50]=e[r],n[52]=r,n}function ni(r){let i,n,o,s,a,l,u,c,h,p=r[1],d=[];for(let t=0;t<p.length;t+=1)d[t]=ii(ri(r,p,t));return{c(){(i=k("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=O(),o=k("main"),s=k("div");for(let t=0;t<d.length;t+=1)d[t].c();l=O(),(u=k("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>',R(i,"class","SliderNavButton"),R(i,"part","SliderNavButton"),J(i,"disabled",r[8]),R(s,"class","items"),R(s,"part","items"),m(s,"transform","translateX("+r[2]+"px)"),Q(()=>r[28].call(o)),R(u,"class","SliderNavButton"),R(u,"part","SliderNavButton"),J(u,"disabled",r[9])},m(t,e){F(t,i,e),F(t,n,e),F(t,o,e),H(o,s);for(let t=0;t<d.length;t+=1)d[t].m(s,null);r[27](s),a=function(t,e){"static"===getComputedStyle(t).position&&(t.style.position="relative");const r=k("iframe"),n=(r.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),r.setAttribute("aria-hidden","true"),r.tabIndex=-1,function(){if(void 0===$){$=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(t){$=!0}}return $}());let i;return n?(r.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",i=M(window,"message",t=>{t.source===r.contentWindow&&e()})):(r.src="about:blank",r.onload=()=>{i=M(r.contentWindow,"resize",e)}),H(t,r),()=>{(n||i&&r.contentWindow)&&i(),I(r)}}(o,r[28].bind(o)),F(t,l,e),F(t,u,e),c||(h=[M(i,"click",r[23]),M(u,"click",r[29])],c=!0)},p(e,r){if(256&r[0]&&J(i,"disabled",e[8]),23650&r[0]){let t;for(p=e[1],t=0;t<p.length;t+=1){var n=ri(e,p,t);d[t]?d[t].p(n,r):(d[t]=ii(n),d[t].c(),d[t].m(s,null))}for(;t<d.length;t+=1)d[t].d(1);d.length=p.length}4&r[0]&&m(s,"transform","translateX("+e[2]+"px)"),512&r[0]&&J(u,"disabled",e[9])},d(t){t&&I(i),t&&I(n),t&&I(o),j(d,t),r[27](null),a(),t&&I(l),t&&I(u),c=!1,P(h)}}}function ii(r){let n,i,o,s,a,l,u,c,h,p,d,m,f,g=r[10]("gamesSlider.playNow")+"";function y(){return r[24](r[50])}function b(){return r[25](r[52])}return{c(){n=k("div"),i=k("span"),o=L(g),l=O(),u=k("img"),d=O(),R(i,"class",s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),R(i,"part",a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":"")),z(u.src,c=r[50].thumbnail)||R(u,"src",c),R(u,"width","132px"),R(u,"height","100px"),R(u,"alt",h=r[50].name),R(u,"title",p=r[50].name),R(n,"class","item"),R(n,"part","item")},m(t,e){F(t,n,e),H(n,i),H(i,o),H(n,l),H(n,u),H(n,d),m||(f=[M(n,"click",y),M(n,"mouseenter",b),M(n,"mouseleave",r[26])],m=!0)},p(t,e){r=t,1024&e[0]&&g!==(g=r[10]("gamesSlider.playNow")+"")&&N(o,g),96&e[0]&&s!==(s="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&R(i,"class",s),96&e[0]&&a!==(a="PlayNowButton "+(r[5]&&r[6]==r[52]?"itemHover":""))&&R(i,"part",a),2&e[0]&&!z(u.src,c=r[50].thumbnail)&&R(u,"src",c),2&e[0]&&h!==(h=r[50].name)&&R(u,"alt",h),2&e[0]&&p!==(p=r[50].name)&&R(u,"title",p)},d(t){t&&I(n),m=!1,P(f)}}}function oi(r){let n,i,o=r[1]&&ni(r);return{c(){n=k("div"),i=k("div"),o&&o.c(),this.c=v,R(i,"class","TournamentsGamesSlider"),R(i,"part","TournamentsGamesSlider")},m(t,e){F(t,n,e),H(n,i),o&&o.m(i,null),r[30](i),r[31](n)},p(t,e){t[1]?o?o.p(t,e):((o=ni(t)).c(),o.m(i,null)):o&&(o.d(1),o=null)},i:v,o:v,d(t){t&&I(n),o&&o.d(),r[30](null),r[31](null)}}}function si(t,e,r){let n,i,o;st(t,wn,t=>r(10,o=t));let s,a,l,u,c,h,{tournamenturl:p=""}=e,{scrollby:d="3"}=e,{pagfactor:m="175"}=e,{lang:f=""}=e,{translationurl:g=""}=e,{clientstyling:y=""}=e,{clientstylingurl:b=""}=e,v=window.navigator.userAgent,w=[],E=0,T=null,x=null,A=!1,S=0;Object.keys(ei).forEach(t=>{ti(t,ei[t])});const _=t=>{r(5,A=!0),r(6,u=t)},B=()=>{r(5,A=!1),r(6,u=-1)},$=t=>{t=(t.touches||t.originalEvent.touches)[0];T=t.clientX,x=t.clientY},P=t=>{var e;T&&x&&(e=t.touches[0].clientX,t=t.touches[0].clientY,e=T-e,t=x-t,Math.abs(e)>Math.abs(t)&&C(0<e?1:-1),T=null,x=null)},C=t=>{0<t&&!i?(r(2,E-=a),r(2,E=E<S?S:E)):t<0&&!n&&(r(2,E+=a),r(2,E=0<E?0:E))},H=t=>{window.postMessage({type:"TournamentGameAction",gameId:t.id,name:t.name},window.location.href)};return at(()=>(a=parseInt(d,10)*parseInt(m,10),()=>{l.removeEventListener("touchstart",$),l.removeEventListener("touchmove",P)})),t.$$set=t=>{"tournamenturl"in t&&r(17,p=t.tournamenturl),"scrollby"in t&&r(15,d=t.scrollby),"pagfactor"in t&&r(16,m=t.pagfactor),"lang"in t&&r(18,f=t.lang),"translationurl"in t&&r(19,g=t.translationurl),"clientstyling"in t&&r(20,y=t.clientstyling),"clientstylingurl"in t&&r(21,b=t.clientstylingurl)},t.$$.update=()=>{if(4&t.$$.dirty[0]&&r(8,n=0===E),4194308&t.$$.dirty[0]&&r(9,i=E<=S),16&t.$$.dirty[0]&&h&&0<h&&h<Math.floor((parseInt(d)+1)*m)&&r(15,d=Math.ceil(h/m).toString()),131072&t.$$.dirty[0]&&p){let t=new URL(p),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("pagination",`games(limit=30,offset=${E})`),t.searchParams.append("fields","games(id,name,thumbnail)"),t.searchParams.append("language",f),t.searchParams.append("platform",En(v)),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{r(1,w=t.item.games.items),t.item.games.total})}if(8&t.$$.dirty[0]&&l&&(l.addEventListener("touchstart",$,{passive:!0}),l.addEventListener("touchmove",P,{passive:!0})),524288&t.$$.dirty[0]&&g&&fetch(g).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{ti(t,e[t])})}).catch(t=>{console.log(t)}),2&t.$$.dirty[0]&&w.length&&setTimeout(()=>{r(22,S=-1*(c.scrollWidth-c.clientWidth)),r(16,m=new String(c.scrollWidth/w.length)),a=parseInt(d,10)*parseFloat(m,2).toFixed(2)},1e3),1048577&t.$$.dirty[0]&&y&&s){let t=document.createElement("style");t.innerHTML=y,s.appendChild(t)}if(2097153&t.$$.dirty[0]&&b&&s){let t=new URL(b),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{s.appendChild(e)},1),setTimeout(()=>{},500)})}},r(2,E=0),[s,w,E,l,h,A,u,c,n,i,o,_,B,C,H,d,m,p,f,g,y,b,S,()=>C(-1),t=>H(t),t=>_(t),()=>B(),function(t){it[t?"unshift":"push"](()=>{c=t,r(7,c)})},function(){h=this.clientWidth,r(4,h)},()=>C(1),function(t){it[t?"unshift":"push"](()=>{l=t,r(3,l)})},function(t){it[t?"unshift":"push"](()=>{s=t,r(0,s)})}]}function ai(t){let r,n,i,o,s,a,l,u,c,h=t[13]&&ui(t);function p(t){return t[13]?"Closed"!=t[22]&&"Closing"!=t[22]?pi:"true"==t[3]?hi:void 0:di}let d=p(t),m=d&&d(t),f=(t[16]||t[18])&&wi(t),g="true"==t[4]&&Ei(t);return{c(){r=k("div"),n=k("casino-tournaments-thumbnail"),i=O(),h&&h.c(),o=O(),s=k("div"),m&&m.c(),a=O(),f&&f.c(),l=O(),g&&g.c(),y(n,"session",t[0]),y(n,"userid",t[1]),y(n,"title",t[19]),y(n,"status",t[22]),y(n,"startdate",t[20]),y(n,"tourid",t[23]),y(n,"scorecriteria",t[26]),y(n,"minbetcount",t[27]),y(n,"thumbnail",t[24]),y(n,"userenrolled",t[25]),y(n,"showenrolled",t[5]),y(n,"gameurl",t[29]),y(n,"clientstyling",t[10]),y(n,"clientstylingurl",t[11]),y(n,"lang",t[8]),y(n,"keepbrowsercontext",t[9]),y(n,"exportparts","Thumbnail, Status, Enrolled, CardImg, CardImgFinished, Details, Title, Date, ScoreCriteria, ScoreCriteriaP, ScoreCriteriaSpan, Games, GamesP, GamesAnchor, StatusUnstarted, StatusRunning, StatusClosed, StatusClosing"),R(s,"class","TournamentButtons"),R(s,"part","TournamentButtons"),R(r,"class",u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")),R(r,"part",c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))},m(t,e){F(t,r,e),H(r,n),H(r,i),h&&h.m(r,null),H(r,o),H(r,s),m&&m.m(s,null),H(r,a),f&&f.m(r,null),H(r,l),g&&g.m(r,null)},p(t,e){1&e[0]&&y(n,"session",t[0]),2&e[0]&&y(n,"userid",t[1]),524288&e[0]&&y(n,"title",t[19]),4194304&e[0]&&y(n,"status",t[22]),1048576&e[0]&&y(n,"startdate",t[20]),8388608&e[0]&&y(n,"tourid",t[23]),67108864&e[0]&&y(n,"scorecriteria",t[26]),134217728&e[0]&&y(n,"minbetcount",t[27]),16777216&e[0]&&y(n,"thumbnail",t[24]),33554432&e[0]&&y(n,"userenrolled",t[25]),32&e[0]&&y(n,"showenrolled",t[5]),536870912&e[0]&&y(n,"gameurl",t[29]),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),256&e[0]&&y(n,"lang",t[8]),512&e[0]&&y(n,"keepbrowsercontext",t[9]),t[13]?h?h.p(t,e):((h=ui(t)).c(),h.m(r,o)):h&&(h.d(1),h=null),d===(d=p(t))&&m?m.p(t,e):(m&&m.d(1),(m=d&&d(t))&&(m.c(),m.m(s,null))),t[16]||t[18]?f?f.p(t,e):((f=wi(t)).c(),f.m(r,l)):f&&(f.d(1),f=null),"true"==t[4]?g?g.p(t,e):((g=Ei(t)).c(),g.m(r,null)):g&&(g.d(1),g=null),1073742016&e[0]&&u!==(u="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"class",u),1073742016&e[0]&&c!==(c="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"part",c)},d(t){t&&I(r),h&&h.d(),m&&m.d(),f&&f.d(),g&&g.d()}}}function li(t){let r,n,i,o;return{c(){r=k("div"),(n=k("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>',R(n,"class","ph-item"),R(n,"part","ph-item"),R(r,"class",i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")),R(r,"part",o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))},m(t,e){F(t,r,e),H(r,n)},p(t,e){1073742016&e[0]&&i!==(i="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"class",i),1073742016&e[0]&&o!==(o="TournamentCard "+(t[6]?"CardMaxWidth":"")+(t[7]?"CardFullSize":"")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn")+" "+(t[30]?"elementToFadeOut":"elementToFadeIn"))&&R(r,"part",o)},d(t){t&&I(r)}}}function ui(t){let r,n,i=t[23]&&ci(t);return{c(){i&&i.c(),r=O(),y(n=k("casino-tournaments-thumbnail-duration"),"clientstyling",t[10]),y(n,"clientstylingurl",t[11]),y(n,"status",t[22]),y(n,"startdate",t[20]),y(n,"lang",t[8]),y(n,"enddate",t[21]),y(n,"exportparts","TournamentDuration, TournamentDates, StartDate, EndDate, ProgressBar, ProgressBarFillEnd, Finished, ProgressBarFillStarting, Remaining, ProgressBarFill")},m(t,e){i&&i.m(t,e),F(t,r,e),F(t,n,e)},p(t,e){t[23]?i?i.p(t,e):((i=ci(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),4194304&e[0]&&y(n,"status",t[22]),1048576&e[0]&&y(n,"startdate",t[20]),256&e[0]&&y(n,"lang",t[8]),2097152&e[0]&&y(n,"enddate",t[21])},d(t){i&&i.d(t),t&&I(r),t&&I(n)}}}function ci(r){let n,i,o,s;return{c(){y(n=k("casino-tournaments-thumbnail-prizes"),"tourid",r[23]),y(n,"clientstyling",r[10]),y(n,"clientstylingurl",r[11]),y(n,"exportparts","TournamentPrizes, TournamentPrizesSvg, a, TournamentPrizesSvgA, PrizesTitle, Prizes, Prize, PrizeText, PrizeRank, TournamentPrizesIconSection, TournamentPrizesIconWrapper")},m(t,e){F(t,n,e),o||(s=C(i=r[36].call(null,n,r[23])),o=!0)},p(t,e){8388608&e[0]&&y(n,"tourid",t[23]),1024&e[0]&&y(n,"clientstyling",t[10]),2048&e[0]&&y(n,"clientstylingurl",t[11]),i&&S(i.update)&&8388608&e[0]&&i.update.call(null,t[23])},d(t){t&&I(n),o=!1,s()}}}function hi(r){let n,i,o,s,a=r[31]("tournamentsThController.details")+"";return{c(){n=k("button"),i=L(a),R(n,"class","DetailsLargeButton"),R(n,"part","DetailsLargeButton")},m(t,e){F(t,n,e),H(n,i),o||(s=M(n,"click",r[50]),o=!0)},p(t,e){1&e[1]&&a!==(a=t[31]("tournamentsThController.details")+"")&&N(i,a)},d(t){t&&I(n),o=!1,s()}}}function pi(t){let r,n,i="true"==t[3]&&mi(t);function o(t){return 1==t[25]?gi:fi}let s=o(t),a=s(t);return{c(){i&&i.c(),r=O(),a.c(),n=G()},m(t,e){i&&i.m(t,e),F(t,r,e),a.m(t,e),F(t,n,e)},p(t,e){"true"==t[3]?i?i.p(t,e):((i=mi(t)).c(),i.m(r.parentNode,r)):i&&(i.d(1),i=null),s===(s=o(t))&&a?a.p(t,e):(a.d(1),(a=s(t))&&(a.c(),a.m(n.parentNode,n)))},d(t){i&&i.d(t),t&&I(r),a.d(t),t&&I(n)}}}function di(r){let n,i,o,s,a,l,u,c=r[31]("tournamentsThController.login")+"",h=r[31]("tournamentsThController.register")+"";return{c(){n=k("button"),i=L(c),o=O(),s=k("button"),a=L(h),R(n,"class","LoginButton"),R(n,"part","LoginButton"),R(s,"class","RegisterButton"),R(s,"part","RegisterButton")},m(t,e){F(t,n,e),H(n,i),F(t,o,e),F(t,s,e),H(s,a),l||(u=[M(n,"click",r[46]),M(s,"click",r[47])],l=!0)},p(t,e){1&e[1]&&c!==(c=t[31]("tournamentsThController.login")+"")&&N(i,c),1&e[1]&&h!==(h=t[31]("tournamentsThController.register")+"")&&N(a,h)},d(t){t&&I(n),t&&I(o),t&&I(s),l=!1,P(u)}}}function mi(r){let n,i,o,s,a=r[31]("tournamentsThController.details")+"";return{c(){n=k("button"),i=L(a),R(n,"class","DetailsButton"),R(n,"part","DetailsButton")},m(t,e){F(t,n,e),H(n,i),o||(s=M(n,"click",r[48]),o=!0)},p(t,e){1&e[1]&&a!==(a=t[31]("tournamentsThController.details")+"")&&N(i,a)},d(t){t&&I(n),o=!1,s()}}}function fi(r){let n,i,o,s,a;function l(t){return 1==t[15]?bi:yi}let u=l(r),c=u(r);return{c(){n=k("button"),c.c(),R(n,"class",i="JoinButton "+(r[7]?"JoinButtonFullSize":"")),R(n,"part",o="JoinButton "+(r[7]?"JoinButtonFullSize":"")),n.disabled=r[16]},m(t,e){F(t,n,e),c.m(n,null),s||(a=M(n,"click",r[49]),s=!0)},p(t,e){u===(u=l(t))&&c?c.p(t,e):(c.d(1),(c=u(t))&&(c.c(),c.m(n,null))),128&e[0]&&i!==(i="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&R(n,"class",i),128&e[0]&&o!==(o="JoinButton "+(t[7]?"JoinButtonFullSize":""))&&R(n,"part",o),65536&e[0]&&(n.disabled=t[16])},d(t){t&&I(n),c.d(),s=!1,a()}}}function gi(t){let r,n="true"==t[3]&&vi(t);return{c(){n&&n.c(),r=G()},m(t,e){n&&n.m(t,e),F(t,r,e)},p(t,e){"true"==t[3]?n?n.p(t,e):((n=vi(t)).c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&I(r)}}}function yi(t){let r,n,i,o,s,a,l,u,c,h=t[31]("tournamentsThController.join")+"";return{c(){r=k("span"),n=L(h),i=O(),o=e("svg"),s=e("defs"),a=e("style"),l=L(".a{fill:var(--emfe-w-color-white, #FFFFFF);}"),u=e("g"),c=e("path"),R(r,"part","JoinButtonSpan"),R(c,"class","a"),R(c,"part","a JoinButtonSvgA"),R(c,"d","M13,0,10.636,2.364l8.948,8.948H0v3.377H19.584l-8.948,8.948L13,26,26,13Z"),R(c,"transform","translate(26 26) rotate(180)"),R(u,"transform","translate(26 26) rotate(180)"),R(o,"part","JoinButtonSvg"),R(o,"xmlns","http://www.w3.org/2000/svg"),R(o,"width","26"),R(o,"height","26"),R(o,"viewBox","0 0 26 26")},m(t,e){F(t,r,e),H(r,n),F(t,i,e),F(t,o,e),H(o,s),H(s,a),H(a,l),H(o,u),H(u,c)},p(t,e){1&e[1]&&h!==(h=t[31]("tournamentsThController.join")+"")&&N(n,h)},d(t){t&&I(r),t&&I(i),t&&I(o)}}}function bi(t){let r,n;return{c(){r=e("svg"),R(n=e("circle"),"cx","20"),R(n,"cy","20"),R(n,"r","18"),R(r,"class","spinner"),R(r,"part","spinner")},m(t,e){F(t,r,e),H(r,n)},p:v,d(t){t&&I(r)}}}function vi(t){let r,n,i=t[31]("tournamentsThController.enrolled")+"";return{c(){r=k("button"),n=L(i),R(r,"class","EnrolledButton"),R(r,"part","EnrolledButton"),r.disabled=!0},m(t,e){F(t,r,e),H(r,n)},p(t,e){1&e[1]&&i!==(i=t[31]("tournamentsThController.enrolled")+"")&&N(n,i)},d(t){t&&I(r)}}}function wi(t){let r,n,i,o,s=t[31]("tournamentsThController.joinerror")+"";return{c(){r=k("span"),n=L(s),i=O(),o=L(t[17]),R(r,"class","ErrorText"),R(r,"part","ErrorText")},m(t,e){F(t,r,e),H(r,n),H(r,i),H(r,o)},p(t,e){1&e[1]&&s!==(s=t[31]("tournamentsThController.joinerror")+"")&&N(n,s),131072&e[0]&&N(o,t[17])},d(t){t&&I(r)}}}function Ei(t){let r;return{c(){y(r=k("casino-tournaments-thumbnail-games-slider"),"clientstyling",t[10]),y(r,"clientstylingurl",t[11]),y(r,"tournamenturl",t[2]),y(r,"lang",t[8]),y(r,"scrollby","2"),y(r,"exportparts","TournamentsGamesSlider, SliderNavButton, items, item, PlayNowButton, itemHover, SliderNavButton")},m(t,e){F(t,r,e)},p(t,e){1024&e[0]&&y(r,"clientstyling",t[10]),2048&e[0]&&y(r,"clientstylingurl",t[11]),4&e[0]&&y(r,"tournamenturl",t[2]),256&e[0]&&y(r,"lang",t[8])},d(t){t&&I(r)}}}function Ti(r){let n;function i(t){return t[14]?li:t[19]?ai:void 0}let o=i(r),s=o&&o(r);return{c(){n=k("div"),s&&s.c(),this.c=v},m(t,e){F(t,n,e),s&&s.m(n,null),r[51](n)},p(t,e){o===(o=i(t))&&s?s.p(t,e):(s&&s.d(1),(s=o&&o(t))&&(s.c(),s.m(n,null)))},i:v,o:v,d(t){t&&I(n),s&&s.d(),r[51](null)}}}function xi(t,e,u){let r;st(t,wn,t=>u(31,r=t));let n,i,o,s,a,c,l,h,p,O,d,{session:m=""}=e,{userid:M=""}=e,{tournamenturl:f=""}=e,g=e["touridx"],{endpoint:y=""}=e,{showdetails:R=""}=e,{showslider:N=""}=e,{showenrolled:D=""}=e,{maxwidth:z=""}=e,{fullsize:U=""}=e,{lang:b=""}=e,{loginevent:v=""}=e,{registerevent:w=""}=e,{loginurl:E=""}=e,{registerurl:T=""}=e,{currency:x=""}=e,{keepbrowsercontext:j="false"}=e,{clientstyling:A=""}=e,{clientstylingurl:S=""}=e,{translationurl:_=""}=e,B=!1,$="",P=!0,G=window.navigator.userAgent,C=!1,H=!1,J="There was an error while trying to join the tournament",F=!1,V=[],I=[],W="#",k=!1;var X,K;({withLocale:X,translations:K}={withLocale:"en",translations:{}}),ot.subscribe(t=>{null==t&&(Zr.set(K),ot.set(X))}),Object.keys(xn).forEach(t=>{Tn(t,xn[t])});const Y=t=>{q(t),nt(t),rt(this,c)},Z=r=>{if(r.data&&"UserSessionID"==r.data.type&&(u(13,B=!0),$=r.data.session),"UpdateTournamentView"==r.data.type){var t=r.data.tournamentData;if(c&&c!=t.id)return;Y(t)}if(r.data&&r.data.type=="UpdateSingleTournament_"+g){let t=r.data.tournamentData,e=g<4?100*g:300*Math.random()+300;u(30,k=1==g),setTimeout(()=>{u(30,k=!0),u(23,c=t.id),Y(t)},e),setTimeout(()=>{u(30,k=!1)},200+e)}},q=t=>{t.state!=a&&(u(22,a=t.state),window.postMessage({type:"TournamentStatus_"+c,status:a},window.location.href))},Q=()=>{v&&(window.postMessage({type:v,transition:"Login"},window.location.href),"function"==typeof gtag&>ag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),E&&(window.location=E)},tt=()=>{w&&(window.postMessage({type:w,transition:"Register"},window.location.href),"function"==typeof gtag&>ag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),T&&(window.location=T)},L=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)},et=async(e,t)=>{u(16,H=!1),u(18,F=!1),window.postMessage({type:"TournamentJoinRequest",tournamentId:e},window.location.href),u(15,C=!0);let r=new URL(y+"/bonus/claim"),n=new Headers,i={},o=(r.searchParams.append("language",b),r.searchParams.append("platform",En(G)),n.append("Content-Type","application/json"),n.append("X-SessionID",$),t&&1<=t.length&&(i={language:b,bonusCode:t[0].code,currency:x}),{method:"PUT",headers:n,body:JSON.stringify(i)});const s=()=>{u(15,C=!1),u(25,h=!0)},a=t=>{u(15,C=!1),t&&u(17,J=t),u(16,H=!0)},l=await(async()=>{let t;try{t=await(t=await fetch(r,o)).json()}catch(t){a()}return t})();if(l)if(1==l.success)s();else if(l.errorMessage.match("VersionMismatchException")){let t;null!=(e=null==(t=await(t=await fetch(y+"/tournaments/"+c,{headers:{"X-SessionID":m}})).json())?void 0:t.item)&&e.playerEnrolled?s():(a(l.errorMessage),u(18,F=!0),u(16,H=!1))}else a(l.errorMessage)},rt=(t,e)=>{window.postMessage({type:"TournamentPrizes_"+e,prizes:V},window.location.href)},nt=t=>{t&&(u(19,i=t.nameOrTitle||""),u(20,o=t.startTime),u(21,s=t.endTime),u(22,a=t.state),u(23,c=t.id),u(24,l=t.thumbnail),u(25,h=t.playerEnrolled||!1),u(26,p=t.scoreCriteria),u(27,O=t.minBetCount),V=t.prizes,u(28,I=t.wallets||[]),u(29,W=t.termsUrl||"#"))};return at(()=>(u(14,P=!1),window.addEventListener("message",Z,!1),()=>{window.removeEventListener("message",Z)})),t.$$set=t=>{"session"in t&&u(0,m=t.session),"userid"in t&&u(1,M=t.userid),"tournamenturl"in t&&u(2,f=t.tournamenturl),"touridx"in t&&u(37,g=t.touridx),"endpoint"in t&&u(38,y=t.endpoint),"showdetails"in t&&u(3,R=t.showdetails),"showslider"in t&&u(4,N=t.showslider),"showenrolled"in t&&u(5,D=t.showenrolled),"maxwidth"in t&&u(6,z=t.maxwidth),"fullsize"in t&&u(7,U=t.fullsize),"lang"in t&&u(8,b=t.lang),"loginevent"in t&&u(39,v=t.loginevent),"registerevent"in t&&u(40,w=t.registerevent),"loginurl"in t&&u(41,E=t.loginurl),"registerurl"in t&&u(42,T=t.registerurl),"currency"in t&&u(43,x=t.currency),"keepbrowsercontext"in t&&u(9,j=t.keepbrowsercontext),"clientstyling"in t&&u(10,A=t.clientstyling),"clientstylingurl"in t&&u(11,S=t.clientstylingurl),"translationurl"in t&&u(44,_=t.translationurl)},t.$$.update=()=>{if(5120&t.$$.dirty[0]&&n&&A){let t=document.createElement("style");t.innerHTML=A,n.appendChild(t)}if(6144&t.$$.dirty[0]&&n&&S){let t=new URL(S),e=document.createElement("style");fetch(t.href).then(t=>t.text()).then(t=>{e.innerHTML=t,setTimeout(()=>{n.appendChild(e)},1),setTimeout(()=>{},500)})}if(8192&t.$$.dirty[1]&&_&&fetch(_).then(t=>t.json()).then(e=>{Object.keys(e).forEach(t=>{Tn(t,e[t])})}).catch(t=>{console.log(t)}),1&t.$$.dirty[0]&&m&&(0<m.length&&"false"!=m?($=m,u(13,B=!0)):u(13,B=!1)),260&t.$$.dirty[0]&&u(45,d=f&&b),16384&t.$$.dirty[1]&&d){u(14,P=!0);{var r=f;u(14,P=!0);let t=new URL(r),e=new Headers;t.searchParams.append("language",b),t.searchParams.append("platform",En(G)),B&&e.append("X-SessionID",$),fetch(t,{method:"GET",headers:e}).then(t=>t.json()).then(t=>{u(14,P=!1),nt(t.item)})}}},[m,M,f,R,N,D,z,U,b,j,A,S,n,B,P,C,H,J,F,i,o,s,a,c,l,h,p,O,I,W,k,r,Q,tt,L,et,rt,g,y,v,w,E,T,x,_,d,()=>Q(),()=>tt(),()=>L(c),()=>et(c,I),()=>L(c),function(t){it[t?"unshift":"push"](()=>{n=t,u(12,n)})}]}customElements.get("casino-tournaments-thumbnail-games-slider")||customElements.define("casino-tournaments-thumbnail-games-slider",class extends lt{constructor(t){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 0.5rem;color:var(--emfe-w-color-white, #FFFFFF);text-transform:uppercase;text-align:center;font-weight:600;font-size:0.7rem;cursor:pointer;transition:opacity 0.4s linear;opacity:0;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.itemHover{opacity:1}.items .item:first-child{margin-left:0}.items .item:last-child{margin-right:0}</style>',nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},si,oi,_,{tournamenturl:17,scrollby:15,pagfactor:16,lang:18,translationurl:19,clientstyling:20,clientstylingurl:21},null,[-1,-1]),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.props),g()))}static get observedAttributes(){return["tournamenturl","scrollby","pagfactor","lang","translationurl","clientstyling","clientstylingurl"]}get tournamenturl(){return this.$$.ctx[17]}set tournamenturl(t){this.$$set({tournamenturl:t}),g()}get scrollby(){return this.$$.ctx[15]}set scrollby(t){this.$$set({scrollby:t}),g()}get pagfactor(){return this.$$.ctx[16]}set pagfactor(t){this.$$set({pagfactor:t}),g()}get lang(){return this.$$.ctx[18]}set lang(t){this.$$set({lang:t}),g()}get translationurl(){return this.$$.ctx[19]}set translationurl(t){this.$$set({translationurl:t}),g()}get clientstyling(){return this.$$.ctx[20]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[21]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}});class Ai extends lt{constructor(t){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.3333333333%}.ph-col-6{flex:0 0 50%}.ph-col-8{flex:0 0 66.6666666667%}.ph-col-12{flex:0 0 100%}[class*=ph-col]{direction:ltr}[class*=ph-col]>*+.ph-row{margin-top:0}[class*=ph-col]>*+*{margin-top:7.5px}.ph-picture{width:100%;height:120px;background-color:var(--emfe-w-color-gray-100, #E6E6E6)}@keyframes phAnimation{0%{transform:translate3d(-30%, 0, 0)}100%{transform:translate3d(30%, 0, 0)}}svg.spinner{width:40px;height:40px;x:0px;y:0px;viewBox:0 0 40 40}svg.spinner circle{fill:transparent;stroke:var(--emfe-w-color-contrast, #07072A);stroke-width:4;stroke-linecap:round;stroke-dasharray:125.6;-webkit-transform-origin:20px 20px 0;-moz-transform-origin:20px 20px 0;-ms-transform-origin:20px 20px 0;-o-transform-origin:20px 20px 0;transform-origin:20px 20px 0;-webkit-animation:spinner 2s linear infinite;-moz-animation:spinner 2s linear infinite;-ms-animation:spinner 2s linear infinite;-o-animation:spinner 2s linear infinite;animation:spinner 2s linear infinite}@-webkit-keyframes spinner{0%{-webkit-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-webkit-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-webkit-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-moz-keyframes spinner{0%{-moz-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-moz-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-moz-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-ms-keyframes spinner{0%{-ms-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-ms-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-ms-transform:rotate(1080deg);stroke-dashoffset:26.4}}@-o-keyframes spinner{0%{-o-transform:rotate(0deg);stroke-dashoffset:26.4}50%{-o-transform:rotate(720deg);stroke-dashoffset:125.6}100%{-o-transform:rotate(1080deg);stroke-dashoffset:26.4}}@keyframes spinner{0%{transform:rotate(0deg);stroke-dashoffset:26.4}50%{transform:rotate(720deg);stroke-dashoffset:125.6}100%{transform:rotate(1080deg);stroke-dashoffset:26.4}}@-webkit-keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@keyframes fadein{0%{opacity:0}40%{opacity:0}100%{opacity:1}}@-webkit-keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}@keyframes fadeout{0%{opacity:1}40%{opacity:0}100%{opacity:0}}.elementToFadeIn{-webkit-animation:fadein 2s linear forwards;animation:fadein 2s linear forwards}.elementToFadeOut{-webkit-animation:fadeout 0.1s ease-out forwards;animation:fadeout 0.1s ease-out forwards}</style>',nt(this,{target:this.shadowRoot,props:V(this.attributes),customElement:!0},xi,Ti,_,{session:0,userid:1,tournamenturl:2,touridx:37,endpoint:38,showdetails:3,showslider:4,showenrolled:5,maxwidth:6,fullsize:7,lang:8,loginevent:39,registerevent:40,loginurl:41,registerurl:42,currency:43,keepbrowsercontext:9,clientstyling:10,clientstylingurl:11,translationurl:44},null,[-1,-1,-1]),t&&(t.target&&F(t.target,this,t.anchor),t.props&&(this.$set(t.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","translationurl"]}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),g()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),g()}get tournamenturl(){return this.$$.ctx[2]}set tournamenturl(t){this.$$set({tournamenturl:t}),g()}get touridx(){return this.$$.ctx[37]}set touridx(t){this.$$set({touridx:t}),g()}get endpoint(){return this.$$.ctx[38]}set endpoint(t){this.$$set({endpoint:t}),g()}get showdetails(){return this.$$.ctx[3]}set showdetails(t){this.$$set({showdetails:t}),g()}get showslider(){return this.$$.ctx[4]}set showslider(t){this.$$set({showslider:t}),g()}get showenrolled(){return this.$$.ctx[5]}set showenrolled(t){this.$$set({showenrolled:t}),g()}get maxwidth(){return this.$$.ctx[6]}set maxwidth(t){this.$$set({maxwidth:t}),g()}get fullsize(){return this.$$.ctx[7]}set fullsize(t){this.$$set({fullsize:t}),g()}get lang(){return this.$$.ctx[8]}set lang(t){this.$$set({lang:t}),g()}get loginevent(){return this.$$.ctx[39]}set loginevent(t){this.$$set({loginevent:t}),g()}get registerevent(){return this.$$.ctx[40]}set registerevent(t){this.$$set({registerevent:t}),g()}get loginurl(){return this.$$.ctx[41]}set loginurl(t){this.$$set({loginurl:t}),g()}get registerurl(){return this.$$.ctx[42]}set registerurl(t){this.$$set({registerurl:t}),g()}get currency(){return this.$$.ctx[43]}set currency(t){this.$$set({currency:t}),g()}get keepbrowsercontext(){return this.$$.ctx[9]}set keepbrowsercontext(t){this.$$set({keepbrowsercontext:t}),g()}get clientstyling(){return this.$$.ctx[10]}set clientstyling(t){this.$$set({clientstyling:t}),g()}get clientstylingurl(){return this.$$.ctx[11]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),g()}get translationurl(){return this.$$.ctx[44]}set translationurl(t){this.$$set({translationurl:t}),g()}}return customElements.get("casino-tournaments-thumbnail-controller")||customElements.define("casino-tournaments-thumbnail-controller",Ai),Ai});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-thumbnail-controller.js.map
|