@everymatrix/casino-tournaments-player-rank 1.52.0 → 1.52.1
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.
- package/components/{CasinoTournamentsPlayerRank-DRt8sK2j.js → CasinoTournamentsPlayerRank-BZksywZp.js} +1 -1
- package/components/{CasinoTournamentsPlayerRank-CGESeJx0.cjs → CasinoTournamentsPlayerRank-Dlnma-xI.cjs} +1 -1
- package/components/{CasinoTournamentsRank-CLWrhbm6.cjs → CasinoTournamentsRank-B_psih-Z.cjs} +1 -1
- package/components/{CasinoTournamentsRank-DE8TFYZ6.js → CasinoTournamentsRank-C0YW1vFx.js} +24 -24
- package/es2015/casino-tournaments-player-rank.cjs +1 -1
- package/es2015/casino-tournaments-player-rank.js +1 -1
- package/package.json +2 -2
|
@@ -6868,7 +6868,7 @@ if (typeof window != "undefined") {
|
|
|
6868
6868
|
}
|
|
6869
6869
|
};
|
|
6870
6870
|
};
|
|
6871
|
-
customElements.define = e(customElements.define), import("./CasinoTournamentsRank-
|
|
6871
|
+
customElements.define = e(customElements.define), import("./CasinoTournamentsRank-C0YW1vFx.js").then(({ default: t }) => {
|
|
6872
6872
|
!customElements.get("casino-tournaments-rank") && customElements.define("casino-tournaments-rank", t.element);
|
|
6873
6873
|
});
|
|
6874
6874
|
}
|
|
@@ -11,7 +11,7 @@ d.version="2.30.1";xa(I);d.fn=f;d.min=cu;d.max=du;d.now=mu;d.utc=pe;d.unix=Gl;d.
|
|
|
11
11
|
`+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
|
|
12
12
|
`):"",this.name="UnsubscriptionError",this.errors=r}});function Lr(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var sr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var o=Ir(a),u=o.next();!u.done;u=o.next()){var l=u.value;l.remove(this)}}catch(g){t={error:g}}finally{try{u&&!u.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}else a.remove(this);var h=this.initialTeardown;if(xe(h))try{h()}catch(g){s=g instanceof gr?g.errors:[g]}var c=this._finalizers;if(c){this._finalizers=null;try{for(var m=Ir(c),v=m.next();!v.done;v=m.next()){var M=v.value;try{Ln(M)}catch(g){s=s!=null?s:[],g instanceof gr?s=qe(qe([],Rr(s)),Rr(g.errors)):s.push(g)}}}catch(g){n={error:g}}finally{try{v&&!v.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}}if(s)throw new gr(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Ln(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&Lr(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Lr(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),ls=sr.EMPTY;function hs(e){return e instanceof sr||e&&"closed"in e&&xe(e.remove)&&xe(e.add)&&xe(e.unsubscribe)}function Ln(e){xe(e)?e():e.unsubscribe()}var fs={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Th={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,qe([e,t],Rr(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Mh(e){Th.setTimeout(function(){throw e})}function Yn(){}function Rt(e){e()}var cs=function(e){Oe(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,hs(r)&&r.add(n)):n.destination=Ph,n}return t.create=function(r,n,i){return new Yr(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(sr),Oh=Function.prototype.bind;function br(e,t){return Oh.call(e,t)}var kh=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){Dt(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Dt(n)}else Dt(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Dt(r)}},e}(),Yr=function(e){Oe(t,e);function t(r,n,i){var s=e.call(this)||this,a;if(xe(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:i!=null?i:void 0};else{var o;s&&fs.useDeprecatedNextContext?(o=Object.create(r),o.unsubscribe=function(){return s.unsubscribe()},a={next:r.next&&br(r.next,o),error:r.error&&br(r.error,o),complete:r.complete&&br(r.complete,o)}):a=r}return s.destination=new kh(a),s}return t}(cs);function Dt(e){Mh(e)}function Dh(e){throw e}var Ph={closed:!0,next:Yn,error:Dh,complete:Yn},Hh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Nh(e){return e}function Ah(e){return e.length===0?Nh:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var Bn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=Ih(t)?t:new Yr(t,r,n);return Rt(function(){var a=i,o=a.operator,u=a.source;s.add(o?o.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=Fn(r),new r(function(i,s){var a=new Yr({next:function(o){try{t(o)}catch(u){s(u),a.unsubscribe()}},error:s,complete:i});n.subscribe(a)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[Hh]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Ah(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Fn(t),new t(function(n,i){var s;r.subscribe(function(a){return s=a},function(a){return i(a)},function(){return n(s)})})},e.create=function(t){return new e(t)},e}();function Fn(e){var t;return(t=e!=null?e:fs.Promise)!==null&&t!==void 0?t:Promise}function Ch(e){return e&&xe(e.next)&&xe(e.error)&&xe(e.complete)}function Ih(e){return e&&e instanceof cs||Ch(e)&&hs(e)}var Rh=us(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ds=function(e){Oe(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new Un(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Rh},t.prototype.next=function(r){var n=this;Rt(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Ir(n.currentObservers),o=a.next();!o.done;o=a.next()){var u=o.value;u.next(r)}}catch(l){i={error:l}}finally{try{o&&!o.done&&(s=a.return)&&s.call(a)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Rt(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Rt(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,a=i.isStopped,o=i.observers;return s||a?ls:(this.currentObservers=null,o.push(r),new sr(function(){n.currentObservers=null,Lr(o,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,a=n.isStopped;i?r.error(s):a&&r.complete()},t.prototype.asObservable=function(){var r=new Bn;return r.source=this,r},t.create=function(r,n){return new Un(r,n)},t}(Bn),Un=function(e){Oe(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:ls},t}(ds),ms={now:function(){return(ms.delegate||Date).now()},delegate:void 0},Lh=function(e){Oe(t,e);function t(r,n,i){r===void 0&&(r=1/0),n===void 0&&(n=1/0),i===void 0&&(i=ms);var s=e.call(this)||this;return s._bufferSize=r,s._windowTime=n,s._timestampProvider=i,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=n===1/0,s._bufferSize=Math.max(1,r),s._windowTime=Math.max(1,n),s}return t.prototype.next=function(r){var n=this,i=n.isStopped,s=n._buffer,a=n._infiniteTimeWindow,o=n._timestampProvider,u=n._windowTime;i||(s.push(r),!a&&s.push(o.now()+u)),this._trimBuffer(),e.prototype.next.call(this,r)},t.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),i=this,s=i._infiniteTimeWindow,a=i._buffer,o=a.slice(),u=0;u<o.length&&!r.closed;u+=s?1:2)r.next(o[u]);return this._checkFinalizedStatuses(r),n},t.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,i=r._timestampProvider,s=r._buffer,a=r._infiniteTimeWindow,o=(a?1:2)*n;if(n<1/0&&o<s.length&&s.splice(0,s.length-o),!a){for(var u=i.now(),l=0,h=1;h<s.length&&s[h]<=u;h+=2)l=h;l&&s.splice(0,l+1)}},t}(ds);const Gn=[],$n={},Yh=(e,t=0)=>{if(Gn.indexOf(e)==-1){const r=new Lh(t);$n[e]=r,Gn.push(e)}return $n[e]},Ge=[];function Bh(e,t){return{subscribe:ar(e,t).subscribe}}function ar(e,t=ne){let r;const n=new Set;function i(o){if(Zr(e,o)&&(e=o,r)){const u=!Ge.length;for(const l of n)l[1](),Ge.push(l,e);if(u){for(let l=0;l<Ge.length;l+=2)Ge[l][0](Ge[l+1]);Ge.length=0}}}function s(o){i(o(e))}function a(o,u=ne){const l=[o,u];return n.add(l),n.size===1&&(r=t(i,s)||ne),o(e),()=>{n.delete(l),n.size===0&&r&&(r(),r=null)}}return{set:i,update:s,subscribe:a}}function it(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=t.length<2;return Bh(r,(a,o)=>{let u=!1;const l=[];let h=0,c=ne;const m=()=>{if(h)return;c();const M=t(n?l[0]:l,a,o);s?a(M):c=zr(M)?M:ne},v=i.map((M,g)=>hi(M,P=>{l[g]=P,h&=~(1<<g),u&&m()},()=>{h|=1<<g}));return u=!0,m(),function(){vt(v),c(),u=!1}})}var Fh=function(t){return Uh(t)&&!Gh(t)};function Uh(e){return!!e&&typeof e=="object"}function Gh(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||jh(e)}var $h=typeof Symbol=="function"&&Symbol.for,Wh=$h?Symbol.for("react.element"):60103;function jh(e){return e.$$typeof===Wh}function Vh(e){return Array.isArray(e)?[]:{}}function gt(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Je(Vh(e),e,t):e}function zh(e,t,r){return e.concat(t).map(function(n){return gt(n,r)})}function Zh(e,t){if(!t.customMerge)return Je;var r=t.customMerge(e);return typeof r=="function"?r:Je}function Xh(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Wn(e){return Object.keys(e).concat(Xh(e))}function ps(e,t){try{return t in e}catch(r){return!1}}function qh(e,t){return ps(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Jh(e,t,r){var n={};return r.isMergeableObject(e)&&Wn(e).forEach(function(i){n[i]=gt(e[i],r)}),Wn(t).forEach(function(i){qh(e,i)||(ps(e,i)&&r.isMergeableObject(t[i])?n[i]=Zh(i,r)(e[i],t[i],r):n[i]=gt(t[i],r))}),n}function Je(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||zh,r.isMergeableObject=r.isMergeableObject||Fh,r.cloneUnlessOtherwiseSpecified=gt;var n=Array.isArray(t),i=Array.isArray(e),s=n===i;return s?n?r.arrayMerge(e,t,r):Jh(e,t,r):gt(t,r)}Je.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return Je(n,i,r)},{})};var Qh=Je,Kh=Qh;const ef=wa(Kh);function vr(e,t){var r=t&&t.cache?t.cache:of,n=t&&t.serializer?t.serializer:af,i=t&&t.strategy?t.strategy:rf;return i(e,{cache:r,serializer:n})}function tf(e){return e==null||typeof e=="number"||typeof e=="boolean"}function _s(e,t,r,n){var i=tf(n)?n:r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.call(this,n),t.set(i,s)),s}function ys(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),s=t.get(i);return typeof s=="undefined"&&(s=e.apply(this,n),t.set(i,s)),s}function gn(e,t,r,n,i){return r.bind(t,e,n,i)}function rf(e,t){var r=e.length===1?_s:ys;return gn(e,this,r,t.cache.create(),t.serializer)}function nf(e,t){return gn(e,this,ys,t.cache.create(),t.serializer)}function sf(e,t){return gn(e,this,_s,t.cache.create(),t.serializer)}var af=function(){return JSON.stringify(arguments)};function bn(){this.cache=Object.create(null)}bn.prototype.get=function(e){return this.cache[e]};bn.prototype.set=function(e,t){this.cache[e]=t};var of={create:function(){return new bn}},wr={variadic:nf,monadic:sf},S;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(S||(S={}));var Y;(function(e){e[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"})(Y||(Y={}));var Qe;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(Qe||(Qe={}));function jn(e){return e.type===Y.literal}function uf(e){return e.type===Y.argument}function gs(e){return e.type===Y.number}function bs(e){return e.type===Y.date}function vs(e){return e.type===Y.time}function ws(e){return e.type===Y.select}function Ss(e){return e.type===Y.plural}function lf(e){return e.type===Y.pound}function xs(e){return e.type===Y.tag}function Es(e){return!!(e&&typeof e=="object"&&e.type===Qe.number)}function Br(e){return!!(e&&typeof e=="object"&&e.type===Qe.dateTime)}var Ts=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,hf=/(?:[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;function ff(e){var t={};return e.replace(hf,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"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":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-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":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<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""}),t}var cf=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function df(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(cf).filter(function(m){return m.length>0}),r=[],n=0,i=t;n<i.length;n++){var s=i[n],a=s.split("/");if(a.length===0)throw new Error("Invalid number skeleton");for(var o=a[0],u=a.slice(1),l=0,h=u;l<h.length;l++){var c=h[l];if(c.length===0)throw new Error("Invalid number skeleton")}r.push({stem:o,options:u})}return r}function mf(e){return e.replace(/^(.*?)-/,"")}var Vn=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Ms=/^(@+)?(\+|#+)?[rs]?$/g,pf=/(\*)(0+)|(#+)(0+)|(0+)/g,Os=/^(0+)$/;function zn(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Ms,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function ks(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 _f(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(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)),!Os.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Zn(e){var t={},r=ks(e);return r||t}function yf(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=mf(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=O(O(O({},t),{notation:"scientific"}),i.options.reduce(function(u,l){return O(O({},u),Zn(l))},{}));continue;case"engineering":t=O(O(O({},t),{notation:"engineering"}),i.options.reduce(function(u,l){return O(O({},u),Zn(l))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(pf,function(u,l,h,c,m,v){if(l)t.minimumIntegerDigits=h.length;else{if(c&&m)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return""});continue}if(Os.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Vn.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Vn,function(u,l,h,c,m,v){return h==="*"?t.minimumFractionDigits=l.length:c&&c[0]==="#"?t.maximumFractionDigits=c.length:m&&v?(t.minimumFractionDigits=m.length,t.maximumFractionDigits=m.length+v.length):(t.minimumFractionDigits=l.length,t.maximumFractionDigits=l.length),""});var s=i.options[0];s==="w"?t=O(O({},t),{trailingZeroDisplay:"stripIfInteger"}):s&&(t=O(O({},t),zn(s)));continue}if(Ms.test(i.stem)){t=O(O({},t),zn(i.stem));continue}var a=ks(i.stem);a&&(t=O(O({},t),a));var o=_f(i.stem);o&&(t=O(O({},t),o))}return t}var Pt={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function gf(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var s=0;n+1<e.length&&e.charAt(n+1)===i;)s++,n++;var a=1+(s&1),o=s<2?1:3+(s>>1),u="a",l=bf(t);for((l=="H"||l=="k")&&(o=0);o-- >0;)r+=u;for(;a-- >0;)r=l+r}else i==="J"?r+="H":r+=i}return r}function bf(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=Pt[n||""]||Pt[r||""]||Pt["".concat(r,"-001")]||Pt["001"];return i[0]}var Sr,vf=new RegExp("^".concat(Ts.source,"*")),wf=new RegExp("".concat(Ts.source,"*$"));function E(e,t){return{start:e,end:t}}var Sf=!!String.prototype.startsWith&&"_a".startsWith("a",1),xf=!!String.fromCodePoint,Ef=!!Object.fromEntries,Tf=!!String.prototype.codePointAt,Mf=!!String.prototype.trimStart,Of=!!String.prototype.trimEnd,kf=!!Number.isSafeInteger,Df=kf?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Fr=!0;try{var Pf=Ps("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fr=((Sr=Pf.exec("a"))===null||Sr===void 0?void 0:Sr[0])==="a"}catch(e){Fr=!1}var Xn=Sf?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},Ur=xf?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,s=0,a;i>s;){if(a=t[s++],a>1114111)throw RangeError(a+" is not a valid code point");n+=a<65536?String.fromCharCode(a):String.fromCharCode(((a-=65536)>>10)+55296,a%1024+56320)}return n},qn=Ef?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var s=i[n],a=s[0],o=s[1];r[a]=o}return r},Ds=Tf?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),s;return i<55296||i>56319||r+1===n||(s=t.charCodeAt(r+1))<56320||s>57343?i:(i-55296<<10)+(s-56320)+65536}},Hf=Mf?function(t){return t.trimStart()}:function(t){return t.replace(vf,"")},Nf=Of?function(t){return t.trimEnd()}:function(t){return t.replace(wf,"")};function Ps(e,t){return new RegExp(e,t)}var Gr;if(Fr){var Jn=Ps("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Gr=function(t,r){var n;Jn.lastIndex=r;var i=Jn.exec(t);return(n=i[1])!==null&&n!==void 0?n:""}}else Gr=function(t,r){for(var n=[];;){var i=Ds(t,r);if(i===void 0||Hs(i)||Rf(i))break;n.push(i),r+=i>=65536?2:1}return Ur.apply(void 0,n)};var Af=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var s=this.char();if(s===123){var a=this.parseArgument(t,n);if(a.err)return a;i.push(a.val)}else{if(s===125&&t>0)break;if(s===35&&(r==="plural"||r==="selectordinal")){var o=this.clonePosition();this.bump(),i.push({type:Y.pound,location:E(o,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(S.UNMATCHED_CLOSING_TAG,E(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&$r(this.peek()||0)){var a=this.parseTag(t,r);if(a.err)return a;i.push(a.val)}else{var a=this.parseLiteral(t,r);if(a.err)return a;i.push(a.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Y.literal,value:"<".concat(i,"/>"),location:E(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(t+1,r,!0);if(s.err)return s;var a=s.val,o=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!$r(this.char()))return this.error(S.INVALID_TAG,E(o,this.clonePosition()));var u=this.clonePosition(),l=this.parseTagName();return i!==l?this.error(S.UNMATCHED_CLOSING_TAG,E(u,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Y.tag,value:i,children:a,location:E(n,this.clonePosition())},err:null}:this.error(S.INVALID_TAG,E(o,this.clonePosition())))}else return this.error(S.UNCLOSED_TAG,E(n,this.clonePosition()))}else return this.error(S.INVALID_TAG,E(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&If(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var s=this.tryParseQuote(r);if(s){i+=s;continue}var a=this.tryParseUnquoted(t,r);if(a){i+=a;continue}var o=this.tryParseLeftAngleBracket();if(o){i+=o;continue}break}var u=E(n,this.clonePosition());return{val:{type:Y.literal,value:i,location:u},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Cf(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else{this.bump();break}else r.push(n);this.bump()}return Ur.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),Ur(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(S.EMPTY_ARGUMENT,E(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(S.MALFORMED_ARGUMENT,E(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Y.argument,value:i,location:E(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(S.MALFORMED_ARGUMENT,E(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Gr(this.message,r),i=r+n.length;this.bumpTo(i);var s=this.clonePosition(),a=E(t,s);return{value:n,location:a}},e.prototype.parseArgumentOptions=function(t,r,n,i){var s,a=this.clonePosition(),o=this.parseIdentifierIfPossible().value,u=this.clonePosition();switch(o){case"":return this.error(S.EXPECT_ARGUMENT_TYPE,E(a,u));case"number":case"date":case"time":{this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition(),c=this.parseSimpleArgStyleIfPossible();if(c.err)return c;var m=Nf(c.val);if(m.length===0)return this.error(S.EXPECT_ARGUMENT_STYLE,E(this.clonePosition(),this.clonePosition()));var v=E(h,this.clonePosition());l={style:m,styleLocation:v}}var M=this.tryParseArgumentClose(i);if(M.err)return M;var g=E(i,this.clonePosition());if(l&&Xn(l==null?void 0:l.style,"::",0)){var P=Hf(l.style.slice(2));if(o==="number"){var c=this.parseNumberSkeletonFromString(P,l.styleLocation);return c.err?c:{val:{type:Y.number,value:n,location:g,style:c.val},err:null}}else{if(P.length===0)return this.error(S.EXPECT_DATE_TIME_SKELETON,g);var A=P;this.locale&&(A=gf(P,this.locale));var m={type:Qe.dateTime,pattern:A,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?ff(A):{}},x=o==="date"?Y.date:Y.time;return{val:{type:x,value:n,location:g,style:m},err:null}}}return{val:{type:o==="number"?Y.number:o==="date"?Y.date:Y.time,value:n,location:g,style:(s=l==null?void 0:l.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var H=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(S.EXPECT_SELECT_ARGUMENT_OPTIONS,E(H,O({},H)));this.bumpSpace();var J=this.parseIdentifierIfPossible(),fe=0;if(o!=="select"&&J.value==="offset"){if(!this.bumpIf(":"))return this.error(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,E(this.clonePosition(),this.clonePosition()));this.bumpSpace();var c=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,S.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(c.err)return c;this.bumpSpace(),J=this.parseIdentifierIfPossible(),fe=c.val}var Ae=this.tryParsePluralOrSelectOptions(t,o,r,J);if(Ae.err)return Ae;var M=this.tryParseArgumentClose(i);if(M.err)return M;var ce=E(i,this.clonePosition());return o==="select"?{val:{type:Y.select,value:n,options:qn(Ae.val),location:ce},err:null}:{val:{type:Y.plural,value:n,options:qn(Ae.val),offset:fe,pluralType:o==="plural"?"cardinal":"ordinal",location:ce},err:null}}default:return this.error(S.INVALID_ARGUMENT_TYPE,E(a,u))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(S.EXPECT_ARGUMENT_CLOSING_BRACE,E(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(S.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,E(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=df(t)}catch(i){return this.error(S.INVALID_NUMBER_SKELETON,r)}return{val:{type:Qe.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?yf(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var s,a=!1,o=[],u=new Set,l=i.value,h=i.location;;){if(l.length===0){var c=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var m=this.tryParseDecimalInteger(S.EXPECT_PLURAL_ARGUMENT_SELECTOR,S.INVALID_PLURAL_ARGUMENT_SELECTOR);if(m.err)return m;h=E(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}else break}if(u.has(l))return this.error(r==="select"?S.DUPLICATE_SELECT_ARGUMENT_SELECTOR:S.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);l==="other"&&(a=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:S.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,E(this.clonePosition(),this.clonePosition()));var M=this.parseMessage(t+1,r,n);if(M.err)return M;var g=this.tryParseArgumentClose(v);if(g.err)return g;o.push([l,{value:M.val,location:E(v,this.clonePosition())}]),u.add(l),this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=s.value,h=s.location}return o.length===0?this.error(r==="select"?S.EXPECT_SELECT_ARGUMENT_SELECTOR:S.EXPECT_PLURAL_ARGUMENT_SELECTOR,E(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!a?this.error(S.MISSING_OTHER_CLAUSE,E(this.clonePosition(),this.clonePosition())):{val:o,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var s=!1,a=0;!this.isEOF();){var o=this.char();if(o>=48&&o<=57)s=!0,a=a*10+(o-48),this.bump();else break}var u=E(i,this.clonePosition());return s?(a*=n,Df(a)?{val:a,err:null}:this.error(r,u)):this.error(t,u)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Ds(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return{val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(Xn(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Hs(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function $r(e){return e>=97&&e<=122||e>=65&&e<=90}function Cf(e){return $r(e)||e===47}function If(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Hs(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Rf(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Wr(e){e.forEach(function(t){if(delete t.location,ws(t)||Ss(t))for(var r in t.options)delete t.options[r].location,Wr(t.options[r].value);else gs(t)&&Es(t.style)||(bs(t)||vs(t))&&Br(t.style)?delete t.style.location:xs(t)&&Wr(t.children)})}function Lf(e,t){t===void 0&&(t={}),t=O({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new Af(e,t).parse();if(r.err){var n=SyntaxError(S[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Wr(r.val),r.val}var Ke;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Ke||(Ke={}));var or=function(e){Oe(t,e);function t(r,n,i){var s=e.call(this,r)||this;return s.code=n,s.originalMessage=i,s}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),Qn=function(e){Oe(t,e);function t(r,n,i,s){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Ke.INVALID_VALUE,s)||this}return t}(or),Yf=function(e){Oe(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Ke.INVALID_VALUE,i)||this}return t}(or),Bf=function(e){Oe(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Ke.MISSING_VALUE,n)||this}return t}(or),V;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(V||(V={}));function Ff(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return!n||n.type!==V.literal||r.type!==V.literal?t.push(r):n.value+=r.value,t},[])}function Uf(e){return typeof e=="function"}function Lt(e,t,r,n,i,s,a){if(e.length===1&&jn(e[0]))return[{type:V.literal,value:e[0].value}];for(var o=[],u=0,l=e;u<l.length;u++){var h=l[u];if(jn(h)){o.push({type:V.literal,value:h.value});continue}if(lf(h)){typeof s=="number"&&o.push({type:V.literal,value:r.getNumberFormat(t).format(s)});continue}var c=h.value;if(!(i&&c in i))throw new Bf(c,a);var m=i[c];if(uf(h)){(!m||typeof m=="string"||typeof m=="number")&&(m=typeof m=="string"||typeof m=="number"?String(m):""),o.push({type:typeof m=="string"?V.literal:V.object,value:m});continue}if(bs(h)){var v=typeof h.style=="string"?n.date[h.style]:Br(h.style)?h.style.parsedOptions:void 0;o.push({type:V.literal,value:r.getDateTimeFormat(t,v).format(m)});continue}if(vs(h)){var v=typeof h.style=="string"?n.time[h.style]:Br(h.style)?h.style.parsedOptions:n.time.medium;o.push({type:V.literal,value:r.getDateTimeFormat(t,v).format(m)});continue}if(gs(h)){var v=typeof h.style=="string"?n.number[h.style]:Es(h.style)?h.style.parsedOptions:void 0;v&&v.scale&&(m=m*(v.scale||1)),o.push({type:V.literal,value:r.getNumberFormat(t,v).format(m)});continue}if(xs(h)){var M=h.children,g=h.value,P=i[g];if(!Uf(P))throw new Yf(g,"function",a);var A=Lt(M,t,r,n,i,s),x=P(A.map(function(fe){return fe.value}));Array.isArray(x)||(x=[x]),o.push.apply(o,x.map(function(fe){return{type:typeof fe=="string"?V.literal:V.object,value:fe}}))}if(ws(h)){var H=h.options[m]||h.options.other;if(!H)throw new Qn(h.value,m,Object.keys(h.options),a);o.push.apply(o,Lt(H.value,t,r,n,i));continue}if(Ss(h)){var H=h.options["=".concat(m)];if(!H){if(!Intl.PluralRules)throw new or(`Intl.PluralRules is not available in this environment.
|
|
13
13
|
Try polyfilling it using "@formatjs/intl-pluralrules"
|
|
14
|
-
`,Ke.MISSING_INTL_API,a);var J=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));H=h.options[J]||h.options.other}if(!H)throw new Qn(h.value,m,Object.keys(h.options),a);o.push.apply(o,Lt(H.value,t,r,n,i,m-(h.offset||0)));continue}}return Ff(o)}function Gf(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=O(O({},e[n]),t[n]||{}),r},{})):e}function $f(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Gf(e[n],t[n]),r},O({},e)):e}function xr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Wf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,qe([void 0],r,!1)))},{cache:xr(e.number),strategy:wr.variadic}),getDateTimeFormat:vr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,qe([void 0],r,!1)))},{cache:xr(e.dateTime),strategy:wr.variadic}),getPluralRules:vr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,qe([void 0],r,!1)))},{cache:xr(e.pluralRules),strategy:wr.variadic})}}var jf=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(c,m){return!c.length||m.type!==V.literal||typeof c[c.length-1]!="string"?c.push(m.value):c[c.length-1]+=m.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Lt(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Eh(a,["formatters"]);this.ast=e.__parse(t,O(O({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=$f(e.formats,n),this.formatters=i&&i.formatters||Wf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Lf,e.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"}}},e}();function Vf(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Pe={},zf=(e,t,r)=>r&&(t in Pe||(Pe[t]={}),e in Pe[t]||(Pe[t][e]=r),r),Ns=(e,t)=>{if(t==null)return;if(t in Pe&&e in Pe[t])return Pe[t][e];const r=ur(t);for(let n=0;n<r.length;n++){const i=r[n],s=Xf(i,e);if(s)return zf(e,t,s)}};let vn;const st=ar({});function Zf(e){return vn[e]||null}function As(e){return e in vn}function Xf(e,t){if(!As(e))return null;const r=Zf(e);return Vf(r,t)}function qf(e){if(e==null)return;const t=ur(e);for(let r=0;r<t.length;r++){const n=t[r];if(As(n))return n}}function Cs(e,...t){delete Pe[e],st.update(r=>(r[e]=ef.all([r[e]||{},...t]),r))}it([st],([e])=>Object.keys(e));st.subscribe(e=>vn=e);const Yt={};function Jf(e,t){Yt[e].delete(t),Yt[e].size===0&&delete Yt[e]}function Is(e){return Yt[e]}function Qf(e){return ur(e).map(t=>{const r=Is(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function jr(e){return e==null?!1:ur(e).some(t=>{var r;return(r=Is(t))==null?void 0:r.size})}function Kf(e,t){return Promise.all(t.map(n=>(Jf(e,n),n().then(i=>i.default||i)))).then(n=>Cs(e,...n))}const ht={};function Rs(e){if(!jr(e))return e in ht?ht[e]:Promise.resolve();const t=Qf(e);return ht[e]=Promise.all(t.map(([r,n])=>Kf(r,n))).then(()=>{if(jr(e))return Rs(e);delete ht[e]}),ht[e]}const ec={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"}}},tc={fallbackLocale:null,loadingDelay:200,formats:ec,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},rc=tc;function et(){return rc}const Er=ar(!1);var nc=Object.defineProperty,ic=Object.defineProperties,sc=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,ac=Object.prototype.hasOwnProperty,oc=Object.prototype.propertyIsEnumerable,ei=(e,t,r)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc=(e,t)=>{for(var r in t||(t={}))ac.call(t,r)&&ei(e,r,t[r]);if(Kn)for(var r of Kn(t))oc.call(t,r)&&ei(e,r,t[r]);return e},lc=(e,t)=>ic(e,sc(t));let Vr;const Vt=ar(null);function ti(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ur(e,t=et().fallbackLocale){const r=ti(e);return t?[...new Set([...r,...ti(t)])]:r}function Be(){return Vr!=null?Vr:void 0}Vt.subscribe(e=>{Vr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const hc=e=>{if(e&&qf(e)&&jr(e)){const{loadingDelay:t}=et();let r;return typeof window!="undefined"&&Be()!=null&&t?r=window.setTimeout(()=>Er.set(!0),t):Er.set(!0),Rs(e).then(()=>{Vt.set(e)}).finally(()=>{clearTimeout(r),Er.set(!1)})}return Vt.set(e)},Ne=lc(uc({},Vt),{set:hc}),lr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var fc=Object.defineProperty,zt=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,ri=(e,t,r)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))Ls.call(t,r)&&ri(e,r,t[r]);if(zt)for(var r of zt(t))Ys.call(t,r)&&ri(e,r,t[r]);return e},at=(e,t)=>{var r={};for(var n in e)Ls.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zt)for(var n of zt(e))t.indexOf(n)<0&&Ys.call(e,n)&&(r[n]=e[n]);return r};const bt=(e,t)=>{const{formats:r}=et();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cc=lr(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=bt("number",n)),new Intl.NumberFormat(r,i)}),dc=lr(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=bt("date",n):Object.keys(i).length===0&&(i=bt("date","short")),new Intl.DateTimeFormat(r,i)}),mc=lr(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=bt("time",n):Object.keys(i).length===0&&(i=bt("time","short")),new Intl.DateTimeFormat(r,i)}),pc=(e={})=>{var t=e,{locale:r=Be()}=t,n=at(t,["locale"]);return cc(wn({locale:r},n))},_c=(e={})=>{var t=e,{locale:r=Be()}=t,n=at(t,["locale"]);return dc(wn({locale:r},n))},yc=(e={})=>{var t=e,{locale:r=Be()}=t,n=at(t,["locale"]);return mc(wn({locale:r},n))},gc=lr((e,t=Be())=>new jf(e,t,et().formats,{ignoreTag:et().ignoreTag})),bc=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Be(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Ns(e,u);if(!h)h=(s=(i=(n=(r=et()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=gc(h,u).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},vc=(e,t)=>yc(t).format(e),wc=(e,t)=>_c(t).format(e),Sc=(e,t)=>pc(t).format(e),xc=(e,t=Be())=>Ns(e,t),Ec=it([Ne,st],()=>bc);it([Ne],()=>vc);it([Ne],()=>wc);it([Ne],()=>Sc);it([Ne,st],()=>xc);window.emWidgets={topic:Yh};const ni=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Tc({withLocale:e,translations:t}){Ne.subscribe(r=>{r==null&&(st.set(t),Ne.set(e))})}function ii(e,t){Cs(e,t)}function si(e){Ne.set(e)}const ai={en:{loading:"Loading, please wait ...",activePeriod:"From {startdate} Till {enddate}",noTournaments:"No tournaments found"},hr:{loading:"Učitavanje, molimo pričekajte ...",activePeriod:"Od {startdate} do {enddate}",noTournaments:"No tournaments found"},"zh-hk":{loading:"加載請稍候 ...",activePeriod:"從 {startdate} 到 {enddate}",noTournaments:"No tournaments found"},fr:{loading:"Chargement,veuillez patienter ...",activePeriod:"De la {startdate} à la {enddate}",noTournaments:"No tournaments found"},ro:{loading:"Se încarcă ...",activePeriod:"De la {startdate} până la {enddate}",noTournaments:"No tournaments found"},tr:{loading:"Yükleniyor lütfen bekleyin ...",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",noTournaments:"Turnuva bulunamadı"},el:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",activePeriod:"From {startdate} till {enddate}",noTournaments:"No tournaments found"},es:{loading:"Cargando…",activePeriod:"Desde {startdate} Hasta {enddate}",noTournaments:"No tournaments found"},hu:{loading:"Betöltés, kérjük várjon...",activePeriod:"{startdate} -tól {enddate} -ig",noTournaments:"No tournaments found"},pt:{loading:"Carregando, por favor espere ...",activePeriod:"De {startdate} Até {enddate}",noTournaments:"No tournaments found"},"en-us":{loading:"Loading, please wait ...",activePeriod:"From {startdate} Till {enddate}",noTournaments:"No tournaments found"}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsRank-CLWrhbm6.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}function Mc(e){fi(e,"svelte-tx5qze",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentContentDetails{display:flex;flex-direction:column;gap:20px}.Thumbnail{display:flex;gap:20px}.CardImg{border-radius:5px;background:url("");background-repeat:no-repeat;background-position:center;background-size:auto;width:85px;height:60px}.CardImg.CardImgFinished{filter:grayscale(1)}.CardImg.Mobile{width:85px;height:60px;display:inline-block;margin-bottom:10px;margin-right:10px;font-size:12px;line-height:15px}')}function Oc(e){let t,r;function n(a,o){if(a[7])return Pc;if(!a[9])return Dc}let i=n(e),s=i&&i(e);return{c(){t=X("div"),r=X("div"),s&&s.c(),C(r,"class","TournamentContentDetails"),C(t,"class","TournamentsPage")},m(a,o){K(a,t,o),ae(t,r),s&&s.m(r,null),e[23](t)},p(a,o){i===(i=n(a))&&s?s.p(a,o):(s&&s.d(1),s=i&&i(a),s&&(s.c(),s.m(r,null)))},d(a){a&&q(t),s&&s.d(),e[23](null)}}}function kc(e){let t,r=e[11]("loading")+"",n;return{c(){t=X("p"),n=Le(r),C(t,"class","LoadingMessage")},m(i,s){K(i,t,s),ae(t,n)},p(i,s){s[0]&2048&&r!==(r=i[11]("loading")+"")&&wt(n,r)},d(i){i&&q(t)}}}function Dc(e){let t,r=e[11]("noTournaments")+"",n;return{c(){t=X("p"),n=Le(r),C(t,"class","LoadingMessage")},m(i,s){K(i,t,s),ae(t,n)},p(i,s){s[0]&2048&&r!==(r=i[11]("noTournaments")+"")&&wt(n,r)},d(i){i&&q(t)}}}function Pc(e){let t,r,n,i,s=e[7].nameOrTitle+"",a,o,u,l,h,c,m;function v(x,H){return x[7].thumbnail?Nc:Hc}let M=v(e),g=M(e),P=e[7].startTime&&oi(e),A=e[8]&&ui(e);return{c(){t=X("div"),g.c(),r=Ht(),n=X("div"),i=X("div"),a=Le(s),o=Ht(),u=X("div"),P&&P.c(),l=Ht(),A&&A.c(),h=ci(),C(i,"class","Title"),C(n,"class","MobileRight"),C(t,"class","Thumbnail")},m(x,H){K(x,t,H),g.m(t,null),ae(t,r),ae(t,n),ae(n,i),ae(i,a),ae(n,o),ae(n,u),P&&P.m(u,null),K(x,l,H),A&&A.m(x,H),K(x,h,H),c||(m=aa(t,"click",e[22]),c=!0)},p(x,H){M===(M=v(x))&&g?g.p(x,H):(g.d(1),g=M(x),g&&(g.c(),g.m(t,r))),H[0]&128&&s!==(s=x[7].nameOrTitle+"")&&wt(a,s),x[7].startTime?P?P.p(x,H):(P=oi(x),P.c(),P.m(u,null)):P&&(P.d(1),P=null),x[8]?A?A.p(x,H):(A=ui(x),A.c(),A.m(h.parentNode,h)):A&&(A.d(1),A=null)},d(x){x&&(q(t),q(l),q(h)),g.d(),P&&P.d(),A&&A.d(x),c=!1,m()}}}function Hc(e){let t,r,n,i;return{c(){t=X("img"),C(t,"class",r="CardImg "+(e[7].state=="Closing"||e[7].state=="Closed"?"CardImgFinished":"")),Bt(t.src,n="https://i.stack.imgur.com/y9DpT.jpg")||C(t,"src",n),C(t,"width","65px"),C(t,"height","40px"),C(t,"title",i=e[7].nameOrTitle)},m(s,a){K(s,t,a)},p(s,a){a[0]&128&&r!==(r="CardImg "+(s[7].state=="Closing"||s[7].state=="Closed"?"CardImgFinished":""))&&C(t,"class",r),a[0]&128&&i!==(i=s[7].nameOrTitle)&&C(t,"title",i)},d(s){s&&q(t)}}}function Nc(e){let t,r,n,i;return{c(){t=X("img"),C(t,"class",r="Mobile CardImg "+(e[7].state=="Closing"||e[7].state=="Closed"?"CardImgFinished":"")),Bt(t.src,n=e[7].thumbnail)||C(t,"src",n),C(t,"width","65px"),C(t,"height","40px"),C(t,"title",i=e[7].nameOrTitle)},m(s,a){K(s,t,a)},p(s,a){a[0]&128&&r!==(r="Mobile CardImg "+(s[7].state=="Closing"||s[7].state=="Closed"?"CardImgFinished":""))&&C(t,"class",r),a[0]&128&&!Bt(t.src,n=s[7].thumbnail)&&C(t,"src",n),a[0]&128&&i!==(i=s[7].nameOrTitle)&&C(t,"title",i)},d(s){s&&q(t)}}}function oi(e){let t=e[11]("activePeriod",{values:{startdate:d(e[7].startTime).format("DD/MM/YYYY HH:mm"),enddate:d(e[7].endTime).format("DD/MM/YYYY HH:mm")}})+"",r;return{c(){r=Le(t)},m(n,i){K(n,r,i)},p(n,i){i[0]&2176&&t!==(t=n[11]("activePeriod",{values:{startdate:d(n[7].startTime).format("DD/MM/YYYY HH:mm"),enddate:d(n[7].endTime).format("DD/MM/YYYY HH:mm")}})+"")&&wt(r,t)},d(n){n&&q(r)}}}function ui(e){let t,r,n,i,s,a;return{c(){var o,u,l,h,c;t=X("casino-tournaments-rank"),$(t,"userrank",r=((u=(o=e[8])==null?void 0:o.leaderBoard)==null?void 0:u.rank)||"-"),$(t,"overallrank",n=(l=e[8])==null?void 0:l.endRank),$(t,"prize",i=((c=(h=e[8])==null?void 0:h.leaderBoard)==null?void 0:c.prizeName)||"-"),$(t,"showoverallrank",s=e[10].toString()),$(t,"tournamentid",e[0]),$(t,"clientstyling",a=e[2]||e[12]),$(t,"clientstylingurl",e[3]),$(t,"translationurl",e[1])},m(o,u){K(o,t,u)},p(o,u){var l,h,c,m,v;u[0]&256&&r!==(r=((h=(l=o[8])==null?void 0:l.leaderBoard)==null?void 0:h.rank)||"-")&&$(t,"userrank",r),u[0]&256&&n!==(n=(c=o[8])==null?void 0:c.endRank)&&$(t,"overallrank",n),u[0]&256&&i!==(i=((v=(m=o[8])==null?void 0:m.leaderBoard)==null?void 0:v.prizeName)||"-")&&$(t,"prize",i),u[0]&1024&&s!==(s=o[10].toString())&&$(t,"showoverallrank",s),u[0]&1&&$(t,"tournamentid",o[0]),u[0]&4&&a!==(a=o[2]||o[12])&&$(t,"clientstyling",a),u[0]&8&&$(t,"clientstylingurl",o[3]),u[0]&2&&$(t,"translationurl",o[1])},d(o){o&&q(t)}}}function Ac(e){let t;function r(s,a){return s[5]||s[6]?kc:Oc}let n=r(e),i=n(e);return{c(){i.c(),t=ci()},m(s,a){i.m(s,a),K(s,t,a)},p(s,a){n===(n=r(s))&&i?i.p(s,a):(i.d(1),i=n(s),i&&(i.c(),i.m(t.parentNode,t)))},i:ne,o:ne,d(s){s&&q(t),i.d(s)}}}function Cc(e,t,r){let n,i;na(e,Ec,y=>r(11,i=y));let{session:s=""}=t,{tourid:a=""}=t,{endpoint:o=""}=t,{lang:u=""}=t,{namemask:l=""}=t,{showunqualifiedplayer:h="true"}=t,{minscore:c=""}=t,{translationurl:m=""}=t,{limit:v="30"}=t,{clientstyling:M=""}=t,{clientstylingurl:g=""}=t,P=!1,A=!1,x,H,J,fe,Ae=window.navigator.userAgent,ce;const Fs=`
|
|
14
|
+
`,Ke.MISSING_INTL_API,a);var J=r.getPluralRules(t,{type:h.pluralType}).select(m-(h.offset||0));H=h.options[J]||h.options.other}if(!H)throw new Qn(h.value,m,Object.keys(h.options),a);o.push.apply(o,Lt(H.value,t,r,n,i,m-(h.offset||0)));continue}}return Ff(o)}function Gf(e,t){return t?O(O(O({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=O(O({},e[n]),t[n]||{}),r},{})):e}function $f(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Gf(e[n],t[n]),r},O({},e)):e}function xr(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,r){e[t]=r}}}}}function Wf(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:vr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,qe([void 0],r,!1)))},{cache:xr(e.number),strategy:wr.variadic}),getDateTimeFormat:vr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,qe([void 0],r,!1)))},{cache:xr(e.dateTime),strategy:wr.variadic}),getPluralRules:vr(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,qe([void 0],r,!1)))},{cache:xr(e.pluralRules),strategy:wr.variadic})}}var jf=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(u){var l=s.formatToParts(u);if(l.length===1)return l[0].value;var h=l.reduce(function(c,m){return!c.length||m.type!==V.literal||typeof c[c.length-1]!="string"?c.push(m.value):c[c.length-1]+=m.value,c},[]);return h.length<=1?h[0]||"":h},this.formatToParts=function(u){return Lt(s.ast,s.locales,s.formatters,s.formats,u,void 0,s.message)},this.resolvedOptions=function(){var u;return{locale:((u=s.resolvedLocale)===null||u===void 0?void 0:u.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var a=i||{};a.formatters;var o=Eh(a,["formatters"]);this.ast=e.__parse(t,O(O({},o),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=$f(e.formats,n),this.formatters=i&&i.formatters||Wf(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=Lf,e.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"}}},e}();function Vf(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const s=r.slice(i,r.length).join(".");if(s in n){n=n[s];break}}n=n[r[i]]}else n=void 0;return n}const Pe={},zf=(e,t,r)=>r&&(t in Pe||(Pe[t]={}),e in Pe[t]||(Pe[t][e]=r),r),Ns=(e,t)=>{if(t==null)return;if(t in Pe&&e in Pe[t])return Pe[t][e];const r=ur(t);for(let n=0;n<r.length;n++){const i=r[n],s=Xf(i,e);if(s)return zf(e,t,s)}};let vn;const st=ar({});function Zf(e){return vn[e]||null}function As(e){return e in vn}function Xf(e,t){if(!As(e))return null;const r=Zf(e);return Vf(r,t)}function qf(e){if(e==null)return;const t=ur(e);for(let r=0;r<t.length;r++){const n=t[r];if(As(n))return n}}function Cs(e,...t){delete Pe[e],st.update(r=>(r[e]=ef.all([r[e]||{},...t]),r))}it([st],([e])=>Object.keys(e));st.subscribe(e=>vn=e);const Yt={};function Jf(e,t){Yt[e].delete(t),Yt[e].size===0&&delete Yt[e]}function Is(e){return Yt[e]}function Qf(e){return ur(e).map(t=>{const r=Is(t);return[t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function jr(e){return e==null?!1:ur(e).some(t=>{var r;return(r=Is(t))==null?void 0:r.size})}function Kf(e,t){return Promise.all(t.map(n=>(Jf(e,n),n().then(i=>i.default||i)))).then(n=>Cs(e,...n))}const ht={};function Rs(e){if(!jr(e))return e in ht?ht[e]:Promise.resolve();const t=Qf(e);return ht[e]=Promise.all(t.map(([r,n])=>Kf(r,n))).then(()=>{if(jr(e))return Rs(e);delete ht[e]}),ht[e]}const ec={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"}}},tc={fallbackLocale:null,loadingDelay:200,formats:ec,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},rc=tc;function et(){return rc}const Er=ar(!1);var nc=Object.defineProperty,ic=Object.defineProperties,sc=Object.getOwnPropertyDescriptors,Kn=Object.getOwnPropertySymbols,ac=Object.prototype.hasOwnProperty,oc=Object.prototype.propertyIsEnumerable,ei=(e,t,r)=>t in e?nc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,uc=(e,t)=>{for(var r in t||(t={}))ac.call(t,r)&&ei(e,r,t[r]);if(Kn)for(var r of Kn(t))oc.call(t,r)&&ei(e,r,t[r]);return e},lc=(e,t)=>ic(e,sc(t));let Vr;const Vt=ar(null);function ti(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function ur(e,t=et().fallbackLocale){const r=ti(e);return t?[...new Set([...r,...ti(t)])]:r}function Be(){return Vr!=null?Vr:void 0}Vt.subscribe(e=>{Vr=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e)});const hc=e=>{if(e&&qf(e)&&jr(e)){const{loadingDelay:t}=et();let r;return typeof window!="undefined"&&Be()!=null&&t?r=window.setTimeout(()=>Er.set(!0),t):Er.set(!0),Rs(e).then(()=>{Vt.set(e)}).finally(()=>{clearTimeout(r),Er.set(!1)})}return Vt.set(e)},Ne=lc(uc({},Vt),{set:hc}),lr=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var fc=Object.defineProperty,zt=Object.getOwnPropertySymbols,Ls=Object.prototype.hasOwnProperty,Ys=Object.prototype.propertyIsEnumerable,ri=(e,t,r)=>t in e?fc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wn=(e,t)=>{for(var r in t||(t={}))Ls.call(t,r)&&ri(e,r,t[r]);if(zt)for(var r of zt(t))Ys.call(t,r)&&ri(e,r,t[r]);return e},at=(e,t)=>{var r={};for(var n in e)Ls.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zt)for(var n of zt(e))t.indexOf(n)<0&&Ys.call(e,n)&&(r[n]=e[n]);return r};const bt=(e,t)=>{const{formats:r}=et();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},cc=lr(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=bt("number",n)),new Intl.NumberFormat(r,i)}),dc=lr(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=bt("date",n):Object.keys(i).length===0&&(i=bt("date","short")),new Intl.DateTimeFormat(r,i)}),mc=lr(e=>{var t=e,{locale:r,format:n}=t,i=at(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=bt("time",n):Object.keys(i).length===0&&(i=bt("time","short")),new Intl.DateTimeFormat(r,i)}),pc=(e={})=>{var t=e,{locale:r=Be()}=t,n=at(t,["locale"]);return cc(wn({locale:r},n))},_c=(e={})=>{var t=e,{locale:r=Be()}=t,n=at(t,["locale"]);return dc(wn({locale:r},n))},yc=(e={})=>{var t=e,{locale:r=Be()}=t,n=at(t,["locale"]);return mc(wn({locale:r},n))},gc=lr((e,t=Be())=>new jf(e,t,et().formats,{ignoreTag:et().ignoreTag})),bc=(e,t={})=>{var r,n,i,s;let a=t;typeof e=="object"&&(a=e,e=a.id);const{values:o,locale:u=Be(),default:l}=a;if(u==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let h=Ns(e,u);if(!h)h=(s=(i=(n=(r=et()).handleMissingMessage)==null?void 0:n.call(r,{locale:u,id:e,defaultValue:l}))!=null?i:l)!=null?s:e;else if(typeof h!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof h}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),h;if(!o)return h;let c=h;try{c=gc(h,u).format(o)}catch(m){m instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,m.message)}return c},vc=(e,t)=>yc(t).format(e),wc=(e,t)=>_c(t).format(e),Sc=(e,t)=>pc(t).format(e),xc=(e,t=Be())=>Ns(e,t),Ec=it([Ne,st],()=>bc);it([Ne],()=>vc);it([Ne],()=>wc);it([Ne],()=>Sc);it([Ne,st],()=>xc);window.emWidgets={topic:Yh};const ni=e=>e.toLowerCase().match(/android/i)?"Android":e.toLowerCase().match(/iphone/i)?"iPhone":e.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC";function Tc({withLocale:e,translations:t}){Ne.subscribe(r=>{r==null&&(st.set(t),Ne.set(e))})}function ii(e,t){Cs(e,t)}function si(e){Ne.set(e)}const ai={en:{loading:"Loading, please wait ...",activePeriod:"From {startdate} Till {enddate}",noTournaments:"No tournaments found"},hr:{loading:"Učitavanje, molimo pričekajte ...",activePeriod:"Od {startdate} do {enddate}",noTournaments:"No tournaments found"},"zh-hk":{loading:"加載請稍候 ...",activePeriod:"從 {startdate} 到 {enddate}",noTournaments:"No tournaments found"},fr:{loading:"Chargement,veuillez patienter ...",activePeriod:"De la {startdate} à la {enddate}",noTournaments:"No tournaments found"},ro:{loading:"Se încarcă ...",activePeriod:"De la {startdate} până la {enddate}",noTournaments:"No tournaments found"},tr:{loading:"Yükleniyor lütfen bekleyin ...",activePeriod:"Başlangıç {startdate} Bitiş {enddate}",noTournaments:"Turnuva bulunamadı"},el:{loading:"Φορτώνει, παρακαλούμε περιμένετε…",activePeriod:"From {startdate} till {enddate}",noTournaments:"No tournaments found"},es:{loading:"Cargando…",activePeriod:"Desde {startdate} Hasta {enddate}",noTournaments:"No tournaments found"},hu:{loading:"Betöltés, kérjük várjon...",activePeriod:"{startdate} -tól {enddate} -ig",noTournaments:"No tournaments found"},pt:{loading:"Carregando, por favor espere ...",activePeriod:"De {startdate} Até {enddate}",noTournaments:"No tournaments found"},"en-us":{loading:"Loading, please wait ...",activePeriod:"From {startdate} Till {enddate}",noTournaments:"No tournaments found"}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>require("./CasinoTournamentsRank-B_psih-Z.cjs")).then(({default:t})=>{!customElements.get("casino-tournaments-rank")&&customElements.define("casino-tournaments-rank",t.element)})}function Mc(e){fi(e,"svelte-tx5qze",'*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.TournamentContentDetails{display:flex;flex-direction:column;gap:20px}.Thumbnail{display:flex;gap:20px}.CardImg{border-radius:5px;background:url("");background-repeat:no-repeat;background-position:center;background-size:auto;width:85px;height:60px}.CardImg.CardImgFinished{filter:grayscale(1)}.CardImg.Mobile{width:85px;height:60px;display:inline-block;margin-bottom:10px;margin-right:10px;font-size:12px;line-height:15px}')}function Oc(e){let t,r;function n(a,o){if(a[7])return Pc;if(!a[9])return Dc}let i=n(e),s=i&&i(e);return{c(){t=X("div"),r=X("div"),s&&s.c(),C(r,"class","TournamentContentDetails"),C(t,"class","TournamentsPage")},m(a,o){K(a,t,o),ae(t,r),s&&s.m(r,null),e[23](t)},p(a,o){i===(i=n(a))&&s?s.p(a,o):(s&&s.d(1),s=i&&i(a),s&&(s.c(),s.m(r,null)))},d(a){a&&q(t),s&&s.d(),e[23](null)}}}function kc(e){let t,r=e[11]("loading")+"",n;return{c(){t=X("p"),n=Le(r),C(t,"class","LoadingMessage")},m(i,s){K(i,t,s),ae(t,n)},p(i,s){s[0]&2048&&r!==(r=i[11]("loading")+"")&&wt(n,r)},d(i){i&&q(t)}}}function Dc(e){let t,r=e[11]("noTournaments")+"",n;return{c(){t=X("p"),n=Le(r),C(t,"class","LoadingMessage")},m(i,s){K(i,t,s),ae(t,n)},p(i,s){s[0]&2048&&r!==(r=i[11]("noTournaments")+"")&&wt(n,r)},d(i){i&&q(t)}}}function Pc(e){let t,r,n,i,s=e[7].nameOrTitle+"",a,o,u,l,h,c,m;function v(x,H){return x[7].thumbnail?Nc:Hc}let M=v(e),g=M(e),P=e[7].startTime&&oi(e),A=e[8]&&ui(e);return{c(){t=X("div"),g.c(),r=Ht(),n=X("div"),i=X("div"),a=Le(s),o=Ht(),u=X("div"),P&&P.c(),l=Ht(),A&&A.c(),h=ci(),C(i,"class","Title"),C(n,"class","MobileRight"),C(t,"class","Thumbnail")},m(x,H){K(x,t,H),g.m(t,null),ae(t,r),ae(t,n),ae(n,i),ae(i,a),ae(n,o),ae(n,u),P&&P.m(u,null),K(x,l,H),A&&A.m(x,H),K(x,h,H),c||(m=aa(t,"click",e[22]),c=!0)},p(x,H){M===(M=v(x))&&g?g.p(x,H):(g.d(1),g=M(x),g&&(g.c(),g.m(t,r))),H[0]&128&&s!==(s=x[7].nameOrTitle+"")&&wt(a,s),x[7].startTime?P?P.p(x,H):(P=oi(x),P.c(),P.m(u,null)):P&&(P.d(1),P=null),x[8]?A?A.p(x,H):(A=ui(x),A.c(),A.m(h.parentNode,h)):A&&(A.d(1),A=null)},d(x){x&&(q(t),q(l),q(h)),g.d(),P&&P.d(),A&&A.d(x),c=!1,m()}}}function Hc(e){let t,r,n,i;return{c(){t=X("img"),C(t,"class",r="CardImg "+(e[7].state=="Closing"||e[7].state=="Closed"?"CardImgFinished":"")),Bt(t.src,n="https://i.stack.imgur.com/y9DpT.jpg")||C(t,"src",n),C(t,"width","65px"),C(t,"height","40px"),C(t,"title",i=e[7].nameOrTitle)},m(s,a){K(s,t,a)},p(s,a){a[0]&128&&r!==(r="CardImg "+(s[7].state=="Closing"||s[7].state=="Closed"?"CardImgFinished":""))&&C(t,"class",r),a[0]&128&&i!==(i=s[7].nameOrTitle)&&C(t,"title",i)},d(s){s&&q(t)}}}function Nc(e){let t,r,n,i;return{c(){t=X("img"),C(t,"class",r="Mobile CardImg "+(e[7].state=="Closing"||e[7].state=="Closed"?"CardImgFinished":"")),Bt(t.src,n=e[7].thumbnail)||C(t,"src",n),C(t,"width","65px"),C(t,"height","40px"),C(t,"title",i=e[7].nameOrTitle)},m(s,a){K(s,t,a)},p(s,a){a[0]&128&&r!==(r="Mobile CardImg "+(s[7].state=="Closing"||s[7].state=="Closed"?"CardImgFinished":""))&&C(t,"class",r),a[0]&128&&!Bt(t.src,n=s[7].thumbnail)&&C(t,"src",n),a[0]&128&&i!==(i=s[7].nameOrTitle)&&C(t,"title",i)},d(s){s&&q(t)}}}function oi(e){let t=e[11]("activePeriod",{values:{startdate:d(e[7].startTime).format("DD/MM/YYYY HH:mm"),enddate:d(e[7].endTime).format("DD/MM/YYYY HH:mm")}})+"",r;return{c(){r=Le(t)},m(n,i){K(n,r,i)},p(n,i){i[0]&2176&&t!==(t=n[11]("activePeriod",{values:{startdate:d(n[7].startTime).format("DD/MM/YYYY HH:mm"),enddate:d(n[7].endTime).format("DD/MM/YYYY HH:mm")}})+"")&&wt(r,t)},d(n){n&&q(r)}}}function ui(e){let t,r,n,i,s,a;return{c(){var o,u,l,h,c;t=X("casino-tournaments-rank"),$(t,"userrank",r=((u=(o=e[8])==null?void 0:o.leaderBoard)==null?void 0:u.rank)||"-"),$(t,"overallrank",n=(l=e[8])==null?void 0:l.endRank),$(t,"prize",i=((c=(h=e[8])==null?void 0:h.leaderBoard)==null?void 0:c.prizeName)||"-"),$(t,"showoverallrank",s=e[10].toString()),$(t,"tournamentid",e[0]),$(t,"clientstyling",a=e[2]||e[12]),$(t,"clientstylingurl",e[3]),$(t,"translationurl",e[1])},m(o,u){K(o,t,u)},p(o,u){var l,h,c,m,v;u[0]&256&&r!==(r=((h=(l=o[8])==null?void 0:l.leaderBoard)==null?void 0:h.rank)||"-")&&$(t,"userrank",r),u[0]&256&&n!==(n=(c=o[8])==null?void 0:c.endRank)&&$(t,"overallrank",n),u[0]&256&&i!==(i=((v=(m=o[8])==null?void 0:m.leaderBoard)==null?void 0:v.prizeName)||"-")&&$(t,"prize",i),u[0]&1024&&s!==(s=o[10].toString())&&$(t,"showoverallrank",s),u[0]&1&&$(t,"tournamentid",o[0]),u[0]&4&&a!==(a=o[2]||o[12])&&$(t,"clientstyling",a),u[0]&8&&$(t,"clientstylingurl",o[3]),u[0]&2&&$(t,"translationurl",o[1])},d(o){o&&q(t)}}}function Ac(e){let t;function r(s,a){return s[5]||s[6]?kc:Oc}let n=r(e),i=n(e);return{c(){i.c(),t=ci()},m(s,a){i.m(s,a),K(s,t,a)},p(s,a){n===(n=r(s))&&i?i.p(s,a):(i.d(1),i=n(s),i&&(i.c(),i.m(t.parentNode,t)))},i:ne,o:ne,d(s){s&&q(t),i.d(s)}}}function Cc(e,t,r){let n,i;na(e,Ec,y=>r(11,i=y));let{session:s=""}=t,{tourid:a=""}=t,{endpoint:o=""}=t,{lang:u=""}=t,{namemask:l=""}=t,{showunqualifiedplayer:h="true"}=t,{minscore:c=""}=t,{translationurl:m=""}=t,{limit:v="30"}=t,{clientstyling:M=""}=t,{clientstylingurl:g=""}=t,P=!1,A=!1,x,H,J,fe,Ae=window.navigator.userAgent,ce;const Fs=`
|
|
15
15
|
.RankSec, .PrizeSec {
|
|
16
16
|
background-color: var(--emw--color-background-secondary, #1d3707);
|
|
17
17
|
border: solid 1px var(--emw--color-primary-variant, #132504);
|
package/components/{CasinoTournamentsRank-CLWrhbm6.cjs → CasinoTournamentsRank-B_psih-Z.cjs}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-CGESeJx0.cjs"),H="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",M="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function D(a){e.append_styles(a,"svelte-1njm5xr",".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function U(a){let t;return{c(){t=e.element("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,g){e.insert(i,t,g)},d(i){i&&e.detach(t)}}}function I(a){let t;return{c(){t=e.element("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,g){e.insert(i,t,g)},d(i){i&&e.detach(t)}}}function q(a){let t,i,g,h,x,m=a[7]()+"",z,s,d,T,p,y,r,w,k,b,u,C,v,f,R,S,A,c=a[2]=="true"&&U(),o=a[2]=="true"&&I();return{c(){t=e.element("div"),i=e.element("div"),c&&c.c(),g=e.space(),h=e.element("span"),x=e.text(a[1]),z=e.text(m),s=e.space(),d=e.element("img"),y=e.space(),r=e.element("img"),b=e.space(),u=e.element("div"),o&&o.c(),C=e.space(),v=e.element("span"),f=e.text(a[0]),e.attr(d,"part","Rank_Arror_UP"),e.attr(d,"alt","Rank Up"),e.src_url_equal(d.src,T=H)||e.attr(d,"src",T),e.attr(d,"width","20"),e.attr(d,"height","20"),e.attr(d,"class",p="svg Arrow Up "+(a[5]&&a[6]?"Show":"Hidden")),e.attr(r,"part","Rank_Arror_Down"),e.attr(r,"alt","Rank Down"),e.src_url_equal(r.src,w=M)||e.attr(r,"src",w),e.attr(r,"width","10"),e.attr(r,"height","10"),e.attr(r,"class",k="svg Arrow Down "+(a[5]&&!a[6]?"Show":"Hidden")),e.attr(h,"class","RankInfo"),e.attr(h,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(v,"class","RankInfo UserPrize"),e.attr(v,"part","PrizeText"),e.attr(u,"class",R=a[3]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",S=a[3]+" casino-tournaments-rank"),e.attr(t,"part",A=a[3]+" casino-tournaments-rank")},m(l,n){e.insert(l,t,n),e.append(t,i),c&&c.m(i,null),e.append(i,g),e.append(i,h),e.append(h,x),e.append(h,z),e.append(h,s),e.append(h,d),e.append(h,y),e.append(h,r),e.append(t,b),e.append(t,u),o&&o.m(u,null),e.append(u,C),e.append(u,v),e.append(v,f),a[14](t)},p(l,[n]){l[2]=="true"?c||(c=U(),c.c(),c.m(i,g)):c&&(c.d(1),c=null),n&2&&e.set_data(x,l[1]),n&96&&p!==(p="svg Arrow Up "+(l[5]&&l[6]?"Show":"Hidden"))&&e.attr(d,"class",p),n&96&&k!==(k="svg Arrow Down "+(l[5]&&!l[6]?"Show":"Hidden"))&&e.attr(r,"class",k),l[2]=="true"?o||(o=I(),o.c(),o.m(u,C)):o&&(o.d(1),o=null),n&1&&e.set_data(f,l[0]),n&8&&R!==(R=l[3]+" PrizeSec")&&e.attr(u,"class",R),n&8&&S!==(S=l[3]+" casino-tournaments-rank")&&e.attr(t,"class",S),n&8&&A!==(A=l[3]+" casino-tournaments-rank")&&e.attr(t,"part",A)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),c&&c.d(),o&&o.d(),a[14](null)}}}function B(a,t,i){let{rankprefix:g="#"}=t,{showicon:h="true"}=t,{tournamentid:x=""}=t,{overallrank:m="0"}=t,{showoverallrank:z="true"}=t,{userrank:s="0"}=t,{prize:d="PrizeName"}=t,{displayin:T="row"}=t,{clientstyling:p=""}=t,{clientstylingurl:y=""}=t,r,w,k=!1,b=!0,u,C,v,f;const R=n=>{n.data&&n.data.type==`TournamentRankInfo_${x}`&&S(n.data.rankInfo)},S=n=>{let P=_=>{i(8,s=_.rank),i(9,m=_.overallRank),i(0,d=_.prize)};if(!f){f=w,P(n);return}w&&(i(5,k=f!=n.rank),i(6,b=f>n.rank),u=new Date().getTime(),v=setTimeout(()=>{C=new Date().getTime(),(C-u)/1e3>4&&i(5,k=!1),f=w},5e3),P(n))},A=()=>{let n=document.createElement("style");n.innerHTML=p,r.appendChild(n)},c=()=>{let n=new URL(y),P=document.createElement("style");fetch(n.href).then(_=>_.text()).then(_=>{P.innerHTML=_,setTimeout(()=>{r.appendChild(P)},1),setTimeout(()=>{},500)})},o=()=>z=="true"?`${+m==0?"-":s||"-"}/${+m==0?"-":m}`:s;e.onMount(()=>(w=s==null?void 0:parseInt(s),f=w,i(8,s=s==null?"-":s),window.addEventListener("message",R,!0),()=>{window.removeEventListener("message",R),clearTimeout(v)}));function l(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,i(4,r)})}return a.$$set=n=>{"rankprefix"in n&&i(1,g=n.rankprefix),"showicon"in n&&i(2,h=n.showicon),"tournamentid"in n&&i(10,x=n.tournamentid),"overallrank"in n&&i(9,m=n.overallrank),"showoverallrank"in n&&i(11,z=n.showoverallrank),"userrank"in n&&i(8,s=n.userrank),"prize"in n&&i(0,d=n.prize),"displayin"in n&&i(3,T=n.displayin),"clientstyling"in n&&i(12,p=n.clientstyling),"clientstylingurl"in n&&i(13,y=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&4112&&r&&p&&A(),a.$$.dirty&8208&&r&&y&&c(),a.$$.dirty&256&&(w=parseInt(s))},[d,g,h,T,r,k,b,o,s,m,x,z,p,y,l]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,B,q,e.safe_not_equal,{rankprefix:1,showicon:2,tournamentid:10,overallrank:9,showoverallrank:11,userrank:8,prize:0,displayin:3,clientstyling:12,clientstylingurl:13},D)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[9]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),e.flush()}get userrank(){return this.$$.ctx[8]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(L,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=L;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./CasinoTournamentsPlayerRank-Dlnma-xI.cjs"),H="data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",M="data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";function D(a){e.append_styles(a,"svelte-1njm5xr",".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}")}function U(a){let t;return{c(){t=e.element("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="user" class="svg-inline--fa fa-user" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><path fill="currentColor" d="M224 256c70.7 0 128-57.31 128-128s-57.3-128-128-128C153.3 0 96 57.31 96 128S153.3 256 224 256zM274.7 304H173.3C77.61 304 0 381.6 0 477.3c0 19.14 15.52 34.67 34.66 34.67h378.7C432.5 512 448 496.5 448 477.3C448 381.6 370.4 304 274.7 304z"></path></svg>',e.attr(t,"class","Icon UserIcon"),e.attr(t,"part","Icon UserIcon")},m(i,g){e.insert(i,t,g)},d(i){i&&e.detach(t)}}}function I(a){let t;return{c(){t=e.element("span"),t.innerHTML='<svg width="17" height="17" aria-hidden="true" focusable="false" data-prefix="fas" data-icon="award" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 384 512" class="svg-inline--fa fa-award fa-w-12 fa-3x"><path fill="currentColor" d="M97.12 362.63c-8.69-8.69-4.16-6.24-25.12-11.85-9.51-2.55-17.87-7.45-25.43-13.32L1.2 448.7c-4.39 10.77 3.81 22.47 15.43 22.03l52.69-2.01L105.56 507c8 8.44 22.04 5.81 26.43-4.96l52.05-127.62c-10.84 6.04-22.87 9.58-35.31 9.58-19.5 0-37.82-7.59-51.61-21.37zM382.8 448.7l-45.37-111.24c-7.56 5.88-15.92 10.77-25.43 13.32-21.07 5.64-16.45 3.18-25.12 11.85-13.79 13.78-32.12 21.37-51.62 21.37-12.44 0-24.47-3.55-35.31-9.58L252 502.04c4.39 10.77 18.44 13.4 26.43 4.96l36.25-38.28 52.69 2.01c11.62.44 19.82-11.27 15.43-22.03zM263 340c15.28-15.55 17.03-14.21 38.79-20.14 13.89-3.79 24.75-14.84 28.47-28.98 7.48-28.4 5.54-24.97 25.95-45.75 10.17-10.35 14.14-25.44 10.42-39.58-7.47-28.38-7.48-24.42 0-52.83 3.72-14.14-.25-29.23-10.42-39.58-20.41-20.78-18.47-17.36-25.95-45.75-3.72-14.14-14.58-25.19-28.47-28.98-27.88-7.61-24.52-5.62-44.95-26.41-10.17-10.35-25-14.4-38.89-10.61-27.87 7.6-23.98 7.61-51.9 0-13.89-3.79-28.72.25-38.89 10.61-20.41 20.78-17.05 18.8-44.94 26.41-13.89 3.79-24.75 14.84-28.47 28.98-7.47 28.39-5.54 24.97-25.95 45.75-10.17 10.35-14.15 25.44-10.42 39.58 7.47 28.36 7.48 24.4 0 52.82-3.72 14.14.25 29.23 10.42 39.59 20.41 20.78 18.47 17.35 25.95 45.75 3.72 14.14 14.58 25.19 28.47 28.98C104.6 325.96 106.27 325 121 340c13.23 13.47 33.84 15.88 49.74 5.82a39.676 39.676 0 0 1 42.53 0c15.89 10.06 36.5 7.65 49.73-5.82zM97.66 175.96c0-53.03 42.24-96.02 94.34-96.02s94.34 42.99 94.34 96.02-42.24 96.02-94.34 96.02-94.34-42.99-94.34-96.02z" class=""></path></svg>',e.attr(t,"class","Icon PrizeIcon"),e.attr(t,"part","Icon PrizeIcon")},m(i,g){e.insert(i,t,g)},d(i){i&&e.detach(t)}}}function q(a){let t,i,g,h,_,x=a[7]()+"",z,s,d,T,p,y,r,w,m,b,u,C,k,f,R,S,A,c=a[2]=="true"&&U(),o=a[2]=="true"&&I();return{c(){t=e.element("div"),i=e.element("div"),c&&c.c(),g=e.space(),h=e.element("span"),_=e.text(a[1]),z=e.text(x),s=e.space(),d=e.element("img"),y=e.space(),r=e.element("img"),b=e.space(),u=e.element("div"),o&&o.c(),C=e.space(),k=e.element("span"),f=e.text(a[0]),e.attr(d,"part","Rank_Arror_UP"),e.attr(d,"alt","Rank Up"),e.src_url_equal(d.src,T=H)||e.attr(d,"src",T),e.attr(d,"width","20"),e.attr(d,"height","20"),e.attr(d,"class",p="svg Arrow Up "+(a[5]&&a[6]?"Show":"Hidden")),e.attr(r,"part","Rank_Arror_Down"),e.attr(r,"alt","Rank Down"),e.src_url_equal(r.src,w=M)||e.attr(r,"src",w),e.attr(r,"width","10"),e.attr(r,"height","10"),e.attr(r,"class",m="svg Arrow Down "+(a[5]&&!a[6]?"Show":"Hidden")),e.attr(h,"class","RankInfo"),e.attr(h,"part","RankText"),e.attr(i,"class","RankSec"),e.attr(i,"part","Rank"),e.attr(k,"class","RankInfo UserPrize"),e.attr(k,"part","PrizeText"),e.attr(u,"class",R=a[3]+" PrizeSec"),e.attr(u,"part","Prize"),e.attr(t,"class",S=a[3]+" casino-tournaments-rank"),e.attr(t,"part",A=a[3]+" casino-tournaments-rank")},m(l,n){e.insert(l,t,n),e.append(t,i),c&&c.m(i,null),e.append(i,g),e.append(i,h),e.append(h,_),e.append(h,z),e.append(h,s),e.append(h,d),e.append(h,y),e.append(h,r),e.append(t,b),e.append(t,u),o&&o.m(u,null),e.append(u,C),e.append(u,k),e.append(k,f),a[14](t)},p(l,[n]){l[2]=="true"?c||(c=U(),c.c(),c.m(i,g)):c&&(c.d(1),c=null),n&2&&e.set_data(_,l[1]),n&96&&p!==(p="svg Arrow Up "+(l[5]&&l[6]?"Show":"Hidden"))&&e.attr(d,"class",p),n&96&&m!==(m="svg Arrow Down "+(l[5]&&!l[6]?"Show":"Hidden"))&&e.attr(r,"class",m),l[2]=="true"?o||(o=I(),o.c(),o.m(u,C)):o&&(o.d(1),o=null),n&1&&e.set_data(f,l[0]),n&8&&R!==(R=l[3]+" PrizeSec")&&e.attr(u,"class",R),n&8&&S!==(S=l[3]+" casino-tournaments-rank")&&e.attr(t,"class",S),n&8&&A!==(A=l[3]+" casino-tournaments-rank")&&e.attr(t,"part",A)},i:e.noop,o:e.noop,d(l){l&&e.detach(t),c&&c.d(),o&&o.d(),a[14](null)}}}function B(a,t,i){let{rankprefix:g="#"}=t,{showicon:h="true"}=t,{tournamentid:_=""}=t,{overallrank:x="0"}=t,{showoverallrank:z="true"}=t,{userrank:s="0"}=t,{prize:d="PrizeName"}=t,{displayin:T="row"}=t,{clientstyling:p=""}=t,{clientstylingurl:y=""}=t,r,w,m=!1,b=!0,u,C,k,f;const R=n=>{n.data&&n.data.type==`TournamentRankInfo_${_}`&&S(n.data.rankInfo)},S=n=>{let P=v=>{i(8,s=v.rank),i(9,x=v.overallRank),i(0,d=v.prize)};if(!f){f=w,P(n);return}w&&(i(5,m=f!=n.rank),i(6,b=f>n.rank),u=new Date().getTime(),k=setTimeout(()=>{C=new Date().getTime(),(C-u)/1e3>4&&i(5,m=!1),f=w},5e3),P(n))},A=()=>{let n=document.createElement("style");n.innerHTML=p,r.appendChild(n)},c=()=>{let n=new URL(y),P=document.createElement("style");fetch(n.href).then(v=>v.text()).then(v=>{P.innerHTML=v,setTimeout(()=>{r.appendChild(P)},1),setTimeout(()=>{},500)})},o=()=>z=="true"?`${+s==0?"-":s||"-"}/${+x==0?"-":x}`:s;e.onMount(()=>(w=s==null?void 0:parseInt(s),f=w,i(8,s=s==null?"-":s),window.addEventListener("message",R,!0),()=>{window.removeEventListener("message",R),clearTimeout(k)}));function l(n){e.binding_callbacks[n?"unshift":"push"](()=>{r=n,i(4,r)})}return a.$$set=n=>{"rankprefix"in n&&i(1,g=n.rankprefix),"showicon"in n&&i(2,h=n.showicon),"tournamentid"in n&&i(10,_=n.tournamentid),"overallrank"in n&&i(9,x=n.overallrank),"showoverallrank"in n&&i(11,z=n.showoverallrank),"userrank"in n&&i(8,s=n.userrank),"prize"in n&&i(0,d=n.prize),"displayin"in n&&i(3,T=n.displayin),"clientstyling"in n&&i(12,p=n.clientstyling),"clientstylingurl"in n&&i(13,y=n.clientstylingurl)},a.$$.update=()=>{a.$$.dirty&4112&&r&&p&&A(),a.$$.dirty&8208&&r&&y&&c(),a.$$.dirty&256&&(w=parseInt(s))},[d,g,h,T,r,m,b,o,s,x,_,z,p,y,l]}class L extends e.SvelteComponent{constructor(t){super(),e.init(this,t,B,q,e.safe_not_equal,{rankprefix:1,showicon:2,tournamentid:10,overallrank:9,showoverallrank:11,userrank:8,prize:0,displayin:3,clientstyling:12,clientstylingurl:13},D)}get rankprefix(){return this.$$.ctx[1]}set rankprefix(t){this.$$set({rankprefix:t}),e.flush()}get showicon(){return this.$$.ctx[2]}set showicon(t){this.$$set({showicon:t}),e.flush()}get tournamentid(){return this.$$.ctx[10]}set tournamentid(t){this.$$set({tournamentid:t}),e.flush()}get overallrank(){return this.$$.ctx[9]}set overallrank(t){this.$$set({overallrank:t}),e.flush()}get showoverallrank(){return this.$$.ctx[11]}set showoverallrank(t){this.$$set({showoverallrank:t}),e.flush()}get userrank(){return this.$$.ctx[8]}set userrank(t){this.$$set({userrank:t}),e.flush()}get prize(){return this.$$.ctx[0]}set prize(t){this.$$set({prize:t}),e.flush()}get displayin(){return this.$$.ctx[3]}set displayin(t){this.$$set({displayin:t}),e.flush()}get clientstyling(){return this.$$.ctx[12]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[13]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}}e.create_custom_element(L,{rankprefix:{},showicon:{},tournamentid:{},overallrank:{},showoverallrank:{},userrank:{},prize:{},displayin:{},clientstyling:{},clientstylingurl:{}},[],[],!0);exports.default=L;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as N, i as G, f as m, c as J, s as K, a as O, e as v, b as H, t as M, d as i, g as E, h as D, j as h, k as j, n as q, l as B, o as Q, m as V } from "./CasinoTournamentsPlayerRank-
|
|
1
|
+
import { S as N, i as G, f as m, c as J, s as K, a as O, e as v, b as H, t as M, d as i, g as E, h as D, j as h, k as j, n as q, l as B, o as Q, m as V } from "./CasinoTournamentsPlayerRank-BZksywZp.js";
|
|
2
2
|
const W = "data:image/svg+xml,%3csvg%20width='20'%20height='20'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20cx='4.9999'%20cy='4.9999'%20r='4.9999'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1149)'%3e%3cline%20x1='4.93332'%20y1='4'%20x2='4.93332'%20y2='7.99992'%20stroke='%2359CA00'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%202L7.59699%204.99994H2.40094L4.99896%202Z'%20fill='%2359CA00'%3e%3c/path%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1149'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='translate(1.99902%202)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e", X = "data:image/svg+xml,%3csvg%20width='10'%20height='10'%20viewBox='0%200%2010%2010'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20r='4.9999'%20transform='matrix(1%200%200%20-1%204.9999%205.0001)'%20fill='%23434647'/%3e%3cg%20clip-path='url(%23clip0_2591_1154)'%3e%3cline%20y1='-0.933315'%20x2='3.99992'%20y2='-0.933315'%20transform='matrix(0%20-1%20-1%200%204%206)'%20stroke='%23CA0000'%20stroke-width='1.86663'/%3e%3cpath%20d='M4.99896%208L7.59699%205.00006H2.40094L4.99896%208Z'%20fill='%23CA0000'/%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip0_2591_1154'%3e%3crect%20width='5.99988'%20height='5.99928'%20fill='white'%20transform='matrix(1%200%200%20-1%201.99902%208)'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e";
|
|
3
3
|
function Y(a) {
|
|
4
4
|
O(a, "svelte-1njm5xr", ".row{display:flex}.row .RankSec,.row .PrizeSec{width:49%}.col{display:inline-block}.RankSec,.PrizeSec{background-color:#c4c4c4;display:flex;padding:5px;margin:5px}.RankSec span,.PrizeSec span{text-align:center}.casino-tournaments-rank{background:transparent;min-height:22px;width:100%}.Icon{width:22px;height:22px;display:flex;border-right:2px solid;margin-right:5px;padding-right:3px}.Icon svg{width:15px;height:15px;margin:auto}.RankInfo{vertical-align:middle;line-height:22px;font-weight:bold;padding-left:5px;padding-right:10px}.svg.Arrow.Up,.svg.Arrow.Down{position:absolute;width:15px;height:15px;vertical-align:bottom;padding-left:3px;display:none;padding:3px;padding:3px}.svg.Arrow.Up.Show,.svg.Arrow.Down.Show{display:inline-flex}.svg.Arrow.Up.Hidden,.svg.Arrow.Down.Hidden{display:none}svg.Arrow.Up,svg.Arrow.Down,.svg.Arrow.Up,.svg.Arrow.Down{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}");
|
|
@@ -32,10 +32,10 @@ function F(a) {
|
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function $(a) {
|
|
35
|
-
let e, n, f, d,
|
|
35
|
+
let e, n, f, d, z, R = (
|
|
36
36
|
/*formatRank*/
|
|
37
37
|
a[7]() + ""
|
|
38
|
-
), A, l, g, P, p, C, r, k,
|
|
38
|
+
), A, l, g, P, p, C, r, k, _, I, u, U, x, w, S, b, T, c = (
|
|
39
39
|
/*showicon*/
|
|
40
40
|
a[2] == "true" && Z()
|
|
41
41
|
), o = (
|
|
@@ -44,38 +44,38 @@ function $(a) {
|
|
|
44
44
|
);
|
|
45
45
|
return {
|
|
46
46
|
c() {
|
|
47
|
-
e = v("div"), n = v("div"), c && c.c(), f = H(), d = v("span"),
|
|
47
|
+
e = v("div"), n = v("div"), c && c.c(), f = H(), d = v("span"), z = M(
|
|
48
48
|
/*rankprefix*/
|
|
49
49
|
a[1]
|
|
50
|
-
), A = M(
|
|
50
|
+
), A = M(R), l = H(), g = v("img"), C = H(), r = v("img"), I = H(), u = v("div"), o && o.c(), U = H(), x = v("span"), w = M(
|
|
51
51
|
/*prize*/
|
|
52
52
|
a[0]
|
|
53
53
|
), i(g, "part", "Rank_Arror_UP"), i(g, "alt", "Rank Up"), E(g.src, P = W) || i(g, "src", P), i(g, "width", "20"), i(g, "height", "20"), i(g, "class", p = "svg Arrow Up " + /*userRankChanged*/
|
|
54
54
|
(a[5] && /*isRankingUp*/
|
|
55
|
-
a[6] ? "Show" : "Hidden")), i(r, "part", "Rank_Arror_Down"), i(r, "alt", "Rank Down"), E(r.src, k = X) || i(r, "src", k), i(r, "width", "10"), i(r, "height", "10"), i(r, "class",
|
|
55
|
+
a[6] ? "Show" : "Hidden")), i(r, "part", "Rank_Arror_Down"), i(r, "alt", "Rank Down"), E(r.src, k = X) || i(r, "src", k), i(r, "width", "10"), i(r, "height", "10"), i(r, "class", _ = "svg Arrow Down " + /*userRankChanged*/
|
|
56
56
|
(a[5] && !/*isRankingUp*/
|
|
57
|
-
a[6] ? "Show" : "Hidden")), i(d, "class", "RankInfo"), i(d, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(
|
|
57
|
+
a[6] ? "Show" : "Hidden")), i(d, "class", "RankInfo"), i(d, "part", "RankText"), i(n, "class", "RankSec"), i(n, "part", "Rank"), i(x, "class", "RankInfo UserPrize"), i(x, "part", "PrizeText"), i(u, "class", S = /*displayin*/
|
|
58
58
|
a[3] + " PrizeSec"), i(u, "part", "Prize"), i(e, "class", b = /*displayin*/
|
|
59
59
|
a[3] + " casino-tournaments-rank"), i(e, "part", T = /*displayin*/
|
|
60
60
|
a[3] + " casino-tournaments-rank");
|
|
61
61
|
},
|
|
62
62
|
m(s, t) {
|
|
63
|
-
D(s, e, t), h(e, n), c && c.m(n, null), h(n, f), h(n, d), h(d,
|
|
63
|
+
D(s, e, t), h(e, n), c && c.m(n, null), h(n, f), h(n, d), h(d, z), h(d, A), h(d, l), h(d, g), h(d, C), h(d, r), h(e, I), h(e, u), o && o.m(u, null), h(u, U), h(u, x), h(x, w), a[14](e);
|
|
64
64
|
},
|
|
65
65
|
p(s, [t]) {
|
|
66
66
|
/*showicon*/
|
|
67
67
|
s[2] == "true" ? c || (c = Z(), c.c(), c.m(n, f)) : c && (c.d(1), c = null), t & /*rankprefix*/
|
|
68
68
|
2 && j(
|
|
69
|
-
|
|
69
|
+
z,
|
|
70
70
|
/*rankprefix*/
|
|
71
71
|
s[1]
|
|
72
72
|
), t & /*userRankChanged, isRankingUp*/
|
|
73
73
|
96 && p !== (p = "svg Arrow Up " + /*userRankChanged*/
|
|
74
74
|
(s[5] && /*isRankingUp*/
|
|
75
75
|
s[6] ? "Show" : "Hidden")) && i(g, "class", p), t & /*userRankChanged, isRankingUp*/
|
|
76
|
-
96 &&
|
|
76
|
+
96 && _ !== (_ = "svg Arrow Down " + /*userRankChanged*/
|
|
77
77
|
(s[5] && !/*isRankingUp*/
|
|
78
|
-
s[6] ? "Show" : "Hidden")) && i(r, "class",
|
|
78
|
+
s[6] ? "Show" : "Hidden")) && i(r, "class", _), /*showicon*/
|
|
79
79
|
s[2] == "true" ? o || (o = F(), o.c(), o.m(u, U)) : o && (o.d(1), o = null), t & /*prize*/
|
|
80
80
|
1 && j(
|
|
81
81
|
w,
|
|
@@ -97,20 +97,20 @@ function $(a) {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
function ee(a, e, n) {
|
|
100
|
-
let { rankprefix: f = "#" } = e, { showicon: d = "true" } = e, { tournamentid:
|
|
100
|
+
let { rankprefix: f = "#" } = e, { showicon: d = "true" } = e, { tournamentid: z = "" } = e, { overallrank: R = "0" } = e, { showoverallrank: A = "true" } = e, { userrank: l = "0" } = e, { prize: g = "PrizeName" } = e, { displayin: P = "row" } = e, { clientstyling: p = "" } = e, { clientstylingurl: C = "" } = e, r, k, _ = !1, I = !0, u, U, x, w;
|
|
101
101
|
const S = (t) => {
|
|
102
|
-
t.data && t.data.type == `TournamentRankInfo_${
|
|
102
|
+
t.data && t.data.type == `TournamentRankInfo_${z}` && b(t.data.rankInfo);
|
|
103
103
|
}, b = (t) => {
|
|
104
|
-
let L = (
|
|
105
|
-
n(8, l =
|
|
104
|
+
let L = (y) => {
|
|
105
|
+
n(8, l = y.rank), n(9, R = y.overallRank), n(0, g = y.prize);
|
|
106
106
|
};
|
|
107
107
|
if (!w) {
|
|
108
108
|
w = k, L(t);
|
|
109
109
|
return;
|
|
110
110
|
}
|
|
111
|
-
k && (n(5,
|
|
111
|
+
k && (n(5, _ = w != t.rank), n(6, I = w > t.rank), u = (/* @__PURE__ */ new Date()).getTime(), x = setTimeout(
|
|
112
112
|
() => {
|
|
113
|
-
U = (/* @__PURE__ */ new Date()).getTime(), (U - u) / 1e3 > 4 && n(5,
|
|
113
|
+
U = (/* @__PURE__ */ new Date()).getTime(), (U - u) / 1e3 > 4 && n(5, _ = !1), w = k;
|
|
114
114
|
},
|
|
115
115
|
5e3
|
|
116
116
|
), L(t));
|
|
@@ -119,8 +119,8 @@ function ee(a, e, n) {
|
|
|
119
119
|
t.innerHTML = p, r.appendChild(t);
|
|
120
120
|
}, c = () => {
|
|
121
121
|
let t = new URL(C), L = document.createElement("style");
|
|
122
|
-
fetch(t.href).then((
|
|
123
|
-
L.innerHTML =
|
|
122
|
+
fetch(t.href).then((y) => y.text()).then((y) => {
|
|
123
|
+
L.innerHTML = y, setTimeout(
|
|
124
124
|
() => {
|
|
125
125
|
r.appendChild(L);
|
|
126
126
|
},
|
|
@@ -131,9 +131,9 @@ function ee(a, e, n) {
|
|
|
131
131
|
500
|
|
132
132
|
);
|
|
133
133
|
});
|
|
134
|
-
}, o = () => A == "true" ? `${+
|
|
134
|
+
}, o = () => A == "true" ? `${+l == 0 ? "-" : l || "-"}/${+R == 0 ? "-" : R}` : l;
|
|
135
135
|
Q(() => (k = l == null ? void 0 : parseInt(l), w = k, n(8, l = l == null ? "-" : l), window.addEventListener("message", S, !0), () => {
|
|
136
|
-
window.removeEventListener("message", S), clearTimeout(
|
|
136
|
+
window.removeEventListener("message", S), clearTimeout(x);
|
|
137
137
|
}));
|
|
138
138
|
function s(t) {
|
|
139
139
|
V[t ? "unshift" : "push"](() => {
|
|
@@ -141,7 +141,7 @@ function ee(a, e, n) {
|
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
return a.$$set = (t) => {
|
|
144
|
-
"rankprefix" in t && n(1, f = t.rankprefix), "showicon" in t && n(2, d = t.showicon), "tournamentid" in t && n(10,
|
|
144
|
+
"rankprefix" in t && n(1, f = t.rankprefix), "showicon" in t && n(2, d = t.showicon), "tournamentid" in t && n(10, z = t.tournamentid), "overallrank" in t && n(9, R = t.overallrank), "showoverallrank" in t && n(11, A = t.showoverallrank), "userrank" in t && n(8, l = t.userrank), "prize" in t && n(0, g = t.prize), "displayin" in t && n(3, P = t.displayin), "clientstyling" in t && n(12, p = t.clientstyling), "clientstylingurl" in t && n(13, C = t.clientstylingurl);
|
|
145
145
|
}, a.$$.update = () => {
|
|
146
146
|
a.$$.dirty & /*customStylingContainer, clientstyling*/
|
|
147
147
|
4112 && r && p && T(), a.$$.dirty & /*customStylingContainer, clientstylingurl*/
|
|
@@ -153,12 +153,12 @@ function ee(a, e, n) {
|
|
|
153
153
|
d,
|
|
154
154
|
P,
|
|
155
155
|
r,
|
|
156
|
-
|
|
156
|
+
_,
|
|
157
157
|
I,
|
|
158
158
|
o,
|
|
159
159
|
l,
|
|
160
|
-
_,
|
|
161
160
|
R,
|
|
161
|
+
z,
|
|
162
162
|
A,
|
|
163
163
|
p,
|
|
164
164
|
C,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsPlayerRank-
|
|
1
|
+
"use strict";if(typeof window!="undefined"){let n=function(e){return function(...s){try{return e.apply(this,s)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoTournamentsPlayerRank-Dlnma-xI.cjs")).then(e=>e.CasinoTournamentsPlayerRank_ce).then(({default:e})=>{!customElements.get("casino-tournaments-player-rank")&&customElements.define("casino-tournaments-player-rank",e.element)})}
|
|
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
|
|
|
10
10
|
}
|
|
11
11
|
};
|
|
12
12
|
};
|
|
13
|
-
customElements.define = n(customElements.define), import("../components/CasinoTournamentsPlayerRank-
|
|
13
|
+
customElements.define = n(customElements.define), import("../components/CasinoTournamentsPlayerRank-BZksywZp.js").then((e) => e.C).then(({ default: e }) => {
|
|
14
14
|
!customElements.get("casino-tournaments-player-rank") && customElements.define("casino-tournaments-player-rank", e.element);
|
|
15
15
|
});
|
|
16
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@everymatrix/casino-tournaments-player-rank",
|
|
3
|
-
"version": "1.52.
|
|
3
|
+
"version": "1.52.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "es2015/casino-tournaments-player-rank.cjs",
|
|
6
6
|
"module": "es2015/casino-tournaments-player-rank.js",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"access": "public"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@everymatrix/casino-tournaments-rank": "1.52.
|
|
24
|
+
"@everymatrix/casino-tournaments-rank": "1.52.1"
|
|
25
25
|
}
|
|
26
26
|
}
|