@everymatrix/casino-tournaments-table 0.0.245 → 0.0.249

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 f(){}function h(t){return t()}function p(){return Object.create(null)}function d(t){t.forEach(h)}function m(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function E(t,...e){if(null==t)return f;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function w(t,e){t.appendChild(e)}function _(t,e,r){t.insertBefore(e,r||null)}function T(t){t.parentNode.removeChild(t)}function A(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function S(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function P(t){return document.createTextNode(t)}function L(){return P(" ")}function C(){return P("")}function O(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function N(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function R(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}let x;function b(t){x=t}const y=[],t=[],n=[],o=[],g=Promise.resolve();let v=!1;function I(t){n.push(t)}let i=!1;const s=new Set;function U(){if(!i){i=!0;do{for(let t=0;t<y.length;t+=1){var e=y[t];b(e),function(t){{var e;null!==t.fragment&&(t.update(),d(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(I))}}(e.$$)}for(b(null),y.length=0;t.length;)t.pop()();for(let t=0;t<n.length;t+=1){const r=n[t];s.has(r)||(s.add(r),r())}}while(n.length=0,y.length);for(;o.length;)o.pop()();v=!1,i=!1,s.clear()}}const M=new Set;function a(n,t,e,r,o,i,s=[-1]){var a,l=x;b(n);const u=n.$$={fragment:null,ctx:null,props:i,update:f,not_equal:o,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=e?e(n,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return u.ctx&&o(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]&&(y.push(t),v||(v=!0,g.then(U)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],u.update(),c=!0,d(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){const f=(r=t.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(f),f.forEach(T)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(M.delete(a),a.i(void 0)),function(e,t,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,r),n||I(()=>{var t=i.map(h).filter(m);s?s.push(...t):d(t),e.$$.on_mount=[]}),a.forEach(I)}(n,t.target,t.anchor,t.customElement),U()}b(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(m);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(d(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=f}$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 u,c,k="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==k&&k,D="URLSearchParams"in k,F="Symbol"in k&&"iterator"in Symbol,j="FileReader"in k&&"Blob"in k&&function(){try{return new Blob,!0}catch(t){return!1}}(),G="FormData"in k,$="ArrayBuffer"in k;function B(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 V(t){return t="string"!=typeof t?String(t):t}function z(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return F&&(t[Symbol.iterator]=function(){return t}),t}function X(e){this.map={},e instanceof X?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 q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function H(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function Y(t){var e=new FileReader,r=H(e);return e.readAsArrayBuffer(t),r}function K(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function W(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:j&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:G&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:D&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():$&&j&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=K(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):$&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=K(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):D&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},j&&(this.blob=function(){var t=q(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?q(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(Y)}),this.text=function(){var t,e,r=q(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=H(e=new FileReader),e.readAsText(t),r;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)},G&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}$&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&-1<u.indexOf(Object.prototype.toString.call(t))}),X.prototype.append=function(t,e){t=B(t),e=V(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},X.prototype.delete=function(t){delete this.map[B(t)]},X.prototype.get=function(t){return t=B(t),this.has(t)?this.map[t]:null},X.prototype.has=function(t){return this.map.hasOwnProperty(B(t))},X.prototype.set=function(t,e){this.map[B(t)]=V(e)},X.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},X.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),z(r)},X.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),z(e)},X.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),z(r)},F&&(X.prototype[Symbol.iterator]=X.prototype.entries);var Z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Q(t,e){if(!(this instanceof Q))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 Q){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new X(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 X(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<Z.indexOf(t)?t:r),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||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function J(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function tt(t,e){if(!(this instanceof tt))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 X(e.headers),this.url=e.url||"",this._initBody(t)}Q.prototype.clone=function(){return new Q(this,{body:this._bodyInit})},W.call(Q.prototype),W.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new X(this.headers),url:this.url})},tt.error=function(){var t=new tt(null,{status:0,statusText:""});return t.type="error",t};var et=[301,302,303,307,308];tt.redirect=function(t,e){if(-1===et.indexOf(e))throw new RangeError("Invalid status code");return new tt(null,{status:e,headers:{location:t}})};var rt=k.DOMException;try{new rt}catch(f){(rt=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),rt.prototype.constructor=rt}function nt(n,s){return new Promise(function(o,t){var e=new Q(n,s);if(e.signal&&e.signal.aborted)return t(new rt("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new X,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 e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new tt(n,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new rt("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&k.location.href?k.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(j?i.responseType="blob":$&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof X?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,V(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}nt.polyfill=!0,k.fetch||(k.fetch=nt,k.Headers=X,k.Request=Q,k.Response=tt),self.fetch.bind(self);var ot=function(t,e){return(ot=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 it(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}ot(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function st(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 at(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function lt(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function ut(t){return"function"==typeof t}function ct(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 ft=ct(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 ht(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var pt=(mt.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=st(i),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 i.remove(this);i=this.initialTeardown;if(ut(i))try{i()}catch(t){o=t instanceof ft?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=st(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{yt(c)}catch(t){o=null!=o?o:[],t instanceof ft?o=lt(lt([],at(o)),at(t.errors)):o.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(o)throw new ft(o)}},mt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof mt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},mt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},mt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},mt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ht(e,t)},mt.prototype.remove=function(t){var e=this._teardowns;e&&ht(e,t),t instanceof mt&&t._removeParent(this)},mt.EMPTY=((je=new mt).closed=!0,je),mt),dt=pt.EMPTY;function mt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function bt(t){return t instanceof pt||t&&"closed"in t&&ut(t.remove)&&ut(t.add)&&ut(t.unsubscribe)}function yt(t){ut(t)?t():t.unsubscribe()}var gt=void 0,vt=!1,Et=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],at(t)))};function wt(){}function _t(t){t()}var Tt,At,St=(it(Ct,At=pt),Ct.create=function(t,e,r){return new Pt(t,e,r)},Ct.prototype.next=function(t){this.isStopped||this._next(t)},Ct.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Ct.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Ct.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,At.prototype.unsubscribe.call(this),this.destination=null)},Ct.prototype._next=function(t){this.destination.next(t)},Ct.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Ct.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Ct),Pt=(it(Lt,Tt=St),Lt);function Lt(t,e,r){var n,o,i=Tt.call(this)||this;return ut(t)?o=t:t&&(o=t.next,e=t.error,r=t.complete,i&&vt?(n=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:n=t,o=null==o?void 0:o.bind(n),e=null==e?void 0:e.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Ot(o):wt,error:Ot(null!=e?e:Nt),complete:r?Ot(r):wt},i}function Ct(t){var e=At.call(this)||this;return e.isStopped=!1,t?bt(e.destination=t)&&t.add(e):e.destination=Rt,e}function Ot(n){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{n.apply(void 0,lt([],at(t)))}catch(t){e=t,Et(function(){throw e})}}}function Nt(t){throw t}var Rt={closed:!0,next:wt,error:Nt,complete:wt},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function It(t){return t}var Ut=(Mt.prototype.lift=function(t){var e=new Mt;return e.source=this,e.operator=t,e},Mt.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof St||n&&ut(n.next)&&ut(n.error)&&ut(n.complete)&&bt(n)?t:new Pt(t,e,r);return _t(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},Mt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Mt.prototype.forEach=function(n,t){var o=this;return new(t=kt(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Mt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Mt.prototype[xt]=function(){return this},Mt.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?It:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Mt.prototype.toPromise=function(t){var n=this;return new(t=kt(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Mt.create=function(t){return new Mt(t)},Mt);function Mt(t){t&&(this._subscribe=t)}function kt(t){return null!==(t=null!=t?t:gt)&&void 0!==t?t:Promise}var Dt,Ft,jt,Gt=ct(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=(it(Ht,jt=Ut),Ht.prototype.lift=function(t){var e=new Bt(this,this);return e.operator=t,e},Ht.prototype._throwIfClosed=function(){if(this.closed)throw new Gt},Ht.prototype.next=function(i){var s=this;_t(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=st(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}})},Ht.prototype.error=function(e){var r=this;_t(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)}})},Ht.prototype.complete=function(){var e=this;_t(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var t=e.observers;t.length;)t.shift().complete()}})},Ht.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Ht.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Ht.prototype._trySubscribe=function(t){return this._throwIfClosed(),jt.prototype._trySubscribe.call(this,t)},Ht.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Ht.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,n=this.observers;return e||r?dt:(n.push(t),new pt(function(){return ht(n,t)}))},Ht.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},Ht.prototype.asObservable=function(){var t=new Ut;return t.source=this,t},Ht.create=function(t,e){return new Bt(t,e)},Ht),Bt=(it(qt,Ft=$t),qt.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},qt.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},qt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},qt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:dt},qt),Vt={now:function(){return(Vt.delegate||Date).now()},delegate:void 0},zt=(it(Xt,Dt=$t),Xt.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(n.push(t),o||n.push(i.now()+e)),this._trimBuffer(),Dt.prototype.next.call(this,t)},Xt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},Xt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Xt);function Xt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=Vt);var n=Dt.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 qt(t,e){var r=Ft.call(this)||this;return r.destination=t,r.source=e,r}function Ht(){var t=jt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Yt=[],Kt={};const Wt=[];function Zt(n,o=f){let i;const s=[];function a(t){if(r(n,t)&&(n=t,i)){const t=!Wt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Wt.push(e,n)}if(t){for(let t=0;t<Wt.length;t+=2)Wt[t][0](Wt[t+1]);Wt.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=f){const r=[t,e];return s.push(r),1===s.length&&(i=o(a)||f),t(n),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function Qt(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:Zt(e,e=>{let r=!1;const n=[];let o=0,i=f;const s=()=>{var t;o||(i(),t=a(l?n[0]:n,e),c?e(t):i=m(t)?t:f)},t=u.map((t,e)=>E(t,t=>{n[e]=t,o&=~(1<<e),r&&s()},()=>{o|=1<<e}));return r=!0,s(),function(){d(t),i()}}).subscribe}}var Jt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===te));var e},te="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?se(Array.isArray(t)?[]:{},t,e):t}function re(t,e,r){return t.concat(e).map(function(t){return ee(t,r)})}function ne(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function oe(t,e){try{return e in t}catch(t){return!1}}function ie(n,o,i){var s={};return i.isMergeableObject(n)&&ne(n).forEach(function(t){s[t]=ee(n[t],i)}),ne(o).forEach(function(e){var t,r;(!oe(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(oe(n,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return se;var t=i.customMerge(e);return"function"==typeof t?t:se}()(n[e],o[e],i):s[e]=ee(o[e],i))}),s}function se(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||re,r.isMergeableObject=r.isMergeableObject||Jt,r.cloneUnlessOtherwiseSpecified=ee;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):ie(t,e,r):ee(e,r)}se.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return se(t,e,r)},{})};var ae=se,le=function(t,e){return(le=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 ue(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}le(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ce,fe,he,pe=function(){return(pe=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function de(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function me(t){return t.type===fe.literal}function be(t){return t.type===fe.number}function ye(t){return t.type===fe.date}function ge(t){return t.type===fe.time}function ve(t){return t.type===fe.select}function Ee(t){return t.type===fe.plural}function we(t){return t.type===fe.tag}function _e(t){return t&&"object"==typeof t&&t.type===he.number}function Te(t){return t&&"object"==typeof t&&t.type===he.dateTime}(Ge=ce=ce||{})[Ge.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",Ge[Ge.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",Ge[Ge.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",Ge[Ge.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",Ge[Ge.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",Ge[Ge.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",Ge[Ge.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",Ge[Ge.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",Ge[Ge.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",Ge[Ge.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",Ge[Ge.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",Ge[Ge.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",Ge[Ge.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",Ge[Ge.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",Ge[Ge.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",Ge[Ge.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",Ge[Ge.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",Ge[Ge.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",Ge[Ge.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",Ge[Ge.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",Ge[Ge.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",Ge[Ge.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",Ge[Ge.INVALID_TAG=23]="INVALID_TAG",Ge[Ge.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",Ge[Ge.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",Ge[Ge.UNCLOSED_TAG=27]="UNCLOSED_TAG",($e=fe=fe||{})[$e.literal=0]="literal",$e[$e.argument=1]="argument",$e[$e.number=2]="number",$e[$e.date=3]="date",$e[$e.time=4]="time",$e[$e.select=5]="select",$e[$e.plural=6]="plural",$e[$e.pound=7]="pound",$e[$e.tag=8]="tag",(Be=he=he||{})[Be.number=0]="number",Be[Be.dateTime=1]="dateTime";var Ae=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Se=/(?:[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 Pe,Le=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Ce=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oe=/^(@+)?(\+|#+)?$/g,Ne=/(\*)(0+)|(#+)(0+)|(0+)/g,Re=/^(0+)$/;function xe(t){var n={};return t.replace(Oe,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 Ie(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 Ue(t){return Ie(t)||{}}function Me(t){for(var s={},e=0,r=t;e<r.length;e++){var n,o=r[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.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=o.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=pe(pe(pe({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return pe(pe({},t),Ue(e))},{}));continue;case"engineering":s=pe(pe(pe({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return pe(pe({},t),Ue(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(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Ne,function(t,e,r,n,o,i){if(e)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Re.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Ce.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Ce,function(t,e,r,n,o,i){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=pe(pe({},s),xe(o.options[0])))}else Oe.test(o.stem)?s=pe(pe({},s),xe(o.stem)):((n=Ie(o.stem))&&(s=pe(pe({},s),n)),(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)),!Re.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=pe(pe({},s),n)))}return s}var ke=new RegExp("^"+Ae.source+"*"),De=new RegExp(Ae.source+"*$");function Fe(t,e){return{start:t,end:e}}var je=!!String.prototype.startsWith,xt=!!String.fromCodePoint,$t=!!Object.fromEntries,Ge=!!String.prototype.codePointAt,$e=!!String.prototype.trimStart,Be=!!String.prototype.trimEnd,Ve=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ae=!0;try{Ae="a"===(null===(Pe=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(f){Ae=!1}var ze,Xe,qe=je?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},He=xt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;i<o;){if(1114111<(r=t[i++]))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},Ye=$t?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],o=o[1];e[i]=o}return e},Ke=Ge?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var n,o=t.charCodeAt(e);return o<55296||56319<o||e+1===r||(n=t.charCodeAt(e+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},We=$e?function(t){return t.trimStart()}:function(t){return t.replace(ke,"")},Ze=Be?function(t){return t.trimEnd()}:function(t){return t.replace(De,"")};function Qe(t,e){return new RegExp(t,e)}Xe=Ae?(ze=Qe("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return ze.lastIndex=e,null!==(t=ze.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,n=[];;){var o=Ke(t,e);if(void 0===o||rr(o)||(33<=(r=o)&&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(o),e+=65536<=o?2:1}return He.apply(void 0,n)};var Je=(tr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},tr.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,Fe(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:fe.pound,location:Fe(i,this.clonePosition())})}}}return{val:n,err:null}},tr.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+n+"/>",location:Fe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(ce.INVALID_TAG,Fe(e,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(ce.UNMATCHED_CLOSING_TAG,Fe(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:n,children:t,location:Fe(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,Fe(e,this.clonePosition())))}return this.error(ce.UNCLOSED_TAG,Fe(r,this.clonePosition()))}return this.error(ce.INVALID_TAG,Fe(r,this.clonePosition()))},tr.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())},tr.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{o=this.tryParseUnquoted(t,e);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Fe(r,this.clonePosition());return{val:{type:fe.literal,value:n,location:r},err:null}},tr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},tr.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 He.apply(void 0,e)},tr.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(),He(r))},tr.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ce.EMPTY_ARGUMENT,Fe(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ce.MALFORMED_ARGUMENT,Fe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:n,location:Fe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(ce.MALFORMED_ARGUMENT,Fe(r,this.clonePosition()))}},tr.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xe(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:Fe(t,this.clonePosition())}},tr.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,Fe(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Ze(h.val)).length)return this.error(ce.EXPECT_ARGUMENT_STYLE,Fe(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Fe(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Fe(n,this.clonePosition());if(l&&qe(null==l?void 0:l.style,"::",0)){u=We(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:fe.number,value:r,location:c,style:h.val},err:null};if(0===u.length)return this.error(ce.EXPECT_DATE_TIME_SKELETON,c);var f={type:he.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(Se,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][e-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?fe.date:fe.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,Fe(l,pe({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fe(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,s,e,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Fe(n,this.clonePosition());return"select"===s?{val:{type:fe.select,value:r,options:Ye(c.val),location:p},err:null}:{val:{type:fe.plural,value:r,options:Ye(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(ce.INVALID_ARGUMENT_TYPE,Fe(i,a))}},tr.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},tr.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(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Fe(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}},tr.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(Le).filter(function(t){return 0<t.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(ce.INVALID_NUMBER_SKELETON,e)}return{val:{type:he.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Me(r):{}},err:null}},tr.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o=!1,i=[],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(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Fe(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Fe(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;i.push([a,{value:c.val,location:Fe(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===i.length?this.error("select"===e?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ce.MISSING_OTHER_CLAUSE,Fe(this.clonePosition(),this.clonePosition())):{val:i,err:null}},tr.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Fe(n,this.clonePosition());return o?Ve(i*=r)?{val:i,err:null}:this.error(e,n):this.error(t,n)},tr.prototype.offset=function(){return this.position.offset},tr.prototype.isEOF=function(){return this.offset()===this.message.length},tr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},tr.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ke(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},tr.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},tr.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))},tr.prototype.bumpIf=function(t){if(qe(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},tr.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},tr.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},tr.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},tr.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},tr);function tr(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function er(t){return 97<=t&&t<=122||65<=t&&t<=90}function rr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function nr(t,e){e=pe({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Je(t,e).parse();if(r.err){t=SyntaxError(ce[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,ve(t)||Ee(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else be(t)&&_e(t.style)||(ye(t)||ge(t))&&Te(t.style)?delete t.style.location:we(t)&&r(t.children)})}(r.val),r.val}function or(t,e){var r=e&&e.cache?e.cache:fr,n=e&&e.serializer?e.serializer:lr;return(e&&e.strategy?e.strategy:function(t,e){return ar(t,this,1===t.length?ir:sr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function ir(t,e,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=e.get(o);return void 0===r&&(r=t.call(this,n),e.set(o,r)),r}function sr(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=e.get(o);return void 0===r&&(r=t.apply(this,n),e.set(o,r)),r}function ar(t,e,r,n,o){return r.bind(e,t,n,o)}var lr=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(t){return t in this.cache},ur.prototype.get=function(t){return this.cache[t]},ur.prototype.set=function(t,e){this.cache[t]=e};var cr,fr={create:function(){return new ur}},hr={variadic:function(t,e){return ar(t,this,sr,e.cache.create(),e.serializer)},monadic:function(t,e){return ar(t,this,ir,e.cache.create(),e.serializer)}};(Ae=cr=cr||{}).MISSING_VALUE="MISSING_VALUE",Ae.INVALID_VALUE="INVALID_VALUE",Ae.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,br,yr,gr=(ue(Sr,yr=Error),Sr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Sr),vr=(ue(Ar,br=gr),Ar),Er=(ue(Tr,mr=gr),Tr),wr=(ue(_r,dr=gr),_r);function _r(t,e){return dr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',cr.MISSING_VALUE,e)||this}function Tr(t,e,r){return mr.call(this,'Value for "'+t+'" must be of type '+e,cr.INVALID_VALUE,r)||this}function Ar(t,e,r,n){return br.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',cr.INVALID_VALUE,n)||this}function Sr(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Pr(t,e,r,n,o,i,s){if(1===t.length&&me(t[0]))return[{type:pr.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(me(c))a.push({type:pr.literal,value:c.value});else if(c.type===fe.pound)"number"==typeof i&&a.push({type:pr.literal,value:r.getNumberFormat(e).format(i)});else{var f=c.value;if(!(o&&f in o))throw new wr(f,s);var h=o[f];if(c.type===fe.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?pr.literal:pr.object,value:h});else if(ye(c)){var p="string"==typeof c.style?n.date[c.style]:Te(c.style)?c.style.parsedOptions:void 0;a.push({type:pr.literal,value:r.getDateTimeFormat(e,p).format(h)})}else if(ge(c))p="string"==typeof c.style?n.time[c.style]:Te(c.style)?c.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(e,p).format(h)});else if(be(c))(p="string"==typeof c.style?n.number[c.style]:_e(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(e,p).format(h)});else{if(we(c)){var d=c.children,m=c.value,f=o[m];if("function"!=typeof f)throw new Er(m,"function",s);d=f(Pr(d,e,r,n,o,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?pr.literal:pr.object,value:t}}))}if(ve(c)){if(!(b=c.options[h]||c.options.other))throw new vr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Pr(b.value,e,r,n,o))}else if(Ee(c)){if(!(b=c.options["="+h])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cr.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),b=c.options[d]||c.options.other}if(!b)throw new vr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Pr(b.value,e,r,n,o,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===pr.literal&&e.type===pr.literal?r.value+=e.value:t.push(e),t},[])}function Lr(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(Ae=pr=pr||{})[Ae.literal=0]="literal",Ae[Ae.object=1]="object";var Cr=(Object.defineProperty(Or,"defaultLocale",{get:function(){return Or.memoizedDefaultLocale||(Or.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Or.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Or.memoizedDefaultLocale=null,Or.__parse=nr,Or.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"}}},Or);function Or(t,e,r,n){var o,i,s=this;if(void 0===e&&(e=Or.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===pr.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 Pr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Or.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Or.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Or.formats,(i=r)?Object.keys(o).reduce(function(t,e){var r,n;return t[e]=(r=o[e],(n=i[e])?pe(pe(pe({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=pe(pe({},r[e]),n[e]||{}),t},{})):r),t},pe({},o)):o),this.locales=e,this.formatters=n&&n.formatters||{getNumberFormat:or(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,de([void 0],e)))},{cache:Lr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:or(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,de([void 0],e)))},{cache:Lr(n.dateTime),strategy:hr.variadic}),getPluralRules:or(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,de([void 0],e)))},{cache:Lr(n.pluralRules),strategy:hr.variadic})}}const Nr={},Rr=(e,r)=>{if(null!=r){if(r in Nr&&e in Nr[r])return Nr[r][e];var n,o,i=Hr(r);for(let t=0;t<i.length;t++){var s=(n=i[t],o=e,Ur(n)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(0<t){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return xr[t]||null}(n),o):null);if(s)return n=e,o=r,(s=s)&&(o in Nr||(Nr[o]={}),n in Nr[o]||(Nr[o][n]=s),s)}}};let xr;const Ir=Zt({});function Ur(t){return t in xr}function Mr(e,...r){delete Nr[e],Ir.update(t=>(t[e]=ae.all([t[e]||{},...r]),t))}Qt([Ir],([t])=>Object.keys(t)),Ir.subscribe(t=>xr=t);const kr={};function Dr(t){return kr[t]}function Fr(t){return Hr(t).some(t=>{return null===(t=Dr(t))||void 0===t?void 0:t.size})}const jr={};function Gr(t){if(!Fr(t))return t in jr?jr[t]:void 0;const e=Hr(t).map(t=>{var e=Dr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return jr[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){kr[t].delete(e),0===kr[t].size&&delete kr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Mr(e,...t))}(t))).then(()=>Fr(t)?Gr(t):void delete jr[t]),jr[t]}function $r(t,e){var r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}const Br={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const Vr=Zt(!1);let zr;const Xr=Zt(null);function qr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Hr(t,e=Br.fallbackLocale){t=qr(t);return e?[...new Set([...t,...qr(e)])]:t}Xr.subscribe(t=>{zr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Yr=Xr.set;Xr.set=e=>{if(function(t){if(null!=t){var e=Hr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Ur(r))return r}}}(e)&&Fr(e)){var{loadingDelay:r}=Br;let t;return"undefined"!=typeof window&&null!=zr&&r?t=window.setTimeout(()=>Vr.set(!0),r):Vr.set(!0),Gr(e).then(()=>{Yr(e)}).finally(()=>{clearTimeout(t),Vr.set(!1)})}return Yr(e)},Xr.update=t=>Yr(t(zr));const Kr=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},Wr=(t,e)=>{var{formats:r}=Br;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Zr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Wr("number",r)),new Intl.NumberFormat(e,t)}),Qr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Wr("date",r):0===Object.keys(t).length&&(t=Wr("date","short")),new Intl.DateTimeFormat(e,t)}),Jr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Wr("time",r):0===Object.keys(t).length&&(t=Wr("time","short")),new Intl.DateTimeFormat(e,t)}),tn=Kr((t,e=zr)=>new Cr(t,e,Br.formats,{ignoreTag:Br.ignoreTag})),en=Qt([Xr,Ir],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:n=zr,default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Rr(t,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Br.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Hr(n).join('", "')}".${Fr(zr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=tn(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=$r(t,["locale"]);return Jr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=$r(t,["locale"]);return Qr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=zr}=t,t=$r(t,["locale"]);return Zr(Object.assign({locale:e},t))})(e).format(t)),Qt([Xr,Ir],()=>(t,e=zr)=>Rr(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Yt.indexOf(t)&&(e=new zt(e),Kt[t]=e,Yt.push(t)),Kt[t]}};const rn=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Position:"Position",Name:"Name",Score:"Score"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Position:"Pozisyon",Name:"İsim",Score:"Skor"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Position:"Θέση",Name:"Ονομα",Score:"Σκορ"}}};function on(t,e,r){const n=t.slice();return n[30]=e[r],n}function sn(t,e,r){const n=t.slice();return n[25]=e[r],n}function an(t,e,r){const n=t.slice();return n[30]=e[r],n}function ln(t,e,r){const n=t.slice();return n[25]=e[r],n}function un(e){let r,n,o,i,s,a,l,u,c,t=e[8]("tournamentsTable.nowinners")+"",f=e[3],h=[];for(let t=0;t<f.length;t+=1)h[t]=dn(on(e,f,t));return{c(){r=S("div"),n=S("table"),o=S("thead"),i=S("tr");for(let t=0;t<h.length;t+=1)h[t].c();s=L(),a=S("tbody"),l=S("tr"),u=S("td"),c=P(t),N(u,"colspan","3"),N(n,"class","LeftTable"),N(n,"part","LeftTable"),N(r,"class","TournamentsTable"),N(r,"part","TournamentsTable")},m(t,e){_(t,r,e),w(r,n),w(n,o),w(o,i);for(let t=0;t<h.length;t+=1)h[t].m(i,null);w(n,s),w(n,a),w(a,l),w(l,u),w(u,c)},p(e,r){if(1417&r[0]){let t;for(f=e[3],t=0;t<f.length;t+=1){var n=on(e,f,t);h[t]?h[t].p(n,r):(h[t]=dn(n),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=f.length}256&r[0]&&t!==(t=e[8]("tournamentsTable.nowinners")+"")&&R(c,t)},d(t){t&&T(r),A(h,t)}}}function cn(r){let n,o,i,s,a,l,u,c,f,h,p=r[8]("tournamentsTable.leaderboard")+"";function d(t){return t[5]?bn:mn}let m=d(r),b=m(r),y=r[5]&&yn(r);return{c(){n=S("div"),o=S("div"),i=P(p),s=L(),a=S("div"),l=S("div"),b.c(),u=L(),y&&y.c(),c=C(),N(o,"class","Leaderboard"),N(o,"part","Leaderboard"),N(l,"class","CollapseButton"),N(l,"part","CollapseButton"),N(a,"class","RightButton "+(rn(r[9])?"MobileClass":"")),N(a,"part","RightButton "+(rn(r[9])?"MobileClass":"")),N(n,"class","LeaderboardContainer"),N(n,"part","LeaderboardContainer")},m(t,e){_(t,n,e),w(n,o),w(o,i),w(n,s),w(n,a),w(a,l),b.m(l,null),_(t,u,e),y&&y.m(t,e),_(t,c,e),f||(h=O(l,"click",r[18]),f=!0)},p(t,e){256&e[0]&&p!==(p=t[8]("tournamentsTable.leaderboard")+"")&&R(i,p),m!==(m=d(t))&&(b.d(1),b=m(t),b&&(b.c(),b.m(l,null))),t[5]?y?y.p(t,e):(y=yn(t),y.c(),y.m(c.parentNode,c)):y&&(y.d(1),y=null)},d(t){t&&T(n),b.d(),t&&T(u),y&&y.d(t),t&&T(c),f=!1,h()}}}function fn(t){let r,n=(e=t,(1==rn(e[9])?vn:gn)(t));var e;return{c(){n.c(),r=C()},m(t,e){n.m(t,e),_(t,r,e)},p(t,e){n.p(t,e)},d(t){n.d(t),t&&T(r)}}}function hn(t){let r,n,o=t[8](`tournamentsTable.${t[30]}`)+"";return{c(){r=S("p"),n=P(o),N(r,"data-sort",t[7])},m(t,e){_(t,r,e),w(r,n)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[30]}`)+"")&&R(n,o),128&e[0]&&N(r,"data-sort",t[7])},d(t){t&&T(r)}}}function pn(r){let n,o,i,s,a=r[8](`tournamentsTable.${r[30]}`)+"";function l(){return r[19](r[30])}return{c(){n=S("button"),o=P(a),N(n,"data-sort",r[7])},m(t,e){_(t,n,e),w(n,o),i||(s=O(n,"click",l),i=!0)},p(t,e){r=t,264&e[0]&&a!==(a=r[8](`tournamentsTable.${r[30]}`)+"")&&R(o,a),128&e[0]&&N(n,"data-sort",r[7])},d(t){t&&T(n),i=!1,s()}}}function dn(t){let r,n;function o(t){return"true"==t[0]?pn:hn}let i=o(t),s=i(t);return{c(){r=S("th"),s.c(),n=L()},m(t,e){_(t,r,e),s.m(r,null),w(r,n)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(r,n)))},d(t){t&&T(r),s.d()}}}function mn(t){let r,n;return{c(){r=e("svg"),n=e("path"),N(n,"d","M6 9l6 6 6-6"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","24"),N(r,"height","24"),N(r,"viewBox","0 0 24 24"),N(r,"fill","none"),N(r,"stroke","#ffffff"),N(r,"stroke-width","2"),N(r,"stroke-linecap","round"),N(r,"stroke-linejoin","round")},m(t,e){_(t,r,e),w(r,n)},d(t){t&&T(r)}}}function bn(t){let r,n;return{c(){r=e("svg"),n=e("path"),N(n,"d","M18 15l-6-6-6 6"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","24"),N(r,"height","24"),N(r,"viewBox","0 0 24 24"),N(r,"fill","none"),N(r,"stroke","#ffffff"),N(r,"stroke-width","2"),N(r,"stroke-linecap","round"),N(r,"stroke-linejoin","round")},m(t,e){_(t,r,e),w(r,n)},d(t){t&&T(r)}}}function yn(t){let r,n,o,i,s=t[8]("tournamentsTable.nowinners")+"";return{c(){r=S("div"),n=S("div"),o=S("p"),i=P(s),N(n,"class","TableUser"),N(n,"part","TableUser"),N(r,"class","TableContent"),N(r,"part","TableContent")},m(t,e){_(t,r,e),w(r,n),w(n,o),w(o,i)},p(t,e){256&e[0]&&s!==(s=t[8]("tournamentsTable.nowinners")+"")&&R(i,s)},d(t){t&&T(r)}}}function gn(r){let n,o,i,s,a,l,u,c,f,h,p,d,m=r[3],b=[];for(let t=0;t<m.length;t+=1)b[t]=_n(an(r,m,t));let y="true"==r[1]&&r[4]&&Tn(r),g=r[5]&&An(r);function t(t){return t[5]?Ln:Pn}let v=t(r),E=v(r);return{c(){n=S("div"),o=S("table"),i=S("thead"),s=S("tr");for(let t=0;t<b.length;t+=1)b[t].c();a=L(),l=S("tbody"),y&&y.c(),u=L(),g&&g.c(),c=L(),f=S("div"),h=S("div"),E.c(),N(o,"class","LeftTable"),N(o,"part","LeftTable"),N(h,"class","CollapseButton"),N(h,"part","CollapseButton"),N(f,"class","RightButton"),N(f,"part","RightButton"),N(n,"class","TournamentsTable"),N(n,"part","TournamentsTable")},m(t,e){_(t,n,e),w(n,o),w(o,i),w(i,s);for(let t=0;t<b.length;t+=1)b[t].m(s,null);w(o,a),w(o,l),y&&y.m(l,null),w(l,u),g&&g.m(l,null),w(n,c),w(n,f),w(f,h),E.m(h,null),p||(d=O(h,"click",r[17]),p=!0)},p(e,r){if(1417&r[0]){let t;for(m=e[3],t=0;t<m.length;t+=1){var n=an(e,m,t);b[t]?b[t].p(n,r):(b[t]=_n(n),b[t].c(),b[t].m(s,null))}for(;t<b.length;t+=1)b[t].d(1);b.length=m.length}"true"==e[1]&&e[4]?y?y.p(e,r):(y=Tn(e),y.c(),y.m(l,u)):y&&(y.d(1),y=null),e[5]?g?g.p(e,r):(g=An(e),g.c(),g.m(l,null)):g&&(g.d(1),g=null),v!==(v=t(e))&&(E.d(1),E=v(e),E&&(E.c(),E.m(h,null)))},d(t){t&&T(n),A(b,t),y&&y.d(),g&&g.d(),E.d(),p=!1,d()}}}function vn(r){let n,o,i,s,a,l,u,c,f,h,p,d=r[8]("tournamentsTable.leaderboard")+"";function m(t){return t[5]?On:Cn}let b=m(r),y=b(r),g="true"==r[1]&&r[4]&&Nn(r),v=r[5]&&Rn(r);return{c(){n=S("div"),o=S("div"),i=P(d),s=L(),a=S("div"),l=S("div"),y.c(),u=L(),g&&g.c(),c=L(),v&&v.c(),f=C(),N(o,"class","Leaderboard"),N(o,"part","Leaderboard"),N(l,"class","CollapseButton"),N(l,"part","CollapseButton"),N(a,"class","RightButton "+(rn(r[9])?"MobileClass":"")),N(a,"part","RightButton "+(rn(r[9])?"MobileClass":"")),N(n,"class","LeaderboardContainer"),N(n,"part","LeaderboardContainer")},m(t,e){_(t,n,e),w(n,o),w(o,i),w(n,s),w(n,a),w(a,l),y.m(l,null),_(t,u,e),g&&g.m(t,e),_(t,c,e),v&&v.m(t,e),_(t,f,e),h||(p=O(l,"click",r[15]),h=!0)},p(t,e){256&e[0]&&d!==(d=t[8]("tournamentsTable.leaderboard")+"")&&R(i,d),b!==(b=m(t))&&(y.d(1),y=b(t),y&&(y.c(),y.m(l,null))),"true"==t[1]&&t[4]?g?g.p(t,e):(g=Nn(t),g.c(),g.m(c.parentNode,c)):g&&(g.d(1),g=null),t[5]?v?v.p(t,e):(v=Rn(t),v.c(),v.m(f.parentNode,f)):v&&(v.d(1),v=null)},d(t){t&&T(n),y.d(),t&&T(u),g&&g.d(t),t&&T(c),v&&v.d(t),t&&T(f),h=!1,p()}}}function En(t){let r,n,o=t[8](`tournamentsTable.${t[30]}`)+"";return{c(){r=S("p"),n=P(o),N(r,"data-sort",t[7])},m(t,e){_(t,r,e),w(r,n)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[30]}`)+"")&&R(n,o),128&e[0]&&N(r,"data-sort",t[7])},d(t){t&&T(r)}}}function wn(r){let n,o,i,s,a=r[8](`tournamentsTable.${r[30]}`)+"";function l(){return r[16](r[30])}return{c(){n=S("button"),o=P(a),N(n,"data-sort",r[7])},m(t,e){_(t,n,e),w(n,o),i||(s=O(n,"click",l),i=!0)},p(t,e){r=t,264&e[0]&&a!==(a=r[8](`tournamentsTable.${r[30]}`)+"")&&R(o,a),128&e[0]&&N(n,"data-sort",r[7])},d(t){t&&T(n),i=!1,s()}}}function _n(t){let r,n;function o(t){return"true"==t[0]?wn:En}let i=o(t),s=i(t);return{c(){r=S("th"),s.c(),n=L()},m(t,e){_(t,r,e),s.m(r,null),w(r,n)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(r,n)))},d(t){t&&T(r),s.d()}}}function Tn(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m=t[4].Position+"",b=t[4].Name+"",y=t[4].Score+"";return{c(){r=S("tr"),n=S("td"),o=S("strong"),i=S("em"),s=P("#"),a=P(m),l=L(),u=S("td"),c=P(b),f=L(),h=S("td"),p=S("div"),d=P(y),N(p,"class","Flex"),N(p,"part","Flex"),N(r,"class","FirstRow"),N(r,"part","FirstRow")},m(t,e){_(t,r,e),w(r,n),w(n,o),w(o,i),w(i,s),w(i,a),w(r,l),w(r,u),w(u,c),w(r,f),w(r,h),w(h,p),w(p,d)},p(t,e){16&e[0]&&m!==(m=t[4].Position+"")&&R(a,m),16&e[0]&&b!==(b=t[4].Name+"")&&R(c,b),16&e[0]&&y!==(y=t[4].Score+"")&&R(d,y)},d(t){t&&T(r)}}}function An(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=Sn(sn(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=C()},m(e,r){for(let t=0;t<s.length;t+=1)s[t].m(e,r);_(e,o,r)},p(e,r){if(64&r[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var n=sn(e,i,t);s[t]?s[t].p(n,r):(s[t]=Sn(n),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){A(s,t),t&&T(o)}}}function Sn(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b=t[25].Position+"",y=t[25].Name+"",g=t[25].Score+"";return{c(){r=S("tr"),n=S("td"),o=S("strong"),i=S("em"),s=P("#"),a=P(b),l=L(),u=S("td"),c=P(y),f=L(),h=S("td"),p=S("div"),d=P(g),m=L(),N(p,"class","Flex"),N(p,"part","Flex")},m(t,e){_(t,r,e),w(r,n),w(n,o),w(o,i),w(i,s),w(i,a),w(r,l),w(r,u),w(u,c),w(r,f),w(r,h),w(h,p),w(p,d),w(r,m)},p(t,e){64&e[0]&&b!==(b=t[25].Position+"")&&R(a,b),64&e[0]&&y!==(y=t[25].Name+"")&&R(c,y),64&e[0]&&g!==(g=t[25].Score+"")&&R(d,g)},d(t){t&&T(r)}}}function Pn(t){let r,n;return{c(){r=e("svg"),n=e("path"),N(n,"d","M6 9l6 6 6-6"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","24"),N(r,"height","24"),N(r,"viewBox","0 0 24 24"),N(r,"fill","none"),N(r,"stroke","#ffffff"),N(r,"stroke-width","2"),N(r,"stroke-linecap","round"),N(r,"stroke-linejoin","round")},m(t,e){_(t,r,e),w(r,n)},d(t){t&&T(r)}}}function Ln(t){let r,n;return{c(){r=e("svg"),n=e("path"),N(n,"d","M18 15l-6-6-6 6"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","24"),N(r,"height","24"),N(r,"viewBox","0 0 24 24"),N(r,"fill","none"),N(r,"stroke","#ffffff"),N(r,"stroke-width","2"),N(r,"stroke-linecap","round"),N(r,"stroke-linejoin","round")},m(t,e){_(t,r,e),w(r,n)},d(t){t&&T(r)}}}function Cn(t){let r,n;return{c(){r=e("svg"),n=e("path"),N(n,"d","M6 9l6 6 6-6"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","24"),N(r,"height","24"),N(r,"viewBox","0 0 24 24"),N(r,"fill","none"),N(r,"stroke","#ffffff"),N(r,"stroke-width","2"),N(r,"stroke-linecap","round"),N(r,"stroke-linejoin","round")},m(t,e){_(t,r,e),w(r,n)},d(t){t&&T(r)}}}function On(t){let r,n;return{c(){r=e("svg"),n=e("path"),N(n,"d","M18 15l-6-6-6 6"),N(r,"xmlns","http://www.w3.org/2000/svg"),N(r,"width","24"),N(r,"height","24"),N(r,"viewBox","0 0 24 24"),N(r,"fill","none"),N(r,"stroke","#ffffff"),N(r,"stroke-width","2"),N(r,"stroke-linecap","round"),N(r,"stroke-linejoin","round")},m(t,e){_(t,r,e),w(r,n)},d(t){t&&T(r)}}}function Nn(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b=t[4].Position+"",y=t[4].Name+"",g=t[8]("tournamentsTable.score")+"",v=t[4].Score+"";return{c(){r=S("div"),n=S("div"),o=S("span"),i=P(b),s=S("span"),a=P(y),l=L(),u=S("div"),c=S("div"),f=S("p"),h=P(g),p=L(),d=S("p"),m=P(v),N(n,"class","TableUser"),N(n,"part","TableUser"),N(u,"class","TableUserDetails"),N(u,"part","TableUserDetails"),N(r,"class","TableContent TableContentFirstRow"),N(r,"part","TableContent TableContentFirstRow")},m(t,e){_(t,r,e),w(r,n),w(n,o),w(o,i),w(n,s),w(s,a),w(r,l),w(r,u),w(u,c),w(c,f),w(f,h),w(c,p),w(c,d),w(d,m)},p(t,e){16&e[0]&&b!==(b=t[4].Position+"")&&R(i,b),16&e[0]&&y!==(y=t[4].Name+"")&&R(a,y),256&e[0]&&g!==(g=t[8]("tournamentsTable.score")+"")&&R(h,g),16&e[0]&&v!==(v=t[4].Score+"")&&R(m,v)},d(t){t&&T(r)}}}function Rn(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=xn(ln(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=C()},m(e,r){for(let t=0;t<s.length;t+=1)s[t].m(e,r);_(e,o,r)},p(e,r){if(320&r[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var n=ln(e,i,t);s[t]?s[t].p(n,r):(s[t]=xn(n),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){A(s,t),t&&T(o)}}}function xn(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b,y=t[25].Position+"",g=t[25].Name+"",v=t[8]("tournamentsTable.score")+"",E=t[25].Score+"";return{c(){r=S("div"),n=S("div"),o=S("span"),i=P(y),s=S("span"),a=P(g),l=L(),u=S("div"),c=S("div"),f=S("p"),h=P(v),p=L(),d=S("p"),m=P(E),b=L(),N(n,"class","TableUser"),N(n,"part","TableUser"),N(u,"class","TableUserDetails"),N(u,"part","TableUserDetails"),N(r,"class","TableContent"),N(r,"part","TableContent")},m(t,e){_(t,r,e),w(r,n),w(n,o),w(o,i),w(n,s),w(s,a),w(r,l),w(r,u),w(u,c),w(c,f),w(f,h),w(c,p),w(c,d),w(d,m),w(r,b)},p(t,e){64&e[0]&&y!==(y=t[25].Position+"")&&R(i,y),64&e[0]&&g!==(g=t[25].Name+"")&&R(a,g),256&e[0]&&v!==(v=t[8]("tournamentsTable.score")+"")&&R(h,v),64&e[0]&&E!==(E=t[25].Score+"")&&R(m,E)},d(t){t&&T(r)}}}function In(t){let e,r;function n(t){return 0<t[2].length||t[4]?fn:(null==e&&(e=!(1!=rn(t[9]))),e?cn:un)}let o=n(t),i=o(t);return{c(){i.c(),r=C(),this.c=f},m(t,e){i.m(t,e),_(t,r,e)},p(t,e){o===(o=n(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(r.parentNode,r)))},i:f,o:f,d(t){i.d(t),t&&T(r)}}}function Un(t,e,o){let r,n,i;var s=en;t.$$.on_destroy.push(E(s,t=>o(8,i=t)));let{sortable:a=!1}=e,{firstrow:l=!1}=e,{lang:u="en"}=e,c=[],f=[],h=null,p=null,d=null,m=!0,b=window.navigator.userAgent;Object.keys(nn).forEach(t=>{Mr(t,nn[t])});const y=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(o(2,f=t.data.tableData),o(6,r=f)),t.data&&"CasinoTableColumns"===t.data.type&&o(3,c=t.data.tableColumns),l&&t.data&&"CasinoTableFirstRowData"===t.data.type&&o(4,d=t.data.tableData),t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let n=t.data.tableData;f instanceof Array&&f.forEach(function(t,e){var r,t=(r=t.Position,n.find(t=>t.Position==r));t&&o(2,f[e]=t,f)})}},g=t=>{var e=t===h,r="ASC"===p,n=e&&!r;o(13,h=n?null:t),o(14,p=n?null:e&&r?"DESC":"ASC")},v=()=>{o(5,m=!m)};return e=()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}),function(){if(!x)throw new Error("Function called outside component initialization");return x}().$$.on_mount.push(e),t.$$set=t=>{"sortable"in t&&o(0,a=t.sortable),"firstrow"in t&&o(1,l=t.firstrow),"lang"in t&&o(12,u=t.lang)},t.$$.update=()=>{24580&t.$$.dirty[0]&&o(6,r=h&&p?(()=>{let t=[];if(f&&(t=[...f]),!f.length)return f;var e=typeof f[0][h.toLowerCase()];return t.sort((t=>{const r=h.toLowerCase();return"string"==t?(t,e)=>t[r].localeCompare(e[r]):"number"==t||"object"==t?(t,e)=>t[r]-e[r]:void 0})(e)),"ASC"===p?t:t.reverse()})():[...f]),24576&t.$$.dirty[0]&&o(7,n=null===h?p:null)},[a,l,f,c,d,m,r,n,i,b,g,v,u,h,p,()=>v(),t=>g(t),()=>v(),()=>v(),t=>g(t)]}class Mn extends l{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}.LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);display:flex;width:100%;justify-content:space-between}.Leaderboard{width:calc(100% - 50px);height:52px;display:flex;align-items:center;padding-left:20px}.TableContent{width:calc(100% - 46px);font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.TableUser{background:var(--emfe-w-color-contrast, #07072A);height:52px;display:flex;align-items:center;gap:20px;padding-left:20px;font-weight:bold}.TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid var(--emfe-w-color-green, #48952a)}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0;color:var(--emfe-w-color-white, #FFFFFF)}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:var(--emfe-w-color-white, #FFFFFF);font-size:0.9rem;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",a(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},Un,In,r,{sortable:0,firstrow:1,lang:12},[-1,-1]),t&&(t.target&&_(t.target,this,t.anchor),t.props&&(this.$set(t.props),U()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(t){this.$set({sortable:t}),U()}get firstrow(){return this.$$.ctx[1]}set firstrow(t){this.$set({firstrow:t}),U()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),U()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Mn),Mn});
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 f(){}function h(t){return t()}function p(){return Object.create(null)}function d(t){t.forEach(h)}function m(t){return"function"==typeof t}function r(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function E(t,...e){if(null==t)return f;const r=t.subscribe(...e);return r.unsubscribe?()=>r.unsubscribe():r}function A(t,e){t.appendChild(e)}function P(t,e,r){t.insertBefore(e,r||null)}function S(t){t.parentNode.removeChild(t)}function T(e,r){for(let t=0;t<e.length;t+=1)e[t]&&e[t].d(r)}function L(t){return document.createElement(t)}function e(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function O(t){return document.createTextNode(t)}function R(){return O(" ")}function _(){return O("")}function w(t,e,r,n){return t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)}function U(t,e,r){null==r?t.removeAttribute(e):t.getAttribute(e)!==r&&t.setAttribute(e,r)}function x(t,e){t.wholeText!==(e=""+e)&&(t.data=e)}let C;function b(t){C=t}const y=[],t=[],n=[],o=[],g=Promise.resolve();let v=!1;function N(t){n.push(t)}let i=!1;const s=new Set;function I(){if(!i){i=!0;do{for(let t=0;t<y.length;t+=1){var e=y[t];b(e),function(t){{var e;null!==t.fragment&&(t.update(),d(t.before_update),e=t.dirty,t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(N))}}(e.$$)}for(b(null),y.length=0;t.length;)t.pop()();for(let t=0;t<n.length;t+=1){const r=n[t];s.has(r)||(s.add(r),r())}}while(n.length=0,y.length);for(;o.length;)o.pop()();v=!1,i=!1,s.clear()}}const M=new Set;function a(n,t,e,r,o,i,s=[-1]){var a,l=C;b(n);const u=n.$$={fragment:null,ctx:null,props:i,update:f,not_equal:o,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:t.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let c=!1;if(u.ctx=e?e(n,t.props||{},(t,e,...r)=>{r=r.length?r[0]:e;return u.ctx&&o(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]&&(y.push(t),v||(v=!0,g.then(I)),t.$$.dirty.fill(0)),t.$$.dirty[r/31|0]|=1<<r%31)),e}):[],u.update(),c=!0,d(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){const f=(r=t.target,Array.from(r.childNodes));u.fragment&&u.fragment.l(f),f.forEach(S)}else u.fragment&&u.fragment.c();t.intro&&(a=n.$$.fragment)&&a.i&&(M.delete(a),a.i(void 0)),function(e,t,r,n){const{fragment:o,on_mount:i,on_destroy:s,after_update:a}=e.$$;o&&o.m(t,r),n||N(()=>{var t=i.map(h).filter(m);s?s.push(...t):d(t),e.$$.on_mount=[]}),a.forEach(N)}(n,t.target,t.anchor,t.customElement),I()}b(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:t}=this.$$;this.$$.on_disconnect=t.map(h).filter(m);for(const t in this.$$.slotted)this.appendChild(this.$$.slotted[t])}attributeChangedCallback(t,e,r){this[t]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(t){const e=t.$$;null!==e.fragment&&(d(e.on_destroy),e.fragment&&e.fragment.d(1),e.on_destroy=e.fragment=null,e.ctx=[])}(this),this.$destroy=f}$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 u,c,k="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==k&&k,D="URLSearchParams"in k,F="Symbol"in k&&"iterator"in Symbol,G="FileReader"in k&&"Blob"in k&&function(){try{return new Blob,!0}catch(t){return!1}}(),j="FormData"in k,$="ArrayBuffer"in k;function B(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 z(t){return t="string"!=typeof t?String(t):t}function V(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return F&&(t[Symbol.iterator]=function(){return t}),t}function X(e){this.map={},e instanceof X?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 q(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function H(r){return new Promise(function(t,e){r.onload=function(){t(r.result)},r.onerror=function(){e(r.error)}})}function Y(t){var e=new FileReader,r=H(e);return e.readAsArrayBuffer(t),r}function K(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Q(){return this.bodyUsed=!1,this._initBody=function(t){this.bodyUsed=this.bodyUsed,(this._bodyInit=t)?"string"==typeof t?this._bodyText=t:G&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:j&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:D&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():$&&G&&t&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=K(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):$&&(ArrayBuffer.prototype.isPrototypeOf(t)||c(t))?this._bodyArrayBuffer=K(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):D&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},G&&(this.blob=function(){var t=q(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?q(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(Y)}),this.text=function(){var t,e,r=q(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,r=H(e=new FileReader),e.readAsText(t),r;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)},j&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}$&&(u=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(t){return t&&-1<u.indexOf(Object.prototype.toString.call(t))}),X.prototype.append=function(t,e){t=B(t),e=z(e);var r=this.map[t];this.map[t]=r?r+", "+e:e},X.prototype.delete=function(t){delete this.map[B(t)]},X.prototype.get=function(t){return t=B(t),this.has(t)?this.map[t]:null},X.prototype.has=function(t){return this.map.hasOwnProperty(B(t))},X.prototype.set=function(t,e){this.map[B(t)]=z(e)},X.prototype.forEach=function(t,e){for(var r in this.map)this.map.hasOwnProperty(r)&&t.call(e,this.map[r],r,this)},X.prototype.keys=function(){var r=[];return this.forEach(function(t,e){r.push(e)}),V(r)},X.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),V(e)},X.prototype.entries=function(){var r=[];return this.forEach(function(t,e){r.push([e,t])}),V(r)},F&&(X.prototype[Symbol.iterator]=X.prototype.entries);var Z=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(t,e){if(!(this instanceof W))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 W){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new X(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 X(e.headers)),this.method=(t=(r=e.method||this.method||"GET").toUpperCase(),-1<Z.indexOf(t)?t:r),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||((e=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(e,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function J(t){var r=new FormData;return t.trim().split("&").forEach(function(t){var e;t&&(t=(e=t.split("=")).shift().replace(/\+/g," "),e=e.join("=").replace(/\+/g," "),r.append(decodeURIComponent(t),decodeURIComponent(e)))}),r}function tt(t,e){if(!(this instanceof tt))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 X(e.headers),this.url=e.url||"",this._initBody(t)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})},Q.call(W.prototype),Q.call(tt.prototype),tt.prototype.clone=function(){return new tt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new X(this.headers),url:this.url})},tt.error=function(){var t=new tt(null,{status:0,statusText:""});return t.type="error",t};var et=[301,302,303,307,308];tt.redirect=function(t,e){if(-1===et.indexOf(e))throw new RangeError("Invalid status code");return new tt(null,{status:e,headers:{location:t}})};var rt=k.DOMException;try{new rt}catch(f){(rt=function(t,e){this.message=t,this.name=e;t=Error(t);this.stack=t.stack}).prototype=Object.create(Error.prototype),rt.prototype.constructor=rt}function nt(n,s){return new Promise(function(o,t){var e=new W(n,s);if(e.signal&&e.signal.aborted)return t(new rt("Aborted","AbortError"));var i=new XMLHttpRequest;function r(){i.abort()}i.onload=function(){var t,r,e={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",r=new X,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 e=t.split(":"),t=e.shift().trim();t&&(e=e.join(":").trim(),r.append(t,e))}),r)};e.url="responseURL"in i?i.responseURL:e.headers.get("X-Request-URL");var n="response"in i?i.response:i.responseText;setTimeout(function(){o(new tt(n,e))},0)},i.onerror=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){t(new TypeError("Network request failed"))},0)},i.onabort=function(){setTimeout(function(){t(new rt("Aborted","AbortError"))},0)},i.open(e.method,function(e){try{return""===e&&k.location.href?k.location.href:e}catch(t){return e}}(e.url),!0),"include"===e.credentials?i.withCredentials=!0:"omit"===e.credentials&&(i.withCredentials=!1),"responseType"in i&&(G?i.responseType="blob":$&&e.headers.get("Content-Type")&&-1!==e.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof X?e.headers.forEach(function(t,e){i.setRequestHeader(e,t)}):Object.getOwnPropertyNames(s.headers).forEach(function(t){i.setRequestHeader(t,z(s.headers[t]))}),e.signal&&(e.signal.addEventListener("abort",r),i.onreadystatechange=function(){4===i.readyState&&e.signal.removeEventListener("abort",r)}),i.send(void 0===e._bodyInit?null:e._bodyInit)})}nt.polyfill=!0,k.fetch||(k.fetch=nt,k.Headers=X,k.Request=W,k.Response=tt),self.fetch.bind(self);var ot=function(t,e){return(ot=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 it(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}ot(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}function st(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 at(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,i=r.call(t),s=[];try{for(;(void 0===e||0<e--)&&!(n=i.next()).done;)s.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return s}function lt(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function ut(t){return"function"==typeof t}function ct(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 ft=ct(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 ht(t,e){!t||0<=(e=t.indexOf(e))&&t.splice(e,1)}var pt=(mt.prototype.unsubscribe=function(){var t,e,r,n,o;if(!this.closed){this.closed=!0;var i=this._parentage;if(i)if(this._parentage=null,Array.isArray(i))try{for(var s=st(i),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 i.remove(this);i=this.initialTeardown;if(ut(i))try{i()}catch(t){o=t instanceof ft?t.errors:[t]}i=this._teardowns;if(i){this._teardowns=null;try{for(var l=st(i),u=l.next();!u.done;u=l.next()){var c=u.value;try{yt(c)}catch(t){o=null!=o?o:[],t instanceof ft?o=lt(lt([],at(o)),at(t.errors)):o.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(o)throw new ft(o)}},mt.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)yt(t);else{if(t instanceof mt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(e=this._teardowns)&&void 0!==e?e:[]).push(t)}},mt.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},mt.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},mt.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&ht(e,t)},mt.prototype.remove=function(t){var e=this._teardowns;e&&ht(e,t),t instanceof mt&&t._removeParent(this)},mt.EMPTY=((Ge=new mt).closed=!0,Ge),mt),dt=pt.EMPTY;function mt(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}function bt(t){return t instanceof pt||t&&"closed"in t&&ut(t.remove)&&ut(t.add)&&ut(t.unsubscribe)}function yt(t){ut(t)?t():t.unsubscribe()}var gt=void 0,vt=!1,Et=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return setTimeout.apply(void 0,lt([],at(t)))};function Tt(){}function wt(t){t()}var _t,Ct,At=(it(Lt,Ct=pt),Lt.create=function(t,e,r){return new Pt(t,e,r)},Lt.prototype.next=function(t){this.isStopped||this._next(t)},Lt.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},Lt.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Lt.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ct.prototype.unsubscribe.call(this),this.destination=null)},Lt.prototype._next=function(t){this.destination.next(t)},Lt.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},Lt.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},Lt),Pt=(it(St,_t=At),St);function St(t,e,r){var n,o,i=_t.call(this)||this;return ut(t)?o=t:t&&(o=t.next,e=t.error,r=t.complete,i&&vt?(n=Object.create(t)).unsubscribe=function(){return i.unsubscribe()}:n=t,o=null==o?void 0:o.bind(n),e=null==e?void 0:e.bind(n),r=null==r?void 0:r.bind(n)),i.destination={next:o?Ot(o):Tt,error:Ot(null!=e?e:Rt),complete:r?Ot(r):Tt},i}function Lt(t){var e=Ct.call(this)||this;return e.isStopped=!1,t?bt(e.destination=t)&&t.add(e):e.destination=Ut,e}function Ot(n){return function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];try{n.apply(void 0,lt([],at(t)))}catch(t){e=t,Et(function(){throw e})}}}function Rt(t){throw t}var Ut={closed:!0,next:Tt,error:Rt,complete:Tt},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Nt(t){return t}var It=(Mt.prototype.lift=function(t){var e=new Mt;return e.source=this,e.operator=t,e},Mt.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof At||n&&ut(n.next)&&ut(n.error)&&ut(n.complete)&&bt(n)?t:new Pt(t,e,r);return wt(function(){var t=o.operator,e=o.source;i.add(t?t.call(i,e):e?o._subscribe(i):o._trySubscribe(i))}),i},Mt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},Mt.prototype.forEach=function(n,t){var o=this;return new(t=kt(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},Mt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},Mt.prototype[xt]=function(){return this},Mt.prototype.pipe=function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return(0===(e=t).length?Nt:1===e.length?e[0]:function(t){return e.reduce(function(t,e){return e(t)},t)})(this)},Mt.prototype.toPromise=function(t){var n=this;return new(t=kt(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},Mt.create=function(t){return new Mt(t)},Mt);function Mt(t){t&&(this._subscribe=t)}function kt(t){return null!==(t=null!=t?t:gt)&&void 0!==t?t:Promise}var Dt,Ft,Gt,jt=ct(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$t=(it(Ht,Gt=It),Ht.prototype.lift=function(t){var e=new Bt(this,this);return e.operator=t,e},Ht.prototype._throwIfClosed=function(){if(this.closed)throw new jt},Ht.prototype.next=function(i){var s=this;wt(function(){var e,t;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=st(r),o=n.next();!o.done;o=n.next())o.value.next(i)}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}})},Ht.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)}})},Ht.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()}})},Ht.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(Ht.prototype,"observed",{get:function(){var t;return 0<(null===(t=this.observers)||void 0===t?void 0:t.length)},enumerable:!1,configurable:!0}),Ht.prototype._trySubscribe=function(t){return this._throwIfClosed(),Gt.prototype._trySubscribe.call(this,t)},Ht.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},Ht.prototype._innerSubscribe=function(t){var e=this.hasError,r=this.isStopped,n=this.observers;return e||r?dt:(n.push(t),new pt(function(){return ht(n,t)}))},Ht.prototype._checkFinalizedStatuses=function(t){var e=this.hasError,r=this.thrownError,n=this.isStopped;e?t.error(r):n&&t.complete()},Ht.prototype.asObservable=function(){var t=new It;return t.source=this,t},Ht.create=function(t,e){return new Bt(t,e)},Ht),Bt=(it(qt,Ft=$t),qt.prototype.next=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===r||r.call(e,t)},qt.prototype.error=function(t){var e,r;null===(r=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===r||r.call(e,t)},qt.prototype.complete=function(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)},qt.prototype._subscribe=function(t){var e;return null!==(t=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==t?t:dt},qt),zt={now:function(){return(zt.delegate||Date).now()},delegate:void 0},Vt=(it(Xt,Dt=$t),Xt.prototype.next=function(t){var e=this,r=e.isStopped,n=e._buffer,o=e._infiniteTimeWindow,i=e._timestampProvider,e=e._windowTime;r||(n.push(t),o||n.push(i.now()+e)),this._trimBuffer(),Dt.prototype.next.call(this,t)},Xt.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var e=this._innerSubscribe(t),r=this._infiniteTimeWindow,n=this._buffer.slice(),o=0;o<n.length&&!t.closed;o+=r?1:2)t.next(n[o]);return this._checkFinalizedStatuses(t),e},Xt.prototype._trimBuffer=function(){var t=this._bufferSize,e=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,o=(n?1:2)*t;if(t<1/0&&o<r.length&&r.splice(0,r.length-o),!n){for(var i=e.now(),s=0,a=1;a<r.length&&r[a]<=i;a+=2)s=a;s&&r.splice(0,s+1)}},Xt);function Xt(t,e,r){void 0===t&&(t=1/0),void 0===e&&(e=1/0),void 0===r&&(r=zt);var n=Dt.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 qt(t,e){var r=Ft.call(this)||this;return r.destination=t,r.source=e,r}function Ht(){var t=Gt.call(this)||this;return t.closed=!1,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}let Yt=[],Kt={};const Qt=[];function Zt(n,o=f){let i;const s=[];function a(t){if(r(n,t)&&(n=t,i)){const t=!Qt.length;for(let t=0;t<s.length;t+=1){const e=s[t];e[1](),Qt.push(e,n)}if(t){for(let t=0;t<Qt.length;t+=2)Qt[t][0](Qt[t+1]);Qt.length=0}}}return{set:a,update:function(t){a(t(n))},subscribe:function(t,e=f){const r=[t,e];return s.push(r),1===s.length&&(i=o(a)||f),t(n),()=>{var t=s.indexOf(r);-1!==t&&s.splice(t,1),0===s.length&&(i(),i=null)}}}}function Wt(t,a,e){const l=!Array.isArray(t),u=l?[t]:t,c=a.length<2;return{subscribe:Zt(e,e=>{let r=!1;const n=[];let o=0,i=f;const s=()=>{var t;o||(i(),t=a(l?n[0]:n,e),c?e(t):i=m(t)?t:f)},t=u.map((t,e)=>E(t,t=>{n[e]=t,o&=~(1<<e),r&&s()},()=>{o|=1<<e}));return r=!0,s(),function(){d(t),i()}}).subscribe}}var Jt=function(t){return!(!t||"object"!=typeof t||(e=t,"[object RegExp]"===(t=Object.prototype.toString.call(e))||"[object Date]"===t||e.$$typeof===te));var e},te="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function ee(t,e){return!1!==e.clone&&e.isMergeableObject(t)?se(Array.isArray(t)?[]:{},t,e):t}function re(t,e,r){return t.concat(e).map(function(t){return ee(t,r)})}function ne(t){return Object.keys(t).concat((e=t,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]));var e}function oe(t,e){try{return e in t}catch(t){return!1}}function ie(n,o,i){var s={};return i.isMergeableObject(n)&&ne(n).forEach(function(t){s[t]=ee(n[t],i)}),ne(o).forEach(function(e){var t,r;(!oe(t=n,r=e)||Object.hasOwnProperty.call(t,r)&&Object.propertyIsEnumerable.call(t,r))&&(oe(n,e)&&i.isMergeableObject(o[e])?s[e]=function(){if(!i.customMerge)return se;var t=i.customMerge(e);return"function"==typeof t?t:se}()(n[e],o[e],i):s[e]=ee(o[e],i))}),s}function se(t,e,r){(r=r||{}).arrayMerge=r.arrayMerge||re,r.isMergeableObject=r.isMergeableObject||Jt,r.cloneUnlessOtherwiseSpecified=ee;var n=Array.isArray(e);return n===Array.isArray(t)?n?r.arrayMerge(t,e,r):ie(t,e,r):ee(e,r)}se.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,e){return se(t,e,r)},{})};var ae=se,le=function(t,e){return(le=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 ue(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}le(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}var ce,fe,he,pe=function(){return(pe=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function de(t,e){for(var r=0,n=e.length,o=t.length;r<n;r++,o++)t[o]=e[r];return t}function me(t){return t.type===fe.literal}function be(t){return t.type===fe.number}function ye(t){return t.type===fe.date}function ge(t){return t.type===fe.time}function ve(t){return t.type===fe.select}function Ee(t){return t.type===fe.plural}function Te(t){return t.type===fe.tag}function we(t){return t&&"object"==typeof t&&t.type===he.number}function _e(t){return t&&"object"==typeof t&&t.type===he.dateTime}(je=ce=ce||{})[je.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",je[je.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",je[je.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",je[je.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",je[je.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",je[je.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",je[je.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",je[je.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",je[je.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",je[je.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",je[je.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",je[je.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",je[je.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",je[je.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",je[je.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",je[je.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",je[je.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",je[je.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",je[je.INVALID_TAG=23]="INVALID_TAG",je[je.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",je[je.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",je[je.UNCLOSED_TAG=27]="UNCLOSED_TAG",($e=fe=fe||{})[$e.literal=0]="literal",$e[$e.argument=1]="argument",$e[$e.number=2]="number",$e[$e.date=3]="date",$e[$e.time=4]="time",$e[$e.select=5]="select",$e[$e.plural=6]="plural",$e[$e.pound=7]="pound",$e[$e.tag=8]="tag",(Be=he=he||{})[Be.number=0]="number",Be[Be.dateTime=1]="dateTime";var Ce=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Ae=/(?:[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 Pe,Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Oe=/^(@+)?(\+|#+)?$/g,Re=/(\*)(0+)|(#+)(0+)|(0+)/g,Ue=/^(0+)$/;function xe(t){var n={};return t.replace(Oe,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 Ne(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 Ie(t){return Ne(t)||{}}function Me(t){for(var s={},e=0,r=t;e<r.length;e++){var n,o=r[e];switch(o.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=o.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=o.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=pe(pe(pe({},s),{notation:"scientific"}),o.options.reduce(function(t,e){return pe(pe({},t),Ie(e))},{}));continue;case"engineering":s=pe(pe(pe({},s),{notation:"engineering"}),o.options.reduce(function(t,e){return pe(pe({},t),Ie(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(o.options[0]);continue;case"integer-width":if(1<o.options.length)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(Re,function(t,e,r,n,o,i){if(e)s.minimumIntegerDigits=r.length;else{if(n&&o)throw new Error("We currently do not support maximum integer digits");if(i)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ue.test(o.stem))s.minimumIntegerDigits=o.stem.length;else if(Le.test(o.stem)){if(1<o.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(Le,function(t,e,r,n,o,i){return"*"===r?s.minimumFractionDigits=e.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:o&&i?(s.minimumFractionDigits=o.length,s.maximumFractionDigits=o.length+i.length):(s.minimumFractionDigits=e.length,s.maximumFractionDigits=e.length),""}),o.options.length&&(s=pe(pe({},s),xe(o.options[0])))}else Oe.test(o.stem)?s=pe(pe({},s),xe(o.stem)):((n=Ne(o.stem))&&(s=pe(pe({},s),n)),(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)),!Ue.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}(o.stem))&&(s=pe(pe({},s),n)))}return s}var ke=new RegExp("^"+Ce.source+"*"),De=new RegExp(Ce.source+"*$");function Fe(t,e){return{start:t,end:e}}var Ge=!!String.prototype.startsWith,xt=!!String.fromCodePoint,$t=!!Object.fromEntries,je=!!String.prototype.codePointAt,$e=!!String.prototype.trimStart,Be=!!String.prototype.trimEnd,ze=Number.isSafeInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ce=!0;try{Ce="a"===(null===(Pe=We("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pe?void 0:Pe[0])}catch(f){Ce=!1}var Ve,Xe,qe=Ge?function(t,e,r){return t.startsWith(e,r)}:function(t,e,r){return t.slice(r,r+e.length)===e},He=xt?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r,n="",o=t.length,i=0;i<o;){if(1114111<(r=t[i++]))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},Ye=$t?Object.fromEntries:function(t){for(var e={},r=0,n=t;r<n.length;r++){var o=n[r],i=o[0],o=o[1];e[i]=o}return e},Ke=je?function(t,e){return t.codePointAt(e)}:function(t,e){var r=t.length;if(!(e<0||r<=e)){var n,o=t.charCodeAt(e);return o<55296||56319<o||e+1===r||(n=t.charCodeAt(e+1))<56320||57343<n?o:n-56320+(o-55296<<10)+65536}},Qe=$e?function(t){return t.trimStart()}:function(t){return t.replace(ke,"")},Ze=Be?function(t){return t.trimEnd()}:function(t){return t.replace(De,"")};function We(t,e){return new RegExp(t,e)}Xe=Ce?(Ve=We("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(t,e){return Ve.lastIndex=e,null!==(t=Ve.exec(t)[1])&&void 0!==t?t:""}):function(t,e){for(var r,n=[];;){var o=Ke(t,e);if(void 0===o||rr(o)||(33<=(r=o)&&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(o),e+=65536<=o?2:1}return He.apply(void 0,n)};var Je=(tr.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},tr.prototype.parseMessage=function(t,e,r){for(var n=[];!this.isEOF();){var o,i=this.char();if(123===i){if((o=this.parseArgument(t,r)).err)return o;n.push(o.val)}else{if(125===i&&0<t)break;if(35!==i||"plural"!==e&&"selectordinal"!==e){if(60===i&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ce.UNMATCHED_CLOSING_TAG,Fe(this.clonePosition(),this.clonePosition()))}if(60===i&&!this.ignoreTag&&er(this.peek()||0)){if((o=this.parseTag(t,e)).err)return o;n.push(o.val)}else{if((o=this.parseLiteral(t,e)).err)return o;n.push(o.val)}}else{i=this.clonePosition();this.bump(),n.push({type:fe.pound,location:Fe(i,this.clonePosition())})}}}return{val:n,err:null}},tr.prototype.parseTag=function(t,e){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:fe.literal,value:"<"+n+"/>",location:Fe(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;t=o.val,e=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!er(this.char()))return this.error(ce.INVALID_TAG,Fe(e,this.clonePosition()));o=this.clonePosition();return n!==this.parseTagName()?this.error(ce.UNMATCHED_CLOSING_TAG,Fe(o,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:fe.tag,value:n,children:t,location:Fe(r,this.clonePosition())},err:null}:this.error(ce.INVALID_TAG,Fe(e,this.clonePosition())))}return this.error(ce.UNCLOSED_TAG,Fe(r,this.clonePosition()))}return this.error(ce.INVALID_TAG,Fe(r,this.clonePosition()))},tr.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())},tr.prototype.parseLiteral=function(t,e){for(var r=this.clonePosition(),n="";;){var o=this.tryParseQuote(e);if(o)n+=o;else{o=this.tryParseUnquoted(t,e);if(o)n+=o;else{o=this.tryParseLeftAngleBracket();if(!o)break;n+=o}}}r=Fe(r,this.clonePosition());return{val:{type:fe.literal,value:n,location:r},err:null}},tr.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(er(t=this.peek()||0)||47===t)?null:(this.bump(),"<");var t},tr.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 He.apply(void 0,e)},tr.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(),He(r))},tr.prototype.parseArgument=function(t,e){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ce.EMPTY_ARGUMENT,Fe(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ce.MALFORMED_ARGUMENT,Fe(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:fe.argument,value:n,location:Fe(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(r,this.clonePosition())):this.parseArgumentOptions(t,e,n,r);default:return this.error(ce.MALFORMED_ARGUMENT,Fe(r,this.clonePosition()))}},tr.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),r=Xe(this.message,e),e=e+r.length;return this.bumpTo(e),{value:r,location:Fe(t,this.clonePosition())}},tr.prototype.parseArgumentOptions=function(t,e,r,n){var o,i=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ce.EXPECT_ARGUMENT_TYPE,Fe(i,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var u=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Ze(h.val)).length)return this.error(ce.EXPECT_ARGUMENT_STYLE,Fe(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Fe(u,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var c=Fe(n,this.clonePosition());if(l&&qe(null==l?void 0:l.style,"::",0)){u=Qe(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?h:{val:{type:fe.number,value:r,location:c,style:h.val},err:null};if(0===u.length)return this.error(ce.EXPECT_DATE_TIME_SKELETON,c);var f={type:he.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(o={},u.replace(Ae,function(t){var e=t.length;switch(t[0]){case"G":o.era=4===e?"long":5===e?"narrow":"short";break;case"y":o.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":o.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":o.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":o.weekday=4!==e&&5===e?"narrow":"short";break;case"e":if(e<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"c":if(e<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");o.weekday=["short","long","narrow","short"][e-4];break;case"a":o.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":o.hourCycle="h12",o.hour=["numeric","2-digit"][e-1];break;case"H":o.hourCycle="h23",o.hour=["numeric","2-digit"][e-1];break;case"K":o.hourCycle="h11",o.hour=["numeric","2-digit"][e-1];break;case"k":o.hourCycle="h24",o.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":o.minute=["numeric","2-digit"][e-1];break;case"s":o.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":o.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""}),o):{}};return{val:{type:"date"===s?fe.date:fe.time,value:r,location:c,style:f},err:null}}return{val:{type:"number"===s?fe.number:"date"===s?fe.date:fe.time,value:r,location:c,style:null!==(c=null==l?void 0:l.style)&&void 0!==c?c:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ce.EXPECT_SELECT_ARGUMENT_OPTIONS,Fe(l,pe({},l)));this.bumpSpace();var h,c=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===c.value){if(!this.bumpIf(":"))return this.error(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Fe(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ce.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ce.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),c=this.parseIdentifierIfPossible(),l=h.val}c=this.tryParsePluralOrSelectOptions(t,s,e,c);if(c.err)return c;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Fe(n,this.clonePosition());return"select"===s?{val:{type:fe.select,value:r,options:Ye(c.val),location:p},err:null}:{val:{type:fe.plural,value:r,options:Ye(c.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(ce.INVALID_ARGUMENT_TYPE,Fe(i,a))}},tr.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(ce.EXPECT_ARGUMENT_CLOSING_BRACE,Fe(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},tr.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(ce.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Fe(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}},tr.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(Se).filter(function(t){return 0<t.length});r<n.length;r++){var o=n[r].split("/");if(0===o.length)throw new Error("Invalid number skeleton");for(var i=o[0],o=o.slice(1),s=0,a=o;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");e.push({stem:i,options:o})}return e}(t)}catch(t){return this.error(ce.INVALID_NUMBER_SKELETON,e)}return{val:{type:he.number,tokens:r,location:e,parsedOptions:this.shouldParseSkeletons?Me(r):{}},err:null}},tr.prototype.tryParsePluralOrSelectOptions=function(t,e,r,n){for(var o=!1,i=[],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(ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,ce.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;l=Fe(u,this.clonePosition()),a=this.message.slice(u.offset,this.offset())}if(s.has(a))return this.error("select"===e?ce.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ce.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(o=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?ce.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Fe(this.clonePosition(),this.clonePosition()));c=this.parseMessage(t+1,e,r);if(c.err)return c;u=this.tryParseArgumentClose(f);if(u.err)return u;i.push([a,{value:c.val,location:Fe(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===i.length?this.error("select"===e?ce.EXPECT_SELECT_ARGUMENT_SELECTOR:ce.EXPECT_PLURAL_ARGUMENT_SELECTOR,Fe(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(ce.MISSING_OTHER_CLAUSE,Fe(this.clonePosition(),this.clonePosition())):{val:i,err:null}},tr.prototype.tryParseDecimalInteger=function(t,e){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,i=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;o=!0,i=10*i+(s-48),this.bump()}n=Fe(n,this.clonePosition());return o?ze(i*=r)?{val:i,err:null}:this.error(e,n):this.error(t,n)},tr.prototype.offset=function(){return this.position.offset},tr.prototype.isEOF=function(){return this.offset()===this.message.length},tr.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},tr.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Ke(this.message,t);if(void 0===e)throw Error("Offset "+t+" is at invalid UTF-16 code unit boundary");return e},tr.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},tr.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))},tr.prototype.bumpIf=function(t){if(qe(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},tr.prototype.bumpUntil=function(t){var e=this.offset(),e=this.message.indexOf(t,e);return 0<=e?(this.bumpTo(e),!0):(this.bumpTo(this.message.length),!1)},tr.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset "+t+" must be greater than or equal to the current offset "+this.offset());for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(t<e)throw Error("targetOffset "+t+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},tr.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},tr.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),t=this.message.charCodeAt(e+(65536<=t?2:1));return null!=t?t:null},tr);function tr(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}function er(t){return 97<=t&&t<=122||65<=t&&t<=90}function rr(t){return 9<=t&&t<=13||32===t||133===t||8206<=t&&t<=8207||8232===t||8233===t}function nr(t,e){e=pe({shouldParseSkeletons:!0,requiresOtherClause:!0},e=void 0===e?{}:e);var r=new Je(t,e).parse();if(r.err){t=SyntaxError(ce[r.err.kind]);throw t.location=r.err.location,t.originalMessage=r.err.message,t}return null!=e&&e.captureLocation||function r(t){t.forEach(function(t){if(delete t.location,ve(t)||Ee(t))for(var e in t.options)delete t.options[e].location,r(t.options[e].value);else be(t)&&we(t.style)||(ye(t)||ge(t))&&_e(t.style)?delete t.style.location:Te(t)&&r(t.children)})}(r.val),r.val}function or(t,e){var r=e&&e.cache?e.cache:fr,n=e&&e.serializer?e.serializer:lr;return(e&&e.strategy?e.strategy:function(t,e){return ar(t,this,1===t.length?ir:sr,e.cache.create(),e.serializer)})(t,{cache:r,serializer:n})}function ir(t,e,r,n){var o=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=e.get(o);return void 0===r&&(r=t.call(this,n),e.set(o,r)),r}function sr(t,e,r){var n=Array.prototype.slice.call(arguments,3),o=r(n),r=e.get(o);return void 0===r&&(r=t.apply(this,n),e.set(o,r)),r}function ar(t,e,r,n,o){return r.bind(e,t,n,o)}var lr=function(){return JSON.stringify(arguments)};function ur(){this.cache=Object.create(null)}ur.prototype.has=function(t){return t in this.cache},ur.prototype.get=function(t){return this.cache[t]},ur.prototype.set=function(t,e){this.cache[t]=e};var cr,fr={create:function(){return new ur}},hr={variadic:function(t,e){return ar(t,this,sr,e.cache.create(),e.serializer)},monadic:function(t,e){return ar(t,this,ir,e.cache.create(),e.serializer)}};(Ce=cr=cr||{}).MISSING_VALUE="MISSING_VALUE",Ce.INVALID_VALUE="INVALID_VALUE",Ce.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,br,yr,gr=(ue(Ar,yr=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),vr=(ue(Cr,br=gr),Cr),Er=(ue(_r,mr=gr),_r),Tr=(ue(wr,dr=gr),wr);function wr(t,e){return dr.call(this,'The intl string context variable "'+t+'" was not provided to the string "'+e+'"',cr.MISSING_VALUE,e)||this}function _r(t,e,r){return mr.call(this,'Value for "'+t+'" must be of type '+e,cr.INVALID_VALUE,r)||this}function Cr(t,e,r,n){return br.call(this,'Invalid values for "'+t+'": "'+e+'". Options are "'+Object.keys(r).join('", "')+'"',cr.INVALID_VALUE,n)||this}function Ar(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Pr(t,e,r,n,o,i,s){if(1===t.length&&me(t[0]))return[{type:pr.literal,value:t[0].value}];for(var a=[],l=0,u=t;l<u.length;l++){var c=u[l];if(me(c))a.push({type:pr.literal,value:c.value});else if(c.type===fe.pound)"number"==typeof i&&a.push({type:pr.literal,value:r.getNumberFormat(e).format(i)});else{var f=c.value;if(!(o&&f in o))throw new Tr(f,s);var h=o[f];if(c.type===fe.argument)h&&"string"!=typeof h&&"number"!=typeof h||(h="string"==typeof h||"number"==typeof h?String(h):""),a.push({type:"string"==typeof h?pr.literal:pr.object,value:h});else if(ye(c)){var p="string"==typeof c.style?n.date[c.style]:_e(c.style)?c.style.parsedOptions:void 0;a.push({type:pr.literal,value:r.getDateTimeFormat(e,p).format(h)})}else if(ge(c))p="string"==typeof c.style?n.time[c.style]:_e(c.style)?c.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(e,p).format(h)});else if(be(c))(p="string"==typeof c.style?n.number[c.style]:we(c.style)?c.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(e,p).format(h)});else{if(Te(c)){var d=c.children,m=c.value,f=o[m];if("function"!=typeof f)throw new Er(m,"function",s);d=f(Pr(d,e,r,n,o,i).map(function(t){return t.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(t){return{type:"string"==typeof t?pr.literal:pr.object,value:t}}))}if(ve(c)){if(!(b=c.options[h]||c.options.other))throw new vr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Pr(b.value,e,r,n,o))}else if(Ee(c)){if(!(b=c.options["="+h])){if(!Intl.PluralRules)throw new gr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',cr.MISSING_INTL_API,s);var d=r.getPluralRules(e,{type:c.pluralType}).select(h-(c.offset||0)),b=c.options[d]||c.options.other}if(!b)throw new vr(c.value,h,Object.keys(c.options),s);a.push.apply(a,Pr(b.value,e,r,n,o,h-(c.offset||0)))}}}}return a.length<2?a:a.reduce(function(t,e){var r=t[t.length-1];return r&&r.type===pr.literal&&e.type===pr.literal?r.value+=e.value:t.push(e),t},[])}function Sr(r){return{create:function(){return{has:function(t){return t in r},get:function(t){return r[t]},set:function(t,e){r[t]=e}}}}}(Ce=pr=pr||{})[Ce.literal=0]="literal",Ce[Ce.object=1]="object";var Lr=(Object.defineProperty(Or,"defaultLocale",{get:function(){return Or.memoizedDefaultLocale||(Or.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Or.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Or.memoizedDefaultLocale=null,Or.__parse=nr,Or.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"}}},Or);function Or(t,e,r,n){var o,i,s=this;if(void 0===e&&(e=Or.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===pr.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 Pr(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof t){if(this.message=t,!Or.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Or.__parse(t,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(o=Or.formats,(i=r)?Object.keys(o).reduce(function(t,e){var r,n;return t[e]=(r=o[e],(n=i[e])?pe(pe(pe({},r||{}),n||{}),Object.keys(r).reduce(function(t,e){return t[e]=pe(pe({},r[e]),n[e]||{}),t},{})):r),t},pe({},o)):o),this.locales=e,this.formatters=n&&n.formatters||{getNumberFormat:or(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,de([void 0],e)))},{cache:Sr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:or(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,de([void 0],e)))},{cache:Sr(n.dateTime),strategy:hr.variadic}),getPluralRules:or(function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,de([void 0],e)))},{cache:Sr(n.pluralRules),strategy:hr.variadic})}}const Rr={},Ur=(e,r)=>{if(null!=r){if(r in Rr&&e in Rr[r])return Rr[r][e];var n,o,i=Hr(r);for(let t=0;t<i.length;t++){var s=(n=i[t],o=e,Ir(n)?function(t,e){if(e in t)return t[e];const r=e.split(".");let n=t;for(let t=0;t<r.length;t++)if("object"==typeof n){if(0<t){const e=r.slice(t,r.length).join(".");if(e in n){n=n[e];break}}n=n[r[t]]}else n=void 0;return n}(function(t){return xr[t]||null}(n),o):null);if(s)return n=e,o=r,(s=s)&&(o in Rr||(Rr[o]={}),n in Rr[o]||(Rr[o][n]=s),s)}}};let xr;const Nr=Zt({});function Ir(t){return t in xr}function Mr(e,...r){delete Rr[e],Nr.update(t=>(t[e]=ae.all([t[e]||{},...r]),t))}Wt([Nr],([t])=>Object.keys(t)),Nr.subscribe(t=>xr=t);const kr={};function Dr(t){return kr[t]}function Fr(t){return Hr(t).some(t=>{return null===(t=Dr(t))||void 0===t?void 0:t.size})}const Gr={};function jr(t){if(!Fr(t))return t in Gr?Gr[t]:void 0;const e=Hr(t).map(t=>{var e=Dr(t);return[t,e?[...e]:[]]}).filter(([,t])=>0<t.length);return Gr[t]=Promise.all(e.map(([t,r])=>function(e){return Promise.all(r.map(t=>(function(t,e){kr[t].delete(e),0===kr[t].size&&delete kr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>Mr(e,...t))}(t))).then(()=>Fr(t)?jr(t):void delete Gr[t]),Gr[t]}function $r(t,e){var r={};for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}const Br={fallbackLocale:null,initialLocale: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,ignoreTag:!0};const zr=Zt(!1);let Vr;const Xr=Zt(null);function qr(t){return t.split("-").map((t,e,r)=>r.slice(0,e+1).join("-")).reverse()}function Hr(t,e=Br.fallbackLocale){t=qr(t);return e?[...new Set([...t,...qr(e)])]:t}Xr.subscribe(t=>{Vr=t,"undefined"!=typeof window&&null!==t&&document.documentElement.setAttribute("lang",t)});const Yr=Xr.set;Xr.set=e=>{if(function(t){if(null!=t){var e=Hr(t);for(let t=0;t<e.length;t++){var r=e[t];if(Ir(r))return r}}}(e)&&Fr(e)){var{loadingDelay:r}=Br;let t;return"undefined"!=typeof window&&null!=Vr&&r?t=window.setTimeout(()=>zr.set(!0),r):zr.set(!0),jr(e).then(()=>{Yr(e)}).finally(()=>{clearTimeout(t),zr.set(!1)})}return Yr(e)},Xr.update=t=>Yr(t(Vr));const Kr=r=>{const n=Object.create(null);return t=>{var e=JSON.stringify(t);return e in n?n[e]:n[e]=r(t)}},Qr=(t,e)=>{var{formats:r}=Br;if(t in r&&e in r[t])return r[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Zr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(t=Qr("number",r)),new Intl.NumberFormat(e,t)}),Wr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?t=Qr("date",r):0===Object.keys(t).length&&(t=Qr("date","short")),new Intl.DateTimeFormat(e,t)}),Jr=Kr(t=>{var{locale:e,format:r}=t,t=$r(t,["locale","format"]);if(null==e)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?t=Qr("time",r):0===Object.keys(t).length&&(t=Qr("time","short")),new Intl.DateTimeFormat(e,t)}),tn=Kr((t,e=Vr)=>new Lr(t,e,Br.formats,{ignoreTag:Br.ignoreTag})),en=Wt([Xr,Nr],()=>(t,e={})=>{"object"==typeof t&&(t=(e=t).id);var{values:r,locale:n=Vr,default:o}=e;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let i=Ur(t,n);if(i){if("string"!=typeof i)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof i}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),i}else Br.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${t}" was not found in "${Hr(n).join('", "')}".${Fr(Vr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),i=o||t;if(!r)return i;let s=i;try{s=tn(i,n).format(r)}catch(e){console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return s});Wt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=Vr}=t,t=$r(t,["locale"]);return Jr(Object.assign({locale:e},t))})(e).format(t)),Wt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=Vr}=t,t=$r(t,["locale"]);return Wr(Object.assign({locale:e},t))})(e).format(t)),Wt([Xr],()=>(t,e)=>((t={})=>{var{locale:e=Vr}=t,t=$r(t,["locale"]);return Zr(Object.assign({locale:e},t))})(e).format(t)),Wt([Xr,Nr],()=>(t,e=Vr)=>Ur(t,e)),window.emWidgets={topic:(t,e=0)=>{return-1==Yt.indexOf(t)&&(e=new Vt(e),Kt[t]=e,Yt.push(t)),Kt[t]}};const rn=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Τάξη",Player:"Παίχτης",Points:"Πόντοι",Prize:"Βραβείο"}}};function on(t,e,r){const n=t.slice();return n[27]=e[r],n}function sn(t,e,r){const n=t.slice();return n[24]=e[r],n}function an(t,e,r){const n=t.slice();return n[27]=e[r],n}function ln(t,e,r){const n=t.slice();return n[24]=e[r],n}function un(t,e,r){const n=t.slice();return n[27]=e[r],n}function cn(e){let r,n,o,i,s,a,l,u,c,t=e[8]("tournamentsTable.nowinners")+"",f=e[3],h=[];for(let t=0;t<f.length;t+=1)h[t]=mn(on(e,f,t));return{c(){r=L("div"),n=L("table"),o=L("thead"),i=L("tr");for(let t=0;t<h.length;t+=1)h[t].c();s=R(),a=L("tbody"),l=L("tr"),u=L("td"),c=O(t),U(u,"colspan","4"),U(n,"class","LeftTable"),U(n,"part","LeftTable"),U(r,"class","TournamentsTable"),U(r,"part","TournamentsTable")},m(t,e){P(t,r,e),A(r,n),A(n,o),A(o,i);for(let t=0;t<h.length;t+=1)h[t].m(i,null);A(n,s),A(n,a),A(a,l),A(l,u),A(u,c)},p(e,r){if(1417&r[0]){let t;for(f=e[3],t=0;t<f.length;t+=1){var n=on(e,f,t);h[t]?h[t].p(n,r):(h[t]=mn(n),h[t].c(),h[t].m(i,null))}for(;t<h.length;t+=1)h[t].d(1);h.length=f.length}256&r[0]&&t!==(t=e[8]("tournamentsTable.nowinners")+"")&&x(c,t)},d(t){t&&S(r),T(h,t)}}}function fn(t){let r,n=t[5]&&bn(t);return{c(){n&&n.c(),r=_()},m(t,e){n&&n.m(t,e),P(t,r,e)},p(t,e){t[5]?n?n.p(t,e):(n=bn(t),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(t){n&&n.d(t),t&&S(r)}}}function hn(t){let r,n=(e=t,(1==rn(e[9])?gn:yn)(t));var e;return{c(){n.c(),r=_()},m(t,e){n.m(t,e),P(t,r,e)},p(t,e){n.p(t,e)},d(t){n.d(t),t&&S(r)}}}function pn(t){let r,n,o=t[8](`tournamentsTable.${t[27]}`)+"";return{c(){r=L("p"),n=O(o),U(r,"data-sort",t[7])},m(t,e){P(t,r,e),A(r,n)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[27]}`)+"")&&x(n,o),128&e[0]&&U(r,"data-sort",t[7])},d(t){t&&S(r)}}}function dn(r){let n,o,i,s,a=r[8](`tournamentsTable.${r[27]}`)+"";function l(){return r[18](r[27])}return{c(){n=L("button"),o=O(a),U(n,"data-sort",r[7])},m(t,e){P(t,n,e),A(n,o),i||(s=w(n,"click",l),i=!0)},p(t,e){r=t,264&e[0]&&a!==(a=r[8](`tournamentsTable.${r[27]}`)+"")&&x(o,a),128&e[0]&&U(n,"data-sort",r[7])},d(t){t&&S(n),i=!1,s()}}}function mn(t){let r,n;function o(t){return"true"==t[0]?dn:pn}let i=o(t),s=i(t);return{c(){r=L("th"),s.c(),n=R()},m(t,e){P(t,r,e),s.m(r,null),A(r,n)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(r,n)))},d(t){t&&S(r),s.d()}}}function bn(t){let r,n,o,i,s=t[8]("tournamentsTable.nowinners")+"";return{c(){r=L("div"),n=L("div"),o=L("p"),i=O(s),U(n,"class","TableUser"),U(n,"part","TableUser"),U(r,"class","TableContent"),U(r,"part","TableContent")},m(t,e){P(t,r,e),A(r,n),A(n,o),A(o,i)},p(t,e){256&e[0]&&s!==(s=t[8]("tournamentsTable.nowinners")+"")&&x(i,s)},d(t){t&&S(r)}}}function yn(r){let n,o,i,s,a,l,u,c,f,h,p,d,m=r[3],b=[];for(let t=0;t<m.length;t+=1)b[t]=Tn(an(r,m,t));let y="true"==r[1]&&r[4]&&wn(r),g=r[5]&&An(r);function t(t){return t[5]?Rn:On}let v=t(r),E=v(r);return{c(){n=L("div"),o=L("table"),i=L("thead"),s=L("tr");for(let t=0;t<b.length;t+=1)b[t].c();a=R(),l=L("tbody"),y&&y.c(),u=R(),g&&g.c(),c=R(),f=L("div"),h=L("div"),E.c(),U(o,"class","LeftTable"),U(o,"part","LeftTable"),U(h,"class","CollapseButton"),U(h,"part","CollapseButton"),U(f,"class","RightButton"),U(f,"part","RightButton"),U(n,"class","TournamentsTable"),U(n,"part","TournamentsTable")},m(t,e){P(t,n,e),A(n,o),A(o,i),A(i,s);for(let t=0;t<b.length;t+=1)b[t].m(s,null);A(o,a),A(o,l),y&&y.m(l,null),A(l,u),g&&g.m(l,null),A(n,c),A(n,f),A(f,h),E.m(h,null),p||(d=w(h,"click",r[17]),p=!0)},p(e,r){if(1417&r[0]){let t;for(m=e[3],t=0;t<m.length;t+=1){var n=an(e,m,t);b[t]?b[t].p(n,r):(b[t]=Tn(n),b[t].c(),b[t].m(s,null))}for(;t<b.length;t+=1)b[t].d(1);b.length=m.length}"true"==e[1]&&e[4]?y?y.p(e,r):(y=wn(e),y.c(),y.m(l,u)):y&&(y.d(1),y=null),e[5]?g?g.p(e,r):(g=An(e),g.c(),g.m(l,null)):g&&(g.d(1),g=null),v!==(v=t(e))&&(E.d(1),E=v(e),E&&(E.c(),E.m(h,null)))},d(t){t&&S(n),T(b,t),y&&y.d(),g&&g.d(),E.d(),p=!1,d()}}}function gn(e){let n,o,r,i,s=e[3],a=[];for(let t=0;t<s.length;t+=1)a[t]=Nn(un(e,s,t));let l="true"==e[1]&&e[4]&&In(e),u=e[5]&&Fn(e);return{c(){n=L("div"),o=L("div");for(let t=0;t<a.length;t+=1)a[t].c();r=R(),l&&l.c(),i=R(),u&&u.c(),U(o,"class","TableUser TableHeadRow"),U(o,"part","TableHeadRow"),U(n,"class","TableContent"),U(n,"part","TableContent")},m(t,e){P(t,n,e),A(n,o);for(let t=0;t<a.length;t+=1)a[t].m(o,null);A(n,r),l&&l.m(n,null),A(n,i),u&&u.m(n,null)},p(e,r){if(1417&r[0]){let t;for(s=e[3],t=0;t<s.length;t+=1){const i=un(e,s,t);a[t]?a[t].p(i,r):(a[t]=Nn(i),a[t].c(),a[t].m(o,null))}for(;t<a.length;t+=1)a[t].d(1);a.length=s.length}"true"==e[1]&&e[4]?l?l.p(e,r):(l=In(e),l.c(),l.m(n,i)):l&&(l.d(1),l=null),e[5]?u?u.p(e,r):(u=Fn(e),u.c(),u.m(n,null)):u&&(u.d(1),u=null)},d(t){t&&S(n),T(a,t),l&&l.d(),u&&u.d()}}}function vn(t){let r,n,o=t[8](`tournamentsTable.${t[27]}`)+"";return{c(){r=L("p"),n=O(o),U(r,"data-sort",t[7])},m(t,e){P(t,r,e),A(r,n)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[27]}`)+"")&&x(n,o),128&e[0]&&U(r,"data-sort",t[7])},d(t){t&&S(r)}}}function En(r){let n,o,i,s,a=r[8](`tournamentsTable.${r[27]}`)+"";function l(){return r[16](r[27])}return{c(){n=L("button"),o=O(a),U(n,"data-sort",r[7])},m(t,e){P(t,n,e),A(n,o),i||(s=w(n,"click",l),i=!0)},p(t,e){r=t,264&e[0]&&a!==(a=r[8](`tournamentsTable.${r[27]}`)+"")&&x(o,a),128&e[0]&&U(n,"data-sort",r[7])},d(t){t&&S(n),i=!1,s()}}}function Tn(t){let r,n;function o(t){return"true"==t[0]?En:vn}let i=o(t),s=i(t);return{c(){r=L("th"),s.c(),n=R()},m(t,e){P(t,r,e),s.m(r,null),A(r,n)},p(t,e){i===(i=o(t))&&s?s.p(t,e):(s.d(1),s=i(t),s&&(s.c(),s.m(r,n)))},d(t){t&&S(r),s.d()}}}function wn(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b,y=t[4].Rank+"",g=t[4].Player+"",v=t[4].Points+"";function E(t){return t[4].Prize?Cn:_n}let T=E(t),w=T(t);return{c(){r=L("tr"),n=L("td"),o=L("strong"),i=L("em"),s=O("#"),a=O(y),l=R(),u=L("td"),c=O(g),f=R(),h=L("td"),p=L("div"),d=O(v),m=R(),b=L("td"),w.c(),U(p,"class","Flex"),U(p,"part","Flex"),U(r,"class","FirstRow"),U(r,"part","FirstRow")},m(t,e){P(t,r,e),A(r,n),A(n,o),A(o,i),A(i,s),A(i,a),A(r,l),A(r,u),A(u,c),A(r,f),A(r,h),A(h,p),A(p,d),A(r,m),A(r,b),w.m(b,null)},p(t,e){16&e[0]&&y!==(y=t[4].Rank+"")&&x(a,y),16&e[0]&&g!==(g=t[4].Player+"")&&x(c,g),16&e[0]&&v!==(v=t[4].Points+"")&&x(d,v),T===(T=E(t))&&w?w.p(t,e):(w.d(1),w=T(t),w&&(w.c(),w.m(b,null)))},d(t){t&&S(r),w.d()}}}function _n(t){let r;return{c(){r=O("-")},m(t,e){P(t,r,e)},p:f,d(t){t&&S(r)}}}function Cn(t){let r,n=t[4].Prize+"";return{c(){r=O(n)},m(t,e){P(t,r,e)},p(t,e){16&e[0]&&n!==(n=t[4].Prize+"")&&x(r,n)},d(t){t&&S(r)}}}function An(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=Ln(sn(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=_()},m(e,r){for(let t=0;t<s.length;t+=1)s[t].m(e,r);P(e,o,r)},p(e,r){if(64&r[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var n=sn(e,i,t);s[t]?s[t].p(n,r):(s[t]=Ln(n),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){T(s,t),t&&S(o)}}}function Pn(t){let r;return{c(){r=O("-")},m(t,e){P(t,r,e)},p:f,d(t){t&&S(r)}}}function Sn(t){let r,n=t[24].Prize+"";return{c(){r=O(n)},m(t,e){P(t,r,e)},p(t,e){64&e[0]&&n!==(n=t[24].Prize+"")&&x(r,n)},d(t){t&&S(r)}}}function Ln(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b,y,g,v=t[24].Rank+"",E=t[24].Player+"",T=t[24].Points+"";function w(t){return t[24].Prize?Sn:Pn}let _=w(t),C=_(t);return{c(){r=L("tr"),n=L("td"),o=L("strong"),i=L("em"),s=O("#"),a=O(v),l=R(),u=L("td"),c=O(E),f=R(),h=L("td"),p=L("div"),d=O(T),m=R(),b=L("td"),C.c(),y=R(),U(p,"class","Flex"),U(p,"part","Flex"),U(r,"class",g=t[24].isCurrentUser?"FirstRow":"")},m(t,e){P(t,r,e),A(r,n),A(n,o),A(o,i),A(i,s),A(i,a),A(r,l),A(r,u),A(u,c),A(r,f),A(r,h),A(h,p),A(p,d),A(r,m),A(r,b),C.m(b,null),A(r,y)},p(t,e){64&e[0]&&v!==(v=t[24].Rank+"")&&x(a,v),64&e[0]&&E!==(E=t[24].Player+"")&&x(c,E),64&e[0]&&T!==(T=t[24].Points+"")&&x(d,T),_===(_=w(t))&&C?C.p(t,e):(C.d(1),C=_(t),C&&(C.c(),C.m(b,null))),64&e[0]&&g!==(g=t[24].isCurrentUser?"FirstRow":"")&&U(r,"class",g)},d(t){t&&S(r),C.d()}}}function On(t){let r,n;return{c(){r=e("svg"),n=e("path"),U(n,"d","M6 9l6 6 6-6"),U(r,"xmlns","http://www.w3.org/2000/svg"),U(r,"width","24"),U(r,"height","24"),U(r,"viewBox","0 0 24 24"),U(r,"fill","none"),U(r,"stroke","#ffffff"),U(r,"stroke-width","2"),U(r,"stroke-linecap","round"),U(r,"stroke-linejoin","round")},m(t,e){P(t,r,e),A(r,n)},d(t){t&&S(r)}}}function Rn(t){let r,n;return{c(){r=e("svg"),n=e("path"),U(n,"d","M18 15l-6-6-6 6"),U(r,"xmlns","http://www.w3.org/2000/svg"),U(r,"width","24"),U(r,"height","24"),U(r,"viewBox","0 0 24 24"),U(r,"fill","none"),U(r,"stroke","#ffffff"),U(r,"stroke-width","2"),U(r,"stroke-linecap","round"),U(r,"stroke-linejoin","round")},m(t,e){P(t,r,e),A(r,n)},d(t){t&&S(r)}}}function Un(t){let r,n,o=t[8](`tournamentsTable.${t[27]}`)+"";return{c(){r=L("p"),n=O(o),U(r,"data-sort",t[7])},m(t,e){P(t,r,e),A(r,n)},p(t,e){264&e[0]&&o!==(o=t[8](`tournamentsTable.${t[27]}`)+"")&&x(n,o),128&e[0]&&U(r,"data-sort",t[7])},d(t){t&&S(r)}}}function xn(r){let n,o,i,s,a=r[8](`tournamentsTable.${r[27]}`)+"";function l(){return r[15](r[27])}return{c(){n=L("button"),o=O(a),U(n,"data-sort",r[7])},m(t,e){P(t,n,e),A(n,o),i||(s=w(n,"click",l),i=!0)},p(t,e){r=t,264&e[0]&&a!==(a=r[8](`tournamentsTable.${r[27]}`)+"")&&x(o,a),128&e[0]&&U(n,"data-sort",r[7])},d(t){t&&S(n),i=!1,s()}}}function Nn(t){let r,n,o;function i(t){return"true"==t[0]?xn:Un}let s=i(t),a=s(t);return{c(){r=L("div"),a.c(),n=R(),U(r,"class",o="TableCell Table"+t[27])},m(t,e){P(t,r,e),a.m(r,null),A(r,n)},p(t,e){s===(s=i(t))&&a?a.p(t,e):(a.d(1),a=s(t),a&&(a.c(),a.m(r,n))),8&e[0]&&o!==(o="TableCell Table"+t[27])&&U(r,"class",o)},d(t){t&&S(r),a.d()}}}function In(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b=t[4].Rank+"",y=t[4].Player+"",g=t[4].Points+"";function v(t){return t[4].Prize?kn:Mn}let E=v(t),T=E(t),w=t[4].Unqualified&&Dn();return{c(){r=L("div"),n=L("div"),o=O(b),s=R(),a=L("div"),l=O(y),u=R(),c=L("div"),f=O(g),h=R(),T.c(),d=R(),w&&w.c(),m=_(),U(n,"class",i="TableCell TableRank "+(t[4].Prize?"Qualified":"")),U(a,"class","TableCell TablePlayer"),U(c,"class","TableCell TablePoints"),U(r,"class",p="TableUser CurrentUserRow "+(t[4].Unqualified?"UnqualifiedRow":"")),U(r,"part","TableUser")},m(t,e){P(t,r,e),A(r,n),A(n,o),A(r,s),A(r,a),A(a,l),A(r,u),A(r,c),A(c,f),A(r,h),T.m(r,null),P(t,d,e),w&&w.m(t,e),P(t,m,e)},p(t,e){16&e[0]&&b!==(b=t[4].Rank+"")&&x(o,b),16&e[0]&&i!==(i="TableCell TableRank "+(t[4].Prize?"Qualified":""))&&U(n,"class",i),16&e[0]&&y!==(y=t[4].Player+"")&&x(l,y),16&e[0]&&g!==(g=t[4].Points+"")&&x(f,g),E===(E=v(t))&&T?T.p(t,e):(T.d(1),T=E(t),T&&(T.c(),T.m(r,null))),16&e[0]&&p!==(p="TableUser CurrentUserRow "+(t[4].Unqualified?"UnqualifiedRow":""))&&U(r,"class",p),t[4].Unqualified?w||(w=Dn(),w.c(),w.m(m.parentNode,m)):w&&(w.d(1),w=null)},d(t){t&&S(r),T.d(),t&&S(d),w&&w.d(t),t&&S(m)}}}function Mn(t){let r;return{c(){r=L("div"),r.textContent="-",U(r,"class","TableCell TablePrize")},m(t,e){P(t,r,e)},p:f,d(t){t&&S(r)}}}function kn(t){let r,n,o,i=t[4].Prize+"";return{c(){r=L("div"),n=O(i),U(r,"class",o="TableCell TablePrize "+(t[4].Unqualified?"":"Qualified"))},m(t,e){P(t,r,e),A(r,n)},p(t,e){16&e[0]&&i!==(i=t[4].Prize+"")&&x(n,i),16&e[0]&&o!==(o="TableCell TablePrize "+(t[4].Unqualified?"":"Qualified"))&&U(r,"class",o)},d(t){t&&S(r)}}}function Dn(){let r;return{c(){r=L("div"),r.innerHTML='<svg class="ExclamationMark" width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z" fill="#B5B5B5"></path></svg> \n <em>Minimum bet count not completed. Check Rules.</em>',U(r,"class","TableUserTooltips"),U(r,"part","TableUserTooltips")},m(t,e){P(t,r,e)},d(t){t&&S(r)}}}function Fn(e){let o,i=e[6],s=[];for(let t=0;t<i.length;t+=1)s[t]=Bn(ln(e,i,t));return{c(){for(let t=0;t<s.length;t+=1)s[t].c();o=_()},m(e,r){for(let t=0;t<s.length;t+=1)s[t].m(e,r);P(e,o,r)},p(e,r){if(64&r[0]){let t;for(i=e[6],t=0;t<i.length;t+=1){var n=ln(e,i,t);s[t]?s[t].p(n,r):(s[t]=Bn(n),s[t].c(),s[t].m(o.parentNode,o))}for(;t<s.length;t+=1)s[t].d(1);s.length=i.length}},d(t){T(s,t),t&&S(o)}}}function Gn(t){let r;return{c(){r=L("div"),r.textContent="-",U(r,"class","TableCell TablePrize")},m(t,e){P(t,r,e)},p:f,d(t){t&&S(r)}}}function jn(t){let r,n,o,i=t[24].Prize+"";return{c(){r=L("div"),n=O(i),U(r,"class",o="TableCell TablePrize "+(t[24].Unqualified?"":"Qualified"))},m(t,e){P(t,r,e),A(r,n)},p(t,e){64&e[0]&&i!==(i=t[24].Prize+"")&&x(n,i),64&e[0]&&o!==(o="TableCell TablePrize "+(t[24].Unqualified?"":"Qualified"))&&U(r,"class",o)},d(t){t&&S(r)}}}function $n(t){let r,n,o,i,s,a,l;return{c(){r=L("div"),n=e("svg"),o=e("path"),i=R(),s=L("em"),s.textContent="Minimum bet count not completed. Check Rules.",a=R(),U(o,"d","M9.03087 3.14062C8.71521 2.56443 8.27722 2.06437 7.74767 1.67553C7.21811 1.28669 6.60971 1.01855 5.96544 0.889885C5.32118 0.761222 4.65646 0.775158 4.01817 0.930778C3.37988 1.0864 2.78361 1.37989 2.27086 1.79064C1.68689 2.25306 1.22358 2.85008 0.920762 3.53063C0.679091 4.08921 0.556377 4.69205 0.560655 5.30065C0.562354 5.92327 0.693172 6.53873 0.944444 7.10839C1.19572 7.67806 1.5622 8.18953 2.02086 8.61059C2.83307 9.36649 3.89773 9.79259 5.00719 9.80553C6.11665 9.81848 7.19124 9.4174 8.02086 8.68066C8.3779 8.38276 8.67913 8.0238 8.91075 7.6206C9.34355 6.92428 9.57213 6.12051 9.57066 5.30065C9.57316 4.54694 9.38776 3.80448 9.03087 3.14062V3.14062ZM4.43077 7.39062C4.41666 7.24208 4.44786 7.09281 4.52013 6.96227C4.59239 6.83174 4.70243 6.72606 4.8358 6.65917C4.96917 6.59228 5.11961 6.56724 5.26744 6.58739C5.41528 6.60754 5.55357 6.67195 5.66417 6.77209C5.77477 6.87223 5.85238 7.00344 5.88707 7.14855C5.92176 7.29367 5.91186 7.44586 5.85851 7.5852C5.80516 7.72454 5.71098 7.84448 5.58824 7.92931C5.46551 8.01415 5.31996 8.05999 5.17076 8.06066C5.0777 8.06746 4.9841 8.05526 4.89586 8.02489C4.80762 7.99453 4.72651 7.94653 4.65733 7.8839C4.58816 7.82127 4.53247 7.74531 4.49352 7.66051C4.45456 7.57572 4.43323 7.4839 4.43077 7.39062V7.39062ZM5.05065 2.69067H5.25084C5.32609 2.69062 5.40056 2.70571 5.46983 2.7351C5.53911 2.76448 5.60165 2.80755 5.65392 2.86169C5.70619 2.91582 5.7471 2.9799 5.77403 3.05016C5.80097 3.12043 5.81334 3.19542 5.81066 3.27062L5.7108 5.66064C5.70312 5.8039 5.64068 5.93873 5.53649 6.03735C5.43229 6.13596 5.29421 6.19087 5.15074 6.19067C5.00827 6.19076 4.87125 6.13559 4.76866 6.03674C4.66607 5.93788 4.60587 5.80301 4.60069 5.66064L4.50084 3.27062C4.49817 3.19625 4.51016 3.12209 4.53648 3.05248C4.5628 2.98287 4.60295 2.91923 4.65416 2.86523C4.70537 2.81123 4.76671 2.76801 4.83483 2.73803C4.90294 2.70805 4.97624 2.69195 5.05065 2.69067V2.69067Z"),U(o,"fill","#B5B5B5"),U(n,"class","ExclamationMark"),U(n,"width","10"),U(n,"height","10"),U(n,"viewBox","0 0 10 10"),U(n,"fill","none"),U(n,"xmlns","http://www.w3.org/2000/svg"),U(r,"class",l="TableUserTooltips "+(t[24].Unqualified?"UnqualifiedRow":""))},m(t,e){P(t,r,e),A(r,n),A(n,o),A(r,i),A(r,s),A(r,a)},p(t,e){64&e[0]&&l!==(l="TableUserTooltips "+(t[24].Unqualified?"UnqualifiedRow":""))&&U(r,"class",l)},d(t){t&&S(r)}}}function Bn(t){let r,n,o,i,s,a,l,u,c,f,h,p,d,m,b=t[24].Rank+"",y=t[24].Player+"",g=t[24].Points+"";function v(t){return t[24].Prize?jn:Gn}let E=v(t),T=E(t),w=t[24].isCurrentUser&&t[24].Unqualified&&$n(t);return{c(){r=L("div"),n=L("div"),o=O(b),s=R(),a=L("div"),l=O(y),u=R(),c=L("div"),f=O(g),h=R(),T.c(),d=R(),w&&w.c(),m=_(),U(n,"class",i="TableCell TableRank "+(t[24].Prize?"Qualified":"")),U(a,"class","TableCell TablePlayer"),U(c,"class","TableCell TablePoints"),U(r,"class",p="TableUser "+(t[24].isCurrentUser?"CurrentUserRow":""))},m(t,e){P(t,r,e),A(r,n),A(n,o),A(r,s),A(r,a),A(a,l),A(r,u),A(r,c),A(c,f),A(r,h),T.m(r,null),P(t,d,e),w&&w.m(t,e),P(t,m,e)},p(t,e){64&e[0]&&b!==(b=t[24].Rank+"")&&x(o,b),64&e[0]&&i!==(i="TableCell TableRank "+(t[24].Prize?"Qualified":""))&&U(n,"class",i),64&e[0]&&y!==(y=t[24].Player+"")&&x(l,y),64&e[0]&&g!==(g=t[24].Points+"")&&x(f,g),E===(E=v(t))&&T?T.p(t,e):(T.d(1),T=E(t),T&&(T.c(),T.m(r,null))),64&e[0]&&p!==(p="TableUser "+(t[24].isCurrentUser?"CurrentUserRow":""))&&U(r,"class",p),t[24].isCurrentUser&&t[24].Unqualified?w?w.p(t,e):(w=$n(t),w.c(),w.m(m.parentNode,m)):w&&(w.d(1),w=null)},d(t){t&&S(r),T.d(),t&&S(d),w&&w.d(t),t&&S(m)}}}function zn(t){let e,r;function n(t){return 0<t[2].length||t[4]?hn:(null==e&&(e=!(1!=rn(t[9]))),e?fn:cn)}let o=n(t),i=o(t);return{c(){i.c(),r=_(),this.c=f},m(t,e){i.m(t,e),P(t,r,e)},p(t,e){o===(o=n(t))&&i?i.p(t,e):(i.d(1),i=o(t),i&&(i.c(),i.m(r.parentNode,r)))},i:f,o:f,d(t){i.d(t),t&&S(r)}}}function Vn(t,e,o){let r,n,i;var s=en;t.$$.on_destroy.push(E(s,t=>o(8,i=t)));let{sortable:a=!1}=e,{firstrow:l=!1}=e,{lang:u="en"}=e,c=[],f=[],h=null,p=null,d=null,m=!0,b=window.navigator.userAgent;Object.keys(nn).forEach(t=>{Mr(t,nn[t])});const y=e=>{if(e.data&&"CasinoTableData"===e.data.type&&(o(2,f=e.data.tableData),o(6,r=f)),e.data&&"CasinoTableColumns"===e.data.type&&o(3,c=e.data.tableColumns),e.data&&"CasinoTableCurrentUserData"===e.data.type&&f&&(f.forEach(t=>{t.userID==e.data.tableData.userID&&(t.isCurrentUser=!0)}),o(6,r=f)),l&&e.data&&"CasinoTableFirstRowData"===e.data.type&&o(4,d=e.data.tableData),e.data&&"CasinoTableDataUpdate"===e.data.type&&e.data.tableData){let n=e.data.tableData;f instanceof Array&&f.forEach(function(t,e){var r,t=(r=t.Position,n.find(t=>t.Position==r));t&&o(2,f[e]=t,f)})}},g=t=>{var e=t===h,r="ASC"===p,n=e&&!r;o(13,h=n?null:t),o(14,p=n?null:e&&r?"DESC":"ASC")},v=()=>{o(5,m=!m)};return e=()=>(window.addEventListener("message",y,!1),()=>{window.removeEventListener("message",y)}),function(){if(!C)throw new Error("Function called outside component initialization");return C}().$$.on_mount.push(e),t.$$set=t=>{"sortable"in t&&o(0,a=t.sortable),"firstrow"in t&&o(1,l=t.firstrow),"lang"in t&&o(12,u=t.lang)},t.$$.update=()=>{24580&t.$$.dirty[0]&&o(6,r=h&&p?(()=>{let t=[];if(f&&(t=[...f]),!f.length)return f;var e=typeof f[0][h.toLowerCase()];return t.sort((t=>{const r=h.toLowerCase();return"string"==t?(t,e)=>t[r].localeCompare(e[r]):"number"==t||"object"==t?(t,e)=>t[r]-e[r]:void 0})(e)),"ASC"===p?t:t.reverse()})():[...f]),24576&t.$$.dirty[0]&&o(7,n=null===h?p:null)},[a,l,f,c,d,m,r,n,i,b,g,v,u,h,p,t=>g(t),t=>g(t),()=>v(),t=>g(t)]}class Xn extends l{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}.LeaderboardContainer{background:var(--emfe-w-color-contrast, #07072A);color:#fff;display:flex;width:100%;height:52px;align-items:center;justify-content:space-between;gap:20px}.Leaderboard{width:100%;height:44px;display:flex;align-items:center;padding-left:20px}.TableContent{width:100%;font-size:14px;margin-bottom:2px;border-bottom:solid 1px var(--emfe-w-color-white, #FFFFFF)}.TableContent.TableContentFirstRow{box-sizing:border-box;border:2px solid var(--emfe-w-color-green, #48952a)}.TableUser{background:var(--emfe-w-table-bg, #282828);height:44px;display:flex;align-items:center;border-bottom:solid 1px var(--emfe-w-table-border, #3a3a3a)}.TableUser.TableHeadRow{background:var(--emfe-w-table-header-bg, #1c1c1c);color:var(--emfe-w-color-white, #fff)}.TableUser.CurrentUserRow{box-sizing:border-box;background:var(--emfe-w-table-currentuser-bg, #533a34)}.TableUser.UnqualifiedRow{border-bottom:0}.TableUserTooltips{background:var(--emfe-w-table-currentuser-bg, #533a34);width:100%;height:18px;text-align:center;font-size:0.8rem}.TableCell{padding:10px;flex:2;text-align:center}.TableRank{flex:1 50px}.TablePlayer{flex:5}.TablePrize{flex:5}.Qualified{color:var(--emfe-w-highlight, #debb05)}.ExclamationMark{vertical-align:text-top;width:14px;height:14px}.TableUserDetails{background:var(--emfe-w-color-contrast, #07072A);display:flex;line-height:18px;align-items:center;text-align:center;justify-content:space-around;height:52px}.TournamentsTable{width:100%;min-width:600px;display:flex;justify-content:space-between;text-align:center}.LeftTable{width:100%}.RightButton{cursor:pointer;background:var(--emfe-w-color-contrast, #07072A);width:50px;height:70px;border:2px solid var(--emfe-w-color-contrast-600, #0D0D4D)}.RightButton.MobileClass{height:50px}.FirstRow{outline:2px solid var(--emfe-w-color-green, #48952a)}table{width:100%;min-width:600px;border-spacing:0;position:relative;overflow:auto;margin-bottom:0.5rem}th{padding:1.5rem 1.25rem;height:70px;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D);top:0;color:var(--emfe-w-color-white, #FFFFFF)}td{margin:0;padding:1.25rem;vertical-align:top;text-align:inherit;color:var(--emfe-w-color-white, #FFFFFF);font-size:0.9rem;max-width:20%;background-color:var(--emfe-w-color-contrast, #07072A);border-bottom:1px solid var(--emfe-w-color-contrast-600, #0D0D4D)}td:first-child{left:0;top:auto;width:10rem}svg{width:1.25rem;height:1.25rem;fill:rgba(0, 0, 0, 0.5);flex-shrink:0}.flex{display:flex;align-items:center}button{font-weight:bold;font-size:inherit;text-transform:capitalize;background-color:transparent;border:none;cursor:pointer;display:block;padding:0 1rem 0 0;background-size:0.75rem;background-repeat:no-repeat;background-position:center right;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M16.29 14.29L12 18.59l-4.29-4.3a1 1 0 00-1.42 1.42l5 5a1 1 0 001.42 0l5-5a1 1 0 00-1.42-1.42zM7.71 9.71L12 5.41l4.29 4.3a1 1 0 001.42 0 1 1 0 000-1.42l-5-5a1 1 0 00-1.42 0l-5 5a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}.CollapseButton{display:flex;align-items:center;justify-content:center;width:100%;height:100%;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF)}[data-sort=\"ASC\"],[data-sort=\"DESC\"]{background-size:1rem;background-position:right -0.15rem center}[data-sort=\"ASC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M11.29 11.46a1 1 0 001.42 0l3-3A1 1 0 1014.29 7L12 9.34 9.71 7a1 1 0 10-1.42 1.46zm3 1.08L12 14.84l-2.29-2.3A1 1 0 008.29 14l3 3a1 1 0 001.42 0l3-3a1 1 0 00-1.42-1.42z'/%3E%3C/svg%3E\")}[data-sort=\"DESC\"]{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234f4f4f' d='M12.71 12.54a1 1 0 00-1.42 0l-3 3A1 1 0 009.71 17L12 14.66 14.29 17a1 1 0 001.42 0 1 1 0 000-1.42zm-3-1.08L12 9.16l2.29 2.3a1 1 0 001.42 0 1 1 0 000-1.42l-3-3a1 1 0 00-1.42 0l-3 3a1 1 0 001.42 1.42z'/%3E%3C/svg%3E\")}</style>",a(this,{target:this.shadowRoot,props:function(t){const e={};for(const r of t)e[r.name]=r.value;return e}(this.attributes),customElement:!0},Vn,zn,r,{sortable:0,firstrow:1,lang:12},[-1,-1]),t&&(t.target&&P(t.target,this,t.anchor),t.props&&(this.$set(t.props),I()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(t){this.$set({sortable:t}),I()}get firstrow(){return this.$$.ctx[1]}set firstrow(t){this.$set({firstrow:t}),I()}get lang(){return this.$$.ctx[12]}set lang(t){this.$set({lang:t}),I()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Xn),Xn});
2
2
  //# sourceMappingURL=casino-tournaments-table.js.map