@everymatrix/casino-tournaments-table 0.0.261 → 0.0.264
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 P(t,e){t.appendChild(e)}function A(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 R(t){return document.createTextNode(t)}function O(){return R(" ")}function _(){return R("")}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 k=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&&(k.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,M="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==M&&M,D="URLSearchParams"in M,F="Symbol"in M&&"iterator"in Symbol,G="FileReader"in M&&"Blob"in M&&function(){try{return new Blob,!0}catch(t){return!1}}(),j="FormData"in M,$="ArrayBuffer"in M;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=M.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&&M.location.href?M.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,M.fetch||(M.fetch=nt,M.Headers=X,M.Request=W,M.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,Pt=(it(Lt,Ct=pt),Lt.create=function(t,e,r){return new At(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),At=(it(St,_t=Pt),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?Rt(o):Tt,error:Rt(null!=e?e:Ot),complete:r?Rt(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 Rt(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 Ot(t){throw t}var Ut={closed:!0,next:Tt,error:Ot,complete:Tt},xt="function"==typeof Symbol&&Symbol.observable||"@@observable";function Nt(t){return t}var It=(kt.prototype.lift=function(t){var e=new kt;return e.source=this,e.operator=t,e},kt.prototype.subscribe=function(t,e,r){var n,o=this,i=(n=t)&&n instanceof Pt||n&&ut(n.next)&&ut(n.error)&&ut(n.complete)&&bt(n)?t:new At(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},kt.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},kt.prototype.forEach=function(n,t){var o=this;return new(t=Mt(t))(function(t,e){var r=o.subscribe(function(t){try{n(t)}catch(t){e(t),null==r||r.unsubscribe()}},e,t)})},kt.prototype._subscribe=function(t){var e;return null===(e=this.source)||void 0===e?void 0:e.subscribe(t)},kt.prototype[xt]=function(){return this},kt.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)},kt.prototype.toPromise=function(t){var n=this;return new(t=Mt(t))(function(t,e){var r;n.subscribe(function(t){return r=t},function(t){return e(t)},function(){return t(r)})})},kt.create=function(t){return new kt(t)},kt);function kt(t){t&&(this._subscribe=t)}function Mt(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]/,Pe=/(?:[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 Ae,Se=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,Le=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Re=/^(@+)?(\+|#+)?$/g,Oe=/(\*)(0+)|(#+)(0+)|(0+)/g,Ue=/^(0+)$/;function xe(t){var n={};return t.replace(Re,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 ke(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(Oe,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 Re.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 Me=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===(Ae=We("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Ae?void 0:Ae[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(Me,"")},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(Pe,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?ke(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(Pr,yr=Error),Pr.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Pr),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 Pr(t,e,r){t=yr.call(this,t)||this;return t.code=e,t.originalMessage=r,t}function Ar(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(Ar(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,Ar(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,Ar(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(Rr,"defaultLocale",{get:function(){return Rr.memoizedDefaultLocale||(Rr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Rr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Rr.memoizedDefaultLocale=null,Rr.__parse=nr,Rr.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"}}},Rr);function Rr(t,e,r,n){var o,i,s=this;if(void 0===e&&(e=Rr.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 Ar(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,!Rr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Rr.__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=Rr.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 Or={},Ur=(e,r)=>{if(null!=r){if(r in Or&&e in Or[r])return Or[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 Or||(Or[o]={}),n in Or[o]||(Or[o][n]=s),s)}}};let xr;const Nr=Zt({});function Ir(t){return t in xr}function kr(e,...r){delete Or[e],Nr.update(t=>(t[e]=ae.all([t[e]||{},...r]),t))}Wt([Nr],([t])=>Object.keys(t)),Nr.subscribe(t=>xr=t);const Mr={};function Dr(t){return Mr[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){Mr[t].delete(e),0===Mr[t].size&&delete Mr[t]}(e,t),t().then(t=>t.default||t)))).then(t=>kr(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",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Cele mai multe runde",winstakeratio:"Castig/miza",qualified:"Calificat",nowinners:"Niciun castigator inregistrat. Fii unul dintre castigatori!",Rank:"Pozitie",Player:"Nume",Points:"Puncte",Prize:"Premiu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",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=O(),a=L("tbody"),l=L("tr"),u=L("td"),c=R(t),U(u,"colspan","4"),U(n,"class","LeftTable"),U(n,"part","LeftTable"),U(r,"class","TournamentsTable"),U(r,"part","TournamentsTable")},m(t,e){A(t,r,e),P(r,n),P(n,o),P(o,i);for(let t=0;t<h.length;t+=1)h[t].m(i,null);P(n,s),P(n,a),P(a,l),P(l,u),P(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),A(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),A(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=R(o),U(r,"data-sort",t[7])},m(t,e){A(t,r,e),P(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=R(a),U(n,"data-sort",r[7])},m(t,e){A(t,n,e),P(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=O()},m(t,e){A(t,r,e),s.m(r,null),P(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=R(s),U(n,"class","TableUser"),U(n,"part","TableUser"),U(r,"class","TableContent"),U(r,"part","TableContent")},m(t,e){A(t,r,e),P(r,n),P(n,o),P(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]&&Pn(r);function t(t){return t[5]?On:Rn}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=O(),l=L("tbody"),y&&y.c(),u=O(),g&&g.c(),c=O(),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){A(t,n,e),P(n,o),P(o,i),P(i,s);for(let t=0;t<b.length;t+=1)b[t].m(s,null);P(o,a),P(o,l),y&&y.m(l,null),P(l,u),g&&g.m(l,null),P(n,c),P(n,f),P(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=Pn(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=O(),l&&l.c(),i=O(),u&&u.c(),U(o,"class","TableUser TableHeadRow"),U(o,"part","TableHeadRow"),U(n,"class","TableContent"),U(n,"part","TableContent")},m(t,e){A(t,n,e),P(n,o);for(let t=0;t<a.length;t+=1)a[t].m(o,null);P(n,r),l&&l.m(n,null),P(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=R(o),U(r,"data-sort",t[7])},m(t,e){A(t,r,e),P(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=R(a),U(n,"data-sort",r[7])},m(t,e){A(t,n,e),P(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=O()},m(t,e){A(t,r,e),s.m(r,null),P(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=R("#"),a=R(y),l=O(),u=L("td"),c=R(g),f=O(),h=L("td"),p=L("div"),d=R(v),m=O(),b=L("td"),w.c(),U(p,"class","Flex"),U(p,"part","Flex"),U(r,"class","FirstRow"),U(r,"part","FirstRow")},m(t,e){A(t,r,e),P(r,n),P(n,o),P(o,i),P(i,s),P(i,a),P(r,l),P(r,u),P(u,c),P(r,f),P(r,h),P(h,p),P(p,d),P(r,m),P(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=R("-")},m(t,e){A(t,r,e)},p:f,d(t){t&&S(r)}}}function Cn(t){let r,n=t[4].Prize+"";return{c(){r=R(n)},m(t,e){A(t,r,e)},p(t,e){16&e[0]&&n!==(n=t[4].Prize+"")&&x(r,n)},d(t){t&&S(r)}}}function Pn(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);A(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 An(t){let r;return{c(){r=R("-")},m(t,e){A(t,r,e)},p:f,d(t){t&&S(r)}}}function Sn(t){let r,n=t[24].Prize+"";return{c(){r=R(n)},m(t,e){A(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:An}let _=w(t),C=_(t);return{c(){r=L("tr"),n=L("td"),o=L("strong"),i=L("em"),s=R("#"),a=R(v),l=O(),u=L("td"),c=R(E),f=O(),h=L("td"),p=L("div"),d=R(T),m=O(),b=L("td"),C.c(),y=O(),U(p,"class","Flex"),U(p,"part","Flex"),U(r,"class",g=t[24].isCurrentUser?"FirstRow":"")},m(t,e){A(t,r,e),P(r,n),P(n,o),P(o,i),P(i,s),P(i,a),P(r,l),P(r,u),P(u,c),P(r,f),P(r,h),P(h,p),P(p,d),P(r,m),P(r,b),C.m(b,null),P(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 Rn(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){A(t,r,e),P(r,n)},d(t){t&&S(r)}}}function On(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){A(t,r,e),P(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=R(o),U(r,"data-sort",t[7])},m(t,e){A(t,r,e),P(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=R(a),U(n,"data-sort",r[7])},m(t,e){A(t,n,e),P(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=O(),U(r,"class",o="TableCell Table"+t[27])},m(t,e){A(t,r,e),a.m(r,null),P(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?Mn:kn}let E=v(t),T=E(t),w=t[4].Unqualified&&Dn();return{c(){r=L("div"),n=L("div"),o=R(b),s=O(),a=L("div"),l=R(y),u=O(),c=L("div"),f=R(g),h=O(),T.c(),d=O(),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){A(t,r,e),P(r,n),P(n,o),P(r,s),P(r,a),P(a,l),P(r,u),P(r,c),P(c,f),P(r,h),T.m(r,null),A(t,d,e),w&&w.m(t,e),A(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 kn(t){let r;return{c(){r=L("div"),r.textContent="-",U(r,"class","TableCell TablePrize")},m(t,e){A(t,r,e)},p:f,d(t){t&&S(r)}}}function Mn(t){let r,n,o,i=t[4].Prize+"";return{c(){r=L("div"),n=R(i),U(r,"class",o="TableCell TablePrize "+(t[4].Unqualified?"":"Qualified"))},m(t,e){A(t,r,e),P(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){A(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);A(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){A(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=R(i),U(r,"class",o="TableCell TablePrize "+(t[24].Unqualified?"":"Qualified"))},m(t,e){A(t,r,e),P(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=O(),s=L("em"),s.textContent="Minimum bet count not completed. Check Rules.",a=O(),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){A(t,r,e),P(r,n),P(n,o),P(r,i),P(r,s),P(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=R(b),s=O(),a=L("div"),l=R(y),u=O(),c=L("div"),f=R(g),h=O(),T.c(),d=O(),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){A(t,r,e),P(r,n),P(n,o),P(r,s),P(r,a),P(a,l),P(r,u),P(r,c),P(c,f),P(r,h),T.m(r,null),A(t,d,e),w&&w.m(t,e),A(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),A(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=>{kr(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&&A(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});
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).app=t()}(this,function(){"use strict";function f(){}function h(e){return e()}function p(){return Object.create(null)}function d(e){e.forEach(h)}function m(e){return"function"==typeof e}function r(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function P(e,...t){if(null==e)return f;const r=e.subscribe(...t);return r.unsubscribe?()=>r.unsubscribe():r}function O(e,t){e.appendChild(t)}function k(e,t,r){e.insertBefore(t,r||null)}function N(e){e.parentNode.removeChild(e)}function E(t,r){for(let e=0;e<t.length;e+=1)t[e]&&t[e].d(r)}function I(e){return document.createElement(e)}function t(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function D(e){return document.createTextNode(e)}function M(){return D(" ")}function _(){return D("")}function T(e,t,r,n){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r,n)}function F(e,t,r){null==r?e.removeAttribute(t):e.getAttribute(t)!==r&&e.setAttribute(t,r)}function G(e,t){e.wholeText!==(t=""+t)&&(e.data=t)}let S;function g(e){S=e}const b=[],e=[],n=[],i=[],y=Promise.resolve();let v=!1;function w(e){n.push(e)}let o=!1;const s=new Set;function C(){if(!o){o=!0;do{for(let e=0;e<b.length;e+=1){var t=b[e];g(t),function(e){{var t;null!==e.fragment&&(e.update(),d(e.before_update),t=e.dirty,e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(w))}}(t.$$)}for(g(null),b.length=0;e.length;)e.pop()();for(let e=0;e<n.length;e+=1){const r=n[e];s.has(r)||(s.add(r),r())}}while(n.length=0,b.length);for(;i.length;)i.pop()();v=!1,o=!1,s.clear()}}const A=new Set;function a(n,e,t,r,i,o,s=[-1]){var a,l=S;g(n);const c=n.$$={fragment:null,ctx:null,props:o,update:f,not_equal:i,bound:p(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(l?l.$$.context:e.context||[]),callbacks:p(),dirty:s,skip_bound:!1};let u=!1;if(c.ctx=t?t(n,e.props||{},(e,t,...r)=>{r=r.length?r[0]:t;return c.ctx&&i(c.ctx[e],c.ctx[e]=r)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](r),u&&(r=e,-1===(e=n).$$.dirty[0]&&(b.push(e),v||(v=!0,y.then(C)),e.$$.dirty.fill(0)),e.$$.dirty[r/31|0]|=1<<r%31)),t}):[],c.update(),u=!0,d(c.before_update),c.fragment=!!r&&r(c.ctx),e.target){if(e.hydrate){const f=(r=e.target,Array.from(r.childNodes));c.fragment&&c.fragment.l(f),f.forEach(N)}else c.fragment&&c.fragment.c();e.intro&&(a=n.$$.fragment)&&a.i&&(A.delete(a),a.i(void 0)),function(t,e,r,n){const{fragment:i,on_mount:o,on_destroy:s,after_update:a}=t.$$;i&&i.m(e,r),n||w(()=>{var e=o.map(h).filter(m);s?s.push(...e):d(e),t.$$.on_mount=[]}),a.forEach(w)}(n,e.target,e.anchor,e.customElement),C()}g(l)}let l;"function"==typeof HTMLElement&&(l=class extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const{on_mount:e}=this.$$;this.$$.on_disconnect=e.map(h).filter(m);for(const e in this.$$.slotted)this.appendChild(this.$$.slotted[e])}attributeChangedCallback(e,t,r){this[e]=r}disconnectedCallback(){d(this.$$.on_disconnect)}$destroy(){!function(e){const t=e.$$;null!==t.fragment&&(d(t.on_destroy),t.fragment&&t.fragment.d(1),t.on_destroy=t.fragment=null,t.ctx=[])}(this),this.$destroy=f}$on(e,t){const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(t),()=>{var e=r.indexOf(t);-1!==e&&r.splice(e,1)}}$set(e){this.$$set&&0!==Object.keys(e).length&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}});var c,u,x="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==x&&x,L="URLSearchParams"in x,R="Symbol"in x&&"iterator"in Symbol,U="FileReader"in x&&"Blob"in x&&function(){try{return new Blob,!0}catch(e){return!1}}(),j="FormData"in x,$="ArrayBuffer"in x;function B(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function z(e){return e="string"!=typeof e?String(e):e}function V(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return R&&(e[Symbol.iterator]=function(){return e}),e}function H(t){this.map={},t instanceof H?t.forEach(function(e,t){this.append(t,e)},this):Array.isArray(t)?t.forEach(function(e){this.append(e[0],e[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function X(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function q(r){return new Promise(function(e,t){r.onload=function(){e(r.result)},r.onerror=function(){t(r.error)}})}function Z(e){var t=new FileReader,r=q(t);return t.readAsArrayBuffer(e),r}function Y(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function K(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,(this._bodyInit=e)?"string"==typeof e?this._bodyText=e:U&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:j&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:L&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():$&&U&&e&&DataView.prototype.isPrototypeOf(e)?(this._bodyArrayBuffer=Y(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):$&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=Y(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):L&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},U&&(this.blob=function(){var e=X(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?X(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(Z)}),this.text=function(){var e,t,r=X(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,r=q(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=new Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},j&&(this.formData=function(){return this.text().then(J)}),this.json=function(){return this.text().then(JSON.parse)},this}$&&(c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))}),H.prototype.append=function(e,t){e=B(e),t=z(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},H.prototype.delete=function(e){delete this.map[B(e)]},H.prototype.get=function(e){return e=B(e),this.has(e)?this.map[e]:null},H.prototype.has=function(e){return this.map.hasOwnProperty(B(e))},H.prototype.set=function(e,t){this.map[B(e)]=z(t)},H.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},H.prototype.keys=function(){var r=[];return this.forEach(function(e,t){r.push(t)}),V(r)},H.prototype.values=function(){var t=[];return this.forEach(function(e){t.push(e)}),V(t)},H.prototype.entries=function(){var r=[];return this.forEach(function(e,t){r.push([t,e])}),V(r)},R&&(H.prototype[Symbol.iterator]=H.prototype.entries);var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(e,t){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=(t=t||{}).body;if(e instanceof W){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new H(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new H(t.headers)),this.method=(e=(r=t.method||this.method||"GET").toUpperCase(),-1<Q.indexOf(e)?e:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n),"GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache||((t=/([?&])_=[^&]*/).test(this.url)?this.url=this.url.replace(t,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime())}function J(e){var r=new FormData;return e.trim().split("&").forEach(function(e){var t;e&&(e=(t=e.split("=")).shift().replace(/\+/g," "),t=t.join("=").replace(/\+/g," "),r.append(decodeURIComponent(e),decodeURIComponent(t)))}),r}function ee(e,t){if(!(this instanceof ee))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{},this.type="default",this.status=void 0===t.status?200:t.status,this.ok=200<=this.status&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new H(t.headers),this.url=t.url||"",this._initBody(e)}W.prototype.clone=function(){return new W(this,{body:this._bodyInit})},K.call(W.prototype),K.call(ee.prototype),ee.prototype.clone=function(){return new ee(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new H(this.headers),url:this.url})},ee.error=function(){var e=new ee(null,{status:0,statusText:""});return e.type="error",e};var te=[301,302,303,307,308];ee.redirect=function(e,t){if(-1===te.indexOf(t))throw new RangeError("Invalid status code");return new ee(null,{status:t,headers:{location:e}})};var re=x.DOMException;try{new re}catch(f){(re=function(e,t){this.message=e,this.name=t;e=Error(e);this.stack=e.stack}).prototype=Object.create(Error.prototype),re.prototype.constructor=re}function ne(n,s){return new Promise(function(i,e){var t=new W(n,s);if(t.signal&&t.signal.aborted)return e(new re("Aborted","AbortError"));var o=new XMLHttpRequest;function r(){o.abort()}o.onload=function(){var e,r,t={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",r=new H,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var t=e.split(":"),e=t.shift().trim();e&&(t=t.join(":").trim(),r.append(e,t))}),r)};t.url="responseURL"in o?o.responseURL:t.headers.get("X-Request-URL");var n="response"in o?o.response:o.responseText;setTimeout(function(){i(new ee(n,t))},0)},o.onerror=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.ontimeout=function(){setTimeout(function(){e(new TypeError("Network request failed"))},0)},o.onabort=function(){setTimeout(function(){e(new re("Aborted","AbortError"))},0)},o.open(t.method,function(t){try{return""===t&&x.location.href?x.location.href:t}catch(e){return t}}(t.url),!0),"include"===t.credentials?o.withCredentials=!0:"omit"===t.credentials&&(o.withCredentials=!1),"responseType"in o&&(U?o.responseType="blob":$&&t.headers.get("Content-Type")&&-1!==t.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),!s||"object"!=typeof s.headers||s.headers instanceof H?t.headers.forEach(function(e,t){o.setRequestHeader(t,e)}):Object.getOwnPropertyNames(s.headers).forEach(function(e){o.setRequestHeader(e,z(s.headers[e]))}),t.signal&&(t.signal.addEventListener("abort",r),o.onreadystatechange=function(){4===o.readyState&&t.signal.removeEventListener("abort",r)}),o.send(void 0===t._bodyInit?null:t._bodyInit)})}ne.polyfill=!0,x.fetch||(x.fetch=ne,x.Headers=H,x.Request=W,x.Response=ee),self.fetch.bind(self);var ie=function(e,t){return(ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function oe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}ie(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}function se(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&n>=e.length?void 0:e)&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ae(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,i,o=r.call(e),s=[];try{for(;(void 0===t||0<t--)&&!(n=o.next()).done;)s.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(i)throw i.error}}return s}function le(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function ce(e){return"function"==typeof e}function ue(e){e=e(function(e){Error.call(e),e.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e}var fe=ue(function(t){return function(e){t(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e}});function he(e,t){!e||0<=(t=e.indexOf(t))&&e.splice(t,1)}var pe=(me.prototype.unsubscribe=function(){var e,t,r,n,i;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=se(o),a=s.next();!a.done;a=s.next())a.value.remove(this)}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);o=this.initialTeardown;if(ce(o))try{o()}catch(e){i=e instanceof fe?e.errors:[e]}o=this._teardowns;if(o){this._teardowns=null;try{for(var l=se(o),c=l.next();!c.done;c=l.next()){var u=c.value;try{be(u)}catch(e){i=null!=i?i:[],e instanceof fe?i=le(le([],ae(i)),ae(e.errors)):i.push(e)}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}}if(i)throw new fe(i)}},me.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)be(e);else{if(e instanceof me){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(t=this._teardowns)&&void 0!==t?t:[]).push(e)}},me.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},me.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},me.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&he(t,e)},me.prototype.remove=function(e){var t=this._teardowns;t&&he(t,e),e instanceof me&&e._removeParent(this)},me.EMPTY=((Gt=new me).closed=!0,Gt),me),de=pe.EMPTY;function me(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}function ge(e){return e instanceof pe||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function be(e){ce(e)?e():e.unsubscribe()}var ye=void 0,ve=!1,we=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return setTimeout.apply(void 0,le([],ae(e)))};function Ee(){}function Te(e){e()}var _e,Ce,Ae=(oe(xe,Ce=pe),xe.create=function(e,t,r){return new Pe(e,t,r)},xe.prototype.next=function(e){this.isStopped||this._next(e)},xe.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},xe.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},xe.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,Ce.prototype.unsubscribe.call(this),this.destination=null)},xe.prototype._next=function(e){this.destination.next(e)},xe.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},xe.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},xe),Pe=(oe(Se,_e=Ae),Se);function Se(e,t,r){var n,i,o=_e.call(this)||this;return ce(e)?i=e:e&&(i=e.next,t=e.error,r=e.complete,o&&ve?(n=Object.create(e)).unsubscribe=function(){return o.unsubscribe()}:n=e,i=null==i?void 0:i.bind(n),t=null==t?void 0:t.bind(n),r=null==r?void 0:r.bind(n)),o.destination={next:i?Le(i):Ee,error:Le(null!=t?t:Re),complete:r?Le(r):Ee},o}function xe(e){var t=Ce.call(this)||this;return t.isStopped=!1,e?ge(t.destination=e)&&e.add(t):t.destination=Ue,t}function Le(n){return function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];try{n.apply(void 0,le([],ae(e)))}catch(e){t=e,we(function(){throw t})}}}function Re(e){throw e}var Ue={closed:!0,next:Ee,error:Re,complete:Ee},Oe="function"==typeof Symbol&&Symbol.observable||"@@observable";function ke(e){return e}var Ne=(Ie.prototype.lift=function(e){var t=new Ie;return t.source=this,t.operator=e,t},Ie.prototype.subscribe=function(e,t,r){var n,i=this,o=(n=e)&&n instanceof Ae||n&&ce(n.next)&&ce(n.error)&&ce(n.complete)&&ge(n)?e:new Pe(e,t,r);return Te(function(){var e=i.operator,t=i.source;o.add(e?e.call(o,t):t?i._subscribe(o):i._trySubscribe(o))}),o},Ie.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},Ie.prototype.forEach=function(n,e){var i=this;return new(e=De(e))(function(e,t){var r=i.subscribe(function(e){try{n(e)}catch(e){t(e),null==r||r.unsubscribe()}},t,e)})},Ie.prototype._subscribe=function(e){var t;return null===(t=this.source)||void 0===t?void 0:t.subscribe(e)},Ie.prototype[Oe]=function(){return this},Ie.prototype.pipe=function(){for(var t,e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return(0===(t=e).length?ke:1===t.length?t[0]:function(e){return t.reduce(function(e,t){return t(e)},e)})(this)},Ie.prototype.toPromise=function(e){var n=this;return new(e=De(e))(function(e,t){var r;n.subscribe(function(e){return r=e},function(e){return t(e)},function(){return e(r)})})},Ie.create=function(e){return new Ie(e)},Ie);function Ie(e){e&&(this._subscribe=e)}function De(e){return null!==(e=null!=e?e:ye)&&void 0!==e?e:Promise}var Me,Fe,Ge,je=ue(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$e=(oe(qe,Ge=Ne),qe.prototype.lift=function(e){var t=new Be(this,this);return t.operator=e,t},qe.prototype._throwIfClosed=function(){if(this.closed)throw new je},qe.prototype.next=function(o){var s=this;Te(function(){var t,e;if(s._throwIfClosed(),!s.isStopped){var r=s.observers.slice();try{for(var n=se(r),i=n.next();!i.done;i=n.next())i.value.next(o)}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}}})},qe.prototype.error=function(t){var r=this;Te(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var e=r.observers;e.length;)e.shift().error(t)}})},qe.prototype.complete=function(){var t=this;Te(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var e=t.observers;e.length;)e.shift().complete()}})},qe.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(qe.prototype,"observed",{get:function(){var e;return 0<(null===(e=this.observers)||void 0===e?void 0:e.length)},enumerable:!1,configurable:!0}),qe.prototype._trySubscribe=function(e){return this._throwIfClosed(),Ge.prototype._trySubscribe.call(this,e)},qe.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},qe.prototype._innerSubscribe=function(e){var t=this.hasError,r=this.isStopped,n=this.observers;return t||r?de:(n.push(e),new pe(function(){return he(n,e)}))},qe.prototype._checkFinalizedStatuses=function(e){var t=this.hasError,r=this.thrownError,n=this.isStopped;t?e.error(r):n&&e.complete()},qe.prototype.asObservable=function(){var e=new Ne;return e.source=this,e},qe.create=function(e,t){return new Be(e,t)},qe),Be=(oe(Xe,Fe=$e),Xe.prototype.next=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,e)},Xe.prototype.error=function(e){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,e)},Xe.prototype.complete=function(){var e,t;null===(t=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===t||t.call(e)},Xe.prototype._subscribe=function(e){var t;return null!==(e=null===(t=this.source)||void 0===t?void 0:t.subscribe(e))&&void 0!==e?e:de},Xe),ze={now:function(){return(ze.delegate||Date).now()},delegate:void 0},Ve=(oe(He,Me=$e),He.prototype.next=function(e){var t=this,r=t.isStopped,n=t._buffer,i=t._infiniteTimeWindow,o=t._timestampProvider,t=t._windowTime;r||(n.push(e),i||n.push(o.now()+t)),this._trimBuffer(),Me.prototype.next.call(this,e)},He.prototype._subscribe=function(e){this._throwIfClosed(),this._trimBuffer();for(var t=this._innerSubscribe(e),r=this._infiniteTimeWindow,n=this._buffer.slice(),i=0;i<n.length&&!e.closed;i+=r?1:2)e.next(n[i]);return this._checkFinalizedStatuses(e),t},He.prototype._trimBuffer=function(){var e=this._bufferSize,t=this._timestampProvider,r=this._buffer,n=this._infiniteTimeWindow,i=(n?1:2)*e;if(e<1/0&&i<r.length&&r.splice(0,r.length-i),!n){for(var o=t.now(),s=0,a=1;a<r.length&&r[a]<=o;a+=2)s=a;s&&r.splice(0,s+1)}},He);function He(e,t,r){void 0===e&&(e=1/0),void 0===t&&(t=1/0),void 0===r&&(r=ze);var n=Me.call(this)||this;return n._bufferSize=e,n._windowTime=t,n._timestampProvider=r,n._buffer=[],n._infiniteTimeWindow=!0,n._infiniteTimeWindow=t===1/0,n._bufferSize=Math.max(1,e),n._windowTime=Math.max(1,t),n}function Xe(e,t){var r=Fe.call(this)||this;return r.destination=e,r.source=t,r}function qe(){var e=Ge.call(this)||this;return e.closed=!1,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}let Ze=[],Ye={};const Ke=[];function Qe(n,i=f){let o;const s=[];function a(e){if(r(n,e)&&(n=e,o)){const e=!Ke.length;for(let e=0;e<s.length;e+=1){const t=s[e];t[1](),Ke.push(t,n)}if(e){for(let e=0;e<Ke.length;e+=2)Ke[e][0](Ke[e+1]);Ke.length=0}}}return{set:a,update:function(e){a(e(n))},subscribe:function(e,t=f){const r=[e,t];return s.push(r),1===s.length&&(o=i(a)||f),e(n),()=>{var e=s.indexOf(r);-1!==e&&s.splice(e,1),0===s.length&&(o(),o=null)}}}}function We(e,a,t){const l=!Array.isArray(e),c=l?[e]:e,u=a.length<2;return{subscribe:Qe(t,t=>{let r=!1;const n=[];let i=0,o=f;const s=()=>{var e;i||(o(),e=a(l?n[0]:n,t),u?t(e):o=m(e)?e:f)},e=c.map((e,t)=>P(e,e=>{n[t]=e,i&=~(1<<t),r&&s()},()=>{i|=1<<t}));return r=!0,s(),function(){d(e),o()}}).subscribe}}var Je=function(e){return!(!e||"object"!=typeof e||(t=e,"[object RegExp]"===(e=Object.prototype.toString.call(t))||"[object Date]"===e||t.$$typeof===et));var t},et="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function tt(e,t){return!1!==t.clone&&t.isMergeableObject(e)?st(Array.isArray(e)?[]:{},e,t):e}function rt(e,t,r){return e.concat(t).map(function(e){return tt(e,r)})}function nt(e){return Object.keys(e).concat((t=e,Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]));var t}function it(e,t){try{return t in e}catch(e){return!1}}function ot(n,i,o){var s={};return o.isMergeableObject(n)&&nt(n).forEach(function(e){s[e]=tt(n[e],o)}),nt(i).forEach(function(t){var e,r;(!it(e=n,r=t)||Object.hasOwnProperty.call(e,r)&&Object.propertyIsEnumerable.call(e,r))&&(it(n,t)&&o.isMergeableObject(i[t])?s[t]=function(){if(!o.customMerge)return st;var e=o.customMerge(t);return"function"==typeof e?e:st}()(n[t],i[t],o):s[t]=tt(i[t],o))}),s}function st(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||rt,r.isMergeableObject=r.isMergeableObject||Je,r.cloneUnlessOtherwiseSpecified=tt;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):ot(e,t,r):tt(t,r)}st.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,t){return st(e,t,r)},{})};var at=st,lt=function(e,t){return(lt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)};function ct(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}lt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var ut,ft,ht,pt=function(){return(pt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var i in t=arguments[r])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function dt(e,t){for(var r=0,n=t.length,i=e.length;r<n;r++,i++)e[i]=t[r];return e}function mt(e){return e.type===ft.literal}function gt(e){return e.type===ft.number}function bt(e){return e.type===ft.date}function yt(e){return e.type===ft.time}function vt(e){return e.type===ft.select}function wt(e){return e.type===ft.plural}function Et(e){return e.type===ft.tag}function Tt(e){return e&&"object"==typeof e&&e.type===ht.number}function _t(e){return e&&"object"==typeof e&&e.type===ht.dateTime}(jt=ut=ut||{})[jt.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",jt[jt.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",jt[jt.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",jt[jt.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",jt[jt.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",jt[jt.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",jt[jt.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",jt[jt.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",jt[jt.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",jt[jt.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",jt[jt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",jt[jt.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",jt[jt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",jt[jt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",jt[jt.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",jt[jt.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",jt[jt.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",jt[jt.INVALID_TAG=23]="INVALID_TAG",jt[jt.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",jt[jt.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",jt[jt.UNCLOSED_TAG=27]="UNCLOSED_TAG",($t=ft=ft||{})[$t.literal=0]="literal",$t[$t.argument=1]="argument",$t[$t.number=2]="number",$t[$t.date=3]="date",$t[$t.time=4]="time",$t[$t.select=5]="select",$t[$t.plural=6]="plural",$t[$t.pound=7]="pound",$t[$t.tag=8]="tag",(Bt=ht=ht||{})[Bt.number=0]="number",Bt[Bt.dateTime=1]="dateTime";var Ct=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,At=/(?:[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 Pt,St=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i,xt=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Lt=/^(@+)?(\+|#+)?$/g,Rt=/(\*)(0+)|(#+)(0+)|(0+)/g,Ut=/^(0+)$/;function Ot(e){var n={};return e.replace(Lt,function(e,t,r){return"string"!=typeof r?(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length):"+"===r?n.minimumSignificantDigits=t.length:"#"===t[0]?n.maximumSignificantDigits=t.length:(n.minimumSignificantDigits=t.length,n.maximumSignificantDigits=t.length+("string"==typeof r?r.length:0)),""}),n}function kt(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function Nt(e){return kt(e)||{}}function It(e){for(var s={},t=0,r=e;t<r.length;t++){var n,i=r[t];switch(i.stem){case"percent":case"%":s.style="percent";continue;case"%x100":s.style="percent",s.scale=100;continue;case"currency":s.style="currency",s.currency=i.options[0];continue;case"group-off":case",_":s.useGrouping=!1;continue;case"precision-integer":case".":s.maximumFractionDigits=0;continue;case"measure-unit":case"unit":s.style="unit",s.unit=i.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":case"K":s.notation="compact",s.compactDisplay="short";continue;case"compact-long":case"KK":s.notation="compact",s.compactDisplay="long";continue;case"scientific":s=pt(pt(pt({},s),{notation:"scientific"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"engineering":s=pt(pt(pt({},s),{notation:"engineering"}),i.options.reduce(function(e,t){return pt(pt({},e),Nt(t))},{}));continue;case"notation-simple":s.notation="standard";continue;case"unit-width-narrow":s.currencyDisplay="narrowSymbol",s.unitDisplay="narrow";continue;case"unit-width-short":s.currencyDisplay="code",s.unitDisplay="short";continue;case"unit-width-full-name":s.currencyDisplay="name",s.unitDisplay="long";continue;case"unit-width-iso-code":s.currencyDisplay="symbol";continue;case"scale":s.scale=parseFloat(i.options[0]);continue;case"integer-width":if(1<i.options.length)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Rt,function(e,t,r,n,i,o){if(t)s.minimumIntegerDigits=r.length;else{if(n&&i)throw new Error("We currently do not support maximum integer digits");if(o)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Ut.test(i.stem))s.minimumIntegerDigits=i.stem.length;else if(xt.test(i.stem)){if(1<i.options.length)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(xt,function(e,t,r,n,i,o){return"*"===r?s.minimumFractionDigits=t.length:n&&"#"===n[0]?s.maximumFractionDigits=n.length:i&&o?(s.minimumFractionDigits=i.length,s.maximumFractionDigits=i.length+o.length):(s.minimumFractionDigits=t.length,s.maximumFractionDigits=t.length),""}),i.options.length&&(s=pt(pt({},s),Ot(i.options[0])))}else Lt.test(i.stem)?s=pt(pt({},s),Ot(i.stem)):((n=kt(i.stem))&&(s=pt(pt({},s),n)),(n=function(e){var t;if("E"===e[0]&&"E"===e[1]?(t={notation:"engineering"},e=e.slice(2)):"E"===e[0]&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if("+!"===r?(t.signDisplay="always",e=e.slice(2)):"+?"===r&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ut.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}(i.stem))&&(s=pt(pt({},s),n)))}return s}var Dt=new RegExp("^"+Ct.source+"*"),Mt=new RegExp(Ct.source+"*$");function Ft(e,t){return{start:e,end:t}}var Gt=!!String.prototype.startsWith,Oe=!!String.fromCodePoint,$e=!!Object.fromEntries,jt=!!String.prototype.codePointAt,$t=!!String.prototype.trimStart,Bt=!!String.prototype.trimEnd,zt=Number.isSafeInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Ct=!0;try{Ct="a"===(null===(Pt=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Pt?void 0:Pt[0])}catch(f){Ct=!1}var Vt,Ht,Xt=Gt?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},qt=Oe?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r,n="",i=e.length,o=0;o<i;){if(1114111<(r=e[o++]))throw RangeError(r+" is not a valid code point");n+=r<65536?String.fromCharCode(r):String.fromCharCode(55296+((r-=65536)>>10),r%1024+56320)}return n},Zt=$e?Object.fromEntries:function(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r],o=i[0],i=i[1];t[o]=i}return t},Yt=jt?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||r<=t)){var n,i=e.charCodeAt(t);return i<55296||56319<i||t+1===r||(n=e.charCodeAt(t+1))<56320||57343<n?i:n-56320+(i-55296<<10)+65536}},Kt=$t?function(e){return e.trimStart()}:function(e){return e.replace(Dt,"")},Qt=Bt?function(e){return e.trimEnd()}:function(e){return e.replace(Mt,"")};function Wt(e,t){return new RegExp(e,t)}Ht=Ct?(Vt=Wt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu"),function(e,t){return Vt.lastIndex=t,null!==(e=Vt.exec(e)[1])&&void 0!==e?e:""}):function(e,t){for(var r,n=[];;){var i=Yt(e,t);if(void 0===i||rr(i)||(33<=(r=i)&&r<=35||36===r||37<=r&&r<=39||40===r||41===r||42===r||43===r||44===r||45===r||46<=r&&r<=47||58<=r&&r<=59||60<=r&&r<=62||63<=r&&r<=64||91===r||92===r||93===r||94===r||96===r||123===r||124===r||125===r||126===r||161===r||162<=r&&r<=165||166===r||167===r||169===r||171===r||172===r||174===r||176===r||177===r||182===r||187===r||191===r||215===r||247===r||8208<=r&&r<=8213||8214<=r&&r<=8215||8216===r||8217===r||8218===r||8219<=r&&r<=8220||8221===r||8222===r||8223===r||8224<=r&&r<=8231||8240<=r&&r<=8248||8249===r||8250===r||8251<=r&&r<=8254||8257<=r&&r<=8259||8260===r||8261===r||8262===r||8263<=r&&r<=8273||8274===r||8275===r||8277<=r&&r<=8286||8592<=r&&r<=8596||8597<=r&&r<=8601||8602<=r&&r<=8603||8604<=r&&r<=8607||8608===r||8609<=r&&r<=8610||8611===r||8612<=r&&r<=8613||8614===r||8615<=r&&r<=8621||8622===r||8623<=r&&r<=8653||8654<=r&&r<=8655||8656<=r&&r<=8657||8658===r||8659===r||8660===r||8661<=r&&r<=8691||8692<=r&&r<=8959||8960<=r&&r<=8967||8968===r||8969===r||8970===r||8971===r||8972<=r&&r<=8991||8992<=r&&r<=8993||8994<=r&&r<=9e3||9001===r||9002===r||9003<=r&&r<=9083||9084===r||9085<=r&&r<=9114||9115<=r&&r<=9139||9140<=r&&r<=9179||9180<=r&&r<=9185||9186<=r&&r<=9254||9255<=r&&r<=9279||9280<=r&&r<=9290||9291<=r&&r<=9311||9472<=r&&r<=9654||9655===r||9656<=r&&r<=9664||9665===r||9666<=r&&r<=9719||9720<=r&&r<=9727||9728<=r&&r<=9838||9839===r||9840<=r&&r<=10087||10088===r||10089===r||10090===r||10091===r||10092===r||10093===r||10094===r||10095===r||10096===r||10097===r||10098===r||10099===r||10100===r||10101===r||10132<=r&&r<=10175||10176<=r&&r<=10180||10181===r||10182===r||10183<=r&&r<=10213||10214===r||10215===r||10216===r||10217===r||10218===r||10219===r||10220===r||10221===r||10222===r||10223===r||10224<=r&&r<=10239||10240<=r&&r<=10495||10496<=r&&r<=10626||10627===r||10628===r||10629===r||10630===r||10631===r||10632===r||10633===r||10634===r||10635===r||10636===r||10637===r||10638===r||10639===r||10640===r||10641===r||10642===r||10643===r||10644===r||10645===r||10646===r||10647===r||10648===r||10649<=r&&r<=10711||10712===r||10713===r||10714===r||10715===r||10716<=r&&r<=10747||10748===r||10749===r||10750<=r&&r<=11007||11008<=r&&r<=11055||11056<=r&&r<=11076||11077<=r&&r<=11078||11079<=r&&r<=11084||11085<=r&&r<=11123||11124<=r&&r<=11125||11126<=r&&r<=11157||11158===r||11159<=r&&r<=11263||11776<=r&&r<=11777||11778===r||11779===r||11780===r||11781===r||11782<=r&&r<=11784||11785===r||11786===r||11787===r||11788===r||11789===r||11790<=r&&r<=11798||11799===r||11800<=r&&r<=11801||11802===r||11803===r||11804===r||11805===r||11806<=r&&r<=11807||11808===r||11809===r||11810===r||11811===r||11812===r||11813===r||11814===r||11815===r||11816===r||11817===r||11818<=r&&r<=11822||11823===r||11824<=r&&r<=11833||11834<=r&&r<=11835||11836<=r&&r<=11839||11840===r||11841===r||11842===r||11843<=r&&r<=11855||11856<=r&&r<=11857||11858===r||11859<=r&&r<=11903||12289<=r&&r<=12291||12296===r||12297===r||12298===r||12299===r||12300===r||12301===r||12302===r||12303===r||12304===r||12305===r||12306<=r&&r<=12307||12308===r||12309===r||12310===r||12311===r||12312===r||12313===r||12314===r||12315===r||12316===r||12317===r||12318<=r&&r<=12319||12320===r||12336===r||64830===r||64831===r||65093<=r&&r<=65094))break;n.push(i),t+=65536<=i?2:1}return qt.apply(void 0,n)};var Jt=(er.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},er.prototype.parseMessage=function(e,t,r){for(var n=[];!this.isEOF();){var i,o=this.char();if(123===o){if((i=this.parseArgument(e,r)).err)return i;n.push(i.val)}else{if(125===o&&0<e)break;if(35!==o||"plural"!==t&&"selectordinal"!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(ut.UNMATCHED_CLOSING_TAG,Ft(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&tr(this.peek()||0)){if((i=this.parseTag(e,t)).err)return i;n.push(i.val)}else{if((i=this.parseLiteral(e,t)).err)return i;n.push(i.val)}}else{o=this.clonePosition();this.bump(),n.push({type:ft.pound,location:Ft(o,this.clonePosition())})}}}return{val:n,err:null}},er.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var n=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:ft.literal,value:"<"+n+"/>",location:Ft(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var i=this.parseMessage(e+1,t,!0);if(i.err)return i;e=i.val,t=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!tr(this.char()))return this.error(ut.INVALID_TAG,Ft(t,this.clonePosition()));i=this.clonePosition();return n!==this.parseTagName()?this.error(ut.UNMATCHED_CLOSING_TAG,Ft(i,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:ft.tag,value:n,children:e,location:Ft(r,this.clonePosition())},err:null}:this.error(ut.INVALID_TAG,Ft(t,this.clonePosition())))}return this.error(ut.UNCLOSED_TAG,Ft(r,this.clonePosition()))}return this.error(ut.INVALID_TAG,Ft(r,this.clonePosition()))},er.prototype.parseTagName=function(){var e,t=this.offset();for(this.bump();!this.isEOF()&&(45===(e=this.char())||46===e||48<=e&&e<=57||95===e||97<=e&&e<=122||65<=e&&e<=90||183==e||192<=e&&e<=214||216<=e&&e<=246||248<=e&&e<=893||895<=e&&e<=8191||8204<=e&&e<=8205||8255<=e&&e<=8256||8304<=e&&e<=8591||11264<=e&&e<=12271||12289<=e&&e<=55295||63744<=e&&e<=64975||65008<=e&&e<=65533||65536<=e&&e<=983039);)this.bump();return this.message.slice(t,this.offset())},er.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),n="";;){var i=this.tryParseQuote(t);if(i)n+=i;else{i=this.tryParseUnquoted(e,t);if(i)n+=i;else{i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}}}r=Ft(r,this.clonePosition());return{val:{type:ft.literal,value:n,location:r},err:null}},er.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(tr(e=this.peek()||0)||47===e)?null:(this.bump(),"<");var e},er.prototype.tryParseQuote=function(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===e||"selectordinal"===e)break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(39===r){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(r);this.bump()}return qt.apply(void 0,t)},er.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return 60===r||123===r||35===r&&("plural"===t||"selectordinal"===t)||125===r&&0<e?null:(this.bump(),qt(r))},er.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(ut.EMPTY_ARGUMENT,Ft(r,this.clonePosition()));var n=this.parseIdentifierIfPossible().value;if(!n)return this.error(ut.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:ft.argument,value:n,location:Ft(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(ut.MALFORMED_ARGUMENT,Ft(r,this.clonePosition()))}},er.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=Ht(this.message,t),t=t+r.length;return this.bumpTo(t),{value:r,location:Ft(e,this.clonePosition())}},er.prototype.parseArgumentOptions=function(e,t,r,n){var i,o=this.clonePosition(),s=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(s){case"":return this.error(ut.EXPECT_ARGUMENT_TYPE,Ft(o,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition();if((h=this.parseSimpleArgStyleIfPossible()).err)return h;if(0===(f=Qt(h.val)).length)return this.error(ut.EXPECT_ARGUMENT_STYLE,Ft(this.clonePosition(),this.clonePosition()));l={style:f,styleLocation:Ft(c,this.clonePosition())}}if((p=this.tryParseArgumentClose(n)).err)return p;var u=Ft(n,this.clonePosition());if(l&&Xt(null==l?void 0:l.style,"::",0)){c=Kt(l.style.slice(2));if("number"===s)return(h=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?h:{val:{type:ft.number,value:r,location:u,style:h.val},err:null};if(0===c.length)return this.error(ut.EXPECT_DATE_TIME_SKELETON,u);var f={type:ht.dateTime,pattern:c,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?(i={},c.replace(At,function(e){var t=e.length;switch(e[0]){case"G":i.era=4===t?"long":5===t?"narrow":"short";break;case"y":i.year=2===t?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":i.month=["numeric","2-digit","short","long","narrow"][t-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":i.day=["numeric","2-digit"][t-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":i.weekday=4!==t&&5===t?"narrow":"short";break;case"e":if(t<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"c":if(t<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");i.weekday=["short","long","narrow","short"][t-4];break;case"a":i.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":i.hourCycle="h12",i.hour=["numeric","2-digit"][t-1];break;case"H":i.hourCycle="h23",i.hour=["numeric","2-digit"][t-1];break;case"K":i.hourCycle="h11",i.hour=["numeric","2-digit"][t-1];break;case"k":i.hourCycle="h24",i.hour=["numeric","2-digit"][t-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":i.minute=["numeric","2-digit"][t-1];break;case"s":i.second=["numeric","2-digit"][t-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":i.timeZoneName=t<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),i):{}};return{val:{type:"date"===s?ft.date:ft.time,value:r,location:u,style:f},err:null}}return{val:{type:"number"===s?ft.number:"date"===s?ft.date:ft.time,value:r,location:u,style:null!==(u=null==l?void 0:l.style)&&void 0!==u?u:null},err:null};case"plural":case"selectordinal":case"select":l=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(ut.EXPECT_SELECT_ARGUMENT_OPTIONS,Ft(l,pt({},l)));this.bumpSpace();var h,u=this.parseIdentifierIfPossible(),l=0;if("select"!==s&&"offset"===u.value){if(!this.bumpIf(":"))return this.error(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ft(this.clonePosition(),this.clonePosition()));if(this.bumpSpace(),(h=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,ut.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return h;this.bumpSpace(),u=this.parseIdentifierIfPossible(),l=h.val}u=this.tryParsePluralOrSelectOptions(e,s,t,u);if(u.err)return u;if((p=this.tryParseArgumentClose(n)).err)return p;var p=Ft(n,this.clonePosition());return"select"===s?{val:{type:ft.select,value:r,options:Zt(u.val),location:p},err:null}:{val:{type:ft.plural,value:r,options:Zt(u.val),offset:l,pluralType:"plural"===s?"cardinal":"ordinal",location:p},err:null};default:return this.error(ut.INVALID_ARGUMENT_TYPE,Ft(o,a))}},er.prototype.tryParseArgumentClose=function(e){return this.isEOF()||125!==this.char()?this.error(ut.EXPECT_ARGUMENT_CLOSING_BRACE,Ft(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},er.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var r=this.clonePosition();if(!this.bumpUntil("'"))return this.error(ut.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Ft(r,this.clonePosition()));this.bump();break;case 123:e+=1,this.bump();break;case 125:if(!(0<e))return{val:this.message.slice(t.offset,this.offset()),err:null};--e;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}},er.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=function(e){if(0===e.length)throw new Error("Number skeleton cannot be empty");for(var t=[],r=0,n=e.split(St).filter(function(e){return 0<e.length});r<n.length;r++){var i=n[r].split("/");if(0===i.length)throw new Error("Invalid number skeleton");for(var o=i[0],i=i.slice(1),s=0,a=i;s<a.length;s++)if(0===a[s].length)throw new Error("Invalid number skeleton");t.push({stem:o,options:i})}return t}(e)}catch(e){return this.error(ut.INVALID_NUMBER_SKELETON,t)}return{val:{type:ht.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?It(r):{}},err:null}},er.prototype.tryParsePluralOrSelectOptions=function(e,t,r,n){for(var i=!1,o=[],s=new Set,a=n.value,l=n.location;;){if(0===a.length){var c=this.clonePosition();if("select"===t||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,ut.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;l=Ft(c,this.clonePosition()),a=this.message.slice(c.offset,this.offset())}if(s.has(a))return this.error("select"===t?ut.DUPLICATE_SELECT_ARGUMENT_SELECTOR:ut.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);"other"===a&&(i=!0),this.bumpSpace();var f=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Ft(this.clonePosition(),this.clonePosition()));u=this.parseMessage(e+1,t,r);if(u.err)return u;c=this.tryParseArgumentClose(f);if(c.err)return c;o.push([a,{value:u.val,location:Ft(f,this.clonePosition())}]),s.add(a),this.bumpSpace(),a=(f=this.parseIdentifierIfPossible()).value,l=f.location}return 0===o.length?this.error("select"===t?ut.EXPECT_SELECT_ARGUMENT_SELECTOR:ut.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ft(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!i?this.error(ut.MISSING_OTHER_CLAUSE,Ft(this.clonePosition(),this.clonePosition())):{val:o,err:null}},er.prototype.tryParseDecimalInteger=function(e,t){var r=1,n=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var i=!1,o=0;!this.isEOF();){var s=this.char();if(!(48<=s&&s<=57))break;i=!0,o=10*o+(s-48),this.bump()}n=Ft(n,this.clonePosition());return i?zt(o*=r)?{val:o,err:null}:this.error(t,n):this.error(e,n)},er.prototype.offset=function(){return this.position.offset},er.prototype.isEOF=function(){return this.offset()===this.message.length},er.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},er.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=Yt(this.message,e);if(void 0===t)throw Error("Offset "+e+" is at invalid UTF-16 code unit boundary");return t},er.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},er.prototype.bump=function(){var e;this.isEOF()||(10===(e=this.char())?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2))},er.prototype.bumpIf=function(e){if(Xt(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},er.prototype.bumpUntil=function(e){var t=this.offset(),t=this.message.indexOf(e,t);return 0<=t?(this.bumpTo(t),!0):(this.bumpTo(this.message.length),!1)},er.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset "+e+" must be greater than or equal to the current offset "+this.offset());for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(e<t)throw Error("targetOffset "+e+" is at invalid UTF-16 code unit boundary");if(this.bump(),this.isEOF())break}},er.prototype.bumpSpace=function(){for(;!this.isEOF()&&rr(this.char());)this.bump()},er.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),e=this.message.charCodeAt(t+(65536<=e?2:1));return null!=e?e:null},er);function er(e,t){void 0===t&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}function tr(e){return 97<=e&&e<=122||65<=e&&e<=90}function rr(e){return 9<=e&&e<=13||32===e||133===e||8206<=e&&e<=8207||8232===e||8233===e}function nr(e,t){t=pt({shouldParseSkeletons:!0,requiresOtherClause:!0},t=void 0===t?{}:t);var r=new Jt(e,t).parse();if(r.err){e=SyntaxError(ut[r.err.kind]);throw e.location=r.err.location,e.originalMessage=r.err.message,e}return null!=t&&t.captureLocation||function r(e){e.forEach(function(e){if(delete e.location,vt(e)||wt(e))for(var t in e.options)delete e.options[t].location,r(e.options[t].value);else gt(e)&&Tt(e.style)||(bt(e)||yt(e))&&_t(e.style)?delete e.style.location:Et(e)&&r(e.children)})}(r.val),r.val}function ir(e,t){var r=t&&t.cache?t.cache:fr,n=t&&t.serializer?t.serializer:lr;return(t&&t.strategy?t.strategy:function(e,t){return ar(e,this,1===e.length?or:sr,t.cache.create(),t.serializer)})(e,{cache:r,serializer:n})}function or(e,t,r,n){var i=null==n||"number"==typeof n||"boolean"==typeof n?n:r(n),r=t.get(i);return void 0===r&&(r=e.call(this,n),t.set(i,r)),r}function sr(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),r=t.get(i);return void 0===r&&(r=e.apply(this,n),t.set(i,r)),r}function ar(e,t,r,n,i){return r.bind(t,e,n,i)}var lr=function(){return JSON.stringify(arguments)};function cr(){this.cache=Object.create(null)}cr.prototype.has=function(e){return e in this.cache},cr.prototype.get=function(e){return this.cache[e]},cr.prototype.set=function(e,t){this.cache[e]=t};var ur,fr={create:function(){return new cr}},hr={variadic:function(e,t){return ar(e,this,sr,t.cache.create(),t.serializer)},monadic:function(e,t){return ar(e,this,or,t.cache.create(),t.serializer)}};(Ct=ur=ur||{}).MISSING_VALUE="MISSING_VALUE",Ct.INVALID_VALUE="INVALID_VALUE",Ct.MISSING_INTL_API="MISSING_INTL_API";var pr,dr,mr,gr,br,yr=(ct(Ar,br=Error),Ar.prototype.toString=function(){return"[formatjs Error: "+this.code+"] "+this.message},Ar),vr=(ct(Cr,gr=yr),Cr),wr=(ct(_r,mr=yr),_r),Er=(ct(Tr,dr=yr),Tr);function Tr(e,t){return dr.call(this,'The intl string context variable "'+e+'" was not provided to the string "'+t+'"',ur.MISSING_VALUE,t)||this}function _r(e,t,r){return mr.call(this,'Value for "'+e+'" must be of type '+t,ur.INVALID_VALUE,r)||this}function Cr(e,t,r,n){return gr.call(this,'Invalid values for "'+e+'": "'+t+'". Options are "'+Object.keys(r).join('", "')+'"',ur.INVALID_VALUE,n)||this}function Ar(e,t,r){e=br.call(this,e)||this;return e.code=t,e.originalMessage=r,e}function Pr(e,t,r,n,i,o,s){if(1===e.length&&mt(e[0]))return[{type:pr.literal,value:e[0].value}];for(var a=[],l=0,c=e;l<c.length;l++){var u=c[l];if(mt(u))a.push({type:pr.literal,value:u.value});else if(u.type===ft.pound)"number"==typeof o&&a.push({type:pr.literal,value:r.getNumberFormat(t).format(o)});else{var f=u.value;if(!(i&&f in i))throw new Er(f,s);var h=i[f];if(u.type===ft.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(bt(u)){var p="string"==typeof u.style?n.date[u.style]:_t(u.style)?u.style.parsedOptions:void 0;a.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)})}else if(yt(u))p="string"==typeof u.style?n.time[u.style]:_t(u.style)?u.style.parsedOptions:void 0,a.push({type:pr.literal,value:r.getDateTimeFormat(t,p).format(h)});else if(gt(u))(p="string"==typeof u.style?n.number[u.style]:Tt(u.style)?u.style.parsedOptions:void 0)&&p.scale&&(h*=p.scale||1),a.push({type:pr.literal,value:r.getNumberFormat(t,p).format(h)});else{if(Et(u)){var d=u.children,m=u.value,f=i[m];if("function"!=typeof f)throw new wr(m,"function",s);d=f(Pr(d,t,r,n,i,o).map(function(e){return e.value}));Array.isArray(d)||(d=[d]),a.push.apply(a,d.map(function(e){return{type:"string"==typeof e?pr.literal:pr.object,value:e}}))}if(vt(u)){if(!(g=u.options[h]||u.options.other))throw new vr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Pr(g.value,t,r,n,i))}else if(wt(u)){if(!(g=u.options["="+h])){if(!Intl.PluralRules)throw new yr('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ur.MISSING_INTL_API,s);var d=r.getPluralRules(t,{type:u.pluralType}).select(h-(u.offset||0)),g=u.options[d]||u.options.other}if(!g)throw new vr(u.value,h,Object.keys(u.options),s);a.push.apply(a,Pr(g.value,t,r,n,i,h-(u.offset||0)))}}}}return a.length<2?a:a.reduce(function(e,t){var r=e[e.length-1];return r&&r.type===pr.literal&&t.type===pr.literal?r.value+=t.value:e.push(t),e},[])}function Sr(r){return{create:function(){return{has:function(e){return e in r},get:function(e){return r[e]},set:function(e,t){r[e]=t}}}}}(Ct=pr=pr||{})[Ct.literal=0]="literal",Ct[Ct.object=1]="object";var xr=(Object.defineProperty(Lr,"defaultLocale",{get:function(){return Lr.memoizedDefaultLocale||(Lr.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),Lr.memoizedDefaultLocale},enumerable:!1,configurable:!0}),Lr.memoizedDefaultLocale=null,Lr.__parse=nr,Lr.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"}}},Lr);function Lr(e,t,r,n){var i,o,s=this;if(void 0===t&&(t=Lr.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){e=s.formatToParts(e);if(1===e.length)return e[0].value;e=e.reduce(function(e,t){return e.length&&t.type===pr.literal&&"string"==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e},[]);return e.length<=1?e[0]||"":e},this.formatToParts=function(e){return Pr(s.ast,s.locales,s.formatters,s.formats,e,void 0,s.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},"string"==typeof e){if(this.message=e,!Lr.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=Lr.__parse(e,{ignoreTag:null==n?void 0:n.ignoreTag})}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=(i=Lr.formats,(o=r)?Object.keys(i).reduce(function(e,t){var r,n;return e[t]=(r=i[t],(n=o[t])?pt(pt(pt({},r||{}),n||{}),Object.keys(r).reduce(function(e,t){return e[t]=pt(pt({},r[t]),n[t]||{}),e},{})):r),e},pt({},i)):i),this.locales=t,this.formatters=n&&n.formatters||{getNumberFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,dt([void 0],t)))},{cache:Sr((n=void 0===(n=this.formatterCache)?{number:{},dateTime:{},pluralRules:{}}:n).number),strategy:hr.variadic}),getDateTimeFormat:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,dt([void 0],t)))},{cache:Sr(n.dateTime),strategy:hr.variadic}),getPluralRules:ir(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,dt([void 0],t)))},{cache:Sr(n.pluralRules),strategy:hr.variadic})}}const Rr={},Ur=(t,r)=>{if(null!=r){if(r in Rr&&t in Rr[r])return Rr[r][t];var n,i,o=qr(r);for(let e=0;e<o.length;e++){var s=(n=o[e],i=t,Nr(n)?function(e,t){if(t in e)return e[t];const r=t.split(".");let n=e;for(let e=0;e<r.length;e++)if("object"==typeof n){if(0<e){const t=r.slice(e,r.length).join(".");if(t in n){n=n[t];break}}n=n[r[e]]}else n=void 0;return n}(function(e){return Or[e]||null}(n),i):null);if(s)return n=t,i=r,(s=s)&&(i in Rr||(Rr[i]={}),n in Rr[i]||(Rr[i][n]=s),s)}}};let Or;const kr=Qe({});function Nr(e){return e in Or}function Ir(t,...r){delete Rr[t],kr.update(e=>(e[t]=at.all([e[t]||{},...r]),e))}We([kr],([e])=>Object.keys(e)),kr.subscribe(e=>Or=e);const Dr={};function Mr(e){return Dr[e]}function Fr(e){return qr(e).some(e=>{return null===(e=Mr(e))||void 0===e?void 0:e.size})}const Gr={};function jr(e){if(!Fr(e))return e in Gr?Gr[e]:void 0;const t=qr(e).map(e=>{var t=Mr(e);return[e,t?[...t]:[]]}).filter(([,e])=>0<e.length);return Gr[e]=Promise.all(t.map(([e,r])=>function(t){return Promise.all(r.map(e=>(function(e,t){Dr[e].delete(t),0===Dr[e].size&&delete Dr[e]}(t,e),e().then(e=>e.default||e)))).then(e=>Ir(t,...e))}(e))).then(()=>Fr(e)?jr(e):void delete Gr[e]),Gr[e]}function $r(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}const 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=Qe(!1);let Vr;const Hr=Qe(null);function Xr(e){return e.split("-").map((e,t,r)=>r.slice(0,t+1).join("-")).reverse()}function qr(e,t=Br.fallbackLocale){e=Xr(e);return t?[...new Set([...e,...Xr(t)])]:e}Hr.subscribe(e=>{Vr=e,"undefined"!=typeof window&&null!==e&&document.documentElement.setAttribute("lang",e)});const Zr=Hr.set;Hr.set=t=>{if(function(e){if(null!=e){var t=qr(e);for(let e=0;e<t.length;e++){var r=t[e];if(Nr(r))return r}}}(t)&&Fr(t)){var{loadingDelay:r}=Br;let e;return"undefined"!=typeof window&&null!=Vr&&r?e=window.setTimeout(()=>zr.set(!0),r):zr.set(!0),jr(t).then(()=>{Zr(t)}).finally(()=>{clearTimeout(e),zr.set(!1)})}return Zr(t)},Hr.update=e=>Zr(e(Vr));const Yr=r=>{const n=Object.create(null);return e=>{var t=JSON.stringify(e);return t in n?n[t]:n[t]=r(e)}},Kr=(e,t)=>{var{formats:r}=Br;if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(e=Kr("number",r)),new Intl.NumberFormat(t,e)}),Wr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?e=Kr("date",r):0===Object.keys(e).length&&(e=Kr("date","short")),new Intl.DateTimeFormat(t,e)}),Jr=Yr(e=>{var{locale:t,format:r}=e,e=$r(e,["locale","format"]);if(null==t)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?e=Kr("time",r):0===Object.keys(e).length&&(e=Kr("time","short")),new Intl.DateTimeFormat(t,e)}),en=Yr((e,t=Vr)=>new xr(e,t,Br.formats,{ignoreTag:Br.ignoreTag})),tn=We([Hr,kr],()=>(e,t={})=>{"object"==typeof e&&(e=(t=e).id);var{values:r,locale:n=Vr,default:i}=t;if(null==n)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let o=Ur(e,n);if(o){if("string"!=typeof o)return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof o}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),o}else Br.warnOnMissingMessages&&console.warn(`[svelte-i18n] The message "${e}" was not found in "${qr(n).join('", "')}".${Fr(Vr)?"\n\nNote: there are at least one loader still registered to this locale that wasn't executed.":""}`),o=i||e;if(!r)return o;let s=o;try{s=en(o,n).format(r)}catch(t){console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,t.message)}return s});We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Jr(Object.assign({locale:t},e))})(t).format(e)),We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Wr(Object.assign({locale:t},e))})(t).format(e)),We([Hr],()=>(e,t)=>((e={})=>{var{locale:t=Vr}=e,e=$r(e,["locale"]);return Qr(Object.assign({locale:t},e))})(t).format(e)),We([Hr,kr],()=>(e,t=Vr)=>Ur(e,t)),window.emWidgets={topic:(e,t=0)=>{return-1==Ze.indexOf(e)&&(t=new Ve(t),Ye[e]=t,Ze.push(e)),Ye[e]}};const rn=e=>!!(e.toLowerCase().match(/android/i)||e.toLowerCase().match(/blackberry|bb/i)||e.toLowerCase().match(/iphone|ipad|ipod/i)||e.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),nn={en:{tournamentsTable:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Counts",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",Rank:"Rank",Player:"Player",Points:"Points",Prize:"Prize"}},ro:{tournamentsTable:{leaderboard:"Clasament",score:"Scor",betcounts:"Cele mai multe runde",winstakeratio:"Castig/miza",qualified:"Calificat",nowinners:"Niciun castigator inregistrat. Fii unul dintre castigatori!",Rank:"Pozitie",Player:"Nume",Points:"Puncte",Prize:"Premiu"}},tr:{tournamentsTable:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",Rank:"Rütbe",Player:"oyuncu",Points:"Puan",Prize:"Ödül"}},el:{tournamentsTable:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",Rank:"Τάξη",Player:"Παίχτης",Points:"Πόντοι",Prize:"Βραβείο"}}};var on="data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e",sn="data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e";function an(e,t,r){const n=e.slice();return n[34]=t[r],n}function ln(e,t,r){const n=e.slice();return n[31]=t[r],n}function cn(e,t,r){const n=e.slice();return n[34]=t[r],n}function un(e,t,r){const n=e.slice();return n[31]=t[r],n}function fn(e,t,r){const n=e.slice();return n[34]=t[r],n}function hn(t){let r,n,i,o,s,a,l,c,u,e=t[10]("tournamentsTable.nowinners")+"",f=t[3],h=[];for(let e=0;e<f.length;e+=1)h[e]=bn(an(t,f,e));return{c(){r=I("div"),n=I("table"),i=I("thead"),o=I("tr");for(let e=0;e<h.length;e+=1)h[e].c();s=M(),a=I("tbody"),l=I("tr"),c=I("td"),u=D(e),F(c,"colspan","4"),F(n,"class","LeftTable"),F(n,"part","LeftTable"),F(r,"class","TournamentsTable"),F(r,"part","TournamentsTable")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o);for(let e=0;e<h.length;e+=1)h[e].m(o,null);O(n,s),O(n,a),O(a,l),O(l,c),O(c,u)},p(t,r){if(5641&r[0]){let e;for(f=t[3],e=0;e<f.length;e+=1){var n=an(t,f,e);h[e]?h[e].p(n,r):(h[e]=bn(n),h[e].c(),h[e].m(o,null))}for(;e<h.length;e+=1)h[e].d(1);h.length=f.length}1024&r[0]&&e!==(e=t[10]("tournamentsTable.nowinners")+"")&&G(u,e)},d(e){e&&N(r),E(h,e)}}}function pn(e){let r,n=e[5]&&yn(e);return{c(){n&&n.c(),r=_()},m(e,t){n&&n.m(e,t),k(e,r,t)},p(e,t){e[5]?n?n.p(e,t):(n=yn(e),n.c(),n.m(r.parentNode,r)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&N(r)}}}function dn(e){let r,n=(t=e,(1==rn(t[11])?wn:vn)(e));var t;return{c(){n.c(),r=_()},m(e,t){n.m(e,t),k(e,r,t)},p(e,t){n.p(e,t)},d(e){n.d(e),e&&N(r)}}}function mn(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=I("p"),n=D(i),F(r,"data-sort",e[9])},m(e,t){k(e,r,t),O(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&G(n,i),512&t[0]&&F(r,"data-sort",e[9])},d(e){e&&N(r)}}}function gn(r){let n,i,o,s,a=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[20](r[34])}return{c(){n=I("button"),i=D(a),F(n,"data-sort",r[9])},m(e,t){k(e,n,t),O(n,i),o||(s=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&a!==(a=r[10](`tournamentsTable.${r[34]}`)+"")&&G(i,a),512&t[0]&&F(n,"data-sort",r[9])},d(e){e&&N(n),o=!1,s()}}}function bn(e){let r,n;function i(e){return"true"==e[0]?gn:mn}let o=i(e),s=o(e);return{c(){r=I("th"),s.c(),n=M()},m(e,t){k(e,r,t),s.m(r,null),O(r,n)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(r,n)))},d(e){e&&N(r),s.d()}}}function yn(e){let r,n,i,o,s=e[10]("tournamentsTable.nowinners")+"";return{c(){r=I("div"),n=I("div"),i=I("p"),o=D(s),F(n,"class","TableUser"),F(n,"part","TableUser"),F(r,"class","TableContent"),F(r,"part","TableContent")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o)},p(e,t){1024&t[0]&&s!==(s=e[10]("tournamentsTable.nowinners")+"")&&G(o,s)},d(e){e&&N(r)}}}function vn(r){let n,i,o,s,a,l,c,u,f,h,p,d,m=r[3],g=[];for(let e=0;e<m.length;e+=1)g[e]=_n(cn(r,m,e));let b="true"==r[1]&&r[4]&&Cn(r),y=r[5]&&Sn(r);function e(e){return e[5]?kn:On}let v=e(r),w=v(r);return{c(){n=I("div"),i=I("table"),o=I("thead"),s=I("tr");for(let e=0;e<g.length;e+=1)g[e].c();a=M(),l=I("tbody"),b&&b.c(),c=M(),y&&y.c(),u=M(),f=I("div"),h=I("div"),w.c(),F(i,"class","LeftTable"),F(i,"part","LeftTable"),F(h,"class","CollapseButton"),F(h,"part","CollapseButton"),F(f,"class","RightButton"),F(f,"part","RightButton"),F(n,"class","TournamentsTable"),F(n,"part","TournamentsTable")},m(e,t){k(e,n,t),O(n,i),O(i,o),O(o,s);for(let e=0;e<g.length;e+=1)g[e].m(s,null);O(i,a),O(i,l),b&&b.m(l,null),O(l,c),y&&y.m(l,null),O(n,u),O(n,f),O(f,h),w.m(h,null),p||(d=T(h,"click",r[19]),p=!0)},p(t,r){if(5641&r[0]){let e;for(m=t[3],e=0;e<m.length;e+=1){var n=cn(t,m,e);g[e]?g[e].p(n,r):(g[e]=_n(n),g[e].c(),g[e].m(s,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=m.length}"true"==t[1]&&t[4]?b?b.p(t,r):(b=Cn(t),b.c(),b.m(l,c)):b&&(b.d(1),b=null),t[5]?y?y.p(t,r):(y=Sn(t),y.c(),y.m(l,null)):y&&(y.d(1),y=null),v!==(v=e(t))&&(w.d(1),w=v(t),w&&(w.c(),w.m(h,null)))},d(e){e&&N(n),E(g,e),b&&b.d(),y&&y.d(),w.d(),p=!1,d()}}}function wn(t){let n,i,r,o,s=t[3],a=[];for(let e=0;e<s.length;e+=1)a[e]=Dn(fn(t,s,e));let l="true"==t[1]&&t[4]&&Mn(t),c=t[5]&&$n(t);return{c(){n=I("div"),i=I("div");for(let e=0;e<a.length;e+=1)a[e].c();r=M(),l&&l.c(),o=M(),c&&c.c(),F(i,"class","TableUser TableHeadRow"),F(i,"part","TableHeadRow"),F(n,"class","TableContent"),F(n,"part","TableContent")},m(e,t){k(e,n,t),O(n,i);for(let e=0;e<a.length;e+=1)a[e].m(i,null);O(n,r),l&&l.m(n,null),O(n,o),c&&c.m(n,null)},p(t,r){if(5641&r[0]){let e;for(s=t[3],e=0;e<s.length;e+=1){const o=fn(t,s,e);a[e]?a[e].p(o,r):(a[e]=Dn(o),a[e].c(),a[e].m(i,null))}for(;e<a.length;e+=1)a[e].d(1);a.length=s.length}"true"==t[1]&&t[4]?l?l.p(t,r):(l=Mn(t),l.c(),l.m(n,o)):l&&(l.d(1),l=null),t[5]?c?c.p(t,r):(c=$n(t),c.c(),c.m(n,null)):c&&(c.d(1),c=null)},d(e){e&&N(n),E(a,e),l&&l.d(),c&&c.d()}}}function En(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=I("p"),n=D(i),F(r,"data-sort",e[9])},m(e,t){k(e,r,t),O(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&G(n,i),512&t[0]&&F(r,"data-sort",e[9])},d(e){e&&N(r)}}}function Tn(r){let n,i,o,s,a=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[18](r[34])}return{c(){n=I("button"),i=D(a),F(n,"data-sort",r[9])},m(e,t){k(e,n,t),O(n,i),o||(s=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&a!==(a=r[10](`tournamentsTable.${r[34]}`)+"")&&G(i,a),512&t[0]&&F(n,"data-sort",r[9])},d(e){e&&N(n),o=!1,s()}}}function _n(e){let r,n;function i(e){return"true"==e[0]?Tn:En}let o=i(e),s=o(e);return{c(){r=I("th"),s.c(),n=M()},m(e,t){k(e,r,t),s.m(r,null),O(r,n)},p(e,t){o===(o=i(e))&&s?s.p(e,t):(s.d(1),s=o(e),s&&(s.c(),s.m(r,n)))},d(e){e&&N(r),s.d()}}}function Cn(e){let r,n,i,o,s,a,l,c,u,t,f,h,p,d,m,g,b,y,v,w,E,T,_,C,A,P=e[4].Rank+"",S=e[4].Player+"",x=e[4].Points+"";function L(e){return e[4].Prize?Pn:An}let R=L(e),U=R(e);return{c(){r=I("tr"),n=I("td"),i=I("strong"),o=I("em"),s=D("#"),a=D(P),l=M(),c=I("div"),u=I("img"),h=M(),p=I("img"),b=M(),y=I("td"),v=D(S),w=M(),E=I("td"),T=I("div"),_=D(x),C=M(),A=I("td"),U.c(),u.src!==(t=on)&&F(u,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(u,"part","Rank_Arror_UP"),F(u,"class",f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),p.src!==(d=sn)&&F(p,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(p,"part","Rank_Arror_Down"),F(p,"class",m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden")),F(c,"class",g="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),F(i,"class","RankCol"),F(T,"class","Flex"),F(r,"class","FirstRow"),F(r,"part","FirstRow")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o),O(o,s),O(o,a),O(i,l),O(i,c),O(c,u),O(c,h),O(c,p),O(r,b),O(r,y),O(y,v),O(r,w),O(r,E),O(E,T),O(T,_),O(r,C),O(r,A),U.m(A,null)},p(e,t){16&t[0]&&P!==(P=e[4].Rank+"")&&G(a,P),192&t[0]&&f!==(f="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&F(u,"class",f),192&t[0]&&m!==(m="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&F(p,"class",m),64&t[0]&&g!==(g="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&F(c,"class",g),16&t[0]&&S!==(S=e[4].Player+"")&&G(v,S),16&t[0]&&x!==(x=e[4].Points+"")&&G(_,x),R===(R=L(e))&&U?U.p(e,t):(U.d(1),U=R(e),U&&(U.c(),U.m(A,null)))},d(e){e&&N(r),U.d()}}}function An(e){let r;return{c(){r=D("-")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function Pn(e){let r,n=e[4].Prize+"";return{c(){r=D(n)},m(e,t){k(e,r,t)},p(e,t){16&t[0]&&n!==(n=e[4].Prize+"")&&G(r,n)},d(e){e&&N(r)}}}function Sn(t){let i,o=t[8],s=[];for(let e=0;e<o.length;e+=1)s[e]=Un(ln(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=_()},m(t,r){for(let e=0;e<s.length;e+=1)s[e].m(t,r);k(t,i,r)},p(t,r){if(448&r[0]){let e;for(o=t[8],e=0;e<o.length;e+=1){var n=ln(t,o,e);s[e]?s[e].p(n,r):(s[e]=Un(n),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){E(s,e),e&&N(i)}}}function xn(e){let r,t,n,i,o,s,a;return{c(){r=I("img"),i=M(),o=I("img"),r.src!==(t=on)&&F(r,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle cx='4.9999' cy='4.9999' r='4.9999' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1149)'%3e %3cline x1='4.93332' y1='4' x2='4.93332' y2='7.99992' stroke='%2359CA00' stroke-width='1.86663'/%3e %3cpath d='M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z' fill='%2359CA00'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1149'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='translate(1.99902 2)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(r,"part","Rank_Arror_UP"),F(r,"class",n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden")),o.src!==(s=sn)&&F(o,"src","data:image/svg+xml,%3csvg width='15' height='15' viewBox='0 0 10 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3e %3ccircle r='4.9999' transform='matrix(1 0 0 -1 4.9999 5.0001)' fill='%23434647'/%3e %3cg clip-path='url(%23clip0_2591_1154)'%3e %3cline y1='-0.933315' x2='3.99992' y2='-0.933315' transform='matrix(0 -1 -1 0 4 6)' stroke='%23CA0000' stroke-width='1.86663'/%3e %3cpath d='M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z' fill='%23CA0000'/%3e %3c/g%3e %3cdefs%3e %3cclipPath id='clip0_2591_1154'%3e %3crect width='5.99988' height='5.99928' fill='white' transform='matrix(1 0 0 -1 1.99902 8)'/%3e %3c/clipPath%3e %3c/defs%3e%3c/svg%3e"),F(o,"part","Rank_Arror_Down"),F(o,"class",a="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))},m(e,t){k(e,r,t),k(e,i,t),k(e,o,t)},p(e,t){192&t[0]&&n!==(n="svg Arrow Up "+(e[6]&&e[7]?"Show":"Hidden"))&&F(r,"class",n),192&t[0]&&a!==(a="svg Arrow Down "+(e[6]&&!e[7]?"Show":"Hidden"))&&F(o,"class",a)},d(e){e&&N(r),e&&N(i),e&&N(o)}}}function Ln(e){let r;return{c(){r=D("-")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function Rn(e){let r,n=e[31].Prize+"";return{c(){r=D(n)},m(e,t){k(e,r,t)},p(e,t){256&t[0]&&n!==(n=e[31].Prize+"")&&G(r,n)},d(e){e&&N(r)}}}function Un(e){let r,n,i,o,s,a,l,c,u,f,h,p,d,m,g,b,y,v,w,E,T=e[31].Rank+"",_=e[31].Player+"",C=e[31].Points+"",A=e[31].isCurrentUser&&xn(e);function P(e){return e[31].Prize?Rn:Ln}let S=P(e),x=S(e);return{c(){r=I("tr"),n=I("td"),i=I("strong"),o=I("em"),s=D("#"),a=D(T),l=M(),c=I("div"),A&&A.c(),f=M(),h=I("td"),p=D(_),d=M(),m=I("td"),g=I("div"),b=D(C),y=M(),v=I("td"),x.c(),w=M(),F(c,"class",u="ScoreChangeFlag "+(e[6]?"Show":"Hidden")),F(i,"class","RankCol"),F(g,"class","Flex ScoreUp"),F(r,"class",E=e[31].isCurrentUser?"FirstRow":"")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(i,o),O(o,s),O(o,a),O(o,l),O(o,c),A&&A.m(c,null),O(r,f),O(r,h),O(h,p),O(r,d),O(r,m),O(m,g),O(g,b),O(r,y),O(r,v),x.m(v,null),O(r,w)},p(e,t){256&t[0]&&T!==(T=e[31].Rank+"")&&G(a,T),e[31].isCurrentUser?A?A.p(e,t):(A=xn(e),A.c(),A.m(c,null)):A&&(A.d(1),A=null),64&t[0]&&u!==(u="ScoreChangeFlag "+(e[6]?"Show":"Hidden"))&&F(c,"class",u),256&t[0]&&_!==(_=e[31].Player+"")&&G(p,_),256&t[0]&&C!==(C=e[31].Points+"")&&G(b,C),S===(S=P(e))&&x?x.p(e,t):(x.d(1),x=S(e),x&&(x.c(),x.m(v,null))),256&t[0]&&E!==(E=e[31].isCurrentUser?"FirstRow":"")&&F(r,"class",E)},d(e){e&&N(r),A&&A.d(),x.d()}}}function On(e){let r,n;return{c(){r=t("svg"),n=t("path"),F(n,"d","M6 9l6 6 6-6"),F(r,"xmlns","http://www.w3.org/2000/svg"),F(r,"width","24"),F(r,"height","24"),F(r,"viewBox","0 0 24 24"),F(r,"fill","none"),F(r,"stroke","#ffffff"),F(r,"stroke-width","2"),F(r,"stroke-linecap","round"),F(r,"stroke-linejoin","round")},m(e,t){k(e,r,t),O(r,n)},d(e){e&&N(r)}}}function kn(e){let r,n;return{c(){r=t("svg"),n=t("path"),F(n,"d","M18 15l-6-6-6 6"),F(r,"xmlns","http://www.w3.org/2000/svg"),F(r,"width","24"),F(r,"height","24"),F(r,"viewBox","0 0 24 24"),F(r,"fill","none"),F(r,"stroke","#ffffff"),F(r,"stroke-width","2"),F(r,"stroke-linecap","round"),F(r,"stroke-linejoin","round")},m(e,t){k(e,r,t),O(r,n)},d(e){e&&N(r)}}}function Nn(e){let r,n,i=e[10](`tournamentsTable.${e[34]}`)+"";return{c(){r=I("p"),n=D(i),F(r,"data-sort",e[9])},m(e,t){k(e,r,t),O(r,n)},p(e,t){1032&t[0]&&i!==(i=e[10](`tournamentsTable.${e[34]}`)+"")&&G(n,i),512&t[0]&&F(r,"data-sort",e[9])},d(e){e&&N(r)}}}function In(r){let n,i,o,s,a=r[10](`tournamentsTable.${r[34]}`)+"";function l(){return r[17](r[34])}return{c(){n=I("button"),i=D(a),F(n,"data-sort",r[9])},m(e,t){k(e,n,t),O(n,i),o||(s=T(n,"click",l),o=!0)},p(e,t){r=e,1032&t[0]&&a!==(a=r[10](`tournamentsTable.${r[34]}`)+"")&&G(i,a),512&t[0]&&F(n,"data-sort",r[9])},d(e){e&&N(n),o=!1,s()}}}function Dn(e){let r,n,i;function o(e){return"true"==e[0]?In:Nn}let s=o(e),a=s(e);return{c(){r=I("div"),a.c(),n=M(),F(r,"class",i="TableCell Table"+e[34])},m(e,t){k(e,r,t),a.m(r,null),O(r,n)},p(e,t){s===(s=o(e))&&a?a.p(e,t):(a.d(1),a=s(e),a&&(a.c(),a.m(r,n))),8&t[0]&&i!==(i="TableCell Table"+e[34])&&F(r,"class",i)},d(e){e&&N(r),a.d()}}}function Mn(e){let r,n,i,o,s,a,l,c,u,f,h,p,d,m,g=e[4].Rank+"",b=e[4].Player+"",y=e[4].Points+"";function v(e){return e[4].Prize?Gn:Fn}let w=v(e),E=w(e),T=e[4].Unqualified&&jn();return{c(){r=I("div"),n=I("div"),i=D(g),s=M(),a=I("div"),l=D(b),c=M(),u=I("div"),f=D(y),h=M(),E.c(),d=M(),T&&T.c(),m=_(),F(n,"class",o="TableCell TableRank "+(e[4].Prize?"Qualified":"")),F(a,"class","TableCell TablePlayer"),F(u,"class","TableCell TablePoints"),F(r,"class",p="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":"")),F(r,"part","TableUser")},m(e,t){k(e,r,t),O(r,n),O(n,i),O(r,s),O(r,a),O(a,l),O(r,c),O(r,u),O(u,f),O(r,h),E.m(r,null),k(e,d,t),T&&T.m(e,t),k(e,m,t)},p(e,t){16&t[0]&&g!==(g=e[4].Rank+"")&&G(i,g),16&t[0]&&o!==(o="TableCell TableRank "+(e[4].Prize?"Qualified":""))&&F(n,"class",o),16&t[0]&&b!==(b=e[4].Player+"")&&G(l,b),16&t[0]&&y!==(y=e[4].Points+"")&&G(f,y),w===(w=v(e))&&E?E.p(e,t):(E.d(1),E=w(e),E&&(E.c(),E.m(r,null))),16&t[0]&&p!==(p="TableUser CurrentUserRow "+(e[4].Unqualified?"UnqualifiedRow":""))&&F(r,"class",p),e[4].Unqualified?T||(T=jn(),T.c(),T.m(m.parentNode,m)):T&&(T.d(1),T=null)},d(e){e&&N(r),E.d(),e&&N(d),T&&T.d(e),e&&N(m)}}}function Fn(e){let r;return{c(){r=I("div"),r.textContent="-",F(r,"class","TableCell TablePrize")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function Gn(e){let r,n,i,o=e[4].Prize+"";return{c(){r=I("div"),n=D(o),F(r,"class",i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))},m(e,t){k(e,r,t),O(r,n)},p(e,t){16&t[0]&&o!==(o=e[4].Prize+"")&&G(n,o),16&t[0]&&i!==(i="TableCell TablePrize "+(e[4].Unqualified?"":"Qualified"))&&F(r,"class",i)},d(e){e&&N(r)}}}function jn(){let r;return{c(){r=I("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>',F(r,"class","TableUserTooltips"),F(r,"part","TableUserTooltips")},m(e,t){k(e,r,t)},d(e){e&&N(r)}}}function $n(t){let i,o=t[8],s=[];for(let e=0;e<o.length;e+=1)s[e]=Hn(un(t,o,e));return{c(){for(let e=0;e<s.length;e+=1)s[e].c();i=_()},m(t,r){for(let e=0;e<s.length;e+=1)s[e].m(t,r);k(t,i,r)},p(t,r){if(256&r[0]){let e;for(o=t[8],e=0;e<o.length;e+=1){var n=un(t,o,e);s[e]?s[e].p(n,r):(s[e]=Hn(n),s[e].c(),s[e].m(i.parentNode,i))}for(;e<s.length;e+=1)s[e].d(1);s.length=o.length}},d(e){E(s,e),e&&N(i)}}}function Bn(e){let r;return{c(){r=I("div"),r.textContent="-",F(r,"class","TableCell TablePrize")},m(e,t){k(e,r,t)},p:f,d(e){e&&N(r)}}}function zn(e){let r,n,i,o=e[31].Prize+"";return{c(){r=I("div"),n=D(o),F(r,"class",i="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))},m(e,t){k(e,r,t),O(r,n)},p(e,t){256&t[0]&&o!==(o=e[31].Prize+"")&&G(n,o),256&t[0]&&i!==(i="TableCell TablePrize "+(e[31].Unqualified?"":"Qualified"))&&F(r,"class",i)},d(e){e&&N(r)}}}function Vn(e){let r,n,i,o,s,a,l;return{c(){r=I("div"),n=t("svg"),i=t("path"),o=M(),s=I("em"),s.textContent="Minimum bet count not completed. Check Rules.",a=M(),F(i,"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"),F(i,"fill","#B5B5B5"),F(n,"class","ExclamationMark"),F(n,"width","10"),F(n,"height","10"),F(n,"viewBox","0 0 10 10"),F(n,"fill","none"),F(n,"xmlns","http://www.w3.org/2000/svg"),F(r,"class",l="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))},m(e,t){k(e,r,t),O(r,n),O(n,i),O(r,o),O(r,s),O(r,a)},p(e,t){256&t[0]&&l!==(l="TableUserTooltips "+(e[31].Unqualified?"UnqualifiedRow":""))&&F(r,"class",l)},d(e){e&&N(r)}}}function Hn(e){let r,n,i,o,s,a,l,c,u,f,h,p,d,m,g=e[31].Rank+"",b=e[31].Player+"",y=e[31].Points+"";function v(e){return e[31].Prize?zn:Bn}let w=v(e),E=w(e),T=e[31].isCurrentUser&&e[31].Unqualified&&Vn(e);return{c(){r=I("div"),n=I("div"),i=D(g),s=M(),a=I("div"),l=D(b),c=M(),u=I("div"),f=D(y),h=M(),E.c(),d=M(),T&&T.c(),m=_(),F(n,"class",o="TableCell TableRank "+(e[31].Prize?"Qualified":"")),F(a,"class","TableCell TablePlayer"),F(u,"class","TableCell TablePoints"),F(r,"class",p="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))},m(e,t){k(e,r,t),O(r,n),O(n,i),O(r,s),O(r,a),O(a,l),O(r,c),O(r,u),O(u,f),O(r,h),E.m(r,null),k(e,d,t),T&&T.m(e,t),k(e,m,t)},p(e,t){256&t[0]&&g!==(g=e[31].Rank+"")&&G(i,g),256&t[0]&&o!==(o="TableCell TableRank "+(e[31].Prize?"Qualified":""))&&F(n,"class",o),256&t[0]&&b!==(b=e[31].Player+"")&&G(l,b),256&t[0]&&y!==(y=e[31].Points+"")&&G(f,y),w===(w=v(e))&&E?E.p(e,t):(E.d(1),E=w(e),E&&(E.c(),E.m(r,null))),256&t[0]&&p!==(p="TableUser "+(e[31].isCurrentUser?"CurrentUserRow":""))&&F(r,"class",p),e[31].isCurrentUser&&e[31].Unqualified?T?T.p(e,t):(T=Vn(e),T.c(),T.m(m.parentNode,m)):T&&(T.d(1),T=null)},d(e){e&&N(r),E.d(),e&&N(d),T&&T.d(e),e&&N(m)}}}function Xn(e){let t,r;function n(e){return 0<e[2].length||e[4]?dn:(null==t&&(t=!(1!=rn(e[11]))),t?pn:hn)}let i=n(e),o=i(e);return{c(){o.c(),r=_(),this.c=f},m(e,t){o.m(e,t),k(e,r,t)},p(e,t){i===(i=n(e))&&o?o.p(e,t):(o.d(1),o=i(e),o&&(o.c(),o.m(r.parentNode,r)))},i:f,o:f,d(e){o.d(e),e&&N(r)}}}function qn(e,t,i){let r,n,o;var s=tn;e.$$.on_destroy.push(P(s,e=>i(10,o=e)));let a,{sortable:l=!1}=t,{firstrow:c=!1}=t,{lang:u="en"}=t,f=[],h=[],p=null,d=null,m=null,g=!0,b=window.navigator.userAgent,y=!1,v=!1;Object.keys(nn).forEach(e=>{Ir(e,nn[e])});let w,E;const T=e=>{a?(i(6,y=a!=e),i(7,v=a>e),y&&(w=(new Date).getTime(),setTimeout(function(){E=(new Date).getTime(),4<(E-w)/1e3&&i(6,y=!1),a=e},5e3))):a=e},_=t=>{if(t.data&&"CasinoTableData"===t.data.type&&(i(2,h=t.data.tableData),i(8,r=h)),t.data&&"CasinoTableColumns"===t.data.type&&i(3,f=t.data.tableColumns),t.data&&"CasinoTableCurrentUserData"===t.data.type&&h&&(h.forEach(e=>{e.userID==t.data.tableData.userID&&(e.isCurrentUser=!0,a=a||t.data.tableData.Rank,m?(T(t.data.tableData.Rank),i(4,m=null)):T(t.data.tableData.Rank))}),i(8,r=h)),c&&t.data&&"CasinoTableFirstRowData"===t.data.type){var e=t.data.tableData;if(!m)return i(4,m=t.data.tableData),void(a=m.Rank);m&&m.UserID==e.UserID&&(T(e.Rank),i(4,m=t.data.tableData))}if(t.data&&"CasinoTableDataUpdate"===t.data.type&&t.data.tableData){let n=t.data.tableData;h instanceof Array&&h.forEach(function(e,t){var r,e=(r=e.Rank,n.find(e=>e.Rank==r));e&&i(2,h[t]=e,h)})}},C=e=>{var t=e===p,r="ASC"===d,n=t&&!r;i(15,p=n?null:e),i(16,d=n?null:t&&r?"DESC":"ASC")},A=()=>{i(5,g=!g)};return t=()=>(window.addEventListener("message",_,!1),()=>{window.removeEventListener("message",_)}),function(){if(!S)throw new Error("Function called outside component initialization");return S}().$$.on_mount.push(t),e.$$set=e=>{"sortable"in e&&i(0,l=e.sortable),"firstrow"in e&&i(1,c=e.firstrow),"lang"in e&&i(14,u=e.lang)},e.$$.update=()=>{98308&e.$$.dirty[0]&&i(8,r=p&&d?(()=>{let e=[];if(h&&(e=[...h]),!h.length)return h;var t=typeof h[0][p.toLowerCase()];return e.sort((e=>{const r=p.toLowerCase();return"string"==e?(e,t)=>e[r].localeCompare(t[r]):"number"==e||"object"==e?(e,t)=>e[r]-t[r]:void 0})(t)),"ASC"===d?e:e.reverse()})():[...h]),98304&e.$$.dirty[0]&&i(9,n=null===p?d:null)},[l,c,h,f,m,g,y,v,r,n,o,b,C,A,u,p,d,e=>C(e),e=>C(e),()=>A(),e=>C(e)]}class Zn extends l{constructor(e){super(),this.shadowRoot.innerHTML="<style>:host{font-family:system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji'}*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.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 #1B9800}.FirstRow .RankCol{position:relative;width:max-content;display:inline}.FirstRow .RankCol .ScoreChangeFlag{position:absolute;top:0px;right:-29px}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Up{color:#0cdc13}.FirstRow .RankCol .ScoreChangeFlag .Arrow.Down{color:#FF4500}.Show{display:inline-flex}.Hidden{display:none}.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}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(e){const t={};for(const r of e)t[r.name]=r.value;return t}(this.attributes),customElement:!0},qn,Xn,r,{sortable:0,firstrow:1,lang:14},[-1,-1]),e&&(e.target&&k(e.target,this,e.anchor),e.props&&(this.$set(e.props),C()))}static get observedAttributes(){return["sortable","firstrow","lang"]}get sortable(){return this.$$.ctx[0]}set sortable(e){this.$set({sortable:e}),C()}get firstrow(){return this.$$.ctx[1]}set firstrow(e){this.$set({firstrow:e}),C()}get lang(){return this.$$.ctx[14]}set lang(e){this.$set({lang:e}),C()}}return customElements.get("casino-tournaments-table")||customElements.define("casino-tournaments-table",Zn),Zn});
|
|
2
2
|
//# sourceMappingURL=casino-tournaments-table.js.map
|