            ${(0,rt.rx)((t=>t.gasStation.formattedGasPrice.split("")),at.d`
                ${(0,nt.g)((t=>!isNaN(parseInt(t))),at.d`
                    <span class="gasPrice-value-digit">
                        ${t=>t}
                    </span>`)}
                ${(0,nt.g)((t=>","===t||"."===t),at.d`
                    <span class="gasPrice-value-point">
                        ${t=>t}
                    </span>`)}
                `)}
            </div>
        </span>
        ${(0,nt.g)((t=>"half"!==t.size),at.d`<div class="gasStationMap-container">
        <img class="gas-map-img" src=${t=>{var e;return t.mapImageUrlTemplate&&(0,u.Zx)(t.gasStation.location,"dark"===t.currentTheme,t.mapImageUrlTemplate,null===(e=t.gasStation)||void 0===e?void 0:e.mapPushPins,t.size)}} />
    </div>`)}
        ${t=>t.isWidget?ii(t.seeMoreText):at.d`<div class="gas-footer">${t=>_e(t.seeMoreText)}</div>`}
    </div>
</a>
`)}
    ${(0,nt.g)((t=>"cameras"===t.scenario),xi())}
    ${(0,nt.g)((t=>"commute"===t.scenario&&!t.useCommuteV2Card),Ri())}
    ${(0,nt.g)((t=>"commute"===t.scenario&&t.useCommuteV2Card),(t=>at.d`
    ${(0,nt.g)((t=>t.commuteData),at.d`
        <a
            class="traffic-card-link traffic-root"
            tabindex="-1"
            href="${t=>t.clickthroughUrl}"
            rel="noopener"
            target=${t=>t.clickthroughTarget}
            data-t="${t=>t.mapTelemetryTag}"
            >
                <img
                    class="traffic-map traffic-commute-v2-map"
                    src="${t=>t.generateCommuteImg()}"
                    alt="${t=>t.mapAltText}"
                    @error=${t=>t.fireErrorEvent(t.currentTheme)}
                />
                <div class="traffic-commute-v2-gradient">
                </div>
                <div class="traffic-commute-body traffic-card-body-text">
                    <div class="traffic-commute-direction-container">
                        <div
                            class="traffic-commute-description-text"
                        >
                            ${t=>t.commuteData.commuteStart}
                        </div>
                        <button
                            title="${t=>t.reverseRouteText}"
                            aria-label="${t=>t.reverseRouteText}"
                            role="button"
                            @click=${(t,e)=>t.reverseCommuteDirection(e.event)}
                            class="traffic-commute-reverse-button"
                            data-t="${t=>t.reverseRouteTelemetryTag}"
                            >
                                ${'\n<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">\n<rect width="20" height="20" rx="10" fill="white"/>\n<path d="M12.3169 4.18829C12.0729 3.93724 11.6771 3.93724 11.4331 4.18829C11.189 4.43934 11.189 4.84637 11.4331 5.09743L12.8661 6.57143L5.625 6.57143C5.27982 6.57143 5 6.85925 5 7.21429C5 7.56933 5.27982 7.85714 5.625 7.85714L12.8661 7.85714L11.4331 9.33115C11.189 9.5822 11.189 9.98923 11.4331 10.2403C11.6771 10.4913 12.0729 10.4913 12.3169 10.2403L14.8169 7.66885C15.061 7.4178 15.061 7.01077 14.8169 6.75972L12.3169 4.18829ZM8.56694 10.6689C8.81102 10.4178 8.81102 10.0108 8.56694 9.75972C8.32286 9.50867 7.92714 9.50867 7.68306 9.75972L5.18306 12.3311C5.06585 12.4517 5 12.6152 5 12.7857C5 12.9562 5.06585 13.1197 5.18306 13.2403L7.68306 15.8117C7.92714 16.0628 8.32286 16.0628 8.56694 15.8117C8.81102 15.5607 8.81102 15.1536 8.56694 14.9026L7.13388 13.4286L14.375 13.4286C14.7202 13.4286 15 13.1408 15 12.7857C15 12.4307 14.7202 12.1429 14.375 12.1429L7.13388 12.1429L8.56694 10.6689Z" fill="#717171"/>\n</svg>\n'}
                        </button>
                        <div
                            class="traffic-commute-description-text"
                        >
                            ${t=>t.commuteData.commuteEnd}
                        </div>
                    </div>
                    <div
                        class="traffic-commute-time-text"
                    >
                        ${t=>t.commuteData.commuteTime}
                    </div>
                    <div 
                        class="traffic-commute-congestion-text traffic-commute-congestion-${t=>t.commuteData.delayColor}"
                    >
                        ${t=>t.commuteData.delay}
                    </div>
                    ${(0,nt.g)((t=>"half"!=t.size),at.d`<div 
                                class="traffic-commute-description-text"
                            >
                                ${t=>t.commuteData.viaRoads}
                            </div>`)}
                </div>
                ${Ci(t)}
        </a>
    `)}
`)(t))}
    ${(0,nt.g)((t=>"traffic"===t.scenario||"areaSummary"===t.scenario),Ri())}
    ${(0,nt.g)((t=>"incidents"===t.scenario),Ti())}
    ${(0,nt.g)((t=>"myRoutes"===t.scenario),at.d`
    <a
        class="traffic-root myroutes-background"
        tabindex="-1"
        href="${t=>t.clickthroughUrl}"
        rel="noopener"
        target=${t=>t.clickthroughTarget}
        data-t="${t=>t.mapTelemetryTag}"
    >
        ${(0,nt.g)((t=>t.myRouteItems&&(t.size==Yt.Half||t.size==Yt.Full)),yi())}
        ${(0,nt.g)((t=>!t.myRouteItems||t.size!=Yt.Half&&t.size!=Yt.Full),Ri())}
    </a>
`)}
    ${(0,nt.g)((t=>"summary"===t.scenario),at.d`
    <a
        class="traffic-root mapless-summary-bg"
        tabindex="-1"
        href="${t=>t.clickthroughUrl}"
        rel="noopener"
        target=${t=>t.clickthroughTarget}
        data-t="${t=>t.mapTelemetryTag}"
    >
        ${(0,nt.g)((t=>t.maplessSummary&&t.size==Yt.Half),si())}
        ${(0,nt.g)((t=>!t.maplessSummary||t.size!=Yt.Half),Ri())}
    </a>
`)}
    ${(0,nt.g)((t=>"error"===t.scenario),Ri())}
    ${(0,nt.g)((t=>"transitAlert"===t.scenario),((t,e)=>at.d`
    <a
        class="traffic-root transit-background"
        tabindex="-1"
        href="${t=>t.clickthroughUrl}"
        rel="noopener"
        target=${t=>t.clickthroughTarget}
    >
        ${(0,nt.g)((t=>{var e;return null===(e=t.transitData)||void 0===e?void 0:e.transitAlertItems}),Bi(t))}
        ${(0,nt.g)((t=>{var e;return!(null===(e=t.transitData)||void 0===e?void 0:e.transitAlertItems)}),Ri())}
    </a>
`)(t))}
`,styles:(t,e)=>N.i`
        ${he}

        ${N.i`
        .camerap2-root {
            z-index: 3;
            grid-area: 1 / 1 / auto / auto;
            height: 100%;
        }

        .camerap2-texts {
            height: fit-content;
            width: fit-content;
            position: relative;
            top: 54px;
            margin-inline-start: 25px;
        }

        .camerap2-maxsize {
            position: absolute;
            top: 0px;
            height: 100%;
            width: 100%;
        }
    `.withBehaviors(new X(me,fe),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}
        ${qe(t,e)}
        ${Ce()}
        ${N.i`
        .summary-colorfill {
            background: linear-gradient(64.05deg, #fceae9 0%, #f7cec9 65.47%);
        }

        .mapless-carousel::part(clipper) {
            top: 41px;
            height: 64px;
        }

        .mapless-carousel::part(offset) {
            margin-inline-start: 16px;
        }

        .prong2-mapless-carousel::part(clipper) {
            top: 48px;
            height: 64px;
        }

        .prong2-mapless-carousel::part(offset) {
            margin-inline-start: 16px;
        }

        .prong2-mapless-carousel::part(slide) {
            height: 10px;
        }

        .traffic-maxsize:hover .prong2-carousel::part(next-flipper),
        .traffic-maxsize:hover .prong2-carousel::part(previous-flipper) {
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
        }

        .mapless-carousel:hover .prong2-carousel::part(carousel-card-wrapper)::part(next-flipper) {
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
        }
    `.withBehaviors(new X(He,Fe),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}
        ${N.i`
        .trafficIncidentPin {
            inset-inline-end: 26px;
        }

        :host(:not([size="half"])) .trafficIncident-background-gradient {
            width: 100%;
            height: 100%;
        }

        :host([size="half"]) .trafficIncident-background-gradient {
            position: absolute;
            width: 258px;
            height: 146px;
            opacity: 0.95;
        }

        .trafficIncident-background-gradient {
            z-index: 1;
        }

        .trafficIncident-footer {
            justify-content: center;
            display: flex;
            z-index: 1;
        }

        .trafficIncident-link {
            text-decoration: none;
        }`.withBehaviors(new X(Oe,Me),new E.O(Ae,Le))}
        ${N.i`
        .gas-icon {
            position: absolute;
        }

        :host(:not([size="half"])) .gas-icon {
            margin-inline-start: 9px;
        }

        :host([size="half"]) .gas-icon {
            top: 40px;
        }

        :host(:not([size="half"])):host(:not([is-widget])) .gas-icon {
            top: 46px;
        }

        :host(:not([size="half"])):host([is-widget]) .gas-icon {
            top: 48px;
        }

        :host(:not([size="half"])) .gas-icon svg {
            width: 73px;
            height: 60px;
        }

        .gas-text {
            position: absolute;
            margin-inline-start: 85px;
            top: 46px;
        }

        :host([size="half"]) .gas-text {
            margin-inline-start: 95px;
        }

        :host([is-widget]) .gas-text {
            top: 48px;
        }

        .gas-description {
            color: ${j.CHi};
            font-size: ${j.sNp};
            line-height: ${j.vgC};
        }

        .gasPrice-value-digit {
            font-size: 28px;
            text-align: center;
            line-height: 32px;
            display: table-cell;
            border-radius: 3px;
            margin-top: 4px;
            margin-inline-start: 3px;
            width: 31px;
            height: 36px;
        }

        .gasPrice-value-point {
            font-size: 24px;
            line-height: 32px;
            display: flex;
            flex-direction: row;
            align-items: center;
            margin-inline-start: 1px;
        }

        .gasPrice-value-digit:first-child {
            margin-inline-start: unset;
        }

        .gasPrice-value-point + .gasPrice-value-digit {
            margin-inline-start: 1px;
        }

        .gasStationMap-container {
            top: 113px;
            left: 16px;
            position: absolute;
        }

        :host([is-widget]):host([size="full"]) .gasStationMap-container {
            top: 115px;
        }

        :host([is-widget]):host([size="tall"]) .gasStationMap-container {
            top: 120px;
        }

        .gas-map-img {
            border-radius: 6px;
        }

        .gas-background {
            border-radius: 6px;
            height: 100%;
        }

        :host([size="half"]) .gasPrice-value-digit {
            width: 33px;
        }

        .gasPrice-value-digit, .gasPrice-value-point {
            font-weight: 600;
        }

        .gas-price {
            display: inline-flex;
        }

        .gas-footer {
            display: flex;
            justify-content: center;
        }
    `.withBehaviors(new X(Ie,Se))}
        ${N.i`
        .myroutes-background {
            border-radius: 6px;
            position: absolute;
            text-decoration: none;
            border-radius: 6px;
            flex: none;
            font-family: Segoe UI;
            font-weight: 600;
            font-style: normal;
        }
        
        .maxsize-one-item {
            height: unset;
        }
        
        .map {
            width: 268px;
            height: 144px;
            flex: none;
            position: absolute;
            top: 91px;
            margin-inline-start: 16px;
        }

        .map > img {
            border-radius: 6px;
        }

        :host([size="half"]) .myroutes-mapless-carousel::part(clipper) {
            top: 40px;
            height: 45px;
        }

        :host([size="full"]) .myroutes-mapless-carousel::part(clipper) {
            top: 40px;
            height: 195px;
        }

        .mapless-carousel-for-two::part(clipper) {
            top: 47px !important;
        }

        .mapless-carousel-for-three::part(clipper) {
            top: 52px !important;
        }

        .myroutes-mapless-carousel::part(offset) {
            margin-inline-start: 16px;
        }

        .see-more-myroutes {
            font-weight: 400;
            right: 12px;
        }

        .see-more-onepage .see-more-pill{
            left: 98px;
            font-weight: 400;
        }
        
        .last-update-container {
            position: absolute;
            display: flex;
            flex-direction: row;
            align-items: center;
            padding: 0px;
            gap: 4px;
            width: 266px;
            height: 16px;
            margin-top: -5px;
            flex: none;
            margin-inline-start: 16px;
        }

        :host([size="half"]) .last-update-container {
            bottom: 43px;
        }

        :host([size="full"]) .last-update-container {
            bottom: 49px;
        }

        .last-update-container-for-two {
            bottom: 61px !important;
        }

        .last-update-container-for-three {
            bottom: 56px !important;
        }

        .last-update-text {
            width: 250px;
            height: 14px;
            font-weight: 400;
            font-size: 10px;
            line-height: 14px;
            display: flex;
            align-items: center;
        }
        
    `.withBehaviors(new X(pe,ge),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}
        ${N.i`
    .traffic-commute-v2-gradient {
        z-index: 1;
        height: 100%;
        width: 100%;
        position: absolute;
    }
    :host([size="half"]) .traffic-commute-v2-gradient {
        opacity: 0.95;
    }

    .traffic-commute-body.traffic-card-body-text {
        z-index: 1;
        top: 44px;
        position: absolute;
        margin-inline-start: 24px;
        font-weight: 600;
    }

    :host([is-widget]) .traffic-commute-body.traffic-card-body-text {
        margin-inline-start: 16px;
        top: 48px;
    }

    .traffic-commute-direction-container {
        display: flex;
        align-items: center;
    }

    .traffic-commute-description-text {
        font-size: 14px;
        line-height: 20px;
    }

    .traffic-commute-reverse-button {
        margin: 0px 8px;
        padding: 0px;
        border: none;
        background: transparent;
        cursor: pointer;
        display: flex;
    }

    .traffic-commute-time-text {
        font-size: 20px;
        line-height: 26px;
    }

    .traffic-commute-congestion-text {
        font-size: 14px;
        line-height: 20px;
        margin-top: 4px;
    }

    .traffic-commute-reverse-button rect {
        fill: #FFFFFF;
    }

    :host([is-widget]) .traffic-commute-reverse-button rect {
        fill-opacity: 0.04;
    }

    :host([is-widget]) .traffic-commute-reverse-button:hover rect,
    :host([is-widget]) .traffic-commute-reverse-button:active rect {
        fill-opacity: 0.07;
    }

    :host(:not([is-widget])) .traffic-commute-v2-footer-gradient-not-p2 {
        height: 53px;
        width: 100%;
        bottom: 0px;
        left: 0px;
        position: absolute;
    }

    .traffic-commute-v2-footer {
        display: flex;
        justify-content: center;
    }
    `.withBehaviors(new X(ke,De),new E.O(we,Te))}
        ${N.i`
        .transit-background {
            border-radius: 6px;
            position: absolute;
            text-decoration: none;
            border-radius: 6px;
            flex: none;
            font-style: normal;
        }
        .transit-background:visited {
            color: #000;
            text-decoration: none;
        }

        .transit-lines-mapless-carousel::part(offset) {
            margin-inline-start: 6px;
        }
    `.withBehaviors(new X(ue,ce),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}

        :host {
            --traffic-card-heading-height: 16;
            --traffic-card-heading-padding-top: 0;
        }

        :host([scenario="summary"]) {
            --traffic-card-heading-height: 23;
            --traffic-card-heading-padding-top: 16;
        }

        .traffic-view-root {
            display: grid;
            grid-template-columns: 1fr;
            height: 100%;
            contain: content;
            border-radius: calc(${j.rSr} * 1px);
        }

        .traffic-view-root-text {
            grid-area: 1 / 1;
            padding: 8px;
            border-radius: calc(${j.UWU} * 1px);
            z-index: 3;
            opacity: 0.95;
        }

        :host([scenario="summary"]) .traffic-view-root-text {
            --gradient-angle: -2.81deg;
            padding: 0px;
        }

        :host([scenario="summary"]):host([use-opaque-background]) .traffic-view-root-text {
            --gradient-angle: none;
            opacity: 1;
        }

        .traffic-view-root-map {
            z-index: 1;
            border-radius: calc(${j.UWU} * 1px);
        }

        :host(:not([include-status-frame])) .traffic-view-root-map {
            grid-area: 1 / 1;
        }

        :host([include-status-frame]):host(:not([size="half"])) .traffic-view-root-map {
            width: 268px;
        }

        :host([include-status-frame]) .traffic-view-root-map {
            width: 100%;
            position: absolute;
            top: 48px;
        }

        .traffic-card-link {
            z-index: 0;
            position: absolute;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            height: 100%;
            text-decoration: none;
        }

        .traffic-card-heading {
            font-style: normal;
            font-size: 12px;
            line-height: 16px;
            color: ${j.CHi};
            z-index: 3;
            font-weight: 600;
            margin-left: 5px;
            min-height: calc(var(--traffic-card-heading-height) * 1px);
        }

        :host([scenario="summary"]) .traffic-card-heading {
            margin-left: 0px;
            width: 100%;
            height: calc(var(--traffic-card-heading-height) * 1px);
            padding-top: calc(var(--traffic-card-heading-padding-top) * 1px);
            padding-inline-start: 16px;
            color: ${j.CHi};
        }
        
        :host([scenario="summary"]):host([use-opaque-background]) .traffic-card-heading {
            color: ${j.Q5n};
        }
        
        :host([scenario="summary"]):host(:not([is-widget])):host([size="full"]) .traffic-card-heading {
            height: 44px;
            padding-top: 0px;
        }
        
        :host([scenario="summary"]):host([is-widget]) .traffic-card-heading {
            height: 48px;
            padding-top: 0px;
        }

        .traffic-header-link {
            text-decoration: none;
        }

        .traffic-header-link:hover,
        .traffic-header-link:active,
        .traffic-header-link:${de.b} {
            text-decoration: underline;
            outline: none;
        }

        .traffic-card-body {
            height: calc(100% - (var(--traffic-card-heading-height) + var(--traffic-card-heading-padding-top)) * 1px);
        }

        .trafficSummary-card-body {
            display: flex;
            justify-content: center;
        }

        .incident {
            max-width: fit-content;
            margin-bottom: 24px;
            font-size: ${j.PwC};
            line-height: ${j.b3W};
            align-items: flex-end;
            margin-top: 16px;
            font-weight: 600;
            padding: 0 8px;
        }

        :host([is-widget]) .incident {
            margin-top: 19px;
        }

        .incident-link {
            text-decoration: none;
        }

        .incident-link:hover,
        .incident-link:active,
        .incident-link:${de.b} {
            text-decoration: underline;
            outline: none;
        }

        .commute-text {
            font-weight: 600;
        }

        .commute-time {
            max-width: fit-content;
            font-size: ${j.mWK};
            line-height: ${j.I7_};
            align-items: flex-end;
            margin-top: 24px;
            color: ${j.CHi};
        }

        .text-wrapper {
            padding: 0 8px;
        }

        .via-roads {
            max-width: fit-content;
            font-size: ${j.cSu};
            line-height: ${j.RUt};
            align-items: flex-end;
            color: ${j.CHi};
        }

        .incident-lines {
            -webkit-box-orient: vertical;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            max-height: 40px;
            white-space: normal;
            max-width: 168px;
            overflow: hidden;
        }

        .road {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: ${j.CHi};
            max-width: 168px;
        }

        .delay {
            font-size: ${j.cSu};
            line-height: ${j.RUt};
        }

        .delay-green {
            color: ${se};
        }

        .delay-orange {
            color: ${ne};
        }

        .delay-red {
            color: ${re};
        }

        .error-text {
            max-width: 168px;
            font-size: ${j.PwC};
            line-height: ${j.b3W};
            align-items: flex-end;
            margin-top: 24px;
            font-weight: 600;
            padding: 0 8px;
            color: ${j.CHi};
        }

        :host(:not([include-status-frame])) .traffic-view-title-gradient {
            position: absolute;
            height: 86px;
            width: 300px;
            z-index: 2;
            top: 0px;
        }

        .traffic-view-options-gradient {
            position: absolute;
            width: 80px;
            height: 80px;
            top: 0px;
            z-index: 1;
            border-radius: calc(${j.rSr} * 1px);
        }

        :host([scenario="summary"])  .traffic-view-options-gradient {
            background: none;
        }

        .traffic-icon {
            margin-right: 5px;
            position: relative;
            top: 3px;
        }

        .carousel::part(tablist) {
            top: 10px;
        }

        .content-select {
            min-width: 170px;
            border: none;
            background: none;
            position: relative;
            right: 10px;
        }

        .see-more-gradient {
            width: 100%;
            height: 98px;
            bottom: 0px;
            left: 0px;
            position: absolute;
        }

        :host([scenario="summary"]):host([size="full"]):host([use-opaque-background]) .see-more-gradient {
            background: none;
        }

        .dropdown-anchor {
            z-index: 1;
        }

        .header-icon {
            position: relative;
            top: 3px;
            margin-inline-end: 9px;
        }

        :host([size="half"]) .traffic-summary-item-group {
            width: fit-content;
            border-radius: 4px;
            padding-top: 2px;
            padding-bottom: 2px;
        }

        :host(:not([size="half"])):host(:not([use-old-summary-design])) .traffic-summary-item-group {
            height: 26px;
            border-radius: 6px;
            padding: 2px 7px 2px 7px;
            white-space: nowrap;
            display: inline-block;
        }

        :host([include-status-frame]) .traffic-summary-item-group {
            backdrop-filter: blur(4px);
        }

        :host([size="half"]) .traffic-summary-item-container {
            top: 48px;
            border-radius: 4px;
            z-index: 10;
        }

        :host([size="half"]):host([include-status-frame]) .traffic-summary-item-container {
            top: 62px;
        }

        :host([size="full"]):host(:not([use-old-summary-design])) .traffic-summary-item-container {
            top: 230px;
            justify-self: center;
            border-radius: 6px;
            z-index: 10;
        }

        :host([size="full"]):host(:not([use-old-summary-design])):host([is-widget]) .traffic-summary-item-container {
            top: 214px !important;
        }

        :host([size="tall"]):host(:not([use-old-summary-design])) .traffic-summary-item-container {
            top: 372px;
            z-index: 10;
        }

        :host(:not([use-old-summary-design])) .traffic-summary-item-container {
            position: absolute;
            box-shadow: 0px 1.2px 3.6px rgba(0, 0, 0, 0.1), 0px 6.4px 14.4px rgba(0, 0, 0, 0.13);
        }

        :host([use-old-summary-design]) .full-map-gradient, :host([use-old-summary-design]) .backplate{
            height: 100%;
            position: absolute;
            top: 0px;
        }

        :host([use-old-summary-design]) .full-map-gradient {
            background: radial-gradient(182.77% 177.99% at 100% 100%, rgba(193, 244, 207, 0.6) 0%, rgba(240, 255, 244, 0.6) 100%);
        }
        :host([use-old-summary-design]) .full-map-gradient.bg-orange {
            background: radial-gradient(182.77% 177.99% at 100% 100%, rgba(244, 217, 193, 0.6) 0%, rgba(255, 238, 223, 0.6) 100%);
        }
        :host([use-old-summary-design]) .full-map-gradient.bg-red {
            background: radial-gradient(182.77% 177.99% at 100% 100%, rgba(244, 193, 193, 0.6) 0%, rgba(252, 237, 237, 0.6) 100%);
        }

        .thumbnail {
            width: 268px;
            margin-top: 12px;
            border-radius: 6px;
        }
    `.withBehaviors(new X(Ke,Ze),new E.O(Qe,Ye),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}),Pi=N.i`
    .change-page-button {
        background: rgba(255, 255, 255, 0.09);
    }
    .change-page-button:hover {
        background: rgba(255, 255, 255, 0.27);
    }
    .change-page-button path {
        fill: rgba(255, 255, 255, 0.54);
    }
`,ji=N.i`
    .change-page-button {
        background: rgba(0, 0, 0, 0.07);
    }
    .change-page-button:hover {
        background: rgba(255, 255, 255, 0.6);
    }

    .carousel-pagination {
        font-weight: 600;
    }
`,Ei=N.i``,Gi=N.i`
    .change-page-button > svg {
        transform: matrix(-1, 0, 0, 1, 0, 0);
    }
`;var Vi=i(81422),Ni=i(74009);const Wi=Di.compose({baseName:"traffic-carousel",template:(t,e)=>at.d`
    <div class="carousel-root">
        <div class="carousel-clipper" part="clipper">
            <div class="carousel-offset" part="offset">
                <ul
                    class="carousel-slider"
                    ${(0,ot.i)("carouselSlider")}
                    ${(0,Vi.p)({property:"carouselSlidesContainers",filter:(0,Ni.R)("li")})}
                >
                    ${(0,rt.rx)((t=>t.carouselSlides),at.d`
                            <li>
                                ${t=>t}
                            </li>
                        `)}
                </ul>
            </div>
        </div>
        ${(0,nt.g)((t=>t.enableControls&&t.carouselSlides&&t.carouselSlides.length>1),at.d`
                <div class="carousel-pagination">
                    <button
                        class="change-page-button"
                        title=${t=>t.carouselStrings&&t.carouselStrings.previousSlideText}
                        @click=${(t,e)=>t.flipperClickHandler(e.event,-1)}
                        data-t="${t=>t.previousFlipperTelemetryTag}"
                    >
                        ${'\n<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M9.35355 4.14645C9.54882 4.34171 9.54882 4.65829 9.35355 4.85355L6.20711 8L9.35355 11.1464C9.54882 11.3417 9.54882 11.6583 9.35355 11.8536C9.15829 12.0488 8.84171 12.0488 8.64645 11.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L8.64645 4.14645C8.84171 3.95118 9.15829 3.95118 9.35355 4.14645Z" fill="black" fill-opacity="0.55"/>\n</svg>\n'}
                    </button>
                    <span class="pagination-text">${t=>t.paginationText}</span>
                    <button
                        class="change-page-button"
                        title=${t=>t.carouselStrings&&t.carouselStrings.nextSlideText}
                        @click=${(t,e)=>t.flipperClickHandler(e.event,1)}
                        data-t="${t=>t.nextFlipperTelemetryTag}"
                    >
                        ${'\n<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M6.64645 4.14645C6.45118 4.34171 6.45118 4.65829 6.64645 4.85355L9.79289 8L6.64645 11.1464C6.45118 11.3417 6.45118 11.6583 6.64645 11.8536C6.84171 12.0488 7.15829 12.0488 7.35355 11.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L7.35355 4.14645C7.15829 3.95118 6.84171 3.95118 6.64645 4.14645Z" fill="black" fill-opacity="0.55"/>\n</svg>\n'}
                    </button>
                </div>
            `)}
        <div aria-live="polite" class="announce-aria" ${(0,ot.i)("liveRegion")}></div>
    </div>
`,styles:(t,e)=>N.i`
        .carousel-root {
            width: 100%;
            height: 100%;

            color: ${j.CHi};
        }

        .carousel-pagination {
            font-size: ${j.sNp};
            line-height: ${j.vgC};

            position: absolute;
            bottom: 13px;
            margin-inline-start: 16px;

            display: flex;
            flex-direction: row;
            z-index: 1;
        }

        .carousel-pagination > span {
            margin-inline-start: 5px;
            margin-inline-end: 5px;
        }

        .change-page-button {
            height: 20px;
            width: 20px;
            border-radius: 99px;
            border: none;
            padding: 0px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .carousel-clipper {
            position: absolute;
            top: 0px;
            left: 0px;
            width: 100%;
            height: 100%;
        }

        .carousel-offset {
            width: 100%;
            height: 100%;
        }

        .carousel-slider {
            display: flex;
            flex-flow: row nowrap;
            position: absolute;
            margin: 0px;
            padding: 0px;
            height: 100%;
            width: 100%;
            transition: margin-left 0.3s ease-in-out, margin-right 0.3s ease-in-out;
        }

        li {
            list-style-type: none;
        }

        .pagination-text {
            text-align: center;
            min-width: 20px;
        }

        .announce-aria {
            width: 0px;
            height: 0px;
            contain: content;
        }
    `.withBehaviors(new X(ji,Pi),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `),new E.O(Ei,Gi))}),qi=N.i`
    .mapless-carousel-category {
        background: rgba(255, 255, 255, 0.09);
        color: #f7f7f7;
    }
    .mapless-carousel-category svg {
        fill: #f7f7f7;
    }

    .mapless-carousel-category.serious {
        color: #f28c8c;
    }
    .mapless-carousel-category.serious svg {
        fill: #f28c8c;
    }

    .mapless-carousel-category:hover {
        background: #474342;
    }
`,Qi=N.i`
    .mapless-carousel-category {
        background: rgba(255, 255, 255, 0.8);
        color: #4a4a4a;
    }
    .mapless-carousel-category svg {
        fill: #4a4a4a;
    }

    .mapless-carousel-category.serious {
        color: #dd4242;
    }
    .mapless-carousel-category.serious svg {
        fill: #dd4242;
    }

    .mapless-carousel-category:hover {
        background: rgba(255, 255, 255, 1);
    }
`,Yi=new Map([["accidents",!0],["construction",!0],["roadClosures",!0]]);class Zi extends M.I{constructor(){super(...arguments),this.clickthroughTarget="_blank",this.prong2Style=!1,this.accomodateSeeMore=!1,this.highlightSeriousCategories=!1}isCategorySerious(t){return!!Yi.get(t)}}(0,c.gn)([R.LO],Zi.prototype,"slideContents",void 0),(0,c.gn)([(0,$.Lj)({attribute:"clickthrough-target"})],Zi.prototype,"clickthroughTarget",void 0),(0,c.gn)([(0,$.Lj)({attribute:"prong2-style",mode:"boolean"})],Zi.prototype,"prong2Style",void 0),(0,c.gn)([(0,$.Lj)({attribute:"accomodate-see-more",mode:"boolean"})],Zi.prototype,"accomodateSeeMore",void 0),(0,c.gn)([(0,$.Lj)({attribute:"highlight-serious-categories",mode:"boolean"})],Zi.prototype,"highlightSeriousCategories",void 0);const Ki=Zi.compose({baseName:"traffic-summary-slide",template:(t,e)=>at.d`
    <div class="mapless-carousel-slide">
        ${(0,rt.rx)((t=>t.slideContents),(t=>at.d`
                <a
                    class="mapless-carousel-category
                        ${e=>t.highlightSeriousCategories&&t.isCategorySerious(e.categoryType)?"serious":""}
                        ${e=>t.prong2Style?"prong2-style":""}
                        ${e=>t.accomodateSeeMore?"accomodate-see-more":""}"
                    tabindex="0"
                    rel="noopener"
                    href="${t=>t.clickthroughUrl}"
                    target=${e=>t.clickthroughTarget}
                    data-t="${t=>t.itemTelemetryTag}"
                >
                    <div class="mapless-category-title" title=${t=>t.categoryNameText}>
                        ${t=>t.categoryNameText}
                    </div>
                    <div class="mapless-category-icon">
                        ${t=>at.d`
                            <svg
                                width="24"
                                height="24"
                                viewBox="0 0 24 24"
                                aria-label=${t=>t.categoryNameText}
                            >
                                ${Ne[t.categoryType]}
                            </svg>
                        `}
                    </div>
                    <div
                        class="mapless-category-stat ${t=>t.periodDisplayText&&"mapless-category-stat-period"}"
                    >
                        ${(0,nt.g)((t=>t.periodDisplayText),at.d`
                                <div class="mapless-category-number-period">
                                    ${t=>t.categoryItemCount}
                                </div>
                                <div class="mapless-category-period">
                                    ${t=>t.periodDisplayText}
                                </div>
                            `)}
                        ${(0,nt.g)((t=>!t.periodDisplayText),at.d`
                                <div class="mapless-category-number">
                                    ${t=>t.categoryItemCount}
                                </div>
                            `)}
                    </div>
                </a>
            `))}
    </div>
`,styles:(t,e)=>N.i`
        .mapless-carousel-slide {
            height: 100%;
            display: flex;
            flex-flow: row;
        }

        .mapless-carousel-category {
            width: 120px;
            height: 64px;
            box-sizing: border-box;
            margin-inline-end: 4px;
            border-radius: 6px;
            text-decoration: none;

            display: grid;
            padding: 5px 12px 6px;
            grid-template-rows: 21px 32px;
            grid-template-columns: 32px 1fr;
        }

        .mapless-carousel-category.prong2-style {
            width: 108px;
            height: 62px;

        }

        .mapless-carousel-category.prong2-style.accomodate-see-more {
            height: 58px;

            padding: 4px 12px;
            grid-template-rows: 21px 29px;
        }

        .mapless-category-title {
            grid-area: 1 / 1 / 2 / 3;

            font-weight: 600;
            font-size: ${j.sNp};
            line-height: ${j.vgC};

            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
        }

        .mapless-category-icon {
            grid-area: 2 / 1 / 3 / 2;
            display: flex;
            align-items: flex-start;
            flex-direction: column;
            justify-content: center;
        }

        .mapless-category-stat {
            grid-area: 2 / 2 / 3 / 3;
            align-self: end;
            justify-self: end;
            display: flex;
            flex-flow: column nowrap;
            text-align: end;
        }

        .mapless-category-number {
            font-size: ${j.ipv};
            line-height: ${j.yGZ};
            font-weight: 600;
            text-align: right;
        }

        .mapless-category-number-period {
            font-size: ${j.mWK};
            line-height: ${j.b3W};
            font-weight: 600;
            text-align: right;
        }

        .mapless-category-period {
            font-size: ${j.G8g};
            line-height: ${j.MwG};
        }
    `.withBehaviors(new X(Qi,qi),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}),Xi=N.i`
    .moderate-yellow {
        background: rgba(255, 213, 149, 0.08);
    }

    .light-green {
        background: rgba(159, 241, 158, 0.08);
    }

    .heavy-red {
        background: rgba(255, 131, 131, 0.08);
    }

    .a-to-b {
        color: #FFFFFF;
    }

    .time-yellow {
        color: #FFC3A1;
    }

    .time-green {
        color: #4FEA9F
    }

    .time-red {
        color: #FFBFB9;
    }
`,Ji=N.i`
    .moderate-yellow {
        background: rgba(255, 197, 47, 0.08);
    }

    .light-green {
        background: rgba(0, 166, 86, 0.08);
    }

    .heavy-red {
        background: rgba(255, 99, 65, 0.08);
    }

    .a-to-b {
        color: #1A1A1A;
    }

    .time-yellow {
        color: #C33400;
    }

    .time-green {
        color: #0F700F;
    }

    .time-red {
        color: #BC2F34;
    }
`,_i=N.i`
    .time-block {
        text-align: right;
    }

    .time-min {
        margin-left: 3px;
    }
`,ta=N.i`
    .time-block {
        text-align: left;
    }

    .time-min {
        margin-right: 3px;
    }
`;class ea extends M.I{constructor(){super(...arguments),this.size=Yt.Half,this.clickthroughTarget="_blank"}}(0,c.gn)([R.LO],ea.prototype,"slideContents",void 0),(0,c.gn)([(0,$.Lj)({attribute:"size"})],ea.prototype,"size",void 0),(0,c.gn)([(0,$.Lj)({attribute:"item-total-number"})],ea.prototype,"itemTotalNumber",void 0),(0,c.gn)([(0,$.Lj)({attribute:"clickthrough-target"})],ea.prototype,"clickthroughTarget",void 0);const ia=ea.compose({baseName:"custom-routes-carousel-page",template:(t,e)=>at.d`
    <li class="carousel-page">
        <ol>
        ${(0,rt.rx)((t=>t.slideContents),(t=>{return e=t.itemTotalNumber,at.d`
    <a
        class="item-link"
        href="${t=>t.clickthroughUrl}"
        tabindex="0"
        rel="noopener"
        target=${(t,e)=>e.parent.clickthroughTarget}
        data-t="${t=>t.mapTelemetryTag}"
    >
    <li class="item-container
    ${t=>2==e?"item-container-for-two":""}
    ${t=>3==e?"item-container-for-three":""}
    ${t=>"delay-orange"===t.delayColor?"moderate-yellow":""}
    ${t=>"delay-green"===t.delayColor?"light-green":""}
    ${t=>"delay-red"===t.delayColor?"heavy-red":""}">
    <span class="content">
        <div class="a-to-b ${t=>2==e?"a-to-b-for-two":""}" 
        title="${t=>t.route}">
            ${t=>t.route}
        </div>
        <div class="congestion
            ${t=>2==e?"congestion-for-two":""}
            ${t=>3==e?"congestion-for-three":""}
            ${t=>"delay-orange"===t.delayColor?"time-yellow":""}
            ${t=>"delay-green"===t.delayColor?"time-green":""}
            ${t=>"delay-red"===t.delayColor?"time-red":""}">
                ${t=>t.congestionText}
        </div>
    </span>
    <span class="time-block
        ${t=>"delay-orange"===t.delayColor?"time-yellow":""}
        ${t=>"delay-green"===t.delayColor?"time-green":""}
        ${t=>"delay-red"===t.delayColor?"time-red":""}">
        <span class="time-num
        ${t=>2==e||3==e?"time-num-for-two-or-three":""}">${t=>t.travelTime&&t.travelTime.split(" ")[0]}</span>
        <span class="time-min
        ${t=>2==e||3==e?"time-min-for-two-or-three":""}">${t=>t.travelTime&&t.travelTime.split(" ")[1]}</span>
    </span>
    </li>   
    </a>
`;var e}))}
        </ol>
    </li>
`,styles:(t,e)=>N.i`
        .item-link {
            text-decoration: none;
        }

        .item-link:${de.b} {
            outline-offset: -2px;
        }
        
        .item-container {
            width: 252px;
            height: 33px;
            margin-bottom: 5px;
            border-radius: 6px;
            padding: 6px 8px;
            display: flex;
            flex-flow: row;
            justify-content: space-between;
            align-items: center;
            align-self: stretch;
        }
        
        .item-container > a {
            text-decoration: none;
            box-sizing: border-box;
            display: grid;
        }

        .item-container-for-two {
            height: 36px;
            width: 244px;
            padding: 24px 12px;
        }

        .item-container-for-three {
            height: 35px;
            padding: 10px 8px;
        }


        .content {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
        }

        .a-to-b {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            height: 20px;
            width: 149px;
            font-size: 14px;
            line-height: 20px;
            align-items: center;
        }
    
        .a-to-b-for-two {
            font-size: 16px;
            height: 22px;
        }

        .congestion {
            width: 140px;
            height: 16px;
            font-weight: 400;
            font-size: 12px;
            line-height: 16px;
            display: flex;
            align-items: center;
        }

        .congestion-for-two {
            font-weight: 600;
            font-size: 14px;
            line-height: 17px;
        }

        .congestion-for-three {
            line-height: 18px
        }
        
        .time-block {
            width: 72px;
            height: 16px;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: flex-end;
            font-weight: 600;
        }

        .time-num {
            line-height: 26px;
            font-size: 20px;
        }

        .time-num-for-two-or-three {
            font-size: 24px;
        }

        .time-min {
            font-size: 14px;
            line-height: 20px;
            margin-top: 4px;
        }
        
        .time-min-for-two-or-three {
            font-size: 14px;
            margin-top: 5px;
        }
        
        .carousel-page {
            list-style-type: none;
            margin-inline-end: 16px;
        }

        .carousel-page > ol {
            margin: 0;
            padding: 0;
            display: flex;
        }

        :host([size="full"]) .carousel-page > ol {
            flex-flow: column nowrap;
        }
    `.withBehaviors(new X(Ji,Xi),new E.O(_i,ta),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))}),aa=N.i`
    :host([size="half"]):host(:not([is-widget])) .trafficIncident-info-description {
        color: rgba(200, 0, 0, 0.83);
    }

    :host([size="half"]):host(:not([is-widget])) .trafficIncident-info-time {
        color: #444444;
    }
`,oa=N.i`
    :host([size="half"]):host(:not([is-widget])) .trafficIncident-info-description {
        color: #FF99A4;
    }
`;class na extends M.I{constructor(){super(...arguments),this.clickthroughTarget="_blank",this.size=Yt.Half}}(0,c.gn)([(0,$.Lj)({attribute:"index"})],na.prototype,"index",void 0),(0,c.gn)([(0,$.Lj)({attribute:"clickthrough-target"})],na.prototype,"clickthroughTarget",void 0),(0,c.gn)([(0,$.Lj)({attribute:"size"})],na.prototype,"size",void 0),(0,c.gn)([(0,$.Lj)({attribute:"current-theme"})],na.prototype,"currentTheme",void 0),(0,c.gn)([(0,$.Lj)({attribute:"is-widget",mode:"boolean"})],na.prototype,"isWidget",void 0),(0,c.gn)([R.LO],na.prototype,"trafficIncident",void 0),(0,c.gn)([(0,$.Lj)({attribute:"map-alt-text"})],na.prototype,"mapAltText",void 0),(0,c.gn)([(0,$.Lj)({attribute:"update-time-text"})],na.prototype,"updateTimeText",void 0),(0,c.gn)([(0,$.Lj)({attribute:"clickthrough-url"})],na.prototype,"clickthroughUrl",void 0),(0,c.gn)([(0,$.Lj)({attribute:"map-image-url-template"})],na.prototype,"mapImageUrlTemplate",void 0),(0,c.gn)([(0,$.Lj)({mode:"boolean"})],na.prototype,"canShowMapImagery",void 0);const ra=na.compose({baseName:"traffic-incident-page",template:t=>at.d`
    <a
        tabIndex="-1"
        class="trafficIncident-link traffic-maxsize-start-aligned"
        rel="noopener"
        href="${t=>t.clickthroughUrl}"
        target=${t=>t.clickthroughTarget}
        data-t="${t=>t.mapTelemetryTag}"
        style="margin-inline-start: ${t=>300*t.index}px"
    >
        ${(0,nt.g)((t=>"half"==t.size),at.d`
            ${(0,nt.g)((t=>t.canShowMapImagery),(t=>at.d`
                <img
                    class="traffic-map"
                    src=${t=>(0,u.FK)(t.trafficIncident,"dark"===t.currentTheme,t.mapImageUrlTemplate,!1,"rtl"===j.o7V.getValueFor(t),!1)}
                    alt="${t=>t.mapAltText}"
                />`))}
            <div class="trafficIncident-info-container">
                <span>
                    <a
                        class="trafficIncident-link"
                        rel="noopener"
                        href="${t=>t.clickthroughUrl}"
                        target=${t=>t.clickthroughTarget}
                        title=${t=>{var e;return null===(e=t.trafficIncident)||void 0===e?void 0:e.description}}
                        data-t="${t=>t.incidentDescriptionTelemetryTag}"
                    >
                        <div class="trafficIncident-info-description" title=${t=>{var e;return null===(e=t.trafficIncident)||void 0===e?void 0:e.description}}>
                            ${t=>{var e;return null===(e=t.trafficIncident)||void 0===e?void 0:e.description}}
                        </div>
                    </a>

                    ${(0,nt.g)((t=>!t.isWidget),at.d`
                        <div class="trafficIncident-info-time" title=${t=>t.updateTimeText}>
                            ${t=>t.updateTimeText}
                        </div>
                    `)}
                </span>
            </div>
            <div class="trafficIncidentPin">
                ${t=>function(t){let e=Ve;const i="delay-red"===t.delayColor?"rgb(226, 42, 53)":"rgb(241, 153, 56)";if(t)switch(t.category){case u.L0.Construction:e=je;break;case u.L0.Collision:e=Ee;break;default:e=t.isClosedForRouting?Ge:Ve}return at.d`<div style='fill: ${i}'>${e}</div>`}(t.trafficIncident)}
            </div>
        `)}

        ${(0,nt.g)((t=>"half"!==t.size),at.d`
            <div class="trafficIncident-container">
                <div class="trafficIncident-info-container">
                    <span>
                        <a
                            class="trafficIncident-link"
                            rel="noopener"
                            href="${t=>t.clickthroughUrl}"
                            target=${t=>t.clickthroughTarget}
                            title=${t=>{var e;return null===(e=t.trafficIncident)||void 0===e?void 0:e.description}}
                            data-t="${t=>t.incidentDescriptionTelemetryTag}"
                        >
                            <div class="trafficIncident-info-description">
                                ${t=>{var e;return null===(e=t.trafficIncident)||void 0===e?void 0:e.description}}
                            </div>
                        </a>

                        <div class="trafficIncident-info-time" title=${t=>t.updateTimeText}>
                            ${t=>t.updateTimeText}
                        </div>
                    </span>
                </div>
                <a
                    class="trafficIncident-map-container"
                    rel="noopener"
                    href="${t=>t.clickthroughUrl}"
                    target=${t=>t.clickthroughTarget}
                    title=${t=>t.mapAltText}
                    data-t="${t=>t.mapTelemetryTag}"
                >
                    ${(0,nt.g)((t=>t.canShowMapImagery),at.d`
                            <img 
                                class="trafficIncident-map-image" 
                                src=${t=>function(t,e,i,a,o){let n;n=t?e?152:306:166;return(0,u.FK)(i,a,o,!0,!1,!0,n)}(t.isWidget,"full"==t.size,t.trafficIncident,"dark"===t.currentTheme,t.mapImageUrlTemplate)}
                            />
                    `)}
                </a>
            </div>
        `)}
    </a>
`,styles:(t,e)=>N.i`
        ${Ce()}
        .trafficIncident-container {
            display: grid;
            height: 100%;
        }

        .trafficIncidentPin {
            inset-inline-end: 26px;
        }

        .trafficIncident-info-container {
            margin: 0px 16px;
        }

        :host([size="half"]) .trafficIncident-info-container {
            margin-top: 49px;
            display: flex;
            align-items: center;
            min-height: 45px;
            position: absolute;
            z-index: 1;
        }

        :host(:not([size="half"])):host(:not([is-widget])) .trafficIncident-info-container {
            margin-top: 40px;
        }

        :host(:not([size="half"])):host([is-widget]) .trafficIncident-info-container {
            margin-top: 48px;
        }

        :host(:not([size="half"])) .trafficIncident-info-container {
            max-width: 268px;
        }

        .trafficIncident-info-description {
            color: ${j.CHi};
            font-weight: 600;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            display: -webkit-box;
            -webkit-line-clamp: 2;
        }

        :host([size="half"]) .trafficIncident-info-description {
            max-width: 150px;
        }

        :host(:not([is-widget])):host([size="half"]) .trafficIncident-info-description {
            font-size: 15px;
            line-height: 18px;
        }

        :host(:not([is-widget])):host(:not([size="half"])) .trafficIncident-info-description {
            font-size: 16px;
            line-height: 20px;
        }

        :host([is-widget]) .trafficIncident-info-description {
            font-size: 14px;
            line-height: 20px;
        }

        .trafficIncident-info-time {
            color: ${j.CHi};
            line-height: 14px;
            margin-top: 4px;
        }

        :host(:not([is-widget])):host([size="half"]) .trafficIncident-info-time {
            font-size: 10px;
        }

        :host(:not([is-widget])):host(:not([size="half"])) .trafficIncident-info-time {
            font-size: 11px;
        }

        :host([is-widget]) .trafficIncident-info-time {
            font-size: 12px;
            line-height: 16px;
        }

        .trafficIncidentPin {
            position: absolute;
            top: 60px;
        }

        .trafficIncident-map-container {
            width: 268px;
            margin: 12px 16px 48px;
            min-height: 128px;
            max-height: 100%;
            display: flex;
        }

        :host([is-widget]) .trafficIncident-map-container {
            margin-top: 20px;
        }

        :host([is-widget]):host([size="full"]) .trafficIncident-map-container {
            margin-bottom: 44px;
        }

        .trafficIncident-map-image {
            border-radius: 6px;
            width: 268px;
            object-fit: cover;
            object-position: bottom;
        }

        .trafficIncident-link {
            text-decoration: none;
        }`.withBehaviors(new X(aa,oa))});function sa(t,e){return void 0!==e&&void 0!==t&&t.lineId in e}class la extends M.I{constructor(){super(...arguments),this.transitData={},this.transitLineViewData={},this.clickthroughTarget="_blank",this.watchlist={},this.showSuggestionTemplate=!1,this.handleInputForSuggestions=()=>(0,c.mG)(this,void 0,void 0,(function*(){this.showSuggestionTemplate||(this.showSuggestionTemplate=!0),this.inputControl&&(yield this.triggerLineSuggestions(this.inputControl.value))})),this.triggerLineSuggestions=t=>(0,c.mG)(this,void 0,void 0,(function*(){let e=[];const i=t.trim();i&&(e=yield this.getAutoSuggestions(i)),this.size===Yt.Full?this.getSuggestedLines(e,3):this.size===Yt.Tall&&this.getSuggestedLines(e,5)})),this.getAutoSuggestions=t=>(0,c.mG)(this,void 0,void 0,(function*(){var e,i;const a=[];return null===(i=null===(e=this.transitLineViewData)||void 0===e?void 0:e.allTransitLines)||void 0===i||i.forEach((e=>{e.longName.toLocaleLowerCase().includes(t.toLocaleLowerCase())&&a.push(e)})),a}))}updateWatchlist(t,e){sa(e,this.watchlist)?(this.watchlist=Object.assign({},this.watchlist),delete this.watchlist[e.lineId],this.watchlist=Object.assign({},this.watchlist)):this.watchlist=Object.assign(Object.assign({},this.watchlist),{[e.lineId]:e})}save(t){return(0,c.mG)(this,void 0,void 0,(function*(){const e=[];for(const t in this.watchlist)if(this.transitLineViewData.favoriteTransitLines&&!(t in this.transitLineViewData.favoriteTransitLines)){const i=(0,u.kq)(t,this.watchlist[t].longName,0,"","",[]);e.push(i)}for(const t in this.transitLineViewData.favoriteTransitLines)if(!(t in this.watchlist)){const i=(0,u.JH)("MyTransit",t);e.push(i)}yield Promise.all(e).then((e=>{this.getFavoriteLines(t)})),this.inputControl&&(this.inputControl.value=""),this.onClick&&this.onClick()}))}cancel(){return(0,c.mG)(this,void 0,void 0,(function*(){this.watchlist={},this.inputControl&&(this.inputControl.value=""),this.onClick&&this.onClick()}))}getSuggestedLines(t,e){t&&(null==t?void 0:t.length)>e?this.suggestedLines=t.slice(0,e):this.suggestedLines=t}getFavoriteLines(t){t.preventDefault(),this.$emit("get-favorite-lines")}}(0,c.gn)([R.LO],la.prototype,"transitData",void 0),(0,c.gn)([R.LO],la.prototype,"transitLineViewData",void 0),(0,c.gn)([R.LO],la.prototype,"slideContents",void 0),(0,c.gn)([(0,$.Lj)({attribute:"size"})],la.prototype,"size",void 0),(0,c.gn)([(0,$.Lj)({attribute:"item-total-number"})],la.prototype,"itemTotalNumber",void 0),(0,c.gn)([(0,$.Lj)({attribute:"clickthrough-target"})],la.prototype,"clickthroughTarget",void 0),(0,c.gn)([R.LO],la.prototype,"watchlist",void 0),(0,c.gn)([R.LO],la.prototype,"showSuggestionTemplate",void 0),(0,c.gn)([R.LO],la.prototype,"suggestedLines",void 0);const da=at.d`
    ${(0,nt.g)(((t,e)=>sa(t,e.parent.watchlist)),at.d`
        <button class="circle-icon-setting circle-complete-icon" 
            tabindex="-1"
            data-t="${(t,e)=>{var i,a;return null===(a=null===(i=e.parent.transitData)||void 0===i?void 0:i.transitTelemetryTag)||void 0===a?void 0:a.deleteLinesIconClick}}"
            @click=${(t,e)=>e.parent.updateWatchlist(e.event,t)}
        >
            ${'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_560_86927)">\n<path d="M8 0C12.4182 0 16 3.58172 16 8C16 12.4182 12.4182 16 8 16C3.58172 16 0 12.4182 0 8C0 3.58172 3.58172 0 8 0ZM10.5758 5.57574L7 9.15144L5.42426 7.57576C5.18995 7.34144 4.81005 7.34144 4.57574 7.57576C4.34142 7.81008 4.34142 8.18992 4.57574 8.42424L6.57576 10.4242C6.81008 10.6586 7.18992 10.6586 7.42424 10.4242L11.4242 6.42424C11.6586 6.18995 11.6586 5.81005 11.4242 5.57574C11.1899 5.34142 10.8101 5.34142 10.5758 5.57574Z" fill="black" fill-opacity="0.25"/>\n</g>\n<defs>\n<clipPath id="clip0_560_86927">\n<rect width="16" height="16" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n'}
        </button>
    `)}
    ${(0,nt.g)(((t,e)=>!sa(t,e.parent.watchlist)),at.d`
        <button class="circle-icon-setting circle-add-icon"
            data-t="${(t,e)=>{var i,a;return null===(a=null===(i=e.parent.transitData)||void 0===i?void 0:i.transitTelemetryTag)||void 0===a?void 0:a.addLinesIconClick}}"
            @click=${(t,e)=>e.parent.updateWatchlist(e.event,t)}
        >
            ${'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8 0C3.58172 0 0 3.58172 0 8C0 12.4183 3.58172 16 8 16C12.4183 16 16 12.4183 16 8C16 3.58172 12.4183 0 8 0ZM4.5 7.5C4.22386 7.5 4 7.72386 4 8C4 8.2761 4.22386 8.5 4.5 8.5H7.5V11.5C7.5 11.7761 7.72386 12 8 12C8.2761 12 8.5 11.7761 8.5 11.5V8.5H11.5C11.7761 8.5 12 8.2761 12 8C12 7.72386 11.7761 7.5 11.5 7.5H8.5V4.5C8.5 4.22386 8.2761 4 8 4C7.72386 4 7.5 4.22386 7.5 4.5V7.5H4.5Z" fill="#005FB8"/>\n</svg>\n'}
        </button>
    `)}
    </div>
`,ca=at.d`
    <li class=${(t,e)=>e.parent.showSuggestionTemplate?"line-container line-container-suggestions":"line-container"}
        title=${t=>t.longName}>
        <span class="line-text">
            ${t=>t.longName}
        </span>
        <span>
            ${da}
        </span>
    </li>   
`,ua=at.d`
    <div class="transit-line-background">
        <div class="info-text">
            ${t=>{var e;return null===(e=t.transitLineViewData)||void 0===e?void 0:e.customTransitLinesText}}
        </div>
        <div class="transit-routes-image">
        </div>
    </div>
`;var ha=i.p+"TrafficCardRoute.33185f349dab6f7672cb2f32926c5eb9.svg";const ga=N.i`
    .transit-line-background{
        
        background: linear-gradient(278.12deg, rgba(148, 193, 227, 0.2) -1.2%, rgba(119, 160, 171, 0.06) 124.74%);
    }
    .info-text{
        color: #FFFFFF;
    }
    .search-box-settings {
        background: rgba(255, 255, 255, 0.0605);
        border: 1px solid #5E5E5E;
        color: #FFFFFF;
    }
    .nearby-line-text {
        color:rgba(255, 255, 255, 0.54);
    }
    .line-title {
        color: rgba(255, 255, 255, 0.54);
    }
    .line-container{
        background: rgba(255, 255, 255, 0.06);
    }
    .line-text {
        color: #FFFFFF; 
    }
    .circle-add-icon path {
        fill: #99EBFF;
    }
    .circle-add-icon:hover path {
        fill: #99EBFFCC;
    }
    .circle-add-icon:pressed path {
        fill: #99EBFF4D;
    }
    .circle-complete-icon:hover path {
        fill: #99EBFFCC;
    }
    .circle-complete-icon:pressed path {
        fill: #0000004D;
    }
    .save-button {
        background: #60CDFF;
        color: #000000;
    }
    .save-button:hover {
        background: rgba(96, 205, 255, 0.9);
    }    
    .save-button:active {
        background: rgba(96, 205, 255, 0.8);
        color: rgba(0, 0, 0, 0.5);
    }
    .cancel-button {
        background: rgba(255, 255, 255, 0.0605);
        color: #FFFFFF;
        border-color: rgba(255, 255, 255, 0.093) rgba(255, 255, 255, 0.0698) rgba(255, 255, 255, 0.0698);
    }
    .cancel-button:hover {
        background: rgba(255, 255, 255, 0.05);
    }
    .cancel-button:active {
        background: rgba(255, 255, 255, 0.0326);
        color: rgba(255, 255, 255, 0.786);
    }
`,pa=N.i`
    .transit-line-background{
        background: linear-gradient(278.12deg, rgba(148, 193, 227, 0.4) -1.2%, rgba(225, 255, 232, 0.2) 124.74%);
    }
    .info-text{
        color: #1A1A1A;
    }
    .search-box-settings {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid rgba(0, 0, 0, 0.3);
    }
    .nearby-line-text {
        color: rgba(26, 26, 26, 0.7);
    }
    .line-title {
        color: rgba(26, 26, 26, 0.7);
    }
    .line-container{
        background-color: white;
    }
    .line-text {
        color: #1A1A1A;
    }
    .circle-add-icon path {
        fill: #005FB8;
    }
    .circle-add-icon:hover path {
        fill: #005FB8CC;
    }
    .circle-add-icon:pressed path {
        fill: #005FB8CC;
    }
    .circle-complete-icon:hover path {
        fill: #005FB8CC;
    }
    .circle-complete-icon:pressed path {
        fill: #005FB8CC;
    }
    .save-button {
        background: #005FB8;
        color: #FFFFFF;
        box-sizing: border-box;
    }
    .save-button:hover {
        background: #075CAD;
    }    
    .save-button:active {
        background: #0E5AA1;
    }
    .cancel-button {
        background: rgba(255, 255, 255, 0.7);
        color: rgba(0, 0, 0, 0.8956);
        border-color: rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.06) rgba(0, 0, 0, 0.16);
    }
    .cancel-button:hover {
        background:rgba(255, 255, 255, 0.5);
    }
    .cancel-button:active {
        background:rgba(255, 255, 255, 0.3);
    }
`,fa=la.compose({baseName:"transit-lines-page",template:(t,e)=>at.d`
    <div class="content-container">
        ${(0,nt.g)((t=>!t.showSuggestionTemplate),ua)}
        <div class=${t=>t.showSuggestionTemplate?"search-container search-container-for-suggestions":"search-container"}>
            <span>
                ${'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2C17.5 2 22 6.5 22 12Z" fill="#036AC4" fill-opacity="0.1"/>\n<g clip-path="url(#clip0_996_47667)">\n<path d="M16 9.00012C16.0008 8.8244 15.9553 8.65157 15.868 8.49904C15.7807 8.3465 15.6548 8.21966 15.5029 8.13128C15.3511 8.0429 15.1786 7.99611 15.0028 7.99561C14.8271 7.99511 14.6544 8.04093 14.502 8.12845C14.3496 8.21597 14.223 8.3421 14.1348 8.49413C14.0467 8.64617 14.0002 8.81874 14 8.99447C13.9998 9.17019 14.0459 9.34287 14.1337 9.49511C14.2215 9.64734 14.3478 9.77376 14.5 9.86162V14.0001C14.5 14.2653 14.3946 14.5197 14.2071 14.7072C14.0196 14.8948 13.7652 15.0001 13.5 15.0001C13.2348 15.0001 12.9804 14.8948 12.7929 14.7072C12.6054 14.5197 12.5 14.2653 12.5 14.0001V10.0001C12.5 9.46969 12.2893 8.96098 11.9142 8.58591C11.5391 8.21084 11.0304 8.00012 10.5 8.00012C9.96957 8.00012 9.46086 8.21084 9.08579 8.58591C8.71071 8.96098 8.5 9.46969 8.5 10.0001V14.1386C8.30936 14.2487 8.16036 14.4186 8.07612 14.622C7.99188 14.8253 7.9771 15.0508 8.03407 15.2635C8.09105 15.4761 8.21659 15.664 8.39124 15.798C8.56588 15.932 8.77987 16.0047 9 16.0047C9.22013 16.0047 9.43412 15.932 9.60876 15.798C9.78341 15.664 9.90895 15.4761 9.96593 15.2635C10.0229 15.0508 10.0081 14.8253 9.92388 14.622C9.83964 14.4186 9.69064 14.2487 9.5 14.1386V10.0001C9.5 9.73491 9.60536 9.48055 9.79289 9.29302C9.98043 9.10548 10.2348 9.00012 10.5 9.00012C10.7652 9.00012 11.0196 9.10548 11.2071 9.29302C11.3946 9.48055 11.5 9.73491 11.5 10.0001V14.0001C11.5 14.5306 11.7107 15.0393 12.0858 15.4143C12.4609 15.7894 12.9696 16.0001 13.5 16.0001C14.0304 16.0001 14.5391 15.7894 14.9142 15.4143C15.2893 15.0393 15.5 14.5306 15.5 14.0001V9.86162C15.6516 9.77447 15.7775 9.649 15.8653 9.49779C15.9531 9.34658 15.9995 9.17495 16 9.00012Z" fill="#0481E0"/>\n</g>\n<defs>\n<clipPath id="clip0_996_47667">\n<rect width="8" height="8" fill="white" transform="translate(8 8)"/>\n</clipPath>\n</defs>\n</svg>\n'}
            </span>
            <span>
                <input 
                    class="search-box-settings"
                    type="text" 
                    placeholder="${t=>{var e;return null===(e=t.transitLineViewData)||void 0===e?void 0:e.enterLinesText}}" 
                    @input="${t=>t.handleInputForSuggestions()}"
                    ${(0,ot.i)("inputControl")}
                    data-t="${t=>{var e,i;return null===(i=null===(e=t.transitData)||void 0===e?void 0:e.transitTelemetryTag)||void 0===i?void 0:i.addLinesBoxClick}}">
                </input>
            </span>
        </div>

        ${(0,nt.g)((t=>!t.showSuggestionTemplate),at.d`
            <div class="nearby-line-text"
                data-t="${t=>{var e,i;return null===(i=null===(e=t.transitData)||void 0===e?void 0:e.transitTelemetryTag)||void 0===i?void 0:i.addLinesIndexPageView}}">
                ${t=>{var e;return null===(e=t.transitLineViewData)||void 0===e?void 0:e.nearbyLinesText}}
            </div>
            <li class="transit-lines">
                <ol>
                    ${(0,rt.rx)((t=>t.slideContents),ca)}
                </ol>
            </li>`)}
        ${(0,nt.g)((t=>t.showSuggestionTemplate),at.d`
            <li class="transit-lines"
                data-t="${t=>{var e,i;return null===(i=null===(e=t.transitData)||void 0===e?void 0:e.transitTelemetryTag)||void 0===i?void 0:i.addLinesSearchPageView}}">
                <ol>
                    ${(0,rt.rx)((t=>t.suggestedLines),ca)}
                </ol>
            </li>`)}
        <div class= "button-position">
            <button class="button-settings save-button" 
                @click=${(t,e)=>t.save(e.event)}
                data-t="${t=>{var e,i;return null===(i=null===(e=t.transitData)||void 0===e?void 0:e.transitTelemetryTag)||void 0===i?void 0:i.confirmButtonClick}}">
                ${t=>{var e;return null===(e=t.transitLineViewData)||void 0===e?void 0:e.saveLinesText}}
            </button>
            <button class="button-settings cancel-button"
                @click=${t=>t.cancel()}
                data-t="${t=>{var e,i;return null===(i=null===(e=t.transitData)||void 0===e?void 0:e.transitTelemetryTag)||void 0===i?void 0:i.cancelButtonClick}}">
                ${t=>{var e;return null===(e=t.transitLineViewData)||void 0===e?void 0:e.cancelCustomizedLines}}
            </button>
        </div>
    </div>
`,styles:(t,e)=>N.i` 
        .content-container
        {   
            margin-top: 48px;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            align-self: stretch;
            font-family: 'Yu Gothic'; 
        }
        .transit-line-background{
            display: flex;
            flex-direction: row;
            align-items: center;

            margin-bottom: 8px;
            height: 72px;
            width: 268px;
            border-radius: 6px;
        }
        .info-text {
            height: 39px;
            width: 177px;
            font-style: normal;
            font-weight: 400;
            font-size: 14px;
            line-height: 22px;
            padding-inline-start: 6px;
        }
        .transit-routes-image{
            content: url(${ha});
            padding-inline-end: 8px;
        }
        .search-container{
            display: flex;
            margin-left: 4px;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            align-self: stretch;
        }
        :host([size="tall"]) .search-container{
            margin-top:8px;
        }
        .search-container-for-suggestions {
            margin-bottom: 12px;
        }
        .search-box-settings{
            box-sizing: border-box;
            width:236px;
            height:32px;
            border-radius: 4px;
            
            font-style: normal;
            font-weight: 400;
            font-size: 14px;
            line-height: 21px;
            margin-inline-start: 5px;
            padding-left: 10px;
            font-family: "Yu Gothic";
        }
        
        .nearby-line-text{
            font-style: normal;
            font-weight: 400;
            font-size: 10px;
            margin-inline-start: -209px;
        }
        :host([size="full"]) .nearby-line-text{
            margin-top: 5px;
            margin-bottom:3px;
        }
        :host([size="tall"]) .nearby-line-text{
            margin-top: 16px;
            margin-bottom:8px;
        }
        .line-container {
            width: 268px;
            margin-bottom: 2px;
            display: flex;
            flex-flow: row;
            justify-content: space-between;
            align-items: center;
            align-self: stretch;
            border-radius: 4px;
        }
        :host([size="full"]) .line-container {
            height: 32px;
        }
        :host([size="full"]) .line-container-suggestions {
            height: 42px;
        }
        :host([size="tall"]) .line-container {
            height: 42px;
        }
        
        .line-text {
            align-items: flex-start;
            font-style: normal;
            font-weight: 500;
            font-size: 14px;
            line-height: 20px;
            padding-inline-start: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .circle-icon-setting {
            display: flex;
            border: none;
            cursor: pointer;
            background: transparent;
            padding-inline-end: 11px;
        }
        .circle-complete-icon path {
            fill: black;
            fill-opacity: 0.25;
        }
        .button-position {
            position: fixed;
            bottom: 14px;
        }
        .button-settings {
            width: 128px;
            height: 32px;
            font-weight: 400;
            font-size: 14px;
            border-radius: 3px;
            text-align: center;
            border: 1px solid;
            cursor: pointer;
            font-family: "Yu Gothic";
        }
        .save-button {
            margin-right:9px;
            border-color: rgba(255, 255, 255, 0.08) rgba(255, 255, 255, 0.08) rgba(0, 0, 0, 0.2);
        }
        .transit-lines
        {
            list-style:none;
        } 
        .transit-lines > ol {
            margin: 0;
            padding: 0;
        }
        :host([size="full"]) .transit-lines > ol {
            flex-flow: column nowrap;
        }
    `.withBehaviors(new X(pa,ga),(0,V.vF)(N.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))});var ma=i(51671),va=i(77162),ya=i(40340),ba=i.n(ya),xa=i(851),Ca=i.n(xa),wa=i(26785),Ta=i.n(wa),ka=i(55096),Da=i.n(ka),Ia=i(9610),Sa=i(75351),Aa=i(58958),La=i(10209),Oa=i(51125),Ma=i(89589);class Fa extends Ia.l{constructor(){super(),this.resetCarouselSignal=0,this.myRoutesCarouselIndex=0,this.isActionMenuOpen=!1,this.isGA=!1,this.hasPaginated=!1,this.transitData={},this.sizeChangeButtons={},this.hasCommuteInMyRoutes=!1,this.isUserMsaAuthenticated=!1,this.onDoneLoadingPromise=new Promise((t=>{this.onDoneLoadingResolve=t})),this.propertiesHandler=t=>{"colorMode"===t&&this.widgetProperties&&(this.widgetBackgroundMode=this.widgetProperties.getProperty(t),this.initGradientAttributes())},this.visibilityHandler=t=>{"visible"===t?this.setRefreshTimer():"notvisible"===t&&this.clearRefreshTimer()},this.sizeChangeHandler=t=>(0,c.mG)(this,void 0,void 0,(function*(){let e;if(this.widgetSize&&"onSizeChangeEnd"===t)e=this.widgetSize.getSize();else{if("CardResized"!==t.type)return;e=t&&t.detail.size;if("TrafficDelays"!=(t&&t.detail.cardType))return}this.size=e;const i=this.size;i&&(this.trafficCardFeedData=Object.assign(Object.assign({},this.trafficCardFeedData),{cardSize:u.TO[i]||this.trafficCardFeedData.cardSize})),yield this.refreshMapUrl(),this.config.isDynamicFeed||this.size&&!this.sizeChangeButtons[this.size]&&(this.sizeChangeButtons[this.size]=(0,k.TU)("traffic",this.size),Mt.M0.sendActionEvent(this.sizeChangeButtons[this.size],Ft.Aw.Click,Ft.wu.Customize))})),this.settingsHandler=t=>{"onShowSettingsEnd"===t?(this.closeActionMenu(),this.cardData&&"transitAlert"===this.cardData.scenario?window.open(this.makeClickthroughUrl(this.cardData.activeLocation,!1,!1,"transitAlert",void 0,void 0,void 0,!1)):(this.shouldCardOverflow=this.config.isDynamicFeed&&"small"==this.size,this.shouldCardOverflow&&this.parentElement&&(0,D.f3)(this.parentElement,this.sizeChangeHandler,"TrafficDelays"),this.handleEditTrafficCardClick(),this.config.isDynamicFeed||(this.settingButton||(this.settingButton=(0,k.eH)("traffic")),Mt.M0.sendActionEvent(this.settingButton,Ft.Aw.Click,Ft.wu.Customize)))):"onHideSettingsEnd"===t&&this.cancelTrafficSettings(!1)},this.lifecycleHandler=t=>(0,c.mG)(this,void 0,void 0,(function*(){"contentrefresh"===t?this.refreshTrafficView():"removing"===t&&(this.clearRefreshTimer(),this.removeButton||(this.removeButton=(0,k.D7)("traffic")),Mt.M0.sendActionEvent(this.removeButton,Ft.Aw.Click,Ft.wu.Remove))})),this.interactionsHandler=t=>{"titleInteracted"===t?(!this.titleLink&&this.widgetProperties&&(this.titleLink=(0,k.gd)("traffic",this.widgetProperties.activationUrl,this.widgetProperties.title)),this.titleLink&&Mt.M0.sendActionEvent(this.titleLink,Ft.Aw.Click,Ft.wu.Navigate)):"settingsInteracted"===t&&(this.seeMoreButton||(this.seeMoreButton=(0,k.vh)("traffic")),Mt.M0.sendActionEvent(this.seeMoreButton,Ft.Aw.Click,Ft.wu.More))},this.onOutsideClick=t=>{var e;const i=t.composedPath()&&t.composedPath()[0];t.target instanceof Fa||(null===(e=this.actionsMenuButtonElement)||void 0===e?void 0:e.contains(i))||this.toggleActionMenu(!1,null)},this.onKeydown=t=>{"Escape"===t.code&&this.toggleActionMenu(!1,null)},this.closeActionMenu=()=>{this.config.isDynamicFeed&&this.sdCardActionClickHandler&&this.dismissActionMenu&&this.dismissActionMenu()},this.refreshMyRoutesItem=()=>{this.myRoutesItem&&(this.myRoutesItem=[...this.myRoutesItem])},(0,F.z)().withShadowRootMode("closed").withElementDisambiguation((()=>b.h.ignoreDuplicate)).register((0,Dt.hb)(),(0,It.i0)(),(0,St.EK)(),(0,At.oM)(),(0,Lt.d$)()),b.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>b.h.ignoreDuplicate)).withPrefix("msft").register(Ui(),Wi(),Ki(),ia(),Fi(),ra(),fi(),hi(),ft(),(0,h.ok)(),(0,g.M9)(),(0,p.mL)(),(0,f.gn)(),(0,m.xb)(),(0,v.g)(),fa()),this.trafficCardFeedData={id:"",grid_area:"",card_template_type:""}}getExperienceType(){return l.x.trafficCardWC}experienceConnected(){var t;return(0,c.mG)(this,void 0,void 0,(function*(){try{let e;this.isGA&&this.config.enableEyeSdCardMask&&(null===(t=this.config.childExperienceReferences)||void 0===t?void 0:t.sdCardMaskWC)&&!this.config.isWidget&&!this.config.isDynamicFeed&&(yield(0,La.Fg)(this.config.childExperienceReferences.sdCardMaskWC)),this.incidentsClient=this.incidentsClient||new u.iA,this.directionUrl=this.config.customRoutesCalculateBaseUrl,this.routesDirectionClient=new u.Oh({directionsBaseUrl:this.directionUrl},window.fetch.bind(window)),this.disableCardAction=this.config&&(this.config.disableHalfHeightCardAction&&this.trafficCardFeedData&&"_1x_1y"===this.trafficCardFeedData.cardSize||this.config.isWidget||this.config.disableCardAction),this.config.isDynamicFeed&&(document.addEventListener("CardResized",this.sizeChangeHandler),this.isPinned=this.supportedSdCardActionMenuItems&&this.supportedSdCardActionMenuItems.includes(D.B$.Unpin),e=this.isPinned?"pinned":"feed"),this.config.enableLoadOnConnect&&(yield this.initialLoadFromFeedData()),(this.config.isWidget||this.config.isDynamicFeed)&&(this.widgetDimensions=this.loadWidgetInstance(),this.setRefreshTimer()),this.widgetInstance?this.isUserMsaAuthenticated="consumers"===(yield(0,I.FK)(this.widgetInstance)):(0,ma.rr)().then((()=>{this.isUserMsaAuthenticated=(0,va.B0)()})),this.addZoneToTelemetry(),this.telemetryContext=((t,e,i,a,o)=>{const n=new qt.D({name:u.i8.TrafficSettingsCard,ext:t,zone:o}),r=a&&a.contract?Object.assign(Object.assign({},t),a.contract.ext):t,s=n.addOrUpdateChild({name:u.i8.DetectLocation,action:Ft.Aw.Click,behavior:Ft.wu.Customize,content:{headline:i.locationDetect,type:Ft.uH.StructuredData,vertical:u.i8.TrafficVertical},ext:r,zone:o}),l=n.addOrUpdateChild({name:u.i8.SpecifyLocation,action:Ft.Aw.Click,behavior:Ft.wu.Customize,content:{headline:i.locationSpecify,type:Ft.uH.StructuredData,vertical:u.i8.TrafficVertical},ext:r,zone:o}),d=n.addOrUpdateChild({name:u.i8.Save,action:Ft.Aw.Click,behavior:Ft.wu.Save,content:{headline:i.saveText,type:Ft.uH.StructuredData,vertical:u.i8.TrafficVertical},ext:Object.assign(Object.assign({},r),{SavedLocation:"{0}"}),zone:o}),c=n.addOrUpdateChild({name:u.i8.Cancel,action:Ft.Aw.Click,behavior:Ft.wu.Cancel,content:{headline:i.cancelText,type:Ft.uH.StructuredData,vertical:u.i8.TrafficVertical},ext:r,zone:o}),h=n.addOrUpdateChild({name:u.i8.AutoSuggestLocation,type:Ft.c9.DropDown,content:{headline:i.locationSpecify,type:Ft.uH.StructuredData,vertical:u.i8.AutoSuggestLocation},ext:r,zone:o}),g=new qt.D({name:u.P_.TrafficCard,content:{type:Ft.uH.StructuredData},ext:t,zone:o}),p=g.addOrUpdateChild({name:u.P_.TrafficMap,action:Ft.Aw.Click,behavior:Ft.wu.Navigate,content:{headline:u.P_.TrafficMap,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),f=[g.addOrUpdateChild({name:u.P_.Incidents[0],action:Ft.Aw.Hover,behavior:Ft.wu.Show,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),g.addOrUpdateChild({name:u.P_.Incidents[1],action:Ft.Aw.Hover,behavior:Ft.wu.Show,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o})],m=g.addOrUpdateChild({name:u.P_.Commute,action:Ft.Aw.Click,behavior:Ft.wu.Navigate,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),v=g.addOrUpdateChild({name:u.P_.Header,action:Ft.Aw.Click,behavior:Ft.wu.Navigate,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),y=g.addOrUpdateChild({name:u.P_.Customization,behavior:Ft.wu.More,type:Ft.c9.ActionButton,content:{headline:u.P_.Customization,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),b=g.addOrUpdateChild({name:u.P_.MenuEdit,behavior:Ft.wu.Customize,type:Ft.c9.ActionButton,content:{headline:i.editCardText,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),x=g.addOrUpdateChild({name:u.P_.MenuMore,behavior:Ft.wu.Navigate,type:Ft.c9.ActionButton,content:{headline:i.moreSettingsText,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),C=g.addOrUpdateChild({name:u.P_.MenuHide,behavior:Ft.wu.ContextMenu,type:Ft.c9.ActionButton,content:{headline:i.menuHideCard,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),w=g.addOrUpdateChild({name:u.P_.EditHome,behavior:Ft.wu.Navigate,type:Ft.c9.ActionButton,content:{headline:i.editHome,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),T=g.addOrUpdateChild({name:u.P_.EditWork,behavior:Ft.wu.Navigate,type:Ft.c9.ActionButton,content:{headline:i.editWork,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),k=g.addOrUpdateChild({name:u.P_.AddHome,behavior:Ft.wu.Navigate,type:Ft.c9.ActionButton,content:{headline:i.addHome,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),D=g.addOrUpdateChild({name:u.P_.AddWork,behavior:Ft.wu.Navigate,type:Ft.c9.ActionButton,content:{headline:i.addWork,type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),I=g.addOrUpdateChild({name:u.P_.SummaryCategory,action:Ft.Aw.Click,behavior:Ft.wu.Navigate,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),S=g.addOrUpdateChild({name:u.P_.CarouselPreviousFlipper,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),A=g.addOrUpdateChild({name:u.P_.CarouselNextFlipper,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),L=g.addOrUpdateChild({name:u.P_.SeeMore,action:Ft.Aw.Click,behavior:Ft.wu.Navigate,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),O=g.addOrUpdateChild({name:u.P_.IncidentDescription,action:Ft.Aw.Click,behavior:Ft.wu.Navigate,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),M=g.addOrUpdateChild({name:u.P_.ReverseRoute,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),F=g.addOrUpdateChild({name:u.P_.AlertPage,action:Ft.Aw.View,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),H=g.addOrUpdateChild({name:u.P_.AddLocationsButton,action:Ft.Aw.View,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),z=g.addOrUpdateChild({name:u.P_.AddLinesButton,action:Ft.Aw.View,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),B=g.addOrUpdateChild({name:u.P_.AlertItem,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),$=g.addOrUpdateChild({name:u.P_.AddLocationsButton,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),R=g.addOrUpdateChild({name:u.P_.AddLinesButton,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),U=g.addOrUpdateChild({name:u.P_.AddLocationsButton,action:Ft.Aw.Hover,behavior:Ft.wu.Show,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),P=g.addOrUpdateChild({name:u.P_.AddLinesButton,action:Ft.Aw.Hover,behavior:Ft.wu.Show,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),j=g.addOrUpdateChild({name:u.P_.AddLinesIndexPage,action:Ft.Aw.View,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),E=g.addOrUpdateChild({name:u.P_.AddLinesBox,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),G=g.addOrUpdateChild({name:u.P_.AddLinesIcon,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),V=g.addOrUpdateChild({name:u.P_.DeleteLinesIcon,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),N=g.addOrUpdateChild({name:u.P_.ConfirmButton,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),W=g.addOrUpdateChild({name:u.P_.CancelButton,action:Ft.Aw.Click,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o}),q=g.addOrUpdateChild({name:u.P_.AddLinesSearchPage,action:Ft.Aw.View,behavior:Ft.wu.Seek,content:{type:Ft.uH.StructuredData,vertical:u.P_.TrafficVertical},ext:r,zone:o});return{componentRoot:e,trafficSettings:n,detectLocation:s,specifyLocation:l,autoSuggestLocationTelemetryTag:h,saveButton:d,cancelButton:c,trafficMap:p,trafficCard:g,incidents:f,trafficHeader:v,actionButton:y,menuEdit:b,menuHide:C,menuMore:x,editWork:T,editHome:w,addWork:D,addHome:k,commute:m,summaryCategory:I,previousFlipper:S,nextFlipper:A,seeMore:L,incidentDescription:O,reverseRoute:M,alertPageView:F,addLocationsButtonView:H,addLinesButtonView:z,alertItemClick:B,addLocationsButtonClick:$,addLinesButtonClick:R,addLocationsButtonHover:U,addLinesButtonHover:P,addLinesIndexPageView:j,addLinesBoxClick:E,addLinesIconClick:G,deleteLinesIconClick:V,confirmButtonClick:N,cancelButtonClick:W,addLinesSearchPageView:q}})(this.widgetDimensions,this.telemetryObject,this.strings,this.parentTelemetry,e)}catch(t){(0,Ct.OO)(t,Object.assign(Object.assign({},wt.q4q),{severity:Tt.z.Critical,pb:Object.assign(Object.assign({},wt.q4q.pb),{isPinned:this.isPinned})}),"Traffic: Exception to initialize TrafficCardWC")}}))}get weatherPdpClient(){return this._weatherPdpClient||(this._weatherPdpClient=new L.v),this._weatherPdpClient}get weatherAutoSuggestClient(){return this._weatherAutoSuggestClient||(this._weatherAutoSuggestClient=(0,A.getAutoSuggestClient)(this.config&&this.config.autoSuggestConfig)),this._weatherAutoSuggestClient}setRefreshTimer(t=this.config.refreshIntervalInMs){if(!this.refreshTimer||t!=this.config.refreshIntervalInMs){if(!t)return void(0,Ct.H)(wt.$AQ,"Traffic Card Refresh Interval Failure",`attempted to set a falsy interval: ${t}, default interval: ${this.config&&this.config.refreshIntervalInMs}`);this.refreshTimer&&clearInterval(this.refreshTimer),this.refreshTimer=setInterval((()=>this.refreshTrafficView(t)),t)}}clearRefreshTimer(){this.refreshTimer&&(clearInterval(this.refreshTimer),this.refreshTimer=null)}addZoneToTelemetry(){this.config.isDynamicFeed&&(this.telemetryObject.contract.zone=this.isPinned?"pinned":"feed")}setTmplTelemetry(){this.cardData&&this.cardData.badgeInfo&&this.cardData.badgeInfo.length>0?Mt.M0.addOrUpdateTmplProperty(Wt.TrafficBadge,this.cardData.badgeInfo.toString()):Mt.M0.removeTmplProperty(Wt.TrafficBadge),this.cardData&&this.cardData.previewInfo&&this.cardData.previewInfo.length>0?Mt.M0.addOrUpdateTmplProperty(Wt.TrafficTaskbar,this.cardData.previewInfo.toString()):Mt.M0.removeTmplProperty(Wt.TrafficBadge)}disconnectedCallback(){super.disconnectedCallback(),this.config&&this.config.isWidget&&this.unloadWidgetInstance(),this.updateTimeTextInterval&&(clearInterval(this.updateTimeTextInterval),this.updateTimeTextInterval=null),this.clearRefreshTimer()}loadWidgetInstance(){if(this.widgetInstanceId){const t=document.getElementById(this.widgetInstanceId);this.widgetInstance=t&&t.instance}if(this.config.isDynamicFeed)return null;let t=null;if(this.widgetInstance){if(this.widgetProperties=this.widgetInstance.tryGetApi("properties",I.l1,I.l1),this.widgetProperties){this.widgetProperties.attribution=this.strings.attribution;const t=new URL((0,mt.h_)(u.KS.landingPageUrl));t.searchParams.append("ocid",(0,vt.ku)()),this.widgetProperties.activationUrl=t.href,this.widgetBackgroundMode=this.widgetProperties.getProperty("colorMode")||"light",this.initGradientAttributes(),this.widgetProperties.addPropertyChangeListener(this.propertiesHandler)}this.widgetSize=this.widgetInstance.tryGetApi("sizes",I.l1,I.l1),this.widgetSize&&(this.size=this.widgetSize.getSize()||"small",this.trafficCardFeedData=Object.assign(Object.assign({},this.trafficCardFeedData),{cardSize:u.TO[this.size]}),t=(0,k.$x)(this.size),this.widgetSize.addEventListener(this.sizeChangeHandler)),this.widgetStatus=this.widgetInstance.tryGetApi("status",I.l1,I.l1),this.widgetSettings=this.widgetInstance.tryGetApi("settings",I.l1,I.l1),this.widgetSettings&&this.widgetSettings.addEventListener(this.settingsHandler),this.widgetVisibility=this.widgetInstance.tryGetApi("visibility",I.l1,I.l1),this.widgetVisibility&&this.widgetVisibility.addEventListener(this.visibilityHandler),this.widgetLifecycle=this.widgetInstance.tryGetApi("lifecycle",I.l1,I.l1),this.widgetLifecycle&&this.widgetLifecycle.addEventListener(this.lifecycleHandler),this.widgetInteractions=this.widgetInstance.tryGetApi("interactions",I.l1,I.l1),this.widgetInteractions&&this.widgetInteractions.addEventListener(this.interactionsHandler)}else(0,Ct.H)(wt.y_x,'Error loading widget instance "Traffic"');return t}initGradientAttributes(){const t=(0,W.in)("dark"===this.widgetBackgroundMode?"#2C2C2C":"#FFFFFF");this.widgetInstanceId&&this.parentElement&&t&&j.IfY.setValueFor(this.parentElement,Ot.w.from(t))}unloadWidgetInstance(){this.widgetSize&&this.widgetSize.removeEventListener(this.sizeChangeHandler),this.widgetSettings&&this.widgetSettings.removeEventListener(this.settingsHandler),this.widgetVisibility&&this.widgetVisibility.removeEventListener(this.visibilityHandler),this.widgetLifecycle&&this.widgetLifecycle.removeEventListener(this.lifecycleHandler),this.widgetInteractions&&this.widgetInteractions.removeEventListener(this.interactionsHandler)}initialLoadFromFeedData(){return(0,c.mG)(this,void 0,void 0,(function*(){if(this.config.isDynamicFeed&&this.trafficCardFeedData&&this.trafficCardFeedData.cardSize&&!this.size&&(this.size=(0,D.US)(this.trafficCardFeedData.cardSize)),this.trafficCardFeedData&&this.trafficCardFeedData.cardMetadata&&this.incidentsClient){const t=yield this.incidentsClient.parseIncidentsFromJson(this.trafficCardFeedData.cardMetadata,this.strings);t&&(yield this.consumeTrafficDataStoreResponse(t)),this.cardData||(0,Ct.H)(Object.assign(Object.assign({},wt.$AQ),{severity:Tt.z.NoAlert,pb:Object.assign(Object.assign({},wt.$AQ.pb),{isPinned:this.isPinned})}),"cardData is empty from initial trafficCardFeedData with dataStoreResponse",JSON.stringify(t))}}))}shadowDomPopulated(){return(0,c.mG)(this,void 0,void 0,(function*(){try{this.config.enableLoadOnConnect||(yield this.initialLoadFromFeedData()),this.markVisuallyReadyRaf(),(0,S.MD)(l.x.trafficCardWC),this.cardData&&(this.cardData.activeLocation||this.cardData.commuteData)?yield this.refreshMapUrl():yield this.refreshTrafficView(),this.cardData||"winWidgets"!==yt.jG.AppType||(0,Ct.H)(Object.assign(Object.assign({},wt.$AQ),{pb:Object.assign(Object.assign({},wt.$AQ.pb),{isPinned:this.isPinned})}),"cardData is empty after initialization",`${this.trafficCardFeedData&&this.trafficCardFeedData.cardMetadata}`),this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},this.cardData&&this.cardData.settingsData),{cardMode:"trafficView"})})}catch(t){(0,Ct.OO)(t,Object.assign(Object.assign({},wt.q4q),{severity:Tt.z.Critical,pb:Object.assign(Object.assign({},wt.q4q.pb),{isPinned:this.isPinned})}),"Exception to initialize TrafficCardWC")}this.onDoneLoadingResolve&&this.onDoneLoadingResolve()}))}makeClickthroughUrl(t,e,i,a,o,n,r,s){let l=null,d=t,c=u.KS.clickThroughMapZoom;const h=r||o&&o.collisionsAndConstructions&&o.collisionsAndConstructions[0];if("gas"===a&&o){const t=(0,u.vQ)(o,Et,this.strings,this.config.isDynamicFeed?Gt:void 0);if(t)return new URL(t)}if("incidents"===a&&h&&(h.location&&(d=h.location),c=u.KS.incidentClickThroughMapZoom),i){const t=new URL(`${u.KS.mapsVerticalUrl.replace("{0}",(0,yt.Yq)().CurrentMarket)}${location.search}`);d&&t.searchParams.append("cp",`${d.latitude}~${d.longitude}`),t.searchParams.append("lvl",c.toString()),l=t}else{let t=new URL((0,mt.h_)(u.KS.landingPageUrl));if(this.appendCommonParams(t),"transitAlert"===a&&(t=s?new URL(u.KS.transitLandingPageUrl):new URL(u.KS.transitMyPlacesUrl)),d&&t.searchParams.append("cp",`${d.latitude}${this.config.enableMapsVertical?"~":","}${d.longitude}`),t.searchParams.append("lvl",c.toString()),e&&t.searchParams.append("commute","1"),"incidents"===a&&h&&(t.searchParams.append("incidentid",`${h.id}`),t.searchParams.append("incidenttype",`${h.category}`),h.location&&t.searchParams.append("incidentloc",`${h.location.latitude}~${h.location.longitude}`)),"myRoutes"===a&&n&&t.searchParams.append("crid",n),"transitAlert"===a)return t;const i=(0,vt.ku)();this.widgetProperties&&i&&(t.searchParams.append("ocid",i),this.widgetProperties.activationUrl=t.href),l=t}return"winWidgets"===yt.jG.AppType||"windowsNewsPlus"===yt.jG.AppType?new URL((0,Sa.Z1)(l.href)):l}appendCommonParams(t){new URL(location.href).searchParams.forEach(((e,i)=>{"item"===i&&t.searchParams.append(i,e)}))}transformCameras(t,e){if(t)return t.map((t=>{const i=(0,u.K5)(t.congestion,(0,Aa.Y)()),a=this.makeClickthroughUrl(e,!1,!1);return a.searchParams.append("poiid",t.id),Object.assign(Object.assign({},t),{congestionColor:i[0],congestionText:this.transformTrafficCongestionToText(t.congestion),altDescription:this.strings.cameraAltText&&this.strings.cameraAltText.replace("{0}",t.name),clickthroughUrl:a.href})}))}transformTrafficIncidents(t,e){const i=t&&t.collisionsAndConstructions;if(i)return i.map((i=>{const a=this.makeClickthroughUrl(e,!1,!!this.config.enableMapsVertical,"incidents",t,void 0,i);return Object.assign(Object.assign({},i),{clickthroughUrl:a.href})}))}initializeMyRoutes(t){var e,i,a;if(this.myRoutesItem||(this.myRoutesItem=[]),t){let o;o=t.destinationAddressType===u.DL.Home?this.strings.workToHome:this.strings.homeToWork;const n=(null===(e=t.commuteDetails)||void 0===e?void 0:e.travelDurationMin)+" "+this.strings.min,r={route:o,delayColor:null===(i=t.commuteDetails)||void 0===i?void 0:i.delayColor,travelTime:n,congestionText:this.transformDelayColorToCongestionText(null===(a=t.commuteDetails)||void 0===a?void 0:a.delayColor),clickthroughUrl:this.makeClickthroughUrl(void 0,!0,!1,"myRoutes").toString(),itemTelemetryTag:this.telemetryObject&&this.telemetryObject.getMetadataTag()};this.myRoutesItem[0]=r}if(this.myRoutesDefinition)for(let t=0;t<this.myRoutesDefinition.length;t++){const e=this.myRoutesDefinition[t],i=this.updateCustomRoute(e);this.myRoutesItem.push(i)}this.myRoutesCarouselIndex=0,this.sizeClass[1]===u.g2.Half?this.pageSize=1:this.pageSize=4}transformCustomRoutes(){if(this.myRoutesItem||(this.myRoutesItem=[]),void 0!==this.pageSize&&void 0!==this.myRoutesCarouselIndex){let t=this.myRoutesCarouselIndex*this.pageSize,e=t+this.pageSize;if(this.hasCommuteInMyRoutes&&0==this.myRoutesCarouselIndex&&(t+=1,e=4),this.myRoutesDefinition&&this.routesDirectionClient)for(let i=t;i<this.myRoutesItem.length&&i<e;i++){const t=this.hasCommuteInMyRoutes?i-1:i,e=this.myRoutesDefinition[t];this.ensureCalculated(e,this.routesDirectionClient,t)}}}updateCustomRoute(t,e){const i=(0,u.H0)(t,this.strings.cityToCityTemplate),a=e&&e.travelDurationMin?e.travelDurationMin+" "+this.strings.min:"-- "+this.strings.min;let o=this.strings.noTraffic;e&&(o=this.transformDelayColorToCongestionText(e.delayColor));return{route:i,delayColor:e&&e.delayColor?e.delayColor:"delay-green",travelTime:a,congestionText:o,clickthroughUrl:this.makeClickthroughUrl(void 0,!1,!1,"myRoutes",void 0,t.id).toString(),itemTelemetryTag:this.telemetryObject&&this.telemetryObject.getMetadataTag()}}ensureCalculated(t,e,i){this.routeCalculationPromises&&this.routeCalculationPromises[i]||this.routeCalculationPromises&&(this.routeCalculationPromises[i]=this.getCalculatedRoute(t,e).then((e=>{if(this.routeCalculation){this.routeCalculation[i]=e;const a=this.updateCustomRoute(t,e);if(this.myRoutesItem){const t=this.hasCommuteInMyRoutes?i+1:i;this.myRoutesItem[t]=a,this.refreshMyRoutesItem()}}})))}getCalculatedRoute(t,e){return(0,c.mG)(this,void 0,void 0,(function*(){return yield(0,u.xy)(t,e)}))}getUpdateTimeText(t){const e=this.strings.updateTimeTemplate,i=(0,yt.Yq)().CurrentMarket;return(0,y.fh)(t,i,e,1)}readAllTransitLines(t){var e;return(0,c.mG)(this,void 0,void 0,(function*(){const i=new Map;if(!t.allTransitLines||0===t.allTransitLines.length){const e=new u.Ht(window.fetch.bind(window));t.allTransitLines=yield e.getTransitLines()}return null===(e=t.allTransitLines)||void 0===e||e.forEach((t=>{i.set(t.longName,t)})),i}))}readFavoriteLines(t){return(0,c.mG)(this,void 0,void 0,(function*(){const e=new u.Ht(window.fetch.bind(window)),i=yield e.fetchFavoriteTransitLines("MyTransit"),a={};return null==i||i.forEach((e=>{e&&e.longName&&t.has(e.longName)&&(a[e.lineId]=t.get(e.longName)||{})})),a}))}initializeTransitLine(){var t,e,i;return(0,c.mG)(this,void 0,void 0,(function*(){let a={};try{const o=yield this.readAllTransitLines(a);a.favoriteTransitLines=yield this.readFavoriteLines(o),(null===(t=Object.keys(a.favoriteTransitLines))||void 0===t?void 0:t.length)&&(null===(e=Object.keys(a.favoriteTransitLines))||void 0===e?void 0:e.length)>10&&(this.transitData.transitHaveLine=!0),a.transitLineItems=[],null===(i=this.transitData.transitAlertItems)||void 0===i||i.forEach((t=>{var e,i;const n=t.name,r=t.direction?t.name+"・"+t.direction:t.name,s=(null===(e=o.get(r))||void 0===e?void 0:e.lineId)||"";(s||r)&&(null===(i=a.transitLineItems)||void 0===i||i.push({lineId:s,shortName:n,longName:r}))}))}catch(t){(0,Ct.OO)(t,wt.om$,"failed to get transit line data.")}return a=Object.assign(Object.assign({},a),{cancelCustomizedLines:this.strings.cancelCustomizedLines,customTransitLinesText:this.strings.customTransitLinesText,enterLinesText:this.strings.enterLinesText,nearbyLinesText:this.strings.nearbyLinesText,saveLinesText:this.strings.saveLinesText}),a}))}initializeTransit(t,e,i){var a,o,n,r,s,l,d,c,u,h,g,p,f,m,v;this.transitData.transitAlertItems=[],t.transitLines&&t.transitLines.length&&t.transitLines.forEach((t=>{var i,a,o,n,r;const s={name:t.name,direction:t.direction?t.direction:"",serviceAlerts:t.serviceAlerts&&t.serviceAlerts.length?[{Severity:null===(i=t.serviceAlerts)||void 0===i?void 0:i[0].Severity,Type:null===(a=t.serviceAlerts)||void 0===a?void 0:a[0].Type,description:null===(o=t.serviceAlerts)||void 0===o?void 0:o[0].description,startTime:null===(n=t.serviceAlerts)||void 0===n?void 0:n[0].startTime}]:void 0,transitLandingPageLink:this.makeClickthroughUrl(e,!1,!1,"transitAlert",void 0,void 0,void 0,!0).toString()};null===(r=this.transitData.transitAlertItems)||void 0===r||r.push(s)})),this.transitData.transitAddLocation=this.makeClickthroughUrl(e,!1,!1,"transitAlert",void 0,void 0,void 0,!1).toString(),this.makeClickthroughUrl(e,!1,!1,"transitAlert",void 0,void 0,void 0,!0),t.home&&t.work&&(this.transitData.transitHaveLocation=!0),this.transitData=Object.assign(Object.assign({},this.transitData),{addLocationText:this.strings.addLocationText,addLinesText:this.strings.addLinesText,verifyInfoText:this.strings.verifyInfoText,transitAlertType:this.strings.transitAlertType,addLocationTooltipText:this.strings.addLocationTooltipText,addLinesTooltipText:this.strings.addLinesTooltipText}),this.transitData.transitTelemetryTag={alertPageView:null===(a=this.telemetryContext)||void 0===a?void 0:a.alertPageView.getMetadataTag(),addLocationsButtonView:null===(o=this.telemetryContext)||void 0===o?void 0:o.addLocationsButtonView.getMetadataTag(),addLinesButtonView:null===(n=this.telemetryContext)||void 0===n?void 0:n.addLinesButtonView.getMetadataTag(),alertItemClick:null===(r=this.telemetryContext)||void 0===r?void 0:r.alertItemClick.getMetadataTag(),addLocationsButtonClick:null===(s=this.telemetryContext)||void 0===s?void 0:s.addLocationsButtonClick.getMetadataTag(),addLinesButtonClick:null===(l=this.telemetryContext)||void 0===l?void 0:l.addLinesButtonClick.getMetadataTag(),addLocationsButtonHover:null===(d=this.telemetryContext)||void 0===d?void 0:d.addLocationsButtonHover.getMetadataTag(),addLinesButtonHover:null===(c=this.telemetryContext)||void 0===c?void 0:c.addLinesButtonHover.getMetadataTag(),addLinesIndexPageView:null===(u=this.telemetryContext)||void 0===u?void 0:u.addLinesIndexPageView.getMetadataTag(),addLinesBoxClick:null===(h=this.telemetryContext)||void 0===h?void 0:h.addLinesBoxClick.getMetadataTag(),addLinesIconClick:null===(g=this.telemetryContext)||void 0===g?void 0:g.addLinesIconClick.getMetadataTag(),deleteLinesIconClick:null===(p=this.telemetryContext)||void 0===p?void 0:p.deleteLinesIconClick.getMetadataTag(),confirmButtonClick:null===(f=this.telemetryContext)||void 0===f?void 0:f.confirmButtonClick.getMetadataTag(),cancelButtonClick:null===(m=this.telemetryContext)||void 0===m?void 0:m.cancelButtonClick.getMetadataTag(),addLinesSearchPageView:null===(v=this.telemetryContext)||void 0===v?void 0:v.addLinesSearchPageView.getMetadataTag()}}getFavoriteLines(t){return(0,c.mG)(this,void 0,void 0,(function*(){if(t instanceof CustomEvent&&this.cardData&&this.cardData.transitLineViewData)try{const t=this.cardData.transitLineViewData||{},e=yield this.readAllTransitLines(t);t.favoriteTransitLines=yield this.readFavoriteLines(e),this.cardData=Object.assign(Object.assign({},this.cardData),{transitLineViewData:t})}catch(t){(0,Ct.OO)(t,wt.om$,"TrafficCard failed to get favorite transit line data.")}}))}consumeTrafficDataStoreResponse(t){var e;return(0,c.mG)(this,void 0,void 0,(function*(){let i,a,o,n,r,s,l,d,c,h="traffic",g=this.config.defaultCenterLocation,p=this.strings.trafficPermanentlyUnavailable,f=!1,m={};try{if(t&&(t.isSupportedArea&&(p=this.strings.trafficTemporaryError),t.location&&(g=t.location),i=this.transform(t),a=this.transformAreaDelay(t),o=(0,u.xo)(this.strings,a,t.locationDetectionMode,this.config.isWidget||this.config.isDynamicFeed),d=this.transformTrafficIncidents(t,g),s=this.transformCameras(t.cameras,g),l=null!==(e=t.initialTrafficInfoType)&&void 0!==e?e:u.GU.Unknown),!this.config.isWidget)switch(l){case u.GU.Commute:t.commuteData&&(h="commute");break;case u.GU.TransitAlert:t.transitLines&&t.transitLines.length&&(h="transitAlert");break;case u.GU.Camera:s&&s.length>0&&(this.incidentsClient&&(yield this.incidentsClient.cacheIndividualCamera(s[0],this.strings)),h="cameras");break;case u.GU.CollisionAndConstruction:d&&(h="incidents");break;case u.GU.GasPrice:t.gasStation&&(h="gas");break;case u.GU.MyRoutes:(t.commuteData||t.customRoutes)&&this.config.enableMyRoutes&&(t.commuteData&&(this.hasCommuteInMyRoutes=!0),h="myRoutes");break;case u.GU.AreaSummary:t.areaTrafficDelay&&(h="areaSummary")}t?(n=this.makeClickthroughUrl(g,!!t.commuteData,!!this.config.enableMapsVertical,h,t),r=(0,u.jC)(this.strings,t.trafficStatusList,this.config.enableNewsForSummaryCard,this.telemetryContext&&this.telemetryContext.summaryCategory,n.href),l===u.GU.Summary&&r&&this.canShowSummaryCard(r)&&(h="summary")):n=this.makeClickthroughUrl(g,!1,!!this.config.enableMapsVertical),"traffic"===h&&void 0===i&&void 0===a&&(h="error"),"transitAlert"===h&&(this.initializeTransit(t,g,n),m=yield this.initializeTransitLine()),"summary"===h?(f=!0,this.config.isDynamicFeed&&this.sizeClass[1]===u.g2.Half&&(f=!1)):this.config.enableSeeMore&&(f=!0),t&&(t.customRoutes||t.commuteData)&&"myRoutes"===h&&(this.routeCalculation=[],this.routeCalculationPromises=[],t.customRoutes&&t.customRoutes.length>0&&(this.myRoutesDefinition=t.customRoutes.map((t=>t.routeDefinition)),this.myRoutesItem=[]),this.initializeMyRoutes(t.commuteData),this.transformCustomRoutes()),"myRoutes"===h?(this.lastUpdatedTimeForTimestamp=new Date,c=this.getUpdateTimeText(this.lastUpdatedTimeForTimestamp)):"incidents"===h&&d?(this.lastUpdatedTimeForTimestamp=d[0].updateTime,c=this.getUpdateTimeText(d[0].updateTime)):c="",this.startUpdateTimeText(c)}catch(e){(0,Ct.OO)(e,Object.assign(Object.assign({},wt.$AQ),{severity:Tt.z.Critical}),"Could not process response from Oneservice datastore api call",JSON.stringify(t))}const v=Object.assign(Object.assign({},this.cardData),{scenario:h,trafficDataItems:i,areaTrafficData:a,activeLocation:g,clickthroughUrl:n&&n.href,trafficSummaryItems:this.config.isDynamicFeed&&r&&r.length>3&&this.sizeClass[1]===u.g2.Half?r.slice(0,3):r,commuteData:t&&t.commuteData,summaryHeading:o,zoomLevel:t&&t.zoomLevel,home:t&&t.home,work:t&&t.work,settingsData:Object.assign(Object.assign({},this.cardData&&this.cardData.settingsData),{locationMode:t&&1===t.locationDetectionMode?"AutoDetect":"Specify"}),impressions:t&&t.impressions,cameras:s,errorText:p,enableSeeMore:f,gasStation:t&&t.gasStation,trafficIncidents:d,updateTimeText:c,myRoutesItem:this.myRoutesItem,transitLineViewData:m,previewInfo:t&&t.previewInfo,badgeInfo:t&&t.badgeInfo});this.telemetryContext&&(((t,e,i,a,o,n,r)=>{if(!t)return;const s=Qt(e,i,a,o,n,r),l=t=>t.updateContract(Object.assign(Object.assign({},t.contract),{ext:s}));l(t.trafficCard),l(t.trafficMap),l(t.incidents[0]),l(t.incidents[1]),l(t.incidentDescription),l(t.seeMore),l(t.summaryCategory),l(t.trafficHeader),l(t.menuMore)})(this.telemetryContext,v,t,this.parentTelemetry,this.widgetDimensions,this.sizeClass[0],this.config),this.telemetryContext=Object.assign({},this.telemetryContext),v.trafficSummaryItems=v.trafficSummaryItems&&v.trafficSummaryItems.map((t=>Object.assign(Object.assign({},t),{itemTelemetryTag:this.telemetryContext&&this.telemetryContext.summaryCategory&&this.telemetryContext.summaryCategory.getMetadataTag()})))),this.cardData=v,this.setTmplTelemetry(),this.lastDataConsumeTime=new Date}))}canShowSummaryCard(t){if(!this.config.fallbackToAreaSummary)return!0;const e=this.sizeClass[1];return!!("half"===e&&t&&t.length>0)||(!!(this.config.fallbackToVerticalSummary&&"full"===e&&t&&t.length>0)||!!(t&&t.length>2))}refreshTrafficView(t){return(0,c.mG)(this,void 0,void 0,(function*(){if(!this.isRefreshing){if("winWidgets"!==yt.jG.AppType||this.cardData||(0,Ct.H)(Object.assign(Object.assign({},wt.$AQ),{severity:Tt.z.NoAlert,pb:Object.assign(Object.assign({},wt.$AQ.pb),{isPinned:this.isPinned})}),"cardData is empty before refresh for dynamic feed",JSON.stringify(this.trafficCardFeedData)),t&&this.lastDataConsumeTime){if((new Date).getTime()-this.lastDataConsumeTime.getTime()<t)return}this.isRefreshing=!0;try{let t=null,e={};if(this.widgetInstance){const i=Promise.all([(0,I.ZC)(this.widgetInstance),(0,I.ss)(this.widgetInstance,!1)]);[t,e]=yield i,t=`m-${t}`}const i=this.incidentsClient&&(yield this.incidentsClient.getIncidentsResponse(t,this.strings,e,"winWidgets"!==yt.jG.AppType||S.gL.get(S.Iq.IsDashboardVisible)));i&&(yield this.consumeTrafficDataStoreResponse(i)),this.cardData||(0,Ct.H)(Object.assign(Object.assign({},wt.$AQ),{severity:Tt.z.NoAlert,pb:Object.assign(Object.assign({},wt.$AQ.pb),{isPinned:this.isPinned})}),"cardData is empty from refresh traffic view with dataStoreResponse",JSON.stringify(i)),yield this.refreshMapUrl(),this.resetCarouselSignal=this.resetCarouselSignal+1}catch(t){(0,Ct.OO)(t,wt.$AQ,"failed to refresh traffic view")}this.isRefreshing=!1}}))}refreshMapUrl(){return(0,c.mG)(this,void 0,void 0,(function*(){this.trafficCardFeedData&&this.trafficCardFeedData.cardSize||(this.trafficCardFeedData=Object.assign(Object.assign({},this.trafficCardFeedData),{cardSize:"_1x_2y"}));const t="_1x_2y"===this.trafficCardFeedData.cardSize,e=this.cardData&&this.cardData.activeLocation;let i;"_1x_3y"===this.trafficCardFeedData.cardSize?i=zt:this.config.isWidget&&!this.config.isDynamicFeed&&(i=t?Pt:Bt),this.config.isDynamicFeed&&"tall"===this.sizeClass[1]&&(i=Rt);let a=this.config.useSuggestedZoomFromBackend?this.cardData&&this.cardData.zoomLevel:null;if(this.config.useAdaptiveZoomforSummaryCard&&this.cardData&&"summary"===this.cardData.scenario){const e=this.cardData.trafficSummaryItems&&this.cardData.trafficSummaryItems.filter((t=>u.W6.includes(t.categoryType))).reduce(((t,e)=>t+e.categoryItemCount),0);e&&e<10&&(a=(0,u.aB)(t,!1)-1)}const o={height:i};if(this.cardData&&"cameras"===this.cardData.scenario&&this.config.dynamicFeedCameraCardDesign){const e=(0,u.aB)(t,!1)+1;let i=u.KS.cameraCardMapLayersV2;(0,yt.Yq)().CurrentMarket===bt.I.JAJP&&(i=u.KS.cameraCardMapLayersV2Jp),this.cardData=Object.assign(Object.assign({},this.cardData),{cameras:this.cardData.cameras&&this.cardData.cameras.map((a=>{const n=this.sizeClass[1]&&Vt.get(this.sizeClass[1]);if(!n||!this.config.mapImageUrlTemplate)return a;const r=(0,u._d)(a.location,n,e);return Object.assign(Object.assign({},a),{mapUrl:r&&(0,u.Qe)(r,!1,t,this.config.mapImageUrlTemplate,!1,o,e,!1,!1,i),darkMapUrl:r&&(0,u.Qe)(r,!0,t,this.config.mapImageUrlTemplate,!1,o,e,!1,!1,i)})}))})}else if(this.cardData&&("commute"===this.cardData.scenario&&this.cardData.commuteData||"myRoutes"===this.cardData.scenario)){let t,e;this.cardData.commuteData?(t=this.cardData.commuteData.start,e=this.cardData.commuteData.end):(t=(0,u.lX)(this.myRoutesDefinition&&this.myRoutesDefinition[0]&&this.myRoutesDefinition[0].stops&&this.myRoutesDefinition[0].stops[0].displayCoordinates),e=(0,u.lX)(this.myRoutesDefinition&&this.myRoutesDefinition[0]&&this.myRoutesDefinition[0].stops&&this.myRoutesDefinition[0].stops[1].displayCoordinates));const i=this.cardData.commuteData&&this.cardData.commuteData.commuteDetails&&this.cardData.commuteData.commuteDetails.boundingBoxLatLon||void 0;t&&e&&this.config.commuteImageUrlTemplate&&(this.routeImageGenerator=a=>(0,u.im)(Object.assign({urlTemplate:this.config.commuteImageUrlTemplate,start:t,end:e,xSizeInPx:(0,u.My)(),ySizeInPx:(0,u.jS)(this.sizeClass[1]),boundingBoxLatLon:i},a)))}else if(this.showVerticalSummary){this.mapUrl="https://assets.msn.com/staticsb/statics/latest/traffic/summaryCard/mapFillLightFull.png",this.darkMapUrl="https://assets.msn.com/staticsb/statics/latest/traffic/summaryCard/mapFillLightFull.png";const i={height:_t(this.cardData&&this.cardData.trafficSummaryItems,this.sizeClass[1])};e&&this.config.mapImageUrlTemplate&&(this.thumbnailMapUrl=(0,u.Qe)(e,!1,t,this.config.mapImageUrlTemplate,!0,i,a),this.darkThumbnailMapUrl=(0,u.Qe)(e,!0,t,this.config.mapImageUrlTemplate,!0,i,a))}else if(e&&e.latitude&&e.longitude&&this.config.mapImageUrlTemplate){this.cardData&&"summary"===this.cardData.scenario&&this.config.isDynamicFeed&&this.sizeClass[1]!==u.g2.Half&&(o.height=Nt[this.sizeClass[1]]);let i=(0,u.Qe)(e,!1,t,this.config.mapImageUrlTemplate,!0,o,a),n=(0,u.Qe)(e,!0,t,this.config.mapImageUrlTemplate,!0,o,a);this.config.preloadMapImage&&("dark"===Y(this)&&n?n=yield this.cacheEncode(n):i&&(i=yield this.cacheEncode(i))),this.mapUrl=i,this.darkMapUrl=n}else this.config.defaultCenterLocation&&this.config.mapImageUrlTemplate&&(this.mapUrl=(0,u.Qe)(this.config.defaultCenterLocation,!1,t,this.config.mapImageUrlTemplate,!0,o,a),this.darkMapUrl=(0,u.Qe)(this.config.defaultCenterLocation,!0,t,this.config.mapImageUrlTemplate,!0,o,a))}))}startUpdateTimeText(t){this.updateTimeTextInterval&&(clearInterval(this.updateTimeTextInterval),this.updateTimeTextInterval=null),t&&(this.updateTimeTextInterval=setInterval((()=>this.refreshUpdateTimeText()),1e3))}refreshUpdateTimeText(){if(this.cardData&&("incidents"===this.cardData.scenario&&this.cardData.trafficIncidents||"myRoutes"===this.cardData.scenario)){const t=this.getUpdateTimeText(this.lastUpdatedTimeForTimestamp);t!==this.cardData.updateTimeText&&(this.cardData=Object.assign(Object.assign({},this.cardData),{updateTimeText:t}))}else this.cardData&&(this.cardData.updateTimeText="")}cacheEncode(t){return(0,c.mG)(this,void 0,void 0,(function*(){let e=null;try{e=yield u.m2.makeImageRequest("GET",t)}catch(e){return(0,Ct.OO)(e,wt.chk,"Map image preload failed",`Exception: ${(0,kt.n)(e)}. Url: ${t}`),t}return"data:image/png;base64,"+u.m2.getbase64FromApiResponse(e.response)}))}saveTrafficSettings(){var t;return(0,c.mG)(this,void 0,void 0,(function*(){const e=[];let i,a={};if(this.widgetInstance){const t=Promise.all([(0,I.ZC)(this.widgetInstance),(0,I.ss)(this.widgetInstance,!1)]);[i,a]=yield t}if(this.cardData&&this.cardData.settingsData){e.push(this.weatherPdpClient.updateUserSettings(null,"AutoDetect"===this.cardData.settingsData.locationMode?"1":"2",a,i?`m-${i}`:null));const t=this.cardData.settingsData.geocodedSelectedLocation;if("Specify"===this.cardData.settingsData.locationMode&&t){const o=t.then((t=>(0,c.mG)(this,void 0,void 0,(function*(){t&&this.weatherPdpClient.setHomeLocation(t,a,i?`m-${i}`:void 0)}))));e.push(o)}}yield Promise.all(e),this.trafficCardFeedData.refreshFeed?(yield(0,Oa.T1)(),this.trafficCardFeedData.refreshFeed()):yield this.refreshTrafficView(),this.widgetSettings&&this.widgetSettings.hideSettings(),this.shouldCardOverflow&&this.parentElement&&(0,D.gK)(this.parentElement,this.sizeChangeHandler,"TrafficDelays",this.shouldCardOverflow),this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},null===(t=this.cardData)||void 0===t?void 0:t.settingsData),{cardMode:"trafficView",changeSignal:void 0})})}))}cancelTrafficSettings(t=!0){var e;this.widgetSettings&&t&&this.widgetSettings.hideSettings(),this.shouldCardOverflow&&this.parentElement&&(0,D.gK)(this.parentElement,this.sizeChangeHandler,"TrafficDelays",this.shouldCardOverflow),this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},null===(e=this.cardData)||void 0===e?void 0:e.settingsData),{cardMode:"trafficView",changeSignal:void 0})})}selectLocationMode(t){var e;const i=t.detail;let a;"AutoDetect"===i?a=2:this.cardData&&this.cardData.settingsData&&this.cardData.settingsData.selectedLocation&&(a=4),t.currentTarget.locationMode=i,t.currentTarget.changeSignal=a,this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},null===(e=this.cardData)||void 0===e?void 0:e.settingsData),{locationMode:i,cardMode:"settings",changeSignal:a})})}handleTelemetry(t,e,i){Mt.M0.sendActionEvent(t.target,e,i)}logImgLoadError(t){let e;this.trafficCardFeedData&&(e="dark"===t.detail?this.darkMapUrl:this.mapUrl),"bingHomepage"!==yt.jG.AppType&&(0,Ct.OO)(t.target,wt.chk,"failed to load img",`event detail: ${t.detail}, url: ${e}`)}triggerLocationSuggest(t){var e;return(0,c.mG)(this,void 0,void 0,(function*(){let i,a;const o=t.detail.trim();if(o){a=yield this.weatherAutoSuggestClient.getAutoSuggestResponse(o);const t=this.sizeClass;"full"===t[1]&&a&&a.length>3?a=a.slice(0,3):"half"===t[1]&&a&&a.length>1&&(a=a.slice(0,1)),i=null!=a&&a.length>0?a.map((t=>t.displayName||O.getAutoSuggestionName(t))):[this.strings.noLocationFound]}this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},null===(e=this.cardData)||void 0===e?void 0:e.settingsData),{suggestedLocations:i,locationMode:"Specify",lastFetchedLocations:a,cardMode:"settings"})})}))}selectLocation(t){var e,i,a,o;if(!(null===(i=null===(e=this.cardData)||void 0===e?void 0:e.settingsData)||void 0===i?void 0:i.lastFetchedLocations)||0===(null===(a=this.cardData)||void 0===a?void 0:a.settingsData.lastFetchedLocations.length))return void t.preventDefault();const n=t.detail;t.currentTarget.changeSignal=4;const r=this.cardData.settingsData.lastFetchedLocations[n];this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},null===(o=this.cardData)||void 0===o?void 0:o.settingsData),{locationMode:"Specify",selectedLocation:n,suggestedLocations:void 0,cardMode:"settings",changeSignal:4,lastFetchedLocations:this.cardData.settingsData.lastFetchedLocations,geocodedSelectedLocation:r&&this.weatherAutoSuggestClient.geocodeSuggestion(r)})})}getSelectedLocation(){var t,e,i,a,o,n,r;const s=null===(e=null===(t=this.cardData)||void 0===t?void 0:t.settingsData)||void 0===e?void 0:e.selectedLocation,l=null===(a=null===(i=this.cardData)||void 0===i?void 0:i.settingsData)||void 0===a?void 0:a.lastFetchedLocations;return void 0===s||void 0===l||s>=l.length?"AutoDetect"===(null===(n=null===(o=this.cardData)||void 0===o?void 0:o.settingsData)||void 0===n?void 0:n.locationMode)?null===(r=this.cardData.activeLocation)||void 0===r?void 0:r.locality:"{0}":l[s].locality+", "+l[s].region}get menuItems(){const t=[],e=this.cardData&&this.cardData.commuteData;e||t.push({id:"edit",glyph:this.config.enableFluentUIIcons?Ca():x.Z,title:this.strings.editCardText,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){this.handleEditTrafficCardClick()})),telemetryTag:this.telemetryContext&&this.telemetryContext.menuEdit&&this.telemetryContext.menuEdit.getMetadataTag()});const i=new URL((0,mt.h_)(u.KS.personalizationUrl)),a=(0,vt.ku)();if(a&&i.searchParams.append("ocid",a),this.appendCommonParams(i),this.config.includeCommuteOptions&&this.isUserMsaAuthenticated){const a=this.cardData&&this.cardData.home;e||a&&a.latitude&&a.longitude?t.push({id:"editHome",title:this.strings.editHome,glyph:this.config.enableFluentUIIcons?Ca():x.Z,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){return this.editCommuteLocation(i.href,!0)})),telemetryTag:this.telemetryContext&&this.telemetryContext.editHome&&this.telemetryContext.editHome.getMetadataTag()}):t.push({id:"addHome",title:this.strings.addHome,glyph:this.config.enableFluentUIIcons?ba():C.Z,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){return this.editCommuteLocation(i.href,!0)})),telemetryTag:this.telemetryContext&&this.telemetryContext.addHome&&this.telemetryContext.addHome.getMetadataTag()});const o=this.cardData&&this.cardData.work;e||o&&o.latitude&&o.longitude?t.push({id:"editWork",title:this.strings.editWork,glyph:this.config.enableFluentUIIcons?Ca():x.Z,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){return this.editCommuteLocation(i.href,!1)})),telemetryTag:this.telemetryContext&&this.telemetryContext.editWork&&this.telemetryContext.editWork.getMetadataTag()}):t.push({id:"addWork",title:this.strings.addWork,glyph:this.config.enableFluentUIIcons?ba():C.Z,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){return this.editCommuteLocation(i.href,!1)})),telemetryTag:this.telemetryContext&&this.telemetryContext.addWork&&this.telemetryContext.addWork.getMetadataTag()})}return this.trafficCardFeedData&&(this.trafficCardFeedData.refreshSDCardSection||this.trafficCardFeedData.hideCardCallback)&&!this.config.disableHideCardButton&&t.push({id:"hide",glyph:this.config.enableFluentUIIcons?Ta():w.Z,title:this.strings.menuHideCard,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){this.hideTrafficCard()})),telemetryTag:this.telemetryContext&&this.telemetryContext.menuHide&&this.telemetryContext.menuHide.getMetadataTag()}),t.push({id:"more",glyph:this.config.enableFluentUIIcons?Da():T.Z,title:this.strings.moreSettingsText,onClick:()=>(0,c.mG)(this,void 0,void 0,(function*(){this.openMoreSettings()})),telemetryTag:this.telemetryContext&&this.telemetryContext.menuMore&&this.telemetryContext.menuMore.getMetadataTag()}),t}openMoreSettings(){this.trafficCardFeedData.goToPersonalizeSettingsCallback&&this.trafficCardFeedData.goToPersonalizeSettingsCallback()}editCommuteLocation(t,e){if(this.config.locationBtnsUseDesktopFeedFn)this.openMoreSettings();else{const i=new URL(t);i.searchParams.append(e?"edithomelocation":"editworklocation","true"),window.open(i.href,"_blank")}}hideTrafficCard(){return(0,c.mG)(this,void 0,void 0,(function*(){const t=yield(0,u.DK)();return t&&(this.trafficCardFeedData.hideCardCallback?this.trafficCardFeedData.hideCardCallback():this.trafficCardFeedData.refreshSDCardSection&&this.trafficCardFeedData.refreshSDCardSection()),t}))}handleEditTrafficCardClick(){var t,e,i,a;this.toggleActionMenu(!1,null),this.config.enableCommuteSettings&&!this.commuteAutosuggestClient&&(this.commuteAutosuggestClient=(0,Ma.b)(this.config&&this.config.commuteAutoSuggestConfig)),this.cardData=Object.assign(Object.assign({},this.cardData),{settingsData:Object.assign(Object.assign({},null===(t=this.cardData)||void 0===t?void 0:t.settingsData),{cardMode:"settings",locationMode:null!==(a=null===(i=null===(e=this.cardData)||void 0===e?void 0:e.settingsData)||void 0===i?void 0:i.locationMode)&&void 0!==a?a:"AutoDetect"})})}transform(t){var e;if(t&&t.roads&&t.roads.length)return t.roads.map((t=>{const e=(0,u.K5)(t.isIncident?u.Yd.Moderate:t.congestion,(0,Aa.Y)());return{incident:t.locality?`${t.name}, ${t.locality}`:t.name,incidentIconFill:e[0],delayColor:e[1],delay:this.transformDelayToText(t),location:{latitude:t.location&&t.location.latitude&&t.location.latitude.toString(),longitude:t.location&&t.location.longitude&&t.location.longitude.toString()},congestion:t.congestion,isIncident:t.isIncident}})).slice(0,"_1x_1y"===(null===(e=this.trafficCardFeedData)||void 0===e?void 0:e.cardSize)?1:2)}transformAreaDelay(t){if(!t||!t.areaTrafficDelay)return;const e=t.areaTrafficDelay,i=(0,u.K5)(e.congestion,(0,Aa.Y)());let a;return a=t.roads&&t.roads.length&&t.roads[0].locality?t.roads[0].locality:t.location&&t.location.locality,{areaCongestion:e.congestion,delayColor:i[1],city:a,congestionText:this.transformTrafficCongestionToText(e.congestion,e.supported)}}transformDelayToText(t){return t.isIncident?t.description:this.transformTrafficCongestionToText(t.congestion)}transformTrafficCongestionToText(t,e){switch(t){case u.Yd.Heavy:return this.strings.heavyTraffic;case u.Yd.Moderate:return this.strings.moderateTraffic;case u.Yd.Light:return this.strings.lightTraffic;case u.Yd.None:return e||void 0===e?this.strings.fasterThanUsual:"";default:return""}}transformDelayColorToCongestionText(t){switch(t){case"delay-red":return this.strings.heavyTraffic;case"delay-orange":return this.strings.moderateTraffic;case"delay-green":return this.strings.lightTraffic;default:return this.strings.noTraffic}}toggleActionMenu(t,e){"winWidgets"===yt.jG.AppType&&this.sdCardActionClickHandler?this.toggleTrafficCardActions(e):(this.isActionMenuOpen=t,t?(this.actionsMenuButtonElement=e&&e.currentTarget,document.addEventListener("click",this.onOutsideClick),document.addEventListener("keydown",this.onKeydown)):(this.actionsMenuButtonElement=void 0,document.removeEventListener("click",this.onOutsideClick),document.removeEventListener("keydown",this.onKeydown)))}toggleTrafficCardActions(t){if(t){const{ext:e}=this.parentTelemetry&&this.parentTelemetry.contract||{},i=u.i8.TrafficVertical,a={menuItems:(0,D.aS)(this.supportedSdCardActionMenuItems,this.strings.attribution,e,i,this.size,this.settingsHandler),referrerButton:t.currentTarget,requestContext:new xt.fH,cardSize:this.size};this.sdCardActionClickHandler(a,"TrafficDelays")}}get sizeClass(){return this.trafficCardFeedData&&"_1x_1y"===this.trafficCardFeedData.cardSize?this.config.isWidget?this.cardData&&this.cardData.settingsData&&"settings"===this.cardData.settingsData.cardMode?["_1x_2y_prong2",u.g2.Full]:["_1x_1y_prong2",u.g2.Half]:["_1x_1y",u.g2.Half]:this.trafficCardFeedData&&"_1x_2y"===this.trafficCardFeedData.cardSize?[this.config.isWidget?"_1x_2y_prong2":"_1x_2y",u.g2.Full]:this.config.isDynamicFeed?"_1x_1y"==this.trafficCardFeedData.cardSize?["_1x_1y",u.g2.Half]:"_1x_2y"==this.trafficCardFeedData.cardSize?["_1x_2y",u.g2.Full]:["_1x_3y_dynamicfeed",u.g2.Tall]:["_1x_3y",u.g2.Tall]}get trafficSummaryItems(){if(this.cardData&&this.cardData.trafficSummaryItems)return"half"===this.sizeClass[1]?this.cardData.trafficSummaryItems.slice(0,4):this.cardData.trafficSummaryItems}get showVerticalSummary(){return!!(this.config.fallbackToVerticalSummary&&this.cardData&&"summary"===this.cardData.scenario&&this.cardData.trafficSummaryItems)&&(!this.config.isDynamicFeed||(this.config.enableTallMaplessSummaryCard?"half"!==this.sizeClass[1]:"full"===this.sizeClass[1]))}get showTrafficIconDynamicFeed(){return!!this.config.isDynamicFeed&&(!this.isInSettingsMode||"half"!==this.sizeClass[1])}get sdCardData(){if(this.isInSettingsMode&&"half"===this.sizeClass[1]||this.isInSettingsMode&&!this.config.isDynamicFeed||"windowsNewsPlus"===yt.jG.AppType)return{link:void 0,titleContent:""};{let t;return this.cardData&&"gas"===this.cardData.scenario?t=this.config.isDynamicFeed?this.strings.gasPricesWidgetHeading:this.strings.gasPricesHeading:this.cardData&&"cameras"===this.cardData.scenario?t=this.config.isDynamicFeed?this.strings.dynamicFeedCameraCardTitle||this.strings.dynamicFeedTitle:this.strings.cameraHeading:this.cardData&&"commute"===this.cardData.scenario&&this.cardData&&this.cardData.commuteData?this.config.enableCommuteV2?t=this.config.isDynamicFeed?this.strings.dynamicFeedTitle:this.strings.commuteTitle:this.config.isDynamicFeed?(t=this.cardData.commuteData.destinationAddressType===u.DL.Home?this.strings.trafficToHome:this.strings.trafficToWork,t||(t=this.strings.dynamicFeedTitle)):t=this.cardData.commuteData.destinationAddressType===u.DL.Home?this.strings.toHome:this.strings.toWork:t=this.cardData&&"myRoutes"===this.cardData.scenario?this.strings.myRoutesTitle:this.cardData&&"transitAlert"===this.cardData.scenario?this.strings.transitTitle:this.cardData&&"summary"===this.cardData.scenario&&this.cardData.summaryHeading?this.cardData.summaryHeading:this.cardData&&"incidents"===this.cardData.scenario?this.config.isDynamicFeed?this.strings.dynamicFeedIncidentCardTitle:this.config.enableIncidentsCarousel&&this.cardData.trafficIncidents&&this.cardData.trafficIncidents.length>1?this.strings.incidentsHeading:this.strings.incidentHeading:this.config.isDynamicFeed?this.strings.dynamicFeedTitle:this.strings.title,{link:this.cardData&&this.cardData.clickthroughUrl,titleContent:t}}}get isInSettingsMode(){var t,e;return"settings"===(null===(e=null===(t=this.cardData)||void 0===t?void 0:t.settingsData)||void 0===e?void 0:e.cardMode)}get showMultipleIncidents(){return!(!this.cardData||!this.cardData.trafficIncidents)&&(!!this.config.enableIncidentsCarousel&&!(this.config.isWidget||this.config.isDynamicFeed)&&this.cardData.trafficIncidents.length>1)}get seeMoreText(){if(this.cardData){if("gas"===this.cardData.scenario)return this.strings.seeStation;if("incidents"===this.cardData.scenario&&this.cardData.trafficIncidents)return this.showMultipleIncidents?this.strings.seeOnMap:this.strings.seeMore;if("commute"===this.cardData.scenario){if(this.config.enableCommuteV2)return this.strings.seeOnMap;if(this.config.isDynamicFeed)return this.strings.seeMoreDetails}}return this.strings.seeMore}loadCameras(t){return(0,c.mG)(this,void 0,void 0,(function*(){if(this.cardData&&this.cardData.cameras&&"cameras"==this.cardData.scenario)for(let e=t;this.cardData.cameras&&e<this.cardData.cameras.length;e++){if(e<0)return;this.incidentsClient&&(yield this.incidentsClient.cacheIndividualCamera(this.cardData.cameras[e],this.strings)),this.cardData=Object.assign(Object.assign({},this.cardData),{cameras:[...this.cardData.cameras]})}}))}onPaginate(t){t instanceof CustomEvent&&(this.hasPaginated=!0,this.myRoutesDefinition?(this.myRoutesCarouselIndex=t.detail,this.transformCustomRoutes()):this.loadCameras(t.detail),this.cardData&&this.cardData.trafficIncidents&&"incidents"==this.cardData.scenario&&(this.cardData=Object.assign(Object.assign({},this.cardData),{clickthroughUrl:this.cardData.trafficIncidents[t.detail].clickthroughUrl})))}reverseCommuteDirection(t){return(0,c.mG)(this,void 0,void 0,(function*(){if(t instanceof CustomEvent)if(this.routesDirectionClient&&this.cardData&&this.cardData.commuteData){const t=yield(0,u.pG)(this.routesDirectionClient,this.cardData.commuteData,this.strings);t&&(this.cardData=Object.assign(Object.assign({},this.cardData),{commuteData:t}),yield this.refreshMapUrl())}else(0,Ct.H)(wt.Nol,"unable to start directions service request for reverse commute data")}))}}(0,c.gn)([R.LO],Fa.prototype,"telemetryContext",void 0),(0,c.gn)([$.Lj],Fa.prototype,"resetCarouselSignal",void 0),(0,c.gn)([$.Lj],Fa.prototype,"myRoutesCarouselIndex",void 0),(0,c.gn)([R.LO],Fa.prototype,"isActionMenuOpen",void 0),(0,c.gn)([R.LO],Fa.prototype,"isGA",void 0),(0,c.gn)([R.LO],Fa.prototype,"trafficCardFeedData",void 0),(0,c.gn)([R.LO],Fa.prototype,"cardData",void 0),(0,c.gn)([R.LO],Fa.prototype,"disableCardAction",void 0),(0,c.gn)([R.LO],Fa.prototype,"mapUrl",void 0),(0,c.gn)([R.LO],Fa.prototype,"darkMapUrl",void 0),(0,c.gn)([R.LO],Fa.prototype,"thumbnailMapUrl",void 0),(0,c.gn)([R.LO],Fa.prototype,"darkThumbnailMapUrl",void 0),(0,c.gn)([R.LO],Fa.prototype,"carouselComponent",void 0),(0,c.gn)([R.LO],Fa.prototype,"myRoutesItem",void 0),(0,c.gn)([R.LO],Fa.prototype,"hasPaginated",void 0),(0,c.gn)([R.LO],Fa.prototype,"transitData",void 0),(0,c.gn)([R.LO],Fa.prototype,"routeImageGenerator",void 0),(0,c.gn)([R.LO],Fa.prototype,"size",void 0),(0,c.gn)([R.lk],Fa.prototype,"menuItems",null),(0,c.gn)([R.lk],Fa.prototype,"sizeClass",null),(0,c.gn)([R.lk],Fa.prototype,"trafficSummaryItems",null),(0,c.gn)([R.lk],Fa.prototype,"showVerticalSummary",null),(0,c.gn)([R.lk],Fa.prototype,"showTrafficIconDynamicFeed",null),(0,c.gn)([R.lk],Fa.prototype,"sdCardData",null),(0,c.gn)([R.lk],Fa.prototype,"isInSettingsMode",null),(0,c.gn)([R.lk],Fa.prototype,"showMultipleIncidents",null),(0,c.gn)([R.lk],Fa.prototype,"seeMoreText",null);var Ha=i(53271),za=i(3893),Ba=i.n(za),$a=i(33763),Ra=i(94522),Ua=i(52468),Pa=i(81563);$a.S,Ua.a;const ja=at.d`
    ${t=>{var e;return t.config.childExperienceReferences&&(0,Pa.O)(t.config.childExperienceReferences.sdCardMaskWC,{properties:{cardType:"Traffic",isHalfCard:"_1x_1y"===(null===(e=t.trafficCardFeedData)||void 0===e?void 0:e.cardSize),feedbackTexts:[t.strings.feedbackOption1,t.strings.feedbackOption2,t.strings.feedbackOption3]}})}}
`,Ea=at.d`
<msn-actions-menu
    :referrerButton=${t=>t.actionsMenuButtonElement}
    defaulthorizontalposition="end"
    :menuItems=${t=>t.menuItems}
    :useFastAnchoredRegion=${t=>"winWidgets"!==yt.jG.AppType}
    style="forced-color-adjust: auto">
</msn-actions-menu>
`,Ga=at.d`${(0,nt.g)((t=>t.config.isDynamicFeed&&t.isPinned),at.d`<div slot="pin" role="img" aria-label="${t=>t.strings.pinnedWidgetText||"pinned widget"}">${Ra.Z}</div>`)}`,Va=at.d`
<msft-traffic-card 
    id="${Ht}"
    class=${t=>t.config.isDynamicFeed&&t.cardData&&"summary"===t.cardData.scenario&&t.sizeClass[1]===u.g2.Tall?"tall-summary-container":""}
    size=${t=>t.sizeClass[1]}
    map-url="${t=>t.mapUrl}"
    dark-map-url=${t=>t.darkMapUrl}
    dark-thumbnail-map-url=${t=>t.darkThumbnailMapUrl}
    thumbnail-map-url=${t=>t.thumbnailMapUrl}
    see-more-text=${t=>t.seeMoreText}
    view-on-map-text=${t=>t.strings.viewOnMapText}
    map-alt-text=${t=>{var e;return"myRoutes"===(null===(e=t.cardData)||void 0===e?void 0:e.scenario)?t.strings.myRoutesMenuItem:t.strings.altText}}
    clickthrough-url=${t=>t.cardData&&t.cardData.clickthroughUrl}
    scenario=${t=>t.cardData&&t.cardData.scenario?t.cardData.scenario:"traffic"}
    map-image-url-template=${t=>t.config.mapImageUrlTemplate}
    ?enable-traffic-summary=${t=>t.config.enableSummary}
    ?use-opaque-background=${t=>t.config.useOpaqueBackground}
    ?enable-dropdown=${t=>t.config.enableDropdown&&t.cardData&&t.cardData.cameras&&t.cardData.cameras.length>0}
    ?enable-see-more=${t=>t.cardData&&t.cardData.enableSeeMore}
    ?include-status-frame=${t=>t.config.isDynamicFeed&&t.cardData&&"summary"==t.cardData.scenario}
    ?is-widget=${t=>t.config.isWidget||t.config.isDynamicFeed}
    ?ntp-style=${t=>t.config.useNtpStyle}
    ?use-old-summary-design=${t=>t.showVerticalSummary}
    ?mapless-summary=${t=>t.config.useMaplessHalfSizeSummaryCard}
    :areaTrafficData="${t=>t.cardData&&t.cardData.areaTrafficData}"
    :trafficSummaryItems="${t=>t.trafficSummaryItems}"
    clickthrough-target=${t=>t.trafficCardFeedData&&t.trafficCardFeedData.openLinksInNewTab||t.config.isWidget?"_blank":"_self"}
    error-text=${t=>t.cardData&&t.cardData.errorText}
    @hover-incident=${(t,e)=>t.handleTelemetry(e.event,Ft.Aw.Hover,Ft.wu.Show)}
    @img-load-error=${(t,e)=>t.logImgLoadError(e.event)}
    :gasPricesStrings=${t=>t.strings}
    :gasStation=${t=>t.cardData&&t.cardData.gasStation}
    :trafficData="${t=>t.cardData&&t.cardData.trafficDataItems}" 
    :commuteData=${t=>t.cardData&&t.cardData.commuteData&&t.cardData.commuteData.commuteDetails}
    :myRouteItems=${t=>t.myRoutesItem}
    :transitData=${t=>t.transitData}
    :transitAlertType=${t=>t.strings.transitAlertType}
    :cameras=${t=>t.cardData&&t.cardData.cameras}
    :transitLineViewData=${t=>{var e;return null===(e=t.cardData)||void 0===e?void 0:e.transitLineViewData}}
    :trafficIncidents=${t=>t.cardData&&t.cardData.trafficIncidents}
    :updateTimeText=${t=>t.cardData&&t.cardData.updateTimeText}
    :incidentTelemetryTags="${t=>t.telemetryContext&&t.telemetryContext.incidents&&t.telemetryContext.incidents.map((t=>t.getMetadataTag()))}"
    :mapTelemetryTag="${t=>t.telemetryContext&&t.telemetryContext.trafficMap&&t.telemetryContext.trafficMap.getMetadataTag()}"
    :headerTelemetryTag="${t=>t.telemetryContext&&t.telemetryContext.trafficHeader&&t.telemetryContext.trafficHeader.getMetadataTag()}"
    :commuteTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.commute&&t.telemetryContext.commute.getMetadataTag()}
    :previousFlipperTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.previousFlipper&&t.telemetryContext.previousFlipper.getMetadataTag()}
    :nextFlipperTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.nextFlipper&&t.telemetryContext.nextFlipper.getMetadataTag()}
    :seeMoreTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.seeMore&&t.telemetryContext.seeMore.getMetadataTag()}
    :incidentDescriptionTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.incidentDescription&&t.telemetryContext.incidentDescription.getMetadataTag()}
    :reverseRouteTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.reverseRoute&&t.telemetryContext.reverseRoute.getMetadataTag()}
    :carouselStrings=${t=>t.strings.trafficCarouselStrings}
    :reverseRouteText=${t=>t.strings.reverseRouteDirection}
    :currentSlideOverride=${(t,e)=>t.myRoutesCarouselIndex}
    @paginate=${(t,e)=>t.onPaginate(e.event)}
    reset-carousel-signal=${(t,e)=>t.resetCarouselSignal}
    ?prong2-camera-card=${t=>t.config.dynamicFeedCameraCardDesign}
    ?show-multiple-incidents=${t=>t.showMultipleIncidents}
    :hasPaginated=${t=>t.hasPaginated}
    :useCommuteV2Card=${t=>t.config.enableCommuteV2&&t.cardData&&"commute"===t.cardData.scenario}
    :enableCTAV2=${t=>t.config.enableCTAV2}
    :routeImageGenerator=${t=>t.routeImageGenerator}
    @reverse-commute-direction=${(t,e)=>t.reverseCommuteDirection(e.event)}
    @get-favorite-lines=${(t,e)=>t.getFavoriteLines(e.event)}
    >
</msft-traffic-card>
`,Na=at.d`
<msft-inline-location-settings
    header="${t=>t.strings.editHeading}"
    layout=${t=>t.sizeClass[1]}
    detect-location-label="${t=>t.strings.locationDetect}"
    specify-location-label="${t=>t.strings.locationSpecify}"
    search-placeholder-text="${t=>t.strings.locationSearchPlaceholder}"
    save-button-label="${t=>t.strings.saveText}"
    cancel-button-label="${t=>t.strings.cancelText}"
    location-mode="${t=>t.cardData&&t.cardData.settingsData&&t.cardData.settingsData.locationMode}"
    ?is-widget=${t=>t.config.isWidget||t.config.isDynamicFeed}
    ?is-dynamic-feed=${t=>t.config.isDynamicFeed}
    ?is-msa=${t=>t.isUserMsaAuthenticated}
    ?enable-commute-settings=${t=>t.config.enableCommuteSettings}
    edit-header=${t=>t.strings.editCardText}
    :changeSignal=${t=>t.cardData&&t.cardData.settingsData&&t.cardData.settingsData.changeSignal}
    :suggestedLocations=${t=>t.cardData&&t.cardData.settingsData&&t.cardData.settingsData.suggestedLocations}
    :selectedLocation=${t=>t.cardData&&t.cardData.settingsData&&t.cardData.settingsData.selectedLocation}
    :localizedStrings=${t=>t.strings}
    :commuteAutosuggestClient=${t=>t.commuteAutosuggestClient}
    @save=${(t,e)=>t.saveTrafficSettings()}
    @cancel=${(t,e)=>t.cancelTrafficSettings()}
    @mode-change=${(t,e)=>t.selectLocationMode(e.event)}
    @search=${(t,e)=>t.triggerLocationSuggest(e.event)}
    @select=${(t,e)=>t.selectLocation(e.event)}
    :detectLocationTelemetryTag="${t=>t.telemetryContext&&t.telemetryContext.detectLocation&&t.telemetryContext.detectLocation.getMetadataTag()}"
    :specifyLocationTelemetryTag="${t=>t.telemetryContext&&t.telemetryContext.specifyLocation&&t.telemetryContext.specifyLocation.getMetadataTag()}"
    :saveTelemetryTag="${t=>t.telemetryContext&&t.telemetryContext.saveButton&&t.telemetryContext.saveButton.getMetadataTag().replace("{0}",t.getSelectedLocation())}"
    :cancelTelemetryTag="${t=>t.telemetryContext&&t.telemetryContext.cancelButton&&t.telemetryContext.cancelButton.getMetadataTag()}"
    data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.trafficSettings)||void 0===i?void 0:i.getMetadataTag()}}"
/>
`,Wa=at.d`
<div class="${t=>t.sizeClass[0]} container">
${(0,nt.g)((t=>t.cardData&&t.cardData.settingsData&&"settings"!==t.cardData.settingsData.cardMode),Va)}
${(0,nt.g)((t=>t.cardData&&t.cardData.settingsData&&"settings"===t.cardData.settingsData.cardMode),Na)}
</div>
`,qa='<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16" width="14" height="16">\n<path fill="#737A80" d="M1 1h14a4 4 0 01-4 4H5a4 4 0 01-4-4zM1 6h14a4 4 0 01-4 4H5a4 4 0 01-4-4zM1 11h14a4 4 0 01-4 4H5a4 4 0 01-4-4z"/>\n<rect width="8" height="16" x="4" fill="url(#paint0_linear)" rx="1"/>\n<circle cx="8" cy="3" r="2" fill="#FF4C00"/>\n<circle cx="8" cy="3" r="2" fill="url(#paint1_linear)"/>\n<circle cx="8" cy="8" r="2" fill="#FFB900"/>\n<circle cx="8" cy="8" r="2" fill="url(#paint2_linear)"/>\n<g>\n  <circle cx="8" cy="13" r="2" fill="#78D30C"/>\n  <circle cx="8" cy="13" r="2" fill="url(#paint3_linear)"/>\n</g>\n<defs>\n  <linearGradient id="paint0_linear" x1="8" x2="8" y1="0" y2="16" gradientUnits="userSpaceOnUse">\n    <stop stop-color="#5C6166"/>\n    <stop offset="1" stop-color="#45494D"/>\n  </linearGradient>\n  <linearGradient id="paint1_linear" x1="9" x2="7" y1="4.732" y2="1.268" gradientUnits="userSpaceOnUse">\n    <stop stop-color="#D83B01"/>\n    <stop offset="1" stop-color="#EC6725"/>\n  </linearGradient>\n  <linearGradient id="paint2_linear" x1="9" x2="7" y1="9.732" y2="6.268" gradientUnits="userSpaceOnUse">\n    <stop stop-color="#F69E13"/>\n    <stop offset="1" stop-color="#FFB900"/>\n  </linearGradient>\n  <linearGradient id="paint3_linear" x1="9" x2="7" y1="14.732" y2="11.268" gradientUnits="userSpaceOnUse">\n    <stop stop-color="#33990F"/>\n    <stop offset="1" stop-color="#56B60E"/>\n  </linearGradient>\n</defs>\n</svg>',Qa='\n<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g clip-path="url(#clip0_1147_50275)">\n<path d="M14.7031 16H13.2891L11.2891 14H4.70312L2.70312 16H1.28906L3.3125 13.9844C3.125 13.9635 2.95052 13.9089 2.78906 13.8203C2.6276 13.7318 2.48958 13.6224 2.375 13.4922C2.26042 13.362 2.16927 13.2109 2.10156 13.0391C2.03385 12.8672 2 12.6875 2 12.5V1.5C2 1.29167 2.03906 1.09635 2.11719 0.914062C2.19531 0.731771 2.30208 0.572917 2.4375 0.4375C2.57292 0.302083 2.73177 0.195312 2.91406 0.117188C3.09635 0.0390625 3.29167 0 3.5 0H12.5C12.7083 0 12.9036 0.0390625 13.0859 0.117188C13.2682 0.195312 13.4271 0.302083 13.5625 0.4375C13.6979 0.572917 13.8047 0.731771 13.8828 0.914062C13.9609 1.09635 14 1.29167 14 1.5V12.5C14 12.6875 13.9661 12.8646 13.8984 13.0312C13.8307 13.1979 13.7396 13.349 13.625 13.4844C13.5104 13.6198 13.3724 13.7318 13.2109 13.8203C13.0495 13.9089 12.875 13.9635 12.6875 13.9844L14.7031 16ZM6 3H10V2H6V3ZM13 9V5H3V9H13ZM4.5 12C4.63542 12 4.7526 11.9505 4.85156 11.8516C4.95052 11.7526 5 11.6354 5 11.5C5 11.3646 4.95052 11.2474 4.85156 11.1484C4.7526 11.0495 4.63542 11 4.5 11C4.36458 11 4.2474 11.0495 4.14844 11.1484C4.04948 11.2474 4 11.3646 4 11.5C4 11.6354 4.04948 11.7526 4.14844 11.8516C4.2474 11.9505 4.36458 12 4.5 12ZM11.5 12C11.6354 12 11.7526 11.9505 11.8516 11.8516C11.9505 11.7526 12 11.6354 12 11.5C12 11.3646 11.9505 11.2474 11.8516 11.1484C11.7526 11.0495 11.6354 11 11.5 11C11.3646 11 11.2474 11.0495 11.1484 11.1484C11.0495 11.2474 11 11.3646 11 11.5C11 11.6354 11.0495 11.7526 11.1484 11.8516C11.2474 11.9505 11.3646 12 11.5 12Z" fill="#0078D4"/>\n</g>\n<defs>\n<clipPath id="clip0_1147_50275">\n<rect width="16" height="16" fill="white"/>\n</clipPath>\n</defs>\n</svg>\n\n',Ya=at.d`
<div data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.trafficCard)||void 0===i?void 0:i.getMetadataTag()}}">
    <msft-structured-data-card
        class="sd-card-template ${t=>t.sizeClass[0]} ${t=>t.config.isWidget||t.config.isDynamicFeed?"widget":"not-widget"}"
        :data=${t=>t.cardData?t.sdCardData:{}}
        :headerTelemetryTag=${t=>t.telemetryContext&&t.telemetryContext.trafficHeader&&t.telemetryContext.trafficHeader.getMetadataTag()}
        ?pinned="${t=>t.config.isDynamicFeed&&t.isPinned}"
        data-clarity-mask="true"
        target=${t=>t.trafficCardFeedData&&t.trafficCardFeedData.openLinksInNewTab||t.config.isWidget?"_blank":"_self"}
        data-t="${t=>{var e;return(null===(e=t.cardData)||void 0===e?void 0:e.scenario)&&(0,u.FS)(t.cardData.scenario).getMetadataTag()}}">
                ${(0,nt.g)((t=>{var e;return t.showTrafficIconDynamicFeed&&"transitAlert"!==(null===(e=t.cardData)||void 0===e?void 0:e.scenario)}),at.d`<div slot="title-icon"> ${qa} </div>`)}
                ${(0,nt.g)((t=>{var e;return t.showTrafficIconDynamicFeed&&"transitAlert"===(null===(e=t.cardData)||void 0===e?void 0:e.scenario)}),at.d`<div slot="title-icon"> ${Qa} </div>`)}
                ${(0,nt.g)((t=>!t.disableCardAction&&t.cardData&&t.cardData.settingsData&&("settings"!==t.cardData.settingsData.cardMode||"settings"===t.cardData.settingsData.cardMode&&t.config.isDynamicFeed)),at.d`
                    ${Ga}
                    <fluent-button
                        id="more-options-button-half"
                        slot="more-actions"
                        class="${t=>t.config.isDynamicFeed?"":"more-actions-fill"}"
                        title="${t=>t.config.isDynamicFeed?"":t.strings.moreOptionsTooltip}"
                        role="button"
                        appearance="stealth"
                        aria-label="${t=>t.strings.moreOptionsTooltip}"
                        @click=${(t,e)=>t.toggleActionMenu(!t.isActionMenuOpen,e.event)}
                        ?disabled=${t=>t.cardData&&t.cardData.settingsData&&"settings"===t.cardData.settingsData.cardMode}
                        data-t="${t=>{var e,i;return null===(i=null===(e=t.telemetryContext)||void 0===e?void 0:e.actionButton)||void 0===i?void 0:i.getMetadataTag()}}"
                    >
                        ${(0,nt.g)((t=>{var e;return null===(e=t.config)||void 0===e?void 0:e.enableFluentUIIcons}),at.d`${Ba()}`)}
                        ${(0,nt.g)((t=>{var e;return!(null===(e=t.config)||void 0===e?void 0:e.enableFluentUIIcons)}),at.d`${Ha.Z}`)}
                    </fluent-button>
                `)}
                ${Wa}
    </msft-structured-data-card>
</div>
${(0,nt.g)((t=>{var e,i;return"settings"!==(null===(i=null===(e=t.cardData)||void 0===e?void 0:e.settingsData)||void 0===i?void 0:i.cardMode)&&t.isActionMenuOpen}),Ea)}
${(0,nt.g)((t=>t.isGA&&t.config&&t.config.childExperienceReferences&&t.config.childExperienceReferences.sdCardMaskWC),ja)}
`,Za=N.i`
    msft-structured-data-card.not-widget .more-actions-fill {
        background-color: rgba(255, 255, 255, 0.09);
    }
    msft-structured-data-card.not-widget .more-actions-fill:hover {
        background-color: rgba(255, 255, 255, 0.18);
    }
`,Ka=(0,V.Uu)(Za),Xa=N.i`
:host {
    border-radius: 6px;
}

div, msft-structured-data-card {
    --grid-gap: 12;
    --example-card-height: 146;
    --example-card-width: 300;
}

msft-structured-data-card[pinned] {
    --content-padding: 0 0 16px;
    --title-padding: 16px 16px 0;
}

._1x_1y,
._1x_2y,
._1x_1y_prong2,
._1x_2y_prong2,
._1x_3y_dynamicfeed,
._1x_3y {
    width: calc(var(--example-card-width) * 1px);
}

._1x_1y {
    height: calc(var(--example-card-height) * 1px);
}

._1x_1y_prong2 {
    height: 200px;
}

._1x_2y {
    height: calc(
        (var(--example-card-height) * 2px) + (var(--grid-gap) * 1px)
    );
}

._1x_2y_prong2 {
    height: 308px;
}

._1x_3y {
    height: 416px;
}

._1x_3y_dynamicfeed {
    height: 462px;
}

fluent-menu {
    width: 200px;
}

fast-anchored-region {
    display: none;
}

.container {
    position: absolute;
    top: 0px;
}

._1x_1y_prong2,
._1x_2y_prong2,
._1x_3y {
    background-color: ${j.IfY};
}

.sd-card-template::part(title) {
    z-index: 3;
}


.sd-card-template:not([pinned])::part(title) {
    pointer-events: none;
}
.sd-card-template:not([pinned])::part(title-link),
.sd-card-template:not([pinned]) #more-options-button-half {
    pointer-events: auto;
}

.more-actions-fill {
    background-color: ${j.QpD};
}

msft-structured-data-card.not-widget::part(title) {
    position: absolute;
    top: 12px;
    font-weight: 600;
    width: 100%;
    box-sizing: border-box;
}

msft-structured-data-card.not-widget::part(title-content) {
    margin-top: unset;
}
msft-structured-data-card.not-widget::part(title-content) {
    margin-top: unset;
}

msft-structured-data-card.not-widget .more-actions-fill {
    background-color: rgba(0, 0, 0, 0.07);
}
msft-structured-data-card.not-widget .more-actions-fill:hover {
    background-color: rgba(0, 0, 0, 0.18);
}
`.withBehaviors(Ka),Ja={experienceConfigSchema:d}},79703:function(t,e,i){"use strict";i.d(e,{$:function(){return n}});var a,o=i(19628);!function(t){t[t.Default=0]="Default",t[t.Medium=1]="Medium",t[t.MonthDate=2]="MonthDate",t[t.Weekday=3]="Weekday",t[t.Time=4]="Time"}(a||(a={}));class n{constructor(){this.dateFormatOptionsMap=new Map,this.setSupportsLocaleSpecifiers(),this.dateFormatOptionsMap.set(a.Medium,{year:"numeric",month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.MonthDate,{month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(a.Weekday,{weekday:"short"}),this.dateFormatOptionsMap.set(a.Time,{hour:"numeric",minute:"numeric"})}overrideDateFormat(t,e){t&&e&&this.dateFormatOptionsMap.set(t,e)}localizedDateString(t,e){return this.formatDate(t,a.Default,e)}localizedDateStringMedium(t,e){return this.formatDate(t,a.Medium,e)}localizedMonthDate(t,e){return this.formatDate(t,a.MonthDate,e)}localizedWeekday(t,e){return this.formatDate(t,a.Weekday,e)}formatTimeFromDate(t,e){return this.supportsLocaleSpecifiers&&this.dateFormatOptionsMap?t.toLocaleTimeString(e,this.dateFormatOptionsMap.get(a.Time)):t.toTimeString()}format(t,...e){return t?o.Ld.Format(t,...e):""}localizedNumberString(t,e){return this.supportsLocaleSpecifiers?t.toLocaleString(e):t.toString()}formatDate(t,e,i){let o=null;if(this.supportsLocaleSpecifiers)if(e===a.Default)o=t.toLocaleDateString(i);else if(this.dateFormatOptionsMap){const a=this.dateFormatOptionsMap.get(e);o=t.toLocaleDateString(i,a)}return null===o&&(o=t.toDateString()),null!==o?o.replace(/\u200E/g,"").replace(/\u200F/g,""):o}setSupportsLocaleSpecifiers(){this.supportsLocaleSpecifiers=(()=>{try{(0).toLocaleString("i")}catch(t){return"RangeError"===t.name}return!1})()}}},11363:function(t,e,i){"use strict";i.d(e,{fh:function(){return c},Xk:function(){return u}});var a=i(79703),o=i(94516),n=i(21858);class r{constructor(t,e,i){this.timeLocStrings=t,this.locale=e,this.locUtility=i}transform(t,e,i){const a=3600,r=86400;if(!t)return"";if(!this.locUtility.supportsLocaleSpecifiers)return e;const s=(0,n.Go)(t);switch((0,n.Yw)(t)){case o.i.None:return"";case o.i.JustNow:return this.timeLocStrings.JustNow;case o.i.LessThanOneHour:return this.timespanString(s,s<120?this.timeLocStrings.NumberMinuteAgo:this.timeLocStrings.NumberMinutesAgo,60);case o.i.Today:return this.timespanString(s,s<7200?this.timeLocStrings.NumberHourAgo:this.timeLocStrings.NumberHoursAgo,a);case o.i.Yesterday:if(0===i){const e=this.timeLocStrings.TimeYesterday;return this.locUtility.format(e,this.locUtility.formatTimeFromDate(t,this.locale))}return s<r?this.timespanString(s,s<7200?this.timeLocStrings.NumberHourAgo:this.timeLocStrings.NumberHoursAgo,a):this.timespanString(s,s<172800?this.timeLocStrings.NumberDayAgo:this.timeLocStrings.NumberDaysAgo,r);case o.i.ThisWeek:return 0===i?this.locUtility.format(this.timeLocStrings.TimeDayOfWeek,this.locUtility.localizedWeekday(t,this.locale),this.locUtility.formatTimeFromDate(t,this.locale)):this.timespanString(s,s<172800?this.timeLocStrings.NumberDayAgo:this.timeLocStrings.NumberDaysAgo,r);case o.i.ThisYear:return this.locUtility.localizedMonthDate(t,this.locale);default:return this.locUtility.localizedDateStringMedium(t,this.locale)}}timespanString(t,e,i){const a=Math.floor(t/i);return this.locUtility.format(e,this.locUtility.localizedNumberString(a,this.locale))}}const s={JustNow:"Just Now",NumberMinuteAgo:"{0} minute ago",NumberMinutesAgo:"{0} minutes ago",NumberHourAgo:"{0} hour ago",NumberHoursAgo:"{0} hours ago",NumberDayAgo:"{0} day ago",NumberDaysAgo:"{0} days ago",NumberWeekAgo:"{0} week",NumberWeeksAgo:"{0} weeks",NumberMonthAgo:"{0} month",NumberMonthsAgo:"{0} months",NumberYearAgo:"{0} year",NumberYearsAgo:"{0} years",TimeYesterday:"Yesterday at {0}",TimeDayOfWeek:"{0} at {1}"},l={Minute:{one:"{0} دقيقة",two:"دقيقتان",threeToTen:"{0} دقائق",elevenPlus:"{0} دقيقة"},Hour:{one:"{0} ساعة",two:"ساعتان",threeToTen:"{0} ساعات",elevenPlus:"{0} ساعة"},Day:{one:"{0} يوم",two:"يومان",threeToTen:"{0} أيام",elevenPlus:"{0} يوما"},Week:{one:"{0} أسبوع",two:"{0} أسبوع",threeToTen:"{0} أسابيع",elevenPlus:"{0} أسبوعا"},Month:{one:"{0} شهر",two:"{0} شهر",threeToTen:"{0} أشهر",elevenPlus:"{0} شهرا"},Year:{one:"{0} عام",two:"{0} عام",threeToTen:"{0} أعوام",elevenPlus:"{0} عاما"}},d={Week:{one:"{0} שבוע",two:"{0} שבועיים",three:"{0} שבועות"},Month:{one:"{0} חודש",two:"{0} חודשיים",three:"{0} חודשים"},Year:{one:"{0} שנה",two:"{0} שנתיים",three:"{0} שנים"}};function c(t,e,i,o,n,c){const u=e&&e.toLowerCase();if(!(t instanceof Date)||isNaN(t.valueOf()))return"";if(c&&i)return function(t,e,i,a){if(!(t instanceof Date)||isNaN(t.valueOf()))return"";const o=h.MsPerMinute,n=h.MsPerHour,r=h.MsPerDay,s=h.MsPerWeek,c=h.MsPerMonth,u=h.MsPerYear,g=e.getTime()-t.getTime();if(g<o)return i.JustNow||"";let p=u,f="Year";g<n?(p=o,f="Minute"):g<r?(p=n,f="Hour"):g<s?(p=r,f="Day"):g<c?(p=s,f="Week"):g<u&&(p=c,f="Month");const m=/^[Aa][Rr]-/.test(a),v=/^[Hh][Ee]-/.test(a),y=Math.floor(g/p);let b=null;b=m?function(t,e){if(t<2)return l[e].one;if(t<3)return l[e].two;if(t<11)return l[e].threeToTen;return l[e].elevenPlus}(y,f):v?function(t,e,i){if("Minute"==i||"Hour"==i||"Day"==i)return t[`Number${i}${e>1?"s":""}Ago`];if(e<2)return d[i].one;if(e<3)return d[i].two;return d[i].three}(i,y,f):i[`Number${f}${y>1?"s":""}Ago`];return b?b.replace("{0}",y):""}(t,new Date,i,u);if(!i&&"zh-cn"===u)return"";i||(i=s);const g=(n=n||new a.$).localizedDateString(t,u);o||(o=0);return new r(i,u,n).transform(t,g,o)}function u(t){return t.toLocaleString("ja-JP",{hour12:!1,hour:"2-digit",minute:"2-digit",day:"2-digit",month:"2-digit",timeZone:"Asia/Tokyo"}).replace("午後","").replace("午前","")}const h={MsPerMinute:6e4,MsPerHour:36e5,MsPerDay:864e5,MsPerWeek:6048e5,MsPerMonth:2592e6,MsPerYear:31104e6}},75351:function(t,e,i){"use strict";i.d(e,{MW:function(){return s},Z1:function(){return c},nj:function(){return l}});var a=i(38156),o=i(65135),n=i(12611),r=i(44772);const s={contentCardName:"ContentCard",destination:"destination",flexCard:"FlexCard",hideName:"Hide",relatedStories:"RelatedStories",showRelatedStories:"ShowRelatedStories",saveName:"Save",seeMoreName:"Card Action Ellipsis",showFewerName:"Fewer stories like this",showMoreName:"More stories like this",undoShowFewer:"Undo fewer stories like this",undoShowMore:"Undo more stories like this",undoSaveName:"UndoSave",webCardName:"WebCard",webContentName:"WebContent",clickableProviderIcon:"Provider Icon"},l=(t,e,i,o,n,r=s,l)=>{if(!t)return;const c=d(e,i);let u,h;n?(u=t.addOrUpdateChild({name:r.webCardName,content:c}),h=u.addOrUpdateChild({name:r.webContentName,type:a.c9.Headline,behavior:a.wu.Navigate,content:c,ext:o})):(u=t.addOrUpdateChild({name:r.contentCardName,type:a.c9.ContentCard,content:c}),h=u.addOrUpdateChild({name:r.destination,type:a.c9.Headline,behavior:a.wu.Navigate,content:c,ext:o}));const g=u.addOrUpdateChild({name:r.seeMoreName,type:a.c9.ActionButton,behavior:a.wu.More,content:c}),p=u.addOrUpdateChild({name:r.saveName,type:a.c9.ActionButton,behavior:a.wu.Save,content:c}),f=u.addOrUpdateChild({name:r.hideName,type:a.c9.ActionButton,behavior:a.wu.Hide,content:c}),m=u.addOrUpdateChild({name:r.showMoreName,type:a.c9.ActionButton,behavior:a.wu.Like,content:c}),v=u.addOrUpdateChild({name:r.showFewerName,type:a.c9.ActionButton,behavior:a.wu.Dislike,content:c}),y=u.addOrUpdateChild({name:r.undoShowMore,type:a.c9.ActionButton,behavior:a.wu.Unlike,content:c}),b=u.addOrUpdateChild({name:r.undoShowFewer,type:a.c9.ActionButton,behavior:a.wu.Undislike,content:c}),x=t.addOrUpdateChild({name:s.relatedStories,type:a.c9.ContentCard,content:c}),C=t.addOrUpdateChild({name:s.showRelatedStories,type:a.c9.ActionButton,behavior:a.wu.Show,content:c}),w=t.addOrUpdateChild({name:s.flexCard,type:a.c9.ContentCard,content:c}),T=t.addOrUpdateChild({name:r.clickableProviderIcon,type:a.c9.ActionButton,behavior:a.wu.Navigate,content:c}),{zone:k}=t.contract||{};k&&(u.contract.zone=k,h.contract.zone=k);let D={componentRoot:t,contentCard:u,destination:h,seeMore:g,save:p,showMore:m,showFewer:v,undoShowMore:y,undoShowFewer:b,hide:f,relatedStories:x,showRelatedStories:C,clickableProviderIcon:T};return l&&(D=Object.assign(Object.assign({},D),{flexcard:w})),D},d=(t,e)=>{const i=t||{},a=e||{},o=i.provider&&i.provider.name,s=a&&a.subCategory||i&&i.category&&i.category.label||i&&i.category,l=i.title,d=i.id,c=a&&a.category||i&&i.category&&i.category.product||i&&i.category,u=(0,n.cx)(i.type),h=(0,r.ne)(u||i.type);return{brand:o,category:s,headline:l,id:d,isLocal:i.isLocalContent||a.isLocalContent,type:h,vertical:c}};function c(t){if(!t)return;const e=new URL(t),i=o.M0.getRequestId();return i&&e.searchParams.set("cvid",i),e.toString()}},98793:function(t,e,i){"use strict";var a,o,n,r,s,l,d,c,u,h;i.d(e,{DL:function(){return d},NK:function(){return u},Rb:function(){return h},L0:function(){return f},iA:function(){return ce},m2:function(){return Jt},Oh:function(){return z},g2:function(){return l},P_:function(){return S},Yd:function(){return r},GU:function(){return L},KS:function(){return p},i8:function(){return I},MV:function(){return A},W6:function(){return D},Ht:function(){return ue},TO:function(){return k},I3:function(){return gt},_d:function(){return yt},lX:function(){return Z},jb:function(){return Vt},JH:function(){return Wt},DK:function(){return V},H5:function(){return Et},xk:function(){return Qt},V1:function(){return jt},Du:function(){return Bt},zo:function(){return $t},vQ:function(){return Xt},im:function(){return Ct},xy:function(){return st},K5:function(){return nt},Zx:function(){return Q},As:function(){return Kt},FK:function(){return q},Qe:function(){return N},pG:function(){return lt},H0:function(){return B},jS:function(){return kt},My:function(){return Tt},FS:function(){return St},aB:function(){return W},$q:function(){return Gt},G1:function(){return qt},bo:function(){return Ht},gZ:function(){return zt},eB:function(){return Ft},kq:function(){return Nt},jC:function(){return at},xo:function(){return ot},Be:function(){return Pt}}),function(t){t[t.Driving=0]="Driving",t[t.Transit=1]="Transit"}(a||(a={})),function(t){t[t.None=0]="None",t[t.Highways=1]="Highways",t[t.Tolls=2]="Tolls",t[t.Ferries=4]="Ferries",t[t.CountryBorders=8]="CountryBorders"}(o||(o={})),function(t){t[t.Driving=10]="Driving",t[t.Transit=20]="Transit"}(n||(n={})),function(t){t[t.None=0]="None",t[t.Light=1]="Light",t[t.Moderate=2]="Moderate",t[t.Heavy=3]="Heavy"}(r||(r={})),function(t){t.Unknown="Unknown",t.None="None",t.Mild="Mild",t.Medium="Medium",t.Heavy="Heavy"}(s||(s={})),function(t){t.Full="full",t.Half="half",t.Both="both",t.Tall="tall"}(l||(l={})),function(t){t[t.Home=0]="Home",t[t.Work=1]="Work",t[t.Other=2]="Other"}(d||(d={})),function(t){t[t.Api=0]="Api",t[t.None=1]="None",t[t.Static=2]="Static"}(c||(c={})),function(t){t.SCHEDULE_CHANGED="ScheduleChanged",t.OPERATIONAL_RESUMED="OperationalResumed",t.TRAINS_DELAYED="TrainsDelayed",t.OPERATIONA_STATUS="OperationalStatus",t.OPERATIONAL_HALTED="OperationalHalted",t.OTHER="Other"}(u||(u={})),function(t){t.Miles="Miles",t.Kilometers="Kilometers"}(h||(h={}));const g="traffic",p={cameraMapImageZoom:13,halfMapImageZoom:12,fullMapImageZoom:12,quarterMapImageZoom:11,clickThroughMapZoom:13,incidentClickThroughMapZoom:16,mapImageResolutionFactorQuarter:1.5,mapImageResolutionFactor:1,quarterMapWidth:144,quarterMapHeight:146,commuteHalfMapWidth:202,incidentMapWidth:268,incidentMapHeight:171,incidentMapZoom:13,gasStationMapWidth:268,gasStationMapHeight:144,gasStationMapTallHeight:294,gasStationMapZoom:12,incidentMapHalfCardItemOffsetX:80,incidentMapFullCardItemOffsetX:40,incidentMapFullCardItemOffsetY:40,incidentMapHalfCardItemOffsetXV1:110,incidentMapHalfCardItemOffsetXV2:100,cameraMapFullCardItemOffsetX:-64,cameraMapFullCardItemOffsetY:19,cardWidth:300,halfCardHeight:146,fullCardHeight:304,tallCardHeight:460,lightModeMapStyle:"RoadVibrant",darkModeMapStyle:"RoadVibrantDark",informationalMapLayers:"TrafficFlow,Basemap,TrafficIncidents,OsmBuildings",cameraCardMapLayersV2:"TrafficFlow,Basemap,OsmBuildings",cameraCardMapLayersV2Jp:"Basemap,OsmBuildings",trafficFlowMapLayer:"TrafficFlow",landingPageUrl:"https://{hostName}/{localeCode}/traffic",personalizationUrl:"https://{hostName}/{localeCode}/feed/personalize/settings",transitLandingPageUrl:"https://www.bing.com/maps/directions?addfeaturesnoexpansion=transitalert&mode=T",transitMyPlacesUrl:"https://www.bing.com/maps/myplaces",mapsVerticalUrl:"https://www.bing.com/maps/traffic?setlang={0}",mapsVerticalQueryUrl:"https://www.bing.com/maps?setlang={locale}&q={query}&cp={coordinates}&lvl={zoom}&child=ypid%3D{ypid}&form={formCode}",msnAssetsHost:"https://assets.msn.com",msnAssetsHostCn:"https://assets.msn.cn",oneServiceTrafficApi:"service/news/feed/segments/traffic?apikey={APIKEY}&market={MARKET}&ocid={OCID}&user={USER}&Vertical=Common&StrategyDataCategory=dataInOneService&Experience={EXPERIENCE}",cameraImageUrlTemplate:"https://ecn.dev.virtualearth.net{cameraId}&key=AnTcaqBi2ypp0xI-OZNi4W_ik2KhjgpqioTAtXLC8GzkMBQRMlyxvxyTnd5b73im&ur=us&c=en-US&animated=false&setfeatures=mp4cameras",ocid:"weather-peregrine",apiKey:"UhJ4G66OjyLbn9mXARgajXLiLw6V75sHnfpU60aJBB",apiKey2:"0QfOX3Vn51YCzitbLaRkTTBadtWpgTN8NZLW0C1SEM",customRoutesApiKey:"AmatwaYC9IkJ8pLYPLjaNPRaIXRihR07x51Ah4SGuct-87N_PakuRE4fpCEP5ciD",ocid2Set:new Set(["winp1taskbar","msedgdhp","windirect","Peregrine","hponeservicefeed"]),appTypeToExperience:new Map([["windowsShell","WindowsTaskbarHeadlines"],["windowsNewsPlus","Window11Dashboard"],["winWidgets","Window11Dashboard"],["edgeChromium","EdgeNtp"],["bingHomepage","BingHomePage"],["windows","WindowsHomePage"]]),commuteBoundingBoxesHalf:[{start:{x:166,y:16},end:{x:284,y:130}}],commuteBoundingBoxesFull:[{start:{x:166,y:16},end:{x:284,y:280}},{start:{x:16,y:144},end:{x:284,y:280}}],commuteBoundingBoxesTall:[{start:{x:16,y:144},end:{x:284,y:422}}],transitLineUrlSubpath:"staticsb/statics/latest/traffic/transitCard/transitLineNames.txt"};var f,m,v,y;!function(t){t[t.Undefined=0]="Undefined",t[t.Collision=1]="Collision",t[t.Congestion=2]="Congestion",t[t.DisabledVehicle=3]="DisabledVehicle",t[t.MassTransit=4]="MassTransit",t[t.Miscellaneous=5]="Miscellaneous",t[t.OtherNews=6]="OtherNews",t[t.PlannedEvent=7]="PlannedEvent",t[t.RoadHazard=8]="RoadHazard",t[t.Construction=9]="Construction",t[t.Alert=10]="Alert",t[t.Weather=11]="Weather",t[t.Camera=12]="Camera"}(f||(f={})),function(t){t[t.Traffic=0]="Traffic",t[t.Camera=1]="Camera",t[t.CityToCity=2]="CityToCity",t[t.Summary=3]="Summary",t[t.CollisionAndConstruction=4]="CollisionAndConstruction",t[t.MyRoutes=5]="MyRoutes",t[t.MyRoutesUpsell=6]="MyRoutesUpsell",t[t.GasPrice=7]="GasPrice",t[t.Commute=8]="Commute",t[t.TransitAlert=9]="TransitAlert",t[t.CommuteUpsell=10]="CommuteUpsell",t[t.AreaSummary=11]="AreaSummary"}(m||(m={})),function(t){t[t.Unknown=0]="Unknown",t[t.Regular=1]="Regular",t[t.Midgrade=2]="Midgrade",t[t.Premium=3]="Premium",t[t.Diesel=4]="Diesel"}(v||(v={})),function(t){t[t.USD=1]="USD"}(y||(y={}));const b={closure:"cls.f",collision:"acd.f",construction:"cnst.f",defaultIncident:"in.f",backgroundGasStation:"gsp.i",selectedGasStation:"gsp.s"},x={closure:"S15|{severity},Default",collision:"S15|{severity},Accident",construction:"S15|{severity},Construction",defaultIncident:"S15|{severity},Default",backgroundGasStation:"S541|InactivePointStateLandmark",selectedGasStation:"S541|SelectedPointStateSearch"},C="LowSeverity",w="MediumSeverity",T="HighSeverity",k={large:"_1x_3y",medium:"_1x_2y",small:"_1x_1y"},D=["accidents","construction","roadClosures","events"];var I;!function(t){t.TrafficSettingsCard="TrafficSettingsCard",t.DetectLocation="trafficcard_customization_detectlocation",t.TrafficVertical="Traffic",t.AutoSuggestLocation="trafficcard_customization_location",t.SpecifyLocation="trafficcard_customization_specifylocation",t.Save="Save",t.Cancel="Cancel"}(I||(I={}));const S={TrafficCard:"TrafficCard",TrafficVertical:"Traffic",TrafficMap:"TrafficMap",Incidents:["Incident1","Incident2"],IncidentDescription:"TrafficIncidentDescription",Header:"TrafficHeader",Customization:"trafficcard_customization",MenuEdit:"trafficcard_customization_editloc",MenuMore:"TrafficCardCustomizationMore",MenuHide:"trafficcard_customization_hide",EditHome:"TrafficCardEditHome",AddHome:"TrafficCardAddHome",EditWork:"TrafficCardEditWork",AddWork:"TrafficCardAddWork",Commute:"TrafficCardCommute",SummaryCategory:"TrafficSummaryCategory",CarouselPreviousFlipper:"TrafficPreviousFlipper",CarouselNextFlipper:"TrafficNextFlipper",SeeMore:"SeeMore",ReverseRoute:"ReverseRoute",AlertPage:"1-TransitCard",AddLocationsButton:"1-AddLocationsButton",AddLinesButton:"1-AddLinesButton",AlertItem:"1-AlertItem",AddLinesIndexPage:"2-AddLineIndexPage​",AddLinesBox:"2-AddLinesBox​",AddLinesIcon:"2-StatusAdd​​",DeleteLinesIcon:"2-StatusDelete​",ConfirmButton:"2-ConfirmButton​",CancelButton:"2-CancelButton",AddLinesSearchPage:"2-AddLineSearchPage​"};var A,L;!function(t){t[t.Unknown=1]="Unknown",t[t.Heavy=2]="Heavy",t[t.Moderate=4]="Moderate",t[t.Light=8]="Light",t[t.None=16]="None"}(A||(A={})),function(t){t[t.Unknown=0]="Unknown",t[t.Delays=1]="Delays",t[t.Incidents=2]="Incidents",t[t.Camera=3]="Camera",t[t.Mixed=4]="Mixed",t[t.TravelTimes=5]="TravelTimes",t[t.Commute=6]="Commute",t[t.Summary=7]="Summary",t[t.AreaSummary=8]="AreaSummary",t[t.CollisionAndConstruction=9]="CollisionAndConstruction",t[t.GasPrice=10]="GasPrice",t[t.Insights=11]="Insights",t[t.MyRoutes=12]="MyRoutes",t[t.TransitUpsell=13]="TransitUpsell",t[t.MyTransit=14]="MyTransit",t[t.MyRoutesUpsell=15]="MyRoutesUpsell",t[t.TransitAlert=16]="TransitAlert",t[t.CommuteUpsell=17]="CommuteUpsell",t[t.TrafficUnclassified=255]="TrafficUnclassified"}(L||(L={}));var O=i(33940),M=i(16517),F=i(23401),H=i(87298);class z extends class{constructor(t,e){this.fetchImpl=t,this._unitMile="mi",this._unitKm="km",this._config=e}getAvoidsParam(t){if(t==o.None)return;const e=[];return t&o.Tolls&&e.push("tolls"),t&o.CountryBorders&&e.push("borderCrossing"),t&o.Highways&&e.push("highways"),t&o.Ferries&&e.push("ferry"),["avoid",e.join(",")]}getTravelModeParam(t){return t==a.Driving?"Driving":t==a.Transit?"Transit":"Driving"}getDirectionsWithLocationStrings(t,e,i,n,r,s,l,d=o.None,c=a.Driving){return(0,O.mG)(this,void 0,void 0,(function*(){const a=this.getUserRegion(l),o="us"===a||"gb"===a?this._unitMile:this._unitKm,u=new URL(this._config.directionsBaseUrl.replace("{key}",t).replace("{c}",l).replace("{wp.0}",`${i},${n}`).replace("{wp.1}",`${r},${s}`).replace("{du}",o).replace("{travelMode}",this.getTravelModeParam(c))),h=this.getAvoidsParam(d);h&&u.searchParams.append(h[0],h[1]);const g=yield(0,H.w)((()=>(0,O.mG)(this,void 0,void 0,(function*(){const t=yield this.fetchImpl(u.href);if(!t.ok)throw Error(t.statusText);return t.json()}))),"getDirections");let p;const f=g&&g.resourceSets&&g.resourceSets[0]&&g.resourceSets[0].resources;return f&&(p={routeId:e,results:f}),p}))}getDirections(t,e,i,n,r,s,l,d=o.None,c=a.Driving){return(0,O.mG)(this,void 0,void 0,(function*(){return this.getDirectionsWithLocationStrings(t,e,`${i}`,`${n}`,`${r}`,`${s}`,l,d,c)}))}getUserRegion(t){return t.split("-")[1]}}{constructor(t,e=fetch){super(e,t)}getDirectionsForMyRoute(t,e,i){return(0,O.mG)(this,void 0,void 0,(function*(){if(!t||!t.stops||t.stops.length<2)return;const a=t.stops[0],o=t.stops[t.stops.length-1],n=this.getWaypointForRoute(a),r=this.getWaypointForRoute(o);return n&&r?yield this.getDirections(e,"",n.latitude,n.longitude,r.latitude,r.longitude,i,a.itineraryToNextInfo&&a.itineraryToNextInfo.routeAvoids,a.itineraryToNextInfo&&a.itineraryToNextInfo.mode):void 0}))}getWaypointForRoute(t){if(t){if(this.areCoordinatesValid(t.routableCoordinates))return t.routableCoordinates;if(this.areCoordinatesValid(t.displayCoordinates))return t.displayCoordinates}}areCoordinatesValid(t){return!!(t&&t.latitude&&t.longitude)}}function B(t,e){if(!t)return;const i=t.routeLabel,a=t.stops;let o;if(e&&a&&a.length>=2){const t=$(a[0]),i=$(a[a.length-1]);t&&i&&(o=e.replace("{0}",t).replace("{1}",i))}return i||o}function $(t){return t?t.originalName||t.address:null}function R(t){if(!t)return;const e={id:t.targetId||t.TargetId,createdDateTime:t.createdDateTime||t.CreatedDateTime},i=t.metadata||t.Metadata;return i&&(e.routeLabel=i.Name,i.Items&&(e.stops=i.Items.map((t=>{if(!t||!t.Metadata||!t.Metadata.Value)return{};const e=t.Metadata.Value;return{displayCoordinates:e.DisplayCoordinates&&e.DisplayCoordinates.Latitude&&e.DisplayCoordinates.Longitude?{latitude:e.DisplayCoordinates.Latitude,longitude:e.DisplayCoordinates.Longitude}:void 0,routableCoordinates:e.RoutableCoordinates&&e.RoutableCoordinates.Latitude&&e.RoutableCoordinates.Longitude?{latitude:e.RoutableCoordinates.Latitude,longitude:e.RoutableCoordinates.Longitude}:void 0,address:e.Address&&e.Address.SingleLine,itineraryToNextInfo:e.ItineraryInformation&&{mode:U(e.ItineraryInformation.ModeToNext),routeAvoids:e.ItineraryInformation.RouteAvoid},originalName:e.OriginalName,entityId:e.EntityId}})))),e}function U(t){switch(t){case n.Driving:return a.Driving;case n.Transit:return a.Transit;default:return a.Driving}}var P=i(68364),j=i(26415),E=i(791),G=i(11708);function V(){return(0,O.mG)(this,void 0,void 0,(function*(){try{return yield E.N.updateSegmentCardsEnableStatus([{cardType:G.f.TrafficCard,enabled:!1}]),!0}catch(t){return(0,P.OO)(t,j.q$m,"Traffic user settings update failed"),!1}}))}function N(t,e,i,a,o,n,r,s,l,d,c,u){let h=null;if(t&&t.latitude&&t.longitude){const g=p,f=e?g.darkModeMapStyle:g.lightModeMapStyle,m=rt(i,!!s,n);let v;v=o?`${parseFloat(t.latitude).toFixed(2)},${parseFloat(t.longitude).toFixed(2)}`:`${parseFloat(t.latitude).toFixed(4)},${parseFloat(t.longitude).toFixed(4)}`;const y=null!=r?r:W(i,s),b=d||g.informationalMapLayers;let x;if(x=c||(i?"37":"54"),h=a.replace("{style}",f).replace("{coordinates}",v).replace("{zoom}",y.toString()).replace("{resolution}",m).replace("{layers}",b).replace("{culture}",(0,M.Yq)().CurrentMarket),l){h+="&pushpin="+(u?`${u.latitude},${u.longitude}`:v)+";"+x}}return h}function W(t,e){const i=p;return t?i.fullMapImageZoom:e?i.quarterMapImageZoom:i.halfMapImageZoom}function q(t,e,i,a,o,n,r){const s=p,l=(0,M.Yq)().CurrentMarket===F.I.ZHCN,d=l?x:b;let c;if(c=t.category===f.Collision?d.collision:t.category===f.Construction?d.construction:t.isClosedForRouting?d.closure:d.defaultIncident,l){let e;switch(t.delayColor){case"delay-green":e=C;break;case"delay-orange":default:e=w;break;case"delay-red":e=T}c=c.replace("{severity}",e)}const u=s.incidentMapZoom;let h,g=!0;if(a&&t.location){const o=r||s.incidentMapHeight;return N(t.location,e,a,i,!1,{height:o,width:s.incidentMapWidth},u,void 0,!0,s.trafficFlowMapLayer,c,t.location)}h={x:n?s.incidentMapHalfCardItemOffsetXV2:s.incidentMapHalfCardItemOffsetXV1,y:0},g=!1,o&&(h.x=-h.x);const m=t.location&&yt(t.location,h,u);return m&&N(m,e,a,i,!1,void 0,u,void 0,g,s.trafficFlowMapLayer,c,t.location)}function Q(t,e,i,a,o){let n;if(t&&t.latitude&&t.longitude){const r=p,s="tall"===o?r.gasStationMapTallHeight:r.gasStationMapHeight,l=`${(r.gasStationMapWidth*r.mapImageResolutionFactor).toFixed()},${(s*r.mapImageResolutionFactor).toFixed()}`;n=i.replace("{layers}",r.cameraCardMapLayersV2).replace("{style}",e?r.darkModeMapStyle:r.lightModeMapStyle).replace("{coordinates}",`${t.latitude},${t.longitude}`).replace("{zoom}",r.gasStationMapZoom.toString()).replace("{culture}",(0,M.Yq)().CurrentMarket).replace("{resolution}",l),a&&(n=n.concat("",a))}return n}function Y(t,e){if(!t||!t.Routes||!e)return null;const i=t.Routes[0],a=i.End&&i.End.AddressType,o=_(i,e,a);let n,r;return i&&(n={longitude:i.Start&&i.Start.Location.Longitude,latitude:i.Start&&i.Start.Location.Latitude},r={longitude:i.End&&i.End.Location.Longitude,latitude:i.End&&i.End.Location.Latitude}),{commuteDetails:o,start:n,end:r,destinationAddressType:a}}function Z(t){if(!t)return;return{longitude:t.longitude.toString(),latitude:t.latitude.toString()}}function K(t,e){return t?t.map((t=>({calculatedRoute:e&&_(t.CalculatedRoute,e),routeDefinition:R(t.RouteDefinition)}))):null}function X(t,e,i,a,o,n,r){let s,l;const c=t.commuteTexts;return void 0!==r&&c&&(r===d.Home?(s=c.work,l=c.home):(s=c.home,l=c.work)),{commuteTime:`${(a/60).toFixed()} ${t.min}`,delay:i,viaRoads:t.via&&t.via.replace("{0}",o),delayColor:e,travelDurationMin:Math.ceil(a/60),commuteStart:s,commuteEnd:l,boundingBoxLatLon:n}}function J(t){if(t&&Array.isArray(t)&&4===t.length&&t.every((t=>"number"==typeof t)))return{start:{latitude:t[0],longitude:t[1]},end:{latitude:t[2],longitude:t[3]}}}function _(t,e,i){if(!t)return null;const[a,o]=et(t.TrafficCongestion,e),n=J(t.BoundingBox);return X(e,a,o,t.TravelDuration,t.ViaRoads,n,i)}function tt(t,e,i){if(!t)return null;const[a,o]=et(function(t){switch(t){case s.Mild:return r.Light;case s.Medium:return r.Moderate;case s.Heavy:return r.Heavy;default:return r.None}}(t.trafficCongestion),e),n=t&&t.routeLegs&&t.routeLegs[0].description,l=J(t.bbox);return X(e,a,o,t.travelDurationTraffic,n,l,i)}function et(t,e){return t===r.Light?["delay-green",e.noTraffic]:t===r.Moderate?["delay-orange",e.moderateTraffic]:t===r.Heavy?["delay-red",e.heavyTraffic]:["delay-green",e.fasterThanUsual]}function it(t){if(!t)return null;return{congestion:t.AreaTrafficCongestion,delayColor:t.DelayColor,supported:t.AreaDelaySupported}}function at(t,e,i,a,o){if(!e)return null;const n=t?new Map([["accidents",t.accidents],["construction",t.construction],["roadClosures",t.roadClosures],["news",t.news],["events",t.events]]):new Map,r=t&&t.trafficSummaryItemSingular?new Map([["accidents",t.trafficSummaryItemSingular.accidents],["construction",t.trafficSummaryItemSingular.construction],["roadClosures",t.trafficSummaryItemSingular.roadClosures],["news",t.news],["events",t.trafficSummaryItemSingular.events]]):new Map;return e.filter((t=>(D.includes(t.key)||"news"===t.key&&i)&&0!=t.statValue)).map((e=>{let i;if(o){const t=new URL(o);t.searchParams.append("intent",e.key),i=t.href}const s=function(t,e){switch(t){case"Last24hrs":return e.lastXHours&&e.lastXHours.replace("{0}","24");case"Last48hrs":return e.lastXHours&&e.lastXHours.replace("{0}","48");case"In24hrs":return e.inXHours&&e.inXHours.replace("{0}","24");case"In48hrs":return e.inXHours&&e.inXHours.replace("{0}","48")}}(e.period,t);let l;const d=n.get(e.key),c=r.get(e.key);l=e.statValue>1?d||c:c||d;const u=l&&t&&t.summaryTooltipText?t.summaryTooltipText.replace("{0}",e.statValue.toString()).replace("{1}",l):l;return{categoryNameText:l,categoryItemCount:e.statValue,period:e.period,categoryType:e.key,itemTelemetryTag:a&&a.getMetadataTag(),clickthroughUrl:i,periodDisplayText:s,tooltipText:u}}))}function ot(t,e,i,a){if(!e||!i)return t&&t.title;const o=1!==i,n=e.congestionText;if(o||!t){const i=e.city;return i&&n?a?n+" — "+i:n.toLocaleUpperCase((0,M.Yq)().CurrentMarket)+" — "+i.toLocaleUpperCase((0,M.Yq)().CurrentMarket):t&&t.title}if(a&&t.trafficNearYou)return t.trafficNearYou;{const i=e.areaCongestion;if(i===r.Heavy&&t.heavyTrafficNearYou)return t.heavyTrafficNearYou.toLocaleUpperCase((0,M.Yq)().CurrentMarket);if(i===r.Moderate&&t.moderateTrafficNearYou)return t.moderateTrafficNearYou.toLocaleUpperCase((0,M.Yq)().CurrentMarket);if(i===r.Light&&t.lightTrafficNearYou)return t.lightTrafficNearYou.toLocaleUpperCase((0,M.Yq)().CurrentMarket);if(t.noTrafficNearYou)return t.noTrafficNearYou.toLocaleUpperCase((0,M.Yq)().CurrentMarket)}return null}function nt(t,e){switch(t){case r.Heavy:return[e?"#e87979":"#d83b01","delay-red"];case r.Moderate:return[e?"#e98f6d":"#be5a00","delay-orange"];case r.Light:case r.None:default:return[e?"#74b374":"#107c10","delay-green"]}}function rt(t,e,i){const a=p;return i&&i.width&&i.height?`${(i.width*a.mapImageResolutionFactor).toFixed()},${(i.height*a.mapImageResolutionFactor).toFixed()}`:t?`${(a.cardWidth*a.mapImageResolutionFactor).toFixed()},${((i&&i.height||a.fullCardHeight)*a.mapImageResolutionFactor).toFixed()}`:e?`${(a.quarterMapWidth*a.mapImageResolutionFactorQuarter).toFixed()},${(a.quarterMapHeight*a.mapImageResolutionFactorQuarter).toFixed()}`:`${(a.cardWidth*a.mapImageResolutionFactor).toFixed()},${((i&&i.height||a.halfCardHeight)*a.mapImageResolutionFactor).toFixed()}`}function st(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){return yield e.getDirectionsForMyRoute(t,p.customRoutesApiKey,(0,M.Yq)().CurrentMarket).then((t=>{if(t&&t.results){let e="Light Traffic",i="delay-green";switch(t.results[0].trafficCongestion){case s.Mild:e="Light Traffic",i="delay-green";break;case s.Medium:e="Moderate Traffic",i="delay-orange";break;case s.Heavy:e="Heavy Traffic",i="delay-red"}return{commuteTime:(t.results[0].travelDurationTraffic/60).toString(),delay:e,viaRoads:"",delayColor:i,travelDurationMin:Math.round(t.results[0].travelDurationTraffic/60)}}})).catch((t=>{}))}))}function lt(t,e,i){return(0,O.mG)(this,void 0,void 0,(function*(){let a;if(!(e.end&&e.end.latitude&&e.end.longitude&&e.start&&e.start.latitude&&e.start.longitude))return(0,P.H)(j.Nol,"failed to get reverse commute data: malformed current commute data"),null;try{a=yield t.getDirectionsWithLocationStrings(p.customRoutesApiKey,"",e.end.latitude,e.end.longitude,e.start.latitude,e.start.longitude,(0,M.Yq)().CurrentMarket)}catch(t){return(0,P.OO)(t,j.Nol,"failed to get reverse commute directions data"),null}if(a&&a.results&&a.results.length>0){const t=a.results[0],o=e.destinationAddressType===d.Work?d.Home:d.Work;return{destinationAddressType:o,commuteDetails:tt(t,i,o),start:e.end,end:e.start}}return(0,P.H)(j.Nol,"failed to get reverse commute directions data: empty directionsResponse"),null}))}function dt(t){return t?{latitude:t.Latitude,longitude:t.Longitude,locality:t.City,accuracy:t.Accuracy}:null}function ct(t){new URL(location.href).searchParams.forEach(((e,i)=>{"item"===i&&t.searchParams.append(i,e)}))}function ut(t){return t?t.map((t=>({start:dt(t.Start&&t.Start.Location),end:dt(t.End&&t.End.Location),congestion:t.TrafficCongestion,duration:t.TravelDuration}))):null}function ht(t){if(!t)return new Array;const e=new Array;for(const i of t){const t={id:i.Id,location:{latitude:i.Location.Latitude,longitude:i.Location.Longitude},name:i.Name,url:i.Url,temporaryPassword:i.TemporaryPassword,copyrightNotice:i.CopyrightNotice,gridId:i.GridId,isAreaCamera:i.IsAreaCamera,score:i.Score,labels:i.Labels,congestion:i.TrafficCongestion};e.push(t)}return e}function gt(t,e,i,a,o){var n,r,s;if(!i)return;const{location:l,locationDetectionMode:d,cameras:c,collisionsAndConstructions:u,trafficStatusList:h}=i;if(t.searchParams.append("tzo",`${(new Date).getTimezoneOffset()}`),t.searchParams.append("lh",`${(new Date).getHours()}`),t.searchParams.append("cardSize",`${e}`),t.searchParams.append("ldm",`${d}`),l){const{latitude:e,longitude:i}=l;e&&i&&t.searchParams.append("cp",`${e},${i}`)}t.searchParams.append("tfsumct",`${null!==(n=h&&h.length)&&void 0!==n?n:0}`),t.searchParams.append("tfsums",(h?h.map((t=>`${t.key}:${t.statValue}`)):[]).join(",")),t.searchParams.append("tfcamct",`${c&&c.length>0?c.filter((t=>!t.isAreaCamera)).length:0}`),t.searchParams.append("tfareacamct",`${c&&c.length>0?c.filter((t=>t.isAreaCamera)).length:0}`),t.searchParams.append("tfcolconst",`${null!==(r=u&&u.length)&&void 0!==r?r:0}`),t.searchParams.append("tfddct",`${null!==(s=a&&a.length)&&void 0!==s?s:0}`),t.searchParams.append("tfdd",`${(null!=a?a:[]).join(",")}`),t.searchParams.append("tfview",`${o}`),t.searchParams.append("home",i&&i.home?"1":"0"),t.searchParams.append("work",i&&i.work?"1":"0"),t.searchParams.append("homedist",`${xt(i&&i.home,i&&i.location)}`),t.searchParams.append("workdist",`${xt(i&&i.work,i&&i.location)}`),t.searchParams.append("accuracy",`${i&&i.location&&i.location.accuracy}`),t.searchParams.append("cmoutcome",`${i&&i.commuteOutcome}`)}function pt(t){return 256<<t}function ft(t,e,i){return Math.min(Math.max(t,e),i)}function mt(t,e){const i=ft(t.latitude,-85.05112878,85.05112878),a=(ft(t.longitude,-180,180)+180)/360,o=Math.sin(i*Math.PI/180),n=.5-Math.log((1+o)/(1-o))/(4*Math.PI),r=pt(e);return{x:ft(a*r+.5,0,r-1),y:ft(n*r+.5,0,r-1)}}function vt(t,e){const i=pt(e),a=ft(t.x,0,i-1)/i-.5,o=.5-ft(t.y,0,i-1)/i;return{latitude:90-360*Math.atan(Math.exp(2*-o*Math.PI))/Math.PI,longitude:360*a}}function yt(t,e,i){const a=function(t){if(t)return{latitude:parseFloat(t.latitude),longitude:parseFloat(t.longitude)}}(t),o=a&&mt(a,i);let n=null;o&&(n={x:o.x-e.x,y:o.y-e.y});const r=n&&vt(n,i);return r?{latitude:`${r.latitude}`,longitude:`${r.longitude}`}:null}function bt(t){return t/360*2*Math.PI}function xt(t,e){if(!(t&&e&&t.latitude&&t.longitude&&e.latitude&&e.longitude))return-1;const i=bt(parseFloat(t.latitude)),a=bt(parseFloat(t.longitude)),o=bt(parseFloat(e.latitude)),n=bt(parseFloat(e.longitude));if(!(i&&a&&i&&a))return-1;const r=n-a,s=o-i,l=Math.sin(s/2),d=Math.sin(r/2),c=l*l+Math.cos(i)*Math.cos(o)*d*d;return 6371010*(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)))}function Ct(t){if(t&&t.start&&t.start.latitude&&t.end&&t.end.latitude&&t.xSizeInPx&&t.ySizeInPx&&t.urlTemplate){if(t.boundingBoxesPx){let e=-1,i="";return t.mirrorBoundingBoxes&&(t=Object.assign(Object.assign({},t),{boundingBoxesPx:t.boundingBoxesPx.map((e=>function(t,e){return{start:{x:e-t.end.x,y:t.start.y},end:{x:e-t.start.x,y:t.end.y}}}(e,t.xSizeInPx)))})),t.boundingBoxesPx.forEach((a=>{const o=wt(Object.assign(Object.assign({},t),{boundingBoxesPx:[a]}));o.zoomLevel>e&&(i=o.url,e=o.zoomLevel)})),i}return wt(t).url}return""}function wt(t){const e=t.urlTemplate.replace("{style}",t.isDarkMode?p.darkModeMapStyle:p.lightModeMapStyle).replace("{routeWaypoint1}",`${t.start.latitude},${t.start.longitude}`).replace("{routeWaypoint2}",`${t.end.latitude},${t.end.longitude}`).replace("{culture}",(0,M.Yq)().CurrentMarket).replace("{resolution}",`${t.xSizeInPx},${t.ySizeInPx}`);if(t.boundingBoxesPx&&t.boundingBoxLatLon){const i=t.boundingBoxesPx[0].end.x-t.boundingBoxesPx[0].start.x,a=t.boundingBoxesPx[0].end.y-t.boundingBoxesPx[0].start.y;for(let o=15;o>0;o--){const n=mt(t.boundingBoxLatLon.start,o),r=mt(t.boundingBoxLatLon.end,o),s=r.x-n.x,l=n.y-r.y;if(s<i&&l<a){const i={x:(r.x+n.x)/2,y:(r.y+n.y)/2},a={x:t.xSizeInPx/2-(t.boundingBoxesPx[0].start.x+t.boundingBoxesPx[0].end.x)/2,y:t.ySizeInPx/2-(t.boundingBoxesPx[0].start.y+t.boundingBoxesPx[0].end.y)/2},s=vt({x:i.x+a.x,y:i.y+a.y},o);return{url:e.replace("{zoom}",String(o)).replace("{center}",`${s.latitude},${s.longitude}`),zoomLevel:o}}}}return{url:e.replace("/{center}/{zoom}",""),zoomLevel:-1}}function Tt(){return p.cardWidth}function kt(t){switch(t){case l.Tall:return p.tallCardHeight;case l.Full:return p.fullCardHeight;case l.Half:default:return p.halfCardHeight}}var Dt=i(38156),It=i(60483);function St(t){return new It.D({name:t,action:Dt.Aw.View,behavior:Dt.wu.View,content:{type:Dt.uH.StructuredData,vertical:g}})}new Set([m.MyRoutes,m.MyRoutesUpsell,m.TransitAlert,m.CommuteUpsell]);var At=i(83152);const Lt=new Map([["default",h.Kilometers],["en-us",h.Miles],["es-us",h.Miles],["haw-us",h.Miles],["en-bz",h.Miles]]),Ot={Sunday:!0,Monday:!0,Tuesday:!0,Wednesday:!0,Thursday:!0,Friday:!0,Saturday:!0},Mt=new Map([["default",Object.assign(Object.assign({},Ot),{Saturday:!1,Sunday:!1})]]);function Ft(t){return(0,O.mG)(this,void 0,void 0,(function*(){E.N.updateUserSettings({commuteDistanceUnit:t})}))}function Ht(t){return(0,O.mG)(this,void 0,void 0,(function*(){E.N.updateUserSettings({commuteDaysOfWeek:JSON.stringify(t)})}))}function zt(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){"Home"==t?E.N.updateUserSettings({arriveAtHomeTime:String(e)}):E.N.updateUserSettings({arriveAtWorkTime:String(e)})}))}function Bt(t,e){let i,a=null;i=t&&t.commuteDistanceUnit&&t.commuteDistanceUnit in h?t.commuteDistanceUnit:Lt.get((0,M.Yq)().CurrentMarket?(0,M.Yq)().CurrentMarket.toLowerCase():"default");try{t.commuteDaysOfWeek&&(a=JSON.parse(t.commuteDaysOfWeek))}catch(t){}a||(a=Yt((0,M.Yq)().CountryCode));let o=!t||"0"!=t.isTrafficScenarioEnabled,n=!t||"0"!=t.isCommuteScenarioEnabled;return e||!o&&!n?!e||o||n||(o=!0,n=!0):(o=!1,n=!1),{isTrafficScenarioEnabled:o,isCommuteScenarioEnabled:n,commuteDaysOfWeek:a,arriveAtHomeTime:t&&t.arriveAtHomeTime?parseInt(t.arriveAtHomeTime):64800,arriveAtWorkTime:t&&t.arriveAtWorkTime?parseInt(t.arriveAtWorkTime):32400,distanceUnit:i}}function $t(){return(0,O.mG)(this,void 0,void 0,(function*(){try{const t=[{key:"$filter",value:`actionType eq 'Follow' and targetType eq '${At.L.Traffic}' and (degree eq 'HomeLocation' or degree eq 'WorkLocation')`}],e=yield E.N.readPdpWithTargetType(At.L.Traffic,!1,void 0,void 0,!0,t);if(e&&e.value)return{home:Ut(Rt(e.value,"HomeLocation")),work:Ut(Rt(e.value,"WorkLocation"))}}catch(t){}return{home:null,work:null}}))}["np","my"].forEach((t=>Mt.set(t,Object.assign(Object.assign({},Ot),{Saturday:!1})))),["jo","il","af","dz","bh","bd","eg","iq","ly","mv","om","qa","sa","sd","sy","ye","kw"].forEach((t=>Mt.set(t,Object.assign(Object.assign({},Ot),{Friday:!1,Saturday:!1})))),["id","uz","co","pk","ph","gq","hk","mx","kp","ug","bo","in"].forEach((t=>Mt.set(t,Object.assign(Object.assign({},Ot),{Sunday:!1})))),["bn"].forEach((t=>Mt.set(t,Object.assign(Object.assign({},Ot),{Friday:!1,Sunday:!1})))),["ps","so","ir","dj"].forEach((t=>Mt.set(t,Object.assign(Object.assign({},Ot),{Friday:!1}))));const Rt=(t,e)=>{const i=t.filter((t=>t.degree==e));if(0==i.length)return null;let a=i[0];return i.forEach((t=>{t.updatedDateTime>a.updatedDateTime&&(a=t)})),a},Ut=t=>{if(!t||!t.definitionName||!t.metadata)return null;try{const e=JSON.parse(t.metadata);return{latitude:e.DisplayCoordinates.Latitude,longitude:e.DisplayCoordinates.Longitude,displayName:e.Address.SingleLine}}catch(t){}return null},Pt=(t,e,i,a,o,n,r,s,l)=>"number"!=typeof e||"number"!=typeof i?Promise.resolve(!1):E.N.updateTrafficMyRoutes(t?"HomeLocation":"WorkLocation",Gt(e,i),n,JSON.stringify({DisplayCoordinates:{Latitude:e,Longitude:i},Name:a,OriginalName:a,Address:{SingleLine:o},EntityId:n,properties:{locationType:r,entitySubTypeHints:s},bond_metadata:"Microsoft.Bing.GeoNotes.V1.Place"}),l),jt=t=>"PostalAddress"==t.typeV6?t.displayName:t.firstLine,Et=t=>"PostalAddress"==t.typeV6?t.displayName:t.formattedAddress,Gt=(t,e)=>`${e},${t}`,Vt=(t,e=null)=>{const i="Home"==t?"HomeLocation":"WorkLocation";return E.N.readPdpWithTargetType(At.L.Traffic).then((t=>(t.value.filter((t=>t.degree==i)).forEach((t=>{t.definitionName!=e&&E.N.deleteFromPdp(At.L.Traffic,"definitionName",[t.definitionName],{},i)})),!0)))},Nt=(t,e,i,a,o,n,r,s)=>(0,O.mG)(void 0,void 0,void 0,(function*(){const l=yield E.N.updateTrafficMyRoutes("MyTransit",t,o,{Value:{StopId:i,StopName:a,StopLatitude:r,StopLongitude:s,BusLineName:e,EntityId:o}},n);return l||(0,P.H)(j.wke,"TrafficCard Error saving a transit line"),l}));function Wt(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){const i=yield E.N.deleteFromPdp(At.L.Traffic,"definitionName",[e],{},t);return i||(0,P.H)(j.GKo,"TrafficCard Error deleting a transit line"),i}))}const qt=t=>t?`${t.firstLine}, ${t.formattedAddress}`:"",Qt=t=>{const e=t.geoId?t.geoId:t.entityId;if(e){const t=e.search(":"),i=e.search('"'),a=e.lastIndexOf('"');if(t>=0&&i==t+1&&a>i&&a==e.length-1)return e.substring(i+1,a)}return e},Yt=t=>{if(t){const e=Mt.get(t.toLowerCase());if(e)return e}return Mt.get("default")},Zt="trgas1";function Kt(t,e){if(e.gasPriceTexts&&e.gasPriceTexts.genericGas){const t=e.gasPriceTexts.genericGas;return{heading:t.display,title:t.toolTip}}const i=new Map([[v.Regular,e.gasPriceTexts&&e.gasPriceTexts.regularGas],[v.Midgrade,e.gasPriceTexts&&e.gasPriceTexts.midgradeGas],[v.Premium,e.gasPriceTexts&&e.gasPriceTexts.premiumGas],[v.Diesel,e.gasPriceTexts&&e.gasPriceTexts.dieselGas]]).get(t);if(i)return{heading:i.display,title:i.toolTip}}function Xt(t,e,i,a){if(!t.gasStation)return;const o=t.gasStation.location,n=t.gasStation.ypid;let r;if(e&&o&&o.latitude&&o.longitude&&n){r=e.replace("{query}",i.gasPriceTexts&&i.gasPriceTexts.gasStations&&i.gasPriceTexts.gasStations.replace(" ","+")).replace("{locale}",(0,M.Yq)().CurrentMarket).replace("{zoom}","13").replace("{coordinates}",`${o.latitude}~${o.longitude}`).replace("{ypid}",n).replace("{formCode}",null!=a?a:Zt);const t=new URL(r);return ct(t),t&&t.href}}var Jt,_t=i(9375),te=i(49972);function ee(t,e,i={},a=!1){return new Promise((function(o,n){const r=new XMLHttpRequest;if(r.open(t,e),r.timeout=1e4,r.onload=function(){o(r)},r.onerror=function(){n(new Error(`Call failed. Status code: ${r.status}. Status text: ${r.statusText}`))},i)for(const t in i)r.setRequestHeader(t,i[t]);a&&(r.responseType="arraybuffer"),r.send()}))}function ie(t,e){return ee(t,e,{},!0)}function ae(t){const e=new Uint8Array(t);let i=e.length;const a=new Array(i);for(;i--;)a[i]=String.fromCharCode(e[i]);const o=a.join("");return window.btoa(o)}!function(t){t.getbase64FromApiResponse=ae,t.makeImageRequest=ie,t.makeRequest=ee}(Jt||(Jt={}));var oe,ne=i(36569),re=i(67267),se=i(33799),le=i(33379),de=i(51671);!function(t){t[t.Green=0]="Green",t[t.Orange=1]="Orange",t[t.Red=2]="Red"}(oe||(oe={}));class ce{constructor(t){this.delayClassToColorMap={0:"delay-green",1:"delay-orange",2:"delay-red"},this.fetchImpl=t||((0,le.N)()?window.fetch.bind(window):fetch)}getIncidentsResponse(t,e,i={},a=!0,o){return(0,O.mG)(this,void 0,void 0,(function*(){let n=(0,_t.ku)(),r=p.apiKey;n&&p.ocid2Set.has(n)?r=p.apiKey2:n=p.ocid;const s=(0,M.Yq)().AppType,l=p.appTypeToExperience.get(s),d=p.oneServiceTrafficApi.replace("{APIKEY}",r).replace("{MARKET}",(0,M.Yq)().CurrentMarket).replace("{OCID}",n).replace("{USER}",null!=t?t:(0,M.Yq)().UserId).replace("{EXPERIENCE}",null!=l?l:"Unknown"),c=(0,M.Yq)().IsChinaCompliance?p.msnAssetsHostCn:p.msnAssetsHost,u=new URL(d,c),h=(yield(0,de.XJ)())===se.Hy.SignedIn?re.$.getOneServiceParamsWithAuth((0,M.Yq)().UserId,n):re.$.getOneServiceParamsWithoutAuth((0,M.Yq)().UserId,n),g=new Set(["apikey","ocid"]);var f;(f=h)&&f.forEach((t=>{t.value&&!g.has(t.key)&&u.searchParams.set(t.key,t.value)}));const m={method:"GET",headers:i};o&&(m.credentials="include");const v=this.fetchImpl(u.href,m).then((t=>(0,O.mG)(this,void 0,void 0,(function*(){const i=yield t.text();let a;try{a=JSON.parse(i)}catch(e){throw"string"==typeof i&&(e.message=`${e.message}. Beginning of response: ${i}. Status code: ${t.status}`),e}return yield this.getIncidentsFromApiResponse(a,e)}))));return yield Promise.resolve(v).then((t=>t)).catch((t=>(a&&(0,P.OO)(t,j.KzX,"Getting the proper json response from the datatstore and parsing it failed",`URL: ${u.href}, Error: ${(0,te.n)(t)}`),null)))}))}getIncidentsFromApiResponse(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){if(t&&t.length>0&&"TrafficDelays"==t[0].type){const i=JSON.parse(t[0].data);return yield this.parseIncidentsFromJson(i,e)}return null}))}parseIncidentsFromJson(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){if(!t)return null;const a=t.TrafficIncidents&&t.TrafficIncidents.length>0&&t.TrafficIncidents[0].IsPriorityOnCard,o=t.Home&&dt(t.Home.Location);o&&(o.displayName=t.Home&&t.Home.Address);const n=t.Work&&dt(t.Work.Location);n&&(n.displayName=t.Work&&t.Work.Address);const r={roads:this.getRoads(t.TrafficDelays),collisionsAndConstructions:a?this.getCollisionsAndConstructions(t.TrafficIncidents):null,zoomLevel:t.SuggestedZoomLevel,cameras:ht(t.TrafficCameras),areaTrafficDelay:it(t.AreaTrafficDelay),commuteData:e&&Y(t,e),location:t.Location&&dt(t.Location),centerLocation:t.CenterLocation&&dt(t.CenterLocation),home:o,work:n,trafficTimes:ut(t.TrafficTime),trafficStatusList:this.getTrafficStatusItems(t.TrafficStatusList),impressions:t.ImpressionFlights,isSupportedArea:t.SupportedArea,initialTrafficInfoType:t.TrafficInfoType,availableInfoTypes:t.AvailableInfoTypes,gasStation:this.getGasStationToDisplay(t.GasStations),customRoutes:t.CustomRoutes&&K(t.CustomRoutes,e),transitLines:t.TransitNearbyLines?this.getTransitLines(t.TransitNearbyLines.TransitLines):null,myTransit:t.MyTransitInfoByStop?this.getTransitDepartures(t.MyTransitInfoByStop.InfoByStopList):null,commuteOutcome:t.CommuteOutcome,previewInfo:t.PreviewInfo,badgeInfo:t.BadgeInfo};if(t.TrafficAnalytics){const{parseAnalytics:e}=yield i.e("libs_traffic-chart-utils_dist_index_js").then(i.bind(i,47593));r.analytics=e(t.TrafficAnalytics,!0)}return r.collisionsAndConstructions&&r.collisionsAndConstructions.length>0||(r.roads=this.combineRoadsAndIncidents(r.roads,t.TrafficIncidents)),t.LocationMode&&(r.locationDetectionMode="AutoDetect"===t.LocationMode?1:2),this.containsInfoTypeData(r)||((0,P.H)(j.Y2u,"traffic infotype and data mismatch",JSON.stringify(t)),r.initialTrafficInfoType=L.Unknown),r}))}containsInfoTypeData(t){switch(t.initialTrafficInfoType){case L.AreaSummary:return!!t.areaTrafficDelay;case L.Camera:return t.cameras.length>0;case L.CollisionAndConstruction:return!!(t.collisionsAndConstructions&&t.collisionsAndConstructions.length>0);case L.Commute:return!!t.commuteData;case L.GasPrice:return!!t.gasStation;case L.Delays:case L.Incidents:case L.Mixed:return t.roads.length>0;case L.MyRoutes:return t.customRoutes.length>0;case L.Summary:return t.trafficStatusList.length>0;case L.TravelTimes:return!!(t.trafficTimes&&t.trafficTimes.length>0);default:return!0}}getRoads(t){const e=new Array;return t&&t.forEach((t=>{const i={delay:t.Delay,name:t.Incident,locality:t.Locality,congestion:t.TrafficCongestion,isIncident:!1},a=t.BoundingBoxMin,o=t.BoundingBoxMax;a&&o&&"number"==typeof a.Latitude&&"number"==typeof a.Longitude&&"number"==typeof o.Longitude&&"number"==typeof o.Longitude&&(i.location={latitude:((a.Latitude+o.Latitude)/2).toString(),longitude:((a.Longitude+o.Longitude)/2).toString()}),e.push(i)})),e}combineRoadsAndIncidents(t,e){const i=new Array,a=new Array;return e&&(e.filter((t=>1==t.ShowOnCard)).forEach((t=>{i.push(this.convertIncidentToRoad(t))})),e.filter((t=>null==t.ShowOnCard||0==t.ShowOnCard)).forEach((t=>{a.push(this.convertIncidentToRoad(t))}))),t.concat(i).concat(a)}getCollisionsAndConstructions(t){if(!t)return null;const e=new Array;return t&&t.forEach((t=>{if(!t.IsPriorityOnCard)return;const i={id:t.IncidentId,delay:t.Delay,name:t.Incident,description:t.Description,delayColor:this.delayClassToColorMap[t.DelayColor],alertCCodes:t.AlertCCodes,isClosedForRouting:t.IsClosedForRouting,isIncident:!0,isHighPriorityIncident:t.IsPriorityOnCard,category:t.Category,updateTime:new Date};t.StartTime&&(i.startTime=new Date(t.StartTime)),t.EndTime&&(i.endTime=new Date(t.EndTime)),t.Location&&"number"==typeof t.Location.Latitude&&"number"==typeof t.Location.Longitude&&(i.location={latitude:t.Location.Latitude,longitude:t.Location.Longitude}),e.push(i)})),e}getGasStationToDisplay(t){if(!t||0===t.length)return null;const e=[v.Regular,v.Midgrade,v.Premium,v.Diesel];let i;for(i of e){const e=[];if(t.forEach((t=>{const a=t.GasPrices.filter((t=>t.Grade===i&&t.Unit in y));a.length>0&&e.push(this.convertGasStation(t,a[0]))})),e.length>0){const t=e.sort(((t,e)=>t.gasPrice-e.gasPrice)),i=t[0],a=t.reduce(((t,e,i)=>t+`&pushpin=${e.location.latitude},${e.location.longitude};${0===i?b.selectedGasStation:b.backgroundGasStation}`),""),o=(0,M.Yq)().CurrentMarket,n=i&&new Intl.NumberFormat(o,{currency:i.currency,style:"currency",minimumFractionDigits:2,maximumFractionDigits:2}),r=n&&n.format(i.gasPrice);return Object.assign(Object.assign({},i),{mapPushPins:a,formattedGasPrice:r})}}return(0,P.H)(j.S5R,"get best gas station failed",JSON.stringify(t)),null}getTransitLines(t){if(!t||0===t.length)return null;const e=new Array;return t.forEach((t=>{const i=new Array,a=new Array;t.Stops.forEach((t=>{const e={stopId:t.StopId,name:t.StopName,latitude:t.Latitude,longitude:t.Longitude,distanceMi:t.DistanceInMiles};i.push(e)})),t.ServiceAlerts&&t.ServiceAlerts.forEach((t=>{const e={Severity:t.Severity,Type:t.Type,description:t.description,startTime:t.startTime};a.push(e)}));const o={name:t.Name,headSign:t.HeadSign,direction:t.Direction||"",stops:i,serviceAlerts:a};e.push(o)})),e}getTransitDepartures(t){if(!t||0===t.length)return null;const e=new Array;return t.forEach((t=>{const i=new Array,a=new Set,o=new Map;t.BusLines.forEach((t=>{a.add(t.abbreviatedName),16777215!==t.lineColor&&o.set(t.abbreviatedName,t.lineColor)}));const n=Math.min(t.Trips.length,4);for(let e=0;e<n;e+=1){const a=t.Trips[e],n={line:{name:a.AbbreviatedName,headSign:a.HeadSign,color:o.get(a.AbbreviatedName)},departure:a.Departure,predictedDepature:a.PredictedDeparture,hasRealTime:a.hasRealTime};i.push(n)}const r={stopId:t.StopId,name:t.StopName,latitude:t.Position.coordinates[0],longitude:t.Position.coordinates[1],departures:i,busLinesSaved:a};e.push(r)})),e}convertGasStation(t,e){return{name:t.Name,gasPrice:e.Price,ypid:t.Ypid,currency:y[e.Unit],grade:e.Grade,location:{latitude:t.Location.Latitude,longitude:t.Location.Longitude}}}convertIncidentToRoad(t){const e={id:t.IncidentId,delay:t.Delay,name:t.Incident,description:t.Description,delayColor:this.delayClassToColorMap[t.DelayColor],alertCCodes:t.AlertCCodes,isIncident:!0};return t.StartTime&&(e.startTime=new Date(t.StartTime)),t.EndTime&&(e.endTime=new Date(t.EndTime)),t.Location&&"number"==typeof t.Location.Latitude&&"number"==typeof t.Location.Longitude&&(e.location={latitude:t.Location.Latitude,longitude:t.Location.Longitude}),e}cacheCameras(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){return t?(yield Promise.all(t.map((t=>this.cacheIndividualCamera(t,e)))),t):null}))}cacheIndividualCamera(t,e){return(0,O.mG)(this,void 0,void 0,(function*(){if(!t.isCaching){t.isCaching=!0;const i=p.cameraImageUrlTemplate.replace("{cameraId}",t.url);yield Jt.makeImageRequest("GET",i).then((i=>{const a=Jt.getbase64FromApiResponse(i.response);null!=a&&(t.base64=a,t.cachedUrl="data:image/png;base64,"+t.base64);const o=i.getResponseHeader("x-bm-collecteddate");if(o){const i=o.split(" "),a=new Date(i[0]);if(t.timestamp=new Date(i[0]+i[1]),e&&e.today&&e.yesterday){const i=this.isSameDay(o)?e.today:e.yesterday,n=new ne.Q((0,M.Yq)().CurrentMarket).formatHourMinute(a);t.timestampText=`${i} · ${n}`}}t.isCached=!0})).catch((t=>((0,P.OO)(t,j.c7c,"fetch camera image failed",i),null)))}return t.base64}))}getTrafficStatusItems(t){if(!t)return new Array;const e=new Array;return t.forEach((t=>{const i={key:t.Key,statValue:t.StatValue,period:t.Period};e.push(i)})),e}parseDateCollected(t){const e=new Date(t);return e.setTime(e.getTime()-60*e.getTimezoneOffset()*1e3),e}getTimezoneOffsetInMs(t){const e=t.split(":"),i=parseInt(e[0]);return 3600*i*1e3+(i>=0?1:-1)*parseInt(e[1])*60*1e3}isSameDay(t,e=new Date){const i=t.split(" "),a=i[0],o=i[1],n=this.getTimezoneOffsetInMs(o),r=this.parseDateCollected(a);return e.setTime(e.getTime()+n),e.getUTCDate()===r.getUTCDate()&&e.getUTCMonth()===r.getUTCMonth()&&e.getUTCFullYear()===r.getUTCFullYear()}}class ue{constructor(t){this.fetchImpl=t,this.getTransitLines=()=>(0,O.mG)(this,void 0,void 0,(function*(){const t=[],e=yield this.fetchAllTransitLines();return null!==e&&e.split("\n").forEach((e=>{const i=e.split("\t");if(i.length>=3){const e=i[0],a=i[1],o=i[2];t.push({lineId:e,shortName:a,longName:o})}})),t})),this.fetchFavoriteTransitLines=t=>(0,O.mG)(this,void 0,void 0,(function*(){var e;try{const i=yield E.N.readPdpWithTargetType(At.L.Traffic,!0,void 0,void 0,!0),a=i&&(null===(e=i.value)||void 0===e?void 0:e.filter((e=>"Follow"===e.actionType&&e.degree===t)));if(a){const t=[];if(a.forEach((e=>{var i,a,o,n;if(null===(a=null===(i=null==e?void 0:e.metadata)||void 0===i?void 0:i.Value)||void 0===a?void 0:a.BusLineName){const i=null==e?void 0:e.definitionName,a=null===(n=null===(o=null==e?void 0:e.metadata)||void 0===o?void 0:o.Value)||void 0===n?void 0:n.BusLineName;t.push({lineId:i,shortName:a,longName:a})}})),t&&t.length>0)return t}}catch(t){}return null}))}fetchAllTransitLines(t=!1){return(0,O.mG)(this,void 0,void 0,(function*(){const e={method:"GET"};t&&(e.cache="no-store");const i=new URL(p.transitLineUrlSubpath,p.msnAssetsHost);try{const t=yield(0,H.w)((()=>(0,O.mG)(this,void 0,void 0,(function*(){return yield this.fetchImpl(i.href,e)}))),"readAllTransitLines");if(!t||!t.ok)throw Error(`code=${t.status}, ${t.statusText}`);return yield t.text()}catch(t){return null}}))}}},16339:function(t,e,i){"use strict";i.d(e,{Iq:function(){return l},MD:function(){return r},gL:function(){return s}});var a=i(59049),o=i(14675);const n=new a.v("WidgetLoadTracker");function r(t){n.has(t)||("hidden"!==document.visibilityState?(0,o.c)((()=>n.set(t,!0))):n.set(t,!0))}const s=new a.v("WidgetAppState");var l;!function(t){t[t.IsDarkMode=1]="IsDarkMode",t[t.IsDashboardVisible=2]="IsDashboardVisible",t[t.ActionMenuStrings=3]="ActionMenuStrings",t[t.IsDynamicFeed=4]="IsDynamicFeed",t[t.SessionId=5]="SessionId",t[t.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",t[t.FeedRegionWidgets=7]="FeedRegionWidgets",t[t.DefaultPreviewType=8]="DefaultPreviewType",t[t.IsReauthRequired=9]="IsReauthRequired"}(l||(l={}))},68651:function(t,e,i){"use strict";i.d(e,{B$:function(){return f},f3:function(){return y},US:function(){return v},aS:function(){return p},gK:function(){return b}});var a=i(38156),o=i(16339),n='<svg width="4" height="4" viewBox="0 0 4 4"><rect width="4" height="4" rx="2" fill-opacity=".9"/></svg>',r=i(19456),s=i(53813),l=i(94522),d=i(60483),c=i(64434);let u,h,g;function p(t,e,i,d,c,p){const v=[];let y=0,b=!1;if(!t||!t.length)return;const x=o.gL.get(o.Iq.ActionMenuStrings),C=t.includes(f.Unpin);return g=C?"pinned":"feed",u=i||{},h=d,t.forEach((t=>{switch(t){case f.Small:y++,u.height=146,v.push({id:"small",glyph:c===t?n:void 0,title:x.small||"Small",ariaLabel:x.small||"Small",telemetryTag:m(`size_${f.Small}`,x.small,a.wu.Customize)});break;case f.Medium:y++,u.height=304,v.push({id:"medium",glyph:c===t?n:void 0,title:x.medium||"Medium",ariaLabel:x.medium||"Medium",telemetryTag:m(`size_${f.Medium}`,x.medium,a.wu.Customize)});break;case f.Large:y++,u.height=462,v.push({id:"large",glyph:c===t?n:void 0,title:x.large||"Large",ariaLabel:x.large||"Large",telemetryTag:m(`size_${f.Large}`,x.large,a.wu.Customize)});break;case f.Pin:v.push({id:"pinCard",glyph:l.Z,title:x.pinCard||"Pin widget",ariaLabel:x.pinCard||"Pin widget",telemetryTag:m("pinwidget",x.pinCard,a.wu.Pin)});break;case f.Customize:b=!0,y>1&&v.push({isDivider:!0}),v.push({id:"customize",glyph:r.Z,title:x.customize||"Customize widget",ariaLabel:x.customize||"Customize widget",onClick:()=>p("onShowSettingsEnd"),telemetryTag:m("editwidget",x.customize,a.wu.Customize)});break;case f.Unpin:!b&&y>1&&v.push({isDivider:!0}),v.push({id:"unpinCard",glyph:'<svg width="16" height="20" viewBox="0 0 17 16" fill="none"><path d="M16 15.5c0 .14-.04.25-.14.35-.1.1-.22.15-.35.15a.49.49 0 0 1-.36-.15l-5.03-5.02-1.14 3.81a.5.5 0 0 1-.18.26.46.46 0 0 1-.3.1.48.48 0 0 1-.35-.15L5 11.7.7 16H0v-.71L4.3 11 1.15 7.85A.49.49 0 0 1 1 7.5c0-.1.03-.2.09-.27a.55.55 0 0 1 .22-.18L4.9 5.6.15.85A.48.48 0 0 1 0 .5C0 .36.05.24.15.15A.5.5 0 0 1 .5 0c.13 0 .25.05.35.15l15 15c.1.1.15.21.15.35ZM7.24 5.1l-.75-.75 1.47-3.24A1.48 1.48 0 0 1 9.89.34c.18.08.34.18.48.32L15.3 5.6c.14.14.24.3.32.5a1.49 1.49 0 0 1-.8 1.95L11.52 9.4l-.76-.77 3.66-1.53a.5.5 0 0 0 .3-.46.48.48 0 0 0-.14-.35L9.66 1.38a.46.46 0 0 0-.16-.1.45.45 0 0 0-.19-.05c-.1 0-.19.03-.27.08a.5.5 0 0 0-.18.21L7.23 5.1ZM2.39 7.68l5.87 5.87 1.06-3.53-3.66-3.65L2.4 7.68Z"/></svg>',title:x.unpinCard||"Unpin widget",ariaLabel:x.unpinCard||"Unpin widget",telemetryTag:m("unpinwidget",x.unpinCard,a.wu.Unpin)});break;case f.PoweredBy:v.push({isDivider:!0}),v.push({id:"poweredBy",isText:!0,title:e||"Powered by Microsoft",ariaLabel:e||"Powered by Microsoft"});break;case f.RemoveWidget:v.push({id:f.RemoveWidget,glyph:s.Z,title:x.hideWidget,ariaLabel:x.hideWidget,telemetryTag:m("removewidget",x.hideWidget,a.wu.Hide)})}})),v}var f;function m(t,e,i){return new d.D({name:`${h}>customization_${t}`,type:a.c9.ActionButton,action:a.Aw.Click,behavior:i,zone:g,content:{headline:e,type:a.uH.StructuredData,vertical:h,category:h},destinationUrl:location.href,ext:u}).getMetadataTag()}function v(t){switch(t){case"_1x_1y":case"half":return"small";case"_1x_3y":case"tall":return"large";default:return"medium"}}function y(t,e,i){t&&i&&e&&(e(new CustomEvent("CardResized",{detail:{cardType:i,size:"medium"}})),t.style.zIndex=c.K.Above.toString(),t.style.height="304px")}function b(t,e,i,a){t&&i&&e&&(e(new CustomEvent("CardResized",{detail:{cardType:i,size:"small"}})),!1,t.style.zIndex="",t.style.height="")}!function(t){t.Small="small",t.Medium="medium",t.Large="large",t.Customize="customize",t.Pin="pin",t.Unpin="unpin",t.PoweredBy="poweredBy",t.RemoveWidget="removeWidget"}(f||(f={}))},75361:function(t,e,i){"use strict";i.d(e,{ss:function(){return A},FK:function(){return D},ZC:function(){return S},l1:function(){return T}});var a=i(26415),o=i(89696),n=i(51223),r=i(65135),s=i(9344),l=i(2040),d=i(16339),c=i(42821),u=i(33954);const h=window.__com_microsoft_dsh_widgetModelApiFactory,g=h&&h.tryGetApi("velocity",1,1);function p(){if(m("Feature_MultiAccount"))return h.tryGetApi("authenticator",1,1)}function f(t,e){e?r.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t.message,isAuthV2:!0})})):u.k.logError(t.message)}function m(t){return!(!g||!g.isFeatureEnabled(t))}const v="00000000400F9D16",y="service::www.msn.com::MBI_SSL",b="https://www.api.msn.com/",x="3a4d129e-7f50-4e0d-a7fd-033add0a29f4",C="User.Read Userinfo.ReadWrite",w="https://enterprisenews.microsoft.com/",T=1;let k;async function D(t){const e=Object.assign(Object.assign({},a.Rln),{message:"Exception fetching ProviderAuthority",pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState})});try{const i=p();if(i)return await async function(t,e){try{if(!t)throw Error("IAuthenticator is null");const e=(0,c.Yb)("GetAccountType_V2"),i=await t.getDefaultAccountIdAsync();return await t.isMSAAccountAsync(i)?(e(),"consumers"):await t.isAADAccountAsync(i)?(e(),"organizations"):(e(),null)}catch(t){return f(t,e),null}}(i,e);if(!t)throw Error("Widget instance is null");const a=L("GetAccountType"),o=t.tryGetApi("authenticator",T,T),n=await o.getProperty("ProviderAuthority");return a(),n}catch(t){return(0,n.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{pb:Object.assign(Object.assign({},e.pb),{error:t})})),null}}async function I(t,e,i,o,s=""){const l=Object.assign(Object.assign({},a.Rln),{message:"Exception calling GetToken",pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState})});try{const a=p();if(a)return await async function(t,e,i,a,o="",n,r){try{if(!t)throw Error("IAuthenticator is null");const r=(0,c.Yb)("GetToken_V2"),s=await t.getDefaultAccountIdAsync(),l=await t.getAccountTokenAsync(s,e,i,a,o,n||"com.msn.desktopfeed");return r(),l}catch(t){return f(t,r),null}}(a,e,i,o,s,t&&t.widgetId,l);if(!t)throw Error("Widget instance is null");const n=L("GetToken"),r=t.tryGetApi("authenticator",T,T),d=await r.getToken(e,i,o,s);return n(),{token:d,errorResult:0,interactionRequired:!1}}catch(t){return(0,n.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},l),{pb:Object.assign(Object.assign({},l.pb),{error:t})})),null}}async function S(t){const e=L("GetMuid"),i=await async function(t,e){const i=Object.assign(Object.assign({},a.Rln),{message:`Exception calling getProperty api for property: ${e}`,pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:t&&t.widgetId,widgetInstanceId:t&&t.instanceId,widgetState:t&&t.widgetState,property:`property: ${e}`})});try{const a=p();if(a)return await async function(t,e,i){try{if(!e)throw Error("Property is null");if(!t)throw Error("IAuthenticator is null");const i=(0,c.Yb)("GetProperty_V2"),a=await t.getDefaultAccountIdAsync(),o=await t.getAccountPropertyAsync(a,e);return i(),o}catch(t){return f(t,i),null}}(a,e,i);if(!t)throw Error("Widget instance is null");if(!e)throw Error("Property is null");const o=t.tryGetApi("authenticator",T,T);return await o.getProperty(e)}catch(t){return(0,n.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},i),{pb:Object.assign(Object.assign({},i.pb),{error:t})})),null}}(t,"MUID");return e(),i}async function A(t,e=!1,i){const o={};if(!t)return(0,n.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.Zj1),{message:"Failed to retrieve user auth token and MUID from WDX client due to undefined widget instance",pb:Object.assign(Object.assign({},a.Zj1.pb),{windowsSessionId:d.gL.get(d.Iq.SessionId)})})),o;const c=await D(t),u="organizations"===c,h="consumers"===c,g=u&&(e||d.gL.get(d.Iq.IsDynamicFeed));if(h||g){const e=await I(t,u?x:v,u?C:y,u?w:b),n=e&&e.token;if(n)g?o[l.Yu.entAuthorization]=n:h&&(o[l.Yu.rpsToken]=n);else{const e=await async function(){if(!m("Feature_ReauthRequiredUser"))return!1;try{const t=p();return!!t&&await t.getReauthRequiredStatusAsync()}catch(t){return r.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.u4l),{message:"Exception fetching getReauthRequiredStatusAsync",pb:Object.assign(Object.assign({},a.u4l.pb),{error:t})})),!1}}();e&&i&&i("reauthrequiredstatuschanged"),!e&&d.gL.get(d.Iq.IsDashboardVisible)&&h&&r.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.ZSB),{message:"WDX Client failed to return user auth token",pb:Object.assign(Object.assign({},a.ZSB.pb),{widgetId:t.widgetId,widgetInstanceId:t.instanceId,windowsSessionId:d.gL.get(d.Iq.SessionId),widgetState:t.widgetState,isMsaUser:h,isBackgroundRefresh:!d.gL.get(d.Iq.IsDashboardVisible)})}))}}k||(k=await S(t));const f=(0,s.jG)();return k?(o[l.Yu.muid]=k,k!==f&&(0,n.nc)(k)):f&&(o[l.Yu.muid]=f),o}const L=t=>(0,o.F)(`WidgetApi.${t}`,{logDuration:!0,firstTimeOnly:!0})},27019:function(t,e,i){"use strict";i.d(e,{$x:function(){return u},D7:function(){return c},TU:function(){return l},eH:function(){return d},gd:function(){return s},vh:function(){return r}});var a=i(38156),o=i(75559),n=i(60483);function r(t,e){const i=new n.D({name:`${t}_customization`,type:a.c9.ActionButton,content:{headline:`${t}_customization`,type:a.uH.StructuredData,vertical:e||t}}),r=document.createElement("button");return r.setAttribute(o.qP,i.getMetadataTag()),r}function s(t,e,i,r){const s=new n.D({name:`${t}_header`,type:a.c9.ActionButton,content:{headline:i,type:a.uH.StructuredData,vertical:r||t}}),l=document.createElement("a");return l.href=e,l.setAttribute(o.qP,s.getMetadataTag()),l}function l(t,e){const i=new n.D({name:`${t}_customization_size${e}`,type:a.c9.ActionButton,content:{headline:`${e}`,type:a.uH.StructuredData,vertical:t}}),o=document.createElement("button");return o.setAttribute("data-t",i.getMetadataTag()),o}function d(t){const e=new n.D({name:`${t}_setting}`,type:a.c9.ActionButton,content:{headline:"setting",type:a.uH.StructuredData,vertical:t}}),i=document.createElement("button");return i.setAttribute("data-t",e.getMetadataTag()),i}function c(t){const e=new n.D({name:`${t}_removeWidget`,type:a.c9.ActionButton,content:{headline:"removeWidget",type:a.uH.StructuredData,vertical:t}}),i=document.createElement("button");return i.setAttribute("data-t",e.getMetadataTag()),i}function u(t,e,i){return{width:300,height:h(t),row:e,col:g(i)}}function h(t){return"large"===t?412:"medium"===t?304:"small"===t?146:void 0}function g(t){return"primary"===t?1:"secondary"===t?2:void 0}},51223:function(t,e,i){"use strict";i.d(e,{Z0:function(){return p},nc:function(){return g}});var a,o,n,r,s=i(21712),l=i(76668),d=i(16517),c=i(54804),u=i(76323),h=i(9344);function g(t){var e;const i=d.jG.IsChinaCompliance||"zh-cn"===(null===(e=null===c.Al||void 0===c.Al?void 0:c.Al.Locale)||void 0===e?void 0:e.toLowerCase());t&&(0,h.sq)(s.pA,t,365,i?".msn.cn":".msn.com","/",!0,l.f.None)}!function(t){t[t.none=0]="none",t[t.bgTask=1]="bgTask",t[t.badge=2]="badge",t[t.rotationalPreview=4]="rotationalPreview",t[t.expandedView=8]="expandedView",t[t.fullWv=16]="fullWv",t[t.reauthRequiredUser=32]="reauthRequiredUser"}(a||(a={})),function(t){t[t.header=0]="header",t[t.content=1]="content",t[t.moreOptions=2]="moreOptions"}(o||(o={})),function(t){t[t.resize=0]="resize",t[t.customize=1]="customize",t[t.unpin=2]="unpin",t[t.hide=3]="hide",t[t.pin=4]="pin",t[t.other=5]="other"}(n||(n={})),function(t){t[t.ProfileClicked=0]="ProfileClicked",t[t.AddButtonClicked=1]="AddButtonClicked"}(r||(r={}));const p=(0,u.p)((()=>document.getElementById("widgetGroup-testpage")&&("winWidgets"===d.jG.AppType||"windowsNewsPlus"===d.jG.AppType)));var f;!function(t){t[t.Alert=0]="Alert",t[t.NoAlert=1]="NoAlert",t[t.HighImpact=2]="HighImpact",t[t.Critical=3]="Critical"}(f||(f={}))},94731:function(t,e,i){"use strict";function a(t,e,i){return i<t?e:i>e?t:i}i.d(e,{w:function(){return a}})},59538:function(t,e,i){"use strict";i.d(e,{mL:function(){return c}});var a=i(49944),o=i(77623),n=i(53046),r=i(67020),s=i(40082),l=i(16252);class d extends o.m{}const c=d.compose({baseName:"carousel-card-panel",template:a.o,styles:(t,e)=>n.i`
        ${(0,l.l)(t,e)}

        ${(0,r.j)("flex")} ::slotted(*) {
            width: 100%;
        }
    `.withBehaviors((0,s.vF)(n.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))})},77758:function(t,e,i){"use strict";i.d(e,{gn:function(){return d}});var a=i(13626),o=i(61291),n=i(53046),r=i(67020),s=i(22658);class l extends o.x{}const d=l.compose({baseName:"carousel-card-sequence-indicator",template:a.O,styles:(t,e)=>n.i`
    ${(0,s.o)(t,e)}
    ${(0,r.j)("inline-flex")} :host {
        min-height: 4px;
        height: 4px;
        width: 4px;
        min-width: 4px;
        margin: 0;
        transition: transform 0.2s ease-in-out;
    }

    :host([aria-selected="true"]) {
        z-index: 2;
        opacity: 1;
        min-height: 6px;
        min-width: 6px;
        height: 6px;
        width: 6px;
    }
`})},70590:function(t,e,i){"use strict";i.d(e,{ok:function(){return x}});var a=i(33940),o=i(65620),n=i(4069),r=i(49176),s=i(51208),l=i(39181),d=i(90960),c=i(13988),u=i(58952),h=i(26007);const g=()=>t=>t.orientation!==r.G.vertical?l.d`
            <svg
                slot="previous"
                width="7"
                height="9"
                viewBox="0 0 7 9"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M0.5 4.5C0.5 4.25781 0.557292 4.02865 0.671875 3.8125C0.786458 3.59635 0.94401 3.41927 1.14453 3.28125L4.92969 0.679687C5.09896 0.559896 5.28906 0.5 5.5 0.5C5.66406 0.5 5.82031 0.539062 5.96875 0.617187C6.13281 0.703125 6.26172 0.824219 6.35547 0.980469C6.45182 1.13672 6.5 1.30729 6.5 1.49219L6.5 7.51172C6.5 7.69401 6.45182 7.86328 6.35547 8.01953C6.26172 8.17578 6.13281 8.29818 5.96875 8.38672C5.81771 8.46224 5.66276 8.5 5.50391 8.5C5.29036 8.5 5.09896 8.4401 4.92969 8.32031L1.14453 5.71875C0.94401 5.58073 0.786458 5.40365 0.671875 5.1875C0.557291 4.97135 0.5 4.74219 0.5 4.5Z"
                />
            </svg>
            <svg
                slot="next"
                width="7"
                height="9"
                viewBox="0 0 7 9"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M0.5 1.49219C0.5 1.30729 0.546875 1.13672 0.640625 0.980468C0.736979 0.824218 0.86849 0.703125 1.03516 0.617187C1.18099 0.539062 1.33594 0.5 1.5 0.5C1.71094 0.5 1.90104 0.559896 2.07031 0.679687L5.85547 3.28125C6.05078 3.41667 6.20052 3.59245 6.30469 3.80859C6.40885 4.02474 6.46094 4.25521 6.46094 4.5C6.46094 4.74219 6.40885 4.97135 6.30469 5.1875C6.20052 5.40625 6.05078 5.58333 5.85547 5.71875L2.07031 8.32031C1.90104 8.4401 1.71094 8.5 1.5 8.5C1.34115 8.5 1.1862 8.46224 1.03516 8.38672C0.868489 8.29818 0.736979 8.17578 0.640625 8.01953C0.546875 7.86328 0.5 7.69401 0.5 7.51172L0.5 1.49219Z"
                />
            </svg>
        `:l.d`
            <svg
                slot="previous"
                width="9"
                height="7"
                viewBox="0 0 9 7"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M1.00192 6.60547C0.194077 6.60547 -0.28047 5.6973 0.180865 5.0341L2.81398 1.24898C3.41087 0.390957 4.68026 0.390967 5.27715 1.24899L7.91028 5.0341C8.37156 5.6973 7.89707 6.60547 7.08922 6.60547H1.00192Z"
                />
            </svg>
            <svg
                slot="next"
                width="9"
                height="7"
                viewBox="0 0 9 7"
                xmlns="http://www.w3.org/2000/svg"
            >
                <path
                    d="M1.00192 0.605469C0.194077 0.605469 -0.280471 1.51367 0.180865 2.17683L2.81398 5.96196C3.41087 6.82002 4.68027 6.81992 5.27716 5.96196L7.91029 2.17682C8.37157 1.51367 7.89709 0.605469 7.08924 0.605469H1.00192Z"
                />
            </svg>
        `;var p=i(32804),f=i(53046),m=i(67020),v=i(40082),y=i(28726);class b extends n.EI{}(0,a.gn)([(0,o.Lj)({attribute:"previous-flipper-title"})],b.prototype,"previousFlipperTitle",void 0),(0,a.gn)([(0,o.Lj)({attribute:"next-flipper-title"})],b.prototype,"nextFlipperTitle",void 0);const x=b.compose({baseName:"carousel-card-wrapper",template:(t,e)=>l.d`
    <template
        @mouseover="${(t,e)=>t.handleMouseOver(e.event)}"
        @mouseout="${(t,e)=>t.handleMouseOut(e.event)}"
        @focusin="${(t,e)=>t.handleFocusIn(e.event)}"
        @focusout="${(t,e)=>t.handleFocusOut(e.event)}"
    >
        <slot name="previous-flipper">
            <fluent-flipper
                part="previous-flipper"
                class="previous-flipper"
                title="${t=>t.previousFlipperTitle}"
                direction="${t=>t.direction===h.N.rtl?"next":"previous"}"
                @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}"
                @click="${(t,e)=>t.slideKeyPressHandler(e.event,-1)}"
                data-t="${t=>t.previousFlipperTelemetryTag}"
            >
                ${g()}
            </fluent-flipper>
        </slot>
        ${s.hX}
        <div class="tablist" part="tablist" role="tablist">
            <slot class="tab" name="tab" part="tab" ${(0,d.Q)("tabs")}></slot>

            ${(0,c.g)((t=>t.activeindicator),l.d`
                    <div
                        ${(0,u.i)("activeIndicatorRef")}
                        class="activeIndicator"
                        part="activeIndicator"
                    ></div>
                `)}
        </div>
        <slot name="next-flipper">
            <fluent-flipper
                part="next-flipper"
                class="next-flipper"
                title="${t=>t.nextFlipperTitle}"
                direction="${t=>t.direction===h.N.rtl?"previous":"next"}"
                @keypress="${(t,e)=>t.slideKeyPressHandler(e.event,1)}"
                @click="${(t,e)=>t.slideKeyPressHandler(e.event,1)}"
                data-t="${t=>t.nextFlipperTelemetryTag}"
            >
                ${g()}
            </fluent-flipper>
        </slot>

        ${s.zq}
        <div class="tabpanel">
            <slot name="tabpanel" part="tabpanel" ${(0,d.Q)("tabpanels")}></slot>
        </div>
    </template>
`,styles:(t,e)=>f.i`
        ${(0,y.o)(t,e)}

        ${(0,m.j)("grid")} :host {
            background: none;
            border-radius: 0;
            box-shadow: none;
            grid-template-rows: 1fr auto;
        }

        ::slotted([slot="previous-flipper"]),
        .previous-flipper {
            margin: 0;
            height: 38px;
            width: 16px;
        }

        ::slotted([slot="next-flipper"]),
        .next-flipper {
            margin: 0;
            height: 38px;
            width: 16px;
        }

        .next-flipper::before,
        .previous-flipper::before {
            border-radius: 3px;
            border: calc(${p.Han} * 1px) solid transparent;
            background: ${p.jql};
        }

        .next-flipper:hover::before,
        .previous-flipper:hover::before {
            background: ${p.QpD};
        }

        .next-flipper:active::before,
        .previous-flipper:active::before {
            background: ${p.sG3};
        }

        .next-flipper::part(previous),
        .next-flipper::part(next),
        .previous-flipper::part(previous),
        .previous-flipper::part(next) {
            width: auto;
            height: auto;
            display: flex;
            align-items: center;
        }

        .tablist {
            grid-row: 2;
            grid-gap: 6px;
            padding: var(--sequence-indicator-padding, 10px);
            align-items: center;
            justify-items: center;
            grid-template-rows: auto;
        }

        .tabpanel {
            grid-row: 1 / span 3;
            grid-column: 1 / span 3;
            position: relative;
        }

        :host([orientation="vertical"]) {
            grid-template-rows: 1fr auto 1fr;
            grid-template-columns: 1fr auto;
        }

        :host([orientation="vertical"]) .tabpanel {
            grid-row: 1/3;
            grid-column-start: 1;
            grid-column-end: 4;
        }

        :host([orientation="vertical"]) .tablist {
            grid-row-start: 2;
            grid-row-end: 2;
            grid-column: 2;
            grid-template-rows: auto;
            padding: 20px 0;
            justify-self: center;
        }

        :host([orientation="vertical"]) .tabpanel {
            grid-column: 1 / span 2;
            grid-row-start: 1;
            grid-row-end: 4;
        }

        :host([orientation="vertical"]) .previous-flipper {
            grid-column: 2;
            grid-row: 1;
            align-self: flex-end;
            height: 16px;
            width: 20px;
            margin: 0 2px;
        }

        :host([orientation="vertical"]) .next-flipper {
            grid-column: 2;
            grid-row: 3;
            align-self: flex-start;
            height: 16px;
            width: 20px;
            margin: 0 2px;
        }
    `.withBehaviors((0,v.vF)(f.i`
                :host {
                    forced-color-adjust: auto;
                }
            `))})},78434:function(t,e,i){"use strict";i.d(e,{V:function(){return r}});var a=i(33940),o=i(87697),n=i(4069);(0,a.gn)([o.LO],class{}.prototype,"tabContent",void 0);class r extends n.EI{contentDataChanged(){this.setTitles(this.activeTabIndex)}changeHandler(t){if(t.defaultPrevented)return!1;if(t.target instanceof n.EI){const e=t.target;return this.setTitles(e.activeTabIndex),!1}return!0}setTitles(t){const e=this.contentData.length,i=0===t?e-1:t-1,a=e-1===t?0:t+1;this.nextFlipperTitle=this.contentData[a].ariaLabel,this.previousFlipperTitle=this.contentData[i].ariaLabel}}(0,a.gn)([o.LO],r.prototype,"contentData",void 0),(0,a.gn)([o.LO],r.prototype,"nextFlipperTitle",void 0),(0,a.gn)([o.LO],r.prototype,"previousFlipperTitle",void 0)},10141:function(t,e,i){"use strict";i.d(e,{M9:function(){return s}});var a=i(78434),o=i(39181),n=i(18864);var r=i(53046);const s=a.V.compose({baseName:"carousel-card",template:(t,e)=>o.d`
    <msft-carousel-card-wrapper
        exportparts="previous-flipper, tablist, next-flipper"
        class="carousel-card-wrapper"
        part="carousel-card-wrapper"
        layout="${t=>t.layout}"
        ?auto-scroll=${t=>t.autoScroll}
        ?activeindicator=${t=>t.activeindicator}
        auto-scroll-interval-ms=${t=>t.autoScrollIntervalMs}
        auto-scroll-delay-ms=${t=>t.autoScrollDelayMs}
        :nextFlipperTelemetryTag=${t=>t.nextFlipperTelemetryTag}
        :previousFlipperTelemetryTag=${t=>t.previousFlipperTelemetryTag}
        previous-flipper-title=${t=>t.previousFlipperTitle}
        next-flipper-title=${t=>t.nextFlipperTitle}
        :direction=${t=>t.direction}
        orientation=${t=>t.orientation}
        activeid=${t=>t.activeid}
        @change=${(t,e)=>t.changeHandler(e.event)}
    >
        ${(0,n.rx)((t=>t.contentData),o.d`<msft-carousel-card-panel
    class="carousel-card-panel"
    part="carousel-card-panel"
    id=${(t,e)=>t.tabPanelId}
    slot="tabpanel"
    >${(t,e)=>t.tabContent}</msft-carousel-card-panel>`)}
        ${(0,n.rx)((t=>t.contentData),o.d`<msft-carousel-card-sequence-indicator
    class="sequence-indicator"
    part="sequence-indicator"
    aria-label=${(t,e)=>t.ariaLabel}
    slot="tab"
    id=${(t,e)=>t.tabId}
></msft-carousel-card-sequence-indicator>`)}
    </msft-carousel-card-wrapper>
`,styles:(t,e)=>r.i``})},77623:function(t,e,i){"use strict";i.d(e,{m:function(){return o}});var a=i(43504);class o extends a.x{}},16252:function(t,e,i){"use strict";i.d(e,{l:function(){return r}});var a=i(32804),o=i(53046),n=i(67020);const r=(t,e)=>o.i`
    ${(0,n.j)("flex")} :host {
        box-sizing: border-box;
        font-family: ${a.SVJ};
        font-size: ${a.sNp};
        line-height: ${a.vgC};
        height: 100%;
    }
`},61291:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var a=i(26899);class o extends a.O{}},22658:function(t,e,i){"use strict";i.d(e,{o:function(){return d}});var a=i(53046),o=i(15933),n=i(67020),r=i(56201),s=i(40082),l=i(32804);const d=(t,e)=>a.i`
    ${(0,n.j)("inline-flex")} :host {
        box-sizing: border-box;
        font-family: ${l.SVJ};
        min-height: 6px;
        min-width: 6px;
        background-color: ${l.CHi};
        border-radius: 20px;
        opacity: 0.4;
        grid-row: 1;
        z-index: 1;
        margin: 10px 2px;
        border: calc(${l.Han} * 1px) solid transparent;
    }

    :host([aria-selected="true"]) {
        z-index: 2;
        opacity: 1;
        min-width: 30px;
    }

    :host(:hover),
    :host(:active) {
        background: ${l.CHi};
        opacity: 1;
    }

    :host(:${r.b}) {
        outline: none;
        box-shadow: 0 0 0 calc((${l.vxp} - ${l.Han}) * 1px) ${l.IfY}, 0 0 0 calc((${l.vxp} + ${l.Han}) * 1px)
            ${l.yGg};
    }

    :host(:focus) {
        outline: none;
    }
`.withBehaviors((0,s.vF)(a.i`
            :host {
                forced-color-adjust: none;
                background: ${o.H.ButtonText};
                opacity: 1;
            }
            :host(:hover),
            :host([aria-selected="true"]:hover),
            :host([aria-selected="true"]) {
                background: ${o.H.Highlight};
            }
            :host(:${r.b}) {
                border-color: ${o.H.ButtonFace};
                box-shadow: 0 0 0 calc((${l.vxp} - ${l.Han}) * 1px)
                rgba(0,0,0,1), 0 0 0 calc((${l.vxp} + ${l.Han}) * 1px)
                ${o.H.ButtonText};
            }
        `))},4069:function(t,e,i){"use strict";i.d(e,{EI:function(){return h}});var a,o,n=i(33940),r=i(65620),s=i(87697),l=i(33832),d=i(94731),c=i(32804),u=i(48839);!function(t){t._1_column="1_column",t._2_column="2_column"}(a||(a={})),function(t){t.vertical="vertical",t.horizontal="horizontal"}(o||(o={}));class h extends u.I{constructor(){super(...arguments),this.slideKeyPressHandler=(t,e)=>{this.adjust(e)},this.layout=a._2_column,this.orientation=o.horizontal,this.activeindicator=!1,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.isHovered=!1,this.isFocused=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t=this.isHorizontal()?"gridColumn":"gridRow";this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.tabs.forEach(((e,i)=>{if("tab"===e.slot&&this.isFocusableElement(e)){this.activeindicator&&(this.showActiveIndicator=!0);const t=this.tabIds[i],a=this.tabpanelIds[i];e.setAttribute("id","string"!=typeof t?`tab-${i+1}`:t),e.setAttribute("aria-selected",this.activeTabIndex===i?"true":"false"),e.setAttribute("aria-controls","string"!=typeof a?`panel-${i+1}`:a),e.addEventListener("click",this.handleTabClick),e.addEventListener("keydown",this.handleTabKeyDown),e.setAttribute("tabindex",this.activeTabIndex===i?"0":"-1"),this.activeTabIndex===i&&(this.activetab=e)}else this.showActiveIndicator=!1;e.style[t]=`${i+1}`,this.isHorizontal()?e.classList.remove("vertical"):e.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.tabpanels.forEach(((t,e)=>{const i=this.tabIds[e],a=this.tabpanelIds[e];t.setAttribute("id","string"!=typeof a?`panel-${e+1}`:a),t.setAttribute("aria-labelledby","string"!=typeof i?`tab-${e+1}`:i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent()),t.preventDefault()},this.handleTabKeyDown=t=>{const e=t.keyCode;if(this.isHorizontal())switch(e){case l.BJ:t.preventDefault(),this.adjustBackward(t);break;case l.ho:t.preventDefault(),this.adjustForward(t)}else switch(e){case l.$Y:t.preventDefault(),this.adjustBackward(t);break;case l.Q6:t.preventDefault(),this.adjustForward(t)}switch(e){case l.wn:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case l.$B:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}autoScrollChanged(){this.$fastController.isConnected&&this.updateAutoScroll()}autoScrollIntervalMsChanged(){this.$fastController.isConnected&&this.updateAutoScroll()}handleChange(){this.direction=c.o7V.getValueFor(this)}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex(),this.direction=c.o7V.getValueFor(this),c.o7V.subscribe(this),this.activeindicator||(this.activeindicator=!1),this.updateAutoScroll()}disconnectedCallback(){c.o7V.unsubscribe(this),window.clearTimeout(this.autoScrollTimer)}activeidChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition(),this.$emit("tabpanels-changed",this.tabpanels))}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return void 0===this.tabs?[null]:this.tabs.map((t=>t.getAttribute("id")))}getTabPanelIds(){return void 0===this.tabpanels?[null]:this.tabpanels.map((t=>t.getAttribute("id")))}setComponent(t){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.change(),this.setTabs(),this.handleActiveIndicatorPosition(),this.setTabPanels(),t||this.focusTab(),this.change())}isHorizontal(){return this.orientation===o.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",a=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const n=o-a;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(t,e){void 0!==this.tabs&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,d.w)(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent(e))}focusTab(){this.tabs[this.activeTabIndex].focus()}handleFocusIn(t){this.isFocused=!0,this.updateAutoScroll()}handleFocusOut(t){null!==t.relatedTarget&&this.contains(t.relatedTarget)||(this.isFocused=!1,this.updateAutoScroll())}handleMouseOver(t){this.isHovered=!0,this.updateAutoScroll()}handleMouseOut(t){this.isHovered=!1,this.updateAutoScroll()}updateAutoScroll(){let t=!1;this.isHovered||this.isFocused||!this.autoScroll||(t=!0),t&&void 0===this.autoScrollTimer&&(this.autoScrollTimer=window.setTimeout((()=>{this.autoScrollDelayMs&&(this.autoScrollDelayMs=0),this.adjust(1,!0),this.autoScrollTimer=void 0,this.updateAutoScroll()}),(this.autoScrollDelayMs||0)+(this.autoScrollIntervalMs||6e3))),t||void 0===this.autoScrollTimer||(window.clearTimeout(this.autoScrollTimer),this.autoScrollTimer=void 0)}}(0,n.gn)([r.Lj],h.prototype,"layout",void 0),(0,n.gn)([(0,r.Lj)({attribute:"auto-scroll",mode:"boolean"})],h.prototype,"autoScroll",void 0),(0,n.gn)([(0,r.Lj)({attribute:"auto-scroll-interval-ms",converter:r.Id})],h.prototype,"autoScrollIntervalMs",void 0),(0,n.gn)([(0,r.Lj)({attribute:"auto-scroll-delay-ms",converter:r.Id})],h.prototype,"autoScrollDelayMs",void 0),(0,n.gn)([s.LO],h.prototype,"nextFlipperTelemetryTag",void 0),(0,n.gn)([s.LO],h.prototype,"previousFlipperTelemetryTag",void 0),(0,n.gn)([s.LO],h.prototype,"direction",void 0),(0,n.gn)([r.Lj],h.prototype,"orientation",void 0),(0,n.gn)([r.Lj],h.prototype,"activeid",void 0),(0,n.gn)([s.LO],h.prototype,"tabs",void 0),(0,n.gn)([s.LO],h.prototype,"tabpanels",void 0),(0,n.gn)([(0,r.Lj)({mode:"boolean"})],h.prototype,"activeindicator",void 0),(0,n.gn)([s.LO],h.prototype,"activeIndicatorRef",void 0),(0,n.gn)([s.LO],h.prototype,"showActiveIndicator",void 0)},28726:function(t,e,i){"use strict";i.d(e,{o:function(){return d}});var a=i(53046),o=i(15933),n=i(67020),r=i(40082),s=i(32804),l=i(62734);const d=(t,e)=>a.i`
        ${(0,n.j)("grid")} :host {
            --elevation: 4;
            box-sizing: border-box;
            font-family: ${s.SVJ};
            font-size: ${s.cSu};
            line-height: ${s.RUt};
            color: ${s.CHi};
            background: ${s.$Bw};
            border-radius: calc(${s.rSr} * 1px);
            ${l.XC};
            overflow: hidden;
            height: 100%;
            grid-template-columns: auto 1fr auto;
            grid-template-rows: auto 1fr;
            width: 100%;
        }

        :host(:hover) ::slotted([slot="previous-flipper"]),
        :host(:hover) .previous-flipper,
        :host(:hover) ::slotted([slot="next-flipper"]),
        :host(:hover) .next-flipper {
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
        }

        .tablist {
            display: grid;
            grid-template-rows: auto auto;
            grid-template-columns: auto;
            position: relative;
            width: max-content;
            align-self: center;
            justify-self: center;
            grid-row: 1;
            grid-column: 1 / span 3;
            z-index: 3;
            cursor: pointer;
        }

        ::slotted([slot="previous-flipper"]),
        .previous-flipper {
            margin: 8px;
            grid-column: 1;
            grid-row: 1 / span 2;
            align-self: center;
            z-index: 2;
            opacity: 0;
        }

        ::slotted([slot="next-flipper"]),
        .next-flipper {
            margin: 8px;
            grid-column: 3;
            grid-row: 1 / span 2;
            align-self: center;
            z-index: 2;
            opacity: 0;
        }

        :host([layout="1-column"]) {
            --heading-font-size: ${s.cSu};
            --heading-line-height: ${s.RUt};
        }

        .activeIndicator {
            grid-row: 2;
            grid-column: 1;
            width: 20px;
            height: 3px;
            border-radius: calc(${s.UWU} * 1px);
            justify-self: center;
            background: ${s.Avx};
        }

        .activeIndicatorTransition {
            transition: transform 0.2s ease-in-out;
        }

        .tabpanel {
            grid-row: 1/3;
            grid-column-start: 1;
            grid-column-end: 4;
            position: relative;
        }
    `.withBehaviors((0,r.vF)(a.i`
                .activeIndicator {
                    forced-color-adjust: none;
                    background: ${o.H.Highlight};
                }
                .tablist {
                    background: ${o.H.Canvas};
                }
            `))},22169:function(t,e,i){"use strict";i.d(e,{g:function(){return s}});var a=i(69298),o=i(48657),n=i(32804),r=i(53046);const s=a.Zb.compose({baseName:"prong2-card-wrapper",template:o.O,styles:(t,e)=>r.i`
        ${(0,a.F)(t,e)} :host {
            border-radius: calc(${n.rSr} * 2px);
            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
        }
    `})},16590:function(t,e,i){"use strict";i.d(e,{xb:function(){return m}});var a=i(33940),o=i(65620),n=i(87697),r=i(48839);class s extends r.I{constructor(){super(...arguments),this.pinned=!1}}(0,a.gn)([o.Lj],s.prototype,"target",void 0),(0,a.gn)([(0,o.Lj)({mode:"boolean"})],s.prototype,"pinned",void 0),(0,a.gn)([n.LO],s.prototype,"data",void 0),(0,a.gn)([n.LO],s.prototype,"headerTelemetryTag",void 0),(0,a.gn)([n.LO],s.prototype,"seeMoreTelemetryTag",void 0);var l=i(67020),d=i(56201),c=i(40082),u=i(53046),h=i(15933),g=i(32804);var p=i(39181),f=i(13988);const m=s.compose({baseName:"structured-data-card",template:(t,e)=>p.d`
    <div class="title" part="title">
        ${(0,f.g)((t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titleContent}),p.d`
                <a
                    class="title-link"
                    part="title-link"
                    href="${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.link}}"
                    target=${t=>t.target}
                    title="${t=>{var e,i,a;return null!==(i=null===(e=t.data)||void 0===e?void 0:e.titleContentHint)&&void 0!==i?i:null===(a=t.data)||void 0===a?void 0:a.titleContent}}"
                    data-t="${t=>t.headerTelemetryTag}"
                >
                    <slot name="title-icon"></slot>
                    <div class="title-content" part="title-content">
                        ${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.titleContent}}
                    </div>
                    <slot name="weather-pen-btn"></slot>
                    <slot name="weather-map-btn"></slot>
                </a>
            `)}
        <slot name="pin"></slot>
        <slot name="more-actions"></slot>
    </div>
    <slot></slot>
    <div class="footer" part="footer">
        <slot name="footer-start"></slot>
        ${(0,f.g)((t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.footerContent}),p.d`
                <fluent-anchor
                    class="sd-action"
                    part="sd-action"
                    appearance="${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.actionAppearance}}"
                    href="${t=>{var e,i,a;return(null===(e=t.data)||void 0===e?void 0:e.footerLink)?null===(i=t.data)||void 0===i?void 0:i.footerLink:null===(a=t.data)||void 0===a?void 0:a.link}}"
                    target=${t=>t.target}
                    data-t="${t=>t.seeMoreTelemetryTag}"
                >
                    ${t=>{var e;return null===(e=t.data)||void 0===e?void 0:e.footerContent}}
                </fluent-anchor>
            `)}
        <slot name="footer-end"></slot>
    </div>
`,styles:(t,e)=>u.i`
    ${(0,l.j)("grid")}:host {
        position: relative;
        width: auto;
        height: 100%;
        box-sizing: border-box;
        font-family: ${g.SVJ};
        grid-template-rows: auto 1fr auto;
        padding: var(--content-padding, 16px 0);
        outline: none;
    }

    :host([pinned]) {
        /* with this change, we are remove top padding from the card to support the grab handle extending from the title */
        padding: var(--content-padding, 0 16px 16px 16px);
    }

    :host([pinned]) .title-link {
        cursor: pointer;
    }

    :host([pinned]) .title {
        cursor: var(--cursor-styles);
        /* with this, we are only adding top padding to the title to support the grab handle in Prong 2 and removing from the card */
        padding: var(--title-padding, 16px 0 0);
    }

    .footer {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        padding: var(--footer-padding, 0 16px);
    }

    .title {
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-gap: 8px;
        padding: var(--title-padding, 0 16px);
        overflow: visible;
        align-items: center;
    }

    .title-link {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-gap: 8px;
        color: ${g.CHi};
        font-size: ${g.sNp};
        justify-content: flex-start;
        line-height: ${g.vgC};
        outline: none;
        cursor: pointer;
        text-decoration: none;
        margin-inline-end: auto;
    }

    .title-link:hover,
    .title-link:active,
    .title-link:${d.b} {
        text-decoration: underline;
    }

    .title-content {
        font-size: ${g.sNp};
        line-height: ${g.vgC};
        margin-top: 4px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        -webkit-line-clamp: var(--title-max-lines, 1);
    }

    ::slotted([slot="title-icon"]) {
        margin-top: 4px;
    }

    .sd-action {
        --control-corner-radius: 16;
        grid-column: 2;
        z-index: 1;
    }

    .sd-action:not([appearance="lightweight"]) {
        font-size: ${g.sNp};
        line-height: ${g.vgC};
    }

    .sd-action::part(control) {
        width: 100%;
        padding: var(--sd-action-padding, 0px 24px);
    }

    .sd-action::part(content) {
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 1;
        text-overflow: ellipsis;
        overflow: hidden;
    }

    ::slotted([slot="more-actions"]) {
        min-width: var(--more-actions-size, 24px);
        width: var(--more-actions-size, 24px);
        height: var(--more-actions-size, 24px);
        --control-corner-radius: var(--more-actions-corner-radius, 16);
        z-index: 1;
        grid-column: 3;
        background-color: transparent;
    }

    ::slotted([slot="more-actions"]:hover) {
        background-color: ${g.QpD};
     }
     
     ::slotted([slot="more-actions"]:active) {
        background-color: ${g.sG3};
     }

    ::slotted([slot="pin"]) {
        fill: ${g.CHi};
        margin-inline-end: 6px;
    }
`.withBehaviors((0,c.vF)(u.i`
                .title-link {
                    color: ${h.H.CanvasText};
                }
                a[href] {
                    color: ${h.H.LinkText};
                }
            `))})},7705:function(t,e,i){"use strict";i.d(e,{i:function(){return c}});var a=i(17993),o=i(33940),n=i(12968),r=i(65620),s=i(5645);class l extends s.hQ{constructor(){super(...arguments),this.autofocus=!1}autofocusChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.autofocus=this.autofocus,this.validate())}connectedCallback(){super.connectedCallback(),this.autofocus&&n.SO.queueUpdate((()=>{this.focus()})),this.focusAndScrollOptionIntoView=()=>{window.requestAnimationFrame((()=>{this.firstSelectedOption&&(this.firstSelectedOption.focus(),this.firstSelectedOption.scrollIntoView({block:"nearest"}))}))}}}(0,o.gn)([(0,r.Lj)({mode:"boolean"})],l.prototype,"autofocus",void 0);var d=i(53046);const c=l.compose({baseName:"traffic-combobox",template:a.M,styles:[(u=void 0,h=void 0,d.i`
 ${(0,s.en)(u,h)}`)],shadowOptions:{delegatesFocus:!0}});var u,h},40340:function(t){t.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2.5a.5.5 0 00-1 0V9H2.5a.5.5 0 000 1H9v6.5a.5.5 0 001 0V10h6.5a.5.5 0 000-1H10V2.5z"></path></svg>'},26785:function(t){t.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.85 2.15a.5.5 0 10-.7.7l3.5 3.5a8.1 8.1 0 00-3.37 5.05.5.5 0 10.98.2 7.09 7.09 0 013.1-4.53l1.6 1.59a3.5 3.5 0 104.88 4.89l4.3 4.3a.5.5 0 00.71-.7l-15-15zm9.27 10.68a2.5 2.5 0 11-3.45-3.45l3.45 3.45zm-2-4.83l3.38 3.38A3.5 3.5 0 0010.12 8zM10 6c-.57 0-1.13.07-1.67.21l-.8-.8A7.65 7.65 0 0110 5c3.7 0 6.94 2.67 7.72 6.4a.5.5 0 01-.98.2A6.97 6.97 0 0010 6z"></path></svg>'},3893:function(t){t.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.25 10a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zm5 0a1.25 1.25 0 11-2.5 0 1.25 1.25 0 012.5 0zM15 11.25a1.25 1.25 0 100-2.5 1.25 1.25 0 000 2.5z"></path></svg>'},55096:function(t){t.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M1.91 7.38A8.5 8.5 0 013.69 4.3a.5.5 0 01.54-.13l1.92.68a1 1 0 001.32-.76l.36-2a.5.5 0 01.4-.4 8.53 8.53 0 013.55 0c.2.04.35.2.38.4l.37 2a1 1 0 001.32.76l1.92-.68a.5.5 0 01.54.13 8.5 8.5 0 011.78 3.08c.06.2 0 .4-.15.54l-1.56 1.32a1 1 0 000 1.52l1.56 1.32a.5.5 0 01.15.54 8.5 8.5 0 01-1.78 3.08.5.5 0 01-.54.13l-1.92-.68a1 1 0 00-1.32.76l-.37 2a.5.5 0 01-.38.4 8.53 8.53 0 01-3.56 0 .5.5 0 01-.39-.4l-.36-2a1 1 0 00-1.32-.76l-1.92.68a.5.5 0 01-.54-.13 8.5 8.5 0 01-1.78-3.08.5.5 0 01.15-.54l1.56-1.32a1 1 0 000-1.52L2.06 7.92a.5.5 0 01-.15-.54zm1.06 0l1.3 1.1a2 2 0 010 3.04l-1.3 1.1c.3.79.71 1.51 1.25 2.16l1.6-.58a2 2 0 012.63 1.53l.3 1.67a7.56 7.56 0 002.5 0l.3-1.67a2 2 0 012.64-1.53l1.6.58a7.5 7.5 0 001.24-2.16l-1.3-1.1a2 2 0 010-3.04l1.3-1.1a7.5 7.5 0 00-1.25-2.16l-1.6.58a2 2 0 01-2.63-1.53l-.3-1.67a7.55 7.55 0 00-2.5 0l-.3 1.67A2 2 0 015.81 5.8l-1.6-.58a7.5 7.5 0 00-1.24 2.16zM7.5 10a2.5 2.5 0 115 0 2.5 2.5 0 01-5 0zm1 0a1.5 1.5 0 103 0 1.5 1.5 0 00-3 0z"></path></svg>'},69298:function(t,e,i){"use strict";i.d(e,{Zb:function(){return b},F:function(){return C},ay:function(){return x}});var a=i(33940),o=i(65130),n=i(97186),r=i(22680),s=i(87697),l=i(65620),d=i(48657),c=i(32804),u=i(42355),h=i(42255),g=i(53046),p=i(67020),f=i(40082),m=i(87839),v=i(62734);const y=(t,e)=>g.i`
        ${(0,p.j)("block")} :host {
            --elevation: 4;
            display: block;
            contain: content;
            height: var(--card-height, 100%);
            width: var(--card-width, 100%);
            box-sizing: border-box;
            background: ${c.IfY};
            color: ${c.CHi};
            border-radius: calc(${c.rSr} * 1px);
            ${v.XC}
        }

        :host(:hover) {
            --elevation: 8;
        }

        :host(:focus-within) {
            --elevation: 8;
        }

        :host {
            content-visibility: auto;
        }
    `.withBehaviors((0,f.vF)(g.i`
                :host {
                    forced-color-adjust: none;
                    background: ${m.H.Canvas};
                    box-shadow: 0 0 0 1px ${m.H.CanvasText};
                }
            `));class b extends o.Z{cardFillColorChanged(t,e){if(e){const t=(0,n.in)(e);null!==t&&(this.neutralPaletteSource=e,c.IfY.setValueFor(this,u.w.create(t.r,t.g,t.b)))}}neutralPaletteSourceChanged(t,e){if(e){const t=(0,n.in)(e),i=u.w.create(t.r,t.g,t.b);c.yvm.setValueFor(this,h.v.create(i))}}handleChange(t,e){this.cardFillColor||c.IfY.setValueFor(this,(e=>c.abR.getValueFor(e).evaluate(e,c.IfY.getValueFor(t))))}connectedCallback(){super.connectedCallback();const t=(0,r.T)(this);if(t){const e=s.y$.getNotifier(t);e.subscribe(this,"fillColor"),e.subscribe(this,"neutralPalette"),this.handleChange(t,"fillColor")}}}(0,a.gn)([(0,l.Lj)({attribute:"card-fill-color",mode:"fromView"}),(0,a.w6)("design:type",String)],b.prototype,"cardFillColor",void 0),(0,a.gn)([(0,l.Lj)({attribute:"neutral-palette-source",mode:"fromView"}),(0,a.w6)("design:type",String)],b.prototype,"neutralPaletteSource",void 0);const x=b.compose({baseName:"card",baseClass:o.Z,template:d.O,styles:y}),C=y},5645:function(t,e,i){"use strict";i.d(e,{hQ:function(){return p},en:function(){return m},ee:function(){return f}});var a=i(33940),o=i(32612),n=i(65620),r=i(17993),s=i(53046),l=i(37139),d=i(56201),c=i(27663),u=i(82636),h=i(32804);const g=(t,e)=>s.i`
    ${(0,c.X)(t,e)}

    :host(:empty) .listbox {
        display: none;
    }

    :host([disabled]) *,
    :host([disabled]) {
        cursor: ${l.H};
        user-select: none;
    }

    :host(:active) .selected-value {
        user-select: none;
    }

    .selected-value {
        -webkit-appearance: none;
        background: transparent;
        border: none;
        color: inherit;
        font-size: ${h.cSu};
        line-height: ${h.RUt};
        height: calc(100% - ${h.Han} * 1px));
        margin: auto 0;
        width: 100%;
    }

    .selected-value:hover,
    .selected-value:${d.b},
    .selected-value:disabled,
    .selected-value:active {
        outline: none;
    }
`.withBehaviors((0,u.H)("filled",(0,c.A)(t,e)));class p extends o.h{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}(0,a.gn)([(0,n.Lj)({mode:"fromView"}),(0,a.w6)("design:type",String)],p.prototype,"appearance",void 0);const f=p.compose({baseName:"combobox",baseClass:o.h,template:r.M,styles:g,indicator:'\n    <svg\n        class="select-indicator"\n        part="select-indicator"\n        viewBox="0 0 12 7"\n        xmlns="http://www.w3.org/2000/svg"\n    >\n        <path\n            d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n        />\n    </svg>\n  '}),m=g},1393:function(t,e,i){"use strict";i.d(e,{EK:function(){return g}});var a=i(91281),o=i(30569),n=i(53046),r=i(67020),s=i(37139),l=i(56201),d=i(40082),c=i(87839),u=i(2658),h=i(32804);const g=a.U.compose({baseName:"flipper",template:o._,styles:(t,e)=>n.i`
        ${(0,r.j)("inline-flex")} :host {
            width: calc(${u.i} * 1px);
            height: calc(${u.i} * 1px);
            justify-content: center;
            align-items: center;
            margin: 0;
            position: relative;
            fill: currentcolor;
            color: ${h.CHi};
            background: transparent;
            border: none;
            outline: none;
            padding: 0;
        }

        :host::before {
            content: "";
            opacity: 0.8;
            background: ${h.jql};
            border: calc(${h.Han} * 1px) solid ${h.akT};
            border-radius: 50%;
            position: absolute;
            top: 0;
            right: 0;
            left: 0;
            bottom: 0;
            transition: all 0.1s ease-in-out;
        }

        .next,
        .previous {
            position: relative;
            ${""} width: 16px;
            height: 16px;
        }

        :host(.disabled) {
            opacity: ${h.VFZ};
            cursor: ${s.H};
        }

        :host(:hover) {
            cursor: pointer;
        }

        :host(:hover)::before {
            background: ${h.QpD};
            border-color: ${h.QPc};
        }

        :host(:${l.b}) {
            outline: none;
        }

        :host(:${l.b})::before {
            box-shadow: 0 0 0 1px ${h.yGg} inset;
            border-color: ${h.yGg};
        }

        :host(:active)::before {
            background: ${h.sG3};
            border-color: ${h.c1L};
        }

        :host::-moz-focus-inner {
            border: 0;
        }
    `.withBehaviors((0,d.vF)(n.i`
                :host {
                    background: ${c.H.Canvas};
                }
                :host .next,
                :host .previous {
                    color: ${c.H.ButtonText};
                    fill: currentcolor;
                }
                :host::before {
                    background: ${c.H.Canvas};
                    border-color: ${c.H.ButtonText};
                }
                :host(:hover)::before {
                    forced-color-adjust: none;
                    background: ${c.H.Highlight};
                    border-color: ${c.H.ButtonText};
                    opacity: 1;
                }
                :host(:hover) .next,
                :host(:hover) .previous {
                    forced-color-adjust: none;
                    color: ${c.H.HighlightText};
                    fill: currentcolor;
                }
                :host(.disabled) {
                    opacity: 1;
                }
                :host(.disabled)::before,
                :host(.disabled:hover)::before,
                :host(.disabled) .next,
                :host(.disabled) .previous,
                :host(.disabled:hover) .next,
                :host(.disabled:hover) .previous {
                    forced-color-adjust: none;
                    background: ${c.H.Canvas};
                    border-color: ${c.H.GrayText};
                    color: ${c.H.GrayText};
                    fill: ${c.H.GrayText};
                }
                :host(:${l.b})::before {
                    forced-color-adjust: none;
                    border-color: ${c.H.Highlight};
                    box-shadow: 0 0 0 2px ${c.H.Field},
                        0 0 0 4px ${c.H.FieldText};
                }
            `)),next:'\n    <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n        <path\n            d="M4.023 15.273L11.29 8 4.023.727l.704-.704L12.71 8l-7.984 7.977-.704-.704z"\n        />\n    </svg>\n  ',previous:'\n    <svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg">\n        <path\n            d="M11.273 15.977L3.29 8 11.273.023l.704.704L4.71 8l7.266 7.273-.704.704z"\n        />\n    </svg>\n  '})},31074:function(t,e,i){"use strict";i.d(e,{s:function(){return f},P:function(){return p}});var a=i(67491),o=i(34015),n=i(53046),r=i(67020),s=i(56201),l=i(37139),d=i(40082),c=i(87839),u=i(2658),h=i(32804);const g=(t,e)=>n.i`
        ${(0,r.j)("inline-flex")} :host {
            font-family: ${h.SVJ};
            border-radius: calc(${h.UWU} * 1px);
            border: calc(${h.vxp} * 1px) solid transparent;
            box-sizing: border-box;
            color: ${h.CHi};
            cursor: pointer;
            fill: currentcolor;
            font-size: ${h.cSu};
            height: calc(${u.i} * 1px);
            line-height: ${h.RUt};
            margin: 0 calc(${h._5n} * 1px);
            outline: none;
            overflow: hidden;
            align-items: center;
            padding: 0 calc(${h._5n} * 2.25px);
            user-select: none;
            white-space: nowrap;
        }

        :host(:${s.b}) {
            box-shadow: 0 0 0 calc(${h.vxp} * 1px) inset ${h.a2F};
            border-color: ${h.yGg};
            background: ${h.D8M};
            color: ${h.$uW};
        }

        :host([aria-selected="true"]) {
            background: ${h.Avx};
            color: ${h.w41};
        }

        :host(:hover) {
            background: ${h.OCG};
            color: ${h.lJV};
        }

        :host(:active) {
            background: ${h.UEO};
            color: ${h.PpH};
        }

        :host(:not([aria-selected="true"]):hover) {
            background: ${h.XiB};
            color: ${h.CHi};
        }

        :host(:not([aria-selected="true"]):active) {
            background: ${h.Gy2};
            color: ${h.CHi};
        }

        :host([disabled]) {
            cursor: ${l.H};
            opacity: ${h.VFZ};
        }

        :host([disabled]:hover) {
            background-color: inherit;
        }

        .content {
            grid-column-start: 2;
            justify-self: start;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .start,
        .end,
        ::slotted(svg) {
            display: flex;
        }

        ::slotted(svg) {
            ${""}
            height: calc(${h._5n} * 4px);
            width: calc(${h._5n} * 4px);
        }

        ::slotted([slot="end"]) {
            margin-inline-start: 1ch;
        }

        ::slotted([slot="start"]) {
            margin-inline-end: 1ch;
        }
    `.withBehaviors((0,d.vF)(n.i`
                :host {
                    border-color: transparent;
                    color: ${c.H.ButtonText};
                    forced-color-adjust: none;
                }

                :host(:not([aria-selected="true"]):hover),
                :host([aria-selected="true"]) {
                    background: ${c.H.Highlight};
                    color: ${c.H.HighlightText};
                }

                :host([disabled]),
                :host([disabled]:not([aria-selected="true"]):hover) {
                    background: ${c.H.Canvas};
                    color: ${c.H.GrayText};
                    fill: currentcolor;
                    opacity: 1;
                }
            `)),p=a.wt.compose({baseName:"option",template:o.T,styles:g}),f=g},60712:function(t,e,i){"use strict";i.d(e,{oM:function(){return y}});var a=i(20005),o=i(65620),n=i(87697),r=i(15983),s=i(36153),l=i(65825),d=i(11433),c=i(48839);class u extends c.I{constructor(){super(...arguments),this.orientation=r.i.horizontal,this.radioChangeHandler=t=>{const e=t.target;e.checked&&(this.slottedRadioButtons.forEach((t=>{t!==e&&(t.checked=!1,this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"))})),this.selectedRadio=e,this.value=e.value,e.setAttribute("tabindex","0"),this.focusedRadio=e),t.stopPropagation()},this.moveToRadioByIndex=(t,e)=>{const i=t[e];this.isInsideToolbar||(i.setAttribute("tabindex","0"),i.readOnly?this.slottedRadioButtons.forEach((t=>{t!==i&&t.setAttribute("tabindex","-1")})):(i.checked=!0,this.selectedRadio=i)),this.focusedRadio=i,i.focus()},this.moveRightOffGroup=()=>{var t;null===(t=this.nextElementSibling)||void 0===t||t.focus()},this.moveLeftOffGroup=()=>{var t;null===(t=this.previousElementSibling)||void 0===t||t.focus()},this.focusOutHandler=t=>{const e=this.slottedRadioButtons,i=t.target,a=null!==i?e.indexOf(i):0,o=this.focusedRadio?e.indexOf(this.focusedRadio):-1;return(0===o&&a===o||o===e.length-1&&o===a)&&(this.selectedRadio?(this.focusedRadio=this.selectedRadio,this.isInsideFoundationToolbar||(this.selectedRadio.setAttribute("tabindex","0"),e.forEach((t=>{t!==this.selectedRadio&&t.setAttribute("tabindex","-1")})))):(this.focusedRadio=e[0],this.focusedRadio.setAttribute("tabindex","0"),e.forEach((t=>{t!==this.focusedRadio&&t.setAttribute("tabindex","-1")})))),!0},this.clickHandler=t=>{const e=t.target;if(e){const t=this.slottedRadioButtons;e.checked||0===t.indexOf(e)?(e.setAttribute("tabindex","0"),this.selectedRadio=e):(e.setAttribute("tabindex","-1"),this.selectedRadio=null),this.focusedRadio=e}t.preventDefault()},this.shouldMoveOffGroupToTheRight=(t,e,i)=>t===e.length&&this.isInsideToolbar&&i===s.mr,this.shouldMoveOffGroupToTheLeft=(t,e)=>(this.focusedRadio?t.indexOf(this.focusedRadio)-1:0)<0&&this.isInsideToolbar&&e===s.BE,this.checkFocusedRadio=()=>{null===this.focusedRadio||this.focusedRadio.readOnly||this.focusedRadio.checked||(this.focusedRadio.checked=!0,this.focusedRadio.setAttribute("tabindex","0"),this.focusedRadio.focus(),this.selectedRadio=this.focusedRadio)},this.moveRight=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)+1:1,this.shouldMoveOffGroupToTheRight(i,e,t.key))this.moveRightOffGroup();else for(i===e.length&&(i=0);i<e.length&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;if(i+1>=e.length){if(this.isInsideToolbar)break;i=0}else i+=1}},this.moveLeft=t=>{const e=this.slottedRadioButtons;let i=0;if(i=this.focusedRadio?e.indexOf(this.focusedRadio)-1:0,i=i<0?e.length-1:i,this.shouldMoveOffGroupToTheLeft(e,t.key))this.moveLeftOffGroup();else for(;i>=0&&e.length>1;){if(!e[i].disabled){this.moveToRadioByIndex(e,i);break}if(this.focusedRadio&&i===e.indexOf(this.focusedRadio))break;i-1<0?i=e.length-1:i-=1}},this.keydownHandler=t=>{const e=t.key;if(e in s.uf&&this.isInsideFoundationToolbar)return!0;switch(e){case s.kL:this.checkFocusedRadio();break;case s.mr:case s.iF:this.direction===l.N.ltr?this.moveRight(t):this.moveLeft(t);break;case s.BE:case s.SB:this.direction===l.N.ltr?this.moveLeft(t):this.moveRight(t);break;default:return!0}}}readOnlyChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{this.readOnly?t.readOnly=!0:t.readOnly=!1}))}disabledChanged(){void 0!==this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{this.disabled?t.disabled=!0:t.disabled=!1}))}nameChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{t.setAttribute("name",this.name)}))}valueChanged(){this.slottedRadioButtons&&this.slottedRadioButtons.forEach((t=>{t.value===this.value&&(t.checked=!0,this.selectedRadio=t)})),this.$emit("change")}slottedRadioButtonsChanged(t,e){this.slottedRadioButtons&&this.slottedRadioButtons.length>0&&this.setupRadioButtons()}get parentToolbar(){return this.closest('[role="toolbar"]')}get isInsideToolbar(){var t;return null!==(t=this.parentToolbar)&&void 0!==t&&t}get isInsideFoundationToolbar(){var t;return!!(null===(t=this.parentToolbar)||void 0===t?void 0:t.$fastController)}connectedCallback(){super.connectedCallback(),this.direction=(0,d.M)(this),this.setupRadioButtons()}disconnectedCallback(){this.slottedRadioButtons.forEach((t=>{t.removeEventListener("change",this.radioChangeHandler)}))}setupRadioButtons(){const t=this.slottedRadioButtons.filter((t=>t.hasAttribute("checked"))),e=t?t.length:0;if(e>1){t[e-1].checked=!0}let i=!1;if(this.slottedRadioButtons.forEach((t=>{void 0!==this.name&&t.setAttribute("name",this.name),this.disabled&&(t.disabled=!0),this.readOnly&&(t.readOnly=!0),this.value&&this.value===t.value?(this.selectedRadio=t,this.focusedRadio=t,t.checked=!0,t.setAttribute("tabindex","0"),i=!0):(this.isInsideFoundationToolbar||t.setAttribute("tabindex","-1"),t.checked=!1),t.addEventListener("change",this.radioChangeHandler)})),void 0===this.value&&this.slottedRadioButtons.length>0){const t=this.slottedRadioButtons.filter((t=>t.hasAttribute("checked"))),e=null!==t?t.length:0;if(e>0&&!i){const i=t[e-1];i.checked=!0,this.focusedRadio=i,i.setAttribute("tabindex","0")}else this.slottedRadioButtons[0].setAttribute("tabindex","0"),this.focusedRadio=this.slottedRadioButtons[0]}}}(0,a.gn)([(0,o.Lj)({attribute:"readonly",mode:"boolean"})],u.prototype,"readOnly",void 0),(0,a.gn)([(0,o.Lj)({attribute:"disabled",mode:"boolean"})],u.prototype,"disabled",void 0),(0,a.gn)([o.Lj],u.prototype,"name",void 0),(0,a.gn)([o.Lj],u.prototype,"value",void 0),(0,a.gn)([o.Lj],u.prototype,"orientation",void 0),(0,a.gn)([n.LO],u.prototype,"childItems",void 0),(0,a.gn)([n.LO],u.prototype,"slottedRadioButtons",void 0);var h=i(39181),g=i(90960),p=i(74009);var f=i(53046),m=i(67020),v=i(32804);const y=u.compose({baseName:"radio-group",template:(t,e)=>h.d`
    <template
        role="radiogroup"
        aria-disabled="${t=>t.disabled}"
        aria-readonly="${t=>t.readOnly}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
        @keydown="${(t,e)=>t.keydownHandler(e.event)}"
        @focusout="${(t,e)=>t.focusOutHandler(e.event)}"
    >
        <slot name="label"></slot>
        <div
            class="positioning-region ${t=>t.orientation===r.i.horizontal?"horizontal":"vertical"}"
            part="positioning-region"
        >
            <slot
                ${(0,g.Q)({property:"slottedRadioButtons",filter:(0,p.R)("[role=radio]")})}
            ></slot>
        </div>
    </template>
`,styles:(t,e)=>f.i`
    ${(0,m.j)("flex")} :host {
        align-items: flex-start;
        margin: calc(${v._5n} * 1px) 0;
        flex-direction: column;
    }

    .positioning-region {
        display: flex;
        flex-wrap: wrap;
    }

    :host([orientation="vertical"]) .positioning-region {
        flex-direction: column;
    }

    :host([orientation="horizontal"]) .positioning-region {
        flex-direction: row;
    }
`})},65033:function(t,e,i){"use strict";i.d(e,{d$:function(){return w}});var a=i(20005),o=i(65620),n=i(87697),r=i(36153),s=i(82500),l=i(48839);class d extends l.I{}class c extends((0,s.V2)(d)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}class u extends c{constructor(){super(),this.initialValue="on",this.keypressHandler=t=>{if(t.key!==r.BI)return!0;this.checked||this.readOnly||(this.checked=!0)},this.proxy.setAttribute("type","radio")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly)}defaultCheckedChanged(){var t;this.$fastController.isConnected&&!this.dirtyChecked&&(this.isInsideRadioGroup()||(this.checked=null!==(t=this.defaultChecked)&&void 0!==t&&t,this.dirtyChecked=!1))}connectedCallback(){var t,e;super.connectedCallback(),this.validate(),"radiogroup"!==(null===(t=this.parentElement)||void 0===t?void 0:t.getAttribute("role"))&&null===this.getAttribute("tabindex")&&(this.disabled||this.setAttribute("tabindex","0")),this.checkedAttribute&&(this.dirtyChecked||this.isInsideRadioGroup()||(this.checked=null!==(e=this.defaultChecked)&&void 0!==e&&e,this.dirtyChecked=!1))}isInsideRadioGroup(){return null!==this.closest("[role=radiogroup]")}clickHandler(t){this.disabled||this.readOnly||this.checked||(this.checked=!0)}}(0,a.gn)([(0,o.Lj)({attribute:"readonly",mode:"boolean"})],u.prototype,"readOnly",void 0),(0,a.gn)([n.LO],u.prototype,"name",void 0),(0,a.gn)([n.LO],u.prototype,"defaultSlottedNodes",void 0);var h=i(39181),g=i(90960);var p=i(53046),f=i(67020),m=i(56201),v=i(37139),y=i(40082),b=i(87839),x=i(2658),C=i(32804);const w=u.compose({baseName:"radio",template:(t,e)=>h.d`
    <template
        role="radio"
        class="${t=>t.checked?"checked":""} ${t=>t.readOnly?"readonly":""}"
        aria-checked="${t=>t.checked}"
        aria-required="${t=>t.required}"
        aria-disabled="${t=>t.disabled}"
        aria-readonly="${t=>t.readOnly}"
        @keypress="${(t,e)=>t.keypressHandler(e.event)}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
    >
        <div part="control" class="control">
            <slot name="checked-indicator">
                ${e.checkedIndicator||""}
            </slot>
        </div>
        <label
            part="label"
            class="${t=>t.defaultSlottedNodes&&t.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,g.Q)("defaultSlottedNodes")}></slot>
        </label>
    </template>
`,styles:(t,e)=>p.i`
        ${(0,f.j)("inline-flex")} :host {
            --input-size: calc((${x.i} / 2) + ${C._5n});
            align-items: center;
            outline: none;
            margin: calc(${C._5n} * 1px) 0;
            ${""} user-select: none;
            position: relative;
            flex-direction: row;
            transition: all 0.2s ease-in-out;
        }

        .control {
            position: relative;
            width: calc(var(--input-size) * 1px);
            height: calc(var(--input-size) * 1px);
            box-sizing: border-box;
            border-radius: 50%;
            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};
        }

        .control,
        .checked-indicator {
            flex-shrink: 0;
        }

        .checked-indicator {
            position: absolute;
            top: 5px;
            left: 5px;
            right: 5px;
            bottom: 5px;
            border-radius: 50%;
            display: inline-block;
            background: ${C.CHi};
            fill: ${C.CHi};
            opacity: 0;
            pointer-events: none;
        }

        :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: ${v.H};
        }

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

        :host(.disabled) {
            opacity: ${C.VFZ};
        }
    `.withBehaviors((0,y.vF)(p.i`
                .control {
                    forced-color-adjust: none;
                    border-color: ${b.H.FieldText};
                    background: ${b.H.Field};
                }
                :host(:enabled) .control:hover,
                .control:active {
                    border-color: ${b.H.Highlight};
                    background: ${b.H.Field};
                }
                :host(:${m.b}) .control {
                    border-color: ${b.H.Highlight};
                    box-shadow: 0 0 0 2px ${b.H.Field},
                        0 0 0 4px ${b.H.FieldText};
                }
                :host(.checked:${m.b}:enabled) .control {
                    border-color: ${b.H.Highlight};
                    box-shadow: 0 0 0 2px ${b.H.Field},
                        0 0 0 4px ${b.H.FieldText};
                }
                :host(.checked:enabled) .control:hover,
                .control:active {
                    border-color: ${b.H.Highlight};
                    background: ${b.H.Highlight};
                }
                :host(.checked) .checked-indicator {
                    background: ${b.H.Highlight};
                    fill: ${b.H.Highlight};
                }
                :host(.checked) .control:hover .checked-indicator {
                    background: ${b.H.HighlightText};
                    fill: ${b.H.HighlightText};
                }
                :host(.disabled) {
                    forced-color-adjust: none;
                    opacity: 1;
                }
                :host(.disabled) .label {
                    color: ${b.H.GrayText};
                }
                :host(.disabled) .control,
                :host(.checked.disabled) .control:hover,
                .control:active {
                    background: ${b.H.Field};
                    border-color: ${b.H.GrayText};
                }
                :host(.disabled) .checked-indicator,
                :host(.checked.disabled) .control:hover .checked-indicator {
                    fill: ${b.H.GrayText};
                    background: ${b.H.GrayText};
                }
            `)),checkedIndicator:'\n    <div part="checked-indicator" class="checked-indicator"></div>\n  '})},8417:function(t,e,i){"use strict";i.d(e,{Ph:function(){return w},$M:function(){return T},XO:function(){return k}});var a=i(33940),o=i(65620),n=i(20005),r=i(12968),s=i(87697),l=i(11673),d=i(36153),c=i(65898),u=i(51208),h=i(86076),g=i(17453),p=i(82500);class f extends g.k{}class m extends((0,p.Um)(f)){constructor(){super(...arguments),this.proxy=document.createElement("select")}}var v=i(51565);class y extends m{constructor(){super(...arguments),this.open=!1,this.forcedPosition=!1,this.listboxId=(0,l.EL)("listbox-"),this.maxHeight=0}openChanged(t,e){if(this.collapsible){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),this.indexWhenOpened=this.selectedIndex,void r.SO.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}}get collapsible(){return!(this.multiple||"number"==typeof this.size)}get value(){return s.y$.track(this,"value"),this._value}set value(t){var e,i,a,o,n,r,l;const d=`${this._value}`;if(null===(e=this._options)||void 0===e?void 0:e.length){const e=this._options.findIndex((e=>e.value===t)),s=null!==(a=null===(i=this._options[this.selectedIndex])||void 0===i?void 0:i.value)&&void 0!==a?a:null,d=null!==(n=null===(o=this._options[e])||void 0===o?void 0:o.value)&&void 0!==n?n:null;-1!==e&&s===d||(t="",this.selectedIndex=e),t=null!==(l=null===(r=this.firstSelectedOption)||void 0===r?void 0:r.value)&&void 0!==l?l:t}d!==t&&(this._value=t,super.valueChanged(d,t),s.y$.notify(this,"value"),this.updateDisplayValue())}updateValue(t){var e,i;this.$fastController.isConnected&&(this.value=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.value)&&void 0!==i?i:""),t&&(this.$emit("input"),this.$emit("change",this,{bubbles:!0,composed:void 0}))}selectedIndexChanged(t,e){super.selectedIndexChanged(t,e),this.updateValue()}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?v.S.above:v.S.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===v.S.above?~~t.top:~~e}get displayValue(){var t,e;return s.y$.track(this,"displayValue"),null!==(e=null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text)&&void 0!==e?e:""}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}formResetCallback(){this.setProxyOptions(),super.setDefaultSelectedOption(),-1===this.selectedIndex&&(this.selectedIndex=0)}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(e&&e.disabled)return}return super.clickHandler(t),this.open=this.collapsible&&!this.open,this.open||this.indexWhenOpened===this.selectedIndex||this.updateValue(!0),!0}}focusoutHandler(t){var e;if(super.focusoutHandler(t),!this.open)return!0;const i=t.relatedTarget;this.isSameNode(i)?this.focus():(null===(e=this.options)||void 0===e?void 0:e.includes(i))||(this.open=!1,this.indexWhenOpened!==this.selectedIndex&&this.updateValue(!0))}handleChange(t,e){super.handleChange(t,e),"value"===e&&this.updateValue()}slottedOptionsChanged(t,e){this.options.forEach((t=>{s.y$.getNotifier(t).unsubscribe(this,"value")})),super.slottedOptionsChanged(t,e),this.options.forEach((t=>{s.y$.getNotifier(t).subscribe(this,"value")})),this.setProxyOptions(),this.updateValue()}mousedownHandler(t){var e;return t.offsetX>=0&&t.offsetX<=(null===(e=this.listbox)||void 0===e?void 0:e.scrollWidth)?super.mousedownHandler(t):this.collapsible}multipleChanged(t,e){super.multipleChanged(t,e),this.proxy&&(this.proxy.multiple=e)}selectedOptionsChanged(t,e){var i;super.selectedOptionsChanged(t,e),null===(i=this.options)||void 0===i||i.forEach(((t,e)=>{var i;const a=null===(i=this.proxy)||void 0===i?void 0:i.options.item(e);a&&(a.selected=t.selected)}))}setDefaultSelectedOption(){var t;const e=null!==(t=this.options)&&void 0!==t?t:Array.from(this.children).filter(c.R.slottedOptionFilter),i=null==e?void 0:e.findIndex((t=>t.hasAttribute("selected")||t.selected||t.value===this.value));this.selectedIndex=-1===i?0:i}setProxyOptions(){this.proxy instanceof HTMLSelectElement&&this.options&&(this.proxy.options.length=0,this.options.forEach((t=>{const e=t.proxy||(t instanceof HTMLOptionElement?t.cloneNode():null);e&&this.proxy.options.add(e)})))}keydownHandler(t){super.keydownHandler(t);const e=t.key||t.key.charCodeAt(0);switch(e){case d.BI:t.preventDefault(),this.collapsible&&this.typeAheadExpired&&(this.open=!this.open);break;case d.tU:case d.Kh:t.preventDefault();break;case d.kL:t.preventDefault(),this.open=!this.open;break;case d.CX:this.collapsible&&this.open&&(t.preventDefault(),this.open=!1);break;case d.oM:return this.collapsible&&this.open&&(t.preventDefault(),this.open=!1),!0}return this.open||this.indexWhenOpened===this.selectedIndex||(this.updateValue(!0),this.indexWhenOpened=this.selectedIndex),!(e===d.iF||e===d.SB)}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.addEventListener("contentchange",this.updateDisplayValue)}disconnectedCallback(){this.removeEventListener("contentchange",this.updateDisplayValue),super.disconnectedCallback()}sizeChanged(t,e){super.sizeChanged(t,e),this.proxy&&(this.proxy.size=e)}updateDisplayValue(){this.collapsible&&s.y$.notify(this,"displayValue")}}(0,n.gn)([(0,o.Lj)({attribute:"open",mode:"boolean"})],y.prototype,"open",void 0),(0,n.gn)([s.lk],y.prototype,"collapsible",null),(0,n.gn)([s.LO],y.prototype,"control",void 0),(0,n.gn)([(0,o.Lj)({attribute:"position"})],y.prototype,"positionAttribute",void 0),(0,n.gn)([s.LO],y.prototype,"position",void 0),(0,n.gn)([s.LO],y.prototype,"maxHeight",void 0);class b{}(0,n.gn)([s.LO],b.prototype,"ariaControls",void 0),(0,h.e)(b,c.x),(0,h.e)(y,u.hW,b);var x=i(9530),C=i(27663);class w extends y{appearanceChanged(t,e){t!==e&&(this.classList.add(e),this.classList.remove(t))}connectedCallback(){super.connectedCallback(),this.appearance||(this.appearance="outline")}}(0,a.gn)([(0,o.Lj)({mode:"fromView"}),(0,a.w6)("design:type",String)],w.prototype,"appearance",void 0);const T=w.compose({baseName:"select",baseClass:y,template:x.U,styles:C.X,indicator:'\n    <svg\n        class="select-indicator"\n        part="select-indicator"\n        viewBox="0 0 12 7"\n        xmlns="http://www.w3.org/2000/svg"\n    >\n        <path\n            d="M11.85.65c.2.2.2.5 0 .7L6.4 6.84a.55.55 0 01-.78 0L.14 1.35a.5.5 0 11.71-.7L6 5.8 11.15.65c.2-.2.5-.2.7 0z"\n        />\n    </svg>\n  '}),k=C.X},27663:function(t,e,i){"use strict";i.d(e,{A:function(){return g},X:function(){return p}});var a=i(53046),o=i(56201),n=i(67020),r=i(37139),s=i(40082),l=i(87839),d=i(2658),c=i(62734),u=i(82636),h=i(32804);const g=(t,e)=>a.i`
    :host([appearance="filled"]) {
        background: ${h.wFS};
        border-color: transparent;
    }

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

    :host([appearance="filled"]:${o.b}) {
        border-color: ${h.yGg};
    }
`,p=(t,e)=>a.i`
        ${(0,n.j)("inline-flex")} :host {
            --elevation: 14;
            background: ${h._Bj};
            border-radius: calc(${h.UWU} * 1px);
            border: calc(${h.Han} * 1px) solid ${h.akT};
            box-sizing: border-box;
            color: ${h.CHi};
            font-family: ${h.SVJ};
            height: calc(${d.i} * 1px);
            position: relative;
            user-select: none;
            min-width: 250px;
            vertical-align: top;
        }

        .listbox {
            ${c.XC}
            background: ${h.s55};
            border-radius: calc(${h.UWU} * 1px);
            box-sizing: border-box;
            display: inline-flex;
            flex-direction: column;
            left: 0;
            max-height: calc(var(--max-height) - (${d.i} * 1px));
            padding: calc(${h._5n} * 1px) 0;
            overflow-y: auto;
            position: absolute;
            width: 100%;
            z-index: 1;
            margin: 1px 0;
        }

        .listbox[hidden] {
            display: none;
        }

        .control {
            align-items: center;
            box-sizing: border-box;
            cursor: pointer;
            display: flex;
            font-size: ${h.cSu};
            font-family: inherit;
            min-height: 100%;
            line-height: ${h.RUt};
            padding: 0 calc(${h._5n} * 2.25px);
            width: 100%;
        }

        :host(:not([disabled]):hover) {
            background: ${h.Tm7};
            border-color: ${h.QPc};
        }

        :host(:focus) {
            outline: none;
        }

        :host(:${o.b}) {
            border-color: ${h.yGg};
            outline: none;
            box-shadow: 0 0 0 1px inset ${h.yGg};
        }

        :host([open]:${o.b}) {
            border-color: ${h.akT};
            outline: none;
            box-shadow: none;
        }

        :host(:${o.b}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
            box-shadow: 0 0 0 calc(${h.vxp} * 1px) inset ${h.a2F};
            border-color: ${h.yGg};
            background: ${h.D8M};
            color: ${h.$uW};
        }

        :host([disabled]) {
            cursor: ${r.H};
            opacity: ${h.VFZ};
        }

        :host([disabled]) .control {
            cursor: ${r.H};
            user-select: none;
        }

        :host([disabled]:hover) {
            background: ${h.jql};
            color: ${h.CHi};
            fill: currentcolor;
        }

        :host(:not([disabled])) .control:active {
            background: ${h.Ium};
            border-color: ${h.c1L};
            border-radius: calc(${h.UWU} * 1px);
        }

        :host([open][position="above"]) .listbox {
            border-bottom-left-radius: 0;
            border-bottom-right-radius: 0;
        }

        :host([open][position="below"]) .listbox {
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }

        :host([open][position="above"]) .listbox {
            border-bottom: 0;
            bottom: calc(${d.i} * 1px);
        }

        :host([open][position="below"]) .listbox {
            border-top: 0;
            top: calc(${d.i} * 1px);
        }

        .selected-value {
            font-family: inherit;
            flex: 1 1 auto;
            text-align: start;
        }

        .indicator {
            flex: 0 0 auto;
            margin-inline-start: 1em;
        }

        ::slotted([name="listbox"]) {
            display: none;
            width: 100%;
        }

        :host([open]) ::slotted([name="listbox"]) {
            display: flex;
            position: absolute;
            ${c.XC}
        }

        .end {
            margin-inline-start: auto;
        }

        .start,
        .end,
        .indicator,
        .select-indicator,
        ::slotted(svg) {
            ${""}
            fill: currentcolor;
            height: 1em;
            min-height: calc(${h._5n} * 4px);
            min-width: calc(${h._5n} * 4px);
            width: 1em;
        }

        ::slotted([role="option"]) {
            flex: 0 0 auto;
        }
    `.withBehaviors((0,u.H)("filled",g(t,e)),(0,s.vF)(a.i`
                :host([disabled]) {
                    border-color: ${l.H.GrayText};
                    background-color: ${l.H.ButtonFace};
                    color: ${l.H.GrayText};
                    opacity: 1;
                    forced-color-adjust: none;
                }

                :host([disabled]:hover) {
                    background: ${l.H.ButtonFace};
                }

                :host([disabled]) .control {
                    color: ${l.H.GrayText};
                    border-color: ${l.H.GrayText};
                }

                :host(:not([disabled]):hover) {
                    background: ${l.H.ButtonFace};
                    border-color: ${l.H.Highlight};
                }

                :host(:${o.b}) {
                    forced-color-adjust: none;
                    background: ${l.H.ButtonFace};
                    border-color: ${l.H.Highlight};
                    box-shadow: 0 0 0 1px inset ${l.H.Highlight};
                    color: ${l.H.ButtonText};
                    fill: currentcolor;
                }

                :host([open]) .listbox {
                    background: ${l.H.ButtonFace};
                    border: 1px solid ${l.H.ButtonText};
                }

                :host(:${o.b}) ::slotted([aria-selected="true"][role="option"]:not([disabled])) {
                    background: ${l.H.Highlight};
                    border-color: ${l.H.ButtonText};
                    box-shadow: 0 0 0 calc(${h.vxp} * 1px) inset
                        ${l.H.HighlightText};
                    color: ${l.H.HighlightText};
                    fill: currentcolor;
                }

                ::slotted([role="option"]:not([aria-selected="true"]):not([disabled]):hover) {
                    forced-color-adjust: none;
                    color: ${l.H.ButtonText};
                    background: ${l.H.ButtonFace};
                    border-color: ${l.H.Highlight};
                    box-shadow: none;
                }
            `))},65130:function(t,e,i){"use strict";i.d(e,{Z:function(){return o}});var a=i(48839);class o extends a.I{}},48657:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var a=i(39181);const o=(t,e)=>a.d`
    <slot></slot>
`},32612:function(t,e,i){"use strict";i.d(e,{h:function(){return x}});var a=i(20005),o=i(12968),n=i(87697),r=i(65620),s=i(11673),l=i(78945),d=i(65898),c=i(51208),u=i(51565),h=i(86076),g=i(82500);class p extends d.R{}class f extends((0,g.Um)(p)){constructor(){super(...arguments),this.proxy=document.createElement("input")}}const m="inline",v="list",y="both",b="none";class x extends f{constructor(){super(...arguments),this._value="",this.filteredOptions=[],this.filter="",this.forcedPosition=!1,this.listboxId=(0,s.EL)("listbox-"),this.maxHeight=0,this.open=!1}formResetCallback(){super.formResetCallback(),this.setDefaultSelectedOption(),this.updateValue()}get isAutocompleteInline(){return this.autocomplete===m||this.isAutocompleteBoth}get isAutocompleteList(){return this.autocomplete===v||this.isAutocompleteBoth}get isAutocompleteBoth(){return this.autocomplete===y}openChanged(){if(this.open)return this.ariaControls=this.listboxId,this.ariaExpanded="true",this.setPositioning(),this.focusAndScrollOptionIntoView(),void o.SO.queueUpdate((()=>this.focus()));this.ariaControls="",this.ariaExpanded="false"}get options(){return n.y$.track(this,"options"),this.filteredOptions.length?this.filteredOptions:this._options}set options(t){this._options=t,n.y$.notify(this,"options")}placeholderChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.placeholder=this.placeholder)}positionChanged(t,e){this.positionAttribute=e,this.setPositioning()}get value(){return n.y$.track(this,"value"),this._value}set value(t){var e,i,a;const o=`${this._value}`;if(this.$fastController.isConnected&&this.options){const o=this.options.findIndex((e=>e.text.toLowerCase()===t.toLowerCase())),n=null===(e=this.options[this.selectedIndex])||void 0===e?void 0:e.text,r=null===(i=this.options[o])||void 0===i?void 0:i.text;this.selectedIndex=n!==r?o:this.selectedIndex,t=(null===(a=this.firstSelectedOption)||void 0===a?void 0:a.text)||t}o!==t&&(this._value=t,super.valueChanged(o,t),n.y$.notify(this,"value"))}clickHandler(t){if(!this.disabled){if(this.open){const e=t.target.closest("option,[role=option]");if(!e||e.disabled)return;this.selectedOptions=[e],this.control.value=e.text,this.clearSelectionRange(),this.updateValue(!0)}return this.open=!this.open,this.open&&this.control.focus(),!0}}connectedCallback(){super.connectedCallback(),this.forcedPosition=!!this.positionAttribute,this.value&&(this.initialValue=this.value)}disabledChanged(t,e){super.disabledChanged&&super.disabledChanged(t,e),this.ariaDisabled=this.disabled?"true":"false"}filterOptions(){this.autocomplete&&this.autocomplete!==b||(this.filter="");const t=this.filter.toLowerCase();this.filteredOptions=this._options.filter((t=>t.text.toLowerCase().startsWith(this.filter.toLowerCase()))),this.isAutocompleteList&&(this.filteredOptions.length||t||(this.filteredOptions=this._options),this._options.forEach((t=>{t.hidden=!this.filteredOptions.includes(t)})))}focusAndScrollOptionIntoView(){this.contains(document.activeElement)&&(this.control.focus(),this.firstSelectedOption&&requestAnimationFrame((()=>{var t;null===(t=this.firstSelectedOption)||void 0===t||t.scrollIntoView({block:"nearest"})})))}focusoutHandler(t){if(this.syncValue(),!this.open)return!0;const e=t.relatedTarget;this.isSameNode(e)?this.focus():this.options&&this.options.includes(e)||(this.open=!1)}inputHandler(t){if(this.filter=this.control.value,this.filterOptions(),this.isAutocompleteInline||(this.selectedIndex=this.options.map((t=>t.text)).indexOf(this.control.value)),t.inputType.includes("deleteContent")||!this.filter.length)return!0;this.isAutocompleteList&&!this.open&&(this.open=!0),this.isAutocompleteInline&&(this.filteredOptions.length?(this.selectedOptions=[this.filteredOptions[0]],this.selectedIndex=this.options.indexOf(this.firstSelectedOption),this.setInlineSelection()):this.selectedIndex=-1)}keydownHandler(t){const e=t.key;if(t.ctrlKey||t.shiftKey)return!0;switch(e){case"Enter":this.syncValue(),this.isAutocompleteInline&&(this.filter=this.value),this.open=!1,this.clearSelectionRange();break;case"Escape":if(this.isAutocompleteInline||(this.selectedIndex=-1),this.open){this.open=!1;break}this.value="",this.control.value="",this.filter="",this.filterOptions();break;case"Tab":if(this.setInputToSelection(),!this.open)return!0;t.preventDefault(),this.open=!1;break;case"ArrowUp":case"ArrowDown":if(this.filterOptions(),!this.open){this.open=!0;break}this.filteredOptions.length>0&&super.keydownHandler(t),this.isAutocompleteInline&&this.setInlineSelection();break;default:return!0}}keyupHandler(t){switch(t.key){case"ArrowLeft":case"ArrowRight":case"Backspace":case"Delete":case"Home":case"End":this.filter=this.control.value,this.selectedIndex=-1,this.filterOptions()}}selectedIndexChanged(t,e){if(this.$fastController.isConnected){if((e=(0,l.b9)(-1,this.options.length-1,e))!==this.selectedIndex)return void(this.selectedIndex=e);super.selectedIndexChanged(t,e)}}selectPreviousOption(){!this.disabled&&this.selectedIndex>=0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){if(this.$fastController.isConnected&&this.options){const t=this.options.findIndex((t=>null!==t.getAttribute("selected")||t.selected));this.selectedIndex=t,!this.dirtyValue&&this.firstSelectedOption&&(this.value=this.firstSelectedOption.text),this.setSelectedOptions()}}setInputToSelection(){this.firstSelectedOption&&(this.control.value=this.firstSelectedOption.text,this.control.focus())}setInlineSelection(){this.firstSelectedOption&&(this.setInputToSelection(),this.control.setSelectionRange(this.filter.length,this.control.value.length,"backward"))}syncValue(){var t;const e=this.selectedIndex>-1?null===(t=this.firstSelectedOption)||void 0===t?void 0:t.text:this.control.value;this.updateValue(this.value!==e)}setPositioning(){const t=this.getBoundingClientRect(),e=window.innerHeight-t.bottom;this.position=this.forcedPosition?this.positionAttribute:t.top>e?u.S.above:u.S.below,this.positionAttribute=this.forcedPosition?this.positionAttribute:this.position,this.maxHeight=this.position===u.S.above?~~t.top:~~e}selectedOptionsChanged(t,e){this.$fastController.isConnected&&this._options.forEach((t=>{t.selected=e.includes(t)}))}slottedOptionsChanged(t,e){super.slottedOptionsChanged(t,e),this.updateValue()}updateValue(t){var e;this.$fastController.isConnected&&(this.value=(null===(e=this.firstSelectedOption)||void 0===e?void 0:e.text)||this.control.value,this.control.value=this.value),t&&this.$emit("change")}clearSelectionRange(){const t=this.control.value.length;this.control.setSelectionRange(t,t)}}(0,a.gn)([(0,r.Lj)({attribute:"autocomplete",mode:"fromView"})],x.prototype,"autocomplete",void 0),(0,a.gn)([n.LO],x.prototype,"maxHeight",void 0),(0,a.gn)([(0,r.Lj)({attribute:"open",mode:"boolean"})],x.prototype,"open",void 0),(0,a.gn)([r.Lj],x.prototype,"placeholder",void 0),(0,a.gn)([(0,r.Lj)({attribute:"position"})],x.prototype,"positionAttribute",void 0),(0,a.gn)([n.LO],x.prototype,"position",void 0);class C{}(0,a.gn)([n.LO],C.prototype,"ariaAutoComplete",void 0),(0,a.gn)([n.LO],C.prototype,"ariaControls",void 0),(0,h.e)(C,d.x),(0,h.e)(x,c.hW,C)},17993:function(t,e,i){"use strict";i.d(e,{M:function(){return l}});var a=i(39181),o=i(58952),n=i(90960),r=i(65898),s=i(51208);const l=(t,e)=>a.d`
    <template
        aria-disabled="${t=>t.ariaDisabled}"
        autocomplete="${t=>t.autocomplete}"
        class="${t=>t.open?"open":""} ${t=>t.disabled?"disabled":""} ${t=>t.position}"
        ?open="${t=>t.open}"
        tabindex="${t=>t.disabled?null:"0"}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
        @focusout="${(t,e)=>t.focusoutHandler(e.event)}"
        @keydown="${(t,e)=>t.keydownHandler(e.event)}"
    >
        <div class="control" part="control">
            ${(0,s.m9)(t,e)}
            <slot name="control">
                <input
                    aria-activedescendant="${t=>t.open?t.ariaActiveDescendant:null}"
                    aria-autocomplete="${t=>t.ariaAutoComplete}"
                    aria-controls="${t=>t.ariaControls}"
                    aria-disabled="${t=>t.ariaDisabled}"
                    aria-expanded="${t=>t.ariaExpanded}"
                    aria-haspopup="listbox"
                    class="selected-value"
                    part="selected-value"
                    placeholder="${t=>t.placeholder}"
                    role="combobox"
                    type="text"
                    ?disabled="${t=>t.disabled}"
                    :value="${t=>t.value}"
                    @input="${(t,e)=>t.inputHandler(e.event)}"
                    @keyup="${(t,e)=>t.keyupHandler(e.event)}"
                    ${(0,o.i)("control")}
                />
                <div class="indicator" part="indicator" aria-hidden="true">
                    <slot name="indicator">
                        ${e.indicator||""}
                    </slot>
                </div>
            </slot>
            ${(0,s.LC)(t,e)}
        </div>
        <div
            class="listbox"
            id="${t=>t.listboxId}"
            part="listbox"
            role="listbox"
            ?disabled="${t=>t.disabled}"
            ?hidden="${t=>!t.open}"
            ${(0,o.i)("listbox")}
        >
            <slot
                ${(0,n.Q)({filter:r.R.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
            ></slot>
        </div>
    </template>
`},91281:function(t,e,i){"use strict";i.d(e,{U:function(){return s}});var a=i(20005),o=i(65620),n=i(48839),r=i(16882);class s extends n.I{constructor(){super(...arguments),this.hiddenFromAT=!0,this.direction=r.L.next}keyupHandler(t){if(!this.hiddenFromAT){const e=t.key;"Enter"!==e&&"Space"!==e||this.$emit("click",t),"Escape"===e&&this.blur()}}}(0,a.gn)([(0,o.Lj)({mode:"boolean"})],s.prototype,"disabled",void 0),(0,a.gn)([(0,o.Lj)({attribute:"aria-hidden",converter:o.bw})],s.prototype,"hiddenFromAT",void 0),(0,a.gn)([o.Lj],s.prototype,"direction",void 0)},16882:function(t,e,i){"use strict";i.d(e,{L:function(){return a}});const a={next:"next",previous:"previous"}},30569:function(t,e,i){"use strict";i.d(e,{_:function(){return r}});var a=i(39181),o=i(13988),n=i(16882);const r=(t,e)=>a.d`
    <template
        role="button"
        aria-disabled="${t=>!!t.disabled||void 0}"
        tabindex="${t=>t.hiddenFromAT?-1:0}"
        class="${t=>t.direction} ${t=>t.disabled?"disabled":""}"
        @keyup="${(t,e)=>t.keyupHandler(e.event)}"
    >
        ${(0,o.g)((t=>t.direction===n.L.next),a.d`
                <span part="next" class="next">
                    <slot name="next">
                        ${e.next||""}
                    </slot>
                </span>
            `)}
        ${(0,o.g)((t=>t.direction===n.L.previous),a.d`
                <span part="previous" class="previous">
                    <slot name="previous">
                        ${e.previous||""}
                    </slot>
                </span>
            `)}
    </template>
`},67491:function(t,e,i){"use strict";i.d(e,{v2:function(){return u},wt:function(){return h}});var a=i(20005),o=i(87697),n=i(65620),r=i(67846),s=i(48839),l=i(7775),d=i(51208),c=i(86076);function u(t){return(0,r.Re)(t)&&("option"===t.getAttribute("role")||t instanceof HTMLOptionElement)}class h extends s.I{constructor(t,e,i,a){super(),this.defaultSelected=!1,this.dirtySelected=!1,this.selected=this.defaultSelected,this.dirtyValue=!1,t&&(this.textContent=t),e&&(this.initialValue=e),i&&(this.defaultSelected=i),a&&(this.selected=a),this.proxy=new Option(`${this.textContent}`,this.initialValue,this.defaultSelected,this.selected),this.proxy.disabled=this.disabled}checkedChanged(t,e){this.ariaChecked="boolean"!=typeof e?null:e?"true":"false"}contentChanged(t,e){this.proxy instanceof HTMLOptionElement&&(this.proxy.textContent=this.textContent),this.$emit("contentchange",null,{bubbles:!0})}defaultSelectedChanged(){this.dirtySelected||(this.selected=this.defaultSelected,this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.defaultSelected))}disabledChanged(t,e){this.ariaDisabled=this.disabled?"true":"false",this.proxy instanceof HTMLOptionElement&&(this.proxy.disabled=this.disabled)}selectedAttributeChanged(){this.defaultSelected=this.selectedAttribute,this.proxy instanceof HTMLOptionElement&&(this.proxy.defaultSelected=this.defaultSelected)}selectedChanged(){this.ariaSelected=this.selected?"true":"false",this.dirtySelected||(this.dirtySelected=!0),this.proxy instanceof HTMLOptionElement&&(this.proxy.selected=this.selected)}initialValueChanged(t,e){this.dirtyValue||(this.value=this.initialValue,this.dirtyValue=!1)}get label(){var t;return null!==(t=this.value)&&void 0!==t?t:this.text}get text(){var t,e;return null!==(e=null===(t=this.textContent)||void 0===t?void 0:t.replace(/\s+/g," ").trim())&&void 0!==e?e:""}set value(t){const e=`${null!=t?t:""}`;this._value=e,this.dirtyValue=!0,this.proxy instanceof HTMLOptionElement&&(this.proxy.value=e),o.y$.notify(this,"value")}get value(){var t;return o.y$.track(this,"value"),null!==(t=this._value)&&void 0!==t?t:this.text}get form(){return this.proxy?this.proxy.form:null}}(0,a.gn)([o.LO],h.prototype,"checked",void 0),(0,a.gn)([o.LO],h.prototype,"content",void 0),(0,a.gn)([o.LO],h.prototype,"defaultSelected",void 0),(0,a.gn)([(0,n.Lj)({mode:"boolean"})],h.prototype,"disabled",void 0),(0,a.gn)([(0,n.Lj)({attribute:"selected",mode:"boolean"})],h.prototype,"selectedAttribute",void 0),(0,a.gn)([o.LO],h.prototype,"selected",void 0),(0,a.gn)([(0,n.Lj)({attribute:"value",mode:"fromView"})],h.prototype,"initialValue",void 0);class g{}(0,a.gn)([o.LO],g.prototype,"ariaChecked",void 0),(0,a.gn)([o.LO],g.prototype,"ariaPosInSet",void 0),(0,a.gn)([o.LO],g.prototype,"ariaSelected",void 0),(0,a.gn)([o.LO],g.prototype,"ariaSetSize",void 0),(0,c.e)(g,l.v),(0,c.e)(h,d.hW,g)},34015:function(t,e,i){"use strict";i.d(e,{T:function(){return r}});var a=i(39181),o=i(90960),n=i(51208);const r=(t,e)=>a.d`
    <template
        aria-checked="${t=>t.ariaChecked}"
        aria-disabled="${t=>t.ariaDisabled}"
        aria-posinset="${t=>t.ariaPosInSet}"
        aria-selected="${t=>t.ariaSelected}"
        aria-setsize="${t=>t.ariaSetSize}"
        class="${t=>[t.checked&&"checked",t.selected&&"selected",t.disabled&&"disabled"].filter(Boolean).join(" ")}"
        role="option"
    >
        ${(0,n.m9)(t,e)}
        <span class="content" part="content">
            <slot ${(0,o.Q)("content")}></slot>
        </span>
        ${(0,n.LC)(t,e)}
    </template>
`},17453:function(t,e,i){"use strict";i.d(e,{k:function(){return c}});var a=i(20005),o=i(12968),n=i(87697),r=i(65620),s=i(78945),l=i(36153),d=i(65898);class c extends d.R{constructor(){super(...arguments),this.activeIndex=-1,this.rangeStartIndex=-1}get activeOption(){return this.options[this.activeIndex]}get checkedOptions(){var t;return null===(t=this.options)||void 0===t?void 0:t.filter((t=>t.checked))}get firstSelectedOptionIndex(){return this.options.indexOf(this.firstSelectedOption)}activeIndexChanged(t,e){var i,a;this.ariaActiveDescendant=null!==(a=null===(i=this.options[e])||void 0===i?void 0:i.id)&&void 0!==a?a:"",this.focusAndScrollOptionIntoView()}checkActiveIndex(){if(!this.multiple)return;const t=this.activeOption;t&&(t.checked=!0)}checkFirstOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex+1),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex=0,this.checkActiveIndex()}checkLastOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.rangeStartIndex,this.options.length)}))):this.uncheckAllOptions(),this.activeIndex=this.options.length-1,this.checkActiveIndex()}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.focusoutHandler)}disconnectedCallback(){this.removeEventListener("focusout",this.focusoutHandler),super.disconnectedCallback()}checkNextOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.rangeStartIndex,this.activeIndex+1)}))):this.uncheckAllOptions(),this.activeIndex+=this.activeIndex<this.options.length-1?1:0,this.checkActiveIndex()}checkPreviousOption(t=!1){t?(-1===this.rangeStartIndex&&(this.rangeStartIndex=this.activeIndex),1===this.checkedOptions.length&&(this.rangeStartIndex+=1),this.options.forEach(((t,e)=>{t.checked=(0,s.Z2)(e,this.activeIndex,this.rangeStartIndex)}))):this.uncheckAllOptions(),this.activeIndex-=this.activeIndex>0?1:0,this.checkActiveIndex()}clickHandler(t){var e;if(!this.multiple)return super.clickHandler(t);const i=null===(e=t.target)||void 0===e?void 0:e.closest("[role=option]");return i&&!i.disabled?(this.uncheckAllOptions(),this.activeIndex=this.options.indexOf(i),this.checkActiveIndex(),this.toggleSelectedForAllCheckedOptions(),!0):void 0}focusAndScrollOptionIntoView(){super.focusAndScrollOptionIntoView(this.activeOption)}focusinHandler(t){if(!this.multiple)return super.focusinHandler(t);this.shouldSkipFocus||t.target!==t.currentTarget||(this.uncheckAllOptions(),-1===this.activeIndex&&(this.activeIndex=-1!==this.firstSelectedOptionIndex?this.firstSelectedOptionIndex:0),this.checkActiveIndex(),this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}focusoutHandler(t){this.multiple&&this.uncheckAllOptions()}keydownHandler(t){if(!this.multiple)return super.keydownHandler(t);if(this.disabled)return!0;const{key:e,shiftKey:i}=t;switch(this.shouldSkipFocus=!1,e){case l.tU:return void this.checkFirstOption(i);case l.iF:return void this.checkNextOption(i);case l.SB:return void this.checkPreviousOption(i);case l.Kh:return void this.checkLastOption(i);case l.oM:return this.focusAndScrollOptionIntoView(),!0;case l.CX:return this.uncheckAllOptions(),this.checkActiveIndex(),!0;case l.BI:if(t.preventDefault(),this.typeAheadExpired)return void this.toggleSelectedForAllCheckedOptions();default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){if(t.offsetX>=0&&t.offsetX<=this.scrollWidth)return super.mousedownHandler(t)}multipleChanged(t,e){var i;this.ariaMultiSelectable=e?"true":null,null===(i=this.options)||void 0===i||i.forEach((t=>{t.checked=!e&&void 0})),this.setSelectedOptions()}setSelectedOptions(){this.multiple?this.$fastController.isConnected&&this.options&&(this.selectedOptions=this.options.filter((t=>t.selected)),this.focusAndScrollOptionIntoView()):super.setSelectedOptions()}sizeChanged(t,e){var i;const a=Math.max(0,parseInt(null!==(i=null==e?void 0:e.toFixed())&&void 0!==i?i:"",10));a!==e&&o.SO.queueUpdate((()=>{this.size=a}))}toggleSelectedForAllCheckedOptions(){const t=this.checkedOptions.filter((t=>!t.disabled)),e=!t.every((t=>t.selected));t.forEach((t=>t.selected=e)),this.selectedIndex=this.options.indexOf(t[t.length-1]),this.setSelectedOptions()}typeaheadBufferChanged(t,e){if(this.multiple){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches(),e=this.options.indexOf(t[0]);e>-1&&(this.activeIndex=e,this.uncheckAllOptions(),this.checkActiveIndex()),this.typeAheadExpired=!1}}else super.typeaheadBufferChanged(t,e)}uncheckAllOptions(t=!1){this.options.forEach((t=>t.checked=!this.multiple&&void 0)),t||(this.rangeStartIndex=-1)}}(0,a.gn)([n.LO],c.prototype,"activeIndex",void 0),(0,a.gn)([(0,r.Lj)({mode:"boolean"})],c.prototype,"multiple",void 0),(0,a.gn)([(0,r.Lj)({converter:r.Id})],c.prototype,"size",void 0)},65898:function(t,e,i){"use strict";i.d(e,{x:function(){return g},R:function(){return h}});var a=i(20005),o=i(87697),n=i(65620);var r=i(36153),s=i(11673),l=i(48839),d=i(67491),c=i(7775),u=i(86076);class h extends l.I{constructor(){super(...arguments),this._options=[],this.selectedIndex=-1,this.selectedOptions=[],this.shouldSkipFocus=!1,this.typeaheadBuffer="",this.typeaheadExpired=!0,this.typeaheadTimeout=-1}get firstSelectedOption(){var t;return null!==(t=this.selectedOptions[0])&&void 0!==t?t:null}get hasSelectableOptions(){return this.options.length>0&&!this.options.every((t=>t.disabled))}get length(){var t,e;return null!==(e=null===(t=this.options)||void 0===t?void 0:t.length)&&void 0!==e?e:0}get options(){return o.y$.track(this,"options"),this._options}set options(t){this._options=t,o.y$.notify(this,"options")}get typeAheadExpired(){return this.typeaheadExpired}set typeAheadExpired(t){this.typeaheadExpired=t}clickHandler(t){const e=t.target.closest("option,[role=option]");if(e&&!e.disabled)return this.selectedIndex=this.options.indexOf(e),!0}focusAndScrollOptionIntoView(t=this.firstSelectedOption){this.contains(document.activeElement)&&null!==t&&(t.focus(),requestAnimationFrame((()=>{t.scrollIntoView({block:"nearest"})})))}focusinHandler(t){this.shouldSkipFocus||t.target!==t.currentTarget||(this.setSelectedOptions(),this.focusAndScrollOptionIntoView()),this.shouldSkipFocus=!1}getTypeaheadMatches(){const t=this.typeaheadBuffer.replace(/[.*+\-?^${}()|[\]\\]/g,"\\$&"),e=new RegExp(`^${t}`,"gi");return this.options.filter((t=>t.text.trim().match(e)))}getSelectableIndex(t=this.selectedIndex,e){const i=t>e?-1:t<e?1:0,a=t+i;let o=null;switch(i){case-1:o=this.options.reduceRight(((t,e,i)=>!t&&!e.disabled&&i<a?e:t),o);break;case 1:o=this.options.reduce(((t,e,i)=>!t&&!e.disabled&&i>a?e:t),o)}return this.options.indexOf(o)}handleChange(t,e){if("selected"===e)h.slottedOptionFilter(t)&&(this.selectedIndex=this.options.indexOf(t)),this.setSelectedOptions()}handleTypeAhead(t){this.typeaheadTimeout&&window.clearTimeout(this.typeaheadTimeout),this.typeaheadTimeout=window.setTimeout((()=>this.typeaheadExpired=!0),h.TYPE_AHEAD_TIMEOUT_MS),t.length>1||(this.typeaheadBuffer=`${this.typeaheadExpired?"":this.typeaheadBuffer}${t}`)}keydownHandler(t){if(this.disabled)return!0;this.shouldSkipFocus=!1;const e=t.key;switch(e){case r.tU:t.shiftKey||(t.preventDefault(),this.selectFirstOption());break;case r.iF:t.shiftKey||(t.preventDefault(),this.selectNextOption());break;case r.SB:t.shiftKey||(t.preventDefault(),this.selectPreviousOption());break;case r.Kh:t.preventDefault(),this.selectLastOption();break;case r.oM:return this.focusAndScrollOptionIntoView(),!0;case r.kL:case r.CX:return!0;case r.BI:if(this.typeaheadExpired)return!0;default:return 1===e.length&&this.handleTypeAhead(`${e}`),!0}}mousedownHandler(t){return this.shouldSkipFocus=!this.contains(document.activeElement),!0}multipleChanged(t,e){this.ariaMultiSelectable=e?"true":null}selectedIndexChanged(t,e){var i;if(this.hasSelectableOptions){if((null===(i=this.options[this.selectedIndex])||void 0===i?void 0:i.disabled)&&"number"==typeof t){const i=this.getSelectableIndex(t,e),a=i>-1?i:t;return this.selectedIndex=a,void(e===a&&this.selectedIndexChanged(e,a))}this.setSelectedOptions()}else this.selectedIndex=-1}selectedOptionsChanged(t,e){var i;const a=e.filter(h.slottedOptionFilter);null===(i=this.options)||void 0===i||i.forEach((t=>{const e=o.y$.getNotifier(t);e.unsubscribe(this,"selected"),t.selected=a.includes(t),e.subscribe(this,"selected")}))}selectFirstOption(){var t,e;this.disabled||(this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>!t.disabled)))&&void 0!==e?e:-1)}selectLastOption(){this.disabled||(this.selectedIndex=function(t,e){let i=t.length;for(;i--;)if(e(t[i],i,t))return i;return-1}(this.options,(t=>!t.disabled)))}selectNextOption(){!this.disabled&&this.selectedIndex<this.options.length-1&&(this.selectedIndex+=1)}selectPreviousOption(){!this.disabled&&this.selectedIndex>0&&(this.selectedIndex=this.selectedIndex-1)}setDefaultSelectedOption(){var t,e;this.selectedIndex=null!==(e=null===(t=this.options)||void 0===t?void 0:t.findIndex((t=>t.defaultSelected)))&&void 0!==e?e:-1}setSelectedOptions(){var t,e,i;(null===(t=this.options)||void 0===t?void 0:t.length)&&(this.selectedOptions=[this.options[this.selectedIndex]],this.ariaActiveDescendant=null!==(i=null===(e=this.firstSelectedOption)||void 0===e?void 0:e.id)&&void 0!==i?i:"",this.focusAndScrollOptionIntoView())}slottedOptionsChanged(t,e){this.options=e.reduce(((t,e)=>((0,d.v2)(e)&&t.push(e),t)),[]);const i=`${this.options.length}`;this.options.forEach(((t,e)=>{t.id||(t.id=(0,s.EL)("option-")),t.ariaPosInSet=`${e+1}`,t.ariaSetSize=i})),this.$fastController.isConnected&&(this.setSelectedOptions(),this.setDefaultSelectedOption())}typeaheadBufferChanged(t,e){if(this.$fastController.isConnected){const t=this.getTypeaheadMatches();if(t.length){const e=this.options.indexOf(t[0]);e>-1&&(this.selectedIndex=e)}this.typeaheadExpired=!1}}}h.slottedOptionFilter=t=>(0,d.v2)(t)&&!t.hidden,h.TYPE_AHEAD_TIMEOUT_MS=1e3,(0,a.gn)([(0,n.Lj)({mode:"boolean"})],h.prototype,"disabled",void 0),(0,a.gn)([o.LO],h.prototype,"selectedIndex",void 0),(0,a.gn)([o.LO],h.prototype,"selectedOptions",void 0),(0,a.gn)([o.LO],h.prototype,"slottedOptions",void 0),(0,a.gn)([o.LO],h.prototype,"typeaheadBuffer",void 0);class g{}(0,a.gn)([o.LO],g.prototype,"ariaActiveDescendant",void 0),(0,a.gn)([o.LO],g.prototype,"ariaDisabled",void 0),(0,a.gn)([o.LO],g.prototype,"ariaExpanded",void 0),(0,a.gn)([o.LO],g.prototype,"ariaMultiSelectable",void 0),(0,u.e)(g,c.v),(0,u.e)(h,g)},51565:function(t,e,i){"use strict";i.d(e,{S:function(){return a}});const a={above:"above",below:"below"}},9530:function(t,e,i){"use strict";i.d(e,{U:function(){return d}});var a=i(39181),o=i(13988),n=i(58952),r=i(90960),s=i(65898),l=i(51208);const d=(t,e)=>a.d`
    <template
        class="${t=>[t.collapsible&&"collapsible",t.collapsible&&t.open&&"open",t.disabled&&"disabled",t.collapsible&&t.position].filter(Boolean).join(" ")}"
        aria-activedescendant="${t=>t.ariaActiveDescendant}"
        aria-controls="${t=>t.ariaControls}"
        aria-disabled="${t=>t.ariaDisabled}"
        aria-expanded="${t=>t.ariaExpanded}"
        aria-haspopup="${t=>t.collapsible?"listbox":null}"
        aria-multiselectable="${t=>t.ariaMultiSelectable}"
        ?open="${t=>t.open}"
        role="combobox"
        tabindex="${t=>t.disabled?null:"0"}"
        @click="${(t,e)=>t.clickHandler(e.event)}"
        @focusin="${(t,e)=>t.focusinHandler(e.event)}"
        @focusout="${(t,e)=>t.focusoutHandler(e.event)}"
        @keydown="${(t,e)=>t.keydownHandler(e.event)}"
        @mousedown="${(t,e)=>t.mousedownHandler(e.event)}"
    >
        ${(0,o.g)((t=>t.collapsible),a.d`
                <div
                    class="control"
                    part="control"
                    ?disabled="${t=>t.disabled}"
                    ${(0,n.i)("control")}
                >
                    ${(0,l.m9)(t,e)}
                    <slot name="button-container">
                        <div class="selected-value" part="selected-value">
                            <slot name="selected-value">${t=>t.displayValue}</slot>
                        </div>
                        <div aria-hidden="true" class="indicator" part="indicator">
                            <slot name="indicator">
                                ${e.indicator||""}
                            </slot>
                        </div>
                    </slot>
                    ${(0,l.LC)(t,e)}
                </div>
            `)}
        <div
            class="listbox"
            id="${t=>t.listboxId}"
            part="listbox"
            role="listbox"
            ?disabled="${t=>t.disabled}"
            ?hidden="${t=>!!t.collapsible&&!t.open}"
            ${(0,n.i)("listbox")}
        >
            <slot
                ${(0,r.Q)({filter:s.R.slottedOptionFilter,flatten:!0,property:"slottedOptions"})}
            ></slot>
        </div>
    </template>
`},43504:function(t,e,i){"use strict";i.d(e,{x:function(){return o}});var a=i(48839);class o extends a.I{}},49944:function(t,e,i){"use strict";i.d(e,{o:function(){return o}});var a=i(39181);const o=(t,e)=>a.d`
    <template slot="tabpanel" role="tabpanel">
        <slot></slot>
    </template>
`},26899:function(t,e,i){"use strict";i.d(e,{O:function(){return r}});var a=i(20005),o=i(65620),n=i(48839);class r extends n.I{}(0,a.gn)([(0,o.Lj)({mode:"boolean"})],r.prototype,"disabled",void 0)},13626:function(t,e,i){"use strict";i.d(e,{O:function(){return o}});var a=i(39181);const o=(t,e)=>a.d`
    <template slot="tab" role="tab" aria-disabled="${t=>t.disabled}">
        <slot></slot>
    </template>
`},49176:function(t,e,i){"use strict";i.d(e,{G:function(){return h},m:function(){return g}});var a=i(20005),o=i(65620),n=i(87697),r=i(36153),s=i(11673),l=i(78945),d=i(51208),c=i(86076),u=i(48839);const h={vertical:"vertical",horizontal:"horizontal"};class g extends u.I{constructor(){super(...arguments),this.orientation=h.horizontal,this.activeindicator=!0,this.showActiveIndicator=!0,this.prevActiveTabIndex=0,this.activeTabIndex=0,this.ticking=!1,this.change=()=>{this.$emit("change",this.activetab)},this.isDisabledElement=t=>"true"===t.getAttribute("aria-disabled"),this.isFocusableElement=t=>!this.isDisabledElement(t),this.setTabs=()=>{const t="gridColumn",e="gridRow",i=this.isHorizontal()?t:e;this.activeTabIndex=this.getActiveIndex(),this.showActiveIndicator=!1,this.tabs.forEach(((t,e)=>{if("tab"===t.slot){const i=this.activeTabIndex===e&&this.isFocusableElement(t);this.activeindicator&&this.isFocusableElement(t)&&(this.showActiveIndicator=!0);const a=this.tabIds[e],o=this.tabpanelIds[e];t.setAttribute("id",a),t.setAttribute("aria-selected",i?"true":"false"),t.setAttribute("aria-controls",o),t.addEventListener("click",this.handleTabClick),t.addEventListener("keydown",this.handleTabKeyDown),t.setAttribute("tabindex",i?"0":"-1"),i&&(this.activetab=t)}t.style.gridColumn="",t.style.gridRow="",t.style[i]=`${e+1}`,this.isHorizontal()?t.classList.remove("vertical"):t.classList.add("vertical")}))},this.setTabPanels=()=>{this.tabpanels.forEach(((t,e)=>{const i=this.tabIds[e],a=this.tabpanelIds[e];t.setAttribute("id",a),t.setAttribute("aria-labelledby",i),this.activeTabIndex!==e?t.setAttribute("hidden",""):t.removeAttribute("hidden")}))},this.handleTabClick=t=>{const e=t.currentTarget;1===e.nodeType&&this.isFocusableElement(e)&&(this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=this.tabs.indexOf(e),this.setComponent())},this.handleTabKeyDown=t=>{if(this.isHorizontal())switch(t.key){case r.BE:t.preventDefault(),this.adjustBackward(t);break;case r.mr:t.preventDefault(),this.adjustForward(t)}else switch(t.key){case r.SB:t.preventDefault(),this.adjustBackward(t);break;case r.iF:t.preventDefault(),this.adjustForward(t)}switch(t.key){case r.tU:t.preventDefault(),this.adjust(-this.activeTabIndex);break;case r.Kh:t.preventDefault(),this.adjust(this.tabs.length-this.activeTabIndex-1)}},this.adjustForward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)+1:1,i===e.length&&(i=0);i<e.length&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}if(this.activetab&&i===e.indexOf(this.activetab))break;i+1>=e.length?i=0:i+=1}},this.adjustBackward=t=>{const e=this.tabs;let i=0;for(i=this.activetab?e.indexOf(this.activetab)-1:0,i=i<0?e.length-1:i;i>=0&&e.length>1;){if(this.isFocusableElement(e[i])){this.moveToTabByIndex(e,i);break}i-1<0?i=e.length-1:i-=1}},this.moveToTabByIndex=(t,e)=>{const i=t[e];this.activetab=i,this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=e,i.focus(),this.setComponent()}}orientationChanged(){this.$fastController.isConnected&&(this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}activeidChanged(t,e){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.prevActiveTabIndex=this.tabs.findIndex((e=>e.id===t)),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabsChanged(){this.$fastController.isConnected&&this.tabs.length<=this.tabpanels.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}tabpanelsChanged(){this.$fastController.isConnected&&this.tabpanels.length<=this.tabs.length&&(this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.setTabs(),this.setTabPanels(),this.handleActiveIndicatorPosition())}getActiveIndex(){return void 0!==this.activeid?-1===this.tabIds.indexOf(this.activeid)?0:this.tabIds.indexOf(this.activeid):0}getTabIds(){return this.tabs.map((t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:`tab-${(0,s.EL)()}`}))}getTabPanelIds(){return this.tabpanels.map((t=>{var e;return null!==(e=t.getAttribute("id"))&&void 0!==e?e:`panel-${(0,s.EL)()}`}))}setComponent(){this.activeTabIndex!==this.prevActiveTabIndex&&(this.activeid=this.tabIds[this.activeTabIndex],this.focusTab(),this.change())}isHorizontal(){return this.orientation===h.horizontal}handleActiveIndicatorPosition(){this.showActiveIndicator&&this.activeindicator&&this.activeTabIndex!==this.prevActiveTabIndex&&(this.ticking?this.ticking=!1:(this.ticking=!0,this.animateActiveIndicator()))}animateActiveIndicator(){this.ticking=!0;const t=this.isHorizontal()?"gridColumn":"gridRow",e=this.isHorizontal()?"translateX":"translateY",i=this.isHorizontal()?"offsetLeft":"offsetTop",a=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`;const o=this.activeIndicatorRef[i];this.activeIndicatorRef.style[t]=`${this.prevActiveTabIndex+1}`;const n=o-a;this.activeIndicatorRef.style.transform=`${e}(${n}px)`,this.activeIndicatorRef.classList.add("activeIndicatorTransition"),this.activeIndicatorRef.addEventListener("transitionend",(()=>{this.ticking=!1,this.activeIndicatorRef.style[t]=`${this.activeTabIndex+1}`,this.activeIndicatorRef.style.transform=`${e}(0px)`,this.activeIndicatorRef.classList.remove("activeIndicatorTransition")}))}adjust(t){this.prevActiveTabIndex=this.activeTabIndex,this.activeTabIndex=(0,l.wt)(0,this.tabs.length-1,this.activeTabIndex+t),this.setComponent()}focusTab(){this.tabs[this.activeTabIndex].focus()}connectedCallback(){super.connectedCallback(),this.tabIds=this.getTabIds(),this.tabpanelIds=this.getTabPanelIds(),this.activeTabIndex=this.getActiveIndex()}}(0,a.gn)([o.Lj],g.prototype,"orientation",void 0),(0,a.gn)([o.Lj],g.prototype,"activeid",void 0),(0,a.gn)([n.LO],g.prototype,"tabs",void 0),(0,a.gn)([n.LO],g.prototype,"tabpanels",void 0),(0,a.gn)([(0,o.Lj)({mode:"boolean"})],g.prototype,"activeindicator",void 0),(0,a.gn)([n.LO],g.prototype,"activeIndicatorRef",void 0),(0,a.gn)([n.LO],g.prototype,"showActiveIndicator",void 0),(0,c.e)(g,d.hW)},78945:function(t,e,i){"use strict";function a(t,e,i){return i<t?e:i>e?t:i}function o(t,e,i){return Math.min(Math.max(i,t),e)}function n(t,e,i=0){return[e,i]=[e,i].sort(((t,e)=>t-e)),e<=t&&t<i}i.d(e,{Z2:function(){return n},b9:function(){return o},wt:function(){return a}})},11673:function(t,e,i){"use strict";i.d(e,{EL:function(){return o}});let a=0;function o(t=""){return`${t}${a++}`}}}]);A
Eo