@everymatrix/casino-tournament-leaderboard 1.31.2 → 1.32.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/LICENSE +21 -0
  2. package/package.json +3 -2
  3. package/dist/casino-tournament-leaderboard/casino-tournament-leaderboard.esm.js +0 -1
  4. package/dist/casino-tournament-leaderboard/index.esm.js +0 -0
  5. package/dist/casino-tournament-leaderboard/p-512c55ba.entry.js +0 -7
  6. package/dist/casino-tournament-leaderboard/p-53cecb22.js +0 -1
  7. package/dist/cjs/casino-tournament-leaderboard.cjs.entry.js +0 -1468
  8. package/dist/cjs/casino-tournament-leaderboard.cjs.js +0 -19
  9. package/dist/cjs/index-c374b05a.js +0 -1153
  10. package/dist/cjs/index.cjs.js +0 -2
  11. package/dist/cjs/loader.cjs.js +0 -21
  12. package/dist/collection/collection-manifest.json +0 -12
  13. package/dist/collection/components/casino-tournament-leaderboard/casino-tournament-leaderboard.css +0 -106
  14. package/dist/collection/components/casino-tournament-leaderboard/casino-tournament-leaderboard.js +0 -624
  15. package/dist/collection/index.js +0 -1
  16. package/dist/collection/utils/locale.utils.js +0 -156
  17. package/dist/collection/utils/utils.js +0 -23
  18. package/dist/components/casino-tournament-leaderboard.d.ts +0 -11
  19. package/dist/components/casino-tournament-leaderboard.js +0 -1511
  20. package/dist/components/index.d.ts +0 -26
  21. package/dist/components/index.js +0 -1
  22. package/dist/esm/casino-tournament-leaderboard.entry.js +0 -1464
  23. package/dist/esm/casino-tournament-leaderboard.js +0 -17
  24. package/dist/esm/index-90e32e69.js +0 -1127
  25. package/dist/esm/index.js +0 -1
  26. package/dist/esm/loader.js +0 -17
  27. package/dist/esm/polyfills/core-js.js +0 -11
  28. package/dist/esm/polyfills/css-shim.js +0 -1
  29. package/dist/esm/polyfills/dom.js +0 -79
  30. package/dist/esm/polyfills/es5-html-element.js +0 -1
  31. package/dist/esm/polyfills/index.js +0 -34
  32. package/dist/esm/polyfills/system.js +0 -6
  33. package/dist/index.cjs.js +0 -1
  34. package/dist/index.js +0 -1
  35. package/dist/stencil.config.js +0 -22
  36. package/dist/types/Users/dragos.bodea/Documents/everymatrix-prjs/emfe-widgets/widgets-stencil/packages/casino-tournament-leaderboard/.stencil/packages/casino-tournament-leaderboard/stencil.config.d.ts +0 -2
  37. package/dist/types/components/casino-tournament-leaderboard/casino-tournament-leaderboard.d.ts +0 -101
  38. package/dist/types/components.d.ts +0 -197
  39. package/dist/types/index.d.ts +0 -1
  40. package/dist/types/stencil-public-runtime.d.ts +0 -1565
  41. package/dist/types/utils/locale.utils.d.ts +0 -2
  42. package/dist/types/utils/utils.d.ts +0 -3
  43. package/loader/cdn.js +0 -3
  44. package/loader/index.cjs.js +0 -3
  45. package/loader/index.d.ts +0 -12
  46. package/loader/index.es2017.js +0 -3
  47. package/loader/index.js +0 -4
  48. package/loader/package.json +0 -10
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-leaderboard",
3
- "version": "1.31.2",
3
+ "version": "1.32.4",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -18,5 +18,6 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "event-source-polyfill": "^1.0.31"
21
- }
21
+ },
22
+ "gitHead": "69a4e0bb1b0460c07baef352d283492a6e2dc4b0"
22
23
  }
@@ -1 +0,0 @@
1
- import{p as e,b as n}from"./p-53cecb22.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((e=>n([["p-512c55ba",[[1,"casino-tournament-leaderboard",{endpoint:[1],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],tableLimit:[2,"table-limit"],mobileLimit:[2,"mobile-limit"],tableColumns:[1,"table-columns"],updateLeaderboard:[4,"update-leaderboard"],userSticky:[4,"user-sticky"],userOnly:[4,"user-only"],showUnqualified:[4,"show-unqualified"],namemask:[1],minscore:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],showHeader:[4,"show-header"],showTitle:[4,"show-title"],showTopIcon:[4,"show-top-icon"],translationData:[520,"translation-data"],limitStylingAppends:[32],items:[32],columns:[32],rankChanged:[32],rankUp:[32],rankDown:[32],rank:[32],arrowDuration:[32]}]]]],e)));
File without changes
@@ -1,7 +0,0 @@
1
- import{r as i,h as t,g as n}from"./p-53cecb22.js";const e={en:{leaderboard:"Leaderboard",score:"Score",betcounts:"Bet Count",winstakeratio:"WinstakeRatio",qualified:"Qualified",nowinners:"No winners for the time being. Be one of them!",rank:"Rank",player:"Player",points:"Points",prize:"Prize",unqualifiedTips:"The minimum number of bets has not been reached. Check tournament rules.",me:"Me",myRanking:"My Ranking"},"zh-hk":{leaderboard:"排行榜",score:"分數",betcounts:"投注次數",winstakeratio:"勝率",qualified:"合格的",nowinners:"暫時沒有贏家。 成為他們中的一員!",rank:"秩",player:"播放器",points:"積分",prize:"獎",unqualifiedTips:"未达到最低投注数。检查比赛规则。",me:"我"},fr:{leaderboard:"Tableau des leaders",score:"Score",betcounts:"Le pari compte",winstakeratio:"Indice du gain d'une mise",qualified:"Qualifié",nowinners:"Aucun gagnant pour l'instant, soyez l'un d'entre eux",rank:"Rang",player:"Joueur",points:"Points",prize:"Prix",unqualifiedTips:"Le nombre de mises minimum n'est pas terminé. Vérifiez les règles.",me:"Me"},ro:{leaderboard:"Clasament",score:"Scor",betcounts:"Număr Pariuri",winstakeratio:"Raport de câștig",qualified:"Calificat",nowinners:"Nu există câștigători pentru moment. Fii unul dintre ei!",rank:"Clasament",player:"Jucător",points:"Puncte",prize:"Premiu",unqualifiedTips:"Numărul minim de pariuri nu a fost atins. Verificați regulile.",me:"Eu"},hu:{leaderboard:"Ranglista",score:"Pontszám",betcounts:"Bet Counts",winstakeratio:"Fogadás számít",qualified:"Képzett",nowinners:"Egyelőre nincs nyertes. Legyen az egyikük!",rank:"Rang",player:"Játékos",points:"Pontok",prize:"Díj",unqualifiedTips:"A minimális fogadási értéket nem érte el. Kérjük ellenőrizze a szabályokat.",me:"Én"},tr:{leaderboard:"Liderlik Tablosu",score:"Skor",betcounts:"Bahis Sayısı",winstakeratio:"Maksimum Kazanç / Bahis Oranı",qualified:"Tur atlamış",nowinners:"Kazanan yok. Kazananlardan birisi ol!",rank:"Sıra",player:"Oyuncu",points:"Puan",prize:"Ödül",unqualifiedTips:"Minimum bahis sayısına ulaşılmadı. Turnuva kurallarını kontrol ediniz.",me:"Ben"},el:{leaderboard:"Βαθμολογία",score:"Σκορ",betcounts:"Αριθμός Πονταρισμάτων",winstakeratio:"Μέγιστος λόγος πονταρίσματος κερδών",qualified:"Προκρίθηκε",nowinners:"Δεν υπάρχουν νικητές ακόμα.",rank:"Κατάταξη",player:"Όνομα",points:"Πόντοι",prize:"Έπαθλο",unqualifiedTips:"Ο ελάχιστος αριθμός στοιχημάτων δεν έχει επιτευχθεί. Ελέγξτε τους κανόνες του τουρνουά.",me:"Εγώ"},es:{leaderboard:"Marcador",score:"Puntuación",betcounts:"Apuesta cuenta",winstakeratio:"RatioDeGanancia",qualified:"Calificado",nowinners:"No hay ganadores por el momento. ¡Sé uno de ellos!",rank:"Rango",player:"Jugador",points:"Puntos",prize:"Premio",unqualifiedTips:"No se ha completado el recuento mínimo de apuestas. Compruebe las reglas.",me:"Yo"},pt:{leaderboard:"Entre os melhores",score:"Pontuação",betcounts:"Contagens de Apostas",winstakeratio:"Rácio de Vitórias",qualified:"Qualificado",nowinners:"Sem vencedores por enquanto. Seja um deles!",rank:"Classificação",player:"Jogador",points:"Pontos",prize:"Prêmio",unqualifiedTips:"Contagem mínima de apostas não concluída. Confira Regras.",me:"Me"},hr:{leaderboard:"Leaderboard",score:"Rezultat",betcounts:"Broj betova",winstakeratio:"Omjer uloga i dobitaka",qualified:"Kvalificirani",nowinners:"Za sada nema pobjednika. Budi jedan od njih",rank:"Rang",player:"Igrač",points:"Bodovi",prize:"Nagrada",unqualifiedTips:"Minimalni broj uloga nije dosegnut. Provjerite pravila turnira",me:"Ja"}},r=(i,t)=>{var n,r;return(null===(n=e[t])||void 0===n?void 0:n[i])||(null===(r=e.en)||void 0===r?void 0:r[i])};var o,a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},s=(function(i,t){
2
- /** @license
3
- * eventsource.js
4
- * Available under MIT License (MIT)
5
- * https://github.com/Yaffle/EventSource/
6
- */
7
- !function(n){var e=n.setTimeout,r=n.clearTimeout,o=n.XMLHttpRequest,a=n.XDomainRequest,s=n.ActiveXObject,l=n.EventSource,u=n.document,d=n.Promise,h=n.fetch,c=n.Response,f=n.TextDecoder,p=n.TextEncoder,C=n.AbortController;if("undefined"==typeof window||void 0===u||"readyState"in u||null!=u.body||(u.readyState="loading",window.addEventListener("load",(function(){u.readyState="complete"}),!1)),null==o&&null!=s&&(o=function(){return new s("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(i){function t(){}return t.prototype=i,new t}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==C){var w=h;h=function(i,t){var n=t.signal;return w(i,{headers:t.headers,credentials:t.credentials,cache:t.cache}).then((function(i){var t=i.body.getReader();return n._reader=t,n._aborted&&n._reader.cancel(),{status:i.status,statusText:i.statusText,headers:i.headers,body:{getReader:function(){return t}}}}))},C=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function m(){this.bitsNeeded=0,this.codePoint=0}m.prototype.decode=function(i){function t(i,t,n){if(1===n)return i>=128>>t&&i<<t<=2047;if(2===n)return i>=2048>>t&&i<<t<=55295||i>=57344>>t&&i<<t<=65535;if(3===n)return i>=65536>>t&&i<<t<=1114111;throw new Error}function n(i,t){if(6===i)return t>>6>15?3:t>31?2:1;if(12===i)return t>15?3:2;if(18===i)return 3;throw new Error}for(var e=65533,r="",o=this.bitsNeeded,a=this.codePoint,s=0;s<i.length;s+=1){var l=i[s];0!==o&&(l<128||l>191||!t(a<<6|63&l,o-6,n(o,a)))&&(o=0,a=e,r+=String.fromCharCode(a)),0===o?(l>=0&&l<=127?(o=0,a=l):l>=192&&l<=223?(o=6,a=31&l):l>=224&&l<=239?(o=12,a=15&l):l>=240&&l<=247?(o=18,a=7&l):(o=0,a=e),0===o||t(a,o,n(o,a))||(o=0,a=e)):(o-=6,a=a<<6|63&l),0===o&&(a<=65535?r+=String.fromCharCode(a):(r+=String.fromCharCode(55296+(a-65535-1>>10)),r+=String.fromCharCode(56320+(a-65535-1&1023))))}return this.bitsNeeded=o,this.codePoint=a,r},null!=f&&null!=p&&function(){try{return"test"===(new f).decode((new p).encode("test"),{stream:!0})}catch(i){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+i)}return!1}()||(f=m);var v=function(){};function g(i){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=v,this.onload=v,this.onerror=v,this.onreadystatechange=v,this._contentType="",this._xhr=i,this._sendTimeout=0,this._abort=v}function b(i){return i.replace(/[A-Z]/g,(function(i){return String.fromCharCode(i.charCodeAt(0)+32)}))}function y(i){for(var t=Object.create(null),n=i.split("\r\n"),e=0;e<n.length;e+=1){var r=n[e].split(": "),o=r.shift(),a=r.join(": ");t[b(o)]=a}this._map=t}function k(){}function L(i){this._headers=i}function x(){}function T(){this._listeners=Object.create(null)}function R(i){e((function(){throw i}),0)}function S(i){this.type=i,this.target=void 0}function z(i,t){S.call(this,i),this.data=t.data,this.lastEventId=t.lastEventId}function M(i,t){S.call(this,i),this.status=t.status,this.statusText=t.statusText,this.headers=t.headers}function P(i,t){S.call(this,i),this.error=t.error}g.prototype.open=function(i,t){this._abort(!0);var n=this,a=this._xhr,s=1,l=0;this._abort=function(i){0!==n._sendTimeout&&(r(n._sendTimeout),n._sendTimeout=0),1!==s&&2!==s&&3!==s||(s=4,a.onload=v,a.onerror=v,a.onabort=v,a.onprogress=v,a.onreadystatechange=v,a.abort(),0!==l&&(r(l),l=0),i||(n.readyState=4,n.onabort(null),n.onreadystatechange())),s=0};var u=function(){if(1===s){var i=0,t="",e=void 0;if("contentType"in a)i=200,t="OK",e=a.contentType;else try{i=a.status,t=a.statusText,e=a.getResponseHeader("Content-Type")}catch(n){i=0,t="",e=void 0}0!==i&&(s=2,n.readyState=2,n.status=i,n.statusText=t,n._contentType=e,n.onreadystatechange())}},d=function(){if(u(),2===s||3===s){s=3;var i="";try{i=a.responseText}catch(i){}n.readyState=3,n.responseText=i,n.onprogress()}},h=function(i,t){if(null!=t&&null!=t.preventDefault||(t={preventDefault:v}),d(),1===s||2===s||3===s){if(s=4,0!==l&&(r(l),l=0),n.readyState=4,"load"===i)n.onload(t);else if("error"===i)n.onerror(t);else{if("abort"!==i)throw new TypeError;n.onabort(t)}n.onreadystatechange()}},c=function(){l=e((function(){c()}),500),3===a.readyState&&d()};"onload"in a&&(a.onload=function(i){h("load",i)}),"onerror"in a&&(a.onerror=function(i){h("error",i)}),"onabort"in a&&(a.onabort=function(i){h("abort",i)}),"onprogress"in a&&(a.onprogress=d),"onreadystatechange"in a&&(a.onreadystatechange=function(i){!function(i){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||h(""===a.responseText?"error":"load",i):3===a.readyState?"onprogress"in a||d():2===a.readyState&&u())}(i)}),!("contentType"in a)&&"ontimeout"in o.prototype||(t+=(-1===t.indexOf("?")?"?":"&")+"padding=true"),a.open(i,t,!0),"readyState"in a&&(l=e((function(){c()}),0))},g.prototype.abort=function(){this._abort(!1)},g.prototype.getResponseHeader=function(){return this._contentType},g.prototype.setRequestHeader=function(i,t){var n=this._xhr;"setRequestHeader"in n&&n.setRequestHeader(i,t)},g.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},g.prototype.send=function(){if("ontimeout"in o.prototype&&("sendAsBinary"in o.prototype||"mozAnon"in o.prototype)||null==u||null==u.readyState||"complete"===u.readyState){var i=this._xhr;"withCredentials"in i&&(i.withCredentials=this.withCredentials);try{i.send(void 0)}catch(i){throw i}}else{var t=this;t._sendTimeout=e((function(){t._sendTimeout=0,t.send()}),4)}},y.prototype.get=function(i){return this._map[b(i)]},null!=o&&null==o.HEADERS_RECEIVED&&(o.HEADERS_RECEIVED=2),k.prototype.open=function(i,t,n,e,r,a,s){i.open("GET",r);var l=0;for(var u in i.onprogress=function(){var t=i.responseText.slice(l);l+=t.length,n(t)},i.onerror=function(i){i.preventDefault(),e(new Error("NetworkError"))},i.onload=function(){e(null)},i.onabort=function(){e(null)},i.onreadystatechange=function(){if(i.readyState===o.HEADERS_RECEIVED){var n=i.status,e=i.statusText,r=i.getResponseHeader("Content-Type"),a=i.getAllResponseHeaders();t(n,e,r,new y(a))}},i.withCredentials=a,s)Object.prototype.hasOwnProperty.call(s,u)&&i.setRequestHeader(u,s[u]);return i.send(),i},L.prototype.get=function(i){return this._headers.get(i)},x.prototype.open=function(i,t,n,e,r,o,a){var s=null,l=new C,u=l.signal,c=new f;return h(r,{headers:a,credentials:o?"include":"same-origin",signal:u,cache:"no-store"}).then((function(i){return s=i.body.getReader(),t(i.status,i.statusText,i.headers.get("Content-Type"),new L(i.headers)),new d((function(i,t){var e=function(){s.read().then((function(t){if(t.done)i(void 0);else{var r=c.decode(t.value,{stream:!0});n(r),e()}})).catch((function(i){t(i)}))};e()}))})).catch((function(i){return"AbortError"===i.name?void 0:i})).then((function(i){e(i)})),{abort:function(){null!=s&&s.cancel(),l.abort()}}},T.prototype.dispatchEvent=function(i){i.target=this;var t=this._listeners[i.type];if(null!=t)for(var n=t.length,e=0;e<n;e+=1){var r=t[e];try{"function"==typeof r.handleEvent?r.handleEvent(i):r.call(this,i)}catch(i){R(i)}}},T.prototype.addEventListener=function(i,t){i=String(i);var n=this._listeners,e=n[i];null==e&&(n[i]=e=[]);for(var r=!1,o=0;o<e.length;o+=1)e[o]===t&&(r=!0);r||e.push(t)},T.prototype.removeEventListener=function(i,t){i=String(i);var n=this._listeners,e=n[i];if(null!=e){for(var r=[],o=0;o<e.length;o+=1)e[o]!==t&&r.push(e[o]);0===r.length?delete n[i]:n[i]=r}},z.prototype=Object.create(S.prototype),M.prototype=Object.create(S.prototype),P.prototype=Object.create(S.prototype);var j=/^text\/event\-stream(;.*)?$/i,q=function(i,t){var n=null==i?t:parseInt(i,10);return n!=n&&(n=t),A(n)},A=function(i){return Math.min(Math.max(i,1e3),18e6)},H=function(i,t,n){try{"function"==typeof t&&t.call(i,n)}catch(i){R(i)}};function B(i,t){T.call(this),t=t||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,function(i,t,n){t=String(t);var s=Boolean(n.withCredentials),l=n.lastEventIdQueryParameterName||"lastEventId",u=A(1e3),d=q(n.heartbeatTimeout,45e3),h="",c=u,f=!1,p=0,C=n.headers||{},w=n.Transport,m=E&&null==w?void 0:new g(null!=w?new w:null!=o&&"withCredentials"in o.prototype||null==a?new o:new a),v=null!=w&&"string"!=typeof w?new w:null==m?new x:new k,b=void 0,y=0,L=-1,T="",R="",S="",B="",O=0,Z=0,V=0,D=function(t,n,e,r){if(0===L)if(200===t&&null!=e&&j.test(e)){L=1,f=Date.now(),c=u,i.readyState=1;var o=new M("open",{status:t,statusText:n,headers:r});i.dispatchEvent(o),H(i,i.onopen,o)}else{var a="";200!==t?(n&&(n=n.replace(/\s+/g," ")),a="EventSource's response has a status "+t+" "+n+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==e?"-":e.replace(/\s+/g," "))+". Aborting the connection.",$(),o=new M("error",{status:t,statusText:n,headers:r}),i.dispatchEvent(o),H(i,i.onerror,o),console.error(a)}},F=function(t){if(1===L){for(var n=-1,o=0;o<t.length;o+=1)(l=t.charCodeAt(o))!=="\n".charCodeAt(0)&&l!=="\r".charCodeAt(0)||(n=o);var a=(-1!==n?B:"")+t.slice(0,n+1);B=(-1===n?B:"")+t.slice(n+1),""!==t&&(f=Date.now(),p+=t.length);for(var s=0;s<a.length;s+=1){var l=a.charCodeAt(s);if(-1===O&&l==="\n".charCodeAt(0))O=0;else if(-1===O&&(O=0),l==="\r".charCodeAt(0)||l==="\n".charCodeAt(0)){if(0!==O){1===O&&(V=s+1);var C=a.slice(Z,V-1),w=a.slice(V+(V<s&&a.charCodeAt(V)===" ".charCodeAt(0)?1:0),s);"data"===C?(T+="\n",T+=w):"id"===C?R=w:"event"===C?S=w:"retry"===C?(u=q(w,u),c=u):"heartbeatTimeout"===C&&(d=q(w,d),0!==y&&(r(y),y=e((function(){_()}),d)))}if(0===O){if(""!==T){h=R,""===S&&(S="message");var m=new z(S,{data:T.slice(1),lastEventId:R});if(i.dispatchEvent(m),"open"===S?H(i,i.onopen,m):"message"===S?H(i,i.onmessage,m):"error"===S&&H(i,i.onerror,m),2===L)return}T="",S=""}O=l==="\r".charCodeAt(0)?-1:0}else 0===O&&(Z=s,O=1),1===O?l===":".charCodeAt(0)&&(V=s+1,O=2):2===O&&(O=3)}}},N=function(t){if(1===L||0===L){L=-1,0!==y&&(r(y),y=0),y=e((function(){_()}),c),c=A(Math.min(16*u,2*c)),i.readyState=0;var n=new P("error",{error:t});i.dispatchEvent(n),H(i,i.onerror,n),null!=t&&console.error(t)}},$=function(){L=2,null!=b&&(b.abort(),b=void 0),0!==y&&(r(y),y=0),i.readyState=2},_=function(){if(y=0,-1===L){f=!1,p=0,y=e((function(){_()}),d),L=0,T="",S="",R=h,B="",Z=0,V=0,O=0;var n=t;if("data:"!==t.slice(0,5)&&"blob:"!==t.slice(0,5)&&""!==h){var r=t.indexOf("?");n=-1===r?t:t.slice(0,r+1)+t.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(i,t){return t===l?"":i})),n+=(-1===t.indexOf("?")?"?":"&")+l+"="+encodeURIComponent(h)}var o=i.withCredentials,a={Accept:"text/event-stream"},s=i.headers;if(null!=s)for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&(a[u]=s[u]);try{b=v.open(m,D,F,N,n,o,a)}catch(i){throw $(),i}}else if(f||null==b){var c=Math.max((f||Date.now())+d-Date.now(),1);f=!1,y=e((function(){_()}),c)}else N(new Error("No activity within "+d+" milliseconds. "+(0===L?"No response received.":p+" chars received.")+" Reconnecting.")),null!=b&&(b.abort(),b=void 0)};i.url=t,i.readyState=0,i.withCredentials=s,i.headers=C,i._close=$,_()}(this,i,t)}var E=null!=h&&null!=c&&"body"in c.prototype;(B.prototype=Object.create(T.prototype)).CONNECTING=0,B.prototype.OPEN=1,B.prototype.CLOSED=2,B.prototype.close=function(){this._close()},B.CONNECTING=0,B.OPEN=1,B.CLOSED=2,B.prototype.withCredentials=void 0;var O,Z=l;null==o||null!=l&&"withCredentials"in l.prototype||(Z=B),void 0!==(O=function(i){i.EventSourcePolyfill=B,i.NativeEventSource=l,i.EventSource=Z}(t))&&(i.exports=O)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:a:globalThis)}(o={path:undefined,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},o.exports),o.exports);const l=class{constructor(t){i(this,t),this.tableLimit=30,this.mobileLimit=15,this.tableColumns="rank,player,score,prize",this.updateLeaderboard=!1,this.userSticky=!1,this.userOnly=!1,this.showUnqualified=!0,this.clientStyling="",this.clientStylingUrl="",this.showHeader=!0,this.showTitle=!1,this.showTopIcon=!1,this.limitStylingAppends=!1,this.rankChanged=!1,this.rankUp=!1,this.rankDown=!1,this.arrowDuration=5e3}getLeaderboard(){let i=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}/leaderboard`),t=new Headers;i.searchParams.append("language",this.language);let n=`includeUnqualifiedPlayer=${this.showUnqualified}`;n=this.namemask?`${n},shortNameMask=${this.namemask}`:n,n=this.minscore?`${n},minscore=${this.minscore}`:n,i.searchParams.append("filter",n);let e=1==(()=>{let i=window.navigator.userAgent;return!!(i.toLowerCase().match(/android/i)||i.toLowerCase().match(/blackberry|bb/i)||i.toLowerCase().match(/iphone|ipad|ipod/i)||i.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))})()?this.mobileLimit:this.tableLimit;i.searchParams.append("pagination",`offset=0,limit=${e}`),this.session&&t.append("X-SessionId",this.session),i.searchParams.append("platform",(()=>{let i=window.navigator.userAgent;return i.toLowerCase().match(/android/i)?"Android":i.toLowerCase().match(/iphone/i)?"iPhone":i.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),fetch(i.href,{method:"GET",headers:t}).then((i=>i.json())).then((t=>{if(this.updateLeaderboardView(t,!1),1==this.updateLeaderboard){let t=`${this.endpoint}/v1/tournaments/${this.tournamentId}/leaderboard/updates?HeartBeat=false&${i.searchParams.toString()}`;this.startLeaderboardUpdate(t,{headers:{accept:"text/event-stream","X-SessionId":this.session}})}}))}startLeaderboardUpdate(i,t){const n=new s.EventSourcePolyfill(i,t);n.removeEventListener("message",this.updateLeaderboardHandler),n.addEventListener("message",this.updateLeaderboardHandler.bind(this))}updateLeaderboardView(i,t){this.items=i.items,t&&this.items.sort(((i,t)=>i.rank>t.rank?1:t.rank>i.rank?-1:0)),this.userSticky&&this.items.sort((i=>i.userID==this.userId?-1:0)),this.userOnly&&(this.items=i.item?[i.item]:[]),i.item&&this.setRank(i.item.rank,t)}setRank(i,t){if(t)if(this.rank!=i){if(!this.rank)return void(this.rank=i);this.rankChanged=!0,this.rank>i?this.rankUp=!0:this.rankDown=!0;let t=(new Date).getTime(),n=this.arrowDuration-1e3,e=this;setTimeout((function(){(new Date).getTime()-t>n&&(e.rankChanged=!1,e.rankDown=!1,e.rankUp=!1),e.rank=i}),this.arrowDuration)}else this.rankDown=!1,this.rankUp=!1}updateLeaderboardHandler(i){if(!i.data)return;let t=JSON.parse(i.data);"LeaderBoardUpdate"==t.messageType&&this.updateLeaderboardView(t,!0)}componentWillLoad(){var i;this.translationData&&(i=JSON.parse(this.translationData),Object.keys(i).forEach((t=>{for(let n in i[t])e[t][n]=i[t][n]}))),this.tableColumns&&(this.columns=this.tableColumns.split(",")),this.endpoint&&this.tournamentId&&this.getLeaderboard()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const i=new CSSStyleSheet;i.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,i]}setClientStylingURL(){let i=new URL(this.clientStylingUrl);fetch(i.href).then((i=>i.text())).then((i=>{const t=new CSSStyleSheet;t.replace(i),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}))}render(){return t("div",{class:"Leaderboard"},this.showTitle&&this.items&&this.items.length>0&&t("div",{class:"Title",part:"Title"},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},t("path",{d:"M14.2476 2.84132V0.664551H3.53327V2.84132H0.318359V5.01946C0.318359 6.8229 1.7568 8.28496 3.5326 8.28496C3.86862 8.28496 4.19326 8.23192 4.49647 8.13399C5.26958 9.25604 6.44898 10.07 7.81782 10.3516V13.7266H6.74685C5.56276 13.7266 4.6029 14.701 4.6029 15.9026H13.1753C13.1753 14.7004 12.2168 13.7266 11.0327 13.7266H9.96109V10.3516C11.3293 10.07 12.5087 9.25672 13.2818 8.13399C13.5863 8.23124 13.9116 8.28496 14.2463 8.28496C16.0214 8.28496 17.4612 6.8229 17.4612 5.01946V2.84132H14.2476ZM3.53327 6.99222C2.4623 6.99222 1.5908 6.10751 1.5908 5.01946V3.93005H3.53327V5.01946C3.53327 5.70221 3.65844 6.3564 3.88401 6.9589C3.77089 6.9793 3.65175 6.99086 3.53327 6.99086V6.99222ZM10.5207 5.88989L11.5414 9.06223L8.88945 7.09355L6.2368 9.06223L7.25757 5.88989L4.59688 3.93481L7.8814 3.94229L8.88945 0.767235L9.89683 3.94229L13.1814 3.93481L10.5207 5.88989ZM16.1901 5.01946C16.1901 6.10683 15.3193 6.99222 14.2483 6.99222C14.1285 6.99222 14.012 6.9793 13.8982 6.95958C14.1245 6.3564 14.2483 5.70357 14.2483 5.02014V3.93073H16.1901V5.02014V5.01946Z",fill:"white"})),t("span",{class:"Ranking"},r("myRanking",this.language))),this.showHeader&&this.items&&this.items.length>0&&t("div",{class:"LeaderboardRow LeaderboardHeader"},this.columns.map((i=>t("div",null,r(i,this.language))))),this.items&&t("div",{class:"LeaderboardBody"},this.items.map(((i,n)=>t("div",{class:"Row",part:"Row"},t("div",{class:`LeaderboardRow Rank${n+1} ${this.userId==i.userID?"RankPlayer":""}`},t("div",{class:"Rank"},this.showTopIcon&&i.rank<=3?t("span",{class:"TopRank"},t("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15",fill:"none"},t("path",{d:"M1.50156 0.76875C1.31172 1.0043 0.991797 1.51406 0.879297 1.75313C0.496094 2.60742 0.478516 3.35273 0.826562 4.17891C0.847656 4.23516 0.830078 4.24219 0.7 4.24219C0.615625 4.24219 0.485547 4.25273 0.415234 4.26328C0.285156 4.28438 0.278125 4.29492 0.211328 4.51992C0.0601562 5.0332 0.025 5.27227 0.0214844 5.78906C0.0214844 6.39727 0.0707031 6.64336 0.299219 7.11445C0.425781 7.37109 0.520703 7.50117 0.75625 7.75078L1.05508 8.06719L0.928516 8.14805C0.854687 8.19023 0.682422 8.32031 0.541797 8.4293L0.285156 8.6332L0.373047 8.91797C0.583984 9.6 0.875781 10.1344 1.25898 10.5422C1.60703 10.9078 2.12383 11.2207 2.50703 11.291C2.57734 11.3051 2.63711 11.3332 2.63711 11.3508C2.63711 11.3684 2.59141 11.4527 2.53164 11.5371C2.47539 11.6215 2.42617 11.7059 2.42617 11.7199C2.42617 11.7691 2.8375 12.3598 3.0168 12.5707C3.37891 12.9961 3.97656 13.3758 4.525 13.5305C4.87305 13.6289 5.49883 13.6359 5.81875 13.5516C6.41641 13.3898 6.90156 13.098 7.32344 12.6445L7.58359 12.3633L7.70312 12.4055C7.99141 12.5039 8.24805 12.7395 8.38164 13.0277C8.44844 13.1754 8.45547 13.2633 8.46602 13.991L8.47656 14.7891H9.00039H9.52422L9.53477 13.9875C9.54531 13.2633 9.55234 13.1754 9.61914 13.0277C9.75273 12.7395 10.0094 12.5039 10.2977 12.4055L10.4172 12.3633L10.6773 12.6445C11.0992 13.098 11.5844 13.3898 12.182 13.5516C12.502 13.6359 13.1277 13.6289 13.4758 13.5305C14.0242 13.3758 14.6219 12.9961 14.984 12.5707C15.1633 12.3598 15.5746 11.7691 15.5746 11.7199C15.5746 11.7059 15.5254 11.6215 15.4691 11.5371C15.4129 11.4527 15.3637 11.3684 15.3637 11.3508C15.3637 11.3332 15.4234 11.3051 15.4937 11.291C15.5676 11.277 15.7223 11.2277 15.8383 11.1785C16.6609 10.834 17.2797 10.05 17.6277 8.91094L17.7156 8.6332L17.459 8.4293C17.3184 8.32031 17.1461 8.19023 17.0723 8.14805L16.9457 8.06719L17.2445 7.75078C17.4801 7.50117 17.575 7.37109 17.7016 7.11445C17.923 6.65391 17.9793 6.39727 17.9793 5.80664C17.9828 5.30742 17.9441 5.06836 17.7859 4.51992C17.7227 4.29492 17.7156 4.28438 17.5855 4.26328C17.5152 4.25273 17.3852 4.24219 17.3008 4.24219C17.1707 4.24219 17.1531 4.23516 17.1742 4.17891C17.6066 3.14883 17.4801 2.21719 16.7559 1.13438C16.3867 0.578907 16.4254 0.6 16.0527 0.708984C14.977 1.02188 14.2703 1.57383 13.866 2.42461C13.5637 3.06445 13.5637 3.87656 13.8695 4.61484C13.982 4.88555 14.1367 5.17383 14.2738 5.36719C14.3371 5.45508 14.3371 5.46211 14.2 5.73633C14.1262 5.89102 14.0312 6.16523 13.9891 6.34453C13.9223 6.63281 13.9152 6.73477 13.9363 7.18828C13.9469 7.47305 13.9645 7.7543 13.9785 7.81406C13.9961 7.91602 13.9855 7.93359 13.7746 8.08477C13.3211 8.40469 12.9168 8.94961 12.6918 9.52617C12.5371 9.92344 12.5441 9.91641 12.3754 9.94453C12.0168 10.0078 11.5879 10.1941 11.2293 10.4508C11.0219 10.5984 10.4066 11.2172 10.4066 11.277C10.4066 11.2945 10.375 11.3086 10.3398 11.3086C10.3012 11.3086 10.1465 11.3473 9.99531 11.3965C9.69297 11.4914 9.39766 11.6707 9.15859 11.9027L9.00039 12.0539L8.85625 11.9098C8.63477 11.6883 8.30781 11.4914 8.00547 11.3965C7.8543 11.3473 7.69961 11.3086 7.66094 11.3086C7.62578 11.3086 7.59414 11.2945 7.59414 11.277C7.59414 11.2172 6.97891 10.5984 6.76797 10.4473C6.4832 10.2434 6.08945 10.057 5.78359 9.98672C5.65 9.95508 5.51641 9.91992 5.4918 9.90586C5.46719 9.89531 5.39336 9.74766 5.33008 9.57891C5.10156 8.9707 4.69023 8.41523 4.22969 8.08477C4.01523 7.93359 4.00469 7.91602 4.02227 7.81406C4.03633 7.7543 4.05391 7.47305 4.06445 7.18828C4.08555 6.73477 4.07852 6.63281 4.01172 6.34453C3.96953 6.16523 3.87461 5.89102 3.80078 5.73633L3.66367 5.45859L3.76914 5.30391C3.90273 5.11055 4.12422 4.66406 4.20156 4.43555C4.36328 3.95391 4.40547 3.38438 4.30703 2.92383C4.09961 1.95352 3.26641 1.12734 2.12734 0.765235C1.60703 0.6 1.63867 0.6 1.50156 0.76875ZM2.26445 1.95703C2.75664 2.19961 3.09766 2.58281 3.23828 3.05391C3.37187 3.48633 3.28398 4.04531 3.0168 4.51641L2.91133 4.69922L2.62656 4.55156C1.77227 4.10859 1.42422 3.22969 1.76172 2.37188C1.84258 2.16797 2.0043 1.85156 2.03242 1.85156C2.03945 1.85156 2.14492 1.90078 2.26445 1.95703ZM16.1371 2.15039C16.5133 2.92031 16.4184 3.65156 15.8734 4.18945C15.7328 4.32656 15.5465 4.46016 15.3707 4.55156L15.0895 4.69922L15.0156 4.57266C14.541 3.76758 14.6043 2.92031 15.1809 2.35078C15.3602 2.17852 15.8629 1.85859 15.9684 1.85156C15.9824 1.85156 16.0598 1.98516 16.1371 2.15039ZM1.59297 5.31445C1.96211 5.37773 2.27852 5.53242 2.52813 5.77148C2.76016 5.99297 2.89375 6.21445 2.97109 6.50977C3.02383 6.7207 3.04141 7.26914 3.00273 7.47656L2.97812 7.58906L2.71797 7.56797C1.64219 7.46953 1.00234 6.72773 1.06211 5.65195C1.07266 5.47969 1.09023 5.32148 1.1043 5.30039C1.13594 5.25117 1.25547 5.25469 1.59297 5.31445ZM16.893 5.29688C16.9387 5.37422 16.9527 5.92969 16.9141 6.1582C16.7699 6.97383 16.1863 7.47305 15.2547 7.56797L15.0227 7.58906L14.998 7.47656C14.9594 7.26914 14.977 6.7207 15.0297 6.50977C15.1914 5.89453 15.7117 5.4375 16.3937 5.31445C16.7066 5.2582 16.8648 5.25117 16.893 5.29688ZM3.2418 8.73867C3.51602 8.84414 3.80781 9.06914 3.99766 9.32227C4.19102 9.57539 4.34219 9.87422 4.31758 9.94453C4.30703 9.97266 4.19453 10.043 4.07148 10.1063C3.08711 10.5879 2.13086 10.2539 1.62109 9.24492C1.58242 9.16406 1.54727 9.07266 1.54727 9.04453C1.54727 8.97422 1.97617 8.75625 2.24336 8.68945C2.52109 8.61914 2.98516 8.64375 3.2418 8.73867ZM15.7434 8.68945C16.0176 8.75625 16.4535 8.9707 16.4535 9.04453C16.4535 9.19922 16.0809 9.75469 15.8418 9.94805C15.3039 10.391 14.6113 10.4437 13.9152 10.0922C13.7781 10.0219 13.6762 9.94805 13.6762 9.91992C13.6762 9.83203 13.8309 9.55078 14.0031 9.32227C14.425 8.75977 15.0648 8.53125 15.7434 8.68945ZM5.5375 11.0098C5.65 11.0414 5.83984 11.1152 5.95586 11.1785C6.1668 11.291 6.64492 11.7129 6.64492 11.7902C6.64492 11.8113 6.53594 11.9309 6.40234 12.0539C5.63242 12.7676 4.72891 12.743 3.94141 11.9871L3.67422 11.7305L3.90977 11.509C4.40195 11.0414 4.975 10.8656 5.5375 11.0098ZM13.2367 11.0098C13.5391 11.0906 13.8273 11.2559 14.091 11.509L14.3266 11.7305L14.0594 11.9871C13.2719 12.743 12.3684 12.7676 11.5984 12.0539C11.4648 11.9309 11.3559 11.8113 11.3559 11.7902C11.3559 11.7656 11.4648 11.6461 11.5949 11.5195C12.0906 11.0449 12.6707 10.8621 13.2367 11.0098Z",fill:"white"})),t("span",{class:"TopRankText"},i.rank)):i.rank,this.userId==i.userID&&1==this.rankChanged&&t("span",{class:"ArrowWrap"},this.rankUp&&t("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("circle",{cx:"4.9999",cy:"4.9999",r:"4.9999",fill:"#434647"}),t("g",{"clip-path":"url(#clip0_2591_1149)"},t("line",{x1:"4.93332",y1:"4",x2:"4.93332",y2:"7.99992",stroke:"#59CA00","stroke-width":"1.86663"}),t("path",{d:"M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z",fill:"#59CA00"})),t("defs",null,t("clipPath",{id:"clip0_2591_1149"},t("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"translate(1.99902 2)"})))),this.rankDown&&t("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t("circle",{r:"4.9999",transform:"matrix(1 0 0 -1 4.9999 5.0001)",fill:"#434647"}),t("g",{"clip-path":"url(#clip0_2591_1154)"},t("line",{y1:"-0.933315",x2:"3.99992",y2:"-0.933315",transform:"matrix(0 -1 -1 0 4 6)",stroke:"#CA0000","stroke-width":"1.86663"}),t("path",{d:"M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z",fill:"#CA0000"})),t("defs",null,t("clipPath",{id:"clip0_2591_1154"},t("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"matrix(1 0 0 -1 1.99902 8)"})))))),t("div",{class:"Player"},i.shortName),t("div",{class:"Points"},i.score),t("div",{class:"Prize"},i.prizeName)))))))}get host(){return n(this)}};l.style=":host{display:block}.LeaderboardBody{background:var(--emfe-w-tournament-color-bg, #153a5c)}.Row{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.LeaderboardRow{display:grid;grid-template-columns:repeat(4, 1fr);color:var(--emfe-w-color-white, #FFFFFF);background:var(--emfe-w-tournament-color-bg, #153a5c);text-align:center;padding:6px;font-size:12px}.LeaderboardHeader{padding:10px;font-size:14px;margin-bottom:8px}.Title{display:flex;gap:10px;padding:8px 6px;margin:10px;justify-content:center}.Ranking{font-size:14px;font-weight:600;color:var(--emfe-w-color-white, #FFFFFF)}.Rank1{background:#7e6c22;border-radius:2px}.Rank2{background:#666;border-radius:2px}.Rank3{background:#6a5446;border-radius:2px}.RankPlayer{background:#12753a;border-radius:2px}.Rank{position:relative}.ArrowWrap{position:absolute}.Arrow{animation-name:twinkle;animation-duration:1s;animation-iteration-count:infinite;width:14px;height:14px}.Arrow.Show{display:inline-flex}.Arrow.Hide{display:none}.TopRank{position:relative}.TopRankText{position:absolute;font-size:7px;left:40%}@keyframes twinkle{0%{opacity:0}25%{opacity:1}100%{opacity:0}}";export{l as casino_tournament_leaderboard}
@@ -1 +0,0 @@
1
- let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=new WeakMap,a=e=>"sc-"+e.o,f={},h=e=>"object"==(e=typeof e)||"function"===e,$=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!h(l))&&(l+=""),s&&o?r[r.length-1].i+=l:r.push(s?d(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=d(e,null);return c.u=t,r.length>0&&(c.h=r),c},d=(e,t)=>({t:0,$:e,i:t,p:null,h:null,u:null}),p={},m=(e,t,n,l,s,o)=>{if(n!==l){let r=V(e,t);if(t.toLowerCase(),"class"===t){const t=e.classList,s=w(n),o=w(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else{const i=h(l);if((r||i&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!r||4&o||s)&&!i&&e.setAttribute(t,l=!0===l?"":l)}}},y=/\s/,w=e=>e?e.split(y):[],b=(e,t,n,l)=>{const s=11===t.p.nodeType&&t.p.host?t.p.host:t.p,o=e&&e.u||f,r=t.u||f;for(l in o)l in r||m(s,l,o[l],void 0,n,t.t);for(l in r)m(s,l,o[l],r[l],n,t.t)},g=(t,l,s)=>{let r,i,c=l.h[s],u=0;if(null!==c.i)r=c.p=o.createTextNode(c.i);else{if(n||(n="svg"===c.$),r=c.p=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.$),n&&"foreignObject"===c.$&&(n=!1),b(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.h)for(u=0;u<c.h.length;++u)i=g(t,c,u),i&&r.appendChild(i);"svg"===c.$?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},S=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=g(null,l,o),i&&(s[o].p=i,c.insertBefore(i,n)))},j=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.p.remove()},v=(e,t)=>e.$===t.$,O=(e,t)=>{const l=t.p=e.p,s=e.h,o=t.h,r=t.$,i=t.i;null===i?(n="svg"===r||"foreignObject"!==r&&n,b(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:v(c,f)?(O(c,f),c=t[++o],f=l[++r]):v(u,h)?(O(u,h),u=t[--i],h=l[--a]):v(c,h)?(O(c,h),e.insertBefore(c.p,u.p.nextSibling),c=t[++o],h=l[--a]):v(u,f)?(O(u,f),e.insertBefore(u.p,c.p),u=t[--i],f=l[++r]):(s=g(t&&t[r],n,r),f=l[++r],s&&c.p.parentNode.insertBefore(s,c.p));o>i?S(e,null==l[a+1]?null:l[a+1].p,n,l,r,a):r>a&&j(t,o,i)})(l,s,t,o):null!==o?(null!==e.i&&(l.textContent=""),S(l,null,t,o,0,o.length-1)):null!==s&&j(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.i!==i&&(l.data=i)},M=e=>q(e).m,k=(e,t)=>{t&&!e.g&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.g=t)))},C=(e,t)=>{if(e.t|=16,!(4&e.t))return k(e,e.S),Z((()=>x(e,t)));e.t|=512},x=(e,t)=>{const n=e.j;let l;return t&&(l=R(n,"componentWillLoad")),T(l,(()=>P(e,n,t)))},P=async(e,t,n)=>{const l=e.m,s=l["s-rc"];n&&(e=>{const t=e.v,n=e.m,l=t.t,s=((e,t)=>{let n=a(t),l=G.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=u.get(e=e.head||e);s||u.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);E(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>L(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},E=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.m,o=n.v,r=n.O||d(null,null),i=(e=>e&&e.$===p)(l)?l:$(null,null,l);t=s.tagName,o.M&&(i.u=i.u||{},o.M.map((([e,t])=>i.u[t]=s[e]))),i.$=null,i.t|=4,n.O=i,i.p=r.p=s.shadowRoot||s,e=s["s-sc"],O(r,i)})(n,l)}catch(e){_(e,n.m)}return null},L=e=>{const t=e.m,n=e.S;R(e.j,"componentDidRender"),64&e.t||(e.t|=64,W(t),e.k(t),n||N()),e.g&&(e.g(),e.g=void 0),512&e.t&&Y((()=>C(e,!1))),e.t&=-517},N=()=>{W(o.documentElement),Y((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-leaderboard"}});return e.dispatchEvent(t),t})(s)))},R=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){_(e)}},T=(e,t)=>e&&e.then?e.then(t):t(),W=e=>e.classList.add("hydrated"),A=(e,t,n)=>{if(t.C){const l=Object.entries(t.C),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>q(this).P.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=q(e),o=s.P.get(t),r=s.t,i=s.j;n=((e,t)=>null==e||h(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,l.C[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.P.set(t,n),i&&2==(18&r)&&C(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const n=new Map;s.attributeChangedCallback=function(e,t,l){r.jmp((()=>{const t=n.get(e);if(this.hasOwnProperty(t))l=this[t],delete this[t];else if(s.hasOwnProperty(t)&&"number"==typeof this[t]&&this[t]==l)return;this[t]=(null!==l||"boolean"!=typeof this[t])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,l])=>{const s=l[1]||e;return n.set(s,e),512&l[0]&&t.M.push([e,s]),s}))}}return e},F=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,u=o.head,f=u.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let d,p=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],o:t[1],C:t[2],L:t[3]};s.C=t[2],s.M=[];const o=s.o,u=class extends HTMLElement{constructor(e){super(e),H(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){d&&(clearTimeout(d),d=null),p?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=q(e),n=t.v,l=()=>{};if(!(1&t.t)){t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){k(t,t.S=n);break}}n.C&&Object.entries(n.C).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=B(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(A(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){_(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=a(n);if(!G.has(t)){const l=()=>{};((e,t,n)=>{let l=G.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,G.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.S,r=()=>C(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>{}))}componentOnReady(){return q(this).N}};s.R=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,A(u,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),u.insertBefore(h,f?f.nextSibling:u.firstChild),p=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>d=setTimeout(N,30)))},U=new WeakMap,q=e=>U.get(e),D=(e,t)=>U.set(t.j=e,t),H=(e,t)=>{const n={t:0,m:e,v:t,P:new Map};return n.N=new Promise((e=>n.k=e)),e["s-p"]=[],e["s-rc"]=[],U.set(e,n)},V=(e,t)=>t in e,_=(e,t)=>(0,console.error)(e,t),z=new Map,B=e=>{const t=e.o.replace(/-/g,"_"),n=e.R,l=z.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(z.set(n,e),e[t])),_)},G=new Map,I=[],J=[],K=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?Y(X):r.raf(X))},Q=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){_(e)}e.length=0},X=()=>{Q(I),Q(J),(l=I.length>0)&&r.raf(X)},Y=e=>i().then(e),Z=K(J,!0);export{F as b,M as g,$ as h,i as p,D as r}