title}</span>
            </div>
        </msft-content-card>
    </fluent-card>
`,J=T.d`
    <msft-stripe
        speed="4000"
        data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.newsSegmentCarousel}}"
    >
        <div slot="heading">
            ${(0,k.g)((e=>{var t,o;return null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.title}),O)}
            ${(0,k.g)((e=>{var t,o;return null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.enableAboutSlug}),F)}
        </div>
        <div slot="description">
            <span class="carousel-description">${e=>{var t,o;return null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.desc}}</span>
        </div>
        <div slot="previous-flipper">
            <fluent-flipper direction="previous" data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.newsSegmentCarouselPreviousSlide}}"></fluent-flipper>
        </div>
        <div slot="next-flipper">
            <fluent-flipper data-t="${e=>{var t;return null===(t=e.telemetryContext)||void 0===t?void 0:t.newsSegmentCarouselNextSlide}}"></fluent-flipper>
        </div>
        ${(0,k.g)((e=>{var t,o;return null===(o=null===(t=e.carouselData)||void 0===t?void 0:t.header)||void 0===o?void 0:o.seeAll}),M)}
        ${(0,W.rx)((e=>{var t;return null===(t=e.carouselData)||void 0===t?void 0:t.cardData}),T.d`${e=>(e=>"ContentCard"===e.cardType?N:Y)(e)}`,{positioning:!0})}
    </msft-stripe>
`;var B=o(22674),Z=o(53046);const K=Z.i`
    .msft-stripe .about-slug-glyph {
        left: 5px;
    }
`,X=Z.i`
    .msft-stripe .about-slug-glyph {
        right: 5px;
    }
`,ee=Z.i`
    msft-stripe {
        display: block;
        --fill-color: transparent;
        --scroll-item-spacing: 12px;
        margin: 20px 0;
    }
    msft-stripe .about-slug-glyph {
        position: relative;
        top: 1px;
        fill: var(--neutral-foreground-rest);
    }
    msft-stripe > .action {
        margin-top: 17px;
    }
    msft-stripe .carousel-title {
        color: inherit;
        text-decoration: none;
    }
    msft-stripe a.carousel-title:hover {
        text-decoration: underline;
    }
    msft-stripe .title-end-icon {
        margin-inline-start: 8px;
    }
    msft-stripe .carousel-description {
        font-weight: 400;
    }
    msft-stripe::part(scroll-next), msft-stripe::part(scroll-prev) {
        z-index: 1;
    }
    msft-content-card::part(media-wrapper) {
        margin: 0;
    }
    msft-content-card::part(heading-container) {
        padding: 12px 12px 8px;
    }
    msft-content-card::part(footer) {
        margin-bottom: 12px;
        padding-start: 12px;
        display: flex;
    }
    msft-content-card::part(heading) {
        line-height: 22px;
        -webkit-line-clamp: var(--heading-max-lines, 3);
    }
    msft-content-card .content-card-title {
        font-size: 14px;
        line-height: 20px;
    }
    msft-content-card .carousel-card-abstract {
        max-height: 138px;
        margin-top: 10px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 5;
        -webkit-box-orient: vertical;
    }
    /************
    Styles for specific cards
    ************/
    /*
    Select
     */
    msft-stripe > fluent-card.carousel-card {
        height: 286px;
        width: 220px;
    }

    /**
     * Styles for category card
     */
    msft-stripe > fluent-card.category-fluent-card {
        background-color: transparent;
        box-shadow: none;
        height: 242px;
        width: 180px;
    }
    msft-content-card.category-content-card::part(body) {
        height: 100%;
    }
    msft-content-card.category-content-card::part(heading-container) {
        cursor: pointer;
        height: 100%;
        justify-content: center;
    }
    msft-content-card.category-content-card .category-content-wrapper {
        display: flex;
        flex-direction: column;
    }
    msft-content-card.category-content-card .category-card-icon {
        align-self: center;
    }
    msft-content-card.category-content-card .category-card-title {
        font-size: 12px;
        padding-top: 10px;
        width: fit-content;
        align-self: center;
    }
`.withBehaviors(new B.O(X,K)),te={experienceConfigSchema:p};a.K.getOrCreate().withShadowRootMode("open").withElementDisambiguation((()=>a.h.ignoreDuplicate)).withPrefix("msft").register((0,n.PY)(),(0,i.tH)(),(0,r.On)())},21858:function(e,t,o){o.d(t,{Go:function(){return a},TR:function(){return l},Y6:function(){return d},Yw:function(){return c}});var n=o(94516);const i=new RegExp("\\:([\\d]{2})");function r(){return new Date}function a(e){return(r().getTime()-e.getTime())/1e3}function s(e,t){return new Date(e.getFullYear(),e.getMonth(),e.getDate()+t,e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function l(e,t){return new Date(e.valueOf()+60*t*60*1e3)}function d(e,t){const o=parseInt(t),n=parseInt(i.exec(t)[1]),r=o<0?-1:1,a=new Date(e.getTime()+60*(60*o+r*n)*1e3),s=`0${Math.abs(o)}`.substr(-2)+":"+`0${Math.abs(n)}`.substr(-2);return a.toISOString().replace("Z",(r<0?"-":"+")+s)}function c(e){const t=a(e),o=function(){const e=r();return e.setHours(0,0,0,0),e}(),i=s(o,-1),l=s(o,-6),d=function(){const e=r();return new Date(e.getFullYear(),0,0,0,0,0,0)}();return t>=-3300&&t<-60?n.i.InMinutes:t<0?n.i.None:t<120?n.i.JustNow:t<3600?n.i.LessThanOneHour:e>=o?n.i.Today:e>=i?n.i.Yesterday:e>=l?n.i.ThisWeek:e>=d?n.i.ThisYear:n.i.FullDate}},79703:function(e,t,o){o.d(t,{$:function(){return r}});var n,i=o(19628);!function(e){e[e.Default=0]="Default",e[e.Medium=1]="Medium",e[e.MonthDate=2]="MonthDate",e[e.Weekday=3]="Weekday",e[e.Time=4]="Time"}(n||(n={}));class r{constructor(){this.dateFormatOptionsMap=new Map,this.setSupportsLocaleSpecifiers(),this.dateFormatOptionsMap.set(n.Medium,{year:"numeric",month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(n.MonthDate,{month:"short",day:"numeric"}),this.dateFormatOptionsMap.set(n.Weekday,{weekday:"short"}),this.dateFormatOptionsMap.set(n.Time,{hour:"numeric",minute:"numeric"})}overrideDateFormat(e,t){e&&t&&this.dateFormatOptionsMap.set(e,t)}localizedDateString(e,t){return this.formatDate(e,n.Default,t)}localizedDateStringMedium(e,t){return this.formatDate(e,n.Medium,t)}localizedMonthDate(e,t){return this.formatDate(e,n.MonthDate,t)}localizedWeekday(e,t){return this.formatDate(e,n.Weekday,t)}formatTimeFromDate(e,t){return this.supportsLocaleSpecifiers&&this.dateFormatOptionsMap?e.toLocaleTimeString(t,this.dateFormatOptionsMap.get(n.Time)):e.toTimeString()}format(e,...t){return e?i.Ld.Format(e,...t):""}localizedNumberString(e,t){return this.supportsLocaleSpecifiers?e.toLocaleString(t):e.toString()}formatDate(e,t,o){let i=null;if(this.supportsLocaleSpecifiers)if(t===n.Default)i=e.toLocaleDateString(o);else if(this.dateFormatOptionsMap){const n=this.dateFormatOptionsMap.get(t);i=e.toLocaleDateString(o,n)}return null===i&&(i=e.toDateString()),null!==i?i.replace(/\u200E/g,"").replace(/\u200F/g,""):i}setSupportsLocaleSpecifiers(){this.supportsLocaleSpecifiers=(()=>{try{(0).toLocaleString("i")}catch(e){return"RangeError"===e.name}return!1})()}}},94516:function(e,t,o){var n;o.d(t,{i:function(){return n}}),function(e){e[e.None=0]="None",e[e.JustNow=1]="JustNow",e[e.LessThanOneHour=2]="LessThanOneHour",e[e.Today=3]="Today",e[e.Yesterday=4]="Yesterday",e[e.ThisWeek=5]="ThisWeek",e[e.ThisYear=6]="ThisYear",e[e.FullDate=7]="FullDate",e[e.InMinutes=8]="InMinutes"}(n||(n={}))},11363:function(e,t,o){o.d(t,{fh:function(){return c},Xk:function(){return u}});var n=o(79703),i=o(94516),r=o(21858);class a{constructor(e,t,o){this.timeLocStrings=e,this.locale=t,this.locUtility=o}transform(e,t,o){const n=3600,a=86400;if(!e)return"";if(!this.locUtility.supportsLocaleSpecifiers)return t;const s=(0,r.Go)(e);switch((0,r.Yw)(e)){case i.i.None:return"";case i.i.JustNow:return this.timeLocStrings.JustNow;case i.i.LessThanOneHour:return this.timespanString(s,s<120?this.timeLocStrings.NumberMinuteAgo:this.timeLocStrings.NumberMinutesAgo,60);case i.i.Today:return this.timespanString(s,s<7200?this.timeLocStrings.NumberHourAgo:this.timeLocStrings.NumberHoursAgo,n);case i.i.Yesterday:if(0===o){const t=this.timeLocStrings.TimeYesterday;return this.locUtility.format(t,this.locUtility.formatTimeFromDate(e,this.locale))}return s<a?this.timespanString(s,s<7200?this.timeLocStrings.NumberHourAgo:this.timeLocStrings.NumberHoursAgo,n):this.timespanString(s,s<172800?this.timeLocStrings.NumberDayAgo:this.timeLocStrings.NumberDaysAgo,a);case i.i.ThisWeek:return 0===o?this.locUtility.format(this.timeLocStrings.TimeDayOfWeek,this.locUtility.localizedWeekday(e,this.locale),this.locUtility.formatTimeFromDate(e,this.locale)):this.timespanString(s,s<172800?this.timeLocStrings.NumberDayAgo:this.timeLocStrings.NumberDaysAgo,a);case i.i.ThisYear:return this.locUtility.localizedMonthDate(e,this.locale);default:return this.locUtility.localizedDateStringMedium(e,this.locale)}}timespanString(e,t,o){const n=Math.floor(e/o);return this.locUtility.format(t,this.locUtility.localizedNumberString(n,this.locale))}}const s={JustNow:"Just Now",NumberMinuteAgo:"{0} minute ago",NumberMinutesAgo:"{0} minutes ago",NumberHourAgo:"{0} hour ago",NumberHoursAgo:"{0} hours ago",NumberDayAgo:"{0} day ago",NumberDaysAgo:"{0} days ago",NumberWeekAgo:"{0} week",NumberWeeksAgo:"{0} weeks",NumberMonthAgo:"{0} month",NumberMonthsAgo:"{0} months",NumberYearAgo:"{0} year",NumberYearsAgo:"{0} years",TimeYesterday:"Yesterday at {0}",TimeDayOfWeek:"{0} at {1}"},l={Minute:{one:"{0} دقيقة",two:"دقيقتان",threeToTen:"{0} دقائق",elevenPlus:"{0} دقيقة"},Hour:{one:"{0} ساعة",two:"ساعتان",threeToTen:"{0} ساعات",elevenPlus:"{0} ساعة"},Day:{one:"{0} يوم",two:"يومان",threeToTen:"{0} أيام",elevenPlus:"{0} يوما"},Week:{one:"{0} أسبوع",two:"{0} أسبوع",threeToTen:"{0} أسابيع",elevenPlus:"{0} أسبوعا"},Month:{one:"{0} شهر",two:"{0} شهر",threeToTen:"{0} أشهر",elevenPlus:"{0} شهرا"},Year:{one:"{0} عام",two:"{0} عام",threeToTen:"{0} أعوام",elevenPlus:"{0} عاما"}},d={Week:{one:"{0} שבוע",two:"{0} שבועיים",three:"{0} שבועות"},Month:{one:"{0} חודש",two:"{0} חודשיים",three:"{0} חודשים"},Year:{one:"{0} שנה",two:"{0} שנתיים",three:"{0} שנים"}};function c(e,t,o,i,r,c){const u=t&&t.toLowerCase();if(!(e instanceof Date)||isNaN(e.valueOf()))return"";if(c&&o)return function(e,t,o,n){if(!(e instanceof Date)||isNaN(e.valueOf()))return"";const i=p.MsPerMinute,r=p.MsPerHour,a=p.MsPerDay,s=p.MsPerWeek,c=p.MsPerMonth,u=p.MsPerYear,h=t.getTime()-e.getTime();if(h<i)return o.JustNow||"";let g=u,f="Year";h<r?(g=i,f="Minute"):h<a?(g=r,f="Hour"):h<s?(g=a,f="Day"):h<c?(g=s,f="Week"):h<u&&(g=c,f="Month");const m=/^[Aa][Rr]-/.test(n),v=/^[Hh][Ee]-/.test(n),y=Math.floor(h/g);let b=null;b=m?function(e,t){if(e<2)return l[t].one;if(e<3)return l[t].two;if(e<11)return l[t].threeToTen;return l[t].elevenPlus}(y,f):v?function(e,t,o){if("Minute"==o||"Hour"==o||"Day"==o)return e[`Number${o}${t>1?"s":""}Ago`];if(t<2)return d[o].one;if(t<3)return d[o].two;return d[o].three}(o,y,f):o[`Number${f}${y>1?"s":""}Ago`];return b?b.replace("{0}",y):""}(e,new Date,o,u);if(!o&&"zh-cn"===u)return"";o||(o=s);const h=(r=r||new n.$).localizedDateString(e,u);i||(i=0);return new a(o,u,r).transform(e,h,i)}function u(e){return e.toLocaleString("ja-JP",{hour12:!1,hour:"2-digit",minute:"2-digit",day:"2-digit",month:"2-digit",timeZone:"Asia/Tokyo"}).replace("午後","").replace("午前","")}const p={MsPerMinute:6e4,MsPerHour:36e5,MsPerDay:864e5,MsPerWeek:6048e5,MsPerMonth:2592e6,MsPerYear:31104e6}},63725:function(e,t,o){o.d(t,{d:function(){return I}});var n=o(33940),i=o(26415),r=o(33954);var a=o(2040),s=o(47903),l=o(16517),d=o(17318),c=o(94788),u=o(54804),p=o(62938),h=o(67267),g=o(63535),f=o(87298),m=o(65135),v=o(75559),y=o(51125),b=o(4875),x=o(51671);class w{constructor(){this.cachedMetadata={}}get(e){const t=C(e);if(t)return this.cachedMetadata[t]}set(e,t){const o=C(e);o&&(this.cachedMetadata[o]=t)}}function C(e){if(e)return JSON.stringify(e)}var S=o(33799),$=o(33379),P=o(12611);class I{constructor(e){this.config=e,this.responseCache=new w,this.requestPathWithoutFeedId="MSN/Feed/me",this.requestPathWithFeedId="MSN/Feed",this.requestPathForFeedLayout="MSN/FeedLayout",this.requestPathForArticleFRE="news/Feed",this.requestPathForNewsFeed="news/Feed"}fetch(e,t){return(0,n.mG)(this,void 0,void 0,(function*(){let o=this.config.initialRequest;if(e&&(e.feedId||!o.feedId||e.nextPageUrl||(e.feedId=o.feedId),o=Object.assign(Object.assign({},o),e)),!o)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.pIg),{message:"default OneService fetch configuration was invalid"}));const c=(null==e?void 0:e.forceEnterpriseCompliance)||(0,b.VQ)(),u=yield h.$.getOneServiceFeedCallHeaders(c);if(c&&!(null==u?void 0:u[a.Yu.authorization])&&!(null==e?void 0:e.forceNoAuthorization))return;const v={credentials:"include",headers:u,method:"GET"},w=o.useNextPageUrl&&o.nextPageUrl,C=o.feedLayoutRequestType;let I;I=!w&&C?this.requestPathForFeedLayout:"feed"===o.query&&o.feedId?this.requestPathForNewsFeed:o.feedId||o.entityId?this.requestPathWithFeedId:"frefeedback"===o.query||"frefeedbackneg"===o.query||"UserFre"===o.query?this.requestPathForArticleFRE:this.requestPathWithoutFeedId;const T=this.responseCache.get(o);if(this.isRequestCacheable(I)&&T)return T;const k=(0,g.fU)(I,null==e?void 0:e.overwriteBaseApiURL),L=(0,y.Ee)();if(w)this.requestQueryParams=new s.h(new URL(w).search),L>0&&this.requestQueryParams.set(y.i$,L.toString()),l.jG.SendFeedCallActivityIdInHeader||this.requestQueryParams.set("activityId",l.jG.ActivityId);else{const{ocid:e,flightData:t,overwriteFlightData:n,muidFallback:i}=o,r=(yield(0,x.XJ)())===S.Hy.SignedIn?h.$.getOneServiceParamsWithAuth(l.jG.UserId,e,!1,t,n):h.$.getOneServiceParamsWithoutAuth(l.jG.UserId||i&&`m-${l.jG.ActivityId}`,e,!1,t,n,c);this.requestQueryParams=new s.h;for(let e=0;e<r.length;e++)this.requestQueryParams.set(r[e].key,r[e].value);if(C&&!o.start)this.requestQueryParams.set("t",C);else if(!o.disableQueryType){const e=o.queryType||"myfeed";this.requestQueryParams.set("queryType",e)}if(this.requestQueryParams.set("wrapodata","false").set("DisableTypeSerialization","true").set("timeOut",`${this.getRequestTimeout(o)}`).set("contentType",o.contentType).set("$select",o.select).set("responseSchema",o.disableFlatViewResponse?p.c.CardView:p.c.FlatView),o.apiKey&&this.requestQueryParams.set("apikey",o.apiKey),o.count&&this.requestQueryParams.set("$top",`${o.count}`),o.contentId&&this.requestQueryParams.set("contentId",o.contentId),this.tryAddQueryInterestParams(o)||this.requestQueryParams.set("ids",o.feedId).set("query",o.query).set("entityids",o.entityId),!C&&!o.disableLocation){const e=h.$.getLocationParams(o.latitude,o.longitude);e&&this.requestQueryParams.set(e.key,e.value)}o.start&&this.requestQueryParams.set("$skip",`${o.start}`),o.infopaneItemCount&&(this.requestQueryParams.set("infopaneCount",`${o.infopaneItemCount}`),!1===o.complexInfopaneEnabled&&this.requestQueryParams.set("cipenabled","false")),L>0&&this.requestQueryParams.set(y.i$,L.toString()),(o.useDelta||o.sessionId)&&(!1!==o.useDelta&&this.requestQueryParams.set("delta","true"),o.sessionId&&this.requestQueryParams.set("session",o.sessionId)),o.channel&&this.requestQueryParams.set("channel",o.channel)}let O,F,M,D;"UserFre"===o.query&&this.requestQueryParams.set("entityIds",o.userFreCandidatesSetId),l.jG.SendFeedCallActivityIdInHeader&&this.requestQueryParams.delete("activityId"),k.search=this.requestQueryParams.toString();try{const e=(0,$.N)()?1e4:800,t=yield(0,f.w)((()=>(0,n.mG)(this,void 0,void 0,(function*(){return this.config.useFetchPromise?yield(0,f.O)(decodeURIComponent(k.href),v,e):yield(0,d.Sm)(decodeURIComponent(k.href),e,v)}))),"OneServiceCardProvider.fetch");if(!t||!t.ok&&404!==t.status){M=t?t.status:null,D=t?t.statusText:null;const e=401===M?i.THd:i.p3y;return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t?"OneService returned error response":"OneService response was null",pb:Object.assign(Object.assign({},e.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href,statusCode:M,statusText:D}})}))}if(204===t.status||404===t.status)O={feedItems:[]},M=t.status,D=t.statusText,m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.n82),{message:204===t.status?"Empty non first-page response":"Empty first-page response",pb:Object.assign(Object.assign({},i.n82.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href,statusCode:M,statusText:D}})}));else{if(o.rawView)return t.json();O=yield t.json()}if(t.headers){t.headers.get("X-Statics-Fallback")&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.ovB),{pb:Object.assign(Object.assign({},i.ovB.pb),{customMessage:`Request URL: ${decodeURIComponent(k.href)}`}),message:"Fell back to static content on the feeds call"}));const e=t.headers.get("ddd-tmpl");m.M0.addOrUpdateTmplString(e),F=t.headers.get("ddd-session-id");const o=t.headers.get(a.rD.traceId);this.addOrUpdateIdxId(o);const n=t.headers.get(a.rD.debugId);this.addOrUpdateDebugId(n,!1)}}catch(e){return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.u45),{message:"Error while fetching OneService response",pb:Object.assign(Object.assign({},i.u45.pb),{customMessage:`Error: ${e}`,fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href}})}))}if(!O)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.XFR),{message:"Didn't get valid JSON from response.",pb:Object.assign(Object.assign({},i.XFR.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href}})}));const N=(this.requestQueryParams.get("t")||"").toLowerCase(),A="tabriver"===N||"tabs"===N,j=this.requestQueryParams.get("responseSchema"),{nextPageUrl:E,feedItems:H}=j===p.c.CardView?(0,P.ni)(O,A):O;if(!H)return void m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.yWd),{message:"Didn't get valid feed items list from response.",pb:Object.assign(Object.assign({},i.yWd.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href,responseJson:JSON.stringify(O)}})}));if(!H.length&&!o.start)if(o.isSearchRequest)this.trackEmptyResponseForInterestSearch(o.feedId,o.query,k.href);else if(o.feedId){const{emptyResponseFeedIds:e}=this.config.initialRequest;t||o.feedId.startsWith("Q_")||e&&e.length&&-1!==e.indexOf(o.feedId)||this.trackEmptyResponseForXFeed(o.feedId,k.href)}else o.query?this.trackEmptyResponseForQueryFeed(o.query,k.href):this.trackAppErrorHelper(i.BlE,"OneService returned an empty feed for a myfeed request.",k.href,null,null,"",M,D);if(A)if("tabriver"===N){const e=H.find((e=>"tabbedInfopane"===e.type));e&&e.subItems&&e.subItems.length||m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.$Ej),{pb:Object.assign(Object.assign({},i.$Ej.pb),{feedData:JSON.stringify(O),fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href,responseJson:JSON.stringify(O)}}),message:"TabRiver request returned empty content for tabbed infopane card."}))}else if("tabs"===N){let e=!1;e=!H.length||-1!==H.findIndex((e=>"tabbedInfopane"!==e.type||!e.subItems||!e.subItems.length)),e&&m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.a3w),{pb:Object.assign(Object.assign({},i.a3w.pb),{fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:k.href,responseJson:JSON.stringify(O)}}),message:"Tabs request returned empty content for one or more tabbed infopane cards."}))}let q;if(H.length>=0?q=Object.assign(Object.assign({},o),{nextPageUrl:E,start:(o.start||0)+o.count}):r.k.log(`River has reached end of content stream. requested: ${o.count}, received: ${H.length}`),o.postRequestGrouping){const{start:e,count:t,type:n}=o.postRequestGrouping,i={type:n,subItems:H.splice(e,t)};H.splice(e,0,i)}const R={cardMetadata:H,nextPageRequest:q,sessionId:F,feedContext:O.feed};return this.responseCache.set(o,R),R}))}fetchFromWebWorker(e,t=1e3,o){return(0,$.N)()?(0,c.ot)({id:e},t).then((e=>{const t=e.payload;if(!e.fetched||!t||!t.feedData)return null;t.responseSchema===p.c.CardView&&(t.feedData=(0,P.ni)(t.feedData,t.isTabbedInfopaneResponse));const{nextPageUrl:n,feedItems:i=[]}=t.feedData;let r,a=this.config.initialRequest;if(o&&(a=Object.assign(Object.assign({},a),o)),n&&i.length&&(r=Object.assign(Object.assign({},a),{start:(a.start||0)+a.count,nextPageUrl:n})),a.postRequestGrouping){const{start:e,count:t,type:o}=a.postRequestGrouping,n={type:o,subItems:i.splice(e,t)};i.splice(e,0,n)}const s=t.traceId;this.addOrUpdateIdxId(s);const l=t.debugId;return this.addOrUpdateDebugId(l,!1),{cardMetadata:i,nextPageRequest:r,sessionId:t.sessionId}})):Promise.resolve(null)}clearCache(){this.responseCache=new w}getRequestTimeout(e){const{timeoutMs:t,isSearchRequest:o,query:n,customFeedTimeoutMs:i}=e;return o&&n&&i?i:t}tryAddQueryInterestParams(e){if(!e.useVerticalAsInterest&&!e.useCategoryAsInterest)return!1;const t=(e.useVerticalAsInterest?u.Al.ClientSettings.verticalKey:u.Al.ClientSettings.categoryKey)||"",o=e.verticalCategoryKeyToInterestMapping[t.toLowerCase()],n=o||"news";return this.requestQueryParams.set("query",encodeURIComponent(n)).set("source",e.contentSource),o||e.useCategoryAsInterest&&!t||m.M0.sendAppErrorEvent(Object.assign(Object.assign({},i.US9),{message:"Failed to get content",pb:Object.assign(Object.assign({},i.US9.pb),{customMessage:`Failed to get content for VerticalKey:${l.jG.HostPage.verticalKey} | CategoryKey:${l.jG.HostPage.categoryKey}. Loading fallback views river with ${n} content.`})})),!0}trackAppErrorHelper(e,t,o,n,i,r,a,s){let d="";n&&(d+=`Feed id: ${n}. `),i&&(d+=`Feed query: ${i}. `),m.M0.sendAppErrorEvent(Object.assign(Object.assign({},e),{message:t,pb:Object.assign(Object.assign({},e.pb),{customMessage:d,fetchNetworkResponse:{activityId:l.jG.ActivityId,requestUrl:o,responseJson:r,statusCode:a,statusText:s}})}))}trackEmptyResponseForQueryFeed(e,t){this.trackAppErrorHelper(i.huq,"OneService returned an empty feed for a query-powered feed. See property bag for the query.",t,null,e)}trackEmptyResponseForXFeed(e,t){this.trackAppErrorHelper(i.MD5,"OneService returned an empty feed for an x-feed page.",t,e,null)}trackEmptyResponseForInterestSearch(e,t,o){e?this.trackAppErrorHelper(i.L90,"OneService returned an empty feed for a user searched xfeed.",o,e,null):this.trackAppErrorHelper(i.V3_,"OneService returned an empty feed for a user query.",o,null,t)}addOrUpdateIdxId(e){e&&m.M0.addOrUpdateIdxId(e,!1)}addOrUpdateDebugId(e,t){if(t)return delete m.M0.getPageMetadata().joinIdProps[v.ug],void m.M0.addOrUpdateJoinIdProperty(v.ug,e);if(!e)return;const o=m.M0.getPageMetadata().getJoinId(v.ug),n=o?`${o},${e}`:e;m.M0.addOrUpdateJoinIdProperty(v.ug,n)}isRequestCacheable(e){return!this.config.cacheDisabledRequestPaths||!this.config.cacheDisabledRequestPaths.includes(e)}}I.providerName="OneService"},62938:function(e,t,o){var n,i;o.d(t,{c:function(){return n}}),function(e){e.CardView="cardview",e.FlatView="flatview"}(n||(n={})),function(e){e.t3="T3",e.t6="T6"}(i||(i={}))},53909:function(e,t,o){o.d(t,{D3:function(){return a},KL:function(){return c},mL:function(){return h},pG:function(){return l},q3:function(){return d},vc:function(){return s},zz:function(){return u}});var n=o(12697),i=o(80983);let r;var a,s;!function(e){e.JPG="jpg",e.PNG="png"}(a||(a={})),function(e){e[e.None=0]="None",e[e.Letterbox=1]="Letterbox",e[e.Scale=2]="Scale",e[e.Stretch=3]="Stretch",e[e.Crop=4]="Crop",e[e.FocalCrop=5]="FocalCrop",e[e.FacialCrop=6]="FacialCrop"}(s||(s={}));const l=90,d="www.bing.com/th",c=new RegExp(/bing\.(com|net)\/th/);function u(e,t){return h(((0,i.P)()?"//img-s.msn.cn/tenant/amp/entityid/":"//img-s-msn-com.akamaized.net/tenant/amp/entityid/")+e,t)}const p=Math.ceil(4*Math.random())||4;function h(e,t){if(e&&c.test(e))return function(e,t){try{return g(new URL(e),t).href}catch(o){const n=g(new URL(`https://${e}`),t);return`//${n.host}${n.pathname}${n.search}`}}(e,t);const{focalRegion:o,backgroundColor:i}=t;let{width:s=0,height:l=0,format:d=a.JPG}=t,u="";if(o){const e=m(o.x1,o.x2),t=m(o.y1,o.y2);null!=e&&null!=t&&(u+=`&x=${e}&y=${t}`)}i&&(u+=`&b=${i}`);const p=null==t.mode?6:t.mode;if(6===p&&(u+="&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(f()&&r)return r;if(e<1)return null;let t=e;(0,n.Z)(4*t)||(t=Math.ceil(10*t)/10);t>3&&(t=3);f()&&(r=t);return t}(t.devicePixelRatio);e&&(s=Math.round(s*e),l=Math.round(l*e))}return`${e}?w=${s}&h=${l}&q=${t.quality||60}&m=${p}&f=${d}${u}`}function g(e,t){(0,i.P)()&&(e.hostname=`ts${p}.cn.mm.bing.net`);const{width:o=0,height:n=0}=t,r=t.quality||l,a=t.crop||1;return e.searchParams.set("w",`${o}`),e.searchParams.set("h",`${n}`),e.searchParams.set("qlt",`${r}`),e.searchParams.set("c",`${a}`),e.searchParams.set("rs","1"),t.enableDpiScaling&&(e.searchParams.set("dpr",`${t.devicePixelRatio}`),e.searchParams.set("p","0")),e}function f(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}function m(e,t){if(null!=e&&null!=t)return Math.floor((e+t)/2)}},19628:function(e,t){var o=function(){function e(){}return e.IsNullOrWhiteSpace=function(e){try{return null==e||"undefined"==e||e.toString().replace(/\s/g,"").length<1}catch(e){return console.log(e),!1}},e.Join=function(t){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];try{var i=o[0];if(Array.isArray(i)||i instanceof Array){for(var r=e.Empty,a=0;a<i.length;a++){var s=i[a];a<i.length-1?r+=s+t:r+=s}return r}if("object"==typeof i){var l=e.Empty,d=i;return Object.keys(i).forEach((function(e){l+=d[e]+t})),l=l.slice(0,l.length-t.length)}var c=o;return e.join.apply(e,[t].concat(c))}catch(t){return console.log(t),e.Empty}},e.Format=function(t){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];try{return t.match(e.regexNumber)?e.format(e.regexNumber,t,o):t.match(e.regexObject)?e.format(e.regexObject,t,o,!0):e.Empty}catch(t){return console.log(t),e.Empty}},e.format=function(t,o,n,i){return void 0===i&&(i=!1),o.replace(t,(function(t,o){var r,a=t.split(":");return a.length>1&&(o=a[0].replace("{",""),t=a[1].replace("}","")),null==(r=i?n[0][o]:n[o])||null==r||t.match(/{\d+}/)||void 0!==(r=e.parsePattern(t,r))&&null!=r?r:e.Empty}))},e.parsePattern=function(t,o){switch(t){case"L":return o.toLowerCase();case"U":return o.toUpperCase();case"d":if("string"==typeof o)return e.getDisplayDateFromString(o);if(o instanceof Date)return e.Format("{0:00}.{1:00}.{2:0000}",o.getDate(),o.getMonth(),o.getFullYear());break;case"s":if("string"==typeof o)return e.getSortableDateFromString(o);if(o instanceof Date)return e.Format("{0:0000}-{1:00}-{2:00}",o.getFullYear(),o.getMonth(),o.getDate());break;case"n":"string"!=typeof o&&(o=o.toString());var n=o.replace(/,/g,".");if(isNaN(parseFloat(n))||n.length<=3)break;var i=n.split(/[^0-9]+/g),r=i;i.length>1&&(r=[e.join.apply(e,[""].concat(i.splice(0,i.length-1))),i[i.length-1]]);var a=r[0],s=a.length%3,l=s>0?a.substring(0,s):e.Empty,d=a.substring(s).match(/.{3}/g);return(l=l+"."+e.Join(".",d))+(r.length>1?","+r[1]:"")}return"number"!=typeof o&&isNaN(o)||isNaN(+t)||e.IsNullOrWhiteSpace(o)?o:e.formatNumber(o,t)},e.getDisplayDateFromString=function(e){var t;if((t=e.split("-")).length<=1)return e;var o=t[t.length-1],n=t[t.length-2],i=t[t.length-3];return(o=(o=o.split("T")[0]).split(" ")[0])+"."+n+"."+i},e.getSortableDateFromString=function(t){var o=t.replace(",","").split(".");if(o.length<=1)return t;var n=o[o.length-1].split(" "),i=e.Empty;n.length>1&&(i=n[n.length-1]);var r=o[o.length-1].split(" ")[0]+"-"+o[o.length-2]+"-"+o[o.length-3];return!e.IsNullOrWhiteSpace(i)&&i.length>1?r+="T"+i:r+="T00:00:00",r},e.formatNumber=function(e,t){var o=t.length,n=e.toString();if(o<=n.length)return n;var i=o-n.length;return new Array(i+=1).join("0")+n},e.join=function(t){for(var o=[],n=1;n<arguments.length;n++)o[n-1]=arguments[n];for(var i=e.Empty,r=0;r<o.length;r++)if(!("string"==typeof o[r]&&e.IsNullOrWhiteSpace(o[r])||"number"!=typeof o[r]&&"string"!=typeof o[r])){i+=""+o[r];for(var a=r+1;a<o.length;a++)if(!e.IsNullOrWhiteSpace(o[a])){i+=t,r=a-1;break}}return i},e.regexNumber=/{(\d+(:\w*)?)}/g,e.regexObject=/{(\w+(:\w*)?)}/g,e.Empty="",e}();t.Ld=o;var n=function(){function e(e){void 0===e&&(e=o.Empty),this.Values=[],this.Values=new Array(e)}return e.prototype.ToString=function(){return this.Values.join("")},e.prototype.Append=function(e){this.Values.push(e)},e.prototype.AppendFormat=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];this.Values.push(o.Format.apply(o,[e].concat(t)))},e.prototype.Clear=function(){this.Values=[]},e}()},55978:function(e,t,o){o.d(t,{$:function(){return n},u:function(){return d}});var n,i=o(33940),r=o(65620),a=o(87697),s=o(48839),l=o(6540);!function(e){e.default="default",e.condensed="condensed",e.infoPane="infoPane",e.infoPane1x3y="infoPane1x3y",e.infoPaneSplitVertical="infoPaneSplitVertical",e.infoPaneSplitHorizontal="infoPaneSplitHorizontal"}(n||(n={}));class d extends s.I{constructor(){super(...arguments),this.layout=n.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 l.K))}setExpanded(e){this.filteredContentIndicator().forEach((t=>t.expanded=e))}}(0,i.gn)([r.Lj],d.prototype,"layout",void 0),(0,i.gn)([(0,r.Lj)({attribute:"heading-level",mode:"fromView",converter:r.Id})],d.prototype,"headinglevel",void 0),(0,i.gn)([(0,r.Lj)({mode:"fromView"})],d.prototype,"href",void 0),(0,i.gn)([a.LO],d.prototype,"anchorTelemetryTag",void 0),(0,i.gn)([a.LO],d.prototype,"mediaNodes",void 0),(0,i.gn)([a.LO],d.prototype,"hasAbstract",void 0),(0,i.gn)([a.LO],d.prototype,"hasFooter",void 0),(0,i.gn)([a.LO],d.prototype,"abstract",void 0),(0,i.gn)([a.LO],d.prototype,"iconSlottedNodes",void 0),(0,i.gn)([(0,r.Lj)({attribute:"image-priority",mode:"boolean"})],d.prototype,"imagePriority",void 0),(0,i.gn)([r.Lj],d.prototype,"target",void 0),(0,i.gn)([a.LO],d.prototype,"hoverActionsSlottedNodes",void 0),(0,i.gn)([a.LO],d.prototype,"contentIndicatorNodes",void 0)},71095:function(e,t,o){o.d(t,{On:function(){return x}});var n=o(55978),i=o(39181),r=o(58952),a=o(81422),s=o(74009),l=o(13988),d=o(90960);const c=i.d`
    <div
        class="footer ${e=>e.hasAbstract?"has-abstract-footer":""} ${e=>e.hasFooter?"":"footer__hidden"}"
        part="footer"
    >
        <span part="start-actions" ${(0,r.i)("startActionsContainer")}>
            <slot
                name="start-actions"
                ${(0,r.i)("startActions")}
                @slotchange=${e=>e.handleStartActionsContentChange()}
            ></slot>
        </span>
        <span part="end-actions" ${(0,r.i)("endActionsContainer")}>
            <slot
                name="end-actions"
                ${(0,r.i)("endActions")}
                @slotchange=${e=>e.handleEndActionsContentChange()}
            ></slot>
        </span>
    </div>
`;var u=o(67020),p=o(56201),h=o(40082),g=o(53046),f=o(15933),m=o(32804),v=o(22674);const y=g.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=g.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;
    }
`,x=n.u.compose({baseName:"content-card",template:(e,t)=>i.d`
    <template
        ${(0,a.p)({property:"mediaNodes",filter:(0,s.R)("[slot='media'], [slot='icon']")})}
    >
        <span part="background-image" ${(0,r.i)("backgroundImageContainer")}>
            <slot
                name="background-image"
                ${(0,r.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,l.g)((e=>{var t;return(null===(t=e.mediaNodes)||void 0===t?void 0:t.length)>0}),i.d` <div class="media-wrapper" part="media-wrapper">
                    <div part="media" ${(0,r.i)("mediaContainer")}>
                        <slot
                            name="media"
                            ${(0,r.i)("media")}
                            @slotchange=${e=>e.handleMediaContentChange()}
                        ></slot>
                        <slot
                            name="content-indicator"
                            ${(0,d.Q)("contentIndicatorNodes")}
                        ></slot>
                        <span
                            part="icon"
                            ${(0,r.i)("iconContainer")}
                            class="${e=>e.iconSlottedNodes&&e.iconSlottedNodes.length?"icon":"icon__hidden"}"
                        >
                            <slot
                                name="icon"
                                ${(0,r.i)("icon")}
                                ${(0,d.Q)("iconSlottedNodes")}
                            ></slot>
                        </span>
                    </div>
                </div>`)}
            <div class="heading-container" part="heading-container">
                ${(0,l.g)((e=>{var t;return 0===(null===(t=e.mediaNodes)||void 0===t?void 0:t.length)}),i.d`
                        <slot
                            name="content-indicator"
                            ${(0,d.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,d.Q)("abstract")}></slot>
            </div>
            <slot name="call-to-action"></slot>
            ${(0,l.g)((e=>e.layout!==n.$.default),c)}
        </div>
        ${(0,l.g)((e=>e.layout===n.$.default),c)}
        <span
            part="hover-actions"
            class="${e=>e.hoverActionsSlottedNodes&&e.hoverActionsSlottedNodes.length?"hover-actions":"hover-actions__hidden"}"
        >
            <slot name="hover-actions" ${(0,d.Q)("hoverActionsSlottedNodes")}></slot>
        </span>
    </template>
`,styles:(e,t)=>g.i`
    ${(0,u.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:${p.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 v.O(y,b),(0,h.vF)(g.i`
                .heading {
                    color: ${f.H.LinkText};
                    background: ${f.H.ButtonFace};
                }
                .abstract {
                    color: ${f.H.ButtonText};
                }
                .icon {
                    background-color: #000;
                    height: fit-content;
                }
                :host([layout="infoPane"]) .abstract,
                :host([layout="infoPane1x3y"]) .abstract,
                :host([layout="infoPaneSplitHorizontal"]) .abstract {
                    color: ${f.H.ButtonText};
                    background: ${f.H.ButtonFace};
                }
                .footer,
                .start-actions,
                .end-actions,
                ::slotted([slot="start-actions"]),
                ::slotted([slot="end-actions"]) {
                    background: ${f.H.ButtonFace};
                    color: ${f.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: ${f.H.ButtonFace};
                    box-shadow: none;
                }
                ::slotted(fluent-button[appearance="stealth"]:not(:hover)) {
                    background: ${f.H.ButtonFace};
                }
            `)),shadowOptions:{delegatesFocus:!0}})},6540:function(e,t,o){o.d(t,{K:function(){return s}});var n=o(33940),i=o(65620),r=o(87697),a=o(48839);class s extends a.I{constructor(){super(...arguments),this.expanded=!1}defaultItemsChanged(){this.$fastController.isConnected&&(this.shouldanimate=this.defaultItems.length>0)}}(0,n.gn)([(0,i.Lj)({mode:"boolean"})],s.prototype,"expanded",void 0),(0,n.gn)([r.LO],s.prototype,"defaultItems",void 0),(0,n.gn)([(0,i.Lj)({mode:"boolean",attribute:"animate"})],s.prototype,"shouldanimate",void 0)},25921:function(e,t,o){o.d(t,{J:function(){return l},K:function(){return n}});var n,i=o(33940),r=o(65620),a=o(87697),s=o(48839);!function(e){e.C1="C1",e.C2="C2",e.C3="C3",e.C4="C4",e.C5="C5",e.C6="C6"}(n||(n={}));class l extends s.I{constructor(){super(...arguments),this.layout=n.C4,this.enableNavigation=!1,this.ready=!1}layoutChanged(){this.updateLayout()}cardTemplateMapChanged(){this.updateLayout()}dataChanged(){this.updateLayout()}layoutStylesChanged(e,t){e&&this.$fastController.removeStyles(e),this.$fastController.addStyles(t)}selectTemplate(e){return this.cardTemplateMap[e.card_template_type]}updateLayout(){if(void 0!==this.data){const e=this.data[this.layout];this.cards=this.data.cards.map((t=>{const o=void 0===e?null:e.find((e=>e.id===t.id));return o?Object.assign({},t,o):t})).sort(((e,t)=>e.card_dom_order&&t.card_dom_order?e.card_dom_order<t.card_dom_order?-1:e.card_dom_order>t.card_dom_order?1:0:0))}}handleKeyDown(e){var t,o;if(!this.enableNavigation)return!0;const n=Array.from(this.getRootNode().querySelectorAll(this.tagName)||[]).reduce(((e,t)=>{var o;return Array.from((null===(o=t.shadowRoot)||void 0===o?void 0:o.children)||[]).forEach((t=>{t.offsetHeight>0&&t.offsetWidth>0&&e.push(t)})),e}),[]),i=n.reduce(((e,t,o)=>{const{offsetLeft:n,offsetHeight:i,offsetTop:r,offsetWidth:a}=t;return"style"!==t.tagName.toLowerCase()&&e.push({x:n,y:r,x2:n+a,y2:r+i,index:o}),e}),[]),r=null!==(o=null!==(t=n.findIndex((t=>e.composedPath().find((e=>e===t)))))&&void 0!==t?t:n.findIndex((e=>"style"!==e.tagName.toLowerCase())))&&void 0!==o?o:0,a=e=>{const t=e.currentTarget;t&&(t.removeAttribute("tabindex"),t.removeEventListener("blur",a))},s=i.reduce(((e,t,o)=>{var n;const a=i[r||0],s={x:["ArrowLeft","ArrowRight"],y:["ArrowUp","ArrowDown"]},l=e=>Math.min(t[`${e}2`],a[`${e}2`])-Math.max(t[e],a[e]),d=e=>Math.abs(t[e]>=a[`${e}2`]?t[e]-a[`${e}2`]:a[e]-t[`${e}2`]);for(const i in s){const c=i,u=l("x"===c?"y":"x"),p=d(c);if(u>0){const i=t[c]>=a[`${c}2`]?1:0,l=s[c][i];o!==r&&(void 0===e[l]||((null===(n=e[l])||void 0===n?void 0:n.distance)||0)>p)&&(e[l]=Object.assign({},t,{overlap:u,distance:p})),"y"===c&&("ArrowUp"===l?e[l]&&(!e.PageUp||e.PageUp.y>t.y)&&(e.PageUp=t):(!e.PageDown||e.PageDown.y2<t.y2)&&(e.PageDown=t))}}return(!e.Home||e.Home.x>t.x||e.Home.y>t.y)&&(e.Home=t),(!e.End||e.End.x<t.x||e.End.y<t.y)&&(e.End=t),e}),{}),l=s[e.key];var d;return void 0!==l&&(d=l.index,n&&n.length>d&&(n[d].setAttribute("tabindex","0"),n[d].addEventListener("blur",a),n[d].focus())),!0}}(0,i.gn)([r.Lj],l.prototype,"layout",void 0),(0,i.gn)([(0,r.Lj)({attribute:"enable-navigation",mode:"boolean"})],l.prototype,"enableNavigation",void 0),(0,i.gn)([a.LO],l.prototype,"cards",void 0),(0,i.gn)([a.LO],l.prototype,"cardTemplateMap",void 0),(0,i.gn)([a.LO],l.prototype,"data",void 0),(0,i.gn)([a.LO],l.prototype,"layoutStyles",void 0),(0,i.gn)([a.LO],l.prototype,"ready",void 0)},56003:function(e,t,o){o.d(t,{PY:function(){return c}});var n=o(25921),i=o(32804),r=o(53046),a=o(67020);var s=o(39181),l=o(18864);const d=s.d`${(e,t)=>t.parent.selectTemplate(e)}`,c=n.J.compose({baseName:"feed-layout",template:(e,t)=>s.d`
    <template @keydown="${(e,t)=>e.handleKeyDown(t.event)}">
        ${(0,l.rx)((e=>e.cards),d)}
    </template>
`,styles:(e,t)=>r.i`
    ${(0,a.j)("grid")}

    :host {
        font-family: ${i.SVJ};
        width: auto;
        grid-auto-rows: 146px;
        grid-auto-columns: 300px;
        grid-gap: 12px;
    }
}
`})},48837:function(e,t,o){o.d(t,{tH:function(){return f}});var n=o(33940),i=o(65620),r=o(52704);class a extends r.Z6{constructor(){super(...arguments),this.speed=1200,this.headingLevel=3}}(0,n.gn)([i.Lj],a.prototype,"speed",void 0),(0,n.gn)([(0,i.Lj)({attribute:"heading-level",mode:"fromView",converter:i.Id})],a.prototype,"headingLevel",void 0),(0,n.gn)([i.Lj],a.prototype,"heading",void 0);var s=o(39181),l=o(58952),d=o(90960),c=o(74009),u=o(13988),p=o(51208);var h=o(53046),g=o(32804);const f=a.compose({baseName:"stripe",template:(e,t)=>s.d`
    <template>
        ${p.hX}
        <div class="heading-container" part="heading-container">
            <span class="header">
                <slot name="icon"></slot>
                <slot name="heading">
                    <span class="heading" role="heading" aria-level=${e=>e.headingLevel}
                        >${e=>e.heading}</span
                    >
                    <slot name="details"></slot>
                </slot>
                <slot name="description"></slot>
            </span>
            <slot name="action"></slot>
        </div>
        <div class="scroll-area">
            <div
                class="scroll-view"
                @scroll="${e=>e.scrolled()}"
                ${(0,l.i)("scrollContainer")}
            >
                <div class="content-container" part="content-container" ${(0,l.i)("content")}>
                    <slot
                        ${(0,d.Q)({property:"scrollItems",filter:(0,c.R)()})}
                    ></slot>
                </div>
            </div>
            ${(0,u.g)((e=>"mobile"!==e.view),s.d`
                    <div
                        class="scroll scroll-prev"
                        part="scroll-prev"
                        ${(0,l.i)("previousFlipperContainer")}
                    >
                        <div class="scroll-action" @click="${e=>e.scrollToPrevious()}">
                            <slot name="previous-flipper">
                                <fluent-flipper direction="previous"></fluent-flipper>
                            </slot>
                        </div>
                    </div>
                    <div
                        class="scroll scroll-next"
                        part="scroll-next"
                        ${(0,l.i)("nextFlipperContainer")}
                    >
                        <div class="scroll-action" @click="${e=>e.scrollToNext()}">
                            <slot name="next-flipper">
                                <fluent-flipper></fluent-flipper>
                            </slot>
                        </div>
                    </div>
                `)}
        </div>
        ${p.zq}
    </template>
`,styles:(e,t)=>h.i`
    ${(0,r.SD)(e,t)} :host {
        --scroll-fade-next: ${g.IfY};
    }

    .heading-container {
        display: grid;
        grid-template-columns: 1fr auto;
        margin: 0 0 12px;
    }

    ::slotted([slot="action"]) {
        display: flex;
        align-items: flex-end;
    }

    ::slotted([slot="icon"]) {
        margin-inline-end: 8px;
    }

    .header,
    .header ::slotted(h1),
    .header ::slotted(h2),
    .header ::slotted(h3),
    .header ::slotted(h4),
    .header ::slotted(h5),
    .header ::slotted(h6) {
        font-size: var(--stripe-heading-font-size, ${g.mWK});
        line-height: var(--stripe-heading-line-height, ${g.I7_});
        font-weight: 600;
        margin: 0;
    }

    ::slotted([slot="description"]) {
        font-size: ${g.sNp};
        line-height: ${g.vgC};
        margin: 8px 0 0;
    }
`})},52704:function(e,t,o){o.d(t,{Z6:function(){return h},xI:function(){return g},SD:function(){return f}});var n=o(88127),i=o(16009),r=o(39181),a=o(53046),s=o(67020),l=o(22674);const d=a.i`
    .scroll-prev {
        right: auto;
        left: 0;
    }

    .scroll.scroll-next::before,
    .scroll-next .scroll-action {
        left: auto;
        right: 0;
    }

    .scroll.scroll-next::before {
        background: linear-gradient(to right, transparent, var(--scroll-fade-next));
    }

    .scroll-next .scroll-action {
        transform: translate(50%, -50%);
    }
`,c=a.i`
    .scroll.scroll-next {
        right: auto;
        left: 0;
    }

    .scroll.scroll-next::before {
        background: linear-gradient(to right, var(--scroll-fade-next), transparent);
        left: auto;
        right: 0;
    }

    .scroll.scroll-prev::before {
        background: linear-gradient(to right, transparent, var(--scroll-fade-previous));
    }

    .scroll-prev .scroll-action {
        left: auto;
        right: 0;
        transform: translate(50%, -50%);
    }
`,u=a.i`
    .scroll-area {
        position: relative;
    }

    div.scroll-view {
        overflow-x: hidden;
    }

    .scroll {
        bottom: 0;
        pointer-events: none;
        position: absolute;
        right: 0;
        top: 0;
        user-select: none;
        width: 100px;
    }

    .scroll.disabled {
        display: none;
    }

    .scroll::before,
    .scroll-action {
        left: 0;
        position: absolute;
    }

    .scroll::before {
        background: linear-gradient(to right, var(--scroll-fade-previous), transparent);
        content: "";
        display: block;
        height: 100%;
        width: 100%;
    }

    .scroll-action {
        pointer-events: auto;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    ::slotted(fluent-flipper) {
        opacity: 0;
        transition: opacity 0.2s ease-in-out;
    }

    .scroll-area:hover ::slotted(fluent-flipper) {
        opacity: 1;
    }
`.withBehaviors(new l.O(d,c)),p=(e,t)=>a.i`
    ${(0,s.j)("block")} :host {
        --scroll-align: center;
        --scroll-item-spacing: 4px;
        contain: layout;
        position: relative;
    }

    .scroll-view {
        overflow-x: auto;
        scrollbar-width: none;
    }

    ::-webkit-scrollbar {
        display: none;
    }

    .content-container {
        align-items: var(--scroll-align);
        display: inline-flex;
        flex-wrap: nowrap;
        position: relative;
    }

    .content-container ::slotted(*) {
        margin-right: var(--scroll-item-spacing);
    }

    .content-container ::slotted(*:last-child) {
        margin-right: 0;
    }
`;class h extends n.Z{connectedCallback(){super.connectedCallback(),"mobile"!==this.view&&this.$fastController.addStyles(u)}}const g=h.compose({baseName:"horizontal-scroll",baseClass:n.Z,template:i.S,styles:p,nextFlipper:r.d`
        <fluent-flipper
            @click="${e=>e.scrollToNext()}"
            aria-hidden="${e=>e.flippersHiddenFromAT}"
        ></fluent-flipper>
    `,previousFlipper:r.d`
        <fluent-flipper
            @click="${e=>e.scrollToPrevious()}"
            direction="previous"
            aria-hidden="${e=>e.flippersHiddenFromAT}"
        ></fluent-flipper>
    `}),f=p},88127:function(e,t,o){o.d(t,{Z:function(){return l}});var n=o(20005),i=o(12968),r=o(65620),a=o(87697),s=o(48839);class l extends s.I{constructor(){super(...arguments),this.framesPerSecond=60,this.updatingItems=!1,this.speed=600,this.easing="ease-in-out",this.flippersHiddenFromAT=!1,this.scrolling=!1,this.resizeDetector=null}get frameTime(){return 1e3/this.framesPerSecond}scrollingChanged(e,t){if(this.scrollContainer){const e=1==this.scrolling?"scrollstart":"scrollend";this.$emit(e,this.scrollContainer.scrollLeft)}}get isRtl(){return this.scrollItems.length>1&&this.scrollItems[0].offsetLeft>this.scrollItems[1].offsetLeft}connectedCallback(){super.connectedCallback(),this.initializeResizeDetector()}disconnectedCallback(){this.disconnectResizeDetector(),super.disconnectedCallback()}scrollItemsChanged(e,t){t&&!this.updatingItems&&i.SO.queueUpdate((()=>this.setStops()))}disconnectResizeDetector(){this.resizeDetector&&(this.resizeDetector.disconnect(),this.resizeDetector=null)}initializeResizeDetector(){this.disconnectResizeDetector(),this.resizeDetector=new window.ResizeObserver(this.resized.bind(this)),this.resizeDetector.observe(this)}updateScrollStops(){this.updatingItems=!0;const e=this.scrollItems.reduce(((e,t)=>t instanceof HTMLSlotElement?e.concat(t.assignedElements()):(e.push(t),e)),[]);this.scrollItems=e,this.updatingItems=!1}setStops(){this.updateScrollStops();const{scrollContainer:e}=this,{scrollLeft:t}=e,{width:o,left:n}=e.getBoundingClientRect();this.width=o;let i=0,r=this.scrollItems.map(((e,o)=>{const{left:r,width:a}=e.getBoundingClientRect(),s=Math.round(r+t-n),l=Math.round(s+a);return this.isRtl?-l:(i=l,0===o?0:s)})).concat(i);r=this.fixScrollMisalign(r),r.sort(((e,t)=>Math.abs(e)-Math.abs(t))),this.scrollStops=r,this.setFlippers()}fixScrollMisalign(e){if(this.isRtl&&e.some((e=>e>0))){e.sort(((e,t)=>t-e));const t=e[0];e=e.map((e=>e-t))}return e}setFlippers(){var e,t;const o=this.scrollContainer.scrollLeft;if(null===(e=this.previousFlipperContainer)||void 0===e||e.classList.toggle("disabled",0===o),this.scrollStops){const e=Math.abs(this.scrollStops[this.scrollStops.length-1]);null===(t=this.nextFlipperContainer)||void 0===t||t.classList.toggle("disabled",Math.abs(o)+this.width>=e)}}scrollInView(e,t=0,o){var n;if("number"!=typeof e&&e&&(e=this.scrollItems.findIndex((t=>t===e||t.contains(e)))),void 0!==e){o=null!=o?o:t;const{scrollContainer:i,scrollStops:r,scrollItems:a}=this,{scrollLeft:s}=this.scrollContainer,{width:l}=i.getBoundingClientRect(),d=r[e],{width:c}=a[e].getBoundingClientRect(),u=d+c,p=s+t>d;if(p||s+l-o<u){const e=null!==(n=[...r].sort(((e,t)=>p?t-e:e-t)).find((e=>p?e+t<d:e+l-(null!=o?o:0)>u)))&&void 0!==n?n:0;this.scrollToPosition(e)}}}keyupHandler(e){switch(e.key){case"ArrowLeft":this.scrollToPrevious();break;case"ArrowRight":this.scrollToNext()}}scrollToPrevious(){const e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex(((t,o)=>t>=e&&(this.isRtl||o===this.scrollStops.length-1||this.scrollStops[o+1]>e))),o=Math.abs(this.scrollStops[t+1]);let n=this.scrollStops.findIndex((e=>Math.abs(e)+this.width>o));(n>=t||-1===n)&&(n=t>0?t-1:0),this.scrollToPosition(this.scrollStops[n],e)}scrollToNext(){const e=this.scrollContainer.scrollLeft,t=this.scrollStops.findIndex((t=>Math.abs(t)>=Math.abs(e))),o=this.scrollStops.findIndex((t=>Math.abs(e)+this.width<=Math.abs(t)));let n=t;o>t+2?n=o-2:t<this.scrollStops.length-2&&(n=t+1),this.scrollToPosition(this.scrollStops[n],e)}scrollToPosition(e,t=this.scrollContainer.scrollLeft){var o;if(this.scrolling)return;this.scrolling=!0;const n=null!==(o=this.duration)&&void 0!==o?o:Math.abs(e-t)/this.speed+"s";this.content.style.setProperty("transition-duration",n);const i=parseFloat(getComputedStyle(this.content).getPropertyValue("transition-duration")),r=t=>{t&&t.target!==t.currentTarget||(this.content.style.setProperty("transition-duration","0s"),this.content.style.removeProperty("transform"),this.scrollContainer.style.setProperty("scroll-behavior","auto"),this.scrollContainer.scrollLeft=e,this.setFlippers(),this.content.removeEventListener("transitionend",r),this.scrolling=!1)};if(0===i)return void r();this.content.addEventListener("transitionend",r);const a=this.scrollContainer.scrollWidth-this.scrollContainer.clientWidth;let s=this.scrollContainer.scrollLeft-Math.min(e,a);this.isRtl&&(s=this.scrollContainer.scrollLeft+Math.min(Math.abs(e),a)),this.content.style.setProperty("transition-property","transform"),this.content.style.setProperty("transition-timing-function",this.easing),this.content.style.setProperty("transform",`translateX(${s}px)`)}resized(){this.resizeTimeout&&(this.resizeTimeout=clearTimeout(this.resizeTimeout)),this.resizeTimeout=setTimeout((()=>{this.width=this.scrollContainer.offsetWidth,this.setFlippers()}),this.frameTime)}scrolled(){this.scrollTimeout&&(this.scrollTimeout=clearTimeout(this.scrollTimeout)),this.scrollTimeout=setTimeout((()=>{this.setFlippers()}),this.frameTime)}}(0,n.gn)([(0,r.Lj)({converter:r.Id})],l.prototype,"speed",void 0),(0,n.gn)([r.Lj],l.prototype,"duration",void 0),(0,n.gn)([r.Lj],l.prototype,"easing",void 0),(0,n.gn)([(0,r.Lj)({attribute:"flippers-hidden-from-at",converter:r.bw})],l.prototype,"flippersHiddenFromAT",void 0),(0,n.gn)([a.LO],l.prototype,"scrolling",void 0),(0,n.gn)([a.LO],l.prototype,"scrollItems",void 0),(0,n.gn)([(0,r.Lj)({attribute:"view"})],l.prototype,"view",void 0)},16009:function(e,t,o){o.d(t,{S:function(){return d}});var n=o(39181),i=o(58952),r=o(90960),a=o(74009),s=o(13988),l=o(51208);const d=(e,t)=>{var o,d;return n.d`
    <template
        class="horizontal-scroll"
        @keyup="${(e,t)=>e.keyupHandler(t.event)}"
    >
        ${(0,l.m9)(e,t)}
        <div class="scroll-area" part="scroll-area">
            <div
                class="scroll-view"
                part="scroll-view"
                @scroll="${e=>e.scrolled()}"
                ${(0,i.i)("scrollContainer")}
            >
                <div class="content-container" part="content-container" ${(0,i.i)("content")}>
                    <slot
                        ${(0,r.Q)({property:"scrollItems",filter:(0,a.R)()})}
                    ></slot>
                </div>
            </div>
            ${(0,s.g)((e=>"mobile"!==e.view),n.d`
                    <div
                        class="scroll scroll-prev"
                        part="scroll-prev"
                        ${(0,i.i)("previousFlipperContainer")}
                    >
                        <div class="scroll-action" part="scroll-action-previous">
                            <slot name="previous-flipper">
                                ${t.previousFlipper instanceof Function?t.previousFlipper(e,t):null!==(o=t.previousFlipper)&&void 0!==o?o:""}
                            </slot>
                        </div>
                    </div>
                    <div
                        class="scroll scroll-next"
                        part="scroll-next"
                        ${(0,i.i)("nextFlipperContainer")}
                    >
                        <div class="scroll-action" part="scroll-action-next">
                            <slot name="next-flipper">
                                ${t.nextFlipper instanceof Function?t.nextFlipper(e,t):null!==(d=t.nextFlipper)&&void 0!==d?d:""}
                            </slot>
                        </div>
                    </div>
                `)}
        </div>
        ${(0,l.LC)(e,t)}
    </template>
`}},12697:function(e,t,o){var n=o(84708);t.Z=function(e){return"number"==typeof e&&e==(0,n.Z)(e)}}}]);A
Eo