}">
        <fluent-button
            class="toggle-button"
            appearance="lightweight"
            @click=${(e,t)=>e.toggleActionMenu&&e.toggleActionMenu(!e.isActionMenuOpen,t.event)}
            title="${e=>e.actionsModuleLocStrings.mr}"
            aria-label="${e=>e.actionsModuleLocStrings.mr}"
            role="button"
        >
            ${'\n<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0 12C0 5.37258 5.37258 0 12 0C18.6274 0 24 5.37258 24 12C24 18.6274 18.6274 24 12 24C5.37258 24 0 18.6274 0 12Z" fill-opacity="0.05"/>\n<path d="M9.25 12C9.25 12.6904 8.69036 13.25 8 13.25C7.30964 13.25 6.75 12.6904 6.75 12C6.75 11.3096 7.30964 10.75 8 10.75C8.69036 10.75 9.25 11.3096 9.25 12Z" fill-opacity="0.55"/>\n<path d="M13.25 12C13.25 12.6904 12.6904 13.25 12 13.25C11.3096 13.25 10.75 12.6904 10.75 12C10.75 11.3096 11.3096 10.75 12 10.75C12.6904 10.75 13.25 11.3096 13.25 12Z" fill-opacity="0.55"/>\n<path d="M16 13.25C16.6904 13.25 17.25 12.6904 17.25 12C17.25 11.3096 16.6904 10.75 16 10.75C15.3096 10.75 14.75 11.3096 14.75 12C14.75 12.6904 15.3096 13.25 16 13.25Z" fill-opacity="0.55"/>\n</svg>\n'}
        </fluent-button>
        ${(0,B.g)((e=>e.isActionMenuOpen),Y)}
    </div>
`;function Q(e,...t){if(null==e||null==t)return"";const i=t.flatMap((e=>null==e?[]:[e]));if(t.length!==i.length)return"";const r=/{(\d+)}/g;return[...e.matchAll(r)].length!==i.length?"":e.replace(r,((e,t)=>i[t]??""))}const K=e=>z.d`
        <div class="bop_head">
            <div class="bop_head_titleCont">
                ${z.d`
        <svg
            class="bop_head_icon"
            width="16"
            height="17"
            viewBox="0 0 16 17"
            fill="none"
            xmlns="http://www.w3.org/2000/svg"
        >
            <g clip-path="url(#clip0_1997_289873)">
                <path
                    fill-rule="evenodd"
                    clip-rule="evenodd"
                    d="M0 2.00439H22.8V2.92783H0V2.00439ZM0 3.85127H22.8V4.77471H0V3.85127ZM0 5.6958H22.8V6.62158H0V5.6958ZM0 7.54268H22.8V8.46611H0V7.54268ZM0 9.38955H22.8V10.313H0V9.38955ZM0 11.2341H22.8V12.1575H0V11.2341ZM0 13.081H22.8V14.0044H0V13.081Z"
                    fill="#BD3D44"
                />
                <path
                    fill-rule="evenodd"
                    clip-rule="evenodd"
                    d="M0 2.92773H22.8V3.85117H0V2.92773ZM0 4.77461H22.8V5.6957H0V4.77461ZM0 6.61914H22.8V7.54258H0V6.61914ZM0 8.46602H22.8V9.38945H0V8.46602ZM0 10.3129H22.8V11.2363H0V10.3129ZM0 12.1574H22.8V13.0809H0V12.1574Z"
                    fill="white"
                />
                <path
                    fill-rule="evenodd"
                    clip-rule="evenodd"
                    d="M0 2.00439H9.11953V8.46611H0V2.00439Z"
                    fill="#192F5D"
                />
                <path
                    fill-rule="evenodd"
                    clip-rule="evenodd"
                    d="M0.759277 2.28101L0.843652 2.53647H1.11084L0.895215 2.69351L0.977246 2.95132L0.759277 2.79194L0.543652 2.94897L0.625684 2.69351L0.407715 2.53647H0.67959L0.759277 2.28101ZM2.28037 2.28101L2.3624 2.53647H2.63193L2.41396 2.69351L2.496 2.95132L2.28037 2.79194L2.0624 2.94897L2.14443 2.69351L1.92881 2.53647H2.196L2.28037 2.28101ZM3.79912 2.28101L3.8835 2.53647H4.14834L3.93272 2.69351L4.01475 2.95132L3.79678 2.79194L3.58115 2.94897L3.66318 2.69351L3.44522 2.53647H3.71475L3.79912 2.28101ZM5.32022 2.28101L5.40225 2.53647H5.67178L5.45381 2.69351L5.53818 2.95132L5.32022 2.79194L5.10225 2.94897L5.18662 2.69351L4.96865 2.53647H5.23584L5.32022 2.28101ZM6.83897 2.28101L6.92334 2.53647H7.19053L6.9749 2.69351L7.05693 2.95132L6.83897 2.79194L6.62334 2.94897L6.70537 2.69351L6.48975 2.53647H6.75693L6.83897 2.28101ZM8.36006 2.28101L8.44209 2.53647H8.71162L8.49365 2.69351L8.57803 2.95132L8.36006 2.79194L8.14209 2.94897L8.22647 2.69351L8.0085 2.53647H8.27803L8.36006 2.28101ZM1.521 2.92788L1.60303 3.18335H1.87256L1.65459 3.34038L1.73428 3.59585L1.52334 3.43882L1.30537 3.59585L1.38271 3.34038L1.17178 3.18335H1.43896L1.521 2.92788ZM3.03975 2.92788L3.12412 3.18335H3.39131L3.17334 3.34038L3.25771 3.59585L3.03975 3.43882L2.82178 3.59585L2.90615 3.34038L2.68818 3.18335H2.95772L3.03975 2.92788ZM4.56084 2.92788L4.64287 3.18335H4.9124L4.69443 3.34038L4.77647 3.59585L4.56084 3.43882L4.34287 3.59585L4.4249 3.34038L4.20928 3.18335H4.47647L4.56084 2.92788ZM6.07959 2.92788L6.16397 3.18335H6.43115L6.21318 3.34038L6.29756 3.59585L6.07959 3.43882L5.86397 3.59585L5.946 3.34038L5.72803 3.18335H5.9999L6.07959 2.92788ZM7.60068 2.92788L7.68272 3.18335H7.95225L7.73428 3.34038L7.81631 3.59585L7.60068 3.43882L7.38272 3.59585L7.46475 3.34038L7.24912 3.18335H7.51631L7.60068 2.92788ZM0.759277 3.57241L0.843652 3.83257H1.11084L0.895215 3.9896L0.977246 4.24507L0.759277 4.08569L0.543652 4.24507L0.625684 3.98726L0.407715 3.83022H0.67959L0.759277 3.57241ZM2.28037 3.57241L2.3624 3.83022H2.63193L2.41396 3.98726L2.496 4.24272L2.28037 4.08335L2.0624 4.24272L2.14443 3.98491L1.92881 3.82788H2.196L2.28037 3.57241ZM3.79912 3.57241L3.8835 3.83022H4.14834L3.93272 3.98726L4.01475 4.24272L3.79678 4.08335L3.58115 4.24272L3.66318 3.98491L3.44522 3.82788H3.71475L3.79912 3.57241ZM5.32022 3.57241L5.40225 3.83022H5.67178L5.45381 3.98726L5.53818 4.24272L5.32022 4.08335L5.10225 4.24272L5.18662 3.98491L4.96865 3.82788H5.23584L5.32022 3.57241ZM6.83897 3.57241L6.92334 3.83022H7.19053L6.9749 3.98726L7.05693 4.24272L6.83897 4.08335L6.62334 4.24272L6.70537 3.98491L6.48975 3.82788H6.75693L6.83897 3.57241ZM8.36006 3.57241L8.44209 3.83022H8.71162L8.49365 3.98726L8.57803 4.24272L8.36006 4.08335L8.14209 4.24272L8.22647 3.98491L8.0085 3.82788H8.27803L8.36006 3.57241ZM1.521 4.21929L1.60303 4.47476H1.87256L1.65459 4.63179L1.73662 4.8896L1.521 4.73022L1.30303 4.88726L1.38506 4.63179L1.16943 4.47476H1.43662L1.521 4.21929ZM3.03975 4.21929L3.12412 4.47476H3.39131L3.17334 4.63179L3.25771 4.8896L3.03975 4.73022L2.82178 4.88726L2.90615 4.63179L2.68818 4.47476H2.95772L3.03975 4.21929ZM4.56084 4.21929L4.64287 4.47476H4.9124L4.69443 4.63179L4.77647 4.8896L4.56084 4.73022L4.34287 4.88726L4.4249 4.63179L4.20928 4.47476H4.47647L4.56084 4.21929ZM6.07959 4.21929L6.16397 4.47476H6.43115L6.21553 4.63179L6.29756 4.8896L6.07959 4.73022L5.86397 4.88726L5.946 4.63179L5.72803 4.47476H5.9999L6.07959 4.21929ZM7.60068 4.21929L7.68272 4.47476H7.95225L7.73428 4.63179L7.81631 4.8896L7.60068 4.73022L7.38272 4.88726L7.46475 4.63179L7.24912 4.47476H7.51631L7.60068 4.21929ZM0.759277 4.86616L0.843652 5.12163H1.11084L0.895215 5.27866L0.977246 5.53647L0.759277 5.3771L0.543652 5.53413L0.625684 5.27866L0.407715 5.12163H0.67959L0.759277 4.86616ZM2.28037 4.86616L2.3624 5.12163H2.63193L2.41396 5.27866L2.496 5.53413L2.28037 5.3771L2.0624 5.53413L2.14443 5.27866L1.92881 5.12163H2.196L2.28037 4.86616ZM3.79912 4.86616L3.8835 5.12163H4.14834L3.93272 5.27866L4.01475 5.53647L3.79678 5.3771L3.58115 5.53413L3.66318 5.27866L3.44522 5.12163H3.71475L3.79912 4.86616ZM5.32022 4.86616L5.40225 5.12163H5.67178L5.45381 5.27866L5.53818 5.53647L5.32022 5.3771L5.10225 5.53413L5.18662 5.27866L4.96865 5.12163H5.23584L5.32022 4.86616ZM6.83897 4.86616L6.92334 5.12163H7.19053L6.9749 5.27866L7.05693 5.53647L6.83897 5.3771L6.62334 5.53413L6.70537 5.27866L6.48975 5.12163H6.75693L6.83897 4.86616ZM8.36006 4.86616L8.44209 5.12163H8.71162L8.49365 5.27866L8.57803 5.53647L8.36006 5.3771L8.14209 5.53413L8.22647 5.27866L8.0085 5.12163H8.27803L8.36006 4.86616ZM1.521 5.51304L1.60303 5.76851H1.87256L1.65459 5.92554L1.73662 6.18101L1.521 6.02163L1.30303 6.18101L1.38506 5.92319L1.16943 5.76616H1.43662L1.521 5.51304ZM3.03975 5.51304L3.12412 5.76851H3.39131L3.17334 5.92554L3.25771 6.18101L3.03975 6.02163L2.82178 6.18101L2.90615 5.92319L2.68818 5.76616H2.95772L3.03975 5.51304ZM4.56084 5.51304L4.64287 5.76851H4.9124L4.69443 5.92554L4.77647 6.18101L4.56084 6.02163L4.34287 6.18101L4.4249 5.92319L4.20928 5.76616H4.47647L4.56084 5.51304ZM6.07959 5.51304L6.16397 5.76851H6.43115L6.21553 5.92554L6.29756 6.18101L6.07959 6.02163L5.86397 6.18101L5.946 5.92319L5.72803 5.76616H5.9999L6.07959 5.51304ZM7.60068 5.51304L7.68272 5.76851H7.95225L7.73428 5.92554L7.81631 6.18101L7.60068 6.02163L7.38272 6.18101L7.46475 5.92319L7.24912 5.76616H7.51631L7.60068 5.51304ZM0.759277 6.15757L0.843652 6.41538H1.11084L0.895215 6.57241L0.977246 6.82554L0.759277 6.66851L0.543652 6.82554L0.625684 6.57007L0.407715 6.41304H0.67959L0.759277 6.15757ZM2.28037 6.15757L2.3624 6.41538H2.63193L2.41396 6.57241L2.49834 6.82554L2.28037 6.66851L2.0624 6.82554L2.14678 6.57007L1.92881 6.41304H2.196L2.28037 6.15757ZM3.79912 6.15757L3.8835 6.41538H4.14834L3.93272 6.57241L4.01475 6.82554L3.79678 6.66851L3.58115 6.82554L3.66318 6.57007L3.44522 6.41304H3.71475L3.79912 6.15757ZM5.32022 6.15757L5.40225 6.41538H5.67178L5.45381 6.57241L5.53818 6.82554L5.32022 6.66851L5.10225 6.82554L5.18662 6.57007L4.96865 6.41304H5.23584L5.32022 6.15757ZM6.83897 6.15757L6.92334 6.41538H7.19053L6.9749 6.57241L7.05693 6.82554L6.83897 6.66851L6.62334 6.82554L6.70537 6.57007L6.48975 6.41304H6.75693L6.83897 6.15757ZM8.36006 6.15757L8.44209 6.41538H8.71162L8.49365 6.57241L8.57803 6.82554L8.36006 6.66851L8.14209 6.82554L8.22647 6.57007L8.0085 6.41304H8.27803L8.36006 6.15757ZM1.521 6.80444L1.60303 7.05991H1.87256L1.65459 7.21694L1.73662 7.47476L1.521 7.31538L1.30303 7.47241L1.38506 7.21694L1.16943 7.05991H1.43662L1.521 6.80444ZM3.03975 6.80444L3.12412 7.05991H3.39131L3.17334 7.21694L3.25771 7.47476L3.03975 7.31538L2.82178 7.47241L2.90615 7.21694L2.68818 7.05991H2.95772L3.03975 6.80444ZM4.56084 6.80444L4.64287 7.05991H4.9124L4.69443 7.21694L4.77647 7.47476L4.56084 7.31538L4.34287 7.47241L4.4249 7.21694L4.20928 7.05991H4.47647L4.56084 6.80444ZM6.07959 6.80444L6.16397 7.05991H6.43115L6.21553 7.21694L6.29756 7.47476L6.07959 7.31538L5.86397 7.47241L5.946 7.21694L5.72803 7.05991H5.9999L6.07959 6.80444ZM7.60068 6.80444L7.68272 7.05991H7.95225L7.73428 7.21694L7.81631 7.47476L7.60068 7.31538L7.38272 7.47241L7.46475 7.21694L7.24912 7.05991H7.51631L7.60068 6.80444ZM0.759277 7.45132L0.843652 7.70679H1.11084L0.895215 7.86382L0.977246 8.11929L0.759277 7.96226L0.543652 8.11929L0.625684 7.86147L0.407715 7.70444H0.67959L0.759277 7.45132ZM2.28037 7.45132L2.3624 7.70679H2.63193L2.41396 7.86382L2.49834 8.11929L2.28037 7.96226L2.0624 8.11929L2.14678 7.86147L1.92881 7.70444H2.196L2.28037 7.45132ZM3.79912 7.45132L3.8835 7.70679H4.14834L3.9374 7.86382L4.01943 8.11929L3.80147 7.96226L3.58584 8.11929L3.66787 7.86147L3.4499 7.70444H3.71943L3.79912 7.45132ZM5.32022 7.45132L5.40225 7.70679H5.67178L5.45381 7.86382L5.53818 8.11929L5.32022 7.96226L5.10225 8.11929L5.18662 7.86147L4.96865 7.70444H5.23584L5.32022 7.45132ZM6.83897 7.45132L6.92334 7.70679H7.19053L6.9749 7.86382L7.05693 8.11929L6.83897 7.96226L6.62334 8.11929L6.70537 7.86147L6.48975 7.70444H6.75693L6.83897 7.45132ZM8.36006 7.45132L8.44209 7.70679H8.71162L8.49365 7.86382L8.57803 8.11929L8.36006 7.96226L8.14209 8.11929L8.22647 7.86147L8.0085 7.70444H8.27803L8.36006 7.45132Z"
                    fill="white"
                />
            </g>
            <defs>
                <clipPath id="clip0_1997_289873">
                    <rect width="16" height="16" fill="white" transform="translate(0 0.00439453)" />
                </clipPath>
            </defs>
        </svg>
    `}

                <div class="bop_head_title">${e.clientBalanceOfPowerRoot.locStrings.answerTitle}</div>
            </div>

            <div class="bop_head_menu">${(0,B.g)((()=>e.enableActionMenuModule),X)}</div>
        </div>
    `,ee=(e,t,i)=>z.d`
        <div class="bop_content">
            ${(0,N.rx)((()=>e),z.d`<div class="bop_content_chart">
                    ${e=>((e,t,i)=>{const r=e.democratSeats+e.otherSeats+e.tbdSeats+e.republicanSeats,a=e.democratSeats/r*100,s=e.otherSeats/r*100,n=e.tbdSeats/r*100,o=e.republicanSeats/r*100,l=Q(t.democratSeatsTemplate,e.democratSeats.toString()),d=Q(t.otherSeatsTemplate,e.otherSeats.toString()),c=Q(t.tbdSeatsTemplate,e.tbdSeats.toString()),u=Q(t.republicanSeatsTemplate,e.republicanSeats.toString()),h=z.d`<div>&nbsp;·&nbsp;</div>`,p=[a,s,n,o].reduce(((e,t)=>t>0?e+1:e),0),g=(p-1)/p;return z.d` <div class="bop_chart">
        ${(0,B.g)((()=>!i),z.d`<div class="bop_chart_title">${e.label}</div>`)}

        <div class="bop_chart_graph">
            <div class="bop_chart_graph_lbls">
                <div class="bop_chart_graph_lbls_dem">${t.democrats}</div>
                <div class="bop_chart_graph_lbls_maj">${t.majority}</div>
                <div class="bop_chart_graph_lbls_rep">${t.republicans}</div>
            </div>

            <div class="bop_chart_graph_bar" style="--gap-ratio: ${g}">
                ${(0,B.g)((()=>a>0),z.d`<div
                        class="bop_chart_graph_bar_seg bop_chart_graph_bar_dem"
                        style="--size: ${a}%"
                    ></div>`)}
                ${(0,B.g)((()=>s>0),z.d`<div
                        class="bop_chart_graph_bar_seg bop_chart_graph_bar_oth"
                        style="--size: ${s}%"
                    ></div>`)}
                ${(0,B.g)((()=>n>0),z.d`<div
                        class="bop_chart_graph_bar_seg bop_chart_graph_bar_tbd"
                        style="--size: ${n}%"
                    ></div>`)}
                ${(0,B.g)((()=>o>0),z.d`<div
                        class="bop_chart_graph_bar_seg bop_chart_graph_bar_rep"
                        style="--size: ${o}%"
                    ></div>`)}
                <div class="bop_chart_graph_bar_majLine"></div>
            </div>

            <div class="bop_chart_summary">
                <div>${t.totalSeats}</div>
                <div>&nbsp;</div>
                <div>${l}</div>
                ${h}
                <div>${d}</div>
                ${h}
                <div>${c}</div>
                ${h}
                <div>${u}</div>
            </div>
        </div>
    </div>`})(e,t,i)}
                </div>`)}
        </div>
    `,te=e=>{const t=["bop_root","Pre"===e.clientBalanceOfPowerRoot.electionStatus?"bop_is_pre":"","During"===e.clientBalanceOfPowerRoot.electionStatus?"bop_is_during":"","Post"===e.clientBalanceOfPowerRoot.electionStatus?"bop_is_post":"",e.isHalfHeight?"bop_is_small":""].filter((e=>null!=e&&""!==e)).join(" "),i=e.isHalfHeight?e.clientBalanceOfPowerRoot.charts.slice(0,1):e.clientBalanceOfPowerRoot.charts.slice(0,2),r=e.isHalfHeight&&i.length>0?i[0].label:"";return z.d`
        <div class="${t}">
            <div class="bop_root_head">${K(e)}</div>

            <div class="bop_root_upsellCont">
                <div class="bop_root_status">
                    ${((e,t,i)=>{const r=(t?[i,e.statusText]:[e.statusText]).filter((e=>null!=e&&""!==e)).join(" · ");return z.d`
        <div class="bop_status">
            <div class="bop_status_badge">${e.badgeText}</div>

            ${(0,B.g)((()=>null!=r&&""!==r),z.d`<div class="bop_status_text">${r}</div>`)}
        </div>
    `})(e.clientBalanceOfPowerRoot,e.isHalfHeight,r)}
                </div>

                <div class="bop_root_content">
                    ${ee(i,e.clientBalanceOfPowerRoot.locStrings,e.isHalfHeight)}
                </div>

                <div class="bop_root_upsell">${(e=>z.d`
        <div class="bop_upsell">
            <a class="bop_upsell_link" href="${e.seeMoreUrl}">${e.locStrings.seeMoreText}</a>
        </div>
    `)(e.clientBalanceOfPowerRoot)}</div>
            </div>
        </div>
    `};J.S;const ie=z.d` ${e=>e.LinkTitle} `,re=z.d`
    ${(0,B.g)((e=>!0!==e.hideInLegend),z.d`
            <div
                class="br1px"
                style="background-color: ${e=>e.partyHexColor}; height: 22px; width: ${e=>e.percentageShare||e.barPercent}%;"
            ></div>
        `)}
    ${(0,B.g)((e=>!0===e.hideInLegend),z.d`
            <div
                class="br1px"
                style="background-color: ${e=>e.partyHexColor}; height: 22px; width: ${e=>e.percentageShare}%;"
            >
                <div style="height: 20px; border: 1px dashed hsl(0, 0%, 80%);"></div>
            </div>
        `)}
`,ae=z.d` ${(0,B.g)((e=>!0!==e.hideInLegend),z.d`
        <div class="plgnd">
            <div class="fl sa">
                <div class="pxc12 br1pxc" style="background-color: ${e=>e.partyHexColor};"></div>
            </div>
            <div class="rglrfnt">${e=>e.partyAbbreviation||e.abbreviation}</div>
        </div>
    `)}`,se=e=>z.d` <div class="ipr">
    <div class="imgctr">
        <img
            src="${e}"
            @load=${e=>e.callTtvr("Hero_Image")}
            width="66px"
            height="66px"
            style="border-radius: 6px;"
        />
    </div>
</div>`,ne=e=>z.d`
    <img src="${e}" @load=${e=>e.callTtvr("Hero_Image")} width="16px" height="16px" />
`,oe=e=>z.d`
    <div class="bgimgststxt rglrfnt rm1">${e}</div>
`,le=()=>z.d` <div class="bgimgpbtn">${'\n<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" part="pbtn">\n    <path fill-rule="evenodd" clip-rule="evenodd" d="M20 0C8.9543 0 0 8.9543 0 20C0 31.0457 8.9543 40 20 40C31.0457 40 40 31.0457 40 20C40 8.9543 31.0457 0 20 0ZM19.792 1.66406C29.8022 1.66406 37.917 9.7789 37.917 19.7891C37.917 29.7992 29.8022 37.9141 19.792 37.9141C9.78184 37.9141 1.66699 29.7992 1.66699 19.7891C1.67801 9.78347 9.78641 1.67509 19.792 1.66406ZM27.559 21.1043C27.7659 20.9728 27.9413 20.7974 28.0728 20.5905C28.3107 20.2164 28.3903 19.7631 28.2939 19.3303C28.1976 18.8976 27.9332 18.5208 27.559 18.283L17.5688 11.9255C17.0542 11.5979 16.4019 11.5767 15.8671 11.8703C15.3323 12.1638 14.9999 12.7254 15 13.3355V26.0505C14.9999 26.6606 15.3323 27.2222 15.8671 27.5158C16.4019 27.8093 17.0542 27.7882 17.5688 27.4605L27.559 21.1043Z" />\n</svg>\n'}</div> `,de=(e,t)=>z.d`
    <div class="bc">
        <div class="org_br" style="width: ${()=>e}%; background-color: ${()=>t};"></div>
        <div class="grey_br" style="width: ${()=>100-e}%; background-color: #eee;"></div>
    </div>
`,ce=(e,t)=>z.d`
    <div class="arw ${()=>e?"":"ntp_hide"}">
        ${(0,B.g)((()=>t<0),z.d`${'<svg width="7" height="10" viewBox="0 0 7 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.78668 6.77891L3.99367 9.57193C3.86272 9.70283 3.68515 9.77637 3.5 9.77637C3.31485 9.77637 3.13728 9.70283 3.00634 9.57193L0.213321 6.77891C0.147346 6.71523 0.0945599 6.63918 0.057977 6.55509C0.0213941 6.47101 0.00173074 6.38055 0.000109501 6.28886C-0.00151126 6.19718 0.014942 6.10608 0.04853 6.02075C0.0821174 5.93543 0.132182 5.85756 0.195864 5.79158C0.259547 5.72561 0.335601 5.67282 0.419684 5.63624C0.503767 5.59966 0.594232 5.57999 0.685914 5.57837C0.777596 5.57675 0.8687 5.5932 0.954024 5.62679C1.03935 5.66038 1.11722 5.71044 1.18319 5.77413L1.20065 5.79158L2.80175 7.39268L2.80175 0.69852C2.80175 0.513332 2.87531 0.335728 3.00626 0.20478C3.13721 0.0738322 3.31481 0.000266707 3.5 0.000266723C3.68519 0.000266739 3.86279 0.0738322 3.99374 0.20478C4.12469 0.335728 4.19825 0.513332 4.19825 0.69852L4.19825 7.39198L5.79935 5.79158C5.92796 5.65834 6.10424 5.58165 6.2894 5.57837C6.47456 5.5751 6.65344 5.64551 6.78668 5.77413C6.91992 5.90274 6.99662 6.07902 6.99989 6.26418C7.00316 6.44934 6.93275 6.62821 6.80414 6.76146L6.78668 6.77891Z" fill="#DE1010"/>\n</svg>'}`)} ${(0,B.g)((()=>t>=0),z.d`${'<svg width="7" height="10" viewBox="0 0 7 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M0.21332 2.99745L3.00633 0.204439C3.13728 0.0735369 3.31485 0 3.5 0C3.68515 0 3.86272 0.0735369 3.99366 0.204439L6.78668 2.99745C6.85265 3.06114 6.90544 3.13719 6.94202 3.22127C6.97861 3.30536 6.99827 3.39582 6.99989 3.4875C7.00151 3.57919 6.98506 3.67029 6.95147 3.75561C6.91788 3.84094 6.86782 3.91881 6.80414 3.98478C6.74045 4.05076 6.6644 4.10355 6.58032 4.14013C6.49623 4.17671 6.40577 4.19637 6.31409 4.198C6.2224 4.19962 6.1313 4.18316 6.04598 4.14958C5.96065 4.11599 5.88278 4.06592 5.81681 4.00224L5.79935 3.98478L4.19825 2.38369V9.07785C4.19825 9.26303 4.12469 9.44064 3.99374 9.57159C3.86279 9.70253 3.68519 9.7761 3.5 9.7761C3.31481 9.7761 3.13721 9.70253 3.00626 9.57159C2.87531 9.44064 2.80175 9.26303 2.80175 9.07785V2.38439L1.20065 3.98478C1.07204 4.11803 0.895761 4.19472 0.710601 4.198C0.52544 4.20127 0.346563 4.13085 0.21332 4.00224C0.0800772 3.87363 0.00338295 3.69735 0.000109249 3.51219C-0.00316445 3.32703 0.0672505 3.14815 0.195864 3.01491L0.21332 2.99745Z" fill="#4CA671"/>\n</svg>'}`)}
        ${()=>t<0?-t:t}
    </div>
`,ue=e=>z.d`
    <div class="fl ctr">
        <div class="b83 rm1 ge_smr">${e}</div>
    </div>
`,he=e=>z.d`
    <div class="fl sa pb8 bb">
        <a
            href="${e.articleUrl}"
            class="crd_lnk"
            target="_blank"
            data-t="${()=>e.articleNavigateTelemetryTag}"
        >
            <div class="fl sb qip">
                ${se(e.articleImageUrl)}
                <div class="ipl fl fdc ctr">
                    <div>
                        <div class="fl actr srcpb">
                            ${(0,B.g)((t=>null!==e.sourceImageUrl),ne(e.sourceImageUrl))}
                            <div class="rm1 b55 srcttl">${e.sourceTitle}</div>
                        </div>
                        <div class="albs twlmt">${e.snippet}</div>
                    </div>
                </div>
            </div>
        </a>
    </div>
`,pe=e=>z.d`
    <div class="el_ctnr sbfnt" data-t="${()=>e.electionsTelemetryTag}">
        <a
            href="${e.seeMoreLink.LinkUrl}"
            data-t="${()=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div>
                <div class="fl sb">
                    <div class="pb12 b55 upc mt4">${e.cardTitle}</div>
                    ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                </div>
                <div class="fl sb fdc fdcht">
                    <div class="cnt">
                        <div class="pttl b83">${e.article.articleTitle}</div>
                        ${t=>he(e.article)}
                        <div class="pttl b83 mt8">${e.pollTitle}</div>
                        <div class="fl pbelmt pb8">${(0,N.rx)((t=>e.parties),re)}</div>
                        <div class="fl sb pb8">${(0,N.rx)((t=>e.parties),ae)}</div>
                    </div>
                    ${t=>ue(e.seeMoreLink.LinkTitle)}
                </div>
            </div>
        </a>
    </div>
`,ge=e=>z.d`
    ${(0,B.g)((t=>e.length>0),z.d` <div>
            <div class="fl plgnd pl7 ctr" }>
                ${(0,N.rx)((t=>e),z.d` <div class="mlm5">
                        <div class="pxc12 br1pxc" style="background-color: ${e=>e.partyHexColor}" )}></div>
                    </div>`)}
            </div>
            <div class="rglrfnt">+${e.length} ${e=>e.actionsModuleLocStrings.mrp||"more"}</div>
        </div>`)}
`,ve=e=>z.d`
    <div class="el_ctnr sbfnt" data-t="${()=>e.electionsTelemetryTag}">
        <a
            href="${e.seeMoreLink.LinkUrl}"
            data-t="${()=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div>
                <div class="fl sb hht_ttl">
                    <div class="pb12 b55 upc mt4">${e.cardTitle}</div>
                    ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                </div>
                <div class="fl sb fdc hhtfdcht">
                    <div class="cnt">
                        <div class="fl pbelmt pb8">${(0,N.rx)((t=>e.parties),re)}</div>
                        <div class="fl sb pb8">${(0,N.rx)((t=>e.parties),ae)}</div>
                    </div>
                    ${t=>ue(e.seeMoreLink.LinkTitle)}
                </div>
            </div>
        </a>
    </div>
`,be=e=>z.d`
    <div class="el_ctnr sbfnt" data-t="${()=>e.electionsTelemetryTag}">
        <a
            href="${e.seeMoreLink.LinkUrl}"
            data-t="${()=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div>
                <div class="fl sb actr mtm6">
                    <div class="b55">${e.cardTitle}</div>
                    ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                </div>
                <div class="fl sb fdc">
                    <div class="dbcnt prtv">
                        <img
                            class="pb12"
                            @load=${e=>e.callTtvr("Debates_Image")}
                            src="${e.imageUrl}"
                            width="268px"
                            height="151px"
                            style="border-radius: 6px;"
                        />
                        ${(0,B.g)((()=>!1===e.showPlayButton),oe(e.statusText))}
                        ${(0,B.g)((()=>!0===e.showPlayButton),le)}
                        <div class="b83 rm rglrfnt twlmt">${e.snippet}</div>
                    </div>
                    ${t=>ue(e.seeMoreLink.LinkTitle)}
                </div>
            </div>
        </a>
    </div>
`,me=e=>z.d`
    <div class="c2">
        <div>${e.barPercentString}%</div>
        ${de(e.barPercentValue,e.partyHexColor)}
    </div>
`,fe=e=>z.d`
    <div class="c2">
        <div>${e.countValue}</div>
    </div>
`,Le=z.d`
    <div class="dlcnd12">
        <div class="cnd1">
            <div class="c1">
                <div width="8px" height="8px" style="background-color:${e=>e.partyHexColor};"></div>
                <div>${e=>e.mainText}</div>
            </div>
            ${(0,B.g)((e=>e.percentageAboveValue),me)}
            ${(0,B.g)((e=>!e.percentageAboveValue),fe)}
        </div>
        <div class="cnd2">
            <div class="c1">
                <div>${e=>e.secondaryText}</div>
            </div>
            ${(0,B.g)((e=>e.percentageAboveValue),fe)}
            ${(0,B.g)((e=>!e.percentageAboveValue),me)}
        </div>
    </div>
`,ye=z.d`
    <div class="dlcnd12">
        <div class="cnd1">
            <div class="c1">
                <div width="8px" height="8px" style="background-color:${e=>e.partyHexColor};"></div>
                <div>${e=>e.abbreviation}</div>
            </div>
            <div class="c2">
                <div>${e=>e.barPercent.toFixed(2)}%</div>
                <div class="textspace">${e=>e.seatsInfo}</div>
            </div>
        </div>
    </div>
`,Te=z.d`
    <div class="dlcnd12Single">
        <div class="cnd1">
            <div class="c1 c1Single">
                <div width="8px" height="8px" style="background-color:${e=>e.partyHexColor};"></div>
                <div>${e=>e.mainText}</div>
            </div>
            <div class="c2 c2Single">
                <div class="c2l1Single">${e=>e.countValue}</div>
                <div>${e=>e.barPercentString}%</div>
            </div>
        </div>
    </div>
`,we=z.d`
    <div class="el_ctnr hht" data-t="${e=>e.electionsTelemetryTag}">
        <a
            href="${e=>e.resultsViewData.upsellInformation.LinkUrl}"
            data-t="${e=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div class="slt">
                <div class="bdy">
                    <div class="ttl_cntr fl sb hht_ttl pb4">
                        <div class="b55 sbfnt">${e=>e.resultsViewData.title}</div>
                        ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                    </div>
                    <div class="fl sb fdc hhtfdcht">
                        <div class="cnt">
                            <div class="fl pbelmt pb8">
                                ${(0,N.rx)((e=>e.resultsViewData.parties),re)}
                            </div>
                            <div class="fl sb pb8">
                                ${(0,N.rx)((e=>e.resultsViewData.parties.slice(0,5)),ae)}
                                ${e=>ge(e.resultsViewData.parties.slice(5))}
                            </div>
                        </div>
                    </div>
                </div>
                ${e=>ue(e.resultsViewData.upsellInformation.LinkTitle)}
            </div>
        </a>
    </div>
`,xe=z.d`
    <div class="el_ctnr hht" data-t="${e=>e.electionsTelemetryTag}">
        <a
            href="${e=>e.resultsViewData.upsellInformation.LinkUrl}"
            data-t="${e=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div class="slt">
                <div class="bdy">
                    <div class="ttl_cntr fl sb hht_ttl pb4">
                        <div class="b55 sbfnt">${e=>e.resultsViewData.title}</div>
                        ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                    </div>
                    <div class="fl actr">
                        <div class="bdg rm2" style="background-color: ${e=>e.resultsViewData.badgeHexColor};">
                            ${e=>e.resultsViewData.badgeText}
                        </div>
                        <div>${e=>e.resultsViewData.statusText}</div>
                    </div>
                    ${(0,N.rx)((e=>e.resultsViewData.parties),Te)}
                </div>
                ${e=>ue(e.resultsViewData.upsellInformation.LinkTitle)}
            </div>
        </a>
    </div>
`,_e=z.d`
    <div class="el_ctnr" data-t="${e=>e.electionsTelemetryTag}">
        <a
            href="${e=>e.resultsViewData.upsellInformation.LinkUrl}"
            data-t="${e=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div class="slt">
                <div class="bdy">
                    <div class="ttl_cntr fl sb">
                        <div>
                            <div class="ttl sbfnt">${e=>e.resultsViewData.title}</div>
                            <div class="sbtl_cntnr">
                                <div class="sbtl_info">
                                    ${(0,B.g)((e=>null!==e.resultsViewData.flagUrl),z.d`<div>
                                            <img
                                                src="${e=>e.resultsViewData.flagUrl}"
                                                @load=${e=>e.callTtvr("Flag_Image")}
                                                width="24px"
                                                height="16px"
                                            />
                                        </div>`)}
                                    <div class="rm1 b55">${e=>e.resultsViewData.subTitle}</div>
                                </div>
                            </div>
                        </div>
                        ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                    </div>
                    <div class="fl">
                        <div class="bdg rm2" style="background-color: ${e=>e.resultsViewData.badgeHexColor};">
                            ${e=>e.resultsViewData.badgeText}
                        </div>
                        <div>${e=>e.resultsViewData.statusText}</div>
                    </div>
                    <div class="fl sb fdc">
                        <div class="sbfnt pb8 rm1 b83">
                            ${e=>e.resultsViewData.tabHeaders?e.resultsViewData.tabHeaders[0]:null}
                        </div>
                        <div class="cnt">
                            <div class="fl pbelmt pb15">
                                ${(0,N.rx)((e=>e.resultsViewData.parties),re)}
                            </div>
                            <div class="gr25 pb8 hhtfdcht">
                                ${(0,N.rx)((e=>e.resultsViewData.parties.slice(0,9)),ae)}
                                ${e=>ge(e.resultsViewData.parties.slice(9))}
                            </div>
                        </div>
                    </div>
                </div>
                ${e=>ue(e.resultsViewData.upsellInformation.LinkTitle)}
            </div>
        </a>
    </div>
`,$e=z.d`
    ${(0,B.g)((e=>"Party"===e.resultTemplate),ye)}
    ${(0,B.g)((e=>"Candidate"===e.resultTemplate),Le)}
`,Se=z.d`
    <div class="el_ctnr" data-t="${e=>e.electionsTelemetryTag}">
        <a
            href="${e=>e.resultsViewData.upsellInformation.LinkUrl}"
            data-t="${e=>e.navigateLinkTelemetryTag}"
            target="_blank"
        >
            <div class="slt">
                <div class="bdy">
                    <div class="ttl_cntr fl sb">
                        <div>
                            <div class="ttl sbfnt">${e=>e.resultsViewData.title}</div>
                            <div class="sbtl_cntnr">
                                <div class="sbtl_info">
                                    ${(0,B.g)((e=>null!==e.resultsViewData.flagUrl),z.d`<div>
                                            <img
                                                src="${e=>e.resultsViewData.flagUrl}"
                                                @load=${e=>e.callTtvr("Flag_Image")}
                                                width="24px"
                                                height="16px"
                                            />
                                        </div>`)}
                                    <div class="rm1 b55">${e=>e.resultsViewData.subTitle}</div>
                                </div>
                            </div>
                        </div>
                        ${(0,B.g)((e=>e.enableActionMenuModule),X)}
                    </div>
                    <div class="fl">
                        <div class="bdg rm2" style="background-color: ${e=>e.resultsViewData.badgeHexColor};">
                            ${e=>e.resultsViewData.badgeText}
                        </div>
                        <div>${e=>e.resultsViewData.statusText}</div>
                    </div>
                    <div class="col_info rm1">
                        <div class="cell">${e=>e.resultsViewData.column1Header}</div>
                        <div class="cell">${e=>e.resultsViewData.column2Header}</div>
                    </div>
                    ${(0,N.rx)((e=>e.resultsViewData.parties),$e)}
                </div>
                <div class="tb_leg rm2">
                    <div>${e=>e.resultsViewData.footerText}</div>
                    &nbsp;
                    <div>${(0,N.rx)((e=>e.resultsViewData.dataSources),ie)}</div>
                    &nbsp;
                    <div>${e=>e.resultsViewData.lastUpdateText}</div>
                </div>
                ${e=>ue(e.resultsViewData.upsellInformation.LinkTitle)}
            </div>
        </a>
    </div>
`,Pe=z.d`
    ${(0,B.g)((e=>!0===e.isHalfHeight),xe)}
    ${(0,B.g)((e=>!1===e.isHalfHeight),Se)}
`,Ce=z.d`
    ${(0,B.g)((e=>!0===e.isHalfHeight),(e=>ve(e.pollsViewData)))}
    ${(0,B.g)((e=>!1===e.isHalfHeight),(e=>pe(e.pollsViewData)))}
`,He=z.d`
    <div data-t="${e=>e.electionsModuleTelemetryTag}">
        ${(0,B.g)((e=>e.viewModuleType===u.Results),Pe)}
        ${(0,B.g)((e=>e.viewModuleType===u.Polls),Ce)}
        ${(0,B.g)((e=>e.viewModuleType===u.Debates),(e=>be(e.debatesViewData)))}
        ${(0,B.g)((e=>e.viewModuleType===u.BalanceOfPower),(e=>te(e)))}
    </div>
`;var ke=i(32804),Oe=i(53046),Ee=i(22674),Me=i(40082);const Ie={head:{menuExcessPadding:4},chart:{segmentGap:1}},De=Oe.i`
    .bop_root {
        --root-bg-gradient-1: #cbe8ff;
        --root-bg-gradient-2: #ffe2e5;
        --status-pre-badge-font-clr: var(--neutral-foreground-rest);
        --status-pre-badge-bg-clr: rgb(255 255 255 / 0.46);
        --status-during-badge-font-clr: #fff;
        --status-during-badge-bg-clr: #0f7b0f;
        --content-border-color: rgb(0 0 0 / 0.05);
        --chart-dem-clr: #0361ad;
        --chart-oth-clr: #af7fcc;
        --chart-tbd-clr: rgb(255 255 255 / 0.4);
        --chart-rep-clr: #d13337;

        box-sizing: border-box;
        margin: 0;
        padding: 0;
        padding-inline: 16px;
        padding-block-start: 12px;
        padding-block-end: 8px;
        background-image: linear-gradient(135.76deg, var(--root-bg-gradient-1) 0%, var(--root-bg-gradient-2) 100%);
        inline-size: 100%;
        block-size: 100%;
        border-radius: 8px;
    }

    .bop_root::before {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .bop_root::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .bop_root * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .bop_root *::before {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .bop_root *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    .bop_root_head {
    }

    .bop_root_upsellCont {
        position: relative;
    }

    .bop_root_status {
        margin-block-start: ${(16-Ie.head.menuExcessPadding).toString()}px;
    }

    .bop_root_content {
        margin-block-start: 16px;
    }

    .bop_root_upsell {
        margin-block-start: 19px;
        display: flex;
        justify-content: center;
    }

    .bop_root_upsell > * {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .bop_is_small.bop_root {
        padding-block-end: 16px;
    }

    .bop_is_small .bop_root_content {
        margin-block-start: 12px;
    }

    .bop_is_small .bop_root_upsell {
        block-size: 0;
        overflow: hidden;
        margin: 0;
    }
`.withBehaviors((0,Me.Uu)(Oe.i`
        .bop_root {
            --root-bg-gradient-1: #164f70;
            --root-bg-gradient-2: #670327;
            --status-pre-badge-font-clr: #fff;
            --status-pre-badge-bg-clr: rgb(0 0 0 / 0.54);
            --status-during-badge-font-clr: #fff;
            --status-during-badge-bg-clr: #0f7b0f;
            --content-border-color: rgb(255 255 255 / 0.2);
            --chart-dem-clr: #88bde8;
            --chart-oth-clr: #c891ea;
            --chart-tbd-clr: rgb(255 255 255 / 0.2);
            --chart-rep-clr: #ffa693;
        }
    `)),Ae=Oe.i`
    .bop_head {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .bop_head > * {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .bop_head_titleCont {
        display: flex;
        align-items: center;
    }

    .bop_head_titleCont > * {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .bop_head_icon {
        inline-size: 16px;
        block-size: auto;
        object-fit: cover;
        margin-inline-end: 8px;
        display: block;
        pointer-events: none;
    }

    .bop_head_title {
        font-size: ${ke.sNp};
        line-height: ${ke.vgC};
        color: ${ke.CHi};
    }

    .bop_head_menu {
        margin-inline-end: ${(0-Ie.head.menuExcessPadding).toString()}px;
        margin-block: ${(0-Ie.head.menuExcessPadding).toString()}px;
    }
`,Ue=Oe.i`
    .bop_status {
        display: flex;
        align-items: center;
    }

    .bop_status > * {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .bop_status_badge {
        font-size: ${ke.sNp};
        line-height: ${ke.vgC};
        padding-block: 2px;
        padding-inline: 6px;
        border-radius: 6px;
    }

    .bop_status_text {
        margin-inline-start: 8px;
        font-size: ${ke.sNp};
        line-height: ${ke.vgC};
        color: ${ke.CHi};
    }

    .bop_is_pre .bop_status_badge {
        color: var(--status-pre-badge-font-clr);
        background-color: var(--status-pre-badge-bg-clr);
    }

    .bop_is_during .bop_status_badge {
        color: var(--status-during-badge-font-clr);
        background-color: var(--status-during-badge-bg-clr);
    }

    .bop_is_post .bop_status_badge {
        color: var(--status-during-badge-font-clr);
        background-color: var(--status-during-badge-bg-clr);
    }
`,Ge=Oe.i`
    .bop_content {
    }

    .bop_content_chart + .bop_content_chart {
        border-block-start: 1px solid var(--content-border-color);
        margin-block-start: 12px;
        padding-block-start: 12px;
    }
`,Ve=Oe.i`
    .bop_chart {
    }

    .bop_chart_title {
        font-size: ${ke.G8g};
        line-height: ${ke.MwG};
        font-weight: 600;
        color: ${ke.CHi};
        text-transform: uppercase;
    }

    .bop_chart_graph {
        margin-block-start: 8px;
    }

    .bop_chart_graph_lbls {
        position: relative;
        display: flex;
        justify-content: space-between;
    }

    .bop_chart_graph_lbls > * {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .bop_chart_graph_lbls_dem,
    .bop_chart_graph_lbls_rep {
        font-size: ${ke.sNp};
        line-height: ${ke.vgC};
    }

    .bop_chart_graph_lbls_dem {
        color: var(--chart-dem-clr);
    }

    .bop_chart_graph_lbls_maj {
        font-size: ${ke.G8g};
        line-height: ${ke.MwG};
        color: ${ke.Q5n};
        position: absolute;
        inset-block-end: 0;
        inset-inline-start: 50%;
    }

    .bop_chart_graph_lbls_rep {
        color: var(--chart-rep-clr);
    }

    .bop_chart_graph_bar {
        margin-block-start: 4px;
        position: relative;
        inline-size: 100%;
        block-size: 16px;
        display: flex;
        align-items: center;
        border-radius: 4px;
        overflow: hidden;
    }

    .bop_chart_graph_bar > * {
        flex-grow: 0;
        flex-shrink: 0;
    }

    .bop_chart_graph_bar_dem,
    .bop_chart_graph_bar_oth,
    .bop_chart_graph_bar_tbd,
    .bop_chart_graph_bar_rep {
        block-size: 100%;
    }

    .bop_chart_graph_bar_seg {
        inline-size: calc(var(--size) - (var(--gap-ratio) * ${Ie.chart.segmentGap.toString()}px));
    }

    .bop_chart_graph_bar_seg + .bop_chart_graph_bar_seg {
        margin-inline-start: ${Ie.chart.segmentGap.toString()}px;
    }

    .bop_chart_graph_bar_dem {
        background-color: var(--chart-dem-clr);
    }

    .bop_chart_graph_bar_oth {
        background-color: var(--chart-oth-clr);
    }

    .bop_chart_graph_bar_tbd {
        background-color: var(--chart-tbd-clr);
    }

    .bop_chart_graph_bar_rep {
        background-color: var(--chart-rep-clr);
    }

    .bop_chart_graph_bar_majLine {
        position: absolute;
        inset-block-start: 0;
        inset-inline-start: 50%;
        block-size: 100%;
        border-inline-start: 2px dashed ${ke.CHi};
    }

    .bop_chart_summary {
        margin-block-start: 4px;
        font-size: ${ke.G8g};
        line-height: ${ke.MwG};
        color: ${ke.Q5n};
        display: flex;
        align-items: center;
    }

    .bop_is_small .bop_chart_graph_bar {
        block-size: 12px;
    }
`.withBehaviors(new Ee.O(Oe.i`
            .bop_chart_graph_lbls_maj {
                transform: translateX(-50%);
            }

            .bop_chart_graph_bar_majLine {
                transform: translateX(-50%);
            }
        `,Oe.i`
            .bop_chart_graph_lbls_maj {
                transform: translateX(50%);
            }

            .bop_chart_graph_bar_majLine {
                transform: translateX(50%);
            }
        `)),Fe=Oe.i`
    .bop_upsell {
    }

    .bop_upsell_link {
        display: block;
        font-size: ${ke.sNp};
        line-height: ${ke.vgC};
        color: ${ke.CHi} !important;
    }

    .bop_upsell_link::after {
        content: "";
        position: absolute;
        inset: 0;
    }
`,Ze=Oe.i`
    ${De}

    ${Ae}

    ${Ue}

    ${Ge}

    ${Ve}

    ${Fe}
`,We=Oe.i`
    :host {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
    }

    :host a:-webkit-any-link {
        text-decoration: none;
        color: inherit;
    }

    .rm {
        font-size: var(--type-ramp-base-font-size, 14px);
        line-height: var(--type-ramp-base-line-height, 20px);
    }

    .rm1 {
        font-size: var(--type-ramp-minus-1-font-size, 12px);
        line-height: var(--type-ramp-minus-1-line-height, 16px);
    }

    .rm2 {
        font-size: var(--type-ramp-minus-2-font-size, 10px);
        line-height: var(--type-ramp-minus-2-line-height, 14px);
    }

    .b83 {
        color: rgba(0, 0, 0, 0.83);
    }

    .b55 {
        color: rgba(0, 0, 0, 0.55);
    }

    .title {
        height: 48px;
        border-bottom: 1px solid ${ke.dtw};
    }

    .thrlmt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .cnd1,
    .cnd2,
    .c1,
    .c2,
    .bc,
    .sbtl_info,
    .tb_leg,
    .bdg_info {
        display: flex;
        align-items: center;
    }

    .cnd1 .c1 div:first-child {
        width: 8px;
        height: 8px;
        border-radius: 16px;
        margin-right: 7px;
    }

    .col_info {
        display: flex;
        justify-content: space-between;
    }

    .fl {
        display: flex;
    }

    .sb {
        justify-content: space-between;
    }

    .sa {
        justify-content: space-around;
    }

    .ctr {
        justify-content: center;
    }

    .actr {
        align-items: center;
    }

    .bdg {
        margin-right: 8px;
        margin-bottom: 8px;
    }

    .cnd1,
    .cnd2 {
        justify-content: space-between;
    }

    .bc {
        display: flex;
        width: 50px;
        height: 12px;
        margin-left: 4px;
        margin-right: 4px;
    }

    .org_br,
    .grey_br {
        height: 12px;
    }

    .bdg {
        text-transform: uppercase;
        color: #ffffff;
        padding: 2px 9px 2px 9px;
        border-radius: 4px;
    }

    .upc {
        text-transform: uppercase;
    }

    .textspace {
        text-indent: 5px;
    }

    .dlcnd12 {
        border-bottom: 1px solid #eee;
        height: 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .sbtl_info div:first-child {
        margin-right: 6px;
    }

    .ttl {
        text-transform: uppercase;
    }

    .hht_ttl {
        margin-top: -4px;
        align-items: center;
    }

    .col_info,
    .tb_leg,
    .sbtl_info:not(first-child) {
        color: rgba(0, 0, 0, 0.55);
    }

    .cnd1,
    .cnd2 {
        color: rgba(0, 0, 0, 1);
    }

    .cnd2 .c1 {
        color: rgba(0, 0, 0, 0.83);
    }

    .upsl_info {
        color: rgba(0, 120, 212, 1);
    }

    .col_info {
        border-bottom: 1px solid #e5e5e5;
    }

    .col_info {
        padding-bottom: 4px;
    }

    .sbfnt {
        font-family: "Segoe UI SemiBold", "Segoe UI", Arial, Sans-Serif;
    }

    .rglrfnt {
        font-family: "Segoe UI", Arial, Sans-Serif;
    }

    .ttl {
        padding-bottom: 12px;
        color: rgba(0, 0, 0, 0.55);
    }

    .st {
        color: rgba(0, 0, 0, 0.83);
    }

    .arw {
        width: 30px;
    }

    .ntp_hide {
        display: none;
    }

    .el_ctnr {
        padding: 12px 16px;
    }

    .trnc {
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .bdy {
        height: 225px;
        max-height: 290px;
        overflow: hidden;
    }

    .sbtl_cntnr {
        display: flex;
        justify-content: space-between;
    }

    .sbtl_cntnr {
        padding-bottom: 14px;
    }

    .slt .arw {
        padding-left: 20px;
    }

    .ge_smr {
        padding: 4px 24px 4px 24px;
        border-radius: 20px;
        background: rgba(0, 0, 0, 0.07);
        text-align: center;
    }

    .tb_leg {
        flex-wrap: wrap;
        padding-top: 6px;
        padding-bottom: 14px;
    }

    .cell:nth-child(1) {
        width: 30%;
    }

    .cell:nth-child(3) {
        min-width: 40%;
        text-align: right;
        justify-content: flex-end;
    }

    .ttl_cntr fluent-button path {
        fill: black;
    }

    fluent-button::part(content)::before {
        height: 0px;
    }

    .ttl_cntr fluent-button svg {
        width: 24px;
        height: 24px;
    }

    .pxc12 {
        height: 12px;
        width: 12px;
        border-radius: 12px;
        margin-bottom: 4px;
    }

    .srcpb {
        padding-bottom: 4px;
    }

    .srcpb img {
        padding-right: 6px;
    }

    .albs {
        font-size: 14px;
        line-height: 20px;
    }

    .ipr .imgctr img {
        margin-right: 12px;
    }

    .br1px {
        border-top: 1px solid white;
        border-bottom: 1px solid white;
        border-left: 1px solid white;
    }

    .pbelmt div:last-child .br1px {
        border-right: 1px solid white;
    }

    .br1pxc {
        border: 1px solid white;
    }

    .pb4 {
        padding-bottom: 4px;
    }

    .pb6 {
        padding-bottom: 6px;
    }

    .pb8 {
        padding-bottom: 8px;
    }

    .pb12 {
        padding-bottom: 12px;
    }

    .pb15 {
        padding-bottom: 15px;
    }

    .pl7 {
        padding-left: 7px;
    }

    .plgnd {
        text-align: center;
        align-items: center;
    }

    .pttl {
        padding-bottom: 8px;
    }

    .psnttl {
        padding-bottom: 4px;
    }

    .lwr {
        position: absolute;
        bottom: 12px;
    }

    .fdc {
        flex-direction: column;
    }

    .fdcht {
        height: 245px;
    }

    .cnl {
        height: 269px;
        overflow: hidden;
    }

    .cnt {
        height: 224px;
        max-height: 224px;
        overflow: hidden;
    }

    .dbcnt {
        height: 230px;
        max-height: 230px;
        overflow: hidden;
    }

    .twlmt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .thrlmt {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .prtv {
        position: relative;
    }

    .bgimgpbtn {
        position: absolute;
        left: 114px;
        top: 55.5px;
        z-index: 3;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.6);
        border-radius: 20px;
    }

    .bgimgststxt {
        position: absolute;
        left: 4px;
        top: 4px;
        z-index: 3;
        color: white;
        background: rgba(0, 0, 0, 0.6);
        padding: 2px 8px 2px 8px;
        border-radius: 4px;
    }

    .bgimgpbtn path {
        fill: white;
    }

    .mlm5 {
        margin-left: -5px;
    }

    .mt4 {
        margin-top: 4px;
    }

    .mt8 {
        margin-top: 8px;
    }

    .mtm6 {
        margin-top: -6px;
    }

    .bb {
        border-bottom: 1px solid #ececec;
    }

    fluent-button svg {
        fill: ${ke.CHi};
    }

    fluent-button svg {
        width: 24px;
        height: 24px;
    }

    .hht .bdg {
        margin-bottom: 0;
    }

    .hht .dlcnd12 {
        border-bottom: none;
        height: 24px;
    }

    .hht .bdy {
        height: 100px;
    }

    .hhtfdcht {
        height: 95px;
    }

    .hht .dlcnd12 .c2 div:first-child {
        margin-right: 6px;
    }

    .gr25 {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(2, auto);
    }

    @media (prefers-color-scheme: dark) {
        .cnd1,
        .cnd2,
        .cnd2 .c1,
        .col_info,
        .tb_leg,
        .sbtl_info:not(first-child),
        .upsl_info,
        .ttl,
        .b55,
        .b83,
        .sbfnt {
            color: ${ke.CHi};
        }
        .ttl_cntr fluent-button path {
            fill: white;
        }
    }

    .cnd2 .c1 {
        color: ${ke.Q5n};
    }

    .cnd2 {
        padding-top: 1px;
    }

    .c1 {
        width: 60%;
    }

    .c2 {
        width: 40%;
        justify-content: flex-end;
    }

    .c1Single {
        width: 50%;
    }

    .c2Single {
        width: 50%;
        justify-content: flex-end;
    }

    .hht .dlcnd12Single {
        border-bottom: none;
        height: 18px;
    }

    .c2l1Single {
        padding: 0px 5px;
    }

    ${Ze}
`,Re={experienceConfigSchema:c};(0,r.z)().withShadowRootMode("closed").withElementDisambiguation((()=>s.h.ignoreDuplicate)).register((0,a.hb)())},30113:function(e,t,i){var r;i.d(t,{m:function(){return r}}),function(e){e.small="OneByOne",e.medium="OneByTwo",e.large="OneByThree"}(r||(r={}))},11708:function(e,t,i){var r;i.d(t,{f:function(){return r}}),function(e){e.AiCharacter="aicharacterCardEnabled",e.AutosMarketplaceCard="autosmarketplaceCardEnabled",e.HoroscopeCard="horoscopeCardEnabled",e.WeatherCard="weatherCardEnabled",e.SportsCard="sportsCardEnabled",e.MoneyCard="moneyCardEnabled",e.FinanceCard="financeCardEnabled",e.OnThisDayCard="onthisdayCardEnabled",e.ShoppingCard="shoppingCardEnabled",e.ShoppingEventCard="eventSDCardShoppingEnabled",e.TrafficCard="trafficCardEnabled",e.EsportsCard="esportsCardEnabled",e.EsportsStreamsCard="esportsStreamsCardEnabled",e.ElectionsCard="genericelectionCardEnabled",e.LotteryCard="lotteryCardEnabled",e.QnaCard="qnaCardEnabled",e.RecipesCard="recipeCardEnabled",e.InspirationCard="inspirationCardEnabled",e.TravelCard="travelCardEnabled",e.HealthCard="healthCardEnabled",e.TopStoriesCard="topstoriesCardEnabled",e.TrendingTopics="TrendingTopicsUpsellEnabled",e.LocalGuideCard="localGuideCardEnabled",e.GroceryCard="groceryCardEnabled",e.RewardsCard="rewardsCardEnabled",e.RecommendedSearchesCard="recommendedSearchesCardEnabled",e.PersonalizedOffersCard="personalizedoffersCardEnabled",e.PollsCard="pollsCardEnabled",e.MarketPlaceCard="marketplaceCardEnabled",e.QuizCard="quizCardEnabled",e.CasualGamesCard="esportsCardEnabled",e.CommuteCard="commuteCardEnabled",e.Crypto="CryptoCard",e.MarketBrief="MarketBriefCard"}(r||(r={}))},83152:function(e,t,i){var r;i.d(t,{L:function(){return r}}),function(e){e.Location="Location",e.Weather="Weather",e.Finance="Finance",e.Team="Team",e.League="League",e.Player="Player",e.Traffic="Traffic",e.Widget="Widget",e.TopicFeed="TopicFeed"}(r||(r={}))},791:function(e,t,i){i.d(t,{N:function(){return L}});var r=i(33940),a=i(33954),s=i(26415),n=i(68364),o=i(33799),l=i(16517),d=i(94788),c=i(67267),u=i(63535),h=i(87298),p=i(83152),g=i(11708),v=i(30113),b=i(65135),m=i(33379),f=i(51671);const L=new class extends class{constructor(e){this.fetchImpl=e,this.userUpdateEndpoint="msn/user",this.pdpServiceEndpoint="graph/actions",this.locationsServiceEndPoint="v1/news/users/me/locations",this.userActionServiceEndPoint="news/users/me/actions",this.ocid="Peregrine",this.ocidOverride=!1}getUserDefaultLocation(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t={method:"GET",headers:yield c.$.getOneServiceHeaders(),credentials:"include"},i=(0,u.PH)(this.locationsServiceEndPoint);let a;[...c.$.getCommonParams2(this.ocid,!this.ocidOverride),{key:"autodetect",value:e&&`${e}`}].forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{a=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(i.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: getUserDefaultLocation}`;throw new Error(t)}return e}))),"getUserDefaultLocation")}catch(e){return a}return a}))}addToFavoriteLocation(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const i="Location",a="Follow",s={method:"POST",body:JSON.stringify({actionType:a,targetType:i,definitionName:t,degree:"FavoriteLocation",metaData:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},n=(0,u.PH)(this.pdpServiceEndpoint);let d;((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{d=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,s);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: Location`;throw new Error(t)}return e.json()}))),"addToFavoriteLocation")}catch(e){return!1}return!0}))}removeFavoriteLocation(e){return(0,r.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(p.L.Location,"definitionName",[e])}))}removeLocation(e){return(0,r.mG)(this,void 0,void 0,(function*(){return yield this.deleteFromPdp(p.L.Location,"definitionName",[e])}))}updatePdpHomeLocation(e,t,i={},a){return(0,r.mG)(this,void 0,void 0,(function*(){const s=p.L.Location,n="Follow",d=yield this.getRequestInit({method:"POST"},i);d.body=JSON.stringify({actionType:n,targetType:s,definitionName:t,degree:"DefaultLocation",metaData:e});const g=(0,u.PH)(this.pdpServiceEndpoint);return((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=a?a:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=a?a:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)})),yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${s}`;throw new Error(t)}return e}))),"setPdpHomeLocation"),this.tryInvalidateBulkFetchedPdpTargetType(s),!0}))}updateTrafficMyRoutes(e,t,i,s,n,o){return(0,r.mG)(this,void 0,void 0,(function*(){const l=i.replace(/[^a-zA-Z0-9\-.,_]/g,""),d=p.L.Traffic,u="Follow",g={method:"POST",body:JSON.stringify({actionType:u,targetType:d,targetId:l,degree:e,definitionName:t,metadata:s,createdDateTime:o}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},v=yield this.getTrafficPdpUrl(null,null,n);try{yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(v.href,g);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${d}`;throw new Error(t)}return e.json()}))),"updateTrafficMyRoutes");this.tryInvalidateBulkFetchedPdpTargetType(d)}catch(e){return a.k.logError(e.message),!1}return!0}))}deleteTrafficMyRoutes(e,t,i){return(0,r.mG)(this,void 0,void 0,(function*(){const a={method:"DELETE",headers:yield this.getOneserviceHeaders(),credentials:"include"},s=yield this.getTrafficPdpUrl(e,t,i);try{yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(s.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${p.L.Traffic}`;throw new Error(t)}return e}))),"deleteTrafficFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(p.L.Traffic)}catch(e){return!1}return!0}))}getTrafficMyRoutes(e,t){var i;return(0,r.mG)(this,void 0,void 0,(function*(){const a={method:"GET",headers:yield this.getOneserviceHeaders(),credentials:"include"},s=yield this.getTrafficPdpUrl(e,null,t);try{const e=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(s.href,a);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${p.L.Traffic}`;throw new Error(t)}return e}))),"getTrafficFromPdp");return null===(i=yield e.json())||void 0===i?void 0:i.value}catch(e){return null}}))}getTrafficPdpUrl(e,t,i){return(0,r.mG)(this,void 0,void 0,(function*(){const r=(0,u.PH)(this.pdpServiceEndpoint),a=(yield(0,f.XJ)())===o.Hy.SignedIn,s=(0,l.Yq)().UserId,n=a?c.$.getOneServiceParamsWithAuth(s,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(s,this.ocid,!this.ocidOverride);if(e||t){const i=`targetType eq '${p.L.Traffic}'`,a=e?`degree eq '${e}'`:"",s=t?`definitionName eq '${t}'`:"";r.searchParams.set("$filter",`actionType eq 'Follow' and (${i})${a?` and (${a})`:""}${s?` and (${s})`:""}`)}return[...n,...i||[]].forEach((e=>{e.value&&r.searchParams.set(e.key,e.value)})),r}))}addToWatchList(e,t=0,i={},a={}){return(0,r.mG)(this,void 0,void 0,(function*(){const s=p.L.Finance,n="Follow",d={method:"POST",body:JSON.stringify({actionType:n,targetType:s,targetId:e,metadata:Object.assign({securityType:t,tickerId:this.generateUUID()},a)}),headers:yield this.getOneserviceHeaders(i),credentials:"include"},g=(0,u.PH)(this.pdpServiceEndpoint),v="zh-cn"!==(0,l.Yq)().CurrentMarket;let b;((yield(0,f.XJ)())===o.Hy.SignedIn&&v?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));try{b=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${s}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(s)}catch(e){return!1}return!0}))}addListToWatchList(e,t={},i={}){return(0,r.mG)(this,void 0,void 0,(function*(){const a=p.L.Finance,s="Follow",n={method:"POST",body:JSON.stringify(e.map((e=>({actionType:s,targetType:a,targetId:e.key,metadata:Object.assign({securityType:e.value,tickerId:this.generateUUID()},i)})))),headers:yield this.getOneserviceHeaders(t),credentials:"include"},d=(0,u.PH)(this.pdpServiceEndpoint),g="zh-cn"!==(0,l.Yq)().CurrentMarket;let v;((yield(0,f.XJ)())===o.Hy.SignedIn&&g?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{v=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(d.href,n);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e.json()}))),"addToWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(a)}catch(e){return!1}return!0}))}generateUUID(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const i=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?i:3&i|8).toString(16)}))}sortWatchList(e,t={}){var i;return(0,r.mG)(this,void 0,void 0,(function*(){const a=p.L.Finance,s="Follow",n=yield L.readPdpWithTargetType(p.L.Finance,!0,200,t),d=n&&(null===(i=n.value)||void 0===i?void 0:i.filter((e=>e.actionType===s&&e.targetId)));if(!d||d.length<e.length)return!1;const g={};let v=e.length;d.forEach((t=>{let i=e.findIndex((e=>e===t.targetId));i<0&&(i=v,v++),g[t.targetId]=JSON.stringify({actionType:s,targetId:t.targetId,targetType:a,rank:i,metadata:t.metadata})}));const b={method:"PUT",body:JSON.stringify(g),headers:yield this.getOneserviceHeaders(t),credentials:"include"},m=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&m.searchParams.set(e.key,e.value)}));try{yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(m.href,b);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for actionType: Follow, targetType: ${a}`;throw new Error(t)}return e.json()}))),"sortWatchList"),this.tryInvalidateBulkFetchedPdpTargetType(p.L.Finance)}catch(e){return!1}return!0}))}updateWeatherInterests(e,t,i,s={},n){return(0,r.mG)(this,void 0,void 0,(function*(){const t=p.L.Weather,r={method:"POST",body:JSON.stringify({actionType:"Follow",targetType:t,targetId:e,metadata:{UserAction:{0:{UpdateTime:new Date,Location:i}}}}),headers:yield this.getOneserviceHeaders(s),credentials:"include"},d=(0,u.PH)(this.pdpServiceEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=n?n:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&d.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(d.href,r);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather interests call`;throw new Error(t)}}catch(e){return a.k.logError(e.message),!1}return!0}))}updateWeatherSettings(e,t,i={},a){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e&&!t)return!0;let r="";r=e&&!t?'{"weatherDisplayUnit":"'+e+'"}':!e&&t?'{"userSettings":{"weatherLocationSettingMode":"'+t+'"}}':'{"weatherDisplayUnit":"'+e+'","userSettings":{"weatherLocationSettingMode":"'+t+'"}}';const s=yield this.getRequestInit({method:"POST"},i);s.body=r;const n=(0,u.PH)(this.userUpdateEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=a?a:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=a?a:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));const d=yield this.fetchImpl(n.href,s);if(d.status>=400){const e=`OneService returned error response. Status: ${d.status} for update weather setting call`;throw new Error(e)}return!0}))}updateFinanceInterests(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const t={financeInterests:e},i=JSON.stringify(t),r=yield this.getRequestInit({method:"POST"});r.body=i;const a=(0,u.PH)(this.userUpdateEndpoint),s="zh-cn"!==(0,l.Yq)().CurrentMarket;((yield(0,f.XJ)())===o.Hy.SignedIn&&s?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)}));const n=yield this.fetchImpl(a.href,r);if(n.status>=400){const e=`OneService returned error response. Status: ${n.status} for update finance interests call`;throw new Error(e)}return!0}))}updateUserSettings(e,t={},i){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e)return!0;const r=[];let s;for(s in e)null!=e[s]&&r.push('"'+s+'": '+JSON.stringify(e[s]));const n='{"userSettings":{'+r.join(", ")+"}}",d=yield this.getRequestInit({method:"POST"},t);d.body=n;const h=(0,u.PH)(this.userUpdateEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(null!=i?i:(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&h.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(h.href,d);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update weather setting call`;throw new Error(t)}}catch(e){return a.k.logError(e.message),!1}return!0}))}getPdpUserPreference(e,t={},i){return(0,r.mG)(this,void 0,void 0,(function*(){const s=yield this.getRequestInit({method:"GET"},t),n=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth(i||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth(i||(0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&n.searchParams.set(e.key,e.value)}));try{const e=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(n.href,s);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!e.ok&&404!=e.status)throw Error(`code=${e.status}, ${e.statusText}`);return Object.assign(Object.assign({},yield e.json()),{is404:404==e.status})}catch(t){if(a.k.logError(t.message),e)throw Error(t.message);return null}}))}updatePdpLayoutPreference(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t={method:"PUT",credentials:"include",body:JSON.stringify({dummyid:{userLayoutPreference:e}})},i=(0,u.PH)(this.userUpdateEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(i.href,t);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for update layout preference setting call`;throw new Error(t)}}catch(e){return a.k.logError(e.message),!1}return!0}))}updateSegmentCardsEnableStatus(e,t=null){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const i=[];if(t){let e;for(e in t)null!=t[e]&&i.push('"'+e+'": '+JSON.stringify(t[e]))}const r=e.map((e=>e.cardType!=g.f.TopStoriesCard?`\\"${e.cardType}\\":${e.enabled?'\\"1\\"':'\\"0\\"'}`:"")).join(","),a=i.length>0?'{"segmentCardSettings":"{'+r+'}","userSettings":{'+i.join(", ")+"}}":'{"segmentCardSettings":"{'+r+'}"}';return this.updateUserPreference(a)}))}updateProductivityCardsEnableStatus(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{enterpriseCardsEnabled:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateGamingCardsEnableStatus(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t=`{userSettings:{gamingCards:"{${e.map((e=>`\\"is${e.cardType}Enabled\\":${e.enabled?"true":"false"}`)).join(",")}}"}}`;return this.updateUserPreference(t)}))}updateCommunitySettingsOptOutStatus(e){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e&&!e.length)return!0;const t={};e.forEach((e=>{t[e.settingType]=e.optedOut?"1":"0"}));const i={communitySettings:t};return this.updateUserPreference(JSON.stringify(i))}))}updateWidgetSettings(e,t={},i){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const r=e.map((e=>({actionType:"Follow",targetId:e.cardType,targetType:p.L.Widget,metadata:{prongsv2:{region:e.region,size:v.m[e.size],position:e.position}}})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(r),appError:i})}))}muteWidget(e,t={},i){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e||!e.length)return!1;const r=e.map((e=>({actionType:"Mute",targetId:e,targetType:p.L.Widget})));return this.sendGenericActionRequest({additionalHeaders:t,endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(r),appError:i})}))}disableSpotlightCard(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e)return!1;const i={actionType:"Disabled",definitionName:e,targetType:p.L.TopicFeed};return this.sendGenericActionRequest({endpoint:this.pdpServiceEndpoint,method:"POST",payload:JSON.stringify(i),appError:t})}))}enableSpotlightCard(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){return!!e&&(yield this.deleteFromPdp(p.L.TopicFeed,"definitionName",[e],{},void 0,"Disabled",t))}))}sendGenericActionRequest(e){return(0,r.mG)(this,void 0,void 0,(function*(){const{additionalHeaders:t,additionalParams:i,endpoint:a,method:s,payload:n,appError:d}=e;if(!a||!s)return this.logError(new Error("Missing arguments: 'endpoint' and 'method' should be provided and valid"),d),!1;const p=(0,u.PH)(a);let g;((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)})),i&&i.forEach((e=>{e.value&&p.searchParams.set(e.key,e.value)}));try{JSON.parse(n),g=n}catch(e){g=JSON.stringify(n)}const v={method:s,body:g,headers:yield this.getOneserviceHeaders(t),credentials:"include"},b="GET"==s;try{return yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(p.href,v);if(e.status>=400){const t=`OneService returned error response. Status: ${e.status} for payload: ${n}`;throw new Error(t)}return!b||(yield e.json())}))),"sendActions")}catch(e){return this.logError(e,d),!1}}))}getUserActions(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=[{key:"actionType",value:e}],i=yield this.sendGenericActionRequest({additionalParams:t,endpoint:this.userActionServiceEndPoint,method:"GET"});return i&&i.value}))}setUserAction(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){return!!(yield this.sendGenericActionRequest({endpoint:this.userActionServiceEndPoint,method:"POST",payload:Object.assign({actionType:e},t)}))}))}deleteUserAction(e,t){return(0,r.mG)(this,void 0,void 0,(function*(){const i=[{key:"actionType",value:e},{key:"targetId",value:t.targetId},{key:"definitionName",value:t.definitionName}];return!!(yield this.sendGenericActionRequest({additionalParams:i,endpoint:this.userActionServiceEndPoint,method:"DELETE"}))}))}updateUserPreference(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=yield this.getRequestInit({method:"POST"});t.body=e;const i=(0,u.PH)(this.userUpdateEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{const r=yield this.fetchImpl(i.href,t);if(r.status>=400){const t=`OneService returned error response while updating user preference. Status: ${r.status}, payload: ${e}`;throw new Error(t)}}catch(e){return!1}return!0}))}setPdpTargetTypesForBulkLoad(e){e&&e.length&&!this.bulkGraphActionTargetTypes&&(this.bulkGraphActionTargetTypes=e)}readPdpWithTargetType(e,t=!1,i,a={},n=!0,o=[]){return(0,r.mG)(this,void 0,void 0,(function*(){if(n){const t=yield this.getFromWebWorker(e);if(t)return t}if(this.bulkGraphActionTargetTypes&&this.bulkGraphActionTargetTypes.length)if(this.bulkGraphActionTargetTypes.indexOf(e)>=0){this.bulkGraphActionResultCache=this.bulkGraphActionResultCache||(yield this.bulkGraphActionPromise||(this.bulkGraphActionPromise=this.fetchPdpWithTargetTypes(this.bulkGraphActionTargetTypes,t,i,a,o)));const r=this.bulkGraphActionResultCache.get(e);if(r)return{value:r}}else b.M0.sendAppErrorEvent(Object.assign(Object.assign({},s.srQ),{message:`Received an unknown target type "${e}" that was not in the bulk graph action target types list "${this.bulkGraphActionTargetTypes}". Falling back to new network call. Please update the EntryPoint config's "graphActionsToBulkLoad" property to include this type.`}));const r=(yield this.fetchPdpWithTargetTypes([e],t,i,a,o)).get(e);if(r)return{value:r}}))}deleteFromPdp(e,t,i,a={},s,n="Follow",d,p=[]){return(0,r.mG)(this,void 0,void 0,(function*(){const g={method:"DELETE",headers:yield this.getOneserviceHeaders(a),credentials:"include"},v=(0,u.PH)(this.pdpServiceEndpoint),m=(yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),L=`targetType eq '${e}'`,y=i.map((e=>`${t} eq '${e}'`)).join(" or ");let T=`actionType eq '${n}' and (${y}) and (${L})`;s&&(T+=` and (degree eq '${s}')`),v.searchParams.set("$filter",T),[...m,...p].forEach((e=>{e.value&&v.searchParams.set(e.key,e.value)}));try{yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(v.href,g);if(t.status>=400){const i=`OneService returned error response. Status: ${t.status} for actionType: ${n}, targetType: ${e}`;throw new Error(i)}return t}))),"deleteFromPdp"),this.tryInvalidateBulkFetchedPdpTargetType(e)}catch(e){return d&&b.M0.sendAppErrorEvent(Object.assign(Object.assign({},d),{pb:Object.assign(Object.assign({},d.pb),{actionType:n,error:e.message})})),!1}return!0}))}tryInvalidateBulkFetchedPdpTargetType(e){this.bulkGraphActionResultCache&&this.bulkGraphActionResultCache.delete(e)}fetchPdpWithTargetTypes(e,t=!1,i,a={},s=[]){return(0,r.mG)(this,void 0,void 0,(function*(){if(!e.length)return new Map;const n=e.map((e=>`targetType eq '${e}'`)).join(" or "),d=[{key:"$top",value:`${i=i||10*e.length*2}`},{key:"$filter",value:`actionType eq 'Follow' and (${n})`}],p=yield this.getRequestInit({method:"GET"},a);!0===t&&(p.cache="no-store");const g=(0,u.PH)(this.pdpServiceEndpoint);[...d,...(yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...s].forEach((e=>{e.value&&g.searchParams.set(e.key,e.value)}));const v=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(g.href,p);if(!e.ok){if(e.status>=400&&e.status<500&&408!=e.status)return e;throw Error(e.statusText)}return e}))),"readPDPData");if(!v.ok)throw Error(`code=${v.status}, ${v.statusText}`);const b=new Map,m=yield v.json();if(!m)return b;if(m.value)for(const e of m.value){let t=b.get(e.targetType);t||b.set(e.targetType,t=[]),t.push(e)}for(const t of e)b.get(t)||b.set(t,[]);return b}))}updateMarketPreference(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t={method:"POST",credentials:"include",body:JSON.stringify({userSettings:{preferredMarket:e}})},i=(0,u.PH)(this.userUpdateEndpoint);((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&i.searchParams.set(e.key,e.value)}));try{const e=yield this.fetchImpl(i.href,t);if(!e.ok)throw new Error(`Failed to update market preference: Status: ${e.status}`);return!0}catch(e){return a.k.logError(e.message),!1}}))}getFromWebWorker(e){return(0,r.mG)(this,void 0,void 0,(function*(){let t=null;if(d.yb){const i=this.maptoWebWorkerId(e);if(i&&i.trim()){const i=yield(0,d.ot)({id:this.maptoWebWorkerId(e)});i.fetched&&(t=i.payload)}}return t}))}maptoWebWorkerId(e){switch(e){case p.L.Location:return"weatherpdp";case p.L.League:return"sportsleaguepdp";case p.L.Player:return"sportsplayerpdp";case p.L.Team:return"sportsteampdp";case p.L.Finance:return"moneypdp";default:return""}}getRequestInit(e={method:"GET"},t={}){return(0,r.mG)(this,void 0,void 0,(function*(){const i=yield c.$.getOneServiceHeaders();return e.headers=Object.assign(Object.assign({},i),t),e.credentials="include",e}))}getOneserviceHeaders(e={}){return(0,r.mG)(this,void 0,void 0,(function*(){const t=yield c.$.getOneServiceHeaders();return Object.assign(Object.assign({},t),e)}))}getFollowedLists(){return(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.getRequestInit({method:"GET"}),t=(0,u.PH)(this.userUpdateEndpoint);[...(yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)].forEach((e=>{e.value&&t.searchParams.set(e.key,e.value)}));try{const i=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const i=yield this.fetchImpl(t.href,e);if(!i.ok){if(i.status>=400&&i.status<500&&408!=i.status)return i;(0,n.OO)(null,s.G9t,"Error get followed list")}return i}))),"getFollowedLists");return i.ok||(0,n.OO)(null,s.G9t,"Error get followed list"),yield i.json()}catch(e){return a.k.logError(e.message),null}}))}addToFollowedLists(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=p.L.Finance,i={method:"POST",body:JSON.stringify({financeListIds:e}),headers:yield c.$.getOneServiceHeaders(),credentials:"include"},a=(0,u.PH)(this.userUpdateEndpoint);let s;((yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride)).forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)}));try{s=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,i);if(e.status>=400){const i=`OneService returned error response. Status: ${e.status} for actionType: FollowList, targetType: ${t}`;throw new Error(i)}return e.json()}))),"addToFollowedLists")}catch(e){return!1}return!0}))}deleteFromFollowedLists(e){return(0,r.mG)(this,void 0,void 0,(function*(){const t=p.L.Finance,i={method:"DELETE",body:null,headers:yield c.$.getOneServiceHeaders(),credentials:"include"},a=(0,u.PH)(this.userUpdateEndpoint);let s;[...(yield(0,f.XJ)())===o.Hy.SignedIn?c.$.getOneServiceParamsWithAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride):c.$.getOneServiceParamsWithoutAuth((0,l.Yq)().UserId,this.ocid,!this.ocidOverride),...[{key:"financeListIds",value:e.toString()}]].forEach((e=>{e.value&&a.searchParams.set(e.key,e.value)}));try{s=yield(0,h.w)((()=>(0,r.mG)(this,void 0,void 0,(function*(){const e=yield this.fetchImpl(a.href,i);if(e.status>=400){const i=`OneService returned error response. Status: ${e.status} for actionType: UnFollowList, targetType: ${t}`;throw new Error(i)}return e.json()}))),"deleteFromFollowedLists")}catch(e){return!1}return!0}))}logError(e,t){t?b.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e.message})})):a.k.logError(e.message)}}{constructor(){super((0,m.N)()?window.fetch.bind(window):fetch),"windowsNewsPlus"===l.jG.AppType||"newsAndInterests"===l.jG.AppType||"winWidgets"===l.jG.AppType?(this.ocid="winp2",this.ocidOverride=!0):"sharedWidgets"===l.jG.AppType?(this.ocid="hpwidget",this.ocidOverride=!0):"windowsNewsbar"===l.jG.AppType?(this.ocid="winp0dash",this.ocidOverride=!0):"travel"===l.jG.AppType?(this.ocid="travel-verthp-feeds",this.ocidOverride=!0):"gaming"===l.jG.AppType&&(this.ocid="startgg-feeds",this.ocidOverride=!0)}}}}]);A
Eo