 i=a(51873),n=a(37429),r=a(39181),o=a(13988),s=a(46943),d=a(74045),l=a(76859),c=a(40565),u=a(20048),p=a(3708),g=a(80709),h=a(16517),m=a(83721),f=a(24261),v=a(62734),b=a(82128),C=a(81563),y=a(78408),x=a.n(y),w=a(83572),S=a.n(w);u.R;const T=r.d`
<button 
    slot="hide-story"
    class="dismiss"
    aria-label="${e=>e.cardActionsTooltips&&e.cardActionsTooltips.hide}"
    title="${e=>e.cardActionsTooltips&&e.cardActionsTooltips.hide}"
    @click=${(e,t)=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^d.O7.hide,"Hide",!0,null,null,null,t.event)}
    @keypress=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^d.O7.hide,"Hide",!0)}
    data-t="${e=>e.telemetryContext&&e.telemetryContext.hide&&e.telemetryContext.hide.getMetadataTag()}"
>
    <svg
        width="16"
        height="16"
        viewBox="0 0 16 16"
        xmlns="http://www.w3.org/2000/svg"
    >
        <path
            d="M11.4587 4.39737L11.5355 4.46449C11.804 4.73297 11.8264 5.15437 11.6027 5.44835L11.5355 5.52515L9.06066 8.00002L11.5355 10.4749C11.804 10.7434 11.8264 11.1648 11.6027 11.4588L11.5355 11.5356C11.267 11.804 10.8456 11.8264 10.5517 11.6027L10.4749 11.5356L8 9.06068L5.52513 11.5356C5.25664 11.804 4.83524 11.8264 4.54127 11.6027L4.46447 11.5356C4.19598 11.2671 4.17361 10.8457 4.39734 10.5517L4.46447 10.4749L6.93934 8.00002L4.46447 5.52515C4.19598 5.25666 4.17361 4.83526 4.39734 4.54129L4.46447 4.46449C4.73295 4.196 5.15435 4.17363 5.44832 4.39737L5.52513 4.46449L8 6.93936L10.4749 4.46449C10.7434 4.196 11.1648 4.17363 11.4587 4.39737Z"
        />
    </svg>
</button>
`,k=r.d`
<fluent-button slot="hover-actions" appearance="stealth"
    style="min-width: 24px; width: 24px; height: 24px; border-radius: 16px; ${v.XC}; flex-direction: column; --neutral-fill-stealth-rest: #FFFFFF; --neutral-fill-stealth-hover: #F2F2F2; --neutral-fill-stealth-active: #F7F7F7; fill: #2B2B2B"
    aria-label="${e=>e.cardActionsTooltips&&e.cardActionsTooltips.hide}"
    title="${e=>e.cardActionsTooltips&&e.cardActionsTooltips.hide}"
    @click=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^d.O7.hide,"Hide",!0)}
    @keypress=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^d.O7.hide,"Hide",!0)}
    data-t="${e=>e.telemetryContext&&e.telemetryContext.hide&&e.telemetryContext.hide.getMetadataTag()}"
>
    <svg style="width: 8px; height: 24px; vertical-align: middle;" viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg">
        <path d="M6.84961 6L12 11.1504L11.1504 12L6 6.84961L0.849609 12L0 11.1504L5.15039 6L0 0.849609L0.849609 0L6 5.15039L11.1504 0L12 0.849609L6.84961 6Z"/>
    </svg>
</fluent-button>
`,$=({theme:e="default"})=>r.d`
<div style="display: flex; gap: 4px;">
    ${(0,o.g)((e=>e.optedOutOfReactions),r.d`
        ${A}
        ${I}
    `)}
    <social-bar-wc
        config-instance-src=${e=>e.socialBarWCConfigInfo&&(0,b.g)(e.socialBarWCConfigInfo)}
        instance-id=${e=>e.socialBarWCConfigInfo&&e.socialBarWCConfigInfo.instanceId}
        config-shared-ns=${e=>{var t,a;return null===(a=null===(t=e.socialBarWCConfigInfo)||void 0===t?void 0:t.configRef)||void 0===a?void 0:a.sharedNs}}
        :additionalHeaders=${e=>e.additionalHeaders}
        :canShowOneLineComments=${e=>!(e.isInfopane||e.cardSize!==l.Nv._2x_2y||"flex-article-card"===e.card_template_type&&e.articleTopCommentConfigInfo&&e.articleTopCommentId)}
        :contentId=${e=>e.id}
        :destinationUrl=${e=>e.destinationUrl}
        :locale=${e=>h.jG.CurrentMarket||e.locale}
        :rootTelemetryObject=${e=>e.telemetryContext&&(e.telemetryContext.contentCardTelemetryObject||e.telemetryContext.contentCard)}
        :getReplacementCardsInlineCallback=${e=>e.getReplacementCardsInlineCallback}
        :socialMetadata=${e=>Object.assign(Object.assign({},e.metadata),{imageData:e.imageData,providerData:e.providerData,title:e.title})}
        :theme=${t=>e}
    />
</div>
`,A=r.d`
<msn-card-button
    class="card-button"
    data-icon=${d.O7.showMore}
    style="${e=>e.isInfopane||e.optedOutOfReactions||!e.enableFilledIconOnHover?"":"display: flex;"} ${e=>e.enableAnimatedShowMoreBtn||e.optedOutOfReactions||!e.enableFilledIconOnHover?"":"margin-inline-end: 8px;"}"
    select-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.showMore}
    unselect-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.undoShowMore}
    animation-text=${e=>e.showMoreAnimationTitle}
    select-icon=${e=>e.useArrowIcons&&!e.optedOutOfReactions?S():g.Z}
    unselect-icon=${e=>e.useArrowIcons&&!e.optedOutOfReactions?x():p.Z}
    filled-icon-path=${e=>e.useArrowIcons&&!e.optedOutOfReactions?s.Z4:s.Ol}
    fill-color-selected=${e=>!e.enableNeutralFilledShowMoreIcon&&m.m}
    layout=${e=>(0,i.Q8)(e)}
    selected=${e=>!!(e.cardActionStatus&d.O7.showMore)}
    @selected-state-changed=${(e,t)=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus&d.O7.showFewer?e.cardActionStatus^d.O7.showMore^d.O7.showFewer:e.cardActionStatus^d.O7.showMore,"ShowMore",!0,e.cardActionClickHandler,null,!e.enableAnimatedShowMoreBtn,t.event)}
    select-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.showMore&&e.telemetryContext.showMore.getMetadataTag()}
    unselect-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.undoShowMore&&e.telemetryContext.undoShowMore.getMetadataTag()}
>
</msn-card-button>
`,I=r.d`
<msn-card-button
    class="card-button"
    data-icon=${d.O7.showFewer}
    style="${e=>!e.enableAnimatedShowMoreBtn&&e.enableFilledIconOnHover?"margin-inline-start: 8px;":""}"
    select-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.showFewer}
    unselect-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.undoShowFewer}
    select-icon=${e=>'<svg width="16" height="18" viewBox="0 0 16 18"><path d="M10.48 17.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C6 12.1 5.37 10.9 3.67 9.37c-.23-.2-.52-.36-.84-.49C1.7 8.44.63 7.27.9 5.88l.36-1.77a2.5 2.5 0 0 1 1.8-1.92L8.66.66a4.5 4.5 0 0 1 5.6 3.54l.69 3.76A3 3 0 0 1 12 11.5h-.88l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 0 1-.5 1.73c-.11.16-.28.35-.44.52Z"/></svg>'}
    unselect-icon=${e=>'<svg width="16" height="18" viewBox="0 0 16 18"><path d="M8.05 16.7c.34.98 1.63 1.43 2.43.6.16-.17.33-.36.44-.52.32-.48.45-1.12.5-1.73.05-.63.02-1.3-.05-1.91-.06-.62-.16-1.18-.24-1.59v-.05H12a3 3 0 0 0 2.96-3.54l-.69-3.76A4.5 4.5 0 0 0 8.67.67l-5.6 1.52c-.92.25-1.62 1-1.8 1.92L.9 5.88c-.27 1.39.79 2.56 1.92 3 .32.13.61.3.84.5 1.7 1.5 2.32 2.72 3.38 4.84.36.71.72 1.68 1 2.49Zm1.96-5.58v.01l.01.03a8.94 8.94 0 0 1 .13.58c.08.4.17.92.23 1.5s.09 1.18.04 1.73c-.04.55-.16.98-.34 1.25-.05.1-.17.22-.32.39-.2.2-.63.16-.76-.23-.29-.82-.67-1.83-1.05-2.6-1.07-2.14-1.76-3.5-3.62-5.15-.34-.3-.74-.52-1.13-.68-.89-.34-1.45-1.14-1.3-1.87l.35-1.77c.1-.56.53-1 1.07-1.15l5.6-1.53a3.5 3.5 0 0 1 4.37 2.75l.68 3.76A2 2 0 0 1 12 10.5h-1.5a.5.5 0 0 0-.48.62Z"/></svg>'}
    filled-icon-path=${e=>s.Vy}
    fill-color-selected=${e=>!e.enableNeutralFilledShowMoreIcon&&m.m}
    layout=${e=>(0,i.Q8)(e)}
    selected=${e=>!!(e.cardActionStatus&d.O7.showFewer)}
    @selected-state-changed=${(e,t)=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus&d.O7.showMore?e.cardActionStatus^d.O7.showMore^d.O7.showFewer:e.cardActionStatus^d.O7.showFewer,"ShowFewer",!0,e.cardActionClickHandler,null,!e.contentType,t.event)}
    select-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.showMore&&e.telemetryContext.showFewer.getMetadataTag()}
    unselect-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.undoShowFewer&&e.telemetryContext.undoShowFewer.getMetadataTag()}
>
</msn-card-button>
`,D=r.d`
<msn-card-button
    class="card-button"
    select-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.save}
    unselect-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.undoSave}
    select-icon=${e=>e.enableFilledIconOnHover?'<svg width="20" height="20" viewBox="0 0 20 20"><path d="M4 4.5A2.5 2.5 0 0 1 6.5 2h7A2.5 2.5 0 0 1 16 4.5v13a.5.5 0 0 1-.8.4L10 14.12 4.8 17.9a.5.5 0 0 1-.8-.4v-13Z"/></svg>':'<svg width="16" height="16" viewBox="0 0 16 16"><path d="M3.78 13.92A.5.5 0 0 1 3 13.5V4.01c0-1.1.9-2 2-2h6A2 2 0 0 1 13 4v9.5a.5.5 0 0 1-.78.42L8 11.1l-4.22 2.82Z"/></svg>'}
    unselect-icon=${e=>e.enableFilledIconOnHover?'<svg width="20" height="20" viewBox="0 0 20 20"><path d="M4 4.5A2.5 2.5 0 0 1 6.5 2h7A2.5 2.5 0 0 1 16 4.5v13a.5.5 0 0 1-.8.4L10 14.12 4.8 17.9a.5.5 0 0 1-.8-.4v-13ZM6.5 3C5.67 3 5 3.67 5 4.5v12.02l4.7-3.42a.5.5 0 0 1 .6 0l4.7 3.42V4.5c0-.83-.67-1.5-1.5-1.5h-7Z"/></svg>':'<svg width="16" height="16" viewBox="0 0 16 16"><path d="M3.78 13.92A.5.5 0 0 1 3 13.5V4.01c0-1.1.9-2 2-2h6A2 2 0 0 1 13 4v9.5a.5.5 0 0 1-.78.42L8 11.1l-4.22 2.82ZM12 4v-.12A1 1 0 0 0 11 3l-6 .01a1 1 0 0 0-1 1v8.56l3.72-2.49a.5.5 0 0 1 .56 0L12 12.57V4Z"/></svg>'}
    filled-icon-path=${e=>s.pt}
    fill-color-selected=${e=>!e.enableNeutralFilledShowMoreIcon&&m.m}
    layout=${e=>(0,i.Q8)(e)}
    selected=${e=>!!(e.cardActionStatus&d.O7.saved)}
    @selected-state-changed=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^d.O7.saved,"Save",!0)}
    select-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.save&&e.telemetryContext.save.getMetadataTag()}
    unselect-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.save&&e.telemetryContext.save.getMetadataTag()}
>
</msn-card-button>
`,M=r.d`
<msn-card-button
    class="card-button"
    style="${e=>e.isInfopane||e.enableFilledIconOnHover&&(!e.enableFilledIconOnHover||e.optedOutOfReactions)?"":"display: inline-flex;"}"
    select-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.seeMore}
    unselect-icon=${e=>c.Z}
    filled-icon-path=${e=>s.Cp}
    layout=${e=>(0,i.Q8)(e)}
    @selected-state-changed=${(e,t)=>e.useMobile?(0,f.H_)(t.event,void 0,e,e.actionMenuLocalizedStrings):e.toggleCardActionMenu&&e.toggleCardActionMenu(e,t.event)}
    select-telemetry-tag=${e=>e.telemetryContext&&e.telemetryContext.seeMore&&e.telemetryContext.seeMore.getMetadataTag()}
>
</msn-card-button>
`,O=r.d`
${(0,o.g)((e=>e.isAnaheimDesign&&!e.useSmallFontSize),r.d`
    <h3 class="info-pane-slide-title" style="pointer-events: none;" part="info-pane-slide-title">
        ${e=>e.title}
    </h3>
`)}
${(0,o.g)((e=>e.isAnaheimDesign&&e.useSmallFontSize),r.d`
    ${e=>e.title}
`)}
${(0,o.g)((e=>!e.isAnaheimDesign),r.d`
    ${e=>e.title}
`)}
`,L=r.d`
<style>
    .title-ad-triple .info-pane-slide-title, .title-ad-double .info-pane-slide-title {
        font-weight: 400;
        margin-top: 6px;
        position: relative;
        cursor: pointer;
        z-index: 2;
        overflow: hidden;
        max-height: 90px;
        font-size: 20px;
        line-height: 28px;
    }

    .info-pane-slide-title {
        overflow: hidden;
        font-weight:600;
        font-size:28px;
        line-height:36px;
        margin-top:0;
        margin-bottom:0;
        transition:all .2s ease-in-out;
        box-sizing: content-box;
        max-height: 108px;
        white-space: normal;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }
    :host msft-content-card.native-ad-infopane-content-card .info-pane-slide-title {
        -webkit-line-clamp: 1;
    }
    :host msft-content-card.native-ad-infopane-content-card:hover .info-pane-slide-title{
        -webkit-line-clamp: 2;
    }
    :host .hasInlineDecoration .info-pane-slide-title {
        -webkit-line-clamp: 2;
    }
    :host msft-content-card.native-ad-infopane-horizontal .info-pane-slide-title{
        -webkit-line-clamp: 2;
    }
</style>
`,F=e=>r.d`
        ${(0,o.g)((e=>e.providerData),r.d`
            ${(0,o.g)((e=>e.isAnaheimDesign),r.d`
                <msft-attribution slot="${e}" style="color:#fff;pointer-events: none;--design-unit: 1.5;">
                    ${R()}
                    <div class="attribution_container_${e=>e.id}" id="attribution_container">
                        <div class="attribution_Content_${e=>e.id}" style="${e=>"rtl"===e.dir?"right":"left"}:0px;${e=>e.isProviderIconClickable?"padding: 0 10px;":""}">
                            ${(0,o.g)((e=>e.providerData&&e.providerData.name&&(!e.isProviderIconClickable||!e.providerData.profileId)),r.d`<span style="unicode-bidi: embed;">${e=>e.providerData.name}</span>`)}
                            ${(0,o.g)((e=>e.providerData&&e.providerData.name&&e.publishedDateTime),r.d` · `)}
                            ${(0,o.g)((e=>e.publishedDateTime),r.d`<span style="unicode-bidi: embed;">${e=>e.publishedDateTime}</span>`)}
                            ${(0,o.g)((e=>e.isWebContent&&e.crawledContentLabel),r.d` · `)}
                            ${(0,o.g)((e=>e.isWebContent&&e.crawledContentLabel),r.d`${e=>e.crawledContentLabel}`)}
                        </div>
                    </div>
                </msft-attribution>
            `)}
            ${(0,o.g)((e=>!e.isAnaheimDesign),r.d`
                <msft-attribution slot="attribution" style="--design-unit: 1.5;">
                    ${R()}
                    <div class="attribution_container_${e=>e.id}" id="attribution_container">
                        <div class="attribution_Content_${e=>e.id}" style="${e=>"rtl"===e.dir?"right":"left"}:0px;${e=>e.isProviderIconClickable?"padding: 0 10px;":""}">
                            ${(0,o.g)((e=>e.providerData&&e.providerData.name&&(!e.isProviderIconClickable||!e.providerData.profileId)),r.d`<span style="unicode-bidi: embed;">${e=>e.providerData.name}</span>`)}
                            ${(0,o.g)((e=>e.providerData&&e.providerData.name&&e.publishedDateTime),r.d` · `)}
                            ${(0,o.g)((e=>e.publishedDateTime),r.d`<span style="unicode-bidi: embed;">${e=>e.publishedDateTime}</span>`)}
                            ${(0,o.g)((e=>e.isWebContent&&e.crawledContentLabel),r.d` · `)}
                            ${(0,o.g)((e=>e.isWebContent&&e.crawledContentLabel),r.d`${e=>e.crawledContentLabel}`)}
                        </div>
                    </div>
                </msft-attribution>
            `)}
        `)}
    `,P=(e,t)=>r.d`
<msft-content-indicator slot="content-indicator" style="--control-corner-radius: 4">
    ${e}
    ${t||""}
</msft-content-indicator>
`,R=()=>r.d`
    ${(0,o.g)((e=>e.providerData.logoImage),r.d`
        ${(0,o.g)((e=>e.isProviderIconClickable&&e.providerData&&e.providerData.profileId),r.d`
            <a class="attribution-icon-clickable" href=${e=>(0,i.jz)(e.providerData.profileId)} target="_blank" title="${e=>e.providerData.name}" tabindex="-1"
                data-t="${e=>e.telemetryContext&&e.telemetryContext.clickableProviderIcon&&e.telemetryContext.clickableProviderIcon.getMetadataTag()}">
                <img slot="image" src="${e=>e.providerData.logoImage}" tabindex="0" alt="${e=>e.providerData.name}" @load=${e=>e.imageData&&e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback(n.u.VP,n.w.provider)}/>
                <span class="attribution-provider-name" tabindex="0">${e=>e.providerData.name}</span>
            </a>
        `)}
        ${(0,o.g)((e=>!e.isProviderIconClickable||!e.providerData.profileId),r.d`
            <img slot="image" src="${e=>e.providerData&&e.providerData.logoImage}" alt="${e=>e.providerData&&e.providerData.name}" 
            @load=${e=>e.imageData&&e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback(n.u.VP,n.w.provider)}/>
        `)}
    `)}
    ${(0,o.g)((e=>e.isProviderIconClickable&&e.providerData&&e.providerData.name&&e.providerData.profileId&&!e.providerData.logoImage),r.d`
        <a class="attribution-icon-clickable" href=${e=>(0,i.jz)(e.providerData.profileId)} target="_blank" title="${e=>e.providerData.name}" tabindex="-1"
            data-t="${e=>e.telemetryContext&&e.telemetryContext.clickableProviderIcon&&e.telemetryContext.clickableProviderIcon.getMetadataTag()}">
            <span style="unicode-bidi: embed;margin-inline-end: -5px;" tabindex="0">${e=>e.providerData.name}</span>
        </a>
    `)}
    ${(0,o.g)((e=>e.isProviderIconClickable&&e.providerData.profileId),r.d`
        <style>
            .attribution-icon-clickable {
                z-index: 4;
                color: unset;
                text-decoration: none;
                display: inline-flex;
            }
            .attribution-icon-clickable:hover {
                text-decoration: underline;
            }
            .attribution-provider-name {
                unicode-bidi: embed;
                margin-inline-start: 10px;
                margin-inline-end: -5px;
            }
        </style>
    `)}
`,_=r.d`
    <msft-attribution slot="attribution">
        ${R()}
        <div class="attribution_container_${e=>e.id}" id="attribution_container">
            <div class="attribution_Content_${e=>e.id}" style="${e=>"rtl"===e.dir?"right":"left"}:0px;${e=>e.isProviderIconClickable?"padding: 0 10px;":""}">
                ${(0,o.g)((e=>e.providerData&&e.providerData.name&&(!e.isProviderIconClickable||!e.providerData.profileId)),r.d`<span style="unicode-bidi: embed;">${e=>e.providerData.name}</span>`)}
                ${(0,o.g)((e=>e.providerData&&e.providerData.name&&e.publishedDateTime),r.d` · `)}
                ${(0,o.g)((e=>e.publishedDateTime),r.d`<span style="unicode-bidi: embed;">${e=>e.publishedDateTime}</span>`)}
                ${(0,o.g)((e=>e.isWebContent&&e.crawledContentLabel),r.d` · `)}
                ${(0,o.g)((e=>e.isWebContent&&e.crawledContentLabel),r.d`${e=>e.crawledContentLabel}`)}
            </div>
        </div>
    </msft-attribution>
`,E=r.d`
    <msft-attribution slot="attribution">
        ${R()}
        ${(0,o.g)((e=>e.providerData.name&&(!e.isProviderIconClickable||!e.providerData.profileId)),r.d`<span style="unicode-bidi:embed">${e=>e.providerData.name}</span>`)}
        ${(0,o.g)((e=>e.providerData.name&&e.publishedDateTime),r.d` · `)}
        ${(0,o.g)((e=>e.publishedDateTime),r.d`${e=>e.publishedDateTime}`)}
    </msft-attribution>
`,H=(e,t=!0,a=!0)=>r.d`
    <msn-content-badge
        slot="content-indicator"
        iconName=${e.type}
        showColored=${t}
        class=${e=>a&&e.contentIndicator&&(e.cardSize!==l.Nv._1x_1y||e.imageData)&&"video"!=e.contentType?"offset-engagement-badge":""}
    >
        ${e.localizedLabel||e.value}
    </msn-content-badge>
`,N=({fallbackFeed:e})=>r.d`
${(0,o.g)((()=>e),r.d` 
    <div class="heading-group-error"><h2>${()=>e.title}</h2>
    ${(0,o.g)((()=>e.subTitle),r.d`
        <div class="subheading-error">
            <span>${e.subTitle}</span>
        </div>
    `)}
    ${(0,o.g)((()=>e.refreshButton),r.d`
        <fluent-button 
            appearance="accent"
            class="refresh-button"
            data-t="${()=>e.refreshButton.telemetryObject&&e.refreshButton.telemetryObject.getMetadataTag()}"
            @click=${()=>e.refreshButton.onClick()}
            @keypress=${()=>e.refreshButton.onClick()}
            >
            ${()=>e.refreshButton.title}
        </fluent-button>
    `)}
</div>`)}`,z=r.d`
${(0,o.g)((e=>e.config.childExperienceReferencesWC&&e.config.childExperienceReferencesWC.pillWC),r.d`${e=>(0,C.O)(e.config.childExperienceReferencesWC.pillWC,{properties:{refreshCallback:()=>e.feedManager.callRefreshRegionsData({invalidateCache:!0,scrollToTop:!0}),getDesktopFeedRect:()=>e.getBoundingClientRect()}})}`)}
`},51873:function(e,t,a){"use strict";a.d(t,{$Y:function(){return n},Q8:function(){return s},jz:function(){return d},pj:function(){return o}});var i=a(16517);var n,r;function o(e){return e?[{isDarkMode:!0,hexColor:r.imgDark},{isDarkMode:!1,hexColor:r.imgLight}]:[{isDarkMode:!0,hexColor:r.noImgDark},{isDarkMode:!1,hexColor:r.noImgLight}]}function s(e){return e.enableAnimatedShowMoreBtn?"animated":e.enableFilledIconOnHover?"fillediconhover":e.noBackPlateOnRest?"nobackplate":"default"}function d(e){return`https://www.msn.com/${i.jG.CurrentMarket}/community/channel/${e}`}!function(e){e.default="default",e.condensed="condensed",e.infoPane="infoPane",e.infoPane1x3y="infoPane1x3y",e.infoPaneSplitVertical="infoPaneSplitVertical",e.infoPaneSplitHorizontal="infoPaneSplitHorizontal"}(n||(n={})),function(e){e.imgLight="#F5F5F5",e.imgDark="#2E2E2E",e.noImgLight="#DEDEDE",e.noImgDark="#222"}(r||(r={}))},25295:function(e,t,a){"use strict";a.d(t,{B:function(){return i}});const i={_60x60:{width:60,height:60},_82x82:{width:82,height:82},_104x84:{width:104,height:84},_141x250:{width:141,height:250},_180x88:{width:180,height:88},_203x114:{width:203,height:114},_216x114:{width:216,height:114},_220x124:{width:220,height:124},_220x178:{width:220,height:178},_238x120:{width:238,height:120},_240x129:{width:240,height:129},_240x253:{width:240,height:253},_242x144:{width:242,height:144},_242x176:{width:242,height:176},_300x156:{width:300,height:156},_300x169:{width:300,height:169},_300x174:{width:300,height:174},_300x200:{width:300,height:200},_300x225:{width:300,height:225},_300x282:{width:300,height:282},_300x304:{width:300,height:304},_300x326:{width:300,height:326},_300x462:{width:300,height:462},_306x197:{width:306,height:197},_385x225:{width:385,height:225},_406x304:{width:406,height:304},_486x304:{width:486,height:304},_468x304:{width:468,height:304},_604x296:{width:604,height:296},_612x304:{width:612,height:304},_612x326:{width:612,height:326},_612x462:{width:612,height:462},_628x372:{width:628,height:372}}},75351:function(e,t,a){"use strict";a.d(t,{MW:function(){return s},Z1:function(){return c},nj:function(){return d}});var i=a(38156),n=a(65135),r=a(12611),o=a(44772);const s={contentCardName:"ContentCard",destination:"destination",flexCard:"FlexCard",hideName:"Hide",relatedStories:"RelatedStories",showRelatedStories:"ShowRelatedStories",saveName:"Save",seeMoreName:"Card Action Ellipsis",showFewerName:"Fewer stories like this",showMoreName:"More stories like this",undoShowFewer:"Undo fewer stories like this",undoShowMore:"Undo more stories like this",undoSaveName:"UndoSave",webCardName:"WebCard",webContentName:"WebContent",clickableProviderIcon:"Provider Icon"},d=(e,t,a,n,r,o=s,d)=>{if(!e)return;const c=l(t,a);let u,p;r?(u=e.addOrUpdateChild({name:o.webCardName,content:c}),p=u.addOrUpdateChild({name:o.webContentName,type:i.c9.Headline,behavior:i.wu.Navigate,content:c,ext:n})):(u=e.addOrUpdateChild({name:o.contentCardName,type:i.c9.ContentCard,content:c}),p=u.addOrUpdateChild({name:o.destination,type:i.c9.Headline,behavior:i.wu.Navigate,content:c,ext:n}));const g=u.addOrUpdateChild({name:o.seeMoreName,type:i.c9.ActionButton,behavior:i.wu.More,content:c}),h=u.addOrUpdateChild({name:o.saveName,type:i.c9.ActionButton,behavior:i.wu.Save,content:c}),m=u.addOrUpdateChild({name:o.hideName,type:i.c9.ActionButton,behavior:i.wu.Hide,content:c}),f=u.addOrUpdateChild({name:o.showMoreName,type:i.c9.ActionButton,behavior:i.wu.Like,content:c}),v=u.addOrUpdateChild({name:o.showFewerName,type:i.c9.ActionButton,behavior:i.wu.Dislike,content:c}),b=u.addOrUpdateChild({name:o.undoShowMore,type:i.c9.ActionButton,behavior:i.wu.Unlike,content:c}),C=u.addOrUpdateChild({name:o.undoShowFewer,type:i.c9.ActionButton,behavior:i.wu.Undislike,content:c}),y=e.addOrUpdateChild({name:s.relatedStories,type:i.c9.ContentCard,content:c}),x=e.addOrUpdateChild({name:s.showRelatedStories,type:i.c9.ActionButton,behavior:i.wu.Show,content:c}),w=e.addOrUpdateChild({name:s.flexCard,type:i.c9.ContentCard,content:c}),S=e.addOrUpdateChild({name:o.clickableProviderIcon,type:i.c9.ActionButton,behavior:i.wu.Navigate,content:c}),{zone:T}=e.contract||{};T&&(u.contract.zone=T,p.contract.zone=T);let k={componentRoot:e,contentCard:u,destination:p,seeMore:g,save:h,showMore:f,showFewer:v,undoShowMore:b,undoShowFewer:C,hide:m,relatedStories:y,showRelatedStories:x,clickableProviderIcon:S};return d&&(k=Object.assign(Object.assign({},k),{flexcard:w})),k},l=(e,t)=>{const a=e||{},i=t||{},n=a.provider&&a.provider.name,s=i&&i.subCategory||a&&a.category&&a.category.label||a&&a.category,d=a.title,l=a.id,c=i&&i.category||a&&a.category&&a.category.product||a&&a.category,u=(0,r.cx)(a.type),p=(0,o.ne)(u||a.type);return{brand:n,category:s,headline:d,id:l,isLocal:a.isLocalContent||i.isLocalContent,type:p,vertical:c}};function c(e){if(!e)return;const t=new URL(e),a=n.M0.getRequestId();return a&&t.searchParams.set("cvid",a),t.toString()}},37429:function(e,t,a){"use strict";var i,n;a.d(t,{u:function(){return i},w:function(){return n}}),function(e){e[e.ALL=3]="ALL",e[e.VP=1]="VP",e[e.TTVR=2]="TTVR"}(i||(i={})),function(e){e.image="image",e.provider="provider",e.socialBar="socialBar"}(n||(n={}))},76859:function(e,t,a){"use strict";a.d(t,{C7:function(){return o},Nv:function(){return i},OO:function(){return s},X9:function(){return d},sn:function(){return r}});var i,n=a(9791);!function(e){e._1x_1y="_1x_1y",e._1x_2y="_1x_2y",e._1x_3y="_1x_3y",e._1x_4y="_1x_4y",e._1x_5y="_1x_5y",e._2x_1y="_2x_1y",e._2x_2y="_2x_2y",e._2x_3y="_2x_3y",e._2x_4y="_2x_4y",e._2x_6y="_2x_6y",e._3x_1y="_3x_1y",e._3x_2y="_3x_2y",e._4x_1y="_4x_1y",e._4x_2y="_4x_2y",e._5x_1y="_5x_1y",e._5x_2y="_5x_2y"}(i||(i={}));const r=146,o=300,s=12,d=(0,n.Z)((e=>Array(e).fill(r)))},46943:function(e,t,a){"use strict";a.d(t,{Cp:function(){return n},Ol:function(){return o},Vy:function(){return r},Z4:function(){return s},pt:function(){return i}});const i="M4 4.5C4 3.11929 5.11929 2 6.5 2H13.5C14.8807 2 16 3.11929 16 4.5V17.5C16 17.6881 15.8945 17.8602 15.7269 17.9456C15.5593 18.0309 15.358 18.015 15.2059 17.9044L10 14.1183L4.79409 17.9044C4.64199 18.015 4.4407 18.0309 4.27311 17.9456C4.10553 17.8602 4 17.6881 4 17.5V4.5Z",n="M6.75 10C6.75 10.9665 5.9665 11.75 5 11.75C4.0335 11.75 3.25 10.9665 3.25 10C3.25 9.0335 4.0335 8.25 5 8.25C5.9665 8.25 6.75 9.0335 6.75 10ZM11.75 10C11.75 10.9665 10.9665 11.75 10 11.75C9.0335 11.75 8.25 10.9665 8.25 10C8.25 9.0335 9.0335 8.25 10 8.25C10.9665 8.25 11.75 9.0335 11.75 10ZM15 11.75C15.9665 11.75 16.75 10.9665 16.75 10C16.75 9.0335 15.9665 8.25 15 8.25C14.0335 8.25 13.25 9.0335 13.25 10C13.25 10.9665 14.0335 11.75 15 11.75Z",r="M10.4814 17.2959C9.6826 18.133 8.38983 17.6828 8.05052 16.7055C7.77059 15.8992 7.40693 14.9337 7.05259 14.2228C5.99295 12.0969 5.37437 10.8873 3.66827 9.37379C3.4419 9.17297 3.15017 9.01115 2.82758 8.88364C1.69845 8.43732 0.636624 7.26755 0.914347 5.87894L1.26738 4.11377C1.45309 3.18522 2.14748 2.4413 3.06104 2.19215L8.66078 0.664945C11.2063 -0.029292 13.8002 1.60545 14.2722 4.2014L14.9562 7.9631C15.291 9.80462 13.8763 11.4998 12.0046 11.4998H11.121L11.1314 11.552C11.2114 11.9602 11.3079 12.5223 11.3723 13.1349C11.4366 13.7452 11.4706 14.4193 11.4204 15.0474C11.3711 15.6638 11.2365 16.2966 10.9161 16.7771C10.8066 16.9413 10.644 17.1255 10.4814 17.2959Z",o="M10.4814 0.703737C9.6826 -0.133389 8.38983 0.316883 8.05052 1.29418C7.77059 2.10043 7.40693 3.06594 7.05259 3.77684C5.99295 5.90276 5.37437 7.11234 3.66827 8.62586C3.4419 8.82668 3.15017 8.9885 2.82758 9.11601C1.69845 9.56233 0.636624 10.7321 0.914347 12.1207L1.26738 13.8859C1.45309 14.8144 2.14748 15.5583 3.06104 15.8075L8.66078 17.3347C11.2063 18.0289 13.8002 16.3942 14.2722 13.7983L14.9562 10.0365C15.291 8.19503 13.8763 6.49989 12.0046 6.49989H11.121L11.1314 6.44766C11.2114 6.03948 11.3079 5.47735 11.3723 4.86473C11.4366 4.25446 11.4706 3.58034 11.4204 2.9522C11.3711 2.33584 11.2365 1.70305 10.9161 1.22254C10.8066 1.05832 10.644 0.874161 10.4814 0.703737Z",s="M11.14 2.53a1.5 1.5 0 00-2.28 0l-6.62 7.8A1 1 0 003 11.98h3V17a1 1 0 001 1h6a1 1 0 001-1v-5.02h3a1 1 0 00.76-1.65l-6.62-7.8z"},86294:function(e,t,a){"use strict";var i;a.d(t,{U:function(){return i}}),function(e){e.TopicFeedCard="topic-feed-card",e.articleFreCard="article-fre-card",e.autosCarouselCard="autos-carousel-card",e.autosMarketplaceCard="autos-marketplace-card",e.bingVideoCarousel="bing-video-carousel",e.casualGamesCard="casual-games-card",e.coldStartCard="cold-start-card",e.comicsCarouselCard="comics-carousel-card",e.commuteCard="commute-card",e.companyNewsCard="company-news-card",e.contentCard="content-card",e.contentCardPreview1x="content-card-preview-1x",e.contentGroupCard="content-group-card",e.dailyFixGamesCarouselCard="daily-fix-games-carousel-card",e.denseCard="dense-card",e.digestCard="digest-card",e.displayAdCard="display-ad-card",e.edgeShoppingCard="edge-shopping-card",e.editorsPickCarouselCard="editors-pick-carousel-card",e.electionsCard="elections-card",e.esportsCard="esports-card",e.esportsStreamsCard="esports-streams-card",e.flexArticleCard="flex-article-card",e.gamingCompeteCard="gaming-compete-card",e.gamingMatchCard="gaming-match-card",e.gamingMediaCarouselCard="gaming-media-carousel-card",e.gamingPersonalizationCard="gaming-personalization-card",e.gamingRecentlyPlayedCard="gaming-recentlyplayed-card",e.gamingRecommendedCard="gaming-recommended-card",e.gamingRedditCard="gaming-reddit-card",e.gamingRewardsCard="gaming-rewards-card",e.gamingStreamCard="gaming-stream-card",e.gamingTournamentCard="gaming-tournament-card",e.gamingUpcomingCard="gaming-upcoming-card",e.gamingVideoCard="gaming-video-card",e.groceryCouponSdCard="grocery-coupon-sd-card",e.healthCard="health-card",e.healthFitnessCard="health-fitness-card",e.healthTipCard="health-tip-card",e.hideStoryCard="hide-story-card",e.horoscopeAnswerCard="horoscope-card",e.industryNewsCard="industry-news-card",e.infopaneCard="infopane-card",e.infopaneSlideCard="infopane-slide-card",e.linkedInCard="linked-in-card",e.localNewsCarouselCard="local-news-carousel-card",e.lotteryCard="lottery-card",e.marketplaceCard="marketplace-card",e.microsoftFeedCard="microsoft-feed-card",e.moneyAddWatchlistCard="money-add-watchlist-card",e.moneyCard="money-card",e.moneyEdgeCard="money-edge-card",e.moneyInfoCardWC="money-info-card",e.moneyTopicStripeCarouselCard="money-topic-stripe-carousel-card",e.nativeAdCard="native-ad-card",e.newsGroupsCard="news-groups-card",e.newsSegmentCarousel="news-segment-carousel",e.onThisDayCard="on-this-day-card",e.partnerUpsellCard="partner-upsell",e.perspectiveCard="perspective-card",e.placeholderCard="placeholder-card",e.pollsCard="polls-card",e.preconsumptionArticleCard="preconsumption-article-card",e.prismCard="prism-card",e.prismCarouselCard="prism-carousel-card",e.profileCarouselCard="profile-carousel-card",e.publisherCarouselCard="publisher-carousel-card",e.qnaCard="qna-card",e.quizCard="quiz-card",e.recipesCard="recipes-card",e.recommendedCardFeed="recommended-card-feed",e.recommendedInterestsCard="recommended-interests-card",e.recommendedSearchCarousel="recommended-search-carousel",e.recommendedSearchesCard="recommended-searches-card",e.rewardsCard="rewards-card",e.rewardsDailySetCard="rewards-daily-set-card",e.sectionHeaderCard="section-header-card",e.selectCarouselCard="select-carousel-card",e.serendipityCard="serendipity-card",e.shoppingCard="shopping-card",e.shoppingCarouselCard="shopping-carousel-card",e.shoppingCarouselProngWC="shopping-carousel-prong-wc",e.shoppingEventsDealCard="shopping-events-deal-card",e.sportsCard="sports-card",e.sportsOlympicCard="sports-olympic-card",e.sportsWorldCupCard="sports-worldcup-card",e.spotlightCard="spotlight-card",e.superListCard="super-list-card",e.superappUpsellCard="superapp-upsell-card",e.tabbedFeedCard="tabbed-feed-card",e.topPicksCard="top-picks-card",e.topSitesCard="top-sites-card",e.topStoriesCard="top-stories-card",e.trafficCard="traffic-card",e.travelDestinationCard="travel-destination-card",e.travelDestinationCarouselCard="travel-destination-carousel-card",e.trendingNowCard="trending-now-card",e.trendingTopicsCard="trending-topics-card",e.videoCard="video-card",e.weatherCard="weather-card",e.webContentCard="web-content-card",e.widgetPlaceholderCard="widget-placeholder-card"}(i||(i={}))},9753:function(e,t,a){"use strict";a.d(t,{J:function(){return He}});var i=a(86294),n=a(44772);const{TopicFeedCard:r,articleFreCard:o,autosCarouselCard:s,autosMarketplaceCard:d,bingVideoCarousel:l,casualGamesCard:c,comicsCarouselCard:u,commuteCard:p,companyNewsCard:g,contentCard:h,contentGroupCard:m,dailyFixGamesCarouselCard:f,denseCard:v,digestCard:b,editorsPickCarouselCard:C,electionsCard:y,esportsCard:x,esportsStreamsCard:w,gamingCompeteCard:S,gamingMatchCard:T,gamingMediaCarouselCard:k,gamingPersonalizationCard:$,gamingRecentlyPlayedCard:A,gamingRecommendedCard:I,gamingRedditCard:D,gamingRewardsCard:M,gamingStreamCard:O,gamingTournamentCard:L,gamingUpcomingCard:F,gamingVideoCard:P,groceryCouponSdCard:R,healthCard:_,healthFitnessCard:E,healthTipCard:H,horoscopeAnswerCard:N,industryNewsCard:z,infopaneCard:U,localNewsCarouselCard:j,lotteryCard:B,marketplaceCard:W,microsoftFeedCard:G,moneyCard:V,moneyInfoCardWC:q,moneyTopicStripeCarouselCard:Z,nativeAdCard:J,newsGroupsCard:Q,newsSegmentCarousel:X,onThisDayCard:Y,partnerUpsellCard:K,placeholderCard:ee,pollsCard:te,prismCard:ae,prismCarouselCard:ie,profileCarouselCard:ne,publisherCarouselCard:re,qnaCard:oe,quizCard:se,recipesCard:de,recommendedCardFeed:le,recommendedInterestsCard:ce,recommendedSearchCarousel:ue,recommendedSearchesCard:pe,rewardsCard:ge,rewardsDailySetCard:he,sectionHeaderCard:me,selectCarouselCard:fe,serendipityCard:ve,shoppingCard:be,shoppingCarouselCard:Ce,shoppingCarouselProngWC:ye,shoppingEventsDealCard:xe,sportsCard:we,sportsOlympicCard:Se,sportsWorldCupCard:Te,spotlightCard:ke,superListCard:$e,tabbedFeedCard:Ae,topPicksCard:Ie,topStoriesCard:De,trafficCard:Me,travelDestinationCard:Oe,travelDestinationCarouselCard:Le,trendingNowCard:Fe,trendingTopicsCard:Pe,weatherCard:Re,webContentCard:_e,widgetPlaceholderCard:Ee}=i.U,He={[n.PL.SuperListCard]:$e,[n.PL.PrismCarouselCard]:ie,[n.PL.CommuteCard]:p,[n.PL.DigestCard]:b,[n.PL.Article]:h,[n.PL.Slideshow]:h,[n.PL.Video]:h,[n.PL.Infopane]:U,[n.PL.PartnerUpsell]:K,[n.PL.GroupedContent]:m,[n.PL.UserInterestTopic]:m,[n.PL.ColdStartArticleFreCard]:o,[n.PL.HalfPane]:null,[n.PL.HeadToHead]:null,[n.PL.Mosaic]:null,[n.PL.Triptych]:null,[n.PL.DenseList]:null,[n.PL.WebContent]:_e,[n.PL.ExternalLink]:null,[n.PL.TabbedInfopane]:null,[n.PL.TabbedInfopaneTab]:null,[n.PL.PlaceholderCard]:ee,[n.PL.BingHealthCovid19StatsCard]:_,[n.PL.BingHealthFitnessCard]:E,[n.PL.HealthTipCard]:H,[n.PL.AutosCarousel]:s,[n.PL.AutosEntityList]:d,[n.PL.BingVideoCarousel]:l,[n.PL.TabbedFeedCard]:Ae,[n.PL.EsportsMatch]:x,[n.PL.EsportsCasualGames]:c,[n.PL.EsportsLiveStream]:w,[n.PL.GamingClip]:O,[n.PL.GamingClipsCarousel]:k,[n.PL.GamingHighlightClipsCarousel]:k,[n.PL.GamingCompete]:S,[n.PL.GamingHighlight]:O,[n.PL.GamingHighlightsCarousel]:k,[n.PL.GamingLiveStream]:O,[n.PL.GamingLiveStreamCarousel]:k,[n.PL.GamingMatch]:T,[n.PL.GamingPersonalize]:$,[n.PL.GamingRecentlyPlayed]:A,[n.PL.GamingRecommendedGames]:I,[n.PL.GamingReddit]:D,[n.PL.GamingRewards]:M,[n.PL.GamingTournament]:L,[n.PL.GamingUpcomingGames]:F,[n.PL.GamingVideoCarousel]:k,[n.PL.GamingVod]:O,[n.PL.GroceryCouponSdCard]:R,[n.PL.StockQuote]:V,[n.PL.MoneyInfo]:q,[n.PL.MoneyTopicStripe]:Z,[n.PL.MoneyPreWL]:q,[n.PL.MoneyCrypto]:q,[n.PL.MoneyMarketBrief]:q,[n.PL.MoneyMoreForYouCard]:q,[n.PL.SportsMatch]:we,[n.PL.SportsOlympics]:Se,[n.PL.EventSDCardWorldCup]:Te,[n.PL.EventSDCardWorldCup2]:Te,[n.PL.MyBriefRiverCard]:Ie,[n.PL.TrafficDelays]:Me,[n.PL.WeatherSummary]:Re,[n.PL.ShoppingCard]:Ce,[n.PL.EdgeShoppingCard]:Ce,[n.PL.ShoppingCarousel]:Ce,[n.PL.ShoppingRiver]:Ce,[n.PL.EventSDCardShopping]:xe,[n.PL.ComicsCarousel]:u,[n.PL.SelectCarousel]:fe,[n.PL.EditorsPickCarousel]:C,[n.PL.DailyFixGamesCarousel]:f,[n.PL.TopicFeed]:r,[n.PL.NewsSegmentCarousel]:X,[n.PL.ShoppingMerchantCategoryDeals]:be,[n.PL.ShoppingProngCardResponse]:ye,[n.PL.SectionHeader]:me,[n.PL.TopStories]:De,[n.PL.WorkHeadlines]:De,[n.PL.Trending]:ve,[n.PL.Horoscope]:N,[n.PL.Elections]:y,[n.PL.RecommendedInterests]:ce,[n.PL.RecommendedSearchCarousel]:ue,[n.PL.RecommendedSearchesCard]:pe,[n.PL.OnThisDay]:Y,[n.PL.Lottery]:B,[n.PL.Dense]:v,[n.PL.TrendingInTenMinutes]:Fe,[n.PL.TopicFeedTrendingNow]:Fe,[n.PL.TrendingTopics]:Pe,[n.PL.Qna]:oe,[n.PL.quizcard]:se,[n.PL.Recipes]:de,[n.PL.Inspiration]:ae,[n.PL.Rewards]:ge,[n.PL.SubscriptionCarousel]:re,[n.PL.TravelDestinationCard]:Oe,[n.PL.TravelDestinationCarouselCard]:Le,[n.PL.LocalNews]:$e,[n.PL.LocalNewsFeed]:j,[n.PL.BeaconProviderUpsell]:ne,[n.PL.Marketplace]:W,[n.PL.MarketplaceEvent]:W,[n.PL.PollsCard]:te,[n.PL.NewsGroups]:Q,[n.PL.NewsAnswerModule]:Q,[n.PL.TopicFeedWeekends]:b,[n.PL.TopicFeedMomentInTime1]:ke,[n.PL.TopicFeedShopping]:ke,[n.PL.TopicFeedWeather]:ke,[n.PL.NativeAd]:J,[n.PL.CmsAd]:J,[n.PL.AmplifyAd]:J,[n.PL.EventSDCardAmplifyAds]:J,[n.PL.IndustryNewsCard]:z,[n.PL.MicrosoftFeedCard]:G,[n.PL.RecommendedCardFeed]:le,[n.PL.CompanyNewsCard]:g,[n.PL.Calendar]:Ee,[n.PL.Entertainment]:Ee,[n.PL.Family]:Ee,[n.PL.M365]:Ee,[n.PL.Photos]:Ee,[n.PL.ThirdPartyWidget]:Ee,[n.PL.Tips]:Ee,[n.PL.ToDo]:Ee,[n.PL.XboxGamePass]:Ee,[n.PL.RewardsDailySet]:he}},27326:function(e,t,a){"use strict";a.d(t,{AO:function(){return E},Ae:function(){return O},CI:function(){return D},Jl:function(){return j},LP:function(){return Z},PZ:function(){return H},Tb:function(){return z},UN:function(){return L},Xe:function(){return R},Xq:function(){return J},_g:function(){return M},d0:function(){return V},e_:function(){return U},i2:function(){return P},nA:function(){return q},ny:function(){return F},sA:function(){return B},so:function(){return N},vp:function(){return W}});var i=a(74045),n=a(64893),r=a(59115),o=a(11684),s=a(75351),d=a(76859),l=a(84551),c=a(25295),u=a(51873),p=a(73543),g=a(5020),h=a(53909),m=a(11363),f=a(44772),v=a(65135),b=a(38156),C=a(91483),y=a(50640),x=a(4253),w=a(12710),S=a(16517),T=a(52965),k=a(99478),$=a(58958),A=a(80368),I=a(4680);function D(e){var t,a;const{additionalHeaders:n,cardActionBitMask:r,cardActionClickHandler:o,cardMetadata:u,cardSlot:h,colWidthPx:m,configOptions:C={},enableRichSocialReaction:y,getReplacementCardsInlineCallback:x,gutterPx:k,initCardAction:$,isAnaheimDesign:A,isBlurred:D,isHubDesign:L,isNarrowTitleFooterGap:_,isProviderInFooter:N,isPublisherPage:Q,hideCardCallback:ee,layoutGap:ae,layoutTemplateName:ne,localizedStrings:oe,mouseenterHandler:se,mouseleaveHandler:de,openLinksInNewTab:le,parentTelemetryObject:ce,refreshFeedCallback:ue,rowCount:pe,rowHeightPx:ge,sdCardActionClickHandler:he,stockImageData:me,userSubscriptionData:fe,visualReadinessCallback:ve,displaySettings:be}=e,Ce=R(u),ye={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{cardContent:xe,metadata:we,type:Se}=Ce,{grid_area:Te,layouts:ke,cardDomOrder:$e,telemetryRowCol:Ae}=h,{abstract:Ie,colorSamples:De,id:Me,destinationUrl:Oe,locale:Le,title:Fe,publishedDateTime:Pe,provider:Re,badges:_e,defaultAnchorTarget:Ee,videoFiles:He}=xe,Ne=O(Ce),ze=H(u,r),Ue=function(e,t){if(!e)return;if(!t)return e.cardActionsTooltips;const{cardActionsTooltips:a,showMoreV2:i,showFewerV2:n,undoShowMoreV2:r}=e,o=a&&(t.enableSaveButton||!i);return Object.assign(Object.assign({},a),{showMore:o?a.showMore:i,showFewer:o?a.showFewer:n,undoShowMore:o?a.undoShowMore:r})}(oe,C),je=Se===f.PL.WebContent,{alignFooters:Be,availableActions:We,childExperienceReferences:Ge={},childExperienceReferencesWC:Ve={},disableCardTitleTooltip:qe,disableHideOnHover:Ze,disableSeeMoreButton:Je,enableAnimatedShowMoreBtn:Qe,enableArticleCardHoverContrast:Xe,enableArticleTimestamps:Ye,enabledBadgeTypes:Ke,enableEverGreenWebContent:et=!1,enableFeedSuperCards:tt,enableFilledIconOnHover:at,enableFlexCard:it,enableHideStoryFeedback:nt,enableImageHoverZoom:rt,enableInfopaneLike2cCard:ot,enableLinearFeed2cVerticalGradientCard:st,enableNeutralFilledShowMoreIcon:dt,enableNewTimestampFormatForJAJP:lt,enableSaveButton:ct,enableSuperVideoCard:ut,enableTitleClickableOnly:pt,enableTitleForTruncate:gt,enableVerticalGradientCard:ht,enableVideo2uVerticalGradient:mt=!1,enableWCCardAction:ft,enableWCSaveButton:vt,enableWebContentSocialReactions:bt,feedFontSize:Ct,fixedCardHeight:yt,flexCardExpandedByDefault:xt,fontFamilyOnCardContent:wt,gradientType:St,headingLineHeight:Tt,hideNewsAbstract:kt,isDynamicFeed:$t,isImage32:At,isImage43:It,isMsnHpExternalLinkCard:Dt,isProviderIconClickable:Mt,largeFeedFontSize:Ot,miniMediaIndicatorsIcons:Lt,noBackPlateOnRest:Ft,noImageFeedFontSize:Pt,openArticleInNewTab:Rt,openPersonalizeWithoutRouter:_t,preconsumptionCardConfig:Et,previewModeEnableLayouts:Ht,shouldOpenArticlesInOverlay:Nt,showCardInfoWhenHover:zt=!1,showColorfulHalfUContentCard:Ut,showRelatedStoriesOnHover:jt=!1,telemetryConstants:Bt={},twoColumnFeedFontSize:Wt,twoColumnHeadingLineHeight:Gt,useArticleCardTemplate:Vt,useGamingMediaTemplateInRiver:qt,useHighQualityImage:Zt,useHomepageTelemetry:Jt=!1,useInfopaneSlideTemplate:Qt=!1,useLargeFontSize:Xt,useMobile:Yt,usePerspectiveCardTemplate:Kt=!1,usePreviewCardTemplate:ea=!1,useSmallFontSize:ta,useTitleFontSize:aa,useVideoPreviewTemplate:ia=!1,zoomRatio:na,isMsnMobile:ra,disableColorSampling:oa,enableAbstractFor2x1yCardWithImage:sa,enableFeedSuperCardsSolidColor:da,disableSaveButton:la,useArrowIcons:ca,useLightShadow:ua,doubleWideArticleCardTitleSize:pa}=C,ga=(0,s.nj)(ce,xe,we||Ce,void 0,je,Object.assign(Object.assign({},s.MW),Bt),it),ha=Ve.socialBarWC||Ge.socialBarWC,ma=Ve.overlayWC,fa=Ve.videoCardWC||Ge.videoCard,va=Ve.gamingStreamCard,ba=Ve.preconsumptionArticleCardWC,Ca=Ve.articleTopComment,ya=Ve.articleRelatedStories;z(ze,ga);const xa=0!=(ze&i.O7.hide)||nt&&(0!=(ze&i.O7.showFewer)||0!=(ze&i.O7.hidden));let wa;Vt&&(wa=W(null==Ne?void 0:Ne.colorSamples,De,null==Ne?void 0:Ne.url));const Sa=Se===f.PL.Video,Ta=Sa&&ia,ka=we?!we.reactionSummary:u&&!u.reactionSummary,$a=!Ht||Ht.includes(d.Nv._1x_2y),Aa=!Ht||Ht.includes(d.Nv._2x_2y),Ia=je&&u&&u.subType===f.PL.GamingVideo,Da=J(oe,_e,Ke);let Ma=Oe;"winWidgets"!==S.jG.AppType&&"windowsNewsPlus"!==S.jG.AppType||(Ma=(0,s.Z1)(Ma));let Oa,La,Fa=!1,Pa=!1,Ra="";we&&we.relatedCards&&we.relatedCards.length>=3&&(Pa=!0,Oa=function(e,t,a,i,n,r,o,d,l={},c,u,p){if(!e)return[];return e.map((e=>{const{locale:g,provider:h,publishedDateTime:m,title:v,url:b,id:C,abstract:y,type:x,category:w,relatedContentSource:S}=e;if(!v||!h)return{id:C,relatedContentSource:S,grid_area:null,card_template_type:null};let T;if(r){const t=(0,s.nj)(r,e,null);t&&(T={contentCard:t.contentCard,contentCardTelemetryObject:t.contentCard,button:t.seeMore&&t.seeMore.getMetadataTag(),destination:t.destination,buttonTelemetryObject:t.seeMore,seeMore:t.seeMore})}const k=H(e,a),{cardActionsTooltips:$,crawledContentLabel:A}=t,D=x===f.PL.WebContent,M=b||(0,I.ph)(e,g,w.product,w.label),{enableArticleTimestamps:O,enableNewTimestampFormatForJAJP:L,openPersonalizeWithoutRouter:F,openArticleInNewTab:R,isProviderIconClickable:_,useArrowIcons:N,fontFamilyOnCardContent:z,enableFilledIconOnHover:B,disableCardTitleTooltip:W,enableTitleForTruncate:G,disableColorSampling:V,enableAbstractFor2x1yCardWithImage:Z,enableFeedSuperCardsSolidColor:J}=l;return{id:C,abstract:y,grid_area:null,card_template_type:null,cardActionStatus:!D&&k,cardActionClickHandler:i,cardActionsTooltips:$,crawledContentLabel:A,isWebContent:D,destinationUrl:U(M),enableRichSocialReaction:!D&&o,isProviderIconClickable:_,useArrowIcons:N,locale:g,title:v,providerData:P(h,D,l.publisherSVGLogosHeight),publishedDateTime:O&&`${q(L,new Date(m),g,t)}`,toggleCardActionMenu:(e,t)=>E(e,t,i,n,!0,!0,c,F),telemetryContext:T,openLinksInNewTab:d,openArticleInNewTab:R,ariaLabel:j(v,h,t),actionsArrayOverride:u,socialBarWCConfigInfo:p,metadata:e,fontFamilyOnCardContent:z,enableFilledIconOnHover:B,relatedContentSource:S,disableCardTitleTooltip:W,enableTitleForTruncate:G,disableColorSampling:V,enableAbstractFor2x1yCardWithImage:Z,enableFeedSuperCardsSolidColor:J}}))}(we.relatedCards,oe,r,o,$,ga&&ga.relatedStories,y,le,C,ue,void 0,ha),Fa=Kt,Ra=Oa[0].relatedContentSource),ie()&&!te().includes("pspux:")&&v.M0.addOrUpdateTmplProperty("pspux","0"),we&&we.topComments&&we.topComments.length>0&&(La=null===(t=we.topComments[0])||void 0===t?void 0:t.id);let _a=Ye&&`${q(lt,new Date(Pe),Le,oe)}`;_a=je&&et&&function(e){try{const t=new Date(e),a=(new Date).getTime()-t.getTime();return Math.ceil(a/864e5)>3}catch(e){return!0}}(Pe)?null:_a;const Ea=document.getElementsByTagName("html")[0].dir,Ha=xa?(0,p.to)(e,ze,Me,ce):{id:Me,grid_area:Te,telemetryContext:ga,defaultAnchorTarget:Ee,card_template_type:re(C,je,Ia),abstract:Ie,cardActionStatus:(!je||ft||vt)&&ze,cardActionClickHandler:o,cardActionsTooltips:Ue,colorSamples:G(De,null==Ne?void 0:Ne.url),externalVideoFiles:Sa?He:void 0,destinationUrl:Ma,dir:Ea,title:Fe,contentType:Se,hideCardCallback:ee,sdCardActionClickHandler:he,imagePriority:!1,isWebContent:je,contentTypeLabel:null===(a=B(oe,Se))||void 0===a?void 0:a.toLocaleUpperCase(),contentIndicator:Ne||Sa?V(Se,A&&Lt):void 0,metadata:we||u,openLinksInNewTab:le,openArticleInNewTab:Rt,crawledContentLabel:null==oe?void 0:oe.crawledContentLabel,setDisplacementHandler:X,removeDisplacementHandler:K,providerData:P(Re,je,C.publisherSVGLogosHeight),handleContentCardClickOverride:e=>M(Nt,Ma,e),toggleCardActionMenu:(e,t)=>E(e,t,o,$,null,!nt,ue,_t,ka),disableSeeMoreButton:Je,enableAnimatedShowMoreBtn:Qe,enableRichSocialReaction:(!je||bt||ft||vt)&&y,isProviderIconClickable:Mt,optedOutOfReactions:ka,isAnaheimDesign:!!A,isHubDesign:!!L,userSubscriptionData:fe,isPublisherPage:Q,usePreviewCardTemplate:ea,useVideoPreviewTemplate:ia,enableVideo2uVerticalGradient:mt,showCardInfoWhenHover:zt,useInfopaneSlideTemplate:Qt,useHomepageTelemetry:Jt,locale:Le,articleCardBackgroundColor:wa,shouldOpenInOverlay:Nt,disableHideOnHover:Ze,publishedDateTime:_a,useSmallFontSize:ta,useLargeFontSize:Xt,feedFontSize:Ct,noImageFeedFontSize:Pt,largeFeedFontSize:Ot,twoColumnFeedFontSize:Wt,twoColumnHeadingLineHeight:Gt,enableVerticalGradientCard:ht,gradientType:St,gradientDeg:A||It?Z():void 0,ariaLabel:j(Fe,Re,oe,Se),isProviderInFooter:N,isNarrowTitleFooterGap:_,mouseenterHandler:se,mouseleaveHandler:de,layoutGap:ae,socialBarWCConfigInfo:ha,overlayConfigInfo:ma,preconsumptionArticleCardConfigInfo:ba,fixedCardHeight:yt,preconsumptionCardConfig:Et,enableImageHoverZoom:rt,enableTitleClickableOnly:pt,noBackPlateOnRest:Ft,alignFooters:Be,showColorfulHalfUContentCard:Ut,isImage32:At,isImage43:It,headingLineHeight:Tt,useTitleFontSize:aa,fontFamilyOnCardContent:wt,zoomRatio:na,enableFilledIconOnHover:at,enableNeutralFilledShowMoreIcon:dt,enableInfopaneLike2cCard:ot,enableLinearFeed2cVerticalGradientCard:st,enableArticleCardHoverContrast:Xe,isDynamicFeed:$t,hideNewsAbstract:kt,flexCardExpandedByDefault:xt,disableCardTitleTooltip:qe,enableTitleForTruncate:gt,videoCardConfigInfo:fa,gamingStreamCardConfigInfo:va,enableSaveButton:!1!==ct||je&&vt,showMoreAnimationTitle:oe&&oe.showMoreAnimationTitle,isBlurred:D,useArrowIcons:ca,relatedStoriesHeadingLabel:oe&&("cf"===Ra?oe.relatedStoriesCfHeading:oe.relatedStoriesHeading),showRelatedStoriesOnHover:jt,enabledBadgeTypes:Ke,subCardDataMappers:Fa||it?{mapAriaLabel:(e,t)=>j(e,t,oe),mapCardActionStatus:e=>H(e,r),mapPublishedDateTime:e=>Ye&&`${q(lt,e,Le,oe)}`}:void 0,badge:Da,articleTopCommentConfigInfo:Ca,articleTopCommentId:La,articleRelatedStoriesConfigInfo:ya,relatedCardData:Oa&&Oa,enableWCSaveButton:!je||vt,enableWCCardAction:ra?ft:!je||ft,additionalHeaders:n,actionsArrayOverride:je&&We||void 0,setDisplacementAndTitleOnHover:Y,visualReadinessCallback:ve,displaySettings:be,actionMenuLocalizedStrings:oe&&oe.actionMenuLocalizedStrings,useMobile:Yt,refreshFeedCallback:ue,disableColorSampling:oa,enableAbstractFor2x1yCardWithImage:sa,enableFeedSuperCardsSolidColor:da,disableSaveButton:!je&&la,useLightShadow:ua,doubleWideArticleCardTitleSize:pa,getReplacementCardsInlineCallback:x};ye.cards.push(Ha);let Na=!1;const za=u.traceIdIndex;return Object.keys(ke).forEach((e=>{const t=ke[e],a=$e&&$e[e],i=(0,l.s)(t,ne,Te,Ae&&Ae[e],pe&&pe[e],ge&&ge[e],m,k,a,void 0,Da&&Da.type,za);if(xa){const n=(0,g.df)(Ha&&Ha.telemetryContext,i);return void ye[e].push({cardSize:t,id:Me,grid_area:Te,card_dom_order:a,telemetryContext:n})}const n=Object.assign({},ga);let r;n&&n.contentCard&&n.destination&&(n.destination=n.contentCard.addOrUpdateChild(Object.assign(Object.assign({},n.destination.contract),{type:b.c9.Headline,ext:i}))),Oa&&n&&n.relatedStories&&(r=Oa.map((e=>Object.assign(Object.assign({},e),{telemetryContext:Object.assign(Object.assign({},n),{relatedStories:Object.assign(Object.assign({},n.relatedStories),{ext:i})})})))),Jt&&(n.contentCard=null,n.destination.contract.name="HeadlineItemViewModel");const o={cardSize:t,id:Me,grid_area:Te,card_dom_order:a,isProviderInFooter:N,isNarrowTitleFooterGap:_,telemetryContext:n};if(t===d.Nv._1x_1y&&(Qt?(Ne&&(o.imageData=F(Ce,c.B._300x225,ve,A,Zt)),o.abstract=void 0,o.card_template_type="infopane-slide-card"):ea?(Ne&&(o.imageData=F(Ce,c.B._104x84,ve,A,Zt)),o.abstract=void 0,o.card_template_type="content-card-preview-1x"):(Ne&&(o.imageData=F(Ce,c.B._82x82,ve,A,Zt,D)),Sa&&(o.contentIndicator=w.Z),o.abstract=je&&!C.hideHalfUAbstract?Ie:void 0,o.ariaLabel=je&&!C.hideHalfUAbstract&&j(Fe,Re,oe))),t===d.Nv._1x_2y)if(Qt)Ne&&(o.imageData=F(Ce,c.B._300x225,ve,A,Zt)),o.abstract=void 0,o.card_template_type="infopane-slide-card";else if(Ne)if(Ta&&$a){o.abstract=void 0,o.articleCardBackgroundColor=W(null==Ne?void 0:Ne.colorSamples,De,!1),o.card_template_type="video-card";let e=c.B._300x225;tt&&be?e={width:be.cardWidth,height:225}:tt&&ut&&!be&&(e=c.B._300x156),o.imageData=F(Ce,e,ve,A)}else if(Vt){let e=c.B._300x225;At?e=c.B._300x200:tt&&!be?e=c.B._300x156:tt&&be&&(e={width:be.cardWidth,height:Math.round(be.cardWidth/1.33)}),Ne.width>=e.width&&Ne.height>=e.height?(o.abstract=void 0,o.imageData=F(Ce,e,ve,A,Zt,D)):o.articleCardBackgroundColor=W(null==Ne?void 0:Ne.colorSamples,De,!1),jt&&(Pa&&ie()&&te().includes("pspux:0")&&v.M0.addOrUpdateTmplProperty("pspux","1"),Fa&&(o.relatedCardData=r,o.card_template_type="perspective-card"))}else if(ea){const e=c.B._306x197;o.imageData=F(Ce,e,ve,A),o.abstract=void 0,o.card_template_type="content-card",o.imagePriority=!0}else{o.card_template_type="content-card";let e=c.B._300x156;At&&(e=c.B._300x200),Ne.width>=e.width&&Ne.height>=e.height?(o.abstract=void 0,o.imagePriority=!0,o.imageData=F(Ce,e,ve,A,Zt)):o.imageData=null}if(t===d.Nv._1x_3y&&ea){if(Ne){let e=c.B._300x174;At&&(e=c.B._306x197),o.imageData=F(Ce,e,ve,A,Zt),Dt?o.isMsnHpExternalLinkCard=Dt:o.abstract=void 0,o.imagePriority=!0}else o.isProviderInFooter=!1;o.card_template_type="content-card"}if(t===d.Nv._2x_2y){let e=c.B._82x82,t=re(C,je,Ia),a=Ce;Ne&&(Ta&&Aa?(e=c.B._612x304,Ht&&Ht.includes(d.Nv._2x_2y)&&(e=c.B._468x304),o.articleCardBackgroundColor=W(null==Ne?void 0:Ne.colorSamples,De,!1),t="video-card",o.abstract=void 0):Vt?st?(e=c.B._612x304,o.abstract=void 0):A&&(ht||It)?ht?Ne.width>=c.B._612x304.width&&Ne.height>=c.B._612x304.height&&(e=c.B._612x304,o.abstract=void 0):It&&(e=c.B._406x304):It?e=c.B._406x304:Ne.width>=c.B._468x304.width&&Ne.height>=c.B._468x304.height&&(e=c.B._468x304):Ne.width>=c.B._612x304.width&&Ne.height>=c.B._612x304.height&&(e=c.B._612x304,t="infopane-slide-card",o.abstract=void 0));const i=!(Ne&&Ne.url)||e===c.B._82x82;i&&!Vt&&me&&(e=c.B._612x304,t="infopane-slide-card",a=(0,T.Z)(Ce),a.cardContent.images=[me],o.abstract=void 0),i&&Vt&&(a=(0,T.Z)(Ce),a.cardContent.images=void 0,o.articleCardBackgroundColor=W(null==Ne?void 0:Ne.colorSamples,De,!1)),Pa&&ie()&&te().includes("pspux:0")&&v.M0.addOrUpdateTmplProperty("pspux","1"),Fa&&(o.relatedCardData=r,t="perspective-card"),(La||(null==Oa?void 0:Oa.length)>0)&&(Na||(v.M0.addOrUpdateTmplProperty("LinearFeedFlexCardViewed","1"),Na=!0),it&&(t="flex-article-card")),o.card_template_type=t,o.imageData=F(a,e,ve,A,Zt,D),o.imagePriority=!1}if(t===d.Nv._2x_1y){if(Ne){const e=c.B._216x114;o.imageData=F(Ce,e,ve,A,Zt),sa||(o.abstract=void 0)}oa?(o.articleCardBackgroundColor=void 0,o.colorSamples=void 0):o.articleCardBackgroundColor=W(null==Ne?void 0:Ne.colorSamples,De,null==Ne?void 0:Ne.url)}Ia&&qt&&(o.card_template_type="gaming-stream-card"),ye[e].push(o)})),ye}function M(e,t,a){const i=e&&(0,A.jI)(t);if(window.dispatchEvent(new CustomEvent("article-link-invoked",{bubbles:!1,cancelable:!0,composed:!i,detail:{destinationUrl:t,shouldOpenOverlay:i}})),!i)return!0;a.preventDefault()}function O(e){return e&&e.cardContent&&e.cardContent.images&&e.cardContent.images.length&&e.cardContent.images[0].url?e.cardContent.images[0]:null}function L(e){return e&&e.images&&e.images.length&&e.images[0].url?e.images[0]:null}function F(e,t,a,i,n,r){const o=O(e);if(!o)return null;const{attribution:s,title:d=e.cardContent.title,url:l,focalRegion:c}=o||{};if(!l)return null;const u=[];let p;d&&u.push(d),s&&u.push(s),u.length&&(p=u.join(" - "));const g=(0,h.mL)(l,{width:t.width,height:t.height,focalRegion:c,enableDpiScaling:i,quality:i&&ne()?60:90,devicePixelRatio});let m;return r&&(m=(0,h.mL)(l,{width:t.width,height:t.height,focalRegion:c,enableDpiScaling:!1,quality:1})),{imageWidth:t.width.toString(),imageHeight:t.height.toString(),source:g,blurredSource:m,altText:p,visualReadinessCallback:a}}function P(e,t,a){if(!e)return{logoImage:"",name:void 0};let i="";const n={width:16,height:16,enableDpiScaling:!1,quality:100,format:h.D3.PNG};!t&&e.logo&&e.logo.id?i=(0,h.zz)(e.logo.id,n):(e.logoUrl||e.logo&&e.logo.url)&&(i=(0,h.mL)(e.logoUrl||e.logo.url,n));const r={logoImage:i,id:e.id,name:e.name,profileId:e.profileId};return a&&(r.immersiveCardSvgLogo=Q(a,e.darkThemeSVGLogo),r.svgLogo=(0,$.Y)()?r.immersiveCardSvgLogo:Q(a,e.lightThemeSVGLogo)),r}function R(e){if(e&&e.cardContent){const t=e.cardContent.destinationUrl;return t&&(e.cardContent.destinationUrl=U(t)),e}const t=e;let a;a=t.type===f.PL.Slideshow?"SlideshowPreview":t.type===f.PL.Video?"VideoPreview":t.type===f.PL.WebContent?"WebContentPreview":"ArticlePreview",t.cardContent={id:t.id,destinationUrl:U(t.url),type:a,title:t.title,abstract:t.abstract,provider:t.provider,locale:t.locale,images:t.images,publishedDateTime:t.publishedDateTime,colorSamples:t.colorSamples,badges:t.badges,topics:t.topics,videoFiles:t.externalVideoFiles||{},isLocalContent:t.isLocalContent};const i=t.type;return t.metadata||i===f.PL.AmplifyAd||i===f.PL.NativeAd||i===f.PL.CmsAd||(t.metadata=function(e){var t,a,i,n,r,o,s,d;if(e&&e.metadata)return e.metadata;const l=e,c=null===(a=null===(t=l.cardContent)||void 0===t?void 0:t.destinationUrl)||void 0===a?void 0:a.split("/");return{abstract:l.abstract,abstractLength:null===(i=l.abstract)||void 0===i?void 0:i.length,titleLength:null===(n=l.title)||void 0===n?void 0:n.length,category:l.category||(null==c?void 0:c.length)>=5&&c[4],subCategory:(null==c?void 0:c.length)>=6&&c[5],primaryImage:{height:l.images&&(null===(r=l.images[0])||void 0===r?void 0:r.height),width:l.images&&(null===(o=l.images[0])||void 0===o?void 0:o.width)},locale:l.locale,feed:{id:null===(s=l.feed)||void 0===s?void 0:s.id},kicker:[l.feed],actions:null===(d=l.actions)||void 0===d?void 0:d.map((e=>_[e]||e)),reactionSummary:l.reactionSummary,commentSummary:l.commentSummary,topComments:l.topComments,relatedCards:l.relatedCards,topics:l.topics}}(t)),t}const _={liked:"like",unliked:"unlike",saved:"save"};function E(e,t,a,i,n=!1,r=!1,o,s,d){let l=t,c=e;t.detail&&t.detail.event&&t.detail.data&&(l=t.detail.event,c=this.getListCardMetadata(t.detail.data),n=!0);const{cardSize:u,id:p,title:g,destinationUrl:h,imageData:m,providerData:f,cardActionStatus:v,telemetryContext:{seeMore:b},actionsArrayOverride:C,metadata:y}=c;i({cardSize:u,enabled:!0,buttonElement:l.currentTarget,article:{id:p,headlineTitle:g,href:h,image:{alt:m&&m.altText,src:m&&m.source},provider:{id:f.id,name:f.name,image:{alt:f.name,src:f.logoImage}},abstract:y.abstract},parentTelemetryObject:b,onStatusChange:a,cardStatus:v,updateFeedOnHide:n,showToast:r,refreshFeedCallback:o,openPersonalizeWithoutRouter:s,actionsArrayOverride:C,isReactionsOptedOut:d})}function H(e,t){if(e&&e.placement&&(e.placement.region&&["rightRail","rightrail"].includes(e.placement.region)||e.placement.isAdFeedbackEnabled)&&(t|=i.O7.enabled),!(t&&t&i.O7.enabled))return i.O7.none;const{actions:a=[]}=e.metadata||e;let n=i.O7.enabled;return a.forEach((e=>{"save"===e&&(e="saved"),"liked"!==e&&"like"!==e||(e="showMore");const a=i.O7[e];a&t&&(n|=a)})),n}function N(e){const t=[];return Object.keys(i.O7).forEach((a=>{i.O7[a]&e&&t.push(a)})),t}function z(e,t){t&&t.contentCard&&0!=(e&i.O7.enabled)&&0!=(e&i.O7.saved)&&t.contentCard.addOrUpdateChild({name:s.MW.undoSaveName,type:b.c9.ActionButton,behavior:b.wu.UndoSave,content:t.save.contract.content},t.save)}function U(e){if(!e)return;const t=new URLSearchParams(window.location.search).getAll("item");if(!t||!t.length)return e;const a=new URL(e);return t.forEach((e=>{const t=a.search?"&":"?";-1===a.search.indexOf(e)&&(a.search+=`${t}item=${e}`)})),a.toString()}function j(e,t,a,i){if(!e||!(null==t?void 0:t.name)||!(null==a?void 0:a.contentProviderAttributionLabel)||i&&!(null==a?void 0:a.contentTypeFormattingAriaLabel))return null;const n=B(a,i);return n?(0,k.WU)(null==a?void 0:a.contentTypeFormattingAriaLabel,n,e,t.name):(0,k.WU)(a.contentProviderAttributionLabel,e,t.name)}function B(e,t){return t===f.PL.Slideshow?null==e?void 0:e.galleryAriaLabel:t===f.PL.Video?null==e?void 0:e.videoAriaLabel:t===f.PL.WebContent?null==e?void 0:e.crawledContentLabel:void 0}function W(e,t,a){var i,n,r,o;return(null===(i=null==e?void 0:e.find((e=>e.isDarkMode)))||void 0===i?void 0:i.hexColor)&&(null===(n=null==e?void 0:e.find((e=>!e.isDarkMode)))||void 0===n?void 0:n.hexColor)?e:(null===(r=null==t?void 0:t.find((e=>e.isDarkMode)))||void 0===r?void 0:r.hexColor)&&(null===(o=null==t?void 0:t.find((e=>!e.isDarkMode)))||void 0===o?void 0:o.hexColor)?t:(0,u.pj)(a)}function G(e,t){var a,i;return(null===(a=null==e?void 0:e.find((e=>e.isDarkMode)))||void 0===a?void 0:a.hexColor)&&(null===(i=null==e?void 0:e.find((e=>!e.isDarkMode)))||void 0===i?void 0:i.hexColor)?e:(0,u.pj)(t)}function V(e,t){return e===f.PL.Slideshow?t?y.Z:C.Z:e===f.PL.Video?t?w.Z:x.Z:void 0}function q(e,t,a,i){return e?(0,m.Xk)(t):(0,m.fh)(t,a,i,null,null,!0)}function Z(){return(0,n.cN)(S.jG.CurrentMarket)?90:270}function J(e,t,a){if(!e||!t||!a)return;const i=(0,r.wc)(t,a);if(i)switch(i.type){case o.gZ.LOCAL:i.value?i.localizedLabel=i.value:i.localizedLabel=e[i.type+"BadgeLabel"];break;case o.gZ.VIEWS:case o.gZ.TRENDING:case o.gZ.HOT:case o.gZ.OPINION:case o.gZ.EXPLICITLIKE:case o.gZ.FOLLOWEDTREATMENT:case o.gZ.FOLLOWEDTREATMENTTOPIC:case o.gZ.FOLLOWEDTREATMENTPUBLISHER:default:i.localizedLabel=e[i.type+"BadgeLabel"]}return i}function Q(e,t){if(!t)return t;const a=t.width&&t.height?e*t.width/t.height:void 0;return{url:t.url,height:e,width:a}}function X(e,t){if(ee(e.event.target,"MSFT-ATTRIBUTION"))for(const a of ee(e.event.target,"MSFT-ATTRIBUTION").children)if("attribution_container"===a.id){const e=null==a?void 0:a.clientWidth,i=null==a?void 0:a.children[0].clientWidth,n=null==a?void 0:a.children[0],r=e-i<0?e-i:0;"ltr"===t?n.style.left=r+"px":n.style.right=r+"px"}}function Y(e,t,a,i,n){if(X(e,t),i&&n&&e.event&&e.event.target){const t=e.event.target,i=t.shadowRoot.querySelector(".heading");i&&i.scrollHeight>i.offsetHeight+2?t.setAttribute("title",a):t.setAttribute("title","")}}function K(e,t){if(ee(e.event.target,"MSFT-ATTRIBUTION"))for(const a of ee(e.event.target,"MSFT-ATTRIBUTION").children)if("attribution_container"===a.id){const e=a.children[0];"ltr"===t?e.style.left="0px":e.style.right="0px"}}function ee(e,t){if(!e.children||0===e.children.length)return null;let a=null;const i=function(e,t){if(e.children&&0!==e.children.length)for(const n of e.children)n.nodeName===t&&(a=n),i(n,t)};return i(e,t),a}function te(){const e=v.M0.getPageMetadata();return e&&e.combinedContract&&e.combinedContract.flight&&e.combinedContract.flight.tmpl||""}function ae(e){const t=S.jG.CurrentRequestTargetScope&&S.jG.CurrentRequestTargetScope.pageExperiments;return t&&t.includes(e)}function ie(){return ae("prg-persp2u")||ae("prg-persp2u-c")||ae("prg-persph")||ae("prg-persph-c")}function ne(){const e=window&&window.navigator;if(!e)return!1;const t=e.deviceMemory,a=e.hardwareConcurrency;return t<=2&&a<=2}function re(e,t,a){return e.useGamingMediaTemplateInRiver&&a?"gaming-stream-card":e.enableFeedSuperCards&&t?"web-content-card":e.useArticleCardTemplate?"article-card":"content-card"}},46227:function(e,t,a){"use strict";a.d(t,{D:function(){return u}});var i=a(33940),n=a(26415),r=a(65135),o=a(4680),s=a(78468),d=a(75351),l=a(27326);function c(e,t,a,c){return(0,i.mG)(this,void 0,void 0,(function*(){let i;try{const n=yield Promise.all(a.map((e=>e.json())));i=function(e,t,a){return t?t.map((t=>{var i;const{locale:n,provider:r,publishedDateTime:c,title:u,id:p,abstract:g,type:h,category:m}=t,{actionsArrayOverride:f,cardActionClickHandler:v,cardActionsTooltips:b,crawledContentLabel:C,enableFilledIconOnHover:y,enableRichSocialReaction:x,fontFamilyOnCardContent:w,metadata:S,openArticleInNewTab:T,openLinksInNewTab:k,socialBarWCConfigInfo:$,telemetryContext:A,toggleCardActionMenu:I}=e,{mapAriaLabel:D,mapCardActionStatus:M,mapPublishedDateTime:O}=e.subCardDataMappers||{};let L;if(A&&A.relatedStories){const e=(0,d.nj)(A.relatedStories,t,null);e&&(L={contentCard:e.contentCard,contentCardTelemetryObject:e.contentCard,button:e.seeMore&&e.seeMore.getMetadataTag(),destination:e.destination,buttonTelemetryObject:e.seeMore,seeMore:e.seeMore,showRelatedStories:e.showRelatedStories})}const F=M(t),P=m&&m.product||S&&S.category||"news",R=m&&m.label||S&&S.subCategory||"other",_=(0,o.ph)(t,n,P,R);null===(i=t.images)||void 0===i||i.map((e=>{e.url||(e.url=`${s.E.prod}${e.id}.img`)}));const E=a&&t.images&&(0,l.ny)({cardContent:{images:t.images,title:u},type:h},a);return{id:p,abstract:g,grid_area:null,card_template_type:null,cardActionStatus:F,cardActionClickHandler:v,cardActionsTooltips:b,crawledContentLabel:C,destinationUrl:(0,l.e_)(_),enableRichSocialReaction:x,locale:n,imageData:E,title:u,providerData:(0,l.i2)(r),publishedDateTime:O(new Date(c)),toggleCardActionMenu:I,telemetryContext:L,openLinksInNewTab:k,openArticleInNewTab:T,ariaLabel:D(u,r),actionsArrayOverride:f,socialBarWCConfigInfo:$,metadata:t,fontFamilyOnCardContent:w,enableFilledIconOnHover:y}})):[]}(t,n,c).filter(((t,a)=>{if(!t.title||!t.providerData){const i=t.id||e[a].id;throw new Error(`Missing card details ${i} (relatedCards[${a}] of ${this.articleData.id})`)}return!0}))}catch(e){r.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.Tfi.RelatedStoriesContentParseError),{message:`Error handling related card content response: ${e}`}))}return i}))}function u(e,t,a,o,s){return(0,i.mG)(this,void 0,void 0,(function*(){let i;try{const n=new AbortController,r=yield Promise.all(e.map((e=>{const t=setTimeout((()=>n.abort()),a);return fetch(`https://assets.msn.com/content/view/v1/Preview/${e.id}`,{signal:n.signal}).finally((()=>clearTimeout(t)))})));null==s||s(),i=c(e,t,r,o)}catch(e){r.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.Tfi.RelatedStoriesContentFetchError),{message:`Unable to fetch related card content: ${e}`}))}return i}))}},73543:function(e,t,a){"use strict";a.d(t,{to:function(){return u}});var i,n=a(74045),r=a(88828),o=a(14989),s=a(65135),d=a(76859),l=a(99478),c=a(5020);function u(e,t,a,i,u,g){const{hasRightRail:h,cardMetadata:m,cardSlot:f,localizedStrings:v,initCardAction:b,cardActionClickHandler:C,cardActionDismissCallback:y,refreshFeedCallback:x,goToPersonalizeCallback:w,configOptions:S}=e,{grid_area:T,layouts:k}=f,{enableHideStoryFeedback:$,enableInstantHide:A,enableHideTopics:I,enableDismissCallback:D,useHideConfirmationNewStoryText:M}=S,{undoHideButtonText:O,refreshFeedButtonText:L,reportButtonText:F,dislikeButtonText:P,hideFeedbackCancelText:R,hideFeedbackMuteText:_,hideFeedbackTitle:E,hideConfirmationUpdatingFeedText:H,hideConfirmationDoneText:N}=v,z=m.subItems?(m.subItems||[]).filter((e=>e.id===a))[0]:m,U=(0,c.aU)(i,z,t,A),j=a||m.id,B=(0,r.Bn)().currentColumnArrangement;let W=d.Nv._1x_2y;if(h&&B){let e=o.K$.c4;switch(B){case o.K$.c5:e=o.K$.c4;break;case o.K$.c4:e=o.K$.c3;break;case o.K$.c3:e=o.K$.c2;break;case o.K$.c2:e=o.K$.c1;break;default:e=o.K$.c4}W=k[e.toUpperCase()]}else k&&B?W=k[B.toUpperCase()]:Object.values(k)&&Object.values(k).length&&(W=Object.values(k)[0]);const G=z&&z.cardContent&&z.cardContent.topics,V=G&&G.length&&G.reduce(((e,t)=>t.weight>e.weight?t:e))||null,q=I&&V&&v.hideOptionCardNotInterestedInNamedTopic?(0,l.WU)(v.hideOptionCardNotInterestedInNamedTopic,V.label):null;V&&s.M0.addOrUpdateTmplString("hidetopic");const Z=z&&z.cardContent&&z.cardContent.provider,J=Z&&Z.id,Q=v.mutePublisherButtonText?(0,l.WU)(v.mutePublisherButtonText,null==Z?void 0:Z.name):null,X=!$||"infopane"===m.type&&W===d.Nv._2x_3y,Y=function(e){let t={status:e,action:null,sendRequest:!0};e&n.O7.hidden?(e&n.O7.mute?(t.status=e^n.O7.mute,t.action=n.Us.Mute):e&n.O7.report?(t.status=e^n.O7.report,t.action=n.Us.Report):e&n.O7.showFewer&&e&n.O7.hide?(t.status=e^n.O7.showFewer,t.action=n.Us.ShowFewer):e&n.O7.hideTopic?(t.status=e^n.O7.hideTopic,t.action=n.Us.HideTopic):e&n.O7.dismiss&&(t.status=e^n.O7.dismiss,t.sendRequest=!1),t.status=t.status^n.O7.hidden):t=e&n.O7.hide?{status:e^n.O7.hide,action:n.Us.Hide,sendRequest:!0}:{status:e^n.O7.showFewer,action:n.Us.ShowFewer,sendRequest:!0};return t}(t),K=p(t,v,Z,$,!0,X,A,I,V,M),ee=p(t,v,Z,$,!1,X,A,I,V);return{id:j,grid_area:T,cardSize:W,cardActionStatus:t,cardActionClickHandler:C,cardActionDismissCallback:D&&y,card_template_type:"hide-story-card",dislikeButtonText:P,enableHideStoryFeedback:$,enableInstantHide:A,enableHideTopics:I,showAdFeedback:u,hideStoryTitleData:K,hideStorySubtitle:I&&E,mutePublisherButtonText:Q,openReportDialog:e=>function(e,t,a,i){const{id:n,title:r,url:o,images:s,metadata:d}=e,l={enabled:!0,article:{id:n,headlineTitle:r,href:o,image:{alt:s&&s.length&&s[0].title,src:s&&s.length&&s[0].url},abstract:d.abstract},onStatusChange:a,parentTelemetryObject:i,dialogToOpen:"report"};t(l)}(e,b,C,U.reportButton),personalizeButtonCallback:(e,t)=>{t&&s.M0.sendActionEvent(t.target),w(e)},personalizeButtonTextData:ee,providerId:J,refreshFeedButtonText:L,refreshFeedCallback:x,reportButtonText:F,undoHideButtonCallback:()=>{const e=t&n.O7.hideTopic?V&&V.feedId:J;return C(j,Y.status,Y.action,Y.sendRequest,void 0,e)},undoHideButtonText:O,hideConfirmationDoneText:N,hideConfirmationUpdatingFeedText:H,hideFeedbackMuteText:_,hideFeedbackCancelText:R,telemetryContext:U,adFeedbackProps:g,notInterestedInNamedTopicText:q,associatedTopic:V,currentCardData:z}}function p(e,t,a,r,o,s,d,c,u,p){const{hideConfirmationMuteText:g,hideStoryMuteConfirmationTitle:h,hideConfirmationFewerStoriesText:m,hideStoryDislikeConfirmationTitle:f,hideFeedbackTitle:v,hideStoryFeedbackTitle:b,hideConfirmationManageInterestsText:C,manageTopicsText:y,hideOptionCardTitleText:x}=t;if(r&&e&n.O7.hidden){const r=d?C:y;if(e&n.O7.mute){const e=a&&a.name,n=d?g:h;return o?{text:(0,l.WU)(n,e),dataTag:i.muteConfirmationText}:{text:t.viewMutedPublishersText,dataTag:i.viewMutedPublishersText}}if(e&n.O7.report)return o?{text:t.hideStoryReportConfirmationTitle,dataTag:i.reportConfirmationText}:{text:r,dataTag:i.manageTopicsText};if(e&n.O7.showFewer){const e=d?m:f;return o?{text:e,dataTag:i.dislikeConfirmationText}:{text:r,dataTag:i.manageTopicsText}}if(e&n.O7.dismiss)return o?p?{text:t.hideConfirmationNewStoryText||m,dataTag:i.newStoryConfirmationText}:{text:t.hideConfirmationDismissText||t.hideConfirmationNewStoryText||m,dataTag:i.dismissConfirmationText}:{text:r,dataTag:i.manageTopicsText};if(c&&e&n.O7.hideTopic){const e=u?(0,l.WU)(t.hideConfirmationCardSingleTopic,u.label):t.hideConfirmationCardMultiTopic;return o?{text:e,dataTag:i.hideTopicConfirmationText}:{text:r,dataTag:i.manageTopicsText}}}else if(s)return o?{text:t.hideStoryTitle}:{text:t.personalizeButtonText};return{text:c&&x?x:b||v,dataTag:i.feedbackTitleText}}!function(e){e.dislikeConfirmationText="dislikeConfirmationText",e.feedbackTitleText="feedbackTitleText",e.manageTopicsText="manageTopicsText",e.muteConfirmationText="muteConfirmationText",e.reportConfirmationText="reportConfirmationText",e.viewMutedPublishersText="viewMutedPublishersText",e.hideTopicConfirmationText="hideTopicConfirmationText",e.dismissConfirmationText="dismissConfirmationText",e.newStoryConfirmationText="newStoryConfirmationText"}(i||(i={}))},5020:function(e,t,a){"use strict";a.d(t,{aU:function(){return s},df:function(){return d}});var i,n=a(38156),r=a(74045),o=a(60483);!function(e){e.hideStoryCard="HideStoryCard",e.confirmButtonName="Personalize",e.confirmButtonHeadline="Personalize my feed",e.undoHideButtonName="undoHide",e.undoHideButtonHeadline="Undo",e.cancelButtonName="Cancel",e.undoButtonName="Undo",e.dislikeButtonName="showFewer",e.mutePublisherButtonName="mute",e.publisherHideModule="PublisherHideModule",e.refreshFeedButtonName="feedRefresh",e.refreshFeedButtonHeadLine="Feed refresh",e.reportButtonName="ReportArticle",e.reportButtonHeadline="Report an issue",e.reportHideModule="ReportHideModule",e.storyHideModule="StoryHideModule",e.hideNamedTopicButton="HideNamedTopic"}(i||(i={}));const s=(e,t,a,o)=>{if(!e)return;const{cardContent:s={},metadata:{category:d,type:l}}=t,{provider:c={}}=s,{metadata:u={}}=s||{},p={brand:s.provider&&s.provider.name,category:u&&u.subCategory||s&&s.category&&s.category.product,headline:s.title,id:s.id,vertical:u.category||d,type:l};const g=function(t){let a;return a=t&r.O7.hidden?t&r.O7.mute?i.publisherHideModule:t&r.O7.report?i.reportHideModule:i.storyHideModule:i.hideStoryCard,e.addOrUpdateChild({name:a,content:Object.assign({},p)})}(a),h=g.addOrUpdateChild({name:i.dislikeButtonName,behavior:n.wu.Dislike,type:n.c9.ActionButton,content:Object.assign(Object.assign({},p),{headline:s.title,id:s.id})}),m=g.addOrUpdateChild({name:i.confirmButtonName,behavior:n.wu.Navigate,type:n.c9.ActionButton,content:Object.assign({},p)}),f=g.addOrUpdateChild({name:o?i.cancelButtonName:i.undoHideButtonName,behavior:n.wu.Unhide,type:n.c9.ActionButton,content:Object.assign(Object.assign({},p),{headline:i.undoHideButtonHeadline})}),v=g.addOrUpdateChild({name:i.mutePublisherButtonName,behavior:n.wu.Mute,type:n.c9.ActionButton,content:Object.assign(Object.assign({},p),{headline:c.name,id:c.id})}),b=g.addOrUpdateChild({name:i.refreshFeedButtonName,behavior:n.wu.Navigate,type:n.c9.ActionButton,content:Object.assign({},p)}),C=g.addOrUpdateChild({name:i.reportButtonName,behavior:n.wu.Report,type:n.c9.ActionButton,content:{headline:i.reportButtonHeadline,id:s.id}}),y=g.addOrUpdateChild({name:i.undoButtonName,behavior:n.wu.Unhide,type:n.c9.ActionButton,content:Object.assign(Object.assign({},p),{headline:i.undoButtonName})}),x=g.addOrUpdateChild({name:i.hideNamedTopicButton,behavior:n.wu.Hide,type:n.c9.ActionButton,content:Object.assign(Object.assign({},p),{headline:i.hideNamedTopicButton})});return{componentRoot:e,hideNamedTopicButton:x,hideStoryCard:g,dislikeButton:h,confirmButton:m,cancelButton:f,mutePublisherButton:v,refreshFeedButton:b,reportButton:C,confirmationUndoButton:y}},d=(e,t)=>{if(!e)return;const a=Object.assign({},e);return e&&e.hideStoryCard&&e.hideStoryCard.contract&&(a.hideStoryCard=new o.D(Object.assign(Object.assign({},e.hideStoryCard.contract),{ext:t}))),a}},24277:function(e,t,a){"use strict";a.d(t,{X:function(){return r}});var i=a(74553),n=a(39181);i.N;const r=n.d`
    <style>
        msn-hide-story-card.ad-feedback-confirmation {
            background: var(--hide-story-background);
        }
        msn-hide-story-card.ad-feedback-confirmation fluent-button {
            width: 150px;
            text-align: center;
            display: block;
            margin: 54px auto 8px;
        }
        msn-hide-story-card.ad-feedback-confirmation fluent-button::part(control) {
            width: 100%;
        }
        msn-hide-story-card.ad-feedback-confirmation fluent-button:hover {
            background: var(--button-hover-color);
        }
        msn-hide-story-card.ad-feedback-confirmation::part(content-region) {
            margin: 0 auto;
            text-align: center;
            padding: 110px 16px 0px 16px;
        }
        msn-hide-story-card.ad-feedback-confirmation::part(action-region) {
            display: block;
            position: static;
            margin: 0;
            padding: 0px 16px 16px;
        }
    </style>
    <msn-hide-story-card 
        hideStoryTitle=${e=>e.adFeedbackProps.localizedStrings.confirmationText}
        class="ad-feedback-confirmation"
    >    
        <fluent-button
            slot="actions"
            autofocus
            appearance="neutral"
            aria-label=${e=>e.adFeedbackProps.localizedStrings.undoText}
            role="button"
            title=${e=>e.adFeedbackProps.localizedStrings.undoText}
            id="Undo"
            @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
        >
            ${e=>e.adFeedbackProps.localizedStrings.undoText}
        </fluent-button>
    </msn-hide-story-card> 
`},64302:function(e,t,a){"use strict";a.d(t,{V:function(){return s}});var i=a(39181),n=a(13988),r=a(76859),o=a(74045);a(74553).N;const s=i.d`
    <style>
        msn-hide-story-card.hide-feedback {
            --heading-line-height: var(--type-ramp-plus-1-line-height);
            --heading-font-size: var(--type-ramp-plus-1-font-size);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback {
            --heading-line-height: var(--type-ramp-base-line-height, 20px);
            --heading-font-size: var(--type-ramp-base-font-size, 14px);
        }
        msn-hide-story-card[card-size="_1x_1y"] fluent-menu-item#Report {  
            display: none;
        } 
        msn-hide-story-card.hide-feedback fluent-menu-item {
            width: 236px;
            text-align: center;
            display: block;
            border-radius: 20px;
            margin: 0 auto 8px;
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback:not(.hide-confirm)::part(content-region) {
            padding-top: 20px;
            padding-inline: 20px;
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo {
            width: 18px;
            margin-inline-end: 10px;
            margin-top: 11px;
            color: var(--neutral-foreground-rest);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo:hover > svg > path {
            transition: all 0.5s ease 0s;
            d: path(var(--undo-filled-path));
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo svg {
            transform: translate(3px, 3px);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo.stealth-button:hover,
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback fluent-menu-item#Undo:focus {
            background: transparent;
        }
        msn-hide-story-card[card-size="_1x_1y"] .menu-item-text {
            margin-top: 1px;
        }
        msn-hide-story-card fluent-menu-item::part(control) {
            width: 236px;
        }
        msn-hide-story-card.hide-feedback::part(content-region) {
            width: 236px;
            margin: 0 auto;
            text-align: center;
            justify-content: center;
            --content-region-padding-top: 38px;
        }
        msn-hide-story-card.hide-feedback.has-subtitle::part(content-region) {
            --content-region-padding-top: 24px;
        }
        msn-hide-story-card::part(heading) {
            -webkit-line-clamp: var(--heading-max-lines, 3)
        }
        msn-hide-story-card::part(action-region) {
            display: block;
            position: static;
            margin: auto;
        }
        .menu-item-text {
            margin-top: 5px;
            padding: 0 8px;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }
    </style>
    <msn-hide-story-card
        class="hide-feedback ${e=>e.enableInstantHide?"instant-hide":""} ${e=>e.hideStorySubtitle?"has-subtitle":""} "
        hideStoryTitle=${e=>e.hideStoryTitleData.text}
        hideStorySubtitle=${e=>e.hideStorySubtitle}
        data-text=${e=>e.hideStoryTitleData.dataTag}
        card-size=${e=>e.cardSize}
        data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideStoryCard)||void 0===a?void 0:a.getMetadataTag()}}"
        role="menu"
    >
        <span class="heading" part="heading" role="alert" slot="heading">${e=>e.hideStoryTitleData.text}</span>
        ${(0,n.g)((e=>e.dislikeButtonText&&!e.enableHideTopics),i.d`
            <fluent-menu-item
                tabindex="0"
                aria-label=${e=>e.dislikeButtonText}
                title=${e=>e.dislikeButtonText}
                id="DislikeTopic"
                @change=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus&o.O7.showFewer?e.cardActionStatus^o.O7.hidden:e.cardActionStatus^o.O7.showFewer^o.O7.hidden,"ShowFewer",!0,e.cardActionClickHandler,null,!1)}
                slot="actions"
                data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.dislikeButton)||void 0===a?void 0:a.getMetadataTag()}}"
            >
                <div class="menu-item-text">${e=>e.dislikeButtonText}</div>
            </fluent-menu-item>
        `)}
        ${(0,n.g)((e=>e.notInterestedInNamedTopicText),i.d`
            <fluent-menu-item
                tabindex="0"
                aria-label=${e=>e.notInterestedInNamedTopicText}
                title=${e=>e.notInterestedInNamedTopicText}
                id="HideNamedTopic"
                @change=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus^o.O7.hidden^o.O7.hideTopic,"HideTopic",!0,null,e.associatedTopic.feedId,!1)}
                slot="actions"
                data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideNamedTopicButton)||void 0===a?void 0:a.getMetadataTag()}}"
            >
                <div class="menu-item-text">${e=>e.notInterestedInNamedTopicText}</div>
            </fluent-menu-item>
        `)}
        <fluent-menu-item
            tabindex="0"
            aria-label=${e=>e.mutePublisherButtonText}
            title=${e=>e.mutePublisherButtonText}
            id="MutePublisher"
            @change=${e=>e.cardActionClickHandler&&e.cardActionClickHandler(e.id,e.cardActionStatus&e.cardActionStatus^o.O7.mute^o.O7.hidden,"Mute",!0,e.cardActionClickHandler,e.providerId)}
            slot="actions"
            data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.mutePublisherButton)||void 0===a?void 0:a.getMetadataTag()}}"
        >
            <div class="menu-item-text">${e=>e.mutePublisherButtonText}</div>
        </fluent-menu-item>
        <fluent-menu-item
            tabindex="0"
            aria-label=${e=>e.reportButtonText}
            title=${e=>e.reportButtonText}
            id="Report"
            @change=${e=>e.openReportDialog&&e.openReportDialog(e.currentCardData)}
            slot="actions"
            data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportButton)||void 0===a?void 0:a.getMetadataTag()}}"
        >
            <div class="menu-item-text">${e=>e.reportButtonText}</div>
        </fluent-menu-item>
        <fluent-menu-item
            tabindex="0" 
            class="stealth-button"
            aria-label=${e=>e.enableInstantHide&&!e.enableHideTopics?e.hideFeedbackCancelText:e.undoHideButtonText}
            title=${e=>e.enableInstantHide&&!e.enableHideTopics?e.hideFeedbackCancelText:e.undoHideButtonText}
            id="Undo"
            @change=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
            slot="actions"
            data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.cancelButton)||void 0===a?void 0:a.getMetadataTag()}}"
            style="--undo-filled-path:'M-0.000976562 0.75C-0.000976562 0.335786 0.334809 0 0.749023 0C1.16324 0 1.49902 0.335786 1.49902 0.75V3.84461L4.17206 1.17157C5.73416 -0.390524 8.26682 -0.390524 9.82891 1.17157C11.391 2.73367 11.391 5.26633 9.82891 6.82843L4.87896 11.7784C4.58607 12.0713 4.1112 12.0713 3.8183 11.7784C3.52541 11.4855 3.52541 11.0106 3.8183 10.7177L8.76825 5.76777C9.74456 4.79146 9.74456 3.20854 8.76825 2.23223C7.79194 1.25592 6.20903 1.25592 5.23272 2.23223L2.96495 4.5H5.24902C5.66324 4.5 5.99902 4.83579 5.99902 5.25C5.99902 5.66421 5.66324 6 5.24902 6H0.849023C0.379581 6 -0.000976562 5.61944 -0.000976562 5.15V0.75Z'";
        >
            ${(0,n.g)((e=>e.cardSize!=r.Nv._1x_1y),i.d`
                <div class="menu-item-text">${e=>e.enableInstantHide&&!e.enableHideTopics?e.hideFeedbackCancelText:e.undoHideButtonText}</div>
            `)}
            ${(0,n.g)((e=>e.cardSize==r.Nv._1x_1y),i.d`
                <svg width="11" height="12" viewBox="0 0 15 16" xmlns="http://www.w3.org/2000/svg">
                    <path d="M0.000976562 0.5C0.000976562 0.223858 0.224834 0 0.500977 0C0.77712 0 1.00098 0.223858 1.00098 0.5V4.34262L4.17202 1.17157C5.73412 -0.390524 8.26678 -0.390524 9.82888 1.17157C11.391 2.73367 11.391 5.26633 9.82888 6.82843L4.80375 11.8536C4.60849 12.0488 4.2919 12.0488 4.09664 11.8536C3.90138 11.6583 3.90138 11.3417 4.09664 11.1464L9.12177 6.12132C10.2933 4.94975 10.2933 3.05025 9.12177 1.87868C7.9502 0.707107 6.0507 0.707107 4.87913 1.87868L1.75781 5H5.50098C5.77712 5 6.00098 5.22386 6.00098 5.5C6.00098 5.77614 5.77712 6 5.50098 6H0.600977C0.269607 6 0.000976562 5.73137 0.000976562 5.4V0.5Z"/>
                </svg>
            `)}
        </fluent-menu-item>
    </msn-hide-story-card> 
`},70345:function(e,t,a){"use strict";a.d(t,{c:function(){return k}});var i=a(39181),n=a(13988),r=a(74045),o=a(61436),s=a(33940),d=a(89346),l=a(65620);class c extends d.H{constructor(){super(...arguments),this.preText="",this.postText=""}connectedCallback(){super.connectedCallback(),this.spinnerCompleteTimer=setTimeout((()=>{this.spinnerCompletedCallback&&this.spinnerCompletedCallback()}),3e3)}disconnectedCallback(){clearTimeout(this.spinnerCompleteTimer),this.spinnerCompleteTimer=void 0}}(0,s.gn)([(0,l.Lj)({attribute:"pre-text"})],c.prototype,"preText",void 0),(0,s.gn)([(0,l.Lj)({attribute:"post-text"})],c.prototype,"postText",void 0);var u=a(32804),p=a(53046),g=a(16859);const h=p.i`
    .spinner-background {
        stroke: rgba(0, 0, 0, 0.07);
    }

    .meter {
        stroke: ${u.goi};
    }

    .checkmark-background {
        fill: ${u.goi};
    }

    .checkmark {
        fill: white;
    }
`,m=p.i`
    .spinner-background {
        stroke: rgba(255, 255, 255, 0.54);
    }

    .meter {
        stroke: white;
    }

    .checkmark-background {
        fill: white;
    }

    .checkmark {
        fill: black;
    }
`,f=p.i`
    :host {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    :host([card-size="_1x_1y"]) .text {
        display: none;
    }

    :host([card-size="_1x_1y"]) svg {
        height: 30px;
        width: 30px;
    }

    :host(.check-icon[card-size="_1x_1y"]) {
        padding-top: 0;
        padding-bottom: 11px;
    }

    svg {
        height: 48px;
        margin: auto;
        width: 48px;
    }
      
    .spinner-background {
        fill: none;
        stroke-width: 2.5px;
    }

    .meter {
        animation: spinner 3s linear;
        fill: none;
        stroke-dasharray: 150;
        stroke-dashoffset: 0;
        stroke-linecap: round;
        stroke-width: 2.5px;
        transform: rotate(-90deg);
        transform-origin: 50% 50%; 
    }

    @keyframes spinner {
        from {
            stroke-dashoffset: 150;
        }
        to {
            stroke-dashoffset: 0;
        }
    }

    .checkmark-background {
        animation: checkmark-background 4s linear;
        transform-origin: 50% 50%; 
    }

    @keyframes checkmark-background {
        0%, 75% {
            fill-opacity: 0;
        }
        78% {
            fill-opacity: 1;
        }
    }

    .checkmark {
        animation: checkmark 4s linear;
        animation-fill-mode: both;
        transform: translate(8px, 8px);
        transform-origin: 50% 50%;
    }

    @keyframes checkmark {
        0%, 75% {
            transform: scale(0) translate(8px, 8px);
        }
        85% {
            transform: scale(1.25) translate(8px, 8px);
        }
        100% {
            transform: scale(1) translate(8px, 8px);
        }
    }

    span {
        display: block;
        font-size: var(--type-ramp-base-font-size);
        line-height: var(--type-ramp-base-line-height);
        overflow: hidden;
        position: absolute;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 236px;
    }

    .text {
        height: 20px;
        padding-top: 8px;
        width: 236px;
    }

    .pre-text {
        animation: fadeout 1s;
        animation-delay: 3s;
        animation-fill-mode: both;
    }

    .post-text {
        animation: fadein 1s;
        animation-delay: 3s;
        animation-fill-mode: both;
    }

    @keyframes fadein {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    @keyframes fadeout {
        from { opacity: 1; }
        to   { opacity: 0; }
    }
`.withBehaviors(new g.Y(h,m)),v=i.d`
    <svg viewBox="0 0 48 48">
        <circle class="spinner-background" cx="24" cy="24" r="21.5" />
        <circle class="meter" cx="24" cy="24" r="21.5" />
        <circle class="checkmark-background" cx="24" cy="24" r="24"/>
        <path class="checkmark" d="M11.3333 22.1144L6.27614 17.0572C5.75544 16.5365 4.91122 16.5365 4.39052 17.0572C3.86983 17.5779 3.86983 18.4221 4.39052 18.9428L10.3905 24.9428C10.9112 25.4635 11.7554 25.4635 12.2761 24.9428L26.9428 10.2761C27.4635 9.75545 27.4635 8.91122 26.9428 8.39052C26.4221 7.86983 25.5779 7.86983 25.0572 8.39052L11.3333 22.1144Z"/>
    </svg>
    <div class="text">
        <span class="pre-text" role="alert">${e=>e.preText}</span>
        <span class="post-text">${e=>e.postText}</span>
    </div>
`;var b=a(63070),C=a(12306),y=a(39391),x=a(57905);let w=class extends c{};w=(0,s.gn)([(0,d.M)({name:"msn-animated-done-spinner",template:v,styles:f})],w),(0,b.z)().withShadowRootMode("closed").withElementDisambiguation((()=>x.h.ignoreDuplicate)).register((0,C.k)(),(0,y.xg)());var S=a(74553),T=a(76859);S.N;const k=i.d`
    <style>
        ${(0,n.g)((e=>e.enableInstantHide),i.d`
            msn-animated-done-spinner[card-size="_1x_1y"].check-icon {
                padding-top: 0;
                padding-bottom: 16px;
            }
            msn-hide-story-card[card-size="_1x_1y"].instant-hide fluent-button:first-of-type{
                margin-inline-end: 8px;
            }
            msn-hide-story-card[card-size="_1x_1y"].instant-hide fluent-button {
                width: 130px;
                display: inline-flex;
                margin: 0;
                box-sizing: border-box;
                -webkit-box-sizing: border-box;
            }
            msn-hide-story-card[card-size="_1x_1y"].hide-feedback.instant-hide::part(content-region) {
                padding-top: 12px;
            }
            msn-hide-story-card.instant-hide::part(content-region) {
                padding-top: 46px;
            }
            msn-hide-story-card .check-icon.instant-hide {
                padding-bottom: 32px;
                align-items: center;
                flex-direction: column;
            }
            msn-hide-story-card .personalize-text {
                font-size: var(--type-ramp-base-font-size, 14px);
                line-height: var(--type-ramp-base-line-height, 20px);
                margin-top: 20px;
                text-align: center;
                padding: 0 20px;
            }
            msn-hide-story-card .personalize {
                color: var(--stealth-button-text-color)
            }
        `)}
        msn-hide-story-card[card-size="_1x_1y"].hide-confirm {
            --heading-line-height: var(--type-ramp-base-line-height, 20px);
            --heading-font-size: var(--type-ramp-base-font-size, 14px);
        }
        msn-hide-story-card[card-size="_1x_1y"].hide-feedback.hide-confirm::part(content-region) {
            padding-top: 16px;
        }
        msn-hide-story-card.hide-confirm {
            --heading-line-height: var(--type-ramp-plus-1-line-height);
            --heading-font-size: var(--type-ramp-plus-1-font-size);
        }
        msn-hide-story-card.hide-confirm fluent-button {
            width: 236px;
            text-align: center;
            display: block;
            border-radius: 20px;
            margin: 0 auto 8px;
        }
        msn-hide-story-card.hide-confirm fluent-button::part(control):focus-visible {
            border: none;
            box-shadow: none;
        }   
        msn-hide-story-card fluent-button::part(control) {  
            width: 236px; 
            display: -webkit-box;
            overflow: hidden;
            -webkit-box-orient: vertical;
            text-overflow: ellipsis;
        }   
        msn-hide-story-card.hide-confirm::part(content-region) {
            width: 236px;
            margin: 0 auto;
            text-align: center;
            padding-top: 38px;
        }
        msn-hide-story-card::part(heading) {
            -webkit-line-clamp: var(--heading-max-lines, 3)
        }
        msn-hide-story-card::part(action-region) {
            display: block;
            position: static;
            margin: auto;
            text-align: center;
        }
        .check-icon {
            display: flex;
            justify-content: center;
            fill: var(--neutral-foreground-rest);
            padding-bottom: 36px;
        }
        msn-animated-done-spinner.check-icon {
            padding-top: 20px;
            padding-bottom: 26px;
        }
    </style>
    <msn-hide-story-card 
        class="hide-feedback hide-confirm ${e=>e.enableInstantHide?"instant-hide":""}"
        hideStoryTitle=${e=>e.hideStoryTitleData.text}
        data-text=${e=>e.hideStoryTitleData.dataTag}
        card-size=${e=>e.cardSize}
        data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideStoryCard)||void 0===a?void 0:a.getMetadataTag()}}"
    >
        <span class="heading" part="heading" role="alert" slot="heading">${e=>e.hideStoryTitleData.text}</span>
        ${(0,n.g)((e=>!e.enableInstantHide&&e.cardSize!=T.Nv._1x_1y),i.d`
            <div slot="actions" class="check-icon">
                ${i.d`
                    <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg">
                        <path d="M19.9999 0C31.0456 0 39.9999 8.9543 39.9999 20C39.9999 31.0457 31.0456 40 19.9999 40C8.95424 40 -6.10352e-05 31.0457 -6.10352e-05 20C-6.10352e-05 8.9543 8.95424 0 19.9999 0ZM28.6338 13.6161C28.1782 13.1605 27.4584 13.1301 26.9676 13.525L26.8661 13.6161L16.7499 23.7322L13.1338 20.1161C12.6457 19.628 11.8542 19.628 11.3661 20.1161C10.9104 20.5717 10.8801 21.2915 11.2749 21.7824L11.3661 21.8839L15.8661 26.3839C16.3217 26.8395 17.0415 26.8699 17.5323 26.475L17.6338 26.3839L28.6338 15.3839C29.122 14.8957 29.122 14.1043 28.6338 13.6161Z"/>
                    </svg>
                `}
            </div>
        `)}
        ${(0,n.g)((e=>e.enableInstantHide),i.d`
            <msn-animated-done-spinner
                slot="actions"
                class="check-icon"
                pre-text="${e=>e.hideConfirmationUpdatingFeedText}"
                post-text="${e=>e.hideConfirmationDoneText}"
                card-size=${e=>e.cardSize}
                :spinnerCompletedCallback="${e=>e.cardActionDismissCallback}">
            </msn-animated-done-spinner>
        `)}
        ${(0,n.g)((e=>!e.enableInstantHide),i.d`
            <fluent-button
                slot="actions"
                aria-label=${e=>e.refreshFeedButtonText}
                role="button"
                title=${e=>e.refreshFeedButtonText}
                id="Refresh"
                @click=${e=>e.refreshFeedCallback&&e.refreshFeedCallback()}
                data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.refreshFeedButton)||void 0===a?void 0:a.getMetadataTag()}}"
            >
                ${e=>e.refreshFeedButtonText}
            </fluent-button>
            <fluent-button 
                slot="actions"
                class="stealth-button"
                aria-label=${e=>e.personalizeButtonTextData.text}
                role="button"
                title=${e=>e.personalizeButtonTextData.text}
                data-text=${e=>e.personalizeButtonTextData.dataTag}
                id="Personalize"
                @click=${(e,t)=>e.personalizeButtonCallback&&e.personalizeButtonCallback($(e.cardActionStatus),t.event)}
                data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmButton)||void 0===a?void 0:a.getMetadataTag()}}"
                data-customhandled="true"
            >
                ${e=>e.personalizeButtonTextData.text}
            </fluent-button>
        `)}
        ${(0,n.g)((e=>e.enableInstantHide),i.d`
            <fluent-button
                slot="actions"
                class="instant-hide"
                aria-label=${e=>e.personalizeButtonTextData.text}
                role="button"
                title=${e=>e.personalizeButtonTextData.text}
                data-text=${e=>e.personalizeButtonTextData.dataTag}
                id="Personalize"
                @click=${(e,t)=>e.personalizeButtonCallback&&e.personalizeButtonCallback($(e.cardActionStatus),t.event)}
                data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmButton)||void 0===a?void 0:a.getMetadataTag()}}"
                data-customhandled="true"
                >
                ${e=>e.personalizeButtonTextData.text}
            </fluent-button>
            <fluent-button
                slot="actions"
                class="stealth-button instant-hide"
                aria-label=${e=>e.undoHideButtonText}
                role="button"
                title=${e=>e.undoHideButtonText}
                tabindex="0" 
                id="Undo"
                @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
                data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmationUndoButton)||void 0===a?void 0:a.getMetadataTag()}}"
            >
                ${e=>e.undoHideButtonText}
            </fluent-button>
        `)}
    </msn-hide-story-card> 
`,$=e=>e&r.O7.mute?o.S.sectionIds.mutedPublishers:o.S.sectionIds.discoverInterests},9431:function(e,t,a){"use strict";a.d(t,{H:function(){return r}});var i=a(39181),n=a(18864);a(74553).N;const r=i.d`
    <style>
        msn-hide-story-card.report-ad {
            background: var(--hide-story-background);
            z-index: 3;
        }
        msn-hide-story-card.report-ad::part(content-region) {
            flex-direction: row;
            margin: 0;
            text-align: left;
            padding: 16px 16px 0px 24px;
        }
        msn-hide-story-card.report-ad::part(action-region) {
            display: block;
            position: static;
            margin: 26px 0px 0px 0px;
            padding: 0px 16px 16px 24px;
        }
        msn-hide-story-card.report-ad fluent-radio-group {
            padding: 0 4px;
            height: 144px;
            overflow-y: auto;
        }
        msn-hide-story-card.report-ad fluent-button {
            width: 45%;
            display: inline-block;
            margin: 34px 5px 8px;
            text-align: center;
        }
        msn-hide-story-card.report-ad fluent-radio {
            padding: 8px 0px 8px 0px;
            margin: 0;
            display: flex;
        }
        msn-hide-story-card.report-ad fluent-button::part(content) {
            text-overflow: ellipsis;
            overflow: hidden;
        }
        msn-hide-story-card.report-ad fluent-button::part(control) {
            width: 100%;
        }
    </style>
    <msn-hide-story-card 
        hideStoryTitle=${e=>e.adFeedbackProps.localizedStrings.reportIssueTitleText}
        class="report-ad"
    >
        <fluent-radio-group
            slot="actions"
            value="${e=>e.adFeedbackProps.selectedFeedbackType}"
            @change=${(e,t)=>e.adFeedbackProps.chooseFeedbackOption(t.event)}
            orientation="vertical"
        >
            ${(0,n.rx)((e=>e.adFeedbackProps.feedbackTypes),i.d`
                <fluent-radio
                    value=${e=>e.value}
                    id=${e=>e.value}
                    aria-label=${e=>e.text}
                    title=${e=>e.text}
                    class=${(e,t)=>t.parent.adFeedbackProps.selectedFeedbackType===e.value?"checked":""}
                >
                    ${e=>e.text}
                </fluent-radio>
            `)}
        </fluent-radio-group>
        <fluent-button
            appearance="accent"
            class="submit"
            slot="actions"
            ?disabled=${e=>e.adFeedbackProps.disableSubmitButton}
            aria-label=${e=>e.adFeedbackProps.localizedStrings.saveButtonText}
            role="button"
            title=${e=>e.adFeedbackProps.localizedStrings.saveButtonText}
            @click=${e=>e.adFeedbackProps.submitFeedback()}
        >
            ${e=>e.adFeedbackProps.localizedStrings.saveButtonText}
        </fluent-button>
        <fluent-button
            appearance="neutral"
            slot="actions"
            aria-label=${e=>e.adFeedbackProps.localizedStrings.cancelText}
            role="button"
            title=${e=>e.adFeedbackProps.localizedStrings.cancelText}
            @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
        >
            ${e=>e.adFeedbackProps.localizedStrings.cancelText}
        </fluent-button>
    </msn-hide-story-card> 
`},81831:function(e,t,a){"use strict";a.d(t,{dk:function(){return s},lB:function(){return o},hP:function(){return d}});var i=a(76859),n=a(16517),r=a(84551);function o(e){if(!e)return null;if(function(e){if(!e.body||!e.body[0]||!e.body[0].columns||e.body[0].columns.length<3)return!1;const t=e.body[0].columns[2].items&&e.body[0].columns[2].items[0];return!(!t||!t.text)}(e)){const t=e.body[0].columns[2].items[0].text,a={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",version:e.version,type:"AdaptiveCard",body:[{type:"ColumnSet",columns:[{type:"Column",items:[{type:"TextBlock",id:"WidgetsOverlayText",text:t.slice(0,t.length-1),size:"small",horizontalAlignment:"center"}]}]}]};return e.widgetsOverlay=a,e.timeToLiveInSeconds=1800,e.contentType="Weather",e}return e}function s(e){const{cardMetadata:t,parentTelemetryObject:a,cardSlot:n,layoutTemplateName:o,rowCount:s,rowHeightPx:d,colWidthPx:l,gutterPx:c,colOverride:u,supportedSdCardActionMenuItems:p,widgetInstanceId:g}=e,h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=n;return(null==t?void 0:t.data)&&h.cards.push(function(e){var t;const{cardSlot:a,configOptions:i,parentTelemetryObject:n,cardMetadata:r,openLinksInNewTab:o,hideCardCallback:s,goToPersonalizeSettingsCallback:d,sdCardActionClickHandler:l,dismissSDCardMenuCallback:c,refreshSDCardSection:u,supportedSdCardActionMenuItems:p,refreshFeedCallback:g,isDynamicFeed:h}=e,{grid_area:m}=a;return{id:"weather",grid_area:m,card_template_type:"weather-card",parentTelemetryObject:n,weatherCardConfigInfo:i&&i,cardMetadata:r.data,isGA:null!==(t=r&&r.wpoMetadata&&r.wpoMetadata.isGA)&&void 0!==t&&t,openLinksInNewTab:o,hideWeatherCardCallback:s,goToPersonalizeSettingsCallback:d,dismissSDCardMenuCallback:c,refreshSDCardSection:u,sdCardActionClickHandler:l,supportedSdCardActionMenuItems:p,refreshFeed:g,isDynamicFeed:h,isSpotlightUX:r.metadata&&r.metadata.isSpotlightUX,previewType:r.metadata&&r.metadata.previewType}}(e)),Object.keys(f).forEach((e=>{const t=f[e],n=v&&v[e],C=(0,r.s)(t,o,m,b&&b[e],s&&s[e],d&&d[e],l,c,n,u),y=Object.assign(Object.assign({},a),{contract:Object.assign({},null==a?void 0:a.contract)});(null==y?void 0:y.contract)&&(y.contract.ext=C);const x={id:"weather",card_dom_order:n,cardSize:t,cardLayout:t===i.Nv._1x_1y?"half":"full",parentTelemetryObject:y,supportedSdCardActionMenuItems:p,widgetInstanceId:g};h[e].push(x)})),h}function d(){return"edgeChromium"===n.jG.AppType}},97671:function(e,t,a){"use strict";a.d(t,{QA:function(){return n},WM:function(){return o},_n:function(){return i},rd:function(){return r}});const i=new(a(59049).v)("LocationState");var n,r;function o(e,t,a,n=[]){n.some((e=>!1===e))||i.set(r.Location,{source:a,location:e,locationMode:t})}!function(e){e[e.LocationEditor=1]="LocationEditor",e[e.Feed=2]="Feed"}(n||(n={})),function(e){e[e.Location=1]="Location"}(r||(r={}))},24261:function(e,t,a){"use strict";a.d(t,{H_:function(){return be}});var i=a(33940),n=a(63535),r=a(67267),o=a(47903),s=a(16517),d=a(28687),l=a(59207),c=a(96345),u=a(82855),p=a(58155),g=a(17157),h=a(65135);let m=null,f=null,v=null,b=null;function C(){if(null!==m)return m;if((0,g.wq)()){const e=(0,l._4)();return m=!!e&&e.isDarkMode,m}const e=window.location.href,t=p.c.getQueryParameterByName("darkmode",e);return m=null!==t,m}function y(){if(null!==v)return v;const e=window.location.href,t=p.c.getQueryParameterByName("edge",e);if(v=null!==t,!v&&(0,g.wq)()){const e=(0,l._4)();v=!!e&&e.isEdge}return v}function x(){if(null!==f)return f;const e=window.location.href,t=p.c.getQueryParameterByName("launcher",e);return f=null!==t,f}function w(e,t,a){h.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t,pb:Object.assign(Object.assign({},e.pb),{customMessage:a})}))}function S(){if(null!==b)return b;if(x()||y())return b=!1,b;if((0,g.wq)()){const e=(0,l._4)();return b=!(!e||!e.isChinaBuild)&&e.isChinaBuild,b}const e=window.location.href,t=p.c.getQueryParameterByName("isChinaBuild",e);return b=null!==t,b}const T="Dislike",k="Like",$="Mute",A="Save",I="service/Graph/Actions";function D(e){return(0,i.mG)(this,void 0,void 0,(function*(){return L(e,T)}))}function M(e){return(0,i.mG)(this,void 0,void 0,(function*(){return O(e,T)}))}function O(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const a={method:"DELETE",headers:yield(0,d.wR)()},r=(0,n.fU)(I,P()),o=F();o.set("$filter",`actionType eq '${t}' and (targetId eq '${e}')`),r.search=o.toString(),function(e,t){(0,i.mG)(this,void 0,void 0,(function*(){const a={url:e,headers:t.headers,refresh:!0};yield(0,c.o9)(a)}))}(r.href,a)}))}function L(e,t,a){return(0,i.mG)(this,void 0,void 0,(function*(){const r={method:"POST",body:JSON.stringify({actionType:t,targetId:e,targetType:a}),headers:yield(0,d.wR)()},o=(0,n.fU)(I,P()),s=F();return o.search=s.toString(),t===$&&(0,d.VQ)(`Hide publisher signal is sent. URL: ${o.href}, targetId: ${e}, targetType: ${a}`),yield function(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){const a={url:e,headers:t.headers,body:t.body,refresh:!0};return yield(0,c.Ef)(a)}))}(o.href,r)}))}function F(){const e=new o.h,t=r.$.getOneServiceNonDynamicParamsWithoutAuth("superapp-homepage-feeds",!1);for(let a=0;a<t.length;a++)e.set(t[a].key,t[a].value);const a=(0,l._4)();if(a){e.set("user",a.muid),e.set("market",a.market);const t=(0,u.rU)(a.features,s.jG.HasFlightsOverriden);t&&e.set("fdhead",t),e.set("activityId",a.activityId),a.latitude&&a.longitude&&e.set("location",`${a.latitude}|${a.longitude}`)}return e}function P(){return new URL("",S()?"https://assets.msn.cn/service":"https://assets.msn.com/service")}var R,_,E,H;!function(e){e.Small="small",e.Medium="medium"}(R||(R={})),function(e){e.default="feedback",e.hideStory="hideStory",e.hidePublisher="hidePublisher",e.mutePublisher="mutePublisher",e.reportIssue="reportIssue",e.undo="undo"}(_||(_={})),function(e){e.opacityFadeOut="opacityFadeOut",e.none=""}(E||(E={})),function(e){e.gradient="gradient",e.primary="primary",e.secondary="secondary"}(H||(H={}));var N,z,U;!function(e){e.DailyBrief="DailyBrief",e.GroceryCouponCarousel="GroceryCouponCarousel",e.NativeAd="nativeAd",e.RecentPriceDropProducts="RecentPriceDropProducts",e.RecommendedForYouProducts="RecommendedForYouProducts",e.TopicCarousel="TopicCarousel",e.TrendingCategoryDeals="TrendingCategoryDeals",e.TrendingDeals="TrendingDeals",e.OnlineOffers="OnlineOffers",e.NearbyOffers="NearbyOffers",e.OnlineCategories="OnlineCategories",e.OnlineCoupons="OnlineCoupons",e.TrendingNews="TrendingNews",e.TrendingProductDeals="TrendingProductDeals",e.WeatherList="WeatherList",e.VideoCarousel="TopicFeed",e.VideoCategory="VideoCategory",e.ArcadeGames="ArcadeGames",e.GameOfTheDay="GameOfTheDay",e.TopRatedGames="TopRatedGames",e.RewardsCard="RewardsCard",e.TopFeedAd="TopFeedAd",e.TrendingSearches="TrendingSearches",e.RecommendedSearches="RecommendedSearches",e.LocalNewsFeed="LocalNewsFeed",e.UkraineNewsFeed="UkraineNewsFeed"}(N||(N={})),function(e){e.ArticleContent="article",e.DailyBrief="infopane",e.GroceryCouponCarousel="GroceryCouponCarousel",e.NativeAd="nativeAd",e.ShoppingRecentPriceDropProducts="RecentPriceDropProducts",e.ShoppingRecommendedForYouProducts="RecommendedForYouProducts",e.ShoppingTrendingCategoryDeals="TrendingCategoryDeals",e.ShoppingTrendingDeals="TrendingDeals",e.ShoppingOnlineOffers="OnlineOffers",e.ShoppingNearbyOffers="NearbyOffers",e.ShoppingOnlineCategories="OnlineCategories",e.ShoppingOnlineCoupons="OnlineCoupons",e.ShoppingTrendingProductDeals="TrendingProductDeals",e.SlideshowContent="slideshow",e.TopicCarousel="XfeedUpsell",e.TrendingNews="trendingInTenMinutes",e.VideoCarousel="TopicFeed",e.VideoCategory="VideoCategory",e.VideoContent="video",e.WebContent="webcontent",e.LocalNewsFeed="LocalNewsFeed",e.UkraineNewsFeed="WarInUkraine"}(z||(z={})),function(e){e.Weather="Weather"}(U||(U={}));var j;!function(e){e.ActionButton="action button",e.ProviderLogo="provider logo",e.Reactions="reactions",e.Comments="comments"}(j||(j={}));const B="55a54008ad1ba589aa210d2629c1df41",W="ae69737a5aba41bba532ee1f5328b00e";var G;!function(e){e.FeedRefresh="feedRefresh",e.Append="append",e.SmartRefresh="smartRefresh"}(G||(G={}));var V=a(53909),q=a(44979),Z=a(65337),J=a(26415),Q=a(68364),X=a(44772),Y=a(38156);const K=new Map,ee="https://sapphire.azureedge.net/icons/news/2020092401/%0.png";var te;function ae(e,t,a){let i;if(!e||!e.length)return(0,d.VQ)(`Hide publisher response is invalid. actionType: ${a}, targetId: ${t}`),!1;try{i=JSON.parse(e)}catch(e){return(0,Q.OO)(e,J.ZP4,`ActionMenu : Failed to parse JSON data ${e}`),!1}if((0,d.VQ)(`Hide publisher response is invalid. status: ${null==i?void 0:i.status}`),!i||(null==i?void 0:i.status)>=400){const e=`OneService returned error response. Status: ${null==i?void 0:i.status} for actionType: ${a} and targetId: ${t}`;return w(J.nP3,"OneService returned error response in ActionMenuServiceClient",e),!1}return!0}function ie(){const e=C();return{toastMessageBgColor:e?"#404040":"#F8F8F8",toastMessageTextColor:e?"#F8F8F8":"#404040",toastMessageActionColor:e?"#83BEEC":"#3D6CDC"}}function ne(e,t,a){const i=oe(e),n=[];i&&i.length>0&&i.map((e=>{e.key.toLowerCase()===t?n.push(a):n.push(e)})),n&&n.length>0&&K.set(e,n)}function re(e){const t=e.sourceId?e.sourceId:e.id,a=e.actions?e.actions:e.metadata&&e.metadata.actions,i=a&&a.indexOf(te.Like)>=0,n=a&&a.indexOf(te.Save)>=0,r=a&&a.indexOf(te.Dislike)>=0;if(!(K&&K.get(t))){const e=[];e.push({key:te.Save,value:n}),e.push({key:te.Like,value:i}),e.push({key:te.Dislike,value:r}),K.set(t,e)}}function oe(e){return K&&K.get(e)}!function(e){e.Dislike="dislike",e.Feedback="feedback",e.Hide="hide",e.Mute="mute",e.Share="share",e.Save="save",e.Like="like",e.HiddenSource="hiddenSource"}(te||(te={}));function se(e,t,a){return(0,i.mG)(this,void 0,void 0,(function*(){const i=e.sourceId?e.sourceId:e.id,n=e.providerData&&e.providerData.name;let r,o,s,l,c,u,p,h,m;if(t&&(r=t.share,o=t.saveForLater,s=t.moreStories,l=t.fewerStories,c=t.hideThisStory,u=t.hidePublisher,p=t.feedbackText,h=t.remove,m=t.viewHiddenSources),(0,g.wq)()&&!x()&&!y()){const e=yield(0,d.Cw)(i),t={key:te.Save,value:e};ne(i,te.Save,t)}const f=oe(i),v=f&&f.find((e=>e.key===te.Save)),b=f&&f.find((e=>e.key===te.Like)),C=f&&f.find((e=>e.key===te.Dislike)),w=[];return a.map((e=>{switch(e){case te.Dislike:w.push(((e,t)=>({key:te.Dislike,text:t,icon:ee.replace("%0",e?"Disliked":"Dislike")}))(C&&C.value,l));break;case te.Feedback:w.push((e=>({key:te.Feedback,text:e,icon:ee.replace("%0","Feedback")}))(p));break;case te.Hide:w.push((i=c,{key:te.Hide,text:i,icon:ee.replace("%0","HideStory")}));break;case te.Like:w.push(((e,t)=>({key:te.Like,text:t,icon:ee.replace("%0",e?"Liked":"Like")}))(b&&b.value,s));break;case te.Mute:w.push(((e,t)=>({key:te.Mute,text:t&&t.replace("{0}",e),icon:ee.replace("%0","HideSource")}))(n,u));break;case te.Share:w.push((e=>({key:te.Share,text:e,icon:ee.replace("%0","Share")}))(r));break;case te.Save:w.push((t=v&&v.value,a=v&&v.value?h:o,{key:te.Save,text:a,icon:ee.replace("%0",t?"Remove":"Save")}));break;case te.HiddenSource:w.push((e=>({key:te.HiddenSource,text:e,icon:ee.replace("%0","HiddenSources")}))(m))}var t,a,i})),w}))}function de(e,t){if(!e)return;return{pageType:"videofeed",pageArgs:{url:e.destinationUrl?e.destinationUrl:e.url,title:e.title,provider:e.provider&&e.provider.name,providerLogo:e.provider&&e.provider.logoUrl,publishedDateTime:e.publishedDateTime,imageUrl:e.images&&e.images.length>0&&e.images[0].url,newsId:e.id,type:"video",actions:t?t.actions:e.actions,externalVideoFiles:e.videoFiles?e.videoFiles:e.externalVideoFiles}}}let le,ce,ue,pe=null;let ge,he=!1,me=!1,fe=!1;te.Share,te.Save,te.Hide,te.Mute,te.Like,te.Dislike,te.Feedback;const ve=[te.Share,te.Save,te.Hide,te.Mute,te.Like,te.Dislike,te.HiddenSource,te.Feedback];function be(e,t,a,n,r,o=!1,s=!1,c=!1,u=!1){return(0,i.mG)(this,void 0,void 0,(function*(){h.M0.sendActionEvent(e.currentTarget,Y.Aw.Click,Y.wu.More),e.preventDefault(),e.stopPropagation(),ce=n,le=a,pe=t,he=o,me=s,fe=c,ue=r,ge=(0,l._4)(),ue&&0!==ue.length||(ue=me||u?ve:[te.Share,te.Save,te.Mute,te.Like,te.Dislike,te.HiddenSource,te.Feedback]),re(le);const i=yield se(le,ce,ue);(0,d.AG)(i,Ce)}))}function Ce(e){if(e&&e.length){let t;try{t=JSON.parse(e)}catch(e){w(J.AM0,"ActionMenu : Failed to parse JSON data ${error}",e)}if(null!==t){const e=t.result,a=t.key;"click"===e&&function(e){switch(e){case te.Dislike:we(le);break;case te.Feedback:(0,d.cc)("sapphire://feedback");break;case te.Hide:!function(e,t,a){(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return;pe=a||pe;let i=null;const n=e.sourceId?e.sourceId:e.id;if(ae(yield D(n),n,te.Hide))if(he&&me);else{pe&&(pe.style.display="none");const{toastMessageBgColor:e,toastMessageTextColor:a,toastMessageActionColor:r}=ie();i=yield(0,d.oh)(t?t.storyHiddenToastText:ce.storyHiddenToastText,e,a,r,null==ce?void 0:ce.undo),i=i&&i.length&&JSON.parse(i),i&&"actionClick"===i.result&&(pe&&(pe.style.display="block"),M(n))}}))}(le);break;case te.Like:xe(le);break;case te.Mute:!function(e){(0,i.mG)(this,void 0,void 0,(function*(){if(!e)return;const t=e.providerData&&e.providerData.id;if(he&&me){yield function(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=(0,n.fU)("service/Msn/Providers",P()),a=F();a.set("ids",e),t.search=a.toString();try{const e=yield fetch(t.href);if(e&&e.ok){const t=yield e.json();if(t&&t.value&&t.value[0]&&t.value[0].logos&&t.value[0].logos[0]&&t.value[0].logos[0].imageLink.href)return`${t.value[0].logos[0].imageLink.href}?w=64&h=64&q=60&m=6&f=jpg&u=t`}}catch(e){console.log(`Failed to load provider logo ${t.href}`,e)}return null}))}(t)}else{let a=null;try{a=yield function(e){return(0,i.mG)(this,void 0,void 0,(function*(){if(e)return L(e,$,"SourceProvider")}))}(t)}catch(e){return void(0,Q.OO)(e,J.ZP4,`ActionMenu : Failed to send onMute signal. ${e}`)}if(e.refreshFeedCallback(),ae(a,t,te.Mute)){const{toastMessageBgColor:e,toastMessageTextColor:t,toastMessageActionColor:a}=ie();yield(0,d.oh)(ce.storiesHiddenToastText,e,t,a)}}}))}(le);break;case te.Share:!function(e){var t;if(!e)return;const a=(null==e?void 0:e.destinationUrl)||(null==e?void 0:e.url),i=null==e?void 0:e.title,n=(null===(t=null==e?void 0:e.images)||void 0===t?void 0:t.length)?ye(e.images[0]):"",r=null==e?void 0:e.abstract;null!==a&&(0,d.w8)(a,i,n,r)}(le);break;case te.Save:!function(e,t,a){var n;(0,i.mG)(this,void 0,void 0,(function*(){if(!t)return;var r;a&&(r=a,ce||(ce=r));const o=t.sourceId?t.sourceId:t.id,s=t.title&&t.title,l=(new Date).getTime(),c=t.destinationUrl||t.url,u=o,p=function(e){let t;switch(e){case X.PL.Article:t="article";break;case X.PL.Video:t="video";break;case X.PL.Slideshow:t="gallery"}return t}(e);let g;e===X.PL.Video&&(g=de(t,null));const h=100,m=100,f=(null===(n=null==t?void 0:t.images)||void 0===n?void 0:n.length)?ye(t.images[0],m,h):"";let v,b;t.provider&&(v=t.provider.name,t.provider.logoUrl&&(b=`${t.provider.logoUrl}?w=20&h=20&q=60&m=6&f=jpg&u=t`)),oe(o)||re({cardContent:t});const C=function(e){const t=oe(e),a=t&&t.find((e=>e.key===te.Save));return a&&a.value}(o);C?(0,d._o)(u).then((e=>(0,i.mG)(this,void 0,void 0,(function*(){const t=e&&e.length&&JSON.parse(e);if(t&&!0===t.success){yield function(e){return(0,i.mG)(this,void 0,void 0,(function*(){return O(e,A)}))}(o);const{toastMessageBgColor:e,toastMessageTextColor:t,toastMessageActionColor:a}=ie();(0,d.oh)(ce.storyRemovedToastText,e,t,a)}})))):(0,d.XF)(s,u,c,l,o,p,v,f,h,m,b,g).then((e=>(0,i.mG)(this,void 0,void 0,(function*(){const t=e&&e.length&&JSON.parse(e);let a=null;if(t&&!0===t.success){yield function(e){return(0,i.mG)(this,void 0,void 0,(function*(){return L(e,A)}))}(o);const{toastMessageBgColor:e,toastMessageTextColor:t,toastMessageActionColor:n}=ie();a=yield(0,d.oh)(ce.storySavedToastText,e,t,n,ce.openToastText),a=a&&a.length&&JSON.parse(a),a&&"actionClick"===a.result&&(0,d.AJ)(W,"news")}}))));const y={key:te.Save,value:!C};ne(o,te.Save,y)}))}(le.type,le);break;case te.HiddenSource:!function(){(0,i.mG)(this,void 0,void 0,(function*(){(0,d.AJ)(B,"newsHiddenPublishers")}))}()}}(a)}}}function ye(e,t=150,a=150){if(null==e?void 0:e.url){const i=new q.fH,n={width:t,height:a,enableDpiScaling:!0,devicePixelRatio:(0,q.Nd)(i.data.devicePixelRatio,"devicePixelRatio"),mode:e.focalRegion?V.vc.FocalCrop:V.vc.FacialCrop,focalRegion:e.focalRegion};return(0,V.mL)(e.url,n)}return""}function xe(e,t=!1,a=null,n){if(!e)return;const r=e.sourceId?e.sourceId:e.id,o=oe(r),s=o&&o.find((e=>e.key===te.Like)),l=s&&s.value;!t&&Se(e.id),l?function(e){(0,i.mG)(this,void 0,void 0,(function*(){return O(e,k)}))}(r):function(e){return(0,i.mG)(this,void 0,void 0,(function*(){return L(e,k)}))}(r).then((t=>{if(ae(t,r,te.Like)){const{toastMessageBgColor:e,toastMessageTextColor:t,toastMessageActionColor:a}=ie();(0,d.oh)(n?n.showMoreToastText:ce.showMoreToastText,e,t,a)}const i=o&&o.find((e=>e.key===te.Dislike));i&&i.value&&we(e,!1,a)}));const c={key:te.Like,value:!l};ne(r,te.Like,c),a&&a()}function we(e,t=!1,a=null,i){if(!e)return;const n=e.sourceId?e.sourceId:e.id,r=oe(n),o=r&&r.find((e=>e.key===te.Dislike)),s=o&&o.value;!t&&Se(e.id),he&&me?s?M(n):D(n).then((e=>{ae(e,n,te.Dislike)})):s?M(n):D(n).then((t=>{if(ae(t,n,te.Dislike)){const{toastMessageBgColor:e,toastMessageTextColor:t,toastMessageActionColor:a}=ie();(0,d.oh)(i?i.showFewerToastText:ce.showFewerToastText,e,t,a)}const o=r&&r.find((e=>e.key===te.Like));o&&o.value&&xe(e,!1,a)}));const l={key:te.Dislike,value:!s};ne(n,te.Dislike,l),a&&a()}function Se(e){(0,Z.$o)().getItem("swipableTipStorageKey")}},63725:function(e,t,a){"use strict";a.d(t,{d:function(){return $}});var i=a(33940),n=a(26415),r=a(33954);var o=a(2040),s=a(47903),d=a(16517),l=a(17318),c=a(94788),u=a(54804),p=a(62938),g=a(67267),h=a(63535),m=a(87298),f=a(65135),v=a(75559),b=a(51125),C=a(4875),y=a(51671);class x{constructor(){this.cachedMetadata={}}get(e){const t=w(e);if(t)return this.cachedMetadata[t]}set(e,t){const a=w(e);a&&(this.cachedMetadata[a]=t)}}function w(e){if(e)return JSON.stringify(e)}var S=a(33799),T=a(33379),k=a(12611);class ${constructor(e){this.config=e,this.responseCache=new x,this.requestPathWithoutFeedId="MSN/Feed/me",this.requestPathWithFeedId="MSN/Feed",this.requestPathForFeedLayout="MSN/FeedLayout",this.requestPathForArticleFRE="news/Feed",this.requestPathForNewsFeed="news/Feed"}fetch(e,t){return(0,i.mG)(this,void 0,void 0,(function*(){let a=this.config.initialRequest;if(e&&(e.feedId||!a.feedId||e.nextPageUrl||(e.feedId=a.feedId),a=Object.assign(Object.assign({},a),e)),!a)return void f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.pIg),{message:"default OneService fetch configuration was invalid"}));const c=(null==e?void 0:e.forceEnterpriseCompliance)||(0,C.VQ)(),u=yield g.$.getOneServiceFeedCallHeaders(c);if(c&&!(null==u?void 0:u[o.Yu.authorization])&&!(null==e?void 0:e.forceNoAuthorization))return;const v={credentials:"include",headers:u,method:"GET"},x=a.useNextPageUrl&&a.nextPageUrl,w=a.feedLayoutRequestType;let $;$=!x&&w?this.requestPathForFeedLayout:"feed"===a.query&&a.feedId?this.requestPathForNewsFeed:a.feedId||a.entityId?this.requestPathWithFeedId:"frefeedback"===a.query||"frefeedbackneg"===a.query||"UserFre"===a.query?this.requestPathForArticleFRE:this.requestPathWithoutFeedId;const A=this.responseCache.get(a);if(this.isRequestCacheable($)&&A)return A;const I=(0,h.fU)($,null==e?void 0:e.overwriteBaseApiURL),D=(0,b.Ee)();if(x)this.requestQueryParams=new s.h(new URL(x).search),D>0&&this.requestQueryParams.set(b.i$,D.toString()),d.jG.SendFeedCallActivityIdInHeader||this.requestQueryParams.set("activityId",d.jG.ActivityId);else{const{ocid:e,flightData:t,overwriteFlightData:i,muidFallback:n}=a,r=(yield(0,y.XJ)())===S.Hy.SignedIn?g.$.getOneServiceParamsWithAuth(d.jG.UserId,e,!1,t,i):g.$.getOneServiceParamsWithoutAuth(d.jG.UserId||n&&`m-${d.jG.ActivityId}`,e,!1,t,i,c);this.requestQueryParams=new s.h;for(let e=0;e<r.length;e++)this.requestQueryParams.set(r[e].key,r[e].value);if(w&&!a.start)this.requestQueryParams.set("t",w);else if(!a.disableQueryType){const e=a.queryType||"myfeed";this.requestQueryParams.set("queryType",e)}if(this.requestQueryParams.set("wrapodata","false").set("DisableTypeSerialization","true").set("timeOut",`${this.getRequestTimeout(a)}`).set("contentType",a.contentType).set("$select",a.select).set("responseSchema",a.disableFlatViewResponse?p.c.CardView:p.c.FlatView),a.apiKey&&this.requestQueryParams.set("apikey",a.apiKey),a.count&&this.requestQueryParams.set("$top",`${a.count}`),a.contentId&&this.requestQueryParams.set("contentId",a.contentId),this.tryAddQueryInterestParams(a)||this.requestQueryParams.set("ids",a.feedId).set("query",a.query).set("entityids",a.entityId),!w&&!a.disableLocation){const e=g.$.getLocationParams(a.latitude,a.longitude);e&&this.requestQueryParams.set(e.key,e.value)}a.start&&this.requestQueryParams.set("$skip",`${a.start}`),a.infopaneItemCount&&(this.requestQueryParams.set("infopaneCount",`${a.infopaneItemCount}`),!1===a.complexInfopaneEnabled&&this.requestQueryParams.set("cipenabled","false")),D>0&&this.requestQueryParams.set(b.i$,D.toString()),(a.useDelta||a.sessionId)&&(!1!==a.useDelta&&this.requestQueryParams.set("delta","true"),a.sessionId&&this.requestQueryParams.set("session",a.sessionId)),a.channel&&this.requestQueryParams.set("channel",a.channel)}let M,O,L,F;"UserFre"===a.query&&this.requestQueryParams.set("entityIds",a.userFreCandidatesSetId),d.jG.SendFeedCallActivityIdInHeader&&this.requestQueryParams.delete("activityId"),I.search=this.requestQueryParams.toString();try{const e=(0,T.N)()?1e4:800,t=yield(0,m.w)((()=>(0,i.mG)(this,void 0,void 0,(function*(){return this.config.useFetchPromise?yield(0,m.O)(decodeURIComponent(I.href),v,e):yield(0,l.Sm)(decodeURIComponent(I.href),e,v)}))),"OneServiceCardProvider.fetch");if(!t||!t.ok&&404!==t.status){L=t?t.status:null,F=t?t.statusText:null;const e=401===L?n.THd:n.p3y;return void f.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t?"OneService returned error response":"OneService response was null",pb:Object.assign(Object.assign({},e.pb),{fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href,statusCode:L,statusText:F}})}))}if(204===t.status||404===t.status)M={feedItems:[]},L=t.status,F=t.statusText,f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.n82),{message:204===t.status?"Empty non first-page response":"Empty first-page response",pb:Object.assign(Object.assign({},n.n82.pb),{fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href,statusCode:L,statusText:F}})}));else{if(a.rawView)return t.json();M=yield t.json()}if(t.headers){t.headers.get("X-Statics-Fallback")&&f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.ovB),{pb:Object.assign(Object.assign({},n.ovB.pb),{customMessage:`Request URL: ${decodeURIComponent(I.href)}`}),message:"Fell back to static content on the feeds call"}));const e=t.headers.get("ddd-tmpl");f.M0.addOrUpdateTmplString(e),O=t.headers.get("ddd-session-id");const a=t.headers.get(o.rD.traceId);this.addOrUpdateIdxId(a);const i=t.headers.get(o.rD.debugId);this.addOrUpdateDebugId(i,!1)}}catch(e){return void f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.u45),{message:"Error while fetching OneService response",pb:Object.assign(Object.assign({},n.u45.pb),{customMessage:`Error: ${e}`,fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href}})}))}if(!M)return void f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.XFR),{message:"Didn't get valid JSON from response.",pb:Object.assign(Object.assign({},n.XFR.pb),{fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href}})}));const P=(this.requestQueryParams.get("t")||"").toLowerCase(),R="tabriver"===P||"tabs"===P,_=this.requestQueryParams.get("responseSchema"),{nextPageUrl:E,feedItems:H}=_===p.c.CardView?(0,k.ni)(M,R):M;if(!H)return void f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.yWd),{message:"Didn't get valid feed items list from response.",pb:Object.assign(Object.assign({},n.yWd.pb),{fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href,responseJson:JSON.stringify(M)}})}));if(!H.length&&!a.start)if(a.isSearchRequest)this.trackEmptyResponseForInterestSearch(a.feedId,a.query,I.href);else if(a.feedId){const{emptyResponseFeedIds:e}=this.config.initialRequest;t||a.feedId.startsWith("Q_")||e&&e.length&&-1!==e.indexOf(a.feedId)||this.trackEmptyResponseForXFeed(a.feedId,I.href)}else a.query?this.trackEmptyResponseForQueryFeed(a.query,I.href):this.trackAppErrorHelper(n.BlE,"OneService returned an empty feed for a myfeed request.",I.href,null,null,"",L,F);if(R)if("tabriver"===P){const e=H.find((e=>"tabbedInfopane"===e.type));e&&e.subItems&&e.subItems.length||f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.$Ej),{pb:Object.assign(Object.assign({},n.$Ej.pb),{feedData:JSON.stringify(M),fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href,responseJson:JSON.stringify(M)}}),message:"TabRiver request returned empty content for tabbed infopane card."}))}else if("tabs"===P){let e=!1;e=!H.length||-1!==H.findIndex((e=>"tabbedInfopane"!==e.type||!e.subItems||!e.subItems.length)),e&&f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.a3w),{pb:Object.assign(Object.assign({},n.a3w.pb),{fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:I.href,responseJson:JSON.stringify(M)}}),message:"Tabs request returned empty content for one or more tabbed infopane cards."}))}let N;if(H.length>=0?N=Object.assign(Object.assign({},a),{nextPageUrl:E,start:(a.start||0)+a.count}):r.k.log(`River has reached end of content stream. requested: ${a.count}, received: ${H.length}`),a.postRequestGrouping){const{start:e,count:t,type:i}=a.postRequestGrouping,n={type:i,subItems:H.splice(e,t)};H.splice(e,0,n)}const z={cardMetadata:H,nextPageRequest:N,sessionId:O,feedContext:M.feed};return this.responseCache.set(a,z),z}))}fetchFromWebWorker(e,t=1e3,a){return(0,T.N)()?(0,c.ot)({id:e},t).then((e=>{const t=e.payload;if(!e.fetched||!t||!t.feedData)return null;t.responseSchema===p.c.CardView&&(t.feedData=(0,k.ni)(t.feedData,t.isTabbedInfopaneResponse));const{nextPageUrl:i,feedItems:n=[]}=t.feedData;let r,o=this.config.initialRequest;if(a&&(o=Object.assign(Object.assign({},o),a)),i&&n.length&&(r=Object.assign(Object.assign({},o),{start:(o.start||0)+o.count,nextPageUrl:i})),o.postRequestGrouping){const{start:e,count:t,type:a}=o.postRequestGrouping,i={type:a,subItems:n.splice(e,t)};n.splice(e,0,i)}const s=t.traceId;this.addOrUpdateIdxId(s);const d=t.debugId;return this.addOrUpdateDebugId(d,!1),{cardMetadata:n,nextPageRequest:r,sessionId:t.sessionId}})):Promise.resolve(null)}clearCache(){this.responseCache=new x}getRequestTimeout(e){const{timeoutMs:t,isSearchRequest:a,query:i,customFeedTimeoutMs:n}=e;return a&&i&&n?n:t}tryAddQueryInterestParams(e){if(!e.useVerticalAsInterest&&!e.useCategoryAsInterest)return!1;const t=(e.useVerticalAsInterest?u.Al.ClientSettings.verticalKey:u.Al.ClientSettings.categoryKey)||"",a=e.verticalCategoryKeyToInterestMapping[t.toLowerCase()],i=a||"news";return this.requestQueryParams.set("query",encodeURIComponent(i)).set("source",e.contentSource),a||e.useCategoryAsInterest&&!t||f.M0.sendAppErrorEvent(Object.assign(Object.assign({},n.US9),{message:"Failed to get content",pb:Object.assign(Object.assign({},n.US9.pb),{customMessage:`Failed to get content for VerticalKey:${d.jG.HostPage.verticalKey} | CategoryKey:${d.jG.HostPage.categoryKey}. Loading fallback views river with ${i} content.`})})),!0}trackAppErrorHelper(e,t,a,i,n,r,o,s){let l="";i&&(l+=`Feed id: ${i}. `),n&&(l+=`Feed query: ${n}. `),f.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t,pb:Object.assign(Object.assign({},e.pb),{customMessage:l,fetchNetworkResponse:{activityId:d.jG.ActivityId,requestUrl:a,responseJson:r,statusCode:o,statusText:s}})}))}trackEmptyResponseForQueryFeed(e,t){this.trackAppErrorHelper(n.huq,"OneService returned an empty feed for a query-powered feed. See property bag for the query.",t,null,e)}trackEmptyResponseForXFeed(e,t){this.trackAppErrorHelper(n.MD5,"OneService returned an empty feed for an x-feed page.",t,e,null)}trackEmptyResponseForInterestSearch(e,t,a){e?this.trackAppErrorHelper(n.L90,"OneService returned an empty feed for a user searched xfeed.",a,e,null):this.trackAppErrorHelper(n.V3_,"OneService returned an empty feed for a user query.",a,null,t)}addOrUpdateIdxId(e){e&&f.M0.addOrUpdateIdxId(e,!1)}addOrUpdateDebugId(e,t){if(t)return delete f.M0.getPageMetadata().joinIdProps[v.ug],void f.M0.addOrUpdateJoinIdProperty(v.ug,e);if(!e)return;const a=f.M0.getPageMetadata().getJoinId(v.ug),i=a?`${a},${e}`:e;f.M0.addOrUpdateJoinIdProperty(v.ug,i)}isRequestCacheable(e){return!this.config.cacheDisabledRequestPaths||!this.config.cacheDisabledRequestPaths.includes(e)}}$.providerName="OneService"},62938:function(e,t,a){"use strict";var i,n;a.d(t,{c:function(){return i}}),function(e){e.CardView="cardview",e.FlatView="flatview"}(i||(i={})),function(e){e.t3="T3",e.t6="T6"}(n||(n={}))},11684:function(e,t,a){"use strict";a.d(t,{AU:function(){return i},K1:function(){return n},MB:function(){return r},gZ:function(){return s},y1:function(){return o}});const i={FeedDwellTime:"feeddwt",numHotBadgeShown:"hbShn",numHoverContentCardShown:"hcShn",numHoveredCard1Sec:"hc1s",numHoveredCard2Sec:"hc2s",numHoveredCard3Sec:"hc3s",numHoveredCard4Sec:"hc4s",numHoveredCard5MoreSec:"hc5smore",numNativeAdsShown:"naShn",numNonHoverContentCardShown:"nonHcShn",numTrendingBadgeShown:"tbShn",numPopularBadgeShown:"pbShn",numOpinionBadgeShown:"obShn"},n="data-mouseoverStartTime",r="data-badge-type",o="ocidctx";var s;!function(e){e.TRENDING="trending",e.HOT="hot",e.VIEWS="views",e.OPINION="opinion",e.LOCAL="local",e.EXPLICITLIKE="explicitLike",e.FOLLOWEDTREATMENT="followed",e.FOLLOWEDTREATMENTTOPIC="followedTopic",e.FOLLOWEDTREATMENTPUBLISHER="followedPublisher"}(s||(s={}))},59115:function(e,t,a){"use strict";a.d(t,{Ew:function(){return s},JA:function(){return n},Jq:function(){return c},eu:function(){return d},kv:function(){return o},wB:function(){return r},wc:function(){return u},yr:function(){return l}});var i=a(11684);const n=(e,t,a)=>{if(!e||!t)return;const i=e,{href:n}=i;if(n)try{const e=new URL(n);!e.searchParams.get(t)&&a&&(e.host.includes("msn.com")||e.host.includes("msn.cn"))&&(e.searchParams.set(t,a),i.href=e.href)}catch(e){}},r=e=>{if(!e.composedPath||"function"!=typeof e.composedPath)return e.target;{const t=e.composedPath();if(t.length>0)return t[0]}},o=()=>window.performance&&"function"==typeof window.performance.now?window.performance.now():(new Date).getTime(),s=e=>(null==e?void 0:e.toLowerCase())===i.gZ.HOT.toLowerCase(),d=e=>(null==e?void 0:e.toLowerCase())===i.gZ.TRENDING.toLowerCase(),l=e=>(null==e?void 0:e.toLowerCase())===i.gZ.VIEWS.toLowerCase(),c=e=>(null==e?void 0:e.toLowerCase())===i.gZ.OPINION.toLowerCase();function u(e,t){return t?e.filter((e=>t.includes(e.type)))[0]:null}},96345:function(e,t,a){"use strict";a.d(t,{$x:function(){return r},Ef:function(){return d},Ei:function(){return p},FM:function(){return s},SP:function(){return g},_k:function(){return u},_u:function(){return o},c6:function(){return m},dP:function(){return v},gR:function(){return c},o9:function(){return l},pQ:function(){return f},v_:function(){return h}});var i=a(17157);function n(e,t){(0,i.dw)("navigate",e,t)}function r(e){return new Promise(((t,a)=>{n(e,(e=>{t(e)}))}))}function o(e,t){n(e,t)}function s(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("getHttp",e,t)}(e,(e=>{t(e)}))}))}function d(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("postHttp",e,t)}(e,(e=>{t(e)}))}))}function l(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("deleteHttp",e,t)}(e,(e=>{t(e)}))}))}function c(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("logEvent",e,t)}(e,(e=>{t(e)}))}))}function u(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("logError",e,t)}(e,(e=>{t(e)}))}))}function p(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("getDeviceInfo",e,t)}(e,(e=>{t(e)}))}))}function g(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("getLocationInfo",e,t)}(e,(e=>{t(e)}))}))}function h(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("getNetworkInfo",e,t)}(e,(e=>{t(e)}))}))}function m(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("getUserInfo",e,t)}(e,(e=>{t(e)}))}))}function f(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("requestSnackBar",e,t)}(e,(e=>{t(e)}))}))}function v(e){return new Promise(((t,a)=>{!function(e,t){(0,i.dw)("requestCustom",e,t)}(e,(e=>{t(e)}))}))}},17157:function(e,t,a){"use strict";a.d(t,{dw:function(){return s},wq:function(){return n}});a(83648);const i={};function n(){var e,t,a,i;const n=null===(e=window.sapphireWebViewBridge)||void 0===e?void 0:e.send,r=null===(i=null===(a=null===(t=window.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===a?void 0:a.send)||void 0===i?void 0:i.postMessage;return n||r}let r;function o(e,t){var a,i,n,o,s,d,l;console.log(e,t);const c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})),u={scenario:e,data:{data:t},id:c};r&&!u.data.data.appId&&(u.data.data.appId=r);const p=JSON.stringify(u);return(null===(n=null===(i=null===(a=window.webkit)||void 0===a?void 0:a.messageHandlers)||void 0===i?void 0:i.send)||void 0===n?void 0:n.postMessage)&&(null===(d=null===(s=null===(o=window.webkit)||void 0===o?void 0:o.messageHandlers)||void 0===s?void 0:s.send)||void 0===d||d.postMessage(p)),(null===(l=window.sapphireWebViewBridge)||void 0===l?void 0:l.send)&&window.sapphireWebViewBridge.send(p),c}function s(e,t,a){const n=o(e,t);a&&function(e,t){i[e]?i[e].push(t):i[e]=[t]}(n,a)}},59207:function(e,t,a){"use strict";a.d(t,{hP:function(){return b},_4:function(){return v}});var i,n=a(33940);!function(e){e.Android="Android",e.iOS="iOS"}(i||(i={}));var r=a(96345),o=a(54433),s=a(9344),d=a(58155);let l,c,u,p,g,h,m;const f={};function v(){return p}function b(e){return(0,n.mG)(this,void 0,void 0,(function*(){if(l.isSignedIn&&"AAD"===l.accountType){const e=yield(0,r.c6)({refresh:!0,accountType:"AAD"});try{const t=JSON.parse(e);if(t.accessToken&&t.accessToken.length>0)return`Bearer ${t.accessToken}`}catch(e){y(e,"SapphireUserConfig.getAccessToken: Failed to parse AAD access token")}}if(l.isSignedIn&&"MSA"===l.accountType){const t=yield(0,r.c6)({refresh:!0,accountType:"MSA",type:"AccessToken",scope:e});try{const e=JSON.parse(t);if(e.succeed)return e.accessToken}catch(e){y(e,"SapphireUserConfig.getAccessToken: Failed to parse MSA access token")}}return null}))}function C(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,r.Ei)({});try{return JSON.parse(e)}catch(e){y(e,"SapphireUserConfig.getDeviceInformation: Failed to parse response")}}))}function y(e,t){(0,r._k)({type:"Failure",name:"HP_WEBVIEW_APP_ERROR",error:t,data:{error:e,customMessage:t}})}function x(e){if(!e)return"en-us";const t=e.toLowerCase();return"en-id"===t?"en-xl":t}function w(e){"ru-ru"===e.market&&e.detectedCountry&&"RU"!==e.detectedCountry&&(e.market="en-xl");const t=e.market.split("-");t&&2==t.length&&(e.language=t[0],e.countryCode=t[1])}function S(e,t){f[t]||(f[t]=function(e){const t={},a=function(e,t=!1){if(!e)return null;return function(e,t=!1){const a=[];e&&e.startsWith("?")&&(e=e.substring(1));if(e){const i=(e=e.split("#")[0]).split("&");for(let e=0;e<i.length;e++){const n=i[e].split("=");let r=n[0],s=n[1];t&&(r=T(r),s&&(s=T(s)));const d={key:r,value:s},l=(0,o.Z)(a,(e=>e.key===d.key));-1===l?a.push(d):a[l]=d}}return a}((e||"").split("?")[1],t)}(e,!0);a&&a.length&&a.forEach((e=>t[e.key]=e.value));return t}(t));const a=f[t][e];return void 0!==a?a:null}function T(e){return e=e.replace(/\+/g," "),e=decodeURIComponent(e)}function k(){return y(new Error("SapphireUserConfig.uuidv4: Recieved empty activityId"),"Empty activityId"),"xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}!function(e){h=e}((function(e){return(0,n.mG)(this,void 0,void 0,(function*(){p={},window.performance.mark("HP-initUserConfigForOthers-DeviceInformation-Start"),c=yield C(),window.performance.mark("HP-initUserConfigForOthers-DeviceInformation-End"),window.performance.measure("HP-initUserConfigForOthers-DeviceInformation","HP-initUserConfigForOthers-DeviceInformation-Start","HP-initUserConfigForOthers-DeviceInformation-End"),c&&(p.muid=`m-${c.sapphireId}`,p.sapphireId=c.sapphireId,p.anid=c.ANID,p.adid=c.ADID,p.market=x(c.market),p.features=c.expFeatures,p.activityId=c.expActivityId?c.expActivityId:k(),p.isDarkMode=c.isDarkMode,p.platform=c.platform,p.bridgeVersionInt=c.bridgeVersionInt,p.fontSize=c.fontSize,p.isChinaBuild=c.isChinaBuild,p.clientVersion=c.clientVersion,p.packageName=c.packageName,p.installSource=c.installSource,p.detectedCountry=c.detectedCountry?c.detectedCountry:"",p.isEdge=void 0!==c.isEdge&&c.isEdge,p.isEos=void 0!==c.isEos&&c.isEos,p.screenWidth=c.screenWidth,p.screenWidthPx=c.screenWidthPx,p.screenHeight=c.screenHeight,p.screenHeightPx=c.screenHeightPx,p.isBingApp=c.isBingApp,p.isNewsApp=c.isNewsApp,p.adjustCampaign=c.adjustCampaign,p.isFirstSession=c.isFirstSession,w(p)),window.performance.mark("HP-initUserConfigForOthers-UserInformation-Start"),yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,r.c6)({});try{l=JSON.parse(e)}catch(e){y(e,"SapphireUserConfig.getUserInformationInternal: Failed to parse response")}}))}(),window.performance.mark("HP-initUserConfigForOthers-UserInformation-End"),window.performance.measure("HP-initUserConfigForOthers-UserInformation","HP-initUserConfigForOthers-UserInformation-Start","HP-initUserConfigForOthers-UserInformation-End"),l&&(p.accountType=l.accountType,p.isSignedIn=l.isSignedIn),window.performance.mark("HP-initUserConfigForOthers-LocationInformation-Start"),yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,r.SP)({fallbackRevIP:!1});try{u=JSON.parse(e)}catch(e){y(e,"SapphireUserConfig.getLocationInformationInternal: Failed to parse response")}}))}(),window.performance.mark("HP-initUserConfigForOthers-LocationInformation-End"),window.performance.measure("HP-initUserConfigForOthers-LocationInformation","HP-initUserConfigForOthers-LocationInformation-Start","HP-initUserConfigForOthers-LocationInformation-End"),u&&(p.latitude=u.lat,p.longitude=u.lng,p.clientLocationProvider=u.provider,p.clientLocationAccuracy=u.accuracy,p.clientLocationTimeStamp=u.time),window.performance.mark("HP-initUserConfigForOthers-NetworkInformation-Start"),yield function(){return(0,n.mG)(this,void 0,void 0,(function*(){const e=yield(0,r.v_)({});try{g=JSON.parse(e)}catch(e){y(e,"SapphireUserConfig.getNetworkInformation: Failed to parse response")}}))}(),window.performance.mark("HP-initUserConfigForOthers-NetworkInformation-End"),window.performance.measure("HP-initUserConfigForOthers-NetworkInformation","HP-initUserConfigForOthers-NetworkInformation-Start","HP-initUserConfigForOthers-NetworkInformation-End"),g&&(p.networkInfoType=g.type);const t=new URLSearchParams(window.location.search);p.isPageRefresh=!(!t||!t.get("isPageRefresh"))&&"1"===t.get("isPageRefresh"),e&&(e.muid&&(p.muid=e.muid),p.activityId=e.activityId,p.features=e.expFeatures)}))})),function(e){m=e}((function(){return(0,n.mG)(this,void 0,void 0,(function*(){p={};const e=window.location.href;let t;t=null!==d.c.getQueryParameterByName("edge",e)?(0,s.jG)():S("muid",e),p.sapphireId=null!==t?t:"",p.muid=null!==t?`m-${t}`:"";const a=S("adid",e);p.adid=null!==a?a:"";const n=S("market",e);p.market=x(n),w(p);const o=S("features",e);p.features=null!==o?o:"";const c=S("activityId",e);p.activityId=c||k();const g=S("platform",e);p.platform=null!==g?i[g]:"",p.bridgeVersionInt=1;const h=S("bridgeVersionInt",e);h&&(p.bridgeVersionInt=parseInt(h,10));const m=S("isDarkMode",e);p.isDarkMode="true"===m;const f=S("isSignedIn",e);p.isSignedIn="true"===f;const v=S("accountType",e);p.accountType=null!==v?v:"";const b=S("isPageRefresh",e);p.isPageRefresh=null!==b&&"1"===b;const T=S("isChinaBuild",e);p.isChinaBuild="true"===T;const $=S("kids",e);p.isKidsMode=null!==$&&"1"===$;const A=S("fontSize",e);p.fontSize=parseInt(A,10);const I=S("latitude",e);p.latitude=null!==I?I:"";const D=S("longitude",e);p.longitude=null!==D?D:"";const M=S("anid",e);p.anid=null!==M?M:"",l={isSignedIn:p.isSignedIn,accountType:p.accountType},u={lat:I,lng:D};const O=S("clientVersion",e);if(null!==O){p.clientVersion=null!==O?O:"";const t=S("packageName",e);p.packageName=null!==t?t:""}else window.performance.mark("HP-initUserConfigForSuperAppAndroid-DeviceInformation-Start"),C().then((e=>{console.log("getDeviceInfomation Bridge call complete"),window.performance.mark("HP-initUserConfigForSuperAppAndroid-DeviceInformation-End"),window.performance.measure("HP-initUserConfigForSuperAppAndroid-DeviceInformation","HP-initUserConfigForSuperAppAndroid-DeviceInformation-Start","HP-initUserConfigForSuperAppAndroid-DeviceInformation-End"),p.clientVersion=e.clientVersion,p.packageName=e.packageName}));window.performance.mark("HP-initUserConfigForSuperAppAndroid-LocationInformation-Start");const L=S("provider",e);if(null!==L){p.clientLocationProvider=null!==L?L:"";const t=S("accuracy",e);p.clientLocationAccuracy=null!==t?t:"";const a=S("time",e);p.clientLocationTimeStamp=null!==a?a:""}else(0,r.SP)({fallbackRevIP:!1}).then((e=>{console.log("getLocationInfo Bridge call complete"),window.performance.mark("HP-initUserConfigForSuperAppAndroid-LocationInformation-End"),window.performance.measure("HP-initUserConfigForSuperAppAndroid-LocationInformation","HP-initUserConfigForSuperAppAndroid-LocationInformation-Start","HP-initUserConfigForSuperAppAndroid-LocationInformation-End");try{u=JSON.parse(e),console.log("locInfo:",u),u&&(p.latitude=u.lat,p.longitude=u.lng,p.clientLocationProvider=u.provider,p.clientLocationAccuracy=u.accuracy,u.time&&(p.clientLocationTimeStamp=new Date(u.time).toISOString()))}catch(e){y(e,"SapphireUserConfig.initUserConfigForSuperAppAndroid: Failed to parse location response")}}));C().then((e=>{console.log("deviceInfo:",e),p.installSource=e.installSource,p.detectedCountry=e.detectedCountry?e.detectedCountry:"",p.screenWidth=e.screenWidth,p.screenWidthPx=e.screenWidthPx,p.screenHeight=e.screenHeight,p.screenHeightPx=e.screenHeightPx,p.isBingApp=e.isBingApp,p.isNewsApp=e.isNewsApp,p.adjustCampaign=e.adjustCampaign,p.isFirstSession=e.isFirstSession,w(p)}))}))}))},28687:function(e,t,a){"use strict";a.d(t,{XF:function(){return c},Cw:function(){return p},_o:function(){return u},oh:function(){return g},dG:function(){return v},wR:function(){return b},w8:function(){return l},cc:function(){return h},VQ:function(){return C},AG:function(){return d},AJ:function(){return m}});var i=a(33940),n=a(59207),r=a(96345);var o,s=a(17157);!function(e){e.OnlineRetailer="OnlineRetailer",e.Venue="Venue",e.Map="Map",e.Category="Category",e.Promotion="Promotion",e.CardList="Card-List"}(o||(o={}));function d(e,t){const a={action:"requestActionMenu",items:e};(0,r._u)(a,t)}function l(e,t,a,i){f({action:"requestShare",title:t,content:e,image:a,description:i})}function c(e,t,a,n,o,s,d,l,c,u,p,g){return(0,i.mG)(this,void 0,void 0,(function*(){const i={partner:"MySaves",scenario:"Add",category:"News",data:{title:e,key:t,newsId:o,type:s,url:a,timestamp:n,image:l,icon:p,imageHeight:c,imageWidth:u,provider:d,firstCard:g}};return yield(0,r.dP)(i)}))}function u(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={partner:"MySaves",scenario:"Delete",category:"News",filters:{conditions:[{key:"key",value:e,operator:"="}]}};return yield(0,r.dP)(t)}))}function p(e){var t;return(0,i.mG)(this,void 0,void 0,(function*(){const a={partner:"MySaves",scenario:"Get",category:"News",filters:{conditions:[{key:"key",value:e,operator:"="}]}},i=yield(0,r.dP)(a);try{const e=JSON.parse(i);return!0===(null==e?void 0:e.success)&&!!(null===(t=e.result)||void 0===t?void 0:t.length)}catch(e){}return!1}))}function g(e,t,a,n,o,s="long"){return(0,i.mG)(this,void 0,void 0,(function*(){const i={message:e,action:o,period:s,bgColor:t,textColor:a,actionColor:n};return yield(0,r.pQ)(i)}))}function h(e,t){f({deeplink:e,action:t||"requestNativePage"})}function m(e,t,a){f({action:"requestMiniApp",targetAppId:e,page:t,params:a})}function f(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t=yield(0,r.$x)(e);console.log(t)}))}function v(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={};e&&(t.SiteName="www.msn.com");const a=(0,n._4)();if(a){t.MUID=a.muid;const e=yield(0,n.hP)("service::api.msn.com::MBI_SSL");"MSA"===a.accountType&&e?t.UserAuthToken=e:"AAD"===a.accountType&&e&&(t.Authorization=e)}return t}))}function b(e){return(0,i.mG)(this,void 0,void 0,(function*(){const t={};e&&(t.SiteName="www.msn.com");const a=(0,n._4)();if(a){const e=yield(0,n.hP)("service::api.msn.com::MBI_SSL");"MSA"===a.accountType&&e?t.UserAuthToken=e:"AAD"===a.accountType&&e&&(t.Authorization=e)}return t}))}function C(e){(0,s.wq)()&&(0,r.gR)({appId:"0067acd6d05f4168b92f510d33b9ed74",type:"Debug",name:"HP_WEBVIEW_SERVER_LOG",data:{message:e}})}},2314:function(e,t,a){"use strict";a.d(t,{Ai:function(){return J},Am:function(){return F},D8:function(){return b},FJ:function(){return z},Fd:function(){return E},H9:function(){return K},HN:function(){return l},I4:function(){return O},I8:function(){return o},J4:function(){return A},K8:function(){return U},KN:function(){return P},N_:function(){return N},O7:function(){return m},Ou:function(){return v},P0:function(){return M},Pe:function(){return L},Rf:function(){return B},TV:function(){return k},UN:function(){return T},Us:function(){return y},Xk:function(){return r},Zt:function(){return w},bj:function(){return j},ck:function(){return q},d:function(){return H},eD:function(){return $},fs:function(){return C},gW:function(){return X},mW:function(){return S},o1:function(){return Z},q$:function(){return c},qD:function(){return d},rI:function(){return g},sl:function(){return G},tY:function(){return f},tm:function(){return u},uj:function(){return W},wF:function(){return D},w_:function(){return s},x5:function(){return Y},xI:function(){return I},xR:function(){return V},x_:function(){return p},zL:function(){return x},zw:function(){return h}});var i=a(38156),n=a(99478);const r="https://go.microsoft.com/fwlink/?LinkId=521839",o=" - ";var s,d,l,c;!function(e){e.preGame="pre-game",e.inprogressGame="inprogress-game",e.postGame="post-game",e.nonlive="non-live"}(s||(s={})),function(e){e.toss="Toss",e.dinner="Dinner",e.drinks="Drinks",e.fog="Fog",e.innings="Innings",e.lunch="Lunch",e.stumps="Stumps",e.tea="Tea",e.break="Break"}(d||(d={})),function(e){e.singleparticipant="single",e.dualparticipants="dual"}(l||(l={})),function(e){e.unknown="Unknown",e.football="Football",e.baseball="Baseball",e.basketball="Basketball",e.basketball3x3="Basketball3x3",e.cricket="Cricket",e.icehockey="IceHockey",e.fieldhockey="FieldHockey",e["auto racing"]="Racing",e.racing="Racing",e.tennis="Tennis",e.soccer="Soccer",e.golf="Golf",e.australianrules="AustralianRules",e.rugbyunion="RugbyUnion",e.rugbyleague="RugbyLeague",e.archery="Archery",e.athletics="Athletics",e.badminton="Badminton",e.cycling="Cycling",e.boxing="Boxing",e.canoeing="Canoeing",e.climbing="Climbing",e.equestrianism="Equestrianism",e.fencing="Fencing",e.gymnasticsartistic="GymnasticsArtistic",e.gymnasticsrhytmic="GymnasticsRhytmic",e.gymnasticstrampoline="GymnasticsTrampoline",e.handball="Handball",e.judo="Judo",e.karate="Karate",e.summerolympics="SummerOlympics",e.paralympics="Paralympics",e.pentathlon="Pentathlon",e.swimmingartistic="SwimmingArtistic",e.swimming="Swimming",e.diving="Diving",e.waterpolo="WaterPolo",e.rowing="Rowing",e.sailing="Sailing",e.shooting="Shooting",e.skateboarding="Skateboarding",e.surfing="Surfing",e.taekwondo="Taekwondo",e.triathlon="Triathlon",e.tabletennis="TableTennis",e.volleyballteam="VolleyballTeam",e.volleyballbeach="VolleyballBeach",e.weightlifting="Weightlifting",e.wrestling="Wrestling",e.softball="Softball",e.trackandfield="TrackAndField",e.mma="MMA",e.netball="Netball",e.boccia="Boccia"}(c||(c={}));const u=new Map([[c.soccer,new Set(["*"])],[c.football,new Set(["Football_NFL","Football_CollegeFootball"])],[c.baseball,new Set(["Baseball_MLB"])],[c.icehockey,new Set(["*"])],[c.basketball,new Set(["*"])]]);var p,g;!function(e){e.singleRace="MotorSportsSingleRace",e.raceList="MotorSportsRaceList"}(p||(p={}));!function(e){e[e.MotorSports=0]="MotorSports",e[e.GolfSports=1]="GolfSports",e[e.NFLDraft=2]="NFLDraft",e[e.Default=3]="Default"}(g||(g={}));const h={TeamStandings:"MotorSportsTeamStandings",DriverStandings:"MotorSportsDriverStandings"};var m;!function(e){e.scheduledTournaments="GolfSchedule",e.leaderboard="GolfLeaderBoard"}(m||(m={}));const f={Badge:"Badge",Preview:"PreviewCard"},v={SportsCard:"SportsCard",SportsPreview:"SportsPreview",SportsSptlgt:"SportsSptlgt",Badge:"SportsBadge",TaskbarRotation:"SportsTBR"};var b;!function(e){e.SportsCard="SportsCard",e.Homepage="homepage",e.Game="sports_game",e.Header="sports_header",e.SeeMore="seemore",e.SeeMoreSports="seemore_sportsvertical",e.Customization="sportscard_customization",e.MoreSettings="sportscard_customization_moresettings",e.Vertical="sports",e.DislikeSports="HideSport",e.HideSportsCard="HideSportsCard",e.SaveSetting="done",e.CancelSetting="Cancel",e.SportsInput="searchsports",e.SportsSuggest="suggestresult",e.SportsSuggestUrl="suggesturl",e.ConfidenceScoreKey="cs",e.PreviousMatch="PreviousSlideArrow",e.NextMatch="NextSlideArrow",e.AddSports="FollowWizard",e.AddSportsMenu="FollowTeamOrLeague",e.FollowSports="Follow",e.UnFollowSports="Unfollow",e.GoBack="Goback",e.EditSports="FollowWizard",e.ClickCarouselDot="CarouselDotClick",e.MotorSports="Motorsports",e.MotorRace="sing",e.MotorRaceTime="sports_gametime",e.MotorRaceScore="sports_gamescore",e.GolfSports="Golfsports",e.GolfParticipantScore="sports_participantscore",e.GolfParticipantTeeTime="sports_participantteetime",e.SportsVideo="sports_video",e.SportsNavButton="sports_header",e.SportsNavList="sports_header",e.SportsNavSearchButton="sports_nav_search",e.ReminderLink="FollowReminderLink",e.ReminderClose="FollowReminderClose",e.FREDone="done",e.FRESeemore="fre_seemore",e.SportsFRE="freexperience",e.SportsItem="sportsitem",e.HoverTeam="hover_team",e.FollowTeam="follow_team",e.SuperBowlCard="SuperBowlCard",e.SportsFeedback="SportsFeedback",e.ChangeLeagueTeam="ChangeLeagueTeam",e.Feedback="Feedback",e.PopupHideSport="PopupHideSport",e.PopupHide="popup_hide",e.PopupCancel="popup_cancel",e.PopupClose="popup_close",e.SendFeedback="feedback_send",e.CancelFeedback="feedback_cancel",e.CloseFeedback="feedback_close",e.HideReminder="SportsHideReminder",e.HideReminderSetting="reminder_settings",e.HideReminderManageCard="reminder_managecard",e.HideReminderRefreshFeed="reminder_refreshfeed",e.MarchMadnessCard="MarchMadnessCard",e.NFLDraft="NFLDraft",e.SportsArticle="sports_article",e.NBAFinals="NBAFinals",e.NHLFinals="NHLFinals",e.Articles="Articles",e.Standings="Standings",e.SportsCarousel="SportsCarousel",e.RevertFollow="RevertFollow"}(b||(b={}));const C={League:"League",Team:"Team"},y={Dislike:"Dislike",Follow:"Follow"},x={TeamVsTeam:"TeamVsTeam",ColdStart:"ColdStart"},w={SportsMatches:"SportsMatches",Standings:"Standings",Articles:"Articles"};var S;!function(e){e.SuperDesign="SuperDesign",e.MarchMadness="MarchMadness",e.NFLDraft="NFLDraft",e.NBAFinals="NBAFinals",e.NHLFinals="NHLFinals",e.SeriesFinals="SeriesFinals",e.Articles="Articles",e.Standings="Standings",e.SideBySide="SideBySide",e.LeaderBoard="LeaderBoard",e.Formular1="Formular1",e.Video="Video",e.Default="Default",e.Combined="Combined"}(S||(S={}));const T={NBA:"Basketball_NBA",NHL:"IceHockey_NHL"},k=new Set(["Basketball_NBA","IceHockey_NHL"]),$="b7a76276-375a-718b-52d9-49eae9b263a4";var A,I;!function(e){e.Small="_1x_1y",e.Medium="_1x_2y",e.Large="_1x_3y"}(A||(A={})),function(e){e.fullFill="fullwidth",e.continuous="continuous"}(I||(I={}));const D={dark:"dark",light:"light"},M=3,O="#",L=e=>{const t={video:"video",highlight:"videoHighlight",preview:"videoPreview"};return e&&t[e.toLowerCase()]||t.video};const F=(e,t,a,n,r)=>{var o;if(!e)return;const s=r&&r.zone,d=t||[],l=a||{},u=l.leagueName||b.SportsFRE,p=l.leagueId||b.SportsFRE,g=l.sportType||c.unknown,h=l.cardTitleClickthroughUrl,m=null!==(o=l.primaryEntityId)&&void 0!==o?o:p,f=l.seeMoreLeagueClickthroughUrl,v=l.seeMoreSportsClickthroughUrl,C=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:s}),y=C.addOrUpdateChild({name:b.SportsCard,behavior:i.wu.Navigate,destinationUrl:h,overrideDestinationUrl:h,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),x=C.addOrUpdateChild({name:b.Header,behavior:i.wu.Navigate,destinationUrl:h,overrideDestinationUrl:h,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),w=C.addOrUpdateChild({name:b.Customization,behavior:i.wu.More,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.Customization,type:i.uH.StructuredData,id:p,brandId:m},type:i.c9.Interaction,ext:n,zone:s}),S=C.addOrUpdateChild({name:b.SeeMore,behavior:i.wu.Navigate,destinationUrl:f||v,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),T=C.addOrUpdateChild({name:b.SeeMoreSports,behavior:i.wu.Navigate,destinationUrl:v||f,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),k=C.addOrUpdateChild({name:b.MoreSettings,behavior:i.wu.Navigate,overrideDestinationUrl:`${window.location.origin||""}/personalize`,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},type:i.c9.ActionButton,ext:n,zone:s}),$=C.addOrUpdateChild({name:b.DislikeSports,behavior:i.wu.Dislike,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.DislikeSports,type:i.uH.StructuredData,id:m,brandId:m},type:i.c9.ActionButton,ext:n,zone:s}),A=C.addOrUpdateChild({name:b.HideSportsCard,behavior:i.wu.Hide,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.HideSportsCard,type:i.uH.StructuredData,id:m,brandId:m},type:i.c9.ActionButton,ext:n,zone:s}),I=C.addOrUpdateChild({name:b.Feedback,behavior:i.wu.Report,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:m,brandId:m},type:i.c9.ActionButton,ext:n,zone:s}),D=new Map,M=new Map,O=new Map,L=new Map;d.length>0&&d.forEach((e=>{if(!e||!e.sportsMatchData)return;const t=e.sportsMatchData.gameId,a=C.addOrUpdateChild({name:b.Game,behavior:i.wu.Navigate,destinationUrl:e.sportsMatchData.matchClickthroughUrl||h,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s});if(D.set(e.sportsMatchData.matchClickthroughUrl,null==a?void 0:a.getMetadataTag()),M.set(t,a),e.sportsMatchData.videoImageUrl){const a=C.addOrUpdateChild({name:b.SportsVideo,behavior:i.wu.Navigate,destinationUrl:e.sportsMatchData.matchClickthroughUrl||h,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s});L.set(t,a)}e.sportsMatchData.participantOne&&e.sportsMatchData.participantOne.satoriId&&O.set(e.sportsMatchData.participantOne.satoriId,{hoverTeam:C.addOrUpdateChild({name:b.HoverTeam,behavior:i.wu.Show,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.HoverTeam,type:i.uH.StructuredData,id:e.sportsMatchData.participantOne.satoriId,brandId:m},ext:n,zone:s}),followTeam:C.addOrUpdateChild({name:b.FollowTeam,behavior:i.wu.Follow,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.FollowTeam,type:i.uH.StructuredData,id:e.sportsMatchData.participantOne.satoriId,brandId:m},ext:n,zone:s})}),e.sportsMatchData.participantTwo&&e.sportsMatchData.participantTwo.satoriId&&O.set(e.sportsMatchData.participantTwo.satoriId,{hoverTeam:C.addOrUpdateChild({name:b.HoverTeam,behavior:i.wu.Show,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.HoverTeam,type:i.uH.StructuredData,id:e.sportsMatchData.participantTwo.satoriId,brandId:m},ext:n,zone:s}),followTeam:C.addOrUpdateChild({name:b.FollowTeam,behavior:i.wu.Follow,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.FollowTeam,type:i.uH.StructuredData,id:e.sportsMatchData.participantTwo.satoriId,brandId:m},ext:n,zone:s})})}));const F=C.addOrUpdateChild({name:b.SaveSetting,behavior:i.wu.Save,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.SaveSetting,type:i.uH.StructuredData,id:m,brandId:m},ext:n,zone:s}),P=C.addOrUpdateChild({name:b.CancelSetting,behavior:i.wu.Cancel,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.CancelSetting,type:i.uH.StructuredData,id:m,brandId:m},ext:n,zone:s}),R=C.addOrUpdateChild({name:b.SportsInput,behavior:i.wu.TextSearch,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.SportsInput,type:i.uH.StructuredData,id:m,brandId:m},type:i.c9.InputBox,ext:n,zone:s}),_=C.addOrUpdateChild({name:b.PreviousMatch.toLowerCase(),behavior:i.wu.Paginate,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.PreviousMatch,type:i.uH.StructuredData,id:m,brandId:m},ext:n,zone:s}),E=C.addOrUpdateChild({name:b.NextMatch.toLowerCase(),behavior:i.wu.Paginate,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.NextMatch,type:i.uH.StructuredData,id:m,brandId:m},ext:n,zone:s}),H=C.addOrUpdateChild({name:b.AddSports,action:i.Aw.View,behavior:i.wu.Customize,destinationUrl:"",content:{vertical:b.Vertical,type:i.uH.StructuredData,id:m,brandId:m},type:i.c9.Module,ext:n,zone:s}),N=C.addOrUpdateChild({name:b.AddSportsMenu,behavior:i.wu.Open,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.AddSportsMenu,type:i.uH.StructuredData,id:m,brandId:m},type:i.c9.ActionButton,ext:n,zone:s}),z=C.addOrUpdateChild({name:b.SportsItem,behavior:i.wu.Follow,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.SportsItem,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),U=C.addOrUpdateChild({name:b.GoBack,behavior:i.wu.Paginate,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.GoBack,type:i.uH.StructuredData,id:p,brandId:m},type:i.c9.Interaction,ext:n,zone:s}),j=C.addOrUpdateChild({name:b.EditSports,behavior:i.wu.Customize,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:b.EditSports,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),B=C.addOrUpdateChild({name:b.SportsCarousel,behavior:i.wu.View,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),W=C.addOrUpdateChild({name:b.ClickCarouselDot,behavior:i.wu.Paginate,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),G=C.addOrUpdateChild({name:b.SportsNavButton,behavior:i.wu.Show,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),V=C.addOrUpdateChild({name:b.SportsNavList,behavior:i.wu.View,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),q=C.addOrUpdateChild({name:b.ReminderClose,behavior:i.wu.Close,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),Z=C.addOrUpdateChild({name:b.SportsFRE,behavior:i.wu.View,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),J=C.addOrUpdateChild({name:b.FREDone,behavior:i.wu.Complete,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s}),Q=C.addOrUpdateChild({name:b.SportsNavSearchButton,behavior:i.wu.Customize,destinationUrl:"",content:{vertical:b.Vertical,category:u,headline:u,type:i.uH.StructuredData,id:p,brandId:m},ext:n,zone:s});return{componentRoot:e,sportsCard:y,destinations:D,games:M,header:x,actionButton:w,seeMoreLeague:S,seeMoreSports:T,menuMoreSettings:k,menuHideSportsCard:A,menuDislikeSport:$,saveSetting:F,cancelSetting:P,sportsInput:R,previousMatch:_,nextMatch:E,addSports:H,menuAddSports:N,followSports:z,goBack:U,editSports:j,sportsCarousel:B,clickCarouselDot:W,videos:L,sportsNavButton:G,sportsNavList:V,sportsNavSearchButton:Q,reminderClose:q,freExperience:Z,freDone:J,teams:O,menuFeedback:I}},P=(e,t,a,n,r)=>{if(!e||!t)return null;const o=r&&r.zone,s=r&&r.behavior,d=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:o}),l=t.primaryEntityId,u=t.leagueName,p=t.leagueId,g=t.sportType||c.unknown;let h;switch(a){case S.SuperDesign:h=b.SuperBowlCard;break;case S.MarchMadness:h=b.MarchMadnessCard;break;case S.NFLDraft:h=b.NFLDraft;break;case S.NBAFinals:h=b.NBAFinals;break;case S.NHLFinals:h=b.NHLFinals;break;case S.Articles:h=b.Articles;break;case S.Standings:h=b.Standings;break;default:return null}return d.addOrUpdateChild({name:h,behavior:s||i.wu.View,destinationUrl:t.cardTitleClickthroughUrl,content:{vertical:b.Vertical,category:u,headline:g,type:i.uH.StructuredData,id:p,brandId:l},ext:n,zone:o})};function R(e){const t=null==e?void 0:e.dataType;return t==m.leaderboard||t==m.scheduledTournaments?b.GolfSports:t==p.raceList||t==p.singleRace?b.MotorSports:b.SportsCard}function _(e,t,a){switch(null==e?void 0:e.dataType){case m.leaderboard:return b.GolfParticipantScore;case m.scheduledTournaments:return R(e);case p.singleRace:return t?b.MotorRaceTime:b.MotorRaceScore;case p.raceList:return R(e)}return b.SportsCard}const E=(e,t,a,n,r)=>{if(!e||!t)return null;const o=null!=a?a:"",s=r&&r.zone;return e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:s}).addOrUpdateChild({name:b.ReminderLink,behavior:i.wu.Navigate,content:{headline:t.sportType||c.unknown,vertical:b.Vertical,category:t.name,type:i.uH.StructuredData,id:t.leagueId,brandId:o},overrideDestinationUrl:t.webSearchUrl||(null==r?void 0:r.fallbackUrl),ext:n,zone:s})},H=(e,t,a,n,r)=>{if(!e||!t)return null;const o=null!=a?a:"",s=r&&r.zone;return e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:s}).addOrUpdateChild({name:b.RevertFollow,behavior:i.wu.Follow,content:{headline:t.name,vertical:b.Vertical,category:t.name,type:i.uH.StructuredData,id:t.id,brandId:o},destinationUrl:"",ext:n,zone:s})},N=(e,t,a,n,r,o)=>{if(!e)return null;const s=o&&o.zone;return e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:s}).addOrUpdateChild({name:b.SportsInput,behavior:i.wu.TextSearch,destinationUrl:"",content:{vertical:b.Vertical,category:a,subcategory:t,headline:b.SportsInput,type:i.uH.StructuredData,id:n,brandId:n},type:i.c9.InputBox,ext:r,zone:s})},z=(e,t,a,n,r=!1,o)=>{if(!e||!t)return null;const s=null!=a?a:"",d=o&&o.zone,l=t.sportType||c.unknown,u=e.addOrUpdateChild({name:r?b.AddSports:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:d});return{componentRoot:e,webSearchUrl:u.addOrUpdateChild({name:b.SportsSuggestUrl,behavior:i.wu.Navigate,content:{headline:l,vertical:b.Vertical,category:t.name,type:i.uH.StructuredData,id:t.leagueId,brandId:s},overrideDestinationUrl:t.webSearchUrl||(null==o?void 0:o.fallbackUrl),ext:n,zone:d}),followEntity:u.addOrUpdateChild({name:r?b.FollowSports:b.SportsItem,behavior:i.wu.Follow,content:{headline:t.name,vertical:b.Vertical,category:t.name,type:i.uH.StructuredData,id:t.id,brandId:s},destinationUrl:"",ext:n,zone:d}),unFollowEntity:u.addOrUpdateChild({name:r?b.UnFollowSports:b.SportsItem,behavior:i.wu.Unfollow,content:{headline:t.name,vertical:b.Vertical,category:t.name,type:i.uH.StructuredData,id:t.id,brandId:s},destinationUrl:"",ext:n,zone:d}),navToEntity:u.addOrUpdateChild({name:b.SportsItem,behavior:i.wu.Refresh,content:{headline:t.name,vertical:b.Vertical,category:t.name,type:i.uH.StructuredData,id:t.id,brandId:s},overrideDestinationUrl:t.webSearchUrl,ext:n,zone:d})}},U=(e,t,a,n,r)=>{var o,d,l,u;if(!e||!t)return null;const p=r&&r.zone,g=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,ext:n,zone:p}),h=F(e,t,a,n);null===(o=h.games)||void 0===o||o.clear();const m=t||[],f=null!==(d=a.primaryEntityId)&&void 0!==d?d:"",v=t.sportType||c.unknown;if((null==t?void 0:t.length)>0&&t[0]&&(null===(l=t[0].sportsMatchData)||void 0===l?void 0:l.gameStateCatetory)===s.preGame&&m.forEach((e=>{const t=g.addOrUpdateChild({name:_(a,!1),behavior:i.wu.Navigate,content:{vertical:b.Vertical,category:R(a),subcategory:a.leagueName,headline:v,type:i.uH.StructuredData,id:e.sportsMatchData.gameId,brandId:f},overrideDestinationUrl:e.sportsMatchData.matchClickthroughUrl||a.headerClickThroughUrl,ext:n,zone:p});h.games.set(e.sportsMatchData.gameId,t)})),(null==t?void 0:t.length)>0&&t[0]&&t[0].sportsMatchData&&(null===(u=t[0].sportsMatchData)||void 0===u?void 0:u.gameStateCatetory)!==s.preGame&&m.length>0){const e=g.addOrUpdateChild({name:m[0].sportsMatchData.gameStateCatetory===s.inprogressGame?_(a,!0):_(a,!1),behavior:i.wu.Navigate,content:{vertical:b.Vertical,category:R(a),headline:v,subcategory:a.leagueName,type:i.uH.StructuredData,id:m[0].sportsMatchData.gameId,brandId:f},overrideDestinationUrl:m[0].sportsMatchData.matchClickthroughUrl||a.headerClickThroughUrl,ext:n,zone:p});h.games.set(m[0].sportsMatchData.gameId,e)}return h},j=(e,t,a,n)=>{if(!e)return null;const r=n&&n.zone,o=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:r}),s=t&&t.sportsMatchupCardData.primaryEntityId,d=t&&t.sportsMatchupCardData.primaryEntityName,l=t&&t.sportsMatchupCardData.leagueName,c=b.PopupHideSport;return{componentRoot:e,hidePopupView:o.addOrUpdateChild({name:b.PopupHideSport,behavior:i.wu.View,content:{headline:b.PopupHideSport,vertical:b.Vertical,category:c,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),changeLeagueTeam:o.addOrUpdateChild({name:b.ChangeLeagueTeam,behavior:i.wu.Customize,content:{headline:b.ChangeLeagueTeam,vertical:b.Vertical,category:c,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),feedback:o.addOrUpdateChild({name:b.Feedback,behavior:i.wu.Paginate,content:{headline:b.Feedback,vertical:b.Vertical,category:c,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),popupHideSport:o.addOrUpdateChild({name:b.PopupHide,behavior:i.wu.Hide,content:{headline:b.PopupHide,vertical:b.Vertical,category:c,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),popupCancel:o.addOrUpdateChild({name:b.PopupCancel,behavior:i.wu.Cancel,content:{headline:b.PopupCancel,vertical:b.Vertical,category:c,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),popupClose:o.addOrUpdateChild({name:b.PopupClose,behavior:i.wu.Close,content:{headline:b.PopupClose,vertical:b.Vertical,category:c,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),menuDislikeSport:o.addOrUpdateChild({name:b.DislikeSports,behavior:i.wu.Dislike,destinationUrl:"",content:{vertical:b.Vertical,category:l,headline:b.DislikeSports,type:i.uH.StructuredData,id:s,brandId:s},type:i.c9.ActionButton,ext:a,zone:r})}},B=(e,t,a,n)=>{if(!e)return null;const r=n&&n.zone,o=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:r}),s=t&&t.sportsMatchupCardData.primaryEntityId,d=t&&t.sportsMatchupCardData.primaryEntityName,l=b.HideReminder;return{componentRoot:e,reminderView:o.addOrUpdateChild({name:b.HideReminder,behavior:i.wu.View,content:{headline:b.HideReminder,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),reminderSetting:o.addOrUpdateChild({name:b.HideReminderSetting,behavior:i.wu.Paginate,content:{headline:b.HideReminderSetting,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),reminderManageCard:o.addOrUpdateChild({name:b.HideReminderManageCard,behavior:i.wu.Paginate,content:{headline:b.HideReminderManageCard,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),reminderRefreshFeed:o.addOrUpdateChild({name:b.HideReminderRefreshFeed,behavior:i.wu.Refresh,content:{headline:b.HideReminderRefreshFeed,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r})}},W=(e,t,a,n)=>{if(!e)return null;const r=n&&n.zone,o=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:r}),s=t&&t.sportsMatchupCardData.primaryEntityId,d=t&&t.sportsMatchupCardData.primaryEntityName,l=b.SportsFeedback;return{componentRoot:e,feedbackView:o.addOrUpdateChild({name:b.SportsFeedback,behavior:i.wu.View,content:{headline:b.SportsFeedback,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),sendFeedback:o.addOrUpdateChild({name:b.SendFeedback,behavior:i.wu.Report,content:{headline:b.SendFeedback,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),cancelFeedback:o.addOrUpdateChild({name:b.CancelFeedback,behavior:i.wu.Cancel,content:{headline:b.CancelFeedback,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r}),closeFeedback:o.addOrUpdateChild({name:b.CloseFeedback,behavior:i.wu.Close,content:{headline:b.CloseFeedback,vertical:b.Vertical,category:l,type:i.uH.StructuredData,id:d,brandId:s},ext:a,zone:r})}},G=(e,t,a,n)=>{if(!e||!t||!t.sportsMatchupCardData)return null;const r=n&&n.zone,o=e.addOrUpdateChild({name:b.SportsCard,action:i.Aw.View,type:i.c9.Module,zone:r}),s=t.sportsMatchupCardData,d=s.primaryEntityId,l=s.leagueName||b.SportsFRE,u=s.leagueId||b.SportsFRE,p=s.sportType||c.unknown,g=new Map;t.articleData&&t.articleData.articles&&t.articleData.articles.length>0&&t.articleData.articles.forEach((e=>{if(!e||!e.articleId)return;const t=o.addOrUpdateChild({name:b.SportsArticle,behavior:i.wu.Navigate,destinationUrl:e.articleUrl,overrideDestinationUrl:e.articleUrl,content:{vertical:b.Vertical,category:l,headline:p,type:i.uH.StructuredData,id:u,brandId:d},ext:a,zone:r});g.set(e.articleId,t)}));return{componentRoot:e,articles:g}};function V(e){return!!e&&("cricket"===e.toLowerCase()||"tennis"===e.toLowerCase())}function q(e){return e===$}function Z(e,t=2){if(!e||e.length<2)return e;let a=e.filter((e=>e.sportsMatchData.gameStateCatetory==s.inprogressGame)),i=e.filter((e=>e.sportsMatchData.gameStateCatetory==s.preGame)),n=e.filter((e=>e.sportsMatchData.gameStateCatetory!=s.inprogressGame&&e.sportsMatchData.gameStateCatetory!=s.preGame));const r=(new Date).getTime();a=a&&a.sort(((e,t)=>r-e.sportsMatchData.gameStartDateTime-(r-t.sportsMatchData.gameStartDateTime)))||[],i=i&&i.sort(((e,t)=>e.sportsMatchData.gameStartDateTime-t.sportsMatchData.gameStartDateTime))||[],n=n&&n.sort(((e,t)=>t.sportsMatchData.gameStartDateTime-e.sportsMatchData.gameStartDateTime))||[];const o=a.length,d=i.length,l=n.length;switch(o){case 0:return 0==d?n:1==d?i.concat(n):l>0?i.slice(0,t).concat(n).concat(i.slice(t)):i;case 1:return 0==d?a.concat(n):1==d?i.concat(a).concat(n):l>0?i.slice(0,1).concat(a).concat(n).concat(i.slice(1)):i.slice(0,t).concat(a).concat(i.slice(t));case 2:return 0==d?a.concat(n):l>0?i.slice(0,1).concat(a).concat(n).concat(i.slice(1)):i.slice(0,1).concat(a).concat(i.slice(1));default:return a.concat(i).concat(n)}}function J(e){if(!e||e.length<2)return{todayMatches:e||[],preGameMatches:[],finalMatches:[]};const t=(new Date).getTime(),a=e.filter((e=>e.sportsMatchData.gameStateCatetory==s.inprogressGame||!e.sportsMatchData.gameStateCatetory&&e.sportsMatchData.cricketGameCategory))||[];let i=e.filter((e=>e.sportsMatchData.gameStateCatetory&&e.sportsMatchData.gameStateCatetory!=s.inprogressGame&&Q(t,e.sportsMatchData.gameStartDateTime)));i=(null==i?void 0:i.sort(((e,t)=>e.sportsMatchData.gameStateCatetory==s.preGame&&t.sportsMatchData.gameStateCatetory==s.preGame?e.sportsMatchData.gameStartDateTime-t.sportsMatchData.gameStartDateTime:e.sportsMatchData.gameStateCatetory==s.preGame||t.sportsMatchData.gameStateCatetory==s.preGame?e.sportsMatchData.gameStateCatetory==s.preGame?-1:1:t.sportsMatchData.gameStartDateTime-e.sportsMatchData.gameStartDateTime)))||[];const n=a.concat(i);let r=e.filter((e=>e.sportsMatchData.gameStateCatetory==s.preGame&&!Q(t,e.sportsMatchData.gameStartDateTime)));r=(null==r?void 0:r.sort(((e,t)=>e.sportsMatchData.gameStartDateTime-t.sportsMatchData.gameStartDateTime)))||[];let o=e.filter((e=>e.sportsMatchData.gameStateCatetory&&e.sportsMatchData.gameStateCatetory!=s.inprogressGame&&e.sportsMatchData.gameStateCatetory!=s.preGame&&!Q(t,e.sportsMatchData.gameStartDateTime)));return o=(null==o?void 0:o.sort(((e,t)=>t.sportsMatchData.gameStartDateTime-e.sportsMatchData.gameStartDateTime)))||[],{todayMatches:n,preGameMatches:r,finalMatches:o}}function Q(e,t){return new Date(e).getDate()===new Date(t).getDate()&&Math.abs(e-t)<864e5}function X(e){return e.sort(((e,t)=>e.sportsMatchData.gameStartDateTime-t.sportsMatchData.gameStartDateTime))}function Y(e){return(0,n.TF)(e)?c.unknown:K(e.split("_")[0])}function K(e){if(!e)return c.unknown;const t=c[e.toLowerCase()];return t||c.unknown}},15448:function(e,t,a){"use strict";a.d(t,{_:function(){return i}});var i,n=a(2314),r=a(62584),o=a(68364),s=a(26415),d=a(36068),l=a(53909),c=a(79703),u=a(44772),p=a(19628),g=a(85663),h=a(99478);!function(e){l.D3.PNG;const t={width:44,height:44,enableDpiScaling:!1,format:l.D3.PNG},a={width:60,height:60,enableDpiScaling:!1,format:l.D3.PNG};function i(t,i=5,r=null){var l,c,u;if(t.Model.DataType==n.zL.ColdStart)return function(e){if(e&&e.Model&&e.Model.FreCards&&e.Model.FreCards.length>0){const t=[];return e.Model.FreCards.forEach((e=>{e&&e.SatoriId&&e.LocalizedName&&t.push({id:e.SatoriId,name:e.LocalizedName,imageUrl:(0,d.xx)(e.CMSImageId,a),primaryColor:`#${e.PrimaryColor}`})})),{sportsFREData:t,sportsMatchupCardData:{dataType:n.zL.ColdStart}}}return(0,o.H)(s.eBj,"Sports FRE Card has no entries.",` Market=${(0,d.pc)()} FREData=${e&&e.Model&&e.Model.FreCards}`),null}(t);const p=(0,d.pc)(),h=function(e){if(e.Model.DataType&&e.Model.DataType===n.x_.raceList||e.Model.DataType===n.x_.singleRace)return n.rI.MotorSports;if(e.Model.DataType&&(e.Model.DataType===n.O7.scheduledTournaments||e.Model.DataType===n.O7.leaderboard))return n.rI.GolfSports;if(e.Model.DataType&&e.Model.DataType===n.rI[n.rI.NFLDraft])return n.rI.NFLDraft;return n.rI.Default}(t);let b=null;if(t.Model.LogMessage)try{b=JSON.parse(t.Model.LogMessage)}catch(e){(0,o.H)(s.l$l,"Sports card LogMessage Json parsing error.",` LogMessage=${t.Model.LogMessage} Error thrown=${e}`)}const C=w(t.Model);let y;if(t.Model&&t.Model.Tabs&&t.Model.Tabs.length>0)if(y=function(t,a,i,r=5,l=null){if(t&&t.Model&&t.Model.Tabs){let c=null;try{c=JSON.parse(t.Model.Tabs)}catch(e){return void(0,o.H)(s.wAt,"Sports card Tabs Json parsing error.",` LogMessage=${t.Model.Tabs} Error thrown=${e}`)}let u,p={};const h=new Map,f=parseInt(t.Model.DefaultTabFocus||"0");let b=0;return c&&c.forEach(((c,C)=>{var y;let x=!0;if(c){let w=null;try{w=JSON.parse(c.TabContent)}catch(e){w=null}if(!w)return void(C<=f&&b++);switch(c.TabType){case n.Zt.SportsMatches:{p.sportsMatchupCardData||(u=m(p,t,w,a,i,l));const e=v(t,w,a,i,null==u?void 0:u.sportsMatchupCardData,u.sportsLeagueInfo,u.cardClickBaseUrl,u.isCardClickBlocked,r);p=Object.assign(Object.assign({},p),e),x=(0,g.isNullOrUndefined)(e.sportsMatchOverallData)||!(null===(y=e.sportsMatchOverallData)||void 0===y?void 0:y.length),!x&&h.set(n.Zt.SportsMatches,e.sportsMatchOverallData);break}case n.Zt.Standings:{let r;switch(p.sportsMatchupCardData||(u=m(p,t,w,a,i,l)),t.Model.DataType){case n.zw.TeamStandings:case n.zw.DriverStandings:r=function(t,a,i,r,l){if(!(t&&t.Model&&a&&t.Trans&&r&&a.Standings))return null;if(0==a.Standings.length)return void(0,o.H)(s.bfG,"Sports motor standings has no value.",` LeagueId=${l.id} Market=${i} modelData=${a}`);const c=[],u=t.Model.DataType==n.zw.TeamStandings;return a.Standings.forEach((a=>{if(a){const n=u?a.TeamName:a.PlayerName;c.push({countryFlagImage:a.CountryFlagImage,points:a.Points,position:a.Position,id:u?a.TeamId:a.PlayerId,imageUrl:(0,d.xx)(u?a.TeamImage:a.PlayerImage,e.teamImageInfoEnhanced),name:n,displayName:(0,d.Sz)(a.Loc,i,t.Trans)||n})}})),c.length>0?{type:t.Model.DataType,standings:c}:null}(t,t.Model,i,null==u?void 0:u.sportsMatchupCardData,u.sportsLeagueInfo);break;default:r=function(t,a,i,n,r,l){if(!(t&&t.Model&&a&&t.Trans&&n&&a.Conferences))return null;if(0==a.Conferences.length)return void(0,o.H)(s.bfG,"Sports standings conferences has no value.",` LeagueId=${r.id} Market=${i} modelData=${a}`);const c=[],u=new Map;return a.Header&&a.Header.forEach((e=>{e&&u.set(e.Title,e.TitleLocKey)})),a.Conferences.forEach((a=>{if(a){const n=[];a.Groups&&a.Groups.forEach((a=>{var o;if(a){const s=[];null===(o=a.StandingsTable)||void 0===o||o.forEach((t=>{if(s){const a=t.GameCenterUrlSegment&&`${l}/${t.GameCenterUrlSegment}/${r.urlSegmentGameCenter}/sp-tid-${t.TriggeringId}`,i={url:(0,d.UP)(a),imageUrl:t.ImageId&&(0,d.xx)(t.ImageId,e.teamImageInfoEnhanced),name:t.Name,rank:t.Rank,satoriId:t.SatoriId,isHighlighted:t.IsHighlighted&&(0,d.z3)(t.IsHighlighted)};u.forEach(((e,a)=>{i[a]=t[a]})),s.push(i)}})),n.push({groupName:a.GroupName,groupNameLocKey:a.GroupNameLoc,groupDisplayName:(0,d.Sz)(a.GroupNameLoc,i,t.Trans),standings:s})}})),c.push({name:a.ConferenceName,nameLocKey:a.ConferenceLoc,displayName:(0,d.Sz)(a.ConferenceLoc,i,t.Trans),groups:n})}})),c.length>0?{conferences:c,header:u}:null}(t,w.League,i,null==u?void 0:u.sportsMatchupCardData,u.sportsLeagueInfo,u.cardClickBaseUrl)}x=(0,g.isNullOrUndefined)(r),!x&&h.set(n.Zt.Standings,r);break}case n.Zt.Articles:{p.sportsMatchupCardData||(u=m(p,t,w,a,i,l));const e=k(w,u.sportsLeagueInfo.id,i);x=(0,g.isNullOrUndefined)(e)||!(null==e?void 0:e.length),!x&&h.set(n.Zt.Articles,{articles:e});break}}}x&&C<=f&&b++})),h.size>0?Object.assign(Object.assign({},p),{sportsTabData:h,defaultTabFocus:f-b}):null}}(t,h,p,i,r),y){if(y.sportsMatchupCardData&&(null===(c=y.sportsMatchOverallData)||void 0===c?void 0:c.length))return Object.assign(Object.assign({},y),{logMessage:b,notifications:C})}else(0,o.H)(s.wAt,"Sports card Tabs data error.",` Tabs=${t.Model.Tabs} League=${(null===(l=t.Model.League)||void 0===l?void 0:l.Id)||t.Model.Id}`);const S=function(e,t){switch(e){case n.rI.GolfSports:return t.Tournaments;case n.rI.MotorSports:return t.Races;case n.rI.NFLDraft:return t.Articles||{}}return t.SportsMatches}(h,t.Model),T=f(t,S,h,p,r);if(!T)return void(0,o.H)(s.NvH,"Sports Card data error.",` Model=${t.Model} League=${(null===(u=t.Model.League)||void 0===u?void 0:u.Id)||t.Model.Id}`);const $=Object.assign(Object.assign({},y),{sportsFREData:T.leagueTeams,sportsMatchupCardData:T.sportsMatchupCardData,sportsSkinnyData:x(t.Model,T.sportsLeagueInfo.id,p),logMessage:b,notifications:C}),A=v(t,S,h,p,T.sportsMatchupCardData,T.sportsLeagueInfo,T.cardClickBaseUrl,T.isCardClickBlocked,i);return Object.assign(Object.assign({},$),A)}function m(e,t,a,i,n,r=null){const o=f(t,a,i,n,r);if(o)return e.sportsFREData=o.leagueTeams,e.sportsMatchupCardData=o.sportsMatchupCardData,e.sportsSkinnyData=x(t.Model,o.sportsLeagueInfo.id,n),o}function f(a,i,r,l,c=null){var u,p,g,m,f,v;if(!a||!a.Model||!a.Trans)return null;const b=c&&c.segmentList,y=a.Model.SportsMatches||i||{},x=function(t,a,i,r=null){var o,s,l,c,u;if(!t||!t.Trans)return null;const p=t.Trans,g=a&&(null===(o=a.League)||void 0===o?void 0:o.Id)||t.Model.Id,h=a&&(null===(s=a.League)||void 0===s?void 0:s.SatoriId),m=a&&(null===(l=a.League)||void 0===l?void 0:l.LeagueStartDateTime),f=`DisplayText_${g}`,v=`UrlSegment_${g}`,b="UrlSegment_gamecenter",C="UrlSegment_schedule",y="UrlSegment_standings",x="UrlSegment_score",w="UrlSegment_verticalname_sports",S=r&&r.find((e=>e.market.toLowerCase()===i.toLowerCase())),T="UrlSegment_RaceResults",k="UrlSegment_RaceCalendar",$="UrlSegment_Racing",A=(0,d.Sz)($,i,p),I=A?A+"/"+(0,d.Sz)(v,i,p):(0,d.Sz)(v,i,p),D=S&&S.leagueSegment?S.leagueSegment:I,M=S&&S.sportsVertical?S.sportsVertical:(0,d.Sz)(w,i,p),O=(0,d.Sz)(b,i,p)||(0,d.Sz)(T,i,p),L=(0,d.Sz)(C,i,p)||(0,d.Sz)(k,i,p),F=[],P=`https://${(0,d.FD)(i)}/${i}/${M}/${D}`;return a&&a.League&&(null===(c=a.League.LeagueTeams)||void 0===c||c.forEach((a=>{if(a&&a.SatoriId||a.FeedId){const r=(0,d.Sz)(a.Loc,i,p)||a.Name,o=a.TeamTriggeringId;F.push({id:a.SatoriId,yId:(0,d.Sz)(a.FeedId,i,p)||a.FeedId,name:r,type:n.fs.Team,sportType:t.Model.Sport,leagueId:g,displayText:r,imageUrl:(0,d.xx)(a.ImageId,e.teamImageInfoEnhanced),triggeringId:o,webSearchUrl:o?`${P}/${L}/sp-tid-${o}`:P})}}))),{id:g,satoriId:h,yId:(0,d.Sz)(a&&(null===(u=a.League)||void 0===u?void 0:u.LeagueFeedId),i,p),name:(0,d.Sz)(f,i,p),startDateTime:parseInt(m||"0"),urlSegment:D,urlSegmentGameCenter:O,urlSegmentSchedule:L,urlSegmentSports:M,urlSegmentStandings:(0,d.Sz)(y,i,p),urlSegmentScores:(0,d.Sz)(x,i,p),leagueTeams:F}}(a,y,l,b);if(!x)return null;(0,h.TF)(x.name)&&(0,o.H)(s.hnd,"Sports card title(league name) has no value.",`LeagueId=${x.id} LeagueSatoriId=${x.satoriId}  FeedId=${a.Model.FeedId} primaryEntityId=${a.Model.PrimaryEntityId} Market=${l}`);const w=c&&c.disableMatchClickThroughBySport,S=c&&c.teamImageSize;S&&(S.width&&(e.teamImageInfo.width=S.width),S.height&&(e.teamImageInfo.height=S.height));const T=a.Model.Sport||(null==y?void 0:y.Sport)||"",k=w&&T&&w.filter((e=>e.toLowerCase()==T.toLowerCase())).length>0,$=`https://${(0,d.FD)(l)}/${l}/${x.urlSegmentSports}/${x.urlSegment}`,A=`https://${(0,d.FD)(l)}/${l}/${x.urlSegmentSports}`;let I,D,M=(0,h.TF)(x.urlSegmentSports)||(0,h.TF)(x.urlSegment)||(0,h.TF)(x.urlSegmentSchedule)?null:`${$}/${x.urlSegmentSchedule}`,O=null===(u=x.name)||void 0===u?void 0:u.toLocaleUpperCase();const L=(0,h.TF)(x.urlSegmentStandings)?null:`${$}/${x.urlSegmentStandings}`,F=(0,h.TF)(x.urlSegmentScores)?null:`${$}/${x.urlSegmentScores}`;switch(r){case n.rI.MotorSports:if(I=n.HN.singleparticipant,D=a.Model.PrimaryEntityImage,a.Model.DataType===n.x_.singleRace){const e=a.Model.Races[0]&&(null===(p=a.Model.Races[0].RaceName)||void 0===p?void 0:p.toUpperCase())||"";M=C(a.Model.Races[0],x,$,k)||M,O=e?`${O} : ${e}`:O}M=M||$;break;case n.rI.GolfSports:if(I=n.HN.singleparticipant,D=a.Model.PrimaryEntityImage,M=M||$,a.Model.DataType===n.O7.leaderboard){const e=(null===(m=null===(g=a.Model)||void 0===g?void 0:g.Tournaments)||void 0===m?void 0:m.length)>0&&(null===(v=null===(f=a.Model.Tournaments[0])||void 0===f?void 0:f.TournamentName)||void 0===v?void 0:v.toUpperCase())||"",t=e?`${O} : ${e}`:O;(null==t?void 0:t.length)<30&&(O=t)}break;case n.rI.NFLDraft:D=a.Model.PrimaryEntityImage;break;default:I=n.HN.dualparticipants,D=y.League.ImageId}return{sportsMatchupCardData:{cardTitle:O,cardTitleClickthroughUrl:(0,d.UP)(M),cardTitleImageUrl:(0,d.xx)(D,t),particiapntFormat:I,seeMoreLeagueClickthroughUrl:(0,d.UP)((0,h.TF)(x.urlSegmentSports)||(0,h.TF)(x.urlSegment)?null:$),seeMoreSportsClickthroughUrl:(0,d.UP)((0,h.TF)(x.urlSegmentSports)?null:`https://${(0,d.FD)(l)}/${l}/${x.urlSegmentSports}`),dataType:a.Model.DataType,sportType:(0,n.H9)(T),leagueId:x.id,leagueSatoriId:x.satoriId,leagueYId:x.yId,leagueName:x.name,primaryEntityId:a.Model.PrimaryEntityId,primaryEntityName:(0,d.Sz)(a.Model.PrimaryEntityLoc,l,a.Trans),primaryEntityType:a.Model.PrimaryEntityType,useSuperDesign:(0,d.z3)(a.Model.UseSuperDesign),isMarchMadnessTournament:(0,d.z3)(a.Model.IsMarchMadnessTournament),bracketPhase:a.Model.BracketPhase,msnSportsUrl:(0,d.UP)(A),sportsStandingsUrl:L,sportsScoresUrl:F,startDateTime:x.startDateTime},sportsLeagueInfo:x,cardClickBaseUrl:$,isCardClickBlocked:k,leagueTeams:x.leagueTeams}}function v(t,a,i,r,l,c,u,p,g){if(!(t&&t.Model&&a&&t.Trans&&l))return null;let m,f,v;switch(i){case n.rI.GolfSports:m=function(t,a,i,r,l,c){if((0,d.n$)(t))return null;if(!Array.isArray(t))return(0,o.H)(s.NvH,"Sports matches error getTournamentData",`matches=${JSON.stringify(t)} league=${JSON.stringify(a)}`),null;if(!t.length)return null;const u=[];return t.some((t=>{if(t){const o=function(t,a,i,r,o){const s=(0,d.pc)(),l=t.TournamentState?t.TournamentState:null,c=t.StartDateTime?new Date(parseInt(t.StartDateTime)):new Date,u=t.EndDateTime?new Date(parseInt(t.EndDateTime)):new Date,p=$(l),g=!t.StartDateTime&&p===n.w_.preGame,m=o||(0,h.TF)(a.urlSegmentSports)||(0,h.TF)(a.urlSegment)||(0,h.TF)(t.TournamentId)?null:`${i}`,f=(0,h.TF)(t.ImageId),v=t.Participants&&t.Participants.map((a=>({name:a.Name,isWinner:a.IsWinner,total:a.Points,rank:a.Rank,teetime:null==a.TeeTime||"-"==a.TeeTime?"-":I(new Date(parseInt(a.TeeTime)),s),countryFlagImageId:(0,h.TF)(a.ImageId)?(0,d.xx)(t.ImageId,e.teamImageInfo,f):(0,d.xx)(a.ImageId,e.teamImageInfo,f)})));return{sportsMatchData:{matchClickthroughUrl:(0,d.UP)(m),locationName:t.TournamentLocation,gameStateCatetory:p,name:t.TournamentName,gameId:t.TournamentId,gameDate:A(c,s),gameStartTime:g?null:I(c,s),startDateTime:A(c,s),endDateTime:A(u,s),currentDateTime:A(new Date,s),round:t.TournamentRound,tournamentImageUrl:(0,d.xx)(t.TournamentImageId,e.teamImageInfo,f),participants:v||[]}}}(t,a,i,0,c);if(o&&(u.push(o),u.length>=r))return!0}})),u}(a,c,u,g,t.Trans,p);break;case n.rI.MotorSports:m=function(t,a,i,r,l,c){if((0,d.n$)(t))return null;if(!Array.isArray(t))return(0,o.H)(s.NvH,"Sports matches error getRaceData",`matches=${JSON.stringify(t)} league=${JSON.stringify(a)}`),null;if(!t.length)return null;const u=[];return t.some((t=>{if(t){const r=function(t,a,i,r,o){const s=(0,d.pc)(),l=t.RaceState?t.RaceState:null,c=new Date(parseInt(t.RaceDateTime)),u=$(l),p=!t.RaceDateTime&&u===n.w_.preGame,g=C(t,a,i,o),m=(0,h.TF)(t.ImageId),f=t.Participants&&t.Participants.map((t=>({driverName:t.DriverName,driverNumber:t.DriverNumber,isWinner:t.IsWinner,lapsCompleted:t.LapsCompleted,points:t.Points,rank:t.Rank,timeDifferenceFromLeader:t.TimeDifferenceFromLeader,bestTime:t.BestTime,countryFlagImage:t.CountryFlagImage,teamImage:(0,d.xx)(t.TeamImage,e.teamImageInfo,!1)})));return{sportsMatchData:{laps:t.Laps,matchClickthroughUrl:(0,d.UP)(g),locationName:t.LocationName,gameStateCatetory:u,raceName:t.RaceName,raceImageUrl:(0,d.xx)(t.ImageId,e.teamImageInfo,m),gameId:t.RaceId,gameDate:A(c,s),gameStartTime:p?null:I(c,s),gameStartDateTime:t.RaceDateTime,participants:f||[]}}}(t,a,i,0,c);r&&u.push(r)}})),(0,n.o1)(u).slice(0,r)}(a,c,u,g,t.Trans,p);break;case n.rI.NFLDraft:if(v=t.Model&&t.Model.Draft,v&&(f={draft:{startDateTime:new Date(parseInt(v.StartDateTime)),endDateTime:new Date(parseInt(v.EndDateTime)),location:v.Location,title:v.Title,isLive:(0,d.z3)(v.IsLive),seeMoreUrl:v.SeeMoreUrl},articles:T(a,c.id,r)},!(0,h.TF)(v.SeeMoreUrl))){const e=(0,d.UP)(v.SeeMoreUrl);l.cardTitleClickthroughUrl=e,l.seeMoreLeagueClickthroughUrl=e,l.seeMoreSportsClickthroughUrl=e}break;default:m=function(e,t,a,i,r,l,c=!0){if((0,d.n$)(e))return null;if(!Array.isArray(e))return(0,o.H)(s.NvH,"Sports matches error getMatchData",`matches=${JSON.stringify(e)} league=${JSON.stringify(t)}`),null;if(!e.length)return null;if((0,d.wj)(l))return function(e,t,a,i,r,l){if((0,d.n$)(e))return null;if(!Array.isArray(e))return(0,o.H)(s.NvH,"Sports matches error getMatchDataForCricket",`matches=${JSON.stringify(e)} league=${JSON.stringify(t)}`),null;if(!e.length)return null;const c=[];return e.some((e=>{if(e){const o=y(e,t,a,i,r,l);if((0,d.wj)(l)){const t=e.GameFormat?e.GameFormat:null,a=e.GameSummaryInfo?e.GameSummaryInfo:null,i=e.GameState&&e.GameState.DetailedGameState?e.GameState.DetailedGameState:null,r=e.GameState.State?function(e,t){const a=function(e){switch(e){case"InProgressGame":case"InProgress":return n.w_.inprogressGame;case"Drinks":return n.qD.drinks;case"Dinner":return n.qD.dinner;case"Tea":return n.qD.tea;case"Lunch":return n.qD.lunch;case"Fog":return n.qD.fog;case"Innings":return n.qD.innings;case"Stumps":return n.qD.stumps;case"InningsBreak":return n.qD.break;default:return n.w_.nonlive}}(t);if(a!=n.w_.nonlive)return a;switch(e){case"PreGame":return n.w_.preGame;case"Final":case"PostGame":return n.w_.postGame;default:return n.w_.nonlive}}(e.GameState.State,i):null,s=e&&e.GameState&&e.GameState.GamePeriod?e.GameState.GamePeriod:null;let d=null;r==n.w_.preGame?d=n.w_.preGame:r==n.w_.postGame?d=n.w_.postGame:r==n.w_.inprogressGame&&(d=n.w_.inprogressGame);const l=e.TossInfo?e.TossInfo:null,c=e.VenueInfo?e.VenueInfo:null,u=e.GameState&&e.GameState.GameClock?e.GameState.GameClock:"";o&&(o.sportsMatchData.gameFormat=t,o.sportsMatchData.gameSummaryInfo=a,o.sportsMatchData.detailedGameState=i,o.sportsMatchData.gamePeriod=s,o.sportsMatchData.gameState=r,o.sportsMatchData.tossInfo=l,o.sportsMatchData.venueInfo=c,o.sportsMatchData.gamePeriodAndClock=s+" "+u,o.sportsMatchData.cricketGameCategory=r,o.sportsMatchData.gameStateCatetory=d)}o&&c.push(o)}})),(0,n.o1)(c,1)}(e,t,a,i,r,l);const u=[];return e.some((e=>{if(e){const n=y(e,t,a,i,r,l);n&&u.push(n)}})),c?(0,n.o1)(u):u}(a.League.Matches,c,u,t.Trans,p,t.Model.DataType,!l.isMarchMadnessTournament)}if(m&&0!=m.length||(m=[],(0,o.H)(s.bfG,"Sports card league match has no value.",` LeagueId=${c.id} Market=${r} DataType=${t.Model.DataType} SportType=${l.sportType}`)),l.isMarchMadnessTournament&&!l.bracketPhase){const e=m.find((e=>!(0,h.TF)(e.sportsMatchData.bracketPhase)));l.bracketPhase=e&&e.sportsMatchData.bracketPhase}const b=m.filter((e=>!(0,h.TF)(e.sportsMatchData.videoImageUrl))).slice(0,g);return{sportsMatchOverallData:m.slice(0,g),sportsMatchWithVideoData:b.length>=n.P0?b:null,articleData:f}}function b(e,t,a=!1){var i;if(a&&e.sportsSeeMoreOnMsn)return e.sportsSeeMoreOnMsn;const n=e.sportsSeeMore||e.seeMoreTooltip||(null===(i=e.cardActionsTooltips)||void 0===i?void 0:i.seeMore)||"";return a||(0,h.TF)(t)||(0,h.TF)(e.seeMoreSports)?n:p.Ld.Format(e.seeMoreSports,t)}function C(e,t,a,i){return i||(0,h.TF)(t.urlSegmentSports)||(0,h.TF)(t.urlSegment)||(0,h.TF)(t.urlSegmentGameCenter)||(0,h.TF)(e.RaceId)||!e||!a?null:`${a}/${t.urlSegmentGameCenter}/sp-id-${e.RaceId}`}function y(t,a,i,r,o,s){if(!t||!a)return null;const l=(0,d.pc)(),c=t.GameState&&t.GameState.State?t.GameState.State:null,u=t.GameNotificationDetails,p=new Date(parseInt(t.GameStartDateTime)),g=t.GameState&&t.GameState.GamePeriod?t.GameState.GamePeriod:"",m=t.GameState&&t.GameState.GameClock?t.GameState.GameClock:"",f=(0,d.wj)(s)?null:$(c),v=t.ParticipantOne.Score,b=t.ParticipantTwo.Score,C=t.ParticipantOne.TeamTriggeringId,y=t.ParticipantTwo.TeamTriggeringId,x=f===n.w_.postGame&&v&&b;let w=!1,T=e.teamImageInfoEnhanced;(0,d.wj)(s)&&(e.teamImageInfo.width=20,e.teamImageInfo.height=20,T=e.teamImageInfo),t.ParticipantOne.IsWinner?w=(0,d.z3)(t.ParticipantOne.IsWinner.toString()):(0,n.xR)(s)||(w=x?parseInt(v)>parseInt(b):null);let k=!1;t.ParticipantTwo.IsWinner?k=(0,d.z3)(t.ParticipantTwo.IsWinner.toString()):(0,n.xR)(s)||(k=x?parseInt(b)>parseInt(v):null);const D=o||(0,h.TF)(a.urlSegmentSports)||(0,h.TF)(a.urlSegment)||(0,h.TF)(a.urlSegmentGameCenter)||(0,h.TF)(t.GameId)?null:`${i}/${a.urlSegmentGameCenter}/sp-id-${t.GameId}`,M=!((0,h.TF)(t.ParticipantOne.ImageId)&&(0,h.TF)(t.ParticipantTwo.ImageId)),O=t.GameStartDateTimeIsToBeAnnounced&&f===n.w_.preGame,L=t.Video&&t.Video.Markets&&Object.values(t.Video.Markets)&&Object.values(t.Video.Markets).filter((e=>e&&e.toString().toLowerCase()===l.toLowerCase())).length>0,F=(0,h.TF)(C)||(0,h.TF)(a.urlSegmentSchedule)?null:`${i}/${a.urlSegmentSchedule}/sp-tid-${C.trim()}`,P=(0,h.TF)(y)||(0,h.TF)(a.urlSegmentSchedule)?null:`${i}/${a.urlSegmentSchedule}/sp-tid-${y.trim()}`,R=function(e,t,a){if(!e)return null;const i=t==n.w_.postGame,r=t==n.w_.preGame,o=!(!r||!e.IsPreGameInjuryEnabled||"true"!=e.IsPreGameInjuryEnabled)||null,s=!(!i||!e.IsPostGameStatsAvailable||"true"!=e.IsPostGameStatsAvailable)||null,d=!(!r||!e.IsPreGamePreviousMatchupEnabled||"true"!=e.IsPreGamePreviousMatchupEnabled)||null;return{isGameStatNotificationEnabled:s,isInjuryNotificationEnabled:o,isVideoNotificationEnabled:i&&a,isPreviousMatchupNotificationEnabled:d}}(u,f,L),_={};if(null!=t.PollResponse&&null!=t.PollResponse.Options&&2==Object.keys(t.PollResponse.Options).length){_.Options={},_.Title=t.PollResponse.Title,_.PollId=t.PollResponse.PollId;const a="<<UserVotedOption1>>",i="<<UserVotedOption2>>";Object.entries(t.PollResponse.Options).forEach((([a,i])=>{const n=i.Text==t.ParticipantOne.Name?t.ParticipantOne:t.ParticipantTwo;_.Options[a]={},_.Options[a].IsUserVoted=i.IsUserVoted,_.Options[a].Text=n.Name,_.Options[a].VoteCount=i.VoteCount,_.Options[a].OptionId=i.OptionId,_.Options[a].ImageURL=(0,d.xx)(n.ImageId,e.teamImageInfo,M)})),t.enablePickTheWinner=_.Options.Option1.IsUserVoted!=a&&_.Options.Option2.IsUserVoted!=i}return{sportsMatchData:{participantOne:{imageUrl:(0,d.xx)(t.ParticipantOne.ImageId,T,M),imageAltText:t.ParticipantOne.Name,name:(0,d.Sz)(t.ParticipantOne.Loc,l,r)||t.ParticipantOne.Name,score:v||"",isWinner:w,primaryColor:S(t.ParticipantOne.PrimaryColorHex),satoriId:t.ParticipantOne.TeamSatoriId,yId:(0,d.Sz)(t.ParticipantOne.FeedId,l,r),city:t.ParticipantOne.City,teamTriggeringId:C,scheduleUrl:F&&(0,d.UP)(F),seriesWins:t.ParticipantOne.SeriesWins&&parseInt(t.ParticipantOne.SeriesWins),teamAlias:t.ParticipantOne.TeamAlias},participantTwo:{imageUrl:(0,d.xx)(t.ParticipantTwo.ImageId,T,M),imageAltText:t.ParticipantTwo.Name,name:(0,d.Sz)(t.ParticipantTwo.Loc,l,r)||t.ParticipantTwo.Name,score:b||"",isWinner:k,primaryColor:S(t.ParticipantTwo.PrimaryColorHex),satoriId:t.ParticipantTwo.TeamSatoriId,yId:(0,d.Sz)(t.ParticipantTwo.FeedId,l,r),city:t.ParticipantTwo.City,teamTriggeringId:y,scheduleUrl:P&&(0,d.UP)(P),seriesWins:t.ParticipantTwo.SeriesWins&&parseInt(t.ParticipantTwo.SeriesWins),teamAlias:t.ParticipantTwo.TeamAlias},matchClickthroughUrl:(0,d.UP)(D),matchScheduleUrl:(0,d.UP)(D),gameStateCatetory:f,gameDate:A(p,l),gameStartTime:O?null:I(p,l),gamePeriodAndClock:g+" "+m,tvChannel:t.TvChannel,gameId:t.GameId,gameStartDateTime:t.GameStartDateTime,isAdaptiveCardAvailable:(0,d.z3)(t.IsAdaptiveCardAvailable),videoImageUrl:L&&t.Video&&t.Video.VideoThumbnail&&(0,d.xx)(t.Video.VideoThumbnail,e.videoThumbnailInfo,M),videoTitle:L&&t.Video&&t.Video.VideoTitle,videoLocKey:L&&t.Video&&(0,n.Pe)(t.Video.VideoType),namedGames:t.NamedGames&&Object.values(t.NamedGames),pollResponsePayload:_,bracketPhase:t.BracketPhase,gameNumber:t.GameNumber&&parseInt(t.GameNumber),stageInfo:t.StageInfo,gameFormat:t.GameFormat,enablePickTheWinner:t.enablePickTheWinner,gameInCardNotificationDetails:R}}}function x(t,a,i){if(!t)return null;if(t.SkinnyRanking){let n,r=null;try{n=JSON.parse(t.SkinnyRanking)}catch(e){r=e&&e.message,n=null}if(!n||!n.length)return(0,o.H)(s.uSd,"transformSportsSkinnyData SkinnyRanking has no value.",` RawData=${t.SkinnyRanking} LeagueId=${a} Market=${i} error=${r}`),null;const l=[];return n.forEach((t=>{t&&t.SatoriId&&t.LocalizedName&&l.push({id:t.SatoriId,yId:t.FeedId,name:t.LocalizedName,sportType:"FromHoverDropdown",leagueId:a,displayText:t.LocalizedName,type:t.EntityType,typeDisplayHint:(0,h.TF)(t.Subtitle)?null:t.Subtitle,imageUrl:(0,d.xx)(t.ImageId,e.suggestionImageInfo,!0),isLive:t.IsLive,useSuperDesign:(0,h.TF)(t.UseSuperDesign)?null:(0,d.z3)(t.UseSuperDesign),hasExplicitInterest:t.HasExplicitInterest,webSearchUrl:t.ClickThroughUrl})})),l}return null}function w(e){if(!e||!e.Notifications||!e.Notifications.length)return null;const t=[];return e.Notifications.forEach((e=>{e&&t.push({gameId:e.GameId,gameState:e.State,type:e.Type,signature:e.Signature})})),t}function S(e){return e?e.startsWith("#")?e:`#${e}`:e}function T(e,t,a){let i;try{i=JSON.parse(e)}catch(i){return(0,o.H)(s.oYh,"transformSportsArticlesData JSON.parse(modelData) exception.",` RawData=${e} LeagueId=${t} Market=${a} error=${i&&i.message}`),null}return k(i,t,a)}function k(e,t,a){if(!e)return null;const i=[];if(e&&e.Articles&&e.Articles.JsonResponse){let n,r=null;try{n=JSON.parse(e.Articles.JsonResponse)}catch(e){r=e&&e.message,n=null}(!n||!n.subCards||n.subCards.length<=0)&&(0,o.H)(s.oYh,"transformSportsArticlesData has no article value.",` RawData=${e.Articles} LeagueId=${t} Market=${a} error=${r}`),n&&n.subCards&&n.subCards.forEach((e=>{if(e&&e.title&&e.url){const t=e.images&&e.images.length&&e.images[0].url||"";i.push({provider:{id:e.provider&&e.provider.id,name:e.provider&&e.provider.name,logoUrl:e.provider&&e.provider.logoUrl},publishTime:e.publishedDateTime,imageUrl:t&&`${t}?w=82&h=82&q=120&m=6&f=png&u=t`,title:e.title,articleAbstract:e.abstract,articleUrl:(0,d.UP)(e.url),articleId:e.id,isLocalContent:e.isLocalContent})}}))}return i}function $(e){switch(e){case"PreGame":default:return n.w_.preGame;case"InProgressGame":case"InProgress":return n.w_.inprogressGame;case"Final":case"PostGame":return n.w_.postGame}}function A(e,t){const a=new c.$;try{return a.localizedMonthDate(e,t)}catch(a){(0,o.H)(s.HkJ,"Sports card LocalizationUtility.localizedMonthDate exception.",`date=${e} market=${t} error=${a&&a.message}`);let i=e.toLocaleDateString("en-us",{month:"short",day:"numeric"});return i||(i=e.toDateString()),i?i.replace(/\u200E/g,"").replace(/\u200F/g,""):i}}function I(e,t){const a=new c.$;try{return a.formatTimeFromDate(e,t)}catch(a){return(0,o.H)(s.HkJ,"Sports card LocalizationUtility.formatTimeFromDate exception.",`date=${e} market=${t} error=${a&&a.message}`),e.toTimeString()}}e.teamImageInfo={width:26,height:26,enableDpiScaling:!1,format:l.D3.PNG},e.teamImageInfoEnhanced={width:46,height:46,enableDpiScaling:!1,format:l.D3.PNG},e.suggestionImageInfo={width:52,height:52,enableDpiScaling:!1,format:l.D3.PNG},e.videoThumbnailInfo={width:268,height:144,enableDpiScaling:!1,format:l.D3.PNG},e.mapSubCardToSportsMatchData=function(e,t=5,a=null){if(!e||!e.data)return null;let n;try{n=JSON.parse(e.data)}catch(t){(0,o.OO)(t,s.NvH,"Sports card parse exception.",`CardId=${e.id} data=${e.data} dataType=${e.dataType} error=${t&&t.message}`)}if(!n)return(0,o.H)(s.PTG,"Sports card data has no value.",`dataType=${e.dataType} cardId=${e.id}`),null;if(e.type===u.PL.SportsMatch)try{return i(n,t,a)}catch(t){return(0,o.OO)(t,s.NvH,"Sports card transformSportsMatchDataWithTrans exception.",`CardId=${e.id} data=${e.data} dataType=${e.dataType} error=${t&&t.message}`),null}return(0,o.H)(s.NvH,"Sports card unknown type",` value: type=${e.type} cardId=${e.id} dataType=${e.dataType}`),null},e.transformSportsMatchDataWithTrans=i,e.updateSportsCardDataTexts=function(e,t,a=!1,i=null,o=!1){if(!t||!e)return;if(e.dataType==n.rI[n.rI.NFLDraft])return e.seeMoreLeagueText=r.cK,void(e.seeMoreSportsText=r.cK);if(a){const n=i||b(t,"",a);return e.seeMoreLeagueText=n,e.seeMoreSportsText=n,e.seeMoreLeagueClickthroughUrl=e.msnSportsUrl,void(e.seeMoreSportsClickthroughUrl=e.msnSportsUrl)}const s=e.leagueId||"",d=s!=n.UN.NBA&&s!=n.UN.NHL&&e.useSuperDesign||!1,l=r.wn||e.leagueName;if(e.seeMoreLeagueText=b(t,d?l:e.leagueName,a),e.seeMoreSportsText=t.sportsCTA||b(t,""),o){const t=e.cardTitleClickthroughUrl;e.cardTitleClickthroughUrl=e.seeMoreLeagueClickthroughUrl,e.seeMoreLeagueClickthroughUrl=t,e.seeMoreSportsClickthroughUrl=t}},e.updateSportsMatchDataTexts=function(e,t){if(!t||!e)return e;e.forEach((e=>{e&&e.sportsMatchData&&(e.sportsMatchData.gameStartTime=e.sportsMatchData.gameStartTime||t.sportsTBA,e.sportsMatchData.gameState=function(e,t){if(e===n.w_.postGame)return t.sportsStateFinal;return""}(e.sportsMatchData.gameStateCatetory,t))}))},e.getSuperDesignMatchData=function(e){if(e){const t=e.find((e=>e.sportsMatchData.namedGames&&e.sportsMatchData.namedGames.find((e=>e&&e.toLowerCase()===r.Uf.SuperBowl.toLowerCase()))));if(t){if(t.sportsMatchData.participantOne.satoriId!=r.ls){const e=Object.assign(Object.assign({},t.sportsMatchData),{participantOne:t.sportsMatchData.participantTwo,participantTwo:t.sportsMatchData.participantOne});return Object.assign(Object.assign({},t),{sportsMatchData:e})}return t}}return null},e.getSportsNotificationsData=w}(i||(i={}))},62584:function(e,t,a){"use strict";a.d(t,{$m:function(){return E},BL:function(){return w},FP:function(){return O},KK:function(){return v},Nm:function(){return q},O_:function(){return o},Pp:function(){return J},Pu:function(){return L},Q5:function(){return Y},S2:function(){return K},TM:function(){return j},Tl:function(){return P},Uf:function(){return z},XX:function(){return H},Xz:function(){return ee},_:function(){return W},_e:function(){return F},_y:function(){return c},au:function(){return _},bW:function(){return S},cK:function(){return f},eo:function(){return R},fN:function(){return Z},fj:function(){return g},fy:function(){return B},ic:function(){return h},kW:function(){return N},ls:function(){return G},mI:function(){return m},ob:function(){return l},t0:function(){return x},u9:function(){return C},uF:function(){return y},wn:function(){return U},zJ:function(){return X},zV:function(){return Q}});var i=a(99478),n=a(2314);const r="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/{0}.img?w={1}&h={2}&q=60&m=6&f=png&u=t",o=e=>{let t=146;return e==n.J4.Medium?t=304:e==n.J4.Large&&(t=462),`https://img-s-msn-com.akamaized.net/tenant/amp/entityid/{0}.img?w=300&h=${t}&q=60&m=6&f=png&u=t`},s={_1x_1y:{true:"AAXuDjK",false:"AAXu3hb"},_1x_2y:{true:"AAXuyi4",false:"AAXuekj"},_1x_3y:{true:"AAXuhdC",false:"AAXuEHD"}},d={true:"AAYi0BL",false:"AAYhZK9"},l=(e,t)=>(0,i.WU)(r,d[e.toString()],t?"316":"138",t?"151":"66"),c=(e,t)=>(0,i.WU)(o(t),s[t][e.toString()]),u={_1x_1y:{true:"AAXo88W",false:"AAXobLS"},_1x_2y:{true:"AAXo5JX",false:"AAXocWW"},_1x_3y:{true:"AAXqQEY",false:"AAXqBPS"}},p={true:{true:"AAXOcKt",false:"AAXO2qQ"},false:{true:"AAXOec2",false:"AAXOcKs"}},g=(e,t)=>(0,i.WU)(r,p[e.toString()][t.toString()],t?"302":"129",t?"184":"78"),h=(e,t)=>(0,i.WU)(o(t),u[t][e.toString()]),m=(e,t=null)=>{if(e){const a=new Date(e.getTime()),i=new Date;if(a.getUTCFullYear()==i.getUTCFullYear()&&a.getUTCMonth()==i.getUTCMonth()){const e=a.getDate(),n=i.getDate();if(e==n)return 0;if(e>n)return e-n;if(t){const a=new Date(t.getTime()).getDate();if(e<=n&&n<=a)return 0}}const n=(e.getTime()-i.getTime())/864e5;return n<0?Math.floor(n):Math.ceil(n)}return-1},f="See NFL Draft news",v="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AAWjKSk.img?w=66&h=64&q=60&m=6&f=png&u=t",b=e=>o(e?n.J4.Small:n.J4.Medium),C=(e,t,a)=>{if(e&&t){const i=e.toLocaleDateString(a,{day:"numeric",month:"short",timeZone:"UTC"});if(e.getMonth()==t.getMonth())return`${i} - ${t.getUTCDate()}`;return`${i} - ${t.toLocaleDateString(a,{day:"numeric",month:"short",timeZone:"UTC"})}`}},y=(e,t)=>m(e,t),x=e=>{if(e){const t=new Date;return e.getTime()<t.getTime()&&e.getUTCDate()!=t.getUTCDate()}return!1},w="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AAUKalD.img?w=34&h=50&q=60&m=6&f=png&u=t",S="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AAUKdr8.img?w=34&h=50&q=60&m=6&f=png&u=t",T={"15ba21cd-598d-91bf-72e1-dae4d9e36e5f":{imageId:"AAVHo0k"},"7f19b489-2322-57a1-d1a5-8ab8ad507673":{imageId:"AAVGx8U"},"96a276c8-b977-b698-7a2d-c1ab7eb2dadc":{imageId:"AAVH08j"},"5fb08c6e-394d-4155-5187-34dad331da93":{dark:"AAVHsPO",imageId:"AAVHnXV"},"a0ce1157-38fa-0c59-ca1f-013a36282db4":{imageId:"AAVHnZI"},"061c5d93-3932-e6cc-895f-d497f6d772aa":{imageId:"AAVH2Na"},"0748c244-890e-e42e-16e1-8055fd8e6a06":{imageId:"AAVHfGY"},"909f6f78-8360-6bc3-38b9-115f606ed104":{imageId:"AAVHo05"}},k="FirstRound",$="SecondRound",A="Sweet16",I="EliteEight",D="FinalFour",M="NationalChampionship",O={tournament:"Tournament",quarterFinal:"Quarterfinal",semiFinal:"SemiFinal",championship:"Championship",champion:"Champion"},L=e=>"713c382f-6073-4bb2-8af8-3cb285f303ad"==e||"651280b7-1fa5-b801-2dbc-bfe364804e51"==e,F=e=>{switch(e){case k:return"Round of 64";case $:return"Round of 32";case A:return"Round of 16";case I:return"Quarterfinal";case D:return"Semifinal";case M:return"Championship";default:return null}},P=(e,t)=>{switch(e){case k:case $:case A:return O.tournament;case I:return O.quarterFinal;case D:return O.semiFinal;case M:return t==n.w_.postGame?O.champion:O.championship;default:return O.tournament}},R=(e,t)=>{switch(e){case O.tournament:return t?"WOMEN'S TOURNAMENT":"MEN'S TOURNAMENT";case O.quarterFinal:return t?"WOMEN'S QUARTERFINAL":"MEN'S QUARTERFINAL";case O.semiFinal:return t?"WOMEN'S SEMIFINAL":"MEN'S SEMIFINAL";case O.championship:return t?"WOMEN'S NATIONAL CHAMPIONSHIP":"MEN'S NATIONAL CHAMPIONSHIP";case O.champion:return t?"WOMEN'S CHAMPIONS":"MEN'S CHAMPIONS";default:return null}},_=(e,t,a,n)=>{const r=b(a);let o;switch(e){case O.tournament:case O.quarterFinal:o=t?n?a?"AAUK5oy":"AAUKeoP":a?"AAUKaty":"AAUKau6":n?a?"AAUKeop":"AAUKhIN":a?"AAUKhIl":"AAUJZWd";break;case O.semiFinal:o=t?n?a?"AAUKhGE":"AAUJPMJ":a?"AAUKenc":"AAUK7dQ":n?a?"AAUJZTB":"AAUJPMI":a?"AAUKend":"AAUJZUv";break;case O.championship:o=t?n?a?"AAUJZRV":"AAUKaqM":a?"AAUKhFs":"AAUJZSw":n?a?"AAUKemb":"AAUJPLT":a?"AAUJPLk":"AAUK7cA";break;case O.champion:o=t?a?"AAUXaAD":"AAUXjLE":a?"AAUXpyK":"AAUXmoO";break;default:return null}return(0,i.WU)(r,o)},E=(e,t)=>{let a=null,n="28",o="30";switch(e){case O.tournament:a=t?"AAUNpA2":"AAUNpA3",n="22",o="18";break;case O.quarterFinal:a=t?"AAUNg36":"AAUMLqV";break;case O.semiFinal:a=t?"AAUXdcZ":"AAUXpwx"}return(0,i.WU)(r,a,n,o)},H=(e,t)=>{if(e){if(e.participantOne&&e.participantOne.satoriId){const a=t&&T[e.participantOne.satoriId].dark||T[e.participantOne.satoriId].imageId;e.participantOne.imageUrl=a&&(0,i.WU)(r,a,"40","36")||e.participantOne.imageUrl,N(e.participantOne)}if(e.participantTwo&&e.participantTwo.satoriId){const a=t&&T[e.participantTwo.satoriId].dark||T[e.participantTwo.satoriId].imageId;e.participantTwo.imageUrl=a&&(0,i.WU)(r,a,"40","36")||e.participantTwo.imageUrl,N(e.participantTwo)}}},N=e=>("7f19b489-2322-57a1-d1a5-8ab8ad507673"==e.satoriId&&(e.name="N. Carolina"),"0748c244-890e-e42e-16e1-8055fd8e6a06"==e.satoriId&&(e.name="S. Carolina"),e),z={SuperBowl:"SuperBowl"},U="Super Bowl",j="CHAMPIONS",B="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATD7c6.img?w=40&h=32&q=60&m=6&f=png&u=t",W="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATD7c6.img?w=128&h=100&q=60&m=6&f=png&u=t",G="7cbf542f-6a08-45e0-af5f-60fe01d243c5",V="ca6a16b0-ceff-fe7f-89f2-319216ae6788",q=new Map([[G,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATD9DU.img?w=300&h=300&q=60&m=6&f=png&u=t"],[V,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATCUXv.img?w=300&h=300&q=60&m=6&f=png&u=t"]]),Z=new Map([[G,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATCNYg.img?w=300&h=300&q=60&m=6&f=png&u=t"],[V,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATD0tb.img?w=300&h=300&q=60&m=6&f=png&u=t"]]),J=new Map([[G,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATCYhm.img?w=300&h=146&q=60&m=6&f=png&u=t"],[V,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATD7f5.img?w=300&h=146&q=60&m=6&f=png&u=t"]]),Q=new Map([[G,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATIHbt.img?w=300&h=146&q=60&m=6&f=png&u=t"],[V,"https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATIvVa.img?w=300&h=146&q=60&m=6&f=png&u=t"]]),X="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATIxHK.img?w=300&h=300&q=60&m=6&f=png&u=t",Y="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATD2AA.img?w=300&h=300&q=60&m=6&f=png&u=t",K="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATIt4x.img?w=300&h=146&q=60&m=6&f=png&u=t",ee="https://img-s-msn-com.akamaized.net/tenant/amp/entityid/AATIvQ8.img?w=300&h=146&q=60&m=6&f=png&u=t"},36068:function(e,t,a){"use strict";a.d(t,{FD:function(){return f},IO:function(){return $},Sb:function(){return y},Sz:function(){return g},UP:function(){return h},Uq:function(){return w},Xy:function(){return C},a7:function(){return S},h2:function(){return m},iq:function(){return A},jY:function(){return x},n$:function(){return I},nB:function(){return b},pc:function(){return p},wj:function(){return k},xx:function(){return v},z3:function(){return T}});var i=a(53909),n=a(16517),r=a(9375),o=a(17157),s=a(59207),d=a(99478),l=a(65135),c=a(38156);const u="BB1dV8FG";function p(){let e,t=null;return(0,o.wq)()&&(t=(0,s._4)()),e=t?t.market:n.jG.CurrentMarket,e||"en-us"}function g(e,t,a){if(!(a&&e&&t&&a[e]))return null;if(t in a[e])return a[e][t];const i=t?t.substr(0,2):"en";return a[e][i]?a[e][i]:a[e].en}function h(e){if(!e||!e.length||e.includes("ocid="))return e;const t=(0,r.ku)();return t?e+`?ocid=${t}`:e}const m=(e,t,a=null,i=!1,n=!0,r=!0)=>{if(t){let o=n?h(t):t;if(o=r?function(e){if(!e||!e.length)return e;try{const t=new RegExp("cvid=([^&]?)+").exec(e);if(t&&"cvid="!==t[0])return e;const a=new URL(e),i=l.M0.getRequestId();return i&&a.searchParams.set("cvid",i),a.toString()}catch(t){return e}}(o):o,e){e.preventDefault(),e.stopPropagation();const t=a||e.currentTarget,i="keydown"===e.type||"keypress"===e.type||"keyup"===e.type?c.Aw.KeyPress:c.Aw.Click;l.M0.sendActionEvent(t,i,c.wu.Navigate,o)}window.open(o,i?"_self":"_blank")}};function f(e){return"zh-cn"===e?"www.msn.cn":"www.msn.com"}function v(e,t,a=!1){return(0,d.TF)(e)?a?(0,i.zz)(u,t):null:e.indexOf(".")>0?(0,i.mL)(`${i.q3}?id=${e}&pid=MSports`,t):(0,i.zz)(e,t)}function b(e,t,a=!1){return(0,d.TF)(e)?a?(0,i.zz)(u,t):null:(0,i.mL)(`${i.q3}?id=${e}&pid=MSports`,t)}function C(e,t,a=!1){return(0,d.TF)(e)?a?(0,i.zz)(u,t):null:(0,i.mL)(e,t)}function y(e="",t=40,a=40,i=!1){return e?e.replace(/w=([\d]*)?&h=([\d]*)?/,`w=${i?a+20:a}&h=${i?t+20:t}`):null}function x(e){return!!e&&("cricket"===e.toLowerCase()||"tennis"===e.toLowerCase())}function w(e,t=""){return/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e)?e:t}const S=(e,t=1)=>{const[a,i,n]=e.match(/\w\w/g).map((e=>parseInt(e,16)));return`rgba(${a},${i},${n},${t})`};function T(e){if("string"==typeof e){if(e&&!(0,d.TF)(e)){return/^\s*(true|1)\s*$/i.test(e.toLowerCase())}return!1}return"boolean"==typeof e&&e}function k(e){return!!e&&"cricket"===e.toLowerCase()}function $(e,t,a){if((0,d.TF)(e)||!a||(0,d.TF)(a.secondAgo)||(0,d.TF)(a.minuteAgo)||(0,d.TF)(a.hourAgo)||(0,d.TF)(a.dayAgo))return e;const i=Date.parse(e);if(isNaN(i))return e;const n=Date.now(),r=Math.trunc((n-i)/1e3);if(r>0&&r<60)return 1===r?`${r} ${a.secondAgo}`:`${r} ${a.secondsAgo}`;const o=Math.trunc(r/60);if(o>0&&o<60)return 1===o?`${o} ${a.minuteAgo}`:`${o} ${a.minutesAgo}`;const s=Math.trunc(o/60);if(s>0&&s<24)return 1===s?`${s} ${a.hourAgo}`:`${s} ${a.hoursAgo}`;const l=Math.trunc(s/24);return l>0&&l<7?1===l?`${l} ${a.dayAgo}`:`${l} ${a.daysAgo}`:new Date(e).toLocaleDateString(t)}function A(e){const t=Date.now();if(e<=t)return{days:0,hours:0,minutes:0,seconds:0};const a=e-t;return{days:Math.floor(a/864e5),hours:Math.floor(a%864e5/36e5),minutes:Math.floor(a%36e5/6e4),seconds:Math.floor(a%6e4/1e3)}}function I(e){return!e||"object"==typeof e&&0===Object.keys(e).length}},12093:function(e,t,a){"use strict";a.d(t,{d:function(){return NS}});var i=a(33940),n=a(46275),r=a(26768),o=a(62736),s=a(39181),d=a(82128);const l=s.d`
    <fluent-card
        style="${e=>e.isArticleFreInInfoPane?"":"grid-area: "+e.grid_area}"
        class="${e=>e.cardSize}"
    >
        <article-fre
            config-instance-src=${e=>e.articleFreConfigInfo&&(0,d.g)(e.articleFreConfigInfo)}
            config-shared-ns=${e=>e.articleFreConfigInfo&&e.articleFreConfigInfo.configRef&&e.articleFreConfigInfo.configRef.sharedNs}
            instance-id=${e=>e.articleFreConfigInfo&&e.articleFreConfigInfo.instanceId}
            size=${e=>e.cardSize}
            :parentTelemetry=${e=>e.parentTelemetryObject}
            :subCards=${e=>e.subCards}
            :getReplacementCardsCallback=${e=>e.getReplacementCardsCallback}
            :refreshFeedCallback=${e=>e.refreshFeedCallback}
            :goToPersonalizeCallback=${e=>e.goToPersonalizeCallback}
            :visualReadinessCallback=${e=>e.visualReadinessCallback}
            :cardActionClickHandler=${e=>e.cardActionClickHandler}
        >
        </article-fre>
    </fluent-card>
`;var c=a(68364),u=a(26415),p=a(84551),g=a(76859),h=a(74045),m=a(86294),f=a(27326),v=a(73543);function b(e){const{cardMetadata:t,cardSlot:a,parentTelemetryObject:i,configOptions:n,colWidthPx:r,layoutTemplateName:o,gutterPx:s,rowCount:d,rowHeightPx:l,getReplacementCardsCallback:m,refreshFeedCallback:b,goToPersonalizeCallback:C,visualReadinessCallback:y,isArticleFreInInfoPane:x,cardActionClickHandler:w}=e,S={cards:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:T,layouts:k,cardDomOrder:$,telemetryRowCol:A}=a,I=n&&n.childExperienceReferencesWC?n.childExperienceReferencesWC.articleFreCard:n;let D=[];D=t.subItems&&t.subItems.length?t.subItems:t.subCards,t.subCards=D,t.subItems=void 0;const M=(0,f.PZ)(t,(h.O7.dismiss<<1)-1),O=0!=(M&h.O7.dismiss)?(0,v.to)(e,M,t.id,i):{id:t.id,grid_area:T,card_template_type:"article-fre-card",articleFreConfigInfo:I,parentTelemetryObject:i,subCards:D,getReplacementCardsCallback:m,refreshFeedCallback:b,goToPersonalizeCallback:C,cardActionClickHandler:w,visualReadinessCallback:y,isArticleFreInInfoPane:x};return S.cards.push(O),Object.keys(k).forEach((e=>{const a=k[e],n=$&&$[e],h=(0,p.s)(a,o,T,A&&A[e],d&&d[e],l&&l[e],r,s,n);let m=Object.assign({},i);m&&i&&(m=i.addOrUpdateChild(Object.assign(Object.assign({},m.contract),{ext:h}))),a!==g.Nv._1x_2y&&a!==g.Nv._2x_2y&&(0,c.H)(u.L_x.UnsupportedCardSizeError,`Article Fre Card mapped as ${a} on ${e} in ${o}`);const f={id:t.id,cardSize:a,card_dom_order:n,parentTelemetryObject:m};S[e].push(f)})),S}function C(e,t){if(t===m.U.articleFreCard)return!0;if(t===m.U.recommendedInterestsCard)return!0;if(t===m.U.infopaneCard){let t=[];t=e.subItems&&e.subItems.length?e.subItems:e.subCards;for(const e of t)if("ArticleFre"===e.type&&"FreFeed"===e.id)return!0}return!1}const y={getFeedDataForCard:e=>b(e),viewTemplate:l};var x=a(81563);const w=s.d`
    ${e=>(0,x.O)(e.autosCarouselCardConfigInfo,{attributes:{style:`grid-area:${e.grid_area}`,class:`${e.cardSize}`},properties:{cardMetadata:e.autosCarouselCardMetaData,parentTelemetry:e.parentTelemetryObject}})}
`;const S={getFeedDataForCard:e=>function(e){try{const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n,layoutTemplateName:r,rowCount:o,rowHeightPx:s,colWidthPx:d,gutterPx:l}=e,c={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:u,layouts:g,cardDomOrder:h,telemetryRowCol:m}=t,f={id:"autos-carousel",card_template_type:"autos-carousel-card",parentTelemetryObject:i,autosCarouselCardConfigInfo:a&&a,autosCarouselCardMetaData:n,grid_area:u};return c.cards.push(f),Object.keys(g).forEach((e=>{const t=g[e],a=h&&h[e],n=(0,p.s)(t,r,u,m&&m[e],o&&o[e],s&&s[e],d,l,a);let f=Object.assign({},i);f&&i&&(f=i.addOrUpdateChild(Object.assign(Object.assign({},f.contract),{ext:n})));const v={id:"autos-carousel",card_dom_order:a,cardSize:t,parentTelemetryObject:f};c[e].push(v)})),c}catch(e){(0,c.OO)(e,u.Zfy,"Error in Autos Carousel Mapper")}}(e),viewTemplate:w},T=s.d`
    ${e=>(0,x.O)(e.autosMarketplaceCardConfigInfo,{attributes:{style:`grid-area:${e.grid_area}`,class:`${e.cardSize}`},properties:{jsonAutosData:e.autosMarketplaceData,parentTelemetry:e.parentTelemetryObject,cardSize:e.cardSize,goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback,refreshSDCardSection:e.refreshSDCardSection}})}
`;const k={getFeedDataForCard:e=>function(e){try{const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n,goToPersonalizeSettingsCallback:r,layoutTemplateName:o,rowCount:s,rowHeightPx:d,colWidthPx:l,gutterPx:c,refreshSDCardSection:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=t,b={id:"autosMarketplace",card_template_type:"autos-marketplace-card",goToPersonalizeSettingsCallback:r,parentTelemetryObject:i,autosMarketplaceCardConfigInfo:a&&a,autosMarketplaceData:n.data,grid_area:h,refreshSDCardSection:u};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=m[e],a=f&&f[e],n=(0,p.s)(t,o,h,v&&v[e],s&&s[e],d&&d[e],l,c,a);let r=Object.assign({},i);r&&i&&(r=i.addOrUpdateChild(Object.assign(Object.assign({},r.contract),{ext:n})));const u={id:"autosMarketplace",card_dom_order:a,cardSize:t,parentTelemetryObject:r};g[e].push(u)})),g}catch(e){(0,c.OO)(e,u.Ia3,"Error in Autos Marketplace Mapper")}}(e),viewTemplate:T};var $=a(65135),A=a(9753),I=a(16517),D=a(38156),M=a(60483);function O(e,t,a){if(!a)return a;const{cardSlot:i,configOptions:n,layoutTemplateName:r,rowCount:o={},rowHeightPx:s={},colWidthPx:d,gutterPx:l,parentTelemetryObject:c}=t,{grid_area:u,layouts:g,cardDomOrder:h={},telemetryRowCol:m={}}=i,f=n&&n,v=f&&f.configRef&&f.configRef.experienceType;return Object.keys(g).forEach((t=>{const i=g[t],n=h&&h[t],f=(0,p.s)(i,r,u,m[t],o[t],s[t],d,l,n),b=new M.D({type:D.c9.Module,name:v,ext:f}),C=new M.D(Object.assign(Object.assign({},c&&c.contract),{ext:f})),y={id:e,card_dom_order:n,parentTelemetryObject:C,telemetryExt:f,telemetryObject:b,cardSize:i};a[t].push(y)})),a}const L={[m.U.autosMarketplaceCard]:"autosMarketplaceCard",[m.U.casualGamesCard]:"casualGamesCard",[m.U.commuteCard]:"commuteCard",[m.U.healthCard]:"bingHealthCard",[m.U.horoscopeAnswerCard]:"horoscopeCard",[m.U.onThisDayCard]:"onThisDayCard",[m.U.prismCarouselCard]:"prismCarouselCard",[m.U.qnaCard]:"qnaCard",[m.U.recommendedSearchesCard]:"recommendedSearchesCard",[m.U.shoppingCarouselCard]:"shoppingCarousel",[m.U.superListCard]:"superListCard",[m.U.shoppingEventsDealCard]:"shoppingEventsDealCard",[m.U.trendingNowCard]:"trendingNowWC",[m.U.trendingTopicsCard]:"trendingTopicsCard",[m.U.weatherCard]:"weatherCard"},F={[m.U.autosMarketplaceCard]:"autosMarketplaceCard",[m.U.casualGamesCard]:"casualGamesCard",[m.U.commuteCard]:"commuteCard",[m.U.healthCard]:"bingHealthCard",[m.U.horoscopeAnswerCard]:"horoscopeCard",[m.U.onThisDayCard]:"onThisDayCard",[m.U.prismCarouselCard]:"prismCarouselCard",[m.U.qnaCard]:"qnaCard",[m.U.recommendedSearchesCard]:"recommendedSearchesCard",[m.U.shoppingCarouselCard]:"shopping-carousel",[m.U.superListCard]:"superListCard",[m.U.shoppingEventsDealCard]:"shoppingEventsDealCard",[m.U.trendingNowCard]:"trendingNowCard",[m.U.trendingTopicsCard]:"trendingTopicsCard",[m.U.weatherCard]:"weather"},P=(e,t)=>{let a="";if("ext"in t.contract){const e=t.contract.ext;a=`${e.row}_${e.col}`}return`${e}_${a}`},R=s.d`
    <fluent-card
        style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible;"
        class="${e=>e.cardSize}"
    >
        ${e=>e.configInfo&&(0,x.O)(Object.assign(Object.assign({},e.configInfo),{instanceId:`${P(e.configInfo.instanceId,e.telemetryObject)}`}),{properties:{mapperArgs:e.mapperArgs,parentTelemetry:e.telemetryObject,feedLayoutCardSize:e.cardSize},telemetryObject:e.telemetryObject})}
    </fluent-card>
`,_=s.d`
 <fluent-card
     style="grid-area:${e=>e.grid_area};"
     class="${e=>e.cardSize}"
 >
     ${e=>e.configInfo&&(0,x.O)(Object.assign(Object.assign({},e.configInfo),{instanceId:`${P(e.configInfo.instanceId,e.telemetryObject)}`}),{properties:{mapperArgs:e.mapperArgs,feedLayoutCardSize:e.cardSize},telemetryObject:e.telemetryObject})}
 </fluent-card>
`,E=s.d`
    ${e=>e.configInfo&&(0,x.O)(Object.assign(Object.assign({},e.configInfo),{instanceId:`${P(e.configInfo.instanceId,e.telemetryObject)}`}),{attributes:{style:`grid-area:${e.grid_area}`,class:`${e.cardSize}`},properties:{mapperArgs:e.mapperArgs,feedLayoutCardSize:e.cardSize},telemetryObject:e.telemetryObject})}
`,H=s.d`
 <fluent-card
     style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible;"
     class="${e=>e.cardSize}"
 >
    ${e=>e.configInfo&&(0,x.O)(e.configInfo,{properties:{mapperArgs:e.mapperArgs,feedLayoutCardSize:e.cardSize},telemetryObject:e.telemetryObject,memoize:"edgeChromium"===I.jG.AppType})}
 </fluent-card>
`,N=(e,t)=>{const{cardSlot:{grid_area:a},configOptions:i,cardMetadata:n}=e;t||(t=A.J[n.type]),t||$.M0.sendAppErrorEvent(Object.assign(Object.assign({},u.erD),{message:"No card template type found",pb:Object.assign(Object.assign({},u.erD.pb),{cardType:n.type})}));const r={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},o=F[t],s={id:o,card_template_type:t,mapperArgs:e,configInfo:i,grid_area:a};return r.cards.push(s),O(o,e,r)},z={getFeedDataForCard:e=>N(e),viewTemplate:R},U={getFeedDataForCard:e=>N(e),viewTemplate:R};const j=s.d`
    <fluent-card
        style="grid-area:${e=>e.grid_area};contain:content;content-visibility:visible"
        class="${e=>e.cardSize}"
    >
        <fluent-design-system-provider neutral-base-color=${e=>{var t;return null===(t=e.overrides)||void 0===t?void 0:t.neutralColor}}>
            ${e=>e.companyNewsCardConfigInfo&&(0,x.O)(e.companyNewsCardConfigInfo,{properties:{cardMetadata:e.cardMetadata,parentTelemetry:e.parentTelemetryObject,cardOverrides:e.overrides,goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback,refreshFeedCallback:e.refreshFeedCallback}})}
        </fluent-design-system-provider>
    </fluent-card>
`,B={getFeedDataForCard:e=>function(e){var t;try{const{configOptions:a,cardMetadata:i,cardSlot:n,parentTelemetryObject:r,layoutTemplateName:o,rowCount:s,rowHeightPx:d,colWidthPx:l,gutterPx:g,goToPersonalizeSettingsCallback:h,refreshFeedCallback:m}=e;if(!i||!n)throw new Error("Missing required parameters");if(i.subCards=null!==(t=i.subItems)&&void 0!==t?t:i.subCards,!i.subCards||!i.subCards.length)throw(0,c.H)(u.i2W.EmptySubcardData,"Service context returned empty subcards in metadata"),new Error("Missing required parameters");const{grid_area:f,layouts:v,cardDomOrder:b,telemetryRowCol:C}=n,y={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},x=a&&a.companyNewsCardConfig||a,w={id:"companyNewsCard",card_template_type:"company-news-card",grid_area:f,parentTelemetryObject:r,companyNewsCardConfigInfo:x,cardMetadata:i,goToPersonalizeSettingsCallback:h,refreshFeedCallback:m,overrides:{neutralColor:null==x?void 0:x.neutralColor}};return y.cards.push(w),Object.keys(v).forEach((e=>{const t=b&&b[e],a=v[e],i=(0,p.s)(a,o,f,C&&C[e],s&&s[e],d&&d[e],l,g,t);let n=Object.assign({},r);r&&n&&(n=r.addOrUpdateChild(Object.assign(Object.assign({},n.contract),{ext:i})));const c={id:"companyNewsCard",card_dom_order:t,cardSize:a,parentTelemetryObject:n};y[e].push(c)})),y}catch(e){(0,c.OO)(e,u.i2W.DataMapperError,"Error in feed-layout Company News Card Mapper")}return null}(e),viewTemplate:j};var W=a(41069),G=a(37429),V=a(13988),q=a(44772);const Z=(e,t)=>`${t}${e.cardSize!==g.Nv._1x_2y&&e.cardSize!==g.Nv._1x_3y||e.imageData?e.cardSize:e.cardSize+"_no_image"}`,J=s.d`
    <style>
        .msn-hp-external-link-abstract {
            font-size: 12px;
            z-index: 1;
            position: absolute;
            top: 25px;
            left: 8px; 
            user-select: none;
        }

        /* 
         * Here about 'from the web' attribution style
         */
        msft-content-card[id="contentcard_${e=>e.id}"]::part(start-actions) {
            flex:1;
        }
        msft-content-card[id="contentcard_${e=>e.id}"] msft-attribution::part(image){
            white-space: nowrap;
        }
        msft-content-card[id="contentcard_${e=>e.id}"] msft-attribution, msft-content-card[id="contentcard_${e=>e.id}"] msft-attribution::part(content){
            width: calc(100%);
            ${e=>e.isProviderIconClickable?"display: inline-flex":""}
        }
        msft-content-card[id="contentcard_${e=>e.id}"] msft-attribution {
            display: flex;
        }
        msft-content-card[id="contentcard_${e=>e.id}"] .attribution_container_${e=>e.id} {
            width: calc(100%);
            min-height: var(--type-ramp-minus-1-line-height);
            position: relative;
            overflow: hidden;
            white-space: nowrap;
        }
        msft-content-card[id="contentcard_${e=>e.id}"] .attribution_Content_${e=>e.id} {
            position:absolute;
            transition: all 0.5s ease-out;
        }
        ${(0,V.g)((e=>e.enableArticleCardHoverContrast),s.d`
            fluent-card:hover msft-content-card[id="contentcard_${e=>e.id}"] { 
                filter: contrast(115%); 
            }
        `)}
        ${(0,V.g)((e=>e.contentType===q.PL.Video),s.d`
            msft-content-card msft-content-indicator {
                color: transparent;
            }
            msft-content-card msft-content-indicator::after{
                background: transparent;
            }

            msft-content-card msft-content-indicator{
                left: 130px;
                top: 88px;
            }
        `)}
    </style>
    <msft-content-card
        exportparts="heading, abstract"
        id="contentcard_${e=>e.id}"
        class="${e=>e.isWebContent&&"web-content"}"
        href=${e=>e.destinationUrl}
        target=${e=>e.openLinksInNewTab?"_blank":"_self"}
        title=${e=>e.disableCardTitleTooltip?"":e.title}
        aria-label=${e=>e.ariaLabel}
        ?image-priority=${e=>e.imagePriority}
        style="--heading-max-lines: 3; --footer-start-padding: 8px;"
        :handleContentCardLinkClick=${e=>e.handleContentCardClickOverride}
        data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.contentCard)||void 0===a?void 0:a.getMetadataTag()}}"
        :anchorTelemetryTag=${e=>e.telemetryContext&&e.telemetryContext.destination&&e.telemetryContext.destination.getMetadataTag()}
        @mouseenter="${(e,t)=>e.setDisplacementAndTitleOnHover&&e.setDisplacementAndTitleOnHover(t,e.dir,e.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
        @mouseleave="${(e,t)=>e.removeDisplacementHandler&&e.removeDisplacementHandler(t,e.dir)}"
    >
        ${(0,V.g)((e=>e.contentIndicator&&!(e.cardSize===g.Nv._1x_1y&&!e.imageData)),(e=>(0,W.A$)(e.contentIndicator)))}
        ${(0,V.g)((e=>!e.isAnaheimDesign),s.d`${e=>e.title}`)}
        ${(0,V.g)((e=>e.isAnaheimDesign&&!e.useSmallFontSize),s.d`<span class="${e=>Z(e,"title")}">${e=>e.title}</span>`)}
        ${(0,V.g)((e=>e.isAnaheimDesign&&e.useSmallFontSize),s.d`${e=>e.title}`)}
        ${(0,V.g)((e=>!e.hideNewsAbstract&&e.abstract),s.d`
            <p slot="abstract" style="${e=>!e.isWebContent&&"color: var(--neutral-foreground-rest);"}" class="${e=>Z(e,"abstract")} ${e=>e.isMsnHpExternalLinkCard?"msn-hp-external-link-abstract":""}">
                ${e=>e.abstract}
            </p>
        `)}
        <!-- Only use placeholder -->
        <!-- If image data exists && 1x_2y && image priority -->
        ${(0,V.g)((e=>!(!e.imageData||e.cardSize!==g.Nv._1x_2y||!e.imagePriority)),s.d`
            <div slot="media" style="height: ${e=>e.imageData.imageHeight}px;width: ${e=>e.imageData.imageWidth}px;">
                <img
                    alt="${e=>e.imageData.altText}"
                    src="${e=>e.imageData.source}"
                    height="${e=>e.imageData.imageHeight}"
                    width="${e=>e.imageData.imageWidth}"
                    @load="${e=>{e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback(G.u.ALL,G.w.image)}}"
                />
            </div>
        `)}
        ${(0,V.g)((e=>!(!e.imageData||e.cardSize===g.Nv._1x_2y&&e.imagePriority)),s.d`
            <img
                slot="media"
                alt="${e=>e.imageData.altText}"
                src="${e=>e.imageData.source}"
                height="${e=>e.imageData.imageHeight}"
                width="${e=>e.imageData.imageWidth}"
                @load="${e=>{e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback(G.u.ALL,G.w.image)}}"
            />
        `)}
        ${e=>{!e.imageData&&e.visualReadinessCallback&&e.visualReadinessCallback()}}
        ${(0,V.g)((e=>e.providerData),s.d`
            <msft-attribution slot="${e=>e.isProviderInFooter?"start-actions":"attribution"}" style="${e=>e.isProviderInFooter?"gap:0":""}">
                ${(0,W.Ze)()}
                <div class="attribution_container_${e=>e.id}" id="attribution_container">
                    <div class="attribution_Content_${e=>e.id}" style="${e=>"rtl"===e.dir?"right":"left"}:0px;">
                        ${(0,V.g)((e=>e.providerData&&e.providerData.name&&!e.isProviderIconClickable),s.d`<span style="unicode-bidi: embed;">${e=>e.providerData.name}</span>`)}
                        ${(0,V.g)((e=>e.providerData&&e.providerData.name&&e.publishedDateTime),s.d` · `)}
                        ${(0,V.g)((e=>e.publishedDateTime),s.d`<span style="unicode-bidi: embed;">${e=>e.publishedDateTime}</span>`)}
                        ${(0,V.g)((e=>e.isWebContent&&e.crawledContentLabel),s.d` · `)}
                        ${(0,V.g)((e=>e.isWebContent&&e.crawledContentLabel),s.d`${e=>e.crawledContentLabel}`)}
                    </div>
                </div>
            </msft-attribution>
        `)}
        <!-- Workaround for bug in MsftContentCard: footer without end-actions will not be displayed. -->
        ${(0,V.g)((e=>e.providerData&&e.isProviderInFooter),s.d`
            <div slot="end-actions"></div>
        `)}
        ${(0,V.g)((e=>e.cardActionStatus&h.O7.enabled&&!e.disableHideOnHover),W.ZO)}
        ${(0,V.g)((e=>!e.isAnaheimDesign||e.enableRichSocialReaction),s.d`
            <div slot="start-actions" style="gap:0">
                ${(0,V.g)((e=>e.enableRichSocialReaction),(e=>(0,W.jr)({})))}
                ${(0,V.g)((e=>e.cardActionStatus&h.O7.enabled&&!e.enableRichSocialReaction),s.d`
                    ${W.tD}
                    ${W.EU}
                `)}
            </div>
        `)}
        ${(0,V.g)((e=>!e.isAnaheimDesign||e.enableRichSocialReaction),s.d`
            <div slot="end-actions" style="gap:0">
                ${(0,V.g)((e=>e.cardActionStatus&h.O7.enabled),s.d`
                    ${(0,V.g)((e=>e.enableRichSocialReaction&&e.enableWCSaveButton),s.d`
                        ${(0,V.g)((e=>!e.optedOutOfReactions&&e.cardActionStatus&h.O7.showMore),W.tD)}
                        ${(0,V.g)((e=>!e.optedOutOfReactions&&e.cardActionStatus&h.O7.showFewer),W.EU)}
                        ${(0,V.g)((e=>!e.disableSaveButton&&(!(e.cardActionStatus&h.O7.showMore)&&!(e.cardActionStatus&h.O7.showFewer)||e.optedOutOfReactions||e.cardActionStatus&h.O7.saved)),W.Q6)}
                    `)}
                    ${(0,V.g)((e=>!e.enableRichSocialReaction&&e.enableWCSaveButton),W.Q6)}
                    ${(0,V.g)((e=>e.enableWCCardAction),W.X5)}
                `)}
            </div>
        `)}
    </msft-content-card>
 `,Q=s.d`
    <style>
        ${(0,V.g)((e=>e.articleCardBackgroundColor&&e.showColorfulHalfUContentCard),s.d`
            .content-card-gradient-mask {
                padding: 0; 
                width: 100%; 
                height: 100%;
            }

            @media (prefers-color-scheme: dark) {
                .content-card-gradient-mask#contentcardmask_${e=>e.id} {
                    background: linear-gradient(160deg, #404040 0%, ${e=>{var t,a;return null===(a=null===(t=e.articleCardBackgroundColor)||void 0===t?void 0:t.find((e=>e.isDarkMode)))||void 0===a?void 0:a.hexColor}} 150%);
                }
            }

            @media (prefers-color-scheme: light) {
                .content-card-gradient-mask#contentcardmask_${e=>e.id} {
                    background: linear-gradient(160deg, #e5e5e5 0%, ${e=>{var t,a;return null===(a=null===(t=e.articleCardBackgroundColor)||void 0===t?void 0:t.find((e=>!e.isDarkMode)))||void 0===a?void 0:a.hexColor}} 150%);
                }
            }
        `)}

        msft-content-card .card-button:not(:hover) {
            background: transparent;
        }
        msft-content-card fluent-button::part(control) {
            padding: 0;
        }
        msft-content-card(:not(.web-content))::part(footer) {
            padding: 0 16px 4px;
            margin-bottom: 0;
            height: 40px;
        }
        msft-attribution {
            position: relative;
            overflow: hidden;
        }
        msft-content-card span.title_1x_2y,
        msft-content-card span.title_1x_3y {
            font-size: 20px;
        }
        msft-content-card span.title_1x_2y_no_image {
            font-size: 24px;
            line-height: 32px;
        }
        msft-content-card span.title_1x_3y_no_image {
            font-size: 16px;
            line-height: 22px;
        }
        msft-content-card p.abstract_1x_2y_no_image {
            font-size: 16px;
            line-height: 22px;
            margin-top: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        msft-content-card p.abstract_1x_3y_no_image {
            font-size: 14px;
            line-height: 20px;
            margin-top: 12px;
            display: -webkit-box;
            -webkit-line-clamp: 5;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        fluent-card._1x_3y msft-content-card::part(abstract) {
            padding-left: var(--abstract-start-padding, 16px);
        }
    </style>
    <fluent-card
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >
        ${(0,V.g)((e=>e.articleCardBackgroundColor&&e.showColorfulHalfUContentCard),s.d`
            <div class="content-card-gradient-mask"
                id="contentcardmask_${e=>e.id}"
            >
                ${J}
            </div>
        `)}
        ${(0,V.g)((e=>!e.articleCardBackgroundColor||!e.showColorfulHalfUContentCard),s.d`
            ${J}
        `)}
    </fluent-card>
`,X={getFeedDataForCard:e=>(0,f.CI)(e),viewTemplate:Q},Y=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible"
        class="${e=>e.cardSize}"
    >
        <content-group-card
            config-instance-src=${e=>e.contentGroupCardConfigInfo&&(0,d.g)(e.contentGroupCardConfigInfo)}
            config-shared-ns=${e=>e.contentGroupCardConfigInfo&&e.contentGroupCardConfigInfo.configRef&&e.contentGroupCardConfigInfo.configRef.sharedNs}
            instance-id=${e=>e.contentGroupCardConfigInfo&&e.contentGroupCardConfigInfo.instanceId}
            :contentGroupCardMetadata=${e=>e.contentGroupCardMetadata}
            :parentTelemetryObject=${e=>e.parentTelemetryObject}
            :refreshFeedCallback=${e=>e.refreshFeedCallback}
            :goToPersonalizeSettingsCallback=${e=>e.goToPersonalizeSettingsCallback}
            :getReplacementCardsCallback=${e=>e.getReplacementCardsCallback}
        />
    </fluent-card >
`;const K={getFeedDataForCard:e=>function(e){try{const{configOptions:t,cardMetadata:a,cardSlot:i,parentTelemetryObject:n,layoutTemplateName:r,rowCount:o,rowHeightPx:s,colWidthPx:d,gutterPx:l,refreshSDCardSection:c,refreshFeedCallback:u,goToPersonalizeSettingsCallback:g,getReplacementCardsCallback:h}=e;if(!a||!i)throw new Error("Missing required parameters");const{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=i,C={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]};if(!f)return C;const y={id:"contentGroupCard",card_template_type:"content-group-card",grid_area:m,parentTelemetryObject:n,contentGroupCardConfigInfo:t&&t,contentGroupCardMetadata:a,refreshFeedCallback:c||u,goToPersonalizeSettingsCallback:g,getReplacementCardsCallback:h};return C.cards.push(y),Object.keys(f).forEach((e=>{const t=v&&v[e],a=f[e],i=(0,p.s)(a,r,m,b&&b[e],o&&o[e],s&&s[e],d,l,t);let c=Object.assign({},n);c&&n&&(c=n.addOrUpdateChild(Object.assign(Object.assign({},c.contract),{ext:i})));const u={id:"contentGroupCard",card_dom_order:t,parentTelemetryObject:c};C[e].push(u)})),C}catch(e){(0,c.OO)(e,u.QE_.DataMapperError,"Error in feed-layout Content Group Card Mapper")}return null}(e),viewTemplate:Y},ee=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};contain:unset"
    class="${e=>e.cardSize}"
>
    ${e=>(0,x.O)(e.denseConfigInfo,{properties:{denseData:e.denseData,telemetryObject:e.telemetryObject},memoize:!1,includeTelemetryTag:!1})}
</fluent-card>
`;var te=a(25295),ae=a(75351);const ie=(e,t,a,i=0,n=null)=>{if(!t)return;const r="amplifyad"===e.type||"EventSDCardAmplifyAds"==e.type;let o;o=r?t.addOrUpdateChild({name:"AmplifyCard",content:{type:D.uH.StructuredData}}):t.addOrUpdateChild({name:"NativeAd",type:D.c9.Headline});const s=e&&e.placement||{},d=s.providerId||"",l=a||s.region||"",c=s.items&&s.items[i]&&s.items[i].title||"";let u;if(s.isBackfill){const e=`Backup_NativeAdItem_${l}`;u=o.addOrUpdateChild({name:e,type:D.c9.Module,behavior:D.wu.Navigate,content:{headline:c,type:D.uH.CmsPromotions},ext:n})}else if("cmsad"===e.type){const e=`${l}_CMSBasicCardstore`;u=o.addOrUpdateChild({name:e,type:D.c9.Module,behavior:D.wu.Navigate,content:{headline:c,type:D.uH.CmsPromotions},ext:n})}else if(r)u=o.addOrUpdateChild({name:"header",behavior:D.wu.Navigate,content:{headline:c,type:D.uH.StructuredData},ext:n});else{const e=`${d}sponcon`;u=o.addOrUpdateChild({name:e,behavior:D.wu.Navigate,content:{headline:c,type:D.uH.SponsoredContent},ext:n})}const p={componentRoot:t,nativeAdCard:o,destination:u};return r||(p.adChoice=o.addOrUpdateChild({name:"AdChoice",behavior:D.wu.Navigate,type:D.c9.Headline}),p.adLabel=o.addOrUpdateChild({name:"AdLabel",behavior:D.wu.Navigate,type:D.c9.Headline}),p.seeMore=o.addOrUpdateChild({name:"NativeAdSeeMore",behavior:D.wu.More,type:D.c9.ActionButton})),p};const ne={getFeedDataForCard:e=>function(e){var t;const{cardSlot:a,configOptions:i,parentTelemetryObject:n,cardMetadata:r,openLinksInNewTab:o,visualReadinessCallback:s,isAnaheimDesign:d,isProviderInFooter:l,enableArticleTimestamps:c,localizedStrings:u,enableNewTimestampFormatForJAJP:p}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]};if(!r||!r.subItems||0===r.subItems.length)return g;const h=(null===(t=null==r?void 0:r.subItems[0])||void 0===t?void 0:t.type)===q.PL.WebContent,{grid_area:m,layouts:v,cardDomOrder:b}=a,C="_2x_6y"===v.C2;let y;const x=i&&i.useDprForCardImage,w=i&&i.useHighQualityImage,S=i&&i;if(!C){const e=r.subItems[0].cardContent,{id:t,destinationUrl:a,title:n,provider:g,type:m}=e;S&&(S.instanceId=`denseCard-${t}`),y={id:t,destinationUrl:a,openLinksInNewTab:o,title:n,ariaLabel:(0,f.Jl)(n,g,null==i?void 0:i.localizedStrings),imagePriority:!1,providerData:(0,f.i2)(g,h),isProviderInFooter:l,imageData:(0,f.ny)(r.subItems[0],te.B._240x129,s,d,x,w),publishedDateTime:c&&`${(0,f.nA)(p,new Date(e.publishedDateTime),e.locale,u)}`}}const T=C?r.subItems:r.subItems.slice(1),k={heroNews:y,newsList:null==T?void 0:T.map((e=>{var t;const a=e.type===q.PL.NativeAd||e.type===q.PL.CmsAd,r=null==e?void 0:e.cardContent;if(!a){const t=e.type===q.PL.WebContent;return{abstract:e.cardContent.abstract,imageData:(0,f.ny)(e,te.B._240x129,s,d,x,w),destinationUrl:e.cardContent.destinationUrl,title:e.cardContent.title,ariaLabel:(0,f.Jl)(e.cardContent.title,e.cardContent.provider,null==i?void 0:i.localizedStrings),providerData:(0,f.i2)(e.cardContent.provider,t),isNativeAd:a,telemetryContext:(0,ae.nj)(n,e.cardContent,e.metadata,null,t),isNarrowNewsItem:null==i?void 0:i.isNarrowNewsItem,publishedDateTime:c&&`${(0,f.nA)(p,new Date(r.publishedDateTime),r.locale,u)}`}}const o=(null===(t=e.placement)||void 0===t?void 0:t.items[0])||{},{beaconsJson:l,privacyUrl:g,adLabelText:h,isGreyAdsLabelEnabled:m,geminiViewabilityDataJson:v}=e.placement||{};return Object.assign(Object.assign({},o),{beaconsJson:l,privacyUrl:g,adLabelText:h,geminiViewabilityDataJson:v,isNativeAd:a,adTelemetryContext:ie(e,n,"river",0),isNarrowNewsItem:null==i?void 0:i.isNarrowNewsItem,isGreyAdsLabelEnabled:m})})),isDenseFeedsLayout:C},$={id:null==S?void 0:S.instanceId,card_template_type:"dense-card",grid_area:m,telemetryObject:n,denseConfigInfo:S,denseData:k};return g.cards.push($),Object.keys(v).forEach((e=>{const t={id:"denseCard",card_dom_order:b&&b[e]};g[e].push(t)})),g}(e),viewTemplate:ee},re=s.d` 
    ${e=>e.digestCardConfigInfo&&(0,x.O)(e.digestCardConfigInfo,{properties:{cardMetadata:e.cardMetadata,cardSize:e.cardSize,parentTelemetry:e.parentTelemetryObject,goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback,refreshFeedCallback:e.refreshFeedCallback}})}
`,oe=s.d`
    ${re}
`;var se=a(52965);function de(e){try{const{configOptions:t,cardMetadata:a,cardSlot:i,parentTelemetryObject:n,layoutTemplateName:r,rowCount:o,rowHeightPx:s,colWidthPx:d,gutterPx:l,isDynamicFeed:g,goToPersonalizeSettingsCallback:h,refreshFeedCallback:m}=e;if(!a||!i)throw new Error("Missing required parameters");if(!a.subCards||!a.subCards.length)throw(0,c.H)(u.i2W.EmptySubcardData,"Service context returned empty subcards in metadata"),new Error("Missing required parameters");const{grid_area:f,layouts:v,cardDomOrder:b,telemetryRowCol:C}=i,y={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},x=(0,se.Z)(t.digestCard),w=a.feed.canonicalName||"";x&&(x.instanceId=w+t.digestCard.instanceId);const S={id:"digestCard",card_template_type:"digest-card",grid_area:f,parentTelemetryObject:n,digestCardConfigInfo:x,cardMetadata:a,goToPersonalizeSettingsCallback:h,refreshFeedCallback:m};return y.cards.push(S),Object.keys(v).forEach((e=>{const t=b&&b[e],a=v[e],i=(0,p.s)(a,r,f,C&&C[e],o&&o[e],s&&s[e],d,l,t);let c=Object.assign({},n);n&&c&&(c=n.addOrUpdateChild(Object.assign(Object.assign({},c.contract),{ext:i})));const u={id:"digestCard",card_dom_order:t,cardSize:a,parentTelemetryObject:c};y[e].push(u)})),y}catch(e){(0,c.OO)(e,u.i2W.DataMapperError,"Error in feed-layout Digest Card Mapper")}return null}const le={getFeedDataForCard:e=>de(e),viewTemplate:oe},ce=s.d`
<div 
    id="${e=>e.id}"
    style="grid-area:${e=>e.grid_area}"
    class="${e=>e.cardSize}"
> 
    <display-ads config-instance-src="${e=>e.configInstanceSrc}" instance-id="${e=>e.instanceId}" />
</div>
`;const ue={getFeedDataForCard:e=>function(e){const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n}=e,r={cards:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:o,layouts:s,cardDomOrder:d}=t,l={id:"displayAdCard",grid_area:o,card_template_type:"display-ad-card",configInstanceSrc:n.configInstanceSrc,instanceId:n.instanceId};return r.cards.push(l),Object.keys(s).forEach((e=>{const t={id:"displayAdCard",cardSize:s[e],card_dom_order:null==d?void 0:d[e]};r[e].push(t)})),r}(e),viewTemplate:ce},pe=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};contain:unset"
    class="${e=>e.cardSize}"
>
    ${e=>e.electionsAnswerConfigInfo&&(0,x.O)(e.electionsAnswerConfigInfo,{properties:{parentTelemetry:e.parentTelemetryObject,telemetryExt:e.telemetryExt,backendData:e.dataToPassToComponent,cardSizeMetadata:e.cardSize,goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback,refreshSDCardSection:e.refreshSDCardSection}})}
</fluent-card>
`;const ge={getFeedDataForCard:e=>function(e){const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n,goToPersonalizeSettingsCallback:r,layoutTemplateName:o,rowCount:s,rowHeightPx:d,colWidthPx:l,gutterPx:c,refreshSDCardSection:u}=e,g={genericElection:[n]},h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=t;let C;a&&a.childExperienceReferencesWC&&(C=a.childExperienceReferencesWC.electionsCard),C&&C.instanceId||(C=a&&a);const y={id:"electionsCard",card_template_type:"elections-card",goToPersonalizeSettingsCallback:r,grid_area:m,parentTelemetryObject:i,electionsAnswerConfigInfo:C,dataToPassToComponent:g,refreshSDCardSection:u};return h.cards.push(y),Object.keys(f).forEach((e=>{var t;const a=f[e],i=v&&v[e],n=(0,p.s)(a,o,m,b&&b[e],s&&s[e],d&&d[e],l,c,i),r={type:D.c9.Module,name:null===(t=null==C?void 0:C.configRef)||void 0===t?void 0:t.experienceType,ext:n},u={cardSize:a,id:"electionsCard",card_dom_order:i,telemetryExt:n,telemetryObject:new M.D(r)};h[e].push(u)})),h}(e),viewTemplate:pe},he=s.d`
        ${e=>e.esportsCardConfigInfo&&(0,x.O)(e.esportsCardConfigInfo,{properties:{esportsMetaData:e.esportsMetaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,cardLayout:e.cardLayout,useInlineSvgIcons:e.useInlineSvgIcons,sdCardActionClickHandler:e.sdCardActionClickHandler,supportedSdCardActionMenuItems:e.supportedSdCardActionMenuItems,dismissActionMenu:e.dismissSDCardMenuCallback,widgetInstanceId:e.widgetInstanceId},memoize:!0===e.isDynamicFeed})}
`,me=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >
        ${he}
    </fluent-card>
`,fe=s.d`
    <msft-prong2-card-wrapper
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
        cardsize="${e=>e.cardSize}"
    >
        ${he}
    </msft-prong2-card-wrapper>
`,ve=new Map([[g.Nv._1x_1y,"_1x_1y"],[g.Nv._1x_2y,"_1x_2y"],[g.Nv._1x_3y,"_1x_3y"],[g.Nv._1x_4y,"_1x_4y"]]);const be={getFeedDataForCard:e=>function(e){const{cardMetadata:t,parentTelemetryObject:a,cardSlot:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,useInlineSvgIcons:s,layoutTemplateName:d,rowCount:l,rowHeightPx:c,colWidthPx:u,gutterPx:g,supportedSdCardActionMenuItems:h,dismissSDCardMenuCallback:m,widgetInstanceId:f,isDynamicFeed:v}=e,b={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:C,layouts:y,cardDomOrder:x,telemetryRowCol:w}=i,S={id:"esportsCard",grid_area:C,card_template_type:"esports-card",openLinksInNewTab:n,useInlineSvgIcons:s,esportsCardConfigInfo:o&&o,parentTelemetryObject:a,esportsMetaData:t,sdCardActionClickHandler:r,supportedSdCardActionMenuItems:h,dismissSDCardMenuCallback:m,widgetInstanceId:f,isDynamicFeed:v};return b.cards.push(S),Object.keys(y).forEach((e=>{const t=y[e],a=ve.get(t),i=x&&x[e],n={id:"esportsCard",card_dom_order:i,cardSize:t,cardLayout:a,telemetryExt:(0,p.s)(t,d,C,w&&w[e],l&&l[e],c&&c[e],u,g,i)};b[e].push(n)})),b}(e),viewTemplate:me},Ce=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible"
    class="${e=>e.cardSize}"
> 

${e=>e.esportsStreamsAnswerConfigInfo&&(0,x.O)(e.esportsStreamsAnswerConfigInfo,{properties:{parentTelemetry:e.parentTelemetryObject,esportsCardData:e.esportsCardData}})}
</fluent-card>
`;const ye={getFeedDataForCard:e=>function(e){const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n,refreshSDCardSection:r,layoutTemplateName:o,rowCount:s,rowHeightPx:d,colWidthPx:l,gutterPx:c}=e,u={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:g,layouts:h,cardDomOrder:m,telemetryRowCol:f}=null!=t?t:{layouts:{}},v={id:"esportsStreamsCard",card_template_type:"esports-streams-card",grid_area:g,parentTelemetryObject:i,esportsStreamsAnswerConfigInfo:a&&a,esportsCardData:n.data,refreshSDCardSection:r};return u.cards.push(v),Object.keys(h).forEach((e=>{const t=h[e],a=m&&m[e],n=(0,p.s)(t,o,g,f&&f[e],s&&s[e],d&&d[e],l,c,a);let r=Object.assign({},i);r&&i&&(r=i.addOrUpdateChild(Object.assign(Object.assign({},r.contract),{ext:n})));const v={id:"esportsStreamsCard",card_dom_order:a,cardSize:t,parentTelemetryObject:r};u[e].push(v)})),u}(e),viewTemplate:Ce},xe=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingCompeteCardConfigInfo&&(0,x.O)(e.gamingCompeteCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const we={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingCompeteCard",grid_area:h,card_template_type:"gaming-compete-card",openLinksInNewTab:n,gamingCompeteCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingCompeteCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:xe};const Se=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingMatchCardConfigInfo&&(0,x.O)(e.gamingMatchCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`,Te={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingMatchCard",grid_area:h,card_template_type:"gaming-match-card",openLinksInNewTab:n,gamingMatchCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingMatchCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:Se};const ke=s.d`
    <div
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingMediaCarouselCardConfigInfo&&(0,x.O)(e.gamingMediaCarouselCardConfigInfo,{memoize:!1,properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </div>
`,$e={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingMediaCarouselCard",grid_area:h,card_template_type:"gaming-media-carousel-card",openLinksInNewTab:n,gamingMediaCarouselCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingMediaCarouselCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:ke},Ae=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingPersonalizationCardConfigInfo&&(0,x.O)(e.gamingPersonalizationCardConfigInfo,{properties:{metaData:e.metaData,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback,goToPersonalizeCallback:e.goToPersonalizeCallback}})}
    </fluent-card>
`;const Ie={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,goToPersonalizeCallback:d,rowCount:l,rowHeightPx:c,colWidthPx:u,gutterPx:g}=e,h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=a,C={id:"gamingPersonalizationCard",grid_area:m,card_template_type:"gaming-personalization-card",openLinksInNewTab:n,gamingPersonalizationCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i,goToPersonalizeCallback:d};return h.cards.push(C),Object.keys(f).forEach((e=>{const t=v&&v[e],a=f[e],i={id:"gamingPersonalizationCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,m,b&&b[e],l&&l[e],c&&c[e],u,g,t)};h[e].push(i)})),h}(e),viewTemplate:Ae},De=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingRecentlyPlayedCardConfigInfo&&(0,x.O)(e.gamingRecentlyPlayedCardConfigInfo,{memoize:!1,properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback,refreshSDCardSection:e.refreshSDCardSection}})}
    </fluent-card>
`;const Me={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,refreshSDCardSection:r,sdCardActionClickHandler:o,configOptions:s,layoutTemplateName:d,rowCount:l,rowHeightPx:c,colWidthPx:u,gutterPx:g}=e,h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=a,C={id:"gamingRecentlyPlayedCard",grid_area:m,card_template_type:"gaming-recentlyplayed-card",openLinksInNewTab:n,gamingRecentlyPlayedCardConfigInfo:s&&s,metaData:t,sdCardActionClickHandler:o,hideCardCallback:i,refreshSDCardSection:r};return h.cards.push(C),Object.keys(f).forEach((e=>{const t=v&&v[e],a=f[e],i={id:"gamingRecentlyPlayedCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,d,m,b&&b[e],l&&l[e],c&&c[e],u,g,t)};h[e].push(i)})),h}(e),viewTemplate:De},Oe=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingRecommendedCardConfigInfo&&(0,x.O)(e.gamingRecommendedCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const Le={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingRecommendedCard",grid_area:h,card_template_type:"gaming-recommended-card",openLinksInNewTab:n,gamingRecommendedCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingRecommendedCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:Oe},Fe=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingRedditCardConfigInfo&&(0,x.O)(e.gamingRedditCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const Pe={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingRedditCard",grid_area:h,card_template_type:"gaming-reddit-card",openLinksInNewTab:n,gamingRedditCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingRedditCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:Fe},Re=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingRewardsCardConfigInfo&&(0,x.O)(e.gamingRewardsCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const _e={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingRewardsCard",grid_area:h,card_template_type:"gaming-rewards-card",openLinksInNewTab:n,gamingRewardsCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingRewardsCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:Re},Ee=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingStreamCardConfigInfo&&(0,x.O)(e.gamingStreamCardConfigInfo,{memoize:!1,properties:{baseCardData:e,metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const He={getFeedDataForCard:e=>function(e){var t;const{cardMetadata:a,cardSlot:i,hideCardCallback:n,openLinksInNewTab:r,sdCardActionClickHandler:o,configOptions:s,layoutTemplateName:d,rowCount:l,rowHeightPx:c,colWidthPx:u,gutterPx:g}=e,h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=i,C=s&&s,y={id:null!==(t=null==a?void 0:a.type)&&void 0!==t?t:"gamingStreamCard",grid_area:m,card_template_type:"gaming-stream-card",openLinksInNewTab:r,gamingStreamCardConfigInfo:C,metaData:a,sdCardActionClickHandler:o,hideCardCallback:n};return h.cards.push(y),Object.keys(f).forEach((e=>{var t;const i=v&&v[e],n=f[e],r=(0,p.s)(n,d,m,b&&b[e],l&&l[e],c&&c[e],u,g,i),o={id:null!==(t=null==a?void 0:a.type)&&void 0!==t?t:"gamingStreamCard",card_dom_order:i,cardSize:n,telemetryExt:r};h[e].push(o)})),h}(e),viewTemplate:Ee};const Ne=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingTournamentCardConfigInfo&&(0,x.O)(e.gamingTournamentCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,useInlineSvgIcons:e.useInlineSvgIcons,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`,ze={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,useInlineSvgIcons:s,layoutTemplateName:d,rowCount:l,rowHeightPx:c,colWidthPx:u,gutterPx:g}=e,h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=a,C={id:"gamingTournamentCard",grid_area:m,card_template_type:"gaming-tournament-card",openLinksInNewTab:n,useInlineSvgIcons:s,gamingTournamentCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return h.cards.push(C),Object.keys(f).forEach((e=>{const t=v&&v[e],a=f[e],i={id:"gamingTournamentCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,d,m,b&&b[e],l&&l[e],c&&c[e],u,g,t)};h[e].push(i)})),h}(e),viewTemplate:Ne},Ue=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingUpcomingCardConfigInfo&&(0,x.O)(e.gamingUpcomingCardConfigInfo,{properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,useInlineSvgIcons:e.useInlineSvgIcons,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const je={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,useInlineSvgIcons:s,layoutTemplateName:d,rowCount:l,rowHeightPx:c,colWidthPx:u,gutterPx:g}=e,h={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:f,cardDomOrder:v,telemetryRowCol:b}=a,C={id:"gamingUpcomingCard",grid_area:m,card_template_type:"gaming-upcoming-card",openLinksInNewTab:n,useInlineSvgIcons:s,gamingUpcomingCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return h.cards.push(C),Object.keys(f).forEach((e=>{const t=v&&v[e],a=f[e],i={id:"gamingUpcomingCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,d,m,b&&b[e],l&&l[e],c&&c[e],u,g,t)};h[e].push(i)})),h}(e),viewTemplate:Ue},Be=s.d`
    <fluent-card 
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >    
        ${e=>e.gamingVideoCardConfigInfo&&(0,x.O)(e.gamingVideoCardConfigInfo,{memoize:!1,properties:{metaData:e.metaData,telemetryExt:e.telemetryExt,openLinksInNewTab:e.openLinksInNewTab,cardSize:e.cardSize,sdCardActionClickHandler:e.sdCardActionClickHandler,hideCardCallback:e.hideCardCallback}})}
    </fluent-card>
`;const We={getFeedDataForCard:e=>function(e){const{cardMetadata:t,cardSlot:a,hideCardCallback:i,openLinksInNewTab:n,sdCardActionClickHandler:r,configOptions:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=a,b={id:"gamingVideoCard",grid_area:h,card_template_type:"gaming-video-card",openLinksInNewTab:n,gamingVideoCardConfigInfo:o&&o,metaData:t,sdCardActionClickHandler:r,hideCardCallback:i};return g.cards.push(b),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],i={id:"gamingVideoCard",card_dom_order:t,cardSize:a,telemetryExt:(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t)};g[e].push(i)})),g}(e),viewTemplate:Be};var Ge=a(69298);Ge.ay;const Ve=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};"
    class="${e=>e.cardSize}"
>
    ${e=>e.groceryCouponSdCardConfigInfo&&(0,x.O)(e.groceryCouponSdCardConfigInfo,{properties:{coupons:e.cardMetadata,parentTelemetry:e.parentTelemetryObject,sdCardActionClickHandler:e.sdCardActionClickHandler,goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback,hideCardCallback:e.hideCardCallback}})}


</fluent-card>
`;const qe={getFeedDataForCard:e=>function(e){const{cardMetadata:t,configOptions:a,parentTelemetryObject:i,cardSlot:n,layoutTemplateName:r,rowCount:o,rowHeightPx:s,colWidthPx:d,gutterPx:l,colOverride:c,sdCardActionClickHandler:u,hideCardCallback:g,goToPersonalizeSettingsCallback:h}=e,m={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:f,layouts:v,cardDomOrder:b,telemetryRowCol:C}=n,y=a&&a,x=t&&t.data&&JSON.parse(t.data),w={id:"groceryCouponSdCard",card_template_type:"grocery-coupon-sd-card",grid_area:f,parentTelemetryObject:i,groceryCouponSdCardConfigInfo:y,cardMetadata:x};return m.cards.push(w),Object.keys(v).forEach((e=>{const t=v[e],a=b&&b[e],n=(0,p.s)(t,r,f,C&&C[e],o&&o[e],s&&s[e],d,l,a);let c=Object.assign({},i);i&&c&&(c=i.addOrUpdateChild(Object.assign(Object.assign({},c.contract),{ext:n})));const y={id:"groceryCouponSdCard",card_dom_order:a,cardSize:t,parentTelemetryObject:c,sdCardActionClickHandler:u,hideCardCallback:g,goToPersonalizeSettingsCallback:h};m[e].push(y)})),m}(e),viewTemplate:Ve},Ze=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible"
    class="${e=>e.cardSize}"
>
    <bing-health-card
        config-instance-src=${e=>(0,d.g)(e.bingHealthAnswerConfigInfo)}
        instance-id=${e=>e.bingHealthAnswerConfigInfo.instanceId}
        data-t="${e=>e.telemetryObject.getMetadataTag()}"
        :parentTelemetry=${e=>e.parentTelemetryObject}
        :telemetryExt=${e=>e.telemetryExt}
        :binghealthCardData=${e=>e.binghealthCardData}
        :useInlineSvgIcons=${e=>e.useInlineSvgIcons}
        :sdCardActionClickHandler=${e=>e.sdCardActionClickHandler}
        :refreshFeed=${e=>e.refreshFeed}
        :goToPersonalizeSettingsCallback=${e=>e.goToPersonalizeSettingsCallback}
    >
    </bing-health-card>
</fluent-card>
`;const Je={getFeedDataForCard:e=>function(e){try{const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n,useInlineSvgIcons:r,refreshSDCardSection:o,refreshFeedCallback:s,goToPersonalizeSettingsCallback:d,sdCardActionClickHandler:l,layoutTemplateName:c,rowCount:u,rowHeightPx:g,colWidthPx:h,gutterPx:m}=e,f={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:v,layouts:b,cardDomOrder:C,telemetryRowCol:y}=t,x=a&&a,w=n&&n.data&&JSON.parse(n.data),S={id:"bingHealthCard",card_template_type:"health-card",useInlineSvgIcons:r,grid_area:v,parentTelemetryObject:i,bingHealthAnswerConfigInfo:x,binghealthCardData:w,sdCardActionClickHandler:l,refreshFeed:o||s,goToPersonalizeSettingsCallback:d};return f.cards.push(S),Object.keys(b).forEach((e=>{var t;const a=b[e],i=C&&C[e],n=(0,p.s)(a,c,v,y&&y[e],u&&u[e],g&&g[e],h,m,i),r={type:D.c9.Module,name:null===(t=null==x?void 0:x.configRef)||void 0===t?void 0:t.experienceType,ext:n},o={id:"bingHealthCard",card_dom_order:i,telemetryExt:n,telemetryObject:new M.D(r)};f[e].push(o)})),f}catch(e){(0,c.OO)(e,u.$eW,"Error in Health Card data Mapper")}}(e),viewTemplate:Ze};var Qe=a(83227);const Xe="FitnessCard",Ye="Header",Ke="Destination",et="Footer",tt="PreviousSlideArrow",at="NextSlideArrow",it="MoreSettings",nt="Hide";var rt=a(53813),ot=a(11708),st=a(9610),dt=a(12697),lt=a(33832),ct=a(87697),ut=a(791);class pt extends st.l{constructor(){super(...arguments),this.clickUrl="https://bing.com",this.currentCard=1,this.fitnessHubUrl="",this.theamId="",this.isActionMenuOpen=!1,this.handleVideoCardClick=(e,t,a,i)=>{var n,r;const o=null==e?void 0:e.currentTarget,s=new M.D({name:Ke,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.Navigate,overrideDestinationUrl:i,content:{id:t,vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:a},ext:null===(r=null===(n=this.parentTelemetry)||void 0===n?void 0:n.contract)||void 0===r?void 0:r.ext}).getMetadataTag();o.setAttribute("data-t",s),$.M0.sendActionEvent(o,D.Aw.Click,D.wu.Navigate),window.open(i,"_blank")},this.hideHealthCard=()=>(0,i.mG)(this,void 0,void 0,(function*(){try{let e=!1;return e=yield ut.N.updateSegmentCardsEnableStatus([{cardType:ot.f.HealthCard,enabled:!1}]),e&&(this.refreshFeed?this.refreshFeed():this.$emit("refreshSDCardSection")),this.toggleActionMenu(!1,null),e}catch(e){return(0,c.OO)(e,u.Hrk,"Error in Bing Health Fitness Card WCE hide option"),!1}})),this.moreSettingAction=()=>{this.toggleActionMenu(!1,null),this.$emit("goToPersonalizeSettingsCallback")},this.onOutsideClick=e=>{e.target instanceof pt||this.actionsMenuButtonElement.contains(e.path[0])||this.toggleActionMenu(!1,null)},this.onKeydown=e=>{e.keyCode===lt.Lp&&this.toggleActionMenu(!1,null)}}experienceConnected(){try{this.populateCardsData(),this.generateTelemetryTags(),this.actionsMenuProps=this.generateActionsMenuProps()}catch(e){(0,c.OO)(e,u.Hrk,"Error in Bing Health Fitness Card WCE experience Connected")}}getExperienceType(){return Qe.x.bingHealthFitnessCard}getGradientRGBColor(e){try{if(!e)throw new Error(`Invalid color string = ${e}`);const t=null==e?void 0:e.substr(1),a=parseInt(null==t?void 0:t.substr(0,2),16),i=parseInt(null==t?void 0:t.substr(2,2),16),n=parseInt(null==t?void 0:t.substr(4,2),16);if(!(0,dt.Z)(a)||!(0,dt.Z)(i)||!(0,dt.Z)(n))throw new Error(`Could not extract color from = ${e}`);return`${a}, ${i}, ${n}`}catch(e){return"58, 52, 45"}}getCardGradient(e){return e?"dark-gradient":"light-gradient"}getVideoTime(e){try{if(!e||isNaN(e)||e<=0)throw new Error(`Invalid time = ${e}`);const t={hour:0,minute:0,second:0};if(t.hour=Math.floor(e/3600),t.minute=Math.floor(e%3600/60),t.second=Math.floor(e%3600%60),t.hour<=0&&t.minute<=0&&t.second<=0)throw new Error(`Could not decode time from ${e}`);return this.videoTime=t,t}catch(e){return null}}addZeroBefore(e){return`0${e}`}nextCard(){this.carousalRef.style.transform=`translateX(${-258*this.currentCard}px)`,this.currentCard=this.currentCard+1}previousCard(){const e=-258*(this.currentCard-1);this.carousalRef.style.transform=`translateX(${e+258}px)`,this.currentCard=this.currentCard-1}handlePartnerName(e){if(e.length<=21)return e;{const t=e.split("·");if(t.length>0&&t[0].length<=7)return t.join(" · ");{const e=t[0].slice(0,5);return t[0]=e+"...",t.join(" · ")}}}populateCardsData(){this.headCard={titleText:"",titleBackgroundColor:"",thumbnailURLBing:"",isDarkGradientForTitle:!0,navigationText:""},this.workoutCards=[],this.tailCard={titleText:"",theamIconType:""};try{this.bingHealthFitnessCardData&&(this.bingHealthFitnessCardData.headCard&&(this.headCard=this.bingHealthFitnessCardData.headCard),this.bingHealthFitnessCardData.workoutCards&&this.bingHealthFitnessCardData.workoutCards.length>0&&(this.workoutCards=this.bingHealthFitnessCardData.workoutCards),this.bingHealthFitnessCardData.tailCard&&(this.tailCard=this.bingHealthFitnessCardData.tailCard),this.fitnessHubUrl=this.bingHealthFitnessCardData.fitnessHubUrl?this.bingHealthFitnessCardData.fitnessHubUrl:this.fitnessHubUrl,this.theamId=this.bingHealthFitnessCardData.theamId?this.bingHealthFitnessCardData.theamId:this.theamId,this.bingHealthFitnessCardData&&this.bingHealthFitnessCardData.workoutCards.length>0?this.totalCards=this.bingHealthFitnessCardData.workoutCards.length+2:this.bingHealthFitnessCardData&&this.bingHealthFitnessCardData.headCard&&this.bingHealthFitnessCardData.tailCard&&(this.totalCards=2))}catch(e){(0,c.OO)(e,u.Hrk,"Error in Bing Health Fitness Card WCE populate data")}}generateTelemetryTags(){var e,t,a,i,n,r,o,s,d,l,c,u,p,g,h,m,f,v,b,C;this.telemetryObject&&(this.healthFitnessCardTelemetryObject=this.telemetryObject.addOrUpdateChild({name:Xe,content:{vertical:"lifestyle",category:"health",type:D.uH.StructuredData},ext:null===(t=null===(e=this.parentTelemetry)||void 0===e?void 0:e.contract)||void 0===t?void 0:t.ext}),this.healthFitnessCardTelemetryTag=this.healthFitnessCardTelemetryObject.getMetadataTag(),this.fitnessHeaderTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:Ye,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.Navigate,content:{vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:`${this.strings.category} | ${this.strings.subCategory}`},ext:null===(i=null===(a=this.parentTelemetry)||void 0===a?void 0:a.contract)||void 0===i?void 0:i.ext}).getMetadataTag(),this.fitnessHeadCardTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:Ke,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.Navigate,content:{id:this.generateHeadCardId(),vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:"Head Card"},ext:null===(r=null===(n=this.parentTelemetry)||void 0===n?void 0:n.contract)||void 0===r?void 0:r.ext}).getMetadataTag(),this.fitnessTailCardTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:Ke,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.Navigate,content:{id:"tailCard",vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:"Tail Card"},ext:null===(s=null===(o=this.parentTelemetry)||void 0===o?void 0:o.contract)||void 0===s?void 0:s.ext}).getMetadataTag(),this.footerClickTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:et,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.Navigate,overrideDestinationUrl:this.fitnessHubUrl,content:{vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:this.strings.discoverMoreOnHealth},ext:null===(l=null===(d=this.parentTelemetry)||void 0===d?void 0:d.contract)||void 0===l?void 0:l.ext}).getMetadataTag(),this.previousButtonClickTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:tt,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.More,content:{vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:"PreviousSlideArrow"},ext:null===(u=null===(c=this.parentTelemetry)||void 0===c?void 0:c.contract)||void 0===u?void 0:u.ext}).getMetadataTag(),this.nextButtonClickTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:at,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.More,content:{vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:"NextSlideArrow"},ext:null===(g=null===(p=this.parentTelemetry)||void 0===p?void 0:p.contract)||void 0===g?void 0:g.ext}).getMetadataTag(),this.fitnessVideoCardTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:Ke,type:D.c9.BingHealthFitnessCard,action:D.Aw.Click,behavior:D.wu.Navigate,overrideDestinationUrl:"",content:{id:"videoId",vertical:"lifestyle",category:"health",type:D.uH.StructuredData,headline:"video card"},ext:null===(m=null===(h=this.parentTelemetry)||void 0===h?void 0:h.contract)||void 0===m?void 0:m.ext}).getMetadataTag(),this.customizeTelemetryTag=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:it,behavior:D.wu.More,content:{type:D.uH.StructuredData,headline:"More settings"},ext:null===(v=null===(f=this.parentTelemetry)||void 0===f?void 0:f.contract)||void 0===v?void 0:v.ext}).getMetadataTag(),this.hideCardTelemetryTags=this.healthFitnessCardTelemetryObject.addOrUpdateChild({name:nt,behavior:D.wu.Hide,content:{type:D.uH.StructuredData,headline:"Hide this card"},ext:null===(C=null===(b=this.parentTelemetry)||void 0===b?void 0:b.contract)||void 0===C?void 0:C.ext}).getMetadataTag())}generateHeadCardId(){let e="headCard";if(this.bingHealthFitnessCardData&&this.bingHealthFitnessCardData.headCard){const t=new URLSearchParams(this.bingHealthFitnessCardData.headCard.thumbnailURLBing.split("?")[1]);t.has("id")&&(e=t.get("id")),this.bingHealthFitnessCardData.theamId&&(e=`${this.bingHealthFitnessCardData.theamId}:${e}`)}return e}shadowDomPopulated(){var e;const t=this.themeTitleRef;t&&(null===(e=this.bingHealthFitnessCardData)||void 0===e?void 0:e.headCard)&&(t.innerHTML=`${this.bingHealthFitnessCardData.headCard.titleText}`)}changeLink(){this.showAlternateLinkText=!this.showAlternateLinkText}generateActionsMenuProps(){return{menuItems:this.getActionMenuItem()}}getActionMenuItem(){return[{id:"more",glyph:'\n<svg width="11" height="3" viewBox="0 0 11 3" fill="none" xmlns="http://www.w3.org/2000/svg">\n    <path d="M2.5 1.25C2.5 1.94036 1.94036 2.5 1.25 2.5C0.559644 2.5 0 1.94036 0 1.25C0 0.559644 0.559644 0 1.25 0C1.94036 0 2.5 0.559644 2.5 1.25Z" fill-opacity="0.83"/>\n    <path d="M6.5 1.25C6.5 1.94036 5.94036 2.5 5.25 2.5C4.55964 2.5 4 1.94036 4 1.25C4 0.559644 4.55964 0 5.25 0C5.94036 0 6.5 0.559644 6.5 1.25Z" fill-opacity="0.83"/>\n    <path d="M9.25 2.5C9.94036 2.5 10.5 1.94036 10.5 1.25C10.5 0.559644 9.94036 0 9.25 0C8.55964 0 8 0.559644 8 1.25C8 1.94036 8.55964 2.5 9.25 2.5Z" fill-opacity="0.83"/>\n</svg>\n',title:this.strings.moreSettingsText,onClick:()=>(0,i.mG)(this,void 0,void 0,(function*(){this.moreSettingAction()})),telemetryTag:this.customizeTelemetryTag},{id:"hide",glyph:rt.Z,title:this.strings.hideCardText,ariaLabel:this.strings.sdCardMoreSettingAriaLabel,onClick:()=>(0,i.mG)(this,void 0,void 0,(function*(){this.hideHealthCard()})),telemetryTag:this.hideCardTelemetryTags}]}toggleActionMenu(e,t){this.isActionMenuOpen=e,this.isActionMenuOpen?(this.actionsMenuButtonElement=t&&t.currentTarget,document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.actionsMenuButtonElement=null,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown))}}(0,i.gn)([ct.LO],pt.prototype,"showAlternateLinkText",void 0),(0,i.gn)([ct.LO],pt.prototype,"clickUrl",void 0),(0,i.gn)([ct.LO],pt.prototype,"currentCard",void 0),(0,i.gn)([ct.LO],pt.prototype,"totalCards",void 0),(0,i.gn)([ct.LO],pt.prototype,"headCard",void 0),(0,i.gn)([ct.LO],pt.prototype,"tailCard",void 0),(0,i.gn)([ct.LO],pt.prototype,"workoutCards",void 0),(0,i.gn)([ct.LO],pt.prototype,"fitnessHubUrl",void 0),(0,i.gn)([ct.LO],pt.prototype,"theamId",void 0),(0,i.gn)([ct.LO],pt.prototype,"customizeTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"actionsMenuProps",void 0),(0,i.gn)([ct.LO],pt.prototype,"hideCardTelemetryTags",void 0),(0,i.gn)([ct.LO],pt.prototype,"isActionMenuOpen",void 0),(0,i.gn)([ct.LO],pt.prototype,"healthFitnessCardTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"fitnessHeaderTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"fitnessHeadCardTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"fitnessVideoCardTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"fitnessTailCardTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"footerClickTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"previousButtonClickTelemetryTag",void 0),(0,i.gn)([ct.LO],pt.prototype,"nextButtonClickTelemetryTag",void 0);const gt=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible"
    class="${e=>e.cardSize}"
>
    ${e=>(0,x.O)(e.bingHealthFitnessAnswerConfigInfo,{includeTelemetryTag:!1,properties:{parentTelemetry:e.parentTelemetryObject,bingHealthFitnessCardData:e.bingHealthFitnessCardData,healthFitnessCarouselData:e.healthFitnessCarouselData,refreshSDCardSection:e.refreshSDCardSection,sdCardActionClickHandler:e.sdCardActionClickHandler,refreshFeed:e.refreshFeed},events:{goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback}})}
        
</fluent-card>
`;const ht={getFeedDataForCard:e=>function(e){const t={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]};try{const{cardSlot:a,configOptions:i,parentTelemetryObject:n,cardMetadata:r,refreshSDCardSection:o,refreshFeedCallback:s,goToPersonalizeSettingsCallback:d,sdCardActionClickHandler:l,layoutTemplateName:g,rowCount:h,rowHeightPx:m,colWidthPx:f,gutterPx:v,colOverride:b}=e,{grid_area:C,layouts:y,cardDomOrder:x,telemetryRowCol:w}=a,S=i&&i;try{const e=r&&r.data&&JSON.parse(r.data),a={id:"bingHealthFitnessCard",card_template_type:"health-fitness-card",grid_area:C,parentTelemetryObject:n,bingHealthFitnessAnswerConfigInfo:S,bingHealthFitnessCardData:e,healthFitnessCarouselData:e,sdCardActionClickHandler:l,refreshFeed:o||s,goToPersonalizeSettingsCallback:d,refreshSDCardSection:o};t.cards.push(a)}catch(a){return(0,c.H)(u.Hrk,`Error in transforming data = ${JSON.stringify(e)}`),t}try{Object.keys(y).forEach((e=>{const a=y[e],i=x&&x[e],r=(0,p.s)(a,g,C,w&&w[e],h&&h[e],m&&m[e],f,v,i,b);let o=Object.assign({},n);o&&(o=n.addOrUpdateChild(Object.assign(Object.assign({},o.contract),{ext:r})));const s={cardSize:a,id:"bingHealthFitnessCard",grid_area:C,card_dom_order:i,parentTelemetryObject:o};t[e].push(s)}))}catch(a){return(0,c.H)(u.Hrk,`Error in populating layouts and position telemetry = ${JSON.stringify(e)}`),t}}catch(t){(0,c.H)(u.Hrk,`Error in feed layout mapperargs = ${JSON.stringify(e)}`)}return t}(e),viewTemplate:gt},mt=s.d`
<fluent-card
    id="health-tip-card"
    style="grid-area:${e=>e.grid_area};contain:unset;content-visibility:visible"
    class="${e=>e.cardSize}"
>
    ${e=>e.healthTipConfigInfo&&(0,x.O)(e.healthTipConfigInfo,{includeTelemetryTag:!1,properties:{parentTelemetry:e.parentTelemetryObject,healthTipData:e.healthTipData,refreshSDCardSection:e.refreshSDCardSection,sdCardActionClickHandler:e.sdCardActionClickHandler,refreshFeed:e.refreshFeed},events:{goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback}})}
        
</fluent-card>
`;const ft={getFeedDataForCard:e=>function(e){const t={cards:[],C5:[],C4:[],C3:[],C2:[],C1:[]};try{const{cardSlot:a,configOptions:i,parentTelemetryObject:n,cardMetadata:r,refreshSDCardSection:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:g,gutterPx:h,colOverride:m,sdCardActionClickHandler:f,refreshFeedCallback:v,goToPersonalizeSettingsCallback:b}=e,{grid_area:C,layouts:y,cardDomOrder:x,telemetryRowCol:w}=a,S=i&&i;try{const e=r&&r.data&&JSON.parse(r.data),a={id:"healthTipCard",card_template_type:"health-tip-card",grid_area:C,parentTelemetryObject:n,healthTipConfigInfo:S,healthTipData:e,sdCardActionClickHandler:f,refreshFeed:o||v,goToPersonalizeSettingsCallback:b,refreshSDCardSection:o};t.cards.push(a)}catch(a){return(0,c.H)(u.nCk,`Error in transforming data: ${a}, mapperargs = ${JSON.stringify(e)}`),t}try{Object.keys(y).forEach((e=>{const a=y[e],i=x&&x[e],r=(0,p.s)(a,s,C,w&&w[e],d&&d[e],l&&l[e],g,h,i,m);let o=Object.assign({},n);o&&(o=n.addOrUpdateChild(Object.assign(Object.assign({},o.contract),{ext:r})));const c={cardSize:a,id:"healthTipCard",grid_area:C,card_dom_order:i,parentTelemetryObject:o};t[e].push(c)}))}catch(a){return(0,c.H)(u.nCk,`Error in populating layouts and position telemetry: ${a}, mapperargs = ${JSON.stringify(e)}`),t}}catch(t){(0,c.H)(u.nCk,`Error in feed layout: ${t}, mapperargs = ${JSON.stringify(e)}`)}return t}(e),viewTemplate:mt};var vt=a(33442),bt=a(6218),Ct=a(89967),yt=a(17533),xt=a(34339),wt=a(18544),St=a(24277),Tt=a(9431),kt=a(70345),$t=a(64302);a(74553).N;const At=s.d`
    <style>
        .hide-story-card fluent-button::part(control) {
            width: 100%;
        }
        msn-hide-story-card.hide-story-card fluent-button::part(content) {
            text-overflow: ellipsis;
            overflow: hidden;
        }
        msn-hide-story-card.hide-story-card fluent-button {
            width: 48%;
            margin: 0 0 8px 0;
            display: flex;
        }
        msn-hide-story-card.hide-story-card::part(content-region) {
            display: inline-flex;
            align-items: center;
            padding: 16px 16px 0px;
            cursor: default;
        }
        msn-hide-story-card.hide-story-card::part(action-region) {
            display: flex;
            position: absolute;
            padding: 0px 16px 16px;
            justify-content: space-around;
            bottom: 0px;
            width: 100%;
            box-sizing: border-box;
            align-items: center;
            margin: 0;
        }
    </style>
    <msn-hide-story-card
        class="hide-story-card"
        hideStoryTitle="${e=>e.hideStoryTitleData.text}"
        data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideStoryCard)||void 0===a?void 0:a.getMetadataTag()}}"
    >
        <fluent-button
            autofocus
            aria-label=${e=>e.personalizeButtonTextData.text}
            role="button"
            title=${e=>e.personalizeButtonTextData.text}
            @click=${e=>e.personalizeButtonCallback&&e.personalizeButtonCallback()}
            slot="actions"
            appearance="accent"
            data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.confirmButton)||void 0===a?void 0:a.getMetadataTag()}}"
        >
            ${e=>e.personalizeButtonTextData.text}
        </fluent-button>
        <fluent-button
            aria-label=${e=>e.undoHideButtonText}
            role="button"
            title=${e=>e.undoHideButtonText}
            @click=${e=>e.undoHideButtonCallback&&e.undoHideButtonCallback()}
            slot="actions"
            appearance="neutral"
            data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.cancelButton)||void 0===a?void 0:a.getMetadataTag()}}"
        >
            ${e=>e.undoHideButtonText}
        </fluent-button>
    </msn-hide-story-card> 
`,It=((0,vt.A4)((()=>wt.dw))(bt.ZP),(0,Ct.wF)((0,vt.A4)((()=>wt.dw)))(bt.ZP),(0,Ct.Xi)((0,vt.A4)((()=>wt.dw)))(bt.ZP),(0,yt.jq)((0,vt.A4)((()=>wt.dw)))(bt.ZP),(0,xt.Q)((0,vt.A4)((()=>wt.dw)))(bt.ZP),(0,vt.l$)((()=>wt.m0))(bt.ZP),(0,Ct.wF)((0,vt.l$)((()=>wt.m0)))(bt.ZP),(0,Ct.Xi)((0,vt.l$)((()=>wt.m0)))(bt.ZP),(0,yt.jq)((0,vt.l$)((()=>wt.m0)))(bt.ZP),(0,xt.Q)((0,vt.l$)((()=>wt.m0)))(bt.ZP),s.d`
    <fluent-card
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >
        ${e=>(e=>e.showAdFeedback?e.cardActionStatus&h.O7.adFeedbackSubmitted?St.X:Tt.H:e.cardActionStatus&h.O7.hidden?kt.c:e.enableHideStoryFeedback?$t.V:At)(e)}
    </fluent-card>
`),Dt={getFeedDataForCard:null,viewTemplate:It},Mt=s.d`
<fluent-card
    style="grid-area:${e=>e.grid_area};contain:none;content-visibility:visible"
    class="${e=>e.cardSize}"
>
${e=>e.horoscopeAnswerConfigInfo&&(0,x.O)(e.horoscopeAnswerConfigInfo,{properties:{parentTelemetry:e.parentTelemetryObject,horoscopeData:e.horoscopeData,goToPersonalizeSettingsCallback:e.goToPersonalizeSettingsCallback}})}
</fluent-card>
`;const Ot={getFeedDataForCard:e=>function(e){const{cardSlot:t,configOptions:a,parentTelemetryObject:i,layoutTemplateName:n,rowCount:r,rowHeightPx:o,colWidthPx:s,gutterPx:d,cardMetadata:l,goToPersonalizeSettingsCallback:c}=e,u={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:g,layouts:h,cardDomOrder:m,telemetryRowCol:f}=t;let v;a&&a.childExperienceReferencesWC&&(v=a.childExperienceReferencesWC.horoscopeCard),v&&v.instanceId||(v=a&&a);const b=l&&l.data&&JSON.parse(l.data),C={id:"horoscopeCard",card_template_type:"horoscope-card",goToPersonalizeSettingsCallback:c,grid_area:g,parentTelemetryObject:i,horoscopeAnswerConfigInfo:v,horoscopeData:b};return u.cards.push(C),Object.keys(h).forEach((e=>{const t=m&&m[e],a=h[e],l=(0,p.s)(a,n,g,f&&f[e],r&&r[e],o&&o[e],s,d,t);let c=Object.assign({},i);c&&i&&(c=i.addOrUpdateChild(Object.assign(Object.assign({},c.contract),{ext:l})));const v={id:"horoscopeCard",card_dom_order:t,parentTelemetryObject:c};u[e].push(v)})),u}(e),viewTemplate:Mt},Lt=s.d`
    ${(0,V.g)((e=>e.industryNewsCardConfigInfo),s.d`
        <fluent-card
            style="grid-area:${e=>e.grid_area};contain:content;content-visibility:visible"
            class="${e=>e.cardSize}"
        >
            <fluent-design-system-provider neutral-base-color=${e=>{var t;return null===(t=e.overrides)||void 0===t?void 0:t.neutralColor}}>
                <industry-news-card
                    config-instance-src=${e=>e.industryNewsCardConfigInfo&&(0,d.g)(e.industryNewsCardConfigInfo)}
                    instance-id=${e=>e.industryNewsCardConfigInfo&&e.industryNewsCardConfigInfo.instanceId}
                    :cardOverrides=${e=>e.overrides}
                    :cardLayout=${e=>e.cardLayout}
                    :removeProductivityCard=${e=>e.refreshSDCardSection}
                    :navigateToPersonalizeSetting=${e=>e.goToPersonalizeSettingsCallback}
                    :parentTelemetry=${e=>e.parentTelemetryObject}
                >
                </industry-news-card>
            </fluent-design-system-provider>
        </fluent-card>
    `)}
`;const Ft={getFeedDataForCard:e=>function(e){const{cardSlot:t,configOptions:a,parentTelemetryObject:i,cardMetadata:n,goToPersonalizeSettingsCallback:r,refreshSDCardSection:o,layoutTemplateName:s,rowCount:d,rowHeightPx:l,colWidthPx:c,gutterPx:u}=e,g={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:h,layouts:m,cardDomOrder:f,telemetryRowCol:v}=t,b=a&&a.industryNewsCardConfig||a,C=n&&n.data&&JSON.parse(n.data),y=n&&n.segmentMetadata?n.segmentMetadata.cardLayout:void 0,x=b?b.cardLayout:void 0,w={id:"industryNewsCard",card_template_type:"industry-news-card",cardLayout:y||x,grid_area:h,parentTelemetryObject:i,industryNewsCardConfigInfo:b,industryNewsCardData:C,goToPersonalizeSettingsCallback:r,refreshSDCardSection:o,overrides:{neutralColor:b?b.neutralColor:void 0}};return g.cards.push(w),Object.keys(m).forEach((e=>{const t=f&&f[e],a=m[e],n=(0,p.s)(a,s,h,v&&v[e],d&&d[e],l&&l[e],c,u,t);let r=Object.assign({},i);r&&i&&(r=i.addOrUpdateChild(Object.assign(Object.assign({},r.contract),{ext:n})));const o={id:"industryNewsCard",card_dom_order:t,cardSize:a,parentTelemetryObject:r};g[e].push(o)})),g}(e),viewTemplate:Lt};var Pt=a(18864);const Rt={rating:"data-3",likes:"data-4",price:"data-6",salePrice:"data-7",installmentPrice:"data-500",priceDrop:"data-501",freeShipping:"data-502",viewed:"data-503",sold:"data-504",specialOffer:"data-505",eliteBadge:"data-506",condition:"data-507",localInventory:"data-508",curbsidePickup:"data-509",review:"data-510",shortTitle:"data-511",returnPolicy:"data-512",disclaimer:"data-513",discount:"data-600",logo:"image-1",transparentImage:"image-500"},_t={font:"p1",shipping:"p2",ratings:"p3"},Et=["specialOffer"],Ht=[Rt.disclaimer];var Nt=a(13578),zt=a(31011),Ut=a(13042),jt=a(94231);const Bt="invalid",Wt="1x1.91",Gt="9x16",Vt="3x4",qt="1x1",Zt="4x3",Jt="16x9",Qt="1.91x1";var Xt,Yt,Kt;!function(e){e.Adult="adult",e.Enterprise="enterprise"}(Xt||(Xt={})),function(e){e.AdFeedV2="feedv2-template",e.Default="msft-content-card",e.PatternOverlay="msn-pattern-overlay-card",e.PseudoVideo="msn-pseudo-video-card",e.Slideshow="msn-slideshow-card",e.ZIndex="msn-z-index-card",e.AdCarousel="msn-ad-carousel",e.AnimatedImagery="msn-animated-imagery",e.InfopaneHorizontal_1by1="msn-info-pane-horizontal-1-by-1",e.InfopaneHorizontal_3by4="msn-info-pane-horizontal-3-by-4",e.InfopaneHorizontal_4by3="msn-info-pane-horizontal-4-by-3",e.InfopaneHorizontal_9by16="msn-info-pane-horizontal-9-by-16",e.InfopanePatternOverlay_1by1="msn-info-pane-pattern-overlay-1-by-1",e.InfopanePatternOverlay_4by3="msn-info-pane-pattern-overlay-4-by-3",e.InfopaneDoubleCard_19by10="msn-card-19-by-10",e.RiverAnimatedImagery_9by16="msn-river-animated-imagery-9-by-16",e.RiverZIndex_9by16="msn-river-z-index-9-by-16",e.RiverZIndex_3by4="msn-river-z-index-3-by-4",e.HotspotSingle="msn-hotspot-single",e.BrandStory="msn-brand-story",e.CallToAction="msn-ad-cta",e.CallToActionLearnMore="msn-ad-cta-learn-more",e.CallToActionDarkMode="msn-ad-cta-learn-more-dark-mode",e.CallToActionIcon="msn-ad-cta-icon",e.CallToActionShortTitle="msn-ad-cta-short-title",e.CallToActionMaskMode="msn-ad-cta-mask-mode",e.ContentReveal="msn-content-reveal",e.DiscountScribble="msn-discount-scribble",e.BrandStoryNoDeco="msn-brand-story-no-deco",e.BrandStoryNoProgressiveDisplay="msn-brand-story-no-progressive-display",e.Gamification="msn-gamification",e.HighlightRating="msn-highlight-rating-card",e.DecorationDynamic="msn-decoration-dynamic",e.TitleMaxLine2="msn-title-max-line-2",e.TitleMaxLine2C="msn-title-max-line-2-c",e.InfopaneDynamicRendering="msn-info-pane-dynamic-rendering",e.Logo="msn-native-ad-logo",e.LogoWithBorderRadius="msn-native-ad-logo-radius",e.ShortTitle="msn-native-ad-short-title",e.Spotlight="msn-spotlight-image",e.Disclaimer="msn-ad-disclaimer",e.ZIndexV2Original="msn-ad-zindex-v2-original",e.ZIndexV2Polygon="msn-ad-zindex-v2-polygon",e.AdSlugV3="msn-ad-slug-v3",e.AdSlugV4="msn-ad-slug-v4",e.DrPerf="msn-ad-dr-perf",e.Video="msn-video",e.VideoIAS="msn-video-ias",e.Amplify="msn-amplify",e.SpecialOfferNonDR="msn-special-offer-nondr",e.SpecialOfferNonDRWithExp="msn-special-offer-nondr-with-exp",e.RatingHighlightRedNonDR="msn-highlight-rating-nondr-red",e.RatingHighlightYellowNonDR="msn-highlight-rating-nondr-yellow",e.RatingHighlightYellowNonDRStatic="msn-highlight-rating-nondr-yellow-static",e.RatingDefaultYellowNonDRStatic="msn-default-rating-nondr-yellow-static",e.FreeShippingPlainTextNonDR="msn-freeshipping-plain-text-nondr",e.FreeShippingInlineNonDR="msn-freeshipping-inline-nondr",e.FreeShippingTopLeftNonDR="msn-freeshipping-top-left-nondr",e.FreeShippingTopRightNonDR="msn-freeshipping-top-right-nondr",e.FreeShippingDR="msn-freeshipping-dr",e.ConditionNonDR="msn-condition-nondr",e.ConditionNonDRControl="msn-condition-nondr-c",e.ReturnPolicyNonDR="msn-return-policy-nondr",e.ReturnPolicyNonDRControl="msn-return-policy-nondr-c",e.SoldNonDR="msn-sold-nondr",e.SoldNonDRControl="msn-sold-nondr-c",e.EliteBadge="msn-elite-badge",e.RatingDR="msn-rating-dr",e.Trending="msn-trending",e.LikeButton="msn-like-button",e.SaleHighlightV1="msn-sale-highlight-v1",e.SaleHighlightV1Control="msn-sale-highlight-v1-c",e.SaleHighlightV3="msn-sale-highlight-v3",e.SaleHighlightV4="msn-sale-highlight-v4",e.SaleHighlightV3V4Control="msn-sale-highlight-v3v4-c",e.ShortTitleControl="msn-short-title-c",e.SpecialOfferControl="msn-special-offer-c",e.LogoControl="msn-logo-c",e.FreeShippingControl="msn-freeshipping-c",e.ZIndexControl="msn-z-index-c",e.RatingControl="msn-rating-c",e.TrendingControl="msn-trending-c",e.CallToActionControl="msn-cta-c",e.HoverEffectControl="msn-hover-effect-c",e.HoverEffect="msn-hover-effect",e.ComboRating="msn-combo-rating",e.ComboFreeShipping="msn-combo-freeshipping",e.ComboSpecialOffer="msn-combo-special-offer",e.ComboRatingNonDR="msn-combo-rating-nondr",e.ComboFreeShippingNonDR="msn-combo-freeshipping-nondr",e.ComboSpecialOfferNonDR="msn-combo-special-offer-nondr",e.ComboSaleHighlightNonDR="msn-combo-sale-highlight-nondr",e.ComboRatingNonDRControl="msn-combo-rating-nondr-c",e.ComboFreeShippingNonDRControl="msn-combo-freeshipping-nondr-c",e.ComboSpecialOfferNonDRControl="msn-combo-special-offer-nondr-c",e.ComboSaleHighlightNonDRControl="msn-combo-sale-highlight-nondr-c",e.CallToActionV2="msn-call-to-action-v2",e.CallToActionV3="msn-call-to-action-v3",e.CallToActionV3PA="msn-call-to-action-v3-pa",e.PESeasonalAds="msn-pe-seasonal",e.PESeasonalAdsV1="msn-pe-seasonal-v1",e.PESeasonalAdsV1P="msn-pe-seasonal-v1p",e.PESeasonalAdsControl="msn-pe-seasonal-control",e.ComboSoldNonDR="msn-combo-sold-nondr",e.ComboReturnPolicyNonDR="msn-combo-return-policy-nondr",e.ComboConditionNonDR="msn-combo-condition-nondr",e.ComboSoldNonDRControl="msn-combo-sold-nondr-c",e.ComboReturnPolicyNonDRControl="msn-combo-return-policy-nondr-c",e.ComboConditionNonDRControl="msn-combo-condition-nondr-c",e.ResponsiveImageSizing="msn-responsive-image-sizing"}(Yt||(Yt={})),function(e){e.ScaleUp="scale-up",e.ScaleDown="scale-down",e.ScaleUpDown="scale-up-down"}(Kt||(Kt={}));const ea={templateType:Yt.Default,animatedImage:"",landscapeOverlay:!1,allowedAssets:null,nativeAdMode:Xt.Adult,adCarousel:!1,progressiveDisplay:!1,discountThreshold:1,imageSizeConfig:{infopane:{w:604,h:296},river:{w:300,h:174}},badgeStyle:"blendedIn",useClickInGamify:!0,configType:void 0};class ta{}ta.byName=e=>t=>(null==t?void 0:t.name)===e;class aa{}function ia(e,t,a=aa.identity()){return ca(e,[{condition:t,action:a}])}function na(e,t,a){return ia(e,ta.byName(t),aa.replaceWith(a))}function ra(e,t,a){const i=[];for(let e=0;e<t.length;e++)i.push({condition:ta.byName(t[e]),action:aa.replaceWith(a[e])});return ca(e,i)}function oa(e,t,a){return ia(e,ta.byName(t),aa.extendFields(a))}function sa(e,t,a){const i=[];for(let e=0;e<t.length;e++)i.push({condition:ta.byName(t[e]),action:aa.extendFields(a[e])});return ca(e,i)}function da(e,t,a,i){return ia(e,ta.byName(t),aa.spliceChildren(a,i))}function la(e,t,a,i=[],n){return ia(e,ta.byName(t),aa.spliceChildren(a,i,n))}function ca(e,t){if((e=t.reduce(((e,t,a,i)=>{const{condition:n,action:r}=t;return n(e)?(i[a]=null,r(e)):e}),e)).children){const a=e.children.map((e=>ca(e,t.filter((e=>e)))));return Object.assign(Object.assign({},e),{children:a})}return e}aa.identity=()=>e=>e,aa.replaceWith=e=>()=>e,aa.extendFields=e=>t=>Object.assign(Object.assign({},t),e),aa.spliceChildren=(e,t=[],a)=>i=>{const n=[...i.children||[]];return n.splice(e,a,...t),Object.assign(Object.assign({},i),{children:n})};const ua={name:"footer",layout:{mode:"flex",flexDirection:"row",alignItems:"center",position:"absolute",bottom:"9",height:"31",width:"100%"},children:[{name:"start-action-part",children:[{name:"ad-label",layout:{marginInlineStart:"16",marginInlineEnd:"6",zIndex:5}},{name:"provider-name",layout:{flex:1,minWidth:0,zIndex:5},customStyleClass:"white-12-flex-layout"}]},{name:"end-action-part",children:[{name:"disclaimer",layout:{zIndex:5}},{name:"ad-choice",layout:{zIndex:5}},{name:"see-more",layout:{marginInlineEnd:"16",zIndex:5}}]}]},pa=[{name:"product-image",layout:{position:"absolute",left:0,top:0,width:"300",height:"225",zIndex:1}},ua],ga=oa({name:"default-template",children:[...pa,{name:"gradient-mask",layout:{position:"absolute",bottom:"0",width:"300",zIndex:2},children:[{name:"ad-title"}]}]},"product-image",{imageMaskOn:!0}),ha=la(ga,"gradient-mask",0,[{name:"div-wrapper",marginBottom:"8",marginLeft:"16",marginRight:"16",children:[{name:"rating",displayReviewCount:!1}]}]),ma=na(ga,"gradient-mask",{name:"gradient-mask",setClickBeacon:!0,layout:{mode:"pixel",bottom:"0",width:"300",zIndex:4},children:[{name:"special-offer",isDrConfig:!0,layout:{mode:"block",display:"inline-block",position:"relative",marginBottom:"8",marginInlineStart:"16",marginInlineEnd:"16",width:"150",zIndex:5}},{name:"ad-title",setClickBeacon:!0}]}),fa=la(ga,"gradient-mask",0,[{name:"div-wrapper",marginBottom:"8",marginLeft:"16",marginRight:"16",children:[{name:"free-shipping",color:"#036ac4",layout:{mode:"pixel",bottom:"265"}}]}]);var va,ba=a(92773),Ca=a(90351),ya=a(62601);!function(e){e.river="river",e.infopane="infopane",e.resriver="resriver",e.rivercms="river_cms",e.riverdb="riverdb",e.riverAmplify="river_amp",e.restoday="restoday",e.todaystripe="todaystripe",e.newsstripe="News-Stripe",e.entertainmentstripe="Entertainment-Stripe",e.sportsstripe="Sports-Stripe",e.lifestylestripe="Lifestyle-Stripe",e.rightRail="rightRail",e.rightRailAmplify="rr_amp",e.resinfopane="resinfopane",e.infopanetab="infopane-tab",e.infopanecms="infopane_cms",e.sliver="sliver",e.rightrail="rightrail",e.eoab="eoab",e.rectangle="rectangle",e.inarticle="inarticle",e.eoabmsx="eoabmsx"}(va||(va={}));const xa=[va.rightrail,va.eoab,va.rectangle,va.inarticle,va.eoabmsx],wa=(va.riverdb,[va.river,va.resriver,va.rivercms,va.rightRail,va.rightrail]),Sa=[va.infopane,va.resinfopane,va.infopanetab,va.infopanecms],Ta=[va.restoday,va.todaystripe,va.newsstripe,va.entertainmentstripe,va.sportsstripe,va.lifestylestripe],ka=[...wa,...Sa],$a=[...wa,...Ta,va.riverdb,va.rightRail,va.rightrail,va.sliver,va.rectangle,va.eoab,va.inarticle],Aa=20,Ia=10,Da=15,Ma=5,Oa=e=>!!(e&&e.items&&e.items[0]&&e.items[0].assets&&e.items[0].assets.transparentImage&&e.items[0].assets.transparentImage.url&&e.items[0].images&&e.items[0].images[0]&&e.items[0].images[0].ext&&e.items[0].images[0].ext.layoutColor),La=e=>((e,t)=>{var a,i,n;const r=null===(n=null===(i=null===(a=null==e?void 0:e.items)||void 0===a?void 0:a[0])||void 0===i?void 0:i.assets)||void 0===n?void 0:n.transparentImage,o=null==r?void 0:r.w,s=null==r?void 0:r.h;return!!((null==r?void 0:r.url)&&null!=r&&s>0&&o>0)&&t(o,s)})(e,((e,t)=>e/t<1.4)),Fa=e=>(0,Ca.Z)(e,"items[0].assets.rating"),Pa=e=>(0,Ca.Z)(e,"items[0].assets.specialOffer"),Ra=e=>(0,Ca.Z)(e,"items[0].assets.freeShipping"),_a=e=>(0,Ca.Z)(e,"items[0].assets.discount"),Ea=(e,t)=>{var a;t&&(e.enableNativeAdWC=!0);const i=null===(a=null==e?void 0:e.items[0])||void 0===a?void 0:a.assets;(null==i?void 0:i.rating)?e.items[0].assets=(0,ya.Z)(i,["rating"]):(null==i?void 0:i.specialOffer)?e.items[0].assets=(0,ya.Z)(i,["specialOffer"]):(null==i?void 0:i.discount)&&(null==i?void 0:i.discount)>=Da?e.items[0].assets=(0,ya.Z)(i,["discount"]):(null==i?void 0:i.freeShipping)&&(e.items[0].assets=(0,ya.Z)(i,["freeShipping"]))},Ha=e=>(0,Ca.Z)(e,"items[0].assets.sold"),Na=e=>(0,Ca.Z)(e,"items[0].assets.returnPolicy"),za=e=>(0,Ca.Z)(e,"items[0].assets.condition"),Ua=(0,ba.Et)(u.Evv,"modifyImageUrlForResponsiveImageSizingTemplate")((e=>{var t,a;const i=null===(t=null==e?void 0:e.items)||void 0===t?void 0:t[0],n=null===(a=i.assets)||void 0===a?void 0:a.price;if(e.template.templateType=Yt.Default,i&&!n){const t=ja(parseFloat(i.originalImageHeight),parseFloat(i.originalImageWidth),i.imageUrl,e.template.responsiveImageSizingTemplateConfigs);t.imageUrl!==i.imageUrl&&(e.enableResponsiveImageSize=!0,e.template.templateType=Yt.ResponsiveImageSizing,e.responsiveImageSizingTemplateConfig=t.responsiveImageSizingTemplateConfig,e.responsiveImageUrl=t.imageUrl)}})),ja=(0,ba.Et)(u.Evv,"modifyImageUrl")(((e,t,a,i)=>{if(!(e&&t&&a&&a.startsWith("https://www.bing.com/th")))return{imageUrl:a};const n=Ba(a),r=a.split("?")[0];if(!i||0===i.length)return{imageUrl:a};for(let a=0;a<i.length;a++){const o=i[a],s=t/e;if(s>=o.lowerBound&&s<=o.placementRatio){return{imageUrl:`${r}?id=${n.id}${n.pid?`&pid=${n.pid}`:""}&w=${o.maxWidth}`,responsiveImageSizingTemplateConfig:o}}if(s>o.placementRatio&&s<=o.upperBound){return{imageUrl:`${r}?id=${n.id}${n.pid?`&pid=${n.pid}`:""}&h=${o.maxHeight}`,responsiveImageSizingTemplateConfig:o}}}return{imageUrl:a}})),Ba=(0,ba.Et)(u.Evv,"parseImageUrl")((e=>{if(!e)return;const t=new URL(e),a=new URLSearchParams(t.searchParams),i={};return a.forEach(((e,t)=>{["id","pid"].includes(t)&&(i[t]=e)})),i}));var Wa=a(68151);const Ga=[{ratio:Bt,width:1,height:9999},{ratio:Wt,width:1,height:1.91},{ratio:Gt,width:9,height:16},{ratio:Vt,width:3,height:4},{ratio:qt,width:1,height:1},{ratio:Zt,width:4,height:3},{ratio:Jt,width:16,height:9},{ratio:Qt,width:1.91,height:1}],Va=(0,ba.Et)(u.Evv,"calculateRatio")((e=>{var t,a;const i=null===(t=null==e?void 0:e.items[0])||void 0===t?void 0:t.originalImageWidth,n=null===(a=null==e?void 0:e.items[0])||void 0===a?void 0:a.originalImageHeight;if(!i||!n)return;const r=Ja(e.items[0].imageUrl);if(!r)return;const o=r.searchParams.get("c");if(o&&"4"!==o)return;const s=Number(i),d=Number(n);let l=1;for(;l<Ga.length&&Math.ceil(s*Ga[l].height)!==Math.ceil(d*Ga[l].width);++l)if(!(Math.ceil(s*Ga[l].height)>Math.ceil(d*Ga[l].width))){if(1==l)break;const e=1*s/d;Math.abs(e-Ga[l].width/Ga[l].height)>=Math.abs(e-Ga[l-1].width/Ga[l-1].height)&&(l-=1);break}l==Ga.length&&(l-=1),e.template.desiredRatio=Ga[l].ratio})),qa=(0,ba.Et)(u.Evv,"reduceWidthOrHeightAndUpdateUrl")(((e,t,a,i)=>{const n=(0,Wa.Z)(Ga,(e=>e.ratio===t));if(1!==n.length)return;const r=n[0],o=a?e.ext.originalImageWidth:e.originalImageWidth,s=a?e.ext.originalImageHeight:e.originalImageHeight;if(!o||!s)return;const d=1*o/s,l=1*r.width/r.height,c={w:o,h:s};d>=l?c.w=Math.round(s*l):c.h=Math.round(o/l);const u={river:300,infopane:604};return c.w>u[i]?(c.h=Math.round(c.h*u[i]/c.w),c.w=u[i]):(c.h=u[i]*l,c.w=u[i]),Za(c.h,c.w,e,a),c})),Za=(0,ba.Et)(u.Evv,"updateUrlWithDesiredSize")(((e,t,a,i)=>{const n=Ja(i?a.url:a.imageUrl);n&&(n.searchParams.set("h",e),n.searchParams.set("w",t),n.searchParams.set("c","4"),i?a.url=n.href:a.imageUrl=n.href)})),Ja=(0,ba.Et)(u.Evv,"constructUrl")((e=>{let t;try{t=new URL(e)}catch(a){try{t=new URL(`https://${e}`)}catch(e){return}}return t})),Qa=(0,ba.Et)(u.Evv,"checkConfigType")(((e,t)=>t.template.configType===e.configType)),Xa=(0,ba.Et)(u.Evv,"checkRegion")(((e,t)=>e.region.includes(t.region))),Ya=(0,ba.Et)(u.Evv,"checkAllAssets")(((e,t)=>!!(0,Nt.Z)(e.requiredAssetsAll)||e.requiredAssetsAll.every((e=>{var a,i;return!(0,Nt.Z)(null===(a=null==t?void 0:t.items[0])||void 0===a?void 0:a.assets)&&Object.keys(null===(i=null==t?void 0:t.items[0])||void 0===i?void 0:i.assets).some((t=>e===Rt[t]))})))),Ka=(0,ba.Et)(u.Evv,"checkAnyAssets")(((e,t)=>!!(0,Nt.Z)(e.requiredAssetsAny)||e.requiredAssetsAny.some((e=>{var a,i;return!(0,Nt.Z)(null===(a=null==t?void 0:t.items[0])||void 0===a?void 0:a.assets)&&Object.keys(null===(i=null==t?void 0:t.items[0])||void 0===i?void 0:i.assets).some((t=>e===Rt[t]))})))),ei=(0,ba.Et)(u.Evv,"checkAdCount")(((e,t)=>t.items.length<=(e.maxAdCount||1))),ti=(0,ba.Et)(u.Evv,"checkMultiImage")(((e,t)=>{var a,i;return!e.multiImage||(null===(i=null===(a=t.items[0])||void 0===a?void 0:a.images)||void 0===i?void 0:i.length)>1})),ai=(0,ba.Et)(u.Evv,"checkDiscountThreshold")(((e,t)=>{var a;return!e.discountThreshold||!(null===(a=t.items[0])||void 0===a?void 0:a.assets)||e.discountThreshold<=t.items[0].assets.discount})),ii=(0,ba.Et)(u.Evv,"checkRatio")(((e,t)=>{var a,i;return!e.supportedImageRatios||(null===(a=e.supportedImageRatios)||void 0===a?void 0:a.includes(null===(i=null==t?void 0:t.template)||void 0===i?void 0:i.desiredRatio))})),ni=(0,ba.Et)(u.Evv,"setTemplate")(((e,t)=>{t.template.templateType=e.template instanceof Function?e.template(e,t):e.template,t.template.dynamicRenderingConfig=e.dynamicRenderingConfig&&e.dynamicRenderingConfig(t)})),ri=(0,ba.Et)(u.Evv,"filterAssets")(((e,t)=>{var a;const i=(0,zt.Z)([...Ht,...(null===(a=null==t?void 0:t.template)||void 0===a?void 0:a.allowedAssets)||[],...e.supportedAssets||[],...e.requiredAssetsAll||[],...e.requiredAssetsAny||[]]);(0,Ut.Z)(t.items,(e=>{if((0,Nt.Z)(i)||(0,Nt.Z)(null==e?void 0:e.assets))return void delete e.assets;const t=(0,jt.Z)(e.assets,((e,t,a)=>(i.includes(Rt[a])&&(e[a]=t),e)),{});e.assets=t}))})),oi=(0,ba.Et)(u.Evv,"updateImageRatio")(((e,t)=>{if(!e.supportedImageRatios||!e.targetImageRatio)return;let a;const i=Sa.includes(t.region)?"infopane":"river";t.items.forEach((t=>{const n=qa(t,e.targetImageRatio,!1,i);a||(a=n),t.images&&(0,Ut.Z)(t.images,(t=>{t.ext&&t.ext.originalImageWidth&&t.ext.originalImageHeight&&qa(t,e.targetImageRatio,!0,i)}))})),(null==a?void 0:a.h)&&(null==a?void 0:a.w)&&(t.template.desiredHeight=a.h.toString(),t.template.desiredWidth=a.w.toString())})),si=(0,ba.Et)(u.Evv,"trimProviderName")(((e,t)=>{t&&t.items&&t.items.forEach((e=>{e.providerName&&(e.providerName=di(e.providerName))}))})),di=(0,ba.Et)(u.Evv,"trimProviderNameHelper")((e=>{if(!e)return"";const t=new RegExp(/[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&=]*)?/gi);if(e.match(t)){const a=e.match(t)[0];if(!a)return;return a.toLowerCase().startsWith("www.")&&a.length>4?a.slice(4):a}return e})),li=(0,ba.Et)(u.Evv,"updateLayoutColor")(((e,t)=>{t&&t.items&&t.items.forEach((e=>{e.images&&e.images.forEach((e=>{e&&e.ext&&e.ext.layoutColor&&(e.ext.layoutColor.startsWith("#")||(e.ext.layoutColor="#"+e.ext.layoutColor))}))}))})),ci=[Qa,Xa,Ya,Ka,ei,ai,ti,ii],ui=[ni,ri,oi,si,li];var pi=a(62401),gi=a(89346);class hi extends gi.H{}(0,i.gn)([ct.LO],hi.prototype,"data",void 0);let mi=!1;const fi=e=>e.hoverState&&!e.hoverState.isHovered&&e.hoverState.isDecorationLinesExpanded?65:25,vi=(e,t)=>{e.hoverState&&e.hoverState.isDecorationLinesExpanded!==t&&(e.hoverState.isDecorationLinesExpanded=t)},bi=e=>(0,i.mG)(void 0,void 0,void 0,(function*(){var t,i;if(mi)return;mi=!0;let n=[];return((null===(t=null==e?void 0:e.adTemplateConfig)||void 0===t?void 0:t.configType)||(null===(i=null==e?void 0:e.adTemplateConfig)||void 0===i?void 0:i.allowedAssets))&&(n=n.concat([a.e("nativeadsdecorations").then(a.bind(a,51635))])),n=n.concat([a.e("nativeadstemplates").then(a.bind(a,28258)),a.e("nativeadstemplates").then(a.bind(a,99587)),a.e("nativeadstemplates").then(a.bind(a,51023)),a.e("nativeadstemplates").then(a.bind(a,68129)),a.e("nativeadstemplates").then(a.bind(a,64322))]),yield Promise.all(n)})),{RiverAnimatedImagery_9by16:Ci,RiverZIndex_9by16:yi,RiverZIndex_3by4:xi,ZIndex:wi}=Yt;var Si;!function(e){e.LTR="leftToRight",e.RTL="rightToLeft"}(Si||(Si={}));var Ti;!function(e){e.ImageAtTop="imageAtTop",e.ImageAtBottom="imageAtBottom",e.AnimatedImagery9by16="animatedImagery9by16",e.ImageAtRight9By16="imageAtRight9By16",e.ImageAtRight3By4="imageAtRight3By4"}(Ti||(Ti={}));const ki=e=>{switch(e.template.templateType){case Ci:return Ti.AnimatedImagery9by16;case yi:return Ti.ImageAtRight9By16;case xi:return Ti.ImageAtRight3By4;case wi:return e.template.flipZIndex?Ti.ImageAtTop:Ti.ImageAtBottom}},$i=e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.templateType)||Yt.Default},Ai=e=>[Yt.CallToActionV3,Yt.CallToActionV3PA].includes($i(e)),Ii=e=>{var t,a,i;e.disableRenderDecoration&&$i(e)==Yt.Default&&(e=>{if(e.assets&&!(0,Nt.Z)(e.assets)){const t=(0,jt.Z)(e.assets,((e,t,a)=>(Ht.includes(Rt[a])&&(e[a]=t),e)),{});e.assets=t}})(e);const n=null===(t=e.template)||void 0===t?void 0:t.immersiveThemeColor,r=e.badge,o=e.videoProps,s=!!e.assets&&!(0,Nt.Z)(e.assets),d=(null===(a=e.template)||void 0===a?void 0:a.animatedImage)&&(null===(i=e.template)||void 0===i?void 0:i.animatedConfig),l=[Yt.PseudoVideo,Yt.Slideshow,Yt.PatternOverlay,Yt.AdCarousel,Yt.ZIndex,Yt.RiverAnimatedImagery_9by16,Yt.RiverZIndex_9by16,Yt.RiverZIndex_3by4,Yt.CallToActionV3].includes($i(e));return!!(e.isTransparentAdSlugWithBorder||e.enableAdsColorBleed||e.isTransparentAdSlugWithBorderV2)||!o&&!!(r||s||d||l||n)};var Di=a(19628),Mi=a(53212);const Oi=s.d`
    <style>
        :host {
            grid-area:${e=>e.grid_area};
        }
        .card-button {
            border-radius: 100%;
        }
    </style>
    <fluent-card
        id="native_ad_${e=>e.id}"
        style="grid-area:${e=>e.grid_area};height: ${e=>e.ContentCardImageSizes._300x304.height}px;"
        class="${e=>e.cardSize}"
    >
        <msn-pattern-overlay-card
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.title}
            data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag()}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
            layout=${e=>(0,Ca.Z)(e,"template.landscapeOverlay",!1)?"landscape":"default"}
            shopNowText=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdShopNowText")}
            price=${e=>(0,Ca.Z)(e,"assets.salePrice")||(0,Ca.Z)(e,"assets.price")}
        >
            ${s.d`<span>${e=>e.title}</span>`}
            ${e=>(0,Ca.Z)(e,"template.landscapeOverlay",!1)?e.renderImage("media",e.ContentCardImageSizes._300x174,e.ContentCardImageSizes._300x174):e.renderImage("media",e.ContentCardImageSizes._300x225,e.ContentCardImageSizes._300x225)}
            ${s.d`
    ${(0,V.g)((e=>e.template.landscapeOverlay),s.d`
        <msft-attribution slot="${e=>e.hasAnyInlineDecoration?"call-to-action-two-lines":"call-to-action-one-line"}">
            <!-- price, when salePrice is present, use salePrice as the actual price -->
            ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.salePrice")||(0,Ca.Z)(e,"assets.price")),s.d`
                <decoration-price data=${e=>e.assets.salePrice||e.assets.price} largeFont="false"></decoration-price>
            `)}
            ${(0,V.g)((e=>e.hasAnyInlineDecoration),s.d`
                <div>
                    ${e=>(e=>(0,Ca.Z)(e,"assets.installmentPrice")&&(0,Ca.Z)(e,"assets.price")?s.d`
            <decoration-installment-price
                data="${e=>e.assets.installmentPrice}"
                price-format-now="${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdInstallmentPriceFormatNow")}"
                price-format-plan="${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdInstallmentPriceFormatPlan")}"
            ></decoration-installment-price>
        `:(0,Ca.Z)(e,"assets.rating")?s.d`<decoration-rating rating="${e.assets.rating}" count="${e.assets.likes}" />`:(0,Ca.Z)(e,"assets.curbsidePickup")?s.d`<decoration-curbside-pickup data="${e.localizedStrings.nativeAdCurbsidePickupText}" />`:(0,Ca.Z)(e,"assets.freeShipping")?s.d`<decoration-free-shipping data="${e.localizedStrings.nativeAdFreeShippingText}" />`:(0,Ca.Z)(e,"assets.salePrice")&&(0,Ca.Z)(e,"assets.price")?s.d`
            <div>
                <div style="display: inline-block;"><decoration-price-strike-through data="${e.assets.price}"/></div>
                <div style="display: inline-block;"><decoration-price-off data=" &bull; ${Di.Ld.Format(e.localizedStrings.nativeAdOnSaleText,e.assets.discount)}" /></div>
            </div>
        `:s.d`<div />`)(e)}
                </div>
            `)}
        </msft-attribution>
    `)}
    ${(0,V.g)((e=>!e.template.landscapeOverlay),s.d`
        <!-- when it's not landscape layout, only show price on left bottom if price or sale price is available, otherwise show "Shop now" -->
        <msft-attribution slot="call-to-action-two-lines">
            <decoration-price data=${e=>(0,Ca.Z)(e,"assets.salePrice")||(0,Ca.Z)(e,"assets.price")||e.localizedStrings.nativeAdShopNowText} largeFont="false"/>
        </msft-attribution>
    `)}
`}
            ${e=>e.renderStartSection("start-actions",e.destinationUrl)}
            ${e=>e.renderEndSection("end-actions")}
        </msn-pattern-overlay-card>
    </fluent-card>
`;var Li=a(65620),Fi=a(84446);let Pi=class extends Fi.F{constructor(){super(...arguments),this.badgeText="",this.badgeTextColor="#FFFFFF",this.badgeBackgroundColor="#0078D4",this.badgeTextSize="12",this.badgeTextLineHeight="16",this.badgeTextFontWeight="600",this.badgeBorderRadius="4",this.paddingTop="",this.paddingBottom="",this.paddingLeft="",this.paddingRight=""}};(0,i.gn)([(0,Li.Lj)({attribute:"badge-text"})],Pi.prototype,"badgeText",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"badge-text-color"})],Pi.prototype,"badgeTextColor",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"badge-background-color"})],Pi.prototype,"badgeBackgroundColor",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"badge-text-size"})],Pi.prototype,"badgeTextSize",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"badge-text-line-height"})],Pi.prototype,"badgeTextLineHeight",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"badge-text-font-weight"})],Pi.prototype,"badgeTextFontWeight",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"badge-border-radius"})],Pi.prototype,"badgeBorderRadius",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"padding-top"})],Pi.prototype,"paddingTop",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"padding-bottom"})],Pi.prototype,"paddingBottom",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"padding-left"})],Pi.prototype,"paddingLeft",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"padding-right"})],Pi.prototype,"paddingRight",void 0),Pi=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-badge")],Pi);var Ri=a(53046),_i=a(78562),Ei=a(67620);const Hi=Ri.i`


`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["badgeTextSize","badgeTextLineHeight","badgeBackgroundColor","badgeBorderRadius","paddingTop","paddingBottom","paddingLeft","paddingRight","badgeTextColor","badgeTextFontWeight"],(e=>{const t=`\n            .native-ad-badge {\n                line-height: ${e.badgeTextLineHeight}px;\n                font-size: ${e.badgeTextSize}px;\n                background-color: ${e.badgeBackgroundColor};\n                border-radius: ${e.badgeBorderRadius}px;\n                padding-top:${e.paddingTop}px;\n                padding-bottom:${e.paddingBottom}px;\n                padding-left:${e.paddingLeft}px;\n                padding-right:${e.paddingRight}px;\n                color:${e.badgeTextColor};\n                font-weight:${e.badgeTextFontWeight};\n            }\n        `;return Ri.i`${t}`}))),Ni=s.d`
<span class="native-ad-badge">
    ${e=>e.badgeText}
</span>
`;let zi=class extends Pi{};zi=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-badge",template:Ni,styles:Hi})],zi);var Ui=a(14398),ji=a(71603),Bi=a(29702),Wi=a(12968),Gi=a(84708),Vi=a(70569),qi=a(25193),Zi=a(54433),Ji=a(38856);class Qi{constructor(e,t,a,i,n){this.childElements=this.getChildren(e,!1),this.visibleChildElements=this.getChildren(e,!0),this.containerElement=this.getContainerElement(e),this.parentElement=this.getParentElement(e),this.maxCount=t?(0,Gi.Z)(t):-1,this.maxHeight=a?(0,Gi.Z)(a):0,this.originalHeight=i?(0,Gi.Z)(i):0,this.onDecorationLinesExpanded=n}run(e){(0,Ut.Z)(e,(e=>{e(this)}))}getChildren(e,t){const a=t?e.querySelectorAll('div[name="inline-wrapper"]:not(.hidden)>*'):e.querySelectorAll('div[name="inline-wrapper"]>*'),i=[];a.forEach((e=>{const t=(0,Gi.Z)(e.getAttribute("priority"));i.push({item:e,priority:t})}));const n=(0,Vi.Z)(i,["priority"]);return(0,qi.Z)(n,(e=>e.item))}getParentElement(e){return e.querySelector(".group-wrapper")}getContainerElement(e){return e.querySelector(".group-container")}hideElement(e){e.parentElement.className="hidden"}hideChildElements(e){for(;this.visibleChildElements.length>e;){const e=this.visibleChildElements.pop();if(e){if(!((0,Gi.Z)(e.getAttribute("priority"))>0)){this.childElements.push(e);break}this.hideElement(e)}}}showChildElementByIndex(e){this.childElements[e]&&this.childElements[e].parentElement.classList.remove("hidden")}hideChildElementByIndex(e){this.childElements[e]&&this.childElements[e].parentElement.classList.add("hidden")}}const Xi=e=>{let t=e.parentElement.getBoundingClientRect().width;if(e.visibleChildElements.length>0){const a=(0,Zi.Z)(e.visibleChildElements,(e=>{const a=e.getBoundingClientRect();return t-=(0,Ca.Z)(a,"width",0),(0,Gi.Z)(t)<0}));if(a>-1){const t=e.visibleChildElements.length;e.hideChildElements(a),t>0&&(0,Ji.O)(e.containerElement,"inlineGroup",`w,${t},${e.visibleChildElements.length}`,0)}}},Yi=e=>{if(e.maxCount>=0){const t=e.visibleChildElements.length;e.hideChildElements(e.maxCount),t>0&&(0,Ji.O)(e.containerElement,"inlineGroup",`c,${t},${e.visibleChildElements.length}`,0)}},Ki=e=>{let t=e.parentElement.getBoundingClientRect().height;if(e.originalHeight&&e.containerElement.setAttribute("style",`height: ${e.originalHeight}px;`),e.childElements.length>0){if(t<=e.maxHeight){let a=0;for(;t<=e.maxHeight&&a<=e.childElements.length-1;)e.showChildElementByIndex(a++),t=e.parentElement.getBoundingClientRect().height}if(t>e.maxHeight){const a=e.childElements.length;let i=a,n=e.childElements.length-1;for(;t>e.maxHeight&&n>=0;)e.hideChildElementByIndex(n--),i-=1,t=e.parentElement.getBoundingClientRect().height;a>0&&(0,Ji.O)(e.containerElement,"inlineGroup",`h,${a},${i}`,0)}}e.originalHeight&&e.originalHeight!==en(t)&&e.containerElement.setAttribute("style",`height: ${en(t)}px; transition: height 0.3s;`),e.onDecorationLinesExpanded&&tn(t)&&e.onDecorationLinesExpanded(!0)},en=e=>e<25?25:e,tn=e=>Math.ceil(e/25)>1;class an extends gi.H{constructor(){super(...arguments),this.verticalMode=!1,this.onUpdate=()=>{((e,t,a,i,n,r)=>{const o=new Qi(e,t,i,n,r),s=[];a?s.push(Ki):(s.push(Yi),s.push(Xi)),o.run(s)})(this.shadowRoot,this.maxCount,this.verticalMode,this.maxHeight,this.originalHeight,this.onDecorationLinesExpanded)}}connectedCallback(){super.connectedCallback(),Wi.SO.queueUpdate(this.onUpdate)}}(0,i.gn)([ct.LO],an.prototype,"childElements",void 0),(0,i.gn)([Li.Lj],an.prototype,"maxCount",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean"})],an.prototype,"verticalMode",void 0),(0,i.gn)([Li.Lj],an.prototype,"originalHeight",void 0),(0,i.gn)([Li.Lj],an.prototype,"maxHeight",void 0),(0,i.gn)([Li.Lj],an.prototype,"onDecorationLinesExpanded",void 0);var nn=a(81422),rn=a(74009),on=a(58952);const sn=s.d`
    <template
        ${(0,nn.p)({property:"childElements",filter:(0,rn.R)()})}
    >
        <div class="group-container" ${(0,on.i)("groupContainer")} part="group-container">
            <div class="group-wrapper" part="group-wrapper">
                ${(0,Pt.rx)((e=>e.childElements),s.d`
                    <div name="inline-wrapper">
                        ${e=>s.d`${e.outerHTML}`}
                    </div>
                `)}
            </div>
        </div>
    </template>
`,dn=Ri.i`

    div[name="inline-wrapper"] {
        display: inline;
        white-space: normal;
    }

    .group-container .group-wrapper div[name="inline-wrapper"].hidden {
        display: none;
    }

    :host(:not(:defined)) {
        display: none;
    }
`;let ln=class extends an{};ln=(0,i.gn)([(0,gi.M)({name:"msn-inline-group",template:sn,styles:dn})],ln);const cn=s.d`
    <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M14.1505 0C15.1719 0 16 0.828052 16 1.84951V6.33925C16 7.04766 15.7186 7.72707 15.2178 8.22806L8.22989 15.2176C7.1864 16.259 5.49656 16.2598 4.45167 15.2188L0.784137 11.5567C-0.260191 10.5144 -0.261529 8.82286 0.781032 7.77874L7.76778 0.783644C8.26888 0.281919 8.94889 0 9.65799 0H14.1505ZM14.1505 1.233H9.65799C9.27617 1.233 8.91001 1.38481 8.64018 1.65497L1.64315 8.66047C1.09223 9.22345 1.09641 10.1264 1.65525 10.6841L5.32239 14.3458C5.88535 14.9066 6.79643 14.9062 7.35842 14.3454L14.3458 7.3563C14.6155 7.08654 14.767 6.7207 14.767 6.33925V1.84951C14.767 1.50902 14.491 1.233 14.1505 1.233ZM11.89 2.8788C12.5709 2.8788 13.1229 3.43083 13.1229 4.11178C13.1229 4.79274 12.5709 5.34477 11.89 5.34477C11.209 5.34477 10.657 4.79274 10.657 4.11178C10.657 3.43083 11.209 2.8788 11.89 2.8788Z" fill="white" fill-opacity="0.8"/>
    </svg>`,un=s.d`
    ${(0,V.g)((e=>e.localizedStrings&&e.localizedStrings.nativeAdShopNowText),s.d`
        <style>
            .shop-now {
                position: relative;
            }
            .shop-now-icon {
                width: 16px;
                height: 16px;
                left: 12px;
                top: 4px;
                position: absolute;
            }
            .shop-now-text {
                position: absolute;
                left: 36px;
            }
        </style>
        <div class="shop-now" part="shop-now">
            <span class="shop-now-icon">
            ${cn}
            </span>
            <span class="shop-now-text">
                ${e=>e.localizedStrings.nativeAdShopNowText}
            </span>
        </div>
    `)}
`;var pn;!function(e){e.installmentPrice="1",e.price="1",e.priceStrikeThrough="1",e.priceOff="1",e.localInventory="1",e.priceDrop="2",e.freeShipping="2",e.productRating="2",e.topViewed="2",e.sold="2",e.specialOffer="2",e.curbsidePickup="2",e.eliteBadge="3",e.condition="3"}(pn||(pn={}));const gn=(e,t=!1,a=!1,i=50,n=!1,r=!1,o=0,d=null)=>s.d`
    ${(0,V.g)((e=>e.hasAnyInlineDecoration||r),s.d`
        <!-- TODO: set blank classname to be filled for article card -->
        <msft-attribution slot="${e}" class="${""}">
            ${(0,V.g)((e=>e.hasAnyInlineDecoration),s.d`    
                <msn-inline-group 
                    maxCount="2" 
                    verticalMode=${a||r} 
                    maxHeight=${i} 
                    originalHeight=${o} 
                    :onDecorationLinesExpanded=${e=>d}
                >
                    <!-- price -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.price")&&!(0,Ca.Z)(e,"assets.salePrice")),s.d`
                        <decoration-price data=${e=>e.assets.price}
                            part="inline-item"
                            priority=${pn.price}
                            is-info-pane=${t}
                        ></decoration-price>
                    `)}
                    <!-- price strike through -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.price")&&(0,Ca.Z)(e,"assets.salePrice")),s.d`
                        <decoration-price data=${e=>e.assets.salePrice}
                            part="inline-item"
                            priority=${pn.price}
                            is-info-pane=${t}
                            ></decoration-price>
                        <decoration-price-strike-through data=${e=>e.assets.price}
                            part="inline-item"
                            priority=${pn.priceStrikeThrough}
                            is-info-pane=${t}
                        ></decoration-price-strike-through>
                    `)}
                    <!-- installment price -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.installmentPrice")),s.d`
                        <decoration-installment-price price=${e=>e.assets.price}
                            data=${e=>e.assets.installmentPrice}
                            price-format-now=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdInstallmentPriceFormatNow")}
                            price-format-plan=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdInstallmentPriceFormatPlan")}
                            part="inline-item"
                            priority=${pn.installmentPrice}
                            is-info-pane=${t}
                        ></decoration-installment-price>
                    `)}
                    <!-- rating -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.rating")),s.d`
                        <decoration-rating
                            rating=${e=>e.assets.rating}
                            review-data=${e=>e.assets.review}
                            part="inline-item"
                            priority=${pn.productRating}
                            is-info-pane=${t}
                        ></decoration-rating>
                    `)}
                    <!-- free shipping -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.freeShipping")),s.d`
                        <decoration-free-shipping
                            data=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdFreeShippingText")}
                            part="inline-item"
                            priority=${pn.freeShipping}
                            is-info-pane=${t}
                        ></decoration-free-shipping>
                    `)}
                    <!-- price-drop -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.priceDrop")),s.d`
                        <decoration-price-drop
                            data=${e=>e.assets.priceDrop}
                            price-drop-format-short=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdPriceDropShortText")}
                            price-drop-format-long=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdPriceDropLongText")}
                            part="inline-item"
                            priority=${pn.priceDrop}
                            is-info-pane=${t}
                            is-expanded=${n}
                        ></decoration-price-drop>
                    `)}
                    <!-- top-viewed -->
                    ${(0,V.g)((e=>!(0,Ca.Z)(e,"assets.priceDrop")&&(0,Ca.Z)(e,"assets.viewed")),s.d`
                        <decoration-top-viewed
                            data=${e=>e.assets.viewed}
                            top-viewed-format-short=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdTopViewedShortText")}
                            top-viewed-format-long=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdTopViewedLongText")}
                            part="inline-item"
                            priority=${pn.topViewed}
                            is-info-pane=${t}
                            is-expanded=${n}
                        ></decoration-top-viewed>
                    `)}
                    <!-- curbside-pickup -->
                    ${(0,V.g)((e=>(0,Ca.Z)(e,"assets.curbsidePickup")&&r),s.d`
                        <decoration-curbside-pickup 
                            data="${e=>e.localizedStrings.nativeAdCurbsidePickupText}"
                            priority=${pn.curbsidePickup}
                            is-info-pane=${t}
                        ></decoration-curbside-pickup>
                    `)}
                    <!-- price-off -->
                    ${(0,V.g)((e=>e.assets.discount&&r),s.d`
                        <decoration-price-off 
                            is-info-pane=${t}
                            priority=${pn.priceOff}
                            data=" &bull; ${e=>e.localizedStrings&&Di.Ld.Format(e.localizedStrings.nativeAdOnSaleText,e.assets.discount)}" 
                        />
                    `)}
                </msn-inline-group>
            `)}
            ${(0,V.g)((e=>r&&t),s.d`
                ${un}
            `)}
        </msft-attribution>
    `)}
`;var hn=a(22460),mn=a(1418);hn.o,mn.DecorationFreeShippingButton;const fn=e=>$i(e)===Yt.FreeShippingInlineNonDR||$i(e)===Yt.FreeShippingTopLeftNonDR||$i(e)===Yt.FreeShippingTopRightNonDR||$i(e)===Yt.ComboFreeShippingNonDR;a(15027).C;const vn=()=>s.d`
        <decoration-plain-text
            data=${e=>(e=>{const t=$i(e);return t===Yt.ComboSoldNonDR&&(0,Ca.Z)(e,"assets.sold")?e.assets.sold:t===Yt.ComboReturnPolicyNonDR&&(0,Ca.Z)(e,"assets.returnPolicy")?e.assets.returnPolicy:t===Yt.ComboConditionNonDR&&(0,Ca.Z)(e,"assets.condition")?e.assets.condition:void 0})(e)}
        ></decoration-plain-text>
    `;class bn{constructor({id:e,checkNewEffectInstance:t}){this.register=(e,t,a,i)=>{const n=`${this.effectItems.length}`,r={id:n,effectContainer:e,updateEffectStatus:t,showMultiTimes:i,isIntersecting:!1,isEffectShown:!1,observer:this.initIntersectionObserver(n,e,a)};this.effectItems.push(r)},this.unregister=()=>{this.effectItems.forEach((e=>{e.observer&&e.effectContainer&&e.observer.unobserve(e.effectContainer)})),this.effectItems=[]},this.initIntersectionObserver=(e,t,a)=>{if("function"!=typeof IntersectionObserver||!t)return null;const i={root:a&&a.root?document.getElementById(a.root):null,rootMargin:a&&a.rootMargin||"0px 0px 0px 0px"},n=new IntersectionObserver((t=>{t.forEach((t=>{this.handleIntersectingChange(e,t.isIntersecting)}))}),i);return n.observe(t),n},this.handleIntersectingChange=(e,t)=>{const a=(0,Zi.Z)(this.effectItems,(t=>t.id===e));-1!==a&&(this.effectItems[a].isIntersecting=t,t&&this.isAllEffectItemsIntersecting()?this.checkNewEffectInstance(!0):!t&&this.isAllEffectItemsNonIntersecting()&&this.updateEffectSeriesStatus(!1))},this.isAllEffectItemsIntersecting=()=>{let e=!0;return this.effectItems.forEach((t=>{t.isIntersecting||(e=!1)})),e},this.isAllEffectItemsNonIntersecting=()=>{let e=!0;return this.effectItems.forEach((t=>{t.isIntersecting&&(e=!1)})),e},this.isEffectValid=()=>{let e=!0;return this.effectItems.forEach((t=>{t.isIntersecting&&!t.isEffectShown||(e=!1)})),e},this.updateEffectSeriesStatus=(e,t)=>{this.effectItems.forEach((a=>{(a.showMultiTimes||e)&&(a.isEffectShown=e),a.updateEffectStatus(e,t)}))},this.id=e,this.effectItems=[],this.checkNewEffectInstance=t}}class Cn{constructor({id:e}){this.register=(e,t,a,i,n,r)=>{const o=(0,Zi.Z)(this.effectSequence,(t=>t.id===e));if(this.delayTimeMs=void 0===r?this.delayTimeMs:r,-1!==o)this.effectSequence[o].register(t,a,i,n);else{const r=new bn({id:e,checkNewEffectInstance:this.checkNewEffectInstance});r.register(t,a,i,n),this.effectSequence.push(r)}},this.unregister=e=>{const t=(0,Zi.Z)(this.effectSequence,(t=>t.id===e));-1!==t&&(this.effectSequence[t].unregister(),this.effectSequence.splice(t,1))},this.notifyEffectCompleted=()=>{this.isPageShowingeffect=!1},this.checkNewEffectInstance=(e=!1)=>{e&&!this.isInitialState||setTimeout((()=>{const e=this.findFirstValidEffect();this.isPageScrolling||this.isPageShowingeffect||!e||(this.isPageShowingeffect=!0,e.updateEffectSeriesStatus(!0,this.notifyEffectCompleted))}),this.delayTimeMs)},this.handlePageScroll=()=>{this.isInitialState=!1,this.isPageScrolling||(this.isPageScrolling=!0),this.pageScrollingTimer&&window.clearTimeout(this.pageScrollingTimer),this.pageScrollingTimer=window.setTimeout((()=>{this.isPageScrolling=!1,this.checkNewEffectInstance()}),500)},this.findFirstValidEffect=()=>{const e=(0,Zi.Z)(this.effectSequence,(e=>e.isEffectValid()));return-1!==e?this.effectSequence[e]:null},this.id=e,this.effectSequence=[],this.pageScrollingTimer=-1,this.isPageScrolling=!1,this.isPageShowingeffect=!1,this.delayTimeMs=1e3,document.addEventListener("scroll",this.handlePageScroll),this.isInitialState=!0}}var yn;!function(e){e.default="default"}(yn||(yn={}));const xn=new class{constructor(){this.getEffectGroup=e=>{const t=e||yn.default,a=(0,Zi.Z)(this.effectGroups,(e=>e.id===t));if(-1!==a)return this.effectGroups[a];{const e=new Cn({id:t});return this.effectGroups.push(e),e}},this.effectGroups=[]}};let wn=class extends Fi.F{constructor(){super(...arguments),this.effectId="",this.intersectionRootMargin="-350px 0px -200px 0px",this.isAnimationValid=!1,this.starType="",this.isStaticMode=!1,this.updateAnimStatus=(e,t)=>{this.isAnimationValid!==e&&(this.isAnimationValid=e,e&&t&&setTimeout((()=>{t()}),0))}}connectedCallback(){if(super.connectedCallback(),!this.isStaticMode){this.effectGroup=xn.getEffectGroup();const e={root:this.intersectionRoot,rootMargin:this.intersectionRootMargin};this.effectGroup.register(this.effectId,this.highlightingRatingContainer,this.updateAnimStatus,e,!0,0)}}disconnectedCallback(){super.disconnectedCallback(),this.effectGroup&&this.effectGroup.unregister(this.effectId)}};(0,i.gn)([(0,Li.Lj)({attribute:"rating"})],wn.prototype,"rating",void 0),(0,i.gn)([Li.Lj],wn.prototype,"effectId",void 0),(0,i.gn)([Li.Lj],wn.prototype,"intersectionRoot",void 0),(0,i.gn)([Li.Lj],wn.prototype,"intersectionRootMargin",void 0),(0,i.gn)([ct.LO],wn.prototype,"isAnimationValid",void 0),(0,i.gn)([Li.Lj],wn.prototype,"starType",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"isStaticMode"})],wn.prototype,"isStaticMode",void 0),wn=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-highlight-rating")],wn);const Sn=Ri.i`

.stars-container{
    display: flex;
    justify-content: center;
    gap: 8px;
}

.animated-star1{
    animation: fadeIn 300ms;
}

.animated-star2{
    animation: fadeIn 360ms;
}

.animated-star3{
    animation: fadeIn 420ms;
}

.animated-star4{
    animation: fadeIn 480ms;
}

.animated-star5{
    animation: fadeIn 540ms;
}

.star1, .star2, .star3, .star4, .star5{
   opacity: 1;
}

@keyframes fadeIn{
    0% {
        opacity: 0;
        -webkit-transform: translate(0,30px); /* Safari */
        transform: translate(0,30px); 
    }
    80% {
        opacity:1;
        -webkit-transform: translate(0,-10px); /* Safari */
        transform: translate(0,-10px); 
    }
    100% {
        opacity:1;
        -webkit-transform: translate(0,0px); /* Safari */
        transform: translate(0,0px); 
    }
}
`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["isStaticMode"],(e=>{let t="";return e.isStaticMode&&(t+=".star1, .star2, .star3, .star4, .star5{\n                    opacity: 1;\n                 }"),Ri.i`${t}`}))),Tn=s.d`
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M14.0627 1.25747C14.8552 -0.419156 17.1448 -0.419156 17.9372 1.25747L21.7106 9.24093L30.148 10.5211C31.9199 10.79 32.6274 13.0639 31.3453 14.3689L25.2398 20.5831L26.6812 29.3579C26.9838 31.2006 25.1315 32.6059 23.5466 31.7359L16 27.593L8.45337 31.7359C6.8685 32.6059 5.01614 31.2006 5.31883 29.3579L6.76011 20.5831L0.65476 14.3689C-0.627443 13.0639 0.0800934 10.79 1.85205 10.5211L10.2894 9.24093L14.0627 1.25747Z" fill="url(#paint0_linear)"/>
        <defs>
            <linearGradient id="paint0_linear" x1="0" y1="16" x2="32" y2="16" gradientUnits="userSpaceOnUse">
                <stop stop-color="#FF512F"/>
                <stop offset="1" stop-color="#DD2476"/>
            </linearGradient>
        </defs>
</svg>  
`,kn=s.d`
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M16.0014 4.79517e-07C15.2304 -0.000517523 14.4592 0.418646 14.0627 1.25746L10.2894 9.24092L1.85205 10.5211C0.0800935 10.79 -0.627443 13.0638 0.65476 14.3689L6.76011 20.5831L5.31883 29.3577C5.07924 30.8164 6.18983 32.0008 7.44924 32C7.78192 32.0002 8.12506 31.9178 8.45651 31.7358L16.0016 27.5938L23.5466 31.7358C25.1315 32.6059 26.9838 31.2006 26.6812 29.3577L25.2398 20.5831L31.3453 14.3689C32.6274 13.0638 31.9199 10.79 30.148 10.5211L21.7106 9.24092L17.9372 1.25746C17.5415 0.420067 16.7711 0.000919515 16.0014 4.79517e-07C16.0011 4.79517e-07 16.0017 4.79517e-07 16.0014 4.79517e-07ZM16.0025 25.0539V2.82752L19.614 10.4684C19.9286 11.1341 20.5368 11.5956 21.2405 11.7024L29.3214 12.9285L23.474 18.8802C22.9649 19.3985 22.7326 20.1451 22.8527 20.877L24.2331 29.281L17.0053 25.3131C16.6914 25.1408 16.3471 25.0544 16.0025 25.0539Z" fill="url(#paint0_linear)"/>
        <defs>
            <linearGradient id="paint0_linear" x1="0" y1="16" x2="32" y2="16" gradientUnits="userSpaceOnUse">
                <stop stop-color="#FF512F"/>
                <stop offset="1" stop-color="#DD2476"/>
            </linearGradient>
        </defs>
</svg>
`,$n=s.d`
<svg width=32 height=32 viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M30.15,10.52,21.71,9.24l-3.77-8a2.12,2.12,0,0,0-3.88,0l-3.77,8L1.85,10.52a2.29,2.29,0,0,0-1.2,3.85l6.11,6.21L5.32,29.36A2.23,2.23,0,0,0,7.45,32a2.11,2.11,0,0,0,1-.26L16,27.59l7.55,4.15a2.18,2.18,0,0,0,3.13-2.38l-1.44-8.78,6.11-6.21A2.29,2.29,0,0,0,30.15,10.52Zm-6.68,8.36a2.33,2.33,0,0,0-.62,2l1.38,8.4-7.22-4a2.14,2.14,0,0,0-1-.26,2.1,2.1,0,0,0-1,.26l-7.23,4,1.38-8.4a2.33,2.33,0,0,0-.62-2L2.68,12.93l8.08-1.23a2.15,2.15,0,0,0,1.63-1.23L16,2.83l3.61,7.64a2.18,2.18,0,0,0,1.63,1.23l8.08,1.23Z" fill="url(#paint0_linear)"/>
            <linearGradient id="paint0_linear" x1="0" y1="16" x2="32" y2="16" gradientUnits="userSpaceOnUse">
                <stop stop-color="#FF512F"/>
                <stop offset="1" stop-color="#DD2476"/>
            </linearGradient>
        </defs>
</svg>
`,An=s.d`
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M12.3049 1.10028C12.9983 -0.366762 15.0017 -0.366762 15.6951 1.10028L18.9968 8.08581L26.3795 9.206C27.9299 9.44126 28.549 11.4309 27.4271 12.5728L22.0849 18.0102L23.346 25.6882C23.6108 27.3006 21.9901 28.5302 20.6033 27.7689L14 24.1439L7.3967 27.7689C6.00993 28.5302 4.38912 27.3006 4.65397 25.6882L5.9151 18.0102L0.572915 12.5728C-0.549012 11.4309 0.0700817 9.44126 1.62055 9.206L9.00326 8.08581L12.3049 1.10028Z" fill="url(#paint0_linear_75_17843)"/>
    <defs>
        <linearGradient id="paint0_linear_75_17843" x1="14" y1="0" x2="14" y2="28" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFEF4D"/>
            <stop offset="1" stop-color="#EC9E06"/>
        </linearGradient>
    </defs>
</svg>
`,In=s.d`
<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M13.5012 4.04593e-07C12.8507 -0.00043666 12.2 0.353233 11.8654 1.06098L8.68171 7.79703L1.56267 8.8772C0.0675789 9.10405 -0.529405 11.0226 0.552454 12.1237L5.70384 17.367L4.48776 24.7705C4.28561 26.0014 5.22267 27.0007 6.2853 27C6.56599 27.0001 6.85552 26.9306 7.13518 26.7771L13.5013 23.2823L19.8674 26.7771C21.2047 27.5112 22.7676 26.3255 22.5122 24.7705L21.2961 17.367L26.4476 12.1237C27.5294 11.0226 26.9324 9.10405 25.4374 8.8772L18.3183 7.79703L15.1345 1.06098C14.8006 0.354431 14.1506 0.000775841 13.5012 4.04593e-07C13.5009 4.04593e-07 13.5015 4.04593e-07 13.5012 4.04593e-07ZM13.5021 21.1392V2.38572L16.5493 8.83267C16.8148 9.39443 17.328 9.7838 17.9217 9.87389L24.74 10.9084L19.8061 15.9301C19.3766 16.3675 19.1806 16.9974 19.282 17.615L20.4467 24.7058L14.3482 21.3579C14.0834 21.2126 13.7928 21.1397 13.5021 21.1392Z" fill="url(#paint0_linear_75_17845)"/>
    <defs>
        <linearGradient id="paint0_linear_75_17845" x1="13.5" y1="0" x2="13.5" y2="27" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFEC4A"/>
            <stop offset="1" stop-color="#EC9E06"/>
        </linearGradient>
    </defs>
</svg>
`,Dn=s.d`
<svg width="27" height="27" viewBox="0 0 27 27" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 0C13.5004 0 13.5008 -2.66365e-07 13.5012 0C14.1506 0.00077608 14.8006 0.354431 15.1345 1.06098L18.3183 7.79703L25.4373 8.8772C26.9324 9.10405 27.5294 11.0226 26.4476 12.1237L21.2961 17.367L22.5122 24.7705C22.7676 26.3255 21.2047 27.5112 19.8674 26.7771L13.5013 23.2823L13.5 23.283V0ZM13.5021 2.38572V21.1392C13.7928 21.1397 14.0834 21.2126 14.3482 21.3579L20.4467 24.7058L19.282 17.615C19.1806 16.9974 19.3766 16.3675 19.8061 15.9301L24.74 10.9084L17.9217 9.87389C17.328 9.78379 16.8147 9.39443 16.5493 8.83267L13.5021 2.38572Z" fill="url(#paint0_linear_75_17858)"/>
    <path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 0C13.4996 0 13.4992 -2.66298e-07 13.4988 0C12.8494 0.000775841 12.1994 0.354431 11.8655 1.06098L8.68165 7.79703L1.56265 8.8772C0.0675583 9.10405 -0.529369 11.0226 0.552422 12.1237L5.70389 17.367L4.48775 24.7705C4.23243 26.3255 5.7953 27.5112 7.13255 26.7771L13.4987 23.2823L13.5 23.283V0ZM13.5 0C13.5004 0 13.5008 -2.72162e-07 13.5012 0ZM13.4979 2.38572V21.1392C13.2072 21.1397 12.9166 21.2126 12.6518 21.3579L6.55331 24.7058L7.718 17.615C7.8194 16.9974 7.62335 16.3675 7.19385 15.9301L2.26004 10.9084L9.07834 9.87389C9.67203 9.78379 10.1852 9.39443 10.4507 8.83267L13.4979 2.38572Z" fill="url(#paint1_linear_75_17858)"/>
    <g clip-path="url(#clip0_75_17858)">
        <path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 1.18459e-07C13.5004 1.18459e-07 13.5008 -1.48073e-07 13.5012 1.18459e-07C14.1506 0.00077608 14.8006 0.354431 15.1345 1.06098L18.3183 7.79703L25.4373 8.8772C26.9324 9.10405 27.5294 11.0226 26.4476 12.1237L21.2961 17.367L22.5122 24.7705C22.7676 26.3255 21.2047 27.5112 19.8674 26.7771L13.5013 23.2823L13.5 23.283V1.18459e-07ZM13.5021 2.38572V21.1392C13.7928 21.1397 14.0834 21.2126 14.3482 21.3579L20.4467 24.7058L19.282 17.615C19.1806 16.9974 19.3766 16.3675 19.8061 15.9301L24.74 10.9084L17.9217 9.87389C17.328 9.7838 16.8147 9.39443 16.5493 8.83267L13.5021 2.38572Z" fill="url(#paint2_linear_75_17858)"/>
        <path fill-rule="evenodd" clip-rule="evenodd" d="M13.5 1.20919e-07C13.4996 1.20919e-07 13.4992 -1.45474e-07 13.4988 1.20919e-07C12.8494 0.000775962 12.1994 0.354431 11.8655 1.06098L8.68165 7.79703L1.56265 8.8772C0.0675581 9.10405 -0.529371 11.0226 0.55242 12.1237L5.70389 17.367L4.48775 24.7705C4.23243 26.3255 5.7953 27.5112 7.13255 26.7771L13.4987 23.2823L13.5 23.283V1.20919e-07ZM13.5 1.20919e-07C13.5004 1.20919e-07 13.5008 -1.51148e-07 13.5012 1.20919e-07H13.5ZM13.4979 2.38572V21.1392C13.2072 21.1397 12.9166 21.2126 12.6518 21.3579L6.55331 24.7058L7.718 17.615C7.8194 16.9974 7.62335 16.3675 7.19385 15.9301L2.26003 10.9084L9.07834 9.87389C9.67203 9.78379 10.1853 9.39443 10.4507 8.83267L13.4979 2.38572Z" fill="url(#paint3_linear_75_17858)"/>
    </g>
    <defs>
        <linearGradient id="paint0_linear_75_17858" x1="13.5" y1="0" x2="13.5" y2="27" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFEC4A"/>
            <stop offset="1" stop-color="#EC9E06"/>
        </linearGradient>
        <linearGradient id="paint1_linear_75_17858" x1="13.5012" y1="0" x2="13.5012" y2="27" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFEC4A"/>
            <stop offset="1" stop-color="#EC9E06"/>
        </linearGradient>
            <linearGradient id="paint2_linear_75_17858" x1="13.5" y1="0" x2="13.5" y2="27" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFEC4A"/>
            <stop offset="1" stop-color="#EC9E06"/>
        </linearGradient>
        <linearGradient id="paint3_linear_75_17858" x1="13.5012" y1="0" x2="13.5012" y2="27" gradientUnits="userSpaceOnUse">
            <stop stop-color="#FFEC4A"/>
            <stop offset="1" stop-color="#EC9E06"/>
        </linearGradient>
            <clipPath id="clip0_75_17858">
            <rect width="27" height="27" fill="white"/>
        </clipPath>
    </defs>
</svg>
`,Mn="red",On="yellow",Ln=s.d`
<div class="stars-container" ${(0,on.i)("highlightingRatingContainer")}>
    <div class="${e=>e.isAnimationValid?"animated-star1":"star1"}" style="${e=>"rtl"===document.dir?"transform:rotateY(180deg)":""}"> 
        ${e=>Fn(e.rating,e.starType)}
    </div>
    <div class="${e=>e.isAnimationValid?"animated-star2":"star2"}" style="${e=>"rtl"===document.dir?"transform:rotateY(180deg)":""}"> 
        ${e=>Fn(e.rating-2,e.starType)}
    </div>
    <div class="${e=>e.isAnimationValid?"animated-star3":"star3"}" style="${e=>"rtl"===document.dir?"transform:rotateY(180deg)":""}"> 
        ${e=>Fn(e.rating-4,e.starType)}
    </div>
    <div class="${e=>e.isAnimationValid?"animated-star4":"star4"}" style="${e=>"rtl"===document.dir?"transform:rotateY(180deg)":""}"> 
        ${e=>Fn(e.rating-6,e.starType)}
    </div>
    <div class="${e=>e.isAnimationValid?"animated-star5":"star5"}" style="${e=>"rtl"===document.dir?"transform:rotateY(180deg)":""}"> 
        ${e=>Fn(e.rating-8,e.starType)}
    </div>
<div>
`,Fn=(e,t)=>s.d`
    ${(0,V.g)((t=>e-2>=0),(e=>{switch(e){case Mn:return Tn;case On:return An;default:return Tn}})(t))}
    ${(0,V.g)((t=>e-2<0),s.d`
        ${(0,V.g)((t=>e-1>=0),(e=>{switch(e){case Mn:return kn;case On:return In;default:return kn}})(t))}
        ${(0,V.g)((t=>e-1<0),s.d`
            ${(0,V.g)((t=>e-1<0),(e=>{switch(e){case Mn:return $n;case On:return Dn;default:return $n}})(t))}
        `)}
    `)}  
`;let Pn=class extends wn{};Pn=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-highlight-rating",template:Ln,styles:Sn,shadowOptions:{delegatesFocus:!0}})],Pn);const Rn=e=>$i(e)===Yt.RatingHighlightRedNonDR||$i(e)===Yt.RatingHighlightYellowNonDR||$i(e)===Yt.RatingHighlightYellowNonDRStatic,_n=()=>s.d`
    ${(0,V.g)((e=>Rn(e)&&(0,Ca.Z)(e,"assets.rating")),s.d`
        <msn-native-ad-highlight-rating
            effectId=${e=>e.id}
            rating=${e=>e.assets&&e.assets.rating}
            starType=${e=>(e=>$i(e)===Yt.RatingHighlightRedNonDR?Mn:On)(e)}
            :isStaticMode=${e=>(e=>$i(e)===Yt.RatingHighlightYellowNonDRStatic)(e)}
        >
        </msn-native-ad-highlight-rating>
    `)}
    ${(0,V.g)((e=>!Rn(e)&&(0,Ca.Z)(e,"assets.rating")),s.d`
        <decoration-rating
            rating=${e=>e.assets.rating}
            is-show-review=${!1}
        >
        </decoration-rating>
    `)}
`;Bi.N,Ui.S,ji.f;const En=e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.progressiveDisplay)&&e.hasAnyInlineDecoration?"native-ad-content-card":""},Hn=(e,t)=>{var a;(null===(a=e.template)||void 0===a?void 0:a.progressiveDisplay)&&e.hoverState&&e.hoverState.isHovered!==t&&(e.hoverState.isHovered=t)},Nn=(e,t)=>{if(Ai(e))return s.d`
        <div class="heading" part="heading" style="display: flex; align-items: center;">
            ${(0,V.g)((e=>t),s.d`
                <h3 class="info-pane-slide-title" style="pointer-events: none; flex: 1;" part="info-pane-slide-title">
                    ${e=>e.title}
                </h3>
            `)}
            ${(0,V.g)((e=>!t),s.d`
                <div class="cta-title" style="flex:1; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient: vertical;">
                    <span style = "font-size: ${e=>e.feedFontSize}px; 
                        line-height: "28px";
                        "${e=>e.fontFamilyOnCardContent?`font-family:${e.fontFamilyOnCardContent}, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;`:""}"
                    ">
                        ${e=>e.title}
                    </span>
                </div>
            `)}
            <div class="cta-button" style="margin-inline-start: 4px; z-index: 2;">
                <msn-native-ad-call-to-action 
                    text=${e=>e.localizedStrings.nativeAdLearnMoreText||"learn more"}
                    default-background-color="#C6C0BA"
                    background-color="${e=>e.layoutColor}"
                    color="#000000"
                    is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
                    cta-mode="arrow"
                    destination-url=${e=>e.destinationUrl}
                    tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
                    ${(0,Mi.lq)(!0,!1)}
                >
                </msn-native-ad-call-to-action>
        </div>`;if((e=>Boolean($i(e)===Yt.ComboSaleHighlightNonDR))(e))return s.d`
            <div class="sale-highlight-badge" style="position: absolute; bottom: 268px;">
                <msn-native-ad-sale-highlight-badge
		            component-name="sale-highlight-badge"
                    discount-text="${e=>{var t,a;return Di.Ld.Format((null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdOnSaleTextCapital)||"{0}% OFF",null===(a=e.assets)||void 0===a?void 0:a.discount)}}"
                >
                </msn-native-ad-sale-highlight-badge>
            </div>
        `;if((e=>{const{SpecialOfferNonDR:t,SpecialOfferNonDRWithExp:a,ComboSpecialOfferNonDR:i}=Yt;return[t,a,i].includes($i(e))})(e)){const{displayedText:a="",promotionalText:i="",redemptionCode:n="",daysFromExpiration:r="",destinationURL:o=""}=e.assets.specialOffer;return s.d`
            <style>
                ${(0,V.g)((e=>e.show&&t),s.d`
                    msft-info-pane-slide msft-attribution[slot="attribution"] {
                        bottom: 159px;
                        position: absolute;
                        z-index: 2;
                    }
                `)}
                ${(0,V.g)((e=>!e.show&&t),s.d`
                msft-info-pane-slide msft-attribution[slot="attribution"] {
                    bottom: 261px;
                    position: absolute;
                    z-index: 2;
                }
            `)}
            </style>
            <msft-attribution 
                slot="attribution"
                @click=${()=>e.destinationUrl&&window.open(e.destinationUrl)}
                ${(0,Mi.lq)(!0,!1)}
            >
                <msn-native-ad-special-offer
                    ${(0,Mi.lq)(!0,!1)}
                    :localizedStrings=${e=>e.localizedStrings}
                    displayed-text="${a}"
                    promotional-text="${i}"
                    redemption-code="${n}"
                    days-from-expiration="${r}"
                    destination-url="${o}"
                    margin-left="-6"
                    ${t?"underneath-pop-up":""}
                    display-expiration-date=${e=>(e=>{const{SpecialOfferNonDRWithExp:t}=Yt;return t===$i(e)})(e)}
                ></msn-native-ad-special-offer>
            </msft-attribution>
        `}return(e=>Rn(e)||[Yt.RatingDefaultYellowNonDRStatic,Yt.ComboRatingNonDR].includes($i(e)))(e)?s.d`
            ${(0,V.g)((e=>!t),s.d`
                <style>
                    ${(0,V.g)((e=>(e=>$i(e)===Yt.RatingHighlightRedNonDR)(e)),s.d`
                        msft-attribution::part(content) {
                            width: 100%;
                        }
                    `)}
                    ${(0,V.g)((e=>Rn(e)),s.d`
                        msft-attribution[slot="attribution"] {
                            height: 64px;
                        }
                        msn-native-ad-highlight-rating {
                            position: absolute;
                            bottom: 0;
                        }
                    `)}
                </style>
                <msft-attribution slot="attribution">
                    ${_n()}
                </msft-attribution>
            `)}
            ${(0,V.g)((e=>t),s.d`
            <msft-attribution slot="attribution">
                <decoration-rating
                    rating=${e=>e.assets.rating}
                    review-data=${e=>e.assets.review}
                    is-info-pane=${t}
                ></decoration-rating>
                </msft-attribution>
            `)}
        `:(e=>fn(e)||$i(e)===Yt.FreeShippingPlainTextNonDR)(e)?s.d`
            <div class="native-ad-free-shipping-badge" style="position: absolute; bottom: 268px;">
                <msn-native-ad-badge badge-text="${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdFreeShippingText")}" padding-top="1" padding-bottom="3" padding-left="8" padding-right="8">
                </msn-native-ad-badge>
            </div>
        `:(e=>$i(e)===Yt.ComboSoldNonDR||$i(e)===Yt.ComboReturnPolicyNonDR||$i(e)===Yt.ComboConditionNonDR)(e)?s.d`
            <msft-attribution slot="attribution" class="margin-5-decoration">
                ${vn()}
            </msft-attribution>
        `:s.d`${e=>{var t,a,i;return gn("attribution",!1,null===(t=e.template)||void 0===t?void 0:t.progressiveDisplay,(null===(a=e.hoverState)||void 0===a?void 0:a.isHovered)?65:25,null===(i=e.hoverState)||void 0===i?void 0:i.isHovered,!1,fi(e),(t=>vi(e,t)))}}`},zn=e=>((e,t,a={})=>s.d`
    <!--
        Only use placeholder when the card size is 1x_2y
    -->
    ${(0,V.g)((e=>e.cardSize===e.FeedLayoutCardSize._1x_2y&&e.imageData),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;">
            ${e=>e.renderImageTag("anim-content",a)}
        <div>
    `)}
    ${(0,V.g)((e=>e.cardSize===e.FeedLayoutCardSize._1x_2y&&!e.imageData),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;"></div>
    `)}
    ${(0,V.g)((e=>e.cardSize!==e.FeedLayoutCardSize._1x_2y&&e.imageData),s.d`
        <div slot="${e}">
            ${e=>e.renderImageTag("anim-content",a)}
        </div>
    `)}
`)("image",e.ContentCardImageSizes._300x225),Un=s.d`
    <style>
        :host {
            --article-native-ad-heading-margin-bottom: -12px;
        }
        msft-ad-label {
            margin-inline-end: 8px;
        }

        ${(0,V.g)((e=>{var t;return!(null===(t=e.assets)||void 0===t?void 0:t.specialOffer)}),s.d`
        msft-article msft-attribution[slot="attribution"] {
            display: flex;
            align-self: end;
        }
        `)}

        ${(0,V.g)((e=>{var t;return null===(t=e.assets)||void 0===t?void 0:t.specialOffer}),s.d`
            msft-article msft-attribution[slot="attribution"] {
                cursor: pointer;
                display: flex;
                align-self: end;
                overflow: visible;
                max-width: 300px;
                z-index: 2;
                margin-bottom: 5px;
            }
            
            msft-article msft-attribution[slot="attribution"]::part(content) {
                overflow: visible;
            }
        `)}

        ${(0,V.g)((e=>{var t;return null===(t=e.assets)||void 0===t?void 0:t.rating}),s.d`
            msft-article msft-attribution[slot="attribution"] {
                margin-bottom: 1px;
            }
        `)}

        msft-article span.title_1x_2y,
        msft-article span.title_2x_2y {
            font-size: 20px;
        }
        
        ${(0,V.g)((e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.nativeAdMode)===Xt.Adult}),s.d`
            msft-article div[slot="end-action"] {
                --neutral-foreground-rest: white;
            }
        `)}
        msft-article div[slot="end-action"] {
            display: flex;
            align-items: center;
            --control-corner-radius: 100;
            position: relative;
            bottom: -8px;
        }

        msft-attribution[slot="start-action"] {
            margin-top: 15px;
        }
        

        msft-article a.ad-choice-icon {
            display: inline-flex;
            justify-content: center;
            min-width: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px); 
        }

        msft-article.native-ad {
            --article-native-ad-heading-margin-bottom: -1px;
            --heading-max-lines: 2;
        }

        msft-article.nativeAdVideo-river::part(image) {
            z-index: 2;
        }

        msft-article.native-ad.gradient {
            --article-native-ad-actions-height: 33px;
            --article-native-ad-heading-margin-bottom: 6px;
        }

        msft-article.native-ad::part(heading) {
            margin-bottom: var(--article-native-ad-heading-margin-bottom);
            color: var(--msft-card-font-color);
        }

        msft-article.native-ad.long-gradient::part(gradient) {
            top: -55px;
        }

        ${(0,V.g)((e=>{var t;return null===(t=e.template)||void 0===t?void 0:t.immersiveThemeColor}),s.d`
            @media (prefers-color-scheme: light) {
                msft-article::part(gradient) {
                    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.8) 45.83%, #FFFFFF 100%);
                }

                msft-article::part(article) {
                    background: #FFFFFF;
                }
                msft-article::part(heading) {
                    color: #000000;
                }
            }

            @media (prefers-color-scheme: dark) {
                msft-article::part(gradient) {
                    background: linear-gradient(180deg, transparent 0%, rgba(43, 43, 43, 0.8) 62.5%, #2E2E2E 100% );
                }

                msft-article::part(article) {
                    background: #2B2B2B;
                }
                msft-article::part(heading) {
                    color: #FFFFFF;
                }
            }
        `)}

        ${(0,V.g)((e=>e.layoutGap),s.d`
            msft-article-card[size="_1x_2y"] msft-article::part(gradient) {
                bottom: ${e=>67+e.layoutGap}px;
            }

            msft-article-card[size="_2x_2y"] msft-article::part(gradient) {
                bottom: 0px;
            }
        `)}

        ${(0,V.g)((e=>"rtl"===document.dir),s.d`
            msft-article-card msft-article msn-inline-group::part(inline-item) {
                padding-left: 12px;
                padding-right: unset;
            }
        `)}

        ${(0,V.g)((e=>["ltr",""].includes(document.dir)),s.d`
            msft-article-card msft-article msn-inline-group::part(inline-item) {
                padding-right: 12px;
            }
        `)}

        :host {
            grid-area:${e=>e.grid_area};
        }

        msft-article-card[size="_1x_2y"],
        msft-article-card[size="_2x_2y"] {
            --card-width: auto;
            --card-height: auto;
        }

        ${(0,V.g)((e=>{var t;return!(null===(t=e.assets)||void 0===t?void 0:t.specialOffer)}),s.d`
        msft-attribution {
            max-width: 100%;
        }
    `)}

        msft-article.native-ad::part(actions) {
            height: var(--article-native-ad-actions-height);
            align-items: center;
        }
        
        msft-article.two-lines-heading::part(heading) {
            -webkit-line-clamp: 2;
        }

        msft-article.special-offer::part(heading),
        msft-article.deco-rating::part(heading),
        msft-article.deco-free-shipping::part(heading) {
            margin-bottom: -1px;
        }

        msft-article.three-lines-heading::part(heading) {
            -webkit-line-clamp: 3;
        }
        msft-article-card msft-article::part(heading):after {
            top: calc(100% - 304px - 8px);
        }

        ${(0,V.g)((e=>e.useTitleFontSize),s.d`
            msft-article-card msft-article {
                --msft-article-heading-font-size: ${e=>e.useTitleFontSize}px;
                --msft-article-heading-line-height: 24px;
            }

            msft-article-card msft-article::part(attribution) {
                height: 28px;
            }

            msft-article-card[size="_1x_2y"] msft-article:not(.no-image)::part(heading) {
                margin-bottom: -4px;
            }

            msft-article-card[size="_1x_2y"] msft-article:not(.no-image)::part(gradient) {
                background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 46%, var(--gradient-color) 100%);
                top: 5px;
            }
        `)}

        ${(0,V.g)((e=>e.useShorterGradient),s.d`
            msft-article-card[size="_1x_2y"] msft-article[id="native_ad_${e=>e.id}"]::part(gradient) {
                top: 11px;
                bottom: 79px;
                background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 56%, var(--gradient-color) 100%);
            }
        `)}

        ${(0,V.g)((e=>e.enableNativeAdHoverContrast),s.d`
            msft-article-card:hover msft-article[id="native_ad_${e=>e.id}"]::part(image) {
                opacity: 1;
            }
            msft-article-card msft-article[id="native_ad_${e=>e.id}"]:hover {
                filter: contrast(115%);
            }
        `)}
        

    </style>
    <msft-article-card
        style="
            grid-area:${e=>e.grid_area};
            height: ${e=>e.ContentCardImageSizes._300x304.height}px;
        "
        size="${e=>e.cardSize}"
        card-fill-color=${e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.nativeAdMode)===Xt.Adult?"#2E2E2E":e.adBackgroundColor}}
    >
        <msft-article
            id="native_ad_${e=>e.id}"
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.title}
            ?image-priority=${e=>e.imagePriority}
            class=${e=>(e=>{var t,a,i;const n=[En(e)];return n.push("native-ad"),e.hasAnyInlineDecoration||e.adSlugGA?n.push("two-lines-heading"):n.push("three-lines-heading"),(null===(t=e.assets)||void 0===t?void 0:t.specialOffer)&&n.push("special-offer"),(null===(a=e.assets)||void 0===a?void 0:a.rating)&&n.push("deco-rating"),(null===(i=e.assets)||void 0===i?void 0:i.freeShipping)&&n.push("deco-free-shipping"),n.filter((e=>e)).join(" ")})(e)}
            data-t="${e=>e.id?e.adTelemetryContext.nativeAdCard.getMetadataTag():""}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
            @mouseenter=${e=>Hn(e,!0)}
            @mouseleave=${e=>Hn(e,!1)}
        >
            ${e=>Ai(e)?"":e.renderTitle()}
            ${e=>zn(e)}
            ${e=>Nn(e)}
            ${e=>e.renderStartSection("start-action",e.destinationUrl)}
            ${e=>e.renderEndSection("end-action")}
        </msft-article>
    </msft-article-card>
`;var jn=a(28258);const Bn=252;function Wn(e){var t;const a=Number(e.template&&e.template.desiredWidth||e.imageData.imageWidth),i=Number(e.template&&e.template.desiredHeight||e.imageData.imageHeight),n=Math.floor(142*a/i),r=Math.floor(i*Bn/a);if(e.template&&e.template.templateType===Yt.RiverZIndex_9by16)return{w:113,h:202};if(e.template&&e.template.templateType===Yt.RiverZIndex_3by4)return{w:113,h:150};if((null===(t=e.template)||void 0===t?void 0:t.templateType)===Yt.RiverAnimatedImagery_9by16)return{w:141,h:250};if(e.template&&e.template.desiredRatio){if(e.template.desiredRatio===Qt)return{w:Bn,h:r};if(e.template.desiredRatio===qt||e.template.desiredRatio===Zt||e.template.desiredRatio===Jt)return{w:n,h:142}}return n>Bn?{w:Bn,h:r}:{w:n,h:142}}var Gn=a(35099);Gn.Ii,Gn.pB,jn.MsnZIndexCard;const Vn=s.d`
    <div slot="image-with-badge">
        <img
            src="${e=>e.imageData.source}"
            alt="${e=>e.imageData.altText}"
            style="
                background: white;
                border-top-right-radius: ${e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.templateType)===Yt.RiverAnimatedImagery_9by16?"calc(var(--layer-corner-radius) * 1px)":"unset"}};
                border: ${e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.templateType)===Yt.RiverAnimatedImagery_9by16?"unset":"10px solid #FFFFFF"}};
                filter: ${e=>{var t;return(null===(t=e.template)||void 0===t?void 0:t.templateType)===Yt.RiverAnimatedImagery_9by16?"unset":"drop-shadow(0px 0px 4px rgba(0, 0, 0, 0.25))"}};
                width: ${e=>Wn(e).w}px;
                min-width: ${e=>Wn(e).w}px;
                height: ${e=>Wn(e).h}px;
                min-height: ${e=>Wn(e).h}px;
                object-fit: cover;
            "
        />
    </div>
`,qn=s.d`
    <fluent-card
        id="native_ad_${e=>e.id}"
        style="
            background: unset;
            border-radius: unset;
            box-shadow: unset;
            grid-area:${e=>e.grid_area};
            height: ${e=>e.ContentCardImageSizes._300x304.height+16}px;
            left: -8px;
            position: relative;
            top: -8px;
            width: ${e=>e.ContentCardImageSizes._300x304.width+16}px;
        "
        class="${e=>e.cardSize}"
    >
        <msn-z-index-card
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.title}
            ?image-priority=${e=>e.imagePriority}
            layout=${e=>ki(e)}
            heading-max-lines=${e=>(e=>{var t,a;if(e.hasAnyInlineDecoration)switch(null===(t=e.template)||void 0===t?void 0:t.templateType){case Ci:case xi:case yi:return"five-lines-heading";default:return"two-lines-heading"}else switch(null===(a=e.template)||void 0===a?void 0:a.templateType){case Ci:case xi:case yi:return"eight-lines-heading";default:return"three-lines-heading"}})(e)}
            document-direction=${e=>((e,t)=>{var a;if([xi,yi,Ci].includes(null===(a=t.template)||void 0===a?void 0:a.templateType)){if("rtl"===e)return Si.RTL;if("ltr"===e)return Si.LTR}return""})(document.dir,e)} 
            data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag()}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
        >
            ${e=>e.renderTitle()}
            <!--
                For now z-index only supports 1x_2y and with image data, here the assumption is that's the only configuration will be sent to z-index.
            -->
            <div slot="media">
                <style>
                    :host {
                        --z-index-image-width: ${e=>Wn(e).w}px;
                        --z-index-image-height: ${e=>Wn(e).h}px;
                        --heading-max-lines: ${e=>e.hasAnyInlineDecoration?2:3};
                    }
                </style>
                ${(0,V.g)((e=>e.badge),s.d`
                    <msn-z-index-image-badge-decorator
                        badgeType=${e=>e.badge.type}
                        text=${e=>e.badge.text}
                        layout=${e=>ki(e)}
                    >
                        <div slot="image-with-badge" part="image-with-badge">
                            ${Vn}
                        </div>
                    </msn-z-index-top-image-badge-decorator>
                `)}
                ${(0,V.g)((e=>!e.badge),s.d`
                    ${Vn}
                `)}
            </div>
            ${e=>(e=>t=>{var a,i,n;const r=null===(a=null==t?void 0:t.hoverState)||void 0===a?void 0:a.isHovered,o=null===(i=null==t?void 0:t.template)||void 0===i?void 0:i.progressiveDisplay,s="call-to-action";switch(null===(n=t.template)||void 0===n?void 0:n.templateType){case Ci:case xi:case yi:return e(s,!1,o,65,r,!0,0,(e=>vi(t,e)));default:return e(s,!1,o,r?65:25,r,!1,fi(t),(e=>vi(t,e)))}})(gn)(e)}
            ${e=>e.renderStartSection("start-actions",e.destinationUrl)}
            ${e=>e.renderEndSection("end-actions")}
        </msn-z-index-card>
    </fluent-card>
`,Zn=s.d`
    <msn-ad-carousel-slide>
        <img slot="carousel-slide-content" class="carousel-item" src= ${e=>e.imageUrl} />
    </msn-ad-carousel-slide>
`,Jn=s.d`
    .carousel-item {
        width: 100%;
        height: 100%;
        object-fit: cover; 
    }
    :host {
        border-radius: unset;
        box-shadow: unset;
        grid-area:${e=>e.grid_area};
        height: ${e=>e.ContentCardImageSizes._300x304.height+4}px;
        position: relative;
        width: ${e=>e.ContentCardImageSizes._300x304.width+4}px
    }
`,Qn=s.d`
    <style>
        ${Jn}
    </style>
    <fluent-card 
        id="native_ad_${e=>e.id}"
        style="
            border-radius: unset;
            box-shadow: unset;
            grid-area:${e=>e.grid_area};
            height: ${e=>e.ContentCardImageSizes._300x304.height+4}px;
            position: relative;
            width: ${e=>e.ContentCardImageSizes._300x304.width+4}px
        "
        class="${e=>e.cardSize}"
    >
        <msn-ad-carousel-card
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.title}
            ?image-priority=${e=>e.imagePriority}
            data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag()}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
        >
            ${e=>e.renderTitle()}
            ${Xn="media",s.d`
    <div slot="${Xn}" style="width: 300px;height: 180px;">
        <msn-ad-carousel 
            cardId=${e=>e.id} 
            visibleSlideCount = "3" 
            :updateActiveIndex=${e=>e.activeItemChangedHandler}
        >
            ${(0,Pt.rx)((e=>e.carouselData),Zn)}
        </msn-ad-carousel>
    </div>
`}
            ${e=>e.renderStartSection("start-actions",e.destinationUrl)}
            ${e=>e.renderEndSection("end-actions")}
        </msn-ad-carousel-card>
    </fluent-card>
`;var Xn;const Yn=(e={})=>s.d`
    <style>
        msn-animation-decorator img.crop {
            position: relative;
            left: -44px;
        }
    </style>
    <msn-animation-decorator
        effectId=${e=>e.id}
        showMultiTimes
        animationType=${e=>{var t;return null===(t=e.template)||void 0===t?void 0:t.animatedImage}}
        :animationConfig=${e=>{var t;return null===(t=e.template)||void 0===t?void 0:t.animatedConfig}}
        intersectionRootMargin="-160px 0px 0px 0px"
    >
        ${t=>t.renderImageTag("anim-content",e)}
    </msn-animation-decorator>
`,Kn=s.d`
    <style>
        :host {
            height: ${e=>e.ContentCardImageSizes._300x304.height}px;
            grid-area: ${e=>e.grid_area};
        }
        .card-button:not(:hover) {
            background: transparent;
        }
        msft-content-card fluent-button::part(control) {
            padding: 0;
        }
        msft-content-card.nativeAdVideo-river::part(media) {
            z-index: 2;
        }
        msft-content-card::part(footer) {
            padding: 0 16px 4px;
            margin-bottom: 0;
            height: 40px;
        }
        msft-content-card.wideIconMargin msft-ad-label {
            margin-right: 8px;
        }
        msft-attribution {
            position: relative;
            overflow: hidden;
        }
        /* override default call-to-action style from msft-content-card */
        msft-attribution.native-ad-river-card {
            z-index: unset;
            bottom: 42px;
            position: absolute;
        }
        msft-content-card span.title_1x_2y,
        msft-content-card span.title_1x_3y {
            font-size: 20px;
        }
        msft-content-card.native-ad-content-card::part(heading-container) {
            background: var(--fill-color);
        }
        msft-content-card.native-ad-content-card::part(media-wrapper) {
            height: 156px;
            transition: height  0.3s;
            overflow: hidden;
        }
        msft-content-card.two-lines-heading::part(heading) {
            --heading-max-lines: 2;
        }
    </style>
    <fluent-card
        id="native_ad_${e=>e.id}"
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >
        <msft-content-card
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.title}
            ?image-priority=${e=>e.imagePriority}
            class="two-lines-heading ${e=>e.getContentCardClassnames(e)}"
            data-t="${e=>e.adTelemetryContext.nativeAdCard.getMetadataTag()}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
        >
            ${e=>e.renderTitle()}
            ${e=>e.videoProps?e.renderVideo("media",e.ContentCardImageSizes._300x156):((e,t,a={})=>s.d`
    <!--
        Only use placeholder when the card size is 1x_2y
    -->
    ${(0,V.g)((e=>e.cardSize===e.FeedLayoutCardSize._1x_2y&&e.imageData),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;">
            ${Yn(a)}
        <div>
    `)}
    ${(0,V.g)((e=>e.cardSize===e.FeedLayoutCardSize._1x_2y&&!e.imageData),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;"></div>
    `)}
    ${(0,V.g)((e=>e.cardSize!==e.FeedLayoutCardSize._1x_2y&&e.imageData),s.d`
        <div slot="${e}">
            ${Yn(a)}
        </div>
    `)}
`)("media",e.ContentCardImageSizes._300x156)}
            ${e=>e.renderStartSection(e.isProviderInHeader?"attribution":"start-actions",e.destinationUrl)}
            ${e=>e.renderEndSection("end-actions")}
        </msft-content-card>
    </fluent-card>
`,er=s.d`
    <style>
        :host {
            grid-area:${e=>e.grid_area};
        }
    </style>
    <fluent-card
        id="native_ad_${e=>e.id}"
        style="
            height: ${e=>e.ContentCardImageSizes._300x304.height}px;
        "
        class="${e=>e.cardSize}"
    >
        <msn-slideshow
            :images="${e=>e.images}"
            :imageData="${e=>e.imageData}"
            :autoScroll="${e=>e.slideshowProps.autoScroll}"
            :autoScrollIntervalMs="${e=>e.slideshowProps.autoScrollIntervalMs}"
            :enableMediaControls="${e=>e.slideshowProps.enableSlideshowMediaControls}"
            :destinationUrl=${e=>e.destinationUrl}
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            :badge=${e=>e.badge}
            data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag()}}"
            ${(0,Mi.lq)(!0,!0,!0)}
            title=${e=>e.title}
        >
            ${e=>e.renderTitle()}
            ${e=>e.renderStartSection("start-actions",e.destinationUrl)}
            ${e=>e.renderEndSection("end-actions")}
        </msn-slideshow>
    </fluent-card>
`,{Default:tr,ZIndex:ar,RiverAnimatedImagery_9by16:ir,RiverZIndex_9by16:nr,RiverZIndex_3by4:rr,PatternOverlay:or,AdCarousel:sr,Slideshow:dr,PseudoVideo:lr,CallToActionV3:cr}=Yt,ur=s.d`
    <template>
        <style>
            msft-content-card.native-ad-content-card:hover::part(media-wrapper) {
                transition: height  0.3s;
                overflow: hidden;
                height: ${e=>{var t;return(null===(t=e.data.hoverState)||void 0===t?void 0:t.isDecorationLinesExpanded)?"116px":""}}
            }
        </style>
        ${(0,Pt.rx)((e=>[e.data]),s.d`
            ${e=>(e=>{var t,a,i;const n=$i(e)===ar,r=$i(e)===ir,o=$i(e)===nr,s=$i(e)===rr,d=$i(e)===dr,l=$i(e)===lr,c=$i(e)===or,u=$i(e)===sr,p=!!e.assets&&!(0,Nt.Z)(e.assets),g=$i(e)===tr&&(null===(t=e.template)||void 0===t?void 0:t.animatedImage)&&(null===(a=e.template)||void 0===a?void 0:a.animatedConfig),h=$i(e)===cr,m=null===(i=e.template)||void 0===i?void 0:i.immersiveThemeColor;return c?Oi:p||m||h?Un:n||r||o||s?qn:u?Qn:g?Kn:d||l?er:void 0})(e)}
        `)}
    </template>
`;var pr=a(32804);const gr=Ri.i`
    msft-content-card fluent-button::part(control) {
        padding: 0;
    }
    msft-content-card.nativeAdVideo-river::part(media) {
        z-index: 2;
    }
    msft-content-card::part(footer) {
        padding: 0 16px 4px;
        margin-bottom: 0;
        height: 40px;
    }
    msft-content-card.wideIconMargin msft-ad-label {
        margin-inline-end: 8px;
    }
    msft-attribution {
        position: relative;
        overflow: hidden;
    }
    /* override default call-to-action style from msft-content-card */
    msft-attribution.native-ad-river-card {
        bottom: 42px;
        position: absolute;
        z-index: unset;
    }
    msft-content-card span.title_1x_2y,
    msft-content-card span.title_1x_3y {
        font-size: 20px;
    }
    msft-content-card.native-ad-content-card::part(heading-container) {
        background: ${pr.IfY};
    }
    msft-content-card.native-ad-content-card::part(media-wrapper) {
        height: 156px;
        transition: height  0.3s;
        overflow: hidden;
    }
    msft-content-card.two-lines-heading::part(heading) {
        --heading-max-lines: 2;
    }
    msft-content-card.three-lines-heading::part(heading) {
        --heading-max-lines: 3;
    }

    msft-article msft-attribution[slot="attribution"].margin-5-decoration {
        margin-bottom: 5px;
    }
`.withBehaviors(new class{constructor(e,t,a){this.propertyPath=e,this.value=t,this.styles=a}bind(e){ct.y$.getNotifier(e).subscribe(this,this.propertyPath),this.handleChange(e,this.propertyPath)}unbind(e){ct.y$.getNotifier(e).unsubscribe(this,this.propertyPath),e.$fastController.removeStyles(this.styles)}handleChange(e,t){(0,Ca.Z)(e,t)===this.value?e.$fastController.addStyles(this.styles):e.$fastController.removeStyles(this.styles)}}("data.template.nativeAdMode",Xt.Adult,Ri.i`
                .card-button:not(:hover) {
                    background: transparent;
                }
            `));class hr extends hi{}const mr=(0,pi.Z)((()=>{(0,gi.M)({name:"msn-native-ad-card-template-facade",template:ur,styles:gr})(hr)}));class fr extends gi.H{}(0,i.gn)([ct.LO],fr.prototype,"nativeAdHpStripeData",void 0);const vr=s.d`
    ${(0,Pt.rx)((e=>[e.nativeAdHpStripeData]),s.d`
        <msft-content-card
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.title}
            ?image-priority=${e=>e.imagePriority}
            data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag()}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
        >
            ${e=>e.title}
            ${e=>e.renderImageTag("media",te.B._300x200)}
            <msft-attribution slot="start-actions">
                ${e=>e.providerData.name}
            </msft-attribution>
            <div slot="end-actions"></div>
        </msft-content-card>
    `)}
`,br=Ri.i`
    msft-content-card {
        --heading-max-lines: 3;
    }

    msft-content-card msft-attribution {
        margin-inline-start: -13px;
    }

    msft-content-card img[slot="media"] {
        width: 306px;
        height: 200px;
        object-fit: cover;
    }
`;class Cr extends fr{}const yr=(0,pi.Z)((()=>{(0,gi.M)({name:"msn-native-ad-hp-stripe-card",template:vr,styles:br})(Cr)}));class xr extends gi.H{}(0,i.gn)([ct.LO],xr.prototype,"nativeAdArticleData",void 0);const wr=s.d`
    ${(0,Pt.rx)((e=>[e.nativeAdArticleData]),s.d`
        <msft-article-card
            size="${e=>e.cardSize}"
            card-fill-color=${e=>e.adBackgroundColor}
        >
            <msft-article
                id="native_ad_${e=>e.id}"
                href=${e=>e.destinationUrl}
                target="_blank"
                title=${e=>e.title}
                ?image-priority=${e=>e.imagePriority}
                class="${e=>e.getArticleCardClassnames(e)}"
                data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag()}}"
                :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
                ${(0,Mi.lq)()}
            >
                ${e=>e.createNativeAdFaviconWithProviderName}
                ${e=>e.renderTitle()}
                ${e=>e.videoProps?e.renderVideo("image",te.B._300x169,!0):e.renderImage("image",te.B._300x225)}
                ${e=>e.invertSlugPosition?e.renderStartSection("start-action",e.destinationUrl):e.renderStartSection("attribution",e.destinationUrl)}
                ${e=>e.renderEndSection("end-action")}
            </msft-article>
        </msft-article-card>
    `)}
`;var Sr=a(12108);const Tr=new class{constructor(){this.articleCardHoverGradientStyle=this.generateArticleCardHoverGradientStyle()}generateArticleCardHoverGradientStyle(){const e='msft-article-card[size="_1x_1y"]:hover msft-article::part(image) { z-index: 0; } msft-article-card[size="_1x_1y"]:focus-within msft-article::part(image) { z-index: 0; }';return"windows"===I.jG.AppType&&I.jG.CurrentRequestTargetScope.pageType&&I.jG.CurrentRequestTargetScope.pageType===Sr.G.Windows?e+"msft-article-card:hover msft-article::part(image) { opacity: 1; }\n                 msft-article-card:hover msft-article { filter: contrast(115%); }":e}getArticleCardHoverGradientStyle(){return this.articleCardHoverGradientStyle||(this.articleCardHoverGradientStyle=this.generateArticleCardHoverGradientStyle()),this.articleCardHoverGradientStyle}clearArticleCardHoverGradientStyle(){this.articleCardHoverGradientStyle=void 0}},kr=Ri.i`
    msft-article-card {
        height: 100%;
        width: 100%;
    }

    msft-ad-label {
        margin-inline-end: 8px;
    }

    msft-article.native-ad {
        --article-native-ad-heading-margin-bottom: 40px;
        --heading-max-lines: 3;
    }

    msft-article.nativeAdVideo-river::part(image) {
        z-index: 2;
    }

    msft-article.native-ad.gradient {
        --article-native-ad-actions-height: 33px;
        --article-native-ad-heading-margin-bottom: 6px;
    }

    msft-article.native-ad::part(heading) {
        margin-bottom: var(--article-native-ad-heading-margin-bottom);
        color: var(--msft-card-font-color);
    }

    msft-article.native-ad.long-gradient::part(gradient) {
        top: -55px;
    }

    msft-attribution {
        max-width: 100%;
    }

    msft-article.native-ad::part(actions) {
        height: var(--article-native-ad-actions-height);
        align-items: center;
    }

    msft-article-card[size="_1x_2y"] msft-article.native-ad[class*="zoom-ratio"]:not(.no-image)::part(gradient):after {
        content: "";
        height: 10px;
        width: 100%;
        bottom: -5px;
        position: absolute;
        background: var(--gradient-mid-color);
    }

    /** 
     * TODO Cleanup these two styles after the Linear feed right rail transparent-background ad flight is completed 
     * Or clean this up once this the right rail native ads card gets migrated to the NativeAdWC experience
     * Work item tracking the migration - https://msasg.visualstudio.com/Bing_Ads/_workitems/edit/3905327
    **/
    @media (prefers-color-scheme: light) {
        .white-gradient::part(article) {
            background: #f7f7f7;
            --gradient-mid-color: #f7f7f7;
            --gradient-color: #f7f7f7;
            --msft-card-font-color: black;
        }
    }
    @media (prefers-color-scheme: dark) {
        .white-gradient::part(article) {
            background: #242424;
            --gradient-mid-color: #242424;
            --gradient-color: #242424;
            --msft-card-font-color: white;
        }
    }

    /** 
     * Below styles migrate ftom ArticleCardTemplate.ts
    **/
    msft-article span.title_1x_2y,
    msft-article span.title_2x_2y {
        font-size: 20px;
    }

    msft-article.long-gradient::part(gradient) {
        top: -55px;
    }

    msft-article-card[size="_1x_2y"] msft-article[class*="zoom-ratio"]:not(.no-image)::part(gradient):after {
        content: "";
        height: 10px;
        width: 100%;
        bottom: -5px;
        position: absolute;
        background: var(--gradient-mid-color);
    }

    msft-attribution {
        position: relative;
        overflow: hidden;
    }

    ${Tr.getArticleCardHoverGradientStyle()}

`.withBehaviors(new Ei.j(["nativeAdArticleData"],(e=>{if(!e||!e.nativeAdArticleData)return Ri.i``;const t=e.nativeAdArticleData;let a="";return(t.isAdSlugV4NonDr||t.isTransparentAdSlugWithBorderV2NonDr)&&(a+="msft-article.native-ad::part(heading) {\n                    --heading-max-lines: 2;\n                }"),t.layoutGap&&(a+=`msft-article-card[size="_1x_2y"] msft-article::part(gradient) {\n                    bottom: ${67+t.layoutGap}px;\n                }\n            \n                msft-article-card[size="_2x_2y"] msft-article::part(gradient) {\n                    bottom: 0px;\n                }`),t.useTitleFontSize&&(a+=`msft-article-card msft-article.native-ad {\n                    --msft-article-heading-font-size: ${t.useTitleFontSize}px;\n                    --msft-article-heading-line-height: 24px;\n                }\n            \n                msft-article-card msft-article.native-ad::part(attribution) {\n                    height: 28px;\n                }\n            \n                msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image)::part(heading) {\n                    margin-bottom: 11px;\n                }\n            \n                msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image)::part(gradient) {\n                    background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 46%, var(--gradient-color) 100%);\n                    top: 5px;\n                }`),t.alignFooters&&(a+=`msft-article-card msft-article::part(heading):after {\n                    top: calc(100% - ${t.fixedCardHeight?304:292+(t.layoutGap||12)}px - 8px) !important;\n                }\n        \n                msft-article::part(text) {\n                    margin-bottom: -8px;\n                }\n\n        \n                msft-article-card[size="_1x_2y"] msft-article:not(.no-image)::part(gradient) {\n                    top: -29px;\n                    bottom: calc(${t.fixedCardHeight?79:67+(t.layoutGap||12)}px + 8px);\n                }\n        \n                msft-article.no-image::part(actions) {\n                    bottom: calc(var(--msft-article-padding) * 1px - 8px);\n                }`),t.region===va.rightRail&&t.renderFlattenedDesign&&(a+="msft-article-card {\n                    box-shadow: none;\n                }"),"Bierstadt"===t.fontFamilyOnCardContent&&(a+='msft-article-card msft-article::part(heading) {\n                    font-family: Bierstadt, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --msft-article-heading-line-height: 24px;\n                    --heading-max-lines: 3;\n                }\n        \n                msft-article-card msft-article p[slot="abstract"] {\n                    font-family: Bierstadt, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --abstract-font-size: 15px;\n                }\n        \n                msft-article-card msft-article msft-attribution::part(content) {\n                    font-family: Bierstadt, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    font-size: calc(var(--type-ramp-minus-1-font-size) + 1px);\n                }'),"Grandview"===t.fontFamilyOnCardContent&&(a+='msft-article-card msft-article::part(heading) {\n                    font-family: Grandview, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --msft-article-heading-line-height: 24px;\n                    --heading-max-lines: 3;\n                }\n        \n                msft-article-card msft-article p[slot="abstract"] {\n                    font-family: Grandview, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                }\n        \n                msft-article-card msft-article msft-attribution::part(content) {\n                    font-family: Grandview, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                }'),"Seaford"===t.fontFamilyOnCardContent&&(a+='msft-article-card msft-article::part(heading) {\n                    font-family: Seaford, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --msft-article-heading-line-height: 24px;\n                    --heading-max-lines: 3;\n                }\n        \n                msft-article-card msft-article p[slot="abstract"] {\n                    font-family: Seaford, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --abstract-font-size: 15px;\n                }\n        \n                msft-article-card msft-article msft-attribution::part(content) {\n                    font-family: Seaford, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    font-size: calc(var(--type-ramp-minus-1-font-size) + 1px);\n                }'),"Tenorite"===t.fontFamilyOnCardContent&&(a+='msft-article-card msft-article::part(heading) {\n                    font-family: Tenorite, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --msft-article-heading-line-height: 24px;\n                    --heading-max-lines: 3;\n                }\n        \n                msft-article-card msft-article p[slot="abstract"] {\n                    font-family: Tenorite, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    --abstract-font-size: 16px;\n                }\n        \n                msft-article-card msft-article msft-attribution::part(content) {\n                    font-family: Tenorite, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;\n                    font-size: calc(var(--type-ramp-minus-1-font-size) + 2px);\n                }'),Ri.i`
                :host {
                    grid-area:${t.grid_area};
                }

                msft-article-card msft-article::part(heading):after {
                    top: calc(100% - ${t.fixedCardHeight?304:292+(t.layoutGap||12)}px);
                }

                msft-article-card[size="_1x_2y"] msft-article:not(.no-image)::part(gradient) {
                    bottom: ${t.fixedCardHeight?77:65+(t.layoutGap||12)}px;
                }
                ${a}
            `})));class $r extends xr{}const Ar=(0,pi.Z)((()=>{(0,gi.M)({name:"msn-native-ad-article-card",template:wr,styles:kr})($r)}));let Ir=class extends Fi.F{constructor(){super(...arguments),this.faviconText="",this.landingPage=""}};(0,i.gn)([(0,Li.Lj)({attribute:"favicon-text"})],Ir.prototype,"faviconText",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"landing-page"})],Ir.prototype,"landingPage",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"tel-metadata"})],Ir.prototype,"telemetryMetadata",void 0),Ir=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-favicon")],Ir);const Dr=Ri.i`

.native-ad-favicon-wrapper {
    width: 16px;
    height: 16px;
    background: #F2F2F2;
    border-radius: 4px;
    align-items: center;
    text-align: center;
    justify-content: center;
    display: flex;
}

.native-ad-favicon-text {
    color: #4D1C3A;
    font-size: 12px;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
`.withBehaviors(new _i.g("layoutStyle")),Mr=s.d`
    <div class="native-ad-favicon-wrapper">
        <a
            class="native-ad-favicon-text"
            href=${e=>e.landingPage}
            data-t="${e=>e.telemetryMetadata}"
        >
            ${e=>e.faviconText}
        </a>
    </div>
`;class Or extends Ir{}const Lr=(0,pi.Z)((()=>{(0,gi.M)({name:"msn-native-ad-favicon",template:Mr,styles:Dr,shadowOptions:{delegatesFocus:!0}})(Or)}));var Fr=a(91254);const Pr=Fr.DI.createInterface();var Rr=a(9791);const _r=(0,Rr.Z)(((e,t,a)=>Object.assign(Object.assign({},e),{config:t,strings:a})));let Er=class extends Fi.F{constructor(){super(...arguments),this.destinationUrl="",this.title="",this.telemetryMetadata=void 0}connectedCallback(){super.connectedCallback()}};(0,i.gn)([(0,Li.Lj)({attribute:"destination-url"})],Er.prototype,"destinationUrl",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"title"})],Er.prototype,"title",void 0),(0,i.gn)([Li.Lj],Er.prototype,"id",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"tel-metadata"})],Er.prototype,"telemetryMetadata",void 0),Er=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-title-mask")],Er);const Hr=Ri.i`
    .native-ad-title-mask a:after {
        bottom: 0;
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
    }
`.withBehaviors(new _i.g("layoutStyle")),Nr=s.d`
    <div 
        class="native-ad-title-mask" 
        title = ${e=>e.title}
    >
        <a 
            target = "_blank"
            href = ${e=>e.destinationUrl}
            class="heading"
            id="heading"
            data-t="${e=>e.telemetryMetadata}"
        >
        </a>
    </div>
`;let zr=class extends Er{};zr=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-title-mask",template:Nr,styles:Hr})],zr);let Ur=class extends Fi.F{constructor(){super(...arguments),this.src="",this.rlink="",this.id="",this.altText="",this.width="300px",this.height="225px",this.isHovered=!1,this.imageMaskOn="off",this.imageMaskOpacity="0.5",this.trimBottom=!1,this.objectFit="",this.useDropShadow=!1,this.useTransparentBackground=!1,this.imageMaskLeft="",this.imageMaskTop="",this.imageMaskWidth="",this.imageMaskHeight="",this.enableNativeAdHoverContrast=!1,this.patternMode="",this.darkThemeMediaQuery=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)"),this.isDarkMode=this.darkThemeMediaQuery.matches,this.themeModeSwitchHandler=()=>{this.isDarkMode=!this.isDarkMode}}disconnectedCallback(){this.patternMode&&this.darkThemeMediaQuery.removeEventListener("change",this.themeModeSwitchHandler)}connectedCallback(){super.connectedCallback(),this.patternMode&&this.darkThemeMediaQuery.addEventListener("change",this.themeModeSwitchHandler)}};(0,i.gn)([Li.Lj],Ur.prototype,"src",void 0),(0,i.gn)([Li.Lj],Ur.prototype,"rlink",void 0),(0,i.gn)([Li.Lj],Ur.prototype,"id",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"alt-text"})],Ur.prototype,"altText",void 0),(0,i.gn)([Li.Lj],Ur.prototype,"width",void 0),(0,i.gn)([Li.Lj],Ur.prototype,"height",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-hovered"})],Ur.prototype,"isHovered",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"image-mask-on"})],Ur.prototype,"imageMaskOn",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"image-mask-opacity"})],Ur.prototype,"imageMaskOpacity",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"trim-bottom"})],Ur.prototype,"trimBottom",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"object-fit"})],Ur.prototype,"objectFit",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"use-drop-shadow"})],Ur.prototype,"useDropShadow",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"use-transparent-background"})],Ur.prototype,"useTransparentBackground",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"image-mask-left"})],Ur.prototype,"imageMaskLeft",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"image-mask-top"})],Ur.prototype,"imageMaskTop",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"image-mask-width"})],Ur.prototype,"imageMaskWidth",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"image-mask-height"})],Ur.prototype,"imageMaskHeight",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"enable-native-ad-hover-contrast",mode:"boolean"})],Ur.prototype,"enableNativeAdHoverContrast",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"pattern-mode"})],Ur.prototype,"patternMode",void 0),(0,i.gn)([ct.LO],Ur.prototype,"isDarkMode",void 0),Ur=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-product-image")],Ur);var jr=a(40082),Br=a(62319),Wr=a(17525),Gr=a(64262),Vr=a(65503);const qr=Ri.i`
.native-ad-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.enable-hover-effect {
    filter: contrast(115%);
}

.native-ad-product-image-trim-bottom {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.off {
    display: none;
}

.drop-shadow {
    filter: drop-shadow(0px 4.8px 14.4px rgba(0, 0, 0, 0.18)) drop-shadow(0px 4px 18px rgba(0, 0, 0, 0.15));
}
`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["objectFit","isHovered","imageMaskLeft","imageMaskTop","imageMaskOpacity","useTransparentBackground","enableNativeAdHoverContrast"],(e=>{const t="undefined"===e.imageMaskOpacity||null==e.imageMaskOpacity?"0.5":e.imageMaskOpacity;let a="";if("on"===e.imageMaskOn&&e.isHovered&&!e.enableNativeAdHoverContrast){a=`\n                    :host::before {\n                        content: "";\n                        position: fixed;\n                        left: ${e.imageMaskLeft?`${e.imageMaskLeft}px`:0};\n                        top: ${e.imageMaskTop?`${e.imageMaskTop}px`:0};\n                        width: ${e.imageMaskWidth?`${e.imageMaskWidth}px`:"100%"};\n                        height: ${e.imageMaskHeight?`${e.imageMaskHeight}px`:"100%"};\n                        opacity: ${t};\n                        background: var(--ad-background-color);\n                        animation: fadeIn 0.1s linear;\n                        transition: opacity 0.1s linear;\n                        z-index: 1;\n                    }\n                `}"off"!==e.imageMaskOn&&e.isHovered||(a="\n                    :host::before {\n                        opacity: 0;\n                    }\n                ");let i="";return e.patternMode&&("patternMode1"===e.patternMode?i=`\n                        :host {\n                            background-image: url(${e.isDarkMode?Gr:Br});\n                            background-position: 0 0;\n                            background-size: 100% 100%;\n                        }\n                    `:"patternMode2"===e.patternMode&&(i=`\n                        :host {\n                            background-image: url(${e.isDarkMode?Vr:Wr});\n                            background-position: 0 0;\n                            background-size: 100% 100%;\n                        }\n                    `)),Ri.i`
                :host img {
                    background: ${e.useTransparentBackground?"unset":"#2E2E2E"};
                }

                ${a}

                ${i}
                
                .object-fit {
                    object-fit: ${e.objectFit};
                }

                @keyframes fadeIn {
                    from {
                        opacity: 0;
                    }
                    to {
                        opacity: ${t};
                    }
                }
            `})),(0,jr.vF)(Ri.i`
                :host::after {
                    background: buttonface;
                }
            `)),Zr=s.d`
    ${(0,V.g)((e=>!e.patternMode),s.d`
        <img
            src="${e=>e.src}"
            alt="${e=>e.altText}"
            class="object-fit ${e=>(e=>{const t=[];return e.useDropShadow&&t.push("drop-shadow"),e.isHovered&&e.enableNativeAdHoverContrast&&t.push("enable-hover-effect"),e.trimBottom?t.push("native-ad-product-image-trim-bottom"):t.push("native-ad-product-image"),t.join(" ")})(e)}"
            @load=${e=>e.visualReadinessCallback&&e.visualReadinessCallback()}
            @error=${(e,t)=>{e.visualReadinessCallback&&e.visualReadinessCallback(t.event)}}
        />
    `)}
`;let Jr=class extends Ur{};Jr=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-product-image",template:Zr,styles:qr,shadowOptions:{delegatesFocus:!0}})],Jr);let Qr=class extends Fi.F{constructor(){super(...arguments),this.color="",this.paddingTop="78",this.paddingBottom="53",this.isRadialMask="false",this.isFullGradient="false",this.height="",this.useDynamicStyle="",this.useShorterGradient=!1,this.background="",this.peSeasonalColorMode=""}connectedCallback(){super.connectedCallback()}};(0,i.gn)([Li.Lj],Qr.prototype,"color",void 0),(0,i.gn)([Li.Lj],Qr.prototype,"paddingTop",void 0),(0,i.gn)([Li.Lj],Qr.prototype,"paddingBottom",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"is-radial-mask"})],Qr.prototype,"isRadialMask",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"is-full-gradient"})],Qr.prototype,"isFullGradient",void 0),(0,i.gn)([Li.Lj],Qr.prototype,"height",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"use-dynamic-style"})],Qr.prototype,"useDynamicStyle",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"use-short-gradient",mode:"boolean"})],Qr.prototype,"useShorterGradient",void 0),(0,i.gn)([Li.Lj],Qr.prototype,"background",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"pe-seasonal-color-mode"})],Qr.prototype,"peSeasonalColorMode",void 0),Qr=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-gradient-mask")],Qr);const Xr=Ri.i`

.native-ad-mask {
    cursor: pointer;
    padding-bottom: 45px;
    padding-top: 78px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}

.use-short-gradient{
    cursor: pointer;
    padding-bottom: 45px;
    padding-top: 45px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 23%, var(--ad-background-color) 34%, var(--ad-background-color) 100%);
}

.padding-top-30 {
    padding-top: 30px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}

.padding-top-10 {
    padding-top: 10px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}

.padding-top-90 {
    padding-top: 90px;
    padding-bottom: 50px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 50%, var(--ad-background-color) 60%, var(--ad-background-color) 100%);
}

.padding-top-120 {
    padding-top: 120px;
    padding-bottom: 70px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 30%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}

.padding-top-100 {
    padding-top: 100px;
    padding-bottom: 70px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 30%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}


.padding-bottom-0 {
    padding-bottom: 0px;
    padding-top: 60px;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--gradient-mid-color) 40%, var(--ad-background-color) 50%, var(--ad-background-color) 100%);
}

.native-ad-radial-mask {
    background: radial-gradient(500px 150px ellipse at 50% 0%,var(--gradient-end-color) 0%, var(--gradient-end-color) 30%, var(--gradient-mid-color) 70%, var(--ad-background-color) 100%);
}

.native-ad-full-gradient {
    height: 100%;
    background: linear-gradient(var(--gradient-end-color) 0%, var(--ad-background-color) 100%);
}

@media (prefers-color-scheme: light) {
    .peSeasonalColorMode1 {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 23%, rgba(255, 255, 255, 0.8) 34%, #FFFFFF 100%);
    }

    .peSeasonalColorMode2 {
        background: linear-gradient(180deg, rgba(107, 193, 210, 0) 0%, rgba(177, 224, 233, 0.8) 23%, #B1E0E9 34%, #FFFFFF 70%, #EEDEBF 100%);
    }

    .peSeasonalColorMode3 {
        background: linear-gradient(180deg, rgba(255, 233, 176, 0) 0%, rgba(255, 233, 176, 0.8) 23%, #FFE9B0 34%, #FFE9B0 100%);
    }

    .peSeasonalColorMode4 {
        background: linear-gradient(180deg, rgba(206, 159, 166, 0) 0%, rgba(227, 202, 206, 0.8) 23%, #E3CACE 34%, #FFE9E8 100%);
    }
}


@media (prefers-color-scheme: dark) {
    .peSeasonalColorMode1 {
        background: linear-gradient(180deg, rgba(43, 43, 43, 0) 0%, rgba(43, 43, 43, 0.8) 23%, #2B2B2B 34%, #2B2B2B 100%)
    }

    .peSeasonalColorMode2 {
        background: linear-gradient(180deg, rgba(11, 35, 63, 0) 0%, rgba(11, 35, 63, 0.8) 23%, #0B233F 34%, #040D17 100%);
    }

    .peSeasonalColorMode3 {
        background: linear-gradient(180deg, rgba(58, 35, 0, 0) 0%, rgba(58, 35, 0, 0.8) 23%, #3A2300 34%, #1F1200 100%);
    }

    .peSeasonalColorMode4 {
        background: linear-gradient(180deg, rgba(56, 0, 31, 0) 0%, rgba(56, 0, 31, 0.8) 23%, #38001F 34%, #2F0007 100%);
    }
}
`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["height","paddingTop","paddingBottom","background"],(e=>{const t=(null==e?void 0:e.background)&&"undefined"!==(null==e?void 0:e.background)?e.background:"linear-gradient(var(--gradient-end-color) 0%, var(--ad-background-color) 100%)";return Ri.i`
                .native-ad-dynamic-style {
                    height: ${e.height}px;
                    padding-top: ${e.paddingTop}px;
                    padding-bottom: ${e.paddingBottom}px;
                    background: ${t};
                }

            `})),(0,jr.vF)(Ri.i`
            .native-ad-mask,
            .padding-top-30,
            .padding-top-10,
            .padding-top-90,
            .padding-top-120,
            .padding-top-100,
            .padding-bottom-0 {
                background: linear-gradient(transparent 0%, buttonface 50%, buttonface 100%);
            }

            .native-ad-dynamic-style {
                display: none;
            }
        `)),Yr=s.d`
<div class="
        native-ad-mask 
        ${e=>"true"===e.useDynamicStyle?"native-ad-dynamic-style":""} 
        ${e=>"undefined"!==e.paddingTop?`padding-top-${e.paddingTop}`:""} 
        ${e=>"undefined"!==e.paddingBottom?`padding-bottom-${e.paddingBottom}`:""} 
        ${e=>"true"===e.isRadialMask?"native-ad-radial-mask":""}
        ${e=>"true"===e.isFullGradient?"native-ad-full-gradient":""}
        ${e=>e.useShorterGradient?"use-short-gradient":""}
        ${e=>e.peSeasonalColorMode}
      ">
       <slot></slot> 
</div>
`;let Kr=class extends Qr{};Kr=(0,i.gn)([(0,gi.M)({name:"msn-native-gradient-mask",template:Yr,styles:Xr,shadowOptions:{delegatesFocus:!0}})],Kr);var eo=a(35772);let to=class extends Fi.F{constructor(){super(...arguments),this.title="",this.destinationUrl="",this.isHovered=!1,this.enableTitleClickableOnly=!1,this.isAnaheimDesign=!1,this.useSmallFontSize=!0,this.animationOn=!1,this.fontSize="",this.fontColor="black",this.customStyle="",this.customStyleHovered="",this.lineHeight="",this.fontWeight="",this.fontFamily="inherit",this.isFeedV2=!1,this.isRiverRegion=!1,this.telemetryMetadata=void 0}connectedCallback(){super.connectedCallback(),(0,eo.Q)(this.fontFamily)}};(0,i.gn)([Li.Lj],to.prototype,"title",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"destination-url"})],to.prototype,"destinationUrl",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-hovered"})],to.prototype,"isHovered",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"enable-title-clickable-only"})],to.prototype,"enableTitleClickableOnly",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-anaheim-design"})],to.prototype,"isAnaheimDesign",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"use-small-font-size"})],to.prototype,"useSmallFontSize",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"animation-on"})],to.prototype,"animationOn",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-size"})],to.prototype,"fontSize",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-color"})],to.prototype,"fontColor",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"custom-style"})],to.prototype,"customStyle",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"custom-style-hovered"})],to.prototype,"customStyleHovered",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"two-lines-title"})],to.prototype,"twoLinesTitle",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"one-line-title"})],to.prototype,"oneLineTitle",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"line-height"})],to.prototype,"lineHeight",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-weight"})],to.prototype,"fontWeight",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-family"})],to.prototype,"fontFamily",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-feed-v2"})],to.prototype,"isFeedV2",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-river-region"})],to.prototype,"isRiverRegion",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"tel-metadata"})],to.prototype,"telemetryMetadata",void 0),to=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-title")],to);const ao=Ri.i`
a {
    padding: 0 16px;
    font-size: 20px;
    font-weight: 600;
}

a:focus{
    outline: 0;
}

a::after {
    content: "";
    text-overflow: ellipsis;
    position: fixed;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 4;
}

.native-ad-title{
    color: var(--neutral-foreground-rest);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.is-river-region{
    margin-bottom: 2px;
}

.native-ad-title-hovered{
    color: var(--neutral-foreground-rest);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    text-decoration: underline;
    word-break: break-word;
}

.animation-on {
    transition: max-height .365s;
    -webkit-line-clamp: 3;
}

.two-lines-title{
    -webkit-line-clamp: 2; 
}

.one-line-title{
    -webkit-line-clamp: 1; 
}

.is-feed-v2 {
    color: #1A1A1A;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3; 
    -webkit-box-orient: vertical;
    text-decoration: none;
    word-break: break-word;
    line-height:24px;
}

@media (prefers-color-scheme: dark) {
    .is-feed-v2 {
        color: #FFFFFF;
    }
}

@media (forced-colors: active) {
    .native-ad-title,
    .native-ad-title-hovered {
        color: linktext;
        background: buttonface;
    }
}
`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["lineHeight","fontSize","fontWeight","fontFamily"],(e=>{const t=`\n                .ad-title {\n                    line-height: ${e.lineHeight}px;\n                    font-size: ${e.fontSize}px;\n                    font-weight: ${e.fontWeight};\n                    font-family: ${e.fontFamily};\n                }\n                a { font-size: ${e.fontSize}px; }\n            `;return Ri.i`${t}`}))),io=s.d`
    <a 
        class="${e=>(e=>{let t="ad-title";return e.isFeedV2?(t="is-feed-v2",t):(e.isHovered?t+=" native-ad-title-hovered":t+=" native-ad-title",e.animationOn&&(t+=" animation-on"),e.twoLinesTitle&&(t+=" two-lines-title"),e.oneLineTitle&&(t+=" one-line-title"),e.isRiverRegion&&(t+=" is-river-region"),t)})(e)}" 
        style="${e=>e.isHovered?e.customStyleHovered:e.customStyle}" 
        href=${e=>e.destinationUrl}
        target="_blank"
        data-t="${e=>e.telemetryMetadata}"
    >
        ${(0,V.g)((e=>!e.isAnaheimDesign),s.d`${e=>e.title}`)}
        ${(0,V.g)((e=>e.isAnaheimDesign&&e.fontSize),s.d`${e=>e.title}`)}
        ${(0,V.g)((e=>e.isAnaheimDesign&&!e.fontSize),s.d`
            ${(0,V.g)((e=>!e.useSmallFontSize),s.d`<span class="title${e=>e.cardSize}">${e=>e.title}</span>`)}
            ${(0,V.g)((e=>e.useSmallFontSize),s.d`${e=>e.title}`)}
        `)}
    </a>
`;let no=class extends to{};no=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-title",template:io,styles:ao})],no);const{ShortTitle:ro,CallToActionShortTitle:oo}=Yt;a(20899).O;const so=(e,t)=>t&&null!=t.adLabelType?t.adLabelType:e.isGreyAdsLabelEnabled?"greyLabel":e.adSlugGA?"defaultLabel":"greenLabel";let lo=class extends Fi.F{constructor(){super(...arguments),this.url="",this.providerName="",this.whiteProviderName="",this.isNewAdSlugV2=!1,this.isNewAdSlugV2NonDr=!1,this.fontFamily="inherit",this.adSlugGA=!1,this.hasEliteBadge=!1,this.adLabelTextOpacity="0.7",this.fontSize="",this.lineHeight="",this.isFeedV2=!1,this.isMsnHPAdSlug=!1,this.color="var(--neutral-foreground-rest)",this.fontWeight="normal",this.isSeasonal=!1,this.eliteBadgeTitle=""}connectedCallback(){var e;super.connectedCallback(),(0,eo.Q)(this.fontFamily),this.eliteBadgeTitle=null===(e=this.localizedStrings)||void 0===e?void 0:e.eliteBadgeTitle}};(0,i.gn)([Li.Lj],lo.prototype,"url",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"provider-name"})],lo.prototype,"providerName",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"white-provider-name"})],lo.prototype,"whiteProviderName",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-new-ad-slug-v2"})],lo.prototype,"isNewAdSlugV2",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-new-ad-slug-v2-non-dr"})],lo.prototype,"isNewAdSlugV2NonDr",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"custom-style-class"})],lo.prototype,"customStyleClass",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"tel-metadata"})],lo.prototype,"telemetryMetadata",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-family"})],lo.prototype,"fontFamily",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"ad-slug-ga"})],lo.prototype,"adSlugGA",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"has-elite-badge"})],lo.prototype,"hasEliteBadge",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"ad-label-text-opacity"})],lo.prototype,"adLabelTextOpacity",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-size"})],lo.prototype,"fontSize",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"line-height"})],lo.prototype,"lineHeight",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-feed-v2"})],lo.prototype,"isFeedV2",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-msn-hp-ad-slug"})],lo.prototype,"isMsnHPAdSlug",void 0),(0,i.gn)([Li.Lj],lo.prototype,"color",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"font-weight"})],lo.prototype,"fontWeight",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-seasonal"})],lo.prototype,"isSeasonal",void 0),(0,i.gn)([ct.LO],lo.prototype,"eliteBadgeTitle",void 0),(0,i.gn)([ct.LO],lo.prototype,"localizedStrings",void 0),lo=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-provider-name")],lo);const co=Ri.i`
.provider-name-with-elite-badge-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.provider-name-with-elite-badge-wrapper .elite-badge-icon {
    margin-inline-end: 4px;
    display: flex;
}

.white {
    color: white;
    text-decoration: inherit;
}

.white-12-flex-layout{
    color: var(--neutral-foreground-rest);
    width: 100%;
    font-size: 12px;
    text-overflow: ellipsis;
    height: 24px;
    line-height: 24px;
}

.with-opacity-70{
    opacity: 0.7;
}

.with-opacity-70-non-dr {
    color: unset;
    opacity: 1;
}

.font-tenorite {
    font-family: Tenorite, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;
    font-size: 14px;
    position: relative; 
    top: 2px;
}

`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["adLabelTextOpacity","lineHight","fontSize"],(e=>Ri.i`
            .provider-name-hyper-link, 
            .provider-name {
                display: inline-block;
                max-width: 100%;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                vertical-align: bottom;
                opacity: ${e.adLabelTextOpacity};
                font-size: ${e.fontSize}px;
                line-height: ${e.lineHeight}px;
                text-decoration: inherit;
                color: ${e.color&&"undefined"!==e.color?e.color:"var(--neutral-foreground-rest)"};
                font-weight: ${e.fontWeight&&"undefined"!==e.fontWeight?e.fontWeight:"normal"};
            }

            @media (forced-colors: active) {
                .provider-name-hyper-link, 
                .provider-name {
                    color: buttontext;
                    opacity: 1;
                    background: buttonface;
                }
            }

            .is-feed-v2 {
                color: #292929;
            }

            .is-seasonal-style {
                color: #000000;
            }

            .is-msn-hp-style {
                color: #2b2b2b;
            }

            @media (prefers-color-scheme: dark) {
                .is-feed-v2 {
                    color: #FFFFFF;
                }

                .is-seasonal-style {
                    color: #FFFFFF;
                }
            }
    `))),uo=s.d`
<a href="${e=>e.url}" target="_blank" title="${e=>e.eliteBadgeTitle}" class="elite-badge-icon">
    <svg xmlns="http://www.w3.org/2000/svg" width="13" height="12" viewBox="0 0 13 12" fill="none">
        <path d="M6.5 0C7.05078 0 7.58203 0.0703125 8.09375 0.210938C8.60547 0.351562 9.08203 0.554688 9.52344 0.820312C9.96484 1.08594 10.3691 1.39844 10.7363 1.75781C11.1035 2.11719 11.418 2.52148 11.6797 2.9707C11.9414 3.41992 12.1426 3.89844 12.2832 4.40625C12.4238 4.91406 12.4961 5.44531 12.5 6C12.5 6.55078 12.4297 7.08203 12.2891 7.59375C12.1484 8.10547 11.9453 8.58203 11.6797 9.02344C11.4141 9.46484 11.1016 9.86914 10.7422 10.2363C10.3828 10.6035 9.97852 10.918 9.5293 11.1797C9.08008 11.4414 8.60156 11.6426 8.09375 11.7832C7.58594 11.9238 7.05469 11.9961 6.5 12C5.94922 12 5.41797 11.9297 4.90625 11.7891C4.39453 11.6484 3.91797 11.4453 3.47656 11.1797C3.03516 10.9141 2.63086 10.6016 2.26367 10.2422C1.89648 9.88281 1.58203 9.47852 1.32031 9.0293C1.05859 8.58008 0.857422 8.10156 0.716797 7.59375C0.576172 7.08594 0.503906 6.55469 0.5 6C0.5 5.44922 0.570312 4.91797 0.710938 4.40625C0.851562 3.89453 1.05469 3.41797 1.32031 2.97656C1.58594 2.53516 1.89844 2.13086 2.25781 1.76367C2.61719 1.39648 3.02148 1.08203 3.4707 0.820312C3.91992 0.558594 4.39844 0.357422 4.90625 0.216797C5.41406 0.0761719 5.94531 0.00390625 6.5 0ZM5.81445 7.89258C5.90039 7.89258 5.98242 7.87695 6.06055 7.8457C6.13867 7.81445 6.20703 7.76758 6.26562 7.70508L8.7793 5.19141C8.83789 5.13281 8.88281 5.06445 8.91406 4.98633C8.94531 4.9082 8.96094 4.82812 8.96094 4.74609C8.96094 4.66016 8.94531 4.57812 8.91406 4.5C8.88281 4.42188 8.83789 4.35547 8.7793 4.30078C8.7207 4.24609 8.65234 4.20117 8.57422 4.16602C8.49609 4.13086 8.41406 4.11328 8.32812 4.11328C8.24609 4.11328 8.16602 4.12891 8.08789 4.16016C8.00977 4.19141 7.93945 4.23633 7.87695 4.29492L5.81445 6.35742L5.12305 5.66602C4.99805 5.54102 4.84766 5.47852 4.67188 5.47852C4.58594 5.47852 4.50391 5.49414 4.42578 5.52539C4.34766 5.55664 4.2793 5.60352 4.2207 5.66602C4.16211 5.72852 4.11719 5.79492 4.08594 5.86523C4.05469 5.93555 4.03711 6.01758 4.0332 6.11133C4.0332 6.19336 4.04883 6.27344 4.08008 6.35156C4.11133 6.42969 4.1582 6.5 4.2207 6.5625L5.36328 7.70508C5.42188 7.76367 5.49023 7.80859 5.56836 7.83984C5.64648 7.87109 5.72852 7.88867 5.81445 7.89258Z" fill="white"/>
    </svg>
</a>
`,po=s.d`
    <a
        href=\"${e=>e.url}\"
        class="${e=>"Tenorite"===e.fontFamily?"font-tenorite":""} ${e=>"true"===e.whiteProviderName?"white":`provider-name-hyper-link ${e.customStyleClass||""} ${e.isNewAdSlugV2&&!e.keepOpacity?"with-opacity-70":""} ${e.isNewAdSlugV2NonDr||!e.adSlugGA?"with-opacity-70-non-dr":""}`} ${e=>e.isFeedV2?"is-feed-v2":""} ${e=>e.isMsnHPAdSlug?"is-msn-hp-style":""} ${e=>e.isSeasonal?"is-seasonal-style":""}"
        target=\"_blank\"
        title=" ${e=>e.providerName}"
        data-t="${e=>e.telemetryMetadata}"
    >
        ${e=>e.providerName}
    </a>
`,go=s.d`
    ${(0,V.g)((e=>e.hasEliteBadge),s.d`
        <span class="provider-name-with-elite-badge-wrapper">
            ${uo}
            ${po}
        </span>
    `)}
    ${(0,V.g)((e=>!e.hasEliteBadge),po)}
`;let ho=class extends lo{};ho=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-provider-name",template:go,styles:co})],ho);let mo=class extends Fi.F{constructor(){super(...arguments),this.disclaimer="",this.disclaimerTooltip="Disclaimer",this.popupMargin=0,this.url="",this.isHovered=!1}updateDisclaimerHoverState(e){this.isHovered=e}connectedCallback(){super.connectedCallback()}};(0,i.gn)([(0,Li.Lj)({attribute:"disclaimer"})],mo.prototype,"disclaimer",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"disclaimer-tooltip"})],mo.prototype,"disclaimerTooltip",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"popup-margin"})],mo.prototype,"popupMargin",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"url"})],mo.prototype,"url",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"tel-metadata"})],mo.prototype,"telemetryMetadata",void 0),(0,i.gn)([ct.LO],mo.prototype,"isHovered",void 0),mo=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-disclaimer")],mo);const fo=Ri.i`
.native-ad-disclaimer-container{
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.native-ad-disclaimer-container svg{
    position: absolute;
    margin-inline: 9px;
    margin-top: 9px;
}

.disclaimer-popup-container {
    position: absolute;
    bottom: 100%;
    width: 32px;
    margin-inline: 9px;
}

.disclaimer-popup-container svg{
    margin-inline: 0px;
    margin-top: 0px;
}

.disclaimer-popup {
    position: relative;
    color: var(--fill-color);
    background: var(--neutral-foreground-rest);
    padding: 8px;
    font-size: 12px;
    width: 152px;
    max-width: 152px;
    max-height: 48px;
    bottom: 7px;
    border-radius: 2px;
    z-index: 1;
}

.disclaimer-popup-text {
    -webkit-line-clamp: 2;
    text-overflow:ellipsis;
    overflow:hidden;
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-align: center;
    font-size: 12px;
}

.disclaimer-popup-arrow {
    height: 15px;
    width: 15px;
    position: absolute;
    bottom: 0px;
}

.disclaimer-popup-arrow svg rect {
    fill: var(--neutral-foreground-rest);
}

.native-ad-disclaimer-container svg path {
    fill: var(--neutral-foreground-rest);
}

@media (forced-colors: active) {
    .disclaimer-popup {
        color: buttonface;
        background: buttontext;
    }

    .disclaimer-popup-arrow svg rect {
        fill: buttontext;
    }

    .native-ad-disclaimer-container svg path {
        fill: buttontext;
    }
    
}
`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["popupMargin"],(e=>{const t=(e.popupMargin?e.popupMargin-168-5:5)+"px";return Ri.i`
            .disclaimer-popup.disclaimer-popup-dynamic-style {
                margin-inline: ${t};
            }
        `}))),vo=s.d`
<svg width="15" height="15" viewBox="0 0 23 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect y="12" width="16" height="16" transform="rotate(-45 0 12)" fill="white"/>
</svg>
`,bo=s.d`
<svg width="15" height="15" viewBox="0 0 15 15" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M7.5 15C6.80729 15 6.14323 14.9115 5.50781 14.7344C4.8724 14.5573 4.27344 14.3073 3.71094 13.9844C3.14844 13.6615 2.64323 13.2708 2.19531 12.8125C1.7474 12.3542 1.35677 11.8464 1.02344 11.2891C0.690104 10.7318 0.4375 10.1354 0.265625 9.5C0.09375 8.86458 0.00520833 8.19792 0 7.5C0 6.80729 0.0885417 6.14323 0.265625 5.50781C0.442708 4.8724 0.692708 4.27344 1.01562 3.71094C1.33854 3.14844 1.72917 2.64323 2.1875 2.19531C2.64583 1.7474 3.15365 1.35677 3.71094 1.02344C4.26823 0.690104 4.86458 0.4375 5.5 0.265625C6.13542 0.09375 6.80208 0.00520833 7.5 0C8.19271 0 8.85677 0.0885417 9.49219 0.265625C10.1276 0.442708 10.7266 0.692708 11.2891 1.01562C11.8516 1.33854 12.3568 1.72917 12.8047 2.1875C13.2526 2.64583 13.6432 3.15365 13.9766 3.71094C14.3099 4.26823 14.5625 4.86458 14.7344 5.5C14.9062 6.13542 14.9948 6.80208 15 7.5C15 8.19271 14.9115 8.85677 14.7344 9.49219C14.5573 10.1276 14.3073 10.7266 13.9844 11.2891C13.6615 11.8516 13.2708 12.3568 12.8125 12.8047C12.3542 13.2526 11.8464 13.6432 11.2891 13.9766C10.7318 14.3099 10.1354 14.5625 9.5 14.7344C8.86458 14.9062 8.19792 14.9948 7.5 15ZM7.5 1C6.90104 1 6.32552 1.07812 5.77344 1.23438C5.22135 1.39062 4.70573 1.60938 4.22656 1.89062C3.7474 2.17188 3.30729 2.51042 2.90625 2.90625C2.50521 3.30208 2.16667 3.73958 1.89062 4.21875C1.61458 4.69792 1.39583 5.21615 1.23438 5.77344C1.07292 6.33073 0.994792 6.90625 1 7.5C1 8.09375 1.07812 8.66667 1.23438 9.21875C1.39062 9.77083 1.60938 10.2891 1.89062 10.7734C2.17188 11.2578 2.51042 11.6979 2.90625 12.0938C3.30208 12.4896 3.73958 12.8281 4.21875 13.1094C4.69792 13.3906 5.21615 13.6094 5.77344 13.7656C6.33073 13.9219 6.90625 14 7.5 14C8.09375 14 8.66667 13.9219 9.21875 13.7656C9.77083 13.6094 10.2891 13.3906 10.7734 13.1094C11.2578 12.8281 11.6979 12.4896 12.0938 12.0938C12.4896 11.6979 12.8281 11.2604 13.1094 10.7812C13.3906 10.3021 13.6094 9.78385 13.7656 9.22656C13.9219 8.66927 14 8.09375 14 7.5C14 6.90625 13.9219 6.33333 13.7656 5.78125C13.6094 5.22917 13.3906 4.71094 13.1094 4.22656C12.8281 3.74219 12.4896 3.30208 12.0938 2.90625C11.6979 2.51042 11.2604 2.17188 10.7812 1.89062C10.3021 1.60938 9.78385 1.39062 9.22656 1.23438C8.66927 1.07812 8.09375 1 7.5 1ZM7 6H8V11H7V6ZM7 4H8V5H7V4Z" fill="white"/>
</svg>
`,Co=s.d`
${(0,V.g)((e=>e.disclaimer),s.d`
    <a
        href=${e=>e.url}
        target="_blank"
        data-t="${e=>e.telemetryMetadata}"
    >
        <div 
            class="native-ad-disclaimer-container native-ad-disclaimer-container-dynamic-style"
        >
            ${(0,V.g)((e=>e.isHovered),s.d`
                <div class="disclaimer-popup-container">
                    <div class="disclaimer-popup disclaimer-popup-offset disclaimer-popup-dynamic-style">
                        <span class="disclaimer-popup-text">
                            ${e=>e.disclaimer}
                        </span>
                    </div>
                    <div class="disclaimer-popup-arrow">
                        ${vo}
                    </div>
                </div>
            `)}
            <div 
                title="${e=>e.disclaimerTooltip}"
                @mouseenter=${e=>e.updateDisclaimerHoverState(!0)}
                @mouseleave=${e=>e.updateDisclaimerHoverState(!1)}
            >
                ${bo}
            </div>
        </div>
    </a>
`)}
`;let yo=class extends mo{};yo=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-disclaimer",template:Co,styles:fo})],yo);const xo=e=>{const t=null==e?void 0:e.adChoiceIconUrl,a=(null==e?void 0:e.isAdFeedbackV1Enabled)&&(null==e?void 0:e.feedbackUrl);return t||a?t&&a?2:1:0},wo=e=>s.d`
    <msn-native-ad-disclaimer 
        ${(0,Mi.lq)(!0,!1)}
        disclaimer=${e=>e.assets&&e.assets.disclaimer}
        disclaimer-tooltip=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdDisclaimerText")}
        popup-margin=${e=>(e=>2===xo(e)?103:1===xo(e)?70:35)(e)}
        :layoutConfig=${t=>null==e?void 0:e.layout}
        url=${e=>e.destinationUrl}
        tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
		component-name="${null==e?void 0:e.name}"
    >
    </msn-native-ad-disclaimer>
`;var So=a(33764);let To=class extends Fi.F{constructor(){super(...arguments),this.adChoiceIconUrl="",this.nativeAdAdChoiceText="",this.telemetryMetadata="",this.isFeedV2=!1}connectedCallback(){super.connectedCallback();const{iconStyles:e}=this,t=[];e&&Object.keys(e).forEach((a=>{t.push((0,So._t)(a,e[a]))})),this.iconStyleStr=Ri.i`:host .native-ad-ad-choice {${t.length?t.join(";"):""}}`}};(0,i.gn)([(0,Li.Lj)({attribute:"ad-choice-icon-url"})],To.prototype,"adChoiceIconUrl",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"native-ad-ad-choice-text"})],To.prototype,"nativeAdAdChoiceText",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"tel-metadata"})],To.prototype,"telemetryMetadata",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean",attribute:"is-feed-v2"})],To.prototype,"isFeedV2",void 0),(0,i.gn)([ct.LO],To.prototype,"iconStyles",void 0),(0,i.gn)([ct.LO],To.prototype,"iconStyleStr",void 0),To=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-ad-choice")],To);const ko=Ri.i`
@media (forced-colors: active) {
    .native-ad-ad-choice {
        background: buttonface;
    }
}

.native-ad-ad-choice {
    width: 32px;
    height: 32px;
    display: inline-flex;
}
.native-ad-ad-choice svg {
    margin: auto;
}
`.withBehaviors(new _i.g("layoutStyle"),new _i.g("iconStyleStr")),$o=s.d`
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M1.3845 -1.21037e-07C2.22828 -1.94803e-07 2.819 0.40029 3.40971 0.719747C3.91584 0.959663 4.42266 1.27977 5.01337 1.51968C7.71388 2.87964 10.4144 4.31978 13.1142 5.75992C13.958 6.16021 15.0548 6.55986 15.6455 7.28025C15.814 7.52017 16.0678 7.84027 15.9832 8.24056C15.7301 9.12068 14.5487 9.44079 13.7895 9.84043C11.9328 10.8007 9.99215 11.8406 8.13543 12.8003C7.46013 13.2005 6.44787 13.9203 5.60409 13.3603C5.26644 13.2005 5.09795 13.0402 5.01337 12.8003C4.92879 12.4802 5.01337 12.0805 5.01337 11.7604L5.01337 9.20023C5.01337 8.48048 4.92879 7.92046 5.4356 7.60035C5.60409 7.52017 5.94173 7.44063 6.1948 7.52017C7.03858 7.84027 6.78552 9.28041 6.78552 10.4005L6.78552 11.2799C8.22001 10.5602 9.6545 9.83979 11.089 9.20022C11.5951 8.96031 12.4389 8.72039 12.6081 8.08019C12.7766 7.36044 11.1736 6.80042 10.6675 6.55986L4.84489 3.43966C4.42266 3.19974 3.32581 2.3998 2.6512 2.63972C2.39813 2.71991 2.22897 2.95982 2.22897 3.11955C2.14438 3.43966 2.14438 3.91949 2.14438 4.31978L2.14438 6.87996L2.14438 11.1997C2.14438 11.8399 2.0598 12.6399 2.31287 13.0395C2.90358 13.8395 4.25349 12.3993 4.67572 13.6797C4.76031 13.9998 4.59114 14.3199 4.42266 14.4797C4.08501 14.9601 2.56593 15.6799 1.97522 15.8403C1.80674 15.9198 1.3845 16 1.13144 16C-0.303057 15.7601 0.0345918 13.6002 0.0345916 11.9997L0.0345909 4.07986C0.0345908 2.87964 -0.133892 1.27977 0.372239 0.560019C0.625305 0.159727 0.878371 0.159728 1.3845 -1.21037e-07ZM5.77257 5.1999C7.03858 5.1999 7.12248 6.72023 5.94105 6.96015C5.26576 7.04034 4.75962 6.40013 4.92811 5.84011C5.09727 5.43982 5.35034 5.35963 5.77257 5.1999Z" fill="#00AECD"/>
</svg>
`,Ao=s.d`
<svg width="20" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
    <path d="M4.52344 5.69531C4.70573 5.69531 4.86198 5.63542 4.99219 5.51562C5.1224 5.39062 5.1875 5.24219 5.1875 5.07031C5.1875 4.89844 5.1224 4.7526 4.99219 4.63281C4.86198 4.50781 4.70573 4.44531 4.52344 4.44531C4.33594 4.44531 4.17708 4.50781 4.04688 4.63281C3.91667 4.7526 3.85156 4.89844 3.85156 5.07031C3.85156 5.24219 3.91667 5.39062 4.04688 5.51562C4.17708 5.63542 4.33594 5.69531 4.52344 5.69531ZM1.44531 0.921875V0.929688C1.33594 0.861979 1.21875 0.828125 1.09375 0.828125C0.90625 0.828125 0.747396 0.890625 0.617188 1.01562C0.486979 1.13542 0.421875 1.28125 0.421875 1.45312V11.375C0.421875 11.5469 0.486979 11.6953 0.617188 11.8203C0.747396 11.9401 0.90625 12 1.09375 12C1.19271 12 1.28906 11.9792 1.38281 11.9375H1.39062L1.40625 11.9219L3.20312 11.0625C3.48958 10.9635 3.63281 10.7708 3.63281 10.4844C3.63281 10.3073 3.56771 10.1589 3.4375 10.0391C3.30729 9.91406 3.15104 9.85156 2.96875 9.85156C2.85417 9.85156 2.74479 9.8776 2.64062 9.92969C2.63542 9.9401 2.61979 9.95052 2.59375 9.96094C2.51042 10.0026 2.42188 10.0234 2.32812 10.0234C2.17188 10.0234 2.03906 9.97396 1.92969 9.875C1.82031 9.77083 1.76302 9.64844 1.75781 9.50781V3.375C1.76302 3.22917 1.82031 3.10677 1.92969 3.00781C2.03906 2.90365 2.17188 2.85156 2.32812 2.85156C2.41667 2.85156 2.5 2.8724 2.57812 2.91406C2.58333 2.91406 2.58854 2.91667 2.59375 2.92188C2.59896 2.92188 2.60417 2.92448 2.60938 2.92969L8.53906 5.92188L8.64844 5.97656C8.8099 6.08594 8.89062 6.23177 8.89062 6.41406C8.89062 6.60677 8.80469 6.75521 8.63281 6.85938L8.5625 6.89844L5.1875 8.60938V6.67969C5.1875 6.5026 5.1224 6.35417 4.99219 6.23438C4.86198 6.11458 4.70573 6.05469 4.52344 6.05469C4.33594 6.05469 4.17708 6.11458 4.04688 6.23438C3.91667 6.35417 3.85156 6.5026 3.85156 6.67969V9.65625C3.85156 9.83333 3.91667 9.98177 4.04688 10.1016C4.17708 10.2214 4.33594 10.2812 4.52344 10.2812C4.65885 10.2812 4.78385 10.2448 4.89844 10.1719L11.125 7.00781C11.4271 6.90885 11.5781 6.71094 11.5781 6.41406C11.5781 6.14844 11.4453 5.95833 11.1797 5.84375L1.44531 0.921875ZM2.59375 9.96094C2.61979 9.95052 2.63542 9.9401 2.64062 9.92969L2.59375 9.96094ZM2.57812 2.91406C2.58333 2.91406 2.58854 2.91667 2.59375 2.92188C2.59896 2.92188 2.60417 2.92448 2.60938 2.92969L2.57812 2.91406Z" fill="#00aecd"/>
</svg>
`,Io=s.d`
${(0,V.g)((e=>e.adChoiceIconUrl),s.d`
    <a
        class="native-ad-ad-choice"
        href="${e=>e.adChoiceIconUrl}"
        target="_blank"
        title="${e=>e.nativeAdAdChoiceText}"
        data-t="${e=>e.telemetryMetadata}"
        aria-label="${e=>e.nativeAdAdChoiceText}"
    >
        ${(0,V.g)((e=>!e.isFeedV2),s.d`${Ao}`)}
        ${(0,V.g)((e=>e.isFeedV2),s.d`
            ${$o}
        `)}
    </a>
`)}
`;let Do=class extends To{};Do=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-ad-choice",template:Io,styles:ko})],Do);let Mo=class extends Fi.F{constructor(){super(...arguments),this.cardActionsTooltips=""}connectedCallback(){super.connectedCallback()}};(0,i.gn)([(0,Li.Lj)({attribute:"card-actions-tooltips"})],Mo.prototype,"cardActionsTooltips",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"data"})],Mo.prototype,"data",void 0),Mo=(0,i.gn)([(0,ba.uj)(u.EoX,"msn-native-ad-see-more")],Mo);const Oo=Ri.i`
    .card-button {
        border-radius: 100%;
    }

    .card-button:not(:hover) {
        background: transparent;
    }

    .card-see-more {
        align-items: center;
        background-color: rgb(255, 255, 255);
        border-radius: 100%;
        border: 1px solid rgb(229, 229, 229);
        cursor: pointer;
        display: flex;
        height: 32px;
        justify-content: center;
        outline: none;
        margin-right: 2px;
        width: 32px;
    }

    .card-see-more svg {
        fill: inherit;
    }
`.withBehaviors(new _i.g("layoutStyle"),new Ei.j(["data"],(e=>{let t="";return e.data&&(e.data.isInfopane||e.data.enableFilledIconOnHover&&(!e.data.enableFilledIconOnHover||e.data.optedOutOfReactions)||(t+="dynamic-styles {\n                        display: inline-flex;\n                    }")),Ri.i`${t}`})));var Lo=a(46943),Fo=a(51873),Po=a(40565),Ro=a(82479);a(20048).R;const _o=s.d`<button 
    class="card-see-more"
    title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.seeMore}
    @click=${(e,t)=>e.toggleCardActionMenu&&e.toggleCardActionMenu(e,t.event)}
    data-t="${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMore)||void 0===a?void 0:a.getMetadataTag()}}"
    >
        ${Ro.Z}
    </button>`,Eo=s.d`
    ${(0,Pt.rx)((e=>[e.data]),s.d`
        ${(0,V.g)((e=>e.isAdFeedbackV1Enabled&&!!e.feedbackUrl),s.d`
            ${(0,V.g)((e=>!e.isFeedV2),s.d`
                <msn-card-button
                    class="card-button dynamic-styles"
                    select-title=${e=>e.cardActionsTooltips&&e.cardActionsTooltips.seeMore}
                    unselect-icon=${e=>Po.Z}
                    filled-icon-path=${e=>Lo.Cp}
                    layout=${e=>(0,Fo.Q8)(e)}
                    @selected-state-changed=${(e,t)=>e.toggleCardActionMenu&&e.toggleCardActionMenu(e,t.event)}
                    select-telemetry-tag=${e=>{var t,a;return null===(a=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeMore)||void 0===a?void 0:a.getMetadataTag()}}
                >
                </msn-card-button>
            `)}
            ${(0,V.g)((e=>e.isFeedV2&&e.isHovered),s.d`${_o}`)}
        `)}
    `)}
`;let Ho=class extends Mo{};Ho=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-see-more",template:Eo,styles:Oo})],Ho);const No=e=>{var t;const a=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdTrendingTitleText)||"More than {0} people have viewed this product",i=(0,Ca.Z)(zo((0,Ca.Z)(e,"assets.viewed","")),"viewed","");return Di.Ld.Format(a,i)},zo=(0,ba.Et)(u.Evv,"parseViewedStringToJSON")((e=>{if(!e)return"";let t={};try{t=JSON.parse(e)}catch(e){return""}return t&&t.viewed&&t.comparisonDays?t:""})),Uo=e=>{var t,a;const i=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdSaleHighlightTitleText)||"SALE {0}% OFF";return Di.Ld.Format(i,null===(a=e.assets)||void 0===a?void 0:a.discount)},jo=e=>{var t,a;const i=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdSaleHighlightTitleText)||"SALE {0}% OFF",n=i.split("{0}%"),r=Di.Ld.Format(i,null===(a=e.assets)||void 0===a?void 0:a.discount),[o,s]=n,d=r.slice(o.length,r.length-s.length);return{prefix:o.trim(),suffix:s.trim(),highlightText:d.trim()}};class Bo{chain(e){this.nextBuilder=e}build(e,t){const a=this.doBuild(e,t);return this.nextBuilder?this.nextBuilder.build(e,a):a}}(0,i.gn)([(0,ba.Et)(u.iJb,"BaseBuilder.Chain")],Bo.prototype,"chain",null),(0,i.gn)([(0,ba.Et)(u.iJb,"BaseBuilder.Build")],Bo.prototype,"build",null);class Wo extends Bo{constructor(){super(),this.creatorMap=new Map}registerCreator(e,t){this.creatorMap.set(e,t)}doBuild(e,t){if(this.creatorMap.has(e.name)){return this.creatorMap.get(e.name)(e,t)}return t?s.d`${t}`:s.d`<div></div>`}}(0,i.gn)([(0,ba.Et)(u.iJb,"ComponentBuilder.RegisterCreator")],Wo.prototype,"registerCreator",null),(0,i.gn)([(0,ba.Et)(u.iJb,"ComponentBuilder.DoBuild")],Wo.prototype,"doBuild",null);class Go extends Bo{doBuild(e,t){if(Array.isArray(e.children)&&e.children.length>0){const t=e.children.map((e=>this.build(e,null))),a=Array(t.length+1).fill("");return a.raw=a,s.d`
                ${(0,Pt.rx)((t=>e.children),s.d`
                    ${e=>this.build(e,null)}
                `)}
            `,(0,s.d)(a,...t)}return null}}(0,i.gn)([(0,ba.Et)(u.iJb,"ChildrenBuilder.DoBuild")],Go.prototype,"doBuild",null);class Vo extends Fi.F{constructor(){super(...arguments),this._displayName="MsnBlockLayout"}connectedCallback(){super.connectedCallback()}}(0,i.gn)([ct.LO],Vo.prototype,"layoutConfig",void 0);const qo=s.d`
    <slot></slot>
`,Zo=Ri.i` 
    :host{
        display: block;
    }
`.withBehaviors(new _i.g("layoutStyle"));class Jo extends Fi.F{constructor(){super(...arguments),this._displayName="MsnFlexLayout"}connectedCallback(){super.connectedCallback()}}(0,i.gn)([ct.LO],Jo.prototype,"layoutConfig",void 0),(0,i.gn)([ct.LO],Jo.prototype,"layoutStyle",void 0);const Qo=s.d`
    <slot></slot>
`,Xo=Ri.i` 
    :host {
        display: flex;
    }
`.withBehaviors(new _i.g("layoutStyle"));class Yo extends Fi.F{constructor(){super(...arguments),this._displayName="MsnPixelLayout"}connectedCallback(){super.connectedCallback()}}(0,i.gn)([ct.LO],Yo.prototype,"layoutConfig",void 0);const Ko=s.d`
    <slot></slot>
`,es=Ri.i`
    :host {
        position: absolute;
    }
`.withBehaviors(new _i.g("layoutStyle")),ts=s.d`
    <slot></slot>
`,as=Ri.i``.withBehaviors(new _i.g("layoutStyle"));let is=class extends Yo{};is=(0,i.gn)([(0,gi.M)({name:"msn-pixel-layout",template:Ko,styles:es})],is);let ns=class extends Jo{};ns=(0,i.gn)([(0,gi.M)({name:"msn-flex-layout",template:Qo,styles:Xo})],ns);let rs=class extends Vo{};rs=(0,i.gn)([(0,gi.M)({name:"msn-block-layout",template:qo,styles:Zo})],rs);let os=class extends Fi.F{};os=(0,i.gn)([(0,gi.M)({name:"msn-uber-layout",template:ts,styles:as})],os);class ss extends Bo{doBuild(e,t){if(!e.layout)return t;const a=e.layout;if(!a.mode)return t;switch(a.mode){case"pixel":return function(e,t){return s.d`
        <msn-pixel-layout 
            :layoutConfig=${t=>e}
        >
            ${t}
        </msn-pixel-layout>
    `}(a,t);case"flex":return function(e,t){return s.d`
        <msn-flex-layout 
            :layoutConfig=${t=>e}
        >
            ${t}
        </msn-flex-layout>
    `}(a,t);case"block":return function(e,t){return s.d`
        <msn-block-layout
            :layoutConfig=${()=>e}
        >
            ${t}
        </msn-block-layout>
    `}(a,t);default:return t}}}(0,i.gn)([(0,ba.Et)(u.iJb,"LayoutBuilder.DoBuild")],ss.prototype,"doBuild",null);const ds=Ri.i`
    :host {
        display: block;
        height: 100%;
        width: 100%;
    }
`,ls=s.d`
    <template id="native-ad-telemetry">
        <slot></slot>
    </template>
`;let cs=class extends gi.H{constructor(){super(...arguments),this.clickedBeacon=!1,this.clickedTelemetry=!1,this.clickedUserAction=!1,this.telemetryMetadata=""}};(0,i.gn)([(0,Li.Lj)({mode:"boolean"})],cs.prototype,"clickedBeacon",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean"})],cs.prototype,"clickedTelemetry",void 0),(0,i.gn)([(0,Li.Lj)({mode:"boolean"})],cs.prototype,"clickedUserAction",void 0),(0,i.gn)([Li.Lj],cs.prototype,"telemetryMetadata",void 0),cs=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-telemetry",template:ls,styles:ds})],cs);var us=a(36159),ps={impressionLog:(e,t,a)=>{var i,n,r,o,s,d;const l=null===(d=null===(s=null===(o=null===(r=null===(n=null===(i=null==t?void 0:t.parent)||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.querySelector("msn-native-ad-title"))||void 0===r?void 0:r.shadowRoot)||void 0===o?void 0:o.querySelector(".native-ad-title-wrapper"))||void 0===s?void 0:s.children)||void 0===d?void 0:d[0],c=null==l?void 0:l.scrollHeight,u=null==l?void 0:l.clientHeight;c&&u&&(0,Ji._)(e.id,"nativeAdCardImpression",`${c},${u}`,0,a)},clickLog:(e,t,a)=>{var i,n,r,o,s,d;const l=null===(d=null===(s=null===(o=null===(r=null===(n=null===(i=null==t?void 0:t.parent)||void 0===i?void 0:i.shadowRoot)||void 0===n?void 0:n.querySelector("msn-native-ad-title"))||void 0===r?void 0:r.shadowRoot)||void 0===o?void 0:o.querySelector(".native-ad-title-wrapper"))||void 0===s?void 0:s.children)||void 0===d?void 0:d[0],c=null==l?void 0:l.scrollHeight,u=null==l?void 0:l.clientHeight;c&&u&&(0,Ji._)(e.id,"nativeAdCardClick",`${c},${u}`,0,null==a?void 0:a.target)}};var gs,hs={PrgTitle2:ps,PrgTitle2C:ps};!function(e){e[e.adChoice=0]="adChoice",e[e.destination=1]="destination",e[e.nativeAdCard=2]="nativeAdCard"}(gs||(gs={}));class ms extends Bo{doBuild(e,t){if(e.userActionLogger){const{impressionLog:t,clickLog:a}=hs[e.userActionLogger]||{};!us.Km.clickLog&&a&&(us.Km.clickLog=a),!us.Km.impressionLog&&t&&(us.Km.impressionLog=t)}if(!e.telemetry)return t;const a=e.telemetry,i=!!a.metadata;return s.d`
            <msn-native-ad-telemetry
                data-t="${e=>i?((e,t)=>{if(e&&e.adTelemetryContext&&t in gs)return e.adTelemetryContext[t].getMetadataTag()})(e,a.metadata):""}"
                ${(0,Mi.lq)(!!a.clickedBeacon||!!a.clickedTelemetry||!!a.clickedUserAction,!!a.viewedBeacon,!!a.customEvent)}
                clickedBeacon=${!!a.clickedBeacon}
                clickedUserAction=${!!a.clickedUserAction}
                clickedTelemetry=${!!a.clickedTelemetry}
                telemetryMetadata=${a.metadata}
            >
                ${t}
            </msn-native-ad-telemetry>`}}(0,i.gn)([(0,ba.Et)(u.iJb,"TelemetryBuilder.doBuild")],ms.prototype,"doBuild",null);const fs=new class{constructor(){this.create=(0,Rr.Z)(this.createInternal),this.layoutBuilder=new ss,this.telemetryBuilder=new ms,this.telemetryBuilder.chain(this.layoutBuilder),this.componentBuilder=new Wo,this.componentBuilder.chain(this.telemetryBuilder),this.rootBuilder=new Go,this.rootBuilder.chain(this.componentBuilder)}registerCreator(e,t){this.componentBuilder.registerCreator(e,t)}createInternal(e){return this.rootBuilder.build(e,null)}};fs.registerCreator("ad-title-mask",(e=>s.d`
    <msn-native-ad-title-mask
        :layoutConfig=${t=>null==e?void 0:e.layout}
        id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-mask"
        destination-url=${e=>e.destinationUrl}
        title=${e=>e.title}
        tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
        ${(0,Mi.lq)(!0,!1)}
		component-name="${null==e?void 0:e.name}"
    >
    </msn-native-ad-title-mask>
`)),fs.registerCreator("product-image",(e=>s.d`
    ${(0,V.g)((e=>e.imageData),s.d`
        <msn-native-ad-product-image 
            :layoutConfig=${()=>null==e?void 0:e.layout}
            src=${t=>((e,t)=>{var a,i;return e&&(null===(i=null===(a=t.assets)||void 0===a?void 0:a.transparentImage)||void 0===i?void 0:i.url)?t.assets.transparentImage.url:t.imageData&&t.imageData.source})(null==e?void 0:e.useTransparentImage,t)}
            alt-text=${e=>e.imageData&&e.imageData.altText}
            is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
            image-mask-on=${()=>(null==e?void 0:e.imageMaskOn)?"on":"off"}
            image-mask-opacity=${()=>null==e?void 0:e.imageMaskOpacity}
            trim-bottom=${()=>null==e?void 0:e.trimBottom}
            object-fit=${()=>(null==e?void 0:e.useTransparentImage)?"contain":"cover"}
            use-drop-shadow=${()=>(null==e?void 0:e.useTransparentImage)&&!(null==e?void 0:e.noDropShadow)}
            use-transparent-background=${()=>null==e?void 0:e.useTransparentImage}
            image-mask-left=${()=>null==e?void 0:e.imageMaskLeft}
            image-mask-top=${()=>null==e?void 0:e.imageMaskTop}
            image-mask-width=${()=>null==e?void 0:e.imageMaskWidth}
            image-mask-height=${()=>null==e?void 0:e.imageMaskHeight}
            id="${e=>e.id}-product-image"
            rlink=${e=>e.destionationUrl}
			component-name=${null==e?void 0:e.name}
            :visualReadinessCallback=${e=>e.visualReadinessCallback}
            enable-native-ad-hover-contrast=${e=>e.enableNativeAdHoverContrast}
            pattern-mode=${()=>null==e?void 0:e.patternMode}
        >
        </msn-native-ad-product-image>
    `)}
`)),fs.registerCreator("gradient-mask",((e,t)=>s.d`
    ${(0,V.g)((e=>e.destinationUrl),s.d`
        <msn-native-gradient-mask
            :layoutConfig=${t=>null==e?void 0:e.layout}
            paddingTop=${e&&e.paddingTop}
            paddingBottom=${e&&e.paddingBottom}
            is-radial-mask=${e&&e.isRadialMask}
            is-full-gradient=${e&&e.isFullGradient}
            use-dynamic-style=${e&&e.useDynamicStyle}
            height=${e&&e.height}
            background="${e&&e.background}"
            @click=${e=>e.destinationUrl&&window.open(e.destinationUrl)}
            ${e&&e.setClickBeacon?(0,Mi.lq)(!0,!1):""}
			component-name="${null==e?void 0:e.name}"
            use-short-gradient=${e=>e.useShorterGradient}
            pe-seasonal-color-mode=${e&&e.peSeasonalColorMode}
        >
            ${(0,V.g)((()=>t),t)}
        </msn-native-gradient-mask>
    `)}
`)),fs.registerCreator("ad-title",(e=>s.d`
    <msn-native-ad-title
        :layoutConfig=${t=>null==e?void 0:e.layout}
        is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
        id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-ad-title"
        title=${e=>(e=>{var t,a,i;return((null===(t=e.template)||void 0===t?void 0:t.templateType)===ro||(null===(a=e.template)||void 0===a?void 0:a.templateType)===oo)&&(null===(i=e.assets)||void 0===i?void 0:i.shortTitle)||e.title})(e)}
        destination-url=${e=>e.destinationUrl}
        custom-style=${e&&e.customStyle}
        custom-style-hovered=${null==e?void 0:e.customStyleHovered}
        animation-on=${e=>e.template&&e.template.templateType===Yt.ContentReveal}
        line-height=${t=>((e,t)=>e&&("infopane"===e.region||"resinfopane"===e.region)&&e.items&&e.items.length>1?28:t&&t.lineHeight)(t,e)}
        font-weight=${t=>((e,t)=>e&&("infopane"===e.region||"resinfopane"===e.region)&&e.items&&e.items.length>1?400:t&&t.fontWeight)(t,e)}
        two-lines-title=${t=>{var a;return(null==e?void 0:e.twoLine)||t.hasAnyInlineDecoration&&!(null==e?void 0:e.oneLineTitle)||(null===(a=t.template)||void 0===a?void 0:a.templateType)===Yt.TitleMaxLine2||t.adSlugGA}}
        one-line-title=${t=>null==e?void 0:e.oneLineTitle}
        font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
        font-size=${t=>((e,t)=>e&&("infopane"===e.region||"resinfopane"===e.region)&&e.items&&e.items.length>1?20:t&&t.titleFontSize)(t,e)||t.feedFontSize}
        is-anaheim-design=${e=>e.isAnaheimDesign}
        is-river-region=${e=>"river"===e.region||"resriver"===e.region||"rightRail"===e.region||"rightrail"===e.region}
        tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
        ${(0,Mi.lq)(!0,!1)}
        ${(null==e?void 0:e.isFeedV2)?"is-feed-v2":""}
		component-name="${null==e?void 0:e.name}"
    >
    </msn-native-ad-title>
`)),fs.registerCreator("ad-label",(e=>{var t;return s.d`
    ${(0,V.g)((e=>e.privacyUrl),s.d`
        <msn-native-ad-ad-label 
            :layoutConfig=${t=>null==e?void 0:e.layout}
            privacy-url="${e=>e.privacyUrl}"
            ad-label-text-opacity="${null!==(t=null==e?void 0:e.adLabelTextOpacity)&&void 0!==t?t:"0.7"}"
            ad-label-text="${e=>e.adLabelText}"
            type="${t=>so(t,e)}"
            native-ad-ad-label-text="${e=>e.strings&&e.strings.nativeAdAdLabelText}"
            tel-metadata="${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.adLabel)||void 0===a?void 0:a.getMetadataTag()}}"
            id="${e=>e.id}-ad-label"
            ${(null==e?void 0:e.isFeedV2)?"is-feed-v2":""}
            ${(null==e?void 0:e.isSeasonal)?"is-seasonal":""}
			component-name="${null==e?void 0:e.name}"
        >
        </msn-native-ad-ad-label>
    `)}
`})),fs.registerCreator("provider-name",(e=>{var t;return s.d`
<msn-native-ad-provider-name
    ${(0,Mi.lq)(!0,!1)}
    id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-ad-provider-name"
    url=${e=>e.destinationUrl}
    provider-name=${e=>e.providerData&&e.providerData.name}
    custom-style-class=${e&&e.customStyleClass}
    ad-slug-ga=${e=>e.adSlugGA}
    tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
    font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
    has-elite-badge=${e=>{var t;return!!(null===(t=e.assets)||void 0===t?void 0:t.eliteBadge)}}
    ad-label-text-opacity="${null!==(t=null==e?void 0:e.adLabelTextOpacity)&&void 0!==t?t:"0.7"}"
    ${(null==e?void 0:e.isFeedV2)?"is-feed-v2":""}
    font-size=${null==e?void 0:e.fontSize}
    line-height=${null==e?void 0:e.lineHeight}
    :layoutConfig=${t=>null==e?void 0:e.layout}
    :localizedStrings=${e=>e.localizedStrings}
    color="${null==e?void 0:e.color}"
    font-weight="${null==e?void 0:e.fontWeight}"
	component-name="${null==e?void 0:e.name}"
    ${(null==e?void 0:e.isSeasonal)?"is-seasonal":""}
>
</msn-native-ad-provider-name>
`})),fs.registerCreator("disclaimer",wo),fs.registerCreator("ad-choice",(e=>s.d`
    <msn-native-ad-ad-choice 
        :layoutConfig=${t=>null==e?void 0:e.layout}
        id="${e=>e.id}${e=>null==e.index?"":`_${e.index}`}-ad-choice"
        ad-choice-icon-url=${e=>e.adChoiceIconUrl}
        native-ad-ad-choice-text=${e=>e.strings&&e.strings.nativeAdAdChoiceText}
        ${e.isFeedV2?"is-feed-v2":""}
        tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.adChoice)||void 0===a?void 0:a.getMetadataTag()}}
		:iconStyles=${()=>e.iconStyles}
		component-name="${null==e?void 0:e.name}"
        id="${e=>e.id}-ad-choice"
    >
    </msn-native-ad-ad-choice>
`)),fs.registerCreator("see-more",(e=>s.d`
    <msn-native-ad-see-more
        :layoutConfig=${t=>null==e?void 0:e.layout}
        :data=${t=>Object.assign(Object.assign({},t),{isFeedV2:e&&e.isFeedV2,isHovered:t.hoverState&&t.hoverState.isHovered})}
        data-t="${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.seeMore)||void 0===a?void 0:a.getMetadataTag()}}"
		component-name="${null==e?void 0:e.name}"
    >
    </msn-native-ad-see-more>
`)),fs.registerCreator("like-button",(e=>s.d`
    <msn-native-ad-like-button
        :layoutConfig=${t=>null==e?void 0:e.layout}
        native-ad-like-text=${e=>e.strings&&e.strings.nativeAdLikeText}
        native-ad-unlike-text=${e=>e.strings&&e.strings.nativeAdUnLikeText}
        beaconsJson=${e=>e.beaconsJson}
		component-name="${null==e?void 0:e.name}"
    >
    </msn-native-ad-like-button>
`)),fs.registerCreator("call-to-action",(e=>s.d`
    <msn-native-ad-call-to-action 
        text="${e=>(e=>e.template&&e.strings?"prg-ad-cta"===e.template.configType?e.strings.nativeAdBuyNowText:e.strings.nativeAdLearnMoreText:"")(e)}"
        default-background-color="${e&&e.backgroundColor}"
        background-color="${e=>(e=>e.template&&e.layoutColor?"prg-ad-cta"===e.template.configType||"prg-ad-cta-lm"===e.template.configType?"":e.layoutColor:"")(e)}"
        color="${e&&e.color}"
        is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
        cta-mode=${e&&e.ctaMode||"default"}
        destination-url=${e=>e.destinationUrl}
        tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
        ${e&&"arrow"===e.ctaMode&&(0,Mi.lq)(!0,!1)}
		component-name="${null==e?void 0:e.name}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    >
    
    </msn-native-ad-call-to-action>
    `)),fs.registerCreator("trending",(e=>s.d`
    <msn-native-ad-trending
        :layoutConfig=${t=>null==e?void 0:e.layout}
        destination-url="${e=>e.destinationUrl}" 
        title="${e=>e.title}"
        trending-title-text=${No}
        trending-text="${e=>(0,Ca.Z)(e,"localizedStrings.nativeAdTrendingText","Trending")}"
        is-hovered=${e=>e.hoverState&&e.hoverState.isHovered}
        tel-metadata=${e=>{var t,a;return null===(a=null===(t=null==e?void 0:e.adTelemetryContext)||void 0===t?void 0:t.destination)||void 0===a?void 0:a.getMetadataTag()}}
        ${(0,Mi.lq)(!0,!1)}
		component-name="${null==e?void 0:e.name}"
    >
    </msn-native-ad-trending>
`)),fs.registerCreator("color-mask",(e=>s.d`
<msn-native-ad-color-mask
    opacity=${e&&e.opacity}
    color=${t=>e.feedV2?t.dynamicBackground:t.layoutColor}
    is-show=${t=>e&&e.alwaysPresent||t.hoverState&&t.hoverState.isHovered}
    ${(null==e?void 0:e.feedV2)?"feed-v2":""}
	component-name="${null==e?void 0:e.name}"
    :layoutConfig=${t=>null==e?void 0:e.layout}
>
</msn-native-ad-color-mask>
`)),fs.registerCreator("sale-highlight-badge",(e=>s.d`
    <msn-native-ad-sale-highlight-badge
        :layoutConfig=${t=>null==e?void 0:e.layout}
		component-name="${null==e?void 0:e.name}"
        discount-text="${e=>{var t,a;const i=(null===(t=e.localizedStrings)||void 0===t?void 0:t.nativeAdOnSaleTextCapital)||"{0}% OFF";return Di.Ld.Format(i,null===(a=e.assets)||void 0===a?void 0:a.discount)}}"
    >
    </msn-native-ad-sale-highlight-badge>
`)),fs.registerCreator("sale-highlight-title",(e=>s.d`
    <msn-native-ad-text
        font-size="60px"
        letter-spacing="-0.015em"
        line-height="100.5%"
        font-family="Segoe UI"
        font-weight="200"
        text="${Uo}"
		component-name="${null==e?void 0:e.name}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    />
`)),fs.registerCreator("sale-highlight-horizontal-title",(e=>s.d`
    <msn-native-ad-text
        font-size="18px"
        letter-spacing="0.5em"
        line-height="100.5%"
        font-family="Segoe UI"
        font-weight="600"
        has-highlight-text="true"
        highlight-text="${e=>jo(e).highlightText}"
        highlight-text-prefix="${e=>jo(e).prefix}"
        highlight-text-suffix="${e=>jo(e).suffix}"
        highlight-text-style="font-size: 48px; letter-spacing: 0.05em; margin-inline-start: 9px; margin-inline-end: 14px;"
		component-name="${null==e?void 0:e.name}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    />
`)),fs.registerCreator("div-wrapper",((e,t)=>s.d`
    <msn-native-ad-div-wrapper
        marginLeft=${e&&e.marginLeft}
        marginRight=${e&&e.marginRight}
        marginTop=${e&&e.marginTop}
        marginBottom=${e&&e.marginBottom}
        width=${e&&e.width}
        marginInline=${e&&e.marginInline}
        ${e&&e.setClickBeacon?(0,Mi.lq)(!0,!1):""}
		component-name="${null==e?void 0:e.name}"
    >
        ${t}
    </msn-native-ad-div-wrapper>
`)),fs.registerCreator("free-shipping",(e=>s.d`
    <decoration-free-shipping-button
        font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
        color=${e.color}
        icon=${e.icon}
        data=${e=>(0,Ca.Z)(e.localizedStrings,"nativeAdFreeShippingText")}
		component-name="${null==e?void 0:e.name}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    >
    </decoration-free-shipping-button>
`)),fs.registerCreator("rating",(e=>s.d`
    <decoration-rating
        color=${e.color}
        elementStyle=${()=>e.elementStyle}
        elementSize=${e.elementSize}
        rating=${e=>e.assets&&e.assets.rating}
        review-data=${e=>e.assets.review}
        is-show-review=${e.displayReviewCount}
        font-family=${t=>((e,t)=>t?t.includes(" ")?`"${t}"`:t:e.fontFamilyOnCardContent||"inherit")(t,null==e?void 0:e.fontFamily)}
		component-name="${null==e?void 0:e.name}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    >
    </decoration-rating>
`)),fs.registerCreator("special-offer",(e=>s.d`
    <msn-native-ad-special-offer
        :localizedStrings=${e=>e.localizedStrings}
        displayed-text="${e=>e.assets.specialOffer.displayedText}"
        promotional-text="${e=>e.assets.specialOffer.promotionalText}"
        redemption-code="${e=>e.assets.specialOffer.redemptionCode}"
        days-from-expiration="${e=>e.assets.specialOffer.daysFromExpiration}"
        destination-url="${e=>e.assets.specialOffer.destinationURL}"
        margin-left="-6"
        is-dr-config=${e&&e.isDrConfig}
        ${(0,Mi.lq)(!0,!1)}
		component-name="${null==e?void 0:e.name}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    >
    </msn-native-ad-special-offer>
`)),fs.registerCreator("ad-full-card-gradient",((e,t)=>s.d`
    <msn-native-ad-full-card-gradient 
        pattern-mode="${null==e?void 0:e.patternMode}"
        :layoutConfig=${t=>null==e?void 0:e.layout}
    >
        ${(0,V.g)((()=>t),t)}
    </msn-native-ad-full-card-gradient>
`));var vs=a(18335),bs=a(63045);const Cs=Fr.DI.getOrCreateDOMContainer(),ys=window.matchMedia("(prefers-color-scheme: dark)");let xs,ws;function Ss(){Cs.register(Fr.YM.instance(Pr,Object.assign(Object.assign({},this.strings),xs))),this.adBackgroundColor=(null==ys?void 0:ys.matches)?"#2E2E2E":"#FFFFFF",null==ys||ys.addEventListener("change",this.themeModeSwitchHandler)}class Ts extends gi.H{constructor(){super(),this.adBackgroundColor="",this.hoverState={isHovered:!1,isDecorationLinesExpanded:!1},(0,ct.LO)(this.hoverState,"isHovered"),(0,ct.LO)(this.hoverState,"isDecorationLinesExpanded")}get componentFactory(){return fs}themeModeSwitchHandler(){this.adBackgroundColor=(null==ys?void 0:ys.matches)?"#2E2E2E":"#FFFFFF"}connectedCallback(){var e,t;if(this.configRef&&!xs){const a=null===(e=vs.U.getInstance())||void 0===e?void 0:e.getConfigResolver(),i=null===(t=null==a?void 0:a.tryGetConfigSync)||void 0===t?void 0:t.call(a,this.configRef);I.jG.ConfigOrigins.feature===bs.w.Local&&vs.U.getConfig(this.configRef).then((e=>{ws=null==e?void 0:e.properties,xs=null==ws?void 0:ws.localizedStrings})),ws=null==i?void 0:i.properties,xs=null==ws?void 0:ws.localizedStrings}super.connectedCallback(),Ss.call(this)}get wcData(){if(this.adData&&this.adData.adLabelText){const e=Object.assign(Object.assign({},this.config),ws),t=Object.assign(Object.assign(Object.assign({},this.localizedStrings),this.strings),xs);return _r(this.adData,e,t)}return null}disconnectedCallback(){null==ys||ys.removeEventListener("change",this.themeModeSwitchHandler)}}(0,i.gn)([ct.LO],Ts.prototype,"adData",void 0),(0,i.gn)([ct.LO],Ts.prototype,"isInfopane",void 0),(0,i.gn)([ct.LO],Ts.prototype,"adBackgroundColor",void 0),(0,i.gn)([ct.LO],Ts.prototype,"localizedStrings",void 0),(0,i.gn)([ct.LO],Ts.prototype,"configRef",void 0);const ks={name:"default-infopane-template",children:[{name:"product-image",layout:{position:"absolute",left:"0",top:"0",zIndex:1,width:"100%",height:"304"},imageMaskOn:!0,imageMaskOpacity:"0.1"},{name:"gradient-mask",height:"176",paddingBottom:"0",paddingTop:"0",layout:{position:"absolute",bottom:"0",width:"100%",zIndex:2},useDynamicStyle:!0},{name:"ad-title",lineHeight:"36",titleFontSize:"28",layout:{position:"absolute",bottom:"53",width:"100%",zIndex:2}},ua]},$s=e=>{var t;return(null===(t=null==e?void 0:e.template)||void 0===t?void 0:t.dynamicRenderingConfig)||ga},As=(e,t)=>{const a=parseInt((null!=t?t:"#2E2E2E").slice(1),16);return`rgba(${a>>16&255},${a>>8&255},${255&a},${e})`},Is=(0,Rr.Z)((e=>As(.8,e))),Ds=(0,Rr.Z)((e=>As(0,e))),Ms=e=>$s(e.wcData).cardStyles||{};var Os;!function(e){e.defaultRiverGradient="#2E2E2E",e.defaultRiverBackground="#FFFFFF",e.defaultInfopaneGradient="#000000",e.defaultInfopaneBackground="#FFFFFF",e.zIndexV2OriginalBackground="transparent"}(Os||(Os={}));const Ls=e=>{var t;return(null===(t=e.adData)||void 0===t?void 0:t.enableAdsColorBleed)?e.adData.adBackgroundColor:Fs(e)},Fs=e=>{var t,a,i,n,r;const o=$s(e.wcData);if(o.layoutColor)return o.layoutColor;const s=null===(a=null===(t=e.adData)||void 0===t?void 0:t.template)||void 0===a?void 0:a.templateType;return(s===Yt.ZIndexV2Polygon||s===Yt.ZIndexV2Original||s===Yt.SaleHighlightV3||s===Yt.SaleHighlightV4)&&(null===(i=e.adData)||void 0===i?void 0:i.layoutColor)&&(null===(r=null===(n=e.adData)||void 0===n?void 0:n.assets)||void 0===r?void 0:r.transparentImage)?e.adData.layoutColor:[Yt.PESeasonalAds,Yt.PESeasonalAdsV1,Yt.PESeasonalAdsV1P].includes(s)?e.adBackgroundColor:""},Ps=s.d`
    <style>
    :host {
        height: 304px;
        width: 100%;
        position: relative;
        overflow: hidden;
        border-radius: calc(${pr.rSr} * 1px);
        box-shadow: 0 0 3px lightgrey;
    }

    :host(msn-native-ad-dr), :host(native-ad-wc) {
        ${e=>(e=>{const t=Ms(e),a=[];null==t.borderColor&&null==t.borderWidth||a.push("border-style:solid");const i=["backgroundColor","borderColor","borderWidth","height","boxShadow","borderRadius","fontFamily"];return Object.keys(t).forEach((e=>{null!=t[e]&&i.includes(e)&&a.push((0,So._t)(e,t[e]))})),a.length?`${a.join(";")};`:""})(e)}
    }

    @media (prefers-color-scheme: dark) {
        :host{
            box-shadow: 0 0 3px black;
        }
    }
    </style>
    <fluent-card
        @mouseenter=${e=>e.hoverState.isHovered=!0}
        @mouseleave=${e=>e.hoverState.isHovered=!1}
        style="
            background-color: ${e=>(e=>{var t,a;return(null===(a=null===(t=e.adData)||void 0===t?void 0:t.template)||void 0===a?void 0:a.templateType)===Yt.ZIndexV2Original?Os.zIndexV2OriginalBackground:Os.defaultRiverBackground})(e)};
            grid-area:${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.grid_area}};
            --ad-background-color: ${e=>Ls(e)||Os.defaultRiverGradient};
            --gradient-mid-color: ${e=>Is(Ls(e)||Os.defaultRiverGradient)};
            --gradient-end-color: ${e=>Ds(Ls(e)||Os.defaultRiverGradient)};
            ${e=>(e=>{const t=Ms(e);let a="";return null==t.borderRadius&&null==t.borderWidth||(a+="border-radius: 0;"),null!=t.backgroundColor&&(a+=`background-color: ${t.backgroundColor};`),a})(e)}
        "
        class="${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.cardSize}}"
        card-fill-color="${e=>{var t;return Fs(e)||(null===(t=e.adData)||void 0===t?void 0:t.adBackgroundColor)}}"
    >
        ${(0,Pt.rx)((e=>{var t;return[Object.assign(Object.assign({},e.wcData),{visualReadinessCallback:null===(t=e.adData)||void 0===t?void 0:t.visualReadinessCallback,hoverState:e.hoverState,componentFactory:e.componentFactory})]}),s.d`
            ${e=>e.componentFactory.create($s(e))}
        `)}
    </fluent-card>
`,Rs=s.d`
    <div
        @mouseenter=${e=>e.hoverState.isHovered=!0}
        @mouseleave=${e=>e.hoverState.isHovered=!1}
        style="
            contain: content;
            height: 100%;
            background-color: ${e=>Os.defaultInfopaneBackground};
            grid-area:${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.grid_area}}; 
            --ad-background-color: ${e=>Os.defaultInfopaneGradient};
            --gradient-mid-color: ${e=>Is(Os.defaultInfopaneGradient)};
            --gradient-end-color: ${e=>Ds(Os.defaultInfopaneGradient)};
            --neutral-foreground-rest: ${e=>Os.defaultInfopaneBackground};
        "
        class="${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.cardSize}}"
        card-fill-color="${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.adBackgroundColor}}"
    >
        ${(0,Pt.rx)((e=>[Object.assign(Object.assign({},e.wcData),{hoverState:e.hoverState,componentFactory:e.componentFactory})]),s.d`
            ${e=>e.componentFactory.create((e=>{var t;return(null===(t=null==e?void 0:e.template)||void 0===t?void 0:t.dynamicRenderingConfig)||ks})(e))}
        `)}
    </div>
`,_s=s.d`
    <style>
    :host {
        grid-area:${e=>{var t;return null===(t=e.adData)||void 0===t?void 0:t.grid_area}};
        border-radius: 6px;
        box-shadow: 0 0 3px lightgrey;
        background-color: ${Os.defaultRiverGradient};
    }
    @media (prefers-color-scheme: dark) {
        :host{
            box-shadow: 0 0 3px black;
        }
    }
    </style>
    <div></div>
`,Es=s.d`
    ${(0,V.g)((e=>e.wcData),(e=>e.isInfopane?Rs:Ps))}
    ${(0,V.g)((e=>!e.wcData),_s)}
`,Hs=Ri.i`
`;let Ns=class extends Ts{};Ns=(0,i.gn)([(0,gi.M)({name:"msn-native-ad-wc",template:Es,styles:Hs}),(0,ba.uj)(u.EoX,"msn-native-ad-wc")],Ns);const zs=(0,ba.Et)(u.a4J,"getFaviconLetter")((e=>{if(!e)return"M";const t=e.trim();if(!t)return"M";const a=t.split(" ");if(a.length>1){const e=a[0].toLowerCase();return"the"===e||"a"===e||"an"===e?a[1][0].toUpperCase():e[0].toUpperCase()}return t[0].toUpperCase()}));var Us;!function(e){e.Long="long",e.Short="short"}(Us||(Us={}));const js=s.d`
${(0,V.g)((e=>e.providerData&&e.destinationUrl&&e.isAdSlugV4NonDr),s.d`
    <msft-attribution slot="attribution">
        <msn-native-ad-favicon
            favicon-text="${e=>zs(di(e.providerData.name))}"
            slot="image"
            landing-page=${e=>e.destinationUrl}
            tel-metadata=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
        >
        </msn-native-ad-favicon>
        ${(0,V.g)((e=>e.providerData),s.d`
            ${e=>Zs(e.destinationUrl)}
        `)}
    </msft-attribution>
`)}
`,Bs=e=>s.d`
    ${(0,V.g)((e=>e.isGreyAdsLabelEnabled),s.d`
        <msn-native-ad-ad-label 
            privacy-url=${e=>e.privacyUrl}
            type="greyLabel"
            slot="image"
            should-adjust-gap=${t=>!e&&[...wa,...Ta,va.riverdb,va.rightRail].includes(t.region)}
            ad-label-text=${e=>e.adLabelText}
            tel-metadata=${e=>e.adTelemetryContext&&e.adTelemetryContext.adLabel&&e.adTelemetryContext.adLabel.getMetadataTag()}
            id="${e=>e.id}-ad-label"
        >
        </msn-native-ad-ad-label>
    `)}
    ${(0,V.g)((e=>!e.isGreyAdsLabelEnabled),s.d`
        <msn-native-ad-ad-label 
            privacy-url=${e=>e.privacyUrl}
            type=${e=>e.adSlugGA||e.region===va.rightRail?"defaultLabel":"greenLabel"}
            slot="image"
            should-adjust-gap=${t=>!e&&$a.includes(t.region)||t.unifyMode&&xa.includes(t.region)}
            ad-label-text=${e=>e.adLabelText}
            tel-metadata=${e=>e.adTelemetryContext&&e.adTelemetryContext.adLabel&&e.adTelemetryContext.adLabel.getMetadataTag()}
            ad-label-text-opacity=${e=>{var t;return null!==(t=e.adLabelTextOpacity)&&void 0!==t?t:"0.7"}}
            ad-label-font-size=${e=>e.adLabelFontSize}
            id="${e=>e.id}-ad-label"
            is-msn-hp-ad-slug=${e=>e.isMsnHPAdSlug}
        >
        </msn-native-ad-ad-label>
    `)} 
`,Ws=()=>s.d`
    ${(0,V.g)((e=>!e.isAnaheimDesign),s.d`${e=>e.title}`)}
    ${(0,V.g)((e=>e.isAnaheimDesign&&e.feedFontSize),s.d`
        <span style="font-size: ${e=>e.feedFontSize}px;
            ${e=>e.headingLineHeight?`line-height: ${e.headingLineHeight}px;`:""}
            ${e=>e.fontFamilyOnCardContent?`font-family:${e.fontFamilyOnCardContent}, Segoe UI, Segoe UI Midlevel, Arial, Sans-Serif;`:""}
        ">
            ${e=>e.title}
        </span>`)}
    ${(0,V.g)((e=>e.isAnaheimDesign&&!e.feedFontSize),s.d`
        ${(0,V.g)((e=>!e.useSmallFontSize),s.d`<span class="title${e=>e.cardSize}">${e=>e.title}</span>`)}
        ${(0,V.g)((e=>e.useSmallFontSize),s.d`${e=>e.title}`)}
    `)}
`,Gs=(e=null,t={})=>s.d`
    <style>
        img.ltr.native-ad-crop {
            position: relative;
            left: -44px;
        }
        img.rtl.native-ad-crop {
            position: relative;
            right: -44px;
        }
        img[slot="anim-content"]{
            object-fit: cover;
            object-position: top;
        }
        img[id="nativead-1-img"], img[id="nativead-3-img"]{
            max-width: 100%;
            max-height: 100%;
        }
        img.prong2-amplify-ad {
            top: 48px;
            left: 16px;
            width: 268px;
            height: 140px;
            position:absolute;
            border-radius: 8px;
            transition: unset;
            object-position: center;
        }
    </style>
    <img
        ${(e=>e?`slot="${e}"`:"")(e)}
        id="${e=>e.id+"-img"}"
        src="${e=>e.imageData.source}"
        alt="${e=>e.imageData.altText}"
        width="${e=>(0,Ca.Z)(t,"width",e.imageData.imageWidth)}"
        height="${e=>(0,Ca.Z)(t,"height",e.imageData.imageHeight)}"
        @load=${e=>e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback()}
        @error=${(e,t)=>{e.imageData.visualReadinessCallback&&e.imageData.visualReadinessCallback(t.event)}}
        class="${e=>document.dir} ${e=>e.useProng2AmplifyCardTemplate?"prong2-amplify-ad":""} ${e=>e.isAnaheimDesign&&e.useArticleCardTemplate&&Number(e.imageData.imageWidth)>300?"native-ad-crop":""}"
    />
`,Vs=(e,t,a={})=>s.d`
    <!--
        Only use placeholder when the card size is 1x_2y
    -->
    ${(0,V.g)((e=>e.cardSize===g.Nv._1x_2y&&e.imageData),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;">
            ${Gs("anim-content",a)}
        <div>
    `)}
    ${(0,V.g)((e=>e.cardSize===g.Nv._1x_2y&&!e.imageData),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;">
        </div>
    `)}
    ${(0,V.g)((e=>e.cardSize!==g.Nv._1x_2y&&e.imageData),s.d`
        <div slot="${e}">
            ${Gs("anim-content",a)}
        </div>
    `)}
`,qs=(e,t,a)=>s.d`
    ${(0,V.g)((e=>e.cardSize===g.Nv._1x_2y),s.d`
        <div slot="${e}" style="width: ${t.width}px;height: ${t.height}px;">
            <native-ad-video-controls
                region="river"
                width=${t.width}
                height=${t.height}
                :destinationUrl=${e=>e.destinationUrl}
                :localizedStrings=${e=>e.localizedStrings}
            ></native-ad-video-controls>
            <native-ad-video-player
                :videoProps=${e=>e.videoProps}
                :backgroundImg=${e=>e.imageData}
                region="river"
                immersive=${a}
                width=${t.width}
                height=${t.height},
                :visualReadinessCallback=${e=>e.visualReadinessCallback}
            ></native-ad-video-player>
        </div>
    `)}
`,Zs=e=>s.d`
        <msn-native-ad-provider-name 
            ${(0,Mi.lq)(!0,!1)}
            url="${e}"
            provider-name="${e=>e.adSlugGA&&e.providerData?di(e.providerData.name):e.providerData.name}" 
            white-provider-name="${e=>{return e.template&&!!((t=e.template.templateType)&&t===Yt.Slideshow||t&&t===Yt.PseudoVideo);var t}}"
            keep-opacity=${e=>wa.includes(e.region)}
            ad-slug-ga=${e=>e.adSlugGA||e.region===va.rightRail}
            font-family="${e=>e.fontFamilyOnCardContent||"inherit"}"
            tel-metadata=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            has-elite-badge=${e=>{var t;return!!(null===(t=e.assets)||void 0===t?void 0:t.eliteBadge)}}
            ad-label-text-opacity=${e=>{var t;return null!==(t=e.adLabelTextOpacity)&&void 0!==t?t:.7}}
            :localizedStrings=${e=>e.localizedStrings}
            is-msn-hp-ad-slug=${e=>e.isMsnHPAdSlug}
        >
        </msn-native-ad-provider-name>
`,Js=(e,t,a)=>s.d`
    ${(0,V.g)((e=>e.providerData),s.d`
        <msft-attribution slot="${e}" style="--design-unit: 0; overflow: hidden; ${e=>e.invertSlugPosition?"display: flex":""}">
            ${Bs(a)}
            ${Zs(t)}
        </msft-attribution>
   `)}
`,Qs=e=>s.d`
    ${(0,V.g)((e=>e.adChoiceIconUrl),s.d`
        <a
            href="${e=>e.adChoiceIconUrl}"
            target="_blank"
            class=${e}
            aria-label="${e=>e.localizedStrings&&e.localizedStrings.nativeAdAdChoiceText}"
            data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.adChoice)||void 0===a?void 0:a.getMetadataTag()}}"
            id="${e=>e.id}-ad-choice"
        >
            <svg width="12" height="12" viewBox="0 0 12 12" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M4.52344 5.69531C4.70573 5.69531 4.86198 5.63542 4.99219 5.51562C5.1224 5.39062 5.1875 5.24219 5.1875 5.07031C5.1875 4.89844 5.1224 4.7526 4.99219 4.63281C4.86198 4.50781 4.70573 4.44531 4.52344 4.44531C4.33594 4.44531 4.17708 4.50781 4.04688 4.63281C3.91667 4.7526 3.85156 4.89844 3.85156 5.07031C3.85156 5.24219 3.91667 5.39062 4.04688 5.51562C4.17708 5.63542 4.33594 5.69531 4.52344 5.69531ZM1.44531 0.921875V0.929688C1.33594 0.861979 1.21875 0.828125 1.09375 0.828125C0.90625 0.828125 0.747396 0.890625 0.617188 1.01562C0.486979 1.13542 0.421875 1.28125 0.421875 1.45312V11.375C0.421875 11.5469 0.486979 11.6953 0.617188 11.8203C0.747396 11.9401 0.90625 12 1.09375 12C1.19271 12 1.28906 11.9792 1.38281 11.9375H1.39062L1.40625 11.9219L3.20312 11.0625C3.48958 10.9635 3.63281 10.7708 3.63281 10.4844C3.63281 10.3073 3.56771 10.1589 3.4375 10.0391C3.30729 9.91406 3.15104 9.85156 2.96875 9.85156C2.85417 9.85156 2.74479 9.8776 2.64062 9.92969C2.63542 9.9401 2.61979 9.95052 2.59375 9.96094C2.51042 10.0026 2.42188 10.0234 2.32812 10.0234C2.17188 10.0234 2.03906 9.97396 1.92969 9.875C1.82031 9.77083 1.76302 9.64844 1.75781 9.50781V3.375C1.76302 3.22917 1.82031 3.10677 1.92969 3.00781C2.03906 2.90365 2.17188 2.85156 2.32812 2.85156C2.41667 2.85156 2.5 2.8724 2.57812 2.91406C2.58333 2.91406 2.58854 2.91667 2.59375 2.92188C2.59896 2.92188 2.60417 2.92448 2.60938 2.92969L8.53906 5.92188L8.64844 5.97656C8.8099 6.08594 8.89062 6.23177 8.89062 6.41406C8.89062 6.60677 8.80469 6.75521 8.63281 6.85938L8.5625 6.89844L5.1875 8.60938V6.67969C5.1875 6.5026 5.1224 6.35417 4.99219 6.23438C4.86198 6.11458 4.70573 6.05469 4.52344 6.05469C4.33594 6.05469 4.17708 6.11458 4.04688 6.23438C3.91667 6.35417 3.85156 6.5026 3.85156 6.67969V9.65625C3.85156 9.83333 3.91667 9.98177 4.04688 10.1016C4.17708 10.2214 4.33594 10.2812 4.52344 10.2812C4.65885 10.2812 4.78385 10.2448 4.89844 10.1719L11.125 7.00781C11.4271 6.90885 11.5781 6.71094 11.5781 6.41406C11.5781 6.14844 11.4453 5.95833 11.1797 5.84375L1.44531 0.921875ZM2.59375 9.96094C2.61979 9.95052 2.63542 9.9401 2.64062 9.92969L2.59375 9.96094ZM2.57812 2.91406C2.58333 2.91406 2.58854 2.91667 2.59375 2.92188C2.59896 2.92188 2.60417 2.92448 2.60938 2.92969L2.57812 2.91406Z" fill="#00aecd"/>
            </svg>
        </a>
    `)}
`,Xs=e=>s.d`
    <style>
        .has-right-bottom-ads-bing-icon {
            position: absolute; right: 16px;
        }

        .has-preview-card-template-icon {
            position: absolute; right: 10px; bottom: 5px;
        }

        .native-ad .end-actions {
            display: flex; align-items: center;
        }

        .native-ad a.ad-choice-icon {
            display: inline-flex; min-width: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
        }

        .native-ad a.ad-choice-icon svg {
            display: block; margin: auto;
        }
    </style>
    <div slot="${e}" class="${e=>e.isRightBottomAdsBingIcon?"has-right-bottom-ads-bing-icon":""} ${e=>e.usePreviewCardTemplate?"has-preview-card-template-icon":""} end-actions">
        ${wo()}
        ${Qs("ad-choice-icon")}
        ${(0,V.g)((e=>e.isAdFeedbackV1Enabled&&!!e.feedbackUrl),s.d`
            <div
                class="see-more-telemetry-wrapper"
                style="display: contents;"
                data-t="${e=>{var t,a;return null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.seeMore)||void 0===a?void 0:a.getMetadataTag()}}"
            >
                ${W.X5}
            </div>
        `)}
    </div>
`,Ys=s.d`
    <style>
        .card-button:not(:hover) {
            background: transparent;
        }
        msft-content-card fluent-button::part(control) {
            padding: 0;
        }
        msft-content-card.nativeAdVideo-river::part(media) {
            z-index: 2;
        }
        msft-content-card::part(footer) {
            padding: 0 16px 4px;
            margin-bottom: 0;
            height: 40px;
        }
        msft-content-card.wideIconMargin msft-ad-label {
            margin-right: 8px;
        }
        msft-attribution {
            position: relative;
            overflow: hidden;
        }
        /* override default call-to-action style from msft-content-card */
        msft-attribution.native-ad-river-card {
            z-index: unset;
            bottom: 42px;
            position: absolute;
        }
        msft-content-card span.title_1x_2y,
        msft-content-card span.title_1x_3y {
            font-size: 20px;
        }
        msft-content-card.native-ad-content-card::part(heading-container) {
            background: var(--fill-color);
        }
        msft-content-card.native-ad-content-card::part(media-wrapper) {
            height: 156px;
            transition: height  0.3s;
            overflow: hidden;
        }
        fluent-card[id^="native_ad_nativead-river"] msft-content-card.two-lines-heading::part(media-wrapper),
        fluent-card[id^="native_ad_nativead-resriver"] msft-content-card.two-lines-heading::part(media-wrapper) {
            overflow: hidden;
        }
        msft-content-card.two-lines-heading::part(heading) {
            --heading-max-lines: 2;
        }
        msft-content-card.three-lines-heading::part(heading) {
            --heading-max-lines: 3;
        }
        ${(0,V.g)((e=>e.enableNativeAdHoverContrast),s.d`
            fluent-card[id="native_ad_${e=>e.id}"]:hover msft-content-card { 
                filter: contrast(115%); 
            }
        `)}
    </style>
    <fluent-card
        id="native_ad_${e=>e.id}"
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >
        <msft-content-card
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.disableCardTitleTooltip?"":e.title}
            ?image-priority=${e=>e.imagePriority}
            class="two-lines-heading ${e=>ud(e)}"
            data-t="${e=>{var t,a;return e.id&&(null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag())}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
            @mouseenter="${(e,t)=>e.setDisplacementAndTitleOnHover&&e.setDisplacementAndTitleOnHover(t,e.dir,e.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
        >
            ${Ws()}
            ${e=>e.videoProps?qs("media",te.B._300x156,!1):Vs("media",te.B._300x156)}
            ${e=>Js(e.isProviderInHeader?"attribution":"start-actions",e.destinationUrl,!0)}
            ${Xs("end-actions")}
        </msft-content-card>
    </fluent-card>
`,Ks=s.d`
    <style>
        msft-ad-label {
            margin-inline-end: 8px;
        }

        msft-article.native-ad {
            --article-native-ad-heading-margin-bottom: 40px;
            --heading-max-lines: 2;
        }

        msft-article.nativeAdVideo-river::part(image) {
            z-index: 2;
        }

        msft-article.native-ad.gradient {
            --article-native-ad-actions-height: 33px;
            --article-native-ad-heading-margin-bottom: 6px;
        }

        msft-article.native-ad::part(heading) {
            margin-bottom: var(--article-native-ad-heading-margin-bottom);
            color: var(--msft-card-font-color);
        }

        msft-article.native-ad.long-gradient::part(gradient) {
            top: -55px;
        }

        ${(0,V.g)((e=>e.layoutGap),s.d`
            msft-article-card[size="_1x_2y"] msft-article::part(gradient) {
                bottom: ${e=>67+e.layoutGap}px;
            }

            msft-article-card[size="_2x_2y"] msft-article::part(gradient) {
                bottom: 0px;
            }
        
            msft-article-card[size="_1x_2y"] {
                --card-height: ${e=>292+e.layoutGap}px;
                --card-width: 300px;
            }

            msft-article-card[size="_2x_2y"] {
                --card-height: ${e=>292+e.layoutGap}px;
                --card-width: ${e=>600+e.layoutGap}px;
            }
        `)}

        msft-article.native-ad msft-attribution {
            max-width: 100%;
        }

        msft-article.native-ad::part(actions) {
            height: var(--article-native-ad-actions-height);
            align-items: center;
        }

        msft-article-card[size="_1x_2y"] msft-article.native-ad[class*="zoom-ratio"]:not(.no-image)::part(gradient):after {
            content: "";
            height: 10px;
            width: 100%;
            bottom: -5px;
            position: absolute;
            background: var(--gradient-mid-color);
        }

        msft-article-card[size$="x_2y"] msft-article::part(heading):after {
          top: calc(100% - ${e=>e.fixedCardHeight?304:292+(e.layoutGap||12)}px);
        }

        ${(0,V.g)((e=>e.useTitleFontSize),s.d`
            msft-article-card msft-article.native-ad {
                --msft-article-heading-font-size: ${e=>e.useTitleFontSize}px;
                --msft-article-heading-line-height: 24px;
            }

            msft-article-card msft-article.native-ad::part(attribution) {
                height: 28px;
            }

            msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image)::part(heading) {
                margin-bottom: 11px;
            }

            msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image)::part(gradient) {
                background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 46%, var(--gradient-color) 100%);
                top: 5px;
            }
        `)}

        ${(0,V.g)((e=>e.useShorterGradient),s.d`
            msft-article-card[size="_1x_2y"] msft-article.native-ad.gradient::part(gradient) {
                top: 11px;
                background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 56%, var(--gradient-color) 100%);
            }

            msft-article-card[size="_1x_2y"] msft-article[id="native_ad_${e=>e.id}"]::part(gradient) {
                top: 11px;
                background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 56%, var(--gradient-color) 100%);
            }

            ${(0,V.g)((e=>e.isNotNtpRiver),s.d`
                msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image)::part(gradient) {
                    top: 18px;
                    background: linear-gradient(180deg, transparent 0%, var(--gradient-mid-color) 56%, var(--gradient-color) 100%);
                } 
            `)}
        `)}

        ${(0,V.g)((e=>e.enableNativeAdHoverContrast),s.d`
            msft-article-card:hover msft-article[id="native_ad_${e=>e.id}"]::part(image) {
                opacity: 1;
            }
            msft-article-card msft-article[id="native_ad_${e=>e.id}"]:hover {
                filter: contrast(115%);
            }
        `)}

        /** 
         * TODO Cleanup these two styles after the Linear feed right rail transparent-background ad flight is completed 
         * Or clean this up once this the right rail native ads card gets migrated to the NativeAdWC experience
         * Work item tracking the migration - https://msasg.visualstudio.com/Bing_Ads/_workitems/edit/3905327
        **/
        @media (prefers-color-scheme: light) {
            .white-gradient::part(article) {
                background: #f7f7f7;
                --gradient-mid-color: #f7f7f7;
                --gradient-color: #f7f7f7;
                --msft-card-font-color: black;
                --neutral-foreground-rest: #2E2E2E;
            }
        }
        @media (prefers-color-scheme: dark) {
            .white-gradient::part(article) {
                background: #242424;
                --gradient-mid-color: #242424;
                --gradient-color: #242424;
                --msft-card-font-color: white;
                --neutral-foreground-rest: #ffffff;
            }
        }
        
        /**
         *  To support high contrast mode for accessibility
        **/
        @media (forced-colors: active) {
            msft-article.native-ad::part(heading) {
                color: linktext;
            }
        }

    </style>
    <msft-article-card
        style="grid-area:${e=>e.grid_area};"
        size="${e=>e.cardSize}"
        card-fill-color=${e=>e.adBackgroundColor}
    >
        <msft-article
            id="native_ad_${e=>e.id}"
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.disableCardTitleTooltip?"":e.title}
            ?image-priority=${e=>e.imagePriority}
            class="${e=>cd(e)}"
            data-t="${e=>{var t,a;return e.id?null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag():""}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
            @mouseenter="${(e,t)=>e.setDisplacementAndTitleOnHover&&e.setDisplacementAndTitleOnHover(t,e.dir,e.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
        >
            ${js}
            ${Ws()}
            ${e=>e.videoProps?qs("image",te.B._300x169,!0):Vs("image",te.B._300x225)}
            ${e=>e.invertSlugPosition?Js("start-action",e.destinationUrl):Js("attribution",e.destinationUrl)}
            ${Xs("end-action")}
        </msft-article>
    </msft-article-card>
`,ed=s.d`
    <msn-native-ad-article-card :nativeAdArticleData=${e=>Object.assign(Object.assign({},e),{getArticleCardClassnames:cd,createNativeAdFaviconWithProviderName:js,renderTitle:Ws,renderVideo:qs,renderImage:Vs,renderStartSection:Js,renderEndSection:Xs})}
    >
    </msn-native-ad-article-card>
`,td=s.d`
    <style>
        msft-article-card.msft-homepage-native-ad-card {
            height: 100%;
        }

        msft-article-card.msft-homepage-native-ad-card msft-ad-label {
            margin-inline-end: 8px;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad {
            --article-native-ad-heading-margin-bottom: 40px;
            --heading-max-lines: 3;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad.gradient {
            --article-native-ad-actions-height: 33px;
            --article-native-ad-heading-margin-bottom: 8px;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad::part(text) {
            display: flex;
            flex-flow: column-reverse;
            padding-bottom: 8px;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad::part(heading) {
            font-size: var(--msft-article-heading-font-size, 20px);
            margin-bottom: 15px;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad::part(gradient) {
            bottom: 0;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad::part(attribution) {
            max-width: 100%;
        }

        msft-article-card.msft-homepage-native-ad-card msft-article.native-ad::part(actions) {
            height: var(--article-native-ad-actions-height);
            align-items: center;
        }
    </style>
    <msft-article-card
        style="grid-area:${e=>e.grid_area}"
        size="${e=>e.cardSize}"
        class="msft-homepage-native-ad-card"
    >
        <msft-article
            id="native_ad_${e=>e.id}"
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.disableCardTitleTooltip?"":e.title}
            ?image-priority=${e=>e.imagePriority}
            class="${e=>cd(e)}"
            data-t="${e=>{var t,a;return e.id?null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag():""}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
            @mouseenter="${(e,t)=>e.setDisplacementAndTitleOnHover&&e.setDisplacementAndTitleOnHover(t,e.dir,e.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
        >
            ${Ws()}
            ${Vs("image",te.B._300x225)}
            ${e=>Js("attribution",e.destinationUrl)}
            ${(0,V.g)((e=>e.gradientType),s.d`
                <div slot="start-action"></div>
            `)}
            ${Xs("end-action")}
        </msft-article>
    </msft-article-card>
`,ad=s.d`
    <style>
        msft-content-card.msft-content-native-ad-preview {
            height: 100px;
        }
        msft-content-card.msft-content-native-ad-preview::part(body) {
            height: 100%;
        }
        msft-content-card.msft-content-native-ad-preview .card-button:not(:hover) {
            background: transparent;
        }
        msft-content-card.msft-content-native-ad-preview fluent-button::part(control) {
            padding: 0;
        }
        msft-content-card.msft-content-native-ad-preview::part(footer) {
            padding: 0 16px 4px;
            margin-bottom: 0;
            height: 40px;
        }
        msft-content-card.msft-content-native-ad-preview msft-attribution {
            position: relative;
            overflow: hidden;
            margin-top: 5px;
            margin-bottom: 0;
            max-height: 18px;
        }
        msft-content-card.msft-content-native-ad-preview::part(heading-container) {
            padding: 8px;
            padding-bottom: 0;
            display: flex;
            flex-flow: column-reverse;
            height: 100%;
            box-sizing: border-box;
            justify-content: space-between;
        }
        msft-content-card.msft-content-native-ad-preview::part(media-wrapper) {
            float: left;
            margin-top: unset;
            margin: 8px 0 0px 8px;
            border-radius: calc(var(--content-card-corner-radius, 2) * 2px);
            overflow: hidden;
            max-height: 84px;
        }
        :host([direction="rtl"]) msft-content-card.msft-content-native-ad-preview::part(media-wrapper) {
            float: right;
            margin: 8px 8px 8px 0;
        }
        msft-content-card.msft-content-native-ad-preview::part(heading) {
            font-size: 14px;
            line-height: 20px;
        }
        msft-content-card.msft-content-native-ad-preview msft-attribution {
            position: relative;
            overflow: hidden;
        }
        msft-content-card.msft-content-native-ad-preview msft-attribution msft-ad-label {
            margin-inline-end: 6px;
        }
        msft-content-card.msft-content-native-ad-preview msft-attribution msn-inline-group::part(inline-item) {
            margin-top: 3px;
            padding-left: 3px;
        }
    </style>
    <fluent-card
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize} msft-content-native-ad-preview-wrapper"
    >
        <msft-content-card
            id="contentcard_${e=>e.id}"
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.disableCardTitleTooltip?"":e.title}
            style="--heading-max-lines: 3;"
            class="msft-content-native-ad-preview ${e=>ud(e)}"
            style="--heading-max-lines: ${e=>e.hasAnyInlineDecoration?2:3}"
            data-t="${e=>{var t,a;return e.id?null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag():""}}"
            :anchorTelemetryTag=${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}
            ${(0,Mi.lq)()}
            @mouseenter="${(e,t)=>e.setDisplacementAndTitleOnHover&&e.setDisplacementAndTitleOnHover(t,e.dir,e.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
        >
            ${Ws()}
            ${Vs("media",te.B._104x84)}
            ${gn("call-to-action")}
            ${e=>Js("attribution",e.destinationUrl)}
            ${Xs("end-actions")}
        </msft-content-card>
    </fluent-card>
`,id=s.d`
    <fluent-card
        id="native_ad_${e=>e.id}"
        style="grid-area:${e=>e.grid_area}"
        class="${e=>e.cardSize}"
    >
        <msn-native-ad-hp-stripe-card 
            :nativeAdHpStripeData=${e=>Object.assign(Object.assign({},e),{renderImageTag:Gs})}
        >
        </msn-native-ad-hp-stripe-card>
    </fluent-card>
`,nd=s.d`
    <msn-native-ad-card-template-facade
        :data=${e=>Object.assign(Object.assign({},e),{renderStartSection:Js,renderEndSection:Xs,renderTitle:Ws,renderImage:Vs,renderImageTag:Gs,nativeAdBeacons:Mi.lq,getContentCardClassnames:ud,seeMoreButtonTemplate:W.X5,ContentCardImageSizes:te.B,FeedLayoutCardSize:g.Nv})}>
    </msn-native-ad-card-template-facade>
`,rd=s.d`
    <style>
        .amplify-ad .end-actions {
            z-index: unset;
        }

        .amplify-ad a.ad-choice {
            display: inline-flex; min-width: calc((var(--base-height-multiplier) + var(--density)) * var(--design-unit) * 1px);
            bottom:23px;
            left:264px;
            position:absolute;
            z-index: 2;
        }

        .amplify-ad a.ad-choice svg {
            display: block; margin: auto;
        }

        div.ad-label-bottom {
            bottom:22px;
            color:rgba(255,255,255,0.7);
            font-size:12px;
            left:138px;
            pointer-events: none;
            position:absolute;
            width:123px;
        }

        fluent-button.join-now {
            backdrop-filter:blur(3px);
            background:rgba(255,255,255,0.09);
            border-radius:16px;
            bottom:16px;
            height:28px;
            width:105px;
        }

        ${(0,V.g)((e=>e.useProng2AmplifyCardTemplate),s.d`
            fluent-button.prong2-amplify-cta {
                bottom:3px;
                height:28px;
                width:105px;
                margin-inline-start: 85px;
                background-color: unset;
                width: 71px;
                height: 20px;
                font-weight: 400;
                font-size: 14px;
                line-height: 20px;
                position: relative;
                color: #003E92;
            }

            div.prong2-attribution {
                position: absolute;
                width: 300px;
                height: 48px;
                left: 0px;
                bottom: 256px;
            }

            span.prong2-amplify-logo {
                position: absolute;
                left: 5.33%;
                right: 89.33%;
                top: 23.33%;
                bottom: 33.33%;
            }

            span.prong2-amplify-business {
                position: absolute;
                left: 13.33%;
                right: 24.33%;
                top: 33.33%;
                bottom: 33.33%;
                width: 200px;
                height: 16px;
                overflow: hidden;
                font-style: normal;
                font-weight: 400;
                font-size: 12px;
                line-height: 16px;
                opacity: 0.8956;
            }

            span.prong2-amplify-title {
                width: 268px;
                height: 48px;    
                top: 2px;   
                font-style: normal;
                font-weight: 600;
                font-size: 18px;
                line-height: 24px;
                position: relative;
                overflow: hidden;
                display: -webkit-box;    
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
            }

            msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image)::part(gradient) {
                left: unset;
            } 

            @media (prefers-color-scheme: light) {
                msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image) {
                    background: linear-gradient(124.33deg, rgba(255, 255, 255, 0) -20.01%, #E1FAFF 96.49%), #FFFFFF;
        
                }
            }
    
            @media (prefers-color-scheme: dark) {
                msft-article-card[size="_1x_2y"] msft-article.native-ad:not(.no-image) {
                    background: linear-gradient(125.77deg, rgba(0, 0, 0, 0) -33.71%, #091E23 74.86%), linear-gradient(124.33deg, rgba(255, 255, 255, 0) -20.01%, #E1FAFF 96.49%), #FFFFFF;
                }
                
                fluent-button.prong2-amplify-cta {
                    color: #60CDFF;
                }
            }
        `)}
    </style>
    <msft-article-card
        style="grid-area:${e=>e.grid_area};"
        size="${e=>e.cardSize}"
        card-fill-color=${e=>e.adBackgroundColor}
    >
        <msft-article
            id="native_ad_${e=>e.id}"
            href=${e=>e.destinationUrl}
            target="_blank"
            title=${e=>e.disableCardTitleTooltip?"":e.title}
            ?image-priority=${e=>e.imagePriority}
            class="amplify-ad ${e=>cd(e)}"
            data-t="${e=>{var t,a;return e.id?null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag():""}}"
            :anchorTelemetryTag="${e=>e.adTelemetryContext&&e.adTelemetryContext.destination&&e.adTelemetryContext.destination.getMetadataTag()}"
            ${(0,Mi.lq)()}
            @mouseenter="${(e,t)=>e.setDisplacementAndTitleOnHover&&e.setDisplacementAndTitleOnHover(t,e.dir,e.title,e.disableCardTitleTooltip,e.enableTitleForTruncate)}"
        >
            ${od="prong2-attribution",s.d`
    ${(0,V.g)((e=>e.useProng2AmplifyCardTemplate),s.d`
        <div class=${od}>
            <span class="prong2-amplify-logo">
                <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
                    <rect x="1.59998" y="1.6" width="5.6" height="5.6" fill="#F25022"/>
                    <rect x="8.79999" y="1.6" width="5.6" height="5.6" fill="#80BA01"/>
                    <rect x="8.79999" y="8.8" width="5.6" height="5.6" fill="#FFB902"/>
                    <rect x="1.59998" y="8.8" width="5.6" height="5.6" fill="#02A4EF"/>
                </svg>
            </span>
            <span class="prong2-amplify-business">
                ${e=>e.prong2AmplifyBusinessName}
            </span>
        </div>
    `)}
`}
            <span class=${e=>e.useProng2AmplifyCardTemplate?"prong2-amplify-title":""} style="font-size:18px;">${e=>e.title}</span>
            ${Vs("image",te.B._300x225)}
            <div slot="end-action" class="end-actions">
                <fluent-button aria-label=${e=>e.localizedStrings&&e.localizedStrings.nativeAdLearnMoreText} role="button" class=${e=>e.useProng2AmplifyCardTemplate?"prong2-amplify-cta":"join-now"}>
                    ${e=>e.localizedStrings&&e.localizedStrings.nativeAdLearnMoreText}
                </fluent-button>
                <div class="ad-label-bottom">${e=>e.useProng2AmplifyCardTemplate?"":e.localizedStrings&&e.localizedStrings.nativeAdPromotedByText}</div>
                ${Qs("ad-choice")}
            </div>
        </msft-article>
    </msft-article-card>
`;var od;const sd=s.d`
    <msn-native-ad-wc
        id="native_ad_${e=>e.id}"
        class="native-ad-wce-wrapper"
        style="grid-area:${e=>e.grid_area};background: rgb(46, 46, 46);border-radius: 6px;"
        data-t="${e=>{var t,a;return e.id?null===(a=null===(t=e.adTelemetryContext)||void 0===t?void 0:t.nativeAdCard)||void 0===a?void 0:a.getMetadataTag():""}}"
        ${(0,Mi.lq)(!1,!0)}
        :configRef=${e=>{var t;return null===(t=e.nativeAdWC)||void 0===t?void 0:t.configRef}}
        :localizedStrings=${e=>e.localizedStrings}
        :adData=${e=>e}
    ></msn-native-ad-wc>
`,dd=s.d`
    ${e=>ld(e)}
`,ld=e=>{const t=(a=e,(0,Ca.Z)(a,"template.templateType",Yt.Default)===Yt.Default);var a;const i=e.useHomepageCardTemplate,n=e.usePreviewCardTemplate,r=e.useArticleCardTemplate,o=e.nativeAdWC&&!e.disableAdsUXExperiment;return o||(mr(),yr(),Ar(),Lr()),e.imageData||e.videoProps||e.visualReadinessCallback&&e.visualReadinessCallback(),(e=>e&&e.useAmplifyCardTemplate&&e.id&&e.id.indexOf("amplifyad")>=0)(e)||(e=>e&&e.useProng2AmplifyCardTemplate)(e)?rd:e.videoProps?Ks:o?sd:Ii(e)&&!e.disableAdsUXExperiment?nd:t||(e=>{const t=!!e.assets&&!(0,Nt.Z)(e.assets),a=[Yt.SpecialOfferNonDR,Yt.SpecialOfferNonDRWithExp,Yt.RatingHighlightRedNonDR,Yt.RatingHighlightYellowNonDR,Yt.RatingDefaultYellowNonDRStatic,Yt.RatingHighlightYellowNonDRStatic,Yt.FreeShippingPlainTextNonDR,Yt.FreeShippingInlineNonDR,Yt.FreeShippingTopLeftNonDR,Yt.FreeShippingTopRightNonDR,Yt.ConditionNonDR,Yt.ReturnPolicyNonDR,Yt.SoldNonDR,Yt.ComboFreeShippingNonDR,Yt.ComboRatingNonDR,Yt.ComboSpecialOfferNonDR,Yt.ComboSoldNonDR,Yt.ComboReturnPolicyNonDR,Yt.ComboConditionNonDR].includes($i(e));return!(t||!a)})(e)||e.disableAdsUXExperiment?"partners-stripe"==(s=e.region)||"promotion-stripe"==s||"recommended-stripe"==s||"shopping-stripe"==s?id:i?td:n?ad:r?e.isAdNonDRWCTemplate?ed:Ks:Ys:((0,c.OO)(void 0,u.Psw,"renderNativeAdCardTemplate failed to find a template for display and fell back to nativeAdArticleCardTemplate",JSON.stringify(e)),Ks);var s},cd=e=>{let t="native-ad";return e.gradientType&&(t+=" gradient",e.gradientType===Us.Long&&(t+=" long-gradient")),e.videoProps&&(t+=" nativeAdVideo-river"),e.zoomRatio&&(t+=" zoom-ratio"),e.useWhiteGradient&&(t+=" white-gradient"),t},ud=e=>{const t=[];return(e.isProviderInHeader||e.isProviderInFooter)&&t.push("wideIconMargin"),e.videoProps&&t.push("nativeAdVideo-river"),e.isThreeLineHeading&&t.push("three-lines-heading"),t.join(" ")};var pd=a(26007);const gd="\nmsft-content-card.native-ad-infopane-pattern-overlay .info-pane-slide-title {\n    font-size: 16px;\n}\nmsft-content-card.native-ad-infopane-pattern-overlay::part(media) {\n    height: 100%;\n    border-radius: 0px;\n    overflow: hidden;\n}\nmsft-content-card:hover.native-ad-infopane-pattern-overlay::part(media) {\n    filter: unset;\n}\nmsft-content-card:hover.native-ad-infopane-pattern-overlay img {\n    filter: brightness(0.9);\n}\n",hd=e=>!(!e.template||e.template.templateType!==Yt.InfopanePatternOverlay_1by1&&e.template.templateType!==Yt.InfopanePatternOverlay_4by3&&e.template.templateType!==Yt.InfopaneHorizontal_1by1&&e.template.templateType!==Yt.InfopaneHorizontal_3by4&&e.template.templateType!==Yt.InfopaneHorizontal_4by3&&e.template.templateType!==Yt.InfopaneHorizontal_9by16);var md,fd,vd=a(58958),bd=a(94731);!function(e){e._1_column="1_column",e._2_column="2_column"}(md||(md={})),function(e){e.vertical="vertical",e.horizontal="horizontal"}(fd||(fd={}));class Cd extends gi.H{constructor(){super(),this.slideKeyPressHandler=(e,t)=>{this.adjust(t),this.autoScrollHandler()},this.onPrevButtonClicked=()=>{this.adjust(-1),this.rotateBackAfterClickPrevButton&&(this.rotateDirection="backward"),this.rotateStopAfterClickPrevButton&&(this.rotateDirection="stay"),this.autoScrollHandler()},this.onNextButtonClicked=()=>{this.adjust(1),this.rotateDirection="forward",this.autoScrollHandler()},this.layout=md._2_column,this.freWelcomeAnimationRunning=!1,this.orientation=fd.horizontal,this.activeindicator=!1,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=e=>"true"===e.getAttribute("aria-disabled"),this.isFocusableElement=e=>!this.isDisabledElement(e),this.setTabs=()=>{const e=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((t,a)=>{if("tab"===t.slot&&this.isFocusableElement(t)){this.activeindicator&&(this.showActiveIndicator=!0);const e=this.tabIds[a],i=this.tabpanelIds[a];t.setAttribute("id","string"!=typeof e?`tab-${a+1}`:e),t.setAttribute("aria-selected",this.activeTabIndex===a?"true":"false"),t.setAttribute("aria-controls","string"!=typeof i?`panel-${a+1}`:i),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",this.activeTabIndex===a?"0":"-1"),this.activeTabIndex===a&&(this.activetab=t)}else this.showActiveIndicator=!1;t.style[e]=`${a+1}`,this.isHorizontal()?t.classList.remove("vertical"):t.classList.add("vertical")})),this.tabsShowOrNot&&this.activeTabIndex>=0&&(this.tabsShowOrNot[this.activeTabIndex]=!0)},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((e,t)=>{const a=this.tabIds[t],i=this.tabpanelIds[t];e.setAttribute("id","string"!=typeof i?`panel-${t+1}`:i),e.setAttribute("aria-labelledby","string"!=typeof a?`tab-${t+1}`:a),this.activeTabIndex!==t?e.setAttribute("hidden",""):e.removeAttribute("hidden")}))},this.handleTabClick=e=>{const t=e.currentTarget;1===t.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(t),this.setComponent())},this.handleTabKeyDown=e=>{const t=e.keyCode;if(this.isHorizontal())switch(t){case lt.BJ:e.preventDefault(),this.adjustBackward(e),this.enableInfopaneRefactoring&&(this.rotateBackAfterClickPrevButton&&(this.rotateDirection="backward"),this.rotateStopAfterClickPrevButton&&(this.rotateDirection="stay"));break;case lt.ho:e.preventDefault(),this.adjustForward(e),this.enableInfopaneRefactoring&&(this.rotateDirection="forward")}else switch(t){case lt.$Y:e.preventDefault(),this.adjustBackward(e),this.enableInfopaneRefactoring&&(this.rotateBackAfterClickPrevButton&&(this.rotateDirection="backward"),this.rotateStopAfterClickPrevButton&&(this.rotateDirection="stay"));break;case lt.Q6:e.preventDefault(),this.adjustForward(e),this.enableInfopaneRefactoring&&(this.rotateDirection="forward")}switch(t){case lt.wn:e.preventDefault(),this.adjust(-this.activeTabIndex),this.enableInfopaneRefactoring&&(this.rotateDirection="forward");break;case lt.$B:e.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1),this.enableInfopaneRefactoring&&(this.rotateDirection="forward")}},this.adjustForward=e=>{const t=this.tabs;let a=0;for(a=this.activetab?t.indexOf(this.activetab)+1:1,a===t.length&&(a=0);a<t.length&&t.length>1;){if(this.isFocusableElement(t[a])){this.moveToTabByIndex(t,a);break}if(this.activetab&&a===t.indexOf(this.activetab))break;a+1>=t.length?a=0:a+=1}},this.adjustBackward=e=>{const t=this.tabs;let a=0;for(a=this.activetab?t.indexOf(this.activetab)-1:0,a=a<0?t.length-1:a;a>=0&&t.length>1;){if(this.isFocusableElement(t[a])){this.moveToTabByIndex(t,a);break}a-1<0?a=t.length-1:a-=1}},this.moveToTabByIndex=(e,t)=>{const a=e[t];this.activetab=a,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=t,a.focus(),this.setComponent()},this.canAutoRotate=()=>this.enableInfopaneRefactoring?(this.enableRotateOnlyOnce&&!this.stopRotateDueShownAll&&0===this.activeTabIndex&&this.tabsShowOrNot&&this.tabsShowOrNot.every((e=>e))&&(this.stopRotateDueShownAll=!0),(!this.enableRotateAfterClick||!this.isFocusedOverAPeriodOfTime)&&(!this.stopRotateDueShownAll&&(!(!this.allowBlurScroll&&!this.isWindowFocused)&&(!(this.isFocused&&!this.enableRotateAfterClick)&&(!this.isMouseOver&&("visible"===document.visibilityState&&!!this.isInViewport)))))):!(this.enableRotateOnlyOnce&&0===this.activeTabIndex&&this.tabsShowOrNot&&this.tabsShowOrNot.every((e=>e)))&&(this.enableRotateAfterClick?(this.allowBlurScroll||!this.allowBlurScroll&&this.isWindowFocused)&&"visible"===document.visibilityState&&this.isInViewport:!this.isFocused&&!this.isMouseOver&&(this.allowBlurScroll||!this.allowBlurScroll&&this.isWindowFocused)&&"visible"===document.visibilityState&&this.isInViewport),this.updateAutoRotateState=()=>{const e=this.canAutoRotate();e&&!this.timer?this.autoScrollHandler():!e&&this.timer&&this.clearAutoScrollHandler()},this.focusInHandler=(()=>{this.enableInfopaneRefactoring?(this.updateIsFocusedOverAPeriodOfTime(),this.isFocused=!0,this.updateAutoRotateState()):this.isFocused=!0}).bind(this),this.focusOutHandler=(()=>{this.enableInfopaneRefactoring?(this.clearIsFocusedOverAPeriodOfTime(),this.isFocused=!1,this.updateAutoRotateState()):(this.isFocused=!1,this.autoScrollHandler())}).bind(this),this.windowFocusHandler=(()=>{this.enableInfopaneRefactoring?(this.isWindowFocused=!0,this.updateAutoRotateState()):(this.isWindowFocused=!0,this.autoScrollHandler())}).bind(this),this.windowBlurHandler=(()=>{this.enableInfopaneRefactoring?(this.isWindowFocused=!1,this.updateAutoRotateState()):this.isWindowFocused=!1}).bind(this),this.mouseInHandler=(()=>{this.enableInfopaneRefactoring?(this.isMouseOver=!0,this.updateAutoRotateState()):(this.isMouseOver=!0,this.autoScrollHandler())}).bind(this),this.mouseOutHandler=(()=>{this.enableInfopaneRefactoring?(this.isMouseOver=!1,this.updateAutoRotateState()):(this.isMouseOver=!1,this.autoScrollHandler())}).bind(this),this.windowVisiabilityChange=(()=>{this.updateAutoRotateState()}).bind(this)}handleChange(){this.direction=pr.o7V.getValueFor(this)}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.isFocused=!1,this.isWindowFocused=!0,this.isMouseOver=!1,this.rotateDirection="forward",this.direction=pr.o7V.getValueFor(this),pr.o7V.subscribe(this,this),this.activeindicator||(this.activeindicator=!1),this.addEventListeners(),this.autoScrollHandler(),this.setIntersectionObserver()}disconnectedCallback(){this.enableInfopaneRefactoring?this.clearAutoScrollHandler():window.clearTimeout(this.timer),this.removeEventListeners(),this.unsetIntersectionObserver()}updateIsFocusedOverAPeriodOfTime(){this.isFocusedOverAPeriodOfTime=!0,this.focusTimer&&(window.clearTimeout(this.focusTimer),this.focusTimer=null),this.focusTimer=window.setTimeout((()=>{this.isFocusedOverAPeriodOfTime=!1,this.updateAutoRotateState(),this.focusTimer=null}),(this.rotateAfterClickIntervalMs||1e4)-(this.autoScrollIntervalMs||6e3))}clearIsFocusedOverAPeriodOfTime(){this.focusTimer&&(window.clearTimeout(this.focusTimer),this.focusTimer=null),this.isFocusedOverAPeriodOfTime=!1}clearAutoScrollHandler(){this.timer&&window.clearTimeout(this.timer),this.timer=null}autoScrollHandler(e=0){if(this.enableInfopaneRefactoring){if(this.disableAutoScroll||this.freWelcomeAnimationRunning)return void this.clearAutoScrollHandler();let t=0;t=e||(0===this.activeTabIndex&&void 0!==this.firstAutoScrollIntervalMs?this.firstAutoScrollIntervalMs:this.autoScrollIntervalMs||6e3),this.clearAutoScrollHandler(),this.timer=window.setTimeout((()=>{if(this.timer=null,this.canAutoRotate()){switch(this.rotateDirection){case"forward":this.adjust(1,!0);break;case"backward":this.adjust(-1,!0)}performance.mark("InfoPaneAR"),this.autoScrollHandler()}}),t)}else{if(this.disableAutoScroll||this.freWelcomeAnimationRunning)return void window.clearTimeout(this.timer);let e=0;e=0===this.activeTabIndex&&void 0!==this.firstAutoScrollIntervalMs?this.firstAutoScrollIntervalMs:this.autoScrollIntervalMs||6e3,this.timer&&window.clearTimeout(this.timer),this.timer=window.setTimeout((()=>{this.canAutoRotate()&&(this.adjust(1,!0),performance.mark("InfoPaneAR")),this.autoScrollHandler()}),e)}}activeidChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(e,t){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition()),t&&(this.tabsShowOrNot=t.map((()=>!1)),this.stopRotateDueShownAll=!1)}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition(),this.activeid=this.tabIds[this.activeTabIndex])}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((e=>e.getAttribute("id")))}getTabPanelIds(){return this.tabpanels.map((e=>e.getAttribute("id")))}setComponent(e){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.change(),this.setTabs(),this.handleActiveIndicatorPosition(),this.setTabPanels(),e||this.focusTab(),this.change())}isHorizontal(){return this.orientation===fd.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const e=this.isHorizontal()?"gridColumn":"gridRow",t=this.isHorizontal()?"translateX":"translateY",a=this.isHorizontal()?"offsetLeft":"offsetTop",i=this.activeIndicatorRef[a];this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`;const n=this.activeIndicatorRef[a]-i;0!=n&&(this.activeIndicatorRef.style[e]=`${this.prevActiveTabIndex+1}`),this.activeIndicatorRef.style.transform=`${t}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[e]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${t}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(e,t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,bd.w)(0,this.tabs.length-1,this.activeTabIndex+e),this.setComponent(t)}focusTab(){this.tabs[this.activeTabIndex].focus()}addEventListeners(){this.addEventListener("mouseenter",this.mouseInHandler,!0),this.addEventListener("focusin",this.focusInHandler,!0),this.addEventListener("focusout",this.focusOutHandler,!0),this.addEventListener("mouseleave",this.mouseOutHandler,!0),this.allowBlurScroll||(this.enableInfopaneRefactoring&&document.addEventListener("visibilitychange",this.windowVisiabilityChange,!0),window.addEventListener("focus",this.windowFocusHandler,!0),window.addEventListener("blur",this.windowBlurHandler,!0))}removeEventListeners(){this.removeEventListener("mouseenter",this.mouseInHandler),this.removeEventListener("focusin",this.focusInHandler),this.removeEventListener("focusout",this.focusOutHandler),this.removeEventListener("mouseleave",this.mouseOutHandler),this.allowBlurScroll||(this.enableInfopaneRefactoring&&document.removeEventListener("visibilitychange",this.windowVisiabilityChange),window.removeEventListener("focus",this.windowFocusHandler),window.removeEventListener("blur",this.windowBlurHandler))}setIntersectionObserver(){if(this.intersectionObserver)return;this.intersectionObserver=new IntersectionObserver((e=>{this.isInViewport=e[0].intersectionRatio>0,this.enableInfopaneRefactoring&&this.updateAutoRotateState()}),{threshold:[0]}),this.intersectionObserver.observe(this)}unsetIntersectionObserver(){this.intersectionObserver&&(this.intersectionObserver.disconnect(),this.intersectionObserver=void 0)}}(0,i.gn)([Li.Lj],Cd.prototype,"layout",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"auto-scroll",mode:"boolean"})],Cd.prototype,"autoScroll",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"disable-auto-scroll",mode:"boolean"})],Cd.prototype,"disableAutoScroll",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"enable-rotate-after-click",mode:"boolean"})],Cd.prototype,"enableRotateAfterClick",void 0),(0,i.gn)([Li.Lj],Cd.prototype,"rotateAfterClickIntervalMs",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"auto-scroll-interval-ms"})],Cd.prototype,"autoScrollIntervalMs",void 0),(0,i.gn)([(0,Li.Lj)({attribute:"first-auto-scroll-interval-ms"})],Cd.prototype,"f