n1,e.strings.feedbackOption2,e.strings.feedbackOption3]}})}
`,Ai=se.d`
    <msn-actions-menu
        :referrerButton=${e=>e.actionsMenuButtonElement}
        :menuItems=${e=>e.menuItems}
        :useFastAnchoredRegion=${e=>1!=e.config.isDynamicFeed}
    />
`,Zi=se.d`
    <fluent-button
        class=${e=>e.config.isDynamicFeed?"dynamic-feed-radius":""}
        slot="more-actions"
        appearance=${e=>e.config.isDynamicFeed?"stealth":"neutral"}
        @click=${(e,t)=>e.toggleActionMenu(!e.isActionMenuOpen,t.event)}
        title="${e=>{var t;return e.config.isDynamicFeed?"":null===(t=e.strings)||void 0===t?void 0:t.moreOptionsTooltip}}"
        role="button"
        aria-label="${e=>{var t;return null===(t=e.strings)||void 0===t?void 0:t.moreOptionsTooltip}}"
        aria-expanded="${e=>e.isActionMenuOpen}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.actionButton)||void 0===i?void 0:i.getMetadataTag()}}"
        ?disabled=${e=>e.cardViewMode===g.jy.Setting}
    >
        ${$i()}
    </fluent-button>
`,Wi=se.d`
    <weather-hide-dialog
        id="weatherPopupCard"
        :strings=${e=>e.strings.hideDialogLocalization}
        :cancelCallback=${e=>()=>{e.setHideDialogPopup(!1)}}
        :wrongLocatoinCallback=${e=>()=>{e.setHideDialogPopup(!1),e.clickSwitchToSetting()}}
        :reportIssueCallback=${e=>()=>{e.setHideDialogPopup(!1),e.setReportIssueDialogPopup(!0)}}
        :hideCardCallback=${e=>()=>{e.setHideDialogPopup(!1),e.hideWeatherCard(g.nS)}}
        :changeLocationUnitTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideDlgChangeLocation)||void 0===i?void 0:i.getMetadataTag()}}
        :reportIssueTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideDlgReportIssue)||void 0===i?void 0:i.getMetadataTag()}}
        :hideTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.menuHide)||void 0===i?void 0:i.getMetadataTag()}}
        :cancelTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideDlgCancel)||void 0===i?void 0:i.getMetadataTag()}}
        :closeDialogTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hideDlgClose)||void 0===i?void 0:i.getMetadataTag()}}
        style="position: absolute; z-index: ${Ci.K.Dialog.toString()};"
    />
`,Pi=se.d`
    <weather-hide-remind
        :strings=${e=>e.strings.hideRemindLocalization}
        :ifShowCheckIcon=${e=>"medium"==e.cardSize||"full"==e.cardSize}
        :openMoreSettings=${e=>()=>{e.openMoreSettings()}}
        :refreshFeed=${e=>()=>{e.refreshFeedPage()}}
        :settingTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.remindSetting)||void 0===i?void 0:i.getMetadataTag()}}
        :manageCardTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.remindManageCard)||void 0===i?void 0:i.getMetadataTag()}}
        :refreshFeedTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.remindRefreshFeed)||void 0===i?void 0:i.getMetadataTag()}}
        target=${e=>0==e.openLinksInNewTab?"_self":"_blank"}
    ></>
`,Ui=se.d`
    <weather-report-issue
        id="weatherPopupCard"
        :strings=${e=>{var t;return null===(t=e.strings)||void 0===t?void 0:t.reportIssueLocalization}}
        :sendIssueCallback=${e=>()=>{e.setReportIssueDialogPopup(!1)}}
        :closeCardCallback=${e=>()=>{e.setReportIssueDialogPopup(!1)}}
        :sendTelemetryObject=${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssueSend}}
        :cancelTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssueCancel)||void 0===i?void 0:i.getMetadataTag()}}
        :closeTelemetryTag=${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.reportIssueClose)||void 0===i?void 0:i.getMetadataTag()}}
        style="position: absolute; z-index: ${Ci.K.Dialog.toString()};"
    />
`,Bi=se.d`
    <fluent-button
        slot="weather-pen-btn"
        appearance="neutral"
        @click=${(e,t)=>e.clickSwitchToSetting()}
        title="${e=>e.strings.menuEdit}"
        role="button"
        aria-label="${e=>e.strings.menuEdit}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.editLocation)||void 0===i?void 0:i.getMetadataTag()}}"
    >
        ${(0,de.g)((e=>e.config.isDynamicFeed&&e.config.enableSameUX),se.d`${Li.Z}`)}
        ${(0,de.g)((e=>!(e.config.isDynamicFeed&&e.config.enableSameUX)),se.d`${A()}`)}
    </fluent-button>
`,zi=se.d`
    <div
        class="toast"
    >
        <div
            class="toast-string"
        >
            ${e=>e.strings.locationNotice.replace("{n}",ke.getDisplayName(e.detectedLocation))}
        </div>
        <a
            class="toast-action"
            @click=${e=>e.switchLocation()}
            aria-label="${e=>e.strings.addThisLocation}"
            title="${e=>e.strings.addThisLocation}"
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.switchLocation)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${e=>e.strings.addThisLocation}
        </a>
        <span
            class="toast-close"
            aria-label="${e=>e.strings.close}"
            title="${e=>e.strings.close}"
            role="button"
            @click=${e=>e.closeLocationNotice()}
            data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.closeLocationNotice)||void 0===i?void 0:i.getMetadataTag()}}"
        >
            ${'<svg width="20" height="20" viewBox="0 0 12 12" fill="#fff"><path d="M6.85 6 12 11.15l-.85.85L6 6.85.85 12 0 11.15 5.15 6 0 .85.85 0 6 5.15 11.15 0l.85.85L6.85 6Z"/></svg>'}
        </span>
    </div>
`,ji=se.d`
    <fluent-button
        slot="weather-pen-btn"
        appearance="neutral"
        @mouseenter=${(e,t)=>e.presentLocationList()}
        @mouseleave=${e=>e.closeLocationList()}
        title="${e=>e.strings.dropdown}"
        role="button"
        aria-label="${e=>e.strings.dropdown}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.dropdown)||void 0===i?void 0:i.getMetadataTag()}}"
    >
        ${Si.Z}
    </fluent-button>
`,Ei=se.d`
    ${Z}
`,Hi=se.d`
    <button
        class="weather-location"
        @click=${(e,t)=>t.parent.saveLocation(e)}
        title=${e=>ke.getDisplayName(e)}
        aria-label=${e=>ke.getDisplayName(e)}
        data-t="${(e,t)=>{var i,a;return null===(a=null===(i=t.parent.telemetryContext)||void 0===i?void 0:i.followedLocation)||void 0===a?void 0:a.getMetadataTag()}}"
    >
        <div class="left-part">
            <div class="location-name">
                ${e=>ke.getDisplayName(e)}
            </div>
        </div>
        ${(0,de.g)(((e,t)=>t.parent.isCurrentLocation(e)),Ei)}
    </button>
`,Ni=se.d`
    ${'<svg fill="none" viewBox="0 0 20 20" height="20" width="20"><path d="M10.56 5.56a.56.56 0 0 0-1.12 0v3.88H5.56a.56.56 0 0 0 0 1.12h3.88v3.88a.56.56 0 1 0 1.12 0v-3.88h3.88a.56.56 0 1 0 0-1.12h-3.88V5.56Z" fill="#1A1A1A"/><rect x=".5" y=".5" width="19" height="19" rx="9.5" stroke="#000" stroke-opacity=".25"/></svg>'}
`,Gi=se.d`
    <button
        class="weather-location"
        @click=${(e,t)=>e.saveLocation(e.detectedLocation)}
        title=${e=>ke.getDisplayName(e.detectedLocation)}
        aria-label=${e=>ke.getDisplayName(e.detectedLocation)}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.detectedLocation)||void 0===i?void 0:i.getMetadataTag()}}"
    >
        <div class="left-part">
            <div class="location-name">
                ${e=>ke.getDisplayName(e.detectedLocation)}
            </div>
            <div class="detect-icon">
                ${'<svg width="20" height="20" viewBox="0 0 20 20"><path d="M10 0c.38 0 .7.28.74.65l.01.1v1.79a7.5 7.5 0 0 1 6.71 6.71h1.79a.75.75 0 0 1 .1 1.5H17.46a7.5 7.5 0 0 1-6.71 6.71v1.79a.75.75 0 0 1-1.5.1V17.46a7.5 7.5 0 0 1-6.71-6.71H.75a.75.75 0 0 1-.1-1.5H2.54a7.5 7.5 0 0 1 6.71-6.71V.75c0-.41.34-.75.75-.75Zm0 4a6 6 0 1 0 0 12 6 6 0 0 0 0-12Zm0 2a4 4 0 1 1 0 8 4 4 0 0 1 0-8Z" fill="currentColor"/></svg>'}
            </div>
        </div>
        ${(0,de.g)((e=>!e.detectedLocationFollowed()),Ni)}
    </button>
`,Ri=se.d`
    <button
        class="add-location"
        @click=${(e,t)=>e.clickSwitchToSetting()}
        title=${e=>e.strings.menuAddLocation}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.addLocation)||void 0===i?void 0:i.getMetadataTag()}}"
        aria-label=${e=>e.strings.menuAddLocation}
    >
        ${e=>e.strings.menuAddLocation}
    </button>
`,qi=se.d`
    <div class="divide-line"></div>
`,Vi=se.d`
    <div
        class="weather-location-list"
        @mouseenter=${(e,t)=>e.presentLocationList()}
        @mouseleave=${e=>e.closeLocationList()}
    >
        ${Gi}
        ${qi}
        ${(0,le.rx)((e=>e.followedLocations),Hi)}
        ${(0,de.g)((e=>e.followedLocations&&e.followedLocations.length>0),qi)}
        ${Ri}
    </div>
`,Ki=se.d`
    <fluent-anchor
        slot="weather-map-btn"
        appearance="neutral"
        title="${e=>e.weatherData.l2IconData.label}"
        aria-label="${e=>e.weatherData.l2IconData.label}"
        href="${e=>e.weatherData.l2IconData.link}"
        role="button"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.l2IconAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
    >
    ${e=>e.weatherData.l2IconData.icon}
    </fluent-anchor>
`,Ji=se.d`
    <msft-weather-widget
        id="WeatherCard"
        layout="${e=>e.cardSize}"
        target=${e=>0==e.openLinksInNewTab?"_self":"_blank"}
        background="light"
        switchUnitLabel="${e=>{var t,i,a,n;return(1==(null===(t=e.weatherData)||void 0===t?void 0:t.weatherUnit)?null===(i=e.strings)||void 0===i?void 0:i.switchToCelsius:null===(a=e.strings)||void 0===a?void 0:a.switchToFahrenheit)||(null===(n=e.strings)||void 0===n?void 0:n.switchUnitTooltip)}}"
        openMapLabel="${e=>e.strings.miniMapSeeMore}"
        :weatherData="${e=>e.weatherData||{}}"
        :clickableLabelTiles="${e=>e.clickableLabelTiles}"
        :clickableLabelUnit="${e=>e.clickableLabelUnit}"
        :headerTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.headerAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :locationTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.locationAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :weaConditionTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.currentAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :weatherAqiTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.airQuality)||void 0===i?void 0:i.getMetadataTag()}}"
        :forecastDayTelemetryTags="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.dailyForecasts}}"
        :forecastHourTelemetryTags="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.hourlyForecasts}}"
        :seeForecastTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeForecastAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapLabelTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.miniMapLabel)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.minimapTelemetry)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapTelemetryLayerTags=${e=>e.minimapTelemetryLayerTags}
        :nowcastTelemetryTags="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.nowcastChart)||void 0===i?void 0:i.getMetadataTag()}}"
        :trendTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.hourlyTrend)||void 0===i?void 0:i.getMetadataTag()}}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.weatherCard)||void 0===i?void 0:i.getMetadataTag()}}"
        @switch=${(e,t)=>e.switchWeatherUnit()}
        @mapLabelClick=${(e,t)=>e.onMapLabelClick(t.event)}
    >
        ${Bi}
    </msft-weather-widget>
`,Qi=se.d`
    <msft-weather-card
        id="WeatherCard"
        layout="${e=>e.cardSize}"
        target=${e=>0==e.openLinksInNewTab?"_self":"_blank"}
        background="${e=>e.config.cardBackgroundMode}"
        edgeFeatured="${e=>e.config.edgeFeatured}"
        switchUnitLabel="${e=>{var t,i,a,n;return(1==(null===(t=e.weatherData)||void 0===t?void 0:t.weatherUnit)?null===(i=e.strings)||void 0===i?void 0:i.switchToCelsius:null===(a=e.strings)||void 0===a?void 0:a.switchToFahrenheit)||(null===(n=e.strings)||void 0===n?void 0:n.switchUnitTooltip)}}"
        openMapLabel="${e=>e.strings.miniMapSeeMore}"
        wcev2="${e=>e.wceV2}"
        focusToCard="${e=>e.focusToCard}"
        showBrandIcon="${e=>e.config.isDynamicFeed}"
        :enableEPlant="${e=>e.getEPlantEnabled()&&void 0!==e.userType&&e.userType!==g.FW.AAD}"
        ePlantLabel="${e=>e.strings.ePlantButtonLabel}"
        ePlantIcon="${e=>e.config.ePlantIcon}"
        ePlantNewText="${e=>e.strings.eplantNewText}"
        :weatherData="${e=>e.weatherData||{}}"
        :clickableLabelTiles="${e=>e.clickableLabelTiles}"
        :clickableLabelUnit="${e=>e.clickableLabelUnit}"
        :primaryCarousel="${e=>e.primaryCarousel}"
        :showMiniMap="${e=>!!e.primaryCarousel&&e.showMiniMap}"
        :headerTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.headerAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :locationTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.locationAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :weaConditionTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.currentAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :weatherAqiTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.airQuality)||void 0===i?void 0:i.getMetadataTag()}}"
        :forecastDayTelemetryTags="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.dailyForecasts}}"
        :forecastHourTelemetryTags="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.hourlyForecasts}}"
        :seeForecastTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeForecastAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.minimapTelemetry)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapLabelTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.miniMapLabel)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapTelemetryLayerTags=${e=>e.minimapTelemetryLayerTags}
        :nowcastTelemetryTags="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.nowcastChart)||void 0===i?void 0:i.getMetadataTag()}}"
        :summaryTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.summaryAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :blankAreaTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.blankArea)||void 0===i?void 0:i.getMetadataTag()}}"
        :ePlantTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.ePlantButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :ePlantEarthDayTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.ePlantEarthDay)||void 0===i?void 0:i.getMetadataTag()}}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.weatherCard)||void 0===i?void 0:i.getMetadataTag()}}"
        @switch=${(e,t)=>e.switchWeatherUnit()}
        @imageFailed=${(e,t)=>function(e){const{type:t,error:i,customMessage:a}=e.detail||{};if(it.has(a))return;it.add(a);const n="image"===i?T.kgv:T.sCZ;we.M0.sendAppErrorEvent(Object.assign(Object.assign({},n),{message:`error in experience [weather-card-wc],Mini map ${t} load failed: ${this.weatherData.minimap.weatherLayerType}`,pb:Object.assign(Object.assign({},n.pb),{customMessage:a})}))}(t.event)}
        style="${e=>e.weatherBackgroundColor?`background: ${e.weatherBackgroundColor};`:null}"
        data-clarity-mask=${Pe.jG.ClarityEnabled?"true":null}
        @mapLabelClick=${(e,t)=>e.onMapLabelClick(t.event)}
    >
        ${(0,de.g)((e=>!e.config.edgeFeatured&&!e.config.multiLocation),Bi)}
        ${(0,de.g)((e=>e.config.multiLocation),ji)}
        ${(0,de.g)((e=>e.wceV2&&e.weatherData&&e.weatherData.l2IconData),Ki)}
        ${(0,de.g)((e=>0!=e.config.enableCardAction),Zi)}
    </msft-weather-card>
`,Yi=se.d`
    <msft-weather-sd-card
        id="WeatherCard"
        layout="${e=>e.config.isDynamicFeed?e.setLayoutAndSizeForWidget():e.cardSize}"
        target=${e=>0==e.openLinksInNewTab?"_self":"_blank"}
        background="${e=>e.config.cardBackgroundMode}"
        switchUnitLabel="${e=>{var t,i,a,n;return(1==(null===(t=e.weatherData)||void 0===t?void 0:t.weatherUnit)?null===(i=e.strings)||void 0===i?void 0:i.switchToCelsius:null===(a=e.strings)||void 0===a?void 0:a.switchToFahrenheit)||(null===(n=e.strings)||void 0===n?void 0:n.switchUnitTooltip)}}"
        openMapLabel="${e=>e.strings.miniMapSeeMore}"
        wcev2="${e=>e.wceV2}"
        isPinned="${e=>e.isPinned}"
        enableSameUX="${e=>e.config.enableSameUX&&e.config.isDynamicFeed}"
        showBrandIcon="${e=>e.config.isDynamicFeed}"
        :showAnimation="${e=>e.showAnimation}"
        :enableEPlant="${e=>e.getEPlantEnabled()&&void 0!==e.userType&&e.userType!==g.FW.AAD}"
        ePlantLabel="${e=>e.strings.ePlantButtonLabel}"
        ePlantIcon="${e=>e.config.ePlantIcon}"
        ePlantNewText="${e=>e.strings.eplantNewText}"
        :weatherData="${e=>e.weatherData||{}}"
        :clickableLabelTiles="${e=>e.clickableLabelTiles}"
        :clickableLabelUnit="${e=>e.clickableLabelUnit}"
        :primaryCarousel="${e=>e.primaryCarousel}"
        :showMiniMap="${e=>!!e.primaryCarousel&&e.showMiniMap}"
        :headerTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.headerAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :locationTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.locationAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :weaConditionTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.currentAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :weatherAqiTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.airQuality)||void 0===i?void 0:i.getMetadataTag()}}"
        :forecastDayTelemetryTags="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.dailyForecasts}}"
        :forecastHourTelemetryTags="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.hourlyForecasts}}"
        :seeForecastTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.seeForecastAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.minimapTelemetry)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapLabelTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.miniMapLabel)||void 0===i?void 0:i.getMetadataTag()}}"
        :minimapTelemetryLayerTags=${e=>e.minimapTelemetryLayerTags}
        :nowcastTelemetryTags="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.nowcastChart)||void 0===i?void 0:i.getMetadataTag()}}"
        :summaryTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.summaryAnchor)||void 0===i?void 0:i.getMetadataTag()}}"
        :blankAreaTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.blankArea)||void 0===i?void 0:i.getMetadataTag()}}"
        :ePlantTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.ePlantButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :ePlantEarthDayTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.ePlantEarthDay)||void 0===i?void 0:i.getMetadataTag()}}"
        data-t="${e=>{var t,i;return null===(i=null===(t=e.telemetryContext)||void 0===t?void 0:t.weatherCard)||void 0===i?void 0:i.getMetadataTag()}}"
        @switch=${(e,t)=>e.switchWeatherUnit()}
        data-clarity-mask=${Pe.jG.ClarityEnabled?"true":null}
        @mapLabelClick=${(e,t)=>e.onMapLabelClick(t.event)}
    >
        ${(0,de.g)((e=>e.config.isDynamicFeed),se.d`${Mi}`)}
        ${(0,de.g)((e=>e.config.isDynamicFeed&&e.isPinned),se.d`<div slot="pin" role="img" aria-label="${e=>e.strings.pinnedWidgetText||"pinned widget"}">${_i.Z}</div>`)}
        ${(0,de.g)((e=>e.config.isDynamicFeed&&e.config.enableSameUX),Bi)}
        ${(0,de.g)((e=>e.config.isDynamicFeed&&e.config.enableSameUX&&e.weatherData&&e.weatherData.l2IconData),Ki)}
        ${Zi}
    </msft-weather-sd-card>
`,Xi=se.d`
    <fluent-design-system-provider
        neutral-base-color="${e=>e.cardBackgroundColor}"
        style="padding: 0; width: 100%; height: 100%; --control-corner-radius: 4"
    >
        ${(0,de.g)((e=>e.config.cardMode==g.Nu.Widget),Ji)}
        ${(0,de.g)((e=>e.config.cardMode!=g.Nu.Widget&&!e.config.isDynamicFeed),Qi)}
        ${(0,de.g)((e=>e.config.cardMode!=g.Nu.Widget&&e.config.isDynamicFeed),Yi)}
        ${(0,de.g)((e=>{var t;return e.config.cardMode!=g.Nu.Widget&&e.isGA&&(null===(t=e.config.childExperienceReferences)||void 0===t?void 0:t.sdCardMaskWC)}),Ii)}
    </fluent-design-system-provider>
`,ea=se.d`
    <fluent-card card-fill-color="${e=>e.cardBackgroundColor}">
        ${Qi}
    </fluent-card>
`,ta=se.d`
    ${(0,de.g)((e=>e.config.cardMode==g.Nu.Widget||"light"==e.config.cardBackgroundMode),Xi)}
    ${(0,de.g)((e=>e.config.cardMode!=g.Nu.Widget&&"light"!=e.config.cardBackgroundMode),ea)}
`,ia=se.d`
    <msft-weather-setting-card
        id="WeatherSettingCard"
        layout="${e=>e.cardSize}"
        locationModeV2="${e=>"half"===e.cardSize||e.config.isDynamicFeed&&"small"===e.cardSize?"v3":"true"}"
        editHeader="${e=>e.config.multiLocation?e.strings.menuAddLocation:e.strings.editHeading}"
        detectLocationLabel="${e=>e.strings.locationDetect}"
        specifyLocationLabel="${e=>e.strings.locationSpecify}"
        detectLocationActionLabel="${e=>e.strings.detectMyLocation}"
        specifyLocationActionButton="${e=>e.strings.locationSpecify}"
        searchPlaceHolder="${e=>e.strings.locationSearchPlaceholder}"
        searchNoResult="${e=>e.strings.locationSearchNoResults}"
        unitsTitle="${e=>e.strings.unitsHeading}"
        fahrenheitLabel="${e=>e.strings.unitsFahrenheit}"
        celsiusLabel="${e=>e.strings.unitsCelsius}"
        saveButtonCont="${e=>e.strings.saveText}"
        cancelButtonCont="${e=>e.strings.cancelText}"
        searchClearButtonLabel="${e=>e.strings.searchClearButtonLabel}"
        :multiLocation="${e=>e.config.multiLocation}"
        :detectedLocation="${e=>e.detectedLocation}"
        :followedLocations="${e=>e.followedLocations}"
        :settingData="${e=>e.settingData}"
        :saveTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.saveButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :cancelTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.cancelButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :fahrenheitTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.fahrenheitRadio)||void 0===i?void 0:i.getMetadataTag()}}"
        :celsiusTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.celsiusRadio)||void 0===i?void 0:i.getMetadataTag()}}"
        :inputTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.locationSearchInput)||void 0===i?void 0:i.getMetadataTag()}}"
        :suggestTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.locationSuggest)||void 0===i?void 0:i.getMetadataTag()}}"
        :detectLocationTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.detectLocationButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :alwaysDetectSwitchTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.alwaysDetectSwitch)||void 0===i?void 0:i.getMetadataTag()}}"
        :searchClearTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.searchClear)||void 0===i?void 0:i.getMetadataTag()}}"
        @save=${(e,t)=>e.saveWeaSettingAndRefresh()}
        @cancel=${(e,t)=>e.cancelSetting()}
        @setUnitMode=${(e,t)=>e.selectWeatherUnit(t.event.detail)}
        @setLocationMode=${(e,t)=>e.selectLocationMode(t.event.detail)}
        @suggest=${(e,t)=>e.triggerLocationSuggest(t.event.detail)}
        @select=${(e,t)=>e.config.multiLocation?e.saveLocation(t.event.detail):e.selectLocation(t.event.detail)}
        @detectLocation=${(e,t)=>e.setDetectedLocation()}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.weatherSettingCard)||void 0===i?void 0:i.getMetadataTag()}}"
    >
    </msft-weather-setting-card>
`,aa=se.d`
    <msft-weather-setting-sd-card
        id="WeatherSettingCard"
        layout="${e=>e.cardSize}"
        locationModeV2="${e=>"half"===e.cardSize||e.config.isDynamicFeed&&"small"===e.cardSize?"v3":"true"}"
        editHeader="${e=>e.config.isDynamicFeed?"":e.config.multiLocation?e.strings.menuAddLocation:e.strings.editHeading}"
        detectLocationLabel="${e=>e.strings.locationDetect}"
        specifyLocationLabel="${e=>e.strings.locationSpecify}"
        detectLocationActionLabel="${e=>e.strings.detectMyLocation}"
        specifyLocationActionButton="${e=>e.strings.locationSpecify}"
        searchPlaceHolder="${e=>e.strings.locationSearchPlaceholder}"
        searchNoResult="${e=>e.strings.locationSearchNoResults}"
        unitsTitle="${e=>e.strings.unitsHeading}"
        fahrenheitLabel="${e=>e.strings.unitsFahrenheit}"
        celsiusLabel="${e=>e.strings.unitsCelsius}"
        saveButtonCont="${e=>e.strings.saveText}"
        cancelButtonCont="${e=>e.strings.cancelText}"
        searchClearButtonLabel="${e=>e.strings.searchClearButtonLabel}"
        :settingData="${e=>e.settingData}"
        :sdCardData="${e=>{var t,i;return{titleContent:null===(t=e.weatherData)||void 0===t?void 0:t.titleContent,link:null===(i=e.weatherData)||void 0===i?void 0:i.link}}}"
        :saveTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.saveButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :cancelTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.cancelButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :fahrenheitTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.fahrenheitRadio)||void 0===i?void 0:i.getMetadataTag()}}"
        :celsiusTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.celsiusRadio)||void 0===i?void 0:i.getMetadataTag()}}"
        :inputTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.locationSearchInput)||void 0===i?void 0:i.getMetadataTag()}}"
        :suggestTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.locationSuggest)||void 0===i?void 0:i.getMetadataTag()}}"
        :detectLocationTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.detectLocationButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :alwaysDetectSwitchTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.alwaysDetectSwitch)||void 0===i?void 0:i.getMetadataTag()}}"
        :searchClearTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.searchClear)||void 0===i?void 0:i.getMetadataTag()}}"
        @save=${(e,t)=>e.saveWeaSettingAndRefresh()}
        @cancel=${(e,t)=>e.cancelSetting()}
        @setUnitMode=${(e,t)=>e.selectWeatherUnit(t.event.detail)}
        @setLocationMode=${(e,t)=>e.selectLocationMode(t.event.detail)}
        @suggest=${(e,t)=>e.triggerLocationSuggest(t.event.detail)}
        @select=${(e,t)=>e.selectLocation(t.event.detail)}
        @detectLocation=${(e,t)=>e.setDetectedLocation()}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.weatherSettingCard)||void 0===i?void 0:i.getMetadataTag()}}"
    >
        ${(0,de.g)((e=>e.config.isDynamicFeed),se.d`${Mi}`)}
        ${(0,de.g)((e=>e.config.isDynamicFeed&&e.isPinned),se.d`<div slot="pin">${_i.Z}</div>`)}
        ${Zi}
    </msft-weather-setting-sd-card>
`;function na(e){return!(!e.config.isDynamicFeed||e.isSmallSize()&&!e.config.enableSameUX)}const oa=se.d`
    <msft-weather-setting-card-widget
        id="WeatherSettingWidget"
        layout="full"
        detectLocationLabel="${e=>e.strings.locationDetect}"
        detectLocationActionLabel="${e=>e.strings.detectMyLocation}"
        specifyLocationActionButton="${e=>e.strings.locationSpecify}"
        searchPlaceHolder="${e=>e.strings.locationSearchPlaceholder}"
        searchNoResult="${e=>e.strings.locationSearchNoResults}"
        unitsTitle="${e=>e.strings.unitsHeading}"
        fahrenheitLabel="${e=>e.strings.unitsFahrenheit}"
        celsiusLabel="${e=>e.strings.unitsCelsius}"
        saveButtonCont="${e=>e.strings.saveText}"
        cancelButtonCont="${e=>e.strings.cancelText}"
        searchClearButtonLabel="${e=>e.strings.searchClearButtonLabel}"
        :settingData="${e=>e.settingData}"
        :saveTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.saveButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :cancelTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.cancelButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :fahrenheitTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.fahrenheitRadio)||void 0===i?void 0:i.getMetadataTag()}}"
        :celsiusTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.celsiusRadio)||void 0===i?void 0:i.getMetadataTag()}}"
        :inputTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.locationSearchInput)||void 0===i?void 0:i.getMetadataTag()}}"
        :suggestTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.locationSuggest)||void 0===i?void 0:i.getMetadataTag()}}"
        :detectLocationTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.detectLocationButton)||void 0===i?void 0:i.getMetadataTag()}}"
        :alwaysDetectSwitchTelemetryTag="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.alwaysDetectSwitch)||void 0===i?void 0:i.getMetadataTag()}}"
        @save=${(e,t)=>e.saveWeaSettingAndRefresh()}
        @cancel=${(e,t)=>e.cancelSetting()}
        @setUnitMode=${(e,t)=>e.selectWeatherUnit(t.event.detail)}
        @setLocationMode=${(e,t)=>e.selectLocationMode(t.event.detail)}
        @suggest=${(e,t)=>e.triggerLocationSuggest(t.event.detail)}
        @select=${(e,t)=>e.selectLocation(t.event.detail)}
        @detectLocation=${(e,t)=>e.setDetectedLocation()}
        data-t="${e=>{var t,i;return null===(i=null===(t=e.settingTelemetryContext)||void 0===t?void 0:t.weatherSettingCard)||void 0===i?void 0:i.getMetadataTag()}}"
    >
    </msft-weather-setting-card-widget>
`,ra=se.d`
    ${(0,de.g)((e=>e.config.cardMode==g.Nu.Widget),oa)}
    ${(0,de.g)((e=>e.config.cardMode!=g.Nu.Widget&&!na(e)),ia)}
    ${(0,de.g)((e=>e.config.cardMode!=g.Nu.Widget&&na(e)),aa)}
`,sa=se.d`
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Forecast),ta)}
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Setting),ra)}
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Forecast&&e.isActionMenuOpen),Ai)}
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Forecast&&e.showLocationList),Vi)}
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Forecast&&e.isHideCardDialogShow&&e.hideDialogComponent),Wi)}
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Forecast&&e.isReportIssuDialogShow&&e.reportIssueComponent),Ui)}
    ${(0,de.g)((e=>e.cardViewMode===g.jy.Remind&&e.hideRemindComponent),Pi)}
    ${(0,de.g)((e=>e.config.multiLocation&&e.showLocationNotice),zi)}
`,la=se.d`
    <fluent-design-system-provider fill-color=${e=>e.isWidgetDarkMode?"#2C2C2C":"#F2F2F2"}
        style="padding: 0; width: 100%; height: 100%"
    >
        ${sa}
    </fluent-design-system-provider>
`,da=se.d`
    ${(0,de.g)((e=>e.config.cardMode==g.Nu.Widget),la)}
    ${(0,de.g)((e=>e.config.cardMode!=g.Nu.Widget),sa)}
`;var ca=i(32804);const ha=te.i`
    .location-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-right: 8px;
    }

    .weather-location-list {
        position: absolute;
        background: #FFFFFF;
        box-shadow: 0px 16px 32px rgb(0 0 0 / 14%);
        color: #1A1A1A;
        width: 276px;
        border-radius: 4px;
        padding: 4px;
        top: 40px;
        margin: 0;
        left: 7px;
        border: 1px solid #D6D6D6;
        z-index: 900;
    }

    .divide-line {
        width: 284px;
        height: 1px;
        background: #EFEFEF;
        margin-top: 4px;
        margin-bottom: 4px;
        position: relative;
        left: -4px;
    }

    .toast-close > svg {
        position: absolute;
        right: 10.5px;
        top: 10.5px;
        width: 11px;
        height: 11px;
        cursor: pointer;
    }
`,ua=te.i`
    .location-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        margin-left: 8px;
    }

    .weather-location-list {
        position: absolute;
        background: #FFFFFF;
        box-shadow: 0px 16px 32px rgb(0 0 0 / 14%);
        color: #1A1A1A;
        width: 276px;
        border-radius: 4px;
        padding: 4px;
        top: 40px;
        margin: 0;
        right: 7px;
        border: 1px solid #D6D6D6;
        z-index: 900;
    }

    .divide-line {
        width: 284px;
        height: 1px;
        background: #EFEFEF;
        margin-top: 4px;
        margin-bottom: 4px;
        position: relative;
        right: -4px;
    }

    .toast-close > svg {
        position: absolute;
        left: 10.5px;
        top: 10.5px;
        width: 11px;
        height: 11px;
        cursor: pointer;
    }
`,ga=te.i`
    :host {
        --control-corner-radius: 4;
        --content-padding: 0 0 16px;
        --title-padding: 12px 16px;
        position: relative;
    }

    .dynamic-feed-radius {
        border-radius: 4px;
    }
    
    .widget-more-actions {
        height: 30px;
        width: 30px;
        background-color: transparent;
        border-radius: calc(${ca.rSr} * 2px);
        position: absolute;
        top: 12px;
        inset-inline-end: 8px;
    }

    .widget-more-actions:hover {
        border-radius: 3px;
        background:${ca.wFS};
    }

    .weather-pinned-indicator {
        align-items: center;
        inset-inline-start: 236px;
        position: absolute; 
        top: 16px;
        z-index: 1;
    }

    fluent-button.neutral::part(control):focus-visible,
    fluent-anchor.neutral::part(control):focus-visible {
        outline: 2px solid var(--textStyle) !important;
    }

    .toast {
        position: absolute;
        bottom: 0px;
        width: 100%;
        z-index: 100;
        background: #4A4A4A;
        box-shadow: 0px 16px 32px rgb(0 0 0 / 14%);
        border-radius: 0px 0px 8px 8px;
        padding: 8px 16px;
        box-sizing: border-box;
    }

    .toast-string {
        font-size: 14px;
        line-height: 20px;
        color: #FFFFFF;
        margin-bottom: 4px;
    }

    .toast-action {
        font-weight: 400;
        font-size: 14px;
        line-height: 20px;
        color: #63ADE5;
        text-transform: capitalize;
        cursor: pointer;
    }

    .weather-location {
        border: none;
        width: 276px;
        height: 32px;
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        line-height: 20px;
        cursor: pointer;
        background: none;
    }
    
    .add-location {
        color: #0078D4;
        border: none;
        width: 276px;
        height: 32px;
        padding: 12px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 14px;
        line-height: 20px;
        cursor: pointer;
        background: none;
    }

    .add-location:hover,
    .weather-location:hover {
        background: rgba(0, 0, 0, 0.1);
        border-radius: 4px;
    }

    .left-part {
        display: flex;
        max-width: 220px;
        align-items: center;
    }

    .detect-icon > svg {
        width: 12px;
        height: 12px;
        position: relative;
        top: 1px;
    }
`.withBehaviors(new X.O(ha,ua)),pa={experienceConfigSchema:d}},84551:function(e,t,i){"use strict";function a(e,t,i,a,n,o,r,s,l,d,c,h){const u=a&&a.length?a[0]-1:0,g=e&&parseInt(e.substr(4,1)),p=o&&o.slice(u,u+g),m=e&&parseInt(e.substr(1,1)),v=a&&a.length?(a[0]+1)/2:1;return{width:m&&r&&m*r+(m-1)*s,height:p&&p.reduce(((e,t)=>e+t))+(g-1)*s,slot:l||i&&i.substr(4)&&parseInt(i.substr(4)),template:t,row:n||0===n?n+v:void 0,col:d>0?d:a&&a[1],badgeType:c,traceIdIndex:h}}i.d(t,{s:function(){return a}})},76859:function(e,t,i){"use strict";i.d(t,{C7:function(){return r},Nv:function(){return a},OO:function(){return s},X9:function(){return l},sn:function(){return o}});var a,n=i(9791);!function(e){e._1x_1y="_1x_1y",e._1x_2y="_1x_2y",e._1x_3y="_1x_3y",e._1x_4y="_1x_4y",e._1x_5y="_1x_5y",e._2x_1y="_2x_1y",e._2x_2y="_2x_2y",e._2x_3y="_2x_3y",e._2x_4y="_2x_4y",e._2x_6y="_2x_6y",e._3x_1y="_3x_1y",e._3x_2y="_3x_2y",e._4x_1y="_4x_1y",e._4x_2y="_4x_2y",e._5x_1y="_5x_1y",e._5x_2y="_5x_2y"}(a||(a={}));const o=146,r=300,s=12,l=(0,n.Z)((e=>Array(e).fill(o)))},81831:function(e,t,i){"use strict";i.d(t,{dk:function(){return s},lB:function(){return r},hP:function(){return l}});var a=i(76859),n=i(16517),o=i(84551);function r(e){if(!e)return null;if(function(e){if(!e.body||!e.body[0]||!e.body[0].columns||e.body[0].columns.length<3)return!1;const t=e.body[0].columns[2].items&&e.body[0].columns[2].items[0];return!(!t||!t.text)}(e)){const t=e.body[0].columns[2].items[0].text,i={$schema:"http://adaptivecards.io/schemas/adaptive-card.json",version:e.version,type:"AdaptiveCard",body:[{type:"ColumnSet",columns:[{type:"Column",items:[{type:"TextBlock",id:"WidgetsOverlayText",text:t.slice(0,t.length-1),size:"small",horizontalAlignment:"center"}]}]}]};return e.widgetsOverlay=i,e.timeToLiveInSeconds=1800,e.contentType="Weather",e}return e}function s(e){const{cardMetadata:t,parentTelemetryObject:i,cardSlot:n,layoutTemplateName:r,rowCount:s,rowHeightPx:l,colWidthPx:d,gutterPx:c,colOverride:h,supportedSdCardActionMenuItems:u,widgetInstanceId:g}=e,p={cards:[],C6:[],C5:[],C4:[],C3:[],C2:[],C1:[]},{grid_area:m,layouts:v,cardDomOrder:f,telemetryRowCol:y}=n;return(null==t?void 0:t.data)&&p.cards.push(function(e){var t;const{cardSlot:i,configOptions:a,parentTelemetryObject:n,cardMetadata:o,openLinksInNewTab:r,hideCardCallback:s,goToPersonalizeSettingsCallback:l,sdCardActionClickHandler:d,dismissSDCardMenuCallback:c,refreshSDCardSection:h,supportedSdCardActionMenuItems:u,refreshFeedCallback:g,isDynamicFeed:p}=e,{grid_area:m}=i;return{id:"weather",grid_area:m,card_template_type:"weather-card",parentTelemetryObject:n,weatherCardConfigInfo:a&&a,cardMetadata:o.data,isGA:null!==(t=o&&o.wpoMetadata&&o.wpoMetadata.isGA)&&void 0!==t&&t,openLinksInNewTab:r,hideWeatherCardCallback:s,goToPersonalizeSettingsCallback:l,dismissSDCardMenuCallback:c,refreshSDCardSection:h,sdCardActionClickHandler:d,supportedSdCardActionMenuItems:u,refreshFeed:g,isDynamicFeed:p,isSpotlightUX:o.metadata&&o.metadata.isSpotlightUX,previewType:o.metadata&&o.metadata.previewType}}(e)),Object.keys(v).forEach((e=>{const t=v[e],n=f&&f[e],w=(0,o.s)(t,r,m,y&&y[e],s&&s[e],l&&l[e],d,c,n,h),b=Object.assign(Object.assign({},i),{contract:Object.assign({},null==i?void 0:i.contract)});(null==b?void 0:b.contract)&&(b.contract.ext=w);const T={id:"weather",card_dom_order:n,cardSize:t,cardLayout:t===a.Nv._1x_1y?"half":"full",parentTelemetryObject:b,supportedSdCardActionMenuItems:u,widgetInstanceId:g};p[e].push(T)})),p}function l(){return"edgeChromium"===n.jG.AppType}},97671:function(e,t,i){"use strict";i.d(t,{QA:function(){return n},WM:function(){return r},_n:function(){return a},rd:function(){return o}});const a=new(i(59049).v)("LocationState");var n,o;function r(e,t,i,n=[]){n.some((e=>!1===e))||a.set(o.Location,{source:i,location:e,locationMode:t})}!function(e){e[e.LocationEditor=1]="LocationEditor",e[e.Feed=2]="Feed"}(n||(n={})),function(e){e[e.Location=1]="Location"}(o||(o={}))},16339:function(e,t,i){"use strict";i.d(t,{Iq:function(){return l},MD:function(){return r},gL:function(){return s}});var a=i(59049),n=i(14675);const o=new a.v("WidgetLoadTracker");function r(e){o.has(e)||("hidden"!==document.visibilityState?(0,n.c)((()=>o.set(e,!0))):o.set(e,!0))}const s=new a.v("WidgetAppState");var l;!function(e){e[e.IsDarkMode=1]="IsDarkMode",e[e.IsDashboardVisible=2]="IsDashboardVisible",e[e.ActionMenuStrings=3]="ActionMenuStrings",e[e.IsDynamicFeed=4]="IsDynamicFeed",e[e.SessionId=5]="SessionId",e[e.NonPeregrineWidgetTelemetryObject=6]="NonPeregrineWidgetTelemetryObject",e[e.FeedRegionWidgets=7]="FeedRegionWidgets",e[e.DefaultPreviewType=8]="DefaultPreviewType",e[e.IsReauthRequired=9]="IsReauthRequired"}(l||(l={}))},79070:function(e,t,i){"use strict";i.d(t,{es:function(){return o}});var a=i(53046),n=i(32804);const o=a.i`
    .widget-header-section {
        position: absolute;
        z-index: 1;
        inset-inline-start: 20px;
        top: 10px;
        display: flex;
        align-items: center;
    }

    .widget-title {
        font-size: 14px;
        color: ${n.CHi};
        text-decoration: none;
        margin-inline-start: 12px;    
    }

    .widget-title:hover {
        text-decoration: underline;
    }

    .widget-icon {
        height: 16px;
        width: 16px;    
    }

    .more-options {
        position: absolute;
        top: 5px;
        border-radius: 3px;
        height: 30px;
        width:30px;
        background: transparent;
        z-index: 2;
        inset-inline-end: 13px;
    }

    .more-options:hover {
        border-radius: 3px;
        background: ${n.wFS};
    }

    .pinned-indicator-icon {
        align-items: center;
        fill: ${n.CHi};
        inset-inline-start: 234px;
        position: absolute; 
        top: 10px;
        z-index: 1;
    }
`},68651:function(e,t,i){"use strict";i.d(t,{B$:function(){return m},f3:function(){return y},US:function(){return f},aS:function(){return p},gK:function(){return w}});var a=i(38156),n=i(16339),o='<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 h,u,g;function p(e,t,i,d,c,p){const f=[];let y=0,w=!1;if(!e||!e.length)return;const b=n.gL.get(n.Iq.ActionMenuStrings),T=e.includes(m.Unpin);return g=T?"pinned":"feed",h=i||{},u=d,e.forEach((e=>{switch(e){case m.Small:y++,h.height=146,f.push({id:"small",glyph:c===e?o:void 0,title:b.small||"Small",ariaLabel:b.small||"Small",telemetryTag:v(`size_${m.Small}`,b.small,a.wu.Customize)});break;case m.Medium:y++,h.height=304,f.push({id:"medium",glyph:c===e?o:void 0,title:b.medium||"Medium",ariaLabel:b.medium||"Medium",telemetryTag:v(`size_${m.Medium}`,b.medium,a.wu.Customize)});break;case m.Large:y++,h.height=462,f.push({id:"large",glyph:c===e?o:void 0,title:b.large||"Large",ariaLabel:b.large||"Large",telemetryTag:v(`size_${m.Large}`,b.large,a.wu.Customize)});break;case m.Pin:f.push({id:"pinCard",glyph:l.Z,title:b.pinCard||"Pin widget",ariaLabel:b.pinCard||"Pin widget",telemetryTag:v("pinwidget",b.pinCard,a.wu.Pin)});break;case m.Customize:w=!0,y>1&&f.push({isDivider:!0}),f.push({id:"customize",glyph:r.Z,title:b.customize||"Customize widget",ariaLabel:b.customize||"Customize widget",onClick:()=>p("onShowSettingsEnd"),telemetryTag:v("editwidget",b.customize,a.wu.Customize)});break;case m.Unpin:!w&&y>1&&f.push({isDivider:!0}),f.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:b.unpinCard||"Unpin widget",ariaLabel:b.unpinCard||"Unpin widget",telemetryTag:v("unpinwidget",b.unpinCard,a.wu.Unpin)});break;case m.PoweredBy:f.push({isDivider:!0}),f.push({id:"poweredBy",isText:!0,title:t||"Powered by Microsoft",ariaLabel:t||"Powered by Microsoft"});break;case m.RemoveWidget:f.push({id:m.RemoveWidget,glyph:s.Z,title:b.hideWidget,ariaLabel:b.hideWidget,telemetryTag:v("removewidget",b.hideWidget,a.wu.Hide)})}})),f}var m;function v(e,t,i){return new d.D({name:`${u}>customization_${e}`,type:a.c9.ActionButton,action:a.Aw.Click,behavior:i,zone:g,content:{headline:t,type:a.uH.StructuredData,vertical:u,category:u},destinationUrl:location.href,ext:h}).getMetadataTag()}function f(e){switch(e){case"_1x_1y":case"half":return"small";case"_1x_3y":case"tall":return"large";default:return"medium"}}function y(e,t,i){e&&i&&t&&(t(new CustomEvent("CardResized",{detail:{cardType:i,size:"medium"}})),e.style.zIndex=c.K.Above.toString(),e.style.height="304px")}function w(e,t,i,a){e&&i&&t&&(t(new CustomEvent("CardResized",{detail:{cardType:i,size:"small"}})),!1,e.style.zIndex="",e.style.height="")}!function(e){e.Small="small",e.Medium="medium",e.Large="large",e.Customize="customize",e.Pin="pin",e.Unpin="unpin",e.PoweredBy="poweredBy",e.RemoveWidget="removeWidget"}(m||(m={}))},75361:function(e,t,i){"use strict";i.d(t,{ss:function(){return $},FK:function(){return S},ZC:function(){return k},l1:function(){return C}});var a=i(26415),n=i(89696),o=i(51223),r=i(65135),s=i(9344),l=i(2040),d=i(16339),c=i(42821),h=i(33954);const u=window.__com_microsoft_dsh_widgetModelApiFactory,g=u&&u.tryGetApi("velocity",1,1);function p(){if(v("Feature_MultiAccount"))return u.tryGetApi("authenticator",1,1)}function m(e,t){t?r.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e.message,isAuthV2:!0})})):h.k.logError(e.message)}function v(e){return!(!g||!g.isFeatureEnabled(e))}const f="00000000400F9D16",y="service::www.msn.com::MBI_SSL",w="https://www.api.msn.com/",b="3a4d129e-7f50-4e0d-a7fd-033add0a29f4",T="User.Read Userinfo.ReadWrite",x="https://enterprisenews.microsoft.com/",C=1;let M;async function S(e){const t=Object.assign(Object.assign({},a.Rln),{message:"Exception fetching ProviderAuthority",pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:e&&e.widgetId,widgetInstanceId:e&&e.instanceId,widgetState:e&&e.widgetState})});try{const i=p();if(i)return await async function(e,t){try{if(!e)throw Error("IAuthenticator is null");const t=(0,c.Yb)("GetAccountType_V2"),i=await e.getDefaultAccountIdAsync();return await e.isMSAAccountAsync(i)?(t(),"consumers"):await e.isAADAccountAsync(i)?(t(),"organizations"):(t(),null)}catch(e){return m(e,t),null}}(i,t);if(!e)throw Error("Widget instance is null");const a=D("GetAccountType"),n=e.tryGetApi("authenticator",C,C),o=await n.getProperty("ProviderAuthority");return a(),o}catch(e){return(0,o.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},t),{pb:Object.assign(Object.assign({},t.pb),{error:e})})),null}}async function L(e,t,i,n,s=""){const l=Object.assign(Object.assign({},a.Rln),{message:"Exception calling GetToken",pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:e&&e.widgetId,widgetInstanceId:e&&e.instanceId,widgetState:e&&e.widgetState})});try{const a=p();if(a)return await async function(e,t,i,a,n="",o,r){try{if(!e)throw Error("IAuthenticator is null");const r=(0,c.Yb)("GetToken_V2"),s=await e.getDefaultAccountIdAsync(),l=await e.getAccountTokenAsync(s,t,i,a,n,o||"com.msn.desktopfeed");return r(),l}catch(e){return m(e,r),null}}(a,t,i,n,s,e&&e.widgetId,l);if(!e)throw Error("Widget instance is null");const o=D("GetToken"),r=e.tryGetApi("authenticator",C,C),d=await r.getToken(t,i,n,s);return o(),{token:d,errorResult:0,interactionRequired:!1}}catch(e){return(0,o.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},l),{pb:Object.assign(Object.assign({},l.pb),{error:e})})),null}}async function k(e){const t=D("GetMuid"),i=await async function(e,t){const i=Object.assign(Object.assign({},a.Rln),{message:`Exception calling getProperty api for property: ${t}`,pb:Object.assign(Object.assign({},a.Rln.pb),{widgetId:e&&e.widgetId,widgetInstanceId:e&&e.instanceId,widgetState:e&&e.widgetState,property:`property: ${t}`})});try{const a=p();if(a)return await async function(e,t,i){try{if(!t)throw Error("Property is null");if(!e)throw Error("IAuthenticator is null");const i=(0,c.Yb)("GetProperty_V2"),a=await e.getDefaultAccountIdAsync(),n=await e.getAccountPropertyAsync(a,t);return i(),n}catch(e){return m(e,i),null}}(a,t,i);if(!e)throw Error("Widget instance is null");if(!t)throw Error("Property is null");const n=e.tryGetApi("authenticator",C,C);return await n.getProperty(t)}catch(e){return(0,o.Z0)()||r.M0.sendAppErrorEvent(Object.assign(Object.assign({},i),{pb:Object.assign(Object.assign({},i.pb),{error:e})})),null}}(e,"MUID");return t(),i}async function $(e,t=!1,i){const n={};if(!e)return(0,o.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)})})),n;const c=await S(e),h="organizations"===c,u="consumers"===c,g=h&&(t||d.gL.get(d.Iq.IsDynamicFeed));if(u||g){const t=await L(e,h?b:f,h?T:y,h?x:w),o=t&&t.token;if(o)g?n[l.Yu.entAuthorization]=o:u&&(n[l.Yu.rpsToken]=o);else{const t=await async function(){if(!v("Feature_ReauthRequiredUser"))return!1;try{const e=p();return!!e&&await e.getReauthRequiredStatusAsync()}catch(e){return r.M0.sendAppErrorEvent(Object.assign(Object.assign({},a.u4l),{message:"Exception fetching getReauthRequiredStatusAsync",pb:Object.assign(Object.assign({},a.u4l.pb),{error:e})})),!1}}();t&&i&&i("reauthrequiredstatuschanged"),!t&&d.gL.get(d.Iq.IsDashboardVisible)&&u&&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:e.widgetId,widgetInstanceId:e.instanceId,windowsSessionId:d.gL.get(d.Iq.SessionId),widgetState:e.widgetState,isMsaUser:u,isBackgroundRefresh:!d.gL.get(d.Iq.IsDashboardVisible)})}))}}M||(M=await k(e));const m=(0,s.jG)();return M?(n[l.Yu.muid]=M,M!==m&&(0,o.nc)(M)):m&&(n[l.Yu.muid]=m),n}const D=e=>(0,n.F)(`WidgetApi.${e}`,{logDuration:!0,firstTimeOnly:!0})},27019:function(e,t,i){"use strict";i.d(t,{$x:function(){return h},D7:function(){return c},TU:function(){return l},eH:function(){return d},gd:function(){return s},vh:function(){return r}});var a=i(38156),n=i(75559),o=i(60483);function r(e,t){const i=new o.D({name:`${e}_customization`,type:a.c9.ActionButton,content:{headline:`${e}_customization`,type:a.uH.StructuredData,vertical:t||e}}),r=document.createElement("button");return r.setAttribute(n.qP,i.getMetadataTag()),r}function s(e,t,i,r){const s=new o.D({name:`${e}_header`,type:a.c9.ActionButton,content:{headline:i,type:a.uH.StructuredData,vertical:r||e}}),l=document.createElement("a");return l.href=t,l.setAttribute(n.qP,s.getMetadataTag()),l}function l(e,t){const i=new o.D({name:`${e}_customization_size${t}`,type:a.c9.ActionButton,content:{headline:`${t}`,type:a.uH.StructuredData,vertical:e}}),n=document.createElement("button");return n.setAttribute("data-t",i.getMetadataTag()),n}function d(e){const t=new o.D({name:`${e}_setting}`,type:a.c9.ActionButton,content:{headline:"setting",type:a.uH.StructuredData,vertical:e}}),i=document.createElement("button");return i.setAttribute("data-t",t.getMetadataTag()),i}function c(e){const t=new o.D({name:`${e}_removeWidget`,type:a.c9.ActionButton,content:{headline:"removeWidget",type:a.uH.StructuredData,vertical:e}}),i=document.createElement("button");return i.setAttribute("data-t",t.getMetadataTag()),i}function h(e,t,i){return{width:300,height:u(e),row:t,col:g(i)}}function u(e){return"large"===e?412:"medium"===e?304:"small"===e?146:void 0}function g(e){return"primary"===e?1:"secondary"===e?2:void 0}},51223:function(e,t,i){"use strict";i.d(t,{Z0:function(){return p},nc:function(){return g}});var a,n,o,r,s=i(21712),l=i(76668),d=i(16517),c=i(54804),h=i(76323),u=i(9344);function g(e){var t;const i=d.jG.IsChinaCompliance||"zh-cn"===(null===(t=null===c.Al||void 0===c.Al?void 0:c.Al.Locale)||void 0===t?void 0:t.toLowerCase());e&&(0,u.sq)(s.pA,e,365,i?".msn.cn":".msn.com","/",!0,l.f.None)}!function(e){e[e.none=0]="none",e[e.bgTask=1]="bgTask",e[e.badge=2]="badge",e[e.rotationalPreview=4]="rotationalPreview",e[e.expandedView=8]="expandedView",e[e.fullWv=16]="fullWv",e[e.reauthRequiredUser=32]="reauthRequiredUser"}(a||(a={})),function(e){e[e.header=0]="header",e[e.content=1]="content",e[e.moreOptions=2]="moreOptions"}(n||(n={})),function(e){e[e.resize=0]="resize",e[e.customize=1]="customize",e[e.unpin=2]="unpin",e[e.hide=3]="hide",e[e.pin=4]="pin",e[e.other=5]="other"}(o||(o={})),function(e){e[e.ProfileClicked=0]="ProfileClicked",e[e.AddButtonClicked=1]="AddButtonClicked"}(r||(r={}));const p=(0,h.p)((()=>document.getElementById("widgetGroup-testpage")&&("winWidgets"===d.jG.AppType||"windowsNewsPlus"===d.jG.AppType)));var m;!function(e){e[e.Alert=0]="Alert",e[e.NoAlert=1]="NoAlert",e[e.HighImpact=2]="HighImpact",e[e.Critical=3]="Critical"}(m||(m={}))},26785:function(e){e.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>'},56993:function(e){e.exports='<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4.5 13h11a.5.5 0 00.42-.78L13.1 8l2.82-4.22A.5.5 0 0015.5 3H4a.5.5 0 00-.5.5v14a.5.5 0 001 0V13zm0-1V4h10.07l-2.49 3.72a.5.5 0 000 .56L14.57 12H4.5z"></path></svg>'},3893:function(e){e.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(e){e.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>'},39391:function(e,t,i){"use strict";i.d(t,{xg:function(){return C}});var a=i(20005),n=i(65620),o=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 h extends c{constructor(){super(),this.initialValue="on",this.keypressHandler=e=>{switch(e.key){case r.kL:case r.BI:this.checked=!this.checked}},this.clickHandler=e=>{this.disabled||this.readOnly||(this.checked=!this.checked)},this.proxy.setAttribute("type","checkbox")}readOnlyChanged(){this.proxy instanceof HTMLInputElement&&(this.proxy.readOnly=this.readOnly),this.readOnly?this.classList.add("readonly"):this.classList.remove("readonly")}checkedChanged(e,t){super.checkedChanged(e,t),this.checked?this.classList.add("checked"):this.classList.remove("checked")}}(0,a.gn)([(0,n.Lj)({attribute:"readonly",mode:"boolean"})],h.prototype,"readOnly",void 0),(0,a.gn)([o.LO],h.prototype,"defaultSlottedNodes",void 0);var u=i(39181),g=i(90960);var p=i(53046),m=i(67020),v=i(37139),f=i(56201),y=i(40082),w=i(87839),b=i(2658),T=i(22674),x=i(32804);const C=h.compose({baseName:"switch",template:(e,t)=>u.d`
    <template
        role="switch"
        aria-checked="${e=>e.checked}"
        aria-disabled="${e=>e.disabled}"
        aria-readonly="${e=>e.readOnly}"
        tabindex="${e=>e.disabled?null:0}"
        @keypress="${(e,t)=>e.keypressHandler(t.event)}"
        @click="${(e,t)=>e.clickHandler(t.event)}"
        class="${e=>e.checked?"checked":""}"
    >
        <label
            part="label"
            class="${e=>e.defaultSlottedNodes&&e.defaultSlottedNodes.length?"label":"label label__hidden"}"
        >
            <slot ${(0,g.Q)("defaultSlottedNodes")}></slot>
        </label>
        <div part="switch" class="switch">
            <slot name="switch">${t.switch||""}</slot>
        </div>
        <span class="status-message" part="status-message">
            <span class="checked-message" part="checked-message">
                <slot name="checked-message"></slot>
            </span>
            <span class="unchecked-message" part="unchecked-message">
                <slot name="unchecked-message"></slot>
            </span>
        </span>
    </template>
`,styles:(e,t)=>p.i`
        :host([hidden]) {
            display: none;
        }

        ${(0,m.j)("inline-flex")} :host {
            align-items: center;
            outline: none;
            font-family: ${x.SVJ};
            margin: calc(${x._5n} * 1px) 0;
            ${""} user-select: none;
        }

        :host(.disabled) {
            opacity: ${x.VFZ};
        }

        :host(.disabled) .label,
        :host(.readonly) .label,
        :host(.readonly) .switch,
        :host(.disabled) .switch {
            cursor: ${v.H};
        }

        .switch {
            position: relative;
            outline: none;
            box-sizing: border-box;
            width: calc(((${b.i} / 2) + ${x._5n}) * 2px);
            height: calc(((${b.i} / 2) + ${x._5n}) * 1px);
            background: ${x._Bj};
            border-radius: calc(${b.i} * 1px);
            border: calc(${x.Han} * 1px) solid ${x.rU8};
        }

        :host(:enabled) .switch:hover {
            background: ${x.Tm7};
            border-color: ${x.gKw};
            cursor: pointer;
        }

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

        :host(:${f.b}) .switch {
            box-shadow: 0 0 0 2px ${x.IfY}, 0 0 0 4px ${x.yGg};
            border-color: ${x.yGg};
        }

        .checked-indicator {
            position: absolute;
            height: calc((${b.i} - (${x._5n} * 5.5)) * 1px);
            width: calc((${b.i} - (${x._5n} * 5.5)) * 1px);
            top: calc(${x._5n} * 1px);
            background: ${x.CHi};
            border-radius: 50%;
            transition: all 0.2s ease-in-out;
        }

        .status-message {
            color: ${x.CHi};
            cursor: pointer;
            font-size: ${x.cSu};
            line-height: ${x.RUt};
        }

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

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

        ::slotted(*) {
            ${""} margin-inline-start: calc(${x._5n} * 2px + 2px);
        }

        :host([aria-checked="true"]) .checked-indicator {
            background: ${x.w41};
        }

        :host([aria-checked="true"]) .switch {
            background: ${x.Avx};
        }

        :host([aria-checked="true"]:enabled) .switch:hover {
            background: ${x.OCG};
        }

        :host([aria-checked="true"]:enabled) .switch:hover .checked-indicator {
            background: ${x.lJV};
        }

        :host([aria-checked="true"]:enabled) .switch:active {
            background: ${x.UEO};
        }

        :host([aria-checked="true"]:enabled) .switch:active .checked-indicator {
            background: ${x.PpH};
        }

        :host([aria-checked="true"]:${f.b}:enabled) .switch {
            box-shadow: 0 0 0 2px ${x.IfY}, 0 0 0 4px ${x.yGg};
            border-color: transparent;
        }

        .unchecked-message {
            display: block;
        }

        .checked-message {
            display: none;
        }

        :host([aria-checked="true"]) .unchecked-message {
            display: none;
        }

        :host([aria-checked="true"]) .checked-message {
            display: block;
        }
    `.withBehaviors(new T.O(p.i`
                .checked-indicator {
                    left: calc(${x._5n} * 1px);
                }

                :host([aria-checked="true"]) .checked-indicator {
                    left: calc(
                        (((${b.i} / 2) + ${x._5n}) + ${x._5n}) * 1px
                    );
                }
            `,p.i`
                .checked-indicator {
                    right: calc(${x._5n} * 1px);
                }

                :host([aria-checked="true"]) .checked-indicator {
                    right: calc(
                        (((${b.i} / 2) + ${x._5n}) + ${x._5n}) * 1px
                    );
                }
            `),(0,y.vF)(p.i`
                .checked-indicator,
                :host(:enabled) .switch:active .checked-indicator {
                    forced-color-adjust: none;
                    background: ${w.H.FieldText};
                }
                .switch {
                    forced-color-adjust: none;
                    background: ${w.H.Field};
                    border-color: ${w.H.FieldText};
                }
                :host(:enabled) .switch:hover {
                    background: ${w.H.HighlightText};
                    border-color: ${w.H.Highlight};
                }
                :host(.checked) .switch {
                    background: ${w.H.Highlight};
                    border-color: ${w.H.Highlight};
                }
                :host(.checked:enabled) .switch:hover,
                :host(:enabled) .switch:active {
                    background: ${w.H.HighlightText};
                    border-color: ${w.H.Highlight};
                }
                :host(.checked) .checked-indicator {
                    background: ${w.H.HighlightText};
                }
                :host(.checked:enabled) .switch:hover .checked-indicator {
                    background: ${w.H.Highlight};
                }
                :host(:${f.b}) .switch {
                    border-color: ${w.H.Highlight};
                    box-shadow: 0 0 0 2px ${w.H.Field},
                        0 0 0 4px ${w.H.FieldText};
                }
                :host(.checked:${f.b}:enabled) .switch {
                    box-shadow: 0 0 0 2px ${w.H.Field},
                        0 0 0 4px ${w.H.FieldText};
                }
                :host(.disabled) {
                    opacity: 1;
                }
                :host(.disabled) .checked-indicator {
                    background: ${w.H.GrayText};
                }
                :host(.disabled) .switch {
                    background: ${w.H.Field};
                    border-color: ${w.H.GrayText};
                }
                .status-message,
                .label {
                    color: ${w.H.FieldText};
                }
            `)),switch:'\n    <span class="checked-indicator" part="checked-indicator"></span>\n  '})}}]);A
Eo