@everymatrix/casino-tournament-info 1.55.0 → 1.56.0

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 (23) hide show
  1. package/dist/casino-tournament-info/casino-tournament-info.esm.js +1 -1
  2. package/dist/casino-tournament-info/p-bb54d5a7.js +2 -0
  3. package/dist/casino-tournament-info/{p-5f942dec.entry.js → p-f841150a.entry.js} +2 -2
  4. package/dist/cjs/casino-tournament-buttons_4.cjs.entry.js +84 -63
  5. package/dist/cjs/casino-tournament-info.cjs.js +2 -2
  6. package/dist/cjs/{index-9addeec6.js → index-8f1c7ec3.js} +174 -71
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/collection/collection-manifest.json +1 -1
  9. package/dist/collection/components/casino-tournament-info/casino-tournament-info.js +133 -37
  10. package/dist/esm/casino-tournament-buttons_4.entry.js +84 -63
  11. package/dist/esm/casino-tournament-info.js +3 -3
  12. package/dist/esm/{index-302633e1.js → index-2a3899c5.js} +174 -71
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/packages/stencil/casino-tournament-info/stencil.config.d.ts +2 -0
  15. package/dist/types/Users/adrian.pripon/Documents/Work/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/packages/stencil/casino-tournament-info/stencil.config.dev.d.ts +2 -0
  16. package/package.json +1 -1
  17. package/dist/casino-tournament-info/p-b8214160.js +0 -2
  18. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/packages/stencil/casino-tournament-info/stencil.config.d.ts +0 -2
  19. package/dist/types/Users/maria.bumbar/Desktop/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/packages/stencil/casino-tournament-info/stencil.config.dev.d.ts +0 -2
  20. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/tools/plugins/index.d.ts +0 -0
  21. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop → adrian.pripon/Documents/Work}/widgets-monorepo/packages/stencil/casino-tournament-info/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -1 +1 @@
1
- import{p as t,b as e}from"./p-b8214160.js";export{s as setNonce}from"./p-b8214160.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-5f942dec",[[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-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]}],[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"]]]]]],t))));
1
+ import{p as t,b as e}from"./p-bb54d5a7.js";export{s as setNonce}from"./p-bb54d5a7.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-f841150a",[[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-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]}],[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"]]]]]],t))));
@@ -0,0 +1,2 @@
1
+ var t=Object.defineProperty,e=new WeakMap,n=t=>e.get(t),o=(t,n)=>{e.set(n.t=t,n)},l=(t,e)=>e in t,s=(t,e)=>(0,console.error)(t,e),i=new Map,r=new Map,c="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="undefined"!=typeof window?window:{},a=u.document||{head:{}},f={o:0,l:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},h=t=>Promise.resolve(t),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),p=!1,m=[],v=[],y=(t,e)=>n=>{t.push(n),p||(p=!0,e&&4&f.o?$(b):f.raf(b))},w=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){s(t)}t.length=0},b=()=>{w(m),w(v),(p=m.length>0)&&f.raf(b)},$=t=>h().then(t),g=y(v,!0),S=t=>"object"==(t=typeof t)||"function"===t;function j(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((e,n)=>{for(var o in n)t(e,o,{get:n[o],enumerable:!0})})({},{err:()=>k,map:()=>E,ok:()=>O,unwrap:()=>M,unwrapErr:()=>x});var O=t=>({isOk:!0,isErr:!1,value:t}),k=t=>({isOk:!1,isErr:!0,value:t});function E(t,e){if(t.isOk){const n=e(t.value);return n instanceof Promise?n.then((t=>O(t))):O(n)}if(t.isErr)return k(t.value);throw"should never get here"}var C,M=t=>{if(t.isOk)return t.value;throw t.value},x=t=>{if(t.isErr)return t.value;throw t.value},P=(t,e,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof t&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?R(null,o):o),i=s)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=R(t,null);return u.u=e,r.length>0&&(u.h=r),u.p=l,u},R=(t,e)=>({o:0,m:t,i:e,v:null,h:null,u:null,p:null}),A={},N=(t,e)=>null==t||S(t)?t:4&e?"false"!==t&&(""===t||!!t):2&e?parseFloat(t):1&e?t+"":t,T=t=>n(t).$hostElement$,W=(t,e,n)=>{const o=T(t);return{emit:t=>D(o,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},D=(t,e,n)=>{const o=f.ce(e,n);return t.dispatchEvent(o),o},F=new WeakMap,H=t=>"sc-"+t.$,L=(t,e,n,o,s,i)=>{if(n!==o){let r=l(t,e),c=e.toLowerCase();if("class"===e){const e=t.classList,l=V(n);let s=V(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("style"===e){for(const e in n)o&&null!=o[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in o)n&&o[e]===n[e]||(e.includes("-")?t.style.setProperty(e,o[e]):t.style[e]=o[e])}else if("key"===e);else if(r||"o"!==e[0]||"n"!==e[1]){const l=S(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]==l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&t.setAttribute(e,o=!0===o?"":o)}else if(e="-"===e[2]?e.slice(3):l(u,c)?c.slice(2):c[2]+e.slice(3),n||o){const l=e.endsWith(q);e=e.replace(G,""),n&&f.rel(t,e,n,l),o&&f.ael(t,e,o,l)}}},U=/\s/,V=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(U):[]),q="Capture",G=RegExp(q+"$"),_=(t,e,n)=>{const o=11===e.v.nodeType&&e.v.host?e.v.host:e.v,l=t&&t.u||{},s=e.u||{};for(const t of z(Object.keys(l)))t in s||L(o,t,l[t],void 0,n,e.o);for(const t of z(Object.keys(s)))L(o,t,l[t],s[t],n,e.o)};function z(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var B=!1,I=(t,e,n)=>{const o=e.h[n];let l,s,i=0;if(null!==o.i)l=o.v=a.createTextNode(o.i);else{if(B||(B="svg"===o.m),l=o.v=a.createElementNS(B?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),B&&"foreignObject"===o.m&&(B=!1),_(null,o,B),o.h)for(i=0;i<o.h.length;++i)s=I(t,o,i),s&&l.appendChild(s);"svg"===o.m?B=!1:"foreignObject"===l.tagName&&(B=!0)}return l["s-hn"]=C,l},J=(t,e,n,o,l,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===C&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=I(null,n,l),i&&(o[l].v=i,Y(r,i,e)))},K=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.v;t&&t.remove()}}},Q=(t,e,n=!1)=>t.m===e.m&&(n?(n&&!t.p&&e.p&&(t.p=e.p),!0):t.p===e.p),X=(t,e,n=!1)=>{const o=e.v=t.v,l=t.h,s=e.h,i=e.m,r=e.i;null===r?(_(t,e,B="svg"===i||"foreignObject"!==i&&B),null!==l&&null!==s?((t,e,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=e.length-1,h=e[0],d=e[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==h)h=e[++r];else if(null==d)d=e[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(Q(h,m,l))X(h,m,l),h=e[++r],m=o[++c];else if(Q(d,v,l))X(d,v,l),d=e[--f],v=o[--p];else if(Q(h,v,l))X(h,v,l),Y(t,h.v,d.v.nextSibling),h=e[++r],v=o[--p];else if(Q(d,m,l))X(d,m,l),Y(t,d.v,h.v),d=e[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(e[a]&&null!==e[a].p&&e[a].p===m.p){u=a;break}u>=0?(i=e[u],i.m!==m.m?s=I(e&&e[c],n,u):(X(i,m,l),e[u]=void 0,s=i.v),m=o[++c]):(s=I(e&&e[c],n,c),m=o[++c]),s&&Y(h.v.parentNode,s,h.v)}r>f?J(t,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&K(e,r,f)})(o,l,e,s,n):null!==s?(null!==t.i&&(o.textContent=""),J(o,null,e,s,0,s.length-1)):!n&&null!==l&&K(l,0,l.length-1),B&&"svg"===i&&(B=!1)):t.i!==r&&(o.data=r)},Y=(t,e,n)=>null==t?void 0:t.insertBefore(e,n),Z=(t,e)=>{if(e&&!t.S&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.S=()=>{e["s-p"].splice(n-1,1),o()})))}},tt=(t,e)=>{if(t.o|=16,!(4&t.o))return Z(t,t.j),g((()=>et(t,e)));t.o|=512},et=(t,e)=>{const n=t.$hostElement$,o=t.t;if(!o)throw Error(`Can't render component <${n.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 e&&(t.o|=256,t.O&&(t.O.map((([t,e])=>ct(o,t,e,n))),t.O=void 0),l=ct(o,"componentWillLoad",void 0,n)),l=nt(l,(()=>ct(o,"componentWillRender",void 0,n))),nt(l,(()=>lt(t,o,e)))},nt=(t,e)=>ot(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),ot=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,lt=async(t,e,n)=>{var o;const l=t.$hostElement$,s=l["s-rc"];n&&(t=>{const e=t.k,n=t.$hostElement$,o=e.o,l=((t,e)=>{var n;const o=H(e),l=r.get(o);if(t=11===t.nodeType?t:a,l)if("string"==typeof l){let s,i=F.get(t=t.head||t);if(i||F.set(t,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||a.createElement("style"),s.innerHTML=l;const i=null!=(n=f.C)?n:j(a);if(null!=i&&s.setAttribute("nonce",i),!(1&e.o))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(s,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(d){const e=new CSSStyleSheet;e.replaceSync(l),t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.innerHTML=l+e.innerHTML:t.prepend(s)}else t.append(s);1&e.o&&t.insertBefore(s,null)}4&e.o&&(s.innerHTML+=c),i&&i.add(o)}}else t.adoptedStyleSheets.includes(l)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);st(t,e,l,n),s&&(s.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>it(t);0===e.length?n():(Promise.all(e).then(n),t.o|=4,e.length=0)}},st=(t,e,n,o)=>{try{e=e.render(),t.o&=-17,t.o|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.k,s=t.M||R(null,null),i=(t=>t&&t.m===A)(e)?e:P(null,null,e);if(C=o.tagName,l.P&&(i.u=i.u||{},l.P.map((([t,e])=>i.u[e]=o[t]))),n&&i.u)for(const t of Object.keys(i.u))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(i.u[t]=o[t]);i.m=null,i.o|=4,t.M=i,i.v=s.v=o.shadowRoot||o,X(s,i,n)})(t,e,o)}catch(e){s(e,t.$hostElement$)}return null},it=t=>{const e=t.$hostElement$,n=t.j;ct(t.t,"componentDidRender",void 0,e),64&t.o||(t.o|=64,ut(e),t.R(e),n||rt()),t.S&&(t.S(),t.S=void 0),512&t.o&&$((()=>tt(t,!1))),t.o&=-517},rt=()=>{$((()=>D(u,"appload",{detail:{namespace:"casino-tournament-info"}})))},ct=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){s(t,o)}},ut=t=>t.classList.add("hydrated"),at=(t,e,o,l)=>{const i=n(t);if(!i)throw Error(`Couldn't find host element for "${l.$}" 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 r=i.$hostElement$,c=i.A.get(e),u=i.o,a=i.t;if(o=N(o,l.N[e][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.A.set(e,o),a)){if(l.T&&128&u){const t=l.T[e];t&&t.map((t=>{try{a[t](o,c,e)}catch(t){s(t,r)}}))}2==(18&u)&&tt(i,!1)}},ft=(t,e,o)=>{var l,s;const i=t.prototype;if(e.N||e.T||t.watchers){t.watchers&&!e.T&&(e.T=t.watchers);const r=Object.entries(null!=(l=e.N)?l:{});if(r.map((([t,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,t)||{};s&&(e.N[t][0]|=2048),r&&(e.N[t][0]|=4096),(1&o||!s)&&Object.defineProperty(i,t,{get(){{if(!(2048&e.N[t][0]))return((t,e)=>n(this).A.get(e))(0,t);const o=n(this),l=o?o.t:i;if(!l)return;return l[t]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,t,{set(s){const i=n(this);if(r){const n=32&l?this[t]:i.$hostElement$[t];return void 0===n&&i.A.get(t)?s=i.A.get(t):!i.A.get(t)&&n&&i.A.set(t,n),r.call(this,N(s,l)),void at(this,t,s=32&l?this[t]:i.$hostElement$[t],e)}{if(!(1&o&&4096&e.N[t][0]))return at(this,t,s,e),void(1&o&&!i.t&&i.W.then((()=>{4096&e.N[t][0]&&i.t[t]!==i.A.get(t)&&(i.t[t]=s)})));const n=()=>{const n=i.t[t];!i.A.get(t)&&n&&i.A.set(t,n),i.t[t]=N(s,l),at(this,t,i.t[t],e)};i.t?n():i.W.then((()=>n()))}}})}})),1&o){const o=new Map;i.attributeChangedCallback=function(t,l,s){f.jmp((()=>{var r;const c=o.get(t);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 o=n(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const n=o.t,i=null==(r=e.T)?void 0:r[t];null==i||i.forEach((e=>{null!=n[e]&&n[e].call(n,s,l,t)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=e.T)?s:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var l;const s=n[1]||t;return o.set(s,t),512&n[0]&&(null==(l=e.P)||l.push([t,s])),s}))]))}}return t},ht=(t,o={})=>{var l;const h=[],p=o.exclude||[],m=u.customElements,v=a.head,y=v.querySelector("meta[charset]"),w=a.createElement("style"),b=[];let $,g=!0;Object.assign(f,o),f.l=new URL(o.resourcesUrl||"./",a.baseURI).href;let S=!1;if(t.map((t=>{t[1].map((o=>{var l;const c={o:o[0],$:o[1],N:o[2],D:o[3]};4&c.o&&(S=!0),c.N=o[2],c.D=o[3],c.P=[],c.T=null!=(l=o[4])?l:{};const u=c.$,a=class extends HTMLElement{constructor(t){if(super(t),this.hasRegisteredEventListeners=!1,((t,n)=>{const o={o:0,$hostElement$:t,k:n,A:new Map};o.W=new Promise((t=>o.R=t)),t["s-p"]=[],t["s-rc"]=[],e.set(t,o)})(t=this,c),1&c.o)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${c.$}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else t.attachShadow({mode:"open"})}connectedCallback(){const t=n(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,dt(this,t,c.D)),$&&(clearTimeout($),$=null),g?b.push(this):f.jmp((()=>(t=>{if(!(1&f.o)){const e=n(t),o=e.k,l=()=>{};if(1&e.o)dt(t,e,o.D),(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}));else{e.o|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){Z(e,e.j=n);break}}o.N&&Object.entries(o.N).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;if(!(32&e.o)){if(e.o|=32,n.F){const l=((t,e)=>{const n=t.$.replace(/-/g,"_"),o=t.F;if(!o)return;const l=i.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(i.set(o,t),t[n])),(t=>{s(t,e.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.$}#${e.H}" was not found`);o.isProxied||(n.T=o.watchers,ft(o,n,2),o.isProxied=!0);const r=()=>{};e.o|=8;try{new o(e)}catch(e){s(e,t)}e.o&=-9,e.o|=128,r()}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.o|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=H(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.o)),o()}}}const l=e.j,c=()=>tt(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()})(t,e,o)}l()}})(this)))}disconnectedCallback(){f.jmp((()=>(async t=>{if(!(1&f.o)){const e=n(t);e.L&&(e.L.map((t=>t())),e.L=void 0),(null==e?void 0:e.t)||(null==e?void 0:e.W)&&e.W.then((()=>{}))}F.has(t)&&F.delete(t),t.shadowRoot&&F.has(t.shadowRoot)&&F.delete(t.shadowRoot)})(this))),f.raf((()=>{var t;const e=n(this),o=b.findIndex((t=>t===this));o>-1&&b.splice(o,1),(null==(t=null==e?void 0:e.M)?void 0:t.v)instanceof Node&&!e.M.v.isConnected&&delete e.M.v}))}componentOnReady(){return n(this).W}};c.F=t[0],p.includes(u)||m.get(u)||(h.push(u),m.define(u,ft(a,c,1)))}))})),h.length>0&&(S&&(w.textContent+=c),w.textContent+=h.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",w.innerHTML.length)){w.setAttribute("data-styles","");const t=null!=(l=f.C)?l:j(a);null!=t&&w.setAttribute("nonce",t),v.insertBefore(w,y?y.nextSibling:v.firstChild)}g=!1,b.length?b.map((t=>t.connectedCallback())):f.jmp((()=>$=setTimeout(rt,30)))},dt=(t,e,n)=>{n&&n.map((([n,o,l])=>{const s=mt(t,n),i=pt(e,l),r=vt(n);f.ael(s,o,i,r),(e.L=e.L||[]).push((()=>f.rel(s,o,i,r)))}))},pt=(t,e)=>n=>{var o;try{256&t.o?null==(o=t.t)||o[e](n):(t.O=t.O||[]).push([e,n])}catch(e){s(e,t.$hostElement$)}},mt=(t,e)=>8&e?u:t,vt=t=>({passive:!!(1&t),capture:!!(2&t)}),yt=t=>f.C=t;export{ht as b,W as c,T as g,P as h,h as p,o as r,yt as s}
@@ -1,4 +1,4 @@
1
- import{r as t,c as e,h as i,g as n}from"./p-b8214160.js";const r={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"}},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.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])r[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,type:"tournament"});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:"d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f",class:"TournamentButtons"},!this.session&&i("div",{key:"7e79834abdd20bf694b096fad0734cc74ccb1f8e",class:"ButtonGroup"},i("button",{key:"273e73693f197ff25d116c3c2e7098d3e80138c7",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},s("login",this.language)),i("button",{key:"72835739c177ce6e872a06183074d2266b3c3d5d",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},s("register",this.language))),this.session&&i("div",{key:"746e7fb88ddd2bef5f59212d9f513b62943f80ae"},!this.enrolled&&i("div",{key:"7a33b63adc8255c267afdba2ffe700a0d2033e57",class:"ButtonGroup"},i("button",{key:"95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},s("join",this.language)),this.showReadMore&&i("button",{key:"ac961bcbd5dc2a4f1e9267148ecc49a55b75515e",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},s("readmore",this.language))),this.enrolled&&i("div",{key:"f6a9170663e0aae26da9500fc5efc888bb2dc2ab",class:"ButtonGroup"},i("button",{key:"a94489a7bf6b178199f2d78dfdc41cca77859c96",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},s("details",this.language)),this.showReadMore&&i("button",{key:"f23cefc77e04215e5beb6a39c2643348dce5e576",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},s("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&i("span",{key:"7accf63f478e52efc879da3775b07286fbc9801b",class:"ErrorText",part:"ErrorText"},s("joinerror",this.language)))}get host(){return n(this)}};a.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 o={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"}},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])},h=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+" "+u("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])o[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"},u("finished",this.language))):this.tournamentUntilStartDays>0?i("div",null,i("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),i("div",{class:"Remaining",part:"Remaining"},u("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," ",u("left",this.language)))))))}get host(){return n(this)}static get watchers(){return{language:["watchLanguage"]}}};h.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--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(--emw--color-green, #48952a)}";const d={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"}},c=(t,e)=>{var i,n;return(null===(i=d[e])||void 0===i?void 0:i[t])||(null===(n=d.en)||void 0===n?void 0:n[t])},l=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])d[e][i]=t[e][i]})),e(!0)})),f=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])d[e][i]=t[e][i]})),e(!0)}))}));
1
+ import{r as t,c as e,h as i,g as n}from"./p-bb54d5a7.js";const r={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"}},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.userEnrolled=e(this,"TournamentUserEnrolled",7),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",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])r[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,type:"tournament"});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:"d67f8cedc9bd513a74b4d9dc798c4c456d7b1d9f",class:"TournamentButtons"},!this.session&&i("div",{key:"7e79834abdd20bf694b096fad0734cc74ccb1f8e",class:"ButtonGroup"},i("button",{key:"273e73693f197ff25d116c3c2e7098d3e80138c7",class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},s("login",this.language)),i("button",{key:"72835739c177ce6e872a06183074d2266b3c3d5d",class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},s("register",this.language))),this.session&&i("div",{key:"746e7fb88ddd2bef5f59212d9f513b62943f80ae"},!this.enrolled&&i("div",{key:"7a33b63adc8255c267afdba2ffe700a0d2033e57",class:"ButtonGroup"},i("button",{key:"95f71a6f41cd65e4dd9dfca0896899f7b8c32dd5",class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},s("join",this.language)),this.showReadMore&&i("button",{key:"ac961bcbd5dc2a4f1e9267148ecc49a55b75515e",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},s("readmore",this.language))),this.enrolled&&i("div",{key:"f6a9170663e0aae26da9500fc5efc888bb2dc2ab",class:"ButtonGroup"},i("button",{key:"a94489a7bf6b178199f2d78dfdc41cca77859c96",class:"Button",onClick:()=>this.detailAction(this.tournamentId)},s("details",this.language)),this.showReadMore&&i("button",{key:"f23cefc77e04215e5beb6a39c2643348dce5e576",class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},s("readmore",this.language)))),(this.errorJoin||this.errorJoinConcurrently)&&i("span",{key:"7accf63f478e52efc879da3775b07286fbc9801b",class:"ErrorText",part:"ErrorText"},s("joinerror",this.language)))}get host(){return n(this)}};a.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 o={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"}},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])},h=class{constructor(e){t(this,e),this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}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+" "+u("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])o[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"},u("finished",this.language))):this.tournamentUntilStartDays>0?i("div",null,i("div",{class:"ProgressBarFillStarting",part:"ProgressBarFillStarting"}),i("div",{class:"Remaining",part:"Remaining"},u("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," ",u("left",this.language)))))))}get host(){return n(this)}static get watchers(){return{language:["watchLanguage"]}}};h.style=":host{display:block}.TournamentDates{display:flex;justify-content:space-between}.StartDate{font-size:10px;font-weight:700;color:var(--emw--color-gray-300, #58586B)}.EndDate{font-size:10px;font-weight:700;align-content:flex-end;color:var(--emw--color-gray-300, #58586B)}.ProgressBar{margin:5px 0;height:8px;background:var(--emw--color-white, #FFFFFF)}.ProgressBarInactive{margin:5px 20px 10px 20px;height:8px;background:var(--emw--color-gray-100, #E6E6E6)}.ProgressBarFill{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillEnd{background-color:var(--emw--color-green, #48952a);height:8px}.ProgressBarFillStarting{background-color:var(--emw--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(--emw--color-green, #48952a)}";const d={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"}},c=(t,e)=>{var i,n;return(null===(i=d[e])||void 0===i?void 0:i[t])||(null===(n=d.en)||void 0===n?void 0:n[t])},l=t=>new Promise((e=>{Object.keys(t).forEach((e=>{for(let i in t[e])d[e][i]=t[e][i]})),e(!0)})),f=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])d[e][i]=t[e][i]})),e(!0)}))}));
2
2
  //! moment.js
3
3
  //! version : 2.30.1
4
4
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
@@ -6,4 +6,4 @@ import{r as t,c as e,h as i,g as n}from"./p-b8214160.js";const r={en:{joined:"Jo
6
6
  //! momentjs.com
7
7
  var m,g;function p(){return m.apply(null,arguments)}function y(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function b(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function v(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function k(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(v(t,e))return!1;return!0}function w(t){return void 0===t}function S(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function M(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function D(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function Y(t,e){for(var i in e)v(e,i)&&(t[i]=e[i]);return v(e,"toString")&&(t.toString=e.toString),v(e,"valueOf")&&(t.valueOf=e.valueOf),t}function A(t,e,i,n){return Ie(t,e,i,n,!0).utc()}function N(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 x(t){var e=null,i=!1,n=t._d&&!isNaN(t._d.getTime());return n&&(e=N(t),i=g.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 F(t){var e=A(NaN);return null!=t?Y(N(e),t):N(e).userInvalidated=!0,e}g=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 R=p.momentProperties=[],z=!1;function C(t,e){var i,n,r,s=R.length;if(w(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),w(e._i)||(t._i=e._i),w(e._f)||(t._f=e._f),w(e._l)||(t._l=e._l),w(e._strict)||(t._strict=e._strict),w(e._tzm)||(t._tzm=e._tzm),w(e._isUTC)||(t._isUTC=e._isUTC),w(e._offset)||(t._offset=e._offset),w(e._pf)||(t._pf=N(e)),w(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)w(r=e[n=R[i]])||(t[n]=r);return t}function T(t){C(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===z&&(z=!0,p.updateOffset(this),z=!1)}function j(t){return t instanceof T||null!=t&&null!=t._isAMomentObject}function W(t){!1===p.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function J(t,e){var i=!0;return Y((function(){if(null!=p.deprecationHandler&&p.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])v(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}W(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var P,O={};function G(t,e){null!=p.deprecationHandler&&p.deprecationHandler(t,e),O[t]||(W(e),O[t]=!0)}function H(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function E(t,e){var i,n=Y({},t);for(i in e)v(e,i)&&(b(t[i])&&b(e[i])?(n[i]={},Y(n[i],t[i]),Y(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)v(t,i)&&!v(e,i)&&b(t[i])&&(n[i]=Y({},n[i]));return n}function L(t){null!=t&&this.set(t)}function _(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}p.suppressDeprecationWarnings=!1,p.deprecationHandler=null,P=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)v(t,e)&&i.push(e);return i};var B=/(\[[^\[]*\])|(\\)?([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,I=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Z={},$={};function U(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&($[t]=r),e&&($[e[0]]=function(){return _(r.apply(this,arguments),e[1],e[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function V(t,e){return t.isValid()?(e=q(e,t.localeData()),Z[e]=Z[e]||function(t){var e,i,n,r=t.match(B);for(e=0,i=r.length;e<i;e++)r[e]=$[r[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+=H(r[n])?r[n].call(e,t):r[n];return s}}(e),Z[e](t)):t.localeData().invalidDate()}function q(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(I.lastIndex=0;i>=0&&I.test(t);)t=t.replace(I,n),I.lastIndex=0,i-=1;return t}var K={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 Q(t){return"string"==typeof t?K[t]||K[t.toLowerCase()]:void 0}function X(t){var e,i,n={};for(i in t)v(t,i)&&(e=Q(i))&&(n[e]=t[i]);return n}var tt,et={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},it=/\d/,nt=/\d\d/,rt=/\d{3}/,st=/\d{4}/,at=/[+-]?\d{6}/,ot=/\d\d?/,ut=/\d\d\d\d?/,ht=/\d\d\d\d\d\d?/,dt=/\d{1,3}/,ct=/\d{1,4}/,lt=/[+-]?\d{1,6}/,ft=/\d+/,mt=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,yt=/[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,bt=/^[1-9]\d?/,vt=/^([1-9]\d|\d)/;function kt(t,e,i){tt[t]=H(e)?e:function(t){return t&&i?i:e}}function wt(t,e){return v(tt,t)?tt[t](e._strict,e._locale):new RegExp(St(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function St(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Mt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Dt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=Mt(e)),i}tt={};var Yt={};function At(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),S(e)&&(r=function(t,i){i[e]=Dt(t)}),n=t.length,i=0;i<n;i++)Yt[t[i]]=r}function Nt(t,e){At(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function xt(t,e,i){null!=e&&v(Yt,t)&&Yt[t](e,i._a,i,t)}function Ft(t){return t%4==0&&t%100!=0||t%400==0}var Rt=0,zt=1,Ct=2,Tt=3,jt=4,Wt=5,Jt=6,Pt=7,Ot=8;function Gt(t){return Ft(t)?366:365}U("Y",0,0,(function(){var t=this.year();return t<=9999?_(t,4):"+"+t})),U(0,["YY",2],0,(function(){return this.year()%100})),U(0,["YYYY",4],0,"year"),U(0,["YYYYY",5],0,"year"),U(0,["YYYYYY",6,!0],0,"year"),kt("Y",mt),kt("YY",ot,nt),kt("YYYY",ct,st),kt("YYYYY",lt,at),kt("YYYYYY",lt,at),At(["YYYYY","YYYYYY"],Rt),At("YYYY",(function(t,e){e[Rt]=2===t.length?p.parseTwoDigitYear(t):Dt(t)})),At("YY",(function(t,e){e[Rt]=p.parseTwoDigitYear(t)})),At("Y",(function(t,e){e[Rt]=parseInt(t,10)})),p.parseTwoDigitYear=function(t){return Dt(t)+(Dt(t)>68?1900:2e3)};var Ht,Et=Lt("FullYear",!0);function Lt(t,e){return function(i){return null!=i?(Bt(this,t,i),p.updateOffset(this,e),this):_t(this,t)}}function _t(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 Bt(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||Ft(s)?o:28,r?n.setUTCFullYear(s,a,o):n.setFullYear(s,a,o)}}function It(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?Ft(t)?29:28:31-i%7%2}Ht=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},U("M",["MM",2],"Mo",(function(){return this.month()+1})),U("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),U("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),kt("M",ot,bt),kt("MM",ot,nt),kt("MMM",(function(t,e){return e.monthsShortRegex(t)})),kt("MMMM",(function(t,e){return e.monthsRegex(t)})),At(["M","MM"],(function(t,e){e[zt]=Dt(t)-1})),At(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[zt]=r:N(i).invalidMonth=t}));var Zt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),$t="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Ut=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Vt=yt,qt=yt;function Kt(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=A([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ht.call(this._shortMonthsParse,a))?r:null:-1!==(r=Ht.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Ht.call(this._shortMonthsParse,a))||-1!==(r=Ht.call(this._longMonthsParse,a))?r:null:-1!==(r=Ht.call(this._longMonthsParse,a))||-1!==(r=Ht.call(this._shortMonthsParse,a))?r:null}function Qt(t,e){if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=Dt(e);else if(!S(e=t.localeData().monthsParse(e)))return t;var i=e,n=t.date();return n=n<29?n:Math.min(n,It(t.year(),i)),t._isUTC?t._d.setUTCMonth(i,n):t._d.setMonth(i,n),t}function Xt(t){return null!=t?(Qt(this,t),p.updateOffset(this,!0),this):_t(this,"Month")}function te(){function t(t,e){return e.length-t.length}var e,i,n,r,s=[],a=[],o=[];for(e=0;e<12;e++)i=A([2e3,e]),n=St(this.monthsShort(i,"")),r=St(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 ee(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 ie(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 ne(t,e,i){var n=7+e-i;return-(7+ie(t,0,n).getUTCDay()-e)%7+n-1}function re(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+ne(t,n,r);return o<=0?a=Gt(s=t-1)+o:o>Gt(t)?(s=t+1,a=o-Gt(t)):(s=t,a=o),{year:s,dayOfYear:a}}function se(t,e,i){var n,r,s=ne(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+ae(r=t.year()-1,e,i):a>ae(t.year(),e,i)?(n=a-ae(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function ae(t,e,i){var n=ne(t,e,i),r=ne(t+1,e,i);return(Gt(t)-n+r)/7}function oe(t,e){return t.slice(e,7).concat(t.slice(0,e))}U("w",["ww",2],"wo","week"),U("W",["WW",2],"Wo","isoWeek"),kt("w",ot,bt),kt("ww",ot,nt),kt("W",ot,bt),kt("WW",ot,nt),Nt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=Dt(t)})),U("d",0,"do","day"),U("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),U("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),U("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),U("e",0,0,"weekday"),U("E",0,0,"isoWeekday"),kt("d",ot),kt("e",ot),kt("E",ot),kt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),kt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),kt("dddd",(function(t,e){return e.weekdaysRegex(t)})),Nt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:N(i).invalidWeekday=t})),Nt(["d","e","E"],(function(t,e,i,n){e[n]=Dt(t)}));var ue="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),he="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),de="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),ce=yt,le=yt,fe=yt;function me(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=A([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=Ht.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ht.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Ht.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Ht.call(this._weekdaysParse,a))||-1!==(r=Ht.call(this._shortWeekdaysParse,a))||-1!==(r=Ht.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Ht.call(this._shortWeekdaysParse,a))||-1!==(r=Ht.call(this._weekdaysParse,a))||-1!==(r=Ht.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Ht.call(this._minWeekdaysParse,a))||-1!==(r=Ht.call(this._weekdaysParse,a))||-1!==(r=Ht.call(this._shortWeekdaysParse,a))?r:null}function ge(){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=A([2e3,1]).day(e),n=St(this.weekdaysMin(i,"")),r=St(this.weekdaysShort(i,"")),s=St(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 pe(){return this.hours()%12||12}function ye(t,e){U(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function be(t,e){return e._meridiemParse}U("H",["HH",2],0,"hour"),U("h",["hh",2],0,pe),U("k",["kk",2],0,(function(){return this.hours()||24})),U("hmm",0,0,(function(){return""+pe.apply(this)+_(this.minutes(),2)})),U("hmmss",0,0,(function(){return""+pe.apply(this)+_(this.minutes(),2)+_(this.seconds(),2)})),U("Hmm",0,0,(function(){return""+this.hours()+_(this.minutes(),2)})),U("Hmmss",0,0,(function(){return""+this.hours()+_(this.minutes(),2)+_(this.seconds(),2)})),ye("a",!0),ye("A",!1),kt("a",be),kt("A",be),kt("H",ot,vt),kt("h",ot,bt),kt("k",ot,bt),kt("HH",ot,nt),kt("hh",ot,nt),kt("kk",ot,nt),kt("hmm",ut),kt("hmmss",ht),kt("Hmm",ut),kt("Hmmss",ht),At(["H","HH"],Tt),At(["k","kk"],(function(t,e){var i=Dt(t);e[Tt]=24===i?0:i})),At(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),At(["h","hh"],(function(t,e,i){e[Tt]=Dt(t),N(i).bigHour=!0})),At("hmm",(function(t,e,i){var n=t.length-2;e[Tt]=Dt(t.substr(0,n)),e[jt]=Dt(t.substr(n)),N(i).bigHour=!0})),At("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[Tt]=Dt(t.substr(0,n)),e[jt]=Dt(t.substr(n,2)),e[Wt]=Dt(t.substr(r)),N(i).bigHour=!0})),At("Hmm",(function(t,e){var i=t.length-2;e[Tt]=Dt(t.substr(0,i)),e[jt]=Dt(t.substr(i))})),At("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[Tt]=Dt(t.substr(0,i)),e[jt]=Dt(t.substr(i,2)),e[Wt]=Dt(t.substr(n))}));var ve,ke=Lt("Hours",!0),we={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:Zt,monthsShort:$t,week:{dow:0,doy:6},weekdays:ue,weekdaysMin:de,weekdaysShort:he,meridiemParse:/[ap]\.?m?\.?/i},Se={},Me={};function De(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 Ye(t){return t?t.toLowerCase().replace("_","-"):t}function Ae(t){var e=null;if(void 0===Se[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return!(!t||!t.match("^[^/\\\\]*$"))}(t))try{e=ve._abbr,require("./locale/"+t),Ne(e)}catch(e){Se[t]=null}return Se[t]}function Ne(t,e){var i;return t&&((i=w(e)?Fe(t):xe(t,e))?ve=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ve._abbr}function xe(t,e){if(null!==e){var i,n=we;if(e.abbr=t,null!=Se[t])G("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=Se[t]._config;else if(null!=e.parentLocale)if(null!=Se[e.parentLocale])n=Se[e.parentLocale]._config;else{if(null==(i=Ae(e.parentLocale)))return Me[e.parentLocale]||(Me[e.parentLocale]=[]),Me[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Se[t]=new L(E(n,e)),Me[t]&&Me[t].forEach((function(t){xe(t.name,t.config)})),Ne(t),Se[t]}return delete Se[t],null}function Fe(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ve;if(!y(t)){if(e=Ae(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=Ye(t[s]).split("-")).length,i=(i=Ye(t[s+1]))?i.split("-"):null;e>0;){if(n=Ae(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&De(r,i)>=e-1)break;e--}s++}return ve}(t)}function Re(t){var e,i=t._a;return i&&-2===N(t).overflow&&(e=i[zt]<0||i[zt]>11?zt:i[Ct]<1||i[Ct]>It(i[Rt],i[zt])?Ct:i[Tt]<0||i[Tt]>24||24===i[Tt]&&(0!==i[jt]||0!==i[Wt]||0!==i[Jt])?Tt:i[jt]<0||i[jt]>59?jt:i[Wt]<0||i[Wt]>59?Wt:i[Jt]<0||i[Jt]>999?Jt:-1,N(t)._overflowDayOfYear&&(e<Rt||e>Ct)&&(e=Ct),N(t)._overflowWeeks&&-1===e&&(e=Pt),N(t)._overflowWeekday&&-1===e&&(e=Ot),N(t).overflow=e),t}var ze=/^\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)?)?$/,Ce=/^\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=/Z|[+-]\d\d(?::?\d\d)?/,je=[["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]],We=[["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,Pe=/^(?:(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}))$/,Oe={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ge(t){var e,i,n,r,s,a,o=t._i,u=ze.exec(o)||Ce.exec(o),h=je.length,d=We.length;if(u){for(N(t).iso=!0,e=0,i=h;e<i;e++)if(je[e][1].exec(u[1])){r=je[e][0],n=!1!==je[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,i=d;e<i;e++)if(We[e][1].exec(u[3])){s=(u[2]||" ")+We[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(u[4]){if(!Te.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),_e(t)}else t._isValid=!1}function He(t){var e,i,n,r,s,a,o,u,h,d=Pe.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),$t.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||he.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(N(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 Oe[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=ie.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),N(t).rfc2822=!0}else t._isValid=!1}function Ee(t,e,i){return null!=t?t:null!=e?e:i}function Le(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(p.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[Ct]&&null==t._a[zt]&&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=Ee(e.GG,t._a[Rt],se(Ze(),1,4).year),n=Ee(e.W,1),((r=Ee(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=se(Ze(),s,a),i=Ee(e.gg,t._a[Rt],h.year),n=Ee(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>ae(i,s,a)?N(t)._overflowWeeks=!0:null!=u?N(t)._overflowWeekday=!0:(o=re(i,n,r,s,a),t._a[Rt]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Ee(t._a[Rt],n[Rt]),(t._dayOfYear>Gt(s)||0===t._dayOfYear)&&(N(t)._overflowDayOfYear=!0),i=ie(s,0,t._dayOfYear),t._a[zt]=i.getUTCMonth(),t._a[Ct]=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[Tt]&&0===t._a[jt]&&0===t._a[Wt]&&0===t._a[Jt]&&(t._nextDay=!0,t._a[Tt]=0),t._d=(t._useUTC?ie:ee).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[Tt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(N(t).weekdayMismatch=!0)}}function _e(t){if(t._f!==p.ISO_8601)if(t._f!==p.RFC_2822){t._a=[],N(t).empty=!0;var e,i,n,r,s,a,o,u=""+t._i,h=u.length,d=0;for(o=(n=q(t._f,t._locale).match(B)||[]).length,e=0;e<o;e++)(i=(u.match(wt(r=n[e],t))||[])[0])&&((s=u.substr(0,u.indexOf(i))).length>0&&N(t).unusedInput.push(s),u=u.slice(u.indexOf(i)+i.length),d+=i.length),$[r]?(i?N(t).empty=!1:N(t).unusedTokens.push(r),xt(r,i,t)):t._strict&&!i&&N(t).unusedTokens.push(r);N(t).charsLeftOver=h-d,u.length>0&&N(t).unusedInput.push(u),t._a[Tt]<=12&&!0===N(t).bigHour&&t._a[Tt]>0&&(N(t).bigHour=void 0),N(t).parsedDateParts=t._a.slice(0),N(t).meridiem=t._meridiem,t._a[Tt]=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[Tt],t._meridiem),null!==(a=N(t).era)&&(t._a[Rt]=t._locale.erasConvertYear(a,t._a[Rt])),Le(t),Re(t)}else He(t);else Ge(t)}function Be(t){var e=t._i,i=t._f;return t._locale=t._locale||Fe(t._l),null===e||void 0===i&&""===e?F({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),j(e)?new T(Re(e)):(M(e)?t._d=e:y(i)?function(t){var e,i,n,r,s,a,o=!1,u=t._f.length;if(0===u)return N(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=C({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],_e(e),x(e)&&(a=!0),s+=N(e).charsLeftOver,s+=10*N(e).unusedTokens.length,N(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));Y(t,i||e)}(t):i?_e(t):function(t){var e=t._i;w(e)?t._d=new Date(p.now()):M(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=Je.exec(t._i);null===e?(Ge(t),!1===t._isValid&&(delete t._isValid,He(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:p.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):y(e)?(t._a=D(e.slice(0),(function(t){return parseInt(t,10)})),Le(t)):b(e)?function(t){if(!t._d){var e=X(t._i);t._a=D([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)})),Le(t)}}(t):S(e)?t._d=new Date(e):p.createFromInputFallback(t)}(t),x(t)||(t._d=null),t))}function Ie(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),(b(t)&&k(t)||y(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 T(Re(Be(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ze(t,e,i,n){return Ie(t,e,i,n,!1)}p.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":""))})),p.ISO_8601=function(){},p.RFC_2822=function(){};var $e=J("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ze.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:F()})),Ue=J("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ze.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:F()}));function Ve(t,e){var i,n;if(1===e.length&&y(e[0])&&(e=e[0]),!e.length)return Ze();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var qe=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ke(t){var e=X(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=qe.length;for(e in t)if(v(t,e)&&(-1===Ht.call(qe,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[qe[i]]){if(n)return!1;parseFloat(t[qe[i]])!==Dt(t[qe[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=Fe(),this._bubble()}function Qe(t){return t instanceof Ke}function Xe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ti(t,e){U(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+_(~~(t/60),2)+e+_(~~t%60,2)}))}ti("Z",":"),ti("ZZ",""),kt("Z",pt),kt("ZZ",pt),At(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=ii(pt,t)}));var ei=/([\+\-]|\d\d)/gi;function ii(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(ei)||["-",0,0])[1]+Dt(i[2]))?0:"+"===i[0]?n:-n}function ni(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(j(t)||M(t)?t.valueOf():Ze(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),p.updateOffset(i,!1),i):Ze(t).local()}function ri(t){return-Math.round(t._d.getTimezoneOffset())}function si(){return!!this.isValid()&&this._isUTC&&0===this._offset}p.updateOffset=function(){};var ai=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,oi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ui(t,e){var i,n,r,s,a,o,u=t,h=null;return Qe(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:S(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=ai.exec(t))?(i="-"===h[1]?-1:1,u={y:0,d:Dt(h[Ct])*i,h:Dt(h[Tt])*i,m:Dt(h[jt])*i,s:Dt(h[Wt])*i,ms:Dt(Xe(1e3*h[Jt]))*i}):(h=oi.exec(t))?u={y:hi(h[2],i="-"===h[1]?-1:1),M:hi(h[3],i),w:hi(h[4],i),d:hi(h[5],i),h:hi(h[6],i),m:hi(h[7],i),s:hi(h[8],i)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=Ze(u.from),a=Ze(u.to),r=s.isValid()&&a.isValid()?(a=ni(a,s),s.isBefore(a)?o=di(s,a):((o=di(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),n=new Ke(u),Qe(t)&&v(t,"_locale")&&(n._locale=t._locale),Qe(t)&&v(t,"_isValid")&&(n._isValid=t._isValid),n}function hi(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function di(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 ci(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(G(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),li(this,ui(i,n),t),this}}function li(t,e,i,n){var r=e._milliseconds,s=Xe(e._days),a=Xe(e._months);t.isValid()&&(n=null==n||n,a&&Qt(t,_t(t,"Month")+a*i),s&&Bt(t,"Date",_t(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&p.updateOffset(t,s||a))}ui.fn=Ke.prototype,ui.invalid=function(){return ui(NaN)};var fi=ci(1,"add"),mi=ci(-1,"subtract");function gi(t){return"string"==typeof t||t instanceof String}function pi(t,e){if(t.date()<e.date())return-pi(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 yi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Fe(t))&&(this._locale=e),this)}p.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",p.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var bi=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 vi(){return this._locale}var ki=1e3,wi=6e4,Si=36e5,Mi=126227808e5;function Di(t,e){return(t%e+e)%e}function Yi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Mi:new Date(t,e,i).valueOf()}function Ai(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Mi:Date.UTC(t,e,i)}function Ni(t,e){return e.erasAbbrRegex(t)}function xi(){var t,e,i,n,r,s=[],a=[],o=[],u=[],h=this.eras();for(t=0,e=h.length;t<e;++t)i=St(h[t].name),n=St(h[t].abbr),r=St(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 Fi(t,e){U(0,[t,t.length],0,e)}function Ri(t,e,i,n,r){var s;return null==t?se(this,n,r).year:(e>(s=ae(t,n,r))&&(e=s),zi.call(this,t,e,i,n,r))}function zi(t,e,i,n,r){var s=re(t,e,i,n,r),a=ie(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}U("N",0,0,"eraAbbr"),U("NN",0,0,"eraAbbr"),U("NNN",0,0,"eraAbbr"),U("NNNN",0,0,"eraName"),U("NNNNN",0,0,"eraNarrow"),U("y",["y",1],"yo","eraYear"),U("y",["yy",2],0,"eraYear"),U("y",["yyy",3],0,"eraYear"),U("y",["yyyy",4],0,"eraYear"),kt("N",Ni),kt("NN",Ni),kt("NNN",Ni),kt("NNNN",(function(t,e){return e.erasNameRegex(t)})),kt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),At(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?N(i).era=r:N(i).invalidEra=t})),kt("y",ft),kt("yy",ft),kt("yyy",ft),kt("yyyy",ft),kt("yo",(function(t,e){return e._eraYearOrdinalRegex||ft})),At(["y","yy","yyy","yyyy"],Rt),At(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[Rt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),U(0,["gg",2],0,(function(){return this.weekYear()%100})),U(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Fi("gggg","weekYear"),Fi("ggggg","weekYear"),Fi("GGGG","isoWeekYear"),Fi("GGGGG","isoWeekYear"),kt("G",mt),kt("g",mt),kt("GG",ot,nt),kt("gg",ot,nt),kt("GGGG",ct,st),kt("gggg",ct,st),kt("GGGGG",lt,at),kt("ggggg",lt,at),Nt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=Dt(t)})),Nt(["gg","GG"],(function(t,e,i,n){e[n]=p.parseTwoDigitYear(t)})),U("Q",0,"Qo","quarter"),kt("Q",it),At("Q",(function(t,e){e[zt]=3*(Dt(t)-1)})),U("D",["DD",2],"Do","date"),kt("D",ot,bt),kt("DD",ot,nt),kt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),At(["D","DD"],Ct),At("Do",(function(t,e){e[Ct]=Dt(t.match(ot)[0])}));var Ci=Lt("Date",!0);U("DDD",["DDDD",3],"DDDo","dayOfYear"),kt("DDD",dt),kt("DDDD",rt),At(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=Dt(t)})),U("m",["mm",2],0,"minute"),kt("m",ot,vt),kt("mm",ot,nt),At(["m","mm"],jt);var Ti=Lt("Minutes",!1);U("s",["ss",2],0,"second"),kt("s",ot,vt),kt("ss",ot,nt),At(["s","ss"],Wt);var ji,Wi,Ji=Lt("Seconds",!1);for(U("S",0,0,(function(){return~~(this.millisecond()/100)})),U(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),U(0,["SSS",3],0,"millisecond"),U(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),U(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),U(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),U(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),U(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),U(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),kt("S",dt,it),kt("SS",dt,nt),kt("SSS",dt,rt),ji="SSSS";ji.length<=9;ji+="S")kt(ji,ft);function Pi(t,e){e[Jt]=Dt(1e3*("0."+t))}for(ji="S";ji.length<=9;ji+="S")At(ji,Pi);Wi=Lt("Milliseconds",!1),U("z",0,0,"zoneAbbr"),U("zz",0,0,"zoneName");var Oi=T.prototype;function Gi(t){return t}Oi.add=fi,Oi.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?j(i=arguments[0])||M(i)||gi(i)||S(i)||function(t){var e=y(t),i=!1;return e&&(i=0===t.filter((function(e){return!S(e)&&gi(t)})).length),e&&i}(i)||function(t){var e,i=b(t)&&!k(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||v(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=b(t)&&!k(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||v(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ze(),r=ni(n,this).startOf("day"),s=p.calendarFormat(this,r)||"sameElse",a=e&&(H(e[s])?e[s].call(this,n):e[s]);return this.format(a||this.localeData().calendar(s,this,Ze(n)))},Oi.clone=function(){return new T(this)},Oi.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=ni(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=Q(e)){case"year":s=pi(this,n)/12;break;case"month":s=pi(this,n);break;case"quarter":s=pi(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:Mt(s)},Oi.endOf=function(t){var e,i;if(void 0===(t=Q(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ai:Yi,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+=Si-Di(e+(this._isUTC?0:this.utcOffset()*wi),Si)-1;break;case"minute":e=this._d.valueOf(),e+=wi-Di(e,wi)-1;break;case"second":e=this._d.valueOf(),e+=ki-Di(e,ki)-1}return this._d.setTime(e),p.updateOffset(this,!0),this},Oi.format=function(t){t||(t=this.isUtc()?p.defaultFormatUtc:p.defaultFormat);var e=V(this,t);return this.localeData().postformat(e)},Oi.from=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Ze(t).isValid())?ui({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Oi.fromNow=function(t){return this.from(Ze(),t)},Oi.to=function(t,e){return this.isValid()&&(j(t)&&t.isValid()||Ze(t).isValid())?ui({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Oi.toNow=function(t){return this.to(Ze(),t)},Oi.get=function(t){return H(this[t=Q(t)])?this[t]():this},Oi.invalidAt=function(){return N(this).overflow},Oi.isAfter=function(t,e){var i=j(t)?t:Ze(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Q(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Oi.isBefore=function(t,e){var i=j(t)?t:Ze(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Q(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Oi.isBetween=function(t,e,i,n){var r=j(t)?t:Ze(t),s=j(e)?e:Ze(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))},Oi.isSame=function(t,e){var i,n=j(t)?t:Ze(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Q(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Oi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Oi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Oi.isValid=function(){return x(this)},Oi.lang=bi,Oi.locale=yi,Oi.localeData=vi,Oi.max=Ue,Oi.min=$e,Oi.parsingFlags=function(){return Y({},N(this))},Oi.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)v(t,e)&&i.push({unit:e,priority:et[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=X(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(H(this[t=Q(t)]))return this[t](e);return this},Oi.startOf=function(t){var e,i;if(void 0===(t=Q(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ai:Yi,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-=Di(e+(this._isUTC?0:this.utcOffset()*wi),Si);break;case"minute":e=this._d.valueOf(),e-=Di(e,wi);break;case"second":e=this._d.valueOf(),e-=Di(e,ki)}return this._d.setTime(e),p.updateOffset(this,!0),this},Oi.subtract=mi,Oi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Oi.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()}},Oi.toDate=function(){return new Date(this.valueOf())},Oi.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?V(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):H(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",V(i,"Z")):V(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Oi.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&&(Oi[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Oi.toJSON=function(){return this.isValid()?this.toISOString():null},Oi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Oi.unix=function(){return Math.floor(this.valueOf()/1e3)},Oi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Oi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Oi.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""},Oi.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""},Oi.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""},Oi.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()-p(r[t].since).year())*i+r[t].offset;return this.year()},Oi.year=Et,Oi.isLeapYear=function(){return Ft(this.year())},Oi.weekYear=function(t){return Ri.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},Oi.isoWeekYear=function(t){return Ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Oi.quarter=Oi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Oi.month=Xt,Oi.daysInMonth=function(){return It(this.year(),this.month())},Oi.week=Oi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Oi.isoWeek=Oi.isoWeeks=function(t){var e=se(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Oi.weeksInYear=function(){var t=this.localeData()._week;return ae(this.year(),t.dow,t.doy)},Oi.weeksInWeekYear=function(){var t=this.localeData()._week;return ae(this.weekYear(),t.dow,t.doy)},Oi.isoWeeksInYear=function(){return ae(this.year(),1,4)},Oi.isoWeeksInISOWeekYear=function(){return ae(this.isoWeekYear(),1,4)},Oi.date=Ci,Oi.day=Oi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=_t(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},Oi.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")},Oi.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},Oi.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")},Oi.hour=Oi.hours=ke,Oi.minute=Oi.minutes=Ti,Oi.second=Oi.seconds=Ji,Oi.millisecond=Oi.milliseconds=Wi,Oi.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=ii(pt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=ri(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?li(this,ui(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,p.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ri(this)},Oi.utc=function(t){return this.utcOffset(0,t)},Oi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ri(this),"m")),this},Oi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ii(gt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Oi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ze(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Oi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Oi.isLocal=function(){return!!this.isValid()&&!this._isUTC},Oi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Oi.isUtc=si,Oi.isUTC=si,Oi.zoneAbbr=function(){return this._isUTC?"UTC":""},Oi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Oi.dates=J("dates accessor is deprecated. Use date instead.",Ci),Oi.months=J("months accessor is deprecated. Use month instead",Xt),Oi.years=J("years accessor is deprecated. Use year instead",Et),Oi.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()})),Oi.isDSTShifted=J("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!w(this._isDSTShifted))return this._isDSTShifted;var t,e={};return C(e,this),(e=Be(e))._a?(t=e._isUTC?A(e._a):Ze(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++)Dt(t[i])!==Dt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Hi=L.prototype;function Ei(t,e,i,n){var r=Fe(),s=A().set(n,e);return r[i](s,t)}function Li(t,e,i){if(S(t)&&(e=t,t=void 0),t=t||"",null!=e)return Ei(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Ei(t,n,i,"month");return r}function _i(t,e,i,n){"boolean"==typeof t?(S(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,S(e)&&(i=e,e=void 0),e=e||"");var r,s=Fe(),a=t?s._week.dow:0,o=[];if(null!=i)return Ei(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Ei(e,(r+a)%7,n,"day");return o}Hi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return H(n)?n.call(e,i):n},Hi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(B).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Hi.invalidDate=function(){return this._invalidDate},Hi.ordinal=function(t){return this._ordinal.replace("%d",t)},Hi.preparse=Gi,Hi.postformat=Gi,Hi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return H(r)?r(t,e,i,n):r.replace(/%d/i,t)},Hi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return H(i)?i(e):i.replace(/%s/i,e)},Hi.set=function(t){var e,i;for(i in t)v(t,i)&&(H(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)},Hi.eras=function(){var t,e,i,n=this._eras||Fe("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=p(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=p(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Hi.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]},Hi.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?p(t.since).year():p(t.since).year()+(e-t.offset)*i},Hi.erasAbbrRegex=function(t){return v(this,"_erasAbbrRegex")||xi.call(this),t?this._erasAbbrRegex:this._erasRegex},Hi.erasNameRegex=function(t){return v(this,"_erasNameRegex")||xi.call(this),t?this._erasNameRegex:this._erasRegex},Hi.erasNarrowRegex=function(t){return v(this,"_erasNarrowRegex")||xi.call(this),t?this._erasNarrowRegex:this._erasRegex},Hi.months=function(t,e){return t?y(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Ut).test(e)?"format":"standalone"][t.month()]:y(this._months)?this._months:this._months.standalone},Hi.monthsShort=function(t,e){return t?y(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Ut.test(e)?"format":"standalone"][t.month()]:y(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Hi.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return Kt.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=A([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}},Hi.monthsRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||te.call(this),t?this._monthsStrictRegex:this._monthsRegex):(v(this,"_monthsRegex")||(this._monthsRegex=qt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Hi.monthsShortRegex=function(t){return this._monthsParseExact?(v(this,"_monthsRegex")||te.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(v(this,"_monthsShortRegex")||(this._monthsShortRegex=Vt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Hi.week=function(t){return se(t,this._week.dow,this._week.doy).week},Hi.firstDayOfYear=function(){return this._week.doy},Hi.firstDayOfWeek=function(){return this._week.dow},Hi.weekdays=function(t,e){var i=y(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?oe(i,this._week.dow):t?i[t.day()]:i},Hi.weekdaysMin=function(t){return!0===t?oe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Hi.weekdaysShort=function(t){return!0===t?oe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Hi.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return me.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=A([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}},Hi.weekdaysRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ge.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(v(this,"_weekdaysRegex")||(this._weekdaysRegex=ce),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Hi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ge.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(v(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=le),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Hi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(v(this,"_weekdaysRegex")||ge.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(v(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fe),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Hi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Hi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},Ne("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===Dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),p.lang=J("moment.lang is deprecated. Use moment.locale instead.",Ne),p.langData=J("moment.langData is deprecated. Use moment.localeData instead.",Fe);var Bi=Math.abs;function Ii(t,e,i,n){var r=ui(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Zi(t){return t<0?Math.floor(t):Math.ceil(t)}function $i(t){return 4800*t/146097}function Ui(t){return 146097*t/4800}function Vi(t){return function(){return this.as(t)}}var qi=Vi("ms"),Ki=Vi("s"),Qi=Vi("m"),Xi=Vi("h"),tn=Vi("d"),en=Vi("w"),nn=Vi("M"),rn=Vi("Q"),sn=Vi("y"),an=qi;function on(t){return function(){return this.isValid()?this._data[t]:NaN}}var un=on("milliseconds"),hn=on("seconds"),dn=on("minutes"),cn=on("hours"),ln=on("days"),fn=on("months"),mn=on("years"),gn=Math.round,pn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function yn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var bn=Math.abs;function vn(t){return(t>0)-(t<0)||+t}function kn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,u=bn(this._milliseconds)/1e3,h=bn(this._days),d=bn(this._months),c=this.asSeconds();return c?(t=Mt(u/60),e=Mt(t/60),u%=60,t%=60,i=Mt(d/12),d%=12,n=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=c<0?"-":"",s=vn(this._months)!==vn(c)?"-":"",a=vn(this._days)!==vn(c)?"-":"",o=vn(this._milliseconds)!==vn(c)?"-":"",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 wn=Ke.prototype;wn.isValid=function(){return this._isValid},wn.abs=function(){var t=this._data;return this._milliseconds=Bi(this._milliseconds),this._days=Bi(this._days),this._months=Bi(this._months),t.milliseconds=Bi(t.milliseconds),t.seconds=Bi(t.seconds),t.minutes=Bi(t.minutes),t.hours=Bi(t.hours),t.months=Bi(t.months),t.years=Bi(t.years),this},wn.add=function(t,e){return Ii(this,t,e,1)},wn.subtract=function(t,e){return Ii(this,t,e,-1)},wn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=Q(t))||"quarter"===t||"year"===t)switch(i=this._months+$i(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(Ui(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)}},wn.asMilliseconds=qi,wn.asSeconds=Ki,wn.asMinutes=Qi,wn.asHours=Xi,wn.asDays=tn,wn.asWeeks=en,wn.asMonths=nn,wn.asQuarters=rn,wn.asYears=sn,wn.valueOf=an,wn._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*Zi(Ui(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=Mt(s/1e3),u.seconds=t%60,e=Mt(t/60),u.minutes=e%60,i=Mt(e/60),u.hours=i%24,a+=Mt(i/24),o+=r=Mt($i(a)),a-=Zi(Ui(r)),n=Mt(o/12),o%=12,u.days=a,u.months=o,u.years=n,this},wn.clone=function(){return ui(this)},wn.get=function(t){return t=Q(t),this.isValid()?this[t+"s"]():NaN},wn.milliseconds=un,wn.seconds=hn,wn.minutes=dn,wn.hours=cn,wn.days=ln,wn.weeks=function(){return Mt(this.days()/7)},wn.months=fn,wn.years=mn,wn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=pn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},pn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=ui(t).abs(),s=gn(r.as("s")),a=gn(r.as("m")),o=gn(r.as("h")),u=gn(r.as("d")),h=gn(r.as("M")),d=gn(r.as("w")),c=gn(r.as("y")),l=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&&(l=l||d<=1&&["w"]||d<i.w&&["ww",d]),(l=l||h<=1&&["M"]||h<i.M&&["MM",h]||c<=1&&["y"]||["yy",c])[2]=e,l[3]=+t>0,l[4]=n,yn.apply(null,l)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},wn.toISOString=kn,wn.toString=kn,wn.toJSON=kn,wn.locale=yi,wn.localeData=vi,wn.toIsoString=J("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kn),wn.lang=bi,U("X",0,0,"unix"),U("x",0,0,"valueOf"),kt("x",mt),kt("X",/[+-]?\d+(\.\d{1,3})?/),At("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),At("x",(function(t,e,i){i._d=new Date(Dt(t))})),
8
8
  //! moment.js
9
- p.version="2.30.1",m=Ze,p.fn=Oi,p.min=function(){return Ve("isBefore",[].slice.call(arguments,0))},p.max=function(){return Ve("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=A,p.unix=function(t){return Ze(1e3*t)},p.months=function(t,e){return Li(t,e,"months")},p.isDate=M,p.locale=Ne,p.invalid=F,p.duration=ui,p.isMoment=j,p.weekdays=function(t,e,i){return _i(t,e,i,"weekdays")},p.parseZone=function(){return Ze.apply(null,arguments).parseZone()},p.localeData=Fe,p.isDuration=Qe,p.monthsShort=function(t,e){return Li(t,e,"monthsShort")},p.weekdaysMin=function(t,e,i){return _i(t,e,i,"weekdaysMin")},p.defineLocale=xe,p.updateLocale=function(t,e){if(null!=e){var i,n,r=we;null!=Se[t]&&null!=Se[t].parentLocale?Se[t].set(E(Se[t]._config,e)):(null!=(n=Ae(t))&&(r=n._config),e=E(r,e),null==n&&(e.abbr=t),(i=new L(e)).parentLocale=Se[t],Se[t]=i),Ne(t)}else null!=Se[t]&&(null!=Se[t].parentLocale?(Se[t]=Se[t].parentLocale,t===Ne()&&Ne(t)):null!=Se[t]&&delete Se[t]);return Se[t]},p.locales=function(){return P(Se)},p.weekdaysShort=function(t,e,i){return _i(t,e,i,"weekdaysShort")},p.normalizeUnits=Q,p.relativeTimeRounding=function(t){return void 0===t?gn:"function"==typeof t&&(gn=t,!0)},p.relativeTimeThreshold=function(t,e){return void 0!==pn[t]&&(void 0===e?pn[t]:(pn[t]=e,"s"===t&&(pn.ss=e-1),!0))},p.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"},p.prototype=Oi,p.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 Sn=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=()=>c("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=p(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?c("startedAtWithTime",this.language)+t:c("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} `+c(`${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 f(this.translationUrl):this.translationData&&await l(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return f(this.translationUrl);if(this.translationData)return l(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"},c("scoreCriteria",this.language),": ",c(this.tournamentInfo.scoreCriteria,this.language)," (",c("minbet",this.language),": ",this.tournamentInfo.minBetCount,")"),this.showDates&&i("p",{key:"00fae2420d9c6e6eafe9a2f8c378198638b88981",class:"Dates"},this.startDate),this.seeGames&&i("p",{key:"4a22edfcf8a06a3c48b4d6280ae6a6bc3c824905",class:"SeeGames"},c("seegames",this.language),":",i("a",{key:"44a29b2e941bd03febd124082998262357fc9885",class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",c("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)}};Sn.style=":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--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(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emw--tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emw--color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emw--color-white, #FFFFFF)}";const Mn={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"}},Dn=(t,e)=>{var i,n;return(null===(i=Mn[e])||void 0===i?void 0:i[t])||(null===(n=Mn.en)||void 0===n?void 0:n[t])},Yn=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"},Dn("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"},Dn("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," ",Dn("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)," ",Dn("place",this.language),": ",t.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},Dn("noprizes",this.language))))}get host(){return n(this)}};Yn.style=":host{display:block}.PrizeGroups{color:var(--emw--color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emw--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(--emw--color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emw--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(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}";export{a as casino_tournament_buttons,h as casino_tournament_duration,Sn as casino_tournament_info,Yn as casino_tournament_prizes}
9
+ p.version="2.30.1",m=Ze,p.fn=Oi,p.min=function(){return Ve("isBefore",[].slice.call(arguments,0))},p.max=function(){return Ve("isAfter",[].slice.call(arguments,0))},p.now=function(){return Date.now?Date.now():+new Date},p.utc=A,p.unix=function(t){return Ze(1e3*t)},p.months=function(t,e){return Li(t,e,"months")},p.isDate=M,p.locale=Ne,p.invalid=F,p.duration=ui,p.isMoment=j,p.weekdays=function(t,e,i){return _i(t,e,i,"weekdays")},p.parseZone=function(){return Ze.apply(null,arguments).parseZone()},p.localeData=Fe,p.isDuration=Qe,p.monthsShort=function(t,e){return Li(t,e,"monthsShort")},p.weekdaysMin=function(t,e,i){return _i(t,e,i,"weekdaysMin")},p.defineLocale=xe,p.updateLocale=function(t,e){if(null!=e){var i,n,r=we;null!=Se[t]&&null!=Se[t].parentLocale?Se[t].set(E(Se[t]._config,e)):(null!=(n=Ae(t))&&(r=n._config),e=E(r,e),null==n&&(e.abbr=t),(i=new L(e)).parentLocale=Se[t],Se[t]=i),Ne(t)}else null!=Se[t]&&(null!=Se[t].parentLocale?(Se[t]=Se[t].parentLocale,t===Ne()&&Ne(t)):null!=Se[t]&&delete Se[t]);return Se[t]},p.locales=function(){return P(Se)},p.weekdaysShort=function(t,e,i){return _i(t,e,i,"weekdaysShort")},p.normalizeUnits=Q,p.relativeTimeRounding=function(t){return void 0===t?gn:"function"==typeof t&&(gn=t,!0)},p.relativeTimeThreshold=function(t,e){return void 0!==pn[t]&&(void 0===e?pn[t]:(pn[t]=e,"s"===t&&(pn.ss=e-1),!0))},p.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"},p.prototype=Oi,p.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 Sn=class{constructor(e){t(this,e),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.shortStartFormat="DD MMM YYYY",this.clientStyling="",this.clientStylingUrl="",this.enrolled=!1,this.showReadMore=!1,this.translationUrl="",this.limitStylingAppends=!1,this.formatDate=()=>{const t={month:"long"},e=this.tournamentInfo.state;let i=new Date(this.tournamentInfo.startTime);const n=()=>c("Running"===e||"Closing"==e||"Closed"==e?"startedAt":"startingAt",this.language);if(this.shortStart){let t=p(i).format(this.shortStartFormat);this.startDate="Running"===e||"Closing"==e||"Closed"==e?c("startedAtWithTime",this.language)+t:c("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} `+c(`${e}`,this.language)+", "+n()+` ${s}`}},this.detailsAction=t=>{window.postMessage({type:"TournamentDetailsClicked",tournamentId:t},window.location.href)}}async infoCompletedHandler(t){if(t.detail&&this.useEvent){if(this.tournamentId&&this.tournamentId!=t.detail.id)return;this.translationUrl?await f(this.translationUrl):this.translationData&&await l(JSON.parse(this.translationData)),this.tournamentInfo=t.detail}}async componentWillLoad(){if(!this.useEvent){if(this.translationUrl)return f(this.translationUrl);if(this.translationData)return l(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"},c("scoreCriteria",this.language),": ",c(this.tournamentInfo.scoreCriteria,this.language)," (",c("minbet",this.language),": ",this.tournamentInfo.minBetCount,")"),this.showDates&&i("p",{key:"00fae2420d9c6e6eafe9a2f8c378198638b88981",class:"Dates"},this.startDate),this.seeGames&&i("p",{key:"4a22edfcf8a06a3c48b4d6280ae6a6bc3c824905",class:"SeeGames"},c("seegames",this.language),":",i("a",{key:"44a29b2e941bd03febd124082998262357fc9885",class:"GameLink",href:this.tournamentInfo.termsUrl||"#",target:1==this.keepContext?"_self":"_blank",onClick:()=>this.tournamentGamesClicked(this.tournamentId)}," ",c("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)}};Sn.style=":host{display:block}.TournamentInfo{background:var(--emw--tournament-color-bg, #153a5c);color:var(--emw--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(--emw--color-white, #FFFFFF)}.GameLink{text-decoration:underline;text-transform:uppercase;color:var(--emw--color-white, #FFFFFF)}.InfoButtons{display:flex;justify-content:center}.DetailsButton{border:0;border-radius:2px;background-color:var(--emw--tournament-color-primary, #0072ed);padding:8px 16px;font-size:14px;font-weight:600;color:var(--emw--color-white, #FFFFFF);cursor:pointer}p{font-size:12px;margin-top:0}casino-tournament-duration::part(StartDate){color:var(--emw--color-white, #FFFFFF)}casino-tournament-duration::part(EndDate){color:var(--emw--color-white, #FFFFFF)}";const Mn={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"}},Dn=(t,e)=>{var i,n;return(null===(i=Mn[e])||void 0===i?void 0:i[t])||(null===(n=Mn.en)||void 0===n?void 0:n[t])},Yn=class{constructor(e){t(this,e),this.useGroup=!1,this.useEvent=!1,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"},Dn("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"},Dn("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," ",Dn("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)," ",Dn("place",this.language),": ",t.name)))),!this.prizes&&i("p",{key:"2df9ce5a0f56928a550f0ebf3de962835df0d6f2"},Dn("noprizes",this.language))))}get host(){return n(this)}};Yn.style=":host{display:block}.PrizeGroups{color:var(--emw--color-white, #FFFFFF);display:flex;gap:20px;font-size:14px}.PrizeGroup{flex:1;background:var(--emw--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(--emw--color-white, #FFFFFF)}.PrizeIcon path{fill:var(--emw--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(--emw--color-gray-300, #58586B)}.Prize.Prize0 span{color:#FECF00}.Prize.Prize1 span{color:#D9B206}.Prize.Prize2 span{color:#9B8007}.Prize p{color:var(--emw--color-white, #FFFFFF)}";export{a as casino_tournament_buttons,h as casino_tournament_duration,Sn as casino_tournament_info,Yn as casino_tournament_prizes}