@everymatrix/casino-tournament-banner 1.28.7 → 1.28.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- import{p as e,b as n}from"./p-f4660955.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((e=>n([["p-83ad6942",[[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[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"],limitStylingAppends:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],e)));
1
+ import{p as e,b as n}from"./p-f09c5306.js";(()=>{const n=import.meta.url,t={};return""!==n&&(t.resourcesUrl=new URL(".",n).href),e(t)})().then((e=>n([["p-fecd4406",[[1,"casino-tournament-banner",{useEvent:[1,"use-event"],endpoint:[1],state:[1],enrolled:[4],startTime:[1,"start-time"],endTime:[1,"end-time"],thumbnail:[1],language:[1],showCalendar:[4,"show-calendar"],shortStart:[4,"short-start"],shortstartformat:[1],showDate:[4,"show-date"],showRunningDate:[4,"show-running-date"],showCheck:[4,"show-check"],cardMode:[4,"card-mode"],nameOrTitle:[1,"name-or-title"],tournamentId:[1,"tournament-id"],session:[1],loginEvent:[1,"login-event"],loginUrl:[1,"login-url"],registerEvent:[1,"register-event"],registerUrl:[1,"register-url"],currency:[1],bonusCode:[1,"bonus-code"],showReadMore:[4,"show-read-more"],clientStyling:[1,"client-styling"],clientStylingUrl:[1,"client-styling-url"],stateText:[32],limitStylingAppends:[32],startdate:[32],tournamentLeftDays:[32],showRemain:[32],durationInterval:[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"],limitStylingAppends:[32],stylingContainer:[32],joinButtonLoading:[32],errorJoin:[32],errorJoinConcurrently:[32]}]]]],e)));
@@ -0,0 +1 @@
1
+ let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){J(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),$=new WeakMap,d=e=>"sc-"+e.h,m={},p=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!p(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?w(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=w(e,null);return c.m=t,r.length>0&&(c.p=r),c},w=(e,t)=>({t:0,g:e,$:t,v:null,p:null,m:null}),b={},g=(e,t,n,l,o,i)=>{if(n!==l){let c=I(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if("ref"===t)l&&l(e);else if(c||"o"!==t[0]||"n"!==t[1]){const s=p(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):I(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.m||m,r=t.m||m;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,i,c=l.p[s],u=0;if(null!==c.$)r=c.v=o.createTextNode(c.$);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.p)for(u=0;u<c.p.length;++u)i=O(t,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].v=i,c.insertBefore(i,n)))},k=(e,t,n,l,s)=>{for(;t<=n;++t)(l=e[t])&&(s=l.v,P(l),s.remove())},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.p,o=t.p,r=t.g,i=t.$;null===i?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--i],h=l[--a]):C(c,h)?(x(c,h),e.insertBefore(c.v,u.v.nextSibling),c=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,c.v),u=t[--i],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&c.v.parentNode.insertBefore(s,c.v));o>i?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,i)})(l,s,t,o):null!==o?(null!==e.$&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.$!==i&&(l.data=i)},P=e=>{e.m&&e.m.ref&&e.m.ref(null),e.p&&e.p.map(P)},E=e=>z(e).S,L=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},N=(e,t)=>{if(e.t|=16,!(4&e.t))return L(e,e.O),se((()=>R(e,t)));e.t|=512},R=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>q(n,e,t))),e.u=null),l=q(n,"componentWillLoad")),D(l,(()=>T(e,n,t)))},T=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=d(t),l=X.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=$.get(e=e.head||e);s||$.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);W(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>A(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},W=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.k||w(null,null),r=(e=>e&&e.g===b)(l)?l:y(null,null,l);t=s.tagName,r.g=null,r.t|=4,n.k=r,r.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,r)})(n,l)}catch(e){J(e,n.S)}return null},A=e=>{const t=e.S,n=e.O;q(e.i,"componentDidRender"),64&e.t||(e.t|=64,F(t),e.C(t),n||U()),e.j&&(e.j(),e.j=void 0),512&e.t&&le((()=>N(e,!1))),e.t&=-517},U=()=>{F(o.documentElement),le((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-banner"}});return e.dispatchEvent(t),t})(s)))},q=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){J(e)}},D=(e,t)=>e&&e.then?e.then(t):t(),F=e=>e.classList.add("hydrated"),H=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>z(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=z(e),o=s.L.get(t),r=s.t,i=s.i;n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.P[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),i&&2==(18&r)&&N(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},V=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let m,p=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.h,a=class extends HTMLElement{constructor(e){super(e),G(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){m&&(clearTimeout(m),m=null),p?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=z(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){L(t,t.O=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=Q(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(H(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){J(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=d(n);if(!X.has(t)){const l=()=>{};((e,t,n)=>{let l=X.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,X.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.O,r=()=>N(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=z(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return z(this).R}};s.T=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,H(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>m=setTimeout(U,30)))},_=new WeakMap,z=e=>_.get(e),B=(e,t)=>_.set(t.i=e,t),G=(e,t)=>{const n={t:0,S:e,M:t,L:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),_.set(e,n)},I=(e,t)=>t in e,J=(e,t)=>(0,console.error)(e,t),K=new Map,Q=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=K.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(K.set(n,e),e[t])),J)},X=new Map,Y=[],Z=[],ee=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?le(ne):r.raf(ne))},te=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){J(e)}e.length=0},ne=()=>{te(Y),te(Z),(l=Y.length>0)&&r.raf(ne)},le=e=>i().then(e),se=ee(Z,!0);export{V as b,E as g,y as h,i as p,B as r}
@@ -1,9 +1,9 @@
1
- import{r as t,h as e,g as n}from"./p-f4660955.js";const i=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],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.",tournament:"Tournament",terms:"Terms and conditions",left:"left",minutes:"minutes",hours:"hours",days:"days"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.",left:"bal",minutes:"perc",hours:"óra",days:"nap"},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},s=(t,e)=>{const n=e;return r[void 0!==n&&i.includes(n)?n:"en"][t]};
1
+ import{r as t,h as e,g as n}from"./p-f09c5306.js";const i=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],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.",tournament:"Tournament",terms:"Terms and conditions",left:"left",minutes:"minutes",hours:"hours",days:"days"},"zh-hk":{enrolled:"已註冊",scoreCriteria:"評分標準",minbet:"最小投注數:",seegames:"你可以看比賽",here:"這裡",scheduled:"預定的",ongoing:"進行中",finished:"完成的",startingAt:"開始於",startedAt:"大多數回合",mostRounds:"投注數",betCount:"投注计数",maxWinStakeRatio:"最大勝率",winStakeRatio:"勝率",January:"一月",February:"二月",March:"行进",April:"四月",May:"可能",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月",login:"登錄",register:"登記",details:"細節",join:"加入",joinerror:"加入錦標賽時出錯,請重試",left:"剩下",minutes:"分鐘",hours:"小時",days:"天"},fr:{enrolled:"Inscrits",scoreCriteria:"Critères de notation",minbet:"nombre de paris minimum",seegames:"Vous pouvez voir les jeux",here:"ici",scheduled:"Programmé",ongoing:"En cours",finished:"Fini",startingAt:"À partir de:",startedAt:"Commencé à:",mostRounds:"Le plus grand nombre de tours",betCount:"Nombre de paris",maxWinStakeRatio:"Indice maximum du gain d'une mise",winStakeRatio:"Indice du gain d'une mise",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Connexion",register:"Enregistre",details:"Détails",join:"Rejoignez",joinerror:"Une erreur s'est produite lors de l'inscription au tournoi - ",left:"restant",minutes:"minutes",hours:"heures",days:"jours"},ro:{enrolled:"Înscris",scoreCriteria:"Criterii de punctaj",minbet:"număr minim de pariuri",seegames:"Vezi jocurile",here:"aici",scheduled:"Programat",ongoing:"În desfășurare",finished:"Finalizat",startingAt:"Începând de la",startedAt:"A inceput la:",startingAtWithTime:"Începând de",startedAtWithTime:"A inceput:",mostRounds:"Cele mai multe runde",betCount:"Număr de pariuri",maxWinStakeRatio:"Pondere maximă a mizei din câștig",winStakeRatio:"Câștig Total per Miză",January:"Ianuarie",February:"Februarie",March:"Martie",April:"Aprilie",May:"Mai",June:"Iunie",July:"Iulie",August:"August",September:"Septembrie",October:"Octombrie",November:"Noiembrie",December:"Decembrie",login:"Autentificare",register:"Înregistrare",details:"Detalii",join:"Participă",joinerror:"A apărut o eroare la înregistrarea în turneu, te rugăm să încerci din nou.",left:"rămase",minutes:"minute",hours:"ore",days:"zile"},tr:{enrolled:"Katıldın",scoreCriteria:"Skor kriteri",minbet:"en düşük bahis sayısı",seegames:"Turnuvadaki oyunları görmek için",here:"tıklayın",scheduled:"Planlanmış",ongoing:"Devam Eden",finished:"Sona Ermiş",startingAt:"Başlangıç saati:",startedAt:"Başlangıç saati:",mostRounds:"ÇoğuRounds",betCount:"Oynanan Tur Sayısı",maxWinStakeRatio:"Maksimum Kazanç / Bahis Oranı",winStakeRatio:"Kazanç / Bahis Oranı",January:"Ocak",February:"Şubat",March:"Mart",April:"Nisan",May:"Mayıs",June:"Haziran",July:"Temmuz",August:"Ağustos",September:"Eylül",October:"Ekim",November:"Kasım",December:"Aralık",login:"Giriş",register:"Kayıt Ol",details:"Detaylar",join:"Katıl",joinerror:"Turnuvaya katılım ile ilgili bir hata oluştu - ",left:"kaldı",minutes:"dakika",hours:"saat",days:"gün"},el:{enrolled:"Εγγεγραμμένος",scoreCriteria:"Κριτήρια Σκορ",minbet:"Ελάχιστος αριθμός πονταρισμάτων",seegames:"Μπορείς να δεις τα παιχνίδια",here:"εδώ",all:"Όλα",scheduled:"Προγραμματισμένα",ongoing:"Τρέχοντα",finished:"Ολοκληρωμένα",startingAt:"Αρχίζει στις:",startedAt:"Άρχισε στις:",startingAtWithTime:"Αρχίζει στις ",startedAtWithTime:"Άρχισε στις ",mostRounds:"Οι περισσότεροι γύροι",betCount:"Οι περισσότεροι γύροι",maxWinStakeRatio:"Μεγαλύτερο Κέρδος άνα Ποντάρισμα",winStakeRatio:"Συνολική Αναλογία Κερδών άνα Ποντάρισμα",January:"Ιανουαρίου",February:"Φεβρουαρίου",March:"Μαρτίου",April:"Απριλίου",May:"Μαΐου",June:"Ιουνίου",July:"Ιουλίου",August:"Αυγούστου",September:"Σεπτεμβρίου",October:"Οκτωβρίου",November:"Νοεμβρίου",December:"Δεκεμβρίου",login:"Είσοδος",register:"Εγγραφή",details:"Λεπτομέρειες",join:"Συμμετοχή",joinerror:"Παρουσιάστηκε σφάλμα κατά τη διαδικασία εγγραφής στο τουρνουά, παρακαλούμε δοκιμάστε ξανά.",left:"απομένουν",minutes:"λεπτά",hours:"ώρες",days:"ημέρες"},es:{enrolled:"Inscrito",scoreCriteria:"Criterios de puntuación",minbet:"la apuesta mínima cuenta",seegames:"Puedes ver los juegos",here:"aquí",scheduled:"Programado",ongoing:"En marcha",finished:"Terminado",startingAt:"Desde",startedAt:"Empezó el:",mostRounds:"LaMayoríaDeLasRondas",betCount:"Recuento De Apuestas",maxWinStakeRatio:"Ratio De Ganancia Máxima",winStakeRatio:"Ratio De Ganancia",January:"de enero",February:"de febrero",March:"de marzo",April:"de abril",May:"de mayo",June:"de junio",July:"de julio",August:"de agosto",September:"de septiembre",October:"de octubre",November:"de noviembre",December:"de diciembre",login:"Iniciar sesión",register:"Regístrate",details:"Detalles",join:"Unirse",joinerror:"Ha ocurrido un error mientras se registra en el Torneo",left:"izquierda",minutes:"minutos",hours:"horas",days:"días"},pt:{enrolled:"Inscrito",scoreCriteria:"Critérios de pontuação",minbet:"Contagens de aposta mínima",seegames:"Você pode ver os jogos",here:"Aqui",scheduled:"Agendado",ongoing:"Em progresso",finished:"Finalizado",startingAt:"Começando às:",startedAt:"Começou às:",mostRounds:"Mais rodadas",betCount:"Contagem de Apostas",maxWinStakeRatio:"Rácio máximo de vitórias",winStakeRatio:"Rácio de Vitórias",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Entrar",register:"Registro",details:"Detalhes",join:"Junte-se",joinerror:"Ocorreu um erro ao entrar no torneio -",left:"Abandonou",minutes:"Minutos",hours:"Horas",days:"Dias"},hu:{enrolled:"Feliratkozott",scoreCriteria:"Pontozási kritériumok",minbet:"Minimális tét",seegames:"Játékok megnézése",here:"itt",scheduled:"Ütemezés",ongoing:"Folyamatban lévő",finished:"Befejezett",startingAt:"Kezdődik",startedAt:"Started at:",mostRounds:"Legtöbb kör",betCount:"Számított tét",maxWinStakeRatio:"Maximális nyeremény tétenként",winStakeRatio:"Összes nyeremény tétenként",January:"January",February:"February",March:"March",April:"April",May:"May",June:"June",July:"July",August:"August",September:"September",October:"October",November:"November",December:"December",login:"Bejelentkezés",register:"Regisztráció",details:"Adatok",join:"Csatlakozás",joinerror:"Hiba történt a versenyre való regisztráció során, kérjük próbálja újra.",left:"bal",minutes:"perc",hours:"óra",days:"nap"},hr:{joined:"Pridružen",enrolled:"Upisan",scoreCriteria:"Kriteriji bodovanja",minbet:"minimalni broj beta",seegames:"Možete vidjeti igre",here:"Ovdje",scheduled:"Zakazano",ongoing:"U tijeku",finished:"Gotovo",startingAt:"S početkom u",startedAt:"Započelo u",startingAtWithTime:"Počinje ",startedAtWithTime:"Započelo ",mostRounds:"Najviše rundi",betCount:"Broj betova",maxWinStakeRatio:"Maksimalni dobitak po ulogu",winStakeRatio:"Ukupni dobitak po ulogu",January:"Siječanj",February:"Veljača",March:"Ožujak",April:"Travanj",May:"Svibanj",June:"Lipanj",July:"Srpanj",August:"Kolovoz",September:"Rujan",October:"Listopad",November:"Studeni",December:"Prosinac",login:"Prijaviti se",register:"Registracija",details:"Detalji",join:"join",joinerror:"Došlo je do pogreške prilikom registracije na turnir, pokušajte ponovno.",left:"lijevo",minutes:"minute",hours:"sati",days:"dani"}},s=(t,e)=>{const n=e;return r[void 0!==n&&i.includes(n)?n:"en"][t]};
2
2
  //! moment.js
3
3
  //! version : 2.29.4
4
4
  //! authors : Tim Wood, Iskren Chernev, Moment.js contributors
5
5
  //! license : MIT
6
6
  //! momentjs.com
7
- var a,o;function u(){return a.apply(null,arguments)}function h(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function d(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function m(t){return void 0===t}function f(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function g(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function b(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function y(t,e,n,i){return Te(t,e,n,i,!0).utc()}function v(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function M(t){if(null==t._isValid){var e=v(t),n=o.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function S(t){var e=y(NaN);return null!=t?b(v(e),t):v(e).userInvalidated=!0,e}o=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var w=u.momentProperties=[],D=!1;function k(t,e){var n,i,r,s=w.length;if(m(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),m(e._i)||(t._i=e._i),m(e._f)||(t._f=e._f),m(e._l)||(t._l=e._l),m(e._strict)||(t._strict=e._strict),m(e._tzm)||(t._tzm=e._tzm),m(e._isUTC)||(t._isUTC=e._isUTC),m(e._offset)||(t._offset=e._offset),m(e._pf)||(t._pf=v(e)),m(e._locale)||(t._locale=e._locale),s>0)for(n=0;n<s;n++)m(r=e[i=w[n]])||(t[i]=r);return t}function Y(t){k(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===D&&(D=!0,u.updateOffset(this),D=!1)}function A(t){return t instanceof Y||null!=t&&null!=t._isAMomentObject}function N(t){!1===u.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return b((function(){if(null!=u.deprecationHandler&&u.deprecationHandler(null,t),n){var i,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(i="","object"==typeof arguments[r]){for(s in i+="\n["+r+"] ",arguments[0])l(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[r];a.push(i)}N(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var j,x={};function R(t,e){null!=u.deprecationHandler&&u.deprecationHandler(t,e),x[t]||(N(e),x[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function J(t,e){var n,i=b({},t);for(n in e)l(e,n)&&(d(t[n])&&d(e[n])?(i[n]={},b(i[n],t[n]),b(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)l(t,n)&&!l(e,n)&&d(t[n])&&(i[n]=b({},i[n]));return i}function W(t){null!=t&&this.set(t)}function H(t,e,n){var i=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}u.suppressDeprecationWarnings=!1,u.deprecationHandler=null,j=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var O=/(\[[^\[]*\])|(\\)?([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,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},z={};function B(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(z[t]=r),e&&(z[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(z[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t,e){return t.isValid()?(e=L(e,t.localeData()),F[e]=F[e]||function(t){var e,n,i,r=t.match(O);for(e=0,n=r.length;e<n;e++)r[e]=z[r[e]]?z[r[e]]:(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,s="";for(i=0;i<n;i++)s+=C(r[i])?r[i].call(e,t):r[i];return s}}(e),F[e](t)):t.localeData().invalidDate()}function L(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(E.lastIndex=0;n>=0&&E.test(t);)t=t.replace(E,i),E.lastIndex=0,n-=1;return t}var _={};function I(t,e){var n=t.toLowerCase();_[n]=_[n+"s"]=_[e]=t}function Z(t){return"string"==typeof t?_[t]||_[t.toLowerCase()]:void 0}function P(t){var e,n,i={};for(n in t)l(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var U={};function V(t,e){U[t]=e}function $(t){return t%4==0&&t%100!=0||t%400==0}function K(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function q(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=K(e)),n}function Q(t,e){return function(n){return null!=n?(tt(this,t,n),u.updateOffset(this,e),this):X(this,t)}}function X(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function tt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$(t.year())&&1===t.month()&&29===t.date()?(n=q(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),At(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var et,nt=/\d/,it=/\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}/,lt=/\d{1,4}/,ct=/[+-]?\d{1,6}/,mt=/\d+/,ft=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,bt=/[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;function yt(t,e,n){et[t]=C(e)?e:function(t){return t&&n?n:e}}function vt(t,e){return l(et,t)?et[t](e._strict,e._locale):new RegExp(Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}et={};var St,wt={};function Dt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),f(e)&&(r=function(t,n){n[e]=q(t)}),i=t.length,n=0;n<i;n++)wt[t[n]]=r}function kt(t,e){Dt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function Yt(t,e,n){null!=e&&l(wt,t)&&wt[t](e,n._a,n,t)}function At(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?$(t)?29:28:31-n%7%2}St=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},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),B("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),I("month","M"),V("month",8),yt("M",ot),yt("MM",ot,it),yt("MMM",(function(t,e){return e.monthsShortRegex(t)})),yt("MMMM",(function(t,e){return e.monthsRegex(t)})),Dt(["M","MM"],(function(t,e){e[1]=q(t)-1})),Dt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[1]=r:v(n).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt=bt,Rt=bt;function Ct(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=y([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,a))?r:null:-1!==(r=St.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,a))||-1!==(r=St.call(this._longMonthsParse,a))?r:null:-1!==(r=St.call(this._longMonthsParse,a))||-1!==(r=St.call(this._shortMonthsParse,a))?r:null}function Jt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=q(e);else if(!f(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),At(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Wt(t){return null!=t?(Jt(this,t),u.updateOffset(this,!0),this):X(this,"Month")}function Ht(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],s=[];for(e=0;e<12;e++)n=y([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)i[e]=Mt(i[e]),r[e]=Mt(r[e]);for(e=0;e<24;e++)s[e]=Mt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ot(t){return $(t)?366:365}B("Y",0,0,(function(){var t=this.year();return t<=9999?H(t,4):"+"+t})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),I("year","y"),V("year",1),yt("Y",ft),yt("YY",ot,it),yt("YYYY",lt,st),yt("YYYYY",ct,at),yt("YYYYYY",ct,at),Dt(["YYYYY","YYYYYY"],0),Dt("YYYY",(function(t,e){e[0]=2===t.length?u.parseTwoDigitYear(t):q(t)})),Dt("YY",(function(t,e){e[0]=u.parseTwoDigitYear(t)})),Dt("Y",(function(t,e){e[0]=parseInt(t,10)})),u.parseTwoDigitYear=function(t){return q(t)+(q(t)>68?1900:2e3)};var Et=Q("FullYear",!0);function Ft(t,e,n,i,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,s,a),o}function zt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Bt(t,e,n){var i=7+e-n;return-(7+zt(t,0,i).getUTCDay()-e)%7+i-1}function Gt(t,e,n,i,r){var s,a,o=1+7*(e-1)+(7+n-i)%7+Bt(t,i,r);return o<=0?a=Ot(s=t-1)+o:o>Ot(t)?(s=t+1,a=o-Ot(t)):(s=t,a=o),{year:s,dayOfYear:a}}function Lt(t,e,n){var i,r,s=Bt(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?i=a+_t(r=t.year()-1,e,n):a>_t(t.year(),e,n)?(i=a-_t(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function _t(t,e,n){var i=Bt(t,e,n),r=Bt(t+1,e,n);return(Ot(t)-i+r)/7}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),V("week",5),V("isoWeek",5),yt("w",ot),yt("ww",ot,it),yt("W",ot),yt("WW",ot,it),kt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=q(t)})),B("d",0,"do","day"),B("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),B("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),B("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),V("day",11),V("weekday",11),V("isoWeekday",11),yt("d",ot),yt("e",ot),yt("E",ot),yt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),yt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),yt("dddd",(function(t,e){return e.weekdaysRegex(t)})),kt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:v(n).invalidWeekday=t})),kt(["d","e","E"],(function(t,e,n,i){e[i]=q(t)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ut="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Vt=bt,$t=bt,Kt=bt;function qt(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=y([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=St.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=St.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=St.call(this._weekdaysParse,a))||-1!==(r=St.call(this._shortWeekdaysParse,a))||-1!==(r=St.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,a))||-1!==(r=St.call(this._weekdaysParse,a))||-1!==(r=St.call(this._minWeekdaysParse,a))?r:null:-1!==(r=St.call(this._minWeekdaysParse,a))||-1!==(r=St.call(this._weekdaysParse,a))||-1!==(r=St.call(this._shortWeekdaysParse,a))?r:null}function Qt(){function t(t,e){return e.length-t.length}var e,n,i,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)n=y([2e3,1]).day(e),i=Mt(this.weekdaysMin(n,"")),r=Mt(this.weekdaysShort(n,"")),s=Mt(this.weekdays(n,"")),a.push(i),o.push(r),u.push(s),h.push(i),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 Xt(){return this.hours()%12||12}function te(t,e){B(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ee(t,e){return e._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Xt),B("k",["kk",2],0,(function(){return this.hours()||24})),B("hmm",0,0,(function(){return""+Xt.apply(this)+H(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Xt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),te("a",!0),te("A",!1),I("hour","h"),V("hour",13),yt("a",ee),yt("A",ee),yt("H",ot),yt("h",ot),yt("k",ot),yt("HH",ot,it),yt("hh",ot,it),yt("kk",ot,it),yt("hmm",ut),yt("hmmss",ht),yt("Hmm",ut),yt("Hmmss",ht),Dt(["H","HH"],3),Dt(["k","kk"],(function(t,e){var n=q(t);e[3]=24===n?0:n})),Dt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Dt(["h","hh"],(function(t,e,n){e[3]=q(t),v(n).bigHour=!0})),Dt("hmm",(function(t,e,n){var i=t.length-2;e[3]=q(t.substr(0,i)),e[4]=q(t.substr(i)),v(n).bigHour=!0})),Dt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=q(t.substr(0,i)),e[4]=q(t.substr(i,2)),e[5]=q(t.substr(r)),v(n).bigHour=!0})),Dt("Hmm",(function(t,e){var n=t.length-2;e[3]=q(t.substr(0,n)),e[4]=q(t.substr(n))})),Dt("Hmmss",(function(t,e){var n=t.length-4,i=t.length-2;e[3]=q(t.substr(0,n)),e[4]=q(t.substr(n,2)),e[5]=q(t.substr(i))}));var ne,ie=Q("Hours",!0),re={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:Nt,monthsShort:Tt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:Ut,weekdaysShort:Pt,meridiemParse:/[ap]\.?m?\.?/i},se={},ae={};function oe(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function ue(t){return t?t.toLowerCase().replace("_","-"):t}function he(t){var e=null;if(void 0===se[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=ne._abbr,require("./locale/"+t),de(e)}catch(e){se[t]=null}return se[t]}function de(t,e){var n;return t&&((n=m(e)?ce(t):le(t,e))?ne=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ne._abbr}function le(t,e){if(null!==e){var n,i=re;if(e.abbr=t,null!=se[t])R("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."),i=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])i=se[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;i=n._config}return se[t]=new W(J(i,e)),ae[t]&&ae[t].forEach((function(t){le(t.name,t.config)})),de(t),se[t]}return delete se[t],null}function ce(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ne;if(!h(t)){if(e=he(t))return e;t=[t]}return function(t){for(var e,n,i,r,s=0;s<t.length;){for(e=(r=ue(t[s]).split("-")).length,n=(n=ue(t[s+1]))?n.split("-"):null;e>0;){if(i=he(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&oe(r,n)>=e-1)break;e--}s++}return ne}(t)}function me(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>At(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,v(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),v(t)._overflowWeeks&&-1===e&&(e=7),v(t)._overflowWeekday&&-1===e&&(e=8),v(t).overflow=e),t}var fe=/^\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)?)?$/,ge=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,be=[["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]],ye=[["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/]],ve=/^\/?Date\((-?\d+)/i,Me=/^(?:(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}))$/,Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function we(t){var e,n,i,r,s,a,o=t._i,u=fe.exec(o)||ge.exec(o),h=be.length,d=ye.length;if(u){for(v(t).iso=!0,e=0,n=h;e<n;e++)if(be[e][1].exec(u[1])){r=be[e][0],i=!1!==be[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=d;e<n;e++)if(ye[e][1].exec(u[3])){s=(u[2]||" ")+ye[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!pe.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Ae(t)}else t._isValid=!1}function De(t){var e,n,i,r,s,a,o,u,h,d=Me.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(n=d[3],i=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),Tt.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,n){return!t||Pt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}(d[1],e=o,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Se[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(d[8],d[9],d[10]),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function ke(t,e,n){return null!=t?t:null!=e?e:n}function Ye(t){var e,n,i,r,s,a=[];if(!t._d){for(i=function(t){var e=new Date(u.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,i,r,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,n=ke(e.GG,t._a[0],Lt(je(),1,4).year),i=ke(e.W,1),((r=ke(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=Lt(je(),s,a),n=ke(e.gg,t._a[0],h.year),i=ke(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),i<1||i>_t(n,s,a)?v(t)._overflowWeeks=!0:null!=u?v(t)._overflowWeekday=!0:(o=Gt(n,i,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ke(t._a[0],i[0]),(t._dayOfYear>Ot(s)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=zt(s,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?zt:Ft).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[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(v(t).weekdayMismatch=!0)}}function Ae(t){if(t._f!==u.ISO_8601)if(t._f!==u.RFC_2822){t._a=[],v(t).empty=!0;var e,n,i,r,s,a,o,h=""+t._i,d=h.length,l=0;for(o=(i=L(t._f,t._locale).match(O)||[]).length,e=0;e<o;e++)(n=(h.match(vt(r=i[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(n))).length>0&&v(t).unusedInput.push(s),h=h.slice(h.indexOf(n)+n.length),l+=n.length),z[r]?(n?v(t).empty=!1:v(t).unusedTokens.push(r),Yt(r,n,t)):t._strict&&!n&&v(t).unusedTokens.push(r);v(t).charsLeftOver=d-l,h.length>0&&v(t).unusedInput.push(h),t._a[3]<=12&&!0===v(t).bigHour&&t._a[3]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(a=v(t).era)&&(t._a[0]=t._locale.erasConvertYear(a,t._a[0])),Ye(t),me(t)}else De(t);else we(t)}function Ne(t){var e=t._i,n=t._f;return t._locale=t._locale||ce(t._l),null===e||void 0===n&&""===e?S({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new Y(me(e)):(g(e)?t._d=e:h(n)?function(t){var e,n,i,r,s,a,o=!1,u=t._f.length;if(0===u)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=k({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ae(e),M(e)&&(a=!0),s+=v(e).charsLeftOver,s+=10*v(e).unusedTokens.length,v(e).score=s,o?s<i&&(i=s,n=e):(null==i||s<i||a)&&(i=s,n=e,a&&(o=!0));b(t,n||e)}(t):n?Ae(t):function(t){var e=t._i;m(e)?t._d=new Date(u.now()):g(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=ve.exec(t._i);null===e?(we(t),!1===t._isValid&&(delete t._isValid,De(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:u.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):h(e)?(t._a=p(e.slice(0),(function(t){return parseInt(t,10)})),Ye(t)):d(e)?function(t){if(!t._d){var e=P(t._i);t._a=p([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)})),Ye(t)}}(t):f(e)?t._d=new Date(e):u.createFromInputFallback(t)}(t),M(t)||(t._d=null),t))}function Te(t,e,n,i,r){var s,a={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(d(t)&&c(t)||h(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=t,a._f=e,a._strict=i,(s=new Y(me(Ne(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function je(t,e,n,i){return Te(t,e,n,i,!1)}u.createFromInputFallback=T("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":""))})),u.ISO_8601=function(){},u.RFC_2822=function(){};var xe=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:S()})),Re=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:S()}));function Ce(t,e){var n,i;if(1===e.length&&h(e[0])&&(e=e[0]),!e.length)return je();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Je=["year","quarter","month","week","day","hour","minute","second","millisecond"];function We(t){var e=P(t),n=e.year||0,i=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,n,i=!1,r=Je.length;for(e in t)if(l(t,e)&&(-1===St.call(Je,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Je[n]]){if(i)return!1;parseFloat(t[Je[n]])!==q(t[Je[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=ce(),this._bubble()}function He(t){return t instanceof We}function Oe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ee(t,e){B(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+H(~~(t/60),2)+e+H(~~t%60,2)}))}Ee("Z",":"),Ee("ZZ",""),yt("Z",pt),yt("ZZ",pt),Dt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=ze(pt,t)}));var Fe=/([\+\-]|\d\d)/gi;function ze(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Fe)||["-",0,0])[1]+q(n[2]))?0:"+"===n[0]?i:-i}function Be(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(A(t)||g(t)?t.valueOf():je(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),u.updateOffset(n,!1),n):je(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function Le(){return!!this.isValid()&&this._isUTC&&0===this._offset}u.updateOffset=function(){};var _e=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ie=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ze(t,e){var n,i,r,s,a,o,u=t,h=null;return He(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:f(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=_e.exec(t))?(n="-"===h[1]?-1:1,u={y:0,d:q(h[2])*n,h:q(h[3])*n,m:q(h[4])*n,s:q(h[5])*n,ms:q(Oe(1e3*h[6]))*n}):(h=Ie.exec(t))?u={y:Pe(h[2],n="-"===h[1]?-1:1),M:Pe(h[3],n),w:Pe(h[4],n),d:Pe(h[5],n),h:Pe(h[6],n),m:Pe(h[7],n),s:Pe(h[8],n)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=je(u.from),a=je(u.to),r=s.isValid()&&a.isValid()?(a=Be(a,s),s.isBefore(a)?o=Ue(s,a):((o=Ue(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new We(u),He(t)&&l(t,"_locale")&&(i._locale=t._locale),He(t)&&l(t,"_isValid")&&(i._isValid=t._isValid),i}function Pe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ue(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ve(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(R(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=n,n=i,i=r),$e(this,Ze(n,i),t),this}}function $e(t,e,n,i){var r=e._milliseconds,s=Oe(e._days),a=Oe(e._months);t.isValid()&&(i=null==i||i,a&&Jt(t,X(t,"Month")+a*n),s&&tt(t,"Date",X(t,"Date")+s*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&u.updateOffset(t,s||a))}Ze.fn=We.prototype,Ze.invalid=function(){return Ze(NaN)};var Ke=Ve(1,"add"),qe=Ve(-1,"subtract");function Qe(t){return"string"==typeof t||t instanceof String}function Xe(t){return A(t)||g(t)||Qe(t)||f(t)||function(t){var e=h(t),n=!1;return e&&(n=0===t.filter((function(e){return!f(e)&&Qe(t)})).length),e&&n}(t)||function(t){var e,n=d(t)&&!c(t),i=!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)i=i||l(t,r[e]);return n&&i}(t)||null==t}function tn(t){var e,n=d(t)&&!c(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||l(t,r[e]);return n&&i}function en(t,e){if(t.date()<e.date())return-en(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function nn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ce(t))&&(this._locale=e),this)}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rn=T("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 sn(){return this._locale}function an(t,e){return(t%e+e)%e}function on(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function un(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function hn(t,e){return e.erasAbbrRegex(t)}function dn(){var t,e,n=[],i=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)i.push(Mt(a[t].name)),n.push(Mt(a[t].abbr)),r.push(Mt(a[t].narrow)),s.push(Mt(a[t].name)),s.push(Mt(a[t].abbr)),s.push(Mt(a[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ln(t,e){B(0,[t,t.length],0,e)}function cn(t,e,n,i,r){var s;return null==t?Lt(this,i,r).year:(e>(s=_t(t,i,r))&&(e=s),mn.call(this,t,e,n,i,r))}function mn(t,e,n,i,r){var s=Gt(t,e,n,i,r),a=zt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),yt("N",hn),yt("NN",hn),yt("NNN",hn),yt("NNNN",(function(t,e){return e.erasNameRegex(t)})),yt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Dt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?v(n).era=r:v(n).invalidEra=t})),yt("y",mt),yt("yy",mt),yt("yyy",mt),yt("yyyy",mt),yt("yo",(function(t,e){return e._eraYearOrdinalRegex||mt})),Dt(["y","yy","yyy","yyyy"],0),Dt(["yo"],(function(t,e,n){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),e[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(t,i):parseInt(t,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),V("weekYear",1),V("isoWeekYear",1),yt("G",ft),yt("g",ft),yt("GG",ot,it),yt("gg",ot,it),yt("GGGG",lt,st),yt("gggg",lt,st),yt("GGGGG",ct,at),yt("ggggg",ct,at),kt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=q(t)})),kt(["gg","GG"],(function(t,e,n,i){e[i]=u.parseTwoDigitYear(t)})),B("Q",0,"Qo","quarter"),I("quarter","Q"),V("quarter",7),yt("Q",nt),Dt("Q",(function(t,e){e[1]=3*(q(t)-1)})),B("D",["DD",2],"Do","date"),I("date","D"),V("date",9),yt("D",ot),yt("DD",ot,it),yt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Dt(["D","DD"],2),Dt("Do",(function(t,e){e[2]=q(t.match(ot)[0])}));var fn=Q("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),V("dayOfYear",4),yt("DDD",dt),yt("DDDD",rt),Dt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=q(t)})),B("m",["mm",2],0,"minute"),I("minute","m"),V("minute",14),yt("m",ot),yt("mm",ot,it),Dt(["m","mm"],4);var gn=Q("Minutes",!1);B("s",["ss",2],0,"second"),I("second","s"),V("second",15),yt("s",ot),yt("ss",ot,it),Dt(["s","ss"],5);var pn,bn,yn=Q("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),V("millisecond",16),yt("S",dt,nt),yt("SS",dt,it),yt("SSS",dt,rt),pn="SSSS";pn.length<=9;pn+="S")yt(pn,mt);function vn(t,e){e[6]=q(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")Dt(pn,vn);bn=Q("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var Mn=Y.prototype;function Sn(t){return t}Mn.add=Ke,Mn.calendar=function(t,e){1===arguments.length&&(arguments[0]?Xe(arguments[0])?(t=arguments[0],e=void 0):tn(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||je(),i=Be(n,this).startOf("day"),r=u.calendarFormat(this,i)||"sameElse",s=e&&(C(e[r])?e[r].call(this,n):e[r]);return this.format(s||this.localeData().calendar(r,this,je(n)))},Mn.clone=function(){return new Y(this)},Mn.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Be(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":s=en(this,i)/12;break;case"month":s=en(this,i);break;case"quarter":s=en(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:K(s)},Mn.endOf=function(t){var e,n;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?un:on,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-an(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-an(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-an(e,1e3)-1}return this._d.setTime(e),u.updateOffset(this,!0),this},Mn.format=function(t){t||(t=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var e=G(this,t);return this.localeData().postformat(e)},Mn.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||je(t).isValid())?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Mn.fromNow=function(t){return this.from(je(),t)},Mn.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||je(t).isValid())?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Mn.toNow=function(t){return this.to(je(),t)},Mn.get=function(t){return C(this[t=Z(t)])?this[t]():this},Mn.invalidAt=function(){return v(this).overflow},Mn.isAfter=function(t,e){var n=A(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Mn.isBefore=function(t,e){var n=A(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Mn.isBetween=function(t,e,n,i){var r=A(t)?t:je(t),s=A(e)?e:je(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))},Mn.isSame=function(t,e){var n,i=A(t)?t:je(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Mn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Mn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Mn.isValid=function(){return M(this)},Mn.lang=rn,Mn.locale=nn,Mn.localeData=sn,Mn.max=Re,Mn.min=xe,Mn.parsingFlags=function(){return b({},v(this))},Mn.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:U[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=P(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(C(this[t=Z(t)]))return this[t](e);return this},Mn.startOf=function(t){var e,n;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?un:on,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=an(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=an(e,6e4);break;case"second":e=this._d.valueOf(),e-=an(e,1e3)}return this._d.setTime(e),u.updateOffset(this,!0),this},Mn.subtract=qe,Mn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Mn.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()}},Mn.toDate=function(){return new Date(this.valueOf())},Mn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=function(){return this.isValid()?this.toISOString():null},Mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Mn.unix=function(){return Math.floor(this.valueOf()/1e3)},Mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Mn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},Mn.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},Mn.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},Mn.eraYear=function(){var t,e,n,i,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=r[t].since<=r[t].until?1:-1,i=this.clone().startOf("day").valueOf(),r[t].since<=i&&i<=r[t].until||r[t].until<=i&&i<=r[t].since)return(this.year()-u(r[t].since).year())*n+r[t].offset;return this.year()},Mn.year=Et,Mn.isLeapYear=function(){return $(this.year())},Mn.weekYear=function(t){return cn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Mn.isoWeekYear=function(t){return cn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Mn.quarter=Mn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Mn.month=Wt,Mn.daysInMonth=function(){return At(this.year(),this.month())},Mn.week=Mn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Mn.isoWeek=Mn.isoWeeks=function(t){var e=Lt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Mn.weeksInYear=function(){var t=this.localeData()._week;return _t(this.year(),t.dow,t.doy)},Mn.weeksInWeekYear=function(){var t=this.localeData()._week;return _t(this.weekYear(),t.dow,t.doy)},Mn.isoWeeksInYear=function(){return _t(this.year(),1,4)},Mn.isoWeeksInISOWeekYear=function(){return _t(this.isoWeekYear(),1,4)},Mn.date=fn,Mn.day=Mn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();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},Mn.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")},Mn.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},Mn.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")},Mn.hour=Mn.hours=ie,Mn.minute=Mn.minutes=gn,Mn.second=Mn.seconds=yn,Mn.millisecond=Mn.milliseconds=bn,Mn.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ze(pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Ge(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?$e(this,Ze(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ge(this)},Mn.utc=function(t){return this.utcOffset(0,t)},Mn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},Mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ze(gt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Mn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?je(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Mn.isUtc=Le,Mn.isUTC=Le,Mn.zoneAbbr=function(){return this._isUTC?"UTC":""},Mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Mn.dates=T("dates accessor is deprecated. Use date instead.",fn),Mn.months=T("months accessor is deprecated. Use month instead",Wt),Mn.years=T("years accessor is deprecated. Use year instead",Et),Mn.zone=T("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()})),Mn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t,e={};return k(e,this),(e=Ne(e))._a?(t=e._isUTC?y(e._a):je(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var n,i=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<i;n++)q(t[n])!==q(e[n])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var wn=W.prototype;function Dn(t,e,n,i){var r=ce(),s=y().set(i,e);return r[n](s,t)}function kn(t,e,n){if(f(t)&&(e=t,t=void 0),t=t||"",null!=e)return Dn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Dn(t,i,n,"month");return r}function Yn(t,e,n,i){"boolean"==typeof t?(f(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,f(e)&&(n=e,e=void 0),e=e||"");var r,s=ce(),a=t?s._week.dow:0,o=[];if(null!=n)return Dn(e,(n+a)%7,i,"day");for(r=0;r<7;r++)o[r]=Dn(e,(r+a)%7,i,"day");return o}wn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return C(i)?i.call(e,n):i},wn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},wn.invalidDate=function(){return this._invalidDate},wn.ordinal=function(t){return this._ordinal.replace("%d",t)},wn.preparse=Sn,wn.postformat=Sn,wn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return C(r)?r(t,e,n,i):r.replace(/%d/i,t)},wn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},wn.set=function(t){var e,n;for(n in t)l(t,n)&&(C(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},wn.eras=function(){var t,e,n,i=this._eras||ce("en")._eras;for(t=0,e=i.length;t<e;++t){switch(typeof i[t].since){case"string":n=u(i[t].since).startOf("day"),i[t].since=n.valueOf()}switch(typeof i[t].until){case"undefined":i[t].until=1/0;break;case"string":n=u(i[t].until).startOf("day").valueOf(),i[t].until=n.valueOf()}}return i},wn.erasParse=function(t,e,n){var i,r,s,a,o,u=this.eras();for(t=t.toUpperCase(),i=0,r=u.length;i<r;++i)if(s=u[i].name.toUpperCase(),a=u[i].abbr.toUpperCase(),o=u[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[i];break;case"NNNN":if(s===t)return u[i];break;case"NNNNN":if(o===t)return u[i]}else if([s,a,o].indexOf(t)>=0)return u[i]},wn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?u(t.since).year():u(t.since).year()+(e-t.offset)*n},wn.erasAbbrRegex=function(t){return l(this,"_erasAbbrRegex")||dn.call(this),t?this._erasAbbrRegex:this._erasRegex},wn.erasNameRegex=function(t){return l(this,"_erasNameRegex")||dn.call(this),t?this._erasNameRegex:this._erasRegex},wn.erasNarrowRegex=function(t){return l(this,"_erasNarrowRegex")||dn.call(this),t?this._erasNarrowRegex:this._erasRegex},wn.months=function(t,e){return t?h(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||jt).test(e)?"format":"standalone"][t.month()]:h(this._months)?this._months:this._months.standalone},wn.monthsShort=function(t,e){return t?h(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[jt.test(e)?"format":"standalone"][t.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},wn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return Ct.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=y([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},wn.monthsRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Rt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},wn.monthsShortRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},wn.week=function(t){return Lt(t,this._week.dow,this._week.doy).week},wn.firstDayOfYear=function(){return this._week.doy},wn.firstDayOfWeek=function(){return this._week.dow},wn.weekdays=function(t,e){var n=h(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?It(n,this._week.dow):t?n[t.day()]:n},wn.weekdaysMin=function(t){return!0===t?It(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},wn.weekdaysShort=function(t){return!0===t?It(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},wn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return qt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=y([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},wn.weekdaysRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Vt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},wn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},wn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},wn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},wn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},de("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===q(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),u.lang=T("moment.lang is deprecated. Use moment.locale instead.",de),u.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ce);var An=Math.abs;function Nn(t,e,n,i){var r=Ze(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Tn(t){return t<0?Math.floor(t):Math.ceil(t)}function jn(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function Rn(t){return function(){return this.as(t)}}var Cn=Rn("ms"),Jn=Rn("s"),Wn=Rn("m"),Hn=Rn("h"),On=Rn("d"),En=Rn("w"),Fn=Rn("M"),zn=Rn("Q"),Bn=Rn("y");function Gn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Ln=Gn("milliseconds"),_n=Gn("seconds"),In=Gn("minutes"),Zn=Gn("hours"),Pn=Gn("days"),Un=Gn("months"),Vn=Gn("years"),$n=Math.round,Kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var Qn=Math.abs;function Xn(t){return(t>0)-(t<0)||+t}function ti(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,s,a,o,u=Qn(this._milliseconds)/1e3,h=Qn(this._days),d=Qn(this._months),l=this.asSeconds();return l?(t=K(u/60),e=K(t/60),u%=60,t%=60,n=K(d/12),d%=12,i=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=Xn(this._months)!==Xn(l)?"-":"",a=Xn(this._days)!==Xn(l)?"-":"",o=Xn(this._milliseconds)!==Xn(l)?"-":"",r+"P"+(n?s+n+"Y":"")+(d?s+d+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+i+"S":"")):"P0D"}var ei=We.prototype;ei.isValid=function(){return this._isValid},ei.abs=function(){var t=this._data;return this._milliseconds=An(this._milliseconds),this._days=An(this._days),this._months=An(this._months),t.milliseconds=An(t.milliseconds),t.seconds=An(t.seconds),t.minutes=An(t.minutes),t.hours=An(t.hours),t.months=An(t.months),t.years=An(t.years),this},ei.add=function(t,e){return Nn(this,t,e,1)},ei.subtract=function(t,e){return Nn(this,t,e,-1)},ei.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(n=this._months+jn(e=this._days+i/864e5),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ei.asMilliseconds=Cn,ei.asSeconds=Jn,ei.asMinutes=Wn,ei.asHours=Hn,ei.asDays=On,ei.asWeeks=En,ei.asMonths=Fn,ei.asQuarters=zn,ei.asYears=Bn,ei.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},ei._bubble=function(){var t,e,n,i,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*Tn(xn(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=K(s/1e3),u.seconds=t%60,e=K(t/60),u.minutes=e%60,n=K(e/60),u.hours=n%24,a+=K(n/24),o+=r=K(jn(a)),a-=Tn(xn(r)),i=K(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},ei.clone=function(){return Ze(this)},ei.get=function(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN},ei.milliseconds=Ln,ei.seconds=_n,ei.minutes=In,ei.hours=Zn,ei.days=Pn,ei.weeks=function(){return K(this.days()/7)},ei.months=Un,ei.years=Vn,ei.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Kn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},Kn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),i=function(t,e,n,i){var r=Ze(t).abs(),s=$n(r.as("s")),a=$n(r.as("m")),o=$n(r.as("h")),u=$n(r.as("d")),h=$n(r.as("M")),d=$n(r.as("w")),l=$n(r.as("y")),c=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),(c=c||h<=1&&["M"]||h<n.M&&["MM",h]||l<=1&&["y"]||["yy",l])[2]=e,c[3]=+t>0,c[4]=i,qn.apply(null,c)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ei.toISOString=ti,ei.toString=ti,ei.toJSON=ti,ei.locale=nn,ei.localeData=sn,ei.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ti),ei.lang=rn,B("X",0,0,"unix"),B("x",0,0,"valueOf"),yt("x",ft),yt("X",/[+-]?\d+(\.\d{1,3})?/),Dt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Dt("x",(function(t,e,n){n._d=new Date(q(t))})),
7
+ var a,o;function u(){return a.apply(null,arguments)}function h(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function d(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function l(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(l(t,e))return!1;return!0}function m(t){return void 0===t}function f(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function g(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function p(t,e){var n,i=[],r=t.length;for(n=0;n<r;++n)i.push(e(t[n],n));return i}function b(t,e){for(var n in e)l(e,n)&&(t[n]=e[n]);return l(e,"toString")&&(t.toString=e.toString),l(e,"valueOf")&&(t.valueOf=e.valueOf),t}function y(t,e,n,i){return Te(t,e,n,i,!0).utc()}function v(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function M(t){if(null==t._isValid){var e=v(t),n=o.call(e.parsedDateParts,(function(t){return null!=t})),i=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(i=i&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return i;t._isValid=i}return t._isValid}function S(t){var e=y(NaN);return null!=t?b(v(e),t):v(e).userInvalidated=!0,e}o=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var D=u.momentProperties=[],w=!1;function k(t,e){var n,i,r,s=D.length;if(m(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),m(e._i)||(t._i=e._i),m(e._f)||(t._f=e._f),m(e._l)||(t._l=e._l),m(e._strict)||(t._strict=e._strict),m(e._tzm)||(t._tzm=e._tzm),m(e._isUTC)||(t._isUTC=e._isUTC),m(e._offset)||(t._offset=e._offset),m(e._pf)||(t._pf=v(e)),m(e._locale)||(t._locale=e._locale),s>0)for(n=0;n<s;n++)m(r=e[i=D[n]])||(t[i]=r);return t}function Y(t){k(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===w&&(w=!0,u.updateOffset(this),w=!1)}function A(t){return t instanceof Y||null!=t&&null!=t._isAMomentObject}function N(t){!1===u.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function T(t,e){var n=!0;return b((function(){if(null!=u.deprecationHandler&&u.deprecationHandler(null,t),n){var i,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(i="","object"==typeof arguments[r]){for(s in i+="\n["+r+"] ",arguments[0])l(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[r];a.push(i)}N(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),n=!1}return e.apply(this,arguments)}),e)}var j,x={};function R(t,e){null!=u.deprecationHandler&&u.deprecationHandler(t,e),x[t]||(N(e),x[t]=!0)}function C(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function J(t,e){var n,i=b({},t);for(n in e)l(e,n)&&(d(t[n])&&d(e[n])?(i[n]={},b(i[n],t[n]),b(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)l(t,n)&&!l(e,n)&&d(t[n])&&(i[n]=b({},i[n]));return i}function W(t){null!=t&&this.set(t)}function H(t,e,n){var i=""+Math.abs(t);return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,e-i.length)).toString().substr(1)+i}u.suppressDeprecationWarnings=!1,u.deprecationHandler=null,j=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)l(t,e)&&n.push(e);return n};var O=/(\[[^\[]*\])|(\\)?([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,E=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,F={},z={};function B(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(z[t]=r),e&&(z[e[0]]=function(){return H(r.apply(this,arguments),e[1],e[2])}),n&&(z[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function G(t,e){return t.isValid()?(e=_(e,t.localeData()),F[e]=F[e]||function(t){var e,n,i,r=t.match(O);for(e=0,n=r.length;e<n;e++)r[e]=z[r[e]]?z[r[e]]:(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,s="";for(i=0;i<n;i++)s+=C(r[i])?r[i].call(e,t):r[i];return s}}(e),F[e](t)):t.localeData().invalidDate()}function _(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(E.lastIndex=0;n>=0&&E.test(t);)t=t.replace(E,i),E.lastIndex=0,n-=1;return t}var L={};function I(t,e){var n=t.toLowerCase();L[n]=L[n+"s"]=L[e]=t}function Z(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function P(t){var e,n,i={};for(n in t)l(t,n)&&(e=Z(n))&&(i[e]=t[n]);return i}var V={};function U(t,e){V[t]=e}function $(t){return t%4==0&&t%100!=0||t%400==0}function K(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function q(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=K(e)),n}function Q(t,e){return function(n){return null!=n?(tt(this,t,n),u.updateOffset(this,e),this):X(this,t)}}function X(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function tt(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&$(t.year())&&1===t.month()&&29===t.date()?(n=q(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),At(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var et,nt=/\d/,it=/\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}/,lt=/\d{1,4}/,ct=/[+-]?\d{1,6}/,mt=/\d+/,ft=/[+-]?\d+/,gt=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,bt=/[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;function yt(t,e,n){et[t]=C(e)?e:function(t){return t&&n?n:e}}function vt(t,e){return l(et,t)?et[t](e._strict,e._locale):new RegExp(Mt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,r){return e||n||i||r}))))}function Mt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}et={};var St,Dt={};function wt(t,e){var n,i,r=e;for("string"==typeof t&&(t=[t]),f(e)&&(r=function(t,n){n[e]=q(t)}),i=t.length,n=0;n<i;n++)Dt[t[n]]=r}function kt(t,e){wt(t,(function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)}))}function Yt(t,e,n){null!=e&&l(Dt,t)&&Dt[t](e,n._a,n,t)}function At(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=(e%12+12)%12;return t+=(e-n)/12,1===n?$(t)?29:28:31-n%7%2}St=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},B("M",["MM",2],"Mo",(function(){return this.month()+1})),B("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),B("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),I("month","M"),U("month",8),yt("M",ot),yt("MM",ot,it),yt("MMM",(function(t,e){return e.monthsShortRegex(t)})),yt("MMMM",(function(t,e){return e.monthsRegex(t)})),wt(["M","MM"],(function(t,e){e[1]=q(t)-1})),wt(["MMM","MMMM"],(function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[1]=r:v(n).invalidMonth=t}));var Nt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Tt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),jt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xt=bt,Rt=bt;function Ct(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)s=y([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(s,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,a))?r:null:-1!==(r=St.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=St.call(this._shortMonthsParse,a))||-1!==(r=St.call(this._longMonthsParse,a))?r:null:-1!==(r=St.call(this._longMonthsParse,a))||-1!==(r=St.call(this._shortMonthsParse,a))?r:null}function Jt(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=q(e);else if(!f(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),At(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Wt(t){return null!=t?(Jt(this,t),u.updateOffset(this,!0),this):X(this,"Month")}function Ht(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],s=[];for(e=0;e<12;e++)n=y([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),s.push(this.months(n,"")),s.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)i[e]=Mt(i[e]),r[e]=Mt(r[e]);for(e=0;e<24;e++)s[e]=Mt(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Ot(t){return $(t)?366:365}B("Y",0,0,(function(){var t=this.year();return t<=9999?H(t,4):"+"+t})),B(0,["YY",2],0,(function(){return this.year()%100})),B(0,["YYYY",4],0,"year"),B(0,["YYYYY",5],0,"year"),B(0,["YYYYYY",6,!0],0,"year"),I("year","y"),U("year",1),yt("Y",ft),yt("YY",ot,it),yt("YYYY",lt,st),yt("YYYYY",ct,at),yt("YYYYYY",ct,at),wt(["YYYYY","YYYYYY"],0),wt("YYYY",(function(t,e){e[0]=2===t.length?u.parseTwoDigitYear(t):q(t)})),wt("YY",(function(t,e){e[0]=u.parseTwoDigitYear(t)})),wt("Y",(function(t,e){e[0]=parseInt(t,10)})),u.parseTwoDigitYear=function(t){return q(t)+(q(t)>68?1900:2e3)};var Et=Q("FullYear",!0);function Ft(t,e,n,i,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,n,i,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,n,i,r,s,a),o}function zt(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Bt(t,e,n){var i=7+e-n;return-(7+zt(t,0,i).getUTCDay()-e)%7+i-1}function Gt(t,e,n,i,r){var s,a,o=1+7*(e-1)+(7+n-i)%7+Bt(t,i,r);return o<=0?a=Ot(s=t-1)+o:o>Ot(t)?(s=t+1,a=o-Ot(t)):(s=t,a=o),{year:s,dayOfYear:a}}function _t(t,e,n){var i,r,s=Bt(t.year(),e,n),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?i=a+Lt(r=t.year()-1,e,n):a>Lt(t.year(),e,n)?(i=a-Lt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function Lt(t,e,n){var i=Bt(t,e,n),r=Bt(t+1,e,n);return(Ot(t)-i+r)/7}function It(t,e){return t.slice(e,7).concat(t.slice(0,e))}B("w",["ww",2],"wo","week"),B("W",["WW",2],"Wo","isoWeek"),I("week","w"),I("isoWeek","W"),U("week",5),U("isoWeek",5),yt("w",ot),yt("ww",ot,it),yt("W",ot),yt("WW",ot,it),kt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=q(t)})),B("d",0,"do","day"),B("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),B("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),B("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),B("e",0,0,"weekday"),B("E",0,0,"isoWeekday"),I("day","d"),I("weekday","e"),I("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),yt("d",ot),yt("e",ot),yt("E",ot),yt("dd",(function(t,e){return e.weekdaysMinRegex(t)})),yt("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),yt("dddd",(function(t,e){return e.weekdaysRegex(t)})),kt(["dd","ddd","dddd"],(function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:v(n).invalidWeekday=t})),kt(["d","e","E"],(function(t,e,n,i){e[i]=q(t)}));var Zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Pt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Vt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Ut=bt,$t=bt,Kt=bt;function qt(t,e,n){var i,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)s=y([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(s,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=St.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=St.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=St.call(this._weekdaysParse,a))||-1!==(r=St.call(this._shortWeekdaysParse,a))||-1!==(r=St.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=St.call(this._shortWeekdaysParse,a))||-1!==(r=St.call(this._weekdaysParse,a))||-1!==(r=St.call(this._minWeekdaysParse,a))?r:null:-1!==(r=St.call(this._minWeekdaysParse,a))||-1!==(r=St.call(this._weekdaysParse,a))||-1!==(r=St.call(this._shortWeekdaysParse,a))?r:null}function Qt(){function t(t,e){return e.length-t.length}var e,n,i,r,s,a=[],o=[],u=[],h=[];for(e=0;e<7;e++)n=y([2e3,1]).day(e),i=Mt(this.weekdaysMin(n,"")),r=Mt(this.weekdaysShort(n,"")),s=Mt(this.weekdays(n,"")),a.push(i),o.push(r),u.push(s),h.push(i),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 Xt(){return this.hours()%12||12}function te(t,e){B(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function ee(t,e){return e._meridiemParse}B("H",["HH",2],0,"hour"),B("h",["hh",2],0,Xt),B("k",["kk",2],0,(function(){return this.hours()||24})),B("hmm",0,0,(function(){return""+Xt.apply(this)+H(this.minutes(),2)})),B("hmmss",0,0,(function(){return""+Xt.apply(this)+H(this.minutes(),2)+H(this.seconds(),2)})),B("Hmm",0,0,(function(){return""+this.hours()+H(this.minutes(),2)})),B("Hmmss",0,0,(function(){return""+this.hours()+H(this.minutes(),2)+H(this.seconds(),2)})),te("a",!0),te("A",!1),I("hour","h"),U("hour",13),yt("a",ee),yt("A",ee),yt("H",ot),yt("h",ot),yt("k",ot),yt("HH",ot,it),yt("hh",ot,it),yt("kk",ot,it),yt("hmm",ut),yt("hmmss",ht),yt("Hmm",ut),yt("Hmmss",ht),wt(["H","HH"],3),wt(["k","kk"],(function(t,e){var n=q(t);e[3]=24===n?0:n})),wt(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),wt(["h","hh"],(function(t,e,n){e[3]=q(t),v(n).bigHour=!0})),wt("hmm",(function(t,e,n){var i=t.length-2;e[3]=q(t.substr(0,i)),e[4]=q(t.substr(i)),v(n).bigHour=!0})),wt("hmmss",(function(t,e,n){var i=t.length-4,r=t.length-2;e[3]=q(t.substr(0,i)),e[4]=q(t.substr(i,2)),e[5]=q(t.substr(r)),v(n).bigHour=!0})),wt("Hmm",(function(t,e){var n=t.length-2;e[3]=q(t.substr(0,n)),e[4]=q(t.substr(n))})),wt("Hmmss",(function(t,e){var n=t.length-4,i=t.length-2;e[3]=q(t.substr(0,n)),e[4]=q(t.substr(n,2)),e[5]=q(t.substr(i))}));var ne,ie=Q("Hours",!0),re={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:Nt,monthsShort:Tt,week:{dow:0,doy:6},weekdays:Zt,weekdaysMin:Vt,weekdaysShort:Pt,meridiemParse:/[ap]\.?m?\.?/i},se={},ae={};function oe(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function ue(t){return t?t.toLowerCase().replace("_","-"):t}function he(t){var e=null;if(void 0===se[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=ne._abbr,require("./locale/"+t),de(e)}catch(e){se[t]=null}return se[t]}function de(t,e){var n;return t&&((n=m(e)?ce(t):le(t,e))?ne=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ne._abbr}function le(t,e){if(null!==e){var n,i=re;if(e.abbr=t,null!=se[t])R("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."),i=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])i=se[e.parentLocale]._config;else{if(null==(n=he(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;i=n._config}return se[t]=new W(J(i,e)),ae[t]&&ae[t].forEach((function(t){le(t.name,t.config)})),de(t),se[t]}return delete se[t],null}function ce(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ne;if(!h(t)){if(e=he(t))return e;t=[t]}return function(t){for(var e,n,i,r,s=0;s<t.length;){for(e=(r=ue(t[s]).split("-")).length,n=(n=ue(t[s+1]))?n.split("-"):null;e>0;){if(i=he(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&oe(r,n)>=e-1)break;e--}s++}return ne}(t)}function me(t){var e,n=t._a;return n&&-2===v(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>At(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,v(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),v(t)._overflowWeeks&&-1===e&&(e=7),v(t)._overflowWeekday&&-1===e&&(e=8),v(t).overflow=e),t}var fe=/^\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)?)?$/,ge=/^\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)?)?$/,pe=/Z|[+-]\d\d(?::?\d\d)?/,be=[["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]],ye=[["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/]],ve=/^\/?Date\((-?\d+)/i,Me=/^(?:(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}))$/,Se={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function De(t){var e,n,i,r,s,a,o=t._i,u=fe.exec(o)||ge.exec(o),h=be.length,d=ye.length;if(u){for(v(t).iso=!0,e=0,n=h;e<n;e++)if(be[e][1].exec(u[1])){r=be[e][0],i=!1!==be[e][2];break}if(null==r)return void(t._isValid=!1);if(u[3]){for(e=0,n=d;e<n;e++)if(ye[e][1].exec(u[3])){s=(u[2]||" ")+ye[e][0];break}if(null==s)return void(t._isValid=!1)}if(!i&&null!=s)return void(t._isValid=!1);if(u[4]){if(!pe.exec(u[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Ae(t)}else t._isValid=!1}function we(t){var e,n,i,r,s,a,o,u,h,d=Me.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(d){if(n=d[3],i=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),Tt.indexOf(n),parseInt(i,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,n){return!t||Pt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(v(n).weekdayMismatch=!0,n._isValid=!1,!1)}(d[1],e=o,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return Se[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(d[8],d[9],d[10]),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),v(t).rfc2822=!0}else t._isValid=!1}function ke(t,e,n){return null!=t?t:null!=e?e:n}function Ye(t){var e,n,i,r,s,a=[];if(!t._d){for(i=function(t){var e=new Date(u.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[2]&&null==t._a[1]&&function(t){var e,n,i,r,s,a,o,u,h;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,n=ke(e.GG,t._a[0],_t(je(),1,4).year),i=ke(e.W,1),((r=ke(e.E,1))<1||r>7)&&(u=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,h=_t(je(),s,a),n=ke(e.gg,t._a[0],h.year),i=ke(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),i<1||i>Lt(n,s,a)?v(t)._overflowWeeks=!0:null!=u?v(t)._overflowWeekday=!0:(o=Gt(n,i,r,s,a),t._a[0]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=ke(t._a[0],i[0]),(t._dayOfYear>Ot(s)||0===t._dayOfYear)&&(v(t)._overflowDayOfYear=!0),n=zt(s,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?zt:Ft).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[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(v(t).weekdayMismatch=!0)}}function Ae(t){if(t._f!==u.ISO_8601)if(t._f!==u.RFC_2822){t._a=[],v(t).empty=!0;var e,n,i,r,s,a,o,h=""+t._i,d=h.length,l=0;for(o=(i=_(t._f,t._locale).match(O)||[]).length,e=0;e<o;e++)(n=(h.match(vt(r=i[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(n))).length>0&&v(t).unusedInput.push(s),h=h.slice(h.indexOf(n)+n.length),l+=n.length),z[r]?(n?v(t).empty=!1:v(t).unusedTokens.push(r),Yt(r,n,t)):t._strict&&!n&&v(t).unusedTokens.push(r);v(t).charsLeftOver=d-l,h.length>0&&v(t).unusedInput.push(h),t._a[3]<=12&&!0===v(t).bigHour&&t._a[3]>0&&(v(t).bigHour=void 0),v(t).parsedDateParts=t._a.slice(0),v(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(a=v(t).era)&&(t._a[0]=t._locale.erasConvertYear(a,t._a[0])),Ye(t),me(t)}else we(t);else De(t)}function Ne(t){var e=t._i,n=t._f;return t._locale=t._locale||ce(t._l),null===e||void 0===n&&""===e?S({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),A(e)?new Y(me(e)):(g(e)?t._d=e:h(n)?function(t){var e,n,i,r,s,a,o=!1,u=t._f.length;if(0===u)return v(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<u;r++)s=0,a=!1,e=k({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ae(e),M(e)&&(a=!0),s+=v(e).charsLeftOver,s+=10*v(e).unusedTokens.length,v(e).score=s,o?s<i&&(i=s,n=e):(null==i||s<i||a)&&(i=s,n=e,a&&(o=!0));b(t,n||e)}(t):n?Ae(t):function(t){var e=t._i;m(e)?t._d=new Date(u.now()):g(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=ve.exec(t._i);null===e?(De(t),!1===t._isValid&&(delete t._isValid,we(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:u.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):h(e)?(t._a=p(e.slice(0),(function(t){return parseInt(t,10)})),Ye(t)):d(e)?function(t){if(!t._d){var e=P(t._i);t._a=p([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)})),Ye(t)}}(t):f(e)?t._d=new Date(e):u.createFromInputFallback(t)}(t),M(t)||(t._d=null),t))}function Te(t,e,n,i,r){var s,a={};return!0!==e&&!1!==e||(i=e,e=void 0),!0!==n&&!1!==n||(i=n,n=void 0),(d(t)&&c(t)||h(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=n,a._i=t,a._f=e,a._strict=i,(s=new Y(me(Ne(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function je(t,e,n,i){return Te(t,e,n,i,!1)}u.createFromInputFallback=T("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":""))})),u.ISO_8601=function(){},u.RFC_2822=function(){};var xe=T("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:S()})),Re=T("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=je.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:S()}));function Ce(t,e){var n,i;if(1===e.length&&h(e[0])&&(e=e[0]),!e.length)return je();for(n=e[0],i=1;i<e.length;++i)e[i].isValid()&&!e[i][t](n)||(n=e[i]);return n}var Je=["year","quarter","month","week","day","hour","minute","second","millisecond"];function We(t){var e=P(t),n=e.year||0,i=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,n,i=!1,r=Je.length;for(e in t)if(l(t,e)&&(-1===St.call(Je,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<r;++n)if(t[Je[n]]){if(i)return!1;parseFloat(t[Je[n]])!==q(t[Je[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*h+6e4*u+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=ce(),this._bubble()}function He(t){return t instanceof We}function Oe(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Ee(t,e){B(t,0,0,(function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+H(~~(t/60),2)+e+H(~~t%60,2)}))}Ee("Z",":"),Ee("ZZ",""),yt("Z",pt),yt("ZZ",pt),wt(["Z","ZZ"],(function(t,e,n){n._useUTC=!0,n._tzm=ze(pt,t)}));var Fe=/([\+\-]|\d\d)/gi;function ze(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Fe)||["-",0,0])[1]+q(n[2]))?0:"+"===n[0]?i:-i}function Be(t,e){var n,i;return e._isUTC?(n=e.clone(),i=(A(t)||g(t)?t.valueOf():je(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+i),u.updateOffset(n,!1),n):je(t).local()}function Ge(t){return-Math.round(t._d.getTimezoneOffset())}function _e(){return!!this.isValid()&&this._isUTC&&0===this._offset}u.updateOffset=function(){};var Le=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ie=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ze(t,e){var n,i,r,s,a,o,u=t,h=null;return He(t)?u={ms:t._milliseconds,d:t._days,M:t._months}:f(t)||!isNaN(+t)?(u={},e?u[e]=+t:u.milliseconds=+t):(h=Le.exec(t))?(n="-"===h[1]?-1:1,u={y:0,d:q(h[2])*n,h:q(h[3])*n,m:q(h[4])*n,s:q(h[5])*n,ms:q(Oe(1e3*h[6]))*n}):(h=Ie.exec(t))?u={y:Pe(h[2],n="-"===h[1]?-1:1),M:Pe(h[3],n),w:Pe(h[4],n),d:Pe(h[5],n),h:Pe(h[6],n),m:Pe(h[7],n),s:Pe(h[8],n)}:null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(s=je(u.from),a=je(u.to),r=s.isValid()&&a.isValid()?(a=Be(a,s),s.isBefore(a)?o=Ve(s,a):((o=Ve(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(u={}).ms=r.milliseconds,u.M=r.months),i=new We(u),He(t)&&l(t,"_locale")&&(i._locale=t._locale),He(t)&&l(t,"_isValid")&&(i._isValid=t._isValid),i}function Pe(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ve(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ue(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(R(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=n,n=i,i=r),$e(this,Ze(n,i),t),this}}function $e(t,e,n,i){var r=e._milliseconds,s=Oe(e._days),a=Oe(e._months);t.isValid()&&(i=null==i||i,a&&Jt(t,X(t,"Month")+a*n),s&&tt(t,"Date",X(t,"Date")+s*n),r&&t._d.setTime(t._d.valueOf()+r*n),i&&u.updateOffset(t,s||a))}Ze.fn=We.prototype,Ze.invalid=function(){return Ze(NaN)};var Ke=Ue(1,"add"),qe=Ue(-1,"subtract");function Qe(t){return"string"==typeof t||t instanceof String}function Xe(t){return A(t)||g(t)||Qe(t)||f(t)||function(t){var e=h(t),n=!1;return e&&(n=0===t.filter((function(e){return!f(e)&&Qe(t)})).length),e&&n}(t)||function(t){var e,n=d(t)&&!c(t),i=!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)i=i||l(t,r[e]);return n&&i}(t)||null==t}function tn(t){var e,n=d(t)&&!c(t),i=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)i=i||l(t,r[e]);return n&&i}function en(t,e){if(t.date()<e.date())return-en(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function nn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=ce(t))&&(this._locale=e),this)}u.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",u.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rn=T("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 sn(){return this._locale}function an(t,e){return(t%e+e)%e}function on(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function un(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function hn(t,e){return e.erasAbbrRegex(t)}function dn(){var t,e,n=[],i=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)i.push(Mt(a[t].name)),n.push(Mt(a[t].abbr)),r.push(Mt(a[t].narrow)),s.push(Mt(a[t].name)),s.push(Mt(a[t].abbr)),s.push(Mt(a[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function ln(t,e){B(0,[t,t.length],0,e)}function cn(t,e,n,i,r){var s;return null==t?_t(this,i,r).year:(e>(s=Lt(t,i,r))&&(e=s),mn.call(this,t,e,n,i,r))}function mn(t,e,n,i,r){var s=Gt(t,e,n,i,r),a=zt(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}B("N",0,0,"eraAbbr"),B("NN",0,0,"eraAbbr"),B("NNN",0,0,"eraAbbr"),B("NNNN",0,0,"eraName"),B("NNNNN",0,0,"eraNarrow"),B("y",["y",1],"yo","eraYear"),B("y",["yy",2],0,"eraYear"),B("y",["yyy",3],0,"eraYear"),B("y",["yyyy",4],0,"eraYear"),yt("N",hn),yt("NN",hn),yt("NNN",hn),yt("NNNN",(function(t,e){return e.erasNameRegex(t)})),yt("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),wt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?v(n).era=r:v(n).invalidEra=t})),yt("y",mt),yt("yy",mt),yt("yyy",mt),yt("yyyy",mt),yt("yo",(function(t,e){return e._eraYearOrdinalRegex||mt})),wt(["y","yy","yyy","yyyy"],0),wt(["yo"],(function(t,e,n){var i;n._locale._eraYearOrdinalRegex&&(i=t.match(n._locale._eraYearOrdinalRegex)),e[0]=n._locale.eraYearOrdinalParse?n._locale.eraYearOrdinalParse(t,i):parseInt(t,10)})),B(0,["gg",2],0,(function(){return this.weekYear()%100})),B(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),ln("gggg","weekYear"),ln("ggggg","weekYear"),ln("GGGG","isoWeekYear"),ln("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),yt("G",ft),yt("g",ft),yt("GG",ot,it),yt("gg",ot,it),yt("GGGG",lt,st),yt("gggg",lt,st),yt("GGGGG",ct,at),yt("ggggg",ct,at),kt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=q(t)})),kt(["gg","GG"],(function(t,e,n,i){e[i]=u.parseTwoDigitYear(t)})),B("Q",0,"Qo","quarter"),I("quarter","Q"),U("quarter",7),yt("Q",nt),wt("Q",(function(t,e){e[1]=3*(q(t)-1)})),B("D",["DD",2],"Do","date"),I("date","D"),U("date",9),yt("D",ot),yt("DD",ot,it),yt("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),wt(["D","DD"],2),wt("Do",(function(t,e){e[2]=q(t.match(ot)[0])}));var fn=Q("Date",!0);B("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),U("dayOfYear",4),yt("DDD",dt),yt("DDDD",rt),wt(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=q(t)})),B("m",["mm",2],0,"minute"),I("minute","m"),U("minute",14),yt("m",ot),yt("mm",ot,it),wt(["m","mm"],4);var gn=Q("Minutes",!1);B("s",["ss",2],0,"second"),I("second","s"),U("second",15),yt("s",ot),yt("ss",ot,it),wt(["s","ss"],5);var pn,bn,yn=Q("Seconds",!1);for(B("S",0,0,(function(){return~~(this.millisecond()/100)})),B(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),B(0,["SSS",3],0,"millisecond"),B(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),B(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),B(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),B(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),B(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),B(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),I("millisecond","ms"),U("millisecond",16),yt("S",dt,nt),yt("SS",dt,it),yt("SSS",dt,rt),pn="SSSS";pn.length<=9;pn+="S")yt(pn,mt);function vn(t,e){e[6]=q(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")wt(pn,vn);bn=Q("Milliseconds",!1),B("z",0,0,"zoneAbbr"),B("zz",0,0,"zoneName");var Mn=Y.prototype;function Sn(t){return t}Mn.add=Ke,Mn.calendar=function(t,e){1===arguments.length&&(arguments[0]?Xe(arguments[0])?(t=arguments[0],e=void 0):tn(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||je(),i=Be(n,this).startOf("day"),r=u.calendarFormat(this,i)||"sameElse",s=e&&(C(e[r])?e[r].call(this,n):e[r]);return this.format(s||this.localeData().calendar(r,this,je(n)))},Mn.clone=function(){return new Y(this)},Mn.diff=function(t,e,n){var i,r,s;if(!this.isValid())return NaN;if(!(i=Be(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=Z(e)){case"year":s=en(this,i)/12;break;case"month":s=en(this,i);break;case"quarter":s=en(this,i)/3;break;case"second":s=(this-i)/1e3;break;case"minute":s=(this-i)/6e4;break;case"hour":s=(this-i)/36e5;break;case"day":s=(this-i-r)/864e5;break;case"week":s=(this-i-r)/6048e5;break;default:s=this-i}return n?s:K(s)},Mn.endOf=function(t){var e,n;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?un:on,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-an(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-an(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-an(e,1e3)-1}return this._d.setTime(e),u.updateOffset(this,!0),this},Mn.format=function(t){t||(t=this.isUtc()?u.defaultFormatUtc:u.defaultFormat);var e=G(this,t);return this.localeData().postformat(e)},Mn.from=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||je(t).isValid())?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Mn.fromNow=function(t){return this.from(je(),t)},Mn.to=function(t,e){return this.isValid()&&(A(t)&&t.isValid()||je(t).isValid())?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Mn.toNow=function(t){return this.to(je(),t)},Mn.get=function(t){return C(this[t=Z(t)])?this[t]():this},Mn.invalidAt=function(){return v(this).overflow},Mn.isAfter=function(t,e){var n=A(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Mn.isBefore=function(t,e){var n=A(t)?t:je(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Mn.isBetween=function(t,e,n,i){var r=A(t)?t:je(t),s=A(e)?e:je(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(s,n):!this.isAfter(s,n))},Mn.isSame=function(t,e){var n,i=A(t)?t:je(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Z(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Mn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Mn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Mn.isValid=function(){return M(this)},Mn.lang=rn,Mn.locale=nn,Mn.localeData=sn,Mn.max=Re,Mn.min=xe,Mn.parsingFlags=function(){return b({},v(this))},Mn.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)l(t,e)&&n.push({unit:e,priority:V[e]});return n.sort((function(t,e){return t.priority-e.priority})),n}(t=P(t)),r=i.length;for(n=0;n<r;n++)this[i[n].unit](t[i[n].unit])}else if(C(this[t=Z(t)]))return this[t](e);return this},Mn.startOf=function(t){var e,n;if(void 0===(t=Z(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?un:on,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=an(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=an(e,6e4);break;case"second":e=this._d.valueOf(),e-=an(e,1e3)}return this._d.setTime(e),u.updateOffset(this,!0),this},Mn.subtract=qe,Mn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Mn.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()}},Mn.toDate=function(){return new Date(this.valueOf())},Mn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?G(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",G(n,"Z")):G(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Mn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n="moment",i="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),t="["+n+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+i+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Mn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Mn.toJSON=function(){return this.isValid()?this.toISOString():null},Mn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Mn.unix=function(){return Math.floor(this.valueOf()/1e3)},Mn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Mn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Mn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},Mn.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},Mn.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},Mn.eraYear=function(){var t,e,n,i,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=r[t].since<=r[t].until?1:-1,i=this.clone().startOf("day").valueOf(),r[t].since<=i&&i<=r[t].until||r[t].until<=i&&i<=r[t].since)return(this.year()-u(r[t].since).year())*n+r[t].offset;return this.year()},Mn.year=Et,Mn.isLeapYear=function(){return $(this.year())},Mn.weekYear=function(t){return cn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Mn.isoWeekYear=function(t){return cn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Mn.quarter=Mn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Mn.month=Wt,Mn.daysInMonth=function(){return At(this.year(),this.month())},Mn.week=Mn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Mn.isoWeek=Mn.isoWeeks=function(t){var e=_t(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Mn.weeksInYear=function(){var t=this.localeData()._week;return Lt(this.year(),t.dow,t.doy)},Mn.weeksInWeekYear=function(){var t=this.localeData()._week;return Lt(this.weekYear(),t.dow,t.doy)},Mn.isoWeeksInYear=function(){return Lt(this.year(),1,4)},Mn.isoWeeksInISOWeekYear=function(){return Lt(this.isoWeekYear(),1,4)},Mn.date=fn,Mn.day=Mn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();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},Mn.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")},Mn.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},Mn.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")},Mn.hour=Mn.hours=ie,Mn.minute=Mn.minutes=gn,Mn.second=Mn.seconds=yn,Mn.millisecond=Mn.milliseconds=bn,Mn.utcOffset=function(t,e,n){var i,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=ze(pt,t)))return this}else Math.abs(t)<16&&!n&&(t*=60);return!this._isUTC&&e&&(i=Ge(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!e||this._changeInProgress?$e(this,Ze(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,u.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:Ge(this)},Mn.utc=function(t){return this.utcOffset(0,t)},Mn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ge(this),"m")),this},Mn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=ze(gt,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Mn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?je(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Mn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Mn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Mn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Mn.isUtc=_e,Mn.isUTC=_e,Mn.zoneAbbr=function(){return this._isUTC?"UTC":""},Mn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Mn.dates=T("dates accessor is deprecated. Use date instead.",fn),Mn.months=T("months accessor is deprecated. Use month instead",Wt),Mn.years=T("years accessor is deprecated. Use year instead",Et),Mn.zone=T("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()})),Mn.isDSTShifted=T("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!m(this._isDSTShifted))return this._isDSTShifted;var t,e={};return k(e,this),(e=Ne(e))._a?(t=e._isUTC?y(e._a):je(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var n,i=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(n=0;n<i;n++)q(t[n])!==q(e[n])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Dn=W.prototype;function wn(t,e,n,i){var r=ce(),s=y().set(i,e);return r[n](s,t)}function kn(t,e,n){if(f(t)&&(e=t,t=void 0),t=t||"",null!=e)return wn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=wn(t,i,n,"month");return r}function Yn(t,e,n,i){"boolean"==typeof t?(f(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,f(e)&&(n=e,e=void 0),e=e||"");var r,s=ce(),a=t?s._week.dow:0,o=[];if(null!=n)return wn(e,(n+a)%7,i,"day");for(r=0;r<7;r++)o[r]=wn(e,(r+a)%7,i,"day");return o}Dn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return C(i)?i.call(e,n):i},Dn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(O).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Dn.invalidDate=function(){return this._invalidDate},Dn.ordinal=function(t){return this._ordinal.replace("%d",t)},Dn.preparse=Sn,Dn.postformat=Sn,Dn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return C(r)?r(t,e,n,i):r.replace(/%d/i,t)},Dn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)},Dn.set=function(t){var e,n;for(n in t)l(t,n)&&(C(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Dn.eras=function(){var t,e,n,i=this._eras||ce("en")._eras;for(t=0,e=i.length;t<e;++t){switch(typeof i[t].since){case"string":n=u(i[t].since).startOf("day"),i[t].since=n.valueOf()}switch(typeof i[t].until){case"undefined":i[t].until=1/0;break;case"string":n=u(i[t].until).startOf("day").valueOf(),i[t].until=n.valueOf()}}return i},Dn.erasParse=function(t,e,n){var i,r,s,a,o,u=this.eras();for(t=t.toUpperCase(),i=0,r=u.length;i<r;++i)if(s=u[i].name.toUpperCase(),a=u[i].abbr.toUpperCase(),o=u[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return u[i];break;case"NNNN":if(s===t)return u[i];break;case"NNNNN":if(o===t)return u[i]}else if([s,a,o].indexOf(t)>=0)return u[i]},Dn.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?u(t.since).year():u(t.since).year()+(e-t.offset)*n},Dn.erasAbbrRegex=function(t){return l(this,"_erasAbbrRegex")||dn.call(this),t?this._erasAbbrRegex:this._erasRegex},Dn.erasNameRegex=function(t){return l(this,"_erasNameRegex")||dn.call(this),t?this._erasNameRegex:this._erasRegex},Dn.erasNarrowRegex=function(t){return l(this,"_erasNarrowRegex")||dn.call(this),t?this._erasNarrowRegex:this._erasRegex},Dn.months=function(t,e){return t?h(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||jt).test(e)?"format":"standalone"][t.month()]:h(this._months)?this._months:this._months.standalone},Dn.monthsShort=function(t,e){return t?h(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[jt.test(e)?"format":"standalone"][t.month()]:h(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Dn.monthsParse=function(t,e,n){var i,r,s;if(this._monthsParseExact)return Ct.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=y([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(s.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Dn.monthsRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Ht.call(this),t?this._monthsStrictRegex:this._monthsRegex):(l(this,"_monthsRegex")||(this._monthsRegex=Rt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Dn.monthsShortRegex=function(t){return this._monthsParseExact?(l(this,"_monthsRegex")||Ht.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(l(this,"_monthsShortRegex")||(this._monthsShortRegex=xt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Dn.week=function(t){return _t(t,this._week.dow,this._week.doy).week},Dn.firstDayOfYear=function(){return this._week.doy},Dn.firstDayOfWeek=function(){return this._week.dow},Dn.weekdays=function(t,e){var n=h(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?It(n,this._week.dow):t?n[t.day()]:n},Dn.weekdaysMin=function(t){return!0===t?It(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Dn.weekdaysShort=function(t){return!0===t?It(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Dn.weekdaysParse=function(t,e,n){var i,r,s;if(this._weekdaysParseExact)return qt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=y([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(s.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Dn.weekdaysRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(l(this,"_weekdaysRegex")||(this._weekdaysRegex=Ut),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Dn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(l(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=$t),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Dn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(l(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(l(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Dn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Dn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},de("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===q(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),u.lang=T("moment.lang is deprecated. Use moment.locale instead.",de),u.langData=T("moment.langData is deprecated. Use moment.localeData instead.",ce);var An=Math.abs;function Nn(t,e,n,i){var r=Ze(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Tn(t){return t<0?Math.floor(t):Math.ceil(t)}function jn(t){return 4800*t/146097}function xn(t){return 146097*t/4800}function Rn(t){return function(){return this.as(t)}}var Cn=Rn("ms"),Jn=Rn("s"),Wn=Rn("m"),Hn=Rn("h"),On=Rn("d"),En=Rn("w"),Fn=Rn("M"),zn=Rn("Q"),Bn=Rn("y");function Gn(t){return function(){return this.isValid()?this._data[t]:NaN}}var _n=Gn("milliseconds"),Ln=Gn("seconds"),In=Gn("minutes"),Zn=Gn("hours"),Pn=Gn("days"),Vn=Gn("months"),Un=Gn("years"),$n=Math.round,Kn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qn(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}var Qn=Math.abs;function Xn(t){return(t>0)-(t<0)||+t}function ti(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,s,a,o,u=Qn(this._milliseconds)/1e3,h=Qn(this._days),d=Qn(this._months),l=this.asSeconds();return l?(t=K(u/60),e=K(t/60),u%=60,t%=60,n=K(d/12),d%=12,i=u?u.toFixed(3).replace(/\.?0+$/,""):"",r=l<0?"-":"",s=Xn(this._months)!==Xn(l)?"-":"",a=Xn(this._days)!==Xn(l)?"-":"",o=Xn(this._milliseconds)!==Xn(l)?"-":"",r+"P"+(n?s+n+"Y":"")+(d?s+d+"M":"")+(h?a+h+"D":"")+(e||t||u?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(u?o+i+"S":"")):"P0D"}var ei=We.prototype;ei.isValid=function(){return this._isValid},ei.abs=function(){var t=this._data;return this._milliseconds=An(this._milliseconds),this._days=An(this._days),this._months=An(this._months),t.milliseconds=An(t.milliseconds),t.seconds=An(t.seconds),t.minutes=An(t.minutes),t.hours=An(t.hours),t.months=An(t.months),t.years=An(t.years),this},ei.add=function(t,e){return Nn(this,t,e,1)},ei.subtract=function(t,e){return Nn(this,t,e,-1)},ei.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Z(t))||"quarter"===t||"year"===t)switch(n=this._months+jn(e=this._days+i/864e5),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(xn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ei.asMilliseconds=Cn,ei.asSeconds=Jn,ei.asMinutes=Wn,ei.asHours=Hn,ei.asDays=On,ei.asWeeks=En,ei.asMonths=Fn,ei.asQuarters=zn,ei.asYears=Bn,ei.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*q(this._months/12):NaN},ei._bubble=function(){var t,e,n,i,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*Tn(xn(o)+a),a=0,o=0),u.milliseconds=s%1e3,t=K(s/1e3),u.seconds=t%60,e=K(t/60),u.minutes=e%60,n=K(e/60),u.hours=n%24,a+=K(n/24),o+=r=K(jn(a)),a-=Tn(xn(r)),i=K(o/12),o%=12,u.days=a,u.months=o,u.years=i,this},ei.clone=function(){return Ze(this)},ei.get=function(t){return t=Z(t),this.isValid()?this[t+"s"]():NaN},ei.milliseconds=_n,ei.seconds=Ln,ei.minutes=In,ei.hours=Zn,ei.days=Pn,ei.weeks=function(){return K(this.days()/7)},ei.months=Vn,ei.years=Un,ei.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,s=Kn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},Kn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),i=function(t,e,n,i){var r=Ze(t).abs(),s=$n(r.as("s")),a=$n(r.as("m")),o=$n(r.as("h")),u=$n(r.as("d")),h=$n(r.as("M")),d=$n(r.as("w")),l=$n(r.as("y")),c=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||a<=1&&["m"]||a<n.m&&["mm",a]||o<=1&&["h"]||o<n.h&&["hh",o]||u<=1&&["d"]||u<n.d&&["dd",u];return null!=n.w&&(c=c||d<=1&&["w"]||d<n.w&&["ww",d]),(c=c||h<=1&&["M"]||h<n.M&&["MM",h]||l<=1&&["y"]||["yy",l])[2]=e,c[3]=+t>0,c[4]=i,qn.apply(null,c)}(this,!r,s,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ei.toISOString=ti,ei.toString=ti,ei.toJSON=ti,ei.locale=nn,ei.localeData=sn,ei.toIsoString=T("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ti),ei.lang=rn,B("X",0,0,"unix"),B("x",0,0,"valueOf"),yt("x",ft),yt("X",/[+-]?\d+(\.\d{1,3})?/),wt("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),wt("x",(function(t,e,n){n._d=new Date(q(t))})),
8
8
  //! moment.js
9
- u.version="2.29.4",a=je,u.fn=Mn,u.min=function(){var t=[].slice.call(arguments,0);return Ce("isBefore",t)},u.max=function(){var t=[].slice.call(arguments,0);return Ce("isAfter",t)},u.now=function(){return Date.now?Date.now():+new Date},u.utc=y,u.unix=function(t){return je(1e3*t)},u.months=function(t,e){return kn(t,e,"months")},u.isDate=g,u.locale=de,u.invalid=S,u.duration=Ze,u.isMoment=A,u.weekdays=function(t,e,n){return Yn(t,e,n,"weekdays")},u.parseZone=function(){return je.apply(null,arguments).parseZone()},u.localeData=ce,u.isDuration=He,u.monthsShort=function(t,e){return kn(t,e,"monthsShort")},u.weekdaysMin=function(t,e,n){return Yn(t,e,n,"weekdaysMin")},u.defineLocale=le,u.updateLocale=function(t,e){if(null!=e){var n,i,r=re;null!=se[t]&&null!=se[t].parentLocale?se[t].set(J(se[t]._config,e)):(null!=(i=he(t))&&(r=i._config),e=J(r,e),null==i&&(e.abbr=t),(n=new W(e)).parentLocale=se[t],se[t]=n),de(t)}else null!=se[t]&&(null!=se[t].parentLocale?(se[t]=se[t].parentLocale,t===de()&&de(t)):null!=se[t]&&delete se[t]);return se[t]},u.locales=function(){return j(se)},u.weekdaysShort=function(t,e,n){return Yn(t,e,n,"weekdaysShort")},u.normalizeUnits=Z,u.relativeTimeRounding=function(t){return void 0===t?$n:"function"==typeof t&&($n=t,!0)},u.relativeTimeThreshold=function(t,e){return void 0!==Kn[t]&&(void 0===e?Kn[t]:(Kn[t]=e,"s"===t&&(Kn.ss=e-1),!0))},u.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},u.prototype=Mn,u.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 ni=class{constructor(e){t(this,e),this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return" - "+Math.ceil(t/1440)+" "+s("days")}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=s("scheduled",this.language);break;case"Running":e=s("ongoing",this.language);break;default:e=s("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const n=()=>s("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?s("startedAtWithTime",this.language)+t:s("startingAtWithTime",this.language)+t}else{let i=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),a=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+s(`${i}`,this.language)+", "+n()+` ${a}`}}componentWillLoad(){!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return e("div",{class:"TournamentBannerWrap"},this.thumbnail&&e("div",{class:"TournamentBanner",part:"TournamentBanner"},e("img",{src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&e("div",{class:"TournamentBannerInfo",part:"TournamentBannerInfo"},e("div",{class:"BannerInfo",part:"BannerInfo"},e("span",{class:`Tag State ${this.state}`},this.stateText)),e("div",{class:"BannerInfo",part:"BannerInfo"},this.showDate&&e("span",{class:"Tag Date"},this.showCalendar&&e("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{class:"BannerInfo",part:"BannerInfo"},this.enrolled&&e("span",{class:"Tag Enroll"},this.showCheck&&e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("enrolled",this.language)))),this.cardMode&&e("div",{class:"TournamentBannerThumb",part:"TournamentBannerThumb"},e("div",{class:"ThumbTitle",part:"ThumbTitle"},s("tournament",this.language)),e("div",{class:"ThumbName",part:"ThumbName"},this.nameOrTitle),e("div",{class:"ThumbState"},this.session&&this.enrolled?e("span",{class:"Tag Join"},e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("joined",this.language)):this.session&&"Closed"!=this.state&&e("span",{class:"Tag Join"},e("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},e("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),s("join",this.language)),"Running"==this.state&&e("span",{class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&e("span",{class:"TagRemain"},this.showRemain," ",s("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&e("span",{class:`Tag Date ${this.state}`},this.showCalendar&&e("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{class:"ThumbButtons"},e("casino-tournament-buttons",{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})),e("div",{class:"ThumbTC"},e("span",{onClick:this.termsClick.bind(this,this.tournamentId)},s("terms",this.language))))))}get host(){return n(this)}};ni.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const ii=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],ri={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"}},si=(t,e)=>{const n=e;return ri[void 0!==n&&ii.includes(n)?n:"en"][t]},ai=class{constructor(e){t(this,e),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}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 n;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let i=new URL(`${this.endpoint}/v1/bonus/claim`),r=new Headers,s={};i.searchParams.append("language",this.language),i.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled},window.location.href)},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/v1/bonus/claim?${i.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===(n=null==t?void 0:t.item)||void 0===n?void 0:n.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 e("div",{class:"TournamentButtons"},!this.session&&e("div",{class:"ButtonGroup"},e("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},si("login",this.language)),e("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},si("register",this.language))),this.session&&e("div",null,!this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},si("join",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more")),this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},si("details",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more"))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{class:"ErrorText",part:"ErrorText"},si("joinerror",this.language)))}get host(){return n(this)}};ai.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}';export{ni as casino_tournament_banner,ai as casino_tournament_buttons}
9
+ u.version="2.29.4",a=je,u.fn=Mn,u.min=function(){var t=[].slice.call(arguments,0);return Ce("isBefore",t)},u.max=function(){var t=[].slice.call(arguments,0);return Ce("isAfter",t)},u.now=function(){return Date.now?Date.now():+new Date},u.utc=y,u.unix=function(t){return je(1e3*t)},u.months=function(t,e){return kn(t,e,"months")},u.isDate=g,u.locale=de,u.invalid=S,u.duration=Ze,u.isMoment=A,u.weekdays=function(t,e,n){return Yn(t,e,n,"weekdays")},u.parseZone=function(){return je.apply(null,arguments).parseZone()},u.localeData=ce,u.isDuration=He,u.monthsShort=function(t,e){return kn(t,e,"monthsShort")},u.weekdaysMin=function(t,e,n){return Yn(t,e,n,"weekdaysMin")},u.defineLocale=le,u.updateLocale=function(t,e){if(null!=e){var n,i,r=re;null!=se[t]&&null!=se[t].parentLocale?se[t].set(J(se[t]._config,e)):(null!=(i=he(t))&&(r=i._config),e=J(r,e),null==i&&(e.abbr=t),(n=new W(e)).parentLocale=se[t],se[t]=n),de(t)}else null!=se[t]&&(null!=se[t].parentLocale?(se[t]=se[t].parentLocale,t===de()&&de(t)):null!=se[t]&&delete se[t]);return se[t]},u.locales=function(){return j(se)},u.weekdaysShort=function(t,e,n){return Yn(t,e,n,"weekdaysShort")},u.normalizeUnits=Z,u.relativeTimeRounding=function(t){return void 0===t?$n:"function"==typeof t&&($n=t,!0)},u.relativeTimeThreshold=function(t,e){return void 0!==Kn[t]&&(void 0===e?Kn[t]:(Kn[t]=e,"s"===t&&(Kn.ss=e-1),!0))},u.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},u.prototype=Mn,u.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 ni=class{constructor(e){t(this,e),this.shortstartformat="DD MMM YYYY",this.showDate=!0,this.showRunningDate=!1,this.showCheck=!1,this.cardMode=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1}getDateTimeDiff(t,e){return(new Date(e).getTime()-new Date(t).getTime())/6e4}getTextByDiff(t){if(t<1440){const e=t%60;return[t/60,e,60*(e-Math.floor(e))].map((t=>(t=>{const e=Math.floor(t);return e<10?`0${e}`:`${e}`})(t))).join(":")}return" - "+Math.ceil(t/1440)+" "+s("days")}getDuration(){const t=new Date;this.tournamentLeftDays=this.getDateTimeDiff(t,this.endTime),this.showRemain=this.getTextByDiff(this.tournamentLeftDays)}infoCompletedHandler(t){t.detail&&this.useEvent&&(this.state=t.detail.state,this.stateText=this.getStateText(this.state),this.enrolled=t.detail.playerEnrolled,this.startTime=t.detail.startTime,this.thumbnail=t.detail.thumbnail,this.tournamentId=t.detail.id,this.startTime&&this.formatDate())}getStateText(t){let e="";switch(t){case"Upcoming":case"Unstarted":e=s("scheduled",this.language);break;case"Running":e=s("ongoing",this.language);break;default:e=s("finished",this.language)}return e}componentDidRender(){!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){const t=new CSSStyleSheet;t.replace(this.clientStyling),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,t]}setClientStylingURL(){let t=new URL(this.clientStylingUrl);fetch(t.href).then((t=>t.text())).then((t=>{const e=new CSSStyleSheet;e.replace(t),this.host.shadowRoot.adoptedStyleSheets=[...this.host.shadowRoot.adoptedStyleSheets,e]}))}formatDate(){const t={month:"long"};let e=new Date(this.startTime);const n=()=>s("Running"===this.state||"Closing"==this.state||"Closed"==this.state?"startedAt":"startingAt",this.language);if(this.shortStart){let t=u(e).format(this.shortstartformat);this.startdate="Running"===this.state||"Closing"==this.state||"Closed"==this.state?s("startedAtWithTime",this.language)+t:s("startingAtWithTime",this.language)+t}else{let i=new Intl.DateTimeFormat("en",t).format(e),r=e.getDate(),a=e.toLocaleString("en-GB",{hour:"numeric",minute:"numeric",hour12:!1});this.startdate=`${r} `+s(`${i}`,this.language)+", "+n()+` ${a}`}}componentWillLoad(){!this.useEvent&&this.startTime&&this.formatDate(),this.state&&(this.stateText=this.getStateText(this.state)),this.startTime&&this.endTime&&(this.getDuration(),this.getTextByDiff(this.tournamentLeftDays)),this.tournamentLeftDays<1440&&this.tournamentLeftDays>0?this.durationInterval=window.setInterval((()=>{this.startTime&&this.endTime&&this.getDuration()}),1e3):clearInterval(this.durationInterval)}termsClick(t){window.postMessage({type:"TournamentTermsConditions",tournamentId:t},window.location.href)}render(){return e("div",{class:"TournamentBannerWrap"},this.thumbnail&&e("div",{class:"TournamentBanner",part:"TournamentBanner"},e("img",{src:this.thumbnail,alt:"",class:`TournamentBannerBg ${this.cardMode&&this.state?this.state:""}`}),!this.cardMode&&e("div",{class:"TournamentBannerInfo",part:"TournamentBannerInfo"},e("div",{class:"BannerInfo",part:"BannerInfo"},e("span",{class:`Tag State ${this.state}`},this.stateText)),e("div",{class:"BannerInfo",part:"BannerInfo"},this.showDate&&e("span",{class:"Tag Date"},this.showCalendar&&e("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{class:"BannerInfo",part:"BannerInfo"},this.enrolled&&e("span",{class:"Tag Enroll"},this.showCheck&&e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("enrolled",this.language)))),this.cardMode&&e("div",{class:"TournamentBannerThumb",part:"TournamentBannerThumb"},e("div",{class:"ThumbTitle",part:"ThumbTitle"},s("tournament",this.language)),e("div",{class:"ThumbName",part:"ThumbName"},this.nameOrTitle),e("div",{class:"ThumbState"},this.session&&this.enrolled?e("span",{class:"Tag Join"},e("svg",{class:"EnrollCheck",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},e("path",{d:"M4.50008 8.08492L2.41508 5.99992L1.70508 6.70492L4.50008 9.49992L10.5001 3.49992L9.79508 2.79492L4.50008 8.08492Z",fill:"white"})),s("joined",this.language)):this.session&&"Closed"!=this.state&&e("span",{class:"Tag Join"},e("svg",{class:"JoinPlus",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"13",viewBox:"0 0 12 13",fill:"none"},e("path",{d:"M9.5 6.8335H6.5V9.8335H5.5V6.8335H2.5V5.8335H5.5V2.8335H6.5V5.8335H9.5V6.8335Z",fill:"white"})),s("join",this.language)),"Running"==this.state&&e("span",{class:`Tag State ${this.state}`},this.stateText,this.showRunningDate&&e("span",{class:"TagRemain"},this.showRemain," ",s("left",this.language))),("Unstarted"==this.state||"Upcoming"==this.state||"Closed"==this.state)&&e("span",{class:`Tag Date ${this.state}`},this.showCalendar&&e("svg",{class:"CalendarIcon",width:"9",height:"11",viewBox:"0 0 9 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.1 1.4H7.65V0.5H6.75V1.4H2.25V0.5H1.35V1.4H0.9C0.405 1.4 0 1.805 0 2.3V9.5C0 9.995 0.405 10.4 0.9 10.4H8.1C8.595 10.4 9 9.995 9 9.5V2.3C9 1.805 8.595 1.4 8.1 1.4ZM8.10003 9.5H0.900027V4.55H8.10003V9.5ZM0.900027 3.65005H8.10003V2.30005H0.900027V3.65005Z",fill:"#1E1616"})),this.startdate)),e("div",{class:"ThumbButtons"},e("casino-tournament-buttons",{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})),e("div",{class:"ThumbTC"},e("span",{onClick:this.termsClick.bind(this,this.tournamentId)},s("terms",this.language))))))}get host(){return n(this)}};ni.style=":host{display:block}.TournamentBannerWrap{height:100%}.TournamentBanner{position:relative;width:100%;height:100%;overflow:hidden}.TournamentBannerBg{width:100%;height:100%;object-fit:cover;transition:all 150ms ease-in-out}.TournamentBannerBg.Closed{filter:grayscale(1)}.TournamentBannerInfo{position:absolute;top:0;left:0;width:100%;height:100%;color:#fff;display:flex;justify-content:space-between}.BannerInfo{margin:10px}.Tag{box-shadow:0px 1px 2px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);border-radius:8px;padding:6px;font-size:10px;display:flex;align-items:center;height:13px}.Tag.Closed{filter:grayscale(1)}.TagRemain{text-indent:5px}.Date{gap:4px;background:#FF7500;color:#1A2C38}.State{background:#D0046C}.Enroll{color:#fff;background:#24834B}.EnrollCheck{margin-right:4px}.Join{background:#6C757D}.Running{background:#1A2C38}.CalendarIcon path{fill:#1A2C38}.TournamentBannerThumb{position:absolute;top:0;left:0;width:100%;height:100%;padding:12px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;box-sizing:border-box}.ThumbTitle{font-size:14px}.ThumbState{display:flex;gap:4px}.ThumbName{font-size:22px}.ThumbTC{font-size:8px;color:#fff;cursor:pointer}.ThumbButtons{display:flex;gap:4px}";const ii=["ro","en","zh-hk","fr","hu","tr","el","es","pt","hr"],ri={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"}},si=(t,e)=>{const n=e;return ri[void 0!==n&&ii.includes(n)?n:"en"][t]},ai=class{constructor(e){t(this,e),this.enrolled=!1,this.showReadMore=!1,this.clientStyling="",this.clientStylingUrl="",this.limitStylingAppends=!1,this.joinButtonLoading=!1,this.errorJoin=!1,this.errorJoinConcurrently=!1}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}setClientStyling(){let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}setClientStylingURL(){let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrl,this.stylingContainer.prepend(t)}),1)}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 n;this.errorJoin=!1,this.errorJoinConcurrently=!1,window.postMessage({type:"TournamentJoinRequest",tournamentId:t},window.location.href),this.joinButtonLoading=!0;let i=new URL(`${this.endpoint}/bonus/claim`),r=new Headers,s={};i.searchParams.append("language",this.language),i.searchParams.append("platform",(()=>{let t=window.navigator.userAgent;return t.toLowerCase().match(/android/i)?"Android":t.toLowerCase().match(/iphone/i)?"iPhone":t.toLowerCase().match(/ipad|ipod/i)?"iPad":"PC"})()),r.append("Content-Type","application/json"),r.append("X-SessionID",this.session),e&&(s={language:this.language,bonusCode:e,currency:this.currency});let a={method:"PUT",headers:r,body:JSON.stringify(s)};const o=()=>{this.joinButtonLoading=!1,this.enrolled=!0,window.postMessage({type:"TournamentUserEnrolled",userenrolled:this.enrolled},window.location.href)},u=()=>{this.joinButtonLoading=!1,this.errorJoin=!0},h=await(async()=>{let t;try{t=await fetch(`${this.endpoint}/bonus/claim?${i.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}/tournaments/${this.tournamentId}`,{headers:{"X-SessionID":this.session}}),t=await t.json(),(null===(n=null==t?void 0:t.item)||void 0===n?void 0:n.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 e("div",{ref:t=>this.stylingContainer=t,class:"TournamentButtons"},!this.session&&e("div",{class:"ButtonGroup"},e("button",{class:"LoginButton Button",part:"LoginButton",onClick:()=>this.loginAction()},si("login",this.language)),e("button",{class:"RegisterButton Button",part:"RegisterButton",onClick:()=>this.registerAction()},si("register",this.language))),this.session&&e("div",null,!this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.joinAction(this.tournamentId,this.bonusCode)},si("join",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more")),this.enrolled&&e("div",{class:"ButtonGroup"},e("button",{class:"Button",onClick:()=>this.detailAction(this.tournamentId)},si("details",this.language)),this.showReadMore&&e("button",{class:"Button NoBorder",onClick:()=>this.moreAction(this.tournamentId)},"Read more"))),(this.errorJoin||this.errorJoinConcurrently)&&e("span",{class:"ErrorText",part:"ErrorText"},si("joinerror",this.language)))}};ai.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}';export{ni as casino_tournament_banner,ai as casino_tournament_buttons}
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const index = require('./index-01ad4732.js');
3
+ const index = require('./index-75c0db87.js');
4
4
 
5
5
  /*
6
6
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -15,5 +15,5 @@ const patchBrowser = () => {
15
15
  };
16
16
 
17
17
  patchBrowser().then(options => {
18
- return index.bootstrapLazy([["casino-tournament-banner_2.cjs",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
18
+ return index.bootstrapLazy([["casino-tournament-banner_2.cjs",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"stylingContainer":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
19
19
  });
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-01ad4732.js');
5
+ const index = require('./index-75c0db87.js');
6
6
 
7
7
  const DEFAULT_LANGUAGE$1 = 'en';
8
8
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'zh-hk', 'fr', 'hu', 'tr', 'el', 'es', 'pt', 'hr'];
@@ -6661,7 +6661,7 @@ const CasinoTournamentButtons = class {
6661
6661
  this.errorJoinConcurrently = false;
6662
6662
  }
6663
6663
  componentDidRender() {
6664
- if (!this.limitStylingAppends && this.host) {
6664
+ if (!this.limitStylingAppends && this.stylingContainer) {
6665
6665
  if (this.clientStyling)
6666
6666
  this.setClientStyling();
6667
6667
  if (this.clientStylingUrl)
@@ -6670,23 +6670,16 @@ const CasinoTournamentButtons = class {
6670
6670
  }
6671
6671
  }
6672
6672
  setClientStyling() {
6673
- const sheet = new CSSStyleSheet();
6674
- // @ts-ignore
6675
- sheet.replace(this.clientStyling);
6676
- // @ts-ignore
6677
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6673
+ let sheet = document.createElement('style');
6674
+ sheet.innerHTML = this.clientStyling;
6675
+ this.stylingContainer.prepend(sheet);
6678
6676
  }
6679
6677
  setClientStylingURL() {
6680
- let url = new URL(this.clientStylingUrl);
6681
- fetch(url.href)
6682
- .then((res) => res.text())
6683
- .then((data) => {
6684
- const sheet = new CSSStyleSheet();
6685
- // @ts-ignore
6686
- sheet.replace(data);
6687
- // @ts-ignore
6688
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6689
- });
6678
+ let cssFile = document.createElement('style');
6679
+ setTimeout(() => {
6680
+ cssFile.innerHTML = this.clientStylingUrl;
6681
+ this.stylingContainer.prepend(cssFile);
6682
+ }, 1);
6690
6683
  }
6691
6684
  loginAction() {
6692
6685
  if (this.loginEvent) {
@@ -6724,7 +6717,7 @@ const CasinoTournamentButtons = class {
6724
6717
  this.errorJoinConcurrently = false;
6725
6718
  window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
6726
6719
  this.joinButtonLoading = true;
6727
- let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
6720
+ let joinUrl = new URL(`${this.endpoint}/bonus/claim`);
6728
6721
  let reqHeaders = new Headers();
6729
6722
  let body = {};
6730
6723
  joinUrl.searchParams.append('language', this.language);
@@ -6755,7 +6748,7 @@ const CasinoTournamentButtons = class {
6755
6748
  const fetcher = async () => {
6756
6749
  let result;
6757
6750
  try {
6758
- result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
6751
+ result = await fetch(`${this.endpoint}/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
6759
6752
  result = await result.json();
6760
6753
  }
6761
6754
  catch (e) {
@@ -6772,7 +6765,7 @@ const CasinoTournamentButtons = class {
6772
6765
  else {
6773
6766
  if (data.errorMessage.match("VersionMismatchException")) {
6774
6767
  let resultDoubleCheck;
6775
- resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
6768
+ resultDoubleCheck = await fetch(`${this.endpoint}/tournaments/${this.tournamentId}`, {
6776
6769
  headers: {
6777
6770
  'X-SessionID': this.session
6778
6771
  }
@@ -6799,14 +6792,13 @@ const CasinoTournamentButtons = class {
6799
6792
  window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
6800
6793
  }
6801
6794
  render() {
6802
- return index.h("div", { class: "TournamentButtons" }, !this.session &&
6795
+ return index.h("div", { ref: el => this.stylingContainer = el, class: "TournamentButtons" }, !this.session &&
6803
6796
  index.h("div", { class: "ButtonGroup" }, index.h("button", { class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), index.h("button", { class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
6804
6797
  index.h("div", null, !this.enrolled &&
6805
6798
  index.h("div", { class: "ButtonGroup" }, index.h("button", { class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && index.h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, "Read more")), this.enrolled &&
6806
6799
  index.h("div", { class: "ButtonGroup" }, index.h("button", { class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && index.h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, "Read more"))), (this.errorJoin || this.errorJoinConcurrently) &&
6807
6800
  index.h("span", { class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
6808
6801
  }
6809
- get host() { return index.getElement(this); }
6810
6802
  };
6811
6803
  CasinoTournamentButtons.style = casinoTournamentButtonsCss;
6812
6804
 
@@ -273,6 +273,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
273
273
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
274
274
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
275
275
  }
276
+ else if (memberName === 'ref') {
277
+ // minifier will clean this up
278
+ if (newValue) {
279
+ newValue(elm);
280
+ }
281
+ }
276
282
  else if ((!isProp ) &&
277
283
  memberName[0] === 'o' &&
278
284
  memberName[1] === 'n') {
@@ -446,6 +452,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
446
452
  for (; startIdx <= endIdx; ++startIdx) {
447
453
  if ((vnode = vnodes[startIdx])) {
448
454
  elm = vnode.$elm$;
455
+ callNodeRefs(vnode);
449
456
  // remove the vnode's element from the dom
450
457
  elm.remove();
451
458
  }
@@ -573,6 +580,12 @@ const patch = (oldVNode, newVNode) => {
573
580
  elm.data = text;
574
581
  }
575
582
  };
583
+ const callNodeRefs = (vNode) => {
584
+ {
585
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
586
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
587
+ }
588
+ };
576
589
  const renderVdom = (hostRef, renderFnResults) => {
577
590
  const hostElm = hostRef.$hostElement$;
578
591
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-01ad4732.js');
5
+ const index = require('./index-75c0db87.js');
6
6
 
7
7
  /*
8
8
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -14,7 +14,7 @@ const patchEsm = () => {
14
14
  const defineCustomElements = (win, options) => {
15
15
  if (typeof window === 'undefined') return Promise.resolve();
16
16
  return patchEsm().then(() => {
17
- return index.bootstrapLazy([["casino-tournament-banner_2.cjs",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
17
+ return index.bootstrapLazy([["casino-tournament-banner_2.cjs",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"stylingContainer":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
18
18
  });
19
19
  };
20
20
 
@@ -397,7 +397,7 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
397
397
  this.errorJoinConcurrently = false;
398
398
  }
399
399
  componentDidRender() {
400
- if (!this.limitStylingAppends && this.host) {
400
+ if (!this.limitStylingAppends && this.stylingContainer) {
401
401
  if (this.clientStyling)
402
402
  this.setClientStyling();
403
403
  if (this.clientStylingUrl)
@@ -406,23 +406,16 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
406
406
  }
407
407
  }
408
408
  setClientStyling() {
409
- const sheet = new CSSStyleSheet();
410
- // @ts-ignore
411
- sheet.replace(this.clientStyling);
412
- // @ts-ignore
413
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
409
+ let sheet = document.createElement('style');
410
+ sheet.innerHTML = this.clientStyling;
411
+ this.stylingContainer.prepend(sheet);
414
412
  }
415
413
  setClientStylingURL() {
416
- let url = new URL(this.clientStylingUrl);
417
- fetch(url.href)
418
- .then((res) => res.text())
419
- .then((data) => {
420
- const sheet = new CSSStyleSheet();
421
- // @ts-ignore
422
- sheet.replace(data);
423
- // @ts-ignore
424
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
425
- });
414
+ let cssFile = document.createElement('style');
415
+ setTimeout(() => {
416
+ cssFile.innerHTML = this.clientStylingUrl;
417
+ this.stylingContainer.prepend(cssFile);
418
+ }, 1);
426
419
  }
427
420
  loginAction() {
428
421
  if (this.loginEvent) {
@@ -460,7 +453,7 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
460
453
  this.errorJoinConcurrently = false;
461
454
  window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
462
455
  this.joinButtonLoading = true;
463
- let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
456
+ let joinUrl = new URL(`${this.endpoint}/bonus/claim`);
464
457
  let reqHeaders = new Headers();
465
458
  let body = {};
466
459
  joinUrl.searchParams.append('language', this.language);
@@ -491,7 +484,7 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
491
484
  const fetcher = async () => {
492
485
  let result;
493
486
  try {
494
- result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
487
+ result = await fetch(`${this.endpoint}/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
495
488
  result = await result.json();
496
489
  }
497
490
  catch (e) {
@@ -508,7 +501,7 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
508
501
  else {
509
502
  if (data.errorMessage.match("VersionMismatchException")) {
510
503
  let resultDoubleCheck;
511
- resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
504
+ resultDoubleCheck = await fetch(`${this.endpoint}/tournaments/${this.tournamentId}`, {
512
505
  headers: {
513
506
  'X-SessionID': this.session
514
507
  }
@@ -535,14 +528,13 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
535
528
  window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
536
529
  }
537
530
  render() {
538
- return h("div", { class: "TournamentButtons" }, !this.session &&
531
+ return h("div", { ref: el => this.stylingContainer = el, class: "TournamentButtons" }, !this.session &&
539
532
  h("div", { class: "ButtonGroup" }, h("button", { class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), h("button", { class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
540
533
  h("div", null, !this.enrolled &&
541
534
  h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, "Read more")), this.enrolled &&
542
535
  h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, "Read more"))), (this.errorJoin || this.errorJoinConcurrently) &&
543
536
  h("span", { class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
544
537
  }
545
- get host() { return this; }
546
538
  static get style() { return casinoTournamentButtonsCss; }
547
539
  }, [1, "casino-tournament-buttons", {
548
540
  "language": [1],
@@ -560,6 +552,7 @@ const CasinoTournamentButtons = /*@__PURE__*/ proxyCustomElement(class extends H
560
552
  "clientStyling": [1, "client-styling"],
561
553
  "clientStylingUrl": [1, "client-styling-url"],
562
554
  "limitStylingAppends": [32],
555
+ "stylingContainer": [32],
563
556
  "joinButtonLoading": [32],
564
557
  "errorJoin": [32],
565
558
  "errorJoinConcurrently": [32]
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0d4c091f.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6f944b1f.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Browser v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -13,5 +13,5 @@ const patchBrowser = () => {
13
13
  };
14
14
 
15
15
  patchBrowser().then(options => {
16
- return bootstrapLazy([["casino-tournament-banner_2",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
16
+ return bootstrapLazy([["casino-tournament-banner_2",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"stylingContainer":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
17
17
  });
@@ -1,4 +1,4 @@
1
- import { r as registerInstance, h, g as getElement } from './index-0d4c091f.js';
1
+ import { r as registerInstance, h, g as getElement } from './index-6f944b1f.js';
2
2
 
3
3
  const DEFAULT_LANGUAGE$1 = 'en';
4
4
  const SUPPORTED_LANGUAGES$1 = ['ro', 'en', 'zh-hk', 'fr', 'hu', 'tr', 'el', 'es', 'pt', 'hr'];
@@ -6657,7 +6657,7 @@ const CasinoTournamentButtons = class {
6657
6657
  this.errorJoinConcurrently = false;
6658
6658
  }
6659
6659
  componentDidRender() {
6660
- if (!this.limitStylingAppends && this.host) {
6660
+ if (!this.limitStylingAppends && this.stylingContainer) {
6661
6661
  if (this.clientStyling)
6662
6662
  this.setClientStyling();
6663
6663
  if (this.clientStylingUrl)
@@ -6666,23 +6666,16 @@ const CasinoTournamentButtons = class {
6666
6666
  }
6667
6667
  }
6668
6668
  setClientStyling() {
6669
- const sheet = new CSSStyleSheet();
6670
- // @ts-ignore
6671
- sheet.replace(this.clientStyling);
6672
- // @ts-ignore
6673
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6669
+ let sheet = document.createElement('style');
6670
+ sheet.innerHTML = this.clientStyling;
6671
+ this.stylingContainer.prepend(sheet);
6674
6672
  }
6675
6673
  setClientStylingURL() {
6676
- let url = new URL(this.clientStylingUrl);
6677
- fetch(url.href)
6678
- .then((res) => res.text())
6679
- .then((data) => {
6680
- const sheet = new CSSStyleSheet();
6681
- // @ts-ignore
6682
- sheet.replace(data);
6683
- // @ts-ignore
6684
- this.host.shadowRoot.adoptedStyleSheets = [...this.host.shadowRoot.adoptedStyleSheets, sheet];
6685
- });
6674
+ let cssFile = document.createElement('style');
6675
+ setTimeout(() => {
6676
+ cssFile.innerHTML = this.clientStylingUrl;
6677
+ this.stylingContainer.prepend(cssFile);
6678
+ }, 1);
6686
6679
  }
6687
6680
  loginAction() {
6688
6681
  if (this.loginEvent) {
@@ -6720,7 +6713,7 @@ const CasinoTournamentButtons = class {
6720
6713
  this.errorJoinConcurrently = false;
6721
6714
  window.postMessage({ type: 'TournamentJoinRequest', tournamentId }, window.location.href);
6722
6715
  this.joinButtonLoading = true;
6723
- let joinUrl = new URL(`${this.endpoint}/v1/bonus/claim`);
6716
+ let joinUrl = new URL(`${this.endpoint}/bonus/claim`);
6724
6717
  let reqHeaders = new Headers();
6725
6718
  let body = {};
6726
6719
  joinUrl.searchParams.append('language', this.language);
@@ -6751,7 +6744,7 @@ const CasinoTournamentButtons = class {
6751
6744
  const fetcher = async () => {
6752
6745
  let result;
6753
6746
  try {
6754
- result = await fetch(`${this.endpoint}/v1/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
6747
+ result = await fetch(`${this.endpoint}/bonus/claim?${joinUrl.searchParams.toString()}`, requestOptions);
6755
6748
  result = await result.json();
6756
6749
  }
6757
6750
  catch (e) {
@@ -6768,7 +6761,7 @@ const CasinoTournamentButtons = class {
6768
6761
  else {
6769
6762
  if (data.errorMessage.match("VersionMismatchException")) {
6770
6763
  let resultDoubleCheck;
6771
- resultDoubleCheck = await fetch(`${this.endpoint}/v1/tournaments/${this.tournamentId}`, {
6764
+ resultDoubleCheck = await fetch(`${this.endpoint}/tournaments/${this.tournamentId}`, {
6772
6765
  headers: {
6773
6766
  'X-SessionID': this.session
6774
6767
  }
@@ -6795,14 +6788,13 @@ const CasinoTournamentButtons = class {
6795
6788
  window.postMessage({ type: 'TournamentReadMoreClicked', tournamentId }, window.location.href);
6796
6789
  }
6797
6790
  render() {
6798
- return h("div", { class: "TournamentButtons" }, !this.session &&
6791
+ return h("div", { ref: el => this.stylingContainer = el, class: "TournamentButtons" }, !this.session &&
6799
6792
  h("div", { class: "ButtonGroup" }, h("button", { class: "LoginButton Button", part: "LoginButton", onClick: () => this.loginAction() }, translate('login', this.language)), h("button", { class: "RegisterButton Button", part: "RegisterButton", onClick: () => this.registerAction() }, translate('register', this.language))), this.session &&
6800
6793
  h("div", null, !this.enrolled &&
6801
6794
  h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.joinAction(this.tournamentId, this.bonusCode) }, translate('join', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, "Read more")), this.enrolled &&
6802
6795
  h("div", { class: "ButtonGroup" }, h("button", { class: "Button", onClick: () => this.detailAction(this.tournamentId) }, translate('details', this.language)), this.showReadMore && h("button", { class: "Button NoBorder", onClick: () => this.moreAction(this.tournamentId) }, "Read more"))), (this.errorJoin || this.errorJoinConcurrently) &&
6803
6796
  h("span", { class: "ErrorText", part: "ErrorText" }, translate('joinerror', this.language)));
6804
6797
  }
6805
- get host() { return getElement(this); }
6806
6798
  };
6807
6799
  CasinoTournamentButtons.style = casinoTournamentButtonsCss;
6808
6800
 
@@ -251,6 +251,12 @@ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
251
251
  classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
252
252
  classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
253
253
  }
254
+ else if (memberName === 'ref') {
255
+ // minifier will clean this up
256
+ if (newValue) {
257
+ newValue(elm);
258
+ }
259
+ }
254
260
  else if ((!isProp ) &&
255
261
  memberName[0] === 'o' &&
256
262
  memberName[1] === 'n') {
@@ -424,6 +430,7 @@ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
424
430
  for (; startIdx <= endIdx; ++startIdx) {
425
431
  if ((vnode = vnodes[startIdx])) {
426
432
  elm = vnode.$elm$;
433
+ callNodeRefs(vnode);
427
434
  // remove the vnode's element from the dom
428
435
  elm.remove();
429
436
  }
@@ -551,6 +558,12 @@ const patch = (oldVNode, newVNode) => {
551
558
  elm.data = text;
552
559
  }
553
560
  };
561
+ const callNodeRefs = (vNode) => {
562
+ {
563
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
564
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
565
+ }
566
+ };
554
567
  const renderVdom = (hostRef, renderFnResults) => {
555
568
  const hostElm = hostRef.$hostElement$;
556
569
  const oldVNode = hostRef.$vnode$ || newVNode(null, null);
@@ -1,4 +1,4 @@
1
- import { p as promiseResolve, b as bootstrapLazy } from './index-0d4c091f.js';
1
+ import { p as promiseResolve, b as bootstrapLazy } from './index-6f944b1f.js';
2
2
 
3
3
  /*
4
4
  Stencil Client Patch Esm v2.15.2 | MIT Licensed | https://stenciljs.com
@@ -10,7 +10,7 @@ const patchEsm = () => {
10
10
  const defineCustomElements = (win, options) => {
11
11
  if (typeof window === 'undefined') return Promise.resolve();
12
12
  return patchEsm().then(() => {
13
- return bootstrapLazy([["casino-tournament-banner_2",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
13
+ return bootstrapLazy([["casino-tournament-banner_2",[[1,"casino-tournament-banner",{"useEvent":[1,"use-event"],"endpoint":[1],"state":[1],"enrolled":[4],"startTime":[1,"start-time"],"endTime":[1,"end-time"],"thumbnail":[1],"language":[1],"showCalendar":[4,"show-calendar"],"shortStart":[4,"short-start"],"shortstartformat":[1],"showDate":[4,"show-date"],"showRunningDate":[4,"show-running-date"],"showCheck":[4,"show-check"],"cardMode":[4,"card-mode"],"nameOrTitle":[1,"name-or-title"],"tournamentId":[1,"tournament-id"],"session":[1],"loginEvent":[1,"login-event"],"loginUrl":[1,"login-url"],"registerEvent":[1,"register-event"],"registerUrl":[1,"register-url"],"currency":[1],"bonusCode":[1,"bonus-code"],"showReadMore":[4,"show-read-more"],"clientStyling":[1,"client-styling"],"clientStylingUrl":[1,"client-styling-url"],"stateText":[32],"limitStylingAppends":[32],"startdate":[32],"tournamentLeftDays":[32],"showRemain":[32],"durationInterval":[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"],"limitStylingAppends":[32],"stylingContainer":[32],"joinButtonLoading":[32],"errorJoin":[32],"errorJoinConcurrently":[32]}]]]], options);
14
14
  });
15
15
  };
16
16
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-tournament-banner",
3
- "version": "1.28.7",
3
+ "version": "1.28.8",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.js",
6
6
  "es2015": "./dist/esm/index.mjs",
@@ -1 +0,0 @@
1
- let e,t,n=!1,l=!1;const s="undefined"!=typeof window?window:{},o=s.document||{head:{}},r={t:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,l)=>e.addEventListener(t,n,l),rel:(e,t,n,l)=>e.removeEventListener(t,n,l),ce:(e,t)=>new CustomEvent(e,t)},i=e=>Promise.resolve(e),c=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replace}catch(e){}return!1})(),u=(e,t,n)=>{n&&n.map((([n,l,s])=>{const o=f(e,n),i=a(t,s),c=h(n);r.ael(o,l,i,c),(t.o=t.o||[]).push((()=>r.rel(o,l,i,c)))}))},a=(e,t)=>n=>{try{256&e.t?e.i[t](n):(e.u=e.u||[]).push([t,n])}catch(e){I(e)}},f=(e,t)=>8&t?s:e,h=e=>0!=(2&e),$=new WeakMap,d=e=>"sc-"+e.h,m={},p=e=>"object"==(e=typeof e)||"function"===e,y=(e,t,...n)=>{let l=null,s=!1,o=!1,r=[];const i=t=>{for(let n=0;n<t.length;n++)l=t[n],Array.isArray(l)?i(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof e&&!p(l))&&(l+=""),s&&o?r[r.length-1].$+=l:r.push(s?w(null,l):l),o=s)};if(i(n),t){const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}const c=w(e,null);return c.m=t,r.length>0&&(c.p=r),c},w=(e,t)=>({t:0,g:e,$:t,v:null,p:null,m:null}),b={},g=(e,t,n,l,o,i)=>{if(n!==l){let c=G(e,t),u=t.toLowerCase();if("class"===t){const t=e.classList,s=S(n),o=S(l);t.remove(...s.filter((e=>e&&!o.includes(e)))),t.add(...o.filter((e=>e&&!s.includes(e))))}else if(c||"o"!==t[0]||"n"!==t[1]){const s=p(l);if((c||s&&null!==l)&&!o)try{if(e.tagName.includes("-"))e[t]=l;else{let s=null==l?"":l;"list"===t?c=!1:null!=n&&e[t]==s||(e[t]=s)}}catch(e){}null==l||!1===l?!1===l&&""!==e.getAttribute(t)||e.removeAttribute(t):(!c||4&i||o)&&!s&&e.setAttribute(t,l=!0===l?"":l)}else t="-"===t[2]?t.slice(3):G(s,u)?u.slice(2):u[2]+t.slice(3),n&&r.rel(e,t,n,!1),l&&r.ael(e,t,l,!1)}},v=/\s/,S=e=>e?e.split(v):[],j=(e,t,n,l)=>{const s=11===t.v.nodeType&&t.v.host?t.v.host:t.v,o=e&&e.m||m,r=t.m||m;for(l in o)l in r||g(s,l,o[l],void 0,n,t.t);for(l in r)g(s,l,o[l],r[l],n,t.t)},O=(t,l,s)=>{let r,i,c=l.p[s],u=0;if(null!==c.$)r=c.v=o.createTextNode(c.$);else{if(n||(n="svg"===c.g),r=c.v=o.createElementNS(n?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",c.g),n&&"foreignObject"===c.g&&(n=!1),j(null,c,n),null!=e&&r["s-si"]!==e&&r.classList.add(r["s-si"]=e),c.p)for(u=0;u<c.p.length;++u)i=O(t,c,u),i&&r.appendChild(i);"svg"===c.g?n=!1:"foreignObject"===r.tagName&&(n=!0)}return r},M=(e,n,l,s,o,r)=>{let i,c=e;for(c.shadowRoot&&c.tagName===t&&(c=c.shadowRoot);o<=r;++o)s[o]&&(i=O(null,l,o),i&&(s[o].v=i,c.insertBefore(i,n)))},k=(e,t,n,l)=>{for(;t<=n;++t)(l=e[t])&&l.v.remove()},C=(e,t)=>e.g===t.g,x=(e,t)=>{const l=t.v=e.v,s=e.p,o=t.p,r=t.g,i=t.$;null===i?(n="svg"===r||"foreignObject"!==r&&n,j(e,t,n),null!==s&&null!==o?((e,t,n,l)=>{let s,o=0,r=0,i=t.length-1,c=t[0],u=t[i],a=l.length-1,f=l[0],h=l[a];for(;o<=i&&r<=a;)null==c?c=t[++o]:null==u?u=t[--i]:null==f?f=l[++r]:null==h?h=l[--a]:C(c,f)?(x(c,f),c=t[++o],f=l[++r]):C(u,h)?(x(u,h),u=t[--i],h=l[--a]):C(c,h)?(x(c,h),e.insertBefore(c.v,u.v.nextSibling),c=t[++o],h=l[--a]):C(u,f)?(x(u,f),e.insertBefore(u.v,c.v),u=t[--i],f=l[++r]):(s=O(t&&t[r],n,r),f=l[++r],s&&c.v.parentNode.insertBefore(s,c.v));o>i?M(e,null==l[a+1]?null:l[a+1].v,n,l,r,a):r>a&&k(t,o,i)})(l,s,t,o):null!==o?(null!==e.$&&(l.textContent=""),M(l,null,t,o,0,o.length-1)):null!==s&&k(s,0,s.length-1),n&&"svg"===r&&(n=!1)):e.$!==i&&(l.data=i)},P=e=>_(e).S,E=(e,t)=>{t&&!e.j&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.j=t)))},L=(e,t)=>{if(e.t|=16,!(4&e.t))return E(e,e.O),le((()=>N(e,t)));e.t|=512},N=(e,t)=>{const n=e.i;let l;return t&&(e.t|=256,e.u&&(e.u.map((([e,t])=>U(n,e,t))),e.u=null),l=U(n,"componentWillLoad")),q(l,(()=>R(e,n,t)))},R=async(e,t,n)=>{const l=e.S,s=l["s-rc"];n&&(e=>{const t=e.M,n=e.S,l=t.t,s=((e,t)=>{let n=d(t),l=Q.get(n);if(e=11===e.nodeType?e:o,l)if("string"==typeof l){let t,s=$.get(e=e.head||e);s||$.set(e,s=new Set),s.has(n)||(t=o.createElement("style"),t.innerHTML=l,e.insertBefore(t,e.querySelector("link")),s&&s.add(n))}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return n})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);10&l&&(n["s-sc"]=s,n.classList.add(s+"-h"))})(e);T(e,t),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=l["s-p"],n=()=>W(e);0===t.length?n():(Promise.all(t).then(n),e.t|=4,t.length=0)}},T=(n,l)=>{try{l=l.render(),n.t&=-17,n.t|=2,((n,l)=>{const s=n.S,o=n.k||w(null,null),r=(e=>e&&e.g===b)(l)?l:y(null,null,l);t=s.tagName,r.g=null,r.t|=4,n.k=r,r.v=o.v=s.shadowRoot||s,e=s["s-sc"],x(o,r)})(n,l)}catch(e){I(e,n.S)}return null},W=e=>{const t=e.S,n=e.O;U(e.i,"componentDidRender"),64&e.t||(e.t|=64,D(t),e.C(t),n||A()),e.j&&(e.j(),e.j=void 0),512&e.t&&ne((()=>L(e,!1))),e.t&=-517},A=()=>{D(o.documentElement),ne((()=>(e=>{const t=r.ce("appload",{detail:{namespace:"casino-tournament-banner"}});return e.dispatchEvent(t),t})(s)))},U=(e,t,n)=>{if(e&&e[t])try{return e[t](n)}catch(e){I(e)}},q=(e,t)=>e&&e.then?e.then(t):t(),D=e=>e.classList.add("hydrated"),F=(e,t,n)=>{if(t.P){const l=Object.entries(t.P),s=e.prototype;if(l.map((([e,[l]])=>{(31&l||2&n&&32&l)&&Object.defineProperty(s,e,{get(){return((e,t)=>_(this).L.get(t))(0,e)},set(n){((e,t,n,l)=>{const s=_(e),o=s.L.get(t),r=s.t,i=s.i;n=((e,t)=>null==e||p(e)?e:4&t?"false"!==e&&(""===e||!!e):1&t?e+"":e)(n,l.P[t][0]),8&r&&void 0!==o||n===o||Number.isNaN(o)&&Number.isNaN(n)||(s.L.set(t,n),i&&2==(18&r)&&L(s,!1))})(this,e,n,t)},configurable:!0,enumerable:!0})})),1&n){const t=new Map;s.attributeChangedCallback=function(e,n,l){r.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))l=this[n],delete this[n];else if(s.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==l)return;this[n]=(null!==l||"boolean"!=typeof this[n])&&l}))},e.observedAttributes=l.filter((([e,t])=>15&t[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))}}return e},H=(e,t={})=>{const n=[],l=t.exclude||[],i=s.customElements,a=o.head,f=a.querySelector("meta[charset]"),h=o.createElement("style"),$=[];let m,p=!0;Object.assign(r,t),r.l=new URL(t.resourcesUrl||"./",o.baseURI).href,e.map((e=>{e[1].map((t=>{const s={t:t[0],h:t[1],P:t[2],N:t[3]};s.P=t[2],s.N=t[3];const o=s.h,a=class extends HTMLElement{constructor(e){super(e),B(e=this,s),1&s.t&&e.attachShadow({mode:"open"})}connectedCallback(){m&&(clearTimeout(m),m=null),p?$.push(this):r.jmp((()=>(e=>{if(0==(1&r.t)){const t=_(e),n=t.M,l=()=>{};if(1&t.t)u(e,t,n.N);else{t.t|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){E(t,t.O=n);break}}n.P&&Object.entries(n.P).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,l,s)=>{if(0==(32&t.t)){{if(t.t|=32,(s=K(n)).then){const e=()=>{};s=await s,e()}s.isProxied||(F(s,n,2),s.isProxied=!0);const e=()=>{};t.t|=8;try{new s(t)}catch(e){I(e)}t.t&=-9,e()}if(s.style){let e=s.style;const t=d(n);if(!Q.has(t)){const l=()=>{};((e,t,n)=>{let l=Q.get(e);c&&n?(l=l||new CSSStyleSheet,l.replace(t)):l=t,Q.set(e,l)})(t,e,!!(1&n.t)),l()}}}const o=t.O,r=()=>L(t,!0);o&&o["s-rc"]?o["s-rc"].push(r):r()})(0,t,n)}l()}})(this)))}disconnectedCallback(){r.jmp((()=>(()=>{if(0==(1&r.t)){const e=_(this);e.o&&(e.o.map((e=>e())),e.o=void 0)}})()))}componentOnReady(){return _(this).R}};s.T=e[0],l.includes(o)||i.get(o)||(n.push(o),i.define(o,F(a,s,1)))}))})),h.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",h.setAttribute("data-styles",""),a.insertBefore(h,f?f.nextSibling:a.firstChild),p=!1,$.length?$.map((e=>e.connectedCallback())):r.jmp((()=>m=setTimeout(A,30)))},V=new WeakMap,_=e=>V.get(e),z=(e,t)=>V.set(t.i=e,t),B=(e,t)=>{const n={t:0,S:e,M:t,L:new Map};return n.R=new Promise((e=>n.C=e)),e["s-p"]=[],e["s-rc"]=[],u(e,n,t.N),V.set(e,n)},G=(e,t)=>t in e,I=(e,t)=>(0,console.error)(e,t),J=new Map,K=e=>{const t=e.h.replace(/-/g,"_"),n=e.T,l=J.get(n);return l?l[t]:import(`./${n}.entry.js`).then((e=>(J.set(n,e),e[t])),I)},Q=new Map,X=[],Y=[],Z=(e,t)=>n=>{e.push(n),l||(l=!0,t&&4&r.t?ne(te):r.raf(te))},ee=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){I(e)}e.length=0},te=()=>{ee(X),ee(Y),(l=X.length>0)&&r.raf(te)},ne=e=>i().then(e),le=Z(Y,!0);export{H as b,P as g,y as h,i as p,z as r}