
    ${e=>e.source}
</a>`,D=y.compose({baseName:"share-dialog",template:(e,t)=>T.d`
    <fluent-dialog
        @dismiss=${e=>e.dismissDialog()}
        class="dialog"
        part="dialog"
        aria-label="${e=>e.localizedStrings.dialogAriaText}"
    >
        <div class="heading" part="heading">
            <span>${e=>e.localizedStrings.dialogHeadline}</span>
            <fluent-button
                tabindex="0"
                @click=${e=>e.dismissDialog()}
                @keypress=${e=>e.dismissDialog()}
                appearance="stealth"
                aria-label=${e=>e.localizedStrings.closeButtonText}
                title=${e=>e.localizedStrings.closeButtonText}
                data-t="${e=>e.closeButtonTelemetryTag}"
            >
                ${S.cU}
            </fluent-button>
        </div>
        <a
            class="article-section"
            part="article-section"
            href=${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.href}}
            aria-label=${e=>{var t,o,i;return(null===(o=null===(t=e.share)||void 0===t?void 0:t.image)||void 0===o?void 0:o.alt)||(null===(i=e.share)||void 0===i?void 0:i.headlineTitle)}}
            title=${e=>{var t,o,i;return(null===(o=null===(t=e.share)||void 0===t?void 0:t.image)||void 0===o?void 0:o.alt)||(null===(i=e.share)||void 0===i?void 0:i.headlineTitle)}}
            target="_blank"
            data-t="${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.telemetryTag}}"
        >
            <section>
                <div>
                    <div class="line-clamp" part="headline">
                        ${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.headlineTitle}}
                    </div>
                    <msft-attribution>
                        ${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.attribution}}
                        ${(0,$.g)((e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.attributionImg}),T.d` <img
                                class="atr-img"
                                slot="image"
                                src="${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.attributionImg}}"
                                alt="${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.attributionImgAltText}}"
                            />`)}
                    </msft-attribution>
                </div>
                ${(0,$.g)((e=>{var t,o;return null===(o=null===(t=e.share)||void 0===t?void 0:t.image)||void 0===o?void 0:o.src}),T.d` <img
                        class="article-img"
                        src="${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.image.src}}"
                        alt="${e=>{var t;return null===(t=e.share)||void 0===t?void 0:t.image.alt}}"
                    />`)}
            </section>
        </a>
        <hr class="divider" />
        <div class="share-grid">
            ${(0,$.g)((e=>e.copyLinkButtonHandler),T.d` <a
                    class="share-button"
                    part="share-button"
                    aria-label=${e=>e.localizedStrings.copyLinkButtonText}
                    title=${e=>e.localizedStrings.copyLinkButtonText}
                    @click="${e=>e.copyLinkButtonHandler&&e.copyLinkButtonHandler()}"
                    @keypress="${e=>e.copyLinkButtonHandler&&e.copyLinkButtonHandler()}"
                    href="#"
                    data-t="${e=>e.copyLinkButtonTelemetryTag}"
                >
                    <div class="copy-button">
                        ${S.P4}
                    </div>
                    ${e=>e.localizedStrings.copyLinkButtonText}
                </a>`)}
            ${(0,O.rx)((e=>e.shareToList),M)}
        </div>
    </fluent-dialog>
`,styles:(e,t)=>w.i`
    ${A.W} :host {
        --control-corner-radius: 2px;
        --dialog-z-index: 0;
    }

    .dialog a {
        color: inherit;
        outline: none;
        text-decoration: none;
    }

    .dialog a:hover .line-clamp,
    .dialog a:${k.b} .line-clamp {
        text-decoration: underline;
    }

    section {
        display: grid;
        font-size: ${C.sNp};
        font-weight: 600;
        line-height: ${C.vgC};
        margin: 0 24px 20px;
    }

    section div {
        grid-column: 1;
    }

    section div msft-attribution {
        margin-top: 8px;
    }

    section img {
        border-radius: ${C.UWU};
        grid-column: 2;
        justify-self: end;
        margin-inline-start: 16px;
    }

    section img.article-img {
        height: 100px;
        object-fit: cover;
        width: 100px;
    }

    .atr-img {
        border-radius: 0;
        margin-inline-start: 0;
    }

    .copy-button {
        align-items: center;
        border-radius: ${C.UWU};
        display: flex;
        fill: currentcolor;
        height: 30px;
        justify-content: center;
        margin-bottom: 8px;
        width: 30px;
        --elevation: 11; 
        ${x.XC};
    }

    hr.divider {
        border-top: 1px solid ${C.dtw};
    }

    .dialog {
        --dialog-height: var(--share-dialog-height, auto);
        --dialog-width: var(--share-dialog-width, 400);
        position: absolute;
        z-index: var(--share-dialog-z-index);
    }

    .heading {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 1;
        position: relative;
        width: 100%;
    }

    .heading fluent-button svg {
        height: 12px;
        width: 12px;
    }

    .heading span {
        font-size: ${C.mWK};
        font-weight: 600;
        line-height: ${C.yGZ};
        margin-inline-start: 24px;
        margin-bottom: 16px;
        margin-top: 20px;
    }

    .share-button {
        align-items: center;
        background: none;
        border: calc(${C.vxp} * 1px) solid transparent;
        color: inherit;
        cursor: pointer;
        display: flex;
        flex-direction: column;
        font-size: ${C.sNp};
        line-height: ${C.vgC};
        text-decoration: none;
    }

    .share-button:${k.b} {
        border: calc(${C.vxp} * 1px) solid ${C.V0Z};
    }

    .share-button img {
        border-radius: ${C.UWU};
        margin-bottom: 8px;
    }

    .share-grid {
        display: grid;
        grid-gap: 16px;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        margin: 27px 16px;
    }

    .social-button {
        border-radius: 2px;
        height: 32px;
        margin: 0 auto 8px auto;
        position: relative;
        width: 32px;
        --elevation: 11; 
        ${x.XC};
    }

    .social-button img {
        bottom: 0;
        left: 0;
        margin: auto;
        position: absolute;
        right: 0;
        top: 0;
    }
`,shadowOptions:{delegatesFocus:!0}});var P=o(70729),I=o(74045),L=o(39935),B=o(78125),U=o(38156),R=o(60483),H=o(83572),j=o.n(H),F=o(78408),E=o.n(F),z=o(71027),N=o.n(z),G=o(70146),V=o.n(G),W=o(88898),Z=o.n(W);const K=e=>e?`<span class="fill-color-blue">${Z()}</span>`:Z(),X=e=>e?`<span class="fill-color-blue">${V()}</span>`:V(),q=e=>e?`<span class="rotate-icon-down">${E()}</span>`:E(),_=e=>e?`<span class="rotate-icon-down">${j()}</span>`:j();var J=o(56993),Q=o.n(J),Y=o(13493),ee=o(56933),te=o.n(ee),oe=o(59039),ie=o.n(oe),re=o(2788),ne=o.n(re),ae=o(95706),se=o.n(ae),le=o(19628),ce=o(92572),de=o.n(ce),he=o(86775),ue=o.n(he),pe=o(83721),ge=o(99478),ve=o(8114);const me=(e,t,o,i)=>{const r="data:image/svg+xml;charset=UTF-8,";return{[P.us.Email]:{tooltip:(0,ge.WU)(e.socialMediaEmailAriaLabel,e.socialMediaEmailLabel),backgroundColor:"#0078D7",image:{alt:e.socialMediaEmailLabel,src:r+encodeURIComponent('<svg width="16" height="10" viewBox="0 0 16 10" fill="none"><path d="M16 0v.66l-8 4-8-4V0h16ZM8 6.34l8-4V10H0V2.34l8 4Z" fill="#fff"/></svg>')},source:e.socialMediaEmailLabel,target:"_self",href:le.Ld.Format("mailto:?subject={title}&body={body}",{title:encodeURIComponent(o),body:encodeURIComponent((0,ge.WU)(e.shareDialogEmailBodyText,o,t))}),telemetryTag:i&&i[P.us.Email]},[P.us.Facebook]:{tooltip:(0,ge.WU)(e.socialMediaIconsAriaLabel,"Facebook"),backgroundColor:"#4267B2",image:{alt:"Facebook",src:r+encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.12 0a.8.8 0 0 1 .33.07c.11.05.2.11.28.2.09.07.15.17.2.28.05.1.07.21.07.33v14.24a.86.86 0 0 1-.27.62.89.89 0 0 1-.61.26h-4.08V9.8h2.08l.31-2.4h-2.4V5.84c0-.43.1-.73.28-.9.18-.19.5-.28.92-.28h1.29V2.52a18.78 18.78 0 0 0-1.87-.1c-.5 0-.94.07-1.32.22A2.67 2.67 0 0 0 8.75 4.3c-.14.39-.2.83-.2 1.3v1.8H6.46v2.4h2.09V16H.88a.86.86 0 0 1-.34-.07c-.1-.05-.2-.11-.28-.19a1.02 1.02 0 0 1-.19-.28.86.86 0 0 1-.07-.34V.88A.89.89 0 0 1 .88 0h14.24Z" fill="#fff"/></svg>')},source:"Facebook",target:"_blank",href:le.Ld.Format("https://www.facebook.com/sharer.php?u={url}&amp;t={title}",{url:encodeURIComponent(t),title:encodeURIComponent(o)}),telemetryTag:i&&i[P.us.Facebook]},[P.us.LinkedIn]:{tooltip:(0,ge.WU)(e.socialMediaIconsAriaLabel,"LinkedIn"),backgroundColor:"#0083BE",image:{alt:"LinkedIn",src:r+encodeURIComponent(Y.Z)},source:"LinkedIn",target:"_blank",href:le.Ld.Format("https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&source={refererUrl}",{url:encodeURIComponent(t),title:encodeURIComponent(o),refererUrl:location.href}),telemetryTag:i&&i[P.us.LinkedIn]},[P.us.Skype]:{tooltip:(0,ge.WU)(e.socialMediaIconsAriaLabel,"Skype"),backgroundColor:"#33BFFC",image:{alt:"Skype",src:r+encodeURIComponent('<svg width="16" height="16" fill="none"><path d="M15.41 9.3a4.45 4.45 0 0 1 .59 2.22c0 .62-.12 1.2-.35 1.75a4.54 4.54 0 0 1-.96 1.43 4.49 4.49 0 0 1-1.42.95 4.34 4.34 0 0 1-1.75.35 4.48 4.48 0 0 1-2.22-.59 9.44 9.44 0 0 1-.65.09c-.22.02-.43.02-.65.02-.7 0-1.36-.08-2-.26a7.86 7.86 0 0 1-1.8-.76 7.6 7.6 0 0 1-1.52-1.18A7.6 7.6 0 0 1 1.5 11.8 7.86 7.86 0 0 1 .74 10a7.47 7.47 0 0 1-.26-2 8.65 8.65 0 0 1 .1-1.3A4.45 4.45 0 0 1 0 4.47a4.49 4.49 0 0 1 1.3-3.16A4.54 4.54 0 0 1 2.73.34 4.4 4.4 0 0 1 4.48 0a4.48 4.48 0 0 1 2.21.59c.22-.04.44-.07.65-.08A7.27 7.27 0 0 1 10 .75c.64.18 1.24.43 1.8.76a7.37 7.37 0 0 1 1.52 1.17A7.32 7.32 0 0 1 15.25 6a7.27 7.27 0 0 1 .24 2.66c-.01.21-.04.43-.08.65zm-7.38 3.51a6.38 6.38 0 0 0 1.82-.28c.29-.1.55-.23.8-.38a2.68 2.68 0 0 0 1.06-1.3 2.82 2.82 0 0 0 .16-.98c0-.45-.08-.84-.25-1.14a2.27 2.27 0 0 0-.63-.78 3.06 3.06 0 0 0-.9-.49 7.92 7.92 0 0 0-1.04-.3 20.34 20.34 0 0 0-1.03-.22 7.85 7.85 0 0 1-.9-.22 2.06 2.06 0 0 1-.64-.33.67.67 0 0 1-.24-.54c0-.2.05-.38.13-.51A1.01 1.01 0 0 1 6.72 5c.14-.09.3-.15.48-.19a2.81 2.81 0 0 1 1.34.05 2.04 2.04 0 0 1 .94.59l.3.32c.1.1.21.19.32.25.11.07.25.1.4.1.13 0 .25-.01.37-.04a1 1 0 0 0 .3-.16.75.75 0 0 0 .21-.25.8.8 0 0 0 .08-.36c0-.24-.06-.46-.19-.66a2 2 0 0 0-.49-.54 3.34 3.34 0 0 0-.7-.4 4.87 4.87 0 0 0-.77-.3 5.55 5.55 0 0 0-1.44-.22c-.44 0-.88.05-1.31.15-.44.09-.84.25-1.18.47a2.63 2.63 0 0 0-.86.86c-.21.34-.32.78-.32 1.3 0 .37.06.7.16.97a2.13 2.13 0 0 0 1.16 1.22c.28.13.59.24.93.32a86.29 86.29 0 0 0 2.38.6l.35.13c.11.05.21.12.3.2a.81.81 0 0 1 .29.64.96.96 0 0 1-.18.57c-.1.15-.25.28-.42.39a2.07 2.07 0 0 1-.56.23 2.68 2.68 0 0 1-1.46-.05 2.15 2.15 0 0 1-.59-.31 2.47 2.47 0 0 1-.4-.42 5.72 5.72 0 0 0-.3-.41 1.4 1.4 0 0 0-.34-.32.79.79 0 0 0-.47-.13.97.97 0 0 0-.65.24.8.8 0 0 0-.27.63c0 .17.03.33.09.48a2.46 2.46 0 0 0 .94 1.12 4.1 4.1 0 0 0 .9.44 7.27 7.27 0 0 0 1.98.3z" fill="#fff"/></svg>')},source:"Skype",target:"_blank",href:le.Ld.Format("https://web.skype.com/share?url={url}&flow_id={flowid}&source=msn",{url:encodeURIComponent(t),flowid:(0,ve.Z)()}),telemetryTag:i&&i[P.us.Skype]},[P.us.Twitter]:{tooltip:(0,ge.WU)(e.socialMediaIconsAriaLabel,"Twitter"),backgroundColor:"#20A2F2",image:{alt:"Twitter",src:r+encodeURIComponent('<svg width="16" height="14" viewBox="0 0 16 14" fill="none"><path d="M16 2.04a6.61 6.61 0 0 1-1.64 1.7 3.07 3.07 0 0 1 .02.42 9.05 9.05 0 0 1-.83 3.8 8.89 8.89 0 0 1-5.8 5.16 9.74 9.74 0 0 1-5.34.01A9.16 9.16 0 0 1 0 12.03a6.41 6.41 0 0 0 2.94-.32c.7-.24 1.34-.59 1.92-1.05A3.27 3.27 0 0 1 1.8 8.4a6.98 6.98 0 0 0 .61.06c.3 0 .58-.04.86-.12A3.25 3.25 0 0 1 .64 5.1v-.04c.46.26.96.4 1.5.41a3.57 3.57 0 0 1-.62-.53 3.5 3.5 0 0 1-.75-1.4 3.18 3.18 0 0 1 .35-2.45 9.24 9.24 0 0 0 6.76 3.43 2.86 2.86 0 0 1-.08-.75A3.3 3.3 0 0 1 11.08.5c.46 0 .9.1 1.3.27.42.18.78.44 1.1.77a6.65 6.65 0 0 0 2.07-.8 3.18 3.18 0 0 1-1.43 1.81A6.52 6.52 0 0 0 16 2.04Z" fill="#fff"/></svg>')},source:"Twitter",target:"_blank",href:le.Ld.Format("https://twitter.com/share?url={url}&text={title}&original_referer={refererUrl}",{url:encodeURIComponent(t),title:encodeURIComponent(o),refererUrl:location.href}),telemetryTag:i&&i[P.us.Twitter]},[P.us.WhatsApp]:{tooltip:(0,ge.WU)(e.socialMediaIconsAriaLabel,"WhatsApp"),backgroundColor:"#25D366",image:{alt:"WhatsApp",src:r+encodeURIComponent('<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M11.5 9.86c-.72-.36-1.15-.57-1.3-.63-.2-.07-.34-.04-.43.1-.1.16-.3.4-.6.74-.1.12-.25.14-.42.05a7.6 7.6 0 0 1-1.52-.94c-.4-.36-.76-.8-1.06-1.32-.07-.13-.05-.26.09-.39l.28-.33.2-.31c.04-.1.04-.22-.03-.34l-.58-1.4c-.09-.21-.23-.32-.43-.34h-.36c-.2 0-.37.08-.5.24-.45.48-.67 1-.67 1.58 0 .62.25 1.28.77 1.96a8.64 8.64 0 0 0 3.24 2.87c.33.15.7.28 1.09.4.36.12.76.15 1.2.07.2-.02.45-.12.72-.3.3-.19.49-.39.56-.6.16-.45.2-.75.1-.9a1.3 1.3 0 0 0-.36-.21Zm-3.48 4.72c-1.15 0-2.22-.3-3.21-.88l-.23-.14-2.4.64.64-2.34-.15-.23a6.24 6.24 0 0 1-.96-3.38c0-1.74.62-3.22 1.85-4.45a6.1 6.1 0 0 1 4.47-1.86c1.75 0 3.24.62 4.47 1.86a6.09 6.09 0 0 1 1.85 4.47 6.1 6.1 0 0 1-1.86 4.46 6.08 6.08 0 0 1-4.46 1.85Zm5.38-11.7A7.32 7.32 0 0 0 8.03.66c-2.1 0-3.89.74-5.37 2.22A7.32 7.32 0 0 0 .43 8.25c0 1.37.33 2.63 1 3.8L.37 16l4.03-1.05c1.13.61 2.34.92 3.63.92h.01c2.1 0 3.88-.74 5.37-2.23a7.32 7.32 0 0 0 2.23-5.37c0-2.1-.74-3.9-2.23-5.39Z" fill="#fff"/></svg>')},source:"WhatsApp",target:"_blank",href:le.Ld.Format("https://web.whatsapp.com/send?text={url}",{url:encodeURIComponent(t)}),telemetryTag:i&&i[P.us.WhatsApp]}}},fe=(e,t,o,i)=>{switch(e){case be.showMoreGlyph:return t?i?ue():q(!1):ue();case be.showMoreGlyphUndo:return t?i?K(!o&&pe.m):_(!1):K(!o&&pe.m);case be.showFewerGlyph:return t?i?de():q(!0):de();case be.showFewerGlyphUndo:return t?i?X(!o&&pe.m):_(!0):X(!o&&pe.m)}};var be;!function(e){e[e.showMoreGlyph=1]="showMoreGlyph",e[e.showMoreGlyphUndo=2]="showMoreGlyphUndo",e[e.showFewerGlyph=3]="showFewerGlyph",e[e.showFewerGlyphUndo=4]="showFewerGlyphUndo"}(be||(be={}));const ye={name:P.Xb.cardAction,type:U.c9.Module},we={cardAction:{name:P.Xb.cardAction,type:U.c9.Module},articleShare:{name:P.Xb.shareArticle,type:U.c9.Headline,behavior:U.wu.Navigate,content:{headline:P.Xb.shareArticle}},reportCancelButton:{name:P.Xb.cancel,type:U.c9.ActionButton,behavior:U.wu.Cancel,content:{headline:P.Xb.cancel}},muteCancelButton:{name:P.Xb.cancel,type:U.c9.ActionButton,behavior:U.wu.MuteCancel,content:{headline:P.Xb.cancel}},closeButton:{name:P.Xb.closeModule,type:U.c9.ActionButton,behavior:U.wu.Close,content:{headline:P.Xb.closeHeadline}},copyShareButton:{name:P.Xb.copy,type:U.c9.ActionButton,behavior:U.wu.Share,content:{headline:P.Xb.copy}},muteActionButton:{name:P.Xb.muteButton,type:U.c9.ActionButton,behavior:U.wu.Mute,content:{headline:P.Xb.muteButton}},muteDialog:{name:P.Xb.muteConfirmation,type:U.c9.Interaction,behavior:U.wu.Mute,action:U.Aw.View,content:{headline:P.Xb.muteConfirmation}},reportActionButton:{name:P.Xb.reportButton,type:U.c9.ActionButton,behavior:U.wu.Report,content:{headline:P.Xb.reportButton}},reportDialog:{name:P.Xb.reportDialog,type:U.c9.Interaction,behavior:U.wu.Report,action:U.Aw.View,content:{headline:P.Xb.reportDialog}},reportDialogPrivacyStatementLink:{name:P.Xb.reportDialogPrivacyStatement,type:U.c9.ActionButton,behavior:U.wu.Navigate,content:{headline:P.Xb.reportDialogPrivacyStatement}},shareDialog:{name:P.Xb.shareDialog,type:U.c9.Interaction,behavior:U.wu.Share,content:{headline:P.Xb.shareDialog}}};function Ce(e,t,o){const{href:i,headlineTitle:r}=o||{},n=me(t,i,r);return Object.assign(Object.assign({},function(e,t){const o={};return Object.keys(e).forEach((i=>{const r=Object.assign({},e[i]);r.content=Object.assign(Object.assign({},t),r.content),o[i]=new R.D(r).getMetadataTag()})),o}(we,e)),{shareMediaIcons:Object.keys(n).reduce(((t,o)=>(t[o]=function(e,t,o){return new R.D({name:e,behavior:U.wu.Navigate,action:U.Aw.Click,destinationUrl:t,content:Object.assign(Object.assign({},o),{headline:e})}).getMetadataTag()}(n[o].source,i,e),t)),{}),getItemTelemetryTag:xe})}function xe(e,t,o,i,r,n){return new R.D({name:e,type:t,behavior:o,content:Object.assign(Object.assign({},n),{headline:i||e,id:r})}).getMetadataTag()}var ke,Ae=o(12968),Te=o(65620),$e=o(58958),Oe=o(18544),Se=o(88828),Me=o(53909),De=o(44650),Pe=o(16517);!function(e){e.CMS="0",e.SD="5"}(ke||(ke={}));class Ie{static buildShortUrl(e,t){const o=this.getAppId();if(!o)return null;return this.getSharingUrlBase(e.sharingUrl)+(0,ge.WU)(this.shortUrlPathFormat,e.documentType,o,t,e.documentId)}static getAppId(){const{HostPage:e}=(0,Pe.Yq)(),t=(e&&e.verticalKey||"news").toLowerCase();let o=(0,De.Z)(this.AppKeys,t);(-1===o||o>=this.Base36AppIdString.length)&&(o=1);return this.Base36AppIdString.substr(o,1)}static getSharingUrlBase(e){const t=new URL(e,location.origin),o=t.host,i=t.origin+"/";return this.SharingProductionHosts.split("|").indexOf(o)>-1?this.SharingBaseUrlDefault:i}}Ie.SharingBaseUrlDefault="http://a.msn.com/",Ie.shortUrlPathFormat="{0}{1}/{2}/{3}",Ie.SharingProductionHosts="bing.com|www.bing.com|preview.msn.com|www.msn.com",Ie.Base36AppIdString="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",Ie.AppKeys=["finance","news","sports","travel","weather","health","foodanddrink","entertainment","autos","video","tv","music","movies","games","lifestyle","kids","sample","asia","africa","australasia","europe","latinamerica","middleeast","northamerica"];var Le=o(66925),Be=o(85334),Ue=o(9610),Re=o(76858),He=o(9375),je=o(54804),Fe=o(33832),Ee=o(65135),ze=o(18536),Ne=o(62661),Ge=o(14752),Ve=o(35928);class We extends Ue.l{constructor(){super(...arguments),this.isWindowsDashboard="newsAndInterests"===Pe.jG.AppType||"windowsNewsPlus"===Pe.jG.AppType||"winWidgets"===Pe.jG.AppType,this.useFastAnchoredRegion=!1,this.useEnhancedToastMessages=!1,this.onOutsideClick=e=>{var t;const{buttonElement:o,enabled:i}=this.cardActionProps||{},r=e.composedPath()&&e.composedPath()[0];!i||e.target instanceof We||o.contains(e.target)||o.contains(r)||(null===(t=this.actionsMenuRef)||void 0===t?void 0:t.fluentMenu.contains(r))||this.resetCardAction()},this.onKeydown=e=>{if("Escape"===e.key)return void this.resetCardAction(!0);const{enabled:t,openedDialog:o}=this.cardActionProps||{};switch(o){case P.iR.Mute:this.onKeyDownHideStoriesFromPublisher(e);break;case P.iR.Report:this.onKeyDownReportAnIssueDialog(e);break;default:t&&this.onKeyDownCardActionMenu(e)}},this.onKeyDownCardActionMenu=e=>{"Tab"!==e.key?"Space"===e.key&&(this.cardActionProps.openedDialog||e.preventDefault()):this.resetCardAction(!0)},this.onKeyDownHideStoriesFromPublisher=e=>{"Tab"===e.key&&(e.shiftKey?this.shadowRoot.activeElement&&"actionDialogCloseButton"===this.shadowRoot.activeElement.id&&(e.preventDefault(),this.setFocus("actionDialogCancelButton")):this.shadowRoot.activeElement&&"actionDialogCancelButton"===this.shadowRoot.activeElement.id&&(e.preventDefault(),this.setFocus("actionDialogCloseButton")))},this.onKeyDownReportAnIssueDialog=e=>{var t,o;if("Tab"===e.key)if(e.shiftKey){if(this.shadowRoot.activeElement&&"actionDialogCloseButton"===this.shadowRoot.activeElement.id)e.preventDefault(),this.setFocus("actionDialogCancelButton");else if(this.shadowRoot.activeElement&&"actionDialogCancelButton"===this.shadowRoot.activeElement.id){e.preventDefault();(this.isOffensive?this.reportOffensiveDialogOptions&&0===this.reportOffensiveDialogOptions.reportOffensiveDialogNumberOfOptionsChecked:this.reportDialogOptions&&0===this.reportDialogOptions.reportDialogNumberOfOptionsChecked&&0===(null===(o=null===(t=this.reportDialogOptions)||void 0===t?void 0:t.reportDialogFeedbackInput)||void 0===o?void 0:o.trim().length))?this.reportDialogOptions.reportDialogOffensiveContentChecked?this.setFocus("reportOffensiveOtherChecked"):this.setFocus("reportDialogPrivacyStatementLink"):this.setFocus(this.cardActionProps&&this.cardActionProps.actionDialogProps&&this.cardActionProps.actionDialogProps.localizedStrings&&this.cardActionProps.actionDialogProps.localizedStrings.actionButtonText)}}else this.shadowRoot.activeElement&&"actionDialogCancelButton"===this.shadowRoot.activeElement.id&&(e.preventDefault(),this.setFocus("actionDialogCloseButton"))},this.setFocus=e=>{const t=this.shadowRoot.getElementById(e);t&&t.focus()},this.removeFocus=e=>{const t=this.shadowRoot.getElementById(e);t&&t.blur()},this.onDashboardScroll=()=>{const{enabled:e}=this.cardActionProps||{};e&&this.resetCardAction(!0)},this.backgroundColorChangeHandler=()=>{this.backgroundColor=(0,$e.Y)()?Oe.Ve:Oe.P5,this.baseLayerLuminance=(0,$e.Y)()?B.h.DarkMode:B.h.LightMode},this.resetCardAction=e=>{var t,o,i,r,n;if(this.setIsCaptured(null===(t=this.actionsMenuRef)||void 0===t?void 0:t.fluentMenu.children),(null===(o=this.cardActionProps)||void 0===o?void 0:o.openedDialog)===P.iR.Share?this.setIsCaptured(null===(i=this.dialogRef)||void 0===i?void 0:i.shadowRoot.children):this.setIsCaptured(null===(r=this.dialogRef)||void 0===r?void 0:r.children),this.reportDialogOptions=null,this.reportOffensiveDialogOptions=null,this.cardActionProps=null,null===(n=this.referrerButton)||void 0===n||n.setAttribute("aria-expanded","false"),this.$emit("card-action-menu-reset",{referrerButton:this.referrerButton}),e){const e=this.referrerButton;Ae.SO.queueUpdate((()=>{null==e||e.focus()}))}this.referrerButton=null},this.menuItemOnClick=(e,t,o,i=!0)=>{const{article:{id:r,provider:n},onStatusChange:a,refreshFeedCallback:s,updateFeedOnHide:l}=this.cardActionProps;this.PostCardActionEvent(e,t,r,a,n&&n.id,i).then((()=>{t===I.Us.Hide&&l&&s()})),o&&this.referrerButton&&this.referrerButton.focus(),this.resetCardAction()},this.mapDialogProps=async e=>{var t;let o;switch(e){case P.iR.Share:this.shareProps=this.mapShareProps();break;case P.iR.Mute:this.providerIcon=await this.getProviderIcon(),o={muteProps:this.mapMuteProps(),actionDialogProps:this.mapActionDialogProps(e)};break;case P.iR.Report:o={reportProps:this.mapReportProps(),actionDialogProps:this.mapActionDialogProps(e)}}null===(t=this.referrerButton)||void 0===t||t.setAttribute("aria-expanded","false"),this.cardActionProps=Object.assign(Object.assign(Object.assign({},this.cardActionProps),o),{enabled:!1,openedDialog:e,dialogToOpen:null}),requestAnimationFrame((()=>{if(e===P.iR.Report&&this.cardActionProps&&this.cardActionProps.reportProps){const e=Object.keys(this.cardActionProps.reportProps.reportLocalizedStrings)[0];e&&this.removeFocus(e.replace("Text","Checked"))}}))},this.onMute=()=>{const{article:{provider:e},refreshFeedCallback:t,openPersonalizeWithoutRouter:o}=this.cardActionProps;e&&e.id&&((0,L.I)(void 0,this.additionalHeaders).Mute(e.id).then((()=>{const{muteToastButtonText:i}=this.strings,r=new URL(P.hU.replace(P.ej,Pe.jG.CurrentMarket),P.VK),n=(0,He.ku)();var a,s;n&&r.searchParams.set("ocid",n),Le.h.renderToast({id:Be.p.Mute+`-${e.id}`,toastType:Be.p.Mute,buttonText:i,onClick:()=>this.navigateToPersonalize(!0,o),buttonTelemetryContract:(a=i,s=r.href,{name:P.Xb.toastButton,type:U.c9.ActionButton,content:{headline:a},action:U.Aw.Click,destinationUrl:s}),inputText:e.name,expirationInMs:P.HI}),setTimeout((()=>{t()}),500)})),this.resetCardAction())},this.navigateToPersonalize=(e,t,o)=>{const{muteToastUsingPersonalize:i,oneRiverInterestsPivotInfo:r}=this.config,{context:n}=this.cardActionProps||{},a=o?P.OZ:P.hU,s=new URL(a.replace(P.ej,Pe.jG.CurrentMarket),P.VK),l=(0,He.ku)();l&&s.searchParams.set("ocid",l);const c={isRequestFromMutePublisherToast:e,noScroll:!0,pageType:i?P.y4.personalize:P.y4.myInterests};if(t)r?(0,Ne.l)(n&&n.pivotId).switchPivot({pivotId:r.pivotId,configIndexHref:r.configIndexHref,configIndexRef:r.configIndexRef,context:c,telemetryPageName:c.pageType,display:r.displayName}):window.open(s.href,"_blank");else if(Ve.Nd.getRouteById("personalize"))Ve.Nd.navigate("personalize",c);else{const e=new URL(window.location.href);e.pathname=`/${Pe.jG.CurrentMarket}/feed/personalize`,window.history.pushState(Object.assign(Object.assign({},c),{shouldPush:!0}),"",e.toString())}this.resetCardAction()},this.onReport=e=>{const{article:{id:t,headlineTitle:o,abstract:i,image:r,href:n},cardStatus:a,onStatusChange:s,updateFeedOnHide:l,refreshFeedCallback:c}=this.cardActionProps,{reportDialogDuplicateArticleChecked:d,reportDialogOutdatedArticleChecked:h,reportDialogBlurryImageChecked:u,reportDialogOffensiveContentChecked:p,reportDialogMisleadingTitleChecked:g,reportDialogNotRelevantToMeChecked:v,reportDialogFeedbackInput:m}=this.reportDialogOptions,{reportOffensiveAdultImageChecked:f,reportOffensiveRacyImageChecked:b,reportOffensiveTextProfanityChecked:y,reportOffensiveSubstanceAbuseChecked:w,reportOffensiveViolenceChecked:C,reportOffensiveOtherChecked:x}=this.reportOffensiveDialogOptions,k=this.cardActionProps&&this.cardActionProps.parentTelemetryObject&&this.cardActionProps.parentTelemetryObject.contract,A=k&&k.content&&k.content.type;let T;T=this.getFeedbackTags();const $={AdultImage:f,RacyImage:b,TextProfanity:y,SubstanceAbuse:w,Violence:C,Other:x};this.PostCardActionEvent(a^I.O7.hide^I.O7.hidden^I.O7.report,I.Us.Hide,t,s,void 0,!0).then((()=>{l&&c()})),(0,L.I)(void 0,this.additionalHeaders).Report(t,T,m,o,A,i,r,n,$),e&&(T={Duplicate:d,Outdated:h,BlurryImage:u,NotRelevant:v,Offensive:p,Misleading:g},(0,L.I)(void 0,this.additionalHeaders).reportNonCMS(t,T,m,e)),this.resetCardAction(l)},this.onArticleReportChoosing=(e,t)=>{if(t instanceof MouseEvent&&"click"===t.type||t instanceof KeyboardEvent&&(t.code===Fe.kL||"Space"===t.code)){const t=this.reportDialogOptions;this.reportDialogOptions=Object.assign(Object.assign({},this.reportDialogOptions),{[e]:!t[e],reportDialogNumberOfOptionsChecked:t.reportDialogNumberOfOptionsChecked+(t[e]?-1:1)})}},this.onArticleReportOffensiveChoosing=(e,t)=>{if(t instanceof MouseEvent&&"click"===t.type||t instanceof KeyboardEvent&&(t.code===Fe.kL||"Space"===t.code)){const t=this.reportOffensiveDialogOptions;this.reportOffensiveDialogOptions=Object.assign(Object.assign({},this.reportOffensiveDialogOptions),{[e]:!t[e],reportOffensiveDialogNumberOfOptionsChecked:t.reportOffensiveDialogNumberOfOptionsChecked+(t[e]?-1:1)})}},this.setReportDialogFeedbackInput=e=>{this.reportDialogOptions=Object.assign(Object.assign({},this.reportDialogOptions),{reportDialogFeedbackInput:e})},this.getReportDialogActionTelemetryTag=()=>{var e,t,o;const i=this.getFeedbackTags();Object.keys(i).filter((e=>!i[e])).map((e=>{delete i[e]}));const r=this.reportDialogOptions.reportDialogFeedbackInput,n=null===(e=this.cardActionProps)||void 0===e?void 0:e.article.headlineTitle,a=null===(t=this.cardActionProps)||void 0===t?void 0:t.article.id;return function(e,t,o,i,r){return new R.D({name:P.Xb.reportButton,type:U.c9.ActionButton,behavior:U.wu.Report,action:U.Aw.Submit,content:Object.assign({headline:o,id:i,type:U.uH.Article},r),ext:{fields:{checkedReportOption:e,feedbackText:t}}}).getMetadataTag()}(i,r,n,a,null===(o=this.cardActionProps)||void 0===o?void 0:o.parentTelemetryObject.contract.content)},this.providerIcons={},this.getProviderIcon=async()=>{const{provider:e}=this.cardActionProps.article,t=e&&e.id;let o=this.providerIcons[t];if(!o){const e=await(0,L.I)(void 0,this.additionalHeaders).GetProviderIcon(t);o=e&&(0,Me.mL)(e,{width:64,height:64,format:Me.D3.JPG,enableDpiScaling:!1}),this.providerIcons[t]=o}return o},this.getFeedbackTags=()=>({DisplayIssue:this.reportDialogOptions.reportDialogDuplicateArticleChecked,Duplicate:this.reportDialogOptions.reportDialogOutdatedArticleChecked,InaccurateOrMisleading:this.reportDialogOptions.reportDialogBlurryImageChecked,OffensiveOrAdult:this.reportDialogOptions.reportDialogNotRelevantToMeChecked,Other:this.reportDialogOptions.reportDialogOffensiveContentChecked,Outdated:this.reportDialogOptions.reportDialogMisleadingTitleChecked})}experienceConnected(){this.cardActionTelemetryTags=new R.D(ye).getMetadataTag(),this.backgroundColor=(0,$e.Y)()?Oe.Ve:Oe.P5,this.baseLayerLuminance=(0,$e.Y)()?B.h.DarkMode:B.h.LightMode,window.addEventListener("dashboardscroll",this.onDashboardScroll,{passive:!0}),Ge.A.singleMark("CardActionWC.Connected")}shadowDomPopulated(){this.setAttribute("data-t",this.cardActionTelemetryTags),(0,Se.Bn)().subscribe(this.resetCardAction.bind(this)),document.addEventListener("mousedown",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown),this.cardActionRef&&(this.cardActionRef.ref=this.cardAction),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",this.backgroundColorChangeHandler)}disconnectedCallback(){(0,Se.Bn)().unsubscribe(this.resetCardAction.bind(this)),document.removeEventListener("mousedown",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown),window.matchMedia("(prefers-color-scheme: dark)").removeEventListener("change",this.backgroundColorChangeHandler),window.removeEventListener("dashboardscroll",this.onDashboardScroll)}getExperienceType(){return g.x.cardActionWC}setIsCaptured(e){e&&Array.from(e).forEach((e=>{var t;if((null===(t=e.children)||void 0===t?void 0:t.length)>1)this.setIsCaptured(e.children);else{const t=ze.u.get(e);t&&(t.isCaptured=!1)}}))}getMenuItems(){const{actionsArrayOverride:e,isUserStoryCardAction:t,actionsFunctionOverride:o}=this.cardActionProps;return e?this.mapActionsToHandler(e):t?this.mapActionsToHandler(this.config.availableSavedStoriesActions||[I.Us.Share,I.Us.Save]):"function"==typeof o?o():this.mapActionsToHandler(this.config.availableActions)}mapActionsToHandler(e){const{cardStatus:t,article:o,openPersonalizeWithoutRouter:i,isReactionsOptedOut:r}=this.cardActionProps,{enableBlackOrWhiteFilledShowMoreIcon:n,isForQna:a,useArrowIcons:s}=this.config,l=((e,t=!1,o,i,r)=>{return{[I.Us.Save]:{title:e.cardActionMenuItemSave,glyph:ie(),undoGlyph:(n=!o&&pe.m,n?`<span class="fill-color-blue">${N()}</span>`:N()),onClickPropKey:I.Us.Save,undoText:e.cardActionMenuItemUndoSave,key:I.Us.Save,telemetryName:P.Xb.saveMenuItem,telemetryBehavior:U.wu.Save,telemetryType:U.c9.ActionButton,undoTelemetryType:U.c9.ActionButton,undoTelemetryBehavior:U.wu.UndoSave},[I.Us.Share]:{title:e.cardActionMenuItemShare,glyph:ne(),onClickPropKey:I.Us.Save,key:I.Us.Share,telemetryName:P.Xb.shareDialog,telemetryBehavior:U.wu.Share,telemetryType:U.c9.ActionButton},[I.Us.ShowMore]:{title:e.cardActionMenuItemShowMore,glyph:fe(be.showMoreGlyph,i,o,r),undoGlyph:fe(be.showMoreGlyphUndo,i,o,r),onClickPropKey:I.Us.ShowMore,undoText:e.cardActionMenuItemUndoShowMore,key:I.Us.ShowMore,telemetryName:P.Xb.showMoreMenuItem,telemetryBehavior:U.wu.Like,telemetryType:U.c9.ActionButton,telemetryContentHeadline:P.Xb.showMoreHeadline,undoTelemetryType:U.c9.ActionButton,undoTelemetryBehavior:U.wu.Unlike},[I.Us.ShowFewer]:{title:e.cardActionMenuItemShowFewer,glyph:fe(be.showFewerGlyph,i,o,r),undoGlyph:fe(be.showFewerGlyphUndo,i,o,r),onClickPropKey:I.Us.ShowFewer,undoText:e.cardActionMenuItemUndoShowFewer,key:I.Us.ShowFewer,telemetryName:P.Xb.showFewerMenuItem,telemetryType:U.c9.ActionButton,telemetryContentHeadline:P.Xb.showFewerHeadline,telemetryBehavior:U.wu.Dislike,undoTelemetryType:U.c9.ActionButton,undoTelemetryBehavior:U.wu.Undislike},[I.Us.Hide]:{title:t?e.cardActionMenuItemHideQna:e.cardActionMenuItemHide,glyph:te(),onClickPropKey:I.Us.Save,key:I.Us.Hide,telemetryName:P.Xb.hideMenuItem,telemetryBehavior:U.wu.Hide,telemetryType:U.wu.Hide,telemetryContentHeadline:P.Xb.hideHeadline,undoTelemetryBehavior:U.wu.Unpin},[I.Us.Mute]:{title:e.cardActionMenuItemMute,glyph:te(),onClickPropKey:I.Us.Save,key:I.Us.Mute,telemetryName:P.Xb.muteMenuItem,telemetryBehavior:U.wu.Mute,telemetryType:U.wu.Mute},[I.Us.Report]:{title:e.cardActionMenuItemReport,glyph:Q(),onClickPropKey:I.Us.Report,key:I.Us.Report,telemetryName:P.Xb.reportMenuItem,telemetryBehavior:U.wu.Report,telemetryType:U.c9.ActionButton,telemetryContentHeadline:P.Xb.reportHeadline},[I.Us.ReportAd]:{title:e.cardActionMenuItemReportAd,glyph:Q(),onClickPropKey:I.Us.ReportAd,key:I.Us.ReportAd,telemetryName:P.Xb.reportAdMenuItem,telemetryBehavior:U.wu.ReportAd,telemetryType:U.c9.ActionButton,telemetryContentHeadline:P.Xb.reportAdHeadline},[I.Us.ManageInterests]:{title:e.cardActionMenuItemManageInterests,glyph:se(),onClickPropKey:I.Us.ManageInterests,key:I.Us.ManageInterests,telemetryName:P.Xb.manageInterestsMenuItem,telemetryBehavior:U.wu.Navigate,telemetryType:U.c9.ActionButton,telemetryContentHeadline:P.Xb.manageInterestsMenuItem,isNavigation:!0},[I.Us.AdPrivacy]:{title:null==e?void 0:e.adSettingsButtonText,glyph:'<svg width="12" height="12" viewBox="0 0 12 12" fill="none"><path d="M1.04 0c.63 0 1.07.3 1.52.54.38.18.76.42 1.2.6a292.9 292.9 0 0 1 6.08 3.18c.63.3 1.45.6 1.9 1.14.12.18.31.42.25.72-.2.66-1.08.9-1.65 1.2L6.1 9.6c-.5.3-1.26.84-1.9.42-.25-.12-.38-.24-.44-.42-.06-.24 0-.54 0-.78V6.9c0-.54-.06-.96.32-1.2.12-.06.38-.12.57-.06.63.24.44 1.32.44 2.16v.66c1.08-.54 2.15-1.08 3.23-1.56.38-.18 1-.36 1.14-.84.12-.54-1.08-.96-1.46-1.14L3.63 2.58C3.32 2.4 2.5 1.8 2 1.98c-.2.06-.32.24-.32.36-.06.24-.06.6-.06.9V8.4c0 .48-.07 1.08.12 1.38.45.6 1.46-.48 1.78.48.06.24-.07.48-.2.6-.25.36-1.39.9-1.83 1.02-.12.06-.44.12-.63.12-1.08-.18-.82-1.8-.82-3V3.06c0-.9-.13-2.1.25-2.64.19-.3.38-.3.76-.42Zm3.29 3.9c.95 0 1.01 1.14.13 1.32-.51.06-.89-.42-.76-.84.12-.3.31-.36.63-.48Z" fill="#00AECD"/></svg>',onClickPropKey:I.Us.AdPrivacy,key:I.Us.AdPrivacy,telemetryName:P.Xb.adPrivacy,telemetryBehavior:U.wu.Navigate,telemetryType:U.c9.ActionButton,telemetryContentHeadline:P.Xb.adPrivacy,isNavigation:!0}};var n})(this.strings,a,n,s,r);return e.map((e=>{if(e===I.Us.Divider)return{isDivider:!0};const r=l[e],n=null==o?void 0:o.id,a=null==o?void 0:o.privacyUrl;switch(e){case I.Us.Save:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n,t&&(t&I.O7.saved)>0)),{onClick:()=>this.menuItemOnClick(t^I.O7.saved,e,!0)});case I.Us.Share:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n)),{onClick:()=>this.mapDialogProps(P.iR.Share)});case I.Us.ShowMore:{const o=t&I.O7.showFewer?t^I.O7.showMore^I.O7.showFewer:t^I.O7.showMore;return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n,t&&(t&I.O7.showMore)>0)),{onClick:()=>this.menuItemOnClick(o,e,!0)})}case I.Us.ShowFewer:{const o=t&I.O7.showMore?t^I.O7.showMore^I.O7.showFewer:t^I.O7.showFewer;return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n,t&&(t&I.O7.showFewer)>0)),{onClick:()=>{const t=!!this.config.displayToastForShowFewerAction||!this.cardActionProps.cardSize;this.menuItemOnClick(o,e,!0,t)}})}case I.Us.Hide:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n)),{onClick:()=>this.menuItemOnClick(t^I.O7.hide,e,!1)});case I.Us.Mute:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n,null,(0,ge.WU)(r.title,o.provider.name))),{onClick:async()=>{"_1x_1y"!==this.cardActionProps.cardSize&&this.config.enableInstantFeedUpdateOnMute&&("windows"===Pe.jG.AppType||"edgeChromium"===Pe.jG.AppType||this.isWindowsDashboard)?this.menuItemOnClick(t^I.O7.mute^I.O7.hidden,e,!1,!1):(await this.mapDialogProps(P.iR.Mute),await(0,Re.y)(),this.actionButtonInActionDialog&&this.actionButtonInActionDialog.focus())}});case I.Us.Report:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(Object.assign(Object.assign({},r),{telemetryContentHeadline:o.headlineTitle}),n)),{onClick:()=>this.mapDialogProps(P.iR.Report)});case I.Us.ReportAd:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n)),{onClick:()=>this.menuItemOnClick(t^I.O7.hide,e,!1)});case I.Us.ManageInterests:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(Object.assign(Object.assign({},r),{telemetryContentHeadline:o.headlineTitle}),n)),{dataCustomHandled:!0,onClick:e=>{e&&Ee.M0.sendActionEvent(e.target),this.navigateToPersonalize(!1,i,!0)}});case I.Us.AdPrivacy:return Object.assign(Object.assign({},this.mapActionToMenuItemProps(r,n)),{onClick:e=>{e&&Ee.M0.sendActionEvent(e.target),window.open(a)}});default:return this.mapActionToMenuItemProps(r,n)}}))}get isOffensive(){return this.reportDialogOptions&&this.reportDialogOptions.reportDialogOffensiveContentChecked&&this.config.enableOffensiveContentReport}mapActionToMenuItemProps(e,t,o,i){var r,n;const a=o?e.undoText:e.title,s=o?e.undoGlyph:e.glyph,l=o?`Undo${e.telemetryName}`:e.telemetryName,c=o?e.undoTelemetryType:e.telemetryType,d=o?e.undoTelemetryBehavior:e.telemetryBehavior,h=i||e.telemetryContentHeadline,u=this.telemetryTags.getItemTelemetryTag(l,c,d,h,t,null===(n=null===(r=this.cardActionProps)||void 0===r?void 0:r.parentTelemetryObject)||void 0===n?void 0:n.contract.content);return{id:e.key,title:i||a,glyph:s,telemetryTag:u,isNavigation:e.isNavigation}}mapShareProps(){var e,t;const{id:o,href:i,headlineTitle:r,provider:n,image:a}=this.cardActionProps.article,{enableShareCopyLink:s,localizedStrings:l,shareSocialMedia:c}=this.config,{cardActionMenuItemShare:d,shareDialogCopyButtonText:h,shareDialogLinkCopiedButtonText:u,dialogCloseButtonText:p,dialogAriaText:g}=l,v=Ie.buildShortUrl({documentId:o,sharingUrl:i,documentType:ke.CMS},je.Al.Locale),m=me(this.config.localizedStrings,v,r,this.telemetryTags.shareMediaIcons);return{localizedStrings:{closeButtonText:p,copyLinkButtonText:s&&h,dialogHeadline:d,dialogAriaText:g},closeButtonTelemetryTag:this.telemetryTags.closeButton,copyLinkButtonHandler:s?()=>{navigator.clipboard.writeText(v),this.shareProps=Object.assign(Object.assign({},this.shareProps),{localizedStrings:Object.assign(Object.assign({},this.shareProps.localizedStrings),{copyLinkButtonText:u})})}:null,copyLinkButtonTelemetryTag:this.telemetryTags.copyShareButton,linkCopiedButtonText:s&&u,share:{attribution:null==n?void 0:n.name,attributionImg:(0,Me.mL)(null===(e=null==n?void 0:n.image)||void 0===e?void 0:e.src,{width:16,height:16,format:Me.D3.PNG,enableDpiScaling:!1}),attributionImgAltText:(null===(t=null==n?void 0:n.image)||void 0===t?void 0:t.alt)||(null==n?void 0:n.name),headlineTitle:r,image:{alt:(null==a?void 0:a.alt)||r,src:(0,Me.mL)(a.src,{width:100,height:100,enableDpiScaling:!1,quality:90})},href:i,telemetryTag:this.telemetryTags.articleShare},shareToList:null==c?void 0:c.map((e=>m[e]))}}mapMuteProps(){const{article:{provider:e}}=this.cardActionProps,{muteDialogRefreshBodyMessage:t,personalizeTabName:o}=this.strings;return{dialogContent:t,personalizeTabName:o,providerName:null==e?void 0:e.name}}mapReportProps(){const{reportDialogOffensiveContentText:e,reportDialogMisleadingTitleText:t,reportDialogOutdatedArticleText:o,reportDialogDuplicateArticleText:i,reportDialogNotRelevantToMeText:r,reportDialogBlurryImageText:n,reportDialogFeedbackText:a,reportDialogFeedbackDisclaimerText:s,reportDialogPrivacyStatementLinkText:l,reportOffensiveAdultImageText:c,reportOffensiveRacyImageText:d,reportOffensiveTextProfanityText:h,reportOffensiveSubstanceAbuseText:u,reportOffensiveViolenceText:p,reportOffensiveOtherText:g}=this.strings;return this.reportDialogOptions={reportDialogNotRelevantToMeChecked:!1,reportDialogBlurryImageChecked:!1,reportDialogMisleadingTitleChecked:!1,reportDialogOutdatedArticleChecked:!1,reportDialogDuplicateArticleChecked:!1,reportDialogOffensiveContentChecked:!1,reportDialogNumberOfOptionsChecked:0,reportDialogFeedbackInput:""},this.reportOffensiveDialogOptions={reportOffensiveAdultImageChecked:!1,reportOffensiveRacyImageChecked:!1,reportOffensiveTextProfanityChecked:!1,reportOffensiveSubstanceAbuseChecked:!1,reportOffensiveViolenceChecked:!1,reportOffensiveOtherChecked:!1,reportOffensiveDialogNumberOfOptionsChecked:0},{reportLocalizedStrings:{reportDialogNotRelevantToMeText:r,reportDialogBlurryImageText:n,reportDialogMisleadingTitleText:t,reportDialogOutdatedArticleText:o,reportDialogDuplicateArticleText:i,reportDialogOffensiveContentText:e},reportFeedbackLocalizedStrings:{reportDialogFeedbackText:a,reportDialogFeedbackDisclaimerText:s,reportDialogPrivacyStatementLinkText:l},reportOffensiveLocalizedStrings:{reportOffensiveAdultImageText:c,reportOffensiveRacyImageText:d,reportOffensiveTextProfanityText:h,reportOffensiveSubstanceAbuseText:u,reportOffensiveViolenceText:p,reportOffensiveOtherText:g},getReportDialogActionTelemetryTag:this.getReportDialogActionTelemetryTag}}mapActionDialogProps(e){const{dialogCancelButtonText:t,dialogCloseButtonText:o,dialogAriaText:i}=this.strings,r={cancelButtonText:t,closeButtonAriaLabel:o,closeButtonTitleLabel:o,dialogAriaText:i};switch(e){case P.iR.Mute:{const{provider:e}=this.cardActionProps.article,{muteDialogButtonCancelAriaLabel:t,muteDialogButtonConfirmAriaLabel:o,muteDialogConfirmButtonText:i,cardActionMenuItemMute:n}=this.strings;return{actionButtonCallback:this.onMute,cancelButtonCallback:()=>this.resetCardAction(!0),localizedStrings:Object.assign(Object.assign({},r),{actionButtonAriaLabel:o,actionButtonText:i,actionButtonTitleLabel:o,cancelButtonAriaLabel:t,cancelButtonTitleLabel:t,dialogHeadline:(0,ge.WU)(n,null==e?void 0:e.name)}),dialogTelemetryTag:this.telemetryTags.muteDialog,actionButtonTelemetryTag:this.telemetryTags.muteActionButton,cancelButtonTelemetryTag:this.telemetryTags.muteCancelButton}}case P.iR.Report:{const{reportDialogButtonCancelAriaLabel:e,reportDialogSaveAriaLabel:t,reportDialogSaveButtonText:o,cardActionMenuItemReport:i}=this.strings;return{actionButtonCallback:()=>this.onReport(this.config.isForQna?"Qna":this.cardActionProps.ocvVertical),cancelButtonCallback:()=>this.resetCardAction(!0),localizedStrings:Object.assign(Object.assign({},r),{actionButtonAriaLabel:t,actionButtonText:o,actionButtonTitleLabel:t,cancelButtonAriaLabel:e,cancelButtonTitleLabel:e,dialogHeadline:i,dialogAriaText:i}),dialogTelemetryTag:this.telemetryTags.reportDialog,actionButtonTelemetryTag:this.telemetryTags.reportActionButton,cancelButtonTelemetryTag:this.telemetryTags.reportCancelButton}}}}PostCardActionEvent(e,t,o,i,r,n){return(0,L.I)(void 0,this.additionalHeaders).PostCardActionEvent(e,t,o,i,null,r,n,this.referrerButton,5e3,this.useEnhancedToastMessages,this.strings)}updateCardActionProps(e,t){var o,i,r;this.additionalHeaders=t;const{buttonElement:n,enabled:a,article:s,dialogToOpen:l}=e;if(this.cardActionProps&&this.cardActionProps.buttonElement===n)this.resetCardAction();else if(this.telemetryTags=Ce(null===(o=null==e?void 0:e.parentTelemetryObject)||void 0===o?void 0:o.contract.content,null===(i=this.config)||void 0===i?void 0:i.localizedStrings,s),this.cardActionProps=Object.assign(Object.assign({},e),{buttonElement:n,enabled:a}),this.referrerButton=n,null===(r=this.referrerButton)||void 0===r||r.setAttribute("aria-expanded","true"),l){const e=l;this.mapDialogProps(e)}else a&&(this.actionsMenuItems=s&&this.getMenuItems())}}(0,m.gn)([Te.Lj],We.prototype,"backgroundColor",void 0),(0,m.gn)([f.LO],We.prototype,"baseLayerLuminance",void 0),(0,m.gn)([(0,Te.Lj)({mode:"boolean"})],We.prototype,"isWindowsDashboard",void 0),(0,m.gn)([f.LO],We.prototype,"cardActionProps",void 0),(0,m.gn)([f.LO],We.prototype,"isLinkCopied",void 0),(0,m.gn)([f.LO],We.prototype,"referrerButton",void 0),(0,m.gn)([f.LO],We.prototype,"useFastAnchoredRegion",void 0),(0,m.gn)([f.LO],We.prototype,"reportDialogOptions",void 0),(0,m.gn)([f.LO],We.prototype,"reportOffensiveDialogOptions",void 0),(0,m.gn)([f.LO],We.prototype,"shareProps",void 0),(0,m.gn)([f.LO],We.prototype,"useEnhancedToastMessages",void 0);var Ze=o(58952),Ke=o(33763),Xe=o(545),qe=o(90282),_e=o(19456);const Je=T.d`
    <div>
        ${(0,$.g)((e=>e.providerIcon),T.d`
            <div class="mute-dialog-img">
                <img src=${e=>e.providerIcon} alt=${e=>e.cardActionProps&&e.cardActionProps.muteProps&&e.cardActionProps.muteProps.providerName}>
            </div>
        `)}
        <div class="mute-dialog-content">
            <p :innerHTML=${e=>{var t,o,i;return(0,ge.WU)(null===(t=e.cardActionProps)||void 0===t?void 0:t.muteProps.dialogContent,"<b>"+(null===(o=e.cardActionProps)||void 0===o?void 0:o.muteProps.providerName)+"</b>","<b>"+_e.Z+(null===(i=e.cardActionProps)||void 0===i?void 0:i.muteProps.personalizeTabName)+"</b>")}}></p>
        </div>
    </div>
`,Qe=T.d`
    <fluent-checkbox
        id=${e=>e}
        class="input-option ${(e,t)=>{var o;return(null===(o=t.parent.reportDialogOptions)||void 0===o?void 0:o[e])?"checked":""}}"
        @click=${(e,t)=>t.parent.onArticleReportChoosing(e,t.event)}
        @keypress=${(e,t)=>t.parent.onArticleReportChoosing(e,t.event)}
        aria-checked="${(e,t)=>{var o;return null===(o=t.parent.reportDialogOptions)||void 0===o?void 0:o[e]}}"
    >
        ${(e,t)=>{var o;return null===(o=t.parent.cardActionProps)||void 0===o?void 0:o.reportProps.reportLocalizedStrings[e.replace("Checked","Text")]}}
    </fluent-checkbox>
`,Ye=T.d`
    ${(e,t)=>{var o,i;return(null===(i=null===(o=t.parent.cardActionProps)||void 0===o?void 0:o.reportProps)||void 0===i?void 0:i.reportOffensiveLocalizedStrings[e.replace("Checked","Text")])?T.d` <fluent-checkbox
            id=${e=>e}
            class="input-offensive-option ${(e,t)=>{var o;return(null===(o=t.parent.reportOffensiveDialogOptions)||void 0===o?void 0:o[e])?"checked":""}}"
            @click=${(e,t)=>t.parent.onArticleReportOffensiveChoosing(e,t.event)}
            @keypress=${(e,t)=>t.parent.onArticleReportOffensiveChoosing(e,t.event)}
            aria-checked="${(e,t)=>{var o;return null===(o=t.parent.reportOffensiveDialogOptions)||void 0===o?void 0:o[e]}}"
        >
            ${(e,t)=>{var o,i;return null===(i=null===(o=t.parent.cardActionProps)||void 0===o?void 0:o.reportProps)||void 0===i?void 0:i.reportOffensiveLocalizedStrings[e.replace("Checked","Text")]}}
        </fluent-checkbox> `:null}}
`,et=T.d`
    <div class="report-dialog-content-offensive">
        ${(0,O.rx)((e=>{var t;return e.cardActionProps&&e.cardActionProps.reportProps&&e.cardActionProps.reportProps.reportOffensiveLocalizedStrings&&Object.keys(null===(t=e.cardActionProps)||void 0===t?void 0:t.reportProps.reportOffensiveLocalizedStrings).map((e=>e.substr(0,e.length-4).concat("Checked")))}),Ye)}
    </div>
`,tt=T.d`
    ${(0,$.g)((e=>!e.isOffensive),T.d`
        <div class="report-dialog-content">
            ${(0,O.rx)((e=>{var t;return e.cardActionProps&&e.cardActionProps.reportProps&&e.cardActionProps.reportProps.reportLocalizedStrings&&Object.keys(null===(t=e.cardActionProps)||void 0===t?void 0:t.reportProps.reportLocalizedStrings).map((e=>e.replace("Text","Checked")))}),Qe)}
            <fluent-text-area
                class="feedback-inputbox"
                :value=${e=>{var t;return null===(t=e.reportDialogOptions)||void 0===t?void 0:t.reportDialogFeedbackInput}}
                @input=${(e,t)=>e.setReportDialogFeedbackInput(t.event.target.value)}
                placeholder=${e=>{var t,o;return null===(o=null===(t=e.cardActionProps)||void 0===t?void 0:t.reportProps.reportFeedbackLocalizedStrings)||void 0===o?void 0:o.reportDialogFeedbackText}}
                aria-required="false"
            >
            </fluent-text-area>
            <div class="feedback-footer">
                <div class="feedback-disclaimer">
                    ${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.reportProps.reportFeedbackLocalizedStrings.reportDialogFeedbackDisclaimerText}}
                </div>
                <fluent-anchor
                    appearance="lightweight"
                    href=${P.f8}
                    target="_blank"
                    id="reportDialogPrivacyStatementLink"
                    data-t="${e=>e.telemetryTags.reportDialogPrivacyStatementLink}"
                >
                    ${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.reportProps.reportFeedbackLocalizedStrings.reportDialogPrivacyStatementLinkText}}
                </fluent-anchor>
            </div>
        </div>`)}
    ${(0,$.g)((e=>e.isOffensive),et)}
`;qe.q;const ot=T.d`
    <msn-action-dialog 
        ${(0,Ze.i)("dialogRef")}
        class="action-dialog"
        headline="${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.dialogHeadline}}"
        aria-label="${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.dialogHeadline}}"
        @action-dialog-dismiss=${e=>e.resetCardAction(!0)}
        data-t="${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.dialogTelemetryTag}}"
        >
        ${(0,$.g)((e=>{var t;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.openedDialog)===P.iR.Mute}),Je)}
        ${(0,$.g)((e=>{var t;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.openedDialog)===P.iR.Report}),tt)}
        <div class="action-dialog-controls-container">
            <fluent-button
                class="action-dialog-control-buttons"
                slot="action-button"
                appearance="accent"
                tabindex="0"
                id="${e=>e.cardActionProps&&e.cardActionProps.actionDialogProps&&e.cardActionProps.actionDialogProps.localizedStrings&&e.cardActionProps.actionDialogProps.localizedStrings.actionButtonText}"
                ${(0,Ze.i)("actionButtonInActionDialog")} 
                ?disabled="${e=>{var t,o,i,r;return e.isOffensive?0===(null===(t=e.reportOffensiveDialogOptions)||void 0===t?void 0:t.reportOffensiveDialogNumberOfOptionsChecked):0===(null===(o=e.reportDialogOptions)||void 0===o?void 0:o.reportDialogNumberOfOptionsChecked)&&0===(null===(r=null===(i=e.reportDialogOptions)||void 0===i?void 0:i.reportDialogFeedbackInput)||void 0===r?void 0:r.trim().length)}}"
                @click=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.actionButtonCallback()}}
                aria-label=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.actionButtonAriaLabel}}
                role="button"
                title=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.actionButtonTitleLabel}}
                data-t="${e=>{var t,o,i;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.openedDialog)===P.iR.Report?null===(o=e.cardActionProps)||void 0===o?void 0:o.reportProps.getReportDialogActionTelemetryTag():null===(i=e.cardActionProps)||void 0===i?void 0:i.actionDialogProps.actionButtonTelemetryTag}}"
            >
                <span>${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.actionButtonText}}</span>
            </fluent-button>
            <fluent-button
                class="action-dialog-control-buttons"
                slot="cancel-button"
                id="actionDialogCancelButton"
                tabindex="0"
                @click=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.cancelButtonCallback()}}
                aria-label=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.cancelButtonAriaLabel}}
                role="button"
                title=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.cancelButtonTitleLabel}}
                data-t="${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.cancelButtonTelemetryTag}}"
            >
                <span>${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.cancelButtonText}}</span>
            </fluent-button>
        </div>
        <fluent-button
            slot="close-button"
            appearance="stealth"
            tabindex="0"
            id="actionDialogCloseButton"
            @click=${e=>e.resetCardAction(!0)}
            aria-label=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.closeButtonAriaLabel}}
            role="button"
            title=${e=>{var t;return null===(t=e.cardActionProps)||void 0===t?void 0:t.actionDialogProps.localizedStrings.closeButtonTitleLabel}}
            data-t="${e=>e.telemetryTags.closeButton}"
        >
            ${Xe.Z}
        </fluent-button>
    </msn-action-dialog>
`,it=T.d`
    <msft-share-dialog
        ${(0,Ze.i)("dialogRef")}
        class="share-dialog"
        @share-dialog-dismiss="${(e,t)=>e.resetCardAction(!0)}"
        :shareToList=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.shareToList}}
        :share=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.share}}
        :linkCopiedButtonText=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.linkCopiedButtonText}}
        :copyLinkButtonTelemetryTag=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.copyLinkButtonTelemetryTag}}
        :copyLinkButtonHandler=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.copyLinkButtonHandler}}
        :closeButtonTelemetryTag=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.closeButtonTelemetryTag}}
        :localizedStrings=${e=>{var t;return null===(t=e.shareProps)||void 0===t?void 0:t.localizedStrings}}
        data-t="${e=>e.telemetryTags.shareDialog}">
    </msft-share-dialog>
`;Ke.S;const rt=T.d`
<msn-actions-menu ${(0,Ze.i)("actionsMenuRef")}
    :useFastAnchoredRegion=${e=>e.useFastAnchoredRegion}
    :referrerButton=${e=>e.referrerButton}
    :menuItems=${e=>e.actionsMenuItems}
    :isWindowsDashboard=${e=>e.isWindowsDashboard}
    >
</msn-actions-menu>`,nt=T.d`
<template ${(0,Ze.i)("cardAction")}>
    <fluent-design-system-provider
        fill-color=${e=>e.backgroundColor}
        base-layer-luminance=${e=>e.baseLayerLuminance}
    >
        ${(0,$.g)((e=>{var t;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.enabled)&&!e.cardActionProps.openedDialog}),rt)}
        ${(0,$.g)((e=>{var t;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.openedDialog)===P.iR.Share}),it)}
        ${(0,$.g)((e=>{var t;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.openedDialog)===P.iR.Mute}),ot)}
        ${(0,$.g)((e=>{var t;return(null===(t=e.cardActionProps)||void 0===t?void 0:t.openedDialog)===P.iR.Report}),ot)}
    </fluent-design-system-provider>
</template>`;var at=o(64434),st=o(40082);const lt=w.i`
    :host {
        border-radius: 6px;
    }

    msn-actions-menu {
        z-index: ${(at.K.Default+10).toString()}
    }

    msn-actions-menu::part(actions-menu-start) {
        justify-content: center;
    }

    msft-share-dialog::part(share-button) {
        text-align: center;
    }

    .action-dialog {
        --action-dialog-z-index: ${at.K.Dialog.toString()};
        --layer-corner-radius: 6;
        --neutral-divider-rest: ${C.eNK};
        --action-dialog-width: min(368px, 88%);
        --button-min-width: min(156px, 50%);
        position: relative;
    }

    .action-dialog svg {
        fill: ${C.CHi};
    }

    .action-dialog-control-buttons {
        border-radius: var(--button-border-radius);
        font-size: var(--type-ramp-minus-1-font-size, 12px);
    }

    .action-dialog-controls-container {
        display: grid;
        grid-template-columns: var(--button-min-width) var(--button-min-width);
        justify-content: center;
        grid-gap: var(--space-between-buttons);
    }

    .mute-dialog-content {
        margin: 27px 0;
    }

    .mute-dialog-content b {
        display: inline-block;
    }

    .mute-dialog-img {
        display: flex;
        justify-content: center;
        height: 64px;
        margin: 27px 0;
    }

    .mute-dialog-personalize {
        display: inline-block;
    }

    .report-dialog-content {
        display: flex;
        flex-direction: column;
        margin: 18px 0 4px;
    }

    .report-dialog-content .input-option {
        margin-bottom: 14px;
    }

    .report-dialog-content .feedback-inputbox {
        height: 72px;
        resize: none;
        width: 100%;
    }

    .report-dialog-content .feedback-inputbox::part(control)::placeholder {
        color: rgba(0, 0, 0, 0.55);
        fill: #FFFFFF;
    }

    .report-dialog-content .feedback-footer {
        display: block;
        margin-bottom: 5px;
    }
    
    .report-dialog-content .feedback-footer fluent-anchor {
        font-size: var(--type-ramp-minus-2-font-size, 10px);
        line-height: var(--type-ramp-line-height, 16px);
    }

    .report-dialog-content .feedback-disclaimer {
        display: block;
        margin-top: 5px;
        font-size: var(--type-ramp-minus-2-font-size, 10px);
        line-height: normal;
    }

    .report-dialog-content-offensive {
        display: flex;
        flex-direction: column;
        margin: 18px 0 4px;
    }

    .report-dialog-content-offensive .input-offensive-option {
        margin-bottom: 14px;
    }

    .share-dialog {
        --share-dialog-z-index: ${at.K.Dialog.toString()};
        --layer-corner-radius: 6;
        --neutral-divider-rest: ${C.eNK};
        --share-dialog-width: min(368px, 88%);
    }

    .title {
        height: 48px;
        border-bottom: 1px solid ${C.eNK};
    }

    .fill-color-blue svg {
        display: flex;
        fill: ${pe.m}
    }
`.withBehaviors((0,st.Uu)(w.i`
    .report-dialog-content .feedback-inputbox::part(control)::placeholder {
        color: rgba(255, 255, 255, 0.54);
        fill: #4A4A4A;
    }`)),ct={experienceConfigSchema:v};(0,r.z)().withShadowRootMode("closed").withElementDisambiguation((()=>i.h.ignoreDuplicate)).register((0,n.hb)(),(0,a.QT)(),(0,s.g)(),(0,l.of)()),(0,r.z)().withShadowRootMode("open").withElementDisambiguation((()=>i.h.ignoreDuplicate)).register((0,c.Ad)()),i.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>i.h.ignoreDuplicate)).withPrefix("msft").register(D())},74045:function(e,t,o){"use strict";var i,r;o.d(t,{KE:function(){return a},O7:function(){return i},Qp:function(){return s},Us:function(){return r},XQ:function(){return n}}),function(e){e[e.none=0]="none",e[e.enabled=1]="enabled",e[e.saved=2]="saved",e[e.hide=4]="hide",e[e.showMore=8]="showMore",e[e.showFewer=16]="showFewer",e[e.mute=32]="mute",e[e.hidden=64]="hidden",e[e.report=128]="report",e[e.adFeedbackSubmitted=256]="adFeedbackSubmitted",e[e.hideTopic=512]="hideTopic",e[e.dismiss=1024]="dismiss",e[e.adPrivacy=2048]="adPrivacy"}(i||(i={})),function(e){e.Hide="Hide",e.Like="Like",e.Disabled="Disabled",e.Dislike="Dislike",e.Mute="Mute",e.Save="Save",e.Share="Share",e.ShowMore="ShowMore",e.ShowFewer="ShowFewer",e.Divider="Divider",e.Report="Report",e.ManageInterests="ManageInterests",e.ReportAd="ReportAd",e.AdPrivacy="AdPrivacy",e.HideTopic="HideTopic"}(r||(r={}));const n=e=>{const t=[],o={AdultImage:"AdultImage",RacyImage:"RacyImage",TextProfanity:"TextProfanity",SubstanceAbuse:"SubstanceAbuse",Violence:"Violence",Misinformation:"Misinformation",Other:"Other"};return e&&Object.keys(e).forEach((i=>{e[i]&&t.push(o[i])})),t},a="/service/feedback/api/reportanissue",s="https://assets.msn.cn/service/feedback/api/reportanissue"},39935:function(e,t,o){"use strict";o.d(t,{I:function(){return D}});var i,r=o(33940),n=o(83097),a=o(33799),s=o(74045),l=o(26415),c=o(68364),d=o(16517),h=o(54804),u=o(38156),p=o(65135),g=o(63535),v=o(67267),m=o(87298),f=o(56698),b=o(94546),y=o(66925),w=o(85334);!function(e){e[e.feedbackDefault=2224]="feedbackDefault",e[e.windowsFeed=2475]="windowsFeed"}(i||(i={}));class C{constructor(){this.manifestType="Sas",this.appId=i.feedbackDefault,this.source="Client",this.type="Idea"}}var x=o(33379),k=o(98429),A=o(90351),T=o(9344),$=o(51671),O=o(51125);class S extends class{constructor(e,t){this.fetchImpl=e,this.additionalHeaders=t,this.isWindowsDashboard="newsAndInterests"===d.jG.AppType||"windowsNewsPlus"===d.jG.AppType||"winWidgets"===d.jG.AppType,this.isWindowsNewsbar="windowsNewsbar"===d.jG.AppType,this.isStartGG="gaming"===d.jG.AppType,this.providersServiceEndpointURL=(0,g.PH)("./Msn/Providers"),this.cardActionsServiceEndpointURL=(0,g.PH)("./Graph/Actions"),this.userFeedbackEventhubUrl="/labs/api/feedbackSignal",this.ocid="feeds",this.isWindowsDashboard?this.ocid="winp2":this.isWindowsNewsbar?this.ocid="winp0dash":h.Al.IsBlendedEnterprise?this.ocid="entnewsntp":this.isStartGG&&(this.ocid="startgg-feeds")}ShowFewer(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Dislike,null)}))}UnshowFewer(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Dislike)}))}ShowMore(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Like,null,t)}))}UnshowMore(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Like)}))}Save(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Save)}))}Unsave(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Save)}))}Hide(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Dislike,null,t)}))}Unhide(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Dislike)}))}Mute(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Mute,"SourceProvider")}))}Unmute(e){return(0,r.mG)(this,void 0,void 0,(function*(){return this.DeleteCardActionRequest(e,s.Us.Mute)}))}Disable(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){return this.PostCardActionRequest(e,s.Us.Disabled,t)}))}Report(e,t,o,i,n,a,l,c,m){return(0,r.mG)(this,void 0,void 0,(function*(){const r=h.Al.ClientSettings?h.Al.ClientSettings.aid:"",f=d.jG&&d.jG.HostPage.topDomain,b=n===u.uH.WebContent?"web":"msn",y=(0,s.XQ)(m),w=(0,k.pW)();let C="";const x={serviceType:"oneservice",oneServiceTraceId:"",oneServiceActivityId:r};"windows"===d.jG.AppType&&(C=p.M0.getPageMetadata().JoinIdProps.IDXId,x.oneServiceTraceId="",x.oneServiceActivityId=r),p.M0.sendTraceInfoEvent(x);const A=JSON.stringify({article:{id:e},canvas:{name:d.jG.AppType,version:navigator.userAgent,pageType:h.Al.ClientSettings.pagetype},data:{activityId:r,feedbackTags:t,feedbackText:o},appEnvironment:d.jG,clientSettings:h.Al.ClientSettings,extSchema:x}),T=JSON.stringify({activityId:w,market:d.jG&&d.jG.CurrentMarket||"",contentId:e,source:b,headlineImage:l&&l.src,headlineText:i,abstract:a,offensive:y,url:c}),$=(0,g.qQ)().origin+this.userFeedbackEventhubUrl,O="msn.cn"===f?s.Qp:(0,g.qQ)().origin+s.KE,S=Object.assign(Object.assign({},yield v.$.getOneServiceHeaders()),this.additionalHeaders),M=Object.assign(Object.assign({},S),{"Content-Type":"application/json"});this.reportFeedbackService(A,$,S),0!=y.length&&this.reportFeedbackService(T,O,M)}))}reportFeedbackService(e,t,o){return(0,r.mG)(this,void 0,void 0,(function*(){const i={method:"POST",headers:o,body:e,credentials:"include"};let r;try{if(r=yield fetch(t,i),r.status>=400)throw new Error(r.statusText)}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionPostActionError),{message:"Error while posting action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionPostActionError.pb),{customMessage:`url: ${t}, error: ${e}`})}))}return r}))}reportNonCMS(e,t,o,i){return(0,r.mG)(this,void 0,void 0,(function*(){this.ReportOCV(e,t,o,i)}))}ReportOCV(e,t,o,i){return(0,r.mG)(this,void 0,void 0,(function*(){let r=!1;const n="https://petrol.office.microsoft.com/v1/feedback",a=this.createOcvFeedbackData(e,t,o,i),s={method:"POST",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify(a)};try{const e=yield this.fetchImpl(n,s);if(e.ok)r=!0;else{const t=`Error code: ${e.status} Error message: ${e.statusText} Request params: ${s} Service url: ${n}`;(0,c.H)(l.Ceo.CardActionBadRequestReportingToOcv,"Request is not valid, it has no content, or the manifest is not formatted correctly",t)}}catch(e){const t=`Error code: ${e?e.code:"undefined"} Error message: ${e?e.message:"undefined"} Request params: ${s} Service url: ${n}`;(0,c.OO)(e,l.Ceo.CardActionExceptionReportingToOcv,"Exception reporting feedback to OCV",t)}}))}createOcvFeedbackData(e,t,o,i){var r,n,a,s;const l=new C,c=null===h.Al||void 0===h.Al?void 0:h.Al.ClientSettings,u=null===d.jG||void 0===d.jG?void 0:d.jG.HostPage,g=(null==c?void 0:c.aid)||"";let v="";const m=(null===(n=null===(r=null===d.jG||void 0===d.jG?void 0:d.jG.CurrentRequestTargetScope)||void 0===r?void 0:r.pageExperiments)||void 0===n?void 0:n.join(","))||"",f=null===(a=null===d.jG||void 0===d.jG?void 0:d.jG.CurrentRequestTargetScope)||void 0===a?void 0:a.browser;return v=p.M0.getPageMetadata().JoinIdProps.IDXId,l.submitTime=(new Date).toISOString(),l.clientFeedbackId=(0,k.pW)(),l.comment=o,l.rating=4,l.application={appData:JSON.stringify({ScreenResolution:window&&window.screen?[screen.width,screen.height].join("x"):"",DDDActivityId:v,articleId:e,vertical:u&&u.verticalKey||"Prod"})},l.telemetry={audience:(null===d.jG||void 0===d.jG?void 0:d.jG.CurrentMarket)||"",audienceGroup:"Production",channel:(null==u?void 0:u.categoryKey)||"",deviceType:(null==c?void 0:c.deviceFormFactor)||"",errorClassification:JSON.stringify({NotRelevant:t.NotRelevant,ImageQuality:t.BlurryImage,MisleadingTitle:t.Misleading,OutdatedArticle:t.Outdated,DuplicateArticle:t.Duplicate,OffensiveContent:t.Offensive,Vertical:i}),featureArea:(null==c?void 0:c.pagetype)||"",flights:m,isUserSubscriber:(0,$.hC)(),platform:null===(s=d.jG.CurrentRequestTargetScope)||void 0===s?void 0:s.os,processSessionId:g,sourceContext:d.jG.AppType},l.web={browser:(null==f?void 0:f.browserType)||"",browserVersion:(null==f?void 0:f.version)||"",sourcePageName:(null==u?void 0:u.subcategoryKey)||"",sourcePageURI:""},l}ReportAd(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const o=e.concat(`&f=${t}`);let i=new Image(1,1);i.src=o,i=null}))}GetProviderIcon(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=yield this.GetPublisherDetails(e);return(0,A.Z)(t,"value[0].logos[0].imageLink.href",void 0)}))}PostCardActionEvent(e,t,o,i=(()=>null),n,a,l=!0,c,d=5e3,h=!1,u,p){return(0,r.mG)(this,void 0,void 0,(function*(){let r;switch(t){case s.Us.ShowMore:e&s.O7.showMore?(l&&y.h.renderToast({id:w.p.ShowMore+`-${o}`,toastType:w.p.ShowMore,expirationInMs:d,onClick:()=>{n?n(o,e^s.O7.showMore,t,!0):this.PostCardActionEvent(e^s.O7.showMore,t,o,i)},referrerButton:c}),r=yield this.ShowMore(o,p)):(y.h.expireToast(w.p.ShowMore+`-${o}`),r=yield this.UnshowMore(o)),i(o,e);break;case s.Us.ShowFewer:e&s.O7.showFewer?(l&&y.h.renderToast({id:w.p.ShowFewer+`-${o}`,toastType:w.p.ShowFewer,expirationInMs:d,onClick:()=>{n?n(o,e^s.O7.showFewer,t,!0):this.PostCardActionEvent(e^s.O7.showFewer,t,o,i)},referrerButton:c}),r=yield this.ShowFewer(o)):(y.h.expireToast(w.p.ShowFewer+`-${o}`),r=yield this.UnshowFewer(o)),i(o,e);break;case s.Us.Save:e&s.O7.saved?(l&&!h&&y.h.renderToast({id:w.p.Save+`-${o}`,toastType:w.p.Save,expirationInMs:d,referrerButton:c}),r=yield this.Save(o),l&&h&&r&&y.h.renderToast({id:w.p.Save+`-${o}`,toastType:w.p.Save,expirationInMs:d,onClick:()=>this.PostCardActionEvent(e^s.O7.saved,t,o,i),referrerButton:c})):(y.h.expireToast(w.p.Save+`-${o}`),r=yield this.Unsave(o),l&&h&&r&&y.h.renderToast({id:w.p.Unsave+`-${o}`,toastType:w.p.Unsave,onClick:()=>this.PostCardActionEvent(e^s.O7.saved,t,o,i),expirationInMs:d,referrerButton:c})),i(o,e);break;case s.Us.Hide:r=e&s.O7.hide?yield this.Hide(o,p):yield this.Unhide(o),i(o,e);break;case s.Us.HideTopic:r=e&s.O7.hideTopic?yield this.PostCardActionRequest(a,s.Us.Mute,"TagBase"):yield this.DeleteCardActionRequest(a,s.Us.Mute);break;case s.Us.Mute:e&s.O7.mute?(r=yield this.Mute(a),i(o,e,s.Us.Mute,void 0,void 0,a)):r=yield this.Unmute(a);break;case s.Us.ReportAd:i(o,e);break;default:return}if(h&&!r){const{saveStoryErrorText:i,personalizationErrorText:r}=u||{},n=t===s.Us.Save&&e&s.O7.saved?i:r;y.h.renderToast({id:`${w.p.ConnectionError}-${t}-${o}`,toastType:w.p.ConnectionError,inputText:n,expirationInMs:d,referrerButton:c})}}))}GetPublisherDetails(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=this.providersServiceEndpointURL,o={method:"GET",headers:Object.assign(Object.assign({},yield v.$.getOneServiceHeaders()),this.additionalHeaders)};[{key:"ids",value:e},...yield this.getOneServiceCommonParam()].forEach((e=>e.value&&t.searchParams.set(e.key,e.value)));try{const i=yield(0,m.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(t.href,o)}))),"getProviderDetails");if(!i.ok){const t=`OneService returned error response. Status: ${i.status} for providerId: ${e}`;throw new Error(t)}return i.json()}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionGetActionError),{message:"Error while calling getPublisherDetails action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionDeleteActionError.pb),{customMessage:`url: ${t.href}, error: ${e}`})}))}}))}DeleteCardActionRequest(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const o=this.cardActionsServiceEndpointURL,i={method:"DELETE",credentials:"include",headers:Object.assign(Object.assign({},yield v.$.getOneServiceHeaders()),this.additionalHeaders)};[{key:"$filter",value:`actionType eq '${t}' and targetId eq '${e}'`},...yield this.getOneServiceCommonParam()].forEach((e=>e.value&&o.searchParams.set(e.key,e.value)));try{const n=yield(0,m.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(o.href,i)}))),`deleteCardAction${t}`);if(n.status>=400){const o=`OneService returned error response. Status: ${n.status} for actionType: ${t} and targetId: ${e}`;throw new Error(o)}return(0,f.bY)(this.getPreloadReloadReason(t)),(0,O.j9)(),n}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionDeleteActionError),{message:"Error while calling delete action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionDeleteActionError.pb),{customMessage:`url: ${o.href}, error: ${e}`})}))}}))}PostCardActionRequest(e,t,o,i){return(0,r.mG)(this,void 0,void 0,(function*(){const n=this.cardActionsServiceEndpointURL,a={method:"POST",body:JSON.stringify({actionType:t,targetId:e,targetType:o,metadata:i}),headers:Object.assign(Object.assign({},yield v.$.getOneServiceHeaders()),this.additionalHeaders),credentials:"include"};(yield this.getOneServiceCommonParam()).forEach((e=>e.value&&n.searchParams.set(e.key,e.value)));try{const i=yield(0,m.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(n.href,a)}))),`getCardAction${t}`);if(i.status>=400){const r=`OneService returned error response. Status: ${i.status} for actionType: ${t}, targetId: ${e} and targetType: ${o}`;throw new Error(r)}return(0,f.bY)(this.getPreloadReloadReason(t)),(0,O.j9)(),i.json()}catch(e){p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.Ceo.CardActionPostActionError),{message:"Error while posting action for card action",pb:Object.assign(Object.assign({},l.Ceo.CardActionPostActionError.pb),{customMessage:`url: ${n.href}, error: ${e}`})}))}}))}getOneServiceCommonParam(){return(0,r.mG)(this,void 0,void 0,(function*(){return this.isWindowsDashboard||this.isWindowsNewsbar||this.isStartGG?v.$.getOneServiceParamsWithoutAuth(d.jG.UserId,this.ocid,!1):(yield this.isUserSignedIn())?v.$.getOneServiceParamsWithAuth(d.jG.UserId,this.ocid,!h.Al.IsBlendedEnterprise):"edgeChromium"===d.jG.AppType&&(0,T.ej)("lt")&&(0,T.ej)(n.IR.AppAnonCookieExists)?(p.M0.sendAppErrorEvent(Object.assign(Object.assign({},l.MCu.LtCookieFoundUserNotAuthenticated),{message:"CardActionServiceClient: lt cookie present. "+n.IR.AppAnonCookieExists+" cookie present.",pb:Object.assign({},l.MCu.LtCookieFoundUserNotAuthenticated.pb)})),v.$.getOneServiceParamsWithAuth(d.jG.UserId,this.ocid,!h.Al.IsBlendedEnterprise)):v.$.getOneServiceParamsWithoutAuth(d.jG.UserId,this.ocid,!h.Al.IsBlendedEnterprise)}))}isUserSignedIn(){return(0,r.mG)(this,void 0,void 0,(function*(){if(h.Al.UserIsSignedIn)return!0;return(yield(0,$.XJ)())===a.Hy.SignedIn}))}getPreloadReloadReason(e){switch(e){case s.Us.Mute:return b.T.MutePublisher;case s.Us.Save:return b.T.Save;case s.Us.Like:return b.T.Like;case s.Us.Dislike:return b.T.Dislike;case s.Us.Disabled:return b.T.Disabled;default:return b.T.SettingsChange}}}{constructor(e,t){let o;o=e||((0,x.N)()?window.fetch.bind(window):fetch),super(o,t)}}let M;const D=(e,t)=>M||(M=new S(e,t),M)},66925:function(e,t,o){"use strict";o.d(t,{h:function(){return a}});var i=o(65135),r=o(68364),n=o(26415);class a{static renderToast(e){this.renderToastCallback?this.renderToastCallback(e):i.M0.sendAppErrorEvent((0,r.Tr)(n.PMq,"Undefined toast render callback function"))}static setRenderToastCallback(e){this.renderToastCallback=e,this.readyResolveFn()}static expireToast(e){this.expireToastCallback?this.expireToastCallback(e):i.M0.sendAppErrorEvent((0,r.Tr)(n.hxo,"Undefined toast expire callback function"))}static setExpireToastCallback(e){this.expireToastCallback=e}static setCurrentToast(e,t){this.currentToastId!==e&&(this.currentToastId=e,this.renderToastCallback=t,this.currentToastIdChangeCallbacks.forEach((t=>t(e))),this.renderToast())}static addCurrentToastIdChangeCallback(e){e&&this.currentToastIdChangeCallbacks.push(e)}}a.ready=new Promise((e=>a.readyResolveFn=e)),a.currentToastIdChangeCallbacks=[]},85334:function(e,t,o){"use strict";var i;o.d(t,{p:function(){return i}}),function(e){e.Save="Save",e.Unsave="Unsave",e.Mute="Mute",e.Follow="Follow",e.Unfollow="Unfollow",e.InterestFailure="InterestFailure",e.ShowMore="ShowMore",e.ShowFewer="ShowFewer",e.Hide="Hide",e.DisableNotification="DisableNotification",e.EnableNotification="EnableNotification",e.RecommendedInterestsFailure="RecommendedInterestsFailure",e.Refresh="Refresh",e.Pin="Pin",e.Unpin="Unpin",e.HideTopic="HideTopic",e.UnhideTopic="UnhideTopic",e.HideSource="HideSource",e.UnhideSource="UnhideSource",e.WindowsInformation="WindowsInformation",e.Error="Error",e.Default="Default",e.ConnectionError="ConnectionError",e.Fre="Fre",e.TuneYourFeed="TuneYourFeed"}(i||(i={}))},83721:function(e,t,o){"use strict";o.d(t,{m:function(){return i}});const i="#0078D4"},53909:function(e,t,o){"use strict";o.d(t,{D3:function(){return a},KL:function(){return d},mL:function(){return p},pG:function(){return l},q3:function(){return c},vc:function(){return s},zz:function(){return h}});var i=o(12697),r=o(80983);let n;var a,s;!function(e){e.JPG="jpg",e.PNG="png"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Letterbox=1]="Letterbox",e[e.Scale=2]="Scale",e[e.Stretch=3]="Stretch",e[e.Crop=4]="Crop",e[e.FocalCrop=5]="FocalCrop",e[e.FacialCrop=6]="FacialCrop"}(s||(s={}));const l=90,c="www.bing.com/th",d=new RegExp(/bing\.(com|net)\/th/);function h(e,t){return p(((0,r.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+e,t)}const u=Math.ceil(4*Math.random())||4;function p(e,t){if(e&&d.test(e))return function(e,t){try{return g(new URL(e),t).href}catch(o){const i=g(new URL(`https://${e}`),t);return`//${i.host}${i.pathname}${i.search}`}}(e,t);const{focalRegion:o,backgroundColor:r}=t;let{width:s=0,height:l=0,format:c=a.JPG}=t,h="";if(o){const e=m(o.x1,o.x2),t=m(o.y1,o.y2);null!=e&&null!=t&&(h+=`&x=${e}&y=${t}`)}r&&(h+=`&b=${r}`);const u=null==t.mode?6:t.mode;if(6===u&&(h+="&u=t"),t.enableDpiScaling){if(!t.devicePixelRatio)throw new Error("A valid devicePixelRatio value must be provided when DPI scaling is enabled");const e=function(e){if(v()&&n)return n;if(e<1)return null;let t=e;(0,i.Z)(4*t)||(t=Math.ceil(10*t)/10);t>3&&(t=3);v()&&(n=t);return t}(t.devicePixelRatio);e&&(s=Math.round(s*e),l=Math.round(l*e))}return`${e}?w=${s}&h=${l}&q=${t.quality||60}&m=${u}&f=${c}${h}`}function g(e,t){(0,r.P)()&&(e.hostname=`ts${u}.cn.mm.bing.net`);const{width:o=0,height:i=0}=t,n=t.quality||l,a=t.crop||1;return e.searchParams.set("w",`${o}`),e.searchParams.set("h",`${i}`),e.searchParams.set("qlt",`${n}`),e.searchParams.set("c",`${a}`),e.searchParams.set("rs","1"),t.enableDpiScaling&&(e.searchParams.set("dpr",`${t.devicePixelRatio}`),e.searchParams.set("p","0")),e}function v(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function m(e,t){if(null!=e&&null!=t)return Math.floor((e+t)/2)}},40810:function(e,t,o){"use strict";o.d(t,{a:function(){return i},H:function(){return s}});var i,r=o(26415),n=o(65135);class a extends Map{constructor(e){super(),this.identifier=e,this.subscriptions=new Map}set(e,t){super.set(e,t);const o=this.subscriptions.get(e);return o&&o.size?(o.forEach((o=>{try{o&&o(t)}catch(t){n.M0.sendAppErrorEvent(Object.assign(Object.assign({},r.fG_),{message:"Failed to execute subscription callback",pb:Object.assign(Object.assign({},r.fG_.pb),{customMessage:`Error executing subscription callback for key [${e}]`,instanceId:this.identifier,errorMessage:t&&t.message})}))}})),this):this}subscribe(e,t){if(!t||"function"!=typeof t)return;let o=this.subscriptions.get(e);o||(this.subscriptions.set(e,new Set),o=this.subscriptions.get(e)),o.add(t),this.has(e)&&t(this.get(e))}unsubscribe(e,t){const o=this.subscriptions.get(e);o&&o.delete(t)}}!function(e){e[e.IsSignedIn=1]="IsSignedIn",e[e.CookieConsentStatus=2]="CookieConsentStatus",e[e.OnetrustActiveCookieGroups=3]="OnetrustActiveCookieGroups",e[e.IsDarkMode=4]="IsDarkMode",e[e.ColumnArrangement=5]="ColumnArrangement",e[e.CurrentRoute=6]="CurrentRoute",e[e.TopicData=7]="TopicData",e[e.IsDocumentVisible=8]="IsDocumentVisible",e[e.IsSingleColumn=9]="IsSingleColumn"}(i||(i={}));const s=new class extends a{subscribe(e,t){this.has(e)||(e===i.IsDarkMode&&this.initBrowserThemeListener(),e===i.IsDocumentVisible&&this.initBrowserVisibilityListener()),super.subscribe(e,t)}initBrowserThemeListener(){const e=matchMedia("(prefers-color-scheme:dark)");this.set(i.IsDarkMode,e.matches),e.onchange=e=>{this.set(i.IsDarkMode,e.matches)}}initBrowserVisibilityListener(){this.set(i.IsDocumentVisible,"visible"===document.visibilityState),document.addEventListener("visibilitychange",(()=>{this.set(i.IsDocumentVisible,"visible"===document.visibilityState)}))}}("AppState")},99478:function(e,t,o){"use strict";function i(e,...t){return e.replace(/{(\d+)}/g,(function(e,o){if(o>=t.length)return e;const i=t[o];return"number"==typeof i||i?i:""}))}function r(e){return!e||!e.trim()}o.d(t,{TF:function(){return r},WU:function(){return i}})},19628:function(e,t){"use strict";var o=function(){function e(){}return e.IsNullOrWhiteSpace=function(e){try{return null==e||"undefined"==e||e.toString().replace(/\s/g,"").length<1}catch(e){return console.log(e),!1}},e.Join=function(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];try{var r=o[0];if(Array.isArray(r)||r instanceof Array){for(var n=e.Empty,a=0;a<r.length;a++){var s=r[a];a<r.length-1?n+=s+t:n+=s}return n}if("object"==typeof r){var l=e.Empty,c=r;return Object.keys(r).forEach((function(e){l+=c[e]+t})),l=l.slice(0,l.length-t.length)}var d=o;return e.join.apply(e,[t].concat(d))}catch(t){return console.log(t),e.Empty}},e.Format=function(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];try{return t.match(e.regexNumber)?e.format(e.regexNumber,t,o):t.match(e.regexObject)?e.format(e.regexObject,t,o,!0):e.Empty}catch(t){return console.log(t),e.Empty}},e.format=function(t,o,i,r){return void 0===r&&(r=!1),o.replace(t,(function(t,o){var n,a=t.split(":");return a.length>1&&(o=a[0].replace("{",""),t=a[1].replace("}","")),null==(n=r?i[0][o]:i[o])||null==n||t.match(/{\d+}/)||void 0!==(n=e.parsePattern(t,n))&&null!=n?n:e.Empty}))},e.parsePattern=function(t,o){switch(t){case"L":return o.toLowerCase();case"U":return o.toUpperCase();case"d":if("string"==typeof o)return e.getDisplayDateFromString(o);if(o instanceof Date)return e.Format("{0:00}.{1:00}.{2:0000}",o.getDate(),o.getMonth(),o.getFullYear());break;case"s":if("string"==typeof o)return e.getSortableDateFromString(o);if(o instanceof Date)return e.Format("{0:0000}-{1:00}-{2:00}",o.getFullYear(),o.getMonth(),o.getDate());break;case"n":"string"!=typeof o&&(o=o.toString());var i=o.replace(/,/g,".");if(isNaN(parseFloat(i))||i.length<=3)break;var r=i.split(/[^0-9]+/g),n=r;r.length>1&&(n=[e.join.apply(e,[""].concat(r.splice(0,r.length-1))),r[r.length-1]]);var a=n[0],s=a.length%3,l=s>0?a.substring(0,s):e.Empty,c=a.substring(s).match(/.{3}/g);return(l=l+"."+e.Join(".",c))+(n.length>1?","+n[1]:"")}return"number"!=typeof o&&isNaN(o)||isNaN(+t)||e.IsNullOrWhiteSpace(o)?o:e.formatNumber(o,t)},e.getDisplayDateFromString=function(e){var t;if((t=e.split("-")).length<=1)return e;var o=t[t.length-1],i=t[t.length-2],r=t[t.length-3];return(o=(o=o.split("T")[0]).split(" ")[0])+"."+i+"."+r},e.getSortableDateFromString=function(t){var o=t.replace(",","").split(".");if(o.length<=1)return t;var i=o[o.length-1].split(" "),r=e.Empty;i.length>1&&(r=i[i.length-1]);var n=o[o.length-1].split(" ")[0]+"-"+o[o.length-2]+"-"+o[o.length-3];return!e.IsNullOrWhiteSpace(r)&&r.length>1?n+="T"+r:n+="T00:00:00",n},e.formatNumber=function(e,t){var o=t.length,i=e.toString();if(o<=i.length)return i;var r=o-i.length;return new Array(r+=1).join("0")+i},e.join=function(t){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];for(var r=e.Empty,n=0;n<o.length;n++)if(!("string"==typeof o[n]&&e.IsNullOrWhiteSpace(o[n])||"number"!=typeof o[n]&&"string"!=typeof o[n])){r+=""+o[n];for(var a=n+1;a<o.length;a++)if(!e.IsNullOrWhiteSpace(o[a])){r+=t,n=a-1;break}}return r},e.regexNumber=/{(\d+(:\w*)?)}/g,e.regexObject=/{(\w+(:\w*)?)}/g,e.Empty="",e}();t.Ld=o;var i=function(){function e(e){void 0===e&&(e=o.Empty),this.Values=[],this.Values=new Array(e)}return e.prototype.ToString=function(){return this.Values.join("")},e.prototype.Append=function(e){this.Values.push(e)},e.prototype.AppendFormat=function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];this.Values.push(o.Format.apply(o,[e].concat(t)))},e.prototype.Clear=function(){this.Values=[]},e}()},90282:function(e,t,o){"use strict";o.d(t,{q:function(){return b}});var i=o(33940),r=o(89346),n=o(44541),a=o(65620);class s extends n.V{constructor(){super(...arguments),this.headinglevel=2,this.dismiss=()=>{this.$emit("action-dialog-dismiss")}}}(0,i.gn)([(0,a.Lj)({attribute:"headline"})],s.prototype,"headline",void 0);var l=o(32804),c=o(53046),d=o(67020);const h=c.i`
    ${(0,d.j)("flex")} :host {
        --dialog-height: var(--action-dialog-height, auto);
        --dialog-width: var(--action-dialog-width, auto);
        --button-border-radius: 20px;
        --button-min-width: 160px;
        --control-corner-radius: 2px;
        --dialog-padding: 24px;
        --space-above-title: 20px;
        --space-between-buttons: 8px;
        z-index: var(--action-dialog-z-index, 0);
    }

    .body {
        margin: 0 var(--dialog-padding) var(--dialog-padding) var(--dialog-padding);
    }

    .content {
        display: flex;
        flex-direction: column;
    }

    .controls {
        display: grid;
        grid-template-columns: auto auto;
        grid-gap: var(--space-between-buttons);
        justify-content: center;
    }

    .heading {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: 1;
        position: relative;
        width: 100%;
    }

    .heading span {
        font-size: ${l.mWK};
        font-weight: 600;
        line-height: ${l.ipv};
        margin-inline-start: var(--dialog-padding);
        margin-top: var(--space-above-title);
    }
`;var u=o(39181),p=o(13988),g=o(58952);const v=u.d`
    <div class="positioning-region" part="positioning-region">
        ${(0,p.g)((e=>e.modal),u.d`
                <div
                    class="overlay"
                    part="overlay"
                    role="presentation"
                    tabindex="-1"
                    @click="${e=>e.dismiss()}"
                ></div>
            `)}
        <div
            role="dialog"
            class="control"
            part="control"
            aria-modal="${e=>e.modal}"
            aria-describedby="${e=>e.ariaDescribedby}"
            aria-labelledby="${e=>e.ariaLabelledby}"
            aria-label="${e=>e.ariaLabel}"
            ${(0,g.i)("dialog")}
        >
            <div class="heading" part="heading">
                <span role="heading" aria-level=${e=>e.headinglevel}>${e=>e.headline}</span>
                <slot name="close-button" aria-hidden="true"></slot>
            </div>
            <div class="body" part="body">
                <div class="content" part="content">
                    <slot></slot>
                </div>
                <div class="controls" part="controls">
                    <slot name="action-button"></slot>
                    <slot name="cancel-button"></slot>
                </div>
            </div>
        </div>
    </div>
`;var m=o(62734);const f=c.i`
  :host([hidden]) {
    display: none;
  }

  :host {
    --elevation: 14;
    --dialog-height: 480px;
    --dialog-width: 640px;
    display: block;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    touch-action: none;
  }

  .positioning-region {
    display: flex;
    justify-content: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
  }

  .control {
    ${m.XC}
    margin-top: auto;
    margin-bottom: auto;
    border-radius: calc(${l.rSr} * 1px);
    width: var(--dialog-width);
    height: var(--dialog-height);
    background: ${l.IfY};
    z-index: 1;
    border: calc(${l.Han} * 1px) solid transparent;
  }
`;let b=class extends s{};b=(0,i.gn)([(0,r.M)({name:"msn-action-dialog",template:v,styles:[f,h],shadowOptions:{delegatesFocus:!0}})],b)},35928:function(e,t,o){"use strict";o.d(t,{Nd:function(){return h}});const i=Object.freeze(function(){const e=JSON.parse(document.head.dataset.clientSettings||"{}"),t={activityId:e.aid||"",appType:e.apptype,categoryKey:e.categoryKey,pageType:e.pagetype,verticalKey:e.verticalKey||e.vk,ocid:e.ocid};try{if(e.locale)t.market=`${e.locale.language}-${e.locale.market}`;else{const e=location.pathname.split("/");e&&e[1]&&(t.market=e[1].toLowerCase())}}catch(e){}return t}());var r,n=o(40810);!function(e){e[e.Router=0]="Router",e[e.ExternalLink=2]="ExternalLink",e[e.PrimeExternalLink=3]="PrimeExternalLink"}(r||(r={}));var a=o(38156),s=o(60483),l=o(16517);const c="spapage",d=["ocid","item","pcsonly","fdhead"];const h=new class{constructor(){this.contextualNavMap=new Map,this.hamburgerMenuMap=new Map,this.market=i.market,this.currentUrl=new URL(location.href.toLowerCase()),this.currentSearchParams=new URLSearchParams(location.search.toLowerCase()),this.refIds=[]}init(e){if(this.options||!e)return;this.options=e,this.config=e.config,this.options.localizedStrings=this.options.localizedStrings||{},"/"===location.pathname&&(location.pathname=`/${this.market}${e.basePath||""}`);const t=this.currentUrl.searchParams.get(c);this.currentPath=t?`/${this.market}${e.basePath}/${t}`:this.currentUrl.pathname,this.currentUrl.searchParams.delete(c),this.currentSearchParams.forEach(((e,t)=>{-1===d.indexOf(t)&&this.currentUrl.searchParams.delete(t)})),this.setRoutes(this.config),this.currentRoute&&(n.H.set(n.a.CurrentRoute,this.currentRoute),window.history.replaceState(this.currentRoute,"",t||location.port?this.currentRoute.destinationUrl:location.href)),window.addEventListener("popstate",(e=>{e.state&&e.state.disableCurrentRouteUpdate||n.H.set(n.a.CurrentRoute,e.state||this.contextualNavMap.get("myfeed"))}))}subscribe(e){(e||"function"==typeof e)&&n.H.subscribe(n.a.CurrentRoute,e)}getCurrentRoute(){return n.H.get(n.a.CurrentRoute)}navigate(e,t){const o=n.H.get(n.a.CurrentRoute);if(o&&o.id===e)return;const i=this.getRouteById(e),r=new URL(i.destinationUrl);if(r.hash&&(r.hash="",i.destinationUrl=decodeURIComponent(r.toString())),!i)return;const a=Object.assign(Object.assign({},i),{dynamicContext:t});history.pushState(a,i.display,i.destinationUrl),n.H.set(n.a.CurrentRoute,a),window.dispatchEvent(new CustomEvent("header-route-changed",{detail:{route:i}}))}getRouteById(e){return this.contextualNavMap.get(e)||this.hamburgerMenuMap.get(e)}preserveQueryParams(e){const t=e.searchParams;this.currentUrl.search&&this.currentUrl.searchParams.forEach(((o,i)=>{i=i.toLowerCase(),-1===t.getAll(i).indexOf(o)&&e.searchParams.append(i,o)})),!e.searchParams.get("ocid")&&this.options.ocid&&e.searchParams.set("ocid",this.options.ocid)}getUrlInfo(e){const{renderType:t,path:o,externalUrl:i}=e.renderInfo;if(t===r.Router){if(e.id===this.config.homeNavigationItem.id)return this.getHomePageUrl();const t=`${0===o.indexOf("personalize")?"":"/interest"}/${o}`;return{url:`${location.origin}/${this.market}/feed${t}${this.currentUrl.search}${location.hash}`,path:`/${this.market}/feed${t}`}}let n=new URL(i);return-1===n.hostname.indexOf(".msn.com")&&-1===n.hostname.indexOf(".msn.cn")||(n.hostname!==location.hostname&&(n=new URL(`${n.pathname}${n.search}`,location.origin)),this.preserveQueryParams(n)),{url:decodeURIComponent(n.toString()),path:n.pathname,searchParams:n.searchParams}}setRoutes(e){if(!e)return;const{contextualNavItems:t=[],hamburgerMenuItems:o=[],homeNavigationItem:i,interestsNavigationItem:r}=e;i&&o.length&&t.length&&(this.buildNavMap(this.contextualNavMap,i),this.mapChildItems(this.hamburgerMenuMap,o),this.mapChildItems(this.contextualNavMap,t),this.buildNavMap(this.contextualNavMap,r),this.refIds.length&&this.refIds.forEach((e=>{const t=`${e}-ref`;this.contextualNavMap.set(t,Object.assign(Object.assign({},this.getRouteById(e)),{id:t}))})))}processRoute(e,t){const{id:o,display:i,displayKey:r}=e,n=r?this.options.localizedStrings[r]:i,l=this.getUrlInfo(e),c=decodeURIComponent(l.url),d=Object.assign(Object.assign({},e),{display:n,destinationUrl:c,parentId:t,telemetryMetadata:new s.D({name:n,action:a.Aw.Click,behavior:a.wu.Navigate,content:{headline:n},destinationUrl:c,overrideDestinationUrl:c,feed:{id:o,name:n,type:"category filter"}}).getMetadata()});return this.detectCurrentRoute(d,l.path,l.searchParams),d}detectCurrentRoute(e,t="",o){if(t=t.toLowerCase(),this.currentPath===t||this.currentPath===`${t}/`){let t=!1;if(o&&o.toString()&&o.forEach(((e,o)=>{o=o.toLowerCase(),-1===this.currentSearchParams.getAll(o).indexOf(e.toLowerCase())&&(t=!0)})),t)return;this.currentRoute=e}}buildNavMap(e,t){if(!t)return;const{id:o,children:i=[],navRefId:r}=t;r?this.refIds.push(r):(e.set(o,this.processRoute(t)),this.mapChildItems(e,i,t.id))}mapChildItems(e,t=[],o){t.forEach((t=>{if(t.navRefId)return void this.refIds.push(t.navRefId);e.set(t.id,this.processRoute(t,o));const{children:i}=t;i&&i.length&&this.mapChildItems(e,i,t.id)}))}getHomePageUrl(){const e=this.currentSearchParams.get("ocid");return e||this.options.ocid?{url:`${location.origin}/${this.market}/feed${this.currentUrl.search}`,path:`/${this.market}/feed`}:["direct","mailsignout"].includes(e)||l.jG.isMobile?{url:`https://www.msn.${location.hostname.endsWith(".cn")?"cn":"com"}/${this.market}${this.currentUrl.search}`,path:this.market}:{url:`${location.origin}/${this.market}${this.currentUrl.search}`,path:this.market}}}},39704:function(e,t,o){"use strict";o.d(t,{K7:function(){return i},P4:function(){return s},Rq:function(){return r},cA:function(){return a},cU:function(){return n},li:function(){return l}});const i='<svg class="button-glyph" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" width="16" height="16"><path d="M2048 640H0V512h2048v128zm0 1024H0v-128h2048v128zm0-513H0v-127h2048v127z" /></svg>',r='<svg class="button-glyph" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2048 2048" width="16" height="16"><path d="M1169 1024l879 879-145 145-879-879-879 879L0 1903l879-879L0 145 145 0l879 879L1903 0l145 145-879 879z" /></svg>',n='<svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M5.70801 5L10 9.29199L9.29199 10L5 5.70801L0.708008 10L0 9.29199L4.29199 5L0 0.708008L0.708008 0L5 4.29199L9.29199 0L10 0.708008L5.70801 5Z"/></svg>',a='<svg width="106" height="22" viewBox="0 0 106 22" xmlns="http://www.w3.org/2000/svg"><path d="M45.2018 4.40014V17.6001H42.921V7.24181H42.8906L38.8156 17.6001H37.295L33.1288 7.24181H33.0983V17.6001H31V4.40014H34.2844L38.0553 14.1779H38.1161L42.0999 4.40014H45.2018ZM47.0873 5.40847C47.0873 5.04181 47.2089 4.73625 47.4826 4.49181C47.7563 4.24736 48.0604 4.12514 48.4254 4.12514C48.8207 4.12514 49.1552 4.24736 49.3985 4.52236C49.6418 4.76681 49.7938 5.07236 49.7938 5.43903C49.7938 5.8057 49.6722 6.11125 49.3985 6.3557C49.1248 6.60014 48.8207 6.72236 48.4254 6.72236C48.03 6.72236 47.7259 6.60014 47.4826 6.3557C47.2393 6.05014 47.0873 5.74459 47.0873 5.40847ZM49.5505 8.12792V17.6001H47.3306V8.12792H49.5505ZM56.2713 15.9807C56.6058 15.9807 56.9708 15.889 57.3661 15.7363C57.7614 15.5835 58.1264 15.3696 58.4609 15.1251V17.2029C58.096 17.4168 57.7006 17.5696 57.2445 17.6613C56.7883 17.7529 56.3017 17.814 55.7543 17.814C54.3554 17.814 53.2302 17.3863 52.3787 16.5001C51.4968 15.614 51.0711 14.4835 51.0711 13.139C51.0711 11.6113 51.5273 10.3585 52.4092 9.3807C53.2911 8.40292 54.5379 7.91403 56.1801 7.91403C56.6058 7.91403 57.0012 7.97514 57.4269 8.06681C57.8527 8.18903 58.1872 8.31125 58.4305 8.43348V10.5724C58.096 10.3279 57.731 10.114 57.3965 9.99181C57.0316 9.83903 56.6667 9.77792 56.3017 9.77792C55.4198 9.77792 54.7204 10.0529 54.173 10.6335C53.6256 11.214 53.3519 11.9779 53.3519 12.9557C53.3519 13.9029 53.5952 14.6668 54.1122 15.1863C54.69 15.7057 55.3894 15.9807 56.2713 15.9807ZM64.7559 7.97514C64.9384 7.97514 65.0904 7.97514 65.2425 8.0057C65.3945 8.03625 65.5162 8.06681 65.6074 8.09736V10.3585C65.4858 10.2668 65.3337 10.2057 65.0904 10.114C64.8776 10.0224 64.6039 9.99181 64.2693 9.99181C63.722 9.99181 63.2658 10.2363 62.9009 10.6946C62.5359 11.1529 62.3231 11.8557 62.3231 12.8335V17.6001H60.1031V8.12792H62.3231V9.62514H62.3535C62.5663 9.1057 62.8705 8.70847 63.2658 8.40292C63.6915 8.12792 64.1781 7.97514 64.7559 7.97514ZM65.7291 13.0168C65.7291 11.4585 66.1548 10.2057 67.0367 9.28903C67.9186 8.37236 69.1351 7.91403 70.7164 7.91403C72.1761 7.91403 73.3317 8.34181 74.1528 9.22792C74.9739 10.114 75.3997 11.3057 75.3997 12.8029C75.3997 14.3307 74.9739 15.5529 74.092 16.4696C73.2101 17.3863 72.0241 17.8446 70.5036 17.8446C69.0438 17.8446 67.8882 17.4168 67.0367 16.5613C66.1548 15.6751 65.7291 14.4835 65.7291 13.0168ZM68.0403 12.9251C68.0403 13.9029 68.2532 14.6668 68.7093 15.1863C69.1655 15.7057 69.8041 15.9807 70.6252 15.9807C71.4463 15.9807 72.0545 15.7057 72.4802 15.1863C72.906 14.6668 73.1189 13.9029 73.1189 12.864C73.1189 11.8557 72.906 11.0918 72.4498 10.5724C72.0241 10.0529 71.4159 9.80847 70.6252 9.80847C69.8041 9.80847 69.1959 10.0835 68.7397 10.6335C68.2532 11.1529 68.0403 11.9168 68.0403 12.9251ZM78.684 10.6335C78.684 10.939 78.7753 11.214 78.9881 11.3974C79.201 11.5807 79.6268 11.7946 80.3262 12.0696C81.2081 12.4363 81.8468 12.8335 82.1813 13.2613C82.5462 13.7196 82.7287 14.239 82.7287 14.8807C82.7287 15.7668 82.3941 16.5001 81.6947 17.0196C81.0257 17.5696 80.0829 17.8446 78.9273 17.8446C78.532 17.8446 78.1062 17.7835 77.6197 17.6918C77.1331 17.6001 76.7377 17.4779 76.4032 17.3251V15.1251C76.7986 15.4001 77.2547 15.6446 77.7109 15.7974C78.1671 15.9501 78.5928 16.0418 78.9881 16.0418C79.4747 16.0418 79.8701 15.9807 80.0829 15.8279C80.3262 15.6751 80.4479 15.4613 80.4479 15.1251C80.4479 14.8196 80.3262 14.5446 80.0829 14.3613C79.8396 14.1474 79.3531 13.9029 78.684 13.6279C77.8629 13.2918 77.2851 12.8946 76.9506 12.4668C76.6161 12.039 76.4336 11.489 76.4336 10.8168C76.4336 9.96125 76.7682 9.25847 77.4372 8.70847C78.1062 8.15847 78.9881 7.88347 80.0525 7.88347C80.387 7.88347 80.752 7.91403 81.1473 8.0057C81.5426 8.06681 81.9076 8.18903 82.1813 8.2807V10.389C81.8772 10.2057 81.5426 10.0224 81.1473 9.86959C80.752 9.71681 80.3566 9.6557 79.9917 9.6557C79.5659 9.6557 79.2314 9.74736 79.0186 9.90014C78.8057 10.114 78.684 10.3279 78.684 10.6335ZM83.6714 13.0168C83.6714 11.4585 84.0972 10.2057 84.9791 9.28903C85.861 8.37236 87.0774 7.91403 88.6588 7.91403C90.1185 7.91403 91.2741 8.34181 92.0952 9.22792C92.9163 10.114 93.342 11.3057 93.342 12.8029C93.342 14.3307 92.9163 15.5529 92.0343 16.4696C91.1524 17.3863 89.9664 17.8446 88.4459 17.8446C86.9862 17.8446 85.8306 17.4168 84.9791 16.5613C84.1276 15.6751 83.6714 14.4835 83.6714 13.0168ZM85.9826 12.9251C85.9826 13.9029 86.1955 14.6668 86.6517 15.1863C87.1078 15.7057 87.7464 15.9807 88.5675 15.9807C89.3886 15.9807 89.9968 15.7057 90.4226 15.1863C90.8483 14.6668 91.0612 13.9029 91.0612 12.864C91.0612 11.8557 90.8483 11.0918 90.3922 10.5724C89.9664 10.0529 89.3582 9.80847 88.5675 9.80847C87.7464 9.80847 87.1382 10.0835 86.6821 10.6335C86.2259 11.1529 85.9826 11.9168 85.9826 12.9251ZM100.701 9.96125H97.3866V17.6001H95.1362V9.96125H93.5549V8.12792H95.1362V6.81403C95.1362 5.8057 95.4708 5.01125 96.1094 4.36959C96.748 3.72792 97.5691 3.42236 98.5727 3.42236C98.8464 3.42236 99.0896 3.42236 99.3025 3.45292C99.5154 3.48347 99.6979 3.51403 99.8499 3.57514V5.50014C99.7891 5.46959 99.637 5.40847 99.4546 5.34736C99.2721 5.28625 99.0592 5.2557 98.8159 5.2557C98.3598 5.2557 97.9949 5.40847 97.7516 5.68347C97.5083 5.98903 97.3866 6.41681 97.3866 6.96681V8.09736H100.701V5.95847L102.921 5.28625V8.09736H105.172V9.9307H102.921V14.3613C102.921 14.9418 103.013 15.3696 103.226 15.5835C103.438 15.8279 103.773 15.9501 104.229 15.9501C104.351 15.9501 104.503 15.9196 104.685 15.8585C104.868 15.7974 105.02 15.7363 105.172 15.6446V17.4779C105.02 17.5696 104.807 17.6307 104.472 17.6918C104.138 17.7529 103.834 17.7835 103.499 17.7835C102.556 17.7835 101.857 17.539 101.401 17.0196C100.945 16.5307 100.701 15.7668 100.701 14.7585V9.96125Z" /><path d="M10.4005 0H0V10.45H10.4005V0Z" fill="#F25022" /><path d="M21.8958 0H11.4954V10.45H21.8958V0Z" fill="#7FBA00" /><path d="M10.4005 11.55H0V22.0001H10.4005V11.55Z" fill="#00A4EF"/><path d="M21.8958 11.55H11.4954V22.0001H21.8958V11.55Z" fill="#FFB900"/></svg>',s='<svg width="16" height="10" viewBox="0 0 16 10" xmlns="http://www.w3.org/2000/svg"><path d="M12 3V4C12.3958 4 12.7734 4.04688 13.1328 4.14062C13.4974 4.22917 13.8177 4.375 14.0938 4.57812C14.3698 4.77604 14.5885 5.03385 14.75 5.35156C14.9167 5.66406 15 6.04688 15 6.5C15 6.84375 14.9323 7.16667 14.7969 7.46875C14.6667 7.77083 14.487 8.03646 14.2578 8.26562C14.0339 8.48958 13.7708 8.66927 13.4688 8.80469C13.1667 8.9349 12.8438 9 12.5 9H8.5C8.15625 9 7.83333 8.9349 7.53125 8.80469C7.22917 8.66927 6.96354 8.48958 6.73438 8.26562C6.51042 8.03646 6.33073 7.77083 6.19531 7.46875C6.0651 7.16667 6 6.84375 6 6.5C6 6.04688 6.08073 5.66406 6.24219 5.35156C6.40885 5.03385 6.63021 4.77604 6.90625 4.57812C7.18229 4.375 7.5 4.22917 7.85938 4.14062C8.22396 4.04688 8.60417 4 9 4V3H8.5C8.01562 3 7.5599 3.09375 7.13281 3.28125C6.71094 3.46354 6.34115 3.71354 6.02344 4.03125C5.71094 4.34375 5.46094 4.71354 5.27344 5.14062C5.09115 5.5625 5 6.01562 5 6.5C5 6.98438 5.09115 7.4401 5.27344 7.86719C5.46094 8.28906 5.71094 8.65885 6.02344 8.97656C6.34115 9.28906 6.71094 9.53906 7.13281 9.72656C7.5599 9.90885 8.01562 10 8.5 10H12.5C12.9844 10 13.4375 9.90885 13.8594 9.72656C14.2865 9.53906 14.6562 9.28906 14.9688 8.97656C15.2865 8.65885 15.5365 8.28906 15.7188 7.86719C15.9062 7.4401 16 6.98438 16 6.5C16 6.01562 15.9062 5.5625 15.7188 5.14062C15.5365 4.71354 15.2865 4.34375 14.9688 4.03125C14.6562 3.71354 14.2865 3.46354 13.8594 3.28125C13.4375 3.09375 12.9844 3 12.5 3H12ZM7 7V6C7.39583 6 7.77344 5.95573 8.13281 5.86719C8.4974 5.77344 8.81771 5.6276 9.09375 5.42969C9.36979 5.22656 9.58854 4.96875 9.75 4.65625C9.91667 4.33854 10 3.95312 10 3.5C10 3.15625 9.93229 2.83333 9.79688 2.53125C9.66667 2.22917 9.48698 1.96615 9.25781 1.74219C9.03385 1.51302 8.77083 1.33333 8.46875 1.20312C8.16667 1.06771 7.84375 1 7.5 1H3.5C3.15625 1 2.83333 1.06771 2.53125 1.20312C2.22917 1.33333 1.96354 1.51302 1.73438 1.74219C1.51042 1.96615 1.33073 2.22917 1.19531 2.53125C1.0651 2.83333 1 3.15625 1 3.5C1 3.95312 1.08073 4.33854 1.24219 4.65625C1.40885 4.96875 1.63021 5.22656 1.90625 5.42969C2.18229 5.6276 2.5 5.77344 2.85938 5.86719C3.22396 5.95573 3.60417 6 4 6V7H3.5C3.01562 7 2.5599 6.90885 2.13281 6.72656C1.71094 6.53906 1.34115 6.28906 1.02344 5.97656C0.710938 5.65885 0.460938 5.28906 0.273438 4.86719C0.0911458 4.4401 0 3.98438 0 3.5C0 3.01562 0.0911458 2.5625 0.273438 2.14062C0.460938 1.71354 0.710938 1.34375 1.02344 1.03125C1.34115 0.713542 1.71094 0.463542 2.13281 0.28125C2.5599 0.09375 3.01562 0 3.5 0H7.5C7.98438 0 8.4375 0.09375 8.85938 0.28125C9.28646 0.463542 9.65625 0.713542 9.96875 1.03125C10.2865 1.34375 10.5365 1.71354 10.7188 2.14062C10.9062 2.5625 11 3.01562 11 3.5C11 3.98438 10.9062 4.4401 10.7188 4.86719C10.5365 5.28906 10.2865 5.65885 9.96875 5.97656C9.65625 6.28906 9.28646 6.53906 8.85938 6.72656C8.4375 6.90885 7.98438 7 7.5 7H7Z" fill-opacity="0.83"/></svg>',l='<svg height="20" width="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill="currentcolor" d="M5.0293 19.0918L14.1113 10L5.0293 0.908203L5.9082 0.0292969L15.8887 10L5.9082 19.9707L5.0293 19.0918Z"></path></svg>'},13543:function(e,t,o){"use strict";o.d(t,{U:function(){return n},W:function(){return r}});var i=o(53046);const r=i.i`
    .line-clamp {
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: var(--heading-max-lines, 3);
    }
`,n=i.i`
    .sd-action:not([appearance="lightweight"]) {
        --control-corner-radius: 999;
        font-size: var(--type-ramp-minus-1-font-size);
        line-height: var(--type-ramp-minus-1-line-height);
    }

    .sd-action::part(control) {
        width: 100%;
    }

    .sd-action::part(content) {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        text-overflow: ellipsis;
        overflow: hidden;
    }
`},71027:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.5A2.5 2.5 0 016.5 2h7A2.5 2.5 0 0116 4.5v13a.5.5 0 01-.8.4L10 14.12 4.8 17.9a.5.5 0 01-.8-.4v-13z"></path></svg>'},59039:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 4.5A2.5 2.5 0 016.5 2h7A2.5 2.5 0 0116 4.5v13a.5.5 0 01-.8.4L10 14.12 4.8 17.9a.5.5 0 01-.8-.4v-13zM6.5 3C5.67 3 5 3.67 5 4.5v12.02l4.7-3.42a.5.5 0 01.6 0l4.7 3.42V4.5c0-.83-.67-1.5-1.5-1.5h-7z"></path></svg>'},56993:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 13h11a.5.5 0 00.42-.78L13.1 8l2.82-4.22A.5.5 0 0015.5 3H4a.5.5 0 00-.5.5v14a.5.5 0 001 0V13zm0-1V4h10.07l-2.49 3.72a.5.5 0 000 .56L14.57 12H4.5z"></path></svg>'},83572:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="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"></path></svg>'},78408:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.86 2.53c.6-.7 1.68-.7 2.28 0l6.62 7.8a1 1 0 01-.76 1.65h-3V17a1 1 0 01-1 1H7a1 1 0 01-1-1v-5.02H3a1 1 0 01-.76-1.65l6.62-7.8zm1.52.65a.5.5 0 00-.76 0L3 10.98h3.5c.28 0 .5.23.5.5V17h6v-5.52c0-.27.22-.5.5-.5H17l-6.62-7.8z"></path></svg>'},56933:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-1 0c0-1.75-.64-3.36-1.7-4.58l-9.88 9.87A7 7 0 0017 10zM4.7 14.58l9.88-9.87a7 7 0 00-9.87 9.87z"></path></svg>'},2788:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M13.33 12.84l4.5-4.42.05-.07a.59.59 0 00-.05-.77l-4.5-4.42-.06-.05c-.36-.27-.9-.01-.9.47V5.7l-.22.01C8.6 6.01 6.5 8.26 6 12.35c-.06.53.54.85.93.5a9.64 9.64 0 014.45-2.38c.24-.06.5-.1.74-.12l.26-.02v2.17c.06.46.61.67.95.34zm-1.1-6.12l1.15-.08V4.61L16.82 8l-3.44 3.39V9.23l-1.36.12c-1.7.19-3.32.87-4.83 2 .3-1.33.8-2.34 1.47-3.06a5.2 5.2 0 013.57-1.57zM5.5 4A2.5 2.5 0 003 6.5v8A2.5 2.5 0 005.5 17h8a2.5 2.5 0 002.5-2.5v-1a.5.5 0 00-1 0v1c0 .83-.67 1.5-1.5 1.5h-8A1.5 1.5 0 014 14.5v-8C4 5.67 4.67 5 5.5 5h3a.5.5 0 000-1h-3z"></path></svg>'},95706:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.9 2.9a1 1 0 00-1.8 0L7.17 6.8l-4.31.63a1 1 0 00-.56 1.7l3.13 3.05-.74 4.3a1 1 0 001.45 1.05l3.43-1.8c.16-.4.4-.76.7-1.07l.1-.09a1 1 0 00-.83.05l-3.87 2.03.74-4.3a1 1 0 00-.29-.89L3 8.43l4.32-.63a1 1 0 00.75-.55L10 3.35l1.93 3.9c.15.3.43.5.75.55l4.32.63-.72.7c.48-.15 1-.17 1.49-.06a1 1 0 00-.63-1.63l-4.31-.63L10.9 2.9zm4.9 7.65l-4.82 4.83a2.2 2.2 0 00-.58 1.02l-.37 1.5a.89.89 0 001.08 1.07l1.5-.37c.38-.1.73-.3 1.01-.58l4.83-4.83a1.87 1.87 0 00-2.64-2.64z"></path></svg>'},70146:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.48 18.3c-.8.83-2.09.38-2.43-.6-.28-.8-.64-1.77-1-2.48C8 13.1 7.38 11.9 5.67 10.37c-.23-.2-.52-.36-.84-.49-1.13-.44-2.2-1.61-1.91-3l.35-1.77a2.5 2.5 0 011.8-1.92l5.6-1.53a4.5 4.5 0 015.6 3.54l.69 3.76A3 3 0 0114 12.5h-.89l.01.05c.08.41.18.97.24 1.58.07.62.1 1.29.05 1.92a3.68 3.68 0 01-.5 1.73c-.11.16-.27.35-.44.52z"></path></svg>'},92572:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.05 17.7c.34.98 1.63 1.43 2.43.6.17-.17.33-.36.44-.52.32-.48.45-1.12.5-1.73.05-.63.02-1.3-.05-1.92-.06-.6-.16-1.17-.24-1.58v-.05H14a3 3 0 002.95-3.54l-.69-3.76a4.5 4.5 0 00-5.6-3.54L5.06 3.2c-.92.25-1.62 1-1.8 1.92l-.35 1.77c-.28 1.39.78 2.56 1.9 3 .33.13.62.3.85.5 1.7 1.5 2.32 2.72 3.38 4.84.36.71.72 1.68 1 2.49zm1.97-5.58v.04a14.2 14.2 0 01.36 2.08c.06.58.09 1.18.04 1.73-.04.55-.15.98-.33 1.25-.06.1-.18.22-.33.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-.88-.34-1.45-1.14-1.3-1.87l.35-1.77c.11-.56.53-1 1.08-1.15l5.6-1.53a3.5 3.5 0 014.36 2.75l.68 3.76a2 2 0 01-1.96 2.36h-1.5a.5.5 0 00-.5.62z"></path></svg>'},88898:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.48 1.7c-.8-.83-2.09-.38-2.43.6-.28.8-.64 1.77-1 2.48C8 6.9 7.38 8.1 5.67 9.63c-.23.2-.52.36-.84.49-1.13.44-2.2 1.61-1.91 3l.35 1.77a2.5 2.5 0 001.8 1.92l5.6 1.52a4.5 4.5 0 005.6-3.53l.69-3.76A3 3 0 0014 7.5h-.89l.01-.05c.08-.41.18-.97.24-1.59.07-.6.1-1.28.05-1.9a3.68 3.68 0 00-.5-1.74 4.16 4.16 0 00-.44-.52z"></path></svg>'},86775:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.05 2.3c.34-.98 1.63-1.43 2.43-.6.17.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.05H14a3 3 0 012.95 3.54l-.69 3.76a4.5 4.5 0 01-5.6 3.53l-5.6-1.52a2.5 2.5 0 01-1.8-1.92l-.35-1.77c-.28-1.39.78-2.56 1.9-3 .33-.13.62-.3.85-.5 1.7-1.5 2.32-2.72 3.38-4.84.36-.71.72-1.68 1-2.49zm1.97 5.58v-.04a13.7 13.7 0 00.13-.58c.08-.4.17-.93.23-1.5.06-.58.09-1.18.04-1.73a2.73 2.73 0 00-.33-1.25 3.26 3.26 0 00-.33-.39c-.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-.88.34-1.45 1.14-1.3 1.87l.35 1.77c.11.56.53 1 1.08 1.15l5.6 1.53c1.98.54 4-.73 4.36-2.75l.68-3.76a2 2 0 00-1.96-2.36h-1.5a.5.5 0 01-.5-.62z"></path></svg>'},38247:function(e,t,o){"use strict";o.d(t,{QT:function(){return h}});var i=o(33940),r=o(28090),n=o(65620),a=o(45169),s=o(53046),l=o(45597),c=o(82636);class d extends r.e{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="neutral")}defaultSlottedContentChanged(){const e=this.defaultSlottedContent.filter((e=>e.nodeType===Node.ELEMENT_NODE));1===e.length&&e[0]instanceof SVGElement?this.control.classList.add("icon-only"):this.control.classList.remove("icon-only")}}(0,i.gn)([n.Lj,(0,i.w6)("design:type",String)],d.prototype,"appearance",void 0);const h=d.compose({baseName:"anchor",baseClass:r.e,template:a.g,styles:(e,t)=>s.i`
        ${(0,l.vN)(e,t)}
    `.withBehaviors((0,c.H)("accent",l.jQ),(0,c.H)("hypertext",l.Xu),(0,c.H)("lightweight",l.vt),(0,c.H)("outline",l.O8),(0,c.H)("stealth",l.cg)),shadowOptions:{delegatesFocus:!0}})},87034:function(e,t,o){"use strict";o.d(t,{g:function(){return x}});var i=o(20005),r=o(65620),n=o(87697),a=o(36153),s=o(82500),l=o(48839);class c extends l.I{}class d extends((0,s.V2)(c)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class h extends d{constructor(){super(),this.initialValue="on",this.indeterminate=!1,this.keypressHandler=e=>{if(!this.readOnly&&e.key===a.BI)this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked},this.clickHandler=e=>{this.disabled||this.readOnly||(this.indeterminate&&(this.indeterminate=!1),this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}}(0,i.gn)([(0,r.Lj)({attribute:"readonly",mode:"boolean"})],h.prototype,"readOnly",void 0),(0,i.gn)([n.LO],h.prototype,"defaultSlottedNodes",void 0),(0,i.gn)([n.LO],h.prototype,"indeterminate",void 0);var u=o(39181),p=o(90960);var g=o(53046),v=o(67020),m=o(56201),f=o(37139),b=o(40082),y=o(15933),w=o(2658),C=o(32804);const x=h.compose({baseName:"checkbox",template:(e,t)=>u.d`
    <template
        role="checkbox"
        aria-checked="${e=>e.checked}"
        aria-required="${e=>e.required}"
        aria-disabled="${e=>e.disabled}"
        aria-readonly="${e=>e.readOnly}"
        tabindex="${e=>e.disabled?null:0}"
        @keypress="${(e,t)=>e.keypressHandler(t.event)}"
        @click="${(e,t)=>e.clickHandler(t.event)}"
        class="${e=>e.readOnly?"readonly":""} ${e=>e.checked?"checked":""} ${e=>e.indeterminate?"indeterminate":""}"
    >
        <div part="control" class="control">
            <slot name="checked-indicator">
                ${t.checkedIndicator||""}
            </slot>
            <slot name="indeterminate-indicator">
                ${t.indeterminateIndicator||""}
            </slot>
        </div>
        <label
            part="label"
            class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,p.Q)("defaultSlottedNodes")}></slot>
        </label>
    </template>
`,styles:(e,t)=>g.i`
        ${(0,v.j)("inline-flex")} :host {
            align-items: center;
            outline: none;
            margin: calc(${C._5n} * 1px) 0;
            ${""} user-select: none;
        }

        .control {
            position: relative;
            width: calc((${w.i} / 2 + ${C._5n}) * 1px);
            height: calc((${w.i} / 2 + ${C._5n}) * 1px);
            box-sizing: border-box;
            border-radius: calc(${C.UWU} * 1px);
            border: calc(${C.Han} * 1px) solid ${C.rU8};
            background: ${C._Bj};
            outline: none;
            cursor: pointer;
        }

        .label__hidden {
            display: none;
            visibility: hidden;
        }

        .label {
            font-family: ${C.SVJ};
            color: ${C.CHi};
            ${""} padding-inline-start: calc(${C._5n} * 2px + 2px);
            margin-inline-end: calc(${C._5n} * 2px + 2px);
            cursor: pointer;
            font-size: ${C.cSu};
            line-height: ${C.RUt};
        }

        .checked-indicator {
            width: 100%;
            height: 100%;
            display: block;
            fill: ${C.CHi};
            opacity: 0;
            pointer-events: none;
        }

        .indeterminate-indicator {
            border-radius: calc((${C.UWU} / 2) * 1px);
            background: ${C.CHi};
            position: absolute;
            top: 50%;
            left: 50%;
            width: 50%;
            height: 50%;
            transform: translate(-50%, -50%);
            opacity: 0;
        }

        :host(:enabled) .control:hover {
            background: ${C.Tm7};
            border-color: ${C.gKw};
        }

        :host(:enabled) .control:active {
            background: ${C.Ium};
            border-color: ${C.ekh};
        }

        :host(:${m.b}) .control {
            box-shadow: 0 0 0 2px ${C.IfY}, 0 0 0 4px ${C.yGg};
            border-color: ${C.yGg};
        }

        :host(.disabled) .label,
        :host(.readonly) .label,
        :host(.readonly) .control,
        :host(.disabled) .control {
            cursor: ${f.H};
        }

        :host(.checked:not(.indeterminate)) .checked-indicator,
        :host(.indeterminate) .indeterminate-indicator {
            opacity: 1;
        }

        :host(.disabled) {
            opacity: ${C.VFZ};
        }
    `.withBehaviors((0,b.vF)(g.i`
                .control {
                    forced-color-adjust: none;
                    border-color: ${y.H.FieldText};
                    background: ${y.H.Field};
                }
                :host(:enabled) .control:hover,
                .control:active {
                    border-color: ${y.H.Highlight};
                    background: ${y.H.Field};
                }
                .checked-indicator {
                    fill: ${y.H.FieldText};
                }
                .indeterminate-indicator {
                    background: ${y.H.FieldText};
                }
                :host(:${m.b}) .control {
                    border-color: ${y.H.Highlight};
                    box-shadow: 0 0 0 2px ${y.H.Field},
                        0 0 0 4px ${y.H.FieldText};
                }
                :host(.checked:${m.b}:enabled) .control {
                    box-shadow: 0 0 0 2px ${y.H.Field},
                        0 0 0 4px ${y.H.FieldText};
                }
                :host(.checked) .control {
                    background: ${y.H.Highlight};
                    border-color: ${y.H.Highlight};
                }
                :host(.checked) .control:hover,
                .control:active {
                    background: ${y.H.HighlightText};
                }
                :host(.checked) .checked-indicator {
                    fill: ${y.H.HighlightText};
                }
                :host(.checked) .control:hover .checked-indicator {
                    fill: ${y.H.Highlight};
                }
                :host(.checked) .indeterminate-indicator {
                    background: ${y.H.HighlightText};
                }
                :host(.checked) .control:hover .indeterminate-indicator {
                    background: ${y.H.Highlight};
                }
                :host(.disabled) {
                    opacity: 1;
                }
                :host(.disabled) .control {
                    forced-color-adjust: none;
                    border-color: ${y.H.GrayText};
                    background: ${y.H.Field};
                }
                :host(.disabled) .indeterminate-indicator,
                :host(.checked.disabled) .control:hover .indeterminate-indicator {
                    forced-color-adjust: none;
                    background: ${y.H.GrayText};
                }
                :host(.disabled) .checked-indicator,
                :host(.checked.disabled) .control:hover .checked-indicator {
                    forced-color-adjust: none;
                    fill: ${y.H.GrayText};
                }
            `)),checkedIndicator:'\n    <svg\n        aria-hidden="true"\n        part="checked-indicator"\n        class="checked-indicator"\n        viewBox="0 0 20 20"\n        xmlns="http://www.w3.org/2000/svg"\n    >\n        <path\n            fill-rule="evenodd"\n            clip-rule="evenodd"\n            d="M8.143 12.6697L15.235 4.5L16.8 5.90363L8.23812 15.7667L3.80005 11.2556L5.27591 9.7555L8.143 12.6697Z"\n        />\n    </svg>\n  ',indeterminateIndicator:'\n    <div part="indeterminate-indicator" class="indeterminate-indicator"></div>\n  '})},62567:function(e,t,o){"use strict";o.d(t,{of:function(){return M}});var i=o(33940),r=o(20005),n=o(65620),a=o(87697),s=o(99096),l=o(86076),c=o(82500),d=o(48839);class h extends d.I{}class u extends((0,c.Um)(h)){constructor(){super(...arguments),this.proxy=document.createElement("textarea")}}const p="none";class g extends u{constructor(){super(...arguments),this.resize=p,this.cols=20,this.handleTextInput=()=>{this.value=this.control.value}}readOnlyChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.readOnly=this.readOnly)}autofocusChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.autofocus=this.autofocus)}listChanged(){this.proxy instanceof HTMLTextAreaElement&&this.proxy.setAttribute("list",this.list)}maxlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.maxLength=this.maxlength)}minlengthChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.minLength=this.minlength)}spellcheckChanged(){this.proxy instanceof HTMLTextAreaElement&&(this.proxy.spellcheck=this.spellcheck)}select(){this.control.select(),this.$emit("select")}handleChange(){this.$emit("change")}}(0,r.gn)([(0,n.Lj)({mode:"boolean"})],g.prototype,"readOnly",void 0),(0,r.gn)([n.Lj],g.prototype,"resize",void 0),(0,r.gn)([(0,n.Lj)({mode:"boolean"})],g.prototype,"autofocus",void 0),(0,r.gn)([(0,n.Lj)({attribute:"form"})],g.prototype,"formId",void 0),(0,r.gn)([n.Lj],g.prototype,"list",void 0),(0,r.gn)([(0,n.Lj)({converter:n.Id})],g.prototype,"maxlength",void 0),(0,r.gn)([(0,n.Lj)({converter:n.Id})],g.prototype,"minlength",void 0),(0,r.gn)([n.Lj],g.prototype,"name",void 0),(0,r.gn)([n.Lj],g.prototype,"placeholder",void 0),(0,r.gn)([(0,n.Lj)({converter:n.Id,mode:"fromView"})],g.prototype,"cols",void 0),(0,r.gn)([(0,n.Lj)({converter:n.Id,mode:"fromView"})],g.prototype,"rows",void 0),(0,r.gn)([(0,n.Lj)({mode:"boolean"})],g.prototype,"spellcheck",void 0),(0,r.gn)([a.LO],g.prototype,"defaultSlottedNodes",void 0),(0,l.e)(g,s.yd);var v=o(39181),m=o(90960),f=o(58952);var b=o(53046),y=o(40082),w=o(87839),C=o(67020),x=o(56201),k=o(37139),A=o(74358),T=o(2658),$=o(82636),O=o(32804);class S extends g{appearanceChanged(e,t){e!==t&&(this.classList.add(t),this.classList.remove(e))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}(0,i.gn)([n.Lj,(0,i.w6)("design:type",String)],S.prototype,"appearance",void 0);const M=S.compose({baseName:"text-area",baseClass:g,template:(e,t)=>v.d`
    <template
        class="
            ${e=>e.readOnly?"readonly":""}
            ${e=>e.resize!==p?`resize-${e.resize}`:""}"
    >
        <label
            part="label"
            for="control"
            class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,m.Q)("defaultSlottedNodes")}></slot>
        </label>
        <textarea
            part="control"
            class="control"
            id="control"
            ?autofocus="${e=>e.autofocus}"
            cols="${e=>e.cols}"
            ?disabled="${e=>e.disabled}"
            form="${e=>e.form}"
            list="${e=>e.list}"
            maxlength="${e=>e.maxlength}"
            minlength="${e=>e.minlength}"
            name="${e=>e.name}"
            placeholder="${e=>e.placeholder}"
            ?readonly="${e=>e.readOnly}"
            ?required="${e=>e.required}"
            rows="${e=>e.rows}"
            ?spellcheck="${e=>e.spellcheck}"
            :value="${e=>e.value}"
            aria-atomic="${e=>e.ariaAtomic}"
            aria-busy="${e=>e.ariaBusy}"
            aria-controls="${e=>e.ariaControls}"
            aria-current="${e=>e.ariaCurrent}"
            aria-describedby="${e=>e.ariaDescribedby}"
            aria-details="${e=>e.ariaDetails}"
            aria-disabled="${e=>e.ariaDisabled}"
            aria-errormessage="${e=>e.ariaErrormessage}"
            aria-flowto="${e=>e.ariaFlowto}"
            aria-haspopup="${e=>e.ariaHaspopup}"
            aria-hidden="${e=>e.ariaHidden}"
            aria-invalid="${e=>e.ariaInvalid}"
            aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
            aria-label="${e=>e.ariaLabel}"
            aria-labelledby="${e=>e.ariaLabelledby}"
            aria-live="${e=>e.ariaLive}"
            aria-owns="${e=>e.ariaOwns}"
            aria-relevant="${e=>e.ariaRelevant}"
            aria-roledescription="${e=>e.ariaRoledescription}"
            @input="${(e,t)=>e.handleTextInput()}"
            @change="${e=>e.handleChange()}"
            ${(0,f.i)("control")}
        ></textarea>
    </template>
`,styles:(e,t)=>b.i`
        ${(0,C.j)("inline-flex")} :host {
            font-family: ${O.SVJ};
            outline: none;
            user-select: none;
            position: relative;
            flex-direction: column;
            vertical-align: bottom;
        }

        .control {
            box-sizing: border-box;
            position: relative;
            color: ${O.CHi};
            background: ${O._Bj};
            border-radius: calc(${O.UWU} * 1px);
            border: calc(${O.Han} * 1px) solid ${O.akT};
            height: calc(${T.i} * 2px);
            font: inherit;
            font-size: ${O.cSu};
            line-height: ${O.RUt};
            padding: calc(${O._5n} * 1.5px) calc(${O._5n} * 2px + 1px);
            width: 100%;
            resize: none;
        }

        .control:hover:enabled {
            background: ${O.Tm7};
            border-color: ${O.QPc};
        }

        .control:hover,
    .control:${x.b},
    .control:disabled,
    .control:active {
            outline: none;
        }

        :host(:focus-within) .control {
            border-color: ${O.yGg};
            box-shadow: 0 0 0 1px ${O.yGg} inset;
        }

        :host(.resize-both) .control {
            resize: both;
        }

        :host(.resize-horizontal) .control {
            resize: horizontal;
        }

        :host(.resize-vertical) .control {
            resize: vertical;
        }

        .label__hidden {
            display: none;
            visibility: hidden;
        }

        .label {
            display: block;
            color: ${O.CHi};
            cursor: pointer;
            $font-size: ${O.cSu};
            line-height: ${O.RUt};
            margin-bottom: 4px;
        }

        :host([disabled]) .label,
        :host([readonly]) .label,
        :host([readonly]) .control,
        :host([disabled]) .control {
            cursor: ${k.H};
        }
        :host([disabled]) {
            opacity: ${O.VFZ};
        }
    `.withBehaviors((0,$.H)("filled",((e,t)=>b.i`
        :host([appearance="filled"]) .control {
            background: ${O.wFS};
            border-color: transparent;
        }

        :host([appearance="filled"]:hover:not([disabled])) .control {
            background: ${O.XiB};
            border-color: transparent;
        }

        :host([appearance="filled"]:focus-within:not([disabled])) .control {
            border-color: transparent;
            box-shadow: none;
        }
        ${(0,A.n)(e,t)}
    `.withBehaviors((0,y.vF)(b.i`
                :host([appearance="filled"]:hover:not([disabled])) .control,
                :host([appearance="filled"]:focus-within:not([disabled])) .control {
                    background: ${w.H.Field};
                    border-color: ${w.H.FieldText};
                }
                :host([appearance="filled"]:not([disabled]):active)::after,
                :host([appearance="filled"]:not([disabled]):focus-within:not(:active))::after {
                    border-bottom-color: ${w.H.Highlight};
                }
            `)))(e,t)),(0,y.vF)(b.i`
                :host([disabled]) {
                    opacity: 1;
                }
                ::placeholder,
                ::-webkit-input-placeholder {
                    color: ${w.H.FieldText};
                }
                :host([disabled]) ::placeholder,
                :host([disabled]) ::-webkit-input-placeholder,
                :host([disabled]) .label {
                    color: ${w.H.GrayText};
                }
            `)),shadowOptions:{delegatesFocus:!0}})},28090:function(e,t,o){"use strict";o.d(t,{e:function(){return d},m:function(){return h}});var i=o(20005),r=o(65620),n=o(87697),a=o(48839),s=o(7775),l=o(51208),c=o(86076);class d extends a.I{constructor(){super(...arguments),this.handleUnsupportedDelegatesFocus=()=>{var e;window.ShadowRoot&&!window.ShadowRoot.prototype.hasOwnProperty("delegatesFocus")&&(null===(e=this.$fastController.definition.shadowOptions)||void 0===e?void 0:e.delegatesFocus)&&(this.focus=()=>{this.control.focus()})}}connectedCallback(){super.connectedCallback(),this.handleUnsupportedDelegatesFocus()}}(0,i.gn)([r.Lj],d.prototype,"download",void 0),(0,i.gn)([r.Lj],d.prototype,"href",void 0),(0,i.gn)([r.Lj],d.prototype,"hreflang",void 0),(0,i.gn)([r.Lj],d.prototype,"ping",void 0),(0,i.gn)([r.Lj],d.prototype,"referrerpolicy",void 0),(0,i.gn)([r.Lj],d.prototype,"rel",void 0),(0,i.gn)([r.Lj],d.prototype,"target",void 0),(0,i.gn)([r.Lj],d.prototype,"type",void 0),(0,i.gn)([n.LO],d.prototype,"defaultSlottedContent",void 0);class h{}(0,i.gn)([(0,r.Lj)({attribute:"aria-expanded"})],h.prototype,"ariaExpanded",void 0),(0,c.e)(h,s.v),(0,c.e)(d,l.hW,h)},45169:function(e,t,o){"use strict";o.d(t,{g:function(){return s}});var i=o(39181),r=o(58952),n=o(90960),a=o(51208);const s=(e,t)=>i.d`
    <a
        class="control"
        part="control"
        download="${e=>e.download}"
        href="${e=>e.href}"
        hreflang="${e=>e.hreflang}"
        ping="${e=>e.ping}"
        referrerpolicy="${e=>e.referrerpolicy}"
        rel="${e=>e.rel}"
        target="${e=>e.target}"
        type="${e=>e.type}"
        aria-atomic="${e=>e.ariaAtomic}"
        aria-busy="${e=>e.ariaBusy}"
        aria-controls="${e=>e.ariaControls}"
        aria-current="${e=>e.ariaCurrent}"
        aria-describedby="${e=>e.ariaDescribedby}"
        aria-details="${e=>e.ariaDetails}"
        aria-disabled="${e=>e.ariaDisabled}"
        aria-errormessage="${e=>e.ariaErrormessage}"
        aria-expanded="${e=>e.ariaExpanded}"
        aria-flowto="${e=>e.ariaFlowto}"
        aria-haspopup="${e=>e.ariaHaspopup}"
        aria-hidden="${e=>e.ariaHidden}"
        aria-invalid="${e=>e.ariaInvalid}"
        aria-keyshortcuts="${e=>e.ariaKeyshortcuts}"
        aria-label="${e=>e.ariaLabel}"
        aria-labelledby="${e=>e.ariaLabelledby}"
        aria-live="${e=>e.ariaLive}"
        aria-owns="${e=>e.ariaOwns}"
        aria-relevant="${e=>e.ariaRelevant}"
        aria-roledescription="${e=>e.ariaRoledescription}"
        ${(0,r.i)("control")}
    >
        ${(0,a.m9)(e,t)}
        <span class="content" part="content">
            <slot ${(0,n.Q)("defaultSlottedContent")}></slot>
        </span>
        ${(0,a.LC)(e,t)}
    </a>
`},44650:function(e,t,o){"use strict";var i=o(23658),r=o(84708),n=Math.max;t.Z=function(e,t,o){var a=null==e?0:e.length;if(!a)return-1;var s=null==o?0:(0,r.Z)(o);return s<0&&(s=n(a+s,0)),(0,i.Z)(e,t,s)}},12697:function(e,t,o){"use strict";var i=o(84708);t.Z=function(e){return"number"==typeof e&&e==(0,i.Z)(e)}}}]);A
Eo