source"):""}`)}catch(e){}}(o.searchParams),o.toString()}lt.d`
<div class="tsl-root tsl-non-embed-js">
    <div id="tsl-container-${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id}}" class="tsl-container">
        <div id="tsl-media-${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id}}" class="tsl-media">
            <div id="tsl-media-container-${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id}}" class="tsl-media-container">
                <iframe
                    id="tsl-embed-${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id}}"
                    class="tsl-media-embed"
                    title="Talk Shop Live App"
                    src="${e=>{var t,i,o;return gt(null!==(o=null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id)&&void 0!==o?o:"")}}"
                    allow="autoplay"
                ></iframe>
            </div>
        </div>
    </div>
</div>
`;const mt=lt.d`
<div class="tsl-root">
    <div
        class="tsl-container"
        data-affiliate-id="${pt}"
        data-type="show"
        data-view="products"
        data-report="1"
        data-manual-init="1"
        data-style-max-width="100%"
        data-style-border-width="0"
        data-modus="${e=>function(e){return(0,ot.iL)(e.videoId).event_key}(e)}"
        data-eventid="${e=>function(e){const t=(0,ot.iL)(e.videoId);return void 0===t.event_id?"":String(t.event_id)}(e)}"
    > </div>
</div>
`,yt=lt.d`
<div class="videocard3PPNotice" part="videocard3PPNotice" style="width: 100%; text-align: center;">
    ${e=>{var t,i,o;return null===(o=null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.thirdPartyPlayersConfig)||void 0===i?void 0:i.localizedStrings)||void 0===o?void 0:o.videoPlayerFrom}} ${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.card3ppConfig)||void 0===i?void 0:i.displayName}} 
    (<span :innerHTML="${e=>ut(e)}"></span>)
</div>
`,ft=lt.d`
<div class="directEmbed_root" ${(0,ct.i)("demPlayerRef")} data-t="${e=>{var t,i;return null===(i=null===(t=e.videoTelemetryContext)||void 0===t?void 0:t.parentTelemetry)||void 0===i?void 0:i.getMetadataTag()}}">
    ${e=>mt}
    ${(0,ht.g)((e=>{var t,i;return!(null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.playerConfigProps)||void 0===i?void 0:i.hidePrivacyLinks)}),yt)}
</div>
`;var bt;!function(e){e.PlayerVolumeReceived="playervolumereceived",e.PlayerStatusChanged="playerstatuschanged"}(bt||(bt={}));class Pt extends ${constructor(){super(...arguments),this.type="Talkshoplive",this.scriptId="demJsTalkshoplive",this.scriptSrc="https://embed.talkshop.live/embed.js",this.videoId="",this.title="",this.videoDuration=0,this.wasPaused=!1,this.isAutoplay=!1,this.isReady=!1,this.tslDebug=!1,this.lastSysTimestampSec=0,this.lastVideoPositionSec=0,this.subscribeToEvents=()=>{globalThis.addEventListener("message",this.handleTalkshopliveIframeMessage)},this.handleTalkshopliveIframeMessage=e=>{var t;if(!e.data||!e.data.type)return;if(e.data.index!==this.videoId)return;if(e.origin!==window.location.origin&&vt!==e.origin)return;const i=e.data;switch(i.type!==Qe.videoTime&&this.log("tsl message:",Object.assign({action:null===(t=i.value)||void 0===t?void 0:t.action},i)),i.type){case Qe.changeStyle:this.tslController||function(e,t){if(!t)return;const{landscape:i,expand:o,event:n}=e;i?t.style.paddingTop="56.25%":o?t.style.paddingTop="calc(56.25% + 50vh)":(t.style.transition="padding 0.25s ease-in-out",t.style.paddingTop=n?"calc(56.25% + 120px)":"calc(56.25% + 150px)")}(i,this.mediaContainerElement);break;case Qe.playerStatus:this.handleTSLPlayerStatusEvent(i);break;case Qe.telemetry:this.handleTSLTelemetryEvent(i);break;case Qe.videoTime:this.handleTSLVideoTimeEvent(i)}},this.normalizeEvent=e=>({isPlayerPaused:this.wasPaused,content:{title:this.title,videoPositionSec:e||0,videoDuration:this.videoDuration||0,videoId:this.videoId,videoHeight:this.height,videoWidth:this.width,isWebContent:!1}})}init({container:e,videoId:t,isAutoplay:i,title:o}){const n=Object.create(null,{init:{get:()=>super.init}});return(0,l.mG)(this,void 0,void 0,(function*(){this.videoId=t,this.isAutoplay=i,this.title=o,n.init.call(this,e,e),this.initTslDebug(),this.subscribeToEvents(),this.initHTMLElements(),this.initVideoPosition(),this.launchPlayer()}))}dispose(){this.disposePlayer(),this.unsubscribeEvents(),super.dispose()}loadEmbedPlayer(){return this.loadPlayerScript()}initTslDebug(){const e=new URL(window.location.href).searchParams;this.tslDebug="1"===e.get("tsldebug")}log(e,t){this.tslDebug&&console.debug(e,Object.assign({ready:this.isReady,videoId:this.videoId,title:this.title},t))}initHTMLElements(){this.embedRootElement=this.htmlEl&&this.htmlEl.querySelector(".tsl-container"),this.mediaContainerElement=this.htmlEl&&this.htmlEl.querySelector(".tsl-media-container"),this.iframeElement=this.htmlEl&&this.htmlEl.querySelector(".tsl-media-embed")}get tslController(){return window.TSLController}launchPlayer(){this.htmlEl&&this.tslController&&this.tslController.launchFromShadow(this.htmlEl,this.videoId)}disposePlayer(){this.tslController&&this.tslController.disposePlayer(this.videoId)}sendActionToPlayerIFrame(e){this.log("tsl action:",{cmd:e}),this.tslController?this.tslController.action(this.videoId,e):(this.iframeElement||(this.iframeElement=this.htmlEl&&this.htmlEl.querySelector(".tsl-media-embed")),this.iframeElement&&this.iframeElement.contentWindow&&this.iframeElement.contentWindow.postMessage({type:"action",action:e},"*"))}play(){this.isReady&&this.sendActionToPlayerIFrame("play")}pause(){this.isReady&&(this.wasPaused||this.sendActionToPlayerIFrame("pause"))}setMute(e){this._isMuted=e,this.sendActionToPlayerIFrame(this._isMuted?"mute":"unmute")}setVolume(e){this.setMute(e<=.001)}seekingThresholdInSeconds(){return 15}get canProvideVideoPosition(){return!0}get shouldEmulateTimeUpdate(){return!0}createTimeUpdateEventData(){const e=this.estimateVideoPosition();return this.normalizeEvent(e)}initVideoPosition(){this.estimateVideoPosition(0)}estimateVideoPosition(e){const t=(new Date).getTime()/1e3,i=t-this.lastSysTimestampSec;return this.lastSysTimestampSec=t,void 0!==e?this.lastVideoPositionSec=e:this.wasPaused||(this.lastVideoPositionSec+=i),this.lastVideoPositionSec}register(){return Promise.resolve()}unsubscribeEvents(){globalThis.removeEventListener("message",this.handleTalkshopliveIframeMessage)}dispatchUIEvent(e,t){this.htmlEl&&this.htmlEl.dispatchEvent(new CustomEvent(e,{detail:t}))}handleTSLPlayerStatusEvent(e){if("READY"===e.status){this.isReady=!0;const t=this.normalizeEvent(0);this.triggerEvent(p.pt.Ready,t),this.dispatchUIEvent(bt.PlayerStatusChanged,{playerId:e.index,status:"READY"}),this.setMute(!0),this.isAutoplay&&this.play()}}handleTSLTelemetryEvent(e){const t=e&&e.value&&e.value.meta&&e.value.meta.video_time,i=this.normalizeEvent(t||0);switch(e.value.action){case et.VIDEO_MUTE:this._isMuted=!0,this._volume=0,this.triggerEvent(p.pt.VolumeChange,i),this.dispatchUIEvent(bt.PlayerVolumeReceived,{playerId:e.index,status:"MUTED"});break;case et.VIDEO_UNMUTE:this._isMuted=!1,this._volume=1,this.triggerEvent(p.pt.VolumeChange,i),this.dispatchUIEvent(bt.PlayerVolumeReceived,{playerId:e.index,status:"UNMUTED"});break;case et.VIDEO_PAUSE:this.estimateVideoPosition(t),this.wasPaused=!0,this.triggerEvent(p.pt.Pause,i);break;case et.VIDEO_PLAY:this.estimateVideoPosition(t),this.wasPaused=!1,this.triggerEvent(p.pt.Play,i);break;case et.VIDEO_SEEK:this.estimateVideoPosition(t);break;case et.VIDEO_COMPLETE:this.triggerEvent(p.pt.Ended,i)}this.embedRootElement&&dt.handleTelemetryEvent(e,this.embedRootElement,this.title)}handleTSLVideoTimeEvent(e){const t=this.normalizeEvent(e.value);this.estimateVideoPosition(e.value),this.triggerEvent(p.pt.TimeUpdate,t)}}var Et=i(33791);const wt=[p.pt.AdError,p.pt.AdInitiated,p.pt.AdRequestStarted,p.pt.AdLoading,p.pt.AdPlayStarted,p.pt.AdResume,p.pt.AdPause,p.pt.AdPlayCompleted,p.pt.AdSlotEnded],xt=[p.pt.Ready,p.pt.Play,p.pt.Pause,p.pt.Resume,p.pt.TimeUpdate,p.pt.ContentContinue,p.pt.VolumeChange,p.pt.Ended];class Ct extends ${constructor(){super(...arguments),this.eventNames=[p.pt.Play,p.pt.Pause,p.pt.TimeUpdate,p.pt.Telemetry,p.pt.Ended],this.videoId="",this.isAdShown=!1,this.videoDuration=0,this.color="",this.scriptSrc="",this.scriptId="",this.type="VideoJs",this.setIsAdsPlaying=e=>{this._isAdsPlying=e},this.normalizeEventData=()=>{var e,t;return{isPlayerPaused:this.player.paused(),content:{title:null!==(e=this.player.options().title)&&void 0!==e?e:"",videoPositionSec:null!==(t=this.player.currentTime())&&void 0!==t?t:0,videoDuration:this.player.duration()||this.videoDuration,provider:this.provider,videoId:this.videoId,isWebContent:!1,videoWidth:this.width,videoHeight:this.height}}},this.createAdEventData=e=>([p.pt.AdPlayStarted,p.pt.AdResume].includes(e)&&(this.isAdShown=!0,this.setIsAdsPlaying(!0)),[p.pt.AdPause,p.pt.AdPlayCompleted,p.pt.AdSlotEnded].includes(e)&&this.setIsAdsPlaying(!1),e===p.pt.AdSlotEnded&&(this.isAdShown=!1),{isPlayerPaused:this.player.paused()||e===p.pt.AdPause,ad:{isThirdParty:!1}})}init({videoId:e,provider:t,isInlinePlayer:i,player:o,playerHtmlElement:n,color:a,videoDuration:r}){super.init(o,n),this._isIniline=i,this.color=a,this.videoDuration=r,this.setVideo(e,t),this.subscribeToEvents(),queueMicrotask((()=>this.triggerEvent(p.pt.Ready,this.normalizeEventData())))}play(){this.player.play()}pause(){this.player.pause()}colorSample(){return this.color}setMute(e){this.player.muted(e)}setVolume(e){this.player.volume(this.normalizeVolume(e))}setVideo(e,t){this.videoId=e,this.provider=t,super.setVideo(e,t)}dispose(){this.player.off(),this.player.dispose(),super.dispose()}get isMuted(){return this.player.muted()}get volume(){return this.player.volume()}get canProvideVideoPosition(){return!0}get shouldEmulateTimeUpdate(){return!1}createTimeUpdateEventData(){throw new Error("VideoJs supports time update out of box. Set `shouldEmulateTimeUpdate` to false.")}register(){return Promise.resolve()}loadPlayerScript(){return Promise.resolve()}subscribeToEvents(){for(const e of this.eventNames)this.player.on(e,(()=>this.triggerEvent(e,this.normalizeEventData())));for(const e of wt)this.player.on(e,(()=>this.triggerEvent(e,this.createAdEventData(e))))}}var St,Tt=i(17318),It=i(36803),At=i(87298),Dt=i(63535),kt=i(33799),Ot=i(99478),Vt=i(51671),Lt=i(33954),_t=i(33379);!function(e){e.ArticleDataApi="api/article/",e.ContentDetail="view/v2/Detail/",e.ContentDetailWithLocale="view/v2/Detail/{0}/",e.ContentFull="view/v1/Full/",e.ContentV1Detail="view/v1/Detail/",e.ContentV1DetailWithLocale="view/v2/Detail/{0}/",e.ContentPreviewApi="https://api.msn.com/msn/contentpreviews?ids=",e.ContentProvider="view/v2/provider/",e.ImageDataApi="api/image/",e.ImagesDataApi="api/images/",e.ProviderFeedApiFormat="news/providers/{0}/items",e.TaboolaRiverDataApi="api/taboolariver",e.RelatedContentClusterApi="api/story/cluster?Url={0}",e.RelatedContentDataApi="msn/feedlayout",e.RewardsApi="news/users/me/rewards",e.ContentFromVerticalDataApi="msn/feed",e.SearchCMSApi="v1/cms/api/amp/search"}(St||(St={}));class Mt extends Error{}class Nt extends Error{}class Rt{constructor(e){this.fetchImpl=e,this.cachedPromises=new Map}static getInstance(){if(!this.instance){const e=(0,_t.N)()?window.fetch.bind(window):Tt.br;this.instance=new Rt(e)}return this.instance}fetchArticleDataAsync(e){const t=new URL(St.ArticleDataApi+e,this.viewsDataServiceHost());return this.fetchDocumentAsync(t.href)}fetchContentPreviewAsync(e,t){return(0,l.mG)(this,void 0,void 0,(function*(){const i=new URL(`${St.ContentPreviewApi}${e}`),o=(yield(0,Vt.XJ)())===kt.Hy.SignedIn,n=f.jG.UserId,a=o?D.$.getOneServiceParamsWithAuth(n,t,!1):D.$.getOneServiceParamsWithoutAuth(n,t,!1);a.push({key:"scn",value:"MSNRPSAuth"}),a.push({key:"viewType",value:"Detail"}),a.push({key:"wrapodata",value:"false"});const r={method:"GET",credentials:"include",headers:yield D.$.getOneServiceHeaders()};return a.forEach((e=>{i.searchParams.set(e.key,e.value)})),this.fetchDocumentAsync(i.href,!0,r)}))}fetchGalleryDataAsync(e){return this.fetchContentDataAsync(e)}fetchContentDetailWithLocaleDataAsync(e,t,i=!1){const o=new URL(`${(0,Ot.WU)(St.ContentDetailWithLocale,t)}${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(o.href,!0,null,i,!0)}fetchVideoDataAsync(e){const t=new URL(`${St.ContentFull}${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(t.href,!0)}fetchVideoDataDetailAsync(e){const t=new URL(`${St.ContentV1Detail}${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(t.href,!0)}fetchVideoDataDetailWithLocaleAsync(e,t){const i=new URL(`${(0,Ot.WU)(St.ContentV1DetailWithLocale,t)}${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(i.href,!0)}fetchStoryDataAsync(e){const t=new URL(`${St.ContentFull}/${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(t.href,!0)}fetchImageDataAsync(e){const t=new URL(St.ImageDataApi+e,this.viewsDataServiceHost());return this.fetchDocumentAsync(t.href)}fetchImagesDataAsync(e){const t=new URL(St.ImagesDataApi+e,this.viewsDataServiceHost());return this.fetchDocumentAsync(t.href)}fetchTaboolaRiverDataAsync(){const e=new URL(St.TaboolaRiverDataApi,this.viewsDataServiceHost());return this.fetchDocumentAsync(e.href)}fetchProviderDataAsync(e){return this.fetchContentDataAsync(e).then((e=>e&&e.provider&&e.provider.id?this.fetchProviderDataByProviderIdAsync(e.provider.id):Promise.resolve(null)))}fetchProviderDataByProviderIdAsync(e){if((0,It.R)(e)){const t=new URL(`${St.ContentProvider}${f.jG.CurrentMarket}/${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(t.href,!0)}return Promise.resolve(null)}fetchProviderFeedAsync(e,t){const i=(0,f.Yq)(),o=new URL(`${(0,Ot.WU)(St.ProviderFeedApiFormat,e)}?market=${i.CurrentMarket}&contentType=${t}`,f.jG.ServiceUrlBase);return this.fetchDocumentAsync(o.href)}fetchRelatedContentClusterAsync(e){const t=new URL(`${(0,Ot.WU)(St.RelatedContentClusterApi,e)}`,this.viewsDataServiceHost());return this.fetchDocumentAsync(t.href)}fetchRelatedContentFeedAsync(e,t){const i=[{key:"$filter",value:"_t eq CompositeCard"},{key:"$select",value:"sourceId,headlines,provider,url"},{key:"timeOut",value:"1000"},{key:"t",value:"View"},{key:"t:RelatedStories.Ids",value:`${e}`},{key:"t:personalized",value:"true"}];return this.fetchContentsFromOneServiceAsync(i,St.RelatedContentDataApi,t)}fetchVideoFeedAsync(e,t){const i=[{key:"$select",value:"sourceId"},{key:"timeOut",value:"1000"},{key:"market",value:f.jG.CurrentMarket},{key:"query",value:`${e}`},{key:"contentType",value:"video"},{key:"$top",value:"16"}];return this.fetchContentsFromOneServiceAsync(i,St.ContentFromVerticalDataApi,t)}fetchContentFromCMSSearchAsync(e,t,i,o){return(0,l.mG)(this,void 0,void 0,(function*(){const n=[],a={$select:"_id,title,_links.self,labels.category,_provider",$orderby:"'_lastPublishedDateTime' desc",$filter:`'$type'eq'${t}'and('_locale'eq'${f.jG.CurrentMarket}'or('facets.key'eq'additionalLocale'and'facets.values'eq'${f.jG.CurrentMarket}'))and'labels.category.product'eq'${e}'`,$top:i};if(o)for(let e=0;e<o.length;e++){const t=o[e];a[t.key]=t.value}Object.entries(a).forEach((([e,t])=>{n.push({key:e,value:t})}));const r=new URL(St.SearchCMSApi,f.jG.ContentServiceUrlBase);Object.entries(a).forEach((([e,t])=>{r.searchParams.set(e,t)}));const s=yield this.fetchImpl(r.href);if(s.ok)return s.json();{const e=`"Failed to get data from ${r.href}. Status: ${s.statusText}`;S.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.c5r.RelatedSlideshowCMSFetchError),{message:"Failed to get data",pb:Object.assign(Object.assign({},c.c5r.RelatedSlideshowCMSFetchError.pb),{customMessage:e})}))}}))}fetchContentFromVerticalFeedAsync(e,t,i){const o=[],n={$select:"sourceId,headlines,provider,type,url",timeOut:"1000"};if(e&&(n.query=e),i)for(let e=0;e<i.length;e++){const t=i[e];n[t.key]=t.value}return Object.entries(n).forEach((([e,t])=>{o.push({key:e,value:t})})),this.fetchContentsFromOneServiceAsync(o,St.ContentFromVerticalDataApi,t)}fetchContentDataAsync(e){const t=new URL(`${St.ContentDetail}${f.jG.CurrentMarket}/${e}`,f.jG.ContentServiceUrlBase);return this.fetchDocumentAsync(t.href,!0)}fetchDocumentAsync(e,t=!1,i=null,o=!1,n=!1){if(this.cachedPromises[e])return this.cachedPromises[e];const a=(0,At.w)((()=>(0,l.mG)(this,void 0,void 0,(function*(){var t;try{const a=yield this.fetchImpl(e,null!=i?i:yield D.$.getBaseRequestData("GET"));if(!a.ok){const t=a.status,i=`"Failed to get data from ${e}. Status: ${t} ${a.statusText}`;let r;Lt.k.logError(i);let s=c.c5r.DataFetchError;return 404===t?r=new Nt(i):410===t?(s=n?c.c5r.ViewsMainContentRemovedFetchError:c.c5r.ViewsOtherContentRemovedFetchError,r=new Mt(i)):r=new Error(i),S.M0.sendAppErrorEvent(Object.assign(Object.assign({},s),{message:"Failed to get data",pb:Object.assign(Object.assign({},s.pb),{customMessage:i,status:t,stack:r.stack})})),o?r:null}if(null===(t=a.headers)||void 0===t?void 0:t.get("X-Statics-Fallback")){const t=`Response from ${e} fell back to statics on page ${window.location.href}`;Lt.k.logError(t),S.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.c5r.StaticFallbackError),{message:"Content view API fell back to static content",pb:Object.assign(Object.assign({},c.c5r.StaticFallbackError.pb),{customMessage:t,fetchUrl:e,pageUrl:window.location.href})}))}return a.json()}catch(t){return S.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.c5r.DataFetchError),{message:"Failed to get data",pb:Object.assign(Object.assign({},c.c5r.DataFetchError.pb),{customMessage:`${e}. Error: ${t}`,stack:t.stack})})),o?t:null}}))),"fetchDocumentAsync").catch((i=>{throw t&&(this.cachedPromises[e]=void 0),i}));return t&&(this.cachedPromises[e]=a),a}fetchContentsFromOneServiceAsync(e,t,i){return(0,l.mG)(this,void 0,void 0,(function*(){const o={method:"GET",credentials:"include",headers:yield D.$.getOneServiceHeaders()},n=(yield(0,Vt.XJ)())===kt.Hy.SignedIn,a=n?D.$.getOneServiceParamsWithAuth(f.jG.UserId,i,!1):D.$.getOneServiceParamsWithoutAuth(f.jG.UserId,i,!1);n&&(o.credentials="include");const r=[...a,...e],s=(0,Dt.PH)(t);r.forEach((e=>e.value&&s.searchParams.set(e.key,e.value)));const d=yield(0,At.w)((()=>(0,l.mG)(this,void 0,void 0,(function*(){const e=s.href;try{const t=yield this.fetchImpl(e,o);if(!t.ok){const i=`"Failed to get data from ${e}. Status: ${t.statusText}`;return void S.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.c5r.DataFetchError),{message:"Failed to get data",pb:Object.assign(Object.assign({},c.c5r.DataFetchError.pb),{customMessage:i})}))}return t}catch(t){S.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.c5r.DataFetchError),{message:"Failed to get data",pb:Object.assign(Object.assign({},c.c5r.DataFetchError.pb),{customMessage:`${e}. Error: ${t}`})}))}}))),"fetchContentsFromOneServiceAsync");return d&&d.json()}))}viewsDataServiceHost(){return-1===window.location.origin.indexOf(".msn.com")?"https://int1.msn.com":window.location.origin}}var $t=i(9610),Ut=i(53046),Ft=i(40082);const jt=Ut.i`
.tsl-root {
    width:100%;
    height:100%;
}

.tsl-container {
    aspect-ratio: 100/56.25;
}

.tsl-non-embed-js .tls-container {
    aspect-ratio: initial;
}

.tsl-non-embed-js .tsl-media {
    min-width: 250px;
    margin: 0px auto;
    overflow: auto;
    box-shadow: none;
    width: 100%;
    border-radius: 5px;
}

.tsl-non-embed-js .tsl-media-container {
    padding-top: 56.25%;
    margin: 0px auto;
    position: relative;
    display: block;
    height: 0px;
    overflow: hidden auto;
}

.tsl-non-embed-js .tsl-media-embed {
    position: absolute;
    top: 0px;
    left: 0px;
    bottom: 0px;
    width: 100%;
    height: 100%;
    border: 0px;
    border-radius: 5px;
    margin-bottom: 0px;
}

`,Wt=Ut.i`
:host {
    display: block;
    height: 100%;
}

:host([hidden]) {
    display: none
}

.video-title {
    overflow: hidden;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.related-video-divider {
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.related-video-divider-bottom {
    border-bottom: 1px solid rgba(0, 0, 0, 0.09);
    padding-bottom: 20px;
}
.video-wrapper-aspect-ratio {
    aspect-ratio: 16/9;
}
.blue-marker-before:before {
    content: '';
    position: absolute;
    width: 48px;
    height: 4px;
    left: 0;
    right: 0;
    top: -10px;
    background: #0078D4;
}

.blue-marker-after:after {
    content: '';
    position: absolute;
    width: 48px;
    height: 4px;
    left: 0;
    right: 0;
    margin-top: 9px;
    background: #0078D4;
}

.video-clear-div {
    clear: both;
    display: block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.video-wrapper.is-in-iframe {
    height: 100vh;
}

.videocard1PP {
    position: relative;
    width: 100%;
    height: 100%;
}

.videocard1PP._1x_2y {
    width: 300px;
    height: 169px;
    position: relative;
    left: 0px;
}

.videocard1PP._1x_2y.vertical_gradient {
    height: 225px;
}

.videocard1PP._1x_2y.vertical_gradient.super_feed_card {
    height: 157px;
}

.videocard1PP._2x_2y {
    width: 468px;
    height: 304px;
    position: relative;
    left: 0px;
}
.videocard1PP._2x_2y.vertical_gradient {
    width: 612px;
    height: 344px;
    position: relative;
    left: 0px;
}

.videocardImagePlaceholderContainer {
    overflow: hidden;
    position: relative;
    opacity: 1;
    transition: opacity 1s ease-out;
    z-index: 0;
}

.videocard1PP.preview-video .videocardImagePlaceholderContainer {
    opacity: 0;
    z-index: 1;
    height: 100%;
}

.videocard1PP.preview-video content-video-player {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.video-play-button-container {
    display: block;
    height: 40px;
    left: 50%;
    opacity: 1;
    padding: 0;
    position: absolute;
    top: 124px;
    transform: translate(-50%, -50%);
    transition: all 0.4s ease 0s;
    width: 40px;
}

.video-play-button {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.videocard1PP .video-js.vjs-msn {
    position: absolute;
}

.videocard1PP .vjs-menu-item-text {
    font-size: .9em;
}

.videocard1PP .vjs-menu-content {
    max-height: 20em;
    width: 115%;
}

.videocard1PP .fw_vpaid_slot {
    top: 0;
}

.videocard1PP .vjs-text-track-settings {
    position: absolute !important;
}

.bingEmbed_root {
    position: relative;
    width: 100%;
    height: 100%;
}

.directEmbed_root {
    position: relative;
    width: 100%;
    height: 100%;
}

.directEmbed_root.fb {
    display: flex;
    justify-content: center;
}

.videocard3PP {
    position: relative;
    width: 100%;
    height: 100%;
}

.videocard3PP iframe {
    float: right;
    overflow: hidden;
}

::slotted([slot="js-embed"]) {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.videocard3PPNotice {
    font-size: var(--type-ramp-minus-1-font-size, 12px);
    line-height: var(--type-ramp-minus-1-line-height, 16px);
    height: 15px;
    padding: 0 .1rem;
    float: left;
}

.videocardRelatedVideo {
    box-sizing: content-box !important;
    margin-bottom: 32px;
    position: relative;
    aspect-ratio: 16/9;
}

.videocardRelatedVideo3PP {
    margin-bottom: 36px;
}

.videocard3PPNotice a, .videocard3PPNotice a:link {
    color: #004;
}

${jt}

`.withBehaviors((0,Ft.Uu)(Ut.i`
                .videocard3PPNotice {
                    color: var(--videocard3ppnotice-dark, #FFF);
                }
                .videocard3PPNotice a, .videocard3PPNotice a:link {
                    color: var(--videocard3ppnotice-link-dark, #AAF);
                }
                .related-video-divider {
                    border-bottom: 1px solid rgba(100, 100, 100, 1);
                }

                .related-video-divider-bottom {
                    border-bottom: 1px solid rgba(100, 100, 100, 1);
                }
            `)),zt="\n    body, html {\n        margin: 0;\n        padding: 0;\n    }\n";class Ht extends $t.l{constructor(){super(),this.videoPlayList=[],this.isVideoPlayListDefined=!1,this.vidId="",this.videoIds=[],this.previousMuteState=0,this.nextVideosOverlayFetchedData=[],this.singleVideoOnPage=!1,this.directEmbedMediaPaused=!1,this.extractedRelatedIds=[],this.directEmbedMediaMetadata={},this.nextVideosOverlayData={},this.id="",this.errorMessage="",this.videoCardState={},this.customStyleClass="",this.previewTypeStyleClass="",this.currentTime=0,this.buildThirdPartyPlayerContainerId=e=>`renderContainer${e}`,this.handleMessages=(e,t,i,o)=>(0,l.mG)(this,void 0,void 0,(function*(){var n,a,r,s,d,l,c,h,u,v,g,m,y;if(e)if(this.config.previewMode&&this.config.eventsCallback)i!==p.pt.Play&&i!==p.pt.Pause||this.config.eventsCallback(t,i,e,o);else{if(e.type===p.pt.Ended&&this.config.continuePlay)(null===(n=this.videoCardProps)||void 0===n?void 0:n.nextVideosOverlay)?(this.setNextOverlayData(p.pt.Ended),t.titleBar.hide()):this.tryFetchNextVideoFromPlayList();else if(e.type===p.pt.Pause&&(null===(a=this.videoCardProps)||void 0===a?void 0:a.nextVideosOverlay)){const e=t.currentTime(),i=t.duration(),o=t&&t.seeking();this.hasNextVideosOverlay||i-e<1||o||this.setNextOverlayData(p.pt.Pause)}else if(e.type===p.pt.Resume||e.type===p.pt.Play&&(null===(r=this.videoCardProps)||void 0===r?void 0:r.nextVideosOverlay))this.hasNextVideosOverlay=!1;else if(e.type===p.pt.Telemetry)this.handleTelemetry(e,t);else if(e.type===p.pt.TimeUpdate)t&&(this.currentTime=t.player.currentTime());else if(e.type===p.pt.Ready){const e=null===(s=this.videoCardState)||void 0===s?void 0:s.videoData;if(!(null==e?void 0:e.id))return;if(this.videoCardManager.getPlayer(e.id))return;const i=new Ct;i.init({isInlinePlayer:this.config.isInline||!1,player:t,playerHtmlElement:t.el(),provider:{id:null!==(l=null===(d=e.provider)||void 0===d?void 0:d.id)&&void 0!==l?l:"",brandName:null!==(v=null===(u=null===(h=null===(c=e.provider)||void 0===c?void 0:c.logo)||void 0===h?void 0:h.source)||void 0===u?void 0:u.toUpperCase())&&void 0!==v?v:"",comScoreTags:null===(g=e.provider)||void 0===g?void 0:g.comScoreStackedTags},videoId:e.id,videoDuration:null!==(y=null===(m=e.videoMetadata)||void 0===m?void 0:m.playTime)&&void 0!==y?y:0,color:this.getColorSampling(e.colorSamples)}),R.getInstance().registerPlayer(e.id,i),i.addEventListener(p.pt.ContentContinue,((e,t,i)=>{this.handleTelemetry({target:e.htmlEl},Object.assign({name:t},i))})),i.addEventListener([p.pt.AdError,p.pt.AdLoading,p.pt.AdPlayStarted,p.pt.AdResume,p.pt.AdPause,p.pt.AdPlayCompleted],((e,t,i)=>{this.handleTelemetry({target:e.htmlEl},Object.assign({name:t,data:{IsAd:!0}},i))}))}this.handleContentVideoPlayerMessage(e,t,i,o),!this.config.eventsCallback||t&&t.name===p.pt.EnableSubsCap||this.config.eventsCallback(t,i,e,o)}})),this.handleTelemetry=(e,t,i)=>{var o,n,a,r,s,d,l,c,h,u,v,g,m,y;if(!e||!t)return;if(this.config.disablePrerenderTelemetry&&(0,Ue.TR)()&&!(null===(o=this.videoCardProps)||void 0===o?void 0:o.directEmbedMedia))return;if(this.config.previewMode)return;if(t.name===p.pt.DisableSubsCap)return void(null===(a=(n=this.config).eventsCallback)||void 0===a||a.call(n,t.player,t.name,{}));const f=i||e.target.parentElement,b=this.parseVideoEventType(t.name),P=null!==(r=t.data)&&void 0!==r?r:{PlayerTechnology:"HTML5",VideoPlayerType:"HTML5"},E=!!P.IsAd&&P.IsAd,w={videoUrl:void 0,videoTitle:null===(s=this.videoCardState.videoData)||void 0===s?void 0:s.title,currentTime:void 0,clientHeight:void 0,clientWidth:void 0,videoDuration:void 0};if(f&&f.attributes&&void 0!==b&&this.previousMuteState!==b)if(b!==Re.Unmute&&b!==Re.Mute){if(E)return this.populatePlayingVideoTelemetryData(w,e),void this.sendFreewheelAdPlayTelemetry(t,e,b,w,f);if((null===(d=this.videoCardProps)||void 0===d?void 0:d.directEmbedMedia)||this.iframeMedia3ppVideoWithTelemetryEnabled){const{clientHeight:i,clientWidth:o,currentVideoPosition:n,content:a={}}=t;return w.videoUrl=this.directEmbedMediaMetadata.src,w.videoTitle=null!==(l=this.directEmbedMediaMetadata.title)&&void 0!==l?l:a.title,w.currentTime=null!==(h=null!==(c=this.directEmbedMediaMetadata.currentTime)&&void 0!==c?c:n)&&void 0!==h?h:a.videoPositionSec,w.clientHeight=null!==(v=null!==(u=this.directEmbedMediaMetadata.clientHeight)&&void 0!==u?u:i)&&void 0!==v?v:a.videoHeight,w.clientWidth=null!==(m=null!==(g=this.directEmbedMediaMetadata.clientWidth)&&void 0!==g?g:o)&&void 0!==m?m:a.videoWidth,w.videoDuration=null!==(y=this.directEmbedMediaMetadata.videoDuration)&&void 0!==y?y:a.videoDuration,void this.sendVideoplayTelemetry3ppVideo(t,e,b,w,f)}this.populatePlayingVideoTelemetryData(w,e),this.sendVideoplayTelemetryMsnVideo(t,e,b,w,f)}else this.previousMuteState=b},this.populatePlayingVideoTelemetryData=(e,t)=>{const i=t.target.querySelector("video"),o=Et.Z.getPlayer(i);return o&&(e.videoUrl=o.src(),e.currentTime=null==i?void 0:i.currentTime,e.clientHeight=null==i?void 0:i.clientHeight,e.clientWidth=null==i?void 0:i.clientWidth),e},this.sendFreewheelAdPlayTelemetry=(e,t,i,o,n)=>{var a,r,s,d,l,c;const h=n.attributes["data-t"]||{},u=(null!==(a=JSON.parse(h.value))&&void 0!==a?a:{}).n,p=this.generateVideoTelemetryContent(o),v=null!==(r=e.data)&&void 0!==r?r:{PlayerTechnology:"HTML5",VideoPlayerType:"HTML5"},g=t.target.querySelector("video"),m=Et.Z.getPlayer(g);let y,f;if(m&&(y=m.src(),f=Math.round(g.currentTime)),!this.videoCardState||!this.videoCardState.videoData)return;const b={type:61,name:u,content:p,ext:{videoId:this.videoCardState.videoData.id,videoCs:null===(s=this.videoCardState.videoData.provider)||void 0===s?void 0:s.id,eventType:i,timeElasped:f,pageGroup:null!==(c=null===(l=null===(d=this.videoCardProps)||void 0===d?void 0:d.adConfigProps)||void 0===l?void 0:l.siteSection)&&void 0!==c?c:"",playerType:v.PlayerTechnology,playDuration:f,inline:this.config.isInline,videoUrl:y}};se.u.setAttribute(n,b),He(void 0,n,{config:this.config,videoData:this.videoCardState.videoData},!0)},this.getVideoFormatCode=e=>{var t,i;const o=((null===(i=null===(t=this.videoCardState)||void 0===t?void 0:t.videoData)||void 0===i?void 0:i.videoMetadata)&&this.videoCardState.videoData.videoMetadata.externalVideoFiles||[]).find((t=>t.url==e));return o&&o.format||"1006"},this.sendVideoplayTelemetryMsnVideo=(e,t,i,o,n)=>{var a,r,s,d,l,c;const h=n.attributes["data-t"]||{},u=(null!==(a=JSON.parse(h.value))&&void 0!==a?a:{}).n,p=this.generateVideoTelemetryContent(o),v=null!==(r=e.data)&&void 0!==r?r:{PlayerTechnology:"HTML5",VideoPlayerType:"HTML5"},g=t.target.querySelector("video"),m=Et.Z.getPlayer(g);let y,f,b,P;if(m&&(y=m.src(),f=g.currentTime,b=g.clientHeight,P=g.clientWidth),!this.videoCardState||!this.videoCardState.videoData)return;const{id:E="",provider:w,title:x,videoMetadata:C}=this.videoCardState.videoData,S=null!==(s=null==C?void 0:C.playTime)&&void 0!==s?s:.01,I=Be(E,i,S);I&&Fe.getInstance().add(E);const A=Ae(this.config),D={type:61,name:u,content:p,ext:{videoId:E,videoCs:null==w?void 0:w.id,eventType:i,timeElasped:this.getWatchedTime(),videoFormatCode:parseInt(this.getVideoFormatCode(y||"")),title:x,videoDuration:S,fr:T.Al.Locale+"_"+(null!==(d=T.Al.ClientSettings.verticalKey)&&void 0!==d?d:"video"),pageGroup:"",playerInstanceId:t.target.id,playType:"pb",playerTech:"MSNPlayer",pluginVersion:v.PlayerTechnology,size:P+"x"+b,isContinuous:this.config.continuePlay,playerType:v.PlayerTechnology,playDuration:f,inline:this.config.isInline,videoUrl:y,videoPlayerType:A},metrics:{isContentCI:I}};if(i===Re.CC)return e.player.sendCCVideoPlayEvent=()=>{se.u.setAttribute(n,D),He(void 0,n,{config:this.config,videoData:this.videoCardState.videoData},!1)},void(null===(c=(l=this.config).eventsCallback)||void 0===c||c.call(l,e.player,e.name,{}));se.u.setAttribute(n,D),He(void 0,n,{config:this.config,videoData:this.videoCardState.videoData},!1)},this.sendVideoplayTelemetry3ppVideo=(e,t,i,o,n)=>{var a,r,s,d,l,c,h,u,p,v,g,m,y,f,b,P,E,w,x,C,S,I,A;const D=n.attributes["data-t"]||{},k=(null!==(a=JSON.parse(D.value))&&void 0!==a?a:{}).n,O=e.playerTech;let V,L,_,M,N,R,$,U,F=this.videoCardState.videoData;if(null===(r=this.videoCardProps)||void 0===r?void 0:r.directEmbedMedia){V=this.directEmbedMediaMetadata.src,L=this.directEmbedMediaMetadata.title,_=this.directEmbedMediaMetadata.currentTime,M=this.directEmbedMediaMetadata.clientHeight,N=this.directEmbedMediaMetadata.clientWidth,R=this.directEmbedMediaMetadata.videoDuration,U=null!==(d=null===(s=this.videoCardProps.directEmbedMedia)||void 0===s?void 0:s.rid)&&void 0!==d?d:null===(l=this.videoCardProps.directEmbedMedia)||void 0===l?void 0:l.id;const e=this.videoCardProps.directEmbedMedia,t=e.metadata;if(t&&t.category&&t.vertical&&!F){const i=e.provider||"",o=this.videoCardProps.card3ppConfig;F={id:this.id,sourceId:U,title:L,provider:o?{id:i,name:o.name}:void 0,categories:[{product:t.vertical,label:t.category}]}}}else if((null===(c=this.videoCardProps)||void 0===c?void 0:c.card3ppConfig)&&this.videoCardProps.card3ppConfig.js&&this.iframeMedia3ppVideoWithTelemetryEnabled&&this.videoCardProps.videoData)V=null===(h=this.videoCardProps.videoData.seo)||void 0===h?void 0:h.canonicalUrl,L=this.videoCardProps.videoData.title,_=o.currentTime,R=null===(u=this.videoCardProps.videoData.videoMetadata)||void 0===u?void 0:u.playTime,U=this.videoCardProps.videoData.id,$=null===(v=null===(p=this.videoCardState.videoData)||void 0===p?void 0:p.provider)||void 0===v?void 0:v.id,M=o.clientHeight,N=o.clientWidth;else if((null===(g=this.videoCardProps)||void 0===g?void 0:g.card3ppConfig)&&"iframe"===this.videoCardProps.card3ppConfig.type&&this.iframeMedia3ppVideoWithTelemetryEnabled){const{title:e=o.videoTitle,currentTime:t=o.currentTime,height:i=o.clientHeight,width:n=o.clientWidth}=null!==(y=null===(m=this.context)||void 0===m?void 0:m.directEmbedMediaPlayerProps)&&void 0!==y?y:{},{provider:a,id:r,videoMetadata:s,seo:d}=null!==(b=null===(f=this.videoCardState)||void 0===f?void 0:f.videoData)&&void 0!==b?b:{};V=null!==(P=null==d?void 0:d.canonicalUrl)&&void 0!==P?P:o.videoUrl,L=e,_=t,R=null!==(E=null==s?void 0:s.playTime)&&void 0!==E?E:o.videoDuration,U=null!==(I=null!==(C=null===(x=null===(w=this.context)||void 0===w?void 0:w.directEmbedMediaPlayerProps)||void 0===x?void 0:x.rid)&&void 0!==C?C:null===(S=this.videoCardProps.directEmbedMedia)||void 0===S?void 0:S.id)&&void 0!==I?I:r,$=null==a?void 0:a.id,M=i,N=n}null!=U||(U="");const j=Be(U,i,R);j&&Fe.getInstance().add(U);const W=Ae(this.config),z={type:61,name:k,content:this.generateVideoTelemetryContent(o,F),ext:{videoId:U,videoCs:$,eventType:i,timeElasped:this.getWatchedTime(),videoFormatCode:1006,title:L,videoDuration:R,fr:T.Al.Locale+"_"+(null!==(A=T.Al.ClientSettings.verticalKey)&&void 0!==A?A:"video"),pageGroup:"",playerInstanceId:t.target.id,playType:"pb",playerTech:O,size:N+"x"+M,isContinuous:this.config.continuePlay,playDuration:_,inline:this.config.isInline,videoUrl:V,videoPlayerType:W},metrics:{isContentCI:j}};se.u.setAttribute(n,z),He(void 0,n,{config:this.config,videoData:F},!1)},this.generateVideoTelemetryContent=({videoTitle:e,clientHeight:t},i)=>{var o,n,a;const{videoData:r={}}=this.videoCardState||{},{categories:s=[],provider:d={}}=i||r||{},{directEmbedMedia:l}=this.videoCardProps||{};return{headline:e,docHeight:t,type:61,id:l?l.rid:this.videoId,isLocal:null===(o=this.context)||void 0===o?void 0:o.isLocal,category:null===(n=s[0])||void 0===n?void 0:n.label,vertical:null===(a=s[0])||void 0===a?void 0:a.product,brand:d.name,brandId:d.id}},this.getWatchedTime=()=>{const e=this.videoCardManager.getPlayer(this.videoId);return e?Math.round(e.watchedTimeSec):0},this.parseVideoEventType=e=>{const t={EventPause:"Pause",ContentResume:"Resume",ContentOpen:"-",Content25Percent:"-",Content50Percent:"-",Content75Percent:"-",seeked:"Seek",[p.pt.Play]:"ContentStart",[p.pt.Pause]:"Pause",[p.pt.Resume]:"Resume",[p.pt.Ended]:"ContentComplete",[p.pt.EnableSubsCap]:"CC",[p.pt.ContentContinue]:"ContentContinue",[p.pt.Ready]:"-"};return t[e]&&(e=t[e]),Re[e]},this.onPauseOverlayClicked=()=>{const e=this.videoIds[this.videoIds.length-1],t=this.videoCardManager.getPlayer(e);this.hasNextVideosOverlay=!1,null==t||t.play()},this.eventsCallbackFromUpNextVideoCard=e=>(0,l.mG)(this,void 0,void 0,(function*(){void 0!==typeof e&&(this.nextVideosOverlayFetchedData=[],this.hasNextVideosOverlay=!1,this.videoPlayList.shift(),yield this.fetchVideoDocument(e,!0),this.config.addRelatedPlayList&&this.setVideoTitlePrefix(e),this.videoCardProps&&(this.videoCardProps.onMessage=this.handleMessages))})),this.handleNextVideoFromPlaylist=(e,{id:t,logo:i,comScoreStackedTags:o})=>{var n,a,r;const s=this.videoIds[this.videoIds.length-1],d=this.videoCardManager.getPlayer(s);if(!d)return;if("VideoJs"===d.type&&!(null===(n=this.videoCardProps)||void 0===n?void 0:n.card3ppConfig)){const n={id:null!=t?t:"",brandName:null!==(r=null===(a=null==i?void 0:i.source)||void 0===a?void 0:a.toUpperCase())&&void 0!==r?r:"",comScoreTags:o};this.videoCardManager.updatePlayerId(s,e),d.setVideo(e,n)}else this.videoCardManager.deregisterPlayer(s)},this.buildVideoId=(e,t,i)=>{var o;return`${null!==(o=null!=e?e:t)&&void 0!==o?o:"N/A"}${i?" (playlist) ":""}`},this.isVideoDataValid=(e,t,i)=>e?Array.isArray(e)?(this.reportContentFetchError(c.Qfw,`Video ID [${this.buildVideoId(void 0,t,i)}] was taken down.`),!1):!(!this.isFetchedContentValid(e,t,i)&&!this.isFetchedContentDetails3PPValid(e))||(this.reportContentFetchError(c.jdc,`Video ID [${this.buildVideoId(e.id,t,i)}] has invalid 3pp content.`),!1):(this.reportContentFetchError(c.NWA,`Video ID [${this.buildVideoId(void 0,t,i)}] is null.`),!1),this.eventsCallbackFn3ppJs=(e,t,i={})=>{var o;const n=this.triggerCallback(this.handleTelemetry),a={target:this.demPlayerRef},r=this.config.continuePlay,{videoTime:s,currentVideoPosition:d,content:l}=i;this.currentTime=null!==(o=null!=s?s:d)&&void 0!==o?o:null==l?void 0:l.videoPositionSec,t===p.pt.Ended&&r&&this.tryFetchNextVideoFromPlayList(),n(a,e,Object.assign({name:t},i))},this.triggerCallback=e=>(t,i,o,n)=>{if(this.config.eventsCallback&&this.config.eventsCallback(i,o.name,t),e){if(o.name===p.pt.Play&&this.directEmbedMediaPaused){const i={name:p.pt.Resume};return void e(t,i,n)}e(t,o,n)}},this.setUpThirdPartyPlayers=(e,t,i)=>(0,l.mG)(this,void 0,void 0,(function*(){var o,n;const{isAutoPlayEnabledForWebContent:a,autoReplay:r,enableCC:s,isInline:d}=this.config,{videoData:l}=this.videoCardProps||{},{sourceId:c,title:h="",provider:u,videoMetadata:p,id:v="",colorSamples:g}=l||{};if(Boolean(R.getInstance().getPlayer(v)))return;const m={videoId:v,container:null!==(o=document.getElementById(this.buildThirdPartyPlayerContainerId(this.id)))&&void 0!==o?o:this.iframe3ppRef,sourceId:c,providerId:(null==u?void 0:u.id)||"",title:h,videoDuration:null!==(n=null==p?void 0:p.playTime)&&void 0!==n?n:0,isAutoplay:Boolean(a),isAutoReplay:r||!1,isClosedCaptionsEnabled:s||!1,isWebContent:!1,recoId:void 0,isInline:Boolean(d),color:this.getColorSampling(g),feedId:null==l?void 0:l.feedId,playerSettingsId:i};if(t&&t.src){const{src:e,async:i=!0,propBag:o={},externalLibs:n=[]}=t;m.js={src:e,async:i,propBag:o,externalLibs:n}}const y=yield re.createAndRegister(e,m);y&&this.setUp3ppTelemetry(y)})),this.loadDirectEmbedMediaPlayer=e=>(0,l.mG)(this,void 0,void 0,(function*(){var t;const{id:i="",type:o,title:n="",rid:a=""}=e,r=null!==(t=this.config.isAutoPlayEnabledForWebContent)&&void 0!==t&&t;switch(o){case"youtube":return this.initYouTubePlayer(i,r,a);case"facebook":return this.initFbPlayer(i,n,r,a);case"talkshoplive":return this.initTalkshoplivePlayer(i,n,r)}})),this.initTalkshoplivePlayer=(e,t,i)=>(0,l.mG)(this,void 0,void 0,(function*(){const o=new Pt;yield o.loadEmbedPlayer(),o.init({videoId:e,isAutoplay:i,title:t,container:this.demPlayerRef}),this.videoCardManager.registerPlayer(this.videoId,o),this.setUpWebContentTelemetry(o)})),this.initYouTubePlayer=(e,t,i)=>(0,l.mG)(this,void 0,void 0,(function*(){const o=new U;yield o.loadEmbedPlayer();const{autoReplay:n,enableCC:a}=this.config;o.init({container:this.demPlayerRef,videoId:e,isAutoplay:t,isClosedCaptionsEnabled:a||!1,isWebContent:!0,recoId:i,isAutoReplay:n||!1}),this.videoCardManager.registerPlayer(this.id,o),this.setUpWebContentTelemetry(o)})),this.initFbPlayer=(e,t,i,o)=>(0,l.mG)(this,void 0,void 0,(function*(){const n=new F;yield n.loadEmbedPlayer(),n.init({videoId:e,title:t,isAutoplay:i,recoId:o}),this.videoCardManager.registerPlayer(this.id,n),this.setUpWebContentTelemetry(n)})),this.updateDirectEmbedMediaMetadata=({content:e})=>{const{title:t,videoDuration:i,videoPositionSec:o,src:n,videoWidth:a,videoHeight:r}=e;this.directEmbedMediaMetadata={src:n,title:t,clientWidth:a,clientHeight:r,currentTime:o,videoDuration:i}},this.viewsServiceClient=Rt.getInstance(),this.videoCardManager=R.getInstance()}experienceConnected(){var e,t,i,o,n,a;return(0,l.mG)(this,void 0,void 0,(function*(){if(this.buildTelemetryContext(this.telemetryObject),this.config.previewMode)if((0,Ue.TR)())(0,Ue.lr)().then((()=>{if(this.config.enableVideoPool){Xe.getInstance().determineWhichVideoToActive()}}));else if(this.config.enableVideoPool){Xe.getInstance().determineWhichVideoToActive()}if(this.context&&(this.config=Object.assign(Object.assign(Object.assign({},this.config),this.context),{stopPlayOnError:this.config.stopPlayOnError&&this.context.isContentBingmm}),this.cardData=(null===(e=this.context)||void 0===e?void 0:e.cardData)||{}),void 0!==typeof this.singleVideoOnPage&&(a=this.config).miniPlayer&&(a.miniPlayer=this.singleVideoOnPage),this.config.getPrivacyLinks&&this.getThirdPartyLinks(),this.config.relatedIds&&(this.extractedRelatedIds=this.config.relatedIds),this.config.isAdTimeBasedCapEnabled&&!this.config.disableFwAds){const e=Boolean(this.config.shouldScheduleAdWhenCreated),i=Number(this.config.adTimeBasedCapSec)||90,o=Ne(null===(t=this.config.freewheelAdSettings)||void 0===t?void 0:t.pgcode);this.videoCardManager.enableTimeBasedAdCap(i,o,e)}this.config.isInIframe&&(this.id=le.c.getQueryParameterByName("id",location.href)||"",this.applyGlobalStyles(),this.videoCardManager.enableBingIframeCommunicator()),this.isDirectEmbedOrBing()?this.updateVideoCardProps():(this.vidId=this.id,this.isContentBingmm=null===(i=this.context)||void 0===i?void 0:i.isContentBingmm,this.videoCardState.isContentBingmm=null===(o=this.context)||void 0===o?void 0:o.isContentBingmm,this.customStyleClass=null===(n=this.context)||void 0===n?void 0:n.customStyleClass,this.shouldRenderLoadingState||(this.vidId||(this.fetchVideoPlaylistFromFeed(),this.vidId=this.getNextContentId()),yield this.loadThirdPartyPlayersAndFetch(),(0,h.v9)(this.vidId)))}))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterPoolVideo(),this.videoCardManager.disableBingIframeCommunicator(),this.deregisterPlayer()}shadowDomPopulated(){var e,t;return(0,l.mG)(this,void 0,void 0,(function*(){this.shouldRenderLoadingState&&(this.vidId||(this.fetchVideoPlaylistFromFeed(),this.vidId=this.getNextContentId()),yield this.loadThirdPartyPlayersAndFetch(),(0,h.v9)(this.vidId)),(null===(e=this.videoCardProps)||void 0===e?void 0:e.directEmbedMedia)&&(yield this.loadDirectEmbedMediaPlayer(null===(t=this.videoCardProps)||void 0===t?void 0:t.directEmbedMedia))}))}buildTelemetryContext(e){var t;e?(e.contract.ext=this.createVideoTelemetryExtContractDataWebContent(null===(t=this.context)||void 0===t?void 0:t.directEmbedMediaPlayerProps),this.videoTelemetryContext={parentTelemetry:e,parentTelemetryTags:e.render(),thirdPartyPlayerTelemetryTags:new de.D({name:"VideoCard3PP",type:j.c9.VideoPlayer}).render()}):this.videoTelemetryContext={}}loadThirdPartyPlayersAndFetch(){return(0,l.mG)(this,void 0,void 0,(function*(){yield this.fetchVideoDocument(this.vidId),this.videoCardProps&&(this.config.addRelatedPlayList&&this.setVideoTitlePrefix(this.vidId,!0),this.videoCardProps.onMessage=this.handleMessages)}))}createVideoTelemetryExtContractDataWebContent(e){if(!e)return{};const{rid:t,width:i=0,height:o=0,title:n}=e;return{videoCs:t,videoFormatCode:1006,title:n,videoDuration:0,pageGroup:"",playerInstanceId:"",playType:"pb",playerTech:"HTML5",pluginVersion:"HTML5",size:`${i}x${o}`,videoPlayerType:"mp4:progressive",playerType:"HTML5",videoUrl:this.id}}getExperienceType(){return s.x.videoCardWC}isDirectEmbedOrBing(){if(this.id.startsWith("https://")){let e=this.id.match(/(?:[?&]v=|\/embed\/|\/1\/|\/v\/|https:\/\/(?:www\.)?youtu\.be\/)([^&\n?#]+)/);if(e){const t={type:"youtube",id:e[1],eventsCallback:this.config.eventsCallback};return this.videoCardState.directEmbedMedia=t,!0}if(e=this.id.match(/^http(?:s?):\/\/(?:www\.|web\.|m\.)?facebook\.com\/([A-z0-9.]+)\/videos(?:\/[0-9A-z].+)?\/(\d+)(?:.+)?$/),e){const t={type:"facebook",id:e[2],eventsCallback:this.config.eventsCallback};return this.videoCardState.directEmbedMedia=t,!0}}else if(this.id.includes("talkshoplive")){const e=this.id.match(/talkshoplive\/([^&\n?#]+)/);if(e){const t={type:"talkshoplive",id:e[1],eventsCallback:this.config.eventsCallback};return this.videoCardState.directEmbedMedia=t,!0}}return this.id.length>=40&&(this.videoCardState.bingMediaUniqueId=this.id,!0)}updateVideoCardProps(){this.videoCardProps=Ee(this.videoCardState,this.config)}getThirdPartyLinks(){var e,t,i;const o=null===(e=this.config.thirdPartyPlayersConfig)||void 0===e?void 0:e.players;null===(i=null===(t=this.config)||void 0===t?void 0:t.getPrivacyLinks)||void 0===i||i.call(t,o)}getColorSampling(e){return this.config.colorSampling?function(e,t){var i,o;return t&&t.length?e?null===(i=t.find((e=>e.isDarkMode)))||void 0===i?void 0:i.hexColor:null===(o=t.find((e=>!e.isDarkMode)))||void 0===o?void 0:o.hexColor:null}((0,$e.oR)(),e):""}handleContentVideoPlayerMessage(e,t,i,o){const{card3ppConfig:n,bingMediaUniqueId:a,directEmbedMedia:r}=this.videoCardProps||{},{switchCardTypeWhenPreviewEnded:s,singleActivePlayer:d,previewEndCallback:l=(()=>{})}=this.config;n||a||r||d&&(i===p.pt.Play?s&&(this.previewTypeStyleClass="preview-video",l(!1)):i===p.pt.PreviewEnded&&(this.previewTypeStyleClass="",l(!0)))}setPlaceholderVisibility(e){this.previewTypeStyleClass=e?"":"preview-video"}get videoId(){const{videoData:e,directEmbedMedia:t}=this.videoCardProps||{};return t?this.id:(null==e?void 0:e.id)||""}isFetchedContentValid(e,t,i){var o;return e.title?((null===(o=e.thumbnail)||void 0===o?void 0:o.image)||this.reportContentFetchError(c.kcp,`Video ID [${this.buildVideoId(null==e?void 0:e.id,t,i)}] has an empty headline image but the content is valid.`),this.hasValidVideoFilesInSource(e,t,i)):(this.reportContentFetchError(c.bbx,`Video ID [${this.buildVideoId(null==e?void 0:e.id,t,i)}] has an empty headline.`),!1)}hasValidVideoFilesInSource(e,t,i){if(e&&e.videoMetadata&&e.videoMetadata.externalVideoFiles.length>0){return!e.videoMetadata.externalVideoFiles.find((e=>!e.url&&!e.format))||(this.reportContentFetchError(c.jdc,`Video ID [${this.buildVideoId(e.id,t,i)}] has an invalid 1pp video file.`),!1)}return!1}setNextOverlayData(e){const t=this.nextVideosOverlayFetchedData.map((e=>{const{id:t,title:i,mediaSrc:o,videoMetadata:{playTime:n},provider:{name:a,logo:r}}=e;return{title:i,mediaSrc:Ie(e),durationTime:Te(n),providerName:a,providerLogo:null==r?void 0:r.url,id:t}}));let i=!1,o=!1;if(e===p.pt.Pause&&(o=t.length>=2,!o))return;if(e===p.pt.Ended&&(i=3===t.length,!i))return this.nextVideosOverlayFetchedData=[],void this.tryFetchNextVideoFromPlayList();const n=(a="(max-width: 1266px)",window.matchMedia(a).matches);var a;if(n&&!i)return void(this.hasNextVideosOverlay=!1);const r=this.videoCardProps&&this.videoCardProps.localizedStrings,s={upNextVideoSec:this.config.upNextSec,relatedVideoLocalizedText:r&&r.moreVideos?r.moreVideos:"More videos",nextVideosOverlayData:i?t:t.slice(0,2),upNextCardLocalizedText:r&&r.upNextIn?r.upNextIn:"Up next in",showUpNextCard:i,nextVideosOverlayNoTimer:this.config.nextVideosOverlayNoTimer,showPauseSlate:n,onPauseOverlayClicked:this.onPauseOverlayClicked,onUpNextVideoTimerDone:this.eventsCallbackFromUpNextVideoCard};this.hasNextVideosOverlay=!0,this.nextVideosOverlayData=s}fetchEndSlateData(){return(0,l.mG)(this,void 0,void 0,(function*(){this.isVideoPlayListDefined||(yield this.fetchVideoPlaylistFromFeed());const e=this.videoPlayList.slice();for(;this.nextVideosOverlayFetchedData.length<3&&e.length>0;){const t=e.shift(),i=yield this.viewsServiceClient.fetchVideoDataDetailAsync(t);this.isVideoDataValid(i,t,!0)&&this.nextVideosOverlayFetchedData.push(i)}}))}fetchVideoDocument(e,t=!1){var i;return(0,l.mG)(this,void 0,void 0,(function*(){if(!e)return;const o=yield this.viewsServiceClient.fetchVideoDataDetailAsync(e);if(this.videoCardState.videoData=o,!this.isVideoDataValid(o,e,t)){if(this.config.continuePlay&&!this.config.stopPlayOnError)return this.tryFetchNextVideoFromPlayList();if(this.errorMessage=this.strings.loadedError||"We're sorry, this video is not available.",this.onError){const e={errorMessage:this.errorMessageText||this.errorMessage,hasError:!0};this.onError(e)}return}this.updateVideoCardProps(),t&&this.handleNextVideoFromPlaylist(o.id||"",null!==(i=o.provider)&&void 0!==i?i:{}),this.videoIds.push(this.videoId);const{card3ppConfig:n}=this.videoCardProps||{};if(this.videoCardProps&&this.videoCardProps.nextVideosOverlay&&!n&&(yield this.fetchEndSlateData()),n){const{name:e,js:t,playerSettingsId:i}=n;v.SO.queueUpdate((()=>(0,l.mG)(this,void 0,void 0,(function*(){yield this.setUpThirdPartyPlayers(e,t,i)}))))}}))}isFetchedContentDetails3PPValid(e){const{thirdPartyVideoPlayer:t,provider:i={},feedId:o=""}=e||{},{enabled:n,name:a=""}=t||{},r=i.id||"";if(n&&Se(a))return!0;const s=xe(this.config.thirdPartyPlayersConfig,r),d=Ce(this.config.thirdPartyPlayersConfig,a),{name:l=""}=s||{};return a?(s&&l.toLowerCase()!==a.toLowerCase()&&(0,u.OO)(null,c.IVj,`Wrong provider config for ${r}. Expected: ${a}. Actual: ${s.name}`,`FeedID: ${o}`),n||(0,u.OO)(null,c.qh1,`Provider ${r} has thirdPartyPlayer disabled`,`FeedID: ${o}`)):(0,u.OO)(null,c.NFA,`Provider ${r} with content ${e.id} is missing thirdPartyPlayer prop`,`FeedID: ${o}`),s?(e.thirdPartyVideoPlayer={enabled:!0,name:s.name},!0):d?(e.thirdPartyVideoPlayer={enabled:!0,name:d.name},!0):((0,u.OO)(null,c.XDD,`Missing provider config for ${r} and also missing thirdPartyPlayer config`,`FeedID: ${o}`),!1)}reportContentFetchError(e,t){S.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:"Data returned by content view does not contain expected video data.",pb:Object.assign(Object.assign({},e.pb),{customMessage:t})}))}fetchVideoPlaylistFromFeed(e,t){return(0,l.mG)(this,void 0,void 0,(function*(){this.config.addRelatedPlayList&&this.config.noPartnerEmbedPlayList&&this.config.isPartnerEmbed||this.config.addRelatedPlayList&&this.config.noPlayList?this.isVideoPlayListDefined=!0:(e||(e="Video"),t||(t="views-cpp-videoplay"),this.config.addRelatedPlayList&&!this.config.replaceVideoPlaylist&&this.config.isContentBingmm&&(this.videoPlayList=[...this.extractedRelatedIds]),this.config.addRelatedPlayList&&this.config.noWatchFeed?this.isVideoPlayListDefined=!0:(yield this.viewsServiceClient.fetchVideoFeedAsync(e,t).then((t=>{var i;t?null===(i=t.value)||void 0===i||i.map((e=>{var t;null===(t=e.subCards)||void 0===t||t.map((e=>{e.sourceId&&this.videoPlayList.push(e.sourceId)}))})):S.M0.sendAppErrorEvent(Object.assign(Object.assign({},c.NWA),{message:"Video list from oneservice returned empty with provided interest name.",pb:Object.assign(Object.assign({},c.NWA.pb),{customMessage:e})}))})),this.videoPlayList.length&&(this.isVideoPlayListDefined=!0)))}))}setVideoTitlePrefix(e,t=!1){var i,o,n;this.videoCardProps&&(this.extractedRelatedIds.includes(e)||t?this.videoTitlePrefix=null===(i=this.videoCardProps.localizedStrings)||void 0===i?void 0:i.relatedVideo:this.videoTitlePrefix=null===(o=this.videoCardProps.localizedStrings)||void 0===o?void 0:o.recommendedVideo,!this.config.enableLargeTitle&&this.videoTitlePrefix&&":"!==this.videoTitlePrefix[(null===(n=this.videoTitlePrefix)||void 0===n?void 0:n.length)-1]&&(this.videoTitlePrefix+=":"))}tryFetchNextVideoFromPlayList(){return(0,l.mG)(this,void 0,void 0,(function*(){this.isVideoPlayListDefined||(yield this.fetchVideoPlaylistFromFeed());const e=this.getNextContentId();this.config.addRelatedPlayList&&this.setVideoTitlePrefix(e),yield this.fetchVideoDocument(e,!0),this.videoCardProps&&(this.videoCardProps.onMessage=this.handleMessages)}))}getNextContentId(){return this.videoPlayList.length&&this.videoPlayList.shift()||""}setUpWebContentTelemetry(e){const t=this.triggerCallback(this.handleTelemetry),i=[p.pt.Ready,p.pt.Play,p.pt.VolumeChange,p.pt.Resume,p.pt.Pause,p.pt.Ended],{htmlEl:o}=e,n="Web_"+e.type,a="YouTube"===e.type?null==o?void 0:o.parentElement:this.demPlayerRef,r="YouTube"===e.type?o:e;e.addEventListener(i,((e,i,o)=>{this.updateDirectEmbedMediaMetadata(o),t({target:r},e.instance,Object.assign({name:i},o),a)})),e.addEventListener(p.pt.ContentContinue,((e,t,i)=>{this.updateDirectEmbedMediaMetadata(i),this.handleTelemetry({target:r},Object.assign(Object.assign({name:t},i),{playerTech:n}),a)}))}setUp3ppTelemetry(e){const t=[p.pt.Ready,p.pt.Play,p.pt.VolumeChange,p.pt.Resume,p.pt.Pause,p.pt.Ended],i="3PP_"+e.type;e.addEventListener(t,((e,t,o)=>this.eventsCallbackFn3ppJs(e.instance,t,Object.assign(Object.assign({},o),{playerTech:i})))),e.addEventListener(p.pt.ContentContinue,((e,t,o)=>this.handleTelemetry({target:this.demPlayerRef},Object.assign(Object.assign({name:t},o),{playerTech:i}))))}deregisterPlayer(){this.videoCardManager.deregisterPlayer(this.videoId)}get iframeMedia3ppVideoWithTelemetryEnabled(){var e;return Boolean(null===(e=this.videoCardProps)||void 0===e?void 0:e.card3ppConfig)}registerPoolVideo(){Xe.getInstance().addPlayer(this)}unregisterPoolVideo(){Xe.getInstance().removePlayer(this)}applyGlobalStyles(){const e=document.createElement("style");e.innerHTML=zt,document.head.appendChild(e)}getBlueMarkerClassNames(e){if(!this.isContentBingmm)return"";const t="top"===e?"blue-marker-before":"blue-marker-after",i="top"===e?"related-video-divider":"related-video-divider-bottom";return this.config.enableLargeTitle?i:t}}(0,l.gn)([g.LO],Ht.prototype,"directEmbedMediaMetadata",void 0),(0,l.gn)([g.LO],Ht.prototype,"nextVideosOverlayData",void 0),(0,l.gn)([m.Lj],Ht.prototype,"videoTitlePrefix",void 0),(0,l.gn)([m.Lj],Ht.prototype,"id",void 0),(0,l.gn)([m.Lj],Ht.prototype,"errorMessageText",void 0),(0,l.gn)([m.Lj],Ht.prototype,"onError",void 0),(0,l.gn)([g.LO],Ht.prototype,"errorMessage",void 0),(0,l.gn)([g.LO],Ht.prototype,"videoTelemetryContext",void 0),(0,l.gn)([g.LO],Ht.prototype,"videoCardProps",void 0),(0,l.gn)([g.LO],Ht.prototype,"videoCardState",void 0),(0,l.gn)([g.LO],Ht.prototype,"customStyleClass",void 0),(0,l.gn)([g.LO],Ht.prototype,"previewTypeStyleClass",void 0),(0,l.gn)([g.LO],Ht.prototype,"videoCardPlaceholderDom",void 0),(0,l.gn)([g.LO],Ht.prototype,"cardData",void 0),(0,l.gn)([g.LO],Ht.prototype,"isContentBingmm",void 0),(0,l.gn)([g.LO],Ht.prototype,"upNextData",void 0),(0,l.gn)([g.LO],Ht.prototype,"hasNextVideosOverlay",void 0),(0,l.gn)([g.LO],Ht.prototype,"shouldAddExtraStylingForRelatedVideos",void 0),(0,l.gn)([(0,m.Lj)({mode:"boolean"})],Ht.prototype,"shouldRenderLoadingState",void 0);var Bt=i(89346);class Gt extends Bt.H{connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}}(0,l.gn)([m.Lj],Gt.prototype,"templateType",void 0);const Kt=lt.d`
<div class="flex-row" style="gap: 12px; align-items: center">
    <div class="skeleton" style="width: 32px; height: 32px; border-radius: 12px"></div>
    <div class="skeleton" style="width: 108px; height: 14px"></div>
</div>
<div class="flex-col" style="gap: 12px; margin-top: 16px">
    <div class="skeleton" style="width: 100%; height: 24px"></div>
    <div class="skeleton" style="width: 50%; height: 24px"></div>
</div>
<div class="flex-row" style="gap: 12px; margin-top: 20px; align-items: center">
    <div class="skeleton" style="width: 156px; height: 16px"></div>
    <div class="skeleton" style="width: 1px; height: 16px"></div>
    <div class="skeleton" style="width: 72px; height: 16px"></div>
    <div class="skeleton" style="width: 72px; height: 16px"></div>
</div>
`,Jt=lt.d`
<div class="flex-row" style="justify-content: space-between">
    <div class="content-section">
        <div class="flex-col" style="gap: 12px">
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 50%; height: 16px"></div>
        </div>
        <div class="skeleton" style="width: 100%; height: 448px; margin: 32px 0; border-radius: 6px"></div>
        <div class="flex-col" style="gap: 12px; margin-bottom: 32px">
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 93%; height: 16px"></div>
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 93%; height: 16px"></div>
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 50%; height: 16px"></div>
        </div>
        <div class="flex-col" style="gap: 12px; margin-bottom: 32px">
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 93%; height: 16px"></div>
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 93%; height: 16px"></div>
            <div class="skeleton" style="width: 100%; height: 16px"></div>
            <div class="skeleton" style="width: 50%; height: 16px"></div>
        </div>
    </div>
    <div class="mrr-section">
        <div class="flex-col" style="gap: 12px">
            <div class="skeleton" style="width: 300px; height: 250px; border-radius: 6px"></div>
            <div class="skeleton" style="width: 300px; height: 250px; border-radius: 6px"></div>
            <div class="skeleton" style="width: 300px; height: 250px; border-radius: 6px"></div>
        </div>
    </div>
</div>
`,qt=lt.d`
<div class="content-container flex-col">
    <div class="content-wrapper" style="overflow: initial">
        ${Kt}
        <div class="skeleton" style="width: 100%; height: 1px; margin: 32px 0"></div>
        ${Jt}
    </div>
</div>
`,Yt=lt.d`
<div class="flex-row" style="gap: 12px; align-items: center">
    <div class="skeleton" style="width: 32px; height: 32px; border-radius: 12px"></div>
    <div class="skeleton" style="width: 108px; height: 14px"></div>
</div>
<div class="flex-col" style="gap: 12px; margin-top: 16px">
    <div class="skeleton" style="width: 100%; height: 24px"></div>
    <div class="skeleton" style="width: 50%; height: 24px"></div>
</div>
<div class="flex-row" style="gap: 12px; margin-top: 20px; align-items: center">
    <div class="skeleton" style="width: 156px; height: 16px"></div>
    <div class="skeleton" style="width: 1px; height: 16px"></div>
    <div class="skeleton" style="width: 72px; height: 16px"></div>
    <div class="skeleton" style="width: 72px; height: 16px"></div>
</div>
`,Zt=lt.d`
<div class="flex-row" style="justify-content: space-between">
    <div class="content-section">
        <div class="flex-col" style="gap: 32px">
            <div class="skeleton" style="width: 100%; height: 72px; border-radius: 6px"></div>
            <div class="skeleton" style="width: 100%; height: 448px; border-radius: 6px"></div>
            <div class="skeleton" style="width: 100%; height: 720px; border-radius: 6px"></div>
        </div>
    </div>
    <div class="mrr-section">
        <div class="flex-col" style="gap: 12px">
            <div class="skeleton" style="width: 300px; height: 250px; border-radius: 6px"></div>
            <div class="skeleton" style="width: 300px; height: 250px; border-radius: 6px"></div>
            <div class="skeleton" style="width: 300px; height: 250px; border-radius: 6px"></div>
        </div>
    </div>
</div>
`,Xt=lt.d`
<div class="content-container flex-col">
    <div class="content-wrapper" style="overflow: initial">
        ${Yt}
        <div class="skeleton" style="width: 100%; height: 1px; margin: 32px 0"></div>
        ${Zt}
    </div>
</div>
`,Qt=lt.d`
    <div class="card-container">
        <div class="card-body">
            <div class="skeleton video-card-media"></div>
            <div class="video-card-details">
                <div class="video-card-attribution">
                    <div class="skeleton video-card-attribution-img"></div>
                    <div class="skeleton video-card-attribution-name"></div>
                    <div class="skeleton video-card-attribution-time"></div>
                </div>
                <div class="video-card-abstract-container">
                    <div class="skeleton video-card-title"></div>
                    <div class="skeleton video-card-description"></div>
                    <div class="skeleton video-card-description video-card-description-extra"></div>
                </div>
                <div class="video-card-social-container">
                    <div class="skeleton video-card-social-action"></div>
                    <div class="skeleton video-card-social-action"></div>
                    <div class="video-card-social-icon-container">
                        <div class="skeleton video-card-social-icon"></div>
                        <div class="skeleton video-card-social-icon"></div>
                        <div class="skeleton video-card-social-icon"></div>
                </div>
        </div>
    </div>
`,ei=lt.d`
    <div class="watch-feed-skeleton">
        ${Qt}
        ${Qt}
    </div>
`,ti=lt.d`
    <div class="vnav-container">
        <div class="skeleton vnav-item"></div>
        <div class="skeleton vnav-item"></div>
        <div class="skeleton vnav-item"></div>
        <div class="skeleton vnav-item"></div>
        <div class="skeleton vnav-item"></div>
    </div>
`,ii=lt.d`
    <div class="mrr-section">
        <div class="mrr-container">
            <div class="skeleton mrr-item"></div>
            <div class="skeleton mrr-item"></div>
            <div class="skeleton mrr-item"></div>
        </div>
    </div>
`,oi=lt.d`
    <div class="skeleton embed-video-skeleton"></div>
`;var ni=i(14989),ai=i(84438);function ri(e,t){return ai.Zy*e+ai.er*t}const si={VIEWS_PAGE_WIDTH_1_COL:ri(4,3),VIEWS_PAGE_WIDTH_2_COL:ri(8,7),VIEWS_PAGE_WIDTH_3_COL:ri(12,11),VIEWS_PAGE_WIDTH_4_COL:ri(16,15),VIEWS_CONTENT_WIDTH_1_COL:ri(4,3),VIEWS_CONTENT_WIDTH_2_COL:ri(8,7),VIEWS_CONTENT_WIDTH_3_COL:ri(7,6),VIEWS_CONTENT_WIDTH_4_COL:ri(10,9)},di=Ut.i`
    .content-container {
        position: relative;
    }

    .content-wrapper {
        margin: 0 auto;
        margin-top: 38px;
        margin-bottom: 15px;
        position: relative;
    }

    .skeleton {
        border-radius: 100px;
    }

    ${(0,ni.eH)(ni.K$.c1)} {
        .content-wrapper {
            max-width: 100%;
            min-width: ${si.VIEWS_PAGE_WIDTH_1_COL.toString()}px;
            flex-flow: row wrap;
            margin-top: 16px;
        }

        .content-section {
            width: 100%;
        }

        .mrr-section {
            display: none;
        }
    }

    ${(0,ni.eH)(ni.K$.c2)} {
        .content-wrapper {
            width: ${si.VIEWS_PAGE_WIDTH_2_COL.toString()}px;
            flex-flow: row wrap;
        }

        .content-section {
            width: ${si.VIEWS_CONTENT_WIDTH_2_COL.toString()}px;
        }

        .mrr-section {
            display: none;
        }
    }

    ${(0,ni.eH)(ni.K$.c3)} {
        .content-wrapper {
            width: ${si.VIEWS_PAGE_WIDTH_3_COL.toString()}px;
        }

        .content-section {
            width: ${si.VIEWS_CONTENT_WIDTH_3_COL.toString()}px;
        }
    }

    ${(0,ni.eH)(ni.K$.c4)} {
        .content-wrapper {
            width: ${si.VIEWS_PAGE_WIDTH_4_COL.toString()}px;
        }

        .content-section {
            width: ${si.VIEWS_CONTENT_WIDTH_4_COL.toString()}px;
        }
    }
`,li=Ut.i`
    .content-container {
        position: relative;
    }

    .content-wrapper {
        margin: 0 auto;
        margin-top: 38px;
        margin-bottom: 15px;
        position: relative;
    }

    .skeleton {
        border-radius: 100px;
    }

    ${(0,ni.eH)(ni.K$.c1)} {
        .content-wrapper {
            max-width: 100%;
            min-width: ${si.VIEWS_PAGE_WIDTH_1_COL.toString()}px;
            flex-flow: row wrap;
            margin-top: 16px;
        }

        .content-section {
            width: 100%;
        }

        .mrr-section {
            display: none;
        }
    }

    ${(0,ni.eH)(ni.K$.c2)} {
        .content-wrapper {
            width: ${si.VIEWS_PAGE_WIDTH_2_COL.toString()}px;
            flex-flow: row wrap;
        }

        .content-section {
            width: ${si.VIEWS_CONTENT_WIDTH_2_COL.toString()}px;
        }

        .mrr-section {
            display: none;
        }
    }

    ${(0,ni.eH)(ni.K$.c3)} {
        .content-wrapper {
            width: ${si.VIEWS_PAGE_WIDTH_3_COL.toString()}px;
        }

        .content-section {
            width: ${si.VIEWS_CONTENT_WIDTH_3_COL.toString()}px;
        }
    }

    ${(0,ni.eH)(ni.K$.c4)} {
        .content-wrapper {
            width: ${si.VIEWS_PAGE_WIDTH_4_COL.toString()}px;
        }

        .content-section {
            width: ${si.VIEWS_CONTENT_WIDTH_4_COL.toString()}px;
        }
    }
`,ci=Ut.i`
    .watch-feed-skeleton {
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .card-container {
        height: var(--skeleton-height, 513px);
    }

    .card-body {
        display: flex;
        flex-direction: column;
    }

    .video-card-media {
        height: calc(var(--skeleton-height, 513px) * 0.7);
        width: 100%;
        border-radius: 12px 12px 0 0;
    }

    .video-card-details {
        height: calc(var(--skeleton-height, 513px) * 0.3);
        background-color: ${(0,$e.oR)()?"#424242":"#FFF"};
        border-radius: 0 0 12px 12px;
        padding: 12px 16px;
    }

    .video-card-attribution {
        display: flex;
        flex-direction: row;
    }

    .video-card-attribution-img {
        height: 24px;
        width: 24px;
        border-radius: 50%;
    }

    .video-card-attribution-name {
        height: 12px;
        width: 92px;
        margin-top: 6px;
        margin-left: 8px;
    }

    .video-card-attribution-time {
        height: 12px;
        width: 88px;
        margin-top: 6px;
        margin-left: auto;
    }

    .video-card-abstract-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
        margin-top: 16px;
    }

    .video-card-title {
        height: 20px;
    }

    .video-card-description {
        height: 12px;
    }

    .video-card-description-extra {
        margin-top: -6px;
    }

    .video-card-social-container {
        display: flex;
        flex-direction: row;
        margin-top: 24px;
        gap: 8px;
    }

    .video-card-social-action {
        height: 16px;
        width: 64px;
    }

    .video-card-social-icon-container {
        display: flex;
        flex-direction: row;
        margin-left: auto;
        gap: 8px;
    }

    .video-card-social-icon {
        width: 16px;
    }

    ${(0,ni.eH)(ni.K$.c1)} {
        .video-card-description {
            display: none;
        }
        .video-card-title {
            height: 12px;
        }
        .video-card-social-action {
            height: 12px;
        }
        .video-card-social-icon {
            width: 12px;
        }
    }

    ${(0,ni.vW)(ni.K$.c2,ni.K$.c3)} {
        .video-card-description-extra {
            display: none;
        }
    }
`,hi=Ut.i`
    .vnav-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .vnav-item {
        height: 36px;
        width: 182px;
        padding-right: 4px;
    }
`,ui=Ut.i`
    .mrr-container {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .mrr-item {
        width: 300px;
        height: 250px;
        border-radius: 6px;
    }
`,pi=Ut.i`
    .embed-video-skeleton {
        border-radius: 8px;
        height: 432px;
        margin: 24px 0 79px 0;
    }
`;var vi;!function(e){e.Article="LoadingStateArticle",e.Gallery="LoadingStateGallery",e.WatchFeed="LoadingStateWatchFeed",e.VerticalNav="LoadingStateVerticalNav",e.ModernRightRail="LoadingStateMRR",e.EmbeddedVideoCard="LoadingStateEmbeddedVideoCard"}(vi||(vi={}));const gi={LoadingStateArticle:{template:qt,style:di},LoadingStateGallery:{template:Xt,style:li},LoadingStateWatchFeed:{template:ei,style:ci},LoadingStateVerticalNav:{template:ti,style:hi},LoadingStateMRR:{template:ii,style:ui},LoadingStateEmbeddedVideoCard:{template:oi,style:pi}};function mi(e){return gi[e||vi.Article]}const yi=lt.d`
    ${e=>(e=>{var t;return null===(t=mi(e.templateType))||void 0===t?void 0:t.template})(e)}
`;var fi=i(67620);const bi=Ut.i`
    .skeleton {
        background: rgba(0, 0, 0);
    }

    @keyframes pulse {
        0% {
            opacity: 0.06;
        }
        50% {
            opacity: 0.1;
        }
        100% {
            opacity: 0.06;
        }
    }
`,Pi=Ut.i`
    .skeleton {
        background: rgba(255, 255, 255);
    }

    @keyframes pulse {
        0% {
            opacity: 0.1;
        }
        50% {
            opacity: 0.15;
        }
        100% {
            opacity: 0.1;
        }
    }
`,Ei=Ut.i`
    /**
     * Common Styling
     */

    .flex-row {
        display: flex;
        flex-direction: row;
    }

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

    .skeleton {
        animation: pulse 1.5s alternate infinite;
        animation-timing-function: linear;
    }
`.withBehaviors((0,Ft.zw)(bi),(0,Ft.Uu)(Pi),new fi.j(["templateType"],(e=>(e=>{var t;return null===(t=mi(e.templateType))||void 0===t?void 0:t.style})(e))));let wi=class extends Gt{};wi=(0,l.gn)([(0,Bt.M)({name:"loading-state",template:yi,styles:Ei})],wi);var xi=i(76239),Ci=i(57905),Si=i(63070),Ti=i(69298),Ii=i(76445),Ai=i(71095);const Di="relatedPlayListSlate",ki="nextVideosOverlayClicksTmpl",Oi="nextVideosOverlayClicksTmplNoTimer",Vi=({id:e,title:t})=>{var i;return new de.D({name:Di,action:j.Aw.Click,type:j.c9.VideoPlayer,overrideDestinationUrl:null!==(i=(0,$e.Te)(e,t))&&void 0!==i?i:""})};class Li extends Bt.H{constructor(){super(...arguments),this.upNextVideoSec=0,this.videos=[],this.showUpNextCard=!1,this.noTimer=!1,this.showPauseSlate=!1}connectedCallback(){super.connectedCallback(),this.noTimer?S.M0.addOrUpdateTmplProperty(Oi,"1"):S.M0.addOrUpdateTmplProperty(ki,"1"),this.showUpNextCard&&!this.noTimer&&this.startCount()}startCount(){if(isNaN(this.upNextVideoSec))return;const e=()=>{var t;0!==this.upNextVideoSec?(this.upNextVideoSec--,this.clearTimerId=setTimeout(e,1e3)):this.onUpNextVideoTimerDone&&this.onUpNextVideoTimerDone(null===(t=this.videos[0])||void 0===t?void 0:t.id)};e()}handleClickOnPlaylist(e){return e&&(S.M0.sendActionEvent(e.currentTarget,j.Aw.Click),e.stopPropagation()),!0}handlePauseOverlayClick(){return this.onPauseOverlayClicked&&this.onPauseOverlayClicked(),!0}handleUpNextClick(){return clearTimeout(this.clearTimerId),this.noTimer=!0,!0}}(0,l.gn)([m.Lj],Li.prototype,"upNextVideoSec",void 0),(0,l.gn)([m.Lj],Li.prototype,"relatedVideoLocalizedText",void 0),(0,l.gn)([g.LO],Li.prototype,"videos",void 0),(0,l.gn)([(0,m.Lj)({mode:"boolean"})],Li.prototype,"showUpNextCard",void 0),(0,l.gn)([g.LO],Li.prototype,"noTimer",void 0),(0,l.gn)([(0,m.Lj)({mode:"boolean"})],Li.prototype,"showPauseSlate",void 0),(0,l.gn)([g.LO],Li.prototype,"onUpNextVideoTimerDone",void 0),(0,l.gn)([m.Lj],Li.prototype,"upNextCardLocalizedText",void 0),(0,l.gn)([g.LO],Li.prototype,"onPauseOverlayClicked",void 0);var _i=i(64434);const Mi=Ut.i`
    :host {
        --image-width: 106px;
        --image-height: 60px;
        --card-width: 312px;
        --card-height: 76px;
        --white-color: #FFF;
        --heading-font-size: 14px;
        --heading-line-height: 20px;
        --company-font-size: 12px;
        box-sizing: border-box;
        cursor: pointer;
        outline: none;
    }

    fluent-card {
        background: transparent;
        box-shadow: none;
        font-family: 'Segoe UI';
        font-style: normal;
        width: 100%;
        height: 100%;
    }

    fluent-card msft-content-card {
        width: 100%;
        height: 100%;
        margin: 0
    }

    fluent-card msft-content-card::part(heading-container) {
        padding-bottom: 0px;
        padding-top: 0px;
        padding-inline-start: 0px;
        padding-inline-end: 0px;
    }

    .endSlateOverlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 4.8em;
        z-index: 68;
        display: grid;
        grid-template-rows: 1fr auto;
        height: 100%;
        background: rgba(0, 0, 0, 0.65);
        cursor: pointer;
        z-index: 66;
    }

    .pauseSlateOverlay {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        bottom: 4.8em;
        z-index: 68;
        display: grid;
        grid-template-rows: 1fr;
        height: 100%;
        width: 100%;
        background: linear-gradient(rgb(34 34 34 / 13%) 0%, rgb(17 17 17 / 62%) 100%);
        cursor: default;
        z-index: 55;
    }

    .upnext-fluent-card {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }

    .upnext-fluent-card msft-content-card {
        width: 100%;
        height: 100%;
        margin: 0px;
    }

    .next-container {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        overflow: hidden;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .next-container--info {
        display: flex;
        color: white;
        font-weight: 500;
        font-size: 14px;
        line-height: 16px;
        padding: 5px 2px 0px;
        flex-direction: row;
        align-items: center;
        margin-left: 8px;
        cursor: default;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }

    .up-next-container {
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        right: 0;
        display: grid;
        grid-template-columns: 290px auto;
        gap: 10px;
        padding 10px;
        overflow: hidden;
        margin: 0px 20px;
    }

    .noPauseSlate-upNext-container {
        position: absolute;
        display: grid;
        grid-template-columns: 240px auto;
        border: 4px;
        gap: 10px;
        overflow: hidden;
        margin-top: auto;
        padding-bottom: 4.8em;
        top: 50%;
        left: 16px;
        right: 16px;
        transform: translateY(-50%);
    }

    .notimer-container {
        top: 55px
    }

    .upNext-big-media {
        position: relative;
        grid-column: 1 / 2;
        overflow: hidden;
        margin-bottom: 0px;
        margin-left: 8px;
        border-radius: 4px;
        width: auto;
        height: auto;
        max-height: 160px;
        max-width: 280px;
    }

    .upNext-big-media img {
        border-radius: 4px;
        height: 100%;
        width: 100%;
    }

    .upNext-card-timer {
        width: 28px;
        height: 16px;
        position: absolute;
        border-radius: 4px;
        font-weight: 600;
        font-size: 12px;
        line-height: 16px;
        bottom: 2px;
        left: 2px;
        color: white;
        margin: 2px 0px 8px 4px;
        background: rgba(0, 0, 0, 0.55);
        padding: 2px 6px;
        text-align: center;
    }

    .upNext-big-media play-icon-wrapper {
        position: absolute;
        border-radius: 5px;
        top: 0;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
    }

    .upNext-big-media svg {
        position: absolute;
        top: 50%;
        left: 50%;
        Width: 41px;
        Height: 41px;
        transform: translate(-50%, -50%);
     }

    .header-wrapper {
        font-size: 20px;
        color: white;
        text-align: start;
        padding: 0px 10px;
        font-weight: 600;
        line-height: 26px;
    }

    .header-wrapper h5 {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-top: 0px;
        margin-bottom: 0px;
        height: auto;
        font-weight: 600;
        font-size: 20px;
        line-height: 26px;
    }

    .header-wrapper img {
        margin: 0 7px 0px 0;
        float: left;
        height: 16px;
        width: 16px;
        position: relative;
    }

    .upnext-subhead {
        display: block;
        color: #white;
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 16px;
        font-weight: 300;
    }

    .playlist {
        overflow: hidden;
        height: auto;
        padding-left: 1.2em;
        padding-right: 1.2em;
        padding-top: 0.6em;
        margin-bottom: 4.8em;
    }

    .endSlatePlaylist {
        margin-bottom: 4.8em;
        position: absolute;
        height: auto;
        left: 0;
        right: 0;
        bottom: 0;
    }

    ul {
        list-style-type: none;
        padding: 0;
        margin-top: 2px;
        margin-bottom: 0px;
    }

    .unordered-list {
        height: 76px;
        justify-items: center;
        margin-top: 4px;
        gap: 10px;
        display: flex;
    } 
    
    .playlist-contrainer--info {
        color: white;
        display: grid;
        grid-template-columns: 1fr;
        font-size: 14px;
        font-weight: 600;
        line-height: 16px;
        width: 100%;
        margin-left: 8px;
        padding: 8px 0px;
        cursor: default;
    }
    
    .unordered-list li {
        background: rgba(0, 0, 0, 0.55);
        border-radius: 6px;
        margin: 0px 5px;
        overflow: hidden;
        height: 100%;
        width: 100%;
        backdrop-filter: blur(20px);
        cursor: pointer;
    }

    .playlist-container {
        display: flex;
        margin: 8px;
        position: absolute;
        z-index:${_i.K.Overlay.toString()};
    }

    .playlist-big-media {
        flex-direction: column;
        border-radius: 4px;
        align-items: center;
        justify-content: center;
    }

    .playlist-big-media img {
        border-radius: 4px;
        width: 106px;
        height: 60px;   
    }

    .playlist-header-wrapper {
        font-family: "Segoe UI";
        font-style: normal;
        font-weight: 600;
        font-size: 14px;
        line-height: 20px;
        color: white;
        grid-column: 1 / auto;
        margin-left: 12px;
    }

    .playlist-subhead {
        color: white;
        margin-top: 0px 5px;
        font-size: 12px;
        line-height: 16px;
        font-weight: 300;
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
        margin-right: 1px;
        overflow: hidden;
        text-overflow: ellipsis;
        position: absolute;
        bottom: 6px;
    }

    .playlist-subhead-title {
        width: 100%;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .playlist-subhead img {
        margin: 2px 7px 0px 0px;
        float: left;
        height: 16px;
        width: 16px;
        position: relative;
    }

    .playlist-card-timer {
        width: 28px;
        height: 16px;
        position: absolute;
        border-radius: 4px;
        font-weight: 600;
        font-size: 12px;
        line-height: 16px;
        bottom: 4px;
        left: 7px;
        color: white;
        margin: 2px 0px 8px 4px;
        background: rgba(0, 0, 0, 0.55);
        padding: 2px 6px;
        text-align: center;
    }
`;var Ni=i(18864);const Ri=lt.d`
    <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" slot="icon">
        <g filter="url(#filter0_b_30_15226)">
            <circle cx="20" cy="20" r="19" fill="url(#paint0_linear_30_15226)" />
            <circle cx="20" cy="20" r="19.5" stroke="url(#paint1_linear_30_15226)" />
        </g>
        <path d="M27.2221 18.6846C28.2586 19.2544 28.2586 20.7437 27.2221 21.3135L17.2226 26.8105C16.2229 27.36 15 26.6367 15 25.496L15 14.5021C15 13.3614 16.2229 12.6381 17.2226 13.1877L27.2221 18.6846Z" fill="white" />
        <defs>
            <filter id="filter0_b_30_15226" x="-10" y="-10" width="60" height="60" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
                <feFlood flood-opacity="0" result="BackgroundImageFix" />
                <feGaussianBlur in="BackgroundImage" stdDeviation="5" />
                <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_30_15226" />
                <feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_30_15226" result="shape" />
            </filter>
            <linearGradient id="paint0_linear_30_15226" x1="1" y1="1" x2="39" y2="39" gradientUnits="userSpaceOnUse">
                <stop stop-opacity="0.5" />
                <stop offset="1" stop-opacity="0.7" />
            </linearGradient>
            <linearGradient id="paint1_linear_30_15226" x1="20" y1="1" x2="20" y2="39" gradientUnits="userSpaceOnUse">
                <stop stop-color="white" stop-opacity="0.4" />
                <stop offset="1" stop-color="white" stop-opacity="0.2" />
            </linearGradient>
        </defs>
    </svg>
`,$i=lt.d`
        <li>
            <a data-t="${e=>{var t;return null===(t=Vi(e))||void 0===t?void 0:t.getMetadataTag()}}" href="${e=>(0,$e.Te)(e.id,e.title)}" target="_blank" @click=${(e,t)=>t.parent.handleClickOnPlaylist(t.event)}>
                <fluent-card class="upnext-fluent-card">
                    <msft-content-card>
                        <div class="playlist-container">
                            <div class="playlist-big-media" part="media-wrapper">
                                <img slot="media"   src=${e=>e.mediaSrc}  alt=${e=>e.title}/>
                                <div class="playlist-card-timer">
                                    ${e=>e.durationTime.min}:${e=>e.durationTime.sec}
                                </div>
                            </div>
                            <div class="playlist-header-wrapper">
                                <span title="${e=>e.title}" class="playlist-subhead-title">
                                    ${e=>e.title}
                                </span>
                                <span class="playlist-subhead"><img src=${e=>e.providerLogo} alt=${e=>e.providerName}/> ${e=>e.providerName} </span>
                            </div>
                        </div>
                    </msft-content-card>
                </fluent-card>
            </a>
        </li>
    `,Ui=lt.d`
    <div class="playlist  ${e=>e.showUpNextCard?"":"endSlatePlaylist"}">
        <div class="playlist-contrainer--info">
            <span>${e=>e.relatedVideoLocalizedText}</span>
        </div>
        <ul class="unordered-list">
        ${(0,Ni.rx)((e=>e.showUpNextCard?e.videos.slice(1):e.videos),$i)}
        </ul>
    </div>
`,Fi=lt.d`
        <div class="next-container">
            <a data-t="${e=>{var t;return null===(t=Vi(e.videos[0]))||void 0===t?void 0:t.getMetadataTag()}}" href="${e=>(0,$e.Te)(e.videos[0].id,e.videos[0].title)}" target="_blank" @click=${(e,t)=>e.handleUpNextClick()}>
                <fluent-card class= "upnext-fluent-card">
                    <msft-content-card>
                        <div class="${e=>e.showPauseSlate?"noPauseSlate-upNext-container":"up-next-container"}">
                                <div class="next-container--info">
                                    ${(0,ht.g)((e=>!e.noTimer),lt.d`
                                        <span>${e=>e.upNextCardLocalizedText} ${e=>e.upNextVideoSec}...</span>
                                    `)}
                                </div>
                            <div class="upNext-big-media" part="media-wrapper">
                                <img slot="media"   src=${e=>e.videos[0].mediaSrc}  alt=${e=>e.videos[0].providerName}/>
                                <div class="play-icon-wrapper">
                                    ${Ri}
                                </div>
                                <div class="upNext-card-timer">
                                    ${e=>e.videos[0].durationTime.min}:${e=>e.videos[0].durationTime.sec}
                                </div>
                            </div>
                            <div class="header-wrapper">
                                <span class="upnext-subhead"><img src=${e=>{var t;return null===(t=e.videos[0])||void 0===t?void 0:t.providerLogo}} alt=${e=>e.videos[0].providerName}/>${e=>e.videos[0].providerName}</span>
                                <h5 title=${e=>e.videos[0].title} >${e=>e.videos[0].title}</h5>
                            </div>
                        </div>
                    </msft-content-card>
                </fluent-card>
            </a>
        </div>
`,ji=lt.d`
        ${e=>lt.d`<div class="${e=>e.showUpNextCard?"endSlateOverlay":"pauseSlateOverlay"}" @click=${e=>!!e.showUpNextCard||e.handlePauseOverlayClick()} >
                ${(0,ht.g)((e=>e.showUpNextCard),Fi)}
                ${(0,ht.g)((e=>!e.showPauseSlate),Ui)}
            </div>`}
`;let Wi=class extends Li{};Wi=(0,l.gn)([(0,Bt.M)({name:"next-videos-overlay-wc",template:ji,styles:Mi})],Wi),(0,Si.z)().withShadowRootMode("closed").withElementDisambiguation((()=>Ci.h.ignoreDuplicate)).register((0,Ti.ay)()),Ci.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>Ci.h.ignoreDuplicate)).withPrefix("msft").register((0,Ii.B4)(),(0,Ai.On)());var zi=i(82891);xi.NT;const Hi=lt.d`
<div class="directEmbed_root" data-t="${e=>{var t,i;return null===(i=null===(t=e.videoTelemetryContext)||void 0===t?void 0:t.parentTelemetry)||void 0===i?void 0:i.getMetadataTag()}}">
    <iframe
        width="100%"
        height="100%"
        ${(0,ct.i)("demPlayerRef")}
        src="${e=>{var t,i,o,n;return U.buildIframeSrc(null!==(o=null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id)&&void 0!==o?o:"",null!==(n=e.config.isAutoPlayEnabledForWebContent)&&void 0!==n&&n)}}"
        frameBorder="0"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
        allowFullScreen>
    </iframe>
</div>`,Bi=lt.d`
<div class="directEmbed_root fb" ${(0,ct.i)("demPlayerRef")} data-t="${e=>{var t,i;return null===(i=null===(t=e.videoTelemetryContext)||void 0===t?void 0:t.parentTelemetry)||void 0===i?void 0:i.getMetadataTag()}}">
    <slot name="fb-embed"></slot>
    ${e=>{var t,i,o,n;return F.createAndAppendPlayer(e,null!==(o=null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.directEmbedMedia)||void 0===i?void 0:i.id)&&void 0!==o?o:"",null!==(n=e.config.isAutoPlayEnabledForWebContent)&&void 0!==n&&n,Boolean(e.config.enableCC))}}
</div>
`,Gi=lt.d`
<div class="bingEmbed_root" data-t="${e=>{var t,i,o;return null===(o=null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.telemetryContext)||void 0===i?void 0:i.parentTelemetry)||void 0===o?void 0:o.getMetadataTag()}}">
    <iframe
        width="100%"
        height="100%"
        src="${e=>{var t,i;return to(null!==(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.bingMediaUniqueId)&&void 0!==i?i:"")}}"
        frameBorder="0"
        allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
        allowFullScreen>
    </iframe>
</div>`,Ki=lt.d`
    <div class="video-clear-div"></div>
`,Ji=lt.d`
    ${Ki}
    <p data-test-id="video-embed-title" class="${e=>e.getBlueMarkerClassNames("top")} video-title">
        ${(0,ht.g)((e=>e.config.enableLargeTitle),lt.d`${'<svg width="16" height="14" viewBox="0 0 16 14" fill="none"><path d="M2.5 0A2.5 2.5 0 0 0 0 2.5v9A2.5 2.5 0 0 0 2.5 14h11a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 13.5 0h-11Zm4.27 4.08 4 2.5a.5.5 0 0 1 0 .84l-4 2.65A.5.5 0 0 1 6 9.65V4.5a.5.5 0 0 1 .77-.42Z" fill="url(#paint0_linear_502_5213)"/><defs><linearGradient id="paint0_linear_502_5213" x1="0" y1="0" x2="13.88" y2="15.86" gradientUnits="userSpaceOnUse"><stop stop-color="#459BFF"/><stop offset=".51" stop-color="#4564FF"/><stop offset="1" stop-color="#3E5BEC"/></linearGradient></defs></svg>'}`)}
        ${e=>{var t;return null!==(t=e.videoTitlePrefix)&&void 0!==t?t:"Related video:"}}
        ${(0,ht.g)((e=>!e.config.enableLargeTitle),lt.d`${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.videoData)||void 0===i?void 0:i.title}}`)}
    <p>
`,qi=lt.d`
    <next-videos-overlay-wc
        :upNextVideoSec=${e=>e.nextVideosOverlayData.upNextVideoSec}
        :relatedVideoLocalizedText=${e=>e.nextVideosOverlayData.relatedVideoLocalizedText}
        :upNextCardLocalizedText=${e=>e.nextVideosOverlayData.upNextCardLocalizedText}
        :videos=${e=>e.nextVideosOverlayData.nextVideosOverlayData}
        :onUpNextVideoTimerDone=${e=>e.nextVideosOverlayData.onUpNextVideoTimerDone}
        :onPauseOverlayClicked=${e=>e.nextVideosOverlayData.onPauseOverlayClicked}
        :noTimer=${e=>e.nextVideosOverlayData.nextVideosOverlayNoTimer}
        :showPauseSlate=${e=>e.nextVideosOverlayData.showPauseSlate}
        :showUpNextCard=${e=>e.nextVideosOverlayData.showUpNextCard}
    />
`,Yi=lt.d`
<div class="videocard3PP
    ${e=>e.getBlueMarkerClassNames("bottom")}
    ${e=>e.shouldAddExtraStylingForRelatedVideos?"videocardRelatedVideo3PP":""}"
    data-t="${e=>{var t,i;return null===(i=null===(t=e.videoTelemetryContext)||void 0===t?void 0:t.parentTelemetry)||void 0===i?void 0:i.getMetadataTag()}}"
>
    <slot name="js-embed" ${(0,ct.i)("demPlayerRef")}></slot>
    ${e=>{var t,i;if("js"!==(null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.card3ppConfig)||void 0===i?void 0:i.type))return lt.d`
                <iframe ${(0,ct.i)("iframe3ppRef")} width="100%" height="100%" src="${e=>eo(e)}" frameBorder="0" scrolling="no" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowFullScreen></iframe>
            `;{const t=document.createElement("div"),i=e.id||"";t.slot="js-embed",t.id=e.buildThirdPartyPlayerContainerId(i),t.style.display="block",t.classList.add(`${e.videoCardProps.card3ppConfig.name}3PPStyle`),e.appendChild(t)}}}
    ${(0,ht.g)((e=>{var t,i;return!(null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.playerConfigProps)||void 0===i?void 0:i.hidePrivacyLinks)}),lt.d`
        <div class="videocard3PPNotice">${e=>{var t,i;return e.config&&(null===(i=null===(t=e.config.thirdPartyPlayersConfig)||void 0===t?void 0:t.localizedStrings)||void 0===i?void 0:i.videoPlayerFrom)}}: ${e=>{var t,i;return null===(i=null===(t=e.videoCardProps)||void 0===t?void 0:t.card3ppConfig)||void 0===i?void 0:i.displayName}} (<span :innerHTML="${e=>ut(e)}"></span>)</div>
    `)}
</div>
`,Zi=lt.d`
<div class="
    videocard1PP
    ${e=>e.customStyleClass}
    ${e=>e.getBlueMarkerClassNames("bottom")}
    ${e=>e.shouldAddExtraStylingForRelatedVideos?"videocardRelatedVideo":""}"
>
    <content-video-player :contentVideoPlayerProps=${e=>e.videoCardProps} :playsInline=${e=>"true"} ></content-video-player>
</div>
`,Xi=lt.d`
<span class="video-play-button-container">
    <span class="video-play-button">
        <svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg" slot="icon">
            <g filter="url(#filter0_b_30_15226)">
                <circle cx="20" cy="20" r="19" fill="url(#paint0_linear_30_15226)" />
                <circle cx="20" cy="20" r="19.5" stroke="url(#paint1_linear_30_15226)" />
            </g>
            <path d="M27.2221 18.6846C28.2586 19.2544 28.2586 20.7437 27.2221 21.3135L17.2226 26.8105C16.2229 27.36 15 26.6367 15 25.496L15 14.5021C15 13.3614 16.2229 12.6381 17.2226 13.1877L27.2221 18.6846Z" fill="white" />
            <defs>
                <filter id="filter0_b_30_15226" x="-10" y="-10" width="60" height="60" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
                    <feFlood flood-opacity="0" result="BackgroundImageFix" />
                    <feGaussianBlur in="BackgroundImage" stdDeviation="5" />
                    <feComposite in2="SourceAlpha" operator="in" result="effect1_backgroundBlur_30_15226" />
                    <feBlend mode="normal" in="SourceGraphic" in2="effect1_backgroundBlur_30_15226" result="shape" />
                </filter>
                <linearGradient id="paint0_linear_30_15226" x1="1" y1="1" x2="39" y2="39" gradientUnits="userSpaceOnUse">
                    <stop stop-opacity="0.5" />
                    <stop offset="1" stop-opacity="0.7" />
                </linearGradient>
                <linearGradient id="paint1_linear_30_15226" x1="20" y1="1" x2="20" y2="39" gradientUnits="userSpaceOnUse">
                    <stop stop-color="white" stop-opacity="0.4" />
                    <stop offset="1" stop-color="white" stop-opacity="0.2" />
                </linearGradient>
            </defs>
        </svg>
    </span>
</span>
`,Qi=lt.d`
<div class="videocard1PP ${e=>e.customStyleClass} ${e=>e.previewTypeStyleClass}">
    <div class="videocardImagePlaceholderContainer" ${(0,ct.i)("videoCardPlaceholderDom")}>
        ${(0,ht.g)((e=>!e.config.isSuperFeedCard),Xi)}
        <img
            alt="${e=>{var t,i;return null===(i=null===(t=e.cardData)||void 0===t?void 0:t.imageData)||void 0===i?void 0:i.altText}}"
            src="${e=>{var t,i;return null===(i=null===(t=e.cardData)||void 0===t?void 0:t.imageData)||void 0===i?void 0:i.source}}"
            height="${e=>{var t,i;return null===(i=null===(t=e.cardData)||void 0===t?void 0:t.imageData)||void 0===i?void 0:i.imageHeight}}"
            width="${e=>{var t,i;return null===(i=null===(t=e.cardData)||void 0===t?void 0:t.imageData)||void 0===i?void 0:i.imageWidth}}"
        />
    </div>
</div>
`,eo=e=>{var t;const{card3ppConfig:i,playerConfigProps:o,videoData:n={}}=e.videoCardProps||{};let a=(0,zi.h_)(null!==(t=null==i?void 0:i.urlformat)&&void 0!==t?t:"");return a=a.replace(/%%SOURCE_CONTENT_ID%%/g,n.sourceId||""),a=a.replace(/%%WINDOW_LOCATION%%/g,encodeURIComponent(window.location.toString())),a=a.replace(/%%AUTOPLAY_STR%%/g,(null==o?void 0:o.autoplay)?"true":"false"),a=a.replace(/%%AUTOPLAY_INT%%/g,(null==o?void 0:o.autoplay)?"1":"0"),a=a.replace(/%%MUTED_STR%%/g,(null==o?void 0:o.muted)?"true":"false"),a=a.replace(/%%MUTED_INT%%/g,(null==o?void 0:o.muted)?"1":"0"),a},to=e=>`https://www.bing.com/videos/search?view=detail&mmscn=peregredge&FORM=VSDESO&mid=${e}`,io=lt.d`
    <loading-state templateType="${vi.EmbeddedVideoCard}"/>
`,oo=lt.d`
    ${e=>{if(e.videoCardProps){const{card3ppConfig:t,bingMediaUniqueId:i,directEmbedMedia:o}=e.videoCardProps;if(o){if("youtube"===o.type)return Hi;if("facebook"==o.type)return Bi;if("talkshoplive"==o.type)return ft}return i?Gi:t?Yi:e.config&&e.config.enableVideoPool?(e.registerPoolVideo(),Qi):Zi}}}
`,no=lt.d`
    ${(0,ht.g)((e=>e.isContentBingmm),Ji)}
        <div class="
            video-wrapper
            ${e=>e.config.isInIframe?"is-in-iframe":""}
            ${e=>e.config.enableLargeTitle?"video-wrapper-aspect-ratio":""}
        ">
            ${oo}
            ${(0,ht.g)((e=>e.hasNextVideosOverlay),qi)}
        </div>
    ${(0,ht.g)((e=>e.isContentBingmm),Ki)}
`,ao=lt.d`
    ${e=>e.errorMessage?lt.d`<video-card-error message="${e.errorMessageText||e.errorMessage}" />`:e.videoCardProps?no:e.isContentBingmm?io:null}
`;const ro=lt.d`${'<svg width="31" height="30" viewBox="0 0 31 30" fill="none"><path d="M18.6 2.36a3.54 3.54 0 0 0-6.2 0L.52 23.9a3.54 3.54 0 0 0 3.1 5.24h23.76c2.7 0 4.4-2.89 3.1-5.24L18.6 2.36Zm-1.81 20.35a1.29 1.29 0 1 1-2.58 0 1.29 1.29 0 0 1 2.58 0Zm-2.25-4.17v-8.36a.96.96 0 0 1 1.92 0v8.36a.96.96 0 1 1-1.92 0Z" fill="#A8A8A8"/></svg>'}`,so=lt.d`
    <div class="error-card-container">
        <span class="video-unavailable-icon">${e=>ro}</span>
        <span class="video-unavailable-msg">${e=>e.message}</span>
    </div>
`,lo=Ut.i`
    .error-card-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        background: linear-gradient(119.33deg, #222222 32.01%, #111111 103.96%);
    }

    .video-unavailable-icon {
        margin-bottom: 16px;
    }

    .video-unavailable-msg {
        margin: 0 16px;
        text-align: center;
        color: #A8A8A8;
    }
`;class co extends Bt.H{constructor(){super(...arguments),this.message="Video unavailable"}}(0,l.gn)([m.Lj],co.prototype,"message",void 0);let ho=class extends co{};ho=(0,l.gn)([(0,Bt.M)({name:"video-card-error",template:so,styles:lo})],ho);const uo={experienceConfigSchema:d}},51165:function(e,t,i){"use strict";i.d(t,{L:function(){return o}});const o=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))},64893:function(e,t,i){"use strict";i.d(t,{$n:function(){return o},bT:function(){return n},cN:function(){return a}});const o=[{id:"ar-ae",value:"ar-ae",displayString:"الإمارات العربية المتحدة (العربية)",direction:"rtl"},{id:"ar-eg",value:"ar-eg",displayString:"مصر (العربية)",direction:"rtl"},{id:"ar-sa",value:"ar-sa",displayString:"المملكة العربية السعودية (العربية)",direction:"rtl"},{id:"bn-in",value:"bn-in",displayString:"India (বাংলা)",direction:"ltr"},{id:"cs-cz",value:"cs-cz",displayString:"Česká republika (čeština)",direction:"ltr"},{id:"da-dk",value:"da-dk",displayString:"Danmark (Dansk)",direction:"ltr"},{id:"de-at",value:"de-at",displayString:"Österreich (Deutsch)",direction:"ltr"},{id:"de-ch",value:"de-ch",displayString:"Schweiz (Deutsch)",direction:"ltr"},{id:"de-de",value:"de-de",displayString:"Deutschland (Deutsch)",direction:"ltr"},{id:"el-gr",value:"el-gr",displayString:"Ελλάδα (ελληνικά)",direction:"ltr"},{id:"en-ae",value:"en-ae",displayString:"United Arab Emirates (English)",direction:"ltr"},{id:"en-au",value:"en-au",displayString:"Australia (English)",direction:"ltr"},{id:"en-ca",value:"en-ca",displayString:"Canada (English)",direction:"ltr"},{id:"en-gb",value:"en-gb",displayString:"United Kingdom (English)",direction:"ltr"},{id:"en-ie",value:"en-ie",displayString:"Ireland (English)",direction:"ltr"},{id:"en-in",value:"en-in",displayString:"India (English)",direction:"ltr"},{id:"en-my",value:"en-my",displayString:"Malaysia (English)",direction:"ltr"},{id:"en-nz",value:"en-nz",displayString:"New Zealand (English)",direction:"ltr"},{id:"en-ph",value:"en-ph",displayString:"Philippines (English)",direction:"ltr"},{id:"en-sg",value:"en-sg",displayString:"Singapore (English)",direction:"ltr"},{id:"en-us",value:"en-us",displayString:"United States (English)",direction:"ltr"},{id:"en-xl",value:"en-xl",displayString:"International Edition (English)",direction:"ltr"},{id:"en-za",value:"en-za",displayString:"South Africa (English)",direction:"ltr"},{id:"es-ar",value:"es-ar",displayString:"Argentina (español)",direction:"ltr"},{id:"es-cl",value:"es-cl",displayString:"Chile (español)",direction:"ltr"},{id:"es-co",value:"es-co",displayString:"Colombia (español)",direction:"ltr"},{id:"es-es",value:"es-es",displayString:"España (español)",direction:"ltr"},{id:"es-mx",value:"es-mx",displayString:"México (español)",direction:"ltr"},{id:"es-pe",value:"es-pe",displayString:"Perú (español)",direction:"ltr"},{id:"es-us",value:"es-us",displayString:"United States (español)",direction:"ltr"},{id:"es-ve",value:"es-ve",displayString:"Venezuela (español)",direction:"ltr"},{id:"es-xl",value:"es-xl",displayString:"América Latina (español)",direction:"ltr"},{id:"fi-fi",value:"fi-fi",displayString:"Suomi (suomi)",direction:"ltr"},{id:"fr-be",value:"fr-be",displayString:"Belgique (français)",direction:"ltr"},{id:"fr-ca",value:"fr-ca",displayString:"Canada (français)",direction:"ltr"},{id:"fr-ch",value:"fr-ch",displayString:"Suisse (français)",direction:"ltr"},{id:"fr-fr",value:"fr-fr",displayString:"France (français)",direction:"ltr"},{id:"fr-xl",value:"fr-xl",displayString:"Afrique francophone (français)",direction:"ltr"},{id:"he-il",value:"he-il",displayString:"ישראל (עברית)",direction:"rtl"},{id:"hi-in",value:"hi-in",displayString:"India (हिंदी)",direction:"ltr"},{id:"hu-hu",value:"hu-hu",displayString:"Magyarország (magyar)",direction:"ltr"},{id:"id-id",value:"id-id",displayString:"Indonesia (Bahasa Indonesia)",direction:"ltr"},{id:"it-it",value:"it-it",displayString:"Italia (italiano)",direction:"ltr"},{id:"ja-jp",value:"ja-jp",displayString:"日本 (日本語)",direction:"ltr"},{id:"ko-kr",value:"ko-kr",displayString:"한국 (한국어)",direction:"ltr"},{id:"mr-in",value:"mr-in",displayString:"India (मराठी)",direction:"ltr"},{id:"nb-no",value:"nb-no",displayString:"Norge (norsk, bokmål)",direction:"ltr"},{id:"nl-be",value:"nl-be",displayString:"België (Nederlands)",direction:"ltr"},{id:"nl-nl",value:"nl-nl",displayString:"Nederland (Nederlands)",direction:"ltr"},{id:"pl-pl",value:"pl-pl",displayString:"Polska (polski)",direction:"ltr"},{id:"pt-br",value:"pt-br",displayString:"Brasil (português)",direction:"ltr"},{id:"pt-pt",value:"pt-pt",displayString:"Portugal (Português)",direction:"ltr"},{id:"ru-xl",value:"ru-xl",displayString:"Международное издание (Pусский)",direction:"ltr"},{id:"ru-ru",value:"ru-ru",displayString:"Россия (Pусский)",direction:"ltr"},{id:"sv-se",value:"sv-se",displayString:"Sverige (svenska)",direction:"ltr"},{id:"te-in",value:"te-in",displayString:"India (తెలుగు)",direction:"ltr"},{id:"th-th",value:"th-th",displayString:"ไทย (ไทย)",direction:"ltr"},{id:"tr-tr",value:"tr-tr",displayString:"Türkiye (Türkçe)",direction:"ltr"},{id:"vi-vn",value:"vi-vn",displayString:"Việt Nam (Tiếng Việt)",direction:"ltr"},{id:"zh-cn",value:"zh-cn",displayString:"中华人民共和国 (简体中文)",direction:"ltr"},{id:"zh-hk",value:"zh-hk",displayString:"香港特别行政區 (繁體中文)",direction:"ltr"},{id:"zh-tw",value:"zh-tw",displayString:"台灣 (繁體中文)",direction:"ltr"}];function n(e,t){return e.displayString<t.displayString?-1:e.displayString>t.displayString?1:0}function a(e){if(""!==document.dir)return"rtl"===document.dir;const t=o.find((t=>t.id===e));return t&&"rtl"===t.direction}},17157:function(e,t,i){"use strict";i.d(t,{dw:function(){return s},wq:function(){return n}});i(83648);const o={};function n(){var e,t,i,o;const n=null===(e=window.sapphireWebViewBridge)||void 0===e?void 0:e.send,a=null===(o=null===(i=null===(t=window.webkit)||void 0===t?void 0:t.messageHandlers)||void 0===i?void 0:i.send)||void 0===o?void 0:o.postMessage;return n||a}let a;function r(e,t){var i,o,n,r,s,d,l;console.log(e,t);const c="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})),h={scenario:e,data:{data:t},id:c};a&&!h.data.data.appId&&(h.data.data.appId=a);const u=JSON.stringify(h);return(null===(n=null===(o=null===(i=window.webkit)||void 0===i?void 0:i.messageHandlers)||void 0===o?void 0:o.send)||void 0===n?void 0:n.postMessage)&&(null===(d=null===(s=null===(r=window.webkit)||void 0===r?void 0:r.messageHandlers)||void 0===s?void 0:s.send)||void 0===d||d.postMessage(u)),(null===(l=window.sapphireWebViewBridge)||void 0===l?void 0:l.send)&&window.sapphireWebViewBridge.send(u),c}function s(e,t,i){const n=r(e,t);i&&function(e,t){o[e]?o[e].push(t):o[e]=[t]}(n,i)}},42246:function(e,t,i){"use strict";function o(e){return function(e){const t=(new TextEncoder).encode(e),i=Array.from(t).map((e=>String.fromCharCode(e))).join("");return btoa(i)}(e).replace(/[+/=]{1}/g,(e=>{switch(e){case"+":return"-";case"/":return"_";case"=":return"";default:return e}}))}function n(e){const t=e.length%4,i=0===t?0:4-t;return e=e.replace(/[-_]{1}/g,(e=>{switch(e){case"-":return"+";case"_":return"/";default:return e}})),function(e){const t=atob(e),i=new Uint8Array(Array.from(t).map((e=>e.charCodeAt(0))));return(new TextDecoder).decode(i)}(e+="=".repeat(i))}i.d(t,{EL:function(){return n},rS:function(){return o}})},89023:function(e,t,i){"use strict";i.d(t,{aW:function(){return l},iL:function(){return r},jm:function(){return d},q7:function(){return s}});var o=i(23649),n=i(42246);const a="talkshoplive/";function r(e){return e.startsWith(a)&&(e=e.substring(a.length)),JSON.parse((0,n.EL)(e))}function s(e){if(null==e)return"0";if(e<0)return"-"+s(Math.abs(e));const t=function(e,t=""){return e.toFixed(1).replace(/\.0$/,"")+t};return e>=1e9?t(e/1e9,"B"):e>=1e6?t(e/1e6,"M"):e>=1e3?t(e/1e3,"K"):t(e,"")}function d(e,t,i){let n=`vc|${e}`;if(t&&i){n+=`|${function(e){switch(e){case o.Lt.FirstParty:return"FirstParty";case o.Lt.InMobi:return"InMobi";case o.Lt.TalkShopLive:return"TalkShopLive";case o.Lt.YouTube:return"YouTube";default:return"Default"}}(t)}`;for(const e in i)n+=`|${i[e]}`}return n}function l(e){switch(e){case o.Lt.TalkShopLive:return"https://talkshop.live/public/icons/favicon.ico";case o.Lt.YouTube:return"https://www.gstatic.com/youtube/img/branding/favicon/favicon_144x144.png";case o.Lt.InMobi:return"https://www.bing.com/th?id=OLS.Gxpg6OGW&pid=VidComm"}return""}},23649:function(e,t,i){"use strict";var o,n,a,r,s;i.d(t,{Lt:function(){return a}}),function(e){e[e.None=0]="None",e[e.Scheduled=1]="Scheduled",e[e.Live=2]="Live",e[e.Finished=3]="Finished",e[e.Transcoding=4]="Transcoding"}(o||(o={})),function(e){e[e.Unknown=0]="Unknown",e[e.OfflineClient=1]="OfflineClient",e[e.RealtimeClient=2]="RealtimeClient"}(n||(n={})),function(e){e[e.Default=0]="Default",e[e.TalkShopLive=1]="TalkShopLive",e[e.YouTube=2]="YouTube",e[e.InMobi=3]="InMobi",e[e.FirstParty=4]="FirstParty",e[e.QVC=5]="QVC",e[e.ShopThing=6]="ShopThing",e[e.LiveStream=7]="LiveStream"}(a||(a={})),function(e){e[e.Available=0]="Available",e[e.OutOfStock=1]="OutOfStock"}(r||(r={})),function(e){e.live="live",e.finished="finished",e.upcoming="scheduled"}(s||(s={}))},53909:function(e,t,i){"use strict";i.d(t,{D3:function(){return r},KL:function(){return c},mL:function(){return p},pG:function(){return d},q3:function(){return l},vc:function(){return s},zz:function(){return h}});var o=i(12697),n=i(80983);let a;var r,s;!function(e){e.JPG="jpg",e.PNG="png"}(r||(r={})),function(e){e[e.None=0]="None",e[e.Letterbox=1]="Letterbox",e[e.Scale=2]="Scale",e[e.Stretch=3]="Stretch",e[e.Crop=4]="Crop",e[e.FocalCrop=5]="FocalCrop",e[e.FacialCrop=6]="FacialCrop"}(s||(s={}));const d=90,l="www.bing.com/th",c=new RegExp(/bing\.(com|net)\/th/);function h(e,t){return p(((0,n.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+e,t)}const u=Math.ceil(4*Math.random())||4;function p(e,t){if(e&&c.test(e))return function(e,t){try{return v(new URL(e),t).href}catch(i){const o=v(new URL(`https://${e}`),t);return`//${o.host}${o.pathname}${o.search}`}}(e,t);const{focalRegion:i,backgroundColor:n}=t;let{width:s=0,height:d=0,format:l=r.JPG}=t,h="";if(i){const e=m(i.x1,i.x2),t=m(i.y1,i.y2);null!=e&&null!=t&&(h+=`&x=${e}&y=${t}`)}n&&(h+=`&b=${n}`);const u=null==t.mode?6:t.mode;if(6===u&&(h+="&u=t"),t.enableDpiScaling){if(!t.devicePixelRatio)throw new Error("A valid devicePixelRatio value must be provided when DPI scaling is enabled");const e=function(e){if(g()&&a)return a;if(e<1)return null;let t=e;(0,o.Z)(4*t)||(t=Math.ceil(10*t)/10);t>3&&(t=3);g()&&(a=t);return t}(t.devicePixelRatio);e&&(s=Math.round(s*e),d=Math.round(d*e))}return`${e}?w=${s}&h=${d}&q=${t.quality||60}&m=${u}&f=${l}${h}`}function v(e,t){(0,n.P)()&&(e.hostname=`ts${u}.cn.mm.bing.net`);const{width:i=0,height:o=0}=t,a=t.quality||d,r=t.crop||1;return e.searchParams.set("w",`${i}`),e.searchParams.set("h",`${o}`),e.searchParams.set("qlt",`${a}`),e.searchParams.set("c",`${r}`),e.searchParams.set("rs","1"),t.enableDpiScaling&&(e.searchParams.set("dpr",`${t.devicePixelRatio}`),e.searchParams.set("p","0")),e}function g(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function m(e,t){if(null!=e&&null!=t)return Math.floor((e+t)/2)}},99478:function(e,t,i){"use strict";function o(e,...t){return e.replace(/{(\d+)}/g,(function(e,i){if(i>=t.length)return e;const o=t[i];return"number"==typeof o||o?o:""}))}function n(e){return!e||!e.trim()}i.d(t,{TF:function(){return n},WU:function(){return o}})},83648:function(e,t,i){var o,n;n="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==i.g?i.g:this,e.exports=function(i){"use strict";var n,a=(i=i||{}).Base64,r="2.6.4",s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=function(e){for(var t={},i=0,o=e.length;i<o;i++)t[e.charAt(i)]=i;return t}(s),l=String.fromCharCode,c=function(e){if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?l(192|t>>>6)+l(128|63&t):l(224|t>>>12&15)+l(128|t>>>6&63)+l(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return l(240|t>>>18&7)+l(128|t>>>12&63)+l(128|t>>>6&63)+l(128|63&t)},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,u=function(e){return e.replace(h,c)},p=function(e){var t=[0,2,1][e.length%3],i=e.charCodeAt(0)<<16|(e.length>1?e.charCodeAt(1):0)<<8|(e.length>2?e.charCodeAt(2):0);return[s.charAt(i>>>18),s.charAt(i>>>12&63),t>=2?"=":s.charAt(i>>>6&63),t>=1?"=":s.charAt(63&i)].join("")},v=i.btoa&&"function"==typeof i.btoa?function(e){return i.btoa(e)}:function(e){if(e.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return e.replace(/[\s\S]{1,3}/g,p)},g=function(e){return v(u(String(e)))},m=function(e){return e.replace(/[+\/]/g,(function(e){return"+"==e?"-":"_"})).replace(/=/g,"")},y=function(e,t){return t?m(g(e)):g(e)},f=function(e){return y(e,!0)};i.Uint8Array&&(n=function(e,t){for(var i="",o=0,n=e.length;o<n;o+=3){var a=e[o],r=e[o+1],d=e[o+2],l=a<<16|r<<8|d;i+=s.charAt(l>>>18)+s.charAt(l>>>12&63)+(void 0!==r?s.charAt(l>>>6&63):"=")+(void 0!==d?s.charAt(63&l):"=")}return t?m(i):i});var b,P=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,E=function(e){switch(e.length){case 4:var t=((7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3))-65536;return l(55296+(t>>>10))+l(56320+(1023&t));case 3:return l((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return l((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},w=function(e){return e.replace(P,E)},x=function(e){var t=e.length,i=t%4,o=(t>0?d[e.charAt(0)]<<18:0)|(t>1?d[e.charAt(1)]<<12:0)|(t>2?d[e.charAt(2)]<<6:0)|(t>3?d[e.charAt(3)]:0),n=[l(o>>>16),l(o>>>8&255),l(255&o)];return n.length-=[0,0,2,1][i],n.join("")},C=i.atob&&"function"==typeof i.atob?function(e){return i.atob(e)}:function(e){return e.replace(/\S{1,4}/g,x)},S=function(e){return C(String(e).replace(/[^A-Za-z0-9\+\/]/g,""))},T=function(e){return w(C(e))},I=function(e){return String(e).replace(/[-_]/g,(function(e){return"-"==e?"+":"/"})).replace(/[^A-Za-z0-9\+\/]/g,"")},A=function(e){return T(I(e))};i.Uint8Array&&(b=function(e){return Uint8Array.from(S(I(e)),(function(e){return e.charCodeAt(0)}))});var D=function(){var e=i.Base64;return i.Base64=a,e};if(i.Base64={VERSION:r,atob:S,btoa:v,fromBase64:A,toBase64:y,utob:u,encode:y,encodeURI:f,btou:w,decode:A,noConflict:D,fromUint8Array:n,toUint8Array:b},"function"==typeof Object.defineProperty){var k=function(e){return{value:e,enumerable:!1,writable:!0,configurable:!0}};i.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",k((function(){return A(this)}))),Object.defineProperty(String.prototype,"toBase64",k((function(e){return y(this,e)}))),Object.defineProperty(String.prototype,"toBase64URI",k((function(){return y(this,!0)})))}}return i.Meteor&&(Base64=i.Base64),e.exports?e.exports.Base64=i.Base64:void 0===(o=function(){return i.Base64}.apply(t,[]))||(e.exports=o),{Base64:i.Base64}}(n)},19628:function(e,t){"use strict";var i=function(){function e(){}return e.IsNullOrWhiteSpace=function(e){try{return null==e||"undefined"==e||e.toString().replace(/\s/g,"").length<1}catch(e){return console.log(e),!1}},e.Join=function(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];try{var n=i[0];if(Array.isArray(n)||n instanceof Array){for(var a=e.Empty,r=0;r<n.length;r++){var s=n[r];r<n.length-1?a+=s+t:a+=s}return a}if("object"==typeof n){var d=e.Empty,l=n;return Object.keys(n).forEach((function(e){d+=l[e]+t})),d=d.slice(0,d.length-t.length)}var c=i;return e.join.apply(e,[t].concat(c))}catch(t){return console.log(t),e.Empty}},e.Format=function(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];try{return t.match(e.regexNumber)?e.format(e.regexNumber,t,i):t.match(e.regexObject)?e.format(e.regexObject,t,i,!0):e.Empty}catch(t){return console.log(t),e.Empty}},e.format=function(t,i,o,n){return void 0===n&&(n=!1),i.replace(t,(function(t,i){var a,r=t.split(":");return r.length>1&&(i=r[0].replace("{",""),t=r[1].replace("}","")),null==(a=n?o[0][i]:o[i])||null==a||t.match(/{\d+}/)||void 0!==(a=e.parsePattern(t,a))&&null!=a?a:e.Empty}))},e.parsePattern=function(t,i){switch(t){case"L":return i.toLowerCase();case"U":return i.toUpperCase();case"d":if("string"==typeof i)return e.getDisplayDateFromString(i);if(i instanceof Date)return e.Format("{0:00}.{1:00}.{2:0000}",i.getDate(),i.getMonth(),i.getFullYear());break;case"s":if("string"==typeof i)return e.getSortableDateFromString(i);if(i instanceof Date)return e.Format("{0:0000}-{1:00}-{2:00}",i.getFullYear(),i.getMonth(),i.getDate());break;case"n":"string"!=typeof i&&(i=i.toString());var o=i.replace(/,/g,".");if(isNaN(parseFloat(o))||o.length<=3)break;var n=o.split(/[^0-9]+/g),a=n;n.length>1&&(a=[e.join.apply(e,[""].concat(n.splice(0,n.length-1))),n[n.length-1]]);var r=a[0],s=r.length%3,d=s>0?r.substring(0,s):e.Empty,l=r.substring(s).match(/.{3}/g);return(d=d+"."+e.Join(".",l))+(a.length>1?","+a[1]:"")}return"number"!=typeof i&&isNaN(i)||isNaN(+t)||e.IsNullOrWhiteSpace(i)?i:e.formatNumber(i,t)},e.getDisplayDateFromString=function(e){var t;if((t=e.split("-")).length<=1)return e;var i=t[t.length-1],o=t[t.length-2],n=t[t.length-3];return(i=(i=i.split("T")[0]).split(" ")[0])+"."+o+"."+n},e.getSortableDateFromString=function(t){var i=t.replace(",","").split(".");if(i.length<=1)return t;var o=i[i.length-1].split(" "),n=e.Empty;o.length>1&&(n=o[o.length-1]);var a=i[i.length-1].split(" ")[0]+"-"+i[i.length-2]+"-"+i[i.length-3];return!e.IsNullOrWhiteSpace(n)&&n.length>1?a+="T"+n:a+="T00:00:00",a},e.formatNumber=function(e,t){var i=t.length,o=e.toString();if(i<=o.length)return o;var n=i-o.length;return new Array(n+=1).join("0")+o},e.join=function(t){for(var i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];for(var n=e.Empty,a=0;a<i.length;a++)if(!("string"==typeof i[a]&&e.IsNullOrWhiteSpace(i[a])||"number"!=typeof i[a]&&"string"!=typeof i[a])){n+=""+i[a];for(var r=a+1;r<i.length;r++)if(!e.IsNullOrWhiteSpace(i[r])){n+=t,a=r-1;break}}return n},e.regexNumber=/{(\d+(:\w*)?)}/g,e.regexObject=/{(\w+(:\w*)?)}/g,e.Empty="",e}();t.Ld=i;var o=function(){function e(e){void 0===e&&(e=i.Empty),this.Values=[],this.Values=new Array(e)}return e.prototype.ToString=function(){return this.Values.join("")},e.prototype.Append=function(e){this.Values.push(e)},e.prototype.AppendFormat=function(e){for(var t=[],o=1;o<arguments.length;o++)t[o-1]=arguments[o];this.Values.push(i.Format.apply(i,[e].concat(t)))},e.prototype.Clear=function(){this.Values=[]},e}()},28195:function(e,t,i){"use strict";i.d(t,{x:function(){return n}});var o=i(48839);class n extends o.I{handleImageContentChange(){this.imageContainer.classList.toggle("image",this.image.assignedNodes().length>0)}}},76445:function(e,t,i){"use strict";i.d(t,{B4:function(){return h}});var o=i(28195),n=i(39181),a=i(58952);var r=i(53046),s=i(67020),d=i(40082),l=i(32804),c=i(15933);const h=o.x.compose({baseName:"attribution",template:(e,t)=>n.d`
    <span part="image" ${(0,a.i)("imageContainer")}>
        <slot
            name="image"
            ${(0,a.i)("image")}
            @slotchange=${e=>e.handleImageContentChange()}
        ></slot>
    </span>
    <span part="content" class="content">
        <slot></slot>
    </span>
`,styles:(e,t)=>r.i`
        ${(0,s.j)("inline-flex")} :host {
            box-sizing: border-box;
            font-family: ${l.SVJ};
            font-size: ${l.sNp};
            font-weight: 400;
            line-height: ${l.vgC};
            align-items: center;
            color: ${l.Q5n};
            min-height: 16px;
        }

        .content {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
        }

        .image {
            display: flex;
            margin-inline-end: calc(${l._5n} * 2px);
        }
    `.withBehaviors((0,d.vF)(r.i`
                :host,
                .content {
                    color: ${c.H.CanvasText};
                    fill: currentcolor;
                }
            `))})},55978:function(e,t,i){"use strict";i.d(t,{$:function(){return o},u:function(){return l}});var o,n=i(33940),a=i(65620),r=i(87697),s=i(48839),d=i(6540);!function(e){e.default="default",e.condensed="condensed",e.infoPane="infoPane",e.infoPane1x3y="infoPane1x3y",e.infoPaneSplitVertical="infoPaneSplitVertical",e.infoPaneSplitHorizontal="infoPaneSplitHorizontal"}(o||(o={}));class l extends s.I{constructor(){super(...arguments),this.layout=o.default,this.headinglevel=3}handleStartActionsContentChange(){this.startActionsContainer.classList.toggle("start-actions",this.startActions.assignedNodes().length>0),this.hasFooter=this.endActions.assignedNodes().length>0}handleEndActionsContentChange(){this.endActionsContainer.classList.toggle("end-actions",this.endActions.assignedNodes().length>0),this.hasFooter=this.endActions.assignedNodes().length>0}abstractChanged(){this.$fastController.isConnected&&(this.hasAbstract=this.abstract.length>0)}handleMediaContentChange(){this.mediaContainer.classList.toggle("media",this.media.assignedNodes().length>0)}handleBackgroundImageContentChange(){this.backgroundImageContainer.classList.toggle("background-image",this.backgroundImage.assignedNodes().length>0)}handleContentCardLinkClick(e){return this.$emit("link-invoked",e),!0}connectedCallback(){super.connectedCallback(),this.addEventListener("mouseover",this.mouseOver),this.addEventListener("mouseout",this.mouseOut),this.addEventListener("focusin",this.focusIn),this.addEventListener("focusout",this.focusOut)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("mouseover",this.mouseOver),this.removeEventListener("mouseout",this.mouseOut),this.removeEventListener("focusin",this.focusIn),this.removeEventListener("focusout",this.focusOut)}mouseOver(){this.setExpanded(!0),this.hasHover=!0}mouseOut(){this.hasFocus||this.setExpanded(!1),this.hasHover=!1}focusIn(){this.setExpanded(!0),this.hasFocus=!0}focusOut(){this.hasHover||this.setExpanded(!1),this.hasFocus=!1}filteredContentIndicator(){return this.contentIndicatorNodes.filter((e=>e instanceof d.K))}setExpanded(e){this.filteredContentIndicator().forEach((t=>t.expanded=e))}}(0,n.gn)([a.Lj],l.prototype,"layout",void 0),(0,n.gn)([(0,a.Lj)({attribute:"heading-level",mode:"fromView",converter:a.Id})],l.prototype,"headinglevel",void 0),(0,n.gn)([(0,a.Lj)({mode:"fromView"})],l.prototype,"href",void 0),(0,n.gn)([r.LO],l.prototype,"anchorTelemetryTag",void 0),(0,n.gn)([r.LO],l.prototype,"mediaNodes",void 0),(0,n.gn)([r.LO],l.prototype,"hasAbstract",void 0),(0,n.gn)([r.LO],l.prototype,"hasFooter",void 0),(0,n.gn)([r.LO],l.prototype,"abstract",void 0),(0,n.gn)([r.LO],l.prototype,"iconSlottedNodes",void 0),(0,n.gn)([(0,a.Lj)({attribute:"image-priority",mode:"boolean"})],l.prototype,"imagePriority",void 0),(0,n.gn)([a.Lj],l.prototype,"target",void 0),(0,n.gn)([r.LO],l.prototype,"hoverActionsSlottedNodes",void 0),(0,n.gn)([r.LO],l.prototype,"contentIndicatorNodes",void 0)},71095:function(e,t,i){"use strict";i.d(t,{On:function(){return P}});var o=i(55978),n=i(39181),a=i(58952),r=i(81422),s=i(74009),d=i(13988),l=i(90960);const c=n.d`
    <div
        class="footer ${e=>e.hasAbstract?"has-abstract-footer":""} ${e=>e.hasFooter?"":"footer__hidden"}"
        part="footer"
    >
        <span part="start-actions" ${(0,a.i)("startActionsContainer")}>
            <slot
                name="start-actions"
                ${(0,a.i)("startActions")}
                @slotchange=${e=>e.handleStartActionsContentChange()}
            ></slot>
        </span>
        <span part="end-actions" ${(0,a.i)("endActionsContainer")}>
            <slot
                name="end-actions"
                ${(0,a.i)("endActions")}
                @slotchange=${e=>e.handleEndActionsContentChange()}
            ></slot>
        </span>
    </div>
`;var h=i(67020),u=i(56201),p=i(40082),v=i(53046),g=i(15933),m=i(32804),y=i(22674);const f=v.i`
    .hover-actions {
        right: 8px;
    }

    .icon {
        left: 0;
    }

    :host([layout="default"]) .media-wrapper {
        float: right;
    }

    :host([layout="infoPane1x3y"]) ::slotted([slot="content-indicator"]),
    :host([layout="infoPane"]) ::slotted([slot="content-indicator"]),
    .media-wrapper ::slotted([slot="content-indicator"]) {
        left: 8px;
    }
`,b=v.i`
    .hover-actions {
        left: 8px;
    }

    .icon {
        right: 0;
    }

    :host([layout="default"]) .media-wrapper {
        float: left;
    }

    :host([layout="infoPane1x3y"]) ::slotted([slot="content-indicator"]),
    :host([layout="infoPane"]) ::slotted([slot="content-indicator"]),
    .media-wrapper ::slotted([slot="content-indicator"]) {
        right: 8px;
    }
`,P=o.u.compose({baseName:"content-card",template:(e,t)=>n.d`
    <template
        ${(0,r.p)({property:"mediaNodes",filter:(0,s.R)("[slot='media'], [slot='icon']")})}
    >
        <span part="background-image" ${(0,a.i)("backgroundImageContainer")}>
            <slot
                name="background-image"
                ${(0,a.i)("backgroundImage")}
                @slotchange=${e=>e.handleBackgroundImageContentChange()}
            ></slot>
        </span>
        <div class="mask" part="mask"></div>
        <div class="body ${e=>e.hasAbstract?"has-abstract":""}" part="body">
            ${(0,d.g)((e=>{var t;return(null===(t=e.mediaNodes)||void 0===t?void 0:t.length)>0}),n.d` <div class="media-wrapper" part="media-wrapper">
                    <div part="media" ${(0,a.i)("mediaContainer")}>
                        <slot
                            name="media"
                            ${(0,a.i)("media")}
                            @slotchange=${e=>e.handleMediaContentChange()}
                        ></slot>
                        <slot
                            name="content-indicator"
                            ${(0,l.Q)("contentIndicatorNodes")}
                        ></slot>
                        <span
                            part="icon"
                            ${(0,a.i)("iconContainer")}
                            class="${e=>e.iconSlottedNodes&&e.iconSlottedNodes.length?"icon":"icon__hidden"}"
                        >
                            <slot
                                name="icon"
                                ${(0,a.i)("icon")}
                                ${(0,l.Q)("iconSlottedNodes")}
                            ></slot>
                        </span>
                    </div>
                </div>`)}
            <div class="heading-container" part="heading-container">
                ${(0,d.g)((e=>{var t;return 0===(null===(t=e.mediaNodes)||void 0===t?void 0:t.length)}),n.d`
                        <slot
                            name="content-indicator"
                            ${(0,l.Q)("contentIndicatorNodes")}
                        ></slot>
                    `)}
                <slot name="attribution"></slot>
                <span
                    class="heading-wrapper"
                    part="heading-wrapper"
                    role="heading"
                    aria-level=${e=>e.headinglevel}
                >
                    <a
                        class="heading"
                        part="heading"
                        href=${e=>e.href?e.href:void 0}
                        target=${e=>e.target?e.target:void 0}
                        @click=${(e,t)=>e.handleContentCardLinkClick(t.event)}
                        data-t="${e=>e.anchorTelemetryTag}"
                        ><slot></slot
                    ></a>
                </span>
            </div>
            <div class="abstract" part="abstract">
                <slot name="abstract" ${(0,l.Q)("abstract")}></slot>
            </div>
            <slot name="call-to-action"></slot>
            ${(0,d.g)((e=>e.layout!==o.$.default),c)}
        </div>
        ${(0,d.g)((e=>e.layout===o.$.default),c)}
        <span
            part="hover-actions"
            class="${e=>e.hoverActionsSlottedNodes&&e.hoverActionsSlottedNodes.length?"hover-actions":"hover-actions__hidden"}"
        >
            <slot name="hover-actions" ${(0,l.Q)("hoverActionsSlottedNodes")}></slot>
        </span>
    </template>
`,styles:(e,t)=>v.i`
    ${(0,h.j)("flex")} :host {
        --icon-size: 24px;
        position: relative;
        width: auto;
        box-sizing: border-box;
        font-family: ${m.SVJ};
        flex-direction: column;
        outline: none;
        height: 100%;
        overflow: hidden;
    }

    :host(:hover) .hover-actions {
        opacity: 1;
        transition: opacity 0.2s ease-in-out;
    }

    :host(:hover) .background-image,
    :host(:hover) .media {
        filter: brightness(0.9);
    }

    .body {
        display: grid;
        justify-content: center;
        row-gap: 8px;
        column-gap: 10px;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto;
    }

    :host([layout="default"]) .body .abstract {
        display: none;
    }

    :host([layout="default"]) .body {
        display: block;
    }

    :host([layout="default"]) .has-abstract .heading {
        -webkit-line-clamp: var(--heading-max-lines, 2);
    }

    :host([layout="default"]) .has-abstract .media-wrapper {
        margin-inline-start: 16px;
    }

    :host([image-priority]) .has-abstract .media-wrapper {
        margin-inline-start: 0;
    }

    .footer {
        padding-inline-start: var(--footer-start-padding, 16px);
        padding-inline-end: var(--footer-start-padding, 16px);
        padding-top: var(--footer-padding-top, 0);
        padding-bottom: var(--footer-padding-bottom, 4px);
        margin-top: auto;
        font-size: var(--footer-font-size, ${m.sNp});
        line-height: var(--footer-line-height, ${m.vgC});
    }

    .footer,
    .start-actions,
    .end-actions {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        color: ${m.Q5n};
        fill: ${m.Q5n};
    }

    .footer__hidden {
        display: none;
    }

    .hover-actions {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 8px;
        z-index: 2;
        opacity: 0;
    }

    .hover-actions__hidden {
        display: none;
    }

    .hover-actions:focus-within {
        opacity: 1;
    }

    .heading-container {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        padding-inline-start: var(--heading-start-padding, 16px);
        padding-inline-end: var(--heading-end-padding, 16px);
        padding-bottom: 0;
        padding-top: 16px;
    }

    .heading-wrapper a:after {
        bottom: 0;
        content: "";
        height: 100%;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        width: 100%;
        z-index: 1;
    }

    :host([layout="condensed"]) .body {
        gap: 0;
    }

    :host([layout="condensed"]) .footer {
        grid-row: 2;
        grid-column-start: 1;
        grid-column-end: var(--footer-grid-column-end, auto);
        padding-inline-start: 16px;
    }

    :host([layout="condensed"]) .media-wrapper {
        position: relative;
        grid-row: 1 / span 2;
        margin-top: 5px;
    }

    :host([layout="condensed"]) .heading-container {
        padding-top: 0px;
        --heading-end-padding: 12px;
    }

    :host([layout="condensed"]) ::slotted([slot="attribution"]) {
        margin-bottom: 0px
    }

    .icon {
        position: absolute;
        display: inline-flex;
        top: auto;
        bottom: 0;
        justify-content: center;
        align-items: center;
        margin: 0 0 4px 0;
        margin-inline-start: 4px;
    }

    .icon__hidden {
        display: none;
    }

    ::slotted([slot="icon"]) {
        width: var(--icon-size);
        height: var(--icon-size);
        fill: #FFF;
    }

    ::slotted([slot="attribution"]) {
        margin-bottom: 6px
    }

    ::slotted([slot="abstract"]) {
        margin: 2px 0;
    }

    .media-wrapper {
        grid-row: 1;
        grid-column: 2;
        margin-inline-end: var(--media-inline-padding, 16px);
        margin-top: 16px;
    }

    .media {
        display: flex;
        position: relative;
    }

    :host([image-priority]) .heading {
        -webkit-line-clamp: var(--heading-max-lines, 2);
    }

    :host([image-priority]) .body {
        grid-template-columns: 1;
    }

    :host([image-priority]) .media-wrapper {
        grid-row: 1;
        grid-column: span 2;
        margin: 0;
    }

    :host([image-priority]) .heading-container {
        grid-row: 2;
        grid-column: span 2;
        padding-top: 10px;
        padding-inline-start: var(--heading-start-padding, 16px);
    }

    :host([image-priority]) ::slotted([slot="media"]),
    :host([layout="infoPaneSplitHorizontal"]) ::slotted([slot="media"]) {
        border-radius: 0px;
    }

    :host([layout="infoPane"]) .media-wrapper, :host([layout="infoPane1x3y"]) .media-wrapper {
        grid-row: 1;
        grid-column: 1;
        margin-top: 0;
        width: fit-content;
        height: fit-content;
    }

    :host([layout="infoPane"]) .icon, :host([layout="infoPaneSplitVertical"]) .icon, :host([layout="infoPane1x3y"]) .icon {
        display: inline;
        left: 0;
        top: 0;
        margin: 4px 0 0;
        margin-inline-start: 4px;
    }

    :host([layout="infoPaneSplitVertical"]) .icon {
        display: block;
    }

    :host([layout="infoPaneSplitHorizontal"]) .icon {
        bottom: 0px;
    }
    
    :host([layout="infoPaneSplitHorizontal"]) .heading-container,
    :host([layout="infoPane"]) .heading-container, :host([layout="infoPane1x3y"]) .heading-container {
        align-self: end;
    }

    :host([layout="infoPaneSplitHorizontal"]) .body,
    :host([layout="infoPane"]) .body, :host([layout="infoPane1x3y"]) .body {
        height: 100%;
        grid-template-rows: 1fr auto;
    }

    ::slotted([slot="call-to-action"]) {
        width: calc(100% - 32px);
        grid-row: 3;
        z-index: 1;
        grid-column: 1 / span 2;
        margin: 0 16px;
    }

    ::slotted([slot="media"]) {
        border-radius: calc(var(--content-card-corner-radius, 2) * 2px)
    }

    :host([layout="default"]) .has-abstract .abstract {
        display: block;
        padding: 0 16px 16px 16px;
    }

    .abstract {
        position: relative;
        margin: 0;
        font-size: var(--abstract-font-size, ${m.cSu});
        line-height: var(--abstract-line-height, ${m.RUt});
        font-weight: 400;
        grid-column: span 2;
        box-sizing: content-box;
        color: ${m.Q5n};
        padding: 0 16px;
    }

    ::slotted([slot="start-actions"]),
    ::slotted([slot="end-actions"]) {
        z-index: 2;
        display: grid;
        gap: 5px;
        align-items: center;
        grid-auto-flow: column;
    }

    ::slotted([slot="call-to-action"]) {
        z-index: 2;
    }

    ::slotted(fluent-button[slot="start-actions"]),
    ::slotted(fluent-button[slot="end-actions"]) {
        color: ${m.Q5n};
        fill: ${m.Q5n};
    }
    
    ::slotted(fluent-button[appearance="stealth"]:not(:hover)), :slotted([slot="hover-actions"]:not(:hover)) {
        background: transparent;
    }

    .heading {
        text-decoration: none;
        outline: none;
        color: ${m.CHi};
        font-size: var(--heading-font-size, ${m.PwC});
        line-height: var(--heading-line-height, ${m.b3W});
        font-weight: 600;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: var(--heading-max-lines, 3);
        white-space: initial;
    }

    .mask {
        display: none;
    }

    .heading:hover,
    .heading:${u.b} {
        text-decoration: underline;
    }

    .heading::after {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    :host([layout="infoPane"]), :host([layout="infoPane1x3y"]) {
        justify-content: flex-end;
        border: none;
    }

    :host(:not([layout="infoPane"])) .has-abstract-footer, :host(:not([layout="infoPane1x3y"])) .has-abstract-footer {
        position: absolute;
        bottom: 0;
        right: 0;
        left: 0;
        background: ${m.IfY};
        box-shadow: 0px -25px 15px ${m.IfY};
    }

    :host([layout="infoPane"]) .heading-container, :host([layout="infoPane1x3y"]) .heading-container {
        grid-column: 1 / 3;
        z-index: 1;
    }

    :host([layout="infoPane"]) .has-abstract .heading-container, :host([layout="infoPane1x3y"]) .has-abstract .heading-container  {
        grid-area: 2/ 1 / span 2 / auto;
        --heading-start-padding: 16px;
        --heading-end-padding: 0;
        padding-bottom: 12px;
        padding-top: 8px;
        align-self: flex-start;
    }

    :host([layout="infoPane"]) .abstract, :host([layout="infoPane1x3y"]) .abstract, :host([layout="infoPaneSplitHorizontal"]) .abstract  {
        grid-row: 2;
        grid-column: 2;
        color: ${m.CHi};
        padding: 8px 16px 0 16px;
        align-self: end;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    :host([layout="infoPane"]) .abstract, :host([layout="infoPane1x3y"]) .abstract  {
        display: none;
    }

    :host([layout="infoPane"]) .has-abstract, :host([layout="infoPane1x3y"]) .has-abstract {
        grid-template-columns: 1fr 1fr;
        gap: 0 10px;
    }

    :host([layout="infoPane"]) .has-abstract .footer, :host([layout="infoPane1x3y"]) .has-abstract .footer {
        min-height: calc(40px - 4px);
    }

    :host([layout="infoPane"]) .has-abstract .abstract, :host([layout="infoPane1x3y"]) .has-abstract .abstract {
        display: -webkit-box;
        align-self: flex-end;
    }

    :host([layout="infoPane"]) .mask, :host([layout="infoPane1x3y"]) .mask {
        display: flex;
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: var(--mask-gradient, linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0,0,0,0) 176px));
    }
    
    :host([layout="infoPane1x3y"]) .mask {
        background-image: var(--mask-gradient, linear-gradient(rgba(0, 0, 0, 0), rgba(0,0,0,1) 69px, rgba(0,0,0,1)));
        top: 257px;
    }

    :host([layout="infoPane"]) .has-abstract .has-abstract-footer, :host([layout="infoPane1x3y"]) .has-abstract .has-abstract-footer {
        grid-row: 3;
        grid-column: 2;
        position: inherit;
        align-self: flex-end;
        max-height: 40px;
    }

    :host([layout="infoPane"]) .footer, :host([layout="infoPane1x3y"]) .footer  {
        margin-top: unset;
        grid-row: 2;
        grid-column: 1 / span 2;
        padding-inline-start: 16px;
        padding-inline-end: 16px;
    }


    :host([layout="infoPane"]) ::slotted(msft-attribution[slot="attribution"]), :host([layout="infoPane1x3y"]) ::slotted(msft-attribution[slot="attribution"]) {
        color: ${m.CHi};
        text-shadow: 0px 0.4px 0.9px rgba(0, 0, 0, 0.13), 0px 0px 2.22px rgba(0, 0, 0, 0.11);
    }


    :host([layout="infoPaneSplitVertical"]) {
        grid-template-columns: 304px 1fr;
        grid-template-rows: auto;
        background: ${m.IfY};
    }

    :host([layout="infoPaneSplitVertical"]) ::slotted([slot="media"]) {
        border-radius: 0px;
    }

    :host([layout="infoPaneSplitVertical"]) .media-wrapper {
        grid-row: 1 / span 2;
        grid-column: 1;
        margin: 0;
    }

    :host([layout="infoPaneSplitVertical"]) .heading-container {
        grid-row: 1;
        grid-column: 2;
        --heading-start-padding: 4px;
        --heading-end-padding: 16px;
        padding-bottom: 0;
        padding-top: 16px;
    }

    :host([layout="infoPaneSplitVertical"]) .footer {
        grid-row: 2;
        grid-column: 2;
        padding-inline-start: 0;
        padding-inline-end: 16px;
        padding-top: 0;
    }

    :host([layout="infoPaneSplitHorizontal"]) .body {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 326px auto auto;
        row-gap: 4px;
        background: ${m.IfY};
    }

    :host([layout="infoPaneSplitHorizontal"]) .media-wrapper {
        grid-column: 1 / span 2;
        margin: 0;
    }

    :host([layout="infoPaneSplitHorizontal"]) .heading-container {
        grid-column: 1;
        grid-row: 2 / span 2;
        --heading-start-padding: 16px;
        --heading-end-padding: 0;
        padding-bottom: 12px;
        padding-top: 12px;
    }

    :host([layout="infoPaneSplitHorizontal"]) .footer {
        grid-column: 2;
        grid-row: 3;
        box-shadow: none;
    }

    :host([layout="infoPaneSplitHorizontal"]) .abstract {
        color: inherit;
        align-self: inherit;
        padding: 12px 16px 0 16px;
    }

    .background-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    :host([layout="infoPane1x3y"]) .background-image {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 136px;
    }

    .background-image ::slotted(img) {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    :host([layout="infoPane1x3y"]) ::slotted([slot="content-indicator"]),
    :host([layout="infoPane"]) ::slotted([slot="content-indicator"]),
    .media-wrapper ::slotted([slot="content-indicator"]) {
        position: absolute;
        top: 8px;
        z-index: 1;
    }

    ::slotted([slot="content-indicator"]) {
        margin-bottom: 26px;
        align-self: flex-start;
    }

`.withBehaviors(new y.O(f,b),(0,p.vF)(v.i`
                .heading {
                    color: ${g.H.LinkText};
                    background: ${g.H.ButtonFace};
                }
                .abstract {
                    color: ${g.H.ButtonText};
                }
                .icon {
                    background-color: #000;
                    height: fit-content;
                }
                :host([layout="infoPane"]) .abstract,
                :host([layout="infoPane1x3y"]) .abstract,
                :host([layout="infoPaneSplitHorizontal"]) .abstract {
                    color: ${g.H.ButtonText};
                    background: ${g.H.ButtonFace};
                }
                .footer,
                .start-actions,
                .end-actions,
                ::slotted([slot="start-actions"]),
                ::slotted([slot="end-actions"]) {
                    background: ${g.H.ButtonFace};
                    color: ${g.H.ButtonText};
                    fill: currentcolor;
                }
                :host([layout="infoPane"]) .mask,
                :host([layout="infoPane1x3y"]) .mask {
                    background-image: none;
                }
                :host([layout="infoPane"]) .has-abstract .footer,
                :host([layout="infoPane1x3y"]) .has-abstract .footer,
                :host([layout="infoPane"]) .footer,
                :host([layout="infoPane1x3y"]) .footer,
                :host(:not([layout="infoPane"])) .has-abstract-footer,
                :host(:not([layout="infoPane1x3y"])) .has-abstract-footer {
                    background: ${g.H.ButtonFace};
                    box-shadow: none;
                }
                ::slotted(fluent-button[appearance="stealth"]:not(:hover)) {
                    background: ${g.H.ButtonFace};
                }
            `)),shadowOptions:{delegatesFocus:!0}})},6540:function(e,t,i){"use strict";i.d(t,{K:function(){return s}});var o=i(33940),n=i(65620),a=i(87697),r=i(48839);class s extends r.I{constructor(){super(...arguments),this.expanded=!1}defaultItemsChanged(){this.$fastController.isConnected&&(this.shouldanimate=this.defaultItems.length>0)}}(0,o.gn)([(0,n.Lj)({mode:"boolean"})],s.prototype,"expanded",void 0),(0,o.gn)([a.LO],s.prototype,"defaultItems",void 0),(0,o.gn)([(0,n.Lj)({mode:"boolean",attribute:"animate"})],s.prototype,"shouldanimate",void 0)},69298:function(e,t,i){"use strict";i.d(t,{Zb:function(){return b},F:function(){return E},ay:function(){return P}});var o=i(33940),n=i(65130),a=i(97186),r=i(22680),s=i(87697),d=i(65620),l=i(48657),c=i(32804),h=i(42355),u=i(42255),p=i(53046),v=i(67020),g=i(40082),m=i(87839),y=i(62734);const f=(e,t)=>p.i`
        ${(0,v.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);
            ${y.XC}
        }

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

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

        :host {
            content-visibility: auto;
        }
    `.withBehaviors((0,g.vF)(p.i`
                :host {
                    forced-color-adjust: none;
                    background: ${m.H.Canvas};
                    box-shadow: 0 0 0 1px ${m.H.CanvasText};
                }
            `));class b extends n.Z{cardFillColorChanged(e,t){if(t){const e=(0,a.in)(t);null!==e&&(this.neutralPaletteSource=t,c.IfY.setValueFor(this,h.w.create(e.r,e.g,e.b)))}}neutralPaletteSourceChanged(e,t){if(t){const e=(0,a.in)(t),i=h.w.create(e.r,e.g,e.b);c.yvm.setValueFor(this,u.v.create(i))}}handleChange(e,t){this.cardFillColor||c.IfY.setValueFor(this,(t=>c.abR.getValueFor(t).evaluate(t,c.IfY.getValueFor(e))))}connectedCallback(){super.connectedCallback();const e=(0,r.T)(this);if(e){const t=s.y$.getNotifier(e);t.subscribe(this,"fillColor"),t.subscribe(this,"neutralPalette"),this.handleChange(e,"fillColor")}}}(0,o.gn)([(0,d.Lj)({attribute:"card-fill-color",mode:"fromView"}),(0,o.w6)("design:type",String)],b.prototype,"cardFillColor",void 0),(0,o.gn)([(0,d.Lj)({attribute:"neutral-palette-source",mode:"fromView"}),(0,o.w6)("design:type",String)],b.prototype,"neutralPaletteSource",void 0);const P=b.compose({baseName:"card",baseClass:n.Z,template:l.O,styles:f}),E=f},65130:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var o=i(48839);class n extends o.I{}},48657:function(e,t,i){"use strict";i.d(t,{O:function(){return n}});var o=i(39181);const n=(e,t)=>o.d`
    <slot></slot>
`},12697:function(e,t,i){"use strict";var o=i(84708);t.Z=function(e){return"number"==typeof e&&e==(0,o.Z)(e)}}}]);A
Eo