@everymatrix/casino-my-tournaments 1.44.0 → 1.45.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/dist/casino-my-tournaments/casino-my-tournaments.esm.js +1 -1
  2. package/dist/casino-my-tournaments/p-5aed21ab.entry.js +15 -0
  3. package/dist/casino-my-tournaments/p-72404776.js +2 -0
  4. package/dist/casino-my-tournaments/p-e1255160.js +1 -0
  5. package/dist/cjs/app-globals-3a1e7e63.js +5 -0
  6. package/dist/cjs/casino-my-tournaments.cjs.js +17 -11
  7. package/dist/cjs/casino-my-tournaments_8.cjs.entry.js +3086 -3167
  8. package/dist/cjs/index-86033f23.js +1358 -0
  9. package/dist/cjs/loader.cjs.js +7 -13
  10. package/dist/collection/collection-manifest.json +3 -3
  11. package/dist/collection/components/casino-my-tournaments/casino-my-tournaments.js +358 -369
  12. package/dist/collection/components/casino-my-tournaments/index.js +1 -0
  13. package/dist/collection/utils/locale.utils.js +46 -46
  14. package/dist/collection/utils/utils.js +1 -1
  15. package/dist/esm/app-globals-0f993ce5.js +3 -0
  16. package/dist/esm/casino-my-tournaments.js +14 -11
  17. package/dist/esm/casino-my-tournaments_8.entry.js +3086 -3167
  18. package/dist/esm/index-64629245.js +1330 -0
  19. package/dist/esm/loader.js +7 -13
  20. package/dist/stencil.config.dev.js +17 -0
  21. package/dist/stencil.config.js +14 -19
  22. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-my-tournaments/.stencil/packages/stencil/casino-my-tournaments/stencil.config.d.ts +2 -0
  23. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-my-tournaments/.stencil/packages/stencil/casino-my-tournaments/stencil.config.dev.d.ts +2 -0
  24. package/dist/types/components/casino-my-tournaments/casino-my-tournaments.d.ts +64 -64
  25. package/dist/types/components/casino-my-tournaments/index.d.ts +1 -0
  26. package/dist/types/components.d.ts +18 -2
  27. package/dist/types/stencil-public-runtime.d.ts +142 -33
  28. package/loader/cdn.js +1 -3
  29. package/loader/index.cjs.js +1 -3
  30. package/loader/index.d.ts +13 -1
  31. package/loader/index.es2017.js +1 -3
  32. package/loader/index.js +1 -3
  33. package/loader/package.json +1 -0
  34. package/package.json +14 -1
  35. package/dist/casino-my-tournaments/p-916b1393.js +0 -1
  36. package/dist/casino-my-tournaments/p-a36815d0.entry.js +0 -15
  37. package/dist/cjs/index-fe97f7f0.js +0 -1348
  38. package/dist/components/casino-my-tournaments.d.ts +0 -11
  39. package/dist/components/casino-my-tournaments.js +0 -274
  40. package/dist/components/casino-tournament-banner.js +0 -6
  41. package/dist/components/casino-tournament-banner2.js +0 -674
  42. package/dist/components/casino-tournament-buttons.js +0 -6
  43. package/dist/components/casino-tournament-buttons2.js +0 -596
  44. package/dist/components/casino-tournament-duration.js +0 -6
  45. package/dist/components/casino-tournament-duration2.js +0 -254
  46. package/dist/components/casino-tournament-info.js +0 -6
  47. package/dist/components/casino-tournament-info2.js +0 -591
  48. package/dist/components/casino-tournament-leaderboard.js +0 -6
  49. package/dist/components/casino-tournament-leaderboard2.js +0 -1508
  50. package/dist/components/casino-tournament-prizes.js +0 -6
  51. package/dist/components/casino-tournament-prizes2.js +0 -202
  52. package/dist/components/general-slider.js +0 -6
  53. package/dist/components/general-slider2.js +0 -257
  54. package/dist/components/index.d.ts +0 -26
  55. package/dist/components/index.js +0 -1
  56. package/dist/components/moment.js +0 -5677
  57. package/dist/esm/index-9b806ec3.js +0 -1321
  58. package/dist/esm/polyfills/core-js.js +0 -11
  59. package/dist/esm/polyfills/css-shim.js +0 -1
  60. package/dist/esm/polyfills/dom.js +0 -79
  61. package/dist/esm/polyfills/es5-html-element.js +0 -1
  62. package/dist/esm/polyfills/index.js +0 -34
  63. package/dist/esm/polyfills/system.js +0 -6
  64. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-stencil/packages/casino-my-tournaments/.stencil/packages/casino-my-tournaments/stencil.config.d.ts +0 -2
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-916b1393.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((t=>e([["p-a36815d0",[[1,"casino-my-tournaments",{endpoint:[1],language:[1],userId:[1,"user-id"],session:[1],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],currency:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[513,"translation-url"],limitStylingAppends:[32],bannerProps:[32],infoProps:[32],leaderboardProps:[32],tournaments:[32],collapsed:[32],translationData:[32]}],[1,"casino-tournament-info",{endpoint:[1],nameOrTitle:[1,"name-or-title"],scoreCriteria:[1,"score-criteria"],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],termsUrl:[1,"terms-url"],keepContext:[4,"keep-context"],useGroup:[4,"use-group"],align:[1],showDates:[4,"show-dates"],showPrizes:[4,"show-prizes"],showButton:[4,"show-button"],shortStart:[4,"short-start"],seeGames:[4,"see-games"],useEvent:[4,"use-event"],startTime:[1,"start-time"],endTime:[1,"end-time"],minBetCount:[2,"min-bet-count"],prizes:[8],shortStartFormat:[1,"short-start-format"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],enrolled:[4],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],translationUrl:[513,"translation-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],description:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"],[8,"TournamentUserEnrolled","userEnrolledHandler"]]],[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]}],[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}],[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]}],[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],t)));
1
+ import{p as t,b as e}from"./p-72404776.js";export{s as setNonce}from"./p-72404776.js";import{g as n}from"./p-e1255160.js";(()=>{const e=import.meta.url,n={};return""!==e&&(n.resourcesUrl=new URL(".",e).href),t(n)})().then((async t=>(await n(),e([["p-5aed21ab",[[1,"casino-my-tournaments",{endpoint:[1],language:[1],userId:[1,"user-id"],session:[1],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],currency:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationUrl:[513,"translation-url"],limitStylingAppends:[32],bannerProps:[32],infoProps:[32],leaderboardProps:[32],tournaments:[32],collapsed:[32],translationData:[32]},null,{session:["updateTournament"]}],[1,"casino-tournament-info",{endpoint:[1],nameOrTitle:[1,"name-or-title"],scoreCriteria:[1,"score-criteria"],tournamentId:[1,"tournament-id"],session:[1],userId:[1,"user-id"],language:[1],termsUrl:[1,"terms-url"],keepContext:[4,"keep-context"],useGroup:[4,"use-group"],align:[1],showDates:[4,"show-dates"],showPrizes:[4,"show-prizes"],showButton:[4,"show-button"],shortStart:[4,"short-start"],seeGames:[4,"see-games"],useEvent:[4,"use-event"],startTime:[1,"start-time"],endTime:[1,"end-time"],minBetCount:[2,"min-bet-count"],prizes:[8],shortStartFormat:[1,"short-start-format"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],enrolled:[4],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],translationUrl:[513,"translation-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],startDate:[32],tournamentInfo:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],description:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[32]},[[8,"getTournamentInfoCompleted","infoCompletedHandler"],[8,"TournamentUserEnrolled","userEnrolledHandler"]],{language:["watchLanguage"]}],[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]}],[1,"general-slider",{slideNumber:[2,"slide-number"],slideShow:[2,"slide-show"],showArrow:[4,"show-arrow"],showButton:[4,"show-button"],autoSlide:[4,"auto-slide"],loopTime:[2,"loop-time"],autoItemHeight:[4,"auto-item-height"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],currentSlideNumber:[32],slidesCount:[32],limitStylingAppends:[32]}],[1,"casino-tournament-duration",{startTime:[1,"start-time"],endTime:[1,"end-time"],status:[1],language:[1],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],tournamentUntilStartDays:[32],tournamentLeftDays:[32],showRemain:[32],limitStylingAppends:[32],durationInterval:[32]},null,{language:["watchLanguage"]}],[1,"casino-tournament-prizes",{language:[1],useGroup:[4,"use-group"],useEvent:[4,"use-event"],endpoint:[1],session:[1],rawPrizes:[1,"raw-prizes"],tournamentId:[1,"tournament-id"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],limitStylingAppends:[32],prizes:[32],prizeGroups:[32],initialLoad:[32]},[[10,"getTournamentInfoCompleted","infoCompletedHandler"]]],[1,"casino-tournament-buttons",{language:[1],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],endpoint:[1],currency:[1],bonusCode:[1,"bonus-code"],enrolled:[4],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],translationData:[520,"translation-data"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],t))));
@@ -0,0 +1,15 @@
1
+ import{r as t,c as e,h as i,g as n}from"./p-72404776.js";const r={en:{casinoMyTournaments:"My Tournaments",unloggedIn:"You must be logged in to see your tournaments",noTournaments:"You don't have any tournaments."},"zh-hk":{casinoMyTournaments:"我的锦标赛"},fr:{casinoMyTournaments:"Mes tournois"},ro:{casinoMyTournaments:"Turneele Mele"},tr:{casinoMyTournaments:"Turnuvalarım"},el:{casinoMyTournaments:"Τα τουρνουά μου"},es:{casinoMyTournaments:"Mis Torneos"},hu:{casinoMyTournaments:"Versenyeim"},hr:{casinoMyTournaments:"Moji turniri"}},s=(t,e)=>{var i,n;return(null===(i=r[e])||void 0===i?void 0:i[t])||(null===(n=r.en)||void 0===n?void 0:n[t])},a=class{constructor(i){t(this,i),this.getTournamentInfoCompleted=e(this,"getTournamentInfoCompleted",7),this.updateTournamentCompleted=e(this,"updateTournamentCompleted",7),this.endpoint=void 0,this.language=void 0,this.userId=void 0,this.session=void 0,this.autoSlide=!1,this.loopTime=0,this.currency="",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.limitStylingAppends=!1,this.bannerProps=void 0,this.infoProps=void 0,this.leaderboardProps=void 0,this.tournaments=void 0,this.collapsed=!1,this.translationData=void 0}async updateTournament(t,e){t!=e&&(this.tournaments=[],this.getTournamentInfo().then((t=>{this.tournaments=t.items,this.setTournaments()})).catch((t=>{console.log(t)})))}async getTournamentInfo(){let t=new URL(this.endpoint+"/v1/tournaments"),e=new Headers;return t.searchParams.append("language",this.language),t.searchParams.append("fields","id,playerEnrolled,wallets"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json()))}async componentWillLoad(){const t=[];if(this.endpoint){const e=this.getTournamentInfo().then((t=>{this.tournaments=t.items,this.setTournaments()})).catch((t=>{console.log(t)}));t.push(e)}if(this.translationUrl){const i=(e=this.translationUrl,new Promise(((t,i)=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])r[t][i]=e[t][i]})),t(r)})).catch((t=>{i(t)}))}))).then((t=>{this.translationData=JSON.stringify(t)})).catch((t=>{console.log(t)}));t.push(i)}var e;return Promise.all(t)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}setTournaments(){this.tournaments.length>0&&this.tournaments.forEach((t=>{t.wallets&&t.wallets[0]&&(t.bonusCode=t.wallets[0].code),this.getTournamentInfoCompleted.emit(t)}))}toggle(){this.collapsed=!this.collapsed}render(){return i("div",{key:"e565dec737cb40127a7037010c5c0255e8fced11",class:"MyTournaments"},i("div",{key:"0b49d3865dafc420d73b3b56e7075c72e02bbf2b",class:"TournamentsTitle"},i("div",{key:"b31b70be9c835b609f78407637ba01841564151f",class:"Title"},s("casinoMyTournaments",this.language)),i("div",{key:"b54f099221dea032b2a8838342e367663c779006",class:"CollapseButtonDetails",onClick:()=>this.toggle()},i("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"#ffffff","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},i("path",this.collapsed?{d:"M6 9l6 6 6-6"}:{d:"M18 15l-6-6-6 6"})))),!this.collapsed&&this.session&&i("div",{key:"e7bc127f392217f714dd78cdcd5950e13e90c433",class:"TournamentsContent"},this.tournaments&&this.tournaments.length>0&&i("ul",{key:"6c213ef866fca6807425b3e46540f815eefc1731",class:"Tournaments"},i("general-slider",{key:"021bd1bf7904e9f32bb0a625f3196aa91a585277","slide-number":"1","slide-show":"1","show-arrow":"false","show-button":"true","auto-slide":this.autoSlide,"loop-time":this.loopTime,"auto-item-height":"true"},this.tournaments.map((t=>i("li",{class:"Item"},i("casino-tournament-banner",{"show-date":"false","show-check":"true","tournament-id":t.id,state:t.state,enrolled:t.playerEnrolled,"start-time":t.startTime,"end-time":t.endTime,thumbnail:t.thumbnail,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}),i("casino-tournament-info",{"show-dates":"true","show-prizes":"false","show-button":"true","see-games":"true","tournament-id":t.id,"user-id":t.userId,"start-time":t.startTime,"end-time":t.endTime,prizes:t.prizes,"min-bet-count":t.minBetCount,"name-or-title":t.nameOrTitle,"score-criteria":t.scoreCriteria,enrolled:t.playerEnrolled,"bonus-code":t.bonusCode,endpoint:this.endpoint,session:this.session,language:this.language,currency:this.currency,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}),i("casino-tournament-leaderboard",{"update-leaderboard":"false","user-sticky":"true","user-only":"true","show-header":"false","show-title":"true","tournament-id":t.id,endpoint:this.endpoint,session:this.session,"user-id":this.userId,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))))),!this.tournaments||!this.tournaments.length&&i("div",{key:"0dab4589a0eabd63595ae75076a7f1e00b9841b3",class:"NoTournaments"},s("noTournaments",this.language))),!this.collapsed&&!this.session&&i("div",{key:"b013c42d6d3aa12d81ee7e05d46f0526ec9be155",class:"TournamentsContent"},i("p",{key:"abb5c091fbe91d52ebcf51ef2977ce5566a246bd",class:"TournamentUnLoggedIn"},s("unloggedIn",this.language))))}get host(){return n(this)}static get watchers(){return{session:["updateTournament"]}}};a.style=':host{display:block}.MyTournaments{background-color:var(--emw--casino-color-bg, var(--emw--color-background, #153a5c));border-radius:5px;width:338px;font-family:"Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", "Lucida Sans", Arial, sans-serif}.TournamentsTitle{display:flex;justify-content:space-between;padding:9px 12px;background-color:#14202D;border-radius:5px;border-bottom:2px solid var(--emw--casino-color-bg, var(--emw--color-background, #0072ed));align-items:center}.TournamentsContent{padding:10px 10px 20px}.TournamentUnLoggedIn{color:var(--emfe-w-color-white, #FFFFFF);text-align:center;padding:20px 40px}.Title{color:var(--emfe-w-color-white, #FFFFFF);font-size:16px;font-weight:700}.Tournaments{margin:0;background-color:#1a2c38;padding:4px 6px 8px 6px}.NoTournaments{color:var(--emfe-w-color-white, #FFFFFF)}.Item{width:100%;margin:0}.CollapseButtonDetails svg{width:24px;height:24px}casino-tournament-banner,casino-tournament-info,casino-tournament-leaderboard{width:100%}casino-tournament-info{position:relative;top:-10px;margin-bottom:-10px}casino-tournament-banner::part(TournamentBannerInfo){direction:rtl}casino-tournament-banner::part(BannerInfo){direction:ltr}casino-tournament-banner::part(TournamentBanner){border-top-left-radius:6px;border-top-right-radius:6px;height:140px}casino-tournament-info::part(TournamentInfo){border-radius:6px}casino-tournament-info::part(Remaining){text-align:center;font-weight:700}casino-tournament-info::part(StartDate){font-weight:700}casino-tournament-info::part(EndDate){font-weight:700}casino-tournament-info::part(ProgressBar){height:4px;border-radius:4px;background-color:var(--emfe-w-color-black, #000000)}casino-tournament-info::part(ProgressBarFill){background-color:var(--emfe-w-tournament-color-primary, #0072ed);height:4px;border-radius:4px}casino-tournament-info::part(ProgressBarFillStarting){background-color:var(--emfe-w-tournament-color-primary, #0072ed);height:4px;border-radius:4px}casino-tournament-info::part(ProgressBarFillEnd){height:4px;border-radius:4px}casino-tournament-leaderboard::part(Row){padding:0}general-slider::part(PageButtons){position:absolute;bottom:-20px;justify-content:flex-end;width:100%}';const o={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again.",tournament:"Tournament",terms:"Terms and conditions",left:"left",minutes:"minutes",hours:"hours",days:"days"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.",left:"rămase",minutes:"minute",hours:"ore",days:"zile",tournament:"turneu"},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.",left:"bal",minutes:"perc",hours:"óra",days:"nap"},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},u=(t,e)=>{var i,n;return(null===(i=o[e])||void 0===i?void 0:i[t])||(null===(n=o.en)||void 0===n?void 0:n[t])};
2
+ //! moment.js
3
+ //! version : 2.30.1
4
+ //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5
+ //! license : MIT
6
+ //! momentjs.com
7
+ var h,d;function l(){return h.apply(null,arguments)}function c(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function f(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function m(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function g(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(m(t,e))return!1;return!0}function p(t){return void 0===t}function b(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function y(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function v(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function w(t,e){for(var i in e)m(e,i)&&(t[i]=e[i]);return m(e,"toString")&&(t.toString=e.toString),m(e,"valueOf")&&(t.valueOf=e.valueOf),t}function k(t,e,i,n){return Oe(t,e,i,n,!0).utc()}function S(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function M(t){var e=null,i=!1,n=t._d&&!isNaN(t._d.getTime());return n&&(e=S(t),i=d.call(e.parsedDateParts,(function(t){return null!=t})),n=e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i),t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour)),null!=Object.isFrozen&&Object.isFrozen(t)?n:(t._isValid=n,t._isValid)}function C(t){var e=k(NaN);return null!=t?w(S(e),t):S(e).userInvalidated=!0,e}d=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var x=l.momentProperties=[],D=!1;function T(t,e){var i,n,r,s=x.length;if(p(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),p(e._i)||(t._i=e._i),p(e._f)||(t._f=e._f),p(e._l)||(t._l=e._l),p(e._strict)||(t._strict=e._strict),p(e._tzm)||(t._tzm=e._tzm),p(e._isUTC)||(t._isUTC=e._isUTC),p(e._offset)||(t._offset=e._offset),p(e._pf)||(t._pf=S(e)),p(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)p(r=e[n=x[i]])||(t[n]=r);return t}function A(t){T(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===D&&(D=!0,l.updateOffset(this),D=!1)}function R(t){return t instanceof A||null!=t&&null!=t._isAMomentObject}function F(t){!1===l.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function j(t,e){var i=!0;return w((function(){if(null!=l.deprecationHandler&&l.deprecationHandler(null,t),i){var n,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])m(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}F(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var N,Y={};function z(t,e){null!=l.deprecationHandler&&l.deprecationHandler(t,e),Y[t]||(F(e),Y[t]=!0)}function L(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function B(t,e){var i,n=w({},t);for(i in e)m(e,i)&&(f(t[i])&&f(e[i])?(n[i]={},w(n[i],t[i]),w(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)m(t,i)&&!m(e,i)&&f(t[i])&&(n[i]=w({},n[i]));return n}function J(t){null!=t&&this.set(t)}function P(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}l.suppressDeprecationWarnings=!1,l.deprecationHandler=null,N=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)m(t,e)&&i.push(e);return i};var H=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,O=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,W={},E={};function I(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(E[t]=r),e&&(E[e[0]]=function(){return P(r.apply(this,arguments),e[1],e[2])}),i&&(E[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t,e){return t.isValid()?(e=_(e,t.localeData()),W[e]=W[e]||function(t){var e,i,n,r=t.match(H);for(e=0,i=r.length;e<i;e++)r[e]=E[r[e]]?E[r[e]]:(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<i;n++)s+=L(r[n])?r[n].call(e,t):r[n];return s}}(e),W[e](t)):t.localeData().invalidDate()}function _(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(O.lastIndex=0;i>=0&&O.test(t);)t=t.replace(O,n),O.lastIndex=0,i-=1;return t}var V={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Z(t){return"string"==typeof t?V[t]||V[t.toLowerCase()]:void 0}function $(t){var e,i,n={};for(i in t)m(t,i)&&(e=Z(i))&&(n[e]=t[i]);return n}var U,q={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},K=/\d/,X=/\d\d/,Q=/\d{3}/,tt=/\d{4}/,et=/[+-]?\d{6}/,it=/\d\d?/,nt=/\d\d\d\d?/,rt=/\d\d\d\d\d\d?/,st=/\d{1,3}/,at=/\d{1,4}/,ot=/[+-]?\d{1,6}/,ut=/\d+/,ht=/[+-]?\d+/,dt=/Z|[+-]\d\d:?\d\d/gi,lt=/Z|[+-]\d\d(?::?\d\d)?/gi,ct=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ft=/^[1-9]\d?/,mt=/^([1-9]\d|\d)/;function gt(t,e,i){U[t]=L(e)?e:function(t){return t&&i?i:e}}function pt(t,e){return m(U,t)?U[t](e._strict,e._locale):new RegExp(bt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function bt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function yt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function vt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=yt(e)),i}U={};var wt={};function kt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),b(e)&&(r=function(t,i){i[e]=vt(t)}),n=t.length,i=0;i<n;i++)wt[t[i]]=r}function St(t,e){kt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Mt(t,e,i){null!=e&&m(wt,t)&&wt[t](e,i._a,i,t)}function Ct(t){return t%4==0&&t%100!=0||t%400==0}var xt=0,Dt=1,Tt=2,At=3,Rt=4,Ft=5,jt=6,Nt=7,Yt=8;function zt(t){return Ct(t)?366:365}I("Y",0,0,(function(){var t=this.year();return t<=9999?P(t,4):"+"+t})),I(0,["YY",2],0,(function(){return this.year()%100})),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),gt("Y",ht),gt("YY",it,X),gt("YYYY",at,tt),gt("YYYYY",ot,et),gt("YYYYYY",ot,et),kt(["YYYYY","YYYYYY"],xt),kt("YYYY",(function(t,e){e[xt]=2===t.length?l.parseTwoDigitYear(t):vt(t)})),kt("YY",(function(t,e){e[xt]=l.parseTwoDigitYear(t)})),kt("Y",(function(t,e){e[xt]=parseInt(t,10)})),l.parseTwoDigitYear=function(t){return vt(t)+(vt(t)>68?1900:2e3)};var Lt,Bt=Jt("FullYear",!0);function Jt(t,e){return function(i){return null!=i?(Ht(this,t,i),l.updateOffset(this,e),this):Pt(this,t)}}function Pt(t,e){if(!t.isValid())return NaN;var i=t._d,n=t._isUTC;switch(e){case"Milliseconds":return n?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return n?i.getUTCSeconds():i.getSeconds();case"Minutes":return n?i.getUTCMinutes():i.getMinutes();case"Hours":return n?i.getUTCHours():i.getHours();case"Date":return n?i.getUTCDate():i.getDate();case"Day":return n?i.getUTCDay():i.getDay();case"Month":return n?i.getUTCMonth():i.getMonth();case"FullYear":return n?i.getUTCFullYear():i.getFullYear();default:return NaN}}function Ht(t,e,i){var n,r,s,a,o;if(t.isValid()&&!isNaN(i)){switch(n=t._d,r=t._isUTC,e){case"Milliseconds":return void(r?n.setUTCMilliseconds(i):n.setMilliseconds(i));case"Seconds":return void(r?n.setUTCSeconds(i):n.setSeconds(i));case"Minutes":return void(r?n.setUTCMinutes(i):n.setMinutes(i));case"Hours":return void(r?n.setUTCHours(i):n.setHours(i));case"Date":return void(r?n.setUTCDate(i):n.setDate(i));case"FullYear":break;default:return}s=i,a=t.month(),o=29!==(o=t.date())||1!==a||Ct(s)?o:28,r?n.setUTCFullYear(s,a,o):n.setFullYear(s,a,o)}}function Ot(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?Ct(t)?29:28:31-i%7%2}Lt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},I("M",["MM",2],"Mo",(function(){return this.month()+1})),I("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),I("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),gt("M",it,ft),gt("MM",it,X),gt("MMM",(function(t,e){return e.monthsShortRegex(t)})),gt("MMMM",(function(t,e){return e.monthsRegex(t)})),kt(["M","MM"],(function(t,e){e[Dt]=vt(t)-1})),kt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[Dt]=r:S(i).invalidMonth=t}));var Wt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Et="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),It=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Gt=ct,_t=ct;function Vt(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=k([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Lt.call(this._shortMonthsParse,a))?r:null:-1!==(r=Lt.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Lt.call(this._shortMonthsParse,a))||-1!==(r=Lt.call(this._longMonthsParse,a))?r:null:-1!==(r=Lt.call(this._longMonthsParse,a))||-1!==(r=Lt.call(this._shortMonthsParse,a))?r:null}function Zt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=vt(e);else if(!b(e=t.localeData().monthsParse(e)))return t;var i=e,n=t.date();return n=n<29?n:Math.min(n,Ot(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function $t(t){return null!=t?(Zt(this,t),l.updateOffset(this,!0),this):Pt(this,"Month")}function Ut(){function t(t,e){return e.length-t.length}var e,i,n,r,s=[],a=[],o=[];for(e=0;e<12;e++)i=k([2e3,e]),n=bt(this.monthsShort(i,"")),r=bt(this.months(i,"")),s.push(n),a.push(r),o.push(r),o.push(n);s.sort(t),a.sort(t),o.sort(t),this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+s.join("|")+")","i")}function qt(t,e,i,n,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,i,n,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,n,r,s,a),o}function Kt(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Xt(t,e,i){var n=7+e-i;return-(7+Kt(t,0,n).getUTCDay()-e)%7+n-1}function Qt(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+Xt(t,n,r);return o<=0?a=zt(s=t-1)+o:o>zt(t)?(s=t+1,a=o-zt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function te(t,e,i){var n,r,s=Xt(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+ee(r=t.year()-1,e,i):a>ee(t.year(),e,i)?(n=a-ee(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function ee(t,e,i){var n=Xt(t,e,i),r=Xt(t+1,e,i);return(zt(t)-n+r)/7}function ie(t,e){return t.slice(e,7).concat(t.slice(0,e))}I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),gt("w",it,ft),gt("ww",it,X),gt("W",it,ft),gt("WW",it,X),St(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=vt(t)})),I("d",0,"do","day"),I("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),I("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),I("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),gt("d",it),gt("e",it),gt("E",it),gt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),gt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),gt("dddd",(function(t,e){return e.weekdaysRegex(t)})),St(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:S(i).invalidWeekday=t})),St(["d","e","E"],(function(t,e,i,n){e[n]=vt(t)}));var ne="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),re="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),se="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ae=ct,oe=ct,ue=ct;function he(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=k([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Lt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Lt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Lt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Lt.call(this._weekdaysParse,a))||-1!==(r=Lt.call(this._shortWeekdaysParse,a))||-1!==(r=Lt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Lt.call(this._shortWeekdaysParse,a))||-1!==(r=Lt.call(this._weekdaysParse,a))||-1!==(r=Lt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Lt.call(this._minWeekdaysParse,a))||-1!==(r=Lt.call(this._weekdaysParse,a))||-1!==(r=Lt.call(this._shortWeekdaysParse,a))?r:null}function de(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)i=k([2e3,1]).day(e),n=bt(this.weekdaysMin(i,"")),r=bt(this.weekdaysShort(i,"")),s=bt(this.weekdays(i,"")),a.push(n),o.push(r),u.push(s),h.push(n),h.push(r),h.push(s);a.sort(t),o.sort(t),u.sort(t),h.sort(t),this._weekdaysRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function le(){return this.hours()%12||12}function ce(t,e){I(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function fe(t,e){return e._meridiemParse}I("H",["HH",2],0,"hour"),I("h",["hh",2],0,le),I("k",["kk",2],0,(function(){return this.hours()||24})),I("hmm",0,0,(function(){return""+le.apply(this)+P(this.minutes(),2)})),I("hmmss",0,0,(function(){return""+le.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)})),I("Hmm",0,0,(function(){return""+this.hours()+P(this.minutes(),2)})),I("Hmmss",0,0,(function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)})),ce("a",!0),ce("A",!1),gt("a",fe),gt("A",fe),gt("H",it,mt),gt("h",it,ft),gt("k",it,ft),gt("HH",it,X),gt("hh",it,X),gt("kk",it,X),gt("hmm",nt),gt("hmmss",rt),gt("Hmm",nt),gt("Hmmss",rt),kt(["H","HH"],At),kt(["k","kk"],(function(t,e){var i=vt(t);e[At]=24===i?0:i})),kt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),kt(["h","hh"],(function(t,e,i){e[At]=vt(t),S(i).bigHour=!0})),kt("hmm",(function(t,e,i){var n=t.length-2;e[At]=vt(t.substr(0,n)),e[Rt]=vt(t.substr(n)),S(i).bigHour=!0})),kt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[At]=vt(t.substr(0,n)),e[Rt]=vt(t.substr(n,2)),e[Ft]=vt(t.substr(r)),S(i).bigHour=!0})),kt("Hmm",(function(t,e){var i=t.length-2;e[At]=vt(t.substr(0,i)),e[Rt]=vt(t.substr(i))})),kt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[At]=vt(t.substr(0,i)),e[Rt]=vt(t.substr(i,2)),e[Ft]=vt(t.substr(n))}));var me,ge=Jt("Hours",!0),pe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Wt,monthsShort:Et,week:{dow:0,doy:6},weekdays:ne,weekdaysMin:se,weekdaysShort:re,meridiemParse:/[ap]\.?m?\.?/i},be={},ye={};function ve(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function we(t){return t?t.toLowerCase().replace("_","-"):t}function ke(t){var e=null;if(void 0===be[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(t))try{e=me._abbr,require("./locale/"+t),Se(e)}catch(e){be[t]=null}return be[t]}function Se(t,e){var i;return t&&((i=p(e)?Ce(t):Me(t,e))?me=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),me._abbr}function Me(t,e){if(null!==e){var i,n=pe;if(e.abbr=t,null!=be[t])z("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=be[t]._config;else if(null!=e.parentLocale)if(null!=be[e.parentLocale])n=be[e.parentLocale]._config;else{if(null==(i=ke(e.parentLocale)))return ye[e.parentLocale]||(ye[e.parentLocale]=[]),ye[e.parentLocale].push({name:t,config:e}),null;n=i._config}return be[t]=new J(B(n,e)),ye[t]&&ye[t].forEach((function(t){Me(t.name,t.config)})),Se(t),be[t]}return delete be[t],null}function Ce(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return me;if(!c(t)){if(e=ke(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=we(t[s]).split("-")).length,i=(i=we(t[s+1]))?i.split("-"):null;e>0;){if(n=ke(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&ve(r,i)>=e-1)break;e--}s++}return me}(t)}function xe(t){var e,i=t._a;return i&&-2===S(t).overflow&&(e=i[Dt]<0||i[Dt]>11?Dt:i[Tt]<1||i[Tt]>Ot(i[xt],i[Dt])?Tt:i[At]<0||i[At]>24||24===i[At]&&(0!==i[Rt]||0!==i[Ft]||0!==i[jt])?At:i[Rt]<0||i[Rt]>59?Rt:i[Ft]<0||i[Ft]>59?Ft:i[jt]<0||i[jt]>999?jt:-1,S(t)._overflowDayOfYear&&(e<xt||e>Tt)&&(e=Tt),S(t)._overflowWeeks&&-1===e&&(e=Nt),S(t)._overflowWeekday&&-1===e&&(e=Yt),S(t).overflow=e),t}var De=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Te=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ae=/Z|[+-]\d\d(?::?\d\d)?/,Re=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Fe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],je=/^\/?Date\((-?\d+)/i,Ne=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ye={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ze(t){var e,i,n,r,s,a,o=t._i,u=De.exec(o)||Te.exec(o),h=Re.length,d=Fe.length;if(u){for(S(t).iso=!0,e=0,i=h;e<i;e++)if(Re[e][1].exec(u[1])){r=Re[e][0],n=!1!==Re[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=d;e<i;e++)if(Fe[e][1].exec(u[3])){s=(u[2]||" ")+Fe[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Ae.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Pe(t)}else t._isValid=!1}function Le(t){var e,i,n,r,s,a,o,u,h,d=Ne.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(i=d[3],n=d[2],r=d[5],s=d[6],a=d[7],o=[(u=d[4],h=parseInt(u,10),h<=49?2e3+h:h<=999?1900+h:h),Et.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||re.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(S(i).weekdayMismatch=!0,i._isValid=!1,!1)}(d[1],e=o,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Ye[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(d[8],d[9],d[10]),t._d=Kt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),S(t).rfc2822=!0}else t._isValid=!1}function Be(t,e,i){return null!=t?t:null!=e?e:i}function Je(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(l.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Tt]&&null==t._a[Dt]&&function(t){var e,i,n,r,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,i=Be(e.GG,t._a[xt],te(We(),1,4).year),n=Be(e.W,1),((r=Be(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=te(We(),s,a),i=Be(e.gg,t._a[xt],h.year),n=Be(e.w,h.week),null!=e.d?((r=e.d)<0||r>6)&&(u=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(u=!0)):r=s),n<1||n>ee(i,s,a)?S(t)._overflowWeeks=!0:null!=u?S(t)._overflowWeekday=!0:(o=Qt(i,n,r,s,a),t._a[xt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Be(t._a[xt],n[xt]),(t._dayOfYear>zt(s)||0===t._dayOfYear)&&(S(t)._overflowDayOfYear=!0),i=Kt(s,0,t._dayOfYear),t._a[Dt]=i.getUTCMonth(),t._a[Tt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[At]&&0===t._a[Rt]&&0===t._a[Ft]&&0===t._a[jt]&&(t._nextDay=!0,t._a[At]=0),t._d=(t._useUTC?Kt:qt).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[At]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(S(t).weekdayMismatch=!0)}}function Pe(t){if(t._f!==l.ISO_8601)if(t._f!==l.RFC_2822){t._a=[],S(t).empty=!0;var e,i,n,r,s,a,o,u=""+t._i,h=u.length,d=0;for(o=(n=_(t._f,t._locale).match(H)||[]).length,e=0;e<o;e++)(i=(u.match(pt(r=n[e],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&S(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),d+=i.length),E[r]?(i?S(t).empty=!1:S(t).unusedTokens.push(r),Mt(r,i,t)):t._strict&&!i&&S(t).unusedTokens.push(r);S(t).charsLeftOver=h-d,u.length>0&&S(t).unusedInput.push(u),t._a[At]<=12&&!0===S(t).bigHour&&t._a[At]>0&&(S(t).bigHour=void 0),S(t).parsedDateParts=t._a.slice(0),S(t).meridiem=t._meridiem,t._a[At]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[At],t._meridiem),null!==(a=S(t).era)&&(t._a[xt]=t._locale.erasConvertYear(a,t._a[xt])),Je(t),xe(t)}else Le(t);else ze(t)}function He(t){var e=t._i,i=t._f;return t._locale=t._locale||Ce(t._l),null===e||void 0===i&&""===e?C({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),R(e)?new A(xe(e)):(y(e)?t._d=e:c(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return S(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=T({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Pe(e),M(e)&&(a=!0),s+=S(e).charsLeftOver,s+=10*S(e).unusedTokens.length,S(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));w(t,i||e)}(t):i?Pe(t):function(t){var e=t._i;p(e)?t._d=new Date(l.now()):y(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=je.exec(t._i);null===e?(ze(t),!1===t._isValid&&(delete t._isValid,Le(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:l.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):c(e)?(t._a=v(e.slice(0),(function(t){return parseInt(t,10)})),Je(t)):f(e)?function(t){if(!t._d){var e=$(t._i);t._a=v([e.year,e.month,void 0===e.day?e.date:e.day,e.hour,e.minute,e.second,e.millisecond],(function(t){return t&&parseInt(t,10)})),Je(t)}}(t):b(e)?t._d=new Date(e):l.createFromInputFallback(t)}(t),M(t)||(t._d=null),t))}function Oe(t,e,i,n,r){var s,a={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(f(t)&&g(t)||c(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=t,a._f=e,a._strict=n,(s=new A(xe(He(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function We(t,e,i,n){return Oe(t,e,i,n,!1)}l.createFromInputFallback=j("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",(function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))})),l.ISO_8601=function(){},l.RFC_2822=function(){};var Ee=j("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=We.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:C()})),Ie=j("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=We.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:C()}));function Ge(t,e){var i,n;if(1===e.length&&c(e[0])&&(e=e[0]),!e.length)return We();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var _e=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ve(t){var e=$(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,u=e.minute||0,h=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=_e.length;for(e in t)if(m(t,e)&&(-1===Lt.call(_e,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[_e[i]]){if(n)return!1;parseFloat(t[_e[i]])!==vt(t[_e[i]])&&(n=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=Ce(),this._bubble()}function Ze(t){return t instanceof Ve}function $e(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ue(t,e){I(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+P(~~(t/60),2)+e+P(~~t%60,2)}))}Ue("Z",":"),Ue("ZZ",""),gt("Z",lt),gt("ZZ",lt),kt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=Ke(lt,t)}));var qe=/([\+\-]|\d\d)/gi;function Ke(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(qe)||["-",0,0])[1]+vt(i[2]))?0:"+"===i[0]?n:-n}function Xe(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(R(t)||y(t)?t.valueOf():We(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),l.updateOffset(i,!1),i):We(t).local()}function Qe(t){return-Math.round(t._d.getTimezoneOffset())}function ti(){return!!this.isValid()&&this._isUTC&&0===this._offset}l.updateOffset=function(){};var ei=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,ii=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ni(t,e){var i,n,r,s,a,o,u=t,h=null;return Ze(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:b(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=ei.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:vt(h[Tt])*i,h:vt(h[At])*i,m:vt(h[Rt])*i,s:vt(h[Ft])*i,ms:vt($e(1e3*h[jt]))*i}):(h=ii.exec(t))?u={y:ri(h[2],i="-"===h[1]?-1:1),M:ri(h[3],i),w:ri(h[4],i),d:ri(h[5],i),h:ri(h[6],i),m:ri(h[7],i),s:ri(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=We(u.from),a=We(u.to),r=s.isValid()&&a.isValid()?(a=Xe(a,s),s.isBefore(a)?o=si(s,a):((o=si(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Ve(u),Ze(t)&&m(t,"_locale")&&(n._locale=t._locale),Ze(t)&&m(t,"_isValid")&&(n._isValid=t._isValid),n}function ri(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function si(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function ai(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(z(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),oi(this,ni(i,n),t),this}}function oi(t,e,i,n){var r=e._milliseconds,s=$e(e._days),a=$e(e._months);t.isValid()&&(n=null==n||n,a&&Zt(t,Pt(t,"Month")+a*i),s&&Ht(t,"Date",Pt(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&l.updateOffset(t,s||a))}ni.fn=Ve.prototype,ni.invalid=function(){return ni(NaN)};var ui=ai(1,"add"),hi=ai(-1,"subtract");function di(t){return"string"==typeof t||t instanceof String}function li(t,e){if(t.date()<e.date())return-li(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function ci(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Ce(t))&&(this._locale=e),this)}l.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",l.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var fi=j("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function mi(){return this._locale}var gi=1e3,pi=6e4,bi=36e5,yi=126227808e5;function vi(t,e){return(t%e+e)%e}function wi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-yi:new Date(t,e,i).valueOf()}function ki(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-yi:Date.UTC(t,e,i)}function Si(t,e){return e.erasAbbrRegex(t)}function Mi(){var t,e,i,n,r,s=[],a=[],o=[],u=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=bt(h[t].name),n=bt(h[t].abbr),r=bt(h[t].narrow),a.push(i),s.push(n),o.push(r),u.push(i),u.push(n),u.push(r);this._erasRegex=new RegExp("^("+u.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+o.join("|")+")","i")}function Ci(t,e){I(0,[t,t.length],0,e)}function xi(t,e,i,n,r){var s;return null==t?te(this,n,r).year:(e>(s=ee(t,n,r))&&(e=s),Di.call(this,t,e,i,n,r))}function Di(t,e,i,n,r){var s=Qt(t,e,i,n,r),a=Kt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}I("N",0,0,"eraAbbr"),I("NN",0,0,"eraAbbr"),I("NNN",0,0,"eraAbbr"),I("NNNN",0,0,"eraName"),I("NNNNN",0,0,"eraNarrow"),I("y",["y",1],"yo","eraYear"),I("y",["yy",2],0,"eraYear"),I("y",["yyy",3],0,"eraYear"),I("y",["yyyy",4],0,"eraYear"),gt("N",Si),gt("NN",Si),gt("NNN",Si),gt("NNNN",(function(t,e){return e.erasNameRegex(t)})),gt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),kt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?S(i).era=r:S(i).invalidEra=t})),gt("y",ut),gt("yy",ut),gt("yyy",ut),gt("yyyy",ut),gt("yo",(function(t,e){return e._eraYearOrdinalRegex||ut})),kt(["y","yy","yyy","yyyy"],xt),kt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[xt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),I(0,["gg",2],0,(function(){return this.weekYear()%100})),I(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ci("gggg","weekYear"),Ci("ggggg","weekYear"),Ci("GGGG","isoWeekYear"),Ci("GGGGG","isoWeekYear"),gt("G",ht),gt("g",ht),gt("GG",it,X),gt("gg",it,X),gt("GGGG",at,tt),gt("gggg",at,tt),gt("GGGGG",ot,et),gt("ggggg",ot,et),St(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=vt(t)})),St(["gg","GG"],(function(t,e,i,n){e[n]=l.parseTwoDigitYear(t)})),I("Q",0,"Qo","quarter"),gt("Q",K),kt("Q",(function(t,e){e[Dt]=3*(vt(t)-1)})),I("D",["DD",2],"Do","date"),gt("D",it,ft),gt("DD",it,X),gt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),kt(["D","DD"],Tt),kt("Do",(function(t,e){e[Tt]=vt(t.match(it)[0])}));var Ti=Jt("Date",!0);I("DDD",["DDDD",3],"DDDo","dayOfYear"),gt("DDD",st),gt("DDDD",Q),kt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=vt(t)})),I("m",["mm",2],0,"minute"),gt("m",it,mt),gt("mm",it,X),kt(["m","mm"],Rt);var Ai=Jt("Minutes",!1);I("s",["ss",2],0,"second"),gt("s",it,mt),gt("ss",it,X),kt(["s","ss"],Ft);var Ri,Fi,ji=Jt("Seconds",!1);for(I("S",0,0,(function(){return~~(this.millisecond()/100)})),I(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),I(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),I(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),I(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),I(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),I(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),gt("S",st,K),gt("SS",st,X),gt("SSS",st,Q),Ri="SSSS";Ri.length<=9;Ri+="S")gt(Ri,ut);function Ni(t,e){e[jt]=vt(1e3*("0."+t))}for(Ri="S";Ri.length<=9;Ri+="S")kt(Ri,Ni);Fi=Jt("Milliseconds",!1),I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var Yi=A.prototype;function zi(t){return t}Yi.add=ui,Yi.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?R(i=arguments[0])||y(i)||di(i)||b(i)||function(t){var e=c(t),i=!1;return e&&(i=0===t.filter((function(e){return!b(e)&&di(t)})).length),e&&i}(i)||function(t){var e,i=f(t)&&!g(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(e=0;e<s;e+=1)n=n||m(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=f(t)&&!g(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||m(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||We(),r=Xe(n,this).startOf("day"),s=l.calendarFormat(this,r)||"sameElse",a=e&&(L(e[s])?e[s].call(this,n):e[s]);return this.format(a||this.localeData().calendar(s,this,We(n)))},Yi.clone=function(){return new A(this)},Yi.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=Xe(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=Z(e)){case"year":s=li(this,n)/12;break;case"month":s=li(this,n);break;case"quarter":s=li(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-r)/864e5;break;case"week":s=(this-n-r)/6048e5;break;default:s=this-n}return i?s:yt(s)},Yi.endOf=function(t){var e,i;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?ki:wi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=bi-vi(e+(this._isUTC?0:this.utcOffset()*pi),bi)-1;break;case"minute":e=this._d.valueOf(),e+=pi-vi(e,pi)-1;break;case"second":e=this._d.valueOf(),e+=gi-vi(e,gi)-1}return this._d.setTime(e),l.updateOffset(this,!0),this},Yi.format=function(t){t||(t=this.isUtc()?l.defaultFormatUtc:l.defaultFormat);var e=G(this,t);return this.localeData().postformat(e)},Yi.from=function(t,e){return this.isValid()&&(R(t)&&t.isValid()||We(t).isValid())?ni({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Yi.fromNow=function(t){return this.from(We(),t)},Yi.to=function(t,e){return this.isValid()&&(R(t)&&t.isValid()||We(t).isValid())?ni({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Yi.toNow=function(t){return this.to(We(),t)},Yi.get=function(t){return L(this[t=Z(t)])?this[t]():this},Yi.invalidAt=function(){return S(this).overflow},Yi.isAfter=function(t,e){var i=R(t)?t:We(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Yi.isBefore=function(t,e){var i=R(t)?t:We(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Yi.isBetween=function(t,e,i,n){var r=R(t)?t:We(t),s=R(e)?e:We(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))},Yi.isSame=function(t,e){var i,n=R(t)?t:We(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Yi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Yi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Yi.isValid=function(){return M(this)},Yi.lang=fi,Yi.locale=ci,Yi.localeData=mi,Yi.max=Ie,Yi.min=Ee,Yi.parsingFlags=function(){return w({},S(this))},Yi.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)m(t,e)&&i.push({unit:e,priority:q[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=$(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(L(this[t=Z(t)]))return this[t](e);return this},Yi.startOf=function(t){var e,i;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?ki:wi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=vi(e+(this._isUTC?0:this.utcOffset()*pi),bi);break;case"minute":e=this._d.valueOf(),e-=vi(e,pi);break;case"second":e=this._d.valueOf(),e-=vi(e,gi)}return this._d.setTime(e),l.updateOffset(this,!0),this},Yi.subtract=hi,Yi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Yi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Yi.toDate=function(){return new Date(this.valueOf())},Yi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?G(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):L(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(i,"Z")):G(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Yi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Yi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Yi.toJSON=function(){return this.isValid()?this.toISOString():null},Yi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Yi.unix=function(){return Math.floor(this.valueOf()/1e3)},Yi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Yi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Yi.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},Yi.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},Yi.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},Yi.eraYear=function(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-l(r[t].since).year())*i+r[t].offset;return this.year()},Yi.year=Bt,Yi.isLeapYear=function(){return Ct(this.year())},Yi.weekYear=function(t){return xi.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Yi.isoWeekYear=function(t){return xi.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Yi.quarter=Yi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Yi.month=$t,Yi.daysInMonth=function(){return Ot(this.year(),this.month())},Yi.week=Yi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Yi.isoWeek=Yi.isoWeeks=function(t){var e=te(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Yi.weeksInYear=function(){var t=this.localeData()._week;return ee(this.year(),t.dow,t.doy)},Yi.weeksInWeekYear=function(){var t=this.localeData()._week;return ee(this.weekYear(),t.dow,t.doy)},Yi.isoWeeksInYear=function(){return ee(this.year(),1,4)},Yi.isoWeeksInISOWeekYear=function(){return ee(this.isoWeekYear(),1,4)},Yi.date=Ti,Yi.day=Yi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=Pt(this,"Day");return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Yi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Yi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Yi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Yi.hour=Yi.hours=ge,Yi.minute=Yi.minutes=Ai,Yi.second=Yi.seconds=ji,Yi.millisecond=Yi.milliseconds=Fi,Yi.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=Ke(lt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=Qe(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?oi(this,ni(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,l.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Qe(this)},Yi.utc=function(t){return this.utcOffset(0,t)},Yi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Qe(this),"m")),this},Yi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=Ke(dt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Yi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?We(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Yi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Yi.isLocal=function(){return!!this.isValid()&&!this._isUTC},Yi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Yi.isUtc=ti,Yi.isUTC=ti,Yi.zoneAbbr=function(){return this._isUTC?"UTC":""},Yi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Yi.dates=j("dates accessor is deprecated. Use date instead.",Ti),Yi.months=j("months accessor is deprecated. Use month instead",$t),Yi.years=j("years accessor is deprecated. Use year instead",Bt),Yi.zone=j("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),Yi.isDSTShifted=j("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!p(this._isDSTShifted))return this._isDSTShifted;var t,e={};return T(e,this),(e=He(e))._a?(t=e._isUTC?k(e._a):We(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<n;i++)vt(t[i])!==vt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Li=J.prototype;function Bi(t,e,i,n){var r=Ce(),s=k().set(n,e);return r[i](s,t)}function Ji(t,e,i){if(b(t)&&(e=t,t=void 0),t=t||"",null!=e)return Bi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Bi(t,n,i,"month");return r}function Pi(t,e,i,n){"boolean"==typeof t?(b(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,b(e)&&(i=e,e=void 0),e=e||"");var r,s=Ce(),a=t?s._week.dow:0,o=[];if(null!=i)return Bi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Bi(e,(r+a)%7,n,"day");return o}Li.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return L(n)?n.call(e,i):n},Li.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(H).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Li.invalidDate=function(){return this._invalidDate},Li.ordinal=function(t){return this._ordinal.replace("%d",t)},Li.preparse=zi,Li.postformat=zi,Li.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return L(r)?r(t,e,i,n):r.replace(/%d/i,t)},Li.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return L(i)?i(e):i.replace(/%s/i,e)},Li.set=function(t){var e,i;for(i in t)m(t,i)&&(L(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Li.eras=function(){var t,e,i,n=this._eras||Ce("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=l(n[t].since).startOf("day"),n[t].since=i.valueOf()),typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=l(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Li.erasParse=function(t,e,i){var n,r,s,a,o,u=this.eras();for(t=t.toUpperCase(),n=0,r=u.length;n<r;++n)if(s=u[n].name.toUpperCase(),a=u[n].abbr.toUpperCase(),o=u[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[n];break;case"NNNN":if(s===t)return u[n];break;case"NNNNN":if(o===t)return u[n]}else if([s,a,o].indexOf(t)>=0)return u[n]},Li.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?l(t.since).year():l(t.since).year()+(e-t.offset)*i},Li.erasAbbrRegex=function(t){return m(this,"_erasAbbrRegex")||Mi.call(this),t?this._erasAbbrRegex:this._erasRegex},Li.erasNameRegex=function(t){return m(this,"_erasNameRegex")||Mi.call(this),t?this._erasNameRegex:this._erasRegex},Li.erasNarrowRegex=function(t){return m(this,"_erasNarrowRegex")||Mi.call(this),t?this._erasNarrowRegex:this._erasRegex},Li.months=function(t,e){return t?c(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||It).test(e)?"format":"standalone"][t.month()]:c(this._months)?this._months:this._months.standalone},Li.monthsShort=function(t,e){return t?c(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[It.test(e)?"format":"standalone"][t.month()]:c(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Li.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return Vt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=k([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Li.monthsRegex=function(t){return this._monthsParseExact?(m(this,"_monthsRegex")||Ut.call(this),t?this._monthsStrictRegex:this._monthsRegex):(m(this,"_monthsRegex")||(this._monthsRegex=_t),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Li.monthsShortRegex=function(t){return this._monthsParseExact?(m(this,"_monthsRegex")||Ut.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(m(this,"_monthsShortRegex")||(this._monthsShortRegex=Gt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Li.week=function(t){return te(t,this._week.dow,this._week.doy).week},Li.firstDayOfYear=function(){return this._week.doy},Li.firstDayOfWeek=function(){return this._week.dow},Li.weekdays=function(t,e){var i=c(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?ie(i,this._week.dow):t?i[t.day()]:i},Li.weekdaysMin=function(t){return!0===t?ie(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Li.weekdaysShort=function(t){return!0===t?ie(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Li.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return he.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=k([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Li.weekdaysRegex=function(t){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||de.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(m(this,"_weekdaysRegex")||(this._weekdaysRegex=ae),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Li.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||de.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(m(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=oe),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Li.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(m(this,"_weekdaysRegex")||de.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(m(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ue),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Li.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Li.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},Se("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===vt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),l.lang=j("moment.lang is deprecated. Use moment.locale instead.",Se),l.langData=j("moment.langData is deprecated. Use moment.localeData instead.",Ce);var Hi=Math.abs;function Oi(t,e,i,n){var r=ni(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Wi(t){return t<0?Math.floor(t):Math.ceil(t)}function Ei(t){return 4800*t/146097}function Ii(t){return 146097*t/4800}function Gi(t){return function(){return this.as(t)}}var _i=Gi("ms"),Vi=Gi("s"),Zi=Gi("m"),$i=Gi("h"),Ui=Gi("d"),qi=Gi("w"),Ki=Gi("M"),Xi=Gi("Q"),Qi=Gi("y"),tn=_i;function en(t){return function(){return this.isValid()?this._data[t]:NaN}}var nn=en("milliseconds"),rn=en("seconds"),sn=en("minutes"),an=en("hours"),on=en("days"),un=en("months"),hn=en("years"),dn=Math.round,ln={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function cn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var fn=Math.abs;function mn(t){return(t>0)-(t<0)||+t}function gn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=fn(this._milliseconds)/1e3,h=fn(this._days),d=fn(this._months),l=this.asSeconds();return l?(t=yt(u/60),e=yt(t/60),u%=60,t%=60,i=yt(d/12),d%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=mn(this._months)!==mn(l)?"-":"",a=mn(this._days)!==mn(l)?"-":"",o=mn(this._milliseconds)!==mn(l)?"-":"",r+"P"+(i?s+i+"Y":"")+(d?s+d+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+n+"S":"")):"P0D"}var pn=Ve.prototype;pn.isValid=function(){return this._isValid},pn.abs=function(){var t=this._data;return this._milliseconds=Hi(this._milliseconds),this._days=Hi(this._days),this._months=Hi(this._months),t.milliseconds=Hi(t.milliseconds),t.seconds=Hi(t.seconds),t.minutes=Hi(t.minutes),t.hours=Hi(t.hours),t.months=Hi(t.months),t.years=Hi(t.years),this},pn.add=function(t,e){return Oi(this,t,e,1)},pn.subtract=function(t,e){return Oi(this,t,e,-1)},pn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(i=this._months+Ei(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Ii(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},pn.asMilliseconds=_i,pn.asSeconds=Vi,pn.asMinutes=Zi,pn.asHours=$i,pn.asDays=Ui,pn.asWeeks=qi,pn.asMonths=Ki,pn.asQuarters=Xi,pn.asYears=Qi,pn.valueOf=tn,pn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,a=this._days,o=this._months,u=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Wi(Ii(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=yt(s/1e3),u.seconds=t%60,e=yt(t/60),u.minutes=e%60,i=yt(e/60),u.hours=i%24,a+=yt(i/24),o+=r=yt(Ei(a)),a-=Wi(Ii(r)),n=yt(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},pn.clone=function(){return ni(this)},pn.get=function(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN},pn.milliseconds=nn,pn.seconds=rn,pn.minutes=sn,pn.hours=an,pn.days=on,pn.weeks=function(){return yt(this.days()/7)},pn.months=un,pn.years=hn,pn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=ln;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},ln,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=ni(t).abs(),s=dn(r.as("s")),a=dn(r.as("m")),o=dn(r.as("h")),u=dn(r.as("d")),h=dn(r.as("M")),d=dn(r.as("w")),l=dn(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||a<=1&&["m"]||a<i.m&&["mm",a]||o<=1&&["h"]||o<i.h&&["hh",o]||u<=1&&["d"]||u<i.d&&["dd",u];return null!=i.w&&(c=c||d<=1&&["w"]||d<i.w&&["ww",d]),(c=c||h<=1&&["M"]||h<i.M&&["MM",h]||l<=1&&["y"]||["yy",l])[2]=e,c[3]=+t>0,c[4]=n,cn.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},pn.toISOString=gn,pn.toString=gn,pn.toJSON=gn,pn.locale=ci,pn.localeData=mi,pn.toIsoString=j("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",gn),pn.lang=fi,I("X",0,0,"unix"),I("x",0,0,"valueOf"),gt("x",ht),gt("X",/[+-]?\d+(\.\d{1,3})?/),kt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),kt("x",(function(t,e,i){i._d=new Date(vt(t))})),
8
+ //! moment.js
9
+ l.version="2.30.1",h=We,l.fn=Yi,l.min=function(){return Ge("isBefore",[].slice.call(arguments,0))},l.max=function(){return Ge("isAfter",[].slice.call(arguments,0))},l.now=function(){return Date.now?Date.now():+new Date},l.utc=k,l.unix=function(t){return We(1e3*t)},l.months=function(t,e){return Ji(t,e,"months")},l.isDate=y,l.locale=Se,l.invalid=C,l.duration=ni,l.isMoment=R,l.weekdays=function(t,e,i){return Pi(t,e,i,"weekdays")},l.parseZone=function(){return We.apply(null,arguments).parseZone()},l.localeData=Ce,l.isDuration=Ze,l.monthsShort=function(t,e){return Ji(t,e,"monthsShort")},l.weekdaysMin=function(t,e,i){return Pi(t,e,i,"weekdaysMin")},l.defineLocale=Me,l.updateLocale=function(t,e){if(null!=e){var i,n,r=pe;null!=be[t]&&null!=be[t].parentLocale?be[t].set(B(be[t]._config,e)):(null!=(n=ke(t))&&(r=n._config),e=B(r,e),null==n&&(e.abbr=t),(i=new J(e)).parentLocale=be[t],be[t]=i),Se(t)}else null!=be[t]&&(null!=be[t].parentLocale?(be[t]=be[t].parentLocale,t===Se()&&Se(t)):null!=be[t]&&delete be[t]);return be[t]},l.locales=function(){return N(be)},l.weekdaysShort=function(t,e,i){return Pi(t,e,i,"weekdaysShort")},l.normalizeUnits=Z,l.relativeTimeRounding=function(t){return void 0===t?dn:"function"==typeof t&&(dn=t,!0)},l.relativeTimeThreshold=function(t,e){return void 0!==ln[t]&&(void 0===e?ln[t]:(ln[t]=e,"s"===t&&(ln.ss=e-1),!0))},l.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},l.prototype=Yi,l.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const bn=class{constructor(e){t(this,e),this.useEvent=void 0,this.endpoint=void 0,this.state=void 0,this.enrolled=void 0,this.startTime=void 0,this.endTime=void 0,this.thumbnail=void 0,this.language=void 0,this.showCalendar=void 0,this.shortStart=void 0,this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.nameOrTitle=void 0,this.description=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.stateText=void 0,this.limitStylingAppends=!1,this.startdate=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}userEnrolledHandler(t){t.detail&&this.tournamentId===t.detail.tournamentId&&(this.enrolled=t.detail.userenrolled)}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>" - "+t+" "+u("days",this.language))(Math.ceil(t/1440))}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=u("scheduled",this.language);break;case"Running":e=u("ongoing",this.language);break;default:e=u("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const i=()=>u("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=l(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?u("startedAtWithTime",this.language)+t:u("startingAtWithTime",this.language)+t}else{let n=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),s=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+u(`${n}`,this.language)+", "+i()+` ${s}`}}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])o[e][i]=t[e][i]})),this.state&&(this.stateText=this.getStateText(this.state))),!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return i("div",{key:"30d503c748343afce01f545342ab0beb3d3d5e3f",class:"TournamentBannerWrap"},this.thumbnail&&i("div",{key:"daaef63e759ffbaf14eabd2b54d937b957fcab6a",class:`TournamentBanner ${this.state}`,part:`TournamentBanner ${this.state}`},i("img",{key:"9ef1116676b4bbbf7a592ca4dbe7a75f60b09f32",src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&i("div",{key:"9fc34aabed34722d2e35dd40cb768bf1216e2a6f",class:"TournamentBannerInfo",part:"TournamentBannerInfo"},i("div",{key:"a100bd48e54e6e58deb629e3737be4d69665c43c",class:"BannerInfo",part:"BannerInfo"},i("span",{key:"fbd99abf8e5b9bf81a5df2840f2d3784bbf62fa5",class:`Tag State ${this.state}`},this.stateText)),i("div",{key:"00b195d5a9e6fa9ee92d94d7273853acb3da39f1",class:"BannerInfo",part:"BannerInfo"},this.showDate&&i("span",{key:"0522a16f1ff07e3e42078eab83f58b4a0e9a6fbf",class:"Tag Date"},this.showCalendar&&i("svg",{key:"58cefa516aadac8e1ea97c4c7550992439d86e1a",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"a5605e1a28f2e23f7c701d94d648071e29438669","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),i("div",{key:"bfa79f4e8ba8db83286d4b166420535837992f29",class:"BannerInfo",part:"BannerInfo"},this.enrolled&&i("span",{key:"d42223a4dc8a71ecdde3ead177850101408c28e3",class:"Tag Enroll"},this.showCheck&&i("svg",{key:"a5ffe24ebf31216020442d4f0b27e6cf71675902",class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{key:"c2db6f66d8afd614f26c0a656daeb51631833ba9",d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),u("enrolled",this.language)))),this.cardMode&&i("div",{key:"d66d8e41945df8fa190c635fc17448c2095a8338",class:"TournamentBannerThumb",part:"TournamentBannerThumb"},i("div",{key:"c18a987311a7e806b439dcab4bf8a4d96bca358a",class:"ThumbTitle",part:"ThumbTitle"},this.description),i("div",{key:"a7c810c1ecd87e46ef8f8972aade6db45fa902a2",class:"ThumbName",part:"ThumbName"},this.nameOrTitle),i("div",{key:"0e4ea565959a0e61dcdd1a94889f822f86c5da56",class:"ThumbState"},this.session&&this.enrolled?i("span",{class:"Tag Joined"},i("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},i("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),u("joined",this.language)):this.session&&"Closed"!=this.state&&i("span",{class:"Tag Join"},i("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},i("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),u("join",this.language)),"Running"==this.state&&i("span",{key:"659625f6d6d49b900f48511eedfd734717e52ad6",class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&i("span",{key:"505b1743237cc5f867d3085dd92d0b4b38cc83d7",class:"TagRemain"},this.showRemain," ",u("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&i("span",{key:"10eacb51b318ecca5f04d8fc2c5e4f3c53e2636c",class:`Tag Date ${this.state}`},this.showCalendar&&i("svg",{key:"a0551fe193454ad15fe279b8f5c46be6a3067c14",class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("path",{key:"2931bcda7e5f9e6baaa50f2c8e8caa38783bed2d","fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),i("div",{key:"708b32bba1c7f042f62f8fe9f4229efd9094d6c8",class:"ThumbButtons"},i("casino-tournament-buttons",{key:"bc085c31d517644af1eb338912aa10e1c2a6a46e",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})),i("div",{key:"023eb9bacda76a8894ae9921863644dc323695d8",class:"ThumbTC"},i("span",{key:"f690d2a31ba88ffdff1892eebe276f8ca33cf7f5",onClick:this.termsClick.bind(this,this.tournamentId)},u("terms",this.language))))))}get host(){return n(this)}static get watchers(){return{language:["watchLanguage"]}}};bn.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px;height:18px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const yn={en:{joined:"Joined",join:"Join",enrolled:"Enrolled",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Log in",register:"Register",details:"Details",joinerror:"An error occurred while registering in the tournament, please try again."},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - "},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou."},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - "},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά."},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra."},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},vn=(t,e)=>{var i,n;return(null===(i=yn[e])||void 0===i?void 0:i[t])||(null===(n=yn.en)||void 0===n?void 0:n[t])},wn=class{constructor(i){t(this,i),this.userEnrolled=e(this,"TournamentUserEnrolled",7),this.language=void 0,this.tournamentId=void 0,this.session=void 0,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.endpoint=void 0,this.currency=void 0,this.bonusCode=void 0,this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])yn[e][i]=t[e][i]})))}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}loginAction(){this.loginEvent&&(window.postMessage({type:this.loginEvent,transition:"Login"},window.location.href),"function"==typeof gtag&&gtag("event","OpenLoginModal",{context:"TournamentsThumbnailController"})),this.loginUrl&&(location.href=this.loginUrl)}registerAction(){this.registerEvent&&(window.postMessage({type:this.registerEvent,transition:"Register"},window.location.href),"function"==typeof gtag&&gtag("event","OpenRegisterModal",{context:"TournamentsThumbnailController"})),this.registerUrl&&(location.href=this.registerUrl)}async joinAction(t,e){var i;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let n=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};n.searchParams.append("language",this.language),n.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled,tournamentId:t},window.location.href),this.userEnrolled.emit({userenrolled:this.enrolled,tournamentId:t})},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${n.searchParams.toString()}`,a),t=await t.json()}catch(t){u()}return t})();if(h)if(1==h.success)o();else if(h.errorMessage.match("VersionMismatchException")){let t;t=await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(i=null==t?void 0:t.item)||void 0===i?void 0:i.playerEnrolled)?o():(u(),this.errorJoinConcurrently=!0,this.errorJoin=!1)}else u()}detailAction(t){window.postMessage({type:"TournamentDetailsClicked",tournamentId:t,showLeaderboard:!0},window.location.href)}moreAction(t){window.postMessage({type:"TournamentReadMoreClicked",tournamentId:t},window.location.href)}render(){return i("div",{key:"763ee14c366708587968c9dba99dfdca14f464aa",class:"TournamentButtons"},!this.session&&i("div",{key:"6cbf1242e6aaaaf1a4b22d225c851751d08e5235",class:"ButtonGroup"},i("button",{key:"430fdc44dbd2e87b580910222b87fd015bc8cdec",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},vn("login",this.language)),i("button",{key:"ff655fe2a0493a1806957a0c9809d78c0e3402c9",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},vn("register",this.language))),this.session&&i("div",{key:"7dd13f2bd91a8f0e36c01b9640906258fd037008"},!this.enrolled&&i("div",{key:"86f4e6e90f5ff54f5b7b49bbb96fcbf6f6abdbd1",class:"ButtonGroup"},i("button",{key:"3a7b08d6fd2a00b2ac54e16f7a1d30012bfb3552",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},vn("join",this.language)),this.showReadMore&&i("button",{key:"b0027a4d5c78b86ea87aded7f85a6321b47f59a9",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},vn("readmore",this.language))),this.enrolled&&i("div",{key:"a69057c0e89fa520491e0cdc5541b9c9b81227d8",class:"ButtonGroup"},i("button",{key:"2f7c353d41122018c120114870956bb3cfd7ef20",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},vn("details",this.language)),this.showReadMore&&i("button",{key:"45bc2dbeb283b0c4f0cda9bb88b1495fb6a74b09",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},vn("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&i("span",{key:"9b80c1e71632549dd1ee395a0cf12eea1d292e1a",class:"ErrorText",part:"ErrorText"},vn("joinerror",this.language)))}get host(){return n(this)}};wn.style=':host{display:block}.ButtonGroup{display:flex;gap:4px}.Button{padding:6px 8px;border-radius:2px;border:1px solid #fff;color:#fff;background:none;position:relative;cursor:pointer}.Button.NoBorder{border:0;padding:7px 8px}.Button::after{content:"";display:block;position:absolute;border-radius:2px;left:0;top:0;width:100%;height:100%;opacity:0;transition:all 0.5s;box-shadow:0 0 10px 10px white}.Button:active::after{box-shadow:0 0 0 0 white;position:absolute;border-radius:2px;left:0;top:0;opacity:1;transition:0s}.Button:active{top:1px}';const kn={en:{finished:"Finished",starting:"Starting in ",left:"left",minutes:"minutes",hours:"hours",days:"days"},hr:{finished:"Gotovo",starting:"Počinje u ",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"},"zh-hk":{finished:"完成的",starting:"開始於",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{finished:"Fini",starting:"Début dans ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{finished:"Finalizat",starting:"Începe în",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{finished:"Sona ermiş",starting:"Başlamasına ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{finished:"Ολοκληρωμένα",starting:"Αρχίζει σε ",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{finished:"Finalizado",starting:"Iniciando en ",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},hu:{finished:"Befejezve",starting:"Kezdésig",left:"bal",minutes:"perc",hours:"óra",days:"nap"},pt:{finished:"Finalizado",starting:"Começando em",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"}},Sn=(t,e)=>{var i,n;return(null===(i=kn[e])||void 0===i?void 0:i[t])||(null===(n=kn.en)||void 0===n?void 0:n[t])},Mn=class{constructor(e){t(this,e),this.startTime=void 0,this.endTime=void 0,this.status=void 0,this.language=void 0,this.clientStyling="",this.clientStylingUrl="",this.translationData=void 0,this.tournamentUntilStartDays=void 0,this.tournamentLeftDays=void 0,this.showRemain=void 0,this.limitStylingAppends=!1,this.durationInterval=void 0}watchLanguage(t,e){t&&t!=e&&this.getDuration()}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.tournamentUntilStartDays=this.getDateTimeDiff(t,this.startTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}formatDate(t){let e=new Date(t),i=new Intl.DateTimeFormat(this.language,{month:"long"}).format(e);return`${e.getDate()} ${i}, ${e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric"})}, ${e.getUTCFullYear()}`}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return(t=>t+" "+Sn("days",this.language))(Math.ceil(t/1440))}getProgress(){if(this.tournamentLeftDays<=0)return 100;const t=this.getDateTimeDiff(this.startTime,this.endTime);return Math.floor(100/t*(t-this.tournamentLeftDays))}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])kn[e][i]=t[e][i]}))),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){if(this.startTime&&this.endTime)return i("div",{key:"d0051545a243161e89e126fd26b9ea9d2e09f8ab",class:"TournamentDurationWrap"},i("div",{key:"b585f0137268f0185dfd15e563a0075bfe617d5b",class:"TournamentDuration"},i("div",{key:"9cc3670780d9f8c40b77ac978cdadb0e0afdcacb",class:"TournamentDates"},i("div",{key:"85e4f3b1de4f36efd8d13b090f8f9013976d8685",class:"StartDate",part:"StartDate"},this.formatDate(this.startTime)),i("div",{key:"688a84ce16a4d26359637b80837a9c5f50fc24c3",class:"EndDate",part:"EndDate"},this.formatDate(this.endTime))),i("div",{key:"149c0431ac2d8f9b5058a2a269b50e01d23ed26f",class:"ProgressBarWrapper"},i("div",{key:"85523f37f511f9184260f8575ec08e914f535858",class:"ProgressBar",part:"ProgressBar"},"Finished"==this.status||"Closing"==this.status||"Closed"==this.status?i("div",null,i("div",{class:"ProgressBarFillEnd",part:"ProgressBarFillEnd"}),i("div",{class:"Finished",part:"Finished"},Sn("finished",this.language))):this.tournamentUntilStartDays>0?i("div",null,i("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),i("div",{class:"Remaining",part:"Remaining"},Sn("starting",this.language)," ",this.getTextByDiff(this.tournamentUntilStartDays))):i("div",null,i("div",{class:"ProgressBarFill",part:"ProgressBarFill",style:{width:`${this.getProgress()}%`}}),this.tournamentLeftDays>0&&i("div",{class:"Remaining",part:"Remaining"},this.showRemain," ",Sn("left",this.language)))))))}get host(){return n(this)}static get watchers(){return{language:["watchLanguage"]}}};Mn.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emfe-w-color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emfe-w-color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emfe-w-color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emfe-w-color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emfe-w-color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emfe-w-color-gray-300, #58586B);height:8px}.Remaining,.Finished{font-size:10px;font-weight:700;padding-top:6px;text-align:right;text-transform:uppercase}.Finished{color:var(--emfe-w-color-green, #48952a)}";const Cn={en:{enrolled:"Enrolled",details:"Details",scoreCriteria:"Score Criteria",minbet:"min bet count",seegames:"You can see the games",here:"here",scheduled:"Scheduled",ongoing:"Ongoing",finished:"Finished",startingAt:"Starting at:",startedAt:"Started at:",startingAtWithTime:"Starts ",startedAtWithTime:"Started ",mostRounds:"Most Rounds",betCount:"Number of Bets",maxWinStakeRatio:"Max Win per Stake",winStakeRatio:"Total Win per Stake",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},"zh-hk":{enrolled:"已註冊",details:"細節",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},fr:{enrolled:"Inscrits",details:"Détails",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},ro:{enrolled:"Înscris",details:"Detalii",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie"},tr:{enrolled:"Katıldın",details:"Detaylar",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık"},el:{enrolled:"Εγγεγραμμένος",details:"Λεπτομέρειες",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου"},es:{enrolled:"Inscrito",details:"Detalles",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre"},pt:{enrolled:"Inscrito",details:"Detalhes",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hu:{enrolled:"Feliratkozott",details:"Adatok",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December"},hr:{enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac"}},xn=(t,e)=>{var i,n;return(null===(i=Cn[e])||void 0===i?void 0:i[t])||(null===(n=Cn.en)||void 0===n?void 0:n[t])},Dn=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])Cn[e][i]=t[e][i]})),e(!0)})),Tn=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])Cn[e][i]=t[e][i]})),e(!0)}))})),An=class{constructor(e){t(this,e),this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>xn("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=l(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?xn("startedAtWithTime",this.language)+t:xn("startingAtWithTime",this.language)+t}else{let e=new Intl.DateTimeFormat("en",t).format(i),r=i.getDate(),s=i.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startDate=`${r} `+xn(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)},this.endpoint=void 0,this.nameOrTitle=void 0,this.scoreCriteria=void 0,this.tournamentId=void 0,this.session=void 0,this.userId=void 0,this.language=void 0,this.termsUrl="#",this.keepContext=!1,this.useGroup=!1,this.align="center",this.showDates=!1,this.showPrizes=!1,this.showButton=!1,this.shortStart=!1,this.seeGames=!1,this.useEvent=!1,this.startTime=void 0,this.endTime=void 0,this.minBetCount=void 0,this.prizes=void 0,this.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.loginEvent=void 0,this.loginUrl=void 0,this.registerEvent=void 0,this.registerUrl=void 0,this.currency=void 0,this.bonusCode=void 0,this.showReadMore=!1,this.translationUrl="",this.translationData=void 0,this.limitStylingAppends=!1,this.startDate=void 0,this.tournamentInfo=void 0}async infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.translationUrl?await Tn(this.translationUrl):this.translationData&&await Dn(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return Tn(this.translationUrl);if(this.translationData)return Dn(JSON.parse(this.translationData))}}setTournamentInfo(){var t;this.tournamentInfo={nameOrTitle:this.nameOrTitle,scoreCriteria:(t=this.scoreCriteria,t?t.charAt(0).toLowerCase()+t.slice(1):""),termsUrl:this.termsUrl,startTime:this.startTime,endTime:this.endTime,prizes:this.prizes,minBetCount:this.minBetCount}}componentWillRender(){this.setTournamentInfo(),this.tournamentInfo.startTime&&this.formatDate()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}tournamentGamesClicked(t){window.postMessage({type:"tournamentGamesClicked",id:t},window.location.href)}render(){if(this.tournamentInfo)return i("div",{key:"d6c39acb71a8a267d46dd4e3055f8a51eb1a4473",class:"TournamentInfoWrap"},i("div",{key:"98d7d74f0532652c85e5970fd28c1658fa970642",class:`TournamentInfo ${this.align}`,part:"TournamentInfo"},i("h1",{key:"f3afe0cfa5c9ebac1e6638d852e64369616bfef6",class:"Title"},this.tournamentInfo.nameOrTitle),i("div",{key:"f4f4bcb63d3d492abccbaa86682f34208aa5d1e4",class:"Details"},i("p",{key:"4d2875c8507f6db2c16f055810f82942406007b4",class:"Score"},xn("scoreCriteria",this.language),": ",xn(this.tournamentInfo.scoreCriteria,this.language)," (",xn("minbet",this.language),": ",this.tournamentInfo.minBetCount,")"),this.showDates&&i("p",{key:"00fae2420d9c6e6eafe9a2f8c378198638b88981",class:"Dates"},this.startDate),this.seeGames&&i("p",{key:"4a22edfcf8a06a3c48b4d6280ae6a6bc3c824905",class:"SeeGames"},xn("seegames",this.language),":",i("a",{key:"44a29b2e941bd03febd124082998262357fc9885",class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",xn("here",this.language))),this.showButton&&i("div",{key:"19b176dd5d021856fa55016f64a67b21f4e16f04",class:"InfoButtons"},i("casino-tournament-buttons",{key:"30820e16c97365a7b86387e6bcb462c054b99ecf",enrolled:this.enrolled,session:this.session,endpoint:this.endpoint,language:this.language,"tournament-id":this.tournamentId,"login-event":this.loginEvent,"login-url":this.loginUrl,"register-event":this.registerEvent,"register-url":this.registerUrl,currency:this.currency,"bonus-code":this.bonusCode,"show-read-more":this.showReadMore,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData}))),this.showPrizes&&i("casino-tournament-prizes",{key:"c7bfdeab8b12f2b069123309bb9ace7ac409feff","raw-prizes":JSON.stringify(this.tournamentInfo.prizes),"use-event":"false","use-group":this.useGroup,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl}),i("casino-tournament-duration",{key:"717a439c994a5dc6fee28be78cca68def8202e16",exportparts:"Remaining,ProgressBar,ProgressBarFill,ProgressBarFillStarting,ProgressBarFillEnd,StartDate,EndDate","start-time":this.tournamentInfo.startTime,"end-time":this.tournamentInfo.endTime,language:this.language,"client-styling":this.clientStyling,"client-styling-url":this.clientStylingUrl,"translation-data":this.translationData})))}get host(){return n(this)}};An.style=":host{display:block}.TournamentInfo{background:var(--emfe-w-tournament-color-bg, #153a5c);color:var(--emfe-w-color-white, #FFFFFF);padding:20px;text-align:center;display:flex;gap:20px;display:flex;flex-direction:column}.TournamentInfo.Left{text-align:left}.TournamentInfo.Left .InfoButtons{justify-content:left}.TournamentInfo.Right{text-align:right}.TournamentInfo.Right .InfoButtons{justify-content:right}.Title{margin:0;font-size:18px}.Score{color:var(--emfe-w-color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emfe-w-color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emfe-w-color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emfe-w-color-white, #FFFFFF)}";const Rn={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"}},Fn=(t,e)=>{var i,n;return(null===(i=Rn[e])||void 0===i?void 0:i[t])||(null===(n=Rn.en)||void 0===n?void 0:n[t])};var jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},Nn={exports:{}};
10
+ /** @license
11
+ * eventsource.js
12
+ * Available under MIT License (MIT)
13
+ * https://github.com/Yaffle/EventSource/
14
+ */
15
+ !function(t,e){!function(i){var n=i.setTimeout,r=i.clearTimeout,s=i.XMLHttpRequest,a=i.XDomainRequest,o=i.ActiveXObject,u=i.EventSource,h=i.document,d=i.Promise,l=i.fetch,c=i.Response,f=i.TextDecoder,m=i.TextEncoder,g=i.AbortController;if("undefined"==typeof window||void 0===h||"readyState"in h||null!=h.body||(h.readyState="loading",window.addEventListener("load",(function(){h.readyState="complete"}),!1)),null==s&&null!=o&&(s=function(){return new o("Microsoft.XMLHTTP")}),null==Object.create&&(Object.create=function(t){function e(){}return e.prototype=t,new e}),Date.now||(Date.now=function(){return(new Date).getTime()}),null==g){var p=l;l=function(t,e){var i=e.signal;return p(t,{headers:e.headers,credentials:e.credentials,cache:e.cache}).then((function(t){var e=t.body.getReader();return i._reader=e,i._aborted&&i._reader.cancel(),{status:t.status,statusText:t.statusText,headers:t.headers,body:{getReader:function(){return e}}}}))},g=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){null!=this.signal._reader&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function b(){this.bitsNeeded=0,this.codePoint=0}b.prototype.decode=function(t){function e(t,e,i){if(1===i)return t>=128>>e&&t<<e<=2047;if(2===i)return t>=2048>>e&&t<<e<=55295||t>=57344>>e&&t<<e<=65535;if(3===i)return t>=65536>>e&&t<<e<=1114111;throw new Error}function i(t,e){if(6===t)return e>>6>15?3:e>31?2:1;if(12===t)return e>15?3:2;if(18===t)return 3;throw new Error}for(var n=65533,r="",s=this.bitsNeeded,a=this.codePoint,o=0;o<t.length;o+=1){var u=t[o];0!==s&&(u<128||u>191||!e(a<<6|63&u,s-6,i(s,a)))&&(s=0,a=n,r+=String.fromCharCode(a)),0===s?(u>=0&&u<=127?(s=0,a=u):u>=192&&u<=223?(s=6,a=31&u):u>=224&&u<=239?(s=12,a=15&u):u>=240&&u<=247?(s=18,a=7&u):(s=0,a=n),0===s||e(a,s,i(s,a))||(s=0,a=n)):(s-=6,a=a<<6|63&u),0===s&&(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=s,this.codePoint=a,r},null!=f&&null!=m&&function(){try{return"test"===(new f).decode((new m).encode("test"),{stream:!0})}catch(t){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+t)}return!1}()||(f=b);var y=function(){};function v(t){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=y,this.onload=y,this.onerror=y,this.onreadystatechange=y,this._contentType="",this._xhr=t,this._sendTimeout=0,this._abort=y}function w(t){return t.replace(/[A-Z]/g,(function(t){return String.fromCharCode(t.charCodeAt(0)+32)}))}function k(t){for(var e=Object.create(null),i=t.split("\r\n"),n=0;n<i.length;n+=1){var r=i[n].split(": "),s=r.shift(),a=r.join(": ");e[w(s)]=a}this._map=e}function S(){}function M(t){this._headers=t}function C(){}function x(){this._listeners=Object.create(null)}function D(t){n((function(){throw t}),0)}function T(t){this.type=t,this.target=void 0}function A(t,e){T.call(this,t),this.data=e.data,this.lastEventId=e.lastEventId}function R(t,e){T.call(this,t),this.status=e.status,this.statusText=e.statusText,this.headers=e.headers}function F(t,e){T.call(this,t),this.error=e.error}v.prototype.open=function(t,e){this._abort(!0);var i=this,a=this._xhr,o=1,u=0;this._abort=function(t){0!==i._sendTimeout&&(r(i._sendTimeout),i._sendTimeout=0),1!==o&&2!==o&&3!==o||(o=4,a.onload=y,a.onerror=y,a.onabort=y,a.onprogress=y,a.onreadystatechange=y,a.abort(),0!==u&&(r(u),u=0),t||(i.readyState=4,i.onabort(null),i.onreadystatechange())),o=0};var h=function(){if(1===o){var t=0,e="",n=void 0;if("contentType"in a)t=200,e="OK",n=a.contentType;else try{t=a.status,e=a.statusText,n=a.getResponseHeader("Content-Type")}catch(i){t=0,e="",n=void 0}0!==t&&(o=2,i.readyState=2,i.status=t,i.statusText=e,i._contentType=n,i.onreadystatechange())}},d=function(){if(h(),2===o||3===o){o=3;var t="";try{t=a.responseText}catch(t){}i.readyState=3,i.responseText=t,i.onprogress()}},l=function(t,e){if(null!=e&&null!=e.preventDefault||(e={preventDefault:y}),d(),1===o||2===o||3===o){if(o=4,0!==u&&(r(u),u=0),i.readyState=4,"load"===t)i.onload(e);else if("error"===t)i.onerror(e);else{if("abort"!==t)throw new TypeError;i.onabort(e)}i.onreadystatechange()}},c=function(){u=n((function(){c()}),500),3===a.readyState&&d()};"onload"in a&&(a.onload=function(t){l("load",t)}),"onerror"in a&&(a.onerror=function(t){l("error",t)}),"onabort"in a&&(a.onabort=function(t){l("abort",t)}),"onprogress"in a&&(a.onprogress=d),"onreadystatechange"in a&&(a.onreadystatechange=function(t){!function(t){null!=a&&(4===a.readyState?"onload"in a&&"onerror"in a&&"onabort"in a||l(""===a.responseText?"error":"load",t):3===a.readyState?"onprogress"in a||d():2===a.readyState&&h())}(t)}),!("contentType"in a)&&"ontimeout"in s.prototype||(e+=(-1===e.indexOf("?")?"?":"&")+"padding=true"),a.open(t,e,!0),"readyState"in a&&(u=n((function(){c()}),0))},v.prototype.abort=function(){this._abort(!1)},v.prototype.getResponseHeader=function(){return this._contentType},v.prototype.setRequestHeader=function(t,e){var i=this._xhr;"setRequestHeader"in i&&i.setRequestHeader(t,e)},v.prototype.getAllResponseHeaders=function(){return null!=this._xhr.getAllResponseHeaders&&this._xhr.getAllResponseHeaders()||""},v.prototype.send=function(){if("ontimeout"in s.prototype&&("sendAsBinary"in s.prototype||"mozAnon"in s.prototype)||null==h||null==h.readyState||"complete"===h.readyState){var t=this._xhr;"withCredentials"in t&&(t.withCredentials=this.withCredentials);try{t.send(void 0)}catch(t){throw t}}else{var e=this;e._sendTimeout=n((function(){e._sendTimeout=0,e.send()}),4)}},k.prototype.get=function(t){return this._map[w(t)]},null!=s&&null==s.HEADERS_RECEIVED&&(s.HEADERS_RECEIVED=2),S.prototype.open=function(t,e,i,n,r,a,o){t.open("GET",r);var u=0;for(var h in t.onprogress=function(){var e=t.responseText.slice(u);u+=e.length,i(e)},t.onerror=function(t){t.preventDefault(),n(new Error("NetworkError"))},t.onload=function(){n(null)},t.onabort=function(){n(null)},t.onreadystatechange=function(){if(t.readyState===s.HEADERS_RECEIVED){var i=t.status,n=t.statusText,r=t.getResponseHeader("Content-Type"),a=t.getAllResponseHeaders();e(i,n,r,new k(a))}},t.withCredentials=a,o)Object.prototype.hasOwnProperty.call(o,h)&&t.setRequestHeader(h,o[h]);return t.send(),t},M.prototype.get=function(t){return this._headers.get(t)},C.prototype.open=function(t,e,i,n,r,s,a){var o=null,u=new g,h=u.signal,c=new f;return l(r,{headers:a,credentials:s?"include":"same-origin",signal:h,cache:"no-store"}).then((function(t){return o=t.body.getReader(),e(t.status,t.statusText,t.headers.get("Content-Type"),new M(t.headers)),new d((function(t,e){var n=function(){o.read().then((function(e){if(e.done)t(void 0);else{var r=c.decode(e.value,{stream:!0});i(r),n()}})).catch((function(t){e(t)}))};n()}))})).catch((function(t){return"AbortError"===t.name?void 0:t})).then((function(t){n(t)})),{abort:function(){null!=o&&o.cancel(),u.abort()}}},x.prototype.dispatchEvent=function(t){t.target=this;var e=this._listeners[t.type];if(null!=e)for(var i=e.length,n=0;n<i;n+=1){var r=e[n];try{"function"==typeof r.handleEvent?r.handleEvent(t):r.call(this,t)}catch(t){D(t)}}},x.prototype.addEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];null==n&&(i[t]=n=[]);for(var r=!1,s=0;s<n.length;s+=1)n[s]===e&&(r=!0);r||n.push(e)},x.prototype.removeEventListener=function(t,e){t=String(t);var i=this._listeners,n=i[t];if(null!=n){for(var r=[],s=0;s<n.length;s+=1)n[s]!==e&&r.push(n[s]);0===r.length?delete i[t]:i[t]=r}},A.prototype=Object.create(T.prototype),R.prototype=Object.create(T.prototype),F.prototype=Object.create(T.prototype);var j=/^text\/event\-stream(;.*)?$/i,N=function(t,e){var i=null==t?e:parseInt(t,10);return i!=i&&(i=e),Y(i)},Y=function(t){return Math.min(Math.max(t,1e3),18e6)},z=function(t,e,i){try{"function"==typeof e&&e.call(t,i)}catch(t){D(t)}};function L(t,e){x.call(this),e=e||{},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(t,e,i){e=String(e);var o=Boolean(i.withCredentials),u=i.lastEventIdQueryParameterName||"lastEventId",h=Y(1e3),d=N(i.heartbeatTimeout,45e3),l="",c=h,f=!1,m=0,g=i.headers||{},p=i.Transport,b=B&&null==p?void 0:new v(null!=p?new p:null!=s&&"withCredentials"in s.prototype||null==a?new s:new a),y=null!=p&&"string"!=typeof p?new p:null==b?new C:new S,w=void 0,k=0,M=-1,x="",D="",T="",L="",J=0,P=0,H=0,O=function(e,i,n,r){if(0===M)if(200===e&&null!=n&&j.test(n)){M=1,f=Date.now(),c=h,t.readyState=1;var s=new R("open",{status:e,statusText:i,headers:r});t.dispatchEvent(s),z(t,t.onopen,s)}else{var a="";200!==e?(i&&(i=i.replace(/\s+/g," ")),a="EventSource's response has a status "+e+" "+i+" that is not 200. Aborting the connection."):a="EventSource's response has a Content-Type specifying an unsupported type: "+(null==n?"-":n.replace(/\s+/g," "))+". Aborting the connection.",I(),s=new R("error",{status:e,statusText:i,headers:r}),t.dispatchEvent(s),z(t,t.onerror,s),console.error(a)}},W=function(e){if(1===M){for(var i=-1,s=0;s<e.length;s+=1)(u=e.charCodeAt(s))!=="\n".charCodeAt(0)&&u!=="\r".charCodeAt(0)||(i=s);var a=(-1!==i?L:"")+e.slice(0,i+1);L=(-1===i?L:"")+e.slice(i+1),""!==e&&(f=Date.now(),m+=e.length);for(var o=0;o<a.length;o+=1){var u=a.charCodeAt(o);if(-1===J&&u==="\n".charCodeAt(0))J=0;else if(-1===J&&(J=0),u==="\r".charCodeAt(0)||u==="\n".charCodeAt(0)){if(0!==J){1===J&&(H=o+1);var g=a.slice(P,H-1),p=a.slice(H+(H<o&&a.charCodeAt(H)===" ".charCodeAt(0)?1:0),o);"data"===g?(x+="\n",x+=p):"id"===g?D=p:"event"===g?T=p:"retry"===g?(h=N(p,h),c=h):"heartbeatTimeout"===g&&(d=N(p,d),0!==k&&(r(k),k=n((function(){G()}),d)))}if(0===J){if(""!==x){l=D,""===T&&(T="message");var b=new A(T,{data:x.slice(1),lastEventId:D});if(t.dispatchEvent(b),"open"===T?z(t,t.onopen,b):"message"===T?z(t,t.onmessage,b):"error"===T&&z(t,t.onerror,b),2===M)return}x="",T=""}J=u==="\r".charCodeAt(0)?-1:0}else 0===J&&(P=o,J=1),1===J?u===":".charCodeAt(0)&&(H=o+1,J=2):2===J&&(J=3)}}},E=function(e){if(1===M||0===M){M=-1,0!==k&&(r(k),k=0),k=n((function(){G()}),c),c=Y(Math.min(16*h,2*c)),t.readyState=0;var i=new F("error",{error:e});t.dispatchEvent(i),z(t,t.onerror,i),null!=e&&console.error(e)}},I=function(){M=2,null!=w&&(w.abort(),w=void 0),0!==k&&(r(k),k=0),t.readyState=2},G=function(){if(k=0,-1===M){f=!1,m=0,k=n((function(){G()}),d),M=0,x="",T="",D=l,L="",P=0,H=0,J=0;var i=e;if("data:"!==e.slice(0,5)&&"blob:"!==e.slice(0,5)&&""!==l){var r=e.indexOf("?");i=-1===r?e:e.slice(0,r+1)+e.slice(r+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,(function(t,e){return e===u?"":t})),i+=(-1===e.indexOf("?")?"?":"&")+u+"="+encodeURIComponent(l)}var s=t.withCredentials,a={Accept:"text/event-stream"},o=t.headers;if(null!=o)for(var h in o)Object.prototype.hasOwnProperty.call(o,h)&&(a[h]=o[h]);try{w=y.open(b,O,W,E,i,s,a)}catch(t){throw I(),t}}else if(f||null==w){var c=Math.max((f||Date.now())+d-Date.now(),1);f=!1,k=n((function(){G()}),c)}else E(new Error("No activity within "+d+" milliseconds. "+(0===M?"No response received.":m+" chars received.")+" Reconnecting.")),null!=w&&(w.abort(),w=void 0)};t.url=e,t.readyState=0,t.withCredentials=o,t.headers=g,t._close=I,G()}(this,t,e)}var B=null!=l&&null!=c&&"body"in c.prototype;(L.prototype=Object.create(x.prototype)).CONNECTING=0,L.prototype.OPEN=1,L.prototype.CLOSED=2,L.prototype.close=function(){this._close()},L.CONNECTING=0,L.OPEN=1,L.CLOSED=2,L.prototype.withCredentials=void 0;var J,P=u;null==s||null!=u&&"withCredentials"in u.prototype||(P=L),J=function(t){t.EventSourcePolyfill=L,t.NativeEventSource=u,t.EventSource=P}(e),void 0!==J&&(t.exports=J)}("undefined"==typeof globalThis?"undefined"!=typeof window?window:"undefined"!=typeof self?self:jn:globalThis)}(Nn,Nn.exports);const Yn=class{constructor(e){t(this,e),this.endpoint=void 0,this.tournamentId=void 0,this.session=void 0,this.userId=void 0,this.language=void 0,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.namemask=void 0,this.minscore=void 0,this.clientStyling="",this.clientStylingUrl="",this.showHeader=!0,this.showTitle=!1,this.showTopIcon=!1,this.translationData=void 0,this.limitStylingAppends=!1,this.items=void 0,this.columns=void 0,this.rankChanged=!1,this.rankUp=!1,this.rankDown=!1,this.rank=void 0,this.arrowDuration=5e3}getLeaderboard(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}/leaderboard`),e=new Headers;t.searchParams.append("language",this.language);let i=`includeUnqualifiedPlayer=${this.showUnqualified}`;i=this.namemask?`${i},shortNameMask=${this.namemask}`:i,i=this.minscore?`${i},minscore=${this.minscore}`:i,t.searchParams.append("filter",i);let n=1==(()=>{let t=window.navigator.userAgent;return!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i))})()?this.mobileLimit:this.tableLimit;t.searchParams.append("pagination",`offset=0,limit=${n}`),this.session&&e.append("X-SessionId",this.session),t.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((e=>{if(this.updateLeaderboardView(e,!1),1==this.updateLeaderboard){let e=`${this.endpoint}/v1/tournaments/${this.tournamentId}/leaderboard/updates?HeartBeat=false&${t.searchParams.toString()}`;this.startLeaderboardUpdate(e,{headers:{accept:"text/event-stream","X-SessionId":this.session}})}}))}startLeaderboardUpdate(t,e){const i=new Nn.exports.EventSourcePolyfill(t,e);i.removeEventListener("message",this.updateLeaderboardHandler),i.addEventListener("message",this.updateLeaderboardHandler.bind(this))}updateLeaderboardView(t,e){this.items=t.items,e&&this.items.sort(((t,e)=>t.rank>e.rank?1:e.rank>t.rank?-1:0)),this.userSticky&&this.items.sort((t=>t.userID==this.userId?-1:0)),this.userOnly&&(this.items=t.item?[t.item]:[]),t.item&&this.setRank(t.item.rank,e)}setRank(t,e){if(e)if(this.rank!=t){if(!this.rank)return void(this.rank=t);this.rankChanged=!0,this.rank>t?this.rankUp=!0:this.rankDown=!0;let e=(new Date).getTime(),i=this.arrowDuration-1e3,n=this;setTimeout((function(){(new Date).getTime()-e>i&&(n.rankChanged=!1,n.rankDown=!1,n.rankUp=!1),n.rank=t}),this.arrowDuration)}else this.rankDown=!1,this.rankUp=!1}updateLeaderboardHandler(t){if(!t.data)return;let e=JSON.parse(t.data);"LeaderBoardUpdate"==e.messageType&&this.updateLeaderboardView(e,!0)}componentWillLoad(){var t;this.translationData&&(t=JSON.parse(this.translationData),Object.keys(t).forEach((e=>{for(let i in t[e])Rn[e][i]=t[e][i]}))),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 t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"69d1f68c6b2e3863e7abc6febd795d7009e6085b",class:"Leaderboard"},this.showTitle&&this.items&&this.items.length>0&&i("div",{key:"a8e93e8566c2426e14a76105f933ee139433fd2c",class:"Title",part:"Title"},i("svg",{key:"bf51b36b58634d5e01a9e223dd4904f140f88954",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("path",{key:"a4204b6371d256237ef908afd1c1285ba1ea5e82",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"})),i("span",{key:"18392b0abbd62f1eb40b17c00750a8e3f64b277e",class:"Ranking"},Fn("myRanking",this.language))),this.showHeader&&this.items&&this.items.length>0&&i("div",{key:"a2713aa9083bca0b8b73fedfc1a38c5496500d45",class:"LeaderboardRow LeaderboardHeader"},this.columns.map((t=>i("div",null,Fn(t,this.language))))),this.items&&i("div",{key:"0f55294a80175429df797ad7ed7a0c2ff781f612",class:"LeaderboardBody"},this.items.map(((t,e)=>i("div",{class:"Row",part:"Row"},i("div",{class:`LeaderboardRow Rank${e+1} ${this.userId==t.userID?"RankPlayer":""}`},i("div",{class:"Rank"},this.showTopIcon&&t.rank<=3?i("span",{class:"TopRank"},i("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"15",viewBox:"0 0 18 15",fill:"none"},i("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"})),i("span",{class:"TopRankText"},t.rank)):t.rank,this.userId==t.userID&&1==this.rankChanged&&i("span",{class:"ArrowWrap"},this.rankUp&&i("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("circle",{cx:"4.9999",cy:"4.9999",r:"4.9999",fill:"#434647"}),i("g",{"clip-path":"url(#clip0_2591_1149)"},i("line",{x1:"4.93332",y1:"4",x2:"4.93332",y2:"7.99992",stroke:"#59CA00","stroke-width":"1.86663"}),i("path",{d:"M4.99896 2L7.59699 4.99994H2.40094L4.99896 2Z",fill:"#59CA00"})),i("defs",null,i("clipPath",{id:"clip0_2591_1149"},i("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"translate(1.99902 2)"})))),this.rankDown&&i("svg",{class:"Arrow",width:"20",height:"20",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},i("circle",{r:"4.9999",transform:"matrix(1 0 0 -1 4.9999 5.0001)",fill:"#434647"}),i("g",{"clip-path":"url(#clip0_2591_1154)"},i("line",{y1:"-0.933315",x2:"3.99992",y2:"-0.933315",transform:"matrix(0 -1 -1 0 4 6)",stroke:"#CA0000","stroke-width":"1.86663"}),i("path",{d:"M4.99896 8L7.59699 5.00006H2.40094L4.99896 8Z",fill:"#CA0000"})),i("defs",null,i("clipPath",{id:"clip0_2591_1154"},i("rect",{width:"5.99988",height:"5.99928",fill:"white",transform:"matrix(1 0 0 -1 1.99902 8)"})))))),i("div",{class:"Player"},t.shortName),i("div",{class:"Points"},t.score),i("div",{class:"Prize"},t.prizeName)))))))}get host(){return n(this)}};Yn.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}}";const zn={en:{prizes:"Prizes",noprizes:"No available prizes",place:"place"},"zh-hk":{prizes:"獎品",noprizes:"沒有可用的獎品",place:"place"},fr:{prizes:"Prix",noprizes:"Aucun prix disponible",place:"place"},ro:{prizes:"Premii",noprizes:"Nu sunt disponibile premii",place:"poziție"},tr:{prizes:"Ödüller",noprizes:"Geçerli ödül yok",place:"Sıra"},el:{prizes:"Έπαθλα",noprizes:"Μη διαθέσιμα έπαθλα",place:"θέση"},es:{prizes:"Premios",noprizes:"No hay premios disponibles",place:"posición"},hu:{prizes:"Nyeremények",noprizes:"Nincs elérhető nyeremény",place:"helyezés"},pt:{prizes:"Prêmios",noprizes:"Não há prêmios disponíveis",place:"place"},hr:{prizes:"Nagrade",noprizes:"Nema dostupnih nagrada",place:"mjesto"}},Ln=(t,e)=>{var i,n;return(null===(i=zn[e])||void 0===i?void 0:i[t])||(null===(n=zn.en)||void 0===n?void 0:n[t])},Bn=class{constructor(e){t(this,e),this.language=void 0,this.useGroup=!1,this.useEvent=!1,this.endpoint=void 0,this.session=void 0,this.rawPrizes=void 0,this.tournamentId=void 0,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.prizes=[],this.prizeGroups=[],this.initialLoad=!1}infoCompletedHandler(t){t.detail&&(this.prizes=t.detail.prizes,this.formatGroup(),this.initialLoad=!0)}formatGroup(){this.prizes.forEach((t=>{let e=[];if(t.count>0)for(let i=0;i<t.count;i++)e.push({name:t.name,rank:t.rank+i});this.prizeGroups.push(e)}))}getTournamentInfo(){let t=new URL(this.endpoint+`/v1/tournaments/${this.tournamentId}`),e=new Headers;t.searchParams.append("expand","games"),t.searchParams.append("language",this.language),t.searchParams.append("fields","playerEnrolled,games(id,name,thumbnail)"),this.session&&e.append("X-SessionId",this.session),fetch(t.href,{method:"GET",headers:e}).then((t=>t.json())).then((t=>{this.prizes=t.item.prizes,this.useGroup&&this.formatGroup(),this.initialLoad=!0}))}componentWillLoad(){!this.useEvent&&this.rawPrizes&&(this.prizes=JSON.parse(this.rawPrizes),this.useGroup&&this.formatGroup(),this.initialLoad=!0),!this.useEvent&&this.endpoint&&this.tournamentId&&this.getTournamentInfo()}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"6f6d6a40e0374ad146b0eda343d963679fbd11f0",class:"TournamentPrizes "+(this.useGroup?"":"PrizeView")},this.initialLoad&&!this.useGroup&&i("div",{key:"28edb876913c67479b4fb5c885244cea36a073ea",class:"PrizeTitle"},i("svg",{key:"6cd86bf5db8eacee01a9577458c136cbe78684bc",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"30",height:"27.454",viewBox:"0 0 30 27.454"},i("path",{key:"744e27a1ee73240f5876abd14b2e912b8dbc979e",d:"M35.84,12.887a1.023,1.023,0,0,0-.853-.481h-5.2l.242-1.456a1.023,1.023,0,0,0-1.023-1.19H12.977a1.023,1.023,0,0,0-1.023,1.19l.242,1.456H7.022a1.023,1.023,0,0,0-.921,1.47l2.967,6.077a6.48,6.48,0,0,0,5.163,3.581,7.227,7.227,0,0,0,3.7,3.963v2.667h-.426a3.525,3.525,0,1,0,0,7.049H24.5a3.525,3.525,0,1,0,0-7.049h-.426V27.5a7.227,7.227,0,0,0,3.7-3.963,6.48,6.48,0,0,0,5.167-3.581L35.9,13.876a1.023,1.023,0,0,0-.058-.989ZM10.914,19.05l-2.241-4.6h3.891l1.153,6.916A4.406,4.406,0,0,1,10.914,19.05ZM25.977,33.687A1.477,1.477,0,0,1,24.5,35.164H17.509a1.478,1.478,0,0,1,0-2.957H24.5A1.48,1.48,0,0,1,25.977,33.687Zm-3.949-3.526H19.982V28.094a6.729,6.729,0,0,0,2.046,0Zm4.123-8.383a5.218,5.218,0,0,1-10.293,0L14.184,11.8H27.826ZM31.1,19.05a4.406,4.406,0,0,1-2.8,2.309l1.153-6.916h3.891Z",transform:"translate(-5.999 -9.76)"})),i("div",{key:"ddd4dd055f8441b1b0355e95e88b43049a108b2c",class:"Title"},Ln("prizes",this.language))),this.initialLoad&&this.useGroup&&i("div",{key:"83b846fe441de36598d01742fd6730de4c5920bf",class:"GroupPrizeTitle"},i("svg",{key:"e6b379df8cc991173b588e8dd9408b0c6716de7a",class:"PrizeIcon",xmlns:"http://www.w3.org/2000/svg",width:"19",height:"16",viewBox:"0 0 19 16",fill:"none"},i("g",{key:"0332923cca76d7ccbe779cb367abb4e8952842b5","clip-path":"url(#clip0_2459_42455)"},i("path",{key:"607a3379976189ca332117ec968c34046b3dcb46",d:"M14.7476 2.84132V0.664551H4.03327V2.84132H0.818359V5.01946C0.818359 6.8229 2.2568 8.28496 4.0326 8.28496C4.36862 8.28496 4.69326 8.23192 4.99647 8.13399C5.76958 9.25604 6.94898 10.07 8.31782 10.3516V13.7266H7.24685C6.06276 13.7266 5.1029 14.701 5.1029 15.9026H13.6753C13.6753 14.7004 12.7168 13.7266 11.5327 13.7266H10.4611V10.3516C11.8293 10.07 13.0087 9.25672 13.7818 8.13399C14.0863 8.23124 14.4116 8.28496 14.7463 8.28496C16.5214 8.28496 17.9612 6.8229 17.9612 5.01946V2.84132H14.7476ZM4.03327 6.99222C2.9623 6.99222 2.0908 6.10751 2.0908 5.01946V3.93005H4.03327V5.01946C4.03327 5.70221 4.15844 6.3564 4.38401 6.9589C4.27089 6.9793 4.15175 6.99086 4.03327 6.99086V6.99222ZM11.0207 5.88989L12.0414 9.06223L9.38945 7.09355L6.7368 9.06223L7.75757 5.88989L5.09688 3.93481L8.3814 3.94229L9.38945 0.767235L10.3968 3.94229L13.6814 3.93481L11.0207 5.88989ZM16.6901 5.01946C16.6901 6.10683 15.8193 6.99222 14.7483 6.99222C14.6285 6.99222 14.512 6.9793 14.3982 6.95958C14.6245 6.3564 14.7483 5.70357 14.7483 5.02014V3.93073H16.6901V5.02014V5.01946Z",fill:"white"})),i("defs",{key:"66f11be400aac05c7f334a48b82cfb1aabdead8c"},i("clipPath",{key:"65e879523cff89288af691d5f705ef55996f3107",id:"clip0_2459_42455"},i("rect",{key:"382441f3ade90fa866096c5f25dfc3cb49d82132",width:"18.2857",height:"16",fill:"white",transform:"translate(0.5)"})))),i("div",{key:"8610b8361faa0d2316415e39a21162dfcdcaeccf",class:"Title"},Ln("prizes",this.language))),i("div",{key:"76d9452769046d3c9cd4d0dd7a65396c5083ebc6",class:"PrizeGroups"},1==this.useGroup&&this.prizeGroups&&this.prizeGroups.map(((t,e)=>i("div",{class:`PrizeGroup Group${e+1}`},t&&t.map(((t,e)=>i("div",{class:"PrizeRow"},i("div",{class:`PrizeItem Rank${e+1}`},i("span",{class:"PrizeRank"},t.rank," ",Ln("place",this.language)," "),i("span",{class:"PrizeName"},t.name)))))))),0==this.useGroup&&this.prizes&&this.prizes.map(((t,e)=>i("div",{class:`Prize Prize${e}`},i("p",{class:"PrizeText"},i("span",{class:"PrizeRank"},t.count>1?`${t.rank}~${t.rank+t.count-1}`:t.rank)," ",Ln("place",this.language),": ",t.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},Ln("noprizes",this.language))))}get host(){return n(this)}};Bn.style=":host{display:block}.PrizeGroups{color:var(--emfe-w-color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emfe-w-tournament-color-bg, #153a5c)}.PrizeTitle{text-align:center;width:100%}.GroupPrizeTitle{width:100%;display:flex;padding:8px 6px;gap:8px;justify-content:center}.PrizeView{display:flex;gap:10px;font-size:12px}.PrizeView .PrizeTitle{display:inline-block;width:auto}.PrizeView .PrizeGroups{display:inline-flex}.Title{text-align:center;color:var(--emfe-w-color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emfe-w-color-white, #FFFFFF)}.PrizeRow{padding:8px;border-bottom:1px solid rgba(206, 210, 214, 0.15)}.PrizeItem{display:flex;justify-content:space-between;padding:6px;font-size:12px;border-radius:2px}.Group1 .Rank1{background:#7e6c22}.Group1 .Rank2{background:#666}.Group1 .Rank3{background:#6a5446}.Prizes{padding-left:20px;flex-wrap:wrap;display:flex;gap:20px;width:100%;min-height:50px;padding-top:8px}.Prize{flex-grow:1;color:var(--emfe-w-color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emfe-w-color-white, #FFFFFF)}";const Jn=class{constructor(e){t(this,e),this.slides=null,this.slideWidth=0,this.currentPage=0,this.controls={Prev:null,Next:null},this.xDown=null,this.yDown=null,this.slideNumber=3,this.slideShow=3,this.showArrow=!0,this.showButton=!1,this.autoSlide=!1,this.loopTime=1,this.autoItemHeight=!1,this.clientStyling="",this.clientStylingUrl="",this.currentSlideNumber=0,this.slidesCount=0,this.limitStylingAppends=!1}slide(t){let e=0;e=t?this.currentSlideNumber+this.slideNumber:this.currentSlideNumber-this.slideNumber,e<0||e>=this.slidesCount||(this.currentSlideNumber=e,this.currentPage=this.currentSlideNumber/this.slideNumber,this.updateListStyle())}slideTo(t){this.currentSlideNumber=t*this.slideNumber,this.currentPage=t,this.updateListStyle()}updateControls(){this.switchControl("Prev",0!==this.currentSlideNumber),this.switchControl("Next",this.currentSlideNumber!==this.slidesCount-this.slideShow)}switchControl(t,e){this.controls[t]&&(this.controls[t].disabled=!e)}componentWillLoad(){this.slideNumber||(this.slideNumber=1),this.slideShow||(this.slideShow=1)}componentDidLoad(){this.slides=this.slotEl.assignedElements(),this.slidesCount=this.slides.length;for(let t in this.controls)this.controls[t]=this.el.shadowRoot.querySelector(".Button"+t);this.autoSlide&&this.setSlideAutoInterval(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}componentDidRender(){this.slides&&(this.slideWidth=this.slides[0].offsetWidth),this.el.addEventListener("touchstart",this.handleTouchStart.bind(this),{passive:!0}),this.el.addEventListener("touchmove",this.handleTouchMove.bind(this),{passive:!0}),this.updateListStyle(),!this.limitStylingAppends&&this.el.shadowRoot&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}updateListStyle(){this.autoItemHeight&&null!==this.slides&&this.slides.forEach(((t,e)=>{e>=this.currentPage*this.slideNumber&&e<(this.currentPage+1)*this.slideNumber?t.classList.remove("hide"):t.classList.add("hide")}))}disconnectedCallback(){this.el.removeEventListener("touchstart",this.handleTouchStart),this.el.removeEventListener("touchmove",this.handleTouchMove)}handleTouchStart(t){const e=this.getTouches(t)[0];this.xDown=e.clientX,this.yDown=e.clientY,clearInterval(this.sliderInterval)}getTouches(t){return t.touches||t.originalEvent.touches}handleTouchMove(t){if(!this.xDown||!this.yDown)return;let e=this.xDown-t.touches[0].clientX,i=this.yDown-t.touches[0].clientY;Math.abs(e)>Math.abs(i)&&this.slide(e>0),this.xDown=null,this.yDown=null,this.autoSlide&&this.setSlideAutoInterval()}setSlideAutoInterval(){0!=this.loopTime&&(clearInterval(this.sliderInterval),this.sliderInterval=setInterval((()=>{this.slideTo(this.currentPage+1<this.slidesCount/this.slideNumber?this.currentPage+1:0)}),1e3*Number(this.loopTime)))}componentDidUpdate(){this.sliderEl.style.transform=`translateX(${this.currentSlideNumber*this.slideWidth*-1}px)`,this.updateControls()}switchLoopStatus(t){this.autoSlide&&this.loopTime>0&&(t?clearInterval(this.sliderInterval):this.setSlideAutoInterval())}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.el.shadowRoot.adoptedStyleSheets=[...this.el.shadowRoot.adoptedStyleSheets,e]}))}render(){return i("div",{key:"b8c30bef4c9ca004256c94cb642e8acb350afea4",class:"GeneralSlider"},i("div",{key:"27d6869ae4f675f5e14d17fae20718ec24391e1b",class:"Slider"},this.showArrow&&i("div",{key:"61acebc8e1a0ecf02ae6dad1ecc6f618424d05d5"},i("button",{key:"c593883f94b693d6dfe741b2b4ed08185db36ef2",type:"button",class:"Button ButtonNext",onClick:this.slide.bind(this,!0),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},">"),i("button",{key:"2bea5e3e9f36443e78bc25f0556dce2adb7111a0",type:"button",class:"Button ButtonPrev",onClick:this.slide.bind(this,!1),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)},"<")),i("ul",{key:"6643c865256f26b5d06ec78044a2b595832ecb5e",class:`SliderList Col-${this.slideShow}`,part:"SliderList",onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1),ref:t=>this.sliderEl=t},i("slot",{key:"48f1ad37b771f32ecc27f3065d58bc7ef1a8a021",ref:t=>this.slotEl=t}))),this.showButton&&this.slidesCount>0&&i("div",{key:"d125efa8c68a6e913664d01fb395ed6cada71f5b",class:"PageButtons",part:"PageButtons"},[...Array(this.slidesCount/this.slideNumber)].map(((t,e)=>i("div",{class:"PageButton "+(this.currentPage==e?"active":""),title:`page${e}`,onClick:this.slideTo.bind(this,e),onMouseEnter:this.switchLoopStatus.bind(this,!0),onMouseLeave:this.switchLoopStatus.bind(this,!1)}," ")))))}get el(){return n(this)}};Jn.style=":host{display:block}.GeneralSlider{position:relative}.Slider{position:relative;width:100%;margin:0 auto;overflow:hidden}.SliderList{display:flex;margin:0;padding:0;list-style:none;transition:transform 0.5s ease-in-out}::slotted(li){flex:1 0 auto;width:100%;margin:auto}::slotted(li.hide){visibility:hidden;height:0;transition-delay:500ms}.Col-2 ::slotted(li){flex:2 0 auto;width:50%}.Col-3 ::slotted(li){flex:3 0 auto;width:33.3333333333%}.Col-4 ::slotted(li){flex:4 0 auto;width:25%}.Col-5 ::slotted(li){flex:5 0 auto;width:20%}.Col-6 ::slotted(li){flex:6 0 auto;width:16.6666666667%}.Col-7 ::slotted(li){flex:7 0 auto;width:14.2857142857%}.Col-8 ::slotted(li){flex:8 0 auto;width:12.5%}.Col-9 ::slotted(li){flex:9 0 auto;width:11.1111111111%}.Col-10 ::slotted(li){flex:10 0 auto;width:10%}.Col-11 ::slotted(li){flex:11 0 auto;width:9.0909090909%}.Col-12 ::slotted(li){flex:12 0 auto;width:8.3333333333%}.Button{position:absolute;z-index:1;top:calc(50% - 32px);padding:20px;font-size:20px;line-height:20px;opacity:0.5;border:none;background:var(--emfe-w-color-contrast, #07072A);color:var(--emfe-w-color-white, #FFFFFF);cursor:pointer}.Button:hover{opacity:1;transition:opacity 0.5s ease-in-out}.Button[disabled],.Button[disabled]:hover{color:var(--emfe-w-color-gray-150, #828282);opacity:0.25}.Button.ButtonNext{right:0}.PageButtons{display:flex;gap:4px;margin-top:8px}.PageButton{width:15px;height:4px;border-radius:4px;background-color:var(--emfe-w-tournament-color-primary, #0072ed);opacity:0.2;cursor:pointer;float:right}.PageButton.active{width:45px;opacity:1}";export{a as casino_my_tournaments,bn as casino_tournament_banner,wn as casino_tournament_buttons,Mn as casino_tournament_duration,An as casino_tournament_info,Yn as casino_tournament_leaderboard,Bn as casino_tournament_prizes,Jn as general_slider}
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=new WeakMap,n=e=>t.get(e),l=(e,n)=>t.set(n.t=e,n),o=(e,t)=>t in e,s=(e,t)=>(0,console.error)(e,t),r=new Map,i=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",a="undefined"!=typeof window?window:{},u=a.document||{head:{}},f={l:0,o:"",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)},h=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),p=!1,m=[],y=[],w=(e,t)=>n=>{e.push(n),p||(p=!0,t&&4&f.l?$(b):f.raf(b))},v=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){s(e)}e.length=0},b=()=>{v(m),v(y),(p=m.length>0)&&f.raf(b)},$=e=>h().then(e),g=w(y,!0),S={},j=e=>"object"==(e=typeof e)||"function"===e;function k(e){var t,n,l;return null!=(l=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?l:void 0}((t,n)=>{for(var l in n)e(t,l,{get:n[l],enumerable:!0})})({},{err:()=>E,map:()=>C,ok:()=>O,unwrap:()=>x,unwrapErr:()=>P});var O=e=>({isOk:!0,isErr:!1,value:e}),E=e=>({isOk:!1,isErr:!0,value:e});function C(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>O(e))):O(n)}if(e.isErr)return E(e.value);throw"should never get here"}var M,x=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let l=null,o=null,s=!1,r=!1;const i=[],c=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!j(l))&&(l+=""),s&&r?i[i.length-1].i+=l:i.push(s?D(null,l):l),r=s)};if(c(n),t){t.key&&(o=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}const a=D(e,null);return a.u=t,i.length>0&&(a.h=i),a.p=o,a},D=(e,t)=>({l:0,m:e,i:t,v:null,h:null,u:null,p:null}),A={},L=e=>n(e).$hostElement$,T=(e,t,n)=>{const l=L(e);return{emit:e=>U(l,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},U=(e,t,n)=>{const l=f.ce(t,n);return e.dispatchEvent(l),l},W=new WeakMap,F=e=>"sc-"+e.$,H=(e,t,n,l,s,r)=>{if(n!==l){let i=o(e,t),c=t.toLowerCase();if("class"===t){const t=e.classList,o=q(n),s=q(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(i||"o"!==t[0]||"n"!==t[1]){const o=j(l);if((i||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]=l;else{const o=null==l?"":l;"list"===t?i=!1:null!=n&&e[t]==o||(e[t]=o)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!i||4&r||s)&&!o&&e.setAttribute(t,l=!0===l?"":l)}else if(t="-"===t[2]?t.slice(3):o(a,c)?c.slice(2):c[2]+t.slice(3),n||l){const o=t.endsWith(G);t=t.replace(V,""),n&&f.rel(e,t,n,o),l&&f.ael(e,t,l,o)}}},N=/\s/,q=e=>e?e.split(N):[],G="Capture",V=RegExp(G+"$"),_=(e,t,n)=>{const l=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.u||S,s=t.u||S;for(const e of z(Object.keys(o)))e in s||H(l,e,o[e],void 0,n,t.l);for(const e of z(Object.keys(s)))H(l,e,o[e],s[e],n,t.l)};function z(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var B=!1,I=!1,J=(e,t,n)=>{const l=t.h[n];let o,s,r=0;if(null!==l.i)o=l.v=u.createTextNode(l.i);else{if(I||(I="svg"===l.m),o=l.v=u.createElementNS(I?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",l.m),I&&"foreignObject"===l.m&&(I=!1),_(null,l,I),o.getRootNode().querySelector("body"),l.h)for(r=0;r<l.h.length;++r)s=J(e,l,r),s&&o.appendChild(s);"svg"===l.m?I=!1:"foreignObject"===o.tagName&&(I=!0)}return o["s-hn"]=M,o},K=(e,t,n,l,o,s)=>{let r,i=e;for(i.shadowRoot&&i.tagName===M&&(i=i.shadowRoot);o<=s;++o)l[o]&&(r=J(null,n,o),r&&(l[o].v=r,ee(i,r,t)))},Q=(e,t,n)=>{for(let l=t;l<=n;++l){const t=e[l];if(t){const e=t.v;Z(t),e&&e.remove()}}},X=(e,t,n=!1)=>e.m===t.m&&(!!n||e.p===t.p),Y=(e,t,n=!1)=>{const l=t.v=e.v,o=e.h,s=t.h,r=t.m,i=t.i;null===i?(I="svg"===r||"foreignObject"!==r&&I,("slot"!==r||B)&&_(e,t,I),null!==o&&null!==s?((e,t,n,l,o=!1)=>{let s,r,i=0,c=0,a=0,u=0,f=t.length-1,h=t[0],d=t[f],p=l.length-1,m=l[0],y=l[p];for(;i<=f&&c<=p;)if(null==h)h=t[++i];else if(null==d)d=t[--f];else if(null==m)m=l[++c];else if(null==y)y=l[--p];else if(X(h,m,o))Y(h,m,o),h=t[++i],m=l[++c];else if(X(d,y,o))Y(d,y,o),d=t[--f],y=l[--p];else if(X(h,y,o))Y(h,y,o),ee(e,h.v,d.v.nextSibling),h=t[++i],y=l[--p];else if(X(d,m,o))Y(d,m,o),ee(e,d.v,h.v),d=t[--f],m=l[++c];else{for(a=-1,u=i;u<=f;++u)if(t[u]&&null!==t[u].p&&t[u].p===m.p){a=u;break}a>=0?(r=t[a],r.m!==m.m?s=J(t&&t[c],n,a):(Y(r,m,o),t[a]=void 0,s=r.v),m=l[++c]):(s=J(t&&t[c],n,c),m=l[++c]),s&&ee(h.v.parentNode,s,h.v)}i>f?K(e,null==l[p+1]?null:l[p+1].v,n,l,c,p):c>p&&Q(t,i,f)})(l,o,t,s,n):null!==s?(null!==e.i&&(l.textContent=""),K(l,null,t,s,0,s.length-1)):!n&&null!==o&&Q(o,0,o.length-1),I&&"svg"===r&&(I=!1)):e.i!==i&&(l.data=i)},Z=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(Z)},ee=(e,t,n)=>null==e?void 0:e.insertBefore(t,n),te=(e,t)=>{t&&!e.S&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.S=t)))},ne=(e,t)=>{if(e.l|=16,!(4&e.l))return te(e,e.j),g((()=>le(e,t)));e.l|=512},le=(e,t)=>{const n=e.t;if(!n)throw Error(`Can't render component <${e.$hostElement$.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t&&(e.l|=256,e.k&&(e.k.map((([e,t])=>ue(n,e,t))),e.k=void 0),l=ue(n,"componentWillLoad")),l=oe(l,(()=>ue(n,"componentWillRender"))),oe(l,(()=>re(e,n,t)))},oe=(e,t)=>se(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),se=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,re=async(e,t,n)=>{var l;const o=e.$hostElement$,s=o["s-rc"];n&&(e=>{const t=e.O,n=e.$hostElement$,l=t.l,o=((e,t)=>{var n;const l=F(t),o=i.get(l);if(e=11===e.nodeType?e:u,o)if("string"==typeof o){let s,r=W.get(e=e.head||e);if(r||W.set(e,r=new Set),!r.has(l)){{s=u.createElement("style"),s.innerHTML=o;const l=null!=(n=f.C)?n:k(u);null!=l&&s.setAttribute("nonce",l),(!(1&t.l)||1&t.l&&"HEAD"!==e.nodeName)&&e.insertBefore(s,e.querySelector("link"))}4&t.l&&(s.innerHTML+=c),r&&r.add(l)}}else e.adoptedStyleSheets.includes(o)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return l})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&2&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(e);ie(e,t,o,n),s&&(s.map((e=>e())),o["s-rc"]=void 0);{const t=null!=(l=o["s-p"])?l:[],n=()=>ce(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},ie=(e,t,n,l)=>{try{t=t.render(),e.l&=-17,e.l|=2,((e,t,n=!1)=>{const l=e.$hostElement$,o=e.O,s=e.M||D(null,null),r=(e=>e&&e.m===A)(t)?t:R(null,null,t);if(M=l.tagName,o.P&&(r.u=r.u||{},o.P.map((([e,t])=>r.u[t]=l[e]))),n&&r.u)for(const e of Object.keys(r.u))l.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(r.u[e]=l[e]);r.m=null,r.l|=4,e.M=r,r.v=s.v=l.shadowRoot||l,B=!!(1&o.l),Y(s,r,n)})(e,t,l)}catch(t){s(t,e.$hostElement$)}return null},ce=e=>{const t=e.$hostElement$,n=e.t,l=e.j;ue(n,"componentDidRender"),64&e.l?ue(n,"componentDidUpdate"):(e.l|=64,fe(t),ue(n,"componentDidLoad"),e.R(t),l||ae()),e.S&&(e.S(),e.S=void 0),512&e.l&&$((()=>ne(e,!1))),e.l&=-517},ae=()=>{fe(u.documentElement),$((()=>U(a,"appload",{detail:{namespace:"casino-my-tournaments"}})))},ue=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){s(e)}},fe=e=>e.classList.add("hydrated"),he=(e,t,l)=>{var o,r;const i=e.prototype;if(t.D||t.A||e.watchers){e.watchers&&!t.A&&(t.A=e.watchers);const c=Object.entries(null!=(o=t.D)?o:{});if(c.map((([e,[o]])=>{(31&o||2&l&&32&o)&&Object.defineProperty(i,e,{get(){return((e,t)=>n(this).L.get(t))(0,e)},set(l){((e,t,l,o)=>{const r=n(e);if(!r)throw Error(`Couldn't find host element for "${o.$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const i=r.$hostElement$,c=r.L.get(t),a=r.l,u=r.t;if(l=((e,t)=>null==e||j(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(l,o.D[t][0]),(!(8&a)||void 0===c)&&l!==c&&(!Number.isNaN(c)||!Number.isNaN(l))&&(r.L.set(t,l),u)){if(o.A&&128&a){const e=o.A[t];e&&e.map((e=>{try{u[e](l,c,t)}catch(e){s(e,i)}}))}2==(18&a)&&ne(r,!1)}})(this,e,l,t)},configurable:!0,enumerable:!0})})),1&l){const l=new Map;i.attributeChangedCallback=function(e,o,s){f.jmp((()=>{var r;const c=l.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const l=n(this),i=null==l?void 0:l.l;if(i&&!(8&i)&&128&i&&s!==o){const n=l.t,i=null==(r=t.A)?void 0:r[e];null==i||i.forEach((t=>{null!=n[t]&&n[t].call(n,s,o,e)}))}return}}this[c]=(null!==s||"boolean"!=typeof this[c])&&s}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(r=t.A)?r:{}),...c.filter((([e,t])=>15&t[0])).map((([e,n])=>{var o;const s=n[1]||e;return l.set(s,e),512&n[0]&&(null==(o=t.P)||o.push([e,s])),s}))]))}}return e},de=e=>{ue(e,"disconnectedCallback")},pe=(e,l={})=>{var o;const h=[],p=l.exclude||[],m=a.customElements,y=u.head,w=y.querySelector("meta[charset]"),v=u.createElement("style"),b=[];let $,g=!0;Object.assign(f,l),f.o=new URL(l.resourcesUrl||"./",u.baseURI).href;let S=!1;if(e.map((e=>{e[1].map((l=>{var o;const c={l:l[0],$:l[1],D:l[2],T:l[3]};4&c.l&&(S=!0),c.D=l[2],c.T=l[3],c.P=[],c.A=null!=(o=l[4])?o:{};const a=c.$,u=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,n)=>{const l={l:0,$hostElement$:e,O:n,L:new Map};l.U=new Promise((e=>l.R=e)),e["s-p"]=[],e["s-rc"]=[],t.set(e,l)})(e=this,c),1&c.l)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open"})}connectedCallback(){const e=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,me(this,e,c.T)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(e=>{if(!(1&f.l)){const t=n(e),l=t.O,o=()=>{};if(1&t.l)me(e,t,l.T),(null==t?void 0:t.t)||(null==t?void 0:t.U)&&t.U.then((()=>{}));else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){te(t,t.j=n);break}}l.D&&Object.entries(l.D).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let l;if(!(32&t.l)){if(t.l|=32,n.W){const e=(e=>{const t=e.$.replace(/-/g,"_"),n=e.W;if(!n)return;const l=r.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(r.set(n,e),e[t])),s)
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n);if(e&&"then"in e){const t=()=>{};l=await e,t()}else l=e;if(!l)throw Error(`Constructor for "${n.$}#${t.F}" was not found`);l.isProxied||(n.A=l.watchers,he(l,n,2),l.isProxied=!0);const o=()=>{};t.l|=8;try{new l(t)}catch(e){s(e)}t.l&=-9,t.l|=128,o()}else l=e.constructor,customElements.whenDefined(e.localName).then((()=>t.l|=128));if(l&&l.style){let e;"string"==typeof l.style&&(e=l.style);const t=F(n);if(!i.has(t)){const l=()=>{};((e,t,n)=>{let l=i.get(e);d&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=t:l.replaceSync(t)):l=t,i.set(e,l)})(t,e,!!(1&n.l)),l()}}}const o=t.j,c=()=>ne(t,!0);o&&o["s-rc"]?o["s-rc"].push(c):c()})(e,t,l)}o()}})(this)))}disconnectedCallback(){f.jmp((()=>(async()=>{if(!(1&f.l)){const e=n(this);e.H&&(e.H.map((e=>e())),e.H=void 0),(null==e?void 0:e.t)?de(e.t):(null==e?void 0:e.U)&&e.U.then((()=>de(e.t)))}})()))}componentOnReady(){return n(this).U}};c.W=e[0],p.includes(a)||m.get(a)||(h.push(a),m.define(a,he(u,c,1)))}))})),h.length>0&&(S&&(v.textContent+=c),v.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=f.C)?o:k(u);null!=e&&v.setAttribute("nonce",e),y.insertBefore(v,w?w.nextSibling:y.firstChild)}g=!1,b.length?b.map((e=>e.connectedCallback())):f.jmp((()=>$=setTimeout(ae,30)))},me=(e,t,n)=>{n&&n.map((([n,l,o])=>{const s=we(e,n),r=ye(t,o),i=ve(n);f.ael(s,l,r,i),(t.H=t.H||[]).push((()=>f.rel(s,l,r,i)))}))},ye=(e,t)=>n=>{var l;try{256&e.l?null==(l=e.t)||l[t](n):(e.k=e.k||[]).push([t,n])}catch(e){s(e)}},we=(e,t)=>8&t?a:e,ve=e=>({passive:!!(1&e),capture:!!(2&e)}),be=e=>f.C=e;export{pe as b,T as c,L as g,R as h,h as p,l as r,be as s}
@@ -0,0 +1 @@
1
+ const o=()=>{};export{o as g}
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ const globalScripts = () => {};
4
+
5
+ exports.globalScripts = globalScripts;