@everymatrix/bonus-elevate-powerups-lobby 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby-b04a9da7.js +1 -0
- package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.esm.js +1 -1
- package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups_7.entry.js +3 -3
- package/dist/bonus-elevate-powerups-lobby/index.esm.js +1 -1
- package/dist/cjs/{bonus-elevate-powerups-lobby-a19b84c9.js → bonus-elevate-powerups-lobby-c38947f9.js} +12 -12
- package/dist/cjs/bonus-elevate-powerups-lobby.cjs.js +1 -1
- package/dist/cjs/bonus-elevate-powerups_7.cjs.entry.js +59 -22
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.js +10 -10
- package/dist/esm/{bonus-elevate-powerups-lobby-09c95672.js → bonus-elevate-powerups-lobby-b04a9da7.js} +11 -11
- package/dist/esm/bonus-elevate-powerups-lobby.js +1 -1
- package/dist/esm/bonus-elevate-powerups_7.entry.js +60 -23
- package/dist/esm/index.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/bonus-elevate-powerups-lobby/.stencil/libs/common/src/types/casino/powerups.d.ts +7 -6
- package/dist/types/components/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby.d.ts +1 -1
- package/dist/types/components.d.ts +2 -2
- package/package.json +1 -1
- package/dist/bonus-elevate-powerups-lobby/bonus-elevate-powerups-lobby-09c95672.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{r as t,h as e,c as i,H as n,g as r}from"./index-64ff3a3a.js";import{P as s,a as o,M as a,s as h,b as u,c as l}from"./bonus-elevate-powerups-lobby-09c95672.js";export{B as bonus_elevate_powerups_lobby}from"./bonus-elevate-powerups-lobby-09c95672.js";const d={en:{min:"MIN",rounds:"Rounds",coins:"Coins",xp:"XP",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",gotoShop:"Go to shop to check power-ups availability.",termsCon:"Read full Terms & Conditions",games:"Games",selectGameToActive:"Select the game to activate power-up"}},c=(t,e,i)=>{let n=d[void 0!==e&&e in d?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n},f={expand:"games",fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,currentTime,expireTime,games(id,gameId,name,thumbnail,launchUrl)",status:`${s.ACTIVE},${s.ACTIVATED}`},m={expand:"games",fields:"id,powerUpID,games(id,gameId,name,thumbnail,launchUrl)"},p=class{constructor(e){t(this,e),this.tableId="powerups",this.gameObservers=new Map,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.pageSize=20,this.isLoading=!0,this.powerups=[],this.offset=0,this.limit=this.pageSize,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:n}=t.detail;n===this.tableId&&(this.offset=i,this.limit=e)}async loadData(){if(this.endpoint&&this.session){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit},games(limit=20,offset=0)`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};Object.entries(f).forEach((([e,i])=>{t.searchParams.append(e,i)})),t.searchParams.append("language",this.language);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:n,total:r}=await i.json();this.powerups=n,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}onGamesHover(t){window.postMessage({type:"PowerUpHover",game:t},"*")}async loadMoreGames(t){var e;if(!(t.games.items.length>=t.games.total))try{const i=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=games(limit=20,offset=${t.games.items.length})`),n={headers:{"x-SessionId":this.session}};i.searchParams.append("filter",`powerUpID=${t.powerUpID}`),Object.entries(m).forEach((([t,e])=>{i.searchParams.append(t,e)}));const r=await fetch(i.toString(),n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const{data:s}=await r.json(),o=this.powerups.findIndex((e=>e.id===t.id));if(-1!==o){const t=Object.assign({},this.powerups[o]),i=null==s?void 0:s[0];if(i&&(null===(e=i.games)||void 0===e?void 0:e.items)){t.games.items=[...t.games.items,...i.games.items];const e=[...this.powerups];e[o]=t,this.powerups=e}}}catch(t){console.error("Failed to load more games:",t)}}initializeGamesObserver(t){let e=this.gameObservers.get(t.id);e&&e.disconnect(),e=new IntersectionObserver((i=>{i.forEach((i=>{i.isIntersecting&&(this.loadMoreGames(t),e.unobserve(i.target),this.gameObservers.delete(t.id))}))})),this.gameObservers.set(t.id,e),setTimeout((()=>{const i=this.stylingContainer.querySelector(`.PowerUpItem[data-powerup-id="${t.id}"] .Game:last-child`);i&&e.observe(i)}),200)}componentDidUpdate(){this.powerups.forEach((t=>{var e,i;(null===(e=t.games)||void 0===e?void 0:e.items.length)<(null===(i=t.games)||void 0===i?void 0:i.total)&&this.initializeGamesObserver(t)}))}render(){return e("div",{key:"b40ca849d3de46834e9c7b6dee8d275756921d07",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):this.total?[e("div",{class:"PowerUps"},this.powerups.map((t=>{var i,n;return e("div",{class:"PowerUpItem Card","data-powerup-id":t.id},e("div",{class:"CardLeft"},e("div",{class:"MainInfo"},e("div",{class:"DisplayName"}," ",t.displayName||"Title"," "),e("div",{class:"Title2 PowerUpMultiplier"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),c(t.boostingPeriod.mode===o.TIME_PERIOD?"min":"rounds")," "),e("span",{class:"Multiplier"},"| X",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",c(t.multiplier.mode===a.XP?"xp":"coins")," "),"| ",e("span",{class:"ExpireCount"}," ",e("time-count",{"expire-time":t.expireTime}))),e("div",{class:"Description"},"Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus aperiam autem corporis est harum minus, nam neque nisi quibusdam quod reiciendis rerum saepe temporibus veritatis voluptas! Aperiam cupiditate optio rem?")),e("div",{class:"TermsC"},c("termsCon",this.language))),e("div",{class:"GamesContent CardRight"},e("div",{class:"GamesTitle"},e("span",{class:"Title2"}," ",c("games",this.language)),e("span",{class:"GamesAmount"},"( ",null===(i=t.games)||void 0===i?void 0:i.total," )")),e("div",{class:"GameTitleTip"},c("selectGameToActive",this.language)),e("div",{class:"GamesList"},e("div",{class:"Games"},null===(n=t.games)||void 0===n?void 0:n.items.map((t=>e("div",{class:"Game"},e("ui-image",{src:t.thumbnail}),e("div",{class:"GameMask",onClick:this.onGamesHover.bind(this,t)},e("span",{class:"PlayBtn"},"Start Now!")))))))))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,"secondary-arrows-active":!0,"table-id":this.tableId,total:this.total}))]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,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"/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},c("nothingHere",this.language)),e("span",null,c("noPowerUps")),e("span",null,c("gotoShop")),e("div",null)))}handleDataConfigChange(){this.loadData().catch(console.error)}handleClientStylingChange(t,e){t!=e&&h(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&u(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}componentWillLoad(){this.loadData().catch(console.error)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&h(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.gameObservers.forEach((t=>t.disconnect())),this.gameObservers.clear()}static get assetsDirs(){return["assets"]}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData","handleDataConfigChange"],endpoint:["loadData","handleDataConfigChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"]}}};p.style=":host{display:block;font-family:inherit;--game-amount-line:4}@media screen and (max-width: 768px){.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:32%}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{padding:8px}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{margin:8px}}@media screen and (max-width: 470px){.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:45%}.PowerUpsContainer .PowerUps .PowerUpItem.Card{max-height:600px;height:fit-content;flex-direction:column}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft{gap:10px}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{height:51%;overflow:auto}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{width:auto;margin:auto}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft .Game,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight .Game{width:45%}}.PowerUpsContainer{font-size:0.95rem;display:flex;flex-direction:column;min-height:300px}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{width:100%;gap:12px;display:flex;flex-direction:column}.PowerUpsContainer .PowerUps .Card{width:100%;height:307px;gap:12px;border-radius:12px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));display:flex;flex-direction:row}.PowerUpsContainer .PowerUps .Card .CardLeft,.PowerUpsContainer .PowerUps .Card .CardRight{display:flex;flex-direction:column}.PowerUpsContainer .PowerUps .Card .CardLeft{padding:20px;width:35%;display:flex;flex-direction:column;justify-content:space-between}.PowerUpsContainer .PowerUps .Card .CardLeft .MainInfo{display:flex;flex-direction:column;gap:12px}.PowerUpsContainer .PowerUps .Card .CardRight{padding:10px}.PowerUpsContainer .PowerUps .Card .Description{color:#C8D6CE;overflow-y:auto;height:calc(100% - 60px)}.PowerUpsContainer .PowerUps .Card .CardLeft .DisplayName{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:22px;gap:12px}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier{text-transform:uppercase;font-size:0.85em;color:var(--emw--color-gray-dark, #727672)}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier .ExpireCount{background-image:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange2, #E0A84E) 100%)}.PowerUpsContainer .PowerUps .Card .CardLeft .ExpireCount,.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC{display:inline-block;-webkit-background-clip:text;background-clip:text;color:transparent}.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC{text-transform:uppercase;background-image:linear-gradient(180deg, var(--emw--color-powup-green, #24B24E) 0%, var(--emw--color-powup-light-green, #18CE51) 100%);font-size:0.8em;font-weight:bold}.PowerUpsContainer .PowerUps .Card .GamesContent{margin:20px;flex:1;gap:12px;display:flex;border-radius:8px;border:2px solid var(--emw--color-powup-light-green-0D, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle{display:flex;flex-direction:row}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle .Title2{text-transform:capitalize}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle .GamesAmount{opacity:0.8}.PowerUpsContainer .PowerUps .Card .GamesContent .GameTitleTip{color:var(--emw--color-powup-gray-green, #C8D6CE);font-size:0.8rem}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList{display:flex;justify-content:center;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--background-gray-color, gray) transparent}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList::-webkit-scrollbar-track{background-color:transparent;border-radius:5px}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games{padding:0;display:flex;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:calc(30px / (var(--game-amount-line) - 1))}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:calc((100% - 30px) / var(--game-amount-line));cursor:pointer;position:relative}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game .GameMask{transition:opacity;transition-duration:0.2s;opacity:0;position:absolute;width:70%;height:100%}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .mask-filter{opacity:1}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover img{opacity:0.4;filter:blur(1.5px)}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .GameMask{opacity:1;mix-blend-mode:screen;background-color:var(--emw--color-powup-green, #24B24E);display:flex;justify-content:center;align-items:center;position:absolute;width:100%;left:0;height:100%;top:0;border-radius:8px}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .GameMask .PlayBtn{border:2px solid var(--emw--color-powup-gray, #f0f0f0);padding:5px 3px;border-radius:3px}.PowerUpsContainer .Pagination{display:flex;justify-content:center}";const g={en:{min:"MIN",rounds:"Rounds",coins:"Coins",xp:"XP",consumed:"Used",expired:"Expired",enabled:"Enabled",active:"Active",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",gotoShop:"Go to shop to check power-ups availability."}},w=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{g[e]||(g[e]={});for(let i in t[e])g[e][i]=t[e][i]})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})),v=(t,e,i)=>{let n=g[void 0!==e&&e in g?e:"en"][t]||t;if(null==i?void 0:i.values)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n};
|
|
1
|
+
import{r as t,h as e,c as i,H as n,g as r}from"./index-64ff3a3a.js";import{P as s,a,s as o,b as h,c as l}from"./bonus-elevate-powerups-lobby-b04a9da7.js";export{B as bonus_elevate_powerups_lobby}from"./bonus-elevate-powerups-lobby-b04a9da7.js";const u={en:{min:"MIN",rounds:"Rounds",coins:"Coins",xp:"XP",expiresIn:"EXPIRES IN ",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",gotoShop:"Go to shop to check power-ups availability.",termsCon:"Read full Terms & Conditions",games:"Games",selectGameToActive:"Select the game to activate power-up",days:"days"}},d=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{u[e]||(u[e]={});for(let i in t[e])u[e][i]=t[e][i]})),e(!0)}))})),c=(t,e,i)=>{let n=u[void 0!==e&&e in u?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n},f={expand:"games",fields:"id,powerUpID,displayName,termsUrl,description,status,multiplier,boostingPeriod,currentTime,expireTime,games(id,gameId,name,slug,thumbnail)",status:`${s.ACTIVE},${s.ACTIVATED}`},m={expand:"games",fields:"id,powerUpID,games(id,gameId,slug,name,thumbnail)"},p=class{constructor(e){t(this,e),this.tableId="powerups",this.gameObservers=new Map,this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.translationUrl="",this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=10,this.openTermsPage=!0,this.isLoading=!0,this.powerups=[],this.offset=0,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:n}=t.detail;n===this.tableId&&(this.offset=i,this.limit=e)}async loadData(){if(this.endpoint&&this.session){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit},games(limit=20,offset=0)`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};Object.entries(f).forEach((([e,i])=>{t.searchParams.append(e,i)})),t.searchParams.append("language",this.language);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:n,total:r}=await i.json();this.powerups=n,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}onGameClick(t){window.postMessage({type:"EngagementSuiteGameRedirect",data:{Slug:t.slug}})}onTermsUrlClick(t){window.postMessage({type:"onPowerupTermsUrlClicked",termsUrl:t},"*")}async loadMoreGames(t){var e;if(!(t.games.items.length>=t.games.total))try{const i=new URL(`${this.endpoint}/v1/elevate/powerups/available?pagination=games(limit=20,offset=${t.games.items.length})`),n={headers:{"x-SessionId":this.session}};i.searchParams.append("filter",`id=${t.powerUpID}`),Object.entries(m).forEach((([t,e])=>{i.searchParams.append(t,e)}));const r=await fetch(i.toString(),n);if(!r.ok)throw new Error(`HTTP error! status: ${r.status}`);const{data:s}=await r.json(),a=this.powerups.findIndex((e=>e.id===t.id));if(-1!==a){const t=Object.assign({},this.powerups[a]),i=null==s?void 0:s[0];if(i&&(null===(e=i.games)||void 0===e?void 0:e.items)){t.games.items=[...t.games.items,...i.games.items];const e=[...this.powerups];e[a]=t,this.powerups=e}}}catch(t){console.error("Failed to load more games:",t)}}initializeGamesObserver(t){let e=this.gameObservers.get(t.id);e&&e.disconnect(),e=new IntersectionObserver((i=>{i.forEach((i=>{i.isIntersecting&&(this.loadMoreGames(t),e.unobserve(i.target),this.gameObservers.delete(t.id))}))})),this.gameObservers.set(t.id,e),setTimeout((()=>{const i=this.stylingContainer.querySelector(`.PowerUpItem[data-powerup-id="${t.id}"] .Game:last-child`);i&&e.observe(i)}),200)}componentDidUpdate(){this.powerups.forEach((t=>{var e,i;(null===(e=t.games)||void 0===e?void 0:e.items.length)<(null===(i=t.games)||void 0===i?void 0:i.total)&&this.initializeGamesObserver(t)}))}render(){return e("div",{key:"7de60fedad83668fcff2f4a1ea02b489b80d3b12",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):this.total?[e("div",{class:"PowerUps"},this.powerups.map((t=>{var i,n;return e("div",{class:"PowerUpItem Card","data-powerup-id":t.id},e("div",{class:"CardLeft"},e("div",{class:"MainInfo"},e("div",{class:"DisplayName"}," ",t.displayName||"-"," "),e("div",{class:"Title2 PowerUpMultiplier"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),c(t.boostingPeriod.mode===a.TIME_PERIOD?"min":"rounds",this.language)," "),e("span",{class:"Multiplier"},"| X ",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",c(t.multiplier.mode,this.language)," "),t.expireTime&&[e("span",null," | "),e("span",{class:"ExpireCount"},e("time-count",{"expire-time":t.expireTime,language:this.language}))]),e("div",{class:"Description"},t.description)),e("div",{class:"TermsC"},this.openTermsPage?e("a",{href:t.termsUrl?t.termsUrl:"#",target:"_blank"},c("termsCon",this.language)):e("span",{onClick:this.onTermsUrlClick.bind(this,t.termsUrl)},c("termsCon",this.language)," "))),e("div",{class:"GamesContent CardRight"},e("div",{class:"GamesTitle"},e("span",{class:"Title2"}," ",c("games",this.language)),e("span",{class:"GamesAmount"}," ( ",(null===(i=t.games)||void 0===i?void 0:i.total)||0," ) ")),e("div",{class:"GameTitleTip"},c("selectGameToActive",this.language)),e("div",{class:"GamesList"},e("div",{class:"Games"},null===(n=t.games)||void 0===n?void 0:n.items.map((t=>e("div",{class:"Game"},e("ui-image",{src:t.thumbnail}),e("div",{class:"GameMask",onClick:this.onGameClick.bind(this,t)},e("span",{class:"PlayBtn"},"Start Now!")))))))))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,"secondary-arrows-active":!0,"table-id":this.tableId,total:this.total}))]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,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"/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},c("nothingHere",this.language)),e("span",null,c("noPowerUps")),e("span",null,c("gotoShop")),e("div",null)))}handleDataConfigChange(){this.loadData().catch(console.error)}handleClientStylingChange(t,e){t!=e&&o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&h(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){d(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await d(this.translationUrl),this.loadData().catch(console.error)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl))}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe(),this.gameObservers.forEach((t=>t.disconnect())),this.gameObservers.clear()}static get assetsDirs(){return["assets"]}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData","handleDataConfigChange"],endpoint:["loadData","handleDataConfigChange"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};p.style=":host{display:block;font-family:inherit;--game-amount-line:4}@media screen and (max-width: 768px){.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:32%}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{padding:8px}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{margin:8px}}@media screen and (max-width: 470px){.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:45%}.PowerUpsContainer .PowerUps .PowerUpItem.Card{max-height:600px;height:fit-content;flex-direction:column}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft{gap:10px;min-width:320px}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{height:51%;overflow:auto}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight{width:auto;margin:auto}.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardLeft .Game,.PowerUpsContainer .PowerUps .PowerUpItem.Card .CardRight .Game{width:45%}}.PowerUpsContainer{font-size:0.95rem;display:flex;flex-direction:column;min-height:300px}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2em;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2em;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{width:100%;gap:12px;display:flex;flex-direction:column}.PowerUpsContainer .PowerUps time-count{margin-left:3px}.PowerUpsContainer .PowerUps .Card{width:100%;max-height:307px;gap:12px;border-radius:12px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));display:flex;flex-direction:row}.PowerUpsContainer .PowerUps .Card .CardLeft,.PowerUpsContainer .PowerUps .Card .CardRight{display:flex;flex-direction:column}.PowerUpsContainer .PowerUps .Card .CardLeft{padding:20px;width:35%;display:flex;min-width:339px;flex-direction:column;justify-content:space-between}.PowerUpsContainer .PowerUps .Card .CardLeft .MainInfo{display:flex;flex-direction:column;gap:12px}.PowerUpsContainer .PowerUps .Card .CardRight{padding:10px}.PowerUpsContainer .PowerUps .Card .Description{color:var(--emw--color-gray-150, #c8d6ce);line-height:1.2rem;flex:1}.PowerUpsContainer .PowerUps .Card .CardLeft .DisplayName{width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;height:22px;gap:12px}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier{text-transform:uppercase;font-size:0.85em;color:var(--emw--color-gray-dark, #727672)}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier .ExpireCount{background-image:linear-gradient(180deg, var(--emw--color-powup-orange1, #EA9018) 0%, var(--emw--color-powup-orange2, #E0A84E) 100%)}.PowerUpsContainer .PowerUps .Card .CardLeft .PowerUpMultiplier .ExpireCount .Label{text-transform:uppercase}.PowerUpsContainer .PowerUps .Card .CardLeft .ExpireCount,.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC{display:inline-block;-webkit-background-clip:text;background-clip:text;color:transparent}.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC{text-transform:uppercase;background-image:linear-gradient(180deg, var(--emw--color-powup-green, #24B24E) 0%, var(--emw--color-powup-light-green, #18CE51) 100%);font-size:0.8em;font-weight:bold}.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC a{color:var(--emw--color-powup-light-green, #18CE51)}.PowerUpsContainer .PowerUps .Card .CardLeft .TermsC span{cursor:pointer}.PowerUpsContainer .PowerUps .Card .GamesContent{margin:20px;flex:1;gap:12px;display:flex;border-radius:8px;border:2px solid var(--emw--color-powup-light-green-0D, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle{display:flex;flex-direction:row}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle .Title2{text-transform:capitalize}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesTitle .GamesAmount{opacity:0.8}.PowerUpsContainer .PowerUps .Card .GamesContent .GameTitleTip{color:var(--emw--color-powup-gray-green, #C8D6CE);font-size:0.8rem}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList{display:flex;justify-content:center;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--emw--background-gray-color, gray) transparent}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList::-webkit-scrollbar-track{background-color:transparent;border-radius:5px}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games{padding:0;display:flex;align-items:flex-start;justify-content:flex-start;flex-wrap:wrap;gap:calc(30px / (var(--game-amount-line) - 1))}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game{width:calc((100% - 30px) / var(--game-amount-line));cursor:pointer;position:relative}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game .GameMask{transition:opacity;transition-duration:0.2s;opacity:0;position:absolute;width:70%;height:100%}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .mask-filter{opacity:1}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover img{opacity:0.4;filter:blur(1.5px)}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .GameMask{opacity:1;mix-blend-mode:screen;background-color:var(--emw--color-powup-green, #24B24E);display:flex;justify-content:center;align-items:center;position:absolute;width:100%;left:0;height:100%;top:0;border-radius:8px}.PowerUpsContainer .PowerUps .Card .GamesContent .GamesList .Games .Game:hover .GameMask .PlayBtn{border:2px solid var(--emw--color-powup-gray, #f0f0f0);padding:5px 3px;border-radius:3px}.PowerUpsContainer .Pagination{display:flex;justify-content:center}";const g={en:{min:"MIN",rounds:"Rounds",coins:"Coins",xp:"XP",consumed:"Used",expired:"Expired",enabled:"Enabled",active:"Active",nothingHere:"Nothing here -- yet!",noPowerUps:"No power-ups have been used at the moment.",gotoShop:"Go to shop to check power-ups availability."}},w=t=>new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{g[e]||(g[e]={});for(let i in t[e])g[e][i]=t[e][i]})),e(!0)})).catch((t=>{console.error("Failed to load translations:",t),e(!1)}))})),v=(t,e,i)=>{let n=g[void 0!==e&&e in g?e:"en"][t]||t;if(null==i?void 0:i.values)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");n=n.replace(i,e)}return n};
|
|
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 y,b;function C(){return y.apply(null,arguments)}function k(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function x(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function P(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function M(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(P(t,e))return!1;return!0}function D(t){return void 0===t}function Y(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function S(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function U(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function N(t,e){for(var i in e)P(e,i)&&(t[i]=e[i]);return P(e,"toString")&&(t.toString=e.toString),P(e,"valueOf")&&(t.valueOf=e.valueOf),t}function G(t,e,i,n){return ze(t,e,i,n,!0).utc()}function E(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 T(t){if(null==t._isValid){var e=E(t),i=b.call(e.parsedDateParts,(function(t){return null!=t})),n=!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&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function A(t){var e=G(NaN);return null!=t?N(E(e),t):E(e).userInvalidated=!0,e}b=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var I=C.momentProperties=[],R=!1;function W(t,e){var i,n,r,s=I.length;if(D(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),D(e._i)||(t._i=e._i),D(e._f)||(t._f=e._f),D(e._l)||(t._l=e._l),D(e._strict)||(t._strict=e._strict),D(e._tzm)||(t._tzm=e._tzm),D(e._isUTC)||(t._isUTC=e._isUTC),D(e._offset)||(t._offset=e._offset),D(e._pf)||(t._pf=E(e)),D(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)D(r=e[n=I[i]])||(t[n]=r);return t}function H(t){W(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===R&&(R=!0,C.updateOffset(this),R=!1)}function O(t){return t instanceof H||null!=t&&null!=t._isAMomentObject}function L(t){!1===C.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function F(t,e){var i=!0;return N((function(){if(null!=C.deprecationHandler&&C.deprecationHandler(null,t),i){var n,r,s,o=[],a=arguments.length;for(r=0;r<a;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])P(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];o.push(n)}L(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var j,K={};function J(t,e){null!=C.deprecationHandler&&C.deprecationHandler(t,e),K[t]||(L(e),K[t]=!0)}function Z(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function X(t,e){var i,n=N({},t);for(i in e)P(e,i)&&(x(t[i])&&x(e[i])?(n[i]={},N(n[i],t[i]),N(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)P(t,i)&&!P(e,i)&&x(t[i])&&(n[i]=N({},n[i]));return n}function _(t){null!=t&&this.set(t)}function q(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}C.suppressDeprecationWarnings=!1,C.deprecationHandler=null,j=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)P(t,e)&&i.push(e);return i};var Q=/(\[[^\[]*\])|(\\)?([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,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},$={};function tt(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&($[t]=r),e&&($[e[0]]=function(){return q(r.apply(this,arguments),e[1],e[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function et(t,e){return t.isValid()?(e=it(e,t.localeData()),V[e]=V[e]||function(t){var e,i,n,r=t.match(Q);for(e=0,i=r.length;e<i;e++)r[e]=$[r[e]]?$[r[e]]:(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<i;n++)s+=Z(r[n])?r[n].call(e,t):r[n];return s}}(e),V[e](t)):t.localeData().invalidDate()}function it(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;i>=0&&z.test(t);)t=t.replace(z,n),z.lastIndex=0,i-=1;return t}var nt={};function rt(t,e){var i=t.toLowerCase();nt[i]=nt[i+"s"]=nt[e]=t}function st(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function ot(t){var e,i,n={};for(i in t)P(t,i)&&(e=st(i))&&(n[e]=t[i]);return n}var at={};function ht(t,e){at[t]=e}function ut(t){return t%4==0&&t%100!=0||t%400==0}function lt(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=lt(e)),i}function ct(t,e){return function(i){return null!=i?(mt(this,t,i),C.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function mt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&ut(t.year())&&1===t.month()&&29===t.date()?(i=dt(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),qt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var pt,gt=/\d/,wt=/\d\d/,vt=/\d{3}/,yt=/\d{4}/,bt=/[+-]?\d{6}/,Ct=/\d\d?/,kt=/\d\d\d\d?/,xt=/\d\d\d\d\d\d?/,Pt=/\d{1,3}/,Mt=/\d{1,4}/,Dt=/[+-]?\d{1,6}/,Yt=/\d+/,St=/[+-]?\d+/,Ut=/Z|[+-]\d\d:?\d\d/gi,Nt=/Z|[+-]\d\d(?::?\d\d)?/gi,Gt=/[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 Et(t,e,i){pt[t]=Z(e)?e:function(t){return t&&i?i:e}}function Tt(t,e){return P(pt,t)?pt[t](e._strict,e._locale):new RegExp(At(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function At(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}pt={};var It={};function Rt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),Y(e)&&(r=function(t,i){i[e]=dt(t)}),n=t.length,i=0;i<n;i++)It[t[i]]=r}function Wt(t,e){Rt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Ht(t,e,i){null!=e&&P(It,t)&&It[t](e,i._a,i,t)}var Ot,Lt=0,Ft=1,jt=2,Kt=3,Jt=4,Bt=5,Zt=6,Xt=7,_t=8;function qt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?ut(t)?29:28:31-i%7%2}Ot=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},tt("M",["MM",2],"Mo",(function(){return this.month()+1})),tt("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),tt("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),ht("month",8),Et("M",Ct),Et("MM",Ct,wt),Et("MMM",(function(t,e){return e.monthsShortRegex(t)})),Et("MMMM",(function(t,e){return e.monthsRegex(t)})),Rt(["M","MM"],(function(t,e){e[Ft]=dt(t)-1})),Rt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[Ft]=r:E(i).invalidMonth=t}));var Qt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),zt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$t=Gt,te=Gt;function ee(t,e,i){var n,r,s,o=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=G([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,o))?r:null:-1!==(r=Ot.call(this._longMonthsParse,o))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,o))||-1!==(r=Ot.call(this._longMonthsParse,o))?r:null:-1!==(r=Ot.call(this._longMonthsParse,o))||-1!==(r=Ot.call(this._shortMonthsParse,o))?r:null}function ie(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!Y(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),qt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ne(t){return null!=t?(ie(this,t),C.updateOffset(this,!0),this):ft(this,"Month")}function re(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=G([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)n[e]=At(n[e]),r[e]=At(r[e]);for(e=0;e<24;e++)s[e]=At(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function se(t){return ut(t)?366:365}tt("Y",0,0,(function(){var t=this.year();return t<=9999?q(t,4):"+"+t})),tt(0,["YY",2],0,(function(){return this.year()%100})),tt(0,["YYYY",4],0,"year"),tt(0,["YYYYY",5],0,"year"),tt(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),ht("year",1),Et("Y",St),Et("YY",Ct,wt),Et("YYYY",Mt,yt),Et("YYYYY",Dt,bt),Et("YYYYYY",Dt,bt),Rt(["YYYYY","YYYYYY"],Lt),Rt("YYYY",(function(t,e){e[Lt]=2===t.length?C.parseTwoDigitYear(t):dt(t)})),Rt("YY",(function(t,e){e[Lt]=C.parseTwoDigitYear(t)})),Rt("Y",(function(t,e){e[Lt]=parseInt(t,10)})),C.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var oe=ct("FullYear",!0);function ae(t,e,i,n,r,s,o){var a;return t<100&&t>=0?(a=new Date(t+400,e,i,n,r,s,o),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,s,o),a}function he(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function ue(t,e,i){var n=7+e-i;return-(7+he(t,0,n).getUTCDay()-e)%7+n-1}function le(t,e,i,n,r){var s,o,a=1+7*(e-1)+(7+i-n)%7+ue(t,n,r);return a<=0?o=se(s=t-1)+a:a>se(t)?(s=t+1,o=a-se(t)):(s=t,o=a),{year:s,dayOfYear:o}}function de(t,e,i){var n,r,s=ue(t.year(),e,i),o=Math.floor((t.dayOfYear()-s-1)/7)+1;return o<1?n=o+ce(r=t.year()-1,e,i):o>ce(t.year(),e,i)?(n=o-ce(t.year(),e,i),r=t.year()+1):(r=t.year(),n=o),{week:n,year:r}}function ce(t,e,i){var n=ue(t,e,i),r=ue(t+1,e,i);return(se(t)-n+r)/7}function fe(t,e){return t.slice(e,7).concat(t.slice(0,e))}tt("w",["ww",2],"wo","week"),tt("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),ht("week",5),ht("isoWeek",5),Et("w",Ct),Et("ww",Ct,wt),Et("W",Ct),Et("WW",Ct,wt),Wt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=dt(t)})),tt("d",0,"do","day"),tt("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),tt("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),tt("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),tt("e",0,0,"weekday"),tt("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),ht("day",11),ht("weekday",11),ht("isoWeekday",11),Et("d",Ct),Et("e",Ct),Et("E",Ct),Et("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Et("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Et("dddd",(function(t,e){return e.weekdaysRegex(t)})),Wt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:E(i).invalidWeekday=t})),Wt(["d","e","E"],(function(t,e,i,n){e[n]=dt(t)}));var me="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),we=Gt,ve=Gt,ye=Gt;function be(t,e,i){var n,r,s,o=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=G([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,o))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,o))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,o))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,o))||-1!==(r=Ot.call(this._shortWeekdaysParse,o))||-1!==(r=Ot.call(this._minWeekdaysParse,o))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,o))||-1!==(r=Ot.call(this._weekdaysParse,o))||-1!==(r=Ot.call(this._minWeekdaysParse,o))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,o))||-1!==(r=Ot.call(this._weekdaysParse,o))||-1!==(r=Ot.call(this._shortWeekdaysParse,o))?r:null}function Ce(){function t(t,e){return e.length-t.length}var e,i,n,r,s,o=[],a=[],h=[],u=[];for(e=0;e<7;e++)i=G([2e3,1]).day(e),n=At(this.weekdaysMin(i,"")),r=At(this.weekdaysShort(i,"")),s=At(this.weekdays(i,"")),o.push(n),a.push(r),h.push(s),u.push(n),u.push(r),u.push(s);o.sort(t),a.sort(t),h.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+o.join("|")+")","i")}function ke(){return this.hours()%12||12}function xe(t,e){tt(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Pe(t,e){return e._meridiemParse}tt("H",["HH",2],0,"hour"),tt("h",["hh",2],0,ke),tt("k",["kk",2],0,(function(){return this.hours()||24})),tt("hmm",0,0,(function(){return""+ke.apply(this)+q(this.minutes(),2)})),tt("hmmss",0,0,(function(){return""+ke.apply(this)+q(this.minutes(),2)+q(this.seconds(),2)})),tt("Hmm",0,0,(function(){return""+this.hours()+q(this.minutes(),2)})),tt("Hmmss",0,0,(function(){return""+this.hours()+q(this.minutes(),2)+q(this.seconds(),2)})),xe("a",!0),xe("A",!1),rt("hour","h"),ht("hour",13),Et("a",Pe),Et("A",Pe),Et("H",Ct),Et("h",Ct),Et("k",Ct),Et("HH",Ct,wt),Et("hh",Ct,wt),Et("kk",Ct,wt),Et("hmm",kt),Et("hmmss",xt),Et("Hmm",kt),Et("Hmmss",xt),Rt(["H","HH"],Kt),Rt(["k","kk"],(function(t,e){var i=dt(t);e[Kt]=24===i?0:i})),Rt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Rt(["h","hh"],(function(t,e,i){e[Kt]=dt(t),E(i).bigHour=!0})),Rt("hmm",(function(t,e,i){var n=t.length-2;e[Kt]=dt(t.substr(0,n)),e[Jt]=dt(t.substr(n)),E(i).bigHour=!0})),Rt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[Kt]=dt(t.substr(0,n)),e[Jt]=dt(t.substr(n,2)),e[Bt]=dt(t.substr(r)),E(i).bigHour=!0})),Rt("Hmm",(function(t,e){var i=t.length-2;e[Kt]=dt(t.substr(0,i)),e[Jt]=dt(t.substr(i))})),Rt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[Kt]=dt(t.substr(0,i)),e[Jt]=dt(t.substr(i,2)),e[Bt]=dt(t.substr(n))}));var Me,De=ct("Hours",!0),Ye={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:Qt,monthsShort:zt,week:{dow:0,doy:6},weekdays:me,weekdaysMin:ge,weekdaysShort:pe,meridiemParse:/[ap]\.?m?\.?/i},Se={},Ue={};function Ne(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function Ge(t){return t?t.toLowerCase().replace("_","-"):t}function Ee(t){var e=null;if(void 0===Se[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=Me._abbr,require("./locale/"+t),Te(e)}catch(e){Se[t]=null}return Se[t]}function Te(t,e){var i;return t&&((i=D(e)?Ie(t):Ae(t,e))?Me=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Me._abbr}function Ae(t,e){if(null!==e){var i,n=Ye;if(e.abbr=t,null!=Se[t])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Se[t]._config;else if(null!=e.parentLocale)if(null!=Se[e.parentLocale])n=Se[e.parentLocale]._config;else{if(null==(i=Ee(e.parentLocale)))return Ue[e.parentLocale]||(Ue[e.parentLocale]=[]),Ue[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Se[t]=new _(X(n,e)),Ue[t]&&Ue[t].forEach((function(t){Ae(t.name,t.config)})),Te(t),Se[t]}return delete Se[t],null}function Ie(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Me;if(!k(t)){if(e=Ee(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=Ge(t[s]).split("-")).length,i=(i=Ge(t[s+1]))?i.split("-"):null;e>0;){if(n=Ee(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&Ne(r,i)>=e-1)break;e--}s++}return Me}(t)}function Re(t){var e,i=t._a;return i&&-2===E(t).overflow&&(e=i[Ft]<0||i[Ft]>11?Ft:i[jt]<1||i[jt]>qt(i[Lt],i[Ft])?jt:i[Kt]<0||i[Kt]>24||24===i[Kt]&&(0!==i[Jt]||0!==i[Bt]||0!==i[Zt])?Kt:i[Jt]<0||i[Jt]>59?Jt:i[Bt]<0||i[Bt]>59?Bt:i[Zt]<0||i[Zt]>999?Zt:-1,E(t)._overflowDayOfYear&&(e<Lt||e>jt)&&(e=jt),E(t)._overflowWeeks&&-1===e&&(e=Xt),E(t)._overflowWeekday&&-1===e&&(e=_t),E(t).overflow=e),t}var We=/^\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)?)?$/,He=/^\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)?)?$/,Oe=/Z|[+-]\d\d(?::?\d\d)?/,Le=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Fe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],je=/^\/?Date\((-?\d+)/i,Ke=/^(?:(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}))$/,Je={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Be(t){var e,i,n,r,s,o,a=t._i,h=We.exec(a)||He.exec(a),u=Le.length,l=Fe.length;if(h){for(E(t).iso=!0,e=0,i=u;e<i;e++)if(Le[e][1].exec(h[1])){r=Le[e][0],n=!1!==Le[e][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(e=0,i=l;e<i;e++)if(Fe[e][1].exec(h[3])){s=(h[2]||" ")+Fe[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(h[4]){if(!Oe.exec(h[4]))return void(t._isValid=!1);o="Z"}t._f=r+(s||"")+(o||""),qe(t)}else t._isValid=!1}function Ze(t){var e,i,n,r,s,o,a,h,u,l=Ke.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(l){if(i=l[3],n=l[2],r=l[5],s=l[6],o=l[7],a=[(h=l[4],u=parseInt(h,10),u<=49?2e3+u:u<=999?1900+u:u),zt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],o&&a.push(parseInt(o,10)),!function(t,e,i){return!t||pe.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(E(i).weekdayMismatch=!0,i._isValid=!1,!1)}(l[1],e=a,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Je[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(l[8],l[9],l[10]),t._d=he.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),E(t).rfc2822=!0}else t._isValid=!1}function Xe(t,e,i){return null!=t?t:null!=e?e:i}function _e(t){var e,i,n,r,s,o=[];if(!t._d){for(n=function(t){var e=new Date(C.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[jt]&&null==t._a[Ft]&&function(t){var e,i,n,r,s,o,a,h,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,o=4,i=Xe(e.GG,t._a[Lt],de(Ve(),1,4).year),n=Xe(e.W,1),((r=Xe(e.E,1))<1||r>7)&&(h=!0)):(s=t._locale._week.dow,o=t._locale._week.doy,u=de(Ve(),s,o),i=Xe(e.gg,t._a[Lt],u.year),n=Xe(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(h=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(h=!0)):r=s),n<1||n>ce(i,s,o)?E(t)._overflowWeeks=!0:null!=h?E(t)._overflowWeekday=!0:(a=le(i,n,r,s,o),t._a[Lt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=Xe(t._a[Lt],n[Lt]),(t._dayOfYear>se(s)||0===t._dayOfYear)&&(E(t)._overflowDayOfYear=!0),i=he(s,0,t._dayOfYear),t._a[Ft]=i.getUTCMonth(),t._a[jt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=o[e]=n[e];for(;e<7;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Kt]&&0===t._a[Jt]&&0===t._a[Bt]&&0===t._a[Zt]&&(t._nextDay=!0,t._a[Kt]=0),t._d=(t._useUTC?he:ae).apply(null,o),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(E(t).weekdayMismatch=!0)}}function qe(t){if(t._f!==C.ISO_8601)if(t._f!==C.RFC_2822){t._a=[],E(t).empty=!0;var e,i,n,r,s,o,a,h=""+t._i,u=h.length,l=0;for(a=(n=it(t._f,t._locale).match(Q)||[]).length,e=0;e<a;e++)(i=(h.match(Tt(r=n[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(i))).length>0&&E(t).unusedInput.push(s),h=h.slice(h.indexOf(i)+i.length),l+=i.length),$[r]?(i?E(t).empty=!1:E(t).unusedTokens.push(r),Ht(r,i,t)):t._strict&&!i&&E(t).unusedTokens.push(r);E(t).charsLeftOver=u-l,h.length>0&&E(t).unusedInput.push(h),t._a[Kt]<=12&&!0===E(t).bigHour&&t._a[Kt]>0&&(E(t).bigHour=void 0),E(t).parsedDateParts=t._a.slice(0),E(t).meridiem=t._meridiem,t._a[Kt]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[Kt],t._meridiem),null!==(o=E(t).era)&&(t._a[Lt]=t._locale.erasConvertYear(o,t._a[Lt])),_e(t),Re(t)}else Ze(t);else Be(t)}function Qe(t){var e=t._i,i=t._f;return t._locale=t._locale||Ie(t._l),null===e||void 0===i&&""===e?A({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),O(e)?new H(Re(e)):(S(e)?t._d=e:k(i)?function(t){var e,i,n,r,s,o,a=!1,h=t._f.length;if(0===h)return E(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<h;r++)s=0,o=!1,e=W({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],qe(e),T(e)&&(o=!0),s+=E(e).charsLeftOver,s+=10*E(e).unusedTokens.length,E(e).score=s,a?s<n&&(n=s,i=e):(null==n||s<n||o)&&(n=s,i=e,o&&(a=!0));N(t,i||e)}(t):i?qe(t):function(t){var e=t._i;D(e)?t._d=new Date(C.now()):S(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=je.exec(t._i);null===e?(Be(t),!1===t._isValid&&(delete t._isValid,Ze(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:C.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):k(e)?(t._a=U(e.slice(0),(function(t){return parseInt(t,10)})),_e(t)):x(e)?function(t){if(!t._d){var e=ot(t._i);t._a=U([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)})),_e(t)}}(t):Y(e)?t._d=new Date(e):C.createFromInputFallback(t)}(t),T(t)||(t._d=null),t))}function ze(t,e,i,n,r){var s,o={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(x(t)&&M(t)||k(t)&&0===t.length)&&(t=void 0),o._isAMomentObject=!0,o._useUTC=o._isUTC=r,o._l=i,o._i=t,o._f=e,o._strict=n,(s=new H(Re(Qe(o))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ve(t,e,i,n){return ze(t,e,i,n,!1)}C.createFromInputFallback=F("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":""))})),C.ISO_8601=function(){},C.RFC_2822=function(){};var $e=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ve.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:A()})),ti=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ve.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:A()}));function ei(t,e){var i,n;if(1===e.length&&k(e[0])&&(e=e[0]),!e.length)return Ve();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){var e=ot(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,o=e.day||0,a=e.hour||0,h=e.minute||0,u=e.second||0,l=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=ii.length;for(e in t)if(P(t,e)&&(-1===Ot.call(ii,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[ii[i]]){if(n)return!1;parseFloat(t[ii[i]])!==dt(t[ii[i]])&&(n=!0)}return!0}(e),this._milliseconds=+l+1e3*u+6e4*h+1e3*a*60*60,this._days=+o+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=Ie(),this._bubble()}function ri(t){return t instanceof ni}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function oi(t,e){tt(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+q(~~(t/60),2)+e+q(~~t%60,2)}))}oi("Z",":"),oi("ZZ",""),Et("Z",Nt),Et("ZZ",Nt),Rt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=hi(Nt,t)}));var ai=/([\+\-]|\d\d)/gi;function hi(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(ai)||["-",0,0])[1]+dt(i[2]))?0:"+"===i[0]?n:-n}function ui(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(O(t)||S(t)?t.valueOf():Ve(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),C.updateOffset(i,!1),i):Ve(t).local()}function li(t){return-Math.round(t._d.getTimezoneOffset())}function di(){return!!this.isValid()&&this._isUTC&&0===this._offset}C.updateOffset=function(){};var ci=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mi(t,e){var i,n,r,s,o,a,h=t,u=null;return ri(t)?h={ms:t._milliseconds,d:t._days,M:t._months}:Y(t)||!isNaN(+t)?(h={},e?h[e]=+t:h.milliseconds=+t):(u=ci.exec(t))?(i="-"===u[1]?-1:1,h={y:0,d:dt(u[jt])*i,h:dt(u[Kt])*i,m:dt(u[Jt])*i,s:dt(u[Bt])*i,ms:dt(si(1e3*u[Zt]))*i}):(u=fi.exec(t))?h={y:pi(u[2],i="-"===u[1]?-1:1),M:pi(u[3],i),w:pi(u[4],i),d:pi(u[5],i),h:pi(u[6],i),m:pi(u[7],i),s:pi(u[8],i)}:null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(s=Ve(h.from),o=Ve(h.to),r=s.isValid()&&o.isValid()?(o=ui(o,s),s.isBefore(o)?a=gi(s,o):((a=gi(o,s)).milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0},(h={}).ms=r.milliseconds,h.M=r.months),n=new ni(h),ri(t)&&P(t,"_locale")&&(n._locale=t._locale),ri(t)&&P(t,"_isValid")&&(n._isValid=t._isValid),n}function pi(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function gi(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function wi(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(J(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),vi(this,mi(i,n),t),this}}function vi(t,e,i,n){var r=e._milliseconds,s=si(e._days),o=si(e._months);t.isValid()&&(n=null==n||n,o&&ie(t,ft(t,"Month")+o*i),s&&mt(t,"Date",ft(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&C.updateOffset(t,s||o))}mi.fn=ni.prototype,mi.invalid=function(){return mi(NaN)};var yi=wi(1,"add"),bi=wi(-1,"subtract");function Ci(t){return"string"==typeof t||t instanceof String}function ki(t,e){if(t.date()<e.date())return-ki(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function xi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Ie(t))&&(this._locale=e),this)}C.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",C.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var Pi=F("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Mi(){return this._locale}var Di=1e3,Yi=6e4,Si=36e5,Ui=126227808e5;function Ni(t,e){return(t%e+e)%e}function Gi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Ui:new Date(t,e,i).valueOf()}function Ei(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Ui:Date.UTC(t,e,i)}function Ti(t,e){return e.erasAbbrRegex(t)}function Ai(){var t,e,i=[],n=[],r=[],s=[],o=this.eras();for(t=0,e=o.length;t<e;++t)n.push(At(o[t].name)),i.push(At(o[t].abbr)),r.push(At(o[t].narrow)),s.push(At(o[t].name)),s.push(At(o[t].abbr)),s.push(At(o[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Ii(t,e){tt(0,[t,t.length],0,e)}function Ri(t,e,i,n,r){var s;return null==t?de(this,n,r).year:(e>(s=ce(t,n,r))&&(e=s),Wi.call(this,t,e,i,n,r))}function Wi(t,e,i,n,r){var s=le(t,e,i,n,r),o=he(s.year,0,s.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}tt("N",0,0,"eraAbbr"),tt("NN",0,0,"eraAbbr"),tt("NNN",0,0,"eraAbbr"),tt("NNNN",0,0,"eraName"),tt("NNNNN",0,0,"eraNarrow"),tt("y",["y",1],"yo","eraYear"),tt("y",["yy",2],0,"eraYear"),tt("y",["yyy",3],0,"eraYear"),tt("y",["yyyy",4],0,"eraYear"),Et("N",Ti),Et("NN",Ti),Et("NNN",Ti),Et("NNNN",(function(t,e){return e.erasNameRegex(t)})),Et("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Rt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?E(i).era=r:E(i).invalidEra=t})),Et("y",Yt),Et("yy",Yt),Et("yyy",Yt),Et("yyyy",Yt),Et("yo",(function(t,e){return e._eraYearOrdinalRegex||Yt})),Rt(["y","yy","yyy","yyyy"],Lt),Rt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[Lt]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),tt(0,["gg",2],0,(function(){return this.weekYear()%100})),tt(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ii("gggg","weekYear"),Ii("ggggg","weekYear"),Ii("GGGG","isoWeekYear"),Ii("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),ht("weekYear",1),ht("isoWeekYear",1),Et("G",St),Et("g",St),Et("GG",Ct,wt),Et("gg",Ct,wt),Et("GGGG",Mt,yt),Et("gggg",Mt,yt),Et("GGGGG",Dt,bt),Et("ggggg",Dt,bt),Wt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=dt(t)})),Wt(["gg","GG"],(function(t,e,i,n){e[n]=C.parseTwoDigitYear(t)})),tt("Q",0,"Qo","quarter"),rt("quarter","Q"),ht("quarter",7),Et("Q",gt),Rt("Q",(function(t,e){e[Ft]=3*(dt(t)-1)})),tt("D",["DD",2],"Do","date"),rt("date","D"),ht("date",9),Et("D",Ct),Et("DD",Ct,wt),Et("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Rt(["D","DD"],jt),Rt("Do",(function(t,e){e[jt]=dt(t.match(Ct)[0])}));var Hi=ct("Date",!0);tt("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),ht("dayOfYear",4),Et("DDD",Pt),Et("DDDD",vt),Rt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=dt(t)})),tt("m",["mm",2],0,"minute"),rt("minute","m"),ht("minute",14),Et("m",Ct),Et("mm",Ct,wt),Rt(["m","mm"],Jt);var Oi=ct("Minutes",!1);tt("s",["ss",2],0,"second"),rt("second","s"),ht("second",15),Et("s",Ct),Et("ss",Ct,wt),Rt(["s","ss"],Bt);var Li,Fi,ji=ct("Seconds",!1);for(tt("S",0,0,(function(){return~~(this.millisecond()/100)})),tt(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),tt(0,["SSS",3],0,"millisecond"),tt(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),tt(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),tt(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),tt(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),tt(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),tt(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),ht("millisecond",16),Et("S",Pt,gt),Et("SS",Pt,wt),Et("SSS",Pt,vt),Li="SSSS";Li.length<=9;Li+="S")Et(Li,Yt);function Ki(t,e){e[Zt]=dt(1e3*("0."+t))}for(Li="S";Li.length<=9;Li+="S")Rt(Li,Ki);Fi=ct("Milliseconds",!1),tt("z",0,0,"zoneAbbr"),tt("zz",0,0,"zoneName");var Ji=H.prototype;function Bi(t){return t}Ji.add=yi,Ji.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?O(i=arguments[0])||S(i)||Ci(i)||Y(i)||function(t){var e=k(t),i=!1;return e&&(i=0===t.filter((function(e){return!Y(e)&&Ci(t)})).length),e&&i}(i)||function(t){var e,i=x(t)&&!M(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(e=0;e<s;e+=1)n=n||P(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=x(t)&&!M(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||P(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ve(),r=ui(n,this).startOf("day"),s=C.calendarFormat(this,r)||"sameElse",o=e&&(Z(e[s])?e[s].call(this,n):e[s]);return this.format(o||this.localeData().calendar(s,this,Ve(n)))},Ji.clone=function(){return new H(this)},Ji.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=ui(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=st(e)){case"year":s=ki(this,n)/12;break;case"month":s=ki(this,n);break;case"quarter":s=ki(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-r)/864e5;break;case"week":s=(this-n-r)/6048e5;break;default:s=this-n}return i?s:lt(s)},Ji.endOf=function(t){var e,i;if(void 0===(t=st(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ei:Gi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Si-Ni(e+(this._isUTC?0:this.utcOffset()*Yi),Si)-1;break;case"minute":e=this._d.valueOf(),e+=Yi-Ni(e,Yi)-1;break;case"second":e=this._d.valueOf(),e+=Di-Ni(e,Di)-1}return this._d.setTime(e),C.updateOffset(this,!0),this},Ji.format=function(t){t||(t=this.isUtc()?C.defaultFormatUtc:C.defaultFormat);var e=et(this,t);return this.localeData().postformat(e)},Ji.from=function(t,e){return this.isValid()&&(O(t)&&t.isValid()||Ve(t).isValid())?mi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ji.fromNow=function(t){return this.from(Ve(),t)},Ji.to=function(t,e){return this.isValid()&&(O(t)&&t.isValid()||Ve(t).isValid())?mi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ji.toNow=function(t){return this.to(Ve(),t)},Ji.get=function(t){return Z(this[t=st(t)])?this[t]():this},Ji.invalidAt=function(){return E(this).overflow},Ji.isAfter=function(t,e){var i=O(t)?t:Ve(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ji.isBefore=function(t,e){var i=O(t)?t:Ve(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ji.isBetween=function(t,e,i,n){var r=O(t)?t:Ve(t),s=O(e)?e:Ve(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))},Ji.isSame=function(t,e){var i,n=O(t)?t:Ve(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ji.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ji.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ji.isValid=function(){return T(this)},Ji.lang=Pi,Ji.locale=xi,Ji.localeData=Mi,Ji.max=ti,Ji.min=$e,Ji.parsingFlags=function(){return N({},E(this))},Ji.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)P(t,e)&&i.push({unit:e,priority:at[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=ot(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(Z(this[t=st(t)]))return this[t](e);return this},Ji.startOf=function(t){var e,i;if(void 0===(t=st(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ei:Gi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ni(e+(this._isUTC?0:this.utcOffset()*Yi),Si);break;case"minute":e=this._d.valueOf(),e-=Ni(e,Yi);break;case"second":e=this._d.valueOf(),e-=Ni(e,Di)}return this._d.setTime(e),C.updateOffset(this,!0),this},Ji.subtract=bi,Ji.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ji.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()}},Ji.toDate=function(){return new Date(this.valueOf())},Ji.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?et(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",et(i,"Z")):et(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ji.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ji[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ji.toJSON=function(){return this.isValid()?this.toISOString():null},Ji.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ji.unix=function(){return Math.floor(this.valueOf()/1e3)},Ji.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ji.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ji.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},Ji.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},Ji.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},Ji.eraYear=function(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-C(r[t].since).year())*i+r[t].offset;return this.year()},Ji.year=oe,Ji.isLeapYear=function(){return ut(this.year())},Ji.weekYear=function(t){return Ri.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ji.isoWeekYear=function(t){return Ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ji.quarter=Ji.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ji.month=ne,Ji.daysInMonth=function(){return qt(this.year(),this.month())},Ji.week=Ji.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ji.isoWeek=Ji.isoWeeks=function(t){var e=de(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ji.weeksInYear=function(){var t=this.localeData()._week;return ce(this.year(),t.dow,t.doy)},Ji.weeksInWeekYear=function(){var t=this.localeData()._week;return ce(this.weekYear(),t.dow,t.doy)},Ji.isoWeeksInYear=function(){return ce(this.year(),1,4)},Ji.isoWeeksInISOWeekYear=function(){return ce(this.isoWeekYear(),1,4)},Ji.date=Hi,Ji.day=Ji.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},Ji.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")},Ji.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},Ji.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")},Ji.hour=Ji.hours=De,Ji.minute=Ji.minutes=Oi,Ji.second=Ji.seconds=ji,Ji.millisecond=Ji.milliseconds=Fi,Ji.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=hi(Nt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=li(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?vi(this,mi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,C.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:li(this)},Ji.utc=function(t){return this.utcOffset(0,t)},Ji.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(li(this),"m")),this},Ji.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=hi(Ut,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ji.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ve(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ji.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ji.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ji.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ji.isUtc=di,Ji.isUTC=di,Ji.zoneAbbr=function(){return this._isUTC?"UTC":""},Ji.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ji.dates=F("dates accessor is deprecated. Use date instead.",Hi),Ji.months=F("months accessor is deprecated. Use month instead",ne),Ji.years=F("years accessor is deprecated. Use year instead",oe),Ji.zone=F("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()})),Ji.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!D(this._isDSTShifted))return this._isDSTShifted;var t,e={};return W(e,this),(e=Qe(e))._a?(t=e._isUTC?G(e._a):Ve(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<n;i++)dt(t[i])!==dt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Zi=_.prototype;function Xi(t,e,i,n){var r=Ie(),s=G().set(n,e);return r[i](s,t)}function _i(t,e,i){if(Y(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Xi(t,n,i,"month");return r}function qi(t,e,i,n){"boolean"==typeof t?(Y(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,Y(e)&&(i=e,e=void 0),e=e||"");var r,s=Ie(),o=t?s._week.dow:0,a=[];if(null!=i)return Xi(e,(i+o)%7,n,"day");for(r=0;r<7;r++)a[r]=Xi(e,(r+o)%7,n,"day");return a}Zi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return Z(n)?n.call(e,i):n},Zi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(Q).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Zi.invalidDate=function(){return this._invalidDate},Zi.ordinal=function(t){return this._ordinal.replace("%d",t)},Zi.preparse=Bi,Zi.postformat=Bi,Zi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return Z(r)?r(t,e,i,n):r.replace(/%d/i,t)},Zi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return Z(i)?i(e):i.replace(/%s/i,e)},Zi.set=function(t){var e,i;for(i in t)P(t,i)&&(Z(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Zi.eras=function(){var t,e,i,n=this._eras||Ie("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=C(n[t].since).startOf("day"),n[t].since=i.valueOf()),typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=C(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Zi.erasParse=function(t,e,i){var n,r,s,o,a,h=this.eras();for(t=t.toUpperCase(),n=0,r=h.length;n<r;++n)if(s=h[n].name.toUpperCase(),o=h[n].abbr.toUpperCase(),a=h[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(o===t)return h[n];break;case"NNNN":if(s===t)return h[n];break;case"NNNNN":if(a===t)return h[n]}else if([s,o,a].indexOf(t)>=0)return h[n]},Zi.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?C(t.since).year():C(t.since).year()+(e-t.offset)*i},Zi.erasAbbrRegex=function(t){return P(this,"_erasAbbrRegex")||Ai.call(this),t?this._erasAbbrRegex:this._erasRegex},Zi.erasNameRegex=function(t){return P(this,"_erasNameRegex")||Ai.call(this),t?this._erasNameRegex:this._erasRegex},Zi.erasNarrowRegex=function(t){return P(this,"_erasNarrowRegex")||Ai.call(this),t?this._erasNarrowRegex:this._erasRegex},Zi.months=function(t,e){return t?k(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Vt).test(e)?"format":"standalone"][t.month()]:k(this._months)?this._months:this._months.standalone},Zi.monthsShort=function(t,e){return t?k(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Vt.test(e)?"format":"standalone"][t.month()]:k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Zi.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return ee.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=G([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Zi.monthsRegex=function(t){return this._monthsParseExact?(P(this,"_monthsRegex")||re.call(this),t?this._monthsStrictRegex:this._monthsRegex):(P(this,"_monthsRegex")||(this._monthsRegex=te),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Zi.monthsShortRegex=function(t){return this._monthsParseExact?(P(this,"_monthsRegex")||re.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(P(this,"_monthsShortRegex")||(this._monthsShortRegex=$t),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Zi.week=function(t){return de(t,this._week.dow,this._week.doy).week},Zi.firstDayOfYear=function(){return this._week.doy},Zi.firstDayOfWeek=function(){return this._week.dow},Zi.weekdays=function(t,e){var i=k(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?fe(i,this._week.dow):t?i[t.day()]:i},Zi.weekdaysMin=function(t){return!0===t?fe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Zi.weekdaysShort=function(t){return!0===t?fe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Zi.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return be.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=G([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Zi.weekdaysRegex=function(t){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(P(this,"_weekdaysRegex")||(this._weekdaysRegex=we),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Zi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(P(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ve),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Zi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(P(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(P(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Zi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Zi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},Te("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),C.lang=F("moment.lang is deprecated. Use moment.locale instead.",Te),C.langData=F("moment.langData is deprecated. Use moment.localeData instead.",Ie);var Qi=Math.abs;function zi(t,e,i,n){var r=mi(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Vi(t){return t<0?Math.floor(t):Math.ceil(t)}function $i(t){return 4800*t/146097}function tn(t){return 146097*t/4800}function en(t){return function(){return this.as(t)}}var nn=en("ms"),rn=en("s"),sn=en("m"),on=en("h"),an=en("d"),hn=en("w"),un=en("M"),ln=en("Q"),dn=en("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var fn=cn("milliseconds"),mn=cn("seconds"),pn=cn("minutes"),gn=cn("hours"),wn=cn("days"),vn=cn("months"),yn=cn("years"),bn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var xn=Math.abs;function Pn(t){return(t>0)-(t<0)||+t}function Mn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,o,a,h=xn(this._milliseconds)/1e3,u=xn(this._days),l=xn(this._months),d=this.asSeconds();return d?(t=lt(h/60),e=lt(t/60),h%=60,t%=60,i=lt(l/12),l%=12,n=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=Pn(this._months)!==Pn(d)?"-":"",o=Pn(this._days)!==Pn(d)?"-":"",a=Pn(this._milliseconds)!==Pn(d)?"-":"",r+"P"+(i?s+i+"Y":"")+(l?s+l+"M":"")+(u?o+u+"D":"")+(e||t||h?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(h?a+n+"S":"")):"P0D"}var Dn=ni.prototype;Dn.isValid=function(){return this._isValid},Dn.abs=function(){var t=this._data;return this._milliseconds=Qi(this._milliseconds),this._days=Qi(this._days),this._months=Qi(this._months),t.milliseconds=Qi(t.milliseconds),t.seconds=Qi(t.seconds),t.minutes=Qi(t.minutes),t.hours=Qi(t.hours),t.months=Qi(t.months),t.years=Qi(t.years),this},Dn.add=function(t,e){return zi(this,t,e,1)},Dn.subtract=function(t,e){return zi(this,t,e,-1)},Dn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=st(t))||"quarter"===t||"year"===t)switch(i=this._months+$i(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(tn(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Dn.asMilliseconds=nn,Dn.asSeconds=rn,Dn.asMinutes=sn,Dn.asHours=on,Dn.asDays=an,Dn.asWeeks=hn,Dn.asMonths=un,Dn.asQuarters=ln,Dn.asYears=dn,Dn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*dt(this._months/12):NaN},Dn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,o=this._days,a=this._months,h=this._data;return s>=0&&o>=0&&a>=0||s<=0&&o<=0&&a<=0||(s+=864e5*Vi(tn(a)+o),o=0,a=0),h.milliseconds=s%1e3,t=lt(s/1e3),h.seconds=t%60,e=lt(t/60),h.minutes=e%60,i=lt(e/60),h.hours=i%24,o+=lt(i/24),a+=r=lt($i(o)),o-=Vi(tn(r)),n=lt(a/12),a%=12,h.days=o,h.months=a,h.years=n,this},Dn.clone=function(){return mi(this)},Dn.get=function(t){return t=st(t),this.isValid()?this[t+"s"]():NaN},Dn.milliseconds=fn,Dn.seconds=mn,Dn.minutes=pn,Dn.hours=gn,Dn.days=wn,Dn.weeks=function(){return lt(this.days()/7)},Dn.months=vn,Dn.years=yn,Dn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=Cn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},Cn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=mi(t).abs(),s=bn(r.as("s")),o=bn(r.as("m")),a=bn(r.as("h")),h=bn(r.as("d")),u=bn(r.as("M")),l=bn(r.as("w")),d=bn(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||o<=1&&["m"]||o<i.m&&["mm",o]||a<=1&&["h"]||a<i.h&&["hh",a]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(c=c||l<=1&&["w"]||l<i.w&&["ww",l]),(c=c||u<=1&&["M"]||u<i.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=e,c[3]=+t>0,c[4]=n,kn.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},Dn.toISOString=Mn,Dn.toString=Mn,Dn.toJSON=Mn,Dn.locale=xi,Dn.localeData=Mi,Dn.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mn),Dn.lang=Pi,tt("X",0,0,"unix"),tt("x",0,0,"valueOf"),Et("x",St),Et("X",/[+-]?\d+(\.\d{1,3})?/),Rt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Rt("x",(function(t,e,i){i._d=new Date(dt(t))})),
|
|
7
|
+
var y,b;function C(){return y.apply(null,arguments)}function k(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function P(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function x(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function M(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(x(t,e))return!1;return!0}function D(t){return void 0===t}function Y(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function S(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function U(t,e){var i,n=[],r=t.length;for(i=0;i<r;++i)n.push(e(t[i],i));return n}function N(t,e){for(var i in e)x(e,i)&&(t[i]=e[i]);return x(e,"toString")&&(t.toString=e.toString),x(e,"valueOf")&&(t.valueOf=e.valueOf),t}function G(t,e,i,n){return qe(t,e,i,n,!0).utc()}function E(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 T(t){if(null==t._isValid){var e=E(t),i=b.call(e.parsedDateParts,(function(t){return null!=t})),n=!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&&i);if(t._strict&&(n=n&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return n;t._isValid=n}return t._isValid}function I(t){var e=G(NaN);return null!=t?N(E(e),t):E(e).userInvalidated=!0,e}b=Array.prototype.some?Array.prototype.some:function(t){var e,i=Object(this),n=i.length>>>0;for(e=0;e<n;e++)if(e in i&&t.call(this,i[e],e,i))return!0;return!1};var A=C.momentProperties=[],R=!1;function W(t,e){var i,n,r,s=A.length;if(D(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),D(e._i)||(t._i=e._i),D(e._f)||(t._f=e._f),D(e._l)||(t._l=e._l),D(e._strict)||(t._strict=e._strict),D(e._tzm)||(t._tzm=e._tzm),D(e._isUTC)||(t._isUTC=e._isUTC),D(e._offset)||(t._offset=e._offset),D(e._pf)||(t._pf=E(e)),D(e._locale)||(t._locale=e._locale),s>0)for(i=0;i<s;i++)D(r=e[n=A[i]])||(t[n]=r);return t}function H(t){W(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===R&&(R=!0,C.updateOffset(this),R=!1)}function L(t){return t instanceof H||null!=t&&null!=t._isAMomentObject}function O(t){!1===C.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function F(t,e){var i=!0;return N((function(){if(null!=C.deprecationHandler&&C.deprecationHandler(null,t),i){var n,r,s,a=[],o=arguments.length;for(r=0;r<o;r++){if(n="","object"==typeof arguments[r]){for(s in n+="\n["+r+"] ",arguments[0])x(arguments[0],s)&&(n+=s+": "+arguments[0][s]+", ");n=n.slice(0,-2)}else n=arguments[r];a.push(n)}O(t+"\nArguments: "+Array.prototype.slice.call(a).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)}),e)}var j,K={};function J(t,e){null!=C.deprecationHandler&&C.deprecationHandler(t,e),K[t]||(O(e),K[t]=!0)}function Z(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function X(t,e){var i,n=N({},t);for(i in e)x(e,i)&&(P(t[i])&&P(e[i])?(n[i]={},N(n[i],t[i]),N(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)x(t,i)&&!x(e,i)&&P(t[i])&&(n[i]=N({},n[i]));return n}function _(t){null!=t&&this.set(t)}function Q(t,e,i){var n=""+Math.abs(t);return(t>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,e-n.length)).toString().substr(1)+n}C.suppressDeprecationWarnings=!1,C.deprecationHandler=null,j=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)x(t,e)&&i.push(e);return i};var z=/(\[[^\[]*\])|(\\)?([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,q=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V={},$={};function tt(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&($[t]=r),e&&($[e[0]]=function(){return Q(r.apply(this,arguments),e[1],e[2])}),i&&($[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function et(t,e){return t.isValid()?(e=it(e,t.localeData()),V[e]=V[e]||function(t){var e,i,n,r=t.match(z);for(e=0,i=r.length;e<i;e++)r[e]=$[r[e]]?$[r[e]]:(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,s="";for(n=0;n<i;n++)s+=Z(r[n])?r[n].call(e,t):r[n];return s}}(e),V[e](t)):t.localeData().invalidDate()}function it(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(q.lastIndex=0;i>=0&&q.test(t);)t=t.replace(q,n),q.lastIndex=0,i-=1;return t}var nt={};function rt(t,e){var i=t.toLowerCase();nt[i]=nt[i+"s"]=nt[e]=t}function st(t){return"string"==typeof t?nt[t]||nt[t.toLowerCase()]:void 0}function at(t){var e,i,n={};for(i in t)x(t,i)&&(e=st(i))&&(n[e]=t[i]);return n}var ot={};function ht(t,e){ot[t]=e}function lt(t){return t%4==0&&t%100!=0||t%400==0}function ut(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function dt(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=ut(e)),i}function ct(t,e){return function(i){return null!=i?(mt(this,t,i),C.updateOffset(this,e),this):ft(this,t)}}function ft(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function mt(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&<(t.year())&&1===t.month()&&29===t.date()?(i=dt(i),t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Qt(i,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](i))}var pt,gt=/\d/,wt=/\d\d/,vt=/\d{3}/,yt=/\d{4}/,bt=/[+-]?\d{6}/,Ct=/\d\d?/,kt=/\d\d\d\d?/,Pt=/\d\d\d\d\d\d?/,xt=/\d{1,3}/,Mt=/\d{1,4}/,Dt=/[+-]?\d{1,6}/,Yt=/\d+/,St=/[+-]?\d+/,Ut=/Z|[+-]\d\d:?\d\d/gi,Nt=/Z|[+-]\d\d(?::?\d\d)?/gi,Gt=/[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 Et(t,e,i){pt[t]=Z(e)?e:function(t){return t&&i?i:e}}function Tt(t,e){return x(pt,t)?pt[t](e._strict,e._locale):new RegExp(It(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,i,n,r){return e||i||n||r}))))}function It(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}pt={};var At={};function Rt(t,e){var i,n,r=e;for("string"==typeof t&&(t=[t]),Y(e)&&(r=function(t,i){i[e]=dt(t)}),n=t.length,i=0;i<n;i++)At[t[i]]=r}function Wt(t,e){Rt(t,(function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)}))}function Ht(t,e,i){null!=e&&x(At,t)&&At[t](e,i._a,i,t)}var Lt,Ot=0,Ft=1,jt=2,Kt=3,Jt=4,Bt=5,Zt=6,Xt=7,_t=8;function Qt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?lt(t)?29:28:31-i%7%2}Lt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},tt("M",["MM",2],"Mo",(function(){return this.month()+1})),tt("MMM",0,0,(function(t){return this.localeData().monthsShort(this,t)})),tt("MMMM",0,0,(function(t){return this.localeData().months(this,t)})),rt("month","M"),ht("month",8),Et("M",Ct),Et("MM",Ct,wt),Et("MMM",(function(t,e){return e.monthsShortRegex(t)})),Et("MMMM",(function(t,e){return e.monthsRegex(t)})),Rt(["M","MM"],(function(t,e){e[Ft]=dt(t)-1})),Rt(["MMM","MMMM"],(function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[Ft]=r:E(i).invalidMonth=t}));var zt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),qt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),Vt=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,$t=Gt,te=Gt;function ee(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)s=G([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(s,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Lt.call(this._shortMonthsParse,a))?r:null:-1!==(r=Lt.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=Lt.call(this._shortMonthsParse,a))||-1!==(r=Lt.call(this._longMonthsParse,a))?r:null:-1!==(r=Lt.call(this._longMonthsParse,a))||-1!==(r=Lt.call(this._shortMonthsParse,a))?r:null}function ie(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=dt(e);else if(!Y(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Qt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function ne(t){return null!=t?(ie(this,t),C.updateOffset(this,!0),this):ft(this,"Month")}function re(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],s=[];for(e=0;e<12;e++)i=G([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),s.push(this.months(i,"")),s.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),s.sort(t),e=0;e<12;e++)n[e]=It(n[e]),r[e]=It(r[e]);for(e=0;e<24;e++)s[e]=It(s[e]);this._monthsRegex=new RegExp("^("+s.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function se(t){return lt(t)?366:365}tt("Y",0,0,(function(){var t=this.year();return t<=9999?Q(t,4):"+"+t})),tt(0,["YY",2],0,(function(){return this.year()%100})),tt(0,["YYYY",4],0,"year"),tt(0,["YYYYY",5],0,"year"),tt(0,["YYYYYY",6,!0],0,"year"),rt("year","y"),ht("year",1),Et("Y",St),Et("YY",Ct,wt),Et("YYYY",Mt,yt),Et("YYYYY",Dt,bt),Et("YYYYYY",Dt,bt),Rt(["YYYYY","YYYYYY"],Ot),Rt("YYYY",(function(t,e){e[Ot]=2===t.length?C.parseTwoDigitYear(t):dt(t)})),Rt("YY",(function(t,e){e[Ot]=C.parseTwoDigitYear(t)})),Rt("Y",(function(t,e){e[Ot]=parseInt(t,10)})),C.parseTwoDigitYear=function(t){return dt(t)+(dt(t)>68?1900:2e3)};var ae=ct("FullYear",!0);function oe(t,e,i,n,r,s,a){var o;return t<100&&t>=0?(o=new Date(t+400,e,i,n,r,s,a),isFinite(o.getFullYear())&&o.setFullYear(t)):o=new Date(t,e,i,n,r,s,a),o}function he(t){var e,i;return t<100&&t>=0?((i=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function le(t,e,i){var n=7+e-i;return-(7+he(t,0,n).getUTCDay()-e)%7+n-1}function ue(t,e,i,n,r){var s,a,o=1+7*(e-1)+(7+i-n)%7+le(t,n,r);return o<=0?a=se(s=t-1)+o:o>se(t)?(s=t+1,a=o-se(t)):(s=t,a=o),{year:s,dayOfYear:a}}function de(t,e,i){var n,r,s=le(t.year(),e,i),a=Math.floor((t.dayOfYear()-s-1)/7)+1;return a<1?n=a+ce(r=t.year()-1,e,i):a>ce(t.year(),e,i)?(n=a-ce(t.year(),e,i),r=t.year()+1):(r=t.year(),n=a),{week:n,year:r}}function ce(t,e,i){var n=le(t,e,i),r=le(t+1,e,i);return(se(t)-n+r)/7}function fe(t,e){return t.slice(e,7).concat(t.slice(0,e))}tt("w",["ww",2],"wo","week"),tt("W",["WW",2],"Wo","isoWeek"),rt("week","w"),rt("isoWeek","W"),ht("week",5),ht("isoWeek",5),Et("w",Ct),Et("ww",Ct,wt),Et("W",Ct),Et("WW",Ct,wt),Wt(["w","ww","W","WW"],(function(t,e,i,n){e[n.substr(0,1)]=dt(t)})),tt("d",0,"do","day"),tt("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),tt("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),tt("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),tt("e",0,0,"weekday"),tt("E",0,0,"isoWeekday"),rt("day","d"),rt("weekday","e"),rt("isoWeekday","E"),ht("day",11),ht("weekday",11),ht("isoWeekday",11),Et("d",Ct),Et("e",Ct),Et("E",Ct),Et("dd",(function(t,e){return e.weekdaysMinRegex(t)})),Et("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),Et("dddd",(function(t,e){return e.weekdaysRegex(t)})),Wt(["dd","ddd","dddd"],(function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:E(i).invalidWeekday=t})),Wt(["d","e","E"],(function(t,e,i,n){e[n]=dt(t)}));var me="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),ge="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),we=Gt,ve=Gt,ye=Gt;function be(t,e,i){var n,r,s,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)s=G([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(s,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Lt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Lt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=Lt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=Lt.call(this._weekdaysParse,a))||-1!==(r=Lt.call(this._shortWeekdaysParse,a))||-1!==(r=Lt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=Lt.call(this._shortWeekdaysParse,a))||-1!==(r=Lt.call(this._weekdaysParse,a))||-1!==(r=Lt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=Lt.call(this._minWeekdaysParse,a))||-1!==(r=Lt.call(this._weekdaysParse,a))||-1!==(r=Lt.call(this._shortWeekdaysParse,a))?r:null}function Ce(){function t(t,e){return e.length-t.length}var e,i,n,r,s,a=[],o=[],h=[],l=[];for(e=0;e<7;e++)i=G([2e3,1]).day(e),n=It(this.weekdaysMin(i,"")),r=It(this.weekdaysShort(i,"")),s=It(this.weekdays(i,"")),a.push(n),o.push(r),h.push(s),l.push(n),l.push(r),l.push(s);a.sort(t),o.sort(t),h.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+h.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function ke(){return this.hours()%12||12}function Pe(t,e){tt(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function xe(t,e){return e._meridiemParse}tt("H",["HH",2],0,"hour"),tt("h",["hh",2],0,ke),tt("k",["kk",2],0,(function(){return this.hours()||24})),tt("hmm",0,0,(function(){return""+ke.apply(this)+Q(this.minutes(),2)})),tt("hmmss",0,0,(function(){return""+ke.apply(this)+Q(this.minutes(),2)+Q(this.seconds(),2)})),tt("Hmm",0,0,(function(){return""+this.hours()+Q(this.minutes(),2)})),tt("Hmmss",0,0,(function(){return""+this.hours()+Q(this.minutes(),2)+Q(this.seconds(),2)})),Pe("a",!0),Pe("A",!1),rt("hour","h"),ht("hour",13),Et("a",xe),Et("A",xe),Et("H",Ct),Et("h",Ct),Et("k",Ct),Et("HH",Ct,wt),Et("hh",Ct,wt),Et("kk",Ct,wt),Et("hmm",kt),Et("hmmss",Pt),Et("Hmm",kt),Et("Hmmss",Pt),Rt(["H","HH"],Kt),Rt(["k","kk"],(function(t,e){var i=dt(t);e[Kt]=24===i?0:i})),Rt(["a","A"],(function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t})),Rt(["h","hh"],(function(t,e,i){e[Kt]=dt(t),E(i).bigHour=!0})),Rt("hmm",(function(t,e,i){var n=t.length-2;e[Kt]=dt(t.substr(0,n)),e[Jt]=dt(t.substr(n)),E(i).bigHour=!0})),Rt("hmmss",(function(t,e,i){var n=t.length-4,r=t.length-2;e[Kt]=dt(t.substr(0,n)),e[Jt]=dt(t.substr(n,2)),e[Bt]=dt(t.substr(r)),E(i).bigHour=!0})),Rt("Hmm",(function(t,e){var i=t.length-2;e[Kt]=dt(t.substr(0,i)),e[Jt]=dt(t.substr(i))})),Rt("Hmmss",(function(t,e){var i=t.length-4,n=t.length-2;e[Kt]=dt(t.substr(0,i)),e[Jt]=dt(t.substr(i,2)),e[Bt]=dt(t.substr(n))}));var Me,De=ct("Hours",!0),Ye={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:zt,monthsShort:qt,week:{dow:0,doy:6},weekdays:me,weekdaysMin:ge,weekdaysShort:pe,meridiemParse:/[ap]\.?m?\.?/i},Se={},Ue={};function Ne(t,e){var i,n=Math.min(t.length,e.length);for(i=0;i<n;i+=1)if(t[i]!==e[i])return i;return n}function Ge(t){return t?t.toLowerCase().replace("_","-"):t}function Ee(t){var e=null;if(void 0===Se[t]&&"undefined"!=typeof module&&module&&module.exports&&function(t){return null!=t.match("^[^/\\\\]*$")}(t))try{e=Me._abbr,require("./locale/"+t),Te(e)}catch(e){Se[t]=null}return Se[t]}function Te(t,e){var i;return t&&((i=D(e)?Ae(t):Ie(t,e))?Me=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Me._abbr}function Ie(t,e){if(null!==e){var i,n=Ye;if(e.abbr=t,null!=Se[t])J("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=Se[t]._config;else if(null!=e.parentLocale)if(null!=Se[e.parentLocale])n=Se[e.parentLocale]._config;else{if(null==(i=Ee(e.parentLocale)))return Ue[e.parentLocale]||(Ue[e.parentLocale]=[]),Ue[e.parentLocale].push({name:t,config:e}),null;n=i._config}return Se[t]=new _(X(n,e)),Ue[t]&&Ue[t].forEach((function(t){Ie(t.name,t.config)})),Te(t),Se[t]}return delete Se[t],null}function Ae(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Me;if(!k(t)){if(e=Ee(t))return e;t=[t]}return function(t){for(var e,i,n,r,s=0;s<t.length;){for(e=(r=Ge(t[s]).split("-")).length,i=(i=Ge(t[s+1]))?i.split("-"):null;e>0;){if(n=Ee(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&Ne(r,i)>=e-1)break;e--}s++}return Me}(t)}function Re(t){var e,i=t._a;return i&&-2===E(t).overflow&&(e=i[Ft]<0||i[Ft]>11?Ft:i[jt]<1||i[jt]>Qt(i[Ot],i[Ft])?jt:i[Kt]<0||i[Kt]>24||24===i[Kt]&&(0!==i[Jt]||0!==i[Bt]||0!==i[Zt])?Kt:i[Jt]<0||i[Jt]>59?Jt:i[Bt]<0||i[Bt]>59?Bt:i[Zt]<0||i[Zt]>999?Zt:-1,E(t)._overflowDayOfYear&&(e<Ot||e>jt)&&(e=jt),E(t)._overflowWeeks&&-1===e&&(e=Xt),E(t)._overflowWeekday&&-1===e&&(e=_t),E(t).overflow=e),t}var We=/^\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)?)?$/,He=/^\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)?)?$/,Le=/Z|[+-]\d\d(?::?\d\d)?/,Oe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Fe=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],je=/^\/?Date\((-?\d+)/i,Ke=/^(?:(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}))$/,Je={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Be(t){var e,i,n,r,s,a,o=t._i,h=We.exec(o)||He.exec(o),l=Oe.length,u=Fe.length;if(h){for(E(t).iso=!0,e=0,i=l;e<i;e++)if(Oe[e][1].exec(h[1])){r=Oe[e][0],n=!1!==Oe[e][2];break}if(null==r)return void(t._isValid=!1);if(h[3]){for(e=0,i=u;e<i;e++)if(Fe[e][1].exec(h[3])){s=(h[2]||" ")+Fe[e][0];break}if(null==s)return void(t._isValid=!1)}if(!n&&null!=s)return void(t._isValid=!1);if(h[4]){if(!Le.exec(h[4]))return void(t._isValid=!1);a="Z"}t._f=r+(s||"")+(a||""),Qe(t)}else t._isValid=!1}function Ze(t){var e,i,n,r,s,a,o,h,l,u=Ke.exec(t._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(i=u[3],n=u[2],r=u[5],s=u[6],a=u[7],o=[(h=u[4],l=parseInt(h,10),l<=49?2e3+l:l<=999?1900+l:l),qt.indexOf(i),parseInt(n,10),parseInt(r,10),parseInt(s,10)],a&&o.push(parseInt(a,10)),!function(t,e,i){return!t||pe.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(E(i).weekdayMismatch=!0,i._isValid=!1,!1)}(u[1],e=o,t))return;t._a=e,t._tzm=function(t,e,i){if(t)return Je[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(u[8],u[9],u[10]),t._d=he.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),E(t).rfc2822=!0}else t._isValid=!1}function Xe(t,e,i){return null!=t?t:null!=e?e:i}function _e(t){var e,i,n,r,s,a=[];if(!t._d){for(n=function(t){var e=new Date(C.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[jt]&&null==t._a[Ft]&&function(t){var e,i,n,r,s,a,o,h,l;null!=(e=t._w).GG||null!=e.W||null!=e.E?(s=1,a=4,i=Xe(e.GG,t._a[Ot],de(Ve(),1,4).year),n=Xe(e.W,1),((r=Xe(e.E,1))<1||r>7)&&(h=!0)):(s=t._locale._week.dow,a=t._locale._week.doy,l=de(Ve(),s,a),i=Xe(e.gg,t._a[Ot],l.year),n=Xe(e.w,l.week),null!=e.d?((r=e.d)<0||r>6)&&(h=!0):null!=e.e?(r=e.e+s,(e.e<0||e.e>6)&&(h=!0)):r=s),n<1||n>ce(i,s,a)?E(t)._overflowWeeks=!0:null!=h?E(t)._overflowWeekday=!0:(o=ue(i,n,r,s,a),t._a[Ot]=o.year,t._dayOfYear=o.dayOfYear)}(t),null!=t._dayOfYear&&(s=Xe(t._a[Ot],n[Ot]),(t._dayOfYear>se(s)||0===t._dayOfYear)&&(E(t)._overflowDayOfYear=!0),i=he(s,0,t._dayOfYear),t._a[Ft]=i.getUTCMonth(),t._a[jt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Kt]&&0===t._a[Jt]&&0===t._a[Bt]&&0===t._a[Zt]&&(t._nextDay=!0,t._a[Kt]=0),t._d=(t._useUTC?he:oe).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[Kt]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(E(t).weekdayMismatch=!0)}}function Qe(t){if(t._f!==C.ISO_8601)if(t._f!==C.RFC_2822){t._a=[],E(t).empty=!0;var e,i,n,r,s,a,o,h=""+t._i,l=h.length,u=0;for(o=(n=it(t._f,t._locale).match(z)||[]).length,e=0;e<o;e++)(i=(h.match(Tt(r=n[e],t))||[])[0])&&((s=h.substr(0,h.indexOf(i))).length>0&&E(t).unusedInput.push(s),h=h.slice(h.indexOf(i)+i.length),u+=i.length),$[r]?(i?E(t).empty=!1:E(t).unusedTokens.push(r),Ht(r,i,t)):t._strict&&!i&&E(t).unusedTokens.push(r);E(t).charsLeftOver=l-u,h.length>0&&E(t).unusedInput.push(h),t._a[Kt]<=12&&!0===E(t).bigHour&&t._a[Kt]>0&&(E(t).bigHour=void 0),E(t).parsedDateParts=t._a.slice(0),E(t).meridiem=t._meridiem,t._a[Kt]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):null!=t.isPM?((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0),e):e}(t._locale,t._a[Kt],t._meridiem),null!==(a=E(t).era)&&(t._a[Ot]=t._locale.erasConvertYear(a,t._a[Ot])),_e(t),Re(t)}else Ze(t);else Be(t)}function ze(t){var e=t._i,i=t._f;return t._locale=t._locale||Ae(t._l),null===e||void 0===i&&""===e?I({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),L(e)?new H(Re(e)):(S(e)?t._d=e:k(i)?function(t){var e,i,n,r,s,a,o=!1,h=t._f.length;if(0===h)return E(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<h;r++)s=0,a=!1,e=W({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Qe(e),T(e)&&(a=!0),s+=E(e).charsLeftOver,s+=10*E(e).unusedTokens.length,E(e).score=s,o?s<n&&(n=s,i=e):(null==n||s<n||a)&&(n=s,i=e,a&&(o=!0));N(t,i||e)}(t):i?Qe(t):function(t){var e=t._i;D(e)?t._d=new Date(C.now()):S(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=je.exec(t._i);null===e?(Be(t),!1===t._isValid&&(delete t._isValid,Ze(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:C.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):k(e)?(t._a=U(e.slice(0),(function(t){return parseInt(t,10)})),_e(t)):P(e)?function(t){if(!t._d){var e=at(t._i);t._a=U([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)})),_e(t)}}(t):Y(e)?t._d=new Date(e):C.createFromInputFallback(t)}(t),T(t)||(t._d=null),t))}function qe(t,e,i,n,r){var s,a={};return!0!==e&&!1!==e||(n=e,e=void 0),!0!==i&&!1!==i||(n=i,i=void 0),(P(t)&&M(t)||k(t)&&0===t.length)&&(t=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=r,a._l=i,a._i=t,a._f=e,a._strict=n,(s=new H(Re(ze(a))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function Ve(t,e,i,n){return qe(t,e,i,n,!1)}C.createFromInputFallback=F("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":""))})),C.ISO_8601=function(){},C.RFC_2822=function(){};var $e=F("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ve.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:I()})),ti=F("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",(function(){var t=Ve.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:I()}));function ei(t,e){var i,n;if(1===e.length&&k(e[0])&&(e=e[0]),!e.length)return Ve();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var ii=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ni(t){var e=at(t),i=e.year||0,n=e.quarter||0,r=e.month||0,s=e.week||e.isoWeek||0,a=e.day||0,o=e.hour||0,h=e.minute||0,l=e.second||0,u=e.millisecond||0;this._isValid=function(t){var e,i,n=!1,r=ii.length;for(e in t)if(x(t,e)&&(-1===Lt.call(ii,e)||null!=t[e]&&isNaN(t[e])))return!1;for(i=0;i<r;++i)if(t[ii[i]]){if(n)return!1;parseFloat(t[ii[i]])!==dt(t[ii[i]])&&(n=!0)}return!0}(e),this._milliseconds=+u+1e3*l+6e4*h+1e3*o*60*60,this._days=+a+7*s,this._months=+r+3*n+12*i,this._data={},this._locale=Ae(),this._bubble()}function ri(t){return t instanceof ni}function si(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function ai(t,e){tt(t,0,0,(function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+Q(~~(t/60),2)+e+Q(~~t%60,2)}))}ai("Z",":"),ai("ZZ",""),Et("Z",Nt),Et("ZZ",Nt),Rt(["Z","ZZ"],(function(t,e,i){i._useUTC=!0,i._tzm=hi(Nt,t)}));var oi=/([\+\-]|\d\d)/gi;function hi(t,e){var i,n,r=(e||"").match(t);return null===r?null:0===(n=60*(i=((r[r.length-1]||[])+"").match(oi)||["-",0,0])[1]+dt(i[2]))?0:"+"===i[0]?n:-n}function li(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(L(t)||S(t)?t.valueOf():Ve(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),C.updateOffset(i,!1),i):Ve(t).local()}function ui(t){return-Math.round(t._d.getTimezoneOffset())}function di(){return!!this.isValid()&&this._isUTC&&0===this._offset}C.updateOffset=function(){};var ci=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,fi=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function mi(t,e){var i,n,r,s,a,o,h=t,l=null;return ri(t)?h={ms:t._milliseconds,d:t._days,M:t._months}:Y(t)||!isNaN(+t)?(h={},e?h[e]=+t:h.milliseconds=+t):(l=ci.exec(t))?(i="-"===l[1]?-1:1,h={y:0,d:dt(l[jt])*i,h:dt(l[Kt])*i,m:dt(l[Jt])*i,s:dt(l[Bt])*i,ms:dt(si(1e3*l[Zt]))*i}):(l=fi.exec(t))?h={y:pi(l[2],i="-"===l[1]?-1:1),M:pi(l[3],i),w:pi(l[4],i),d:pi(l[5],i),h:pi(l[6],i),m:pi(l[7],i),s:pi(l[8],i)}:null==h?h={}:"object"==typeof h&&("from"in h||"to"in h)&&(s=Ve(h.from),a=Ve(h.to),r=s.isValid()&&a.isValid()?(a=li(a,s),s.isBefore(a)?o=gi(s,a):((o=gi(a,s)).milliseconds=-o.milliseconds,o.months=-o.months),o):{milliseconds:0,months:0},(h={}).ms=r.milliseconds,h.M=r.months),n=new ni(h),ri(t)&&x(t,"_locale")&&(n._locale=t._locale),ri(t)&&x(t,"_isValid")&&(n._isValid=t._isValid),n}function pi(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function gi(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function wi(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(J(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),vi(this,mi(i,n),t),this}}function vi(t,e,i,n){var r=e._milliseconds,s=si(e._days),a=si(e._months);t.isValid()&&(n=null==n||n,a&&ie(t,ft(t,"Month")+a*i),s&&mt(t,"Date",ft(t,"Date")+s*i),r&&t._d.setTime(t._d.valueOf()+r*i),n&&C.updateOffset(t,s||a))}mi.fn=ni.prototype,mi.invalid=function(){return mi(NaN)};var yi=wi(1,"add"),bi=wi(-1,"subtract");function Ci(t){return"string"==typeof t||t instanceof String}function ki(t,e){if(t.date()<e.date())return-ki(e,t);var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function Pi(t){var e;return void 0===t?this._locale._abbr:(null!=(e=Ae(t))&&(this._locale=e),this)}C.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",C.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var xi=F("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",(function(t){return void 0===t?this.localeData():this.locale(t)}));function Mi(){return this._locale}var Di=1e3,Yi=6e4,Si=36e5,Ui=126227808e5;function Ni(t,e){return(t%e+e)%e}function Gi(t,e,i){return t<100&&t>=0?new Date(t+400,e,i)-Ui:new Date(t,e,i).valueOf()}function Ei(t,e,i){return t<100&&t>=0?Date.UTC(t+400,e,i)-Ui:Date.UTC(t,e,i)}function Ti(t,e){return e.erasAbbrRegex(t)}function Ii(){var t,e,i=[],n=[],r=[],s=[],a=this.eras();for(t=0,e=a.length;t<e;++t)n.push(It(a[t].name)),i.push(It(a[t].abbr)),r.push(It(a[t].narrow)),s.push(It(a[t].name)),s.push(It(a[t].abbr)),s.push(It(a[t].narrow));this._erasRegex=new RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+n.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+i.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function Ai(t,e){tt(0,[t,t.length],0,e)}function Ri(t,e,i,n,r){var s;return null==t?de(this,n,r).year:(e>(s=ce(t,n,r))&&(e=s),Wi.call(this,t,e,i,n,r))}function Wi(t,e,i,n,r){var s=ue(t,e,i,n,r),a=he(s.year,0,s.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}tt("N",0,0,"eraAbbr"),tt("NN",0,0,"eraAbbr"),tt("NNN",0,0,"eraAbbr"),tt("NNNN",0,0,"eraName"),tt("NNNNN",0,0,"eraNarrow"),tt("y",["y",1],"yo","eraYear"),tt("y",["yy",2],0,"eraYear"),tt("y",["yyy",3],0,"eraYear"),tt("y",["yyyy",4],0,"eraYear"),Et("N",Ti),Et("NN",Ti),Et("NNN",Ti),Et("NNNN",(function(t,e){return e.erasNameRegex(t)})),Et("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Rt(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,i,n){var r=i._locale.erasParse(t,n,i._strict);r?E(i).era=r:E(i).invalidEra=t})),Et("y",Yt),Et("yy",Yt),Et("yyy",Yt),Et("yyyy",Yt),Et("yo",(function(t,e){return e._eraYearOrdinalRegex||Yt})),Rt(["y","yy","yyy","yyyy"],Ot),Rt(["yo"],(function(t,e,i){var n;i._locale._eraYearOrdinalRegex&&(n=t.match(i._locale._eraYearOrdinalRegex)),e[Ot]=i._locale.eraYearOrdinalParse?i._locale.eraYearOrdinalParse(t,n):parseInt(t,10)})),tt(0,["gg",2],0,(function(){return this.weekYear()%100})),tt(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),Ai("gggg","weekYear"),Ai("ggggg","weekYear"),Ai("GGGG","isoWeekYear"),Ai("GGGGG","isoWeekYear"),rt("weekYear","gg"),rt("isoWeekYear","GG"),ht("weekYear",1),ht("isoWeekYear",1),Et("G",St),Et("g",St),Et("GG",Ct,wt),Et("gg",Ct,wt),Et("GGGG",Mt,yt),Et("gggg",Mt,yt),Et("GGGGG",Dt,bt),Et("ggggg",Dt,bt),Wt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,i,n){e[n.substr(0,2)]=dt(t)})),Wt(["gg","GG"],(function(t,e,i,n){e[n]=C.parseTwoDigitYear(t)})),tt("Q",0,"Qo","quarter"),rt("quarter","Q"),ht("quarter",7),Et("Q",gt),Rt("Q",(function(t,e){e[Ft]=3*(dt(t)-1)})),tt("D",["DD",2],"Do","date"),rt("date","D"),ht("date",9),Et("D",Ct),Et("DD",Ct,wt),Et("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Rt(["D","DD"],jt),Rt("Do",(function(t,e){e[jt]=dt(t.match(Ct)[0])}));var Hi=ct("Date",!0);tt("DDD",["DDDD",3],"DDDo","dayOfYear"),rt("dayOfYear","DDD"),ht("dayOfYear",4),Et("DDD",xt),Et("DDDD",vt),Rt(["DDD","DDDD"],(function(t,e,i){i._dayOfYear=dt(t)})),tt("m",["mm",2],0,"minute"),rt("minute","m"),ht("minute",14),Et("m",Ct),Et("mm",Ct,wt),Rt(["m","mm"],Jt);var Li=ct("Minutes",!1);tt("s",["ss",2],0,"second"),rt("second","s"),ht("second",15),Et("s",Ct),Et("ss",Ct,wt),Rt(["s","ss"],Bt);var Oi,Fi,ji=ct("Seconds",!1);for(tt("S",0,0,(function(){return~~(this.millisecond()/100)})),tt(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),tt(0,["SSS",3],0,"millisecond"),tt(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),tt(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),tt(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),tt(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),tt(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),tt(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),rt("millisecond","ms"),ht("millisecond",16),Et("S",xt,gt),Et("SS",xt,wt),Et("SSS",xt,vt),Oi="SSSS";Oi.length<=9;Oi+="S")Et(Oi,Yt);function Ki(t,e){e[Zt]=dt(1e3*("0."+t))}for(Oi="S";Oi.length<=9;Oi+="S")Rt(Oi,Ki);Fi=ct("Milliseconds",!1),tt("z",0,0,"zoneAbbr"),tt("zz",0,0,"zoneName");var Ji=H.prototype;function Bi(t){return t}Ji.add=yi,Ji.calendar=function(t,e){var i;1===arguments.length&&(arguments[0]?L(i=arguments[0])||S(i)||Ci(i)||Y(i)||function(t){var e=k(t),i=!1;return e&&(i=0===t.filter((function(e){return!Y(e)&&Ci(t)})).length),e&&i}(i)||function(t){var e,i=P(t)&&!M(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s=r.length;for(e=0;e<s;e+=1)n=n||x(t,r[e]);return i&&n}(i)||null==i?(t=arguments[0],e=void 0):function(t){var e,i=P(t)&&!M(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<r.length;e+=1)n=n||x(t,r[e]);return i&&n}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Ve(),r=li(n,this).startOf("day"),s=C.calendarFormat(this,r)||"sameElse",a=e&&(Z(e[s])?e[s].call(this,n):e[s]);return this.format(a||this.localeData().calendar(s,this,Ve(n)))},Ji.clone=function(){return new H(this)},Ji.diff=function(t,e,i){var n,r,s;if(!this.isValid())return NaN;if(!(n=li(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=st(e)){case"year":s=ki(this,n)/12;break;case"month":s=ki(this,n);break;case"quarter":s=ki(this,n)/3;break;case"second":s=(this-n)/1e3;break;case"minute":s=(this-n)/6e4;break;case"hour":s=(this-n)/36e5;break;case"day":s=(this-n-r)/864e5;break;case"week":s=(this-n-r)/6048e5;break;default:s=this-n}return i?s:ut(s)},Ji.endOf=function(t){var e,i;if(void 0===(t=st(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ei:Gi,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Si-Ni(e+(this._isUTC?0:this.utcOffset()*Yi),Si)-1;break;case"minute":e=this._d.valueOf(),e+=Yi-Ni(e,Yi)-1;break;case"second":e=this._d.valueOf(),e+=Di-Ni(e,Di)-1}return this._d.setTime(e),C.updateOffset(this,!0),this},Ji.format=function(t){t||(t=this.isUtc()?C.defaultFormatUtc:C.defaultFormat);var e=et(this,t);return this.localeData().postformat(e)},Ji.from=function(t,e){return this.isValid()&&(L(t)&&t.isValid()||Ve(t).isValid())?mi({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ji.fromNow=function(t){return this.from(Ve(),t)},Ji.to=function(t,e){return this.isValid()&&(L(t)&&t.isValid()||Ve(t).isValid())?mi({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Ji.toNow=function(t){return this.to(Ve(),t)},Ji.get=function(t){return Z(this[t=st(t)])?this[t]():this},Ji.invalidAt=function(){return E(this).overflow},Ji.isAfter=function(t,e){var i=L(t)?t:Ve(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},Ji.isBefore=function(t,e){var i=L(t)?t:Ve(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},Ji.isBetween=function(t,e,i,n){var r=L(t)?t:Ve(t),s=L(e)?e:Ve(e);return!!(this.isValid()&&r.isValid()&&s.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(s,i):!this.isAfter(s,i))},Ji.isSame=function(t,e){var i,n=L(t)?t:Ve(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=st(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},Ji.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Ji.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Ji.isValid=function(){return T(this)},Ji.lang=xi,Ji.locale=Pi,Ji.localeData=Mi,Ji.max=ti,Ji.min=$e,Ji.parsingFlags=function(){return N({},E(this))},Ji.set=function(t,e){if("object"==typeof t){var i,n=function(t){var e,i=[];for(e in t)x(t,e)&&i.push({unit:e,priority:ot[e]});return i.sort((function(t,e){return t.priority-e.priority})),i}(t=at(t)),r=n.length;for(i=0;i<r;i++)this[n[i].unit](t[n[i].unit])}else if(Z(this[t=st(t)]))return this[t](e);return this},Ji.startOf=function(t){var e,i;if(void 0===(t=st(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?Ei:Gi,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Ni(e+(this._isUTC?0:this.utcOffset()*Yi),Si);break;case"minute":e=this._d.valueOf(),e-=Ni(e,Yi);break;case"second":e=this._d.valueOf(),e-=Ni(e,Di)}return this._d.setTime(e),C.updateOffset(this,!0),this},Ji.subtract=bi,Ji.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Ji.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()}},Ji.toDate=function(){return new Date(this.valueOf())},Ji.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||i.year()>9999?et(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",et(i,"Z")):et(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Ji.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,i="moment",n="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",n="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n+'[")]')},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Ji[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Ji.toJSON=function(){return this.isValid()?this.toISOString():null},Ji.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ji.unix=function(){return Math.floor(this.valueOf()/1e3)},Ji.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Ji.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Ji.eraName=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].name;if(n[t].until<=i&&i<=n[t].since)return n[t].name}return""},Ji.eraNarrow=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].narrow;if(n[t].until<=i&&i<=n[t].since)return n[t].narrow}return""},Ji.eraAbbr=function(){var t,e,i,n=this.localeData().eras();for(t=0,e=n.length;t<e;++t){if(i=this.clone().startOf("day").valueOf(),n[t].since<=i&&i<=n[t].until)return n[t].abbr;if(n[t].until<=i&&i<=n[t].since)return n[t].abbr}return""},Ji.eraYear=function(){var t,e,i,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(i=r[t].since<=r[t].until?1:-1,n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return(this.year()-C(r[t].since).year())*i+r[t].offset;return this.year()},Ji.year=ae,Ji.isLeapYear=function(){return lt(this.year())},Ji.weekYear=function(t){return Ri.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Ji.isoWeekYear=function(t){return Ri.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Ji.quarter=Ji.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Ji.month=ne,Ji.daysInMonth=function(){return Qt(this.year(),this.month())},Ji.week=Ji.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Ji.isoWeek=Ji.isoWeeks=function(t){var e=de(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Ji.weeksInYear=function(){var t=this.localeData()._week;return ce(this.year(),t.dow,t.doy)},Ji.weeksInWeekYear=function(){var t=this.localeData()._week;return ce(this.weekYear(),t.dow,t.doy)},Ji.isoWeeksInYear=function(){return ce(this.year(),1,4)},Ji.isoWeeksInISOWeekYear=function(){return ce(this.isoWeekYear(),1,4)},Ji.date=Hi,Ji.day=Ji.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},Ji.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")},Ji.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},Ji.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")},Ji.hour=Ji.hours=De,Ji.minute=Ji.minutes=Li,Ji.second=Ji.seconds=ji,Ji.millisecond=Ji.milliseconds=Fi,Ji.utcOffset=function(t,e,i){var n,r=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=hi(Nt,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=ui(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),r!==t&&(!e||this._changeInProgress?vi(this,mi(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,C.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?r:ui(this)},Ji.utc=function(t){return this.utcOffset(0,t)},Ji.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ui(this),"m")),this},Ji.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=hi(Ut,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Ji.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Ve(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Ji.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ji.isLocal=function(){return!!this.isValid()&&!this._isUTC},Ji.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Ji.isUtc=di,Ji.isUTC=di,Ji.zoneAbbr=function(){return this._isUTC?"UTC":""},Ji.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ji.dates=F("dates accessor is deprecated. Use date instead.",Hi),Ji.months=F("months accessor is deprecated. Use month instead",ne),Ji.years=F("years accessor is deprecated. Use year instead",ae),Ji.zone=F("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()})),Ji.isDSTShifted=F("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!D(this._isDSTShifted))return this._isDSTShifted;var t,e={};return W(e,this),(e=ze(e))._a?(t=e._isUTC?G(e._a):Ve(e._a),this._isDSTShifted=this.isValid()&&function(t,e){var i,n=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i<n;i++)dt(t[i])!==dt(e[i])&&s++;return s+r}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}));var Zi=_.prototype;function Xi(t,e,i,n){var r=Ae(),s=G().set(n,e);return r[i](s,t)}function _i(t,e,i){if(Y(t)&&(e=t,t=void 0),t=t||"",null!=e)return Xi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=Xi(t,n,i,"month");return r}function Qi(t,e,i,n){"boolean"==typeof t?(Y(e)&&(i=e,e=void 0),e=e||""):(i=e=t,t=!1,Y(e)&&(i=e,e=void 0),e=e||"");var r,s=Ae(),a=t?s._week.dow:0,o=[];if(null!=i)return Xi(e,(i+a)%7,n,"day");for(r=0;r<7;r++)o[r]=Xi(e,(r+a)%7,n,"day");return o}Zi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return Z(n)?n.call(e,i):n},Zi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.match(z).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},Zi.invalidDate=function(){return this._invalidDate},Zi.ordinal=function(t){return this._ordinal.replace("%d",t)},Zi.preparse=Bi,Zi.postformat=Bi,Zi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return Z(r)?r(t,e,i,n):r.replace(/%d/i,t)},Zi.pastFuture=function(t,e){var i=this._relativeTime[t>0?"future":"past"];return Z(i)?i(e):i.replace(/%s/i,e)},Zi.set=function(t){var e,i;for(i in t)x(t,i)&&(Z(e=t[i])?this[i]=e:this["_"+i]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Zi.eras=function(){var t,e,i,n=this._eras||Ae("en")._eras;for(t=0,e=n.length;t<e;++t)switch("string"==typeof n[t].since&&(i=C(n[t].since).startOf("day"),n[t].since=i.valueOf()),typeof n[t].until){case"undefined":n[t].until=1/0;break;case"string":i=C(n[t].until).startOf("day").valueOf(),n[t].until=i.valueOf()}return n},Zi.erasParse=function(t,e,i){var n,r,s,a,o,h=this.eras();for(t=t.toUpperCase(),n=0,r=h.length;n<r;++n)if(s=h[n].name.toUpperCase(),a=h[n].abbr.toUpperCase(),o=h[n].narrow.toUpperCase(),i)switch(e){case"N":case"NN":case"NNN":if(a===t)return h[n];break;case"NNNN":if(s===t)return h[n];break;case"NNNNN":if(o===t)return h[n]}else if([s,a,o].indexOf(t)>=0)return h[n]},Zi.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?C(t.since).year():C(t.since).year()+(e-t.offset)*i},Zi.erasAbbrRegex=function(t){return x(this,"_erasAbbrRegex")||Ii.call(this),t?this._erasAbbrRegex:this._erasRegex},Zi.erasNameRegex=function(t){return x(this,"_erasNameRegex")||Ii.call(this),t?this._erasNameRegex:this._erasRegex},Zi.erasNarrowRegex=function(t){return x(this,"_erasNarrowRegex")||Ii.call(this),t?this._erasNarrowRegex:this._erasRegex},Zi.months=function(t,e){return t?k(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Vt).test(e)?"format":"standalone"][t.month()]:k(this._months)?this._months:this._months.standalone},Zi.monthsShort=function(t,e){return t?k(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Vt.test(e)?"format":"standalone"][t.month()]:k(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Zi.monthsParse=function(t,e,i){var n,r,s;if(this._monthsParseExact)return ee.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=G([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(s="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(s.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},Zi.monthsRegex=function(t){return this._monthsParseExact?(x(this,"_monthsRegex")||re.call(this),t?this._monthsStrictRegex:this._monthsRegex):(x(this,"_monthsRegex")||(this._monthsRegex=te),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Zi.monthsShortRegex=function(t){return this._monthsParseExact?(x(this,"_monthsRegex")||re.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(x(this,"_monthsShortRegex")||(this._monthsShortRegex=$t),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Zi.week=function(t){return de(t,this._week.dow,this._week.doy).week},Zi.firstDayOfYear=function(){return this._week.doy},Zi.firstDayOfWeek=function(){return this._week.dow},Zi.weekdays=function(t,e){var i=k(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?fe(i,this._week.dow):t?i[t.day()]:i},Zi.weekdaysMin=function(t){return!0===t?fe(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Zi.weekdaysShort=function(t){return!0===t?fe(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Zi.weekdaysParse=function(t,e,i){var n,r,s;if(this._weekdaysParseExact)return be.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=G([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(s="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(s.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},Zi.weekdaysRegex=function(t){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(x(this,"_weekdaysRegex")||(this._weekdaysRegex=we),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Zi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(x(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ve),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Zi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(x(this,"_weekdaysRegex")||Ce.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(x(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ye),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Zi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Zi.meridiem=function(t,e,i){return t>11?i?"pm":"PM":i?"am":"AM"},Te("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===dt(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),C.lang=F("moment.lang is deprecated. Use moment.locale instead.",Te),C.langData=F("moment.langData is deprecated. Use moment.localeData instead.",Ae);var zi=Math.abs;function qi(t,e,i,n){var r=mi(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function Vi(t){return t<0?Math.floor(t):Math.ceil(t)}function $i(t){return 4800*t/146097}function tn(t){return 146097*t/4800}function en(t){return function(){return this.as(t)}}var nn=en("ms"),rn=en("s"),sn=en("m"),an=en("h"),on=en("d"),hn=en("w"),ln=en("M"),un=en("Q"),dn=en("y");function cn(t){return function(){return this.isValid()?this._data[t]:NaN}}var fn=cn("milliseconds"),mn=cn("seconds"),pn=cn("minutes"),gn=cn("hours"),wn=cn("days"),vn=cn("months"),yn=cn("years"),bn=Math.round,Cn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kn(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}var Pn=Math.abs;function xn(t){return(t>0)-(t<0)||+t}function Mn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i,n,r,s,a,o,h=Pn(this._milliseconds)/1e3,l=Pn(this._days),u=Pn(this._months),d=this.asSeconds();return d?(t=ut(h/60),e=ut(t/60),h%=60,t%=60,i=ut(u/12),u%=12,n=h?h.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",s=xn(this._months)!==xn(d)?"-":"",a=xn(this._days)!==xn(d)?"-":"",o=xn(this._milliseconds)!==xn(d)?"-":"",r+"P"+(i?s+i+"Y":"")+(u?s+u+"M":"")+(l?a+l+"D":"")+(e||t||h?"T":"")+(e?o+e+"H":"")+(t?o+t+"M":"")+(h?o+n+"S":"")):"P0D"}var Dn=ni.prototype;Dn.isValid=function(){return this._isValid},Dn.abs=function(){var t=this._data;return this._milliseconds=zi(this._milliseconds),this._days=zi(this._days),this._months=zi(this._months),t.milliseconds=zi(t.milliseconds),t.seconds=zi(t.seconds),t.minutes=zi(t.minutes),t.hours=zi(t.hours),t.months=zi(t.months),t.years=zi(t.years),this},Dn.add=function(t,e){return qi(this,t,e,1)},Dn.subtract=function(t,e){return qi(this,t,e,-1)},Dn.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=st(t))||"quarter"===t||"year"===t)switch(i=this._months+$i(e=this._days+n/864e5),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(tn(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Dn.asMilliseconds=nn,Dn.asSeconds=rn,Dn.asMinutes=sn,Dn.asHours=an,Dn.asDays=on,Dn.asWeeks=hn,Dn.asMonths=ln,Dn.asQuarters=un,Dn.asYears=dn,Dn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*dt(this._months/12):NaN},Dn._bubble=function(){var t,e,i,n,r,s=this._milliseconds,a=this._days,o=this._months,h=this._data;return s>=0&&a>=0&&o>=0||s<=0&&a<=0&&o<=0||(s+=864e5*Vi(tn(o)+a),a=0,o=0),h.milliseconds=s%1e3,t=ut(s/1e3),h.seconds=t%60,e=ut(t/60),h.minutes=e%60,i=ut(e/60),h.hours=i%24,a+=ut(i/24),o+=r=ut($i(a)),a-=Vi(tn(r)),n=ut(o/12),o%=12,h.days=a,h.months=o,h.years=n,this},Dn.clone=function(){return mi(this)},Dn.get=function(t){return t=st(t),this.isValid()?this[t+"s"]():NaN},Dn.milliseconds=fn,Dn.seconds=mn,Dn.minutes=pn,Dn.hours=gn,Dn.days=wn,Dn.weeks=function(){return ut(this.days()/7)},Dn.months=vn,Dn.years=yn,Dn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var i,n,r=!1,s=Cn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(s=Object.assign({},Cn,e),null!=e.s&&null==e.ss&&(s.ss=e.s-1)),n=function(t,e,i,n){var r=mi(t).abs(),s=bn(r.as("s")),a=bn(r.as("m")),o=bn(r.as("h")),h=bn(r.as("d")),l=bn(r.as("M")),u=bn(r.as("w")),d=bn(r.as("y")),c=s<=i.ss&&["s",s]||s<i.s&&["ss",s]||a<=1&&["m"]||a<i.m&&["mm",a]||o<=1&&["h"]||o<i.h&&["hh",o]||h<=1&&["d"]||h<i.d&&["dd",h];return null!=i.w&&(c=c||u<=1&&["w"]||u<i.w&&["ww",u]),(c=c||l<=1&&["M"]||l<i.M&&["MM",l]||d<=1&&["y"]||["yy",d])[2]=e,c[3]=+t>0,c[4]=n,kn.apply(null,c)}(this,!r,s,i=this.localeData()),r&&(n=i.pastFuture(+this,n)),i.postformat(n)},Dn.toISOString=Mn,Dn.toString=Mn,Dn.toJSON=Mn,Dn.locale=Pi,Dn.localeData=Mi,Dn.toIsoString=F("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Mn),Dn.lang=xi,tt("X",0,0,"unix"),tt("x",0,0,"valueOf"),Et("x",St),Et("X",/[+-]?\d+(\.\d{1,3})?/),Rt("X",(function(t,e,i){i._d=new Date(1e3*parseFloat(t))})),Rt("x",(function(t,e,i){i._d=new Date(dt(t))})),
|
|
8
8
|
//! moment.js
|
|
9
|
-
C.version="2.29.4",y=Ve,C.fn=Ji,C.min=function(){return ei("isBefore",[].slice.call(arguments,0))},C.max=function(){return ei("isAfter",[].slice.call(arguments,0))},C.now=function(){return Date.now?Date.now():+new Date},C.utc=G,C.unix=function(t){return Ve(1e3*t)},C.months=function(t,e){return _i(t,e,"months")},C.isDate=S,C.locale=Te,C.invalid=A,C.duration=mi,C.isMoment=O,C.weekdays=function(t,e,i){return qi(t,e,i,"weekdays")},C.parseZone=function(){return Ve.apply(null,arguments).parseZone()},C.localeData=Ie,C.isDuration=ri,C.monthsShort=function(t,e){return _i(t,e,"monthsShort")},C.weekdaysMin=function(t,e,i){return qi(t,e,i,"weekdaysMin")},C.defineLocale=Ae,C.updateLocale=function(t,e){if(null!=e){var i,n,r=Ye;null!=Se[t]&&null!=Se[t].parentLocale?Se[t].set(X(Se[t]._config,e)):(null!=(n=Ee(t))&&(r=n._config),e=X(r,e),null==n&&(e.abbr=t),(i=new _(e)).parentLocale=Se[t],Se[t]=i),Te(t)}else null!=Se[t]&&(null!=Se[t].parentLocale?(Se[t]=Se[t].parentLocale,t===Te()&&Te(t)):null!=Se[t]&&delete Se[t]);return Se[t]},C.locales=function(){return j(Se)},C.weekdaysShort=function(t,e,i){return qi(t,e,i,"weekdaysShort")},C.normalizeUnits=st,C.relativeTimeRounding=function(t){return void 0===t?bn:"function"==typeof t&&(bn=t,!0)},C.relativeTimeThreshold=function(t,e){return void 0!==Cn[t]&&(void 0===e?Cn[t]:(Cn[t]=e,"s"===t&&(Cn.ss=e-1),!0))},C.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},C.prototype=Ji,C.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 Yn={[s.ACTIVE]:{label:"active"},[s.ACTIVATED]:{label:"activated"},[s.EXPIRED]:{label:"expired"},[s.CONSUMED]:{label:"consumed"},[s.DISABLED]:{label:"disabled"},[s.ENABLED]:{label:"enabled"}},Sn=class{constructor(e){t(this,e),this.tableId="powerupsHistory",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.pageSize=20,this.translationUrl="",this.isLoading=!0,this.powerups=[],this.offset=0,this.limit=this.pageSize,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:n}=t.detail;n===this.tableId&&(this.offset=i,this.limit=e)}async loadData(){if(this.endpoint&&this.session){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit}`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};t.searchParams.append("language",this.language),t.searchParams.append("status",`${s.CONSUMED},${s.EXPIRED}`);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:n,total:r}=await i.json();this.powerups=n,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}render(){var t;return e("div",{key:"e76dea03946f2a9cddeeb9b3df3a8e51a5331128",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):(null===(t=this.powerups)||void 0===t?void 0:t.length)?[e("ul",{class:"PowerUps"},this.powerups.map((t=>{var i;return e("li",{class:"PowerUpItem"},e("div",{class:"HistoryLeft"},e("div",{class:"DisplayName"}," ",t.displayName||"-"," "),e("div",{class:"Details"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),v(t.boostingPeriod.mode===o.TIME_PERIOD?"min":"rounds",this.language)," "),e("span",{class:"Multiplier"},"| X",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",v(t.multiplier.mode===a.XP?"xp":"coins",this.language)," "))),e("div",{class:"HistoryRight"},e("div",null,v((null===(i=Yn[t.status])||void 0===i?void 0:i.label)||t.status,this.language)),e("div",null,C(t.startTime).format("YYYY-MM-DD HH:mm:ss")," ")))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,secondaryArrowsActive:!0,"table-id":this.tableId,total:this.total}))]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,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"/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},v("nothingHere",this.language)),e("span",null,v("noPowerUps",this.language)),e("span",null,v("gotoShop",this.language)),e("div",null)))}handleClientStylingChange(t,e){t!=e&&h(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&u(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){w(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await w(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&h(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&u(this.stylingContainer,this.clientStylingUrl)),this.loadData()}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData"],endpoint:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Sn.style=":host{display:block}.PowerUpsContainer{font-size:0.95rem;display:flex;width:100%;flex-direction:column}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2rem;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2rem;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{width:100%;display:flex;gap:20px;flex-direction:column;padding-inline-start:0}.PowerUpsContainer .PowerUpItem{display:flex;justify-content:space-between;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));opacity:1;font-size:0.9rem;border-radius:12px;padding:20px;gap:4px;text-transform:uppercase}.PowerUpsContainer .PowerUpItem .HistoryRight{text-align:right}.PowerUpsContainer .PowerUpItem .HistoryLeft,.PowerUpsContainer .PowerUpItem .HistoryRight{display:flex;flex-direction:column;gap:8px}.PowerUpsContainer .PowerUpItem .DisplayName{text-transform:none;font-weight:500;line-height:100%;vertical-align:middle}.PowerUpsContainer .Pagination{display:flex;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.Disabled{opacity:0.5}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{width:22px;height:22px;line-height:22px;opacity:1;border-radius:22px;padding:6px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active{border-radius:22px;border:2px solid var(--emw--color-powup-green, #24B24E);color:var(--emw--color-powup-green, #24B24E);background-color:transparent}";const Un=["pt-br","en","es-mx","hu","hr"],Nn={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},Gn=(t,e,i)=>{const n=e;let r=Nn[void 0!==n&&Un.includes(n)?n:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},En=class{constructor(e){t(this,e),this.reloadPageEmitter=i(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=5,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return e("ul",{class:"PaginationArea"},this.pagesArray.map((t=>e("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return e("general-styling-wrapper",{targetTranslations:Nn,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],n=Math.floor(t/2);const r=this.endPageIndex+1;return e?this.currentPage<n||this.currentPage>r-n+1?(i=Array.from({length:n},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n},((t,e)=>this.endPageIndex-1+e)))):this.currentPage==n?(i=Array.from({length:n+1},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n-1},((t,e)=>this.endPageIndex+e)))):this.currentPage==r-n+1?(i=Array.from({length:n-1},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n+1},((t,e)=>this.endPageIndex-2+e)))):(i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r])):this.currentPage<=t-n?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-n)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-n+1)),i.push("..."),i.unshift("...")),i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return e("div",{key:"77610598f3ce40796b8d486fd27725fc68b61878",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&e("span",{key:"879bd2f268a18ea3c9cb2bb706d23c8db0634592",class:"PageOfMessage"},Gn("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),e("div",{key:"590af1c2fcb70d782b318c505deb507a8376e13b",class:"PageNavigation"},this.arrowsActive&&e("div",{key:"2d4746e889a43d6199ad7f305676d79bdbaa4f04",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},Gn("firstPage",this.language)),this.secondaryArrowsActive&&e("span",{key:"89b588abdf7b77e3cdc00f44bbad27c432146f97",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},Gn("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&e("span",{key:"097710df72de15cd1b0c03dfb2ac7870c99e12c0",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},Gn("nextPage",this.language)),this.arrowsActive&&e("div",{key:"a61296f3e627bc012545618c0fda239a1356da1f",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",Gn("lastPage",this.language)," "),this.renderStylingWrapper()))}};En.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const Tn=class{constructor(e){t(this,e),this.expireTime=void 0,this.displayTime=void 0}componentWillLoad(){this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}disconnectedCallback(){clearInterval(this.timer)}startTimeChanged(){clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}updateDisplayTime(){const t=C(),e=C(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=C.duration(e.diff(t));if(i.asMilliseconds()<=0)return this.displayTime="00:00:00",void clearInterval(this.timer);const n=Math.floor(i.asHours());if(n>=48)this.displayTime=`${Math.floor(i.asDays())} days`;else if(n>=24)this.displayTime="1 day";else{const t=n,e=i.minutes(),r=i.seconds();this.displayTime=[t,e,r].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return e("span",{key:"b242dc33814c57b4d72e2ef165dc116187e3312e"},this.displayTime)}static get watchers(){return{expireTime:["startTimeChanged"]}}},An=class{constructor(e){t(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const t=new Image;t.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,t.onload=null)},t.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target.__uxComponent;e&&(e.shouldLoad=!0,e.handleSrc()),window.EMUxObserver.unobserve(t.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return e(n,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&e("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),e("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:t=>this.image=t,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return r(this)}static get watchers(){return{src:["handleSrc"]}}};An.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const In=class{constructor(e){t(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}handleStylingProps(t){switch(typeof t){case"number":return 0===t?0:`${t}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(t)||t.endsWith("px")||t.endsWith("%")?t:"unset"}}handleStructure(t){switch(t){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return e("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return e("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((t,i)=>e("div",{key:i,class:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let t="";switch(this.structure){case"logo":t=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":t=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":t=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":t=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":t=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":t=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:t=""}return e(n,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},e("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},t),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};In.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{p as bonus_elevate_powerups,Sn as bonus_elevate_powerups_history,En as bonus_pagination_nav,Tn as time_count,An as ui_image,In as ui_skeleton}
|
|
9
|
+
C.version="2.29.4",y=Ve,C.fn=Ji,C.min=function(){return ei("isBefore",[].slice.call(arguments,0))},C.max=function(){return ei("isAfter",[].slice.call(arguments,0))},C.now=function(){return Date.now?Date.now():+new Date},C.utc=G,C.unix=function(t){return Ve(1e3*t)},C.months=function(t,e){return _i(t,e,"months")},C.isDate=S,C.locale=Te,C.invalid=I,C.duration=mi,C.isMoment=L,C.weekdays=function(t,e,i){return Qi(t,e,i,"weekdays")},C.parseZone=function(){return Ve.apply(null,arguments).parseZone()},C.localeData=Ae,C.isDuration=ri,C.monthsShort=function(t,e){return _i(t,e,"monthsShort")},C.weekdaysMin=function(t,e,i){return Qi(t,e,i,"weekdaysMin")},C.defineLocale=Ie,C.updateLocale=function(t,e){if(null!=e){var i,n,r=Ye;null!=Se[t]&&null!=Se[t].parentLocale?Se[t].set(X(Se[t]._config,e)):(null!=(n=Ee(t))&&(r=n._config),e=X(r,e),null==n&&(e.abbr=t),(i=new _(e)).parentLocale=Se[t],Se[t]=i),Te(t)}else null!=Se[t]&&(null!=Se[t].parentLocale?(Se[t]=Se[t].parentLocale,t===Te()&&Te(t)):null!=Se[t]&&delete Se[t]);return Se[t]},C.locales=function(){return j(Se)},C.weekdaysShort=function(t,e,i){return Qi(t,e,i,"weekdaysShort")},C.normalizeUnits=st,C.relativeTimeRounding=function(t){return void 0===t?bn:"function"==typeof t&&(bn=t,!0)},C.relativeTimeThreshold=function(t,e){return void 0!==Cn[t]&&(void 0===e?Cn[t]:(Cn[t]=e,"s"===t&&(Cn.ss=e-1),!0))},C.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},C.prototype=Ji,C.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 Yn={[s.ACTIVE]:{label:"active"},[s.ACTIVATED]:{label:"activated"},[s.EXPIRED]:{label:"expired"},[s.CONSUMED]:{label:"consumed"},[s.DISABLED]:{label:"disabled"},[s.ENABLED]:{label:"enabled"}},Sn=class{constructor(e){t(this,e),this.tableId="powerupsHistory",this.mbSource=void 0,this.clientStyling=void 0,this.clientStylingUrl=void 0,this.language="en",this.endpoint=void 0,this.session=void 0,this.limit=10,this.translationUrl="",this.isLoading=!0,this.powerups=[],this.offset=0,this.total=void 0}onReloadPageByType(t){const{limit:e,offset:i,tableId:n}=t.detail;n===this.tableId&&(this.offset=i,this.limit=e)}async loadData(){if(this.endpoint&&this.session){this.isLoading=!0,this.abortController&&this.abortController.abort(),this.abortController=new AbortController;try{const t=new URL(`${this.endpoint}/v1/elevate/powerups?pagination=offset=${this.offset},limit=${this.limit}`);let e={headers:{"Content-Type":"application/json","x-SessionId":this.session},method:"GET",signal:this.abortController.signal};t.searchParams.append("language",this.language),t.searchParams.append("status",`${s.CONSUMED},${s.EXPIRED}`);const i=await fetch(t,e);if(!i.ok)throw new Error(`HTTP error! status: ${i.status}`);const{data:n,total:r}=await i.json();this.powerups=n,this.total=r}catch(t){"AbortError"!==t.name&&(console.error("Failed to load powerups history:",t),window.postMessage({type:"peHistoryLoaderError",error:t}))}finally{this.abortController.signal.aborted||(this.isLoading=!1)}}}render(){var t;return e("div",{key:"87cc519cc192e9047b1eaa21f982e444f0e1f79a",class:"PowerUpsContainer",ref:t=>this.stylingContainer=t},this.isLoading?e("p",null,"Loading..."):(null===(t=this.powerups)||void 0===t?void 0:t.length)?[e("ul",{class:"PowerUps"},this.powerups.map((t=>{var i;return e("li",{class:"PowerUpItem"},e("div",{class:"HistoryLeft"},e("div",{class:"DisplayName"}," ",t.displayName||"-"," "),e("div",{class:"Details"},e("span",{class:"BoostingPeriod"},e("span",{class:"Period"},t.boostingPeriod.minutes||t.boostingPeriod.numberOfRounds," "),v(t.boostingPeriod.mode===a.TIME_PERIOD?"min":"rounds",this.language)," "),e("span",{class:"Multiplier"},"| X ",t.multiplier.coefficient," "),e("span",{class:"MultiplierMode"},"| ",v(t.multiplier.mode,this.language)," "))),e("div",{class:"HistoryRight"},e("div",null,v((null===(i=Yn[t.status])||void 0===i?void 0:i.label)||t.status,this.language)),e("div",null,C(t.status===s.EXPIRED?t.expireTime:t.endTime).format("YYYY-MM-DD HH:mm:ss")," ")))}))),e("div",{class:"Pagination"},this.total&&this.total>this.limit&&e("bonus-pagination-nav",{offset:this.offset,limit:this.limit,secondaryArrowsActive:!0,"table-id":this.tableId,total:this.total}))]:e("div",{class:"EmptyPowerups"},e("div",{class:"Icon",innerHTML:'<svg width="52" height="52" viewBox="0 0 52 52" fill="none" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n<rect width="52" height="52" fill="url(#pattern0_1132_30534)"/>\n<defs>\n<pattern id="pattern0_1132_30534" patternContentUnits="objectBoundingBox" width="1" height="1">\n<use xlink:href="#image0_1132_30534" transform="scale(0.01)"/>\n</pattern>\n<image id="image0_1132_30534" width="100" height="100" preserveAspectRatio="none" xlink:href="data:image/png;base64,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"/>\n</defs>\n</svg>\n'}),e("span",{class:"NoPowerTitle"},v("nothingHere",this.language)),e("span",null,v("noPowerUps",this.language)),e("span",null,v("gotoShop",this.language)),e("div",null)))}handleClientStylingChange(t,e){t!=e&&o(this.stylingContainer,this.clientStyling)}handleClientStylingUrlChange(t,e){t!=e&&h(this.stylingContainer,this.clientStylingUrl)}handleMbSourceChange(t,e){t!=e&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription)}handleNewTranslations(){w(this.translationUrl)}async componentWillLoad(){this.translationUrl&&await w(this.translationUrl)}componentDidLoad(){this.stylingContainer&&(this.mbSource&&l(this.stylingContainer,`${this.mbSource}.Style`,this.stylingSubscription),this.clientStyling&&o(this.stylingContainer,this.clientStyling),this.clientStylingUrl&&h(this.stylingContainer,this.clientStylingUrl)),this.loadData()}disconnectedCallback(){this.abortController&&this.abortController.abort(),this.stylingSubscription&&this.stylingSubscription.unsubscribe()}static get watchers(){return{offset:["loadData"],limit:["loadData"],language:["loadData"],session:["loadData"],endpoint:["loadData"],clientStyling:["handleClientStylingChange"],clientStylingUrl:["handleClientStylingUrlChange"],mbSource:["handleMbSourceChange"],translationUrl:["handleNewTranslations"]}}};Sn.style=":host{display:block}.PowerUpsContainer{font-size:0.95rem;display:flex;width:100%;flex-direction:column}.PowerUpsContainer .EmptyPowerups{align-items:center;justify-content:center;font-weight:400;font-size:1.2rem;line-height:24px;text-align:center;vertical-align:middle;width:max-content;margin:auto;display:flex;flex-direction:column;padding:50px}.PowerUpsContainer .EmptyPowerups .Icon,.PowerUpsContainer .EmptyPowerups .NoPowerTitle{text-align:center}.PowerUpsContainer .EmptyPowerups .Icon svg,.PowerUpsContainer .EmptyPowerups .NoPowerTitle svg{width:40px}.PowerUpsContainer .EmptyPowerups .NoPowerTitle{font-size:1.2rem;font-weight:bold;margin:10px}.PowerUpsContainer .PowerUps{width:100%;display:flex;gap:20px;flex-direction:column;padding-inline-start:0}.PowerUpsContainer .PowerUpItem{display:flex;justify-content:space-between;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922));opacity:1;font-size:0.9rem;border-radius:12px;padding:20px;gap:4px;text-transform:uppercase}.PowerUpsContainer .PowerUpItem .HistoryRight{text-align:right}.PowerUpsContainer .PowerUpItem .HistoryLeft,.PowerUpsContainer .PowerUpItem .HistoryRight{display:flex;flex-direction:column;gap:8px}.PowerUpsContainer .PowerUpItem .DisplayName{text-transform:none;font-weight:500;line-height:100%;vertical-align:middle}.PowerUpsContainer .Pagination{display:flex;justify-content:center}.PowerUpsContainer .Pagination .PageNavigation .PageArrow.Disabled{opacity:0.5}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem:hover{background-color:transparent}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem{width:22px;height:22px;line-height:22px;opacity:1;border-radius:22px;padding:6px;border:2px solid var(--emw--button-border-color-secondary, rgba(188, 252, 177, 0.0509803922))}.PowerUpsContainer .Pagination ul.PaginationArea li.PageItem.Active{border-radius:22px;border:2px solid var(--emw--color-powup-green, #24B24E);color:var(--emw--color-powup-green, #24B24E);background-color:transparent}";const Un=["pt-br","en","es-mx","hu","hr"],Nn={en:{firstPage:"|<",lastPage:">|",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hu:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},hr:{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"pt-br":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"},"es-mx":{firstPage:"First",lastPage:"Last",prePage:"<",nextPage:">",pageOfTotal:"{start}-{end} of {total}"}},Gn=(t,e,i)=>{const n=e;let r=Nn[void 0!==n&&Un.includes(n)?n:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},En=class{constructor(e){t(this,e),this.reloadPageEmitter=i(this,"reloadPageByType",7),this.total=1,this.limit=10,this.offset=0,this.tableId="default",this.language="en",this.translationUrl="",this.arrowsActive=!0,this.secondaryArrowsActive=!0,this.displayPageNumbers=!0,this.displayRangeOfTotal=void 0,this.navItemAccount=5,this.endPageIndex=0,this.pagesArray=void 0,this.currentPage=1,this.showAsEllipsisMid=!this.arrowsActive}pageLimitChangedHandler(t){this.limit=t.detail.limit?t.detail.limit:this.limit,this.currentPage=1,this.offset=0,this.updatePageStatus(),"pageLimitChanged"==t.type&&this.reloadPageEmitter.emit({offset:0,limit:this.limit,tableId:this.tableId})}goTo(t){"..."==t||0==t||parseInt(t.toString(),10)>this.endPageIndex+1||(this.currentPage=t,this.reloadPageEmitter.emit({offset:(this.currentPage-1)*this.limit,limit:this.limit,tableId:this.tableId}))}renderPageList(){return e("ul",{class:"PaginationArea"},this.pagesArray.map((t=>e("li",{class:"PageItem "+(this.currentPage==t?"Active":""),onClick:()=>{this.goTo(t)}},t))))}renderStylingWrapper(){return e("general-styling-wrapper",{targetTranslations:Nn,translationUrl:this.translationUrl})}generateNavItemsByType(t,e){if(this.endPageIndex<t)return Array.from({length:this.endPageIndex+1},((t,e)=>e+1));let i=[],n=Math.floor(t/2);const r=this.endPageIndex+1;return e?this.currentPage<n||this.currentPage>r-n+1?(i=Array.from({length:n},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n},((t,e)=>this.endPageIndex-1+e)))):this.currentPage==n?(i=Array.from({length:n+1},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n-1},((t,e)=>this.endPageIndex+e)))):this.currentPage==r-n+1?(i=Array.from({length:n-1},((t,e)=>e+1)),i.push("..."),i=i.concat(Array.from({length:n+1},((t,e)=>this.endPageIndex-2+e)))):(i=[1,"..."],i=i.concat([this.currentPage-1],[this.currentPage],[this.currentPage+1]),i=i.concat(["...",r])):this.currentPage<=t-n?(i=Array.from({length:t-1},((t,e)=>e+1)),i.push("...")):this.currentPage>r-(t-n)?(i=Array.from({length:t-1},((e,i)=>r-(t-2)+i)),i.unshift("...")):(i=Array.from({length:t-2},((t,e)=>this.currentPage+e-n+1)),i.push("..."),i.unshift("...")),i}updatePageStatus(){this.endPageIndex=Math.ceil(this.total/this.limit)-1,this.endPageIndex=this.endPageIndex<0?this.endPageIndex=0:this.endPageIndex,this.pagesArray=this.generateNavItemsByType(this.navItemAccount,this.showAsEllipsisMid)}componentWillRender(){this.currentPage=Math.floor(this.offset/this.limit)+1,this.updatePageStatus()}render(){return e("div",{key:"77610598f3ce40796b8d486fd27725fc68b61878",class:"PageNavigationWrapper"},this.displayRangeOfTotal&&this.total>0&&e("span",{key:"879bd2f268a18ea3c9cb2bb706d23c8db0634592",class:"PageOfMessage"},Gn("pageOfTotal",this.language,{values:{start:(this.currentPage-1)*this.limit+1,end:this.currentPage*this.limit>this.total?this.total:this.currentPage*this.limit,total:this.total}})),e("div",{key:"590af1c2fcb70d782b318c505deb507a8376e13b",class:"PageNavigation"},this.arrowsActive&&e("div",{key:"2d4746e889a43d6199ad7f305676d79bdbaa4f04",class:"PageArrow FirstPage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(1)}},Gn("firstPage",this.language)),this.secondaryArrowsActive&&e("span",{key:"89b588abdf7b77e3cdc00f44bbad27c432146f97",class:"PageArrow PrePage "+(1==this.currentPage?"Disabled":""),onClick:()=>{this.goTo(this.currentPage-1)}},Gn("prePage",this.language)),this.displayPageNumbers&&this.renderPageList(),this.secondaryArrowsActive&&e("span",{key:"097710df72de15cd1b0c03dfb2ac7870c99e12c0",class:"PageArrow NextPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.currentPage+1)}},Gn("nextPage",this.language)),this.arrowsActive&&e("div",{key:"a61296f3e627bc012545618c0fda239a1356da1f",class:"PageArrow LastPage "+(this.currentPage==this.endPageIndex+1?"Disabled":""),onClick:()=>{this.goTo(this.endPageIndex+1)}}," ",Gn("lastPage",this.language)," "),this.renderStylingWrapper()))}};En.style=":host{display:block}.PageNavigationWrapper{display:flex;flex-direction:row;height:100%;align-content:center}.PageNavigationWrapper .PageOfMessage{margin:5px;padding:5px 6px;margin:2px}.PageNavigation{display:flex;flex-direction:row;align-items:center}.PageNavigation .PageArrow{color:var(--emw--color-primary, #777676);padding:6px 5px;cursor:pointer;font-weight:bold;width:1.2rem;text-align:center}.PageNavigation .PageArrow.Disabled{color:var(--emw--color-gray-100, #e0e0e0)}ul.PaginationArea{list-style:none;padding:0px;margin:0px;display:flex}ul.PaginationArea li.PageItem{cursor:pointer;padding:5px 6px;margin:2px;width:0.9rem;text-align:center}ul.PaginationArea li.PageItem.Active,ul.PaginationArea li.PageItem:hover{font-weight:bold;color:var(--emw--color-primary, #f5f1f1);background-color:var(--emw--color-secondary, #8c8989);border-radius:0.3rem}";const Tn=class{constructor(e){t(this,e),this.expireTime=void 0,this.language="en",this.displayTime=void 0,this.isExpireInDay1=!1}componentWillLoad(){this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}disconnectedCallback(){clearInterval(this.timer)}startTimeChanged(){clearInterval(this.timer),this.timer=setInterval((()=>this.updateDisplayTime()),1e3),this.updateDisplayTime()}updateDisplayTime(){const t=C(),e=C(this.expireTime);if(!e.isValid())return this.displayTime="Invalid date",void clearInterval(this.timer);const i=C.duration(e.diff(t));if(this.isExpireInDay1=i.asDays()>1,i.asMilliseconds()<=0)return this.displayTime="00:00:00",void clearInterval(this.timer);const n=Math.floor(i.asHours());if(n>=48)this.displayTime=`${Math.floor(i.asDays())} ${c("days",this.language)}`;else if(n>=24)this.displayTime="1 day";else{const t=n,e=i.minutes(),r=i.seconds();this.displayTime=[t,e,r].map((t=>String(t).padStart(2,"0"))).join(":")}}render(){return[this.isExpireInDay1&&e("span",{key:"8432bdb52f3b5ecd2600c68179a0ee55d785c20c",class:"Label"},c("expiresIn",this.language)),e("span",{key:"fbec64ff41b9dbddd5ef6913e6f778771f55e143",class:"TimeCountDown"},this.displayTime)]}static get watchers(){return{expireTime:["startTimeChanged"]}}},In=class{constructor(e){t(this,e),this.src=void 0,this.width=void 0,this.height=void 0,this.alt=void 0,this.styles=void 0,this.detectDistance="200px",this.imgLoaded=!1,this.shouldLoad=!1}handleSrc(){if(!this.shouldLoad)return;const t=new Image;t.onload=()=>{this.image&&(this.image.src=this.src,this.imgLoaded=!0,t.onload=null)},t.src=this.src}componentDidLoad(){"IntersectionObserver"in window?(this.el.__uxComponent=this,window.EMUxObserver||(window.EMUxObserver=new IntersectionObserver((t=>{t.forEach((t=>{if(t.isIntersecting){const e=t.target.__uxComponent;e&&(e.shouldLoad=!0,e.handleSrc()),window.EMUxObserver.unobserve(t.target)}}))}),{rootMargin:this.detectDistance})),window.EMUxObserver.observe(this.el)):(this.shouldLoad=!0,this.handleSrc())}render(){return e(n,{key:"f506ba73852f257ad80bf59ca177d2065a5f365e",class:"HostContainer"},!this.imgLoaded&&e("ui-skeleton",{key:"564ebfab701f827ddc2debccb7615926dbc9e876",class:"UiContainer",structure:"image",width:"100%",height:"100%"}),e("img",{key:"2188ca4494c10587f064acc5459ffc468948f497",ref:t=>this.image=t,src:this.shouldLoad?this.src:void 0,onLoad:()=>this.imgLoaded=!0,style:this.styles,class:"UiContainer "+(this.imgLoaded?"Visible":"Hidden"),alt:this.alt,width:this.width,height:this.height,loading:"lazy"}))}get el(){return r(this)}static get watchers(){return{src:["handleSrc"]}}};In.style=".HostContainer{display:block}.UiContainer{height:100%;width:100%;border-radius:inherit;object-fit:inherit}.UiContainer .Image{border-radius:inherit}.Hidden{opacity:0;transition:opacity 0.5s ease-in-out}.Visible{opacity:1;border-radius:var(--emw--border-radius-medium, 10px);transition:opacity 0.5s ease-in-out}";const An=class{constructor(e){t(this,e),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(t,e){e!==t&&this.handleStructure(t)}handleStylingProps(t){switch(typeof t){case"number":return 0===t?0:`${t}px`;case"undefined":default:return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(t)||t.endsWith("px")||t.endsWith("%")?t:"unset"}}handleStructure(t){switch(t){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonLogo "+(this.animation?"Skeleton":"")}))}renderImage(){return e("div",{class:"SkeletonImage "+(this.animation?"Skeleton":"")})}renderTitle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonTitle "+(this.animation?"Skeleton":"")}))}renderText(){return e("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map(((t,i)=>e("div",{key:i,class:"SkeletonText "+(this.animation?"Skeleton":"")}))))}renderRectangle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonRectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return e("div",{class:"SkeletonContainer"},e("div",{class:"SkeletonCircle "+(this.animation?"Skeleton":"")}))}render(){let t="";switch(this.structure){case"logo":t=`\n :host {\n --emw-skeleton-logo-width: ${this.stylingValue.width};\n --emw-skeleton-logo-height: ${this.stylingValue.height};\n --emw-skeleton-logo-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-logo-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-logo-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-logo-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-logo-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"image":t=`\n :host {\n --emw-skeleton-image-width: ${this.stylingValue.width};\n --emw-skeleton-image-height: ${this.stylingValue.height};\n --emw-skeleton-image-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-image-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-image-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-image-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-image-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"title":t=`\n :host {\n --emw-skeleton-title-width: ${this.stylingValue.width};\n --emw-skeleton-title-height: ${this.stylingValue.height};\n --emw-skeleton-title-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-title-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-title-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-title-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-title-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"text":t=`\n :host {\n --emw-skeleton-text-width: ${this.stylingValue.width};\n --emw-skeleton-text-height: ${this.stylingValue.height};\n --emw-skeleton-text-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-text-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-text-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-text-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-text-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"rectangle":t=`\n :host {\n --emw-skeleton-rectangle-width: ${this.stylingValue.width};\n --emw-skeleton-rectangle-height: ${this.stylingValue.height};\n --emw-skeleton-rectangle-border-radius: ${this.stylingValue.borderRadius};\n --emw-skeleton-rectangle-margin-bottom: ${this.stylingValue.marginBottom};\n --emw-skeleton-rectangle-margin-top: ${this.stylingValue.marginTop};\n --emw-skeleton-rectangle-margin-left: ${this.stylingValue.marginLeft};\n --emw-skeleton-rectangle-margin-right: ${this.stylingValue.marginRight};\n }\n `;break;case"circle":t=`\n :host {\n --emw-skeleton-circle-size: ${this.stylingValue.size};\n }\n `;break;default:t=""}return e(n,{key:"c2a2650acd416962a2bc4e1a7ee18bc6d8e2def8"},e("style",{key:"9bd7fc1f9e9ed9f17735a7b72fce6f09696f5e19"},t),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};An.style=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.SkeletonRectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.SkeletonCircle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.SkeletonText{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.SkeletonText:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.SkeletonTitle{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.SkeletonImage{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.SkeletonLogo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}";export{p as bonus_elevate_powerups,Sn as bonus_elevate_powerups_history,En as bonus_pagination_nav,Tn as time_count,In as ui_image,An as ui_skeleton}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{B as BonusElevatePowerupsLobby}from"./bonus-elevate-powerups-lobby-
|
|
1
|
+
export{B as BonusElevatePowerupsLobby}from"./bonus-elevate-powerups-lobby-b04a9da7.js";import"./index-64ff3a3a.js";
|