"),e.pageTitle&&(document.title=e.pageTitle),j(e),window.REDUX_DATA=e.state,window.SSR=u.b.Completed,T(a.a.PageTimings.completed,!0),Object(l.a)();const n=e.ssrTimings||{};O(n),O(n.configTimings),O(n.pageTimings)}}))}function E(e,t){return t.get(e)||t.get(e.toLowerCase())}function P(e){window.SSR=e,window.RENDER=!0}function H(e){P(u.b.HasError),window.SSR_ERROR=e}function D(e,t,n,r,i,o){if(void 0===window.SSR){let c=!1;const{hasSsr:s,isSSRRiver:d}=e.shouldEnableSSR(t,n,r,i,o);if(s){c="true"===E(p,t);const i=function(){let e=!1;const t=Object(f.b)()[a.a.PageTimings.inlineStart];if(performance&&performance.timing&&performance.timing.responseStart&&performance.timing.navigationStart&&t){e=t-(performance.timing.responseStart-performance.timing.navigationStart)>a.a.pauseThresholdMS}return e}(),o=h();if(!o&&!i||c)k(c,d);else{const t=o?a.a.SkipDueToHiddenReason.documentHidden:a.a.SkipDueToHiddenReason.hasPaused;R(a.a.PageTimings.skipDueToHiddenReason,t);!!e.shouldInsistSSRWhenHidden&&e.shouldInsistSSRWhenHidden(n,r,t)?k(c,d):(window.SSR=u.b.SkipDueToHidden,window.RENDER=!0)}}else P(u.b.SkipDueToCSROnly)}return!window.RENDER}function k(e,t){window.SSR=u.b.NotStarted,window.RENDER=!1,window.SSRONLY=e,window.RIVER=t}function x(e){let t=window.location.origin;return function(e,t){const n=e.indexOf("item=spalink")>=0&&-1===e.indexOf("item=spalink:latest")&&-1===e.indexOf("item=spalink%3Alatest");return!(!!t.get("rsorigin")&&"true"===t.get("rsorigin"))&&n}(window.location.search,e)&&(t="https://int.msn.com"),t}function I(e){return function(e,t){const n=(e=(e||"").substring(1))+"&"+(t=(t||"").substring(1));return new o.a(n)}(e&&e.queryparams,window.location.search)}function N(e,t,n,r,i,o=s.a,l){if(window.RENDER||window.SSR!==u.b.NotStarted)return;const f=new d.a(o,s.b),g=y(e,function(e,t){const n="true"===E("ssrCdn",e);return(t||(n?"https://assets.msn.com":window.location.origin))+"/render/?fragment=true&"}(e,l),t,n,r,i,f.getSerializedData()),p=new XMLHttpRequest,h=e=>{const t=`Fragment fetch for ${g} failed. Status code: ${p.status}. ${e}`;Object(m.a)(t,34002,{}),window.SSR=u.b.HasFetchError,window.SSR_ERROR=new Error(t)};p.onabort=function(){h("XMLHttpRequest.onabort called.")},p.onerror=function(){h("XMLHttpRequest.onerror called.")},p.onreadystatechange=function(){try{if(4!==p.readyState)return;if(T(a.a.PageTimings.fragmentFetchEnd,!0),R(a.a.PageTimings.fragmentFetchStatusCode,p.status,!1),p.status>=200&&p.status<300){if(!window.RENDER){window.SSR=u.b.InsertingDOM;const e=JSON.parse(p.responseText);if(e.html)T(a.a.PageTimings.injectingDOM,!0),C(e);else{const e=`Fragment fetch for ${g} succeeded but returned empty html.`;Object(m.a)(e,34002,{}),window.SSR=u.b.HasFetchError,window.SSR_ERROR=new Error(e)}}const e=p.getResponseHeader("Date"),t=p.getResponseHeader("x-cache");!function(e,t,n){const r=function(e){const t=performance.getEntriesByType("resource").filter(t=>"xmlhttprequest"===t.initiatorType&&t.name===e);return t.length>0?t[0]:null}(e);let i=!1;i=F(r)?void 0!==(o=r).transferSize?0===o.transferSize:void 0!==o.nextHopProtocol?""===o.nextHopProtocol:(Object(m.a)("didUseBrowserCache was called without supporting transferSize or nextHopProtocol",34003,{perfResourceTimingKeys:Object.keys(o||{})}),!1):function(e){const t=Object(c.a)();if(!e||!t)return Object(m.a)("dateResponseHeader was empty or localStorage is not supported",34004,{dateResponseHeader:e}),!1;let n=!1;const r=t.getItem("SSRDateResponseHeader");r&&(n=r===e);n||t.setItem("SSRDateResponseHeader",e);return n}(t);var o;const s=function(e,t){return!e&&"TCP_HIT"===t}(i,n);R(a.a.PageTimings.fragmentBrowserCached,i?1:0,!1),R(a.a.PageTimings.fragmentCDNCached,s?1:0,!1)}(g,e,t)}else h("Response is not OK.")}catch(e){h("Exception occured on XMLHttpRequest.onreadystatechange.\n"+(e.stack||e))}},p.open("GET",g),p.withCredentials=!0;const w=t.aid;p.setRequestHeader(a.a.AIDRequestHeaderName,w),window.SSR=u.b.Fetching,T(a.a.PageTimings.fragmentFetchStart,!0),p.send()}function F(e){return e&&("transferSize"in e||"nextHopProtocol"in e)}function L(){T(a.a.PageTimings.inlineStart,!0)}},"4qkC":function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return o}));const r=new Map([["edge","prg-gitcfgs-edge"],["finance","prg-gitcfgs-fi"],["superApp","prg-gitcfgs-t"],["traffic","prg-gitcfgs-traf"],["weather","prg-gitcfgs-wea"]]);function i(e){if(!e||0===e.length)return e;const t=[];return e.forEach(e=>{const n=e.toLocaleLowerCase().trim();n.startsWith("prg-")&&t.push(n)}),t.sort()}function o(e,t,n,o){return!(!o||!e||"v3"!==e)&&(!n||function(e,t){const n=r.get(e);if(n){const e=i(t);return!!(e&&e.length&&e.includes(n))}return!1}(o,t))}},"9i/1":function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e,t){this.spec=e,this.qspPrefix=t||"rd"}get verParam(){return this.qspPrefix+".ver"}get data(){return void 0===this.memo&&(this.memo=function e(t){const n=t;return void 0!==n.clientValue?n.clientValue:Object.keys(t).reduce((n,r)=>Object.assign(Object.assign({},n),{[r]:e(t[r])}),{})}(this.spec.spec)),this.memo}loadQueryParams(e){if(void 0!==this.memo)throw"overwriting existing query string parameters.";const t=e.get([this.qspPrefix,"ver"].join("."));if(t!==this.spec.ver)throw`unmatched spec version: expected "${this.spec.ver}" but got ${t}.`;this.memo={},e.forEach((e,t)=>{if(!t.startsWith(this.qspPrefix))return;if(t===this.verParam)return;const n=t.split(".").slice(1);let r=this.memo;n.forEach((t,i)=>{let o={};if(i===n.length-1)try{o=()=>JSON.parse(e)}catch(e){throw this.memo=void 0,e}Object.prototype.hasOwnProperty.call(r,t)||(r[t]=o),"object"!=typeof o||(r=r[t])})})}getURLSearchParams(){const e=new URLSearchParams,t=(n,r)=>{Object.keys(n).forEach(i=>{const o=n[i],c=[...r,i];"object"!=typeof o?e.append(c.join("."),JSON.stringify(o())):t(o,c)})};return t(this.data,[this.qspPrefix]),e.sort(),e.append(this.verParam,this.spec.ver),e}getSerializedData(){return this.getURLSearchParams().toString()}}},"9i6q":function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n("jXSF");function i(){"undefined"!=typeof globalThis?globalThis.untrackedClickHandler=c:window.untrackedClickHandler=c}function o(){"undefined"!=typeof globalThis?document.addEventListener("click",globalThis.untrackedClickHandler):document.addEventListener("click",window.untrackedClickHandler)}function c(){Object(r.a)("Click event occurred before hydration",35800,{})}},AgqX:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return c}));const r=[0,656,980,1304];var i=n("Uaaq");const o="rd",c={ver:"0.1.0",spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>Object(i.c)(window.innerWidth,r)},locationHash:{clientValue:()=>window.location.hash},locationHref:{clientValue:()=>window.location.href},locationHost:{clientValue:()=>window.location.host},locationHostName:{clientValue:()=>window.location.hostname},locationOrigin:{clientValue:()=>window.location.origin},locationPathName:{clientValue:()=>window.location.pathname},locationProtocol:{clientValue:()=>window.location.protocol},locationSearch:{clientValue:()=>window.location.search},screenTop:{clientValue:()=>window.screenTop},screenY:{clientValue:()=>window.screenY},canUseCssGrid:{clientValue:()=>window.CSS&&window.CSS.supports&&CSS.supports("display","grid")||!1},devicePixelRatio:{clientValue:()=>window.devicePixelRatio},language:{clientValue:()=>document.documentElement.lang},direction:{clientValue:()=>document.documentElement.dir}}}},AjCL:function(e,t,n){"use strict";function r(){try{return localStorage}catch(e){return null}}n.d(t,"a",(function(){return r}))},BQg2:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));class r{constructor(e){this.searchParams=Object.create(null),this.parseQueryString(e)}set(e,t){return null!=t&&(this.searchParams[e]=t),this}get(e){return this.searchParams[e]}delete(e){delete this.searchParams[e]}toString(){const e=Object.keys(this.searchParams);return e.length?e.sort().map(e=>`${e}=${this.searchParams[e]}`).join("&"):""}parseQueryString(e){e&&("?"===e.charAt(0)&&(e=e.substring(1)),e.split("&").forEach(e=>{const t=e.split("="),n=t[0];this.get(n)||(this.searchParams[n]=t[1])}))}}},CncT:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("xYH4"),i=n("tMmC");class o{constructor(e){this.storage=e}get supported(){return!!this.storage}getItem(e){if(this.supported)return this.storage.getItem(e)}getObject(e,t){const n=this.getItem(e);if(null!=n){const e=Object(r.b)(n);if(null!=e)return e}return t}key(e){if(this.supported&&e>=0)return this.storage.key(e)}setObject(e,t){void 0!==t?this.setItem(e,JSON.stringify(t)):this.removeItem(e)}removeObject(e){const t=this.removeItem(e);if(null!=t)return Object(r.b)(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){i.a.logError(e)}}removeItem(e){if(this.supported){const t=this.getItem(e);return this.storage.removeItem(e),t}}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n=0;s--)(i=e[s])&&(c=(o<3?i(c):o>3?i(t,n,c):i(t,n))||c);return o>3&&c&&Object.defineProperty(t,n,c),c}function o(e,t,n,r){return new(n||(n=Promise))((function(i,o){function c(e){try{a(r.next(e))}catch(e){o(e)}}function s(e){try{a(r.throw(e))}catch(e){o(e)}}function a(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(c,s)}a((r=r.apply(e,t||[])).next())}))}Object.create;Object.create},HDSB:function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))},K9Fy:function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return o}));var r=n("xk7g"),i=n("HDSB");class o{constructor(){Object(i.a)()?(this.isDebugEnabled=(Object(r.a)(window.location.href,"debug")||"").toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!e.TEST_ENV&&(window.webpackRequire=n)):this.isDebugEnabled=!1}getLoggingService(){return null}isDebug(){return this.isDebugEnabled}setDebug(e){this.isDebugEnabled=e}setTags(e){}log(e,t){this.isDebug()&&console.info(e)}logError(e){console.error(e)}logCallback(e){this.isDebug()&&console.info(e())}logObjects(...e){this.isDebug()&&console.log(...e)}logSingleObject(e,t){this.isDebug()&&console.log(e)}}}).call(this,n("fRV1"))},PDCl:function(e,t,n){"use strict";var r,i;n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),function(e){e.NotStarted="NotStarted",e.Fetching="Fetching",e.InsertingDOM="InsertingDOM",e.Completed="Completed",e.HasFetchError="HasFetchError",e.HasError="HasError",e.SkipDueToCSROnly="SkipDueToCSROnly",e.SkipDueToHidden="SkipDueToHidden"}(r||(r={})),function(e){e.PureSSR="pssr",e.DSSR="dssr"}(i||(i={}))},Uaaq:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return c}));var r=n("yqT/");const i=[0,540,768,1084,1400,1779];function o(e,t=i){for(let n=t.length-1;n>=0;n--)if(e>=t[n])return n}function c(e,t){if(!Object(r.a)())return e[0];const n=t?o(window.innerWidth,t):o(window.innerWidth);return e.slice(0,n+1).pop()}},Uw7R:function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return u}));var r=n("HDSB");const i=Object(r.a)()?window._pageTimings||(window._pageTimings={}):{},o=Object(r.a)()?window._secondaryPageTimings||(window._secondaryPageTimings={}):{};function c(){return i}function s(){return o}function a(e,t=!0){if(!e||!i||t&&i.TTVR)return;const n=i[e]||(i[e]=0);i[e]=n+1}function u(){return Object(r.a)()?performance.now():performance.now()-i.ssrTimeOrigin}},"Vy+8":function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){let t,n,r;e.AIDRequestHeaderName="pcs-aid",function(e){e.inlineStart="page.inlineStart",e.fragmentFetchStart="ssr.fragmentFetching",e.fragmentFetchEnd="ssr.fragmentFetched",e.fragmentFetchStatusCode="ssr.fragmentFetchStatusCode",e.fragmentBrowserCached="ssr.fragmentBrowserCached",e.fragmentCDNCached="ssr.fragmentCDNCached",e.injectingDOM="ssr.injectingDOM",e.awaitingRAF="ssr.awaitingRAF",e.markersSet="ssr.markersSet",e.completed="ssr.completed",e.CSRTimeout="ssr.CSRTimeout",e.CSROnly="ssr.csrOnly",e.didSSR="ssr.isSSRPagePresent",e.riverEnabled="ssr.riverEnabled",e.ssrState="ssr.state",e.pageTTVR="TTVR",e.fetchDelayReason="ssr.fetchDelayReason",e.awaitingInnerWidthTime="ssr.awaitingInnerWidthTime",e.skipDueToHiddenReason="ssr.skipDueToHiddenReason",e.ssrResponseSize="ssr.responseSize"}(t=e.PageTimings||(e.PageTimings={})),e.Product={mmx:"emmx",edge:"spartan",edgeChromium:"anaheim",hybrid:"spartan",hub:"prime",microsoftNews:"msnews",office:"entnews",weather:"prime"},function(e){e[e.Mmx=0]="Mmx",e[e.Hub=1]="Hub",e[e.Edge=2]="Edge",e[e.Weather=3]="Weather",e[e.Finance=4]="Finance"}(n=e.AppType||(e.AppType={})),function(e){e[e.documentHidden=0]="documentHidden",e[e.hasPaused=1]="hasPaused",e[e.invalidInnerWidth=2]="invalidInnerWidth",e[e.slowFetchStart=3]="slowFetchStart"}(r=e.SkipDueToHiddenReason||(e.SkipDueToHiddenReason={})),e.pauseThresholdMS=1200,e.oneServiceHeaders="1s-headers"}(r||(r={}))},YBLW:function(e,t,n){"use strict";let r;function i(e){if(!e)return null;if(!r){const e=document.cookie.split("; ");r={};const t=e&&e.length;for(let n=0;nthis.maxLength&&this.list.shift()}get data(){return this.list}}},jXSF:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("faYi");let i,o;function c(){if(!i){const e=document.head.getAttribute("data-client-settings");e&&(i=JSON.parse(e))}return i}var s=n("YBLW");let a;const u={mmx:"emmx",edge:"spartan",edgeChromium:"anaheim",hybrid:"spartan",hub:"prime",microsoftNews:"msnews",office:"entnews"},d=new r.a;function l(e,t,n){try{const i=c(),l=function(){if(o)return o;let e=document.head.getAttribute("data-info");const t=c();if(Object(r.c)()){let n;try{const e=window.localStorage.getItem("shd_"+t.pagetype);n=JSON.parse(e)}catch(e){n=null}if(n){const r=n.clientSettings,i=n.info;r&&i&&t.pageGenTime0)return e.substring(0,t)}return""}(f.apikey));const m=function(e,t,n,r,i,o){if(n){i=i||{};const{apptype:c,audienceMode:a,pagetype:d,pageGenTime:l,bundleInfo:f}=n;i.pageGenTime=l,i.build=f&&f.v,i.appType=c;const g="enterprise"===a&&"edgeChromium"===c?"entnews":u[c],m=g||c,p=document.getElementsByTagName("html")[0].getAttribute("lang");let h="";try{getCookieConsentRequired&&"function"==typeof getCookieConsentRequired&&getCookieConsentRequired()||(h=Object(s.a)("muid"))}catch(e){console.log("error fetching muid.")}const w={name:"MS.News.Web.AppError",time:l,ver:"4.0",iKey:"o:"+r,data:{baseData:{},baseType:"MS.News.Web.Base",page:{name:"default",product:m,type:d},browser:{clientId:h},flight:{id:o},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:p},extSchema:{id:e,severity:0,pb:i,message:t}}};return w?JSON.stringify(w):null}return null}(t,e,i,g,n,l);if(f&&m){console.error(m),d.push(m);const e="https://"+a+"/OneCollector/1.0"+function(e){return"?"+Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&")}(f);navigator.sendBeacon(e,m)}else console.log("missing parameters in data-client-settings. "+e)}catch(t){console.log("error logging the app error. "+e)}}},rsRR:function(e,t,n){"use strict";n.r(t);var r=n("PDCl"),i=n("1/cg"),o=n("ulS/");if(window.SSR_Mode===r.a.PureSSR){window.RENDER=!0;const e=Object(o.a)(),t=Object(i.f)(e);window.SSRONLY="true"===Object(i.a)(i.o,t);const n=document.getElementById("root");if(n&&n.childElementCount>0){window.SSR=r.b.Completed;const e=window.TTVR_FLAGS;Object(i.n)({ttvrFlags:e});const t="object"==typeof window.SSR_TIMINGS?JSON.parse(window.SSR_TIMINGS.value):JSON.parse(window.SSR_TIMINGS);Object(i.m)(t),Object(i.m)(t.configTimings),Object(i.m)(t.pageTimings)}else window.SSR=r.b.HasError}},tMmC:function(e,t,n){"use strict";function r(e){i=e}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));let i=new(n("K9Fy").a)},"ulS/":function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n("xYH4");function i(){return Object(r.b)(document.head.dataset.clientSettings)}},xYH4:function(e,t,n){"use strict";function r(e){try{return JSON.parse(e)}catch(e){return null}}function i(e,t){const n=parseInt(e);return isNaN(n)?t:n}function o(e){try{return JSON.stringify(e)}catch(e){return null}}n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o}))},xk7g:function(e,t,n){"use strict";function r(e,t){const n=t.replace(/[[\]]/g,"\\$&"),r=new RegExp("[?&]"+n+"(=([^&#]*)|&|#|$)").exec(e);if(!r)return null;const i=r[2];return decodeURIComponent(i.replace(/\+/g," "))||""}n.d(t,"a",(function(){return r}))},"yqT/":function(e,t,n){"use strict";function r(){return!("undefined"==typeof window||!window.document||!window.document.createElement)}n.d(t,"a",(function(){return r}))}});