
    }

    .participant-info {
        padding-right: 10px;
    }

    .participant-score {
        text-align: end;
    }
    .flip-h .participant-score {
        text-align: start;
    }

    .match-footer {
        right: calc(50% - 90px);
    }
`,le=oe.i`
    .side-by-side-list {
        text-align: center;
        margin: 4px 16px;
        align-items: center;
        display: grid;
        row-gap: 4px;
    }

    .match-content {
        background: rgba(35, 38, 159, 0.07);
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0px;
        position: relative;
        border-radius: 6px;
        text-decoration: none;
        color: currentColor;
        width: 268px;
        backdrop-filter: blur(6px);
    }

    :host([cardlayout="_1x_1y"]) .side-by-side-list {
        margin: 0 16px;
    }
    :host([cardlayout="_1x_1y"]) .match-content {
        padding: 0;
    }
    :host([cardlayout="_1x_1y"]) .participant-container {
        max-height: 70px;
    }

    .participant-container {
        min-width: 98px;
        max-width: 112px;
        margin-top: 8px;
    }

    .participant-content {
        display: flex;
    }
    .flip-h.participant-content {
        flex-flow: row-reverse;
    }

    .participant-content,
    .match-detail {
        height: 44px;
    }

    .participant-icon {
        width: 32px;
        height: 22px;
    }

    .participant-name {
        font-weight: 600;
        font-size: 12px;
        line-height: 22px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100px;
    }

    .participant-score span {
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        font-size: 12px;
        line-height: 16px;
        width: 42px;
    }
    .participant-score {
        max-height: 36px;
        width: 42px;
        text-align: start;
    }

    .participant-score.long-score,
    .participant-score.long-score span {
        width: 54px;
        padding-top: 2px;
        font-weight: 600;
        font-size: 10px;
        line-height: 13px;
    }

    .participant-score span.score-line1 {
        font-size: 14px;
        font-weight: 600;
        line-height: 18px;
    }

    .flip-h .participant-score {
        text-align: end;
    }

    .winner {
        font-weight: 600;
    }

    .winner-tag > svg {
        fill: currentColor;
    }
    .flip-h .winner-tag {
        transform: scaleX(-1);
    }

    .middle-detail {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .game-date {
        font-weight: 600;
        font-size: 16px;
        line-height: 22px;
    }
    .game-time {
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
    }
    .cricket-live-tag {
        background: #C83D36;
        border-radius: 3px;
        color: #FFFFFF;
        font-weight: 400;
        font-size: 12px;
        line-height: 14px;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 4px;
        height: 17px;
    }

    .status-text {
        font-size: 12px;
        line-height: 14px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .live-text {
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        margin-top: 1px;
    }

    .detail-live-animation {
        height: 1px;
        transform: translateZ(0);
        animation: liveAnimation 1.6s ease-out infinite 1.0s alternate;
        background: white;
        margin-bottom: 2px;
    }
    @keyframes liveAnimation {
        0% {
            width: 20px;
        }
        100% {
            width: 4px;
        }
    }

    .match-extended-details {
        width: 180px;
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }
    .match-footer {
        font-style: normal;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        width: 180px;
        display: inline-block;
        position: absolute;
        bottom: 10px;
        left: calc(50% - 90px);
    }
    :host([cardlayout="_1x_1y"]) .match-footer {
        bottom: 4px;
    }
    .super-over-words {
        background: rgba(255, 255, 255, 0.35);
        border-radius: 3px;
        color: rgb(101, 107, 155);
        font-style: italic;
        font-weight: 600;
        width: 130px;
        height: 30px;
        font-size: 20px;
        transform: scale(0.5);
        line-height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0px 3px 5px 0px;
        box-sizing: border-box;
    }

    .cricket-final {
        width: 18px;
        height: 18px;
        background: rgba(255, 255, 255, 0.35);
        border-radius: 18px;
        font-weight: 400;
        font-size: 10px;
        line-height: 18px;
        color: #A3ACDD
        padding: 2px;
    }

    .particpant-hover {
        width: 60px;
    }
    .common-style .particpant-hover {
        width: 92px;
        display: inline-flex;
        justify-content: center;
    }
    .common-style .participant-container {
        width: 92px;
        max-width: 92px;
        min-width: 92px;
    }
    .common-style .participant-content {
        height: auto;
    }
    .common-style .participant-icon {
        width: 45px;
        height: auto;
    }
    .common-style .participant-name {
        max-width: 80px;
    }
    .common-style .match-content {
        padding: 0;
        height: 70px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: none;
    }
    .common-style .match-detail {
        height: 100%;
        width: 84px;
    }
    .common-style .middle-game-detail {
        font-weight: 600;
        font-size: 20px;
        line-height: 26px;
        text-align: center;
        display: flex;
        gap: 12px;
    }
    .common-style .game-time-text-style {
        line-height: 30px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        max-width: 92px;
    }
    .common-style .game-score-text-style {
        font-weight: 600;
        font-size: 28px;
        line-height: 30px;
    }
    .common-style .top-detail {
        height: 20px;
    }
    .common-style .top-detail,
    .common-style .bottom-game-detail {
        font-weight: 400;
        font-size: 10px;
        line-height: 20px;
    }
    .common-style .game-in-progress-text {
        color: #FF500F;
    }

    .common-style .detail-live-animation {
        animation: liveAnimationCommon 1.6s ease-out infinite 1.0s alternate;
        background: #C42B1C;
        border: 1px solid #C42B1C;
        height: auto;
    }
    @keyframes liveAnimationCommon {
        0% {
            width: 40px;
        }
        100% {
            width: 4px;
        }
    }

    :host([colormode="dark"]) .match-content {
        background: rgba(255, 255, 255, 0.07);
    }
    :host([colormode="dark"]) .cricket-final {
        background: #0E0447;
        color: #A0B3D7;
    }
 
`.withBehaviors(new ie.O(ne,se),(0,ae.vF)(oe.i`
            :host {
                forced-color-adjust: auto;
            }
            @media screen and (-ms-high-contrast: active) {
            }
        }`));var de=r(18864),ce=r(53039),ue=r(38965);const pe=(e,t,r)=>c.d`
    <sports-card-follow-icon
        role="button"
        colormode=${(e,t)=>t.parent.colormode}
        :strings=${(e,t)=>t.parent.strings}
        :telemetryObject=${(e,t)=>t.parent.telemetryObject}
        :telemetryContext=${(e,t)=>t.parent.telemetryContext}
        :followSportsCallback=${(e,t)=>t.parent.followSportsCallback}
        :unfollowSportsCallback=${(e,t)=>t.parent.unfollowSportsCallback}
        :isSportsFollowed=${(e,t)=>t.parent.isSportsFollowed}
        :isFollowedState=${(t,r)=>r.parent.isSportsFollowed(e)}
        :sportsEntity=${(t,r)=>e}
        :index=${e=>0}
        :tabIndex=${e=>0}
        :shouldShowFollowIcon=${(r,a)=>a.parent.showParticipantAddIcon&&a.parent.shouldShowFollowIcon(e.id,e.yId,t)}
        :colorStyle=${e=>"blue"}
        style="${(e,t)=>t.parent.getFollowIconStyle(r)}"
    >
    </sports-card-follow-icon> 
`,he=(e,t,r)=>c.d`
    <div class="participant-container" title="${null==t?void 0:t.name}">
        <div class="participant-content${t=>e?"":" flip-h"}" index="-1">
            <div class="participant-info" index="-1">
                <div class="particpant-hover">
                    <img class="participant-icon" role="presentation" src="${(e,r)=>r.parent.getParticipantIconUrl(t)}" />
                    ${(0,u.g)(((e,t)=>!t.parent.isCricket()),c.d`${(a,i)=>pe(i.parent.getParticipantEntity(t),r,e)}`)}
                </div>
                <div class="participant-name">${null==t?void 0:t.name}</div>
            </div>
            ${(0,u.g)(((e,t)=>t.parent.isCricket()),c.d`
                <div class="${(e,a)=>a.parent.getParticipantScoreClassname(t,r)}">
                    <span class="score-line1">${(e,r)=>r.parent.getScoreLines(t)[0]}</span>
                    ${(0,u.g)(((e,r)=>r.parent.getScoreLines(t).length>1),c.d`<span>${(e,r)=>r.parent.getScoreLines(t)[1]}</span>`)}
                </div>
                <div class="winner-tag">
                ${(0,u.g)((e=>null==t?void 0:t.isWinner),c.d`${ce.Z}`)}
                </div>
            `)}
        </div>
        ${(0,u.g)(((e,t)=>t.parent.isCricket()),c.d`${(a,i)=>pe(i.parent.getParticipantEntity(t),r,e)}`)}
    </div>
`,ge=c.d`
    <div class="top-detail">
        ${(e,t)=>t.parent.getTopDetailContent()}
    </div>
 `,me=c.d`
    <div class="middle-game-detail">
        <span class="game-score-text-style" title="${e=>e.participantOne.score}">
            ${e=>{var t;return(null===(t=e.participantOne)||void 0===t?void 0:t.score)||""}}
        </span>
        <span class="game-score-text-style" title="${e=>e.participantTwo.score}">
            ${e=>{var t;return(null===(t=e.participantTwo)||void 0===t?void 0:t.score)||""}}
        </span>
    </div>
    ${(0,u.g)(((e,t)=>t.parent.enableAnimatedLive),c.d`<div class="detail-live-animation"></div>`)}
    <div class="bottom-game-detail" title="${e=>e.tvChannel?`${e.gamePeriodAndClock} - ${e.tvChannel}`:e.gamePeriodAndClock}">
        <span class="game-in-progress-text" title="${e=>e.gamePeriodAndClock}">
            ${e=>e.gamePeriodAndClock||""}
        </span>
        ${e=>e.gamePeriodAndClock&&e.tvChannel?" - ":""}
        <span title="${e=>e.tvChannel}">${e=>e.tvChannel||""}</span>
    </div>
`,fe=c.d`
    <div class="middle-game-detail" title="${e=>e.gameStartTime}">
        <span class="game-time-text-style" >
            ${e=>e.gameStartTime||""}
        </span>
    </div>
    <div class="bottom-game-detail" title="${e=>e.tvChannel?`${e.gameDate} - ${e.tvChannel}`:e.gameDate}">
        <span>${e=>e.gameDate||""}</span>
            ${e=>e.tvChannel&&e.gameDate?" - ":""}
        <span>${e=>e.tvChannel||""}</span>
    </div>
 `,ve=c.d`
    <div class="middle-game-detail">
        <span class="${(e,t)=>`game-score-text-style ${t.parent.getParticipantScoreClassname(e.participantOne,t.index)}`}">
            ${e=>{var t,r;return null!==(r=null===(t=e.participantOne)||void 0===t?void 0:t.score)&&void 0!==r?r:""}}
        </span>
        <span class="${(e,t)=>`game-score-text-style ${t.parent.getParticipantScoreClassname(e.participantTwo,t.index)}`}">
            ${e=>{var t,r;return null!==(r=null===(t=e.participantTwo)||void 0===t?void 0:t.score)&&void 0!==r?r:""}}
        </span>
    </div>
    <div class="bottom-game-detail" title="${e=>e.gameState?`${e.gameDate} - ${e.gameState}`:e.gameDate}">
        <span>${e=>e.gameDate||""}</span>
        ${e=>e.gameDate&&e.gameState?" - ":""}
        <span>${e=>e.gameState||""}</span>
    </div>
`,ye=c.d`
    ${ue.Jb}
`,we=c.d`
    <div class="game-detail pre-game">
        <div class="game-date">
            ${(e,t)=>t.parent.isGameToday(e.gameDate)}
        </div>
        <div class="game-time">
            ${e=>e.tvChannel?`${e.gameStartTime}, ${e.tvChannel}`:e.gameStartTime}
        </div>
    </div>
`,Se=c.d`
    <div class="game-detail post-game">
        <div class="game-state cricket-final">
            ${(e,t)=>{var r;return(null===(r=t.parent.strings)||void 0===r?void 0:r.sportsVS)||""}}
        </div>
    </div>
`,be=c.d`
 <div class="middle-detail">
     ${(0,u.g)((e=>e.gameStateCatetory&&e.gameStateCatetory==O.w_.preGame),we)}
     ${(0,u.g)((e=>e.gameStateCatetory&&e.gameStateCatetory==O.w_.postGame),Se)}
     ${(0,u.g)((e=>e.gameStateCatetory!=O.w_.preGame&&e.gameStateCatetory!=O.w_.postGame),ye)}
 </div>
`,Ce=c.d`
    <div class="middle-detail">
        ${(0,u.g)((e=>e.gameStateCatetory&&e.gameStateCatetory==O.w_.preGame),fe)}
        ${(0,u.g)((e=>e.gameStateCatetory&&e.gameStateCatetory==O.w_.postGame),ve)}
        ${(0,u.g)((e=>e.gameStateCatetory&&e.gameStateCatetory==O.w_.inprogressGame),me)}
    </div>
 `,xe=c.d`
    <div class="match-detail">
        ${ge}
        ${(e,t)=>t.parent.isCricket()?be:Ce}
    </div>
`,Te=c.d`  
    <a class="match-content"
        tabindex="0"
        href="${e=>e.matchClickthroughUrl?e.matchClickthroughUrl:void 0}"
        target=${(e,t)=>t.parent.linktarget}
        data-t="${(e,t)=>t.parent.telemetryContext&&t.parent.telemetryContext.games&&e.gameId?t.parent.telemetryContext.games.get(e.gameId).getMetadataTag():""}"
        @mouseenter="${(e,t)=>t.parent.handleMatchMouseEnter(t.event,t.index)}"
        @mouseleave="${(e,t)=>t.parent.handleMatchMouseLeave(t.event)}"
        @keyup="${(e,t)=>t.parent.handleSideBySideFocus(t.event,t.index)}"
        @blur="${(e,t)=>t.parent.handleSideBySideBlur(t.event)}"
    >
        ${(e,t)=>t.parent.isRTLDirection()?he(!0,e.participantTwo,t.index):he(!0,e.participantOne,t.index)}
        ${xe}
        ${(e,t)=>t.parent.isRTLDirection()?he(!1,e.participantOne,t.index):he(!1,e.participantTwo,t.index)}
        ${(0,u.g)(((e,t)=>t.parent.enableMatchFooter()),c.d`
            <div class="match-footer">${ue.AN}</div>`)}
    </a>
`,ke=c.d`
    <div class="${e=>e.isCricket()?"side-by-side-list":"side-by-side-list common-style"}">
        ${(0,de.rx)((e=>e.matchData),Te,{positioning:!0})}
    </div>
`;let Ie=class extends re{};Ie=(0,d.gn)([(0,te.M)({name:"match-side-by-side",template:ke,styles:le,shadowOptions:{delegatesFocus:!0}})],Ie);var $e=r(56201);const De=oe.i`
`,Me=oe.i`
    .see-more-arrow  > svg {
        float: right;
    }
    .carousel-seemore-content > svg {
        transform: rotateY(180deg);
    }

    .see-more-arrow {
        transform: matrix(-1, 0, 0, 1, 0, 0);
    }

    .flipper.previous {
        transform: none;
    }

    .flipper.next {
        transform: rotateY(180deg);
    }

    .vertical-carousel .bullets-container {
        left: 5px;
        right: auto;
    }

    .carousel-with-bfooter .flipper.previous {
        left: auto;
        right: 0;
    }

    .carousel-with-bfooter .flipper.previous::after {
        left: 5px;
        right: auto;
        border-color: transparent transparent transparent rgba(0, 0, 0, 0.4458);
    }

    .carousel-with-bfooter .flipper.next {
        left: 0;
        right: auto;
    }

    .carousel-with-bfooter .flipper.next::after {
        right: 5px;
        left: auto;
        border-color: transparent rgba(0, 0, 0, 0.4458) transparent transparent;
    }
`,Oe=oe.i`
    button {
        outline: none;
        border: none;
        margin: 0;
        padding: 0;
        background: transparent;
        cursor: pointer;
        border-radius: 6px;
    }

    .flipper {
        width: 20px;
        height: 20px;
    }

    .flipper:${$e.b} {
        outline: ${U.CHi} auto 1px;
    }
    .flipper.previous {
        transform: rotateY(180deg);
    }

    .flipper > svg > path {
        fill: rgba(0, 0, 0, 0.55);
    }

    .flipper > svg:hover path {
        fill: rgba(0, 0, 0, 0.83);
    }

    .flipper.noBackplate > svg > rect {
        fill: rgba(255, 255, 255, 0);
    }

    .flipper.noBackplate > svg > rect:hover{
        fill: rgba(0, 0, 0, 0.05);
    }

    .flipper.backplate > svg > rect {
        fill: rgba(0, 0, 0, 0.07);
    }

    .flipper.backplate > svg > rect:hover{
        fill: rgba(255, 255, 255, 0.54);
    }

    .flipper-content {
        height: 14px;
        padding: 3px 0px;
        color: ${U.CHi};
        text-align: center;
        font-size: 10px;
        font-weight: 400;
        line-height: 14px;
    }
    .flipper-content:hover,
    .flipper-content:active,
    .flipper-content:${$e.b} {
        color: ${U.D9J};
        text-decoration: underline;
    }

    .carousel-with-bfooter {
        position: relative;
    }

    .carousel-with-bfooter .flipper {
        position: absolute;
        top: calc(50% - 19px);
        width: 16px;
        height: 38px;
        margin-top: -19px;
        border-radius: 3px;
        background: transparent;
        overflow: hidden;
    }

    .carousel-with-bfooter .flipper:hover,
    .carousel-with-bfooter .flipper:${$e.b} {
        background: rgba(0, 0, 0, 0.2);
    }

    .carousel-with-bfooter .flipper:hover > svg > path,
    .carousel-with-bfooter .flipper:${$e.b} > svg > path {
        fill: rgba(0, 0, 0, 0.6063);
    }

    .carousel-with-bfooter .flipper.previous {
        left: 0;
        right: auto;
        transform: none;
    }

    .carousel-with-bfooter .flipper > svg > path {
        fill: rgba(0, 0, 0, 0.4458);
    }

    .carousel-with-bfooter .flipper.next {
        left: auto;
        right: 0;
        transform: none;
    }

    .carousel-container {
        width: 100%;
        overflow: hidden;
    }

    .carousel-with-bfooter .carousel-container {
        margin-top: 12px;
    }
    :host([cardlayout="_1x_1y"]) .carousel-with-bfooter .carousel-container {
        margin-top: 0;
    }

    .vertical-carousel .carousel-container {
        margin-top: 4px;
    }

    .carousel-wrapper {
        width: auto;
        white-space: nowrap;
        padding-inline-start: 0;
        transition-duration: 700ms;
        margin: 0;
        padding: 0;
        list-style: none;
        word-spacing: -4px;
    }

    .carousel-item {
        display: inline-block;
        height: 100%;
        vertical-align: top;
        word-spacing: 0px;
    }
    :host([carouselmode="fullwidth"]) .carousel-item {
        width: 300px;
    }
    :host([carouselmode="fullwidth"]) .vertical-carousel .carousel-container,
    :host([carouselmode="fullwidth"]) .vertical-carousel .carousel-item {
        height: 72px;
    }
    :host([carouselmode="fullwidth"][pinned="true"]) .carousel-item {
        width: 268px;
    }
    :host([cardlayout="_1x_2y"][carouselmode="fullwidth"]) .vertical-carousel .carousel-container,
    :host([cardlayout="_1x_2y"][carouselmode="fullwidth"]) .carousel-item {
        height: 226px;
    }
    :host([cardlayout="_1x_3y"][carouselmode="fullwidth"]) .vertical-carousel .carousel-container,
    :host([cardlayout="_1x_3y"][carouselmode="fullwidth"]) .carousel-item {
        height: 370px;
    }

    .vertical-carousel .carousel-item {
        display: block;
    }

    .carousel-item-content {
        display: block;
    }
    .carousel-item-content:${$e.b} {
        outline-offset: -2px;
    }

    .carousel-footer {
        display: grid;
        grid-template-columns: 75px auto;
        justify-content: space-between;
        width: 268px;
        padding: 4px 16px 0;
    }

    :host([uxstyle="article"]) .carousel-footer {
        margin-top: 10px;
    }

    .carousel-with-bfooter .carousel-footer {
        display: grid;
        padding: 0;
        margin: 0;
        grid-template-columns: auto;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .pagination-container {
        width: 67px; 
        height: 20px; 
        padding: 2px 0; 
        display: grid; 
        grid-template-columns: 20px 27px 20px; 
        align-items: center;
    }

    .bullets-container {
        position: absolute;
        left: 0;
        bottom: -15px;
        width: 100%;
        height: 8px;
        display: grid;
        justify-content: center;
        align-items: center;
    }

    .vertical-carousel .bullets-container {
        top: 0;
        bottom: auto;
        left: auto;
        right: 5px;
        width: 8px;
        height: 100%;
    }

    .bullets-wrapper {
        display: grid;
        grid-auto-flow: column;
        grid-gap: 6px;
    }

    .vertical-carousel .bullets-wrapper {
        grid-auto-flow: row;
    }

    .pagination-bullet {
        position: relative;
        width: 8px;
        height: 8px;
        color: rgba(0,0,0,.4458);
        cursor: pointer;
    }
    .pagination-bullet::after {
        content: "";
        position: absolute;
        top: 2px;
        left: 2px;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(0,0,0,.4458);
        outline: 1px solid transparent;
    }

    .pagination-bullet:hover::after,
    .pagination-bullet.active::after {
        outline-color: inherit;
    }

    .see-more-button {
        position: absolute;
        left: 50%;
        bottom: 10px;
        max-width: 268px;
        line-height: 20px;
        transform: translateX(-50%);
        font-size: 14px;
        color: #003E92;
        overflow: hidden;
        white-space: nowrap;
        text-decoration: none;
        text-overflow: ellipsis;
    }

    .see-more-button:hover {
        text-decoration: underline;
    }

    .see-more {
        padding: 0 0px;
        align-items: end;
        display: flex;
        flex-direction: row;
        flex: 1;
        min-width: 0;
        margin-top: 2px;
        justify-content: center;
        text-decoration: none;
        margin-left: auto;
        outline-offset: -1px;
    }
    .see-more:${$e.b} {
        outline: 2px solid;
    }

    .see-more-with-arrow {
        width: 193px;
        display: grid;
        text-decoration: none;
        grid-template-columns: 161px 24px;
        grid-column-gap: 8px;
        align-items: center;
        outline-offset: -1px;
    }

    .see-more-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border-radius: 20px;
        padding: 0 24px;
        height: 24px;
        font-size: 12px;
        line-height: 24px;
        color: ${U.CHi};
        background: ${U.jql};
        margin-top: -4px;
        border: solid 1px;
        border-color: ${U.goi};
        max-width: 156px;
        display: inline-block;
    }
    .see-more-text:hover,
    .see-more-text:active,
    .see-more-text:${$e.b} {
        border-color: ${U.D9J};
        background: ${U.QpD};
        text-decoration: underline;
    }

    .see-more-text.with-arrow {
        text-align: right;
        text-decoration: none;
        cursor: pointer;
        vertical-align: middle;
        justify-content: center;
        align-items: center;
        font-weight: 400;
        background: transparent;
        border: none;
        margin: 0;
        padding: 0;
    }

    .see-more-text.with-arrow:hover,
    .see-more-text.with-arrow:${$e.b} {
        text-decoration: underline;
        color: ${U.D9J};
    }

    .see-more-text.with-arrow:active {
        color: ${U.D9J};
    }
    .see-more-text-with-arrow {
        max-width: 156px;
        justify-content: flex-end;
        display: flex;
    }
    .see-more-text-with-arrow.see-more-text {
        max-width: auto;
    }
    .see-more-arrow {
        width: 24px;
        height: 24px;
    }

    .see-more-arrow  > svg {
        float: left;
    }

    .see-more-arrow  > svg > rect {
        fill: ${U.Avx};
    }

    .see-more-arrow  > svg > rect:hover {
        fill: ${U.OCG};
    }

    .see-more-arrow  > svg > path {
        fill: #FFFFFF;
    }

    .carousel-seemore {
        text-decoration: none;
        width: 100%;
        height: 100%;
    }

    .carousel-seemore-text {
        font-size: 12px;
    }

    .carousel-seemore-content {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 268px;
        height: 66px;
        border-radius: 6px;
        margin: 0px 14px 6px;
        background: rgba(255, 255, 255, 0.55);
        color: #0078D4;
    }
    :host([cardlayout="_1x_2y"]) .carousel-seemore-content,
    :host([cardlayout="_1x_3y"]) .carousel-seemore-content {
        height: 218px;
    }
    .carousel-seemore-content:hover {
        background: rgba(255, 255, 255, 0.75);
    }
    .carousel-seemore-content > svg {
        transform: none;
    }
    .carousel-seemore-content > svg > path {
        fill: #0078D4;
    }
    .carousel-seemore-content > svg > rect {
        fill: none;
        stroke: #0078D4;
    }
    .coldstart-done-button {
        background: #0078D4;
        display: flex;
        flex-direction: row;
        padding: 4px 8px;
        border-radius: 16px;
        align-items: center;
        justify-content: center;
        max-width: 64px;
    }
    .coldstart-done-button > span {
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        height: 16px;
        font-size: ${U.sNp};
        line-height: ${U.vgC};
        margin-right: 6px;
        color: #ffffff;
    }
    .coldstart-introduce {
        width: 100%;
        height: 64px;
        display: table-cell;
        vertical-align: middle;
    }
    .coldstart-introduce > span {
        font-size: ${U.sNp};
        line-height: ${U.vgC};
        white-space: break-spaces;
        word-break: break-word;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        color: currentColor;
    }
    :host([colormode="dark"]) .flipper.backplate > svg > rect {
        fill: rgba(255, 255, 255, 0.09);
    }
    :host([colormode="dark"]) .flipper.backplate > svg > path {
        fill: rgba(255, 255, 255, 0.54);
    }
    
    :host([colormode="dark"]) .flipper.backplate > svg:hover path {
        fill: rgba(0, 0, 0, 0.83);
    }
    
    :host([colormode="dark"]) .flipper.noBackplate > svg:hover path {
        fill: #ffffff;
    }
    :host([colormode="dark"]) .carousel-seemore-content > svg > path {
        fill: #7DBAE9;
    }
    :host([colormode="dark"]) .carousel-seemore-content > svg > rect {
        fill: none;
        stroke: #7DBAE9;
    }
    :host([colormode="dark"]) .carousel-seemore-content {
        background: rgba(255, 255, 255, 0.09);
        color: #7DBAE9;
    }
    :host([colormode="dark"]) .carousel-seemore-content:hover {
        background: rgba(255, 255, 255, 0.13);
    }
    :host([colormode="dark"]) .carousel-item-content:${$e.b} {
        outline-offset: -3px;
    }
    
    :host([colormode="dark"]) .pagination-bullet {
        color: rgba(255, 255, 255, 0.5442);
    }
    :host([colormode="dark"]) .pagination-bullet::after {
        background: rgba(255, 255, 255, 0.5442);
    }
    :host([colormode="dark"]) .carousel-with-bfooter .flipper > svg > path {
        fill: rgba(255, 255, 255, 0.5442);
    }
    :host([colormode="dark"]) .carousel-with-bfooter .flipper:hover,
    :host([colormode="dark"]) .carousel-with-bfooter .flipper:${$e.b} {
        background: rgba(255, 255, 255, 0.15);
    }
    :host([colormode="dark"]) .carousel-with-bfooter .flipper:hover > svg > path,
    :host([colormode="dark"]) .carousel-with-bfooter .flipper:${$e.b} > svg > path {
        fill: rgba(255, 255, 255, 0.786);
    }
    :host([colormode="dark"]) .see-more-button {
        color: #60CDFF;
    }
`.withBehaviors(new ie.O(De,Me),(0,ae.vF)(oe.i`
                :host {
                    forced-color-adjust: auto;
                }
                .pagination-bullet:hover::after,
                .pagination-bullet.active::after {
                    outline-width: 2px;
                }
            `));var Fe=r(58952),Ae=r(79826),Ue=r(99123),Pe=r(86758),Le=r(97881),Ee=r(7092);const He="bullets",Ne="fraction",Ge="verticalBullets";class ze extends te.H{constructor(){super(...arguments),this.initialCarouselVariable=()=>{var e,t;if(this.paginationType===Ge)if(this.carouselmode==O.xI.fullFill){let e=parseInt(this.carouselItemHeight);if(!e){const t=this.shadowRoot.querySelector(".carousel-item");e=(null==t?void 0:t.getBoundingClientRect().height)||0}this.itemHeight=e,this.pageCount=this.carouselContents.length}else this.itemHeight=(null===(e=this.carouselContainer)||void 0===e?void 0:e.getBoundingClientRect().height)||0,this.pageCount=this.itemHeight>0?((null===(t=this.carouselWrapper)||void 0===t?void 0:t.getBoundingClientRect().height)||0)/this.itemHeight:0;else{this.itemWidth=parseInt(this.carouselItemWidth||"");const e=parseInt(this.firstCarouselItemWidth||""),t=!isNaN(this.itemWidth)&&!isNaN(e)&&this.itemWidth>0&&e>=0?Math.floor(e/this.itemWidth):1,r=this.getParentContainerWidth();this.pageCount=Math.ceil((this.carouselContents.length+t-1)*this.itemWidth/(r-r%this.itemWidth))}},this.paginateCallback=(e,t,r)=>{if(e){e.preventDefault(),e.stopPropagation();let t="keydown"===e.type||"keypress"===e.type||"keyup"===e.type?$.Aw.KeyPress:$.Aw.Click;t="mousewheel"===e.type?$.Aw.Wheel:t,M.M0.sendActionEvent(e.currentTarget,t,$.wu.Paginate)}this.lastScrollTime=(new Date).getTime(),this.paginationType===He?this.bulletsPaginateCallback(e,t,r):this.paginationType===Ge?this.verticalBulletsPaginateCallback(e,t,r):this.fractionPaginateCallback(e,t),this.updateContentTabIndex()},this.fractionPaginateCallback=(e,t)=>{this.currentPageIndex=t?(this.currentPageIndex+1)%this.pageCount:0==this.currentPageIndex?this.pageCount-1:this.currentPageIndex-1,this.carouselStyle=this.getCarouselContainerStyle()},this.bulletsPaginateCallback=(e,t,r)=>{null==t?(this.currentPageIndex=r%this.pageCount,this.carouselStyle=this.getCarouselContainerStyle()):this.fractionPaginateCallback(e,t)},this.verticalBulletsPaginateCallback=(e,t,r)=>{null==t?(this.currentPageIndex=r%this.pageCount,this.carouselStyle=this.getVerticalCarouselContainerStyle()):this.fractionPaginateCallback(e,t)},this.bulletPaginationKeydown=(e,t)=>!e||(e.stopPropagation(),"Enter"!==e.key)||(e.preventDefault(),this.paginateCallback(e,null,t),!1),this.verticalCarouselMouseWheelCallback=e=>{if(e){const t=e.deltaY;if(!t||this.lastScrollTime&&Date.now()-this.lastScrollTime<300)return;if(e.preventDefault(),e.stopPropagation(),t>0)return void this.paginateCallback(e,null,this.currentPageIndex+1);if(t<0){const t=0===this.currentPageIndex?this.pageCount-1:this.currentPageIndex-1;return void this.paginateCallback(e,null,t)}}},this.updateContentTabIndex=()=>{this.updateTabIndexTimer&&clearTimeout(this.updateTabIndexTimer);const e=this.carouselWrapper;let t=0;try{t=1e3*window.parseFloat(window.getComputedStyle(e).transitionDuration)+50,t<=50&&(t=1e3)}catch(e){t=1e3}},this.getCarouselItemTabIndex=e=>e===this.currentPageIndex&&this.cardlayout===O.J4.Small?"0":"-1",this.handleCarouselFocusBlur=(e,t,r)=>{e&&e.currentTarget&&(e.preventDefault(),e.stopPropagation())},this.getParentContainerWidth=()=>{var e;return this.isDynamicFeed?300:(null===(e=this.parentElement)||void 0===e?void 0:e.getBoundingClientRect().width)||300},this.getCarouselContainerStyle=()=>{this.getSeemore();const e=this.getParentContainerWidth(),t=this.carouselmode==O.xI.fullFill?this.currentPageIndex*e:this.currentPageIndex*(e-e%this.itemWidth);let r="";return r="rtl"===this.rtl?`margin-right: -${t}px; padding-right: ${this.initialHorizontalOffset||0}px;`:`margin-left: -${t}px; padding-left: ${this.initialHorizontalOffset||0}px;`,this.isDynamicFeed?r+` max-height: ${this.cardlayout==O.J4.Large?378:220}px;`:r},this.getVerticalCarouselContainerStyle=()=>{this.getSeemore();return`margin-top: -${this.currentPageIndex*this.itemHeight}px;`},this.getSeemore=()=>{this.carouselContents&&this.carouselContents.length>this.currentPageIndex&&this.carouselContents[this.currentPageIndex].seemoreText?(this.seeMoreText=this.carouselContents[this.currentPageIndex].seemoreText,this.seeMoreClickthroughUrl=this.carouselContents[this.currentPageIndex].seemoreUrl||this.seemoreUrl):(this.seeMoreText=this.seemore,this.seeMoreClickthroughUrl=this.seemoreUrl)},this.shouldRenderSeeMoreItem=()=>this.cardlayout===O.J4.Small&&this.paginationType!==He&&this.paginationType!==Ge,this.getCarouselClassNames=()=>{let e="";return this.paginationType===He?e+=" carousel-with-bfooter":this.paginationType===Ge&&(e+=" vertical-carousel"),e},this.getCarouselPaginationType=()=>{let e=Ne;return this.enableBulletsPagination&&(e=He),e}}connectedCallback(){this.currentPageIndex=this.currentPageIndex&&this.currentPageIndex>=0&&this.currentPageIndex<this.carouselContents.length?this.currentPageIndex:0,this.paginationType=this.getCarouselPaginationType(),this.setIntersectionObserver(),this.carouselmode==O.xI.fullFill&&this.paginationType!==Ge?(this.pageCount=this.shouldRenderSeeMoreItem()?this.carouselContents.length+1:this.carouselContents.length,this.carouselStyle=this.getCarouselContainerStyle(),this.updateContentTabIndex()):setTimeout((()=>{this.initialCarouselVariable(),this.carouselStyle=this.getCarouselContainerStyle(),this.updateContentTabIndex()}),20),super.connectedCallback()}currentPageIndexChanged(e,t){null!=this.oldPageIndex&&(this.currentPageIndex=this.oldPageIndex,this.oldPageIndex=void 0)}disconnectedCallback(){window.clearTimeout(this.autoScrollTimer),window.clearTimeout(this.updateTabIndexTimer),this.unsetIntersectionObserver(),this.oldPageIndex=this.currentPageIndex}setIntersectionObserver(){if(this.intersectionObserver)return;this.intersectionObserver=new IntersectionObserver((e=>{this.isInViewport=e[0].intersectionRatio>0}),{threshold:[0]}),this.intersectionObserver.observe(this)}unsetIntersectionObserver(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0)}onMouseEnter(e){this.onholdAutoScroll=!0}onMouseLeave(e){this.onholdAutoScroll=!1}isPageDataValid(){return this.carouselContents&&this.carouselContents.length>0}}(0,d.gn)([p.Lj],ze.prototype,"cardlayout",void 0),(0,d.gn)([p.Lj],ze.prototype,"colormode",void 0),(0,d.gn)([p.Lj],ze.prototype,"carouselmode",void 0),(0,d.gn)([h.LO],ze.prototype,"telemetryContext",void 0),(0,d.gn)([h.LO],ze.prototype,"carouselItemWidth",void 0),(0,d.gn)([h.LO],ze.prototype,"firstCarouselItemWidth",void 0),(0,d.gn)([h.LO],ze.prototype,"initialHorizontalOffset",void 0),(0,d.gn)([h.LO],ze.prototype,"carouselItemHeight",void 0),(0,d.gn)([h.LO],ze.prototype,"currentPageIndex",void 0),(0,d.gn)([h.LO],ze.prototype,"pageCount",void 0),(0,d.gn)([h.LO],ze.prototype,"carouselContents",void 0),(0,d.gn)([h.LO],ze.prototype,"rtl",void 0),(0,d.gn)([h.LO],ze.prototype,"carouselStyle",void 0),(0,d.gn)([h.LO],ze.prototype,"carouselFooterButton",void 0),(0,d.gn)([h.LO],ze.prototype,"seeMoreText",void 0),(0,d.gn)([h.LO],ze.prototype,"seeMoreClickthroughUrl",void 0),(0,d.gn)([h.LO],ze.prototype,"enableBulletsPagination",void 0),(0,d.gn)([h.LO],ze.prototype,"isDynamicFeed",void 0),(0,d.gn)([h.LO],ze.prototype,"enablePaginationLink",void 0),(0,d.gn)([h.LO],ze.prototype,"enablePaginationBackplate",void 0);const Re=c.d`
    <li class="carousel-item" key="${(e,t)=>t.index}">
        <div class="carousel-item-content"
            style="width: ${(e,t)=>0==t.index&&t.parent.firstCarouselItemWidth?t.parent.firstCarouselItemWidth:t.parent.carouselItemWidth}; ${(e,t)=>t.index===t.parent.currentPageIndex||t.parent.carouselmode!=O.xI.fullFill?"":"display: none;"}"
            tabindex="${(e,t)=>t.parent.getCarouselItemTabIndex(t.index)}"
            @focus="${(e,t)=>t.parent.handleCarouselFocusBlur(t.event,t.index,!0)}"
            @blur="${(e,t)=>t.parent.handleCarouselFocusBlur(t.event,t.index,!1)}"
        >
            ${e=>e}
        </div>
    </li>
`,We=c.d`
    <a class="carousel-seemore"
        tabindex="${e=>e.currentPageIndex==e.pageCount-1?"0":"-1"}"
        href=${e=>e.seeMoreClickthroughUrl||void 0}
        target="${e=>e.linkTarget}"
        data-t="${e=>{var t,r;return(null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMoreSports)||void 0===r?void 0:r.getMetadataTag())||""}}"
    >
        <div class="carousel-seemore-content">
            ${Ue.Z}
            <span class="carousel-seemore-text">${e=>e.strings.sportsCTA}</span>
        </div>
    </a>
`,je=c.d`
    <div
        class="carousel-container"
        key="sports-carousel"
        tabindex="-1"
        ${(0,Fe.i)("carouselContainer")}
        @mousewheel=${(e,t)=>e.paginationType===Ge?e.verticalCarouselMouseWheelCallback(t.event):null}
        data-t="${e=>{var t,r;return(null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.sportsCarousel)||void 0===r?void 0:r.getMetadataTag())||""}}"
    >
        <ul class="carousel-wrapper" style="${e=>e.carouselStyle}" tabindex="-1" ${(0,Fe.i)("carouselWrapper")}>
            ${(0,de.rx)((e=>e.carouselContents.map((e=>e.contentView))),Re,{positioning:!0})}
            ${(0,u.g)((e=>e.shouldRenderSeeMoreItem()),c.d`
            <li class="carousel-item" key="car-seemore">
                <div class="carousel-item-content" style="width: ${e=>e.carouselItemWidth}" tabindex="-1">
                    ${We}
                </div>
            </li>`)}
        </ul>
    </div>
`,Be=c.d`
    <a
        class="${e=>e.enablePaginationLink?"see-more-with-arrow":"see-more"}"
        title="${e=>e.seeMoreText}"
        aria-label="${e=>e.seeMoreText}"
        href=${e=>e.seeMoreClickthroughUrl}
        target="${e=>e.linkTarget}"
        data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMoreLeague)||void 0===r?void 0:r.getMetadataTag()}}"
    >
        <div class="${e=>e.enablePaginationLink?"see-more-text-with-arrow":""}">
            <span class="${e=>e.enablePaginationLink?"see-more-text with-arrow":"see-more-text"}">
                ${e=>e.seeMoreText}
            </span>
        </div>
        ${(0,u.g)((e=>e.enablePaginationLink),c.d`
            <span class="see-more-arrow">
                ${Pe.Z}
            </span>
        `)}
    </a>
`,qe=c.d`
    <a
        class="see-more-button"
        title="${e=>e.seeMoreText}"
        aria-label="${e=>e.seeMoreText}"
        href=${e=>e.seeMoreClickthroughUrl}
        target="${e=>e.linkTarget}"
        data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMoreLeague)||void 0===r?void 0:r.getMetadataTag()}}"
    >
        ${e=>e.seeMoreText}
    </a>
`,Ve=c.d`
    <button title="${e=>e.strings.sportsPreviousMatch}" class="flipper previous${e=>e.enablePaginationBackplate?" backplate":" noBackplate"}"
        tabindex="0"
        @click="${(e,t)=>e.paginateCallback(t.event,!1)}"
        @keypress="${(e,t)=>t&&t.event&&"Enter"===t.event.key?e.paginateCallback(t.event,!1):null}"
        data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.previousMatch)||void 0===r?void 0:r.getMetadataTag()}}"
    >
        ${(0,u.g)((e=>e.paginationType===Ne),c.d`${Ae.Z}`)}
        ${(0,u.g)((e=>e.paginationType===He||e.paginationType===Ge),(e=>"rtl"===e.rtl?c.d`${Ee.Z}`:c.d`${Le.Z}`))}
    </button>
`,_e=c.d`
    <button title="${e=>e.strings.sportsNextMatch}" class="flipper next${e=>e.enablePaginationBackplate?" backplate":" noBackplate"}"
        tabindex="0"
        @click="${(e,t)=>e.paginateCallback(t.event,!0)}"
        @keypress="${(e,t)=>e.paginateCallback(t.event,!0)}"
        data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.nextMatch)||void 0===r?void 0:r.getMetadataTag()}}"
    >
        ${(0,u.g)((e=>e.paginationType===Ne),c.d`${Ae.Z}`)}
        ${(0,u.g)((e=>e.paginationType===He||e.paginationType===Ge),(e=>"rtl"===e.rtl?c.d`${Le.Z}`:c.d`${Ee.Z}`))}
    </button>
`,Je=c.d`
    <span
        key="${(e,t)=>t.index}"
        tabindex="0"
        role="button"
        class="pagination-bullet${(e,t)=>t.parent.currentPageIndex===t.index?" active":""}"
        aria-current="${(e,t)=>t.parent.currentPageIndex===t.index}"
        title="${(e,t)=>t.parent.strings&&t.parent.strings.goToPageX?(0,v.WU)(t.parent.strings.goToPageX,String(t.index+1)):""}"
        aria-label="${(e,t)=>t.parent.strings&&t.parent.strings.goToPageX?(0,v.WU)(t.parent.strings.goToPageX,String(t.index+1)):""}"
        @click=${(e,t)=>t.parent.paginateCallback(t.event,null,t.index)}
        @keydown=${(e,t)=>t.parent.bulletPaginationKeydown(t.event,t.index)}
        data-t="${(e,t)=>{var r,a,i;return null===(i=null===(a=null===(r=t.parent)||void 0===r?void 0:r.telemetryContext)||void 0===a?void 0:a.clickCarouselDot)||void 0===i?void 0:i.getMetadataTag()}}"
    ><span>
`,Ye=c.d`
    <div class="bullets-container">
        <div class="bullets-wrapper">
            ${(0,de.rx)((e=>e.carouselContents),Je,{positioning:!0})}
        </div>
    </div>
`,Ze=c.d`
    <div class="flipper-content" tabindex="-1">
        ${e=>e.pageCount>0?e.currentPageIndex+1+"/"+e.pageCount:""}
    </div>
`,Xe=c.d`
    <div class="pagination-container">
        ${Ve}
        ${Ze}
        ${_e}
    </div>
    ${e=>e.carouselFooterButton||Be}
`,Ke=c.d`
    ${Ve}
    ${_e}
    ${Ye}
`,Qe=c.d`
    ${Ye}
    ${e=>e.carouselFooterButton||qe}
`,et=c.d`
    <div class="carousel-footer">
        ${(0,u.g)((e=>e.paginationType===Ne),Xe)}
        ${(0,u.g)((e=>e.paginationType===He),Ke)}
        ${(0,u.g)((e=>e.paginationType===Ge),Qe)}
    </div>
`,tt=c.d`
    ${(0,u.g)((e=>e.isPageDataValid()),c.d`
    <div
        class="${e=>e.getCarouselClassNames()}"
        @focusin=${(e,t)=>e.onMouseEnter(t.event)}
        @focusout=${(e,t)=>e.onMouseLeave(t.event)}
        @mouseenter=${(e,t)=>e.onMouseEnter(t.event)}
        @mouseleave=${(e,t)=>e.onMouseLeave(t.event)}>
        ${je}
        ${(0,u.g)((e=>e.isPageDataValid()),et)}
    </div>
    `)}
`;let rt=class extends ze{};rt=(0,d.gn)([(0,te.M)({name:"sports-card-carousel",template:tt,styles:Oe,shadowOptions:{delegatesFocus:!0}})],rt);const at=oe.i`
    .sports-countdown {
        color: ${U.CHi};
        text-decoration: none;
        backdrop-filter: blur(2px);
        border-radius: 4px;
        padding: 4px 0;
        margin: 0 16px;
        display: inline-block;
    }
    .sports-countdown.with-line {
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        width: 268px;
        height: 78px;
        padding: 6px 0 0;
        margin-bottom: 6px;
    }
    .with-line .countdown-item {
        background: transparent;
        border-radius: 0;
    }
    .with-line .countdown-title {
        margin-bottom: 8px;
        font-weight: 600;
    }
    .with-line .countdown-item:not(:last-child) {
        border-right: 1px solid rgba(0, 0, 0, 0.07);
    }
    .countdown-content {
        display: grid;
        grid-template-columns: 68px 68px 68px 68px;
    }
    .countdown-item {
        align-items: center;
        text-align: center;
        background: rgba(6, 0, 122, 0.12);
        border-radius: 6px;
        width: 62px;
    }
    .countdown-value {
        font-weight: 600;
        font-size: 20px;
        line-height: 27px;
    }
    .countdown-unit {
        font-weight: 400;
        font-size: 10px;
        line-height: 14px;
        max-width: 62px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        text-transform: capitalize;
    }
    .countdown-title {
        font-size: 14px;
        line-height: 20px;
        height: 20px;
        margin: 0 12px 2px;
        text-align: center;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    .countdown-fallback {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 252px;
        height: 44px;
        text-align: center;
        padding: 13px 13px;
        background: rgba(35, 38, 159, 0.08);
        border-radius: 6px;
        backdrop-filter: blur(5px);
        margin: 12px 0px;
        display: flex;
        flex-direction: column;
        row-gap: 6px;
    }
    :host([cardsize="_1x_1y"]) .countdown-fallback {
        margin: 0;
        height: unset;
    }

    .fallback-title {
        font-size: 16px;
        line-height: 18px;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .fallback-sub-title {
        font-size: 11px;
        line-height: 16px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .match-overview {
        display: flex;
        padding-bottom: 12px;
    }
    .overview-logo {
        width: 65px;
        height: 65px;
    }
    .overview-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 0 0;
        gap: 6px;
        width: 197px;
        height: 56px;
    }
    .overview-title {
        font-weight: 600;
        font-size: 20px;
        line-height: 26px;
    }
    .follow-icon {
        padding: 4px 12px;
        height: 24px;
        background: none;
        border-radius: 80px;
        border: 1px solid currentColor;
        font-weight: 400;
        font-size: 12px;
        line-height: 16px;
        align-items: center;
        display: flex;
        color: currentcolor;
        fill: currentcolor;
    }
    .follow-icon > svg > path:nth-child(2) {
        fill: none;
    }
    .follow-icon.following > svg > path:nth-child(2) {
        fill: #FFFFFF;
    }
    .follow-icon.following {
        background: ${U.Avx};
        border: none;
        color: #FFFFFF;
    }
    :host([colormode="dark"]) .countdown-fallback {
        background: rgba(255, 255, 255, 0.07);
    }

    :host([colormode="dark"]) .countdown-item,
    :host([colormode="dark"]) .with-line {
        background: rgba(255, 255, 255, 0.07);
    }
    :host([colormode="dark"]) .with-line .countdown-item {
        background: transparent;
    }
    :host([colormode="dark"]) .with-line .countdown-item:not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

`.withBehaviors((0,ae.vF)(oe.i`
            :host {
                forced-color-adjust: auto;
            }
            @media screen and (-ms-high-contrast: active) {
                .state-base {
                    border: 1px solid;
                }
            }
        }`)),it="withline";class ot extends te.H{constructor(){super(...arguments),this.initializeData=()=>{var e,t,r,a,i;if(this.updateCountdownTime(),this.countdownTimer=setInterval((()=>this.updateCountdownTime()),1e3),this.sportsCardData&&(this.freTitle=(null===(e=this.sportsCardData.freData)||void 0===e?void 0:e.h1Text)||(null===(t=this.sportsCardData.sportsMatchupCardData)||void 0===t?void 0:t.cardTitle)||this.strings.freTitle,this.freDescription=(null===(r=this.sportsCardData.freData)||void 0===r?void 0:r.h2Text)||this.strings.freDescription,this.logoUrl=(null===(a=this.sportsCardData.freData)||void 0===a?void 0:a.primaryEntityImage)||(null===(i=this.sportsCardData.sportsMatchupCardData)||void 0===i?void 0:i.cardTitleImageUrl),this.logoUrl=(0,A.Sb)(this.logoUrl,85,85),this.isZeroTime=this.startTime<=Date.now(),this.sportsCardData.sportsMatchupCardData)){this.isFollowed=this.isSportsFollowed&&this.isSportsFollowed(this.sportsCardData.sportsMatchupCardData.leagueSatoriId,this.sportsCardData.sportsMatchupCardData.leagueYid);const e=this.sportsCardData.sportsMatchupCardData;this.leagueEntity=Object.create({id:e.leagueSatoriId,yId:e.leagueYid,name:e.leagueName,displayText:this.strings.wcCoverage||e.leagueName,type:O.fs.League,webSearchUrl:e.seeMoreLeagueClickThroughUrl,sportType:e.sportType,leagueId:e.leagueId}),this.leagueEntityTelemetry=this.telemetryContext&&(0,O.FJ)(this.telemetryObject,this.leagueEntity,this.telemetryContext.contract.content.brandId,this.telemetryContext.contract.ext,!0,{zone:this.telemetryContext.contract.zone})}},this.updateCountdownTime=()=>{const e=(0,A.iq)(this.startTime);this.countdownDay=e.days,this.countdownHour=e.hours,this.countdownMinute=e.minutes,this.countdownSecond=e.seconds}}connectedCallback(){super.connectedCallback(),this.initializeData()}disconnectedCallback(){super.disconnectedCallback(),this.countdownTimer&&(clearInterval(this.countdownTimer),this.countdownTimer=null)}}(0,d.gn)([p.Lj],ot.prototype,"colormode",void 0),(0,d.gn)([h.LO],ot.prototype,"countdownDay",void 0),(0,d.gn)([h.LO],ot.prototype,"countdownHour",void 0),(0,d.gn)([h.LO],ot.prototype,"countdownMinute",void 0),(0,d.gn)([h.LO],ot.prototype,"countdownSecond",void 0),(0,d.gn)([h.LO],ot.prototype,"isFollowed",void 0),(0,d.gn)([h.LO],ot.prototype,"isZeroTime",void 0);var nt=r(61870),st=r(83281);const lt=(e,t)=>c.d`
    <div class="countdown-item">
        <div class="countdown-value">${e<10?"0"+e:e}</div>
        <div class="countdown-unit">${t}</div>
    </div>
`,dt=c.d`
    <div class="countdown-fallback">
        <div class="fallback-title" title="${e=>e.freTitle}">${e=>e.freTitle}</div>
        <div class="fallback-sub-title"title="${e=>e.freDescription}">${e=>e.freDescription}</div>
    </div>
`,ct=c.d`
    <div class="match-overview">
        <img class="overview-logo"
            role="presentation"
            src="${e=>e.logoUrl}"
        />
        <div class="overview-content">
            <div class="overview-title" title="${e=>e.freTitle}">${e=>e.freTitle}</div>
            <button class="${e=>e.isFollowed?"follow-icon following":"follow-icon"}"
                tabindex="0"
                aria-label="${e=>e.strings.cancel}"
                title="${e=>e.strings.cancel}"
                @click="${e=>e.selectEntityCallback(e.leagueEntity,e.isFollowed)}"
                data-t="${e=>{var t,r,a,i;return e.isFollowed?null===(r=null===(t=e.leagueEntityTelemetry)||void 0===t?void 0:t.unfollow)||void 0===r?void 0:r.getMetadataTag():null===(i=null===(a=e.leagueEntityTelemetry)||void 0===a?void 0:a.follow)||void 0===i?void 0:i.getMetadataTag()}}">
                ${e=>e.isFollowed?c.d`${nt.Z}`:c.d`${st.Z}`}
                ${e=>e.isFollowed?(0,v.WU)(e.strings.haveFollowed,"").trim():e.strings.follow}
            </button>
        </div>
    </div>
`,ut=c.d`
    <div class="${e=>e.layout==it?"sports-countdown with-line":"sports-countdown"}">
        <div class="countdown-title">${e=>e.countdownTitle||""}</div>
        <div class="countdown-content">
            ${e=>{var t,r;return lt(e.countdownDay,e.countdownDay>1?null===(t=e.strings)||void 0===t?void 0:t.daysAgo:null===(r=e.strings)||void 0===r?void 0:r.dayAgo)}}
            ${e=>{var t,r;return lt(e.countdownHour,e.countdownHour>1?null===(t=e.strings)||void 0===t?void 0:t.hoursAgo:null===(r=e.strings)||void 0===r?void 0:r.hourAgo)}}
            ${e=>{var t,r;return lt(e.countdownMinute,e.countdownMinute>1?null===(t=e.strings)||void 0===t?void 0:t.minutesAgo:null===(r=e.strings)||void 0===r?void 0:r.minuteAgo)}}
            ${e=>{var t,r;return lt(e.countdownSecond,e.countdownSecond>1?null===(t=e.strings)||void 0===t?void 0:t.secondsAgo:null===(r=e.strings)||void 0===r?void 0:r.secondAgo)}}
        </div>
    </div>
`,pt=c.d`
    ${(0,u.g)((e=>e.sportsCardData&&!e.isZeroTime),ut)}
    ${(0,u.g)((e=>e.layout!=it&&e.isZeroTime),dt)}
    ${(0,u.g)((e=>e.layout==it&&e.isZeroTime),ct)}
`;let ht=class extends ot{};ht=(0,d.gn)([(0,te.M)({name:"sports-countdown",template:pt,styles:at,shadowOptions:{delegatesFocus:!0}})],ht);var gt=r(15933);const mt=oe.i`
    .left-icon {
        float: left;
        margin-left: 16px;
    }
    .right-icon {
        float: right;
        margin-right: 16px;
    }
    .icon-selected,
    .icon-add {
        z-index: 2;
    }

    .icon-add.blue-style > svg > g {
        opacity: 1;
    }

    .icon-add.blue-style > svg > g > path,
    .icon-selected.default-style > svg > path,
    .icon-selected.blue-style > svg > path {
        fill: #FFFFFF;
    }
    .icon-add.blue-style > svg > g > rect,
    .icon-selected.blue-style > svg > rect,
    .icon-selected.default-style > svg > rect  {
        fill: ${U.Avx};
    }
    .icon-hide {
        width: 0;
        opacity: 0;
        overflow: hidden;
    }

    .default-style > svg {
        fill: #1A1A1A;
    }
    .gray-style > svg {
        fill: #878787;
    }

    .icon-selected.default-style > svg {
        fill: currentColor;
    }
    
    .default-style:hover,
    .gray-style:hover {
        fill: ${U.Avx};
    }

    .icon-add.default-style:hover > svg,
    .icon-add.gray-style:hover svg {
        width: 24px;
        height: 24px;
    }

    :host([colormode="dark"]) .gray-style {
        fill: #FFFFFF;
    }
    :host([colormode="dark"]) .default-style > svg {
        fill: #FFFFFF;
    }
`.withBehaviors((0,ae.vF)(oe.i`
                :host: 
                    forced-color-adjust: auto;
                }
                .icon-add.blue-style > svg > g > path,
                .icon-selected.blue-style > svg > path {
                    fill: ${gt.H.LinkText};
                }
                .icon-add.blue-style > svg > g > rect,
                .icon-selected.blue-style > svg > rect {
                    fill: #000000;
                    stroke: ${gt.H.LinkText};
                }
            `));var ft=r(55908),vt=r(32172),yt=r(85663);const wt="gray",St="blue",bt="dark";class Ct extends te.H{constructor(){super(...arguments),this.colorSchemeChangeHandler=()=>{this.colormode=(0,X.Y)()?O.wF.dark:O.wF.light},this.handleClickAddIcon=e=>{const t=!this.isFollowedState;if(this.hasClicked=!0,this.clickCallback)return this.clickCallback(e,this.sportsEntity,t),void this.updateFollowState();if(e&&e.currentTarget){e.preventDefault(),e.stopPropagation();const r="keydown"===e.type||"keypress"===e.type||"keyup"===e.type;M.M0.sendActionEvent(e.currentTarget,r?$.Aw.KeyPress:$.Aw.Click,t?$.wu.Follow:$.wu.Unfollow)}t?this.followSportsCallback&&this.followSportsCallback(this.sportsEntity):this.unfollowSportsCallback&&this.unfollowSportsCallback(this.sportsEntity,!1),this.updateFollowState()},this.handleFocus=e=>{this.focusCallback&&this.focusCallback(e,this.index)},this.handleBlur=e=>{this.blurCallback&&this.blurCallback(e)},this.getFollowIconTitle=()=>this.strings?this.strings.followSports&&this.strings.followSports.includes("{0}")?(0,v.WU)(this.isFollowedState?this.strings.haveFollowed:this.strings.followSports,this.sportsEntity.name):this.isFollowedState?this.strings.haveFollowed&&(0,v.WU)(this.strings.haveFollowed,this.sportsEntity.name):this.strings.followSports:"",this.getIconStyleClass=()=>{const e=this.isFollowedState?"icon-selected":"icon-add";if(this.grayStyle)return`${e} gray-style`;if(!this.colorStyle)return`${e} blue-style`;switch(this.colorStyle){case wt:return`${e} gray-style`;case St:return`${e} blue-style`;default:return`${e} default-style`}},this.getTelemetryTag=()=>{if(this.isHoverFollow){const e=this.telemetryContext&&this.telemetryContext.teams&&this.telemetryContext.teams.get(this.sportsEntity.id);if(e&&e.followTeam)return e.followTeam.getMetadataTag()}const e=this.telemetryContext&&this.telemetryContext.sportsCard,t=(0,O.FJ)(this.telemetryObject,this.sportsEntity,e&&e.contract.content.brandId,e&&e.contract.ext,!0,{zone:e&&e.contract.zone});return this.isFollowedState?null==t?void 0:t.unFollowEntity.getMetadataTag():null==t?void 0:t.followEntity.getMetadataTag()},this.updateFollowState=()=>(0,d.mG)(this,void 0,void 0,(function*(){setTimeout((()=>{this.isFollowedState=this.isSportsFollowed?this.isSportsFollowed(this.sportsEntity.id,this.sportsEntity.yId):this.isFollowedState,this.hasClicked=!1}),1e3)}))}shouldShowFollowIconChanged(e,t){(e!=t||(0,yt.isNullOrUndefined)(this.isFollowedState))&&(this.isFollowedState=this.isSportsFollowed&&this.isSportsFollowed(this.sportsEntity.id,this.sportsEntity.yId))}connectedCallback(){super.connectedCallback(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.colorSchemeChangeHandler),this.hasClicked=!1,this.isFollowedState=this.isSportsFollowed&&this.isSportsFollowed(this.sportsEntity.id,this.sportsEntity.yId)}}(0,d.gn)([p.Lj],Ct.prototype,"cardlayout",void 0),(0,d.gn)([p.Lj],Ct.prototype,"colormode",void 0),(0,d.gn)([h.LO],Ct.prototype,"tabIndex",void 0),(0,d.gn)([h.LO],Ct.prototype,"telemetryObject",void 0),(0,d.gn)([h.LO],Ct.prototype,"telemetryContext",void 0),(0,d.gn)([h.LO],Ct.prototype,"shouldShowFollowIcon",void 0),(0,d.gn)([h.LO],Ct.prototype,"isFollowedState",void 0),(0,d.gn)([h.LO],Ct.prototype,"hasClicked",void 0);const xt=c.d`
    ${e=>e.grayStyle||e.colorStyle==bt?c.d`${st.Z}`:c.d`${ft.Z}`}
`,Tt=c.d`
    ${e=>e.grayStyle?c.d`${vt.Z}`:c.d`${nt.Z}`}
`,kt=c.d`
    <div class="${e=>e.shouldShowFollowIcon?"follow-icon":"icon-hide"}"
        role="button"
        tabindex="${e=>e.tabIndex}"
        title="${e=>e.getFollowIconTitle()}"
        @click="${(e,t)=>e.handleClickAddIcon(t.event)}"
        @keyup="${(e,t)=>t&&t.event&&"Enter"===t.event.key?e.handleClickAddIcon(t.event):null}"
        @focus="${(e,t)=>e.handleFocus(t.event)}"
        @blur="${(e,t)=>e.handleBlur(t.event)}"
        data-t="${e=>e.getTelemetryTag()}"
    >
        <div class="${e=>null!=e.hasClicked&&e.getIconStyleClass()}"> ${e=>null!=e.hasClicked&&e.isFollowedState?Tt:xt}</div>
    </div>
`;let It=class extends Ct{};It=(0,d.gn)([(0,te.M)({name:"sports-card-follow-icon",template:kt,styles:mt})],It);const $t=oe.i`
    .followteams-title {
        padding: 6px 16px 0;
        font-weight: 600;
        font-size: 12px;
        line-height: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis; 
    }
    .center-bold {
        text-align: center;
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
    }

    :host([cardlayout="_1x_1y"]) .followteams-title {
        padding: 0 16px 2px;
        font-size: 12px;
        line-height: 16px;
    }

    sports-carousel {
        display: block;
        margin-top: -6px;
    }

    .followteams-list {
        display: grid;
        grid-column-gap: 6px;
        grid-template-columns: 62px 62px 62px 62px;
        padding: 6px 16px 16px;
    }
    :host([cardlayout="_1x_1y"]) .followteams-list {
        padding: 0 16px;
    }
    :host([cardlayout="_1x_3y"]) sports-item {
        padding: 6px 0;
    }

`.withBehaviors((0,ae.vF)(oe.i`
                :host: 
                    forced-color-adjust: auto;
                }
            `));class Dt extends te.H{connectedCallback(){var e;if(null===(e=this.shadowRoot)||void 0===e?void 0:e.host){const e=this.getContentViewTelemetryTag();e&&(this.shadowRoot.host.removeAttribute("data-t"),this.shadowRoot.host.setAttribute("data-t",e),this.shadowRoot.host.removeAttribute("role"),this.shadowRoot.host.setAttribute("role","button")),this.shadowRoot.host.addEventListener("click",(e=>this.cardClickHandler&&this.cardClickHandler(e))),this.shadowRoot.host.addEventListener("keypress",(e=>{"Enter"==e.key&&this.cardClickHandler&&this.cardClickHandler(e)}))}super.connectedCallback()}getContentViewTelemetryTag(){var e;return this.telemetryContext&&(null===(e=this.telemetryContext.interests)||void 0===e?void 0:e.getMetadataTag())}}(0,d.gn)([p.Lj],Dt.prototype,"cardlayout",void 0),(0,d.gn)([p.Lj],Dt.prototype,"colormode",void 0),(0,d.gn)([h.LO],Dt.prototype,"worldCupData",void 0),(0,d.gn)([h.LO],Dt.prototype,"telemetryObject",void 0),(0,d.gn)([h.LO],Dt.prototype,"telemetryContext",void 0);const Mt=oe.i`
    .single-item .icon-selected,
    .single-item .icon-add {
        margin-left: -14px;
    }
    .league-icon img {
        margin-left: 8px;
    }
`,Ot=oe.i`
    .single-item .icon-selected,
    .single-item .icon-add {
        margin-right: -14px;
    }

    .league-icon img {
        margin-right: 8px;
    }
`,Ft=oe.i`
    .sports-item {
        width: 64px;
        height: 64px;
        display: flex;
        flex-direction: column;
        margin: 4px;
        border-radius: 6px;
    }
    .double-items .sports-item {
        width: 80px;
        height: 80px;
        margin: 8px 8px 8px 4px;
    }
    .league-icon {
        display: flex;
        border: none;
        background: transparent;
        cursor: pointer;
        margin-top: 6px;
    }
    .double-items .league-icon {
        margin-top: 6px;
    }
    .single-item .league-icon {
        margin-top: 4px;
    }

    .icon-selected {
        fill: #BEBEBE;
    }
    .single-item .icon-selected,
    .single-item .icon-add {
        margin-left: -14px;
    }
    .league-icon img {
        margin-left: 8px;
        width: 40px;
        height: 40px;
    }
    .league-name {
        font-size: ${U.sNp};
        line-height: ${U.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        color: rgb(255, 255, 255);
        text-align: center;
        color: #FFFFFF;
        margin: 0 4px;
    }
    .double-items .league-name {
        width: 64px;
        height: 32px;
    }
    .single-item .league-name {
        width: 56px;
        height: 16px;
    }
    .league-name-1line {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .league-name-2lines {
        white-space: break-spaces;
        word-break: break-word;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .tetrad-item {
        width: 126px;
        height: 28px;
        margin: 4px;
        border-radius: 20px;
        background: rgba(6, 0, 122, 0.1);
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .tetrad-item .league-icon img {
        margin-left: 4px;
        width: 20px;
        height: 12px;
    }
    .tetrad-item .league-name-1line {
        width: 58px;
    }
    .tetrad-item .league-name {
        color: ${U.CHi};
        width: 58px;
        text-align: start;
    }
    .tetrad-item .follow-icon {
        margin-top: -3px;
    }

    .single-vertical {
        width: 62px;
        height: 84px;
        margin: 0;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.7);
        backdrop-filter: blur(5px);
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
    }
    .single-vertical .league-name {
        color: ${U.CHi};
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 60px;
        font-weight: 600;
        font-size: 10px;
        line-height: 14px;
    }
    .single-vertical img {
        width: 38px;
        padding-top: 6px;
    }
    .single-vertical .follow-icon {
        height: 20px;
    }

    :host([cardlayout="_1x_1y"]) .follow-icon {
        display: none;
    }
        
    :host([cardlayout="_1x_1y"]) .single-vertical:hover .follow-icon,
    :host([cardlayout="_1x_1y"]) .single-vertical:active .follow-icon,
    :host([cardlayout="_1x_1y"]) .single-vertical:${$e.b} .follow-icon {
        display: flex;
    }

    .icon-and-follow {
        display: flex;
        align-items: center;
    }
    .icon-and-follow .follow-icon {
        margin-right: -16px;
        margin-top: -6px;
    }
    :host([cardlayout="_1x_1y"]) .single-vertical {
        height: 48px;
    }
    :host([cardlayout="_1x_1y"]) .single-vertical img {
        width: 24px;
    }
    :host([colormode="dark"]) .tetrad-item,
    :host([colormode="dark"]) .single-vertical,
    :host([colormode="dark"]) .tetrad-item {
        background: rgba(255, 255, 255, 0.07);
    }
}


`.withBehaviors(new ie.O(Mt,Ot),(0,ae.vF)(oe.i`
                :host: 
                    forced-color-adjust: auto;
                }
            `)),At="single",Ut="double",Pt="tetrad",Lt="single-vertical";class Et extends te.H{constructor(){super(...arguments),this.colorSchemeChangeHandler=()=>{this.colormode=(0,X.Y)()?O.wF.dark:O.wF.light},this.followIconClickHandler=e=>{(0,yt.isNullOrUndefined)(e.selected)&&(e.selected=this.isEntitySelected(e)),e.selected=!e.selected,this.selectCallback&&this.selectCallback(e,e.selected),this.entityClicked=!0},this.clickHandler=(e,t)=>{e&&(e.preventDefault(),e.stopPropagation()),this.followIconClickHandler(t)},this.isEntitySelected=e=>(this.entityClicked=!1,this.isSportsFollowed&&this.isSportsFollowed(e.id,e.yId)),this.getFollowIconTitle=e=>this.strings&&e?this.strings.followSports&&this.strings.followSports.includes("{0}")?(0,v.WU)(e.selected?this.strings.haveFollowed:this.strings.followSports,e.name):e.selected?this.strings.haveFollowed&&(0,v.WU)(this.strings.haveFollowed,e.name):this.strings.followSports:""}connectedCallback(){super.connectedCallback(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.colorSchemeChangeHandler),this.entityClicked=!1}}(0,d.gn)([p.Lj],Et.prototype,"cardlayout",void 0),(0,d.gn)([p.Lj],Et.prototype,"colormode",void 0),(0,d.gn)([h.LO],Et.prototype,"entityData",void 0),(0,d.gn)([h.LO],Et.prototype,"entityClicked",void 0),(0,d.gn)([h.LO],Et.prototype,"telemetryObject",void 0),(0,d.gn)([h.LO],Et.prototype,"telemetryContext",void 0);var Ht=r(82927),Nt=r(54140);const Gt=c.d`
    ${(0,u.g)((e=>e),c.d`
        <div class="sports-item" style="background: ${e=>e&&(0,A.Uq)(e.primaryColor,"#1D428A")}">
            <button class="league-icon"
                @click="${(e,t)=>t.parent.clickHandler(t.event,e)}"
                data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.followEntity)||void 0===r?void 0:r.getMetadataTag()}}"
            >
                <img
                    role="presentation"
                    src="${e=>e.imageUrl}"
                >
                <div class="${(e,t)=>null==t.parent.entityClicked||t.parent.isEntitySelected(e)?"icon-add":"icon-selected"}">
                    ${(e,t)=>null!=t.parent.entityClicked&&t.parent.isEntitySelected(e)?c.d`${Nt.Z}`:c.d`${Ht.Z}`}
                </div>
            </button>
            <div class="league-name">
                <span class="${(e,t)=>t.parent.mode==At?"league-name-1line":"league-name-2lines"}" title=${e=>e.name}>${e=>e.name}</span>
            </div>
        </div>
    `)}
`,zt=(e,t="dark")=>c.d`
    <sports-card-follow-icon
        role="button"
        colormode=${(e,t)=>t.parent.colormode}
        :strings=${(e,t)=>t.parent.strings}
        :telemetryObject=${(e,t)=>t.parent.telemetryObject}
        :telemetryContext=${(e,t)=>t.parent.telemetryContext}
        :followSportsCallback=${(e,t)=>t.parent.followIconClickHandler}
        :unfollowSportsCallback=${(e,t)=>t.parent.followIconClickHandler}
        :isSportsFollowed=${(e,t)=>t.parent.isSportsFollowed}
        :isFollowedState=${(t,r)=>r.parent.isEntitySelected(e)}
        :sportsEntity="${t=>e}"
        :index=${e=>0}
        :tabIndex=${e=>0}
        :shouldShowFollowIcon=${e=>!0}
        :colorStyle=${e=>t}
        :title=${(e,t)=>t.parent.getFollowIconTitle(e)}
    >
    </sports-card-follow-icon>
`,Rt=c.d`
    <img
        role="presentation"
        src="${e=>e.imageUrl}"
    >
    <div class="league-name">
        <span class="league-name-1line" title=${e=>e.name}>${e=>e.name}</span>
    </div>
    <div class="follow-icon">
        ${e=>zt(e)}
    </div>
`,Wt=c.d`
    <div class="icon-and-follow">
        <img
            role="presentation"
            src="${e=>e.imageUrl}"
        >
        <div class="follow-icon">
            ${e=>zt(e,"blue")}
        </div>
    </div>
    <div class="league-name">
        <span class="league-name-1line" title=${e=>e.name}>${e=>e.name}</span>
    </div>
`,jt=c.d`
    ${(0,u.g)((e=>e),c.d`
        <div class="tetrad-item">
            <button class="league-icon"
                @click="${(e,t)=>t.parent.clickHandler(t.event,e)}"
                data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.followEntity)||void 0===r?void 0:r.getMetadataTag()}}"
            >
                ${Rt}
            </button>
        </div>
    `)}
`,Bt=c.d`
    <div class="tetrad-items">
        ${(0,de.rx)((e=>e.entityData),jt)}
    </div>
`,qt=c.d`
    <div class="double-items">
        ${(0,de.rx)((e=>e.entityData),Gt)}
    </div>
`,Vt=c.d`
    <div class="single-item">
        ${(0,de.rx)((e=>e.entityData),Gt)}
    </div>
`,_t=c.d`
    <a class="single-vertical"
        href=${e=>e.entityData[0].webSearchUrl?e.entityData[0].webSearchUrl:void 0}
        target=${e=>e.linkTarget}
        data-t="${e=>{var t;return e.entityData[0].telemetryContext&&(null===(t=e.entityData[0].telemetryContext.webSearchUrl)||void 0===t?void 0:t.getMetadataTag())}}"
    >
        ${(0,u.g)((e=>e.cardlayout==O.J4.Small),c.d`${(0,de.rx)((e=>e.entityData),Wt)}`)}
        ${(0,u.g)((e=>e.cardlayout!=O.J4.Small),c.d`${(0,de.rx)((e=>e.entityData),Rt)}`)}
    </a>
`,Jt=c.d`
    ${(0,u.g)((e=>e.mode==At&&e.entityData&&e.entityData.length>0),Vt)}
    ${(0,u.g)((e=>e.mode==Lt&&e.entityData&&e.entityData.length>0),_t)}
    ${(0,u.g)((e=>e.mode==Ut&&e.entityData&&e.entityData.length>0),qt)}
    ${(0,u.g)((e=>e.mode==Pt&&e.entityData&&e.entityData.length>0),Bt)}
`;let Yt=class extends Et{};Yt=(0,d.gn)([(0,te.M)({name:"sports-item",template:Jt,styles:Ft})],Yt);const Zt="flat-carousel";class Xt extends Dt{constructor(){super(...arguments),this.entityContents=[],this.entityWidth=68}connectedCallback(){this.initialContents(),super.connectedCallback()}initialContents(){var e;if(this.layout!=Zt)return;const t=this.entityData&&this.entityData.length||0;if(this.entityData&&t>0){const t=(null===(e=this.parentElement)||void 0===e?void 0:e.getBoundingClientRect().width)||300;this.entityWidth=132;const r=this.entityData.length;for(let e=0;e<r;e+=4){const r=this.entityData[e],a=Math.floor((e+1)/4*this.entityWidth/t);r&&this.entityContents.push({contentView:this.getEntityViewTemplate(Pt,a,this.entityData.slice(e,e+4))})}}}getEntityViewTemplate(e,t=0,r=[]){return c.d`
            <sports-item
                cardlayout="${()=>this.cardlayout}"
                colormode="${()=>this.colormode}"
                :pageIndex=${()=>t}
                :mode="${()=>e}"
                :config=${()=>this.config}
                :strings=${()=>this.strings}
                :linkTarget="${()=>this.linkTarget}"
                :selectCallback=${()=>this.selectEntityCallback}
                :isSportsFollowed=${()=>this.isSportsFollowed}
                :entityData=${()=>r}
                :telemetryObject=${()=>this.telemetryObject}
                :telemetryContext=${()=>this.telemetryContext}
            >
            </sports-item>
        `}getFollowTeamTitle(){var e,t,r,a;return this.cardlayout==O.J4.Small&&(null===(e=this.worldCupData.sportsMatchupCardData)||void 0===e?void 0:e.startDateTime)&&(null===(t=this.strings)||void 0===t?void 0:t.worldCupFREDesc2)?(0,v.WU)(this.strings.worldCupFREDesc2,(0,A.iq)(null===(r=this.worldCupData.sportsMatchupCardData)||void 0===r?void 0:r.startDateTime).days.toString()):(null===(a=this.worldCupData.sportsMatchupCardData)||void 0===a?void 0:a.startDateTime)&&this.strings.worldCupFREDesc||this.strings.followTeams}}(0,d.gn)([h.LO],Xt.prototype,"seemoreText",void 0),(0,d.gn)([h.LO],Xt.prototype,"seemoreUrl",void 0),(0,d.gn)([h.LO],Xt.prototype,"entityData",void 0),(0,d.gn)([h.LO],Xt.prototype,"entityContents",void 0),(0,d.gn)([h.LO],Xt.prototype,"currentPageIndex",void 0);const Kt=c.d`
    ${(0,u.g)((e=>e.cardlayout!=O.J4.Small),c.d`
        ${(0,u.g)((e=>e.showTitle),c.d`<div class="followteams-title">${e=>e.strings&&e.strings.followTeams||""}</div>`)}
        ${(0,u.g)((e=>e.entityContents&&e.entityContents.length>0),c.d`
            <sports-card-carousel
                :strings=${e=>e.strings}
                colormode="${e=>e.colormode}"
                :currentPageIndex=${e=>e.currentPageIndex}
                :linkTarget=${e=>e.linkTarget}
                :seemore="${e=>e.seemoreText||e.strings&&e.strings.sportsSeeMore||""}"
                :seemoreUrl="${e=>e.seemoreUrl||e.worldCupData&&e.worldCupData.freData&&e.worldCupData.freData.seemoreUrl||""}"
                :rtl=${e=>document.dir}
                :enablePaginationLink=${e=>!0}
                :enablePaginationBackplate=${e=>!0}
                :telemetryContext=${e=>e.telemetryContext}
                :carouselmode="${()=>O.xI.continuous}"
                :carouselContents=${e=>e.entityContents}
                :carouselItemWidth="${e=>e.entityWidth}px"
                :firstCarouselItemWidth="${e=>e.cardlayout==O.J4.Small?"136px":null}"
                :initialHorizontalOffset=${e=>e.cardlayout!=O.J4.Small?12:16}

            />`)}
    `)}
    ${(0,u.g)((e=>e.layout!=Zt),c.d`
        <div class="followteams-title center-bold" title="${e=>e.getFollowTeamTitle()}">${e=>e.getFollowTeamTitle()}</div>
        <div class="followteams-list">
            ${(0,de.rx)((e=>e.entityData),c.d`
                <sports-item
                    cardlayout="${(e,t)=>t.parent.cardlayout}"
                    colormode="${(e,t)=>t.parent.colormode}"
                    :pageIndex=${(e,t)=>0}
                    :mode="${(e,t)=>Lt}"
                    :config=${(e,t)=>t.parent.config}
                    :strings=${(e,t)=>t.parent.strings}
                    :linkTarget="${(e,t)=>t.parent.linkTarget}"
                    :selectCallback=${(e,t)=>t.parent.selectEntityCallback}
                    :isSportsFollowed=${(e,t)=>t.parent.isSportsFollowed}
                    :entityData=${(e,t)=>[e]}
                    :telemetryObject=${(e,t)=>t.parent.telemetryObject}
                    :telemetryContext=${(e,t)=>t.parent.telemetryContext}
                >
                </sports-item>`,{positioning:!0})}
        </div>
    `)}
`;let Qt=class extends Xt{};Qt=(0,d.gn)([(0,te.M)({name:"worldcup-interests",template:Kt,styles:$t})],Qt);var er,tr=r(53909),rr=r(44772),ar=r(15448);!function(e){e.WorldCupHeaderImageInfo={width:44,height:44,enableDpiScaling:!1,format:tr.D3.PNG},e.WorldCupCountryImageInfo={width:40,height:24,enableDpiScaling:!1,format:tr.D3.PNG},e.mapSubCardToSportsWorldCupData=function(t,r=5,a){if(!t||!t.data)return null;let i;try{i=JSON.parse(t.data)}catch(e){(0,q.OO)(e,V.glY,`Sports WorldCup card parse exception. CardId=${t.id} data=${t.data} error=${e&&e.message}`)}if(!i)return(0,q.H)(V.glY,"Sports WorldCup card data has no value."),null;switch(t.type){case rr.PL.EventSDCardWorldCup:switch(t.dataType){case S:return i.SportsType==O.q$.cricket?function(t,r,a){if(!t)return null;let i=null;if(t.LogMessage)try{i=JSON.parse(t.LogMessage)}catch(e){(0,q.H)(V.glY,"Sports WorldCup card LogMessage Json parsing error.",` LogMessage=${t.LogMessage} Error thrown=${e}`)}const o=ar._.getSportsNotificationsData(t),n={primaryEntityName:t.PrimaryEntityName,primaryEntityId:t.PrimaryEntityId,primaryEntityType:t.PrimaryEntityType,primaryEntityImage:(0,A.xx)(t.PrimaryEntityImage,e.WorldCupHeaderImageInfo),primaryEntityImageDarkmode:(0,A.xx)(t.DarkModePrimaryEntityImage,e.WorldCupHeaderImageInfo),startDateTime:t.LeagueStartDateTimeUTC&&new Date(t.LeagueStartDateTimeUTC).getTime(),header:t.Header,headerUrl:t.HeaderUrl,seemoreUrl:t.SeeMoreUrl,h1Text:t.H1Text,h2Text:t.H2Text,participants:!(0,A.n$)(t.Participants)&&Array.isArray(t.Participants)&&t.Participants.map((t=>{if(t)return{id:t.SatoriId,yId:t.FeedId,name:t.LocalizedName,type:t.EntityType,sport:t.Sport,displayText:t.LocalizedName,typeDisplayHint:t.Subtitle,imageUrl:(0,A.xx)(t.ImageId,e.WorldCupCountryImageInfo),webSearchUrl:t.ClickThroughUrl,isLive:t.IsLive,useSuperDesign:t.UseSuperDesign,hasExplicitInterest:t.HasExplicitInterest}}))};return{cardType:t.SportsType,freData:n,logMessage:i,notifications:o}}(i):ar._.transformSportsMatchDataWithTrans(i,r,a);case b:return ar._.transformSportsMatchDataWithTrans(i,r,a);default:return(0,q.H)(V.glY,"Sports WorldCup card unknown DataType",` value: type=${t.type} DataType=${i.DataType}`),null}case rr.PL.EventSDCardWorldCup2:switch(t.dataType){case S:case b:return ar._.transformSportsMatchDataWithTrans(i,r,a);default:return(0,q.H)(V.glY,"Sports WorldCup card unknown DataType",` value: type=${t.type} DataType=${i.DataType}`),null}default:return(0,q.H)(V.glY,"Sports WorldCup card unknown type",` value: type=${t.type}`),null}}}(er||(er={}));class ir extends m.l{constructor(){super(),this.isActionMenuOpen=!1,this.isShowReminder=!1,this.postDomTasks=()=>(0,d.mG)(this,void 0,void 0,(function*(){this.initActionMenuItems(),this.fetchFollowedSports(this.config.ocid),(0,Z.T)(this.cardTitleImageUrl)||((new Image).src=this.cardTitleImageUrl)})),this.colorSchemeChangeHandler=()=>{this.isDarkMode=this.shouldUseDarkMode(),this.colormode=this.getSportsCardColorMode();const e=(0,_.in)(this.colormode===O.wF.dark?"#2C2C2C":"#F2F2F2");e&&U.IfY.setValueFor(this,P.w.from(e)),this.cardBackgroundStyle=this.getCardBackground()},this.shouldUseDarkMode=()=>(0,X.Y)(),this.getSeemoreText=()=>{var e,t,r,a,i,o;if((null===(e=this.strings)||void 0===e?void 0:e.seeMoreSports)&&this.worldCupData){if(this.shouldRenderCountdownView()&&(null===(t=this.strings)||void 0===t?void 0:t.cricketWorldCup))return this.worldCupData.sportsFREData?this.strings.followMore||(null===(r=this.strings)||void 0===r?void 0:r.sportsSeeMore):(0,v.WU)(this.strings.seeMoreSports,this.strings.cricketWorldCup);if(this.isCricketWorldCup())return null===(a=this.strings)||void 0===a?void 0:a.sportsSeeMore;if(this.worldCupData.sportsMatchOverallData&&(null===(i=this.strings)||void 0===i?void 0:i.cricketWorldCupScores))return(0,v.WU)(this.strings.seeMoreSports,this.strings.cricketWorldCupScores)}return null===(o=this.strings)||void 0===o?void 0:o.sportsSeeMore},this.fetchFollowedSports=(e="")=>(0,d.mG)(this,void 0,void 0,(function*(){F.d.getFollowSportsEntities(e,[],(e=>{e&&(this.followedSports=e)}))})),this.getTelemetryExt=()=>{const e=this.telemetryExt;return Object.assign(Object.assign({},e),{})},this.handleClickForActionMenu=e=>{this.toggleActionMenu(e)},this.handleKeyDownForActionMenu=e=>{"Escape"!==e.code||this.toggleActionMenu(e)},this.initActionMenuItems=()=>(0,d.mG)(this,void 0,void 0,(function*(){this.actionMenuItems=[],this.actionMenuItems.push({glyph:K.Z,title:this.strings.sportsHideCard,id:"hide",telemetryTag:this.telemetryContext&&this.telemetryContext.menuHideWorldCup&&this.telemetryContext.menuHideWorldCup.getMetadataTag(),onClick:()=>(0,d.mG)(this,void 0,void 0,(function*(){this.handleSportsNotInterested()}))}),this.actionMenuItems.push({glyph:Q.Z,id:"more",title:this.strings.sportsMoreSetting,telemetryTag:this.telemetryContext&&this.telemetryContext.menuMoreSettings&&this.telemetryContext.menuMoreSettings.getMetadataTag(),onClick:()=>(0,d.mG)(this,void 0,void 0,(function*(){this.handleMoreSettings()}))})})),this.handleSportsNotInterested=()=>(0,d.mG)(this,void 0,void 0,(function*(){var e;this.isActionMenuOpen=!1;const t=null!==(e=this.worldCupData.freData)&&void 0!==e?e:this.worldCupData.sportsMatchupCardData,r={id:null==t?void 0:t.primaryEntityId,name:null==t?void 0:t.primaryEntityName,type:(null==t?void 0:t.primaryEntityType)||"League"};(yield F.d.notInterestedSportsCard(r,this.config.ocid))&&this.refreshFeedCard()})),this.shouldRenderCountdownView=()=>this.cardMetaData.dataType==S,this.getContentTemplate=()=>{if(this.worldCupData)return this.shouldRenderCountdownView()?this.getCountdownTemplate():this.worldCupData.sportsMatchOverallData?this.getScoreScheduelTemplate():void 0},this.getCountdownTemplate=()=>{var e,t;this.enableCarousel=this.worldCupData.freData&&this.cardLayout!=O.J4.Small;const r=this.worldCupData&&(null===(e=this.worldCupData.freData)||void 0===e?void 0:e.startDateTime)||(null===(t=this.worldCupData.sportsMatchupCardData)||void 0===t?void 0:t.startDateTime);this.cardContent=c.d`
            ${(0,u.g)((()=>this.cardLayout!=O.J4.Small),c.d`
            <sports-countdown
                style="${()=>this.cardLayout==O.J4.Large?"padding-top: 36px;":""}"
                :strings=${()=>this.strings}
                cardlayout="${()=>this.cardLayout}"
                colormode="${()=>this.colormode}"
                :rtl=${()=>document.dir}
                :countdownTitle="${()=>this.worldCupData.sportsFREData&&this.strings.countDownToKickoff||this.strings.countDownTitle}"
                :startTime=${()=>r}
                :layout=${()=>this.worldCupData.sportsFREData?it:null}
                :sportsCardData=${()=>this.worldCupData}
            >
            </sports-countdown>`)}
            <worldcup-interests 
                style="width: 100%; height: 100%;"
                :strings=${()=>this.strings}
                cardlayout="${()=>this.cardLayout}"
                colormode="${()=>this.colormode}"
                carouselmode="${()=>this.worldCupData.sportsFREData?null:O.xI.continuous}"
                :currentPageIndex=${()=>0}
                :linkTarget=${()=>this.getLinkClickTarget()}
                :rtl=${()=>document.dir}
                :showTitle=${()=>r>Date.now()&&this.worldCupData.freData}
                :worldCupData=${()=>this.worldCupData}
                :seemoreText=${()=>this.cardSeemoreText}
                :seemoreUrl=${()=>this.cardSeemoreUrl}
                :telemetryContext=${()=>this.telemetryContext}
                :telemetryObject=${()=>this.telemetryObject}
                :selectEntityCallback=${()=>this.selectEntityCallback}
                :isSportsFollowed=${()=>this.isSportsFollowed}
                :entityData=${()=>this.getFreEntityData()}
                :layout="${()=>{var e;return(null===(e=this.worldCupData.freData)||void 0===e?void 0:e.participants)?Zt:null}}"
            >
            </worldcup-interests>
        `},this.getScoreScheduelTemplate=()=>{let e=5;this.cardLayout==O.J4.Medium&&(e=this.isCricketWorldCup()?2:3),this.enableCarousel=!1;const t=(0,O.Ai)(this.worldCupData.sportsMatchOverallData),r=(t.todayMatches||[]).concat(t.preGameMatches||[]).concat(t.finalMatches||[]).slice(0,e);if(this.cardLayout!=O.J4.Small)this.cardContent=c.d`
            <div class="worldcup-content">
                ${(0,u.g)((()=>this.showMatchHeader()),c.d`<img class="worldcup-match-title" role="presentation" src="${()=>`https://img-s-msn-com.akamaized.net/tenant/amp/entityid/${this.isDarkMode?"AA13G8tA":"AA13GnNh"}.img?w=536&h=78&q=60&m=6&f=png&u=t`}" />`)}
                ${this.getMatchTemplate(r)}
            </div>
            `;else{const e=[];r.forEach((t=>{const r=this.getMatchTemplate([t]);r&&e.push({contentView:r})})),this.enableCarousel=!0,this.cardContent=c.d`
                <sports-card-carousel
                    style="width: 100%;"
                    cardlayout="${()=>this.cardLayout}"
                    colormode="${()=>this.colormode}"
                    :seemore="${()=>this.cardSeemoreText}"
                    :seemoreUrl="${()=>this.cardSeemoreUrl}"
                    :rtl=${()=>document.dir}
                    :enablePaginationLink=${()=>!0}
                    :enablePaginationBackplate=${()=>!0}
                    :telemetryContext=${()=>this.telemetryContext}
                    :carouselmode="${()=>O.xI.fullFill}"
                    :carouselContents=${()=>e}
                    :enableBulletsPagination=${()=>this.config.isDynamicFeed}
                    :isDynamicFeed=${()=>this.config.isDynamicFeed}
                />`}},this.getMatchTemplate=e=>c.d`
            <match-side-by-side
                style="width: 100%;"
                cardlayout="${()=>this.cardLayout}"
                colormode="${()=>this.colormode}"
                :strings=${()=>this.strings}
                :isDarkMode=${()=>this.isDarkMode}
                :linkTarget=${()=>this.getLinkClickTarget()}
                :rtl="${()=>document.dir}"
                :enableAnimatedLive=${()=>!0}
                :telemetryContext=${()=>this.telemetryContext}
                :telemetryObject=${()=>this.telemetryObject}
                :followSportsCallback=${()=>this.followSports}
                :unfollowSportsCallback=${()=>this.unfollowSports}
                :isSportsFollowed=${()=>this.isSportsFollowed}
                :sportType=${()=>{var e;return null===(e=this.worldCupData.sportsMatchupCardData)||void 0===e?void 0:e.sportType}}
                :matchData=${()=>e.map((e=>e.sportsMatchData))}
            >
            </match-side-by-side>
        `,this.showMatchHeader=()=>this.isCricketWorldCup(),this.selectEntityCallback=(e,t)=>t?this.followSports(e):this.unfollowSports(e),this.followSports=e=>(0,d.mG)(this,void 0,void 0,(function*(){var t;let r;return this.isShowReminder=!1,this.unfollowedSuggest=void 0,e&&e.id&&(r=yield F.d.postActionRequest(e.id,e.name||"",O.Us.Follow,e.type||"",this.config.ocid,!1,void 0),this.followedSuggest=e,r&&this.fetchFollowedSports(this.config.ocid),this.isShowReminder=null!=r&&!(0,Z.T)((null===(t=this.followedSuggest)||void 0===t?void 0:t.name)||""),this.reminderTimer&&clearTimeout(this.reminderTimer),this.reminderTimer=setTimeout((()=>{this.isShowReminder=!1,this.followedSuggest=void 0}),5e3)),r})),this.unfollowSports=e=>(0,d.mG)(this,void 0,void 0,(function*(){let t;if(this.isShowReminder=!1,this.followedSuggest=void 0,e&&(e.id||e.yId)){const r=this.followedSports&&this.followedSports.filter((t=>t.id&&t.id===e.id||t.yId&&t.yId===e.yId));r&&r.length>0&&(t=yield F.d.deleteActionRequest(r[0].feedId||"",O.Us.Follow,r[0].type||"",this.config.ocid,!1),t&&(this.fetchFollowedSports(this.config.ocid),this.unfollowedSuggest=e,this.isShowReminder=!0,this.reminderTimer&&clearTimeout(this.reminderTimer),this.reminderTimer=setTimeout((()=>{this.isShowReminder=!1,this.unfollowedSuggest=void 0}),5e3)))}return t})),this.isSportsFollowed=(e,t)=>(this.followedSports&&this.followedSports.filter((r=>r.id&&r.id===e||r.yId&&r.yId===t))||[]).length>0,this.closeReminder=e=>{this.followedSuggest=void 0,e&&(e.preventDefault(),e.stopPropagation(),this.isShowReminder=!1,e.target&&M.M0.sendActionEvent(e.target,$.Aw.Click,$.wu.Customize))},this.getFollowReminderText=()=>this.followedSuggest&&this.strings.sportsAddedToast&&(this.followedSuggest.displayText||this.followedSuggest.name)?(0,v.WU)(this.strings.sportsAddedToast,this.followedSuggest.displayText||this.followedSuggest.name||""):this.unfollowedSuggest&&this.strings.sportsUnfollowingToast?(0,v.WU)(this.strings.sportsUnfollowingToast,this.unfollowedSuggest.displayText||this.unfollowedSuggest.name||""):"",this.getLinkClickTarget=()=>this.openLinksInNewTab?"_blank":"_self",this.refreshFeedCard=()=>{this.refreshFeed?this.refreshFeed():this.$emit("refreshSDCardSection")},this.unfollowToastClick=e=>{this.isShowReminder=!1,e&&(e.preventDefault(),e.stopPropagation(),M.M0.sendActionEvent(e.target,$.Aw.Click,$.wu.Follow)),this.unfollowedSuggest&&this.followSports(this.unfollowedSuggest)},this.handleMoreSettings=()=>{this.isActionMenuOpen=!1,this.goToPersonalizeCallback?this.goToPersonalizeCallback():this.$emit("goToPersonalizeCallback")},this.getMoreActionsStyles=()=>"width: 24px; height: 24px; min-width: 24px; border-width: 0; border-radius: 16px; cursor: pointer;",this.getRevertFollowTitle=()=>this.unfollowedSuggest&&this.strings.sportsUnfollowingToastLink?(0,v.WU)(this.strings.sportsUnfollowingToastLink,this.unfollowedSuggest.displayText||this.unfollowedSuggest.name||""):this.strings.sportsCTA,this.getFollowReminderTelemetry=()=>{var e;return this.followedSuggest?null===(e=(0,O.Fd)(this.telemetryObject,this.followedSuggest,this.worldCupData&&this.worldCupData.freData&&this.worldCupData.freData.primaryEntityId||"",this.getTelemetryExt(),{zone:this.zoneType}))||void 0===e?void 0:e.getMetadataTag():""},this.getRevertFollowTelemetry=()=>{var e;return this.unfollowedSuggest?null===(e=(0,O.d)(this.telemetryObject,this.unfollowedSuggest,this.worldCupData&&this.worldCupData.freData&&this.worldCupData.freData.primaryEntityId||"",this.getTelemetryExt(),{zone:this.zoneType}))||void 0===e?void 0:e.getMetadataTag():""},this.isClickableTarget=e=>e&&("A"===e.tagName||"FLUENT-ANCHOR"===e.tagName||"FLUENT-BUTTON"===e.tagName||"MSN-ACTIONS-MENU"===e.tagName||"SPORTS-CARD-CAROUSEL"===e.tagName),this.cardClickHandler=e=>{if(e&&this.isClickableTarget(e.target))return!0;if(e&&this.headerTitle&&this.headerTitle.contains(e.target))return!0;if(e&&this.seeMoreButton&&this.seeMoreButton.contains(e.target))return!0;let t=!1;return e&&e.path&&e.path.forEach((e=>{!e||"A"!==e.tagName&&"FLUENT-ANCHOR"!==e.tagName||(t=!0)})),!!t||(e.preventDefault(),e.stopPropagation(),(0,A.h2)(e,this.cardSeemoreUrl,e.currentTarget,!this.openLinksInNewTab),!1)},this.isInitialSetup=!0,this.isInViewport=!1,this.actionMenuItems=[],this.cardBackgroundStyle="",(0,L.z)().withShadowRootMode("closed").withElementDisambiguation((()=>z.h.ignoreDuplicate)).register((0,E.k)(),(0,H.hb)(),(0,N.ay)(),(0,G.EK)()),z.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>z.h.ignoreDuplicate)).withPrefix("msft").register((0,R.xb)())}getExperienceType(){return s.x.sportsWorldCupCardWC}experienceConnected(){try{if(this.setPerfMarker("SportsWorldCupCardWC.Start"),!this.cardSize&&this.parentElement&&(this.cardSize=this.parentElement.getAttribute("cardsize")||O.J4.Medium),this.getCardLayout(),this.isInitialSetup){this.isInitialSetup=!1;let e=null;this.cardMetaData&&(e=er.mapSubCardToSportsWorldCupData(this.cardMetaData),e||(0,q.H)(V.fXc,"Sports world cup card data is null",`isInitial=${this.isInitialSetup} size=${this.cardSize} isdynamic=${this.config.isDynamicFeed}`)),this.telemetryObject=new B.D({name:D.WorldCupCard,type:$.c9.Module}),this.setLayoutAndSize(),this.initialData(e),this.getContentTemplate(),this.zoneType="feed",this.uxstyle=this.config&&this.config.isDynamicFeed?"widget":"feed";const t=this.shouldUseDarkMode();this.isDarkMode!=t&&(this.isDarkMode=t,this.cardBackgroundStyle=this.getCardBackground(),this.setCardProperties())}}catch(e){M.M0.sendAppErrorEvent(Object.assign(Object.assign({},V.fXc),{message:"Sports: Exception when initialize SportsCardWC",pb:Object.assign(Object.assign({},V.fXc.pb),{customMessage:`Failed with exception : ${e}. size=${this.cardSize} isdynamic=${this.config.isDynamicFeed}`})}))}this.strings||(0,q.H)(V.fXc,"Sports world cup card strings is null",`isInitial=${this.isInitialSetup} size=${this.cardSize} isdynamic=${this.config.isDynamicFeed}`),this.markVisuallyReadyRaf(),this.setPerfMarker("SportsWorldCupCardWC.Ready")}disconnectedCallback(){super.disconnectedCallback(),this.config.isDynamicFeed||window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.colorSchemeChangeHandler),this.unsetIntersectionObserver()}telemetryExtChanged(e,t){!(0,J.Z)(e,t)&&this.telemetryExt&&e&&t&&(e.col!=t.col||e.row!=t.row||e.slot!=t.slot)&&(this.isCardExtChanged=!0)}cardMetaDataChanged(e,t){(0,J.Z)(e,t)||!this.cardMetaData||!this.config||this.isCardSizeJustChanged||this.isCardExtChanged||((0,Y.Z)(this.isCardExtChanged)||(0,Y.Z)(this.isCardSizeJustChanged)?this.initialData(t):setTimeout((()=>{this.isCardExtChanged||this.isCardSizeJustChanged||this.initialData(t),this.isCardExtChanged=!1,this.isCardSizeJustChanged=!1}),300))}shadowDomPopulated(){(0,W.v9)(s.x.sportsWorldCupCardWC),this.postDomTasks(),this.config.isDynamicFeed||window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.colorSchemeChangeHandler),this.setIntersectionObserver();const e=this.cardSize;this.cardSize=this.cardLayout,e!=this.cardSize&&(this.cardBackgroundStyle=this.getCardBackground())}setPerfMarker(e,t=performance.now()){const r=!0===g.Al.IsPrerender?t-(0,W.TZ)(j.DB):t;(0,W.su)(e,r)}setIntersectionObserver(){if(this.intersectionObserver)return;this.intersectionObserver=new IntersectionObserver((e=>{var t;e&&(this.isInViewport=(null===(t=e[0])||void 0===t?void 0:t.intersectionRatio)>0,this.isInViewport&&M.M0.addOrUpdateTmplProperty(D.WorldCupCard,"inviewport"))}),{threshold:[0]}),this.intersectionObserver.observe(this)}unsetIntersectionObserver(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0)}setLayoutAndSize(){var e;this.cardSize||(this.cardSize=(null===(e=this.parentElement)||void 0===e?void 0:e.getAttribute("cardsize"))||O.J4.Medium),this.getCardLayout()}getCardLayout(){switch(this.cardSize){case O.J4.Medium:return void(this.cardLayout=O.J4.Medium);case O.J4.Large:return void(this.cardLayout=O.J4.Large);default:return void(this.cardLayout=O.J4.Small)}}getCardBackground(){var e,t,r,a;if(!this.isCricketWorldCup()){return`background-image: url("${I(w,this.cardLayout,this.isDarkMode,(null===(e=this.worldCupData)||void 0===e?void 0:e.sportsFREData)&&this.worldCupData.sportsFREData.length>0)}")`}if(this.worldCupData.freData&&(this.cardTitleImageUrl=this.isDarkMode&&(null===(t=this.worldCupData.freData)||void 0===t?void 0:t.primaryEntityImageDarkmode)?null===(r=this.worldCupData.freData)||void 0===r?void 0:r.primaryEntityImageDarkmode:null===(a=this.worldCupData.freData)||void 0===a?void 0:a.primaryEntityImage),this.cardLayout==O.J4.Medium){return`background-image: url("${I(y,this.cardLayout,this.isDarkMode)}")`}return`background: ${this.isDarkMode?"linear-gradient(138.66deg, #0E0447 0%, #1B4187 95.48%)":"linear-gradient(317.73deg, #DCDCF7 0%, #D2F1EF 100%)"}`}setCardProperties(){this.colormode=this.getSportsCardColorMode()}getSportsCardColorMode(){return this.isDarkMode&&this.config.cardBackgroundMode!=O.wF.light?O.wF.dark:O.wF.light}initialData(e){var t,r,a,i,o,n;if(this.worldCupData=e,this.worldCupData){if(this.worldCupData.freData)this.cardTitle=(null===(t=this.worldCupData.freData)||void 0===t?void 0:t.primaryEntityName)||this.strings.sportsHeader,this.cardTitleUrl=null===(r=this.worldCupData.freData)||void 0===r?void 0:r.headerUrl,this.cardTitleImageUrl=this.isDarkMode&&(null===(a=this.worldCupData.freData)||void 0===a?void 0:a.primaryEntityImageDarkmode)?null===(i=this.worldCupData.freData)||void 0===i?void 0:i.primaryEntityImageDarkmode:null===(o=this.worldCupData.freData)||void 0===o?void 0:o.primaryEntityImage,this.cardSeemoreUrl=null===(n=this.worldCupData.freData)||void 0===n?void 0:n.seemoreUrl;else if(this.worldCupData.sportsMatchupCardData){const e=this.worldCupData.sportsMatchupCardData;this.cardTitle=e.cardTitle||this.strings.worldCupCoverage,this.cardTitleUrl=e.seeMoreLeagueClickthroughUrl,this.cardTitleImageUrl=e.cardTitleImageUrl,this.cardSeemoreUrl=this.worldCupData.sportsFREData?e.seeMoreLeagueClickthroughUrl:e.sportsScoresUrl||e.seeMoreLeagueClickthroughUrl}this.cardSeemoreText=this.getSeemoreText(),this.setTmplTelemetry(),this.telemetryContext=((e,t,r,a,i)=>{var o;if(!e||!t)return;const n=a&&a.zone,s=i||e.addOrUpdateChild({name:D.WorldCupCard,type:$.c9.Module,action:$.Aw.View,zone:n}),l=t.freData||t.sportsMatchupCardData||{},d=t.freData?t.cardType:l.sportType,c=l.primaryEntityName||D.WorldCupCard,u=(t.sportsMatchupCardData?t.sportsMatchupCardData.leagueId:l.primaryEntityId)||D.WorldCupCard,p=t.freData?t.freData.headerUrl:t.sportsMatchupCardData.seeMoreLeagueClickthroughUrl,h=null!==(o=l.primaryEntityId)&&void 0!==o?o:u,g=t.freData?t.freData.seemoreUrl:t.sportsMatchupCardData.seeMoreLeagueClickthroughUrl,m=s.addOrUpdateChild({name:D.WorldCupCard,destinationUrl:p,overrideDestinationUrl:p,content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),f=s.addOrUpdateChild({name:D.Header,behavior:$.wu.Navigate,destinationUrl:p,overrideDestinationUrl:p,content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),v=s.addOrUpdateChild({name:D.SeeMore,behavior:$.wu.Navigate,destinationUrl:g,overrideDestinationUrl:g,content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),y=s.addOrUpdateChild({name:D.Customization,behavior:$.wu.More,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:D.Customization,type:$.uH.StructuredData,id:u,brandId:h},type:$.c9.Interaction,ext:r,zone:n}),w=s.addOrUpdateChild({name:D.MoreSettings,behavior:$.wu.Navigate,overrideDestinationUrl:`${window.location.origin||""}/personalize`,content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},type:$.c9.ActionButton,ext:r,zone:n}),S=s.addOrUpdateChild({name:D.HideWorldCup,behavior:$.wu.Hide,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},type:$.c9.ActionButton,ext:r,zone:n}),b=s.addOrUpdateChild({name:D.Previous.toLowerCase(),behavior:$.wu.Paginate,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),C=s.addOrUpdateChild({name:D.Next.toLowerCase(),behavior:$.wu.Paginate,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),x=s.addOrUpdateChild({name:D.SportsCarousel,behavior:$.wu.View,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),T=s.addOrUpdateChild({name:D.ClickCarouselDot,behavior:$.wu.Paginate,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),k=s.addOrUpdateChild({name:D.ReminderClose,behavior:$.wu.Close,destinationUrl:"",content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),I=s.addOrUpdateChild({name:D.Interests,content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n}),M=new Map;return t.sportsMatchOverallData&&t.sportsMatchOverallData.length>0&&t.sportsMatchOverallData.forEach((e=>{var t;if(!e||!e.sportsMatchData)return;const a=(null===(t=e.sportsMatchData)||void 0===t?void 0:t.gameId)||"",i=s.addOrUpdateChild({name:D.Game,behavior:$.wu.Navigate,destinationUrl:e.sportsMatchData.matchClickthroughUrl||p,content:{vertical:D.Vertical,category:c,headline:d,type:$.uH.StructuredData,id:u,brandId:h},ext:r,zone:n});M.set(a,i)})),{componentRoot:e,sportsCard:m,header:f,actionButton:y,seeMoreLeague:v,menuMoreSettings:w,menuHideWorldCup:S,sportsCarousel:x,clickCarouselDot:T,previousMatch:b,nextMatch:C,reminderClose:k,interests:I,games:M}})(this.telemetryObject,this.worldCupData,this.getTelemetryExt(),[],this.telemetryObject)}}setTmplTelemetry(){var e;if(this.worldCupData&&this.worldCupData.notifications&&this.worldCupData.notifications.length>0){const t=null===(e=this.worldCupData.notifications.filter((e=>e.type==O.tY.Badge)))||void 0===e?void 0:e.map((e=>`${e.gameId||""}-${e.gameState||""}`)).join("+"),r=this.worldCupData.notifications.filter((e=>e.type.includes(O.tY.Preview))).map((e=>`${e.gameId||""}-${e.gameState||""}`)).join("+");(0,Z.T)(r)?M.M0.removeTmplProperty(O.Ou.TaskbarRotation):M.M0.addOrUpdateTmplProperty(O.Ou.TaskbarRotation,r),(0,Z.T)(t)?M.M0.removeTmplProperty(O.Ou.Badge):M.M0.addOrUpdateTmplProperty(O.Ou.Badge,t)}else M.M0.removeTmplProperty(O.Ou.Badge),M.M0.removeTmplProperty(O.Ou.TaskbarRotation)}isCricketWorldCup(){var e;return(null===(e=this.worldCupData.sportsMatchupCardData)||void 0===e?void 0:e.sportType)==O.q$.cricket}getFreEntityData(){var e;const t=this.worldCupData&&((null===(e=this.worldCupData.freData)||void 0===e?void 0:e.participants)||this.worldCupData.sportsFREData),r=this.telemetryContext.sportsCard&&this.telemetryContext.sportsCard.contract;let a=t;if(this.worldCupData.sportsFREData&&t){const e=this.cardLayout==O.J4.Large?7:3,r=this.worldCupData.sportsMatchupCardData||{},i={id:r.leagueSatoriId,yId:r.leagueYId,name:this.strings.sportsFIFAWC||r.leagueName,leagueId:r.leagueId,displayText:this.strings.sportsFIFAWC||r.leagueName,imageUrl:(0,A.Sb)(r.cardTitleImageUrl,44,44),type:O.fs.League,webSearchUrl:r.seeMoreLeagueClickthroughUrl,sportType:r.sportType};a=t.slice(0,e),a.unshift(i)}return a&&a.forEach((e=>{e&&!e.telemetryContext&&(e.telemetryContext=(0,O.FJ)(this.telemetryObject,e,r.content.brandId,r.ext,!0,{zone:r.zone}))})),a}actionButtonClickHandler(e){e&&e.target&&M.M0.sendActionEvent(e.target,$.Aw.Click),this.toggleActionMenu(e,!this.isActionMenuOpen)}toggleActionMenu(e,t=!1){this.isActionMenuOpen=t,e&&(e.preventDefault(),e.stopPropagation()),t&&e?(this.actionButtonControl=e&&e.currentTarget||void 0,document.addEventListener("click",this.handleClickForActionMenu),document.addEventListener("keydown",this.handleKeyDownForActionMenu)):(this.actionButtonControl=void 0,document.removeEventListener("click",this.handleClickForActionMenu),document.removeEventListener("keydown",this.handleKeyDownForActionMenu))}}(0,d.gn)([p.Lj],ir.prototype,"colormode",void 0),(0,d.gn)([p.Lj],ir.prototype,"uxstyle",void 0),(0,d.gn)([h.LO],ir.prototype,"cardLayout",void 0),(0,d.gn)([h.LO],ir.prototype,"worldCupData",void 0),(0,d.gn)([h.LO],ir.prototype,"isDarkMode",void 0),(0,d.gn)([h.LO],ir.prototype,"actionMenuItems",void 0),(0,d.gn)([h.LO],ir.prototype,"isActionMenuOpen",void 0),(0,d.gn)([h.LO],ir.prototype,"isInViewport",void 0),(0,d.gn)([h.LO],ir.prototype,"isShowReminder",void 0),(0,d.gn)([h.LO],ir.prototype,"followedSports",void 0),(0,d.gn)([h.LO],ir.prototype,"zoneType",void 0),(0,d.gn)([h.LO],ir.prototype,"telemetryContext",void 0),(0,d.gn)([h.LO],ir.prototype,"cardBackgroundStyle",void 0),(0,d.gn)([h.LO],ir.prototype,"followedSuggest",void 0),(0,d.gn)([h.LO],ir.prototype,"unfollowedSuggest",void 0),(0,d.gn)([h.LO],ir.prototype,"cardContent",void 0),(0,d.gn)([h.LO],ir.prototype,"enableCarousel",void 0),(0,d.gn)([h.LO],ir.prototype,"cardTitle",void 0),(0,d.gn)([h.LO],ir.prototype,"cardTitleUrl",void 0),(0,d.gn)([h.LO],ir.prototype,"cardTitleImageUrl",void 0),(0,d.gn)([h.LO],ir.prototype,"cardSeemoreText",void 0),(0,d.gn)([h.LO],ir.prototype,"cardSeemoreUrl",void 0);var or=r(53271);r(33763).S;const nr=c.d`
    <msn-actions-menu 
        :referrerButton=${e=>e.actionButtonControl}
        :menuItems=${e=>e.actionMenuItems}
        :useFastAnchoredRegion=${!1}
    />
`,sr=c.d`
    <fluent-button
        class=${e=>e.config.isDynamicFeed?"dynamic-feed-actions":"more-actions"}
        appearance="${e=>e.config.isDynamicFeed?"stealth":"neutral"}"
        slot="more-actions"
        tabindex="0"
        style="${e=>e.getMoreActionsStyles()}"
        @click="${(e,t)=>e.actionButtonClickHandler(t.event)}"
        @keypress="${(e,t)=>e.actionButtonClickHandler(t.event)}"
        title="${e=>e.strings.sportsActionButton}"
        aria-label="${e=>e.strings.sportsActionButton}"
        role="button"
        ${(0,Fe.i)("actionButton")}
        data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.actionButton)||void 0===r?void 0:r.getMetadataTag()}}"
    >
        ${or.Z}
    </fluent-button>
`,lr=c.d`
    <div class="sports-header-container" ${(0,Fe.i)("headerTitle")}>
        <a
            class="sports-header"
            tabIndex="0"
            aria-label="${e=>e.cardTitle}"
            href=${e=>e.cardTitleUrl||e.cardSeemoreUrl}
            target=${e=>e.getLinkClickTarget()}
            data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.header)||void 0===r?void 0:r.getMetadataTag()}}"
        >
            ${(0,u.g)((e=>e.cardTitleImageUrl),c.d`
                <img class="sports-header-icon"
                    role="presentation"
                    src="${e=>e.cardTitleImageUrl}"
                />
            `)}
            <div class="sports-header-title">
                ${e=>e.cardTitle}
            </div>
        </a>
        ${(0,u.g)((e=>e.config.enableCardAction),sr)}
    </div>
`,dr=c.d` 
    ${(0,u.g)((e=>!e.enableCarousel),c.d`
        <div class="sports-footer-container" ${(0,Fe.i)("seeMoreButton")}>
            <a
                class="sports-footer-see-more"
                    href=${e=>e.cardSeemoreUrl}
                    target=${e=>e.getLinkClickTarget()}
                    title=${e=>e.cardSeemoreText}
                    data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMoreLeague)||void 0===r?void 0:r.getMetadataTag()}}"
                >
                    <div class="sports-footer-see-more-text">
                        ${e=>e.cardSeemoreText}
                    </div>
            </a>
        </div>
    `)}
`,cr=c.d`
    <div class="sports-follow-reminder">
        <div class="sports-reminder-content">
            <span class="sports-reminder-text">
                ${e=>e.getFollowReminderText()}
            </span>
            <button class="sports-reminder-close"
                @click=${(e,t)=>e.closeReminder(t.event)}
                @keypress="${(e,t)=>e.closeReminder(t.event)}"
                title=${e=>e.strings.closeButton}
                aria-label=${e=>e.strings.closeButton}
                data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.reminderClose)||void 0===r?void 0:r.getMetadataTag()}}"
            >
            <svg width="12" height="12" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
                <path d="M0.588591 0.715694L0.646447 0.646447C0.820013 0.47288 1.08944 0.453595 1.28431 0.588591L1.35355 0.646447L6 5.293L10.6464 0.646447C10.8417 0.451185 11.1583 0.451185 11.3536 0.646447C11.5488 0.841709 11.5488 1.15829 11.3536 1.35355L6.707 6L11.3536 10.6464C11.5271 10.82 11.5464 11.0894 11.4114 11.2843L11.3536 11.3536C11.18 11.5271 10.9106 11.5464 10.7157 11.4114L10.6464 11.3536L6 6.707L1.35355 11.3536C1.15829 11.5488 0.841709 11.5488 0.646447 11.3536C0.451185 11.1583 0.451185 10.8417 0.646447 10.6464L5.293 6L0.646447 1.35355C0.47288 1.17999 0.453595 0.910563 0.588591 0.715694L0.646447 0.646447L0.588591 0.715694Z" />
            </svg>
            </button>
        </div>
        ${(0,u.g)((e=>e.followedSuggest&&e.followedSuggest.webSearchUrl),c.d`
            <a class="sports-reminder-link"
                target="_blank"
                href=${e=>e.followedSuggest&&e.followedSuggest.webSearchUrl}
                data-t="${e=>e.getFollowReminderTelemetry()}">
                ${e=>e.followedSuggest&&e.followedSuggest.webSearchUrl&&e.strings&&e.strings.seeMoreSports?(0,v.WU)(e.strings.seeMoreSports,e.followedSuggest.displayText||e.followedSuggest.name||""):e.strings.sportsCTA}
            </a>
        `)}
        ${(0,u.g)((e=>e.unfollowedSuggest),c.d`
            <span class="sports-reminder-link"
                role="button"
                tabindex="0"
                title="${e=>e.getRevertFollowTitle()}"
                aria-label="${e=>e.getRevertFollowTitle()}"
                @click=${(e,t)=>e.unfollowToastClick(t.event)}
                @keyup="${(e,t)=>t&&t.event&&"Enter"===t.event.key?e.unfollowToastClick(t.event):null}"
                data-t="${e=>e.getRevertFollowTelemetry()}">
                ${e=>e.getRevertFollowTitle()}
            </span>
        `)}
    </div>
`,ur=c.d`
    <fluent-design-system-provider
        neutral-base-color=""
        style="padding: 0; width: 100%; height: 100%; margin: 0;"
        fill-color=${e=>e.isDarkMode?"#242424":null}
    >
        <div class="sports-worldcup"
            style="${e=>e.cardBackgroundStyle}"
            @click=${(e,t)=>e.cardClickHandler(t.event)}
            @keyup="${(e,t)=>t&&t.event&&"Enter"===t.event.key?e.cardClickHandler(t.event):null}"
            data-t="${e=>{var t,r;return null===(r=null===(t=e.telemetryContext)||void 0===t?void 0:t.sportsCard)||void 0===r?void 0:r.getMetadataTag()}}"
        >
            <div class="worldcup-content">
                ${lr}
                ${e=>e.cardContent}
                ${dr}
            </div>
            ${(0,u.g)((e=>e.isActionMenuOpen),nr)}
        </div>
        ${(0,u.g)((e=>e.isShowReminder&&!(0,Z.T)(e.getFollowReminderText())),cr)}
    </fluent-design-system-provider>
`,pr=oe.i`
    .sports-header-icon {
        padding: 0 8px 0 0;
    }
    .sports-header-title {
        margin: 0 8px 0 0;
    }
    .sports-nav-tick {
        margin-left: auto;
    }
`,hr=oe.i`
    .sports-reminder-link {
        text-align: right;
    }
    .sports-header-icon {
        padding: 0 0 0 8px;
    }
    .sports-header-title {
        margin: 0 0 0 8px;
    }
    .sports-reminder-text {
        margin-left: 14px;
    }
`,gr=oe.i`
    :host {
        border-radius: 6px;
    }
    sports-worldcup-card([uxstyle="widget"]),
    :host([uxstyle="widget"]) .sports-worldcup {
        border-radius: 8px;
    }
    .sports-worldcup {
        padding: 16px 0px 0px;
        height: calc(100% - 16px);
        border-radius: 6px;
        background-size: cover;
        background-repeat: no-repeat;
        background-position: center center;
    }

    .worldcup-content {
        width: 100%;
        height: 100%;
        padding: 0px;
        margin: 0px;
        display: flex;
        flex-direction: column;
        align-items: center;
        box-sizing: border-box;
        text-decoration: none;
        cursor: pointer;
    }
    .sports-header-container {
        display: flex;
        flex-direction: row;
        width: calc(100% - 32px);
    }
    .sports-header {
        display: flex;
        flex-direction: row;
        flex: 1;
        width: 234px;
        min-height: 28px;
        max-height: 28px;
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.7px;
        text-transform: uppercase;
        margin-top: -4px;
    }
    
    .sports-header-icon {
        width: 16px;
        height: 16px;
        padding: 0 8px 0 0;
    }
    
    .sports-header-title {
        font-size: ${U.sNp};
        line-height: ${U.vgC};
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: ${U.CHi};
    }
    
    .sports-header-title:hover,
    .sports-header-title:active,
    .sports-header-title:${$e.b} {
        text-decoration: underline;
        outline: none;
    }

    .worldcup-match-title {
        width: 268px;
        margin-bottom: -4px;
        height: 39px;
    }

    .sports-footer-container {
        align-items: center;
        height: 24px;
        padding-bottom: 6px;
    }
    
    :host([uxstyle="feed"]) .sports-footer-container {
        padding-bottom: 12px;
    }

    .sports-footer-see-more {
        color: ${U.CHi};
        font-size: var(--type-ramp-minus-1-font-size);
        line-height: var(--type-ramp-minus-1-line-height);
        border-radius: 20px;
        padding: 0 24px;
        text-decoration: none;
        display: flex;
        align-items: center;
        height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 180px;
    }

    :host([uxstyle="feed"]) .sports-footer-see-more {
        background: rgba(255, 255, 255, 0.7);
    }

    .sports-footer-see-more:hover,
    .sports-footer-see-more:active,
    .sports-footer-see-more:${$e.b} {
        text-decoration: underline;
    }

    .sports-footer-see-more-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 200px;
    }

    .sports-seemore-link {
        height: auto;
        line-height: 1em;
        padding: 4px 24px;
        margin-right: auto;
        margin-left: auto;
        font-size: ${U.cSu}; 
        border-radius: 20px;
        vertical-align: middle;
        text-align: center;
        margin-bottom: var(--sequence-indicator-padding);     
        letter-spacing: 0.3px;
        color: ${U.goi};
        text-decoration: none;
    }
    .sports-seemore-link:hover,
    .sports-seemore-link:active,
    .sports-seemore-link:${$e.b} {
        text-decoration: underline;
    }

    .no-background,
    .cardless-styles  {
        background: transparent !important;
    }

    .more-actions {
        margin-top: -4px;
        --control-corner-radius: 16;
        min-width: 24px;
        width: 24px;
        height: 24px;
        z-index: 9;
        background: #FFFFFF;
    }

    .sports-follow-reminder {
        margin-top: -82px;
        margin-left: 16px;
        position: absolute;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 236px;
        padding: 13px 16px 14px;
        border-radius: 6px;
        background: #3B3B3B;
        text-decoration: none;
        z-index: 22;
        color: ${U.jql};
        font-size: ${U.sNp};
        line-height: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .sports-reminder-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }
    .sports-reminder-text {
        width: 204px;
        white-space: normal;
        word-break: break-word;
        margin-right: 14px;
        text-overflow: ellipsis;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .sports-reminder-close {
        width: 18px;
        height: 18px;
        padding: 3px;
        font-size: ${U.sNp};
        align-self: flex-start;
        border: none;
        background: transparent;
        cursor: pointer;
        fill: ${U.jql};
    }
    .sports-reminder-link {
        margin-top: 6px;
        color: #63ADE5;
        cursor: pointer;
        text-align: left;
        height: 18px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        text-decoration: underline;
    }

    ::slotted([slot="more-actions"]) {
        --control-corner-radius: 20;
    }

    sports-card-carousel {
        width: 100%;
        overflow: hidden;
        height: 100%;
    }
    
    :host([colormode="dark"]) {
        --footer-link-background: #2E3A65;
        --footer-link-hover-background: #354271;
        --sports-card-bg-color: linear-gradient(160deg, rgba(40,51,90,0), rgba(40,51,90,1)), #242424;
    }

    :host([colormode="dark"]) .with-background-image .more-actions,
    :host([colormode="dark"]) .with-background-image .sports-footer-see-more,
    :host([colormode="dark"]) .sports-footer-see-more.cardless-styles  {
        color: rgba(255, 255, 255, 255);
    }

    :host([colormode="dark"]) .sports-follow-reminder {
        background: #FBFBFB;
    }
    :host([colormode="dark"]) .sports-seemore-link {
        color: #99EBFF; /* the same color as in weather card */
    }
    :host([colormode="dark"]) .more-actions {
        background: rgba(255, 255, 255, 0.09);
    }
    :host([colormode="dark"]) .sports-footer-see-more {
        background: rgba(255, 255, 255, 0.0605);
    }
    :host([colormode="dark"]) .countdown-fallback {
        background: rgba(255, 255, 255, 0.07);
    }
`.withBehaviors(new ie.O(pr,hr),(0,ae.vF)(oe.i`
        :host {
            forced-color-adjust: auto;
        }
        @media screen and (-ms-high-contrast: active) {
            .sports-reminder-close svg {
                fill: ${gt.H.ButtonText};
            }
            .sports-seemore-link,
            .sports-footer-see-more {
                color: ${gt.H.LinkText};
                border: 1px solid ${gt.H.LinkText};
            }
            .sports-worldcup {
                background: transparent !important;
            }
            .sports-follow-reminder {
                border: 1px solid;
            }
        }
    `)),mr={experienceConfigSchema:l}},79703:function(e,t,r){"use strict";r.d(t,{$:function(){return o}});var a,i=r(19628);!function(e){e[e.Default=0]="Default",e[e.Medium=1]="Medium",e[e.MonthDate=2]="MonthDate",e[e.Weekday=3]="Weekday",e[e.Time=4]="Time"}(a||(a={}));class o{constructor(){this.dateFormatOptionsMap=new Map,this.setSupportsLocaleSpecifiers(),this.dateFormatOptionsMap.set(a.Medium,{year:"numeric",month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.MonthDate,{month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.Weekday,{weekday:"short"}),this.dateFormatOptionsMap.set(a.Time,{hour:"numeric",minute:"numeric"})}overrideDateFormat(e,t){e&&t&&this.dateFormatOptionsMap.set(e,t)}localizedDateString(e,t){return this.formatDate(e,a.Default,t)}localizedDateStringMedium(e,t){return this.formatDate(e,a.Medium,t)}localizedMonthDate(e,t){return this.formatDate(e,a.MonthDate,t)}localizedWeekday(e,t){return this.formatDate(e,a.Weekday,t)}formatTimeFromDate(e,t){return this.supportsLocaleSpecifiers&&this.dateFormatOptionsMap?e.toLocaleTimeString(t,this.dateFormatOptionsMap.get(a.Time)):e.toTimeString()}format(e,...t){return e?i.Ld.Format(e,...t):""}localizedNumberString(e,t){return this.supportsLocaleSpecifiers?e.toLocaleString(t):e.toString()}formatDate(e,t,r){let i=null;if(this.supportsLocaleSpecifiers)if(t===a.Default)i=e.toLocaleDateString(r);else if(this.dateFormatOptionsMap){const a=this.dateFormatOptionsMap.get(t);i=e.toLocaleDateString(r,a)}return null===i&&(i=e.toDateString()),null!==i?i.replace(/\u200E/g,"").replace(/\u200F/g,""):i}setSupportsLocaleSpecifiers(){this.supportsLocaleSpecifiers=(()=>{try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1})()}}},49088:function(e,t,r){"use strict";function a(e){return!e||!function(e){if(!e)return e;if(e.trim)return e.trim();return e.replace(/^\s+|\s+$/g,"")}(e)}r.d(t,{T:function(){return a}})},30113:function(e,t,r){"use strict";var a;r.d(t,{m:function(){return a}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(a||(a={}))},11708:function(e,t,r){"use strict";var a;r.d(t,{f:function(){return a}}),function(e){e.AiCharacter="aicharacterCardEnabled",e.AutosMarketplaceCard="autosmarketplaceCardEnabled",e.HoroscopeCard="horoscopeCardEnabled",e.WeatherCard="weatherCardEnabled",e.SportsCard="sportsCardEnabled",e.MoneyCard="moneyCardEnabled",e.FinanceCard="financeCardEnabled",e.OnThisDayCard="onthisdayCardEnabled",e.ShoppingCard="shoppingCardEnabled",e.ShoppingEventCard="eventSDCardShoppingEnabled",e.TrafficCard="trafficCardEnabled",e.EsportsCard="esportsCardEnabled",e.EsportsStreamsCard="esportsStreamsCardEnabled",e.ElectionsCard="genericelectionCardEnabled",e.LotteryCard="lotteryCardEnabled",e.QnaCard="qnaCardEnabled",e.RecipesCard="recipeCardEnabled",e.InspirationCard="inspirationCardEnabled",e.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RecommendedSearchesCard="recommendedSearchesCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(a||(a={}))},83152:function(e,t,r){"use strict";var a;r.d(t,{L:function(){return a}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(a||(a={}))},791:function(e,t,r){"use strict";r.d(t,{N:function(){return w}});var a=r(33940),i=r(33954),o=r(26415),n=r(68364),s=r(33799),l=r(16517),d=r(94788),c=r(67267),u=r(63535),p=r(87298),h=r(83152),g=r(11708),m=r(30113),f=r(65135),v=r(33379),y=r(51671);const w=new class extends class{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield c.$.getOneServiceHeaders(),credentials:"include"},r=(0,u.PH)(this.locationsServiceEndPoint);let i;[...c.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{i=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(r.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: getUserDefaultLocation}`;throw new Error(t)}return e}))),"getUserDefaultLocation")}catch(e){return i}return i}))}addToFavoriteLocation(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){const r="Location",i="Follow",o={method:"POST",body:JSON.stringify({actionType:i,targetType:r,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.pdpServiceEndpoint);let d;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{d=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,o);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(h.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,a.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(h.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,r={},i){return(0,a.mG)(this,void 0,void 0,(function*(){const o=h.L.Location,n="Follow",d=yield this.getRequestInit({method:"POST"},r);d.body=JSON.stringify({actionType:n,targetType:o,definitionName:t,degree:"DefaultLocation",metaData:e});const g=(0,u.PH)(this.pdpServiceEndpoint);return((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)})),yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${o}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(o),!0}))}updateTrafficMyRoutes(e,t,r,o,n,s){return(0,a.mG)(this,void 0,void 0,(function*(){const l=r.replace(/[^a-zA-Z0-9\-.,_]/g,""),d=h.L.Traffic,u="Follow",g={method:"POST",body:JSON.stringify({actionType:u,targetType:d,targetId:l,degree:e,definitionName:t,metadata:o,createdDateTime:s}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},m=yield this.getTrafficPdpUrl(null,null,n);try{yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.href,g);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${d}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(d)}catch(e){return i.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,r){return(0,a.mG)(this,void 0,void 0,(function*(){const i={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},o=yield this.getTrafficPdpUrl(e,t,r);try{yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${h.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(h.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var r;return(0,a.mG)(this,void 0,void 0,(function*(){const i={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},o=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(o.href,i);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${h.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(r=yield e.json())||void 0===r?void 0:r.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,r){return(0,a.mG)(this,void 0,void 0,(function*(){const a=(0,u.PH)(this.pdpServiceEndpoint),i=(yield(0,y.XJ)())===s.Hy.SignedIn,o=(0,l.Yq)().UserId,n=i?c.$.getOneServiceParamsWithAuth(o,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(o,this.ocid,!this.ocidOverride);if(e||t){const r=`targetType eq '${h.L.Traffic}'`,i=e?`degree eq '${e}'`:"",o=t?`definitionName eq '${t}'`:"";a.searchParams.set("$filter",`actionType eq 'Follow' and (${r})${i?` and (${i})`:""}${o?` and (${o})`:""}`)}return[...n,...r||[]].forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)})),a}))}addToWatchList(e,t=0,r={},i={}){return(0,a.mG)(this,void 0,void 0,(function*(){const o=h.L.Finance,n="Follow",d={method:"POST",body:JSON.stringify({actionType:n,targetType:o,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},i)}),headers:yield this.getOneserviceHeaders(r),credentials:"include"},g=(0,u.PH)(this.pdpServiceEndpoint),m="zh-cn"!==(0,l.Yq)().CurrentMarket;let f;((yield(0,y.XJ)())===s.Hy.SignedIn&&m?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));try{f=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${o}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(o)}catch(e){return!1}return!0}))}addListToWatchList(e,t={},r={}){return(0,a.mG)(this,void 0,void 0,(function*(){const i=h.L.Finance,o="Follow",n={method:"POST",body:JSON.stringify(e.map((e=>({actionType:o,targetType:i,targetId:e.key,metadata:Object.assign({securityType:e.value,tickerId:this.generateUUID()},r)})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},d=(0,u.PH)(this.pdpServiceEndpoint),g="zh-cn"!==(0,l.Yq)().CurrentMarket;let m;((yield(0,y.XJ)())===s.Hy.SignedIn&&g?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{m=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(d.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${i}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(i)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const r=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?r:3&r|8).toString(16)}))}sortWatchList(e,t={}){var r;return(0,a.mG)(this,void 0,void 0,(function*(){const i=h.L.Finance,o="Follow",n=yield w.readPdpWithTargetType(h.L.Finance,!0,200,t),d=n&&(null===(r=n.value)||void 0===r?void 0:r.filter((e=>e.actionType===o&&e.targetId)));if(!d||d.length<e.length)return!1;const g={};let m=e.length;d.forEach((t=>{let r=e.findIndex((e=>e===t.targetId));r<0&&(r=m,m++),g[t.targetId]=JSON.stringify({actionType:o,targetId:t.targetId,targetType:i,rank:r,metadata:t.metadata})}));const f={method:"PUT",body:JSON.stringify(g),headers:yield this.getOneserviceHeaders(t),credentials:"include"},v=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&v.searchParams.set(e.key,e.value)}));try{yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(v.href,f);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${i}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(h.L.Finance)}catch(e){return!1}return!0}))}updateWeatherInterests(e,t,r,o={},n){return(0,a.mG)(this,void 0,void 0,(function*(){const t=h.L.Weather,a={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:r}}}}),headers:yield this.getOneserviceHeaders(o),credentials:"include"},d=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(d.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return i.k.logError(e.message),!1}return!0}))}updateWeatherSettings(e,t,r={},i){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e&&!t)return!0;let a="";a=e&&!t?'{"weatherDisplayUnit":"'+e+'"}':!e&&t?'{"userSettings":{"weatherLocationSettingMode":"'+t+'"}}':'{"weatherDisplayUnit":"'+e+'","userSettings":{"weatherLocationSettingMode":"'+t+'"}}';const o=yield this.getRequestInit({method:"POST"},r);o.body=a;const n=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const d=yield this.fetchImpl(n.href,o);if(d.status>=400){const e=`OneService returned error response. Status: ${d.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const t={financeInterests:e},r=JSON.stringify(t),a=yield this.getRequestInit({method:"POST"});a.body=r;const i=(0,u.PH)(this.userUpdateEndpoint),o="zh-cn"!==(0,l.Yq)().CurrentMarket;((yield(0,y.XJ)())===s.Hy.SignedIn&&o?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));const n=yield this.fetchImpl(i.href,a);if(n.status>=400){const e=`OneService returned error response. Status: ${n.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},r){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const a=[];let o;for(o in e)null!=e[o]&&a.push('"'+o+'": '+JSON.stringify(e[o]));const n='{"userSettings":{'+a.join(", ")+"}}",d=yield this.getRequestInit({method:"POST"},t);d.body=n;const p=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=r?r:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(p.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather setting call`;throw new Error(t)}}catch(e){return i.k.logError(e.message),!1}return!0}))}getPdpUserPreference(e,t={},r){return(0,a.mG)(this,void 0,void 0,(function*(){const o=yield this.getRequestInit({method:"GET"},t),n=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(r||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(r||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{const e=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,o);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!e.ok&&404!=e.status)throw Error(`code=${e.status}, ${e.statusText}`);return Object.assign(Object.assign({},yield e.json()),{is404:404==e.status})}catch(t){if(i.k.logError(t.message),e)throw Error(t.message);return null}}))}updatePdpLayoutPreference(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t={method:"PUT",credentials:"include",body:JSON.stringify({dummyid:{userLayoutPreference:e}})},r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(r.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update layout preference setting call`;throw new Error(t)}}catch(e){return i.k.logError(e.message),!1}return!0}))}updateSegmentCardsEnableStatus(e,t=null){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const r=[];if(t){let e;for(e in t)null!=t[e]&&r.push('"'+e+'": '+JSON.stringify(t[e]))}const a=e.map((e=>e.cardType!=g.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),i=r.length>0?'{"segmentCardSettings":"{'+a+'}","userSettings":{'+r.join(", ")+"}}":'{"segmentCardSettings":"{'+a+'}"}';return this.updateUserPreference(i)}))}updateProductivityCardsEnableStatus(e){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{enterpriseCardsEnabled:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateGamingCardsEnableStatus(e){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{gamingCards:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateCommunitySettingsOptOutStatus(e){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t={};e.forEach((e=>{t[e.settingType]=e.optedOut?"1":"0"}));const r={communitySettings:t};return this.updateUserPreference(JSON.stringify(r))}))}updateWidgetSettings(e,t={},r){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const a=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:h.L.Widget,metadata:{prongsv2:{region:e.region,size:m.m[e.size],position:e.position}}})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(a),appError:r})}))}muteWidget(e,t={},r){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const a=e.map((e=>({actionType:"Mute",targetId:e,targetType:h.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(a),appError:r})}))}disableSpotlightCard(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const r={actionType:"Disabled",definitionName:e,targetType:h.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(r),appError:t})}))}enableSpotlightCard(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){return!!e&&(yield this.deleteFromPdp(h.L.TopicFeed,"definitionName",[e],{},void 0,"Disabled",t))}))}sendGenericActionRequest(e){return(0,a.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:t,additionalParams:r,endpoint:i,method:o,payload:n,appError:d}=e;if(!i||!o)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),d),!1;const h=(0,u.PH)(i);let g;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)})),r&&r.forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)}));try{JSON.parse(n),g=n}catch(e){g=JSON.stringify(n)}const m={method:o,body:g,headers:yield this.getOneserviceHeaders(t),credentials:"include"},f="GET"==o;try{return yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(h.href,m);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for payload: ${n}`;throw new Error(t)}return!f||(yield e.json())}))),"sendActions")}catch(e){return this.logError(e,d),!1}}))}getUserActions(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t=[{key:"actionType",value:e}],r=yield this.sendGenericActionRequest({additionalParams:t,endpoint:this.userActionServiceEndPoint,method:"GET"});return r&&r.value}))}setUserAction(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:e},t)}))}))}deleteUserAction(e,t){return(0,a.mG)(this,void 0,void 0,(function*(){const r=[{key:"actionType",value:e},{key:"targetId",value:t.targetId},{key:"definitionName",value:t.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:r,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const a=yield this.fetchImpl(r.href,t);if(a.status>=400){const t=`OneService returned error response while updating user preference. Status: ${a.status}, payload: ${e}`;throw new Error(t)}}catch(e){return!1}return!0}))}setPdpTargetTypesForBulkLoad(e){e&&e.length&&!this.bulkGraphActionTargetTypes&&(this.bulkGraphActionTargetTypes=e)}readPdpWithTargetType(e,t=!1,r,i={},n=!0,s=[]){return(0,a.mG)(this,void 0,void 0,(function*(){if(n){const t=yield this.getFromWebWorker(e);if(t)return t}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(e)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,t,r,i,s)));const a=this.bulkGraphActionResultCache.get(e);if(a)return{value:a}}else f.M0.sendAppErrorEvent(Object.assign(Object.assign({},o.srQ),{message:`Received an unknown target type "${e}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const a=(yield this.fetchPdpWithTargetTypes([e],t,r,i,s)).get(e);if(a)return{value:a}}))}deleteFromPdp(e,t,r,i={},o,n="Follow",d,h=[]){return(0,a.mG)(this,void 0,void 0,(function*(){const g={method:"DELETE",headers:yield this.getOneserviceHeaders(i),credentials:"include"},m=(0,u.PH)(this.pdpServiceEndpoint),v=(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),w=`targetType eq '${e}'`,S=r.map((e=>`${t} eq '${e}'`)).join(" or ");let b=`actionType eq '${n}' and (${S}) and (${w})`;o&&(b+=` and (degree eq '${o}')`),m.searchParams.set("$filter",b),[...v,...h].forEach((e=>{e.value&&m.searchParams.set(e.key,e.value)}));try{yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(m.href,g);if(t.status>=400){const r=`OneService returned error response. Status: ${t.status} for actionType: ${n}, targetType: ${e}`;throw new Error(r)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return d&&f.M0.sendAppErrorEvent(Object.assign(Object.assign({},d),{pb:Object.assign(Object.assign({},d.pb),{actionType:n,error:e.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,r,i={},o=[]){return(0,a.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const n=e.map((e=>`targetType eq '${e}'`)).join(" or "),d=[{key:"$top",value:`${r=r||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${n})`}],h=yield this.getRequestInit({method:"GET"},i);!0===t&&(h.cache="no-store");const g=(0,u.PH)(this.pdpServiceEndpoint);[...d,...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...o].forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));const m=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,h);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!m.ok)throw Error(`code=${m.status}, ${m.statusText}`);const f=new Map,v=yield m.json();if(!v)return f;if(v.value)for(const e of v.value){let t=f.get(e.targetType);t||f.set(e.targetType,t=[]),t.push(e)}for(const t of e)f.get(t)||f.set(t,[]);return f}))}updateMarketPreference(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:e}})},r=(0,u.PH)(this.userUpdateEndpoint);((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(r.href,t);if(!e.ok)throw new Error(`Failed to update market preference: Status: ${e.status}`);return!0}catch(e){return i.k.logError(e.message),!1}}))}getFromWebWorker(e){return(0,a.mG)(this,void 0,void 0,(function*(){let t=null;if(d.yb){const r=this.maptoWebWorkerId(e);if(r&&r.trim()){const r=yield(0,d.ot)({id:this.maptoWebWorkerId(e)});r.fetched&&(t=r.payload)}}return t}))}maptoWebWorkerId(e){switch(e){case h.L.Location:return"weatherpdp";case h.L.League:return"sportsleaguepdp";case h.L.Player:return"sportsplayerpdp";case h.L.Team:return"sportsteampdp";case h.L.Finance:return"moneypdp";default:return""}}getRequestInit(e={method:"GET"},t={}){return(0,a.mG)(this,void 0,void 0,(function*(){const r=yield c.$.getOneServiceHeaders();return e.headers=Object.assign(Object.assign({},r),t),e.credentials="include",e}))}getOneserviceHeaders(e={}){return(0,a.mG)(this,void 0,void 0,(function*(){const t=yield c.$.getOneServiceHeaders();return Object.assign(Object.assign({},t),e)}))}getFollowedLists(){return(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.getRequestInit({method:"GET"}),t=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&t.searchParams.set(e.key,e.value)}));try{const r=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const r=yield this.fetchImpl(t.href,e);if(!r.ok){if(r.status>=400&&r.status<500&&408!=r.status)return r;(0,n.OO)(null,o.G9t,"Error get followed list")}return r}))),"getFollowedLists");return r.ok||(0,n.OO)(null,o.G9t,"Error get followed list"),yield r.json()}catch(e){return i.k.logError(e.message),null}}))}addToFollowedLists(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t=h.L.Finance,r={method:"POST",body:JSON.stringify({financeListIds:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},i=(0,u.PH)(this.userUpdateEndpoint);let o;((yield(0,y.XJ)())===s.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{o=yield(0,p.w)((()=>(0,a.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(i.href,r);if(e.status>=400){const r=`OneService returned error response. Status: ${e.status} for actionType: FollowList, targetType: ${t}`;throw new Error(r)}return e.json()}))),"addToFollowedLists")}catch(e){return!1}return!0}))}deleteFromFollowedLists(e){return(0,a.mG)(this,void 0,void 0,(function*(){const t=h.L.Finance,r={method:"D	[M$JMpu