MSN


MSN {const i=document.querySelector(n);if(i)return e(i)});i.observe(document.body,{childList:!0,subtree:!0})}));var n;if(!window.RENDER){e.headInjectionString&&document.head.insertAdjacentHTML(“beforeend”,e.headInjectionString),t.insertAdjacentHTML(“afterbegin”,e.html),document.head.insertAdjacentHTML(“beforeend”,”+e.css+””),e.pageTitle&&(document.title=e.pageTitle),j(e),window.REDUX_DATA=e.state,window.SSR=c.a.Completed,O(a.a.PageTimings.completed,!0),Object(u.a)();const n=e.ssrTimings||{};S(n),S(n.configTimings),S(n.pageTimings)}}))}function R(e,t){return t.get(e)||t.get(e.toLowerCase())}function C(e){window.SSR=e,window.RENDER=!0}function k(e,t,n,i,r){if(void 0===window.SSR){const o=”prg-edge-t-ssrt”,s=”prg-edge-t-ssrr”,u=”prg-mmx-p-ssrx”,l=”prg-mmx-p-ssrx-r”,f=[],g=[],p=”prg-wea-csr”,m=”prg-wea-csrrf”,w=”prg-weather-ssr”,b=”prg-wea-ssr”,S=”news::elections-2020-us”,O=”prg-fi-csr”,v=”prg-fi-csrrf”;let j=!1,T=!1,k=!1;switch(t){case a.a.AppType.Edge:T=i.indexOf(s)>=0,j=T||i.includes(o);break;case a.a.AppType.Mmx:T=i.indexOf(l)>=0,j=T||i.includes(u);break;case a.a.AppType.Hub:j=n===S;break;case a.a.AppType.Weather:if(“weather”!==n&&”weather::weathertoday”!==n){j=!1;break}if(!r||f.indexOf(r)>=0){j=!1;break}if(g.indexOf(r)>=0){if(0==i.filter(e=>e.startsWith(w)||e.startsWith(b)).length){j=!1;break}}else if(i.filter(e=>e.startsWith(p)||e.startsWith(m)).length>0||”true”===e.get(“csronly”)){j=!1;break}j=!0;break;case a.a.AppType.Finance:if(“true”===e.get(“csronly”))j=!1;else if(i.some(e=>e.startsWith(O)||e.startsWith(v)))j=!1;else switch(n){case”finance”:j=!0;break;case”financestockdetails”:case”finance::portfolio”:j=i.indexOf(“prg-fi-ssr-l2”)>=0;break;default:j=!1}}if(j){k=”true”===R(“ssrOnly”,e);const n=function(){let e=!1;const t=Object(d.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}(),i=h();if(!i&&!n||k)H(k,T);else{const e=i?a.a.SkipDueToHiddenReason.documentHidden:a.a.SkipDueToHiddenReason.hasPaused;y(a.a.PageTimings.skipDueToHiddenReason,e);(function(e,t,n){return n===a.a.SkipDueToHiddenReason.documentHidden&&e===a.a.AppType.Weather})(t,0,e)?H(k,T):(window.SSR=c.a.SkipDueToHidden,window.RENDER=!0)}}else C(c.a.SkipDueToCSROnly)}return!window.RENDER}function H(e,t){window.SSR=c.a.NotStarted,window.RENDER=!1,window.SSRONLY=e,window.RIVER=t}function q(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 E(e,t,n,i,r,o=g.a,u){if(window.RENDER||window.SSR!==c.a.NotStarted)return;const d=new p.a(o,g.b),l=b(e,function(e,t){const n=”true”===R(“ssrCdn”,e);return(t||(n?”https://assets.msn.com”:window.location.origin))+”/render/?fragment=true&”}(e,u),t,n,i,r,d.getSerializedData()),h=new XMLHttpRequest,m=e=>{const t=`Fragment fetch for ${l} failed. Status code: ${h.status}. ${e}`;Object(f.a)(t,34002,{}),window.SSR=c.a.HasFetchError,window.SSR_ERROR=new Error(t)};h.onabort=function(){m(“XMLHttpRequest.onabort called.”)},h.onerror=function(){m(“XMLHttpRequest.onerror called.”)},h.onreadystatechange=function(){try{if(4!==h.readyState)return;if(O(a.a.PageTimings.fragmentFetchEnd,!0),y(a.a.PageTimings.fragmentFetchStatusCode,h.status,!1),h.status>=200&&h.status<300){if(!window.RENDER){window.SSR=c.a.InsertingDOM;const e=JSON.parse(h.responseText);if(e.html)O(a.a.PageTimings.injectingDOM,!0),T(e);else{const e=`Fragment fetch for ${l} succeeded but returned empty html.`;Object(f.a)(e,34002,{}),window.SSR=c.a.HasFetchError,window.SSR_ERROR=new Error(e)}}const e=h.getResponseHeader("Date"),t=h.getResponseHeader("x-cache");!function(e,t,n){const i=function(e){const t=performance.getEntriesByType("resource").filter(t=>“xmlhttprequest”===t.initiatorType&&t.name===e);return t.length>0?t[0]:null}(e);let r=!1;r=D(i)?void 0!==(o=i).transferSize?0===o.transferSize:void 0!==o.nextHopProtocol?””===o.nextHopProtocol:(Object(f.a)(“didUseBrowserCache was called without supporting transferSize or nextHopProtocol”,34003,{perfResourceTimingKeys:Object.keys(o||{})}),!1):function(e){const t=Object(s.a)();if(!e||!t)return Object(f.a)(“dateResponseHeader was empty or localStorage is not supported”,34004,{dateResponseHeader:e}),!1;let n=!1;const i=t.getItem(“SSRDateResponseHeader”);i&&(n=i===e);n||t.setItem(“SSRDateResponseHeader”,e);return n}(t);var o;const c=function(e,t){return!e&&”TCP_HIT”===t}(r,n);y(a.a.PageTimings.fragmentBrowserCached,r?1:0,!1),y(a.a.PageTimings.fragmentCDNCached,c?1:0,!1)}(l,e,t)}else m(“Response is not OK.”)}catch(e){m(“Exception occured on XMLHttpRequest.onreadystatechange.n”+(e.stack||e))}},h.open(“GET”,l),h.withCredentials=!0;const w=t.aid;h.setRequestHeader(a.a.AIDRequestHeaderName,w),window.SSR=c.a.Fetching,O(a.a.PageTimings.fragmentFetchStart,!0),h.send()}function D(e){return e&&(“transferSize”in e||”nextHopProtocol”in e)}function P(){O(a.a.PageTimings.inlineStart,!0)}},”4qkC”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return o})),n.d(t,”b”,(function(){return s}));var i=n(“ypwz”);const r=new Map([[i.a.Edge,”prg-gitcfgs-edge”],[i.a.Finance,”prg-gitcfgs-fi”],[i.a.SuperApp,”prg-gitcfgs-t”],[i.a.Traffic,”prg-gitcfgs-traf”],[i.a.Weather,”prg-gitcfgs-wea”]]);function o(e){if(!e||0===e.length)return e;const t=[];return e.forEach(e=>{const n=e.toLocaleLowerCase().trim();(n.startsWith(“prg-“)||n.startsWith(“1s-“))&&t.push(n)}),t.sort()}function s(e,t,n,i){return!(!i||!e||”v3″!==e)&&(!n||function(e,t){const n=r.get(e);if(n){const e=o(t);return!!(e&&e.length&&e.includes(n))}return!1}(i,t))}},”9i/1”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return i}));class i{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,i)=>Object.assign(Object.assign({},n),{[i]:e(t[i])}),{})}(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 i=this.memo;n.forEach((t,r)=>{let o={};if(r===n.length-1)try{o=()=>JSON.parse(e)}catch(e){throw this.memo=void 0,e}Object.prototype.hasOwnProperty.call(i,t)||(i[t]=o),”object”!=typeof o||(i=i[t])})})}getURLSearchParams(){const e=new URLSearchParams,t=(n,i)=>{Object.keys(n).forEach(r=>{const o=n[r],s=[…i,r];”object”!=typeof o?e.append(s.join(“.”),JSON.stringify(o())):t(o,s)})};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 r})),n.d(t,”a”,(function(){return o}));var i=n(“jXSF”);function r(){“undefined”!=typeof globalThis?globalThis.untrackedClickHandler=s:window.untrackedClickHandler=s}function o(){“undefined”!=typeof globalThis?document.addEventListener(“click”,globalThis.untrackedClickHandler):document.addEventListener(“click”,window.untrackedClickHandler)}function s(){Object(i.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 s}));const i=[0,656,980,1304];var r=n(“Uaaq”);const o=”rd”,s={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>Object(r.c)(window.innerWidth,i)},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 i(){try{return localStorage}catch(e){return null}}n.d(t,”a”,(function(){return i}))},BQg2:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return i}));class i{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 i=n(“xYH4”),r=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(i.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(i.b)(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){r.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;a–)(r=e[a])&&(s=(o<3?r(s):o>3?r(t,n,s):r(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s}function o(e,t,n,i){return new(n||(n=Promise))((function(r,o){function s(e){try{c(i.next(e))}catch(e){o(e)}}function a(e){try{c(i.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,a)}c((i=i.apply(e,t||[])).next())}))}Object.create;Object.create},HDSB:function(e,t,n){“use strict”;function i(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}n.d(t,”a”,(function(){return i}))},K9Fy:function(e,t,n){“use strict”;(function(e){n.d(t,”a”,(function(){return o}));var i=n(“xk7g”),r=n(“HDSB”);class o{constructor(){Object(r.a)()?(this.isDebugEnabled=(Object(i.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″))},”Kh+O”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return r}));var i=n(“AgqX”);const r={ver:””+i.a.ver,spec:Object.assign(Object.assign({},i.a.spec),{isDarkModeEnabled:{clientValue:()=>!0===window.matchMedia(“(prefers-color-scheme:dark)”).matches}})}},PDCl:function(e,t,n){“use strict”;var i;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”}(i||(i={}))},Uaaq:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return r})),n.d(t,”c”,(function(){return o})),n.d(t,”b”,(function(){return s}));var i=n(“yqT/”);const r=[0,540,768,1084,1400,1779];function o(e,t=r){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}function s(e,t){if(!Object(i.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 s})),n.d(t,”c”,(function(){return a})),n.d(t,”d”,(function(){return c})),n.d(t,”a”,(function(){return u}));var i=n(“HDSB”);const r=Object(i.a)()?window._pageTimings||(window._pageTimings={}):{},o=Object(i.a)()?window._secondaryPageTimings||(window._secondaryPageTimings={}):{};function s(){return r}function a(){return o}function c(e,t=!0){if(!e||!r||t&&r.TTVR)return;const n=r[e]||(r[e]=0);r[e]=n+1}function u(){return Object(i.a)()?performance.now():performance.now()-r.ssrTimeOrigin}},VrHr:function(e,t,n){“use strict”;n.r(t);var i=n(“D57K”),r=n(“tMmC”),o=n(“K9Fy”),s=n(“1/cg”),a=n(“PDCl”),c=n(“Vy+8”),u=n(“jXSF”);function d(e){Object(u.a)(“Error when loading bundle: “+e,20202,{})}function l(e,t,n,i,r){const o={source:t,customMessage:e,line:n,column:i,stack:r&&r.stack};Object(u.a)(“JS Exception”,20203,o)}var f=n(“9i6q”),g=n(“Kh+O”),p=n(“ulS/”),h=n(“YBLW”),m=n(“AjCL”);Object(r.b)(new o.a),window.onErrorHandler=d,window.onerror=l,Object(f.b)();const w=Object(p.a)();(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info,this.WeaDetectLocSetting=”weaPeregrineDetectLocation”,this.WeaHomeLocCookie=”weaPeregrineHomeLocation”,this.WeaSpartanDetectLocSetting=”weaDetectLocation”,this.WeaSpartanHomeLocCookie=”weaSpartanHomeLocation”}init(e=null){this.clientSettings=e||JSON.parse(document.head.dataset.clientSettings),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const t=this.buildWebWorkerUrl();if(window.webWorker=new Worker(t,{name:”web-worker”}),window.webWorkerMessages=[],window.webWorker.onmessage=e=>{window.webWorkerMessages.push(e.data)},window.webWorkerErrors=[],window.webWorker.onerror=e=>{window.webWorkerErrors.push(e)},window.chrome){const e=this.getAudienceMode(this.clientSettings);let t=!1;const n=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;n&&”function”==typeof n.getPref&&(n.getPref(“ntp.news_feed_display”,e=>{e&&e.value&&window.webWorker.postMessage({id:”FeedDisplaySetting”,type:”command”,payload:e.value})}),n.getPref(“ntp.layout_mode”,e=>{e&&e.value&&window.webWorker.postMessage({id:”LayoutModeSetting”,type:”command”,payload:e.value})}),”adult”===e&&(t=!0,n.getPref(“ntp.user_nurturing”,e=>{let t=!1;e&&e.value&&e.value.length&&(t=this.getSingleColRequest(e.value)),window.webWorker.postMessage({id:”RenderSingleColumn”,type:”command”,payload:t})}))),t||window.webWorker.postMessage({id:”RenderSingleColumn”,type:”command”,payload:!1}),”enterprise”===e&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87&&this.getAccessToken().then(e=>{e&&window.webWorker.postMessage({id:”AuthToken”,type:”command”,payload:e})}),”adult”!==e&&”enterprise”!==e||this.sendPageConfiguration()}}buildWebWorkerUrl(e=null){return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsFromUrl()}qs(e,t,n){return e?t+”=”+(n||e)+”&”:””}qsFromDocument(){return this.qs(document.getElementsByTagName(“html”)[0].getAttribute(“lang”),”lang”)+this.qs(encodeURIComponent(window.location.href),”adsReferer”)}qsFromCookies(){return this.qs(Object(h.b)(this.authCookieName),”aace”,”1″)+this.qs(Object(h.b)(“muid”),”muid”)+this.qs(Object(h.b)(this.childCookieName),”child”)+this.qs(Object(h.b)(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(Object(h.b)(“ecasession”),”ecasession”)+this.qs(Object(h.b)(“TOptOut”),”browserOptOut”)}qsFromDataAttributeHelper(e,t){return e&&e.featureFlags&&e.featureFlags.wpoEnabled&&(t=this.appendWpoFlightsToInfo(e,t)),this.qs(e.pcsInfo&&e.pcsInfo.env||e.env,”env”)+this.qs(e.aid,”aid”)+this.qs(e.apptype,”apptype”)+this.qs(e.pagetype,”pagetype”)+this.qs(e.audienceMode,”audienceMode”)+this.qs(e.configIndexDocId,”configIndexDocId”)+this.qs(e.deviceFormFactor,”deviceFormFactor”)+this.qs(e.domain,”domain”)+this.qs(e.configRootUrl,”configRootUrl”)+this.qs(this.getHighestCbid(e.cbid,e.apptype),”cbid”)+this.qs(e.ocid,”ocid”)+this.qs(e.os,”os”)+this.qs(JSON.stringify(e.locale),”locale”)+this.qs(e.geo_lat,”lat”)+this.qs(e.geo_long,”long”)+(“dhp”===e.pagetype||”ntp”===e.pagetype?this.qs(Object(h.b)(this.WeaSpartanHomeLocCookie),this.WeaSpartanHomeLocCookie)+this.qs(Object(h.b)(this.WeaSpartanDetectLocSetting),this.WeaSpartanDetectLocSetting):this.qs(Object(h.b)(this.WeaHomeLocCookie),this.WeaHomeLocCookie)+this.qs(Object(h.b)(this.WeaDetectLocSetting),this.WeaDetectLocSetting))+this.qs(JSON.stringify(e.featureFlags),”featureFlags”)+this.qs(JSON.stringify(e.browser),”browser”)+this.qs(JSON.stringify(e.servicesEndpoints),”servicesEndpoints”)+this.qs(e.bundleInfo&&e.bundleInfo.v||””,”buildVersion”)+this.buildArtifactHashes(e)+this.qs(t,”dataInfo”)}appendWpoFlightsToInfo(e,t){const n=this.getWpoFlightsFromLocalStorage(e);if(n&&n.length){const e=”;”,i=t.split(e);for(let e=0;ee.id)}}catch(e){console.warn(`Error getting wpo flights from ls for ${i} Error:${e}`)}return null}buildArtifactHashes(e){let t;try{const{locale:n={},bundleInfo:i={},audienceMode:r,pagetype:o,apptype:s}=e,{hash:a,configsHash:c,locConfigsHash:u}=i;if(!a||!c||!u)return””;t=this.qs(a,”bundleHash”)+this.qs(c,”configHash”)+this.qs(u,”locHash”);const d=`config_hash_${r}_${n.language}_${n.market}_${o}_${s}`,l=Object(m.a)().getItem(d);if(l){const{bundleHash:e,configHash:n,locHash:i}=JSON.parse(l)||{};e&&n&&i&&(t+=this.qs(e,”lastBundleHash”)+this.qs(n,”lastConfigHash”)+this.qs(i,”lastLocHash”))}return t}catch(e){console.error(“Error getting config hashes from ls: “+e)}return t}getHighestCbid(e,t){try{const n=Object(m.a)(),i=parseInt(e),r=parseInt(JSON.parse(n.getItem(“cbid_”+(t||””))));let o;if(i&&!isNaN(i)&&r&&!isNaN(r)&&(o=i>r?i:r),o=o||i||r,o)return window._cbid=o.toString()}catch(e){console.log(“Error getting highest CBID”+e)}}getAudienceMode(e){const t=Object(m.a)();return Object(h.b)(this.authCookieName)&&Object(h.b)(this.childCookieName)?”kids”:”enterprise”===e.audienceMode&&t&&t.getItem(“forceConsumer”)?”adult”:e.audienceMode||”adult”}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=h.a&&”function”==typeof h.a&&Object(h.a)(“pglt-edgeChromium-“+e);if(t)return void window.webWorker.postMessage({id:”PageConfiguration”,type:”command”,payload:t})}window.webWorker.postMessage({id:”PageConfiguration”,type:”command”,payload:!1})}qsFromDataAttribute(e){let t,n;const i=Object(m.a)();if(i){const r=JSON.parse(i.getItem(“shd_”+e.pagetype)||null);r&&r.clientSettings&&r.info&&(t=Object.assign(Object.assign({},r.clientSettings),{bundleInfo:e.bundleInfo}),n=r.info)}return(!t||!n||e.pageGenTime>=t.pageGenTime)&&(t=e,n=this.domInfo),t.audienceMode=this.getAudienceMode(t),this.qsFromDataAttributeHelper(t,n)}qsFromUrl(){const e=location.search;return e&&e.length?e.substring(1,e.length):””}getAccessToken(){return new Promise(e=>{window.chrome&&window.chrome.authPrivate?window.chrome.authPrivate.getPrimaryAccountInfo(t=>{t&&”GCC_MODERATE”!==t.region_scope||e(“”);const n={account_id:t.account_id,account_type:t.account_type,client_id:”d7b530a4-7680-4c23-a8bf-c52c121d2e87″,scope_or_resource:”https://enterprisenews.microsoft.com”};window.chrome.authPrivate.acquireAccessTokenSilently(n,t=>{t.is_success?e(t.access_token):e(“”)})}):e(“”)})}qsMisc(){return this.qs(performance.timeOrigin&&performance.timeOrigin.toString(),”mainTimeOrigin”)}getSingleColRequest(e){const t=”render_single_column”,n=”feed_layout”;let i,r;for(const o of e){const{key:e,value:s}=o;e===t?i=s:e===n&&(r=s)}return”boolean”==typeof i?i:!!r&&(r&&”single”===r.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===Object(h.a)(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===Object(h.a)(“eupubconsent-v2″);return e||t}}).init(w),function(){Object(i.a)(this,void 0,void 0,(function*(){try{if(Object(s.f)(),!window.RENDER)if(w&&window._ssrServiceEntryUrl){const e=Object(s.d)(w),t=Object(s.c)(w,e);if(Object(s.a)(e,c.a.AppType.Hub,w.pagetype,t))try{const n=()=>””;Object(s.b)(e,w,t,window._ssrServiceEntryUrl,n,g.a)}catch(e){Object(u.a)(“Exception occured on fetchSSRPage.n”+(e.stack||e),34007,{}),Object(s.g)(a.a.HasError)}}else Object(u.a)(“Failed SSR inline script due to missing client settings or SSR service entry.”,34007,{}),Object(s.g)(a.a.HasError)}catch(e){Object(u.a)(“Exception occured on SSR inline script.n”+(e.stack||e),34007,{}),Object(s.g)(a.a.HasError)}}))}()},”Vy+8”:function(e,t,n){“use strict”;var i;n.d(t,”a”,(function(){return i})),function(e){let t,n,i;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”}(i=e.SkipDueToHiddenReason||(e.SkipDueToHiddenReason={})),e.pauseThresholdMS=1200}(i||(i={}))},YBLW:function(e,t,n){“use strict”;let i;function r(e){if(!e)return null;if(!i){const e=document.cookie.split(“; “);i={};const t=e&&e.length;for(let n=0;nthis.maxLength&&this.list.shift()}get data(){return this.list}};function l(e,t,n){try{const r=s(),l=function(){if(o)return o;let e=document.head.getAttribute(“data-info”);const t=s();if(i()){let n;try{const e=window.localStorage.getItem(“shd_”+t.pagetype);n=JSON.parse(e)}catch(e){n=null}if(n){const i=n.clientSettings,r=n.info;i&&r&&t.pageGenTime0)return e.substring(0,t)}return””}(f.apikey));const p=function(e,t,n,i,r,o){if(n){r=r||{};const{apptype:s,audienceMode:c,pagetype:d,pageGenTime:l,bundleInfo:f}=n;r.pageGenTime=l,r.build=f&&f.v,r.appType=s;const g=”enterprise”===c&&”edgeChromium”===s?”entnews”:u[s],p=g||s,h=s+”-“+d,m=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let w=””;try{getCookieConsentRequired&&”function”==typeof getCookieConsentRequired&&getCookieConsentRequired()||(w=Object(a.a)(“muid”))}catch(e){console.log(“error fetching muid.”)}const b={name:”MS.News.Web.AppError”,time:l,ver:”4.0″,iKey:”o:”+i,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:p,type:d},browser:{clientId:w},flight:{id:o},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:m},extSchema:{id:e,source:h,severity:0,pb:r,message:t}}};return b?JSON.stringify(b):null}return null}(t,e,r,g,n,l);if(f&&p){console.error(p),d.push(p);const e=”https://”+c+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(f);navigator.sendBeacon(e,p)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}},tMmC:function(e,t,n){“use strict”;function i(e){r=e}n.d(t,”b”,(function(){return i})),n.d(t,”a”,(function(){return r}));let r=new(n(“K9Fy”).a)},”ulS/”:function(e,t,n){“use strict”;n.d(t,”a”,(function(){return r}));var i=n(“xYH4”);function r(){return Object(i.b)(document.head.dataset.clientSettings)}},xYH4:function(e,t,n){“use strict”;function i(e){try{return JSON.parse(e)}catch(e){return null}}function r(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 i})),n.d(t,”a”,(function(){return r})),n.d(t,”c”,(function(){return o}))},xk7g:function(e,t,n){“use strict”;function i(e,t){const n=t.replace(/[[]]/g,”\$&”),i=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!i)return null;const r=i[2];return decodeURIComponent(r.replace(/+/g,” “))||””}n.d(t,”a”,(function(){return i}))},ypwz:function(e,t,n){“use strict”;var i,r;n.d(t,”a”,(function(){return i})),n.d(t,”b”,(function(){return r})),function(e){e.BingHomepage=”bingHomepage”,e.Community=”community”,e.ContentTools=”contentTools”,e.Edge=”edge”,e.EdgeChromium=”edgeChromium”,e.Finance=”finance”,e.FirstParty=”firstParty”,e.HomePage=”homePage”,e.Hub=”hub”,e.MediaSvc=”mediasvc”,e.Hybrid=”hybrid”,e.MicrosoftNews=”microsoftNews”,e.MMX=”mmx”,e.NewsAndInterests=”newsAndInterests”,e.Office=”office”,e.qna=”qna”,e.Recipes=”recipes”,e.SharedWidgets=”sharedWidgets”,e.SuperApp=”superApp”,e.Shopping=”shopping”,e.Traffic=”traffic”,e.Travel=”travel”,e.UGC=”ugc”,e.Views=”views”,e.Weather=”weather”,e.Windows=”windows”,e.WindowsNewsPlus=”windowsNewsPlus”,e.WindowsShell=”windowsShell”,e.WindowsNewsBar=”windowsNewsbar”}(i||(i={})),function(e){e.Default=”Default”,e.WinDashboard=”WinDashboard”,e.Edge=”Edge”}(r||(r={}))},”yqT/”:function(e,t,n){“use strict”;function i(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}n.d(t,”a”,(function(){return i}))}}); ]]>

Source

Leave a Comment

Your email address will not be published. Required fields are marked *

Translate »