MSN i.delete(e),has:e=>i.has(e)});const r=”__RequestDataInstance__”;class c{constructor(e,t){if(this.url=new URL(e.href),this.innerHeight=e.innerHeight,this.devicePixelRatio=e.devicePixelRatio,this.canUseCssGrid=e.canUseCssGrid,this.requestId=e.requestId,this.cookie=e.cookie,this.referer=e.referer,this.userAgent=e.userAgent,this.clientData=e.clientData,this.oneServiceHeaders=function(e){try{if(e)return JSON.parse(e)}catch(e){}}(e.oneServiceHeaders)||{},this.isPssrMode=t,t){const e=a(“OSATE”,this.cookie),t=!!e&&”1″===e,n=a(“OSAT”,this.cookie);if(t&&n||!e&&!n)return this.msalAuthReady=!0,void(n&&(this.oneServiceHeaders.Authorization=`Bearer ${n}`));this.msalAuthReady=!1,this.pssrRejectedReason=e&&!t?”interactiveLogin”:e&&!n?”missOSAT”:”missOSATE”}}static getInstance(){const e=s.get(r);return e||(n.g.TEST_ENV?d({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}):d({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}))}static resetInstance(e){const t=new c(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return s.set(r,t),t}}function a(e,t){if(t&&e){const n=new RegExp(“\b”+e+”\s*=\s*([^;]*)”,”i”).exec(t);return n&&n.length>1?n[1]:null}return null}const d=c.resetInstance,l=()=>c.getInstance();var u,p;!function(e){e.Anon=”ANON”,e.AppAnon=”APP_ANON”,e.Unknown=””}(u||(u={})),function(e){e.AnonCookieExists=”ace”,e.AppAnonCookieExists=”aace”}(p||(p={}));const h=”child”;function g(e,t){if(e){const n=new RegExp(“\b”+t+”\s*=\s*([^;]*)”,”i”).exec(e);return n&&n.length>1?n[1]:null}return null}function w(e){try{if(e)return JSON.parse(e)}catch(e){}return null}var m;!function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(m||(m={}));const f=”prg-“;function v(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;const n=t.length,o=[];return e&&e.length&&(e.forEach((e=>{const i=e&&e.trim();i&&i.length>=n&&i.substring(0,n).toLowerCase()===t&&o.push(i.toLowerCase())})),o.sort()),o}function b(e){var t;return document.head.dataset[e]||(null===(t=k())||void 0===t?void 0:t.dataset[e])}let y;function k(){return void 0===y&&(y=document.getElementsByClassName(“peregrine-widget-settings”)[0]||null),y}const S=”Authorization”;var A,C;!function(e){e.Presentation=”presentation”}(A||(A={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(C||(C={}));var I,_;!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(I||(I={})),function(e){e.Init=”init”,e.Config=”config”,e.Targeted=”targeted”,e.Sticky=”sticky”,e.NoSticky=”no_sticky”,e.Admin=”admin”,e.Forced=”forced”,e.Manual=”manual”}(_||(_={}));new Set([“winp0dash”,”winp1taskbar”,”winp1taskbarent”,”winp1taskbardirect”,”winp1taskbardirectent”,”winp1taskbarent”,”winp2juntaskbar”,”winp2juntaskbarent”,”winp2″,”winp2ent”,”winp2fp”,”winp2fpent”,”winp2fptaskbar”,”winp2fptaskbarent”,”winp2fptaskbarhover”,”winp2fptaskbarhoverent”,”winp2widget”,”winp2widgetent”]);const E=new Set([“finance-app-win”,”weather-app-win”,”winpstoreapp”]),q=(new Set([“msedgdhp”,”msedgdhphdr”,”msedgntphdr”,”msedgntp”,”msedgdhp”,”entnewsntp”]),new Set([“hpmsn”]));function O(){var e;return o()?w(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}const N=”feed/personalize/settings”;function x(e,t){const n=t.replace(/[[]]/g,”\$&”),o=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!o)return null;const i=o[2];return decodeURIComponent(i.replace(/+/g,” “))||””}let L=new class{constructor(){o()?(this.isDebugEnabled=(x(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1}||”vp”===(x(window.location.href,”reqsrc”)||””).toLowerCase(),this.isDebugEnabled&&!n.g.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(){this.isDebug()&&console.log(…arguments)}logSingleObject(e,t){this.isDebug()&&console.log(e)}};class P{get supported(){return!!this.storage}constructor(e){this.storage=e}getItem(e){if(this.supported)return this.storage.getItem(e)}getObject(e,t){const n=this.getItem(e);if(null!=n){const e=w(n);if(null!=e)return e}return t}key(e){if(this.supported&&e>=0)return this.storage.key(e)}keys(){return this.supported?Object.keys(this.storage):[]}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 w(t)}setItem(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(this.supported)try{if(!t)throw”Attempted to store null/undefined value: “+t;this.storage.setItem(e,t)}catch(e){if(!n)throw e;L.logError(e)}else if(!n)throw new Error(“WebStorage not supported”)}get length(){if(this.supported)return this.storage.length}removeItem(e){if(this.supported){const t=this.getItem(e);return this.storage.removeItem(e),t}}clear(){this.supported&&this.storage.clear()}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;n{const e=j(K,!0),t=e&&w(e),{login_hint:n}=t||{};return n&&t})),X=V((()=>!!j(K)));function Y(){try{return localStorage}catch(e){return null}}const Q=”__PageExperimentInstance__”;function Z(e){s.set(Q,e)}function ee(e){if(!s.has(Q)&&o()){var t;Z(te(document.head.dataset.info||(null===(t=window.document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===t||null===(t=t.dataset)||void 0===t?void 0:t.info)||””))}const n=s.get(Q);return n&&n.has(e)}function te(e){const t=(e||””).replace(/(^f:|;.*$)/g,””).split(“,”);return new Set(t)}const ne=”uxlogin”,oe=”uxlogout”,ie=”uxedit”,se=”useRedirect”,re=”uxswitch”,ce=V((()=>{const e=Y();return e&&”1″===e.getItem(ne)||o()&&location.search&&location.search.includes(`${ne}=1`)}));const ae=V((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(oe)}));const de=V((()=>{const e=Y();return e&&”1″===e.getItem(ie)}));const le=V((()=>{const e=Y(),t=!ee(“prg-noredirect”)&&e&&”1″===e.getItem(se)&&function(){const e=document.head.dataset.clientSettings||””,{browser:t}=w(e)||{},{browserType:n=””}=t||{};return!!/safari/i.test(n)}();return t}));const ue=V((()=>{const e=Y();return e&&”1″===e.getItem(re)}));const pe={outlookMobile:”OnOOutlookMobile”,officeMobile:”OnOOfficeMobile”,sapphire:”OnOStartApp”,skype:”OnOSkype”,winWeatherApp:”weather-app-win”,xiaomiApp:”xmweather-“,launcher:”launcherntp”,launcherInterests:”launcherInterests”,moto:”moto”,swiftKey:”swiftKey”,winMoneyApp:”finance-app-win”},he=”superappdhp”,ge=[“ios”,”android”,”ipados”];let we=Oe(“ocid”).toLowerCase(),me=Oe(“chpltfm”),[fe,ve]=me.toLowerCase().split(“-“);function be(){if(!o())return!1;const e=window.sapphireWebViewBridge,t=window.webkit,n=e&&e.send,i=t&&t.messageHandlers&&t.messageHandlers.send&&t.messageHandlers.send.postMessage;return!(!n&&!i)}function ye(){const e=me&&”outlook”===fe&&ge.includes(ve),t=we===pe.outlookMobile.toLowerCase();return e||t}function ke(){const e=me&&[“office”,”union”].includes(fe)&&ge.includes(ve),t=we===pe.officeMobile.toLowerCase();return e||t}function Se(){const e=we===pe.skype.toLowerCase()||”skype”===fe;return o()&&(null===(t=window.skypeWebviewBridge)||void 0===t?void 0:t.isSkype)||e;var t}function Ae(){return!!o()&&(be()||we===pe.sapphire.toLowerCase()||we===he.toLowerCase())}function Ce(){const e=Oe(“edge”);return(“emmx”===fe||”1″===e)&&Ae()||”mmx”===we}function Ie(){return”3rdp”===fe||we.startsWith(pe.xiaomiApp)||we===pe.moto.toLowerCase()||_e()}function _e(){return we.toLowerCase()===pe.swiftKey.toLowerCase()||”swiftkey”==fe.toLowerCase()}function Ee(){return-1!==location.href.indexOf(“huawei”)||-1!==location.href.indexOf(“airfind”)||-1!==location.href.indexOf(“aloha”)||”vivo”===we&&Ie()}const qe=V((()=>be()||Se()||ke()||ye()||Ae()||we===pe.winWeatherApp.toLowerCase()||we===pe.winMoneyApp.toLowerCase()||Ce()||Ie()||[pe.launcher.toLowerCase(),pe.launcherInterests.toLowerCase()].includes(we)&&Ae()||_e()||Ee()||-1!==location.href.indexOf(“metaos=true”)));function Oe(e){try{return new URL(location.href).searchParams.get(e)||””}catch(e){return””}}const Ne=O()||{},xe={newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1,channeldesktop:1,channelmobile:1,edgeMobile:1},Le={edgeChromium:1},Pe={winWidgets:1},Re={edgeChromium:1,shopping:1,newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1},Te={edgeChromium:1,channeldesktop:1,channelmobile:1,cgHomePage:1,distribution:1,newsAndInterests:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,superApp:1,edgeMobile:1},We=V((()=>Ne&&Ne.apptype)),Me=(V((()=>o()&&We()in Pe)),V((()=>o()&&!qe()&&!(We()in xe)&&!Fe()&&!$e()))),Ue=V((()=>Me()&&!(We()in Le)));V((()=>Me()&&(!(We()in Le)||!X()))),V((()=>Me()&&!Ge()&&!Je()));function De(){return Je()||Ge()}const Fe=V((()=>{const e=!(We()in Re)&&Ve()&&function(){const e=new URLSearchParams(o()?window.location.search:l().url.search).get(“ocid”)||(null==Ne?void 0:Ne.ocid),t=null==e?void 0:e.toLowerCase(),n=!q.has(t)&&”homePage”!==We()&&!E.has(t);return n}()&&!function(){const e=”windows”==We()&&”windowshp”==(Ne&&Ne.pagetype)&&(o()?window.location.href:l().url.href).includes(`${N}`);return e}();return e})),$e=()=>o()&&document&&document.body&&document.body.getElementsByClassName(“peregrine-widgets”).length>0,He=V((()=>ee(“prg-1s-workid”)||ee(“prg-1s-sm-workid”)||ee(“prg-1s-twid”)||ee(“prg-1s-mm-wid-t”)));V((()=>We()in Te||Fe()));function Be(){const e=U;if(e)return L.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=F();if(t)return L.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${$()}`),t;L.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function je(e){const t={};return e&&(t[S]=`Bearer ${e}`),t}function Ge(){return Ue()&&ce()||function(){const e=Ue()&&!ce()&&z()&&(“expired”==$()||de());return e}()||ae()||le()}function Je(){return Ue()&&!z()&&ue()}const Ve=V((()=>{const{browser:e}=Ne,{browserType:t=””,detected:n={}}=e||{},{browserType:o=””}=n||{};return/edgeChromium/i.test(t)||/edgeAndroid/i.test(t)||/edgeiOS/i.test(t)||/edge/i.test(o)}));V((()=>Ue()&&!Fe()));const Ke=”__core_auth_authHeaderPromiseParts__”,ze=()=>s.get(Ke);var Xe;!function(){let e;const t={promise:new Promise((t=>e=t)),resolver:e};s.set(Ke,t)}(),function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}(Xe||(Xe={}));let Ye;function Qe(){return Ye}function Ze(e){const t=e||Qe()||”al_app_anon”,n=et();return!!(n&&([“anon”,”al_anon”].includes(t)&&n.AL_ANON||[“app_anon”,”al_app_anon”].includes(t)&&n.AL_APP_ANON))}const et=V((()=>w(j(“AL_STATE”,!0))));var tt,nt,ot;!function(e){e[e.Unknown=0]=”Unknown”,e[e.NotSignedIn=1]=”NotSignedIn”,e[e.SignedIn=2]=”SignedIn”}(tt||(tt={})),function(e){e.MSA=”MSA”,e.AAD=”AAD”,e.UNSUPPORTED_SOVEREIGNTY=”UNSUPPORTED_SOVEREIGNTY”}(nt||(nt={})),function(e){e[e.NonAadAccount=0]=”NonAadAccount”,e[e.AadAccount=1]=”AadAccount”,e[e.Unknown=2]=”Unknown”}(ot||(ot={}));const it=()=>{const e=j(“elt”,!0),t=e&&w(e),{access_token:n,account_type:o,login_hint:i,region_scope:s}=t||{};return(n||o||i||s)&&t};function st(e){if(“undefined”==typeof window||!window.document||window.isRenderServiceEnv)return;const t=window.trustedTypes;if(!t||!t.createPolicy)return;const n=window.trustedTypePolicies||(window.trustedTypePolicies={});if(n[e])return n[e];const o=t.createPolicy(e,{createScriptURL:e=>{const t=function(e){const t=[“ntp.msn.com”,”ntp.msn.cn”,”assets.msn.cn”,”assets.msn.com”,”www.bing.com”,”assets2.msn.com”,”assets2.msn.cn”,”www.clarity.ms”,”int.msn.com”,”r.bing.com”,”business.bing.com”,”staticview.msn.com”,”staticview.msn.cn”,document.location.hostname];let n;try{n=new URL(e,location.origin)}catch(e){return”about:blank#error”}if(n.hostname&&!t.includes(n.hostname))return”about:blank#error”;return e}(e);return t}});return n[e]=o,o}class rt{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info,this.command=”command”}init(e,t){this.clientSettings=e||O(),this.authCookieName=Qe()||window._authCookieName||””,this.bundle=window._webWorkerBundle||””,t=t||{};const n=this.buildWebWorkerUrl(this.clientSettings,t),o=this.clientSettings.apptype;let i;if(o&&”edgeChromium”===o){if(i=this.tryGetWebWorkerUsingPolicy(n,”webWorkerUrlPolicy”),!i)return void console.warn(“Error in creating trusted types compliant web worker”)}else i=window.webWorker=new Worker(n,{name:”web-worker”});const s=window.webWorkerMessages=[];i.onmessage=e=>{s.push(e.data)};const r=window.webWorkerErrors=[];if(i.onerror=e=>{r.push(e)},window.chrome){const e=this.getAudienceMode(this.clientSettings),t=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&”function”==typeof t.getPref&&(t.getPref(“ntp.news_feed_display”,(e=>{e&&e.value&&i.postMessage({id:”FeedDisplaySetting”,type:this.command,payload:e.value})})),t.getPref(“ntp.layout_mode”,(e=>{e&&e.value&&i.postMessage({id:”LayoutModeSetting”,type:this.command,payload:e.value})})),t.getPref(“ntp.user_nurturing”,(e=>{let t=!1;e&&e.value&&e.value.length&&(t=this.getSingleColRequest(e.value)),i.postMessage({id:”RenderSingleColumn”,type:this.command,payload:t})})),t.getPref(“new_device_fre.has_user_seen_new_fre”,(e=>{e&&i.postMessage({id:”NewUserFre”,type:this.command,payload:e.value})}))),t&&”function”==typeof t.getConfigData&&t.getConfigData((e=>{const t=(null==e?void 0:e.enabledFeatures)||[];t.includes(“msReducedNtpAdsForNewDevice_stage1″)&&i.postMessage({id:”EdgeNoAds”,type:this.command,payload:!0}),t.includes(“msReducedNtpAdsForNewDevice_stage2″)&&i.postMessage({id:”EdgeReduceAds”,type:this.command,payload:!0})})),e===m.Enterprise&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87?this.getEnterpriseAccessToken().then((e=>{e&&i.postMessage({id:”AuthTokenEnterprise”,type:this.command,payload:je(e)})})):i.postMessage({id:”AuthTokenEnterprise”,type:this.command,payload:{}}),e!==m.Adult&&e!==m.Enterprise||this.sendPageConfiguration()}De()&&ze().promise.then((e=>i.postMessage({id:”AuthHeaders”,type:this.command,payload:e||{}})))}buildWebWorkerUrl(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc(t)+this.qsAuth(e||this.clientSettings)+this.qsFromUrl()+this.qsFromServiceWorker()+this.qsSelectedPivot()+this.qsXboxXToken()}qs(e,t,n){return e?t+”=”+(n||e)+”&”:””}qsFromDocument(){var e;return this.qs(document.getElementsByTagName(“html”)[0].getAttribute(“lang”),”lang”)+this.qs(encodeURIComponent(window.location.href),”adsReferer”)+this.qs(null===(e=o()?window.devicePixelRatio:l().devicePixelRatio)||void 0===e?void 0:e.toString(),”devicePixelRatio”)}qsFromServiceWorker(){if(!navigator.serviceWorker||!navigator.serviceWorker.controller)return””;const e=navigator.serviceWorker.controller;if(“activated”!==e.state||!e.scriptURL)return””;if(e.scriptURL){const t=new URL(e.scriptURL).searchParams.toString();return t?”&”+t+”&”:””}return””}qsFromCookies(){return this.qs(J(this.authCookieName),”aace”,”1″)+this.qs(J(“muid”),”muid”)+this.qs(J(this.childCookieName),”child”)+this.qs(J(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(J(“ecasession”),”ecasession”)+this.qs(J(“TOptOut”),”browserOptOut”)}qsFromDataAttributeHelper(e,t){return e&&e.featureFlags&&e.featureFlags.wpoEnabled&&t&&!t.includes(“remwpofltww”)&&(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”)+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.qs(t,”dataInfo”)}qsSelectedPivot(){const e=”selectedPivot”;let t;try{const n=Y();n&&(t=n.getItem(e))}catch(e){console.warn(“Error getting pivot id from local storage. “+e)}return this.qs(t,e)}qsXboxXToken(){const e=”xboxXTokenId”;let t;try{const n=Y();n&&(t=n.getItem(e))}catch(e){console.warn(“Error getting xbox XToken from local storage. “+e)}return this.qs(t,e)}appendWpoFlightsToInfo(e,t){const n=this.getWpoFlightsFromLocalStorage(e);if(n&&n.length){const e=”;”,o=t.split(e);for(let e=0;ee.id))}}catch(e){console.warn(`Error getting wpo flights from ls for ${o} Error:${e}`)}return null}getHighestCbid(e,t){try{const n=Y(),o=parseInt(e),i=parseInt(JSON.parse(n.getItem(`cbid_${t||””}`)));let s;if(o&&!isNaN(o)&&i&&!isNaN(i)&&(s=o>i?o:i),s=s||o||i,s)return window._cbid=s.toString()}catch(e){console.warn(“Error getting highest CBID”+e)}}getAudienceMode(e){Y();const t=j(this.authCookieName),n=j(this.childCookieName),{child:o}=t&&JSON.parse(t)||{};return t&&(1===o||n)?”kids”:e.audienceMode||m.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=j&&j(“pglt-edgeChromium-“+e);if(t)return void window.webWorker.postMessage({id:”PageConfiguration”,type:this.command,payload:t})}window.webWorker.postMessage({id:”PageConfiguration”,type:this.command,payload:!1})}qsFromDataAttribute(e){let t,n;const o=Y();if(o){const i=JSON.parse(o.getItem(“shd_”+e.pagetype)||null);i&&i.clientSettings&&i.info&&(t={…i.clientSettings,bundleInfo:e.bundleInfo},n=i.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):””}getEnterpriseAccessToken(){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(e){return this.qs(performance.timeOrigin&&performance.timeOrigin.toString(),”mainTimeOrigin”)+this.qs(e.disableWWConfig&&”1″,”disableWWConfig”)}qsAuth(e){let t=this.qs(Ue()&&”1″,”disableWWAuth”);if(!De()){const e=Ue()&&Be()||{};t+=this.qs(encodeURIComponent(JSON.stringify(je(e.accessToken))),”authHeaders”)}return t+=this.qs(Ze()&&”1″,”isAccountLinked”),t+=this.qs(this.shouldFetchAppAnonCookie()&&”1″,”fetchAppAnonCookie”),t}getSingleColRequest(e){const t=”render_single_column”,n=”feed_layout”;let o,i;for(const s of e){const{key:e,value:r}=s;e===t?o=r:e===n&&(i=r)}return”boolean”==typeof o?o:!!i&&(i&&”single”===i.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===j(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===j(“eupubconsent-v2”);return e||t}shouldFetchAppAnonCookie(){if(!Ve())return!0;const e=(()=>{const e=it();if(e){if(“MSA”===e.account_type)return nt.MSA;if(“AAD”===e.account_type)return nt.AAD}})();return e===nt.MSA||G(“lt”)?!G(“aace”):e===nt.AAD?Ze()&&!He():void 0}tryGetWebWorkerUsingPolicy(e,t){const n=st(t);if(n){const t=n.createScriptURL(e),o=t&&t.toString();if(!o||”about:blank#error”===o)return;window.webWorker=new Worker(t,{name:”web-worker”})}else window.webWorker=new Worker(e,{name:”web-worker”});return window.webWorker}getFlightList(){return((/^f:s*([^;]+)/i.exec(this.domInfo)||{})[1]||””).toLowerCase().split(“,”)}}let ct,at,dt;function lt(){if(at)return at;const e=document.head.getAttribute(“data-info”);return at=((/f:s*([^;]+)/i.exec(e)||{})[1]||””).toLowerCase(),at}var ut;!function(e){e[e.Alert=0]=”Alert”,e[e.NoAlert=1]=”NoAlert”,e[e.HighImpact=2]=”HighImpact”,e[e.Critical=3]=”Critical”}(ut||(ut={}));const pt=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;this.maxLength=20,this.list=[],this.maxLength=e}push(e){this.list.push(e),this.list.length>this.maxLength&&this.list.shift()}get data(){return this.list}};function ht(e,t,n){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ut.Alert,i=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;try{const r=function(){if(!ct){const e=document.head.getAttribute(“data-client-settings”);e&&(ct=JSON.parse(e))}return ct}(),c=lt(),a=function(e){if(e){const{pcsInfo:t,pageGenTime:n}=e,o=new Date(n).getTime(),i=!t||[“prod”,”prod-ssr”,”prod-ssrntp”].includes(t.env);dt=i?”browser.events.data.msn.com”:”events-sandbox.data.msn.com”;return{cors:”true”,”content-type”:”application/x-json-stream”,”client-id”:”NO_AUTH”,”client-version”:”1DS-Web-JS-2.2.2″,apikey:i?”0ded60c75e44443aa3484c42c1c43fe8-9fc57d3f-fdac-4bcf-b927-75eafe60192e-7279″:”f8857dedc6f54ca8962cfb713e01e7d7-e9250191-fe0b-446f-95ae-07516262f98c-7028″,”upload-time”:o,w:”0″,anoncknm:”app_anon”}}return null}(r);let d=””;a&&a.apikey&&””!==a.apikey&&(d=function(e){if(e){const t=e.indexOf(“-“);if(t>0)return e.substring(0,t)}return””}(a.apikey));const l=function(e,t,n,o,i,s){let r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:ut.Alert;if(n){i=i||{};const{apptype:a,audienceMode:d,pagetype:l,pageGenTime:u,bundleInfo:p,deviceFormFactor:h=””,fd_muid:g,os:w}=n;i.pageGenTime=u,i.build=p&&p.v,i.appType=a;const m=function(e,t,n){const o=n&&”phone”===n.toLowerCase(),i=t&&”enterprise”===t,s={bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:i?”entnews”:”anaheim”,hybrid:”spartan”,hub:o?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:o?”prime_mobile”:”prime”,windowsShell:”windowsshell”};return s[e]}(a,d,h),f=m||a,v=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let b,y=””,k=”muid”;try{if(“edgeChromium”===a&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);b=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===d?b=”entnewsntp”:”xbox”===w&&(b=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(y=j(“muid”))}catch{}y||(y=n.aid,k=”aid”);const S={name:”MS.News.Web.AppError”,time:u,ver:”4.0″,iKey:`o:${o}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:f,type:gt(l),content:{category:”standaloneError”},ocid:b},browser:{clientId:y,clientIdType:k},flight:{id:s},request:{activityId:n.aid,requestId:n.aid,afdMuid:g},locale:{mkt:v},extSchema:{id:e,severity:r,pb:i,message:t}}};var c;if(y&&”muid”===k)S.ext={…null==S?void 0:S.ext,user:{…null==S||null===(c=S.ext)||void 0===c?void 0:c.user,localId:`t:${y}`}};return S.data.flight.tmpl=””,”object”==typeof window&&(window.isSSREnabled&&(S.data.flight.tmpl+=”;ssr-enabled:1″),window.isSSRCompleted&&(S.data.flight.tmpl+=”;ssr-completed:1″)),S?JSON.stringify(S):null}return null}(t,e,r,d,n,c,o);if(s&&!function(e){if(null==e)return!1;return e.startsWith(“2”)||e.startsWith(“3″)}(null==r?void 0:r.aid))return console.error(l),void console.error(`This App error Id: ${t} will not be sent due to app error sampling!`);if(a&&l){console.error(l),pt.push(l);const e=”https://”+dt+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(a);if(i&&!performance.getEntriesByType(“visibility-state”).some((e=>”visible”===e.name))){const t=()=>{“visible”===document.visibilityState&&navigator.sendBeacon(e,l)};document.addEventListener(“visibilitychange”,t,{once:!0})}else navigator.sendBeacon(e,l)}}catch{}}function gt(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”}return t}function wt(e){return new Promise((t=>setTimeout(t,e)))}const mt=”https://acdn.adnxs.com/ast/ast.js”;async function ft(){window.apntag=window.apntag||{anq:[]},window.apntag.anq=window.apntag.anq||[],await async function(e){if(!o())return;const{src:t,id:n,async:i=!0,container:s=document.head,retryNumber:r=0,retryDelayMs:c=0}=e;try{await async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;if(t3&&void 0!==arguments[3])||arguments[3];return new Promise(((s,r)=>{const c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:”anonymous”,s=arguments.length>4?arguments[4]:void 0,r=arguments.length>5?arguments[5]:void 0;if(!o())throw new Error(“createScriptTag is unsupported server side. This call should be wrapped in canUseDOM().”);const c=document.createElement(“script”);return t&&(c.id=t),s&&c.setAttribute(“class”,s),r&&(c.onload=r),c.type=”text/javascript”,e&&(window&&window.trustedTypesURLValidation?c.src=window.trustedTypesURLValidation(e,”scriptSrcUrlPolicy”):c.src=e,c.async=n,c.crossOrigin=i),window&&window.NONCE_ID&&(c.nonce=window.NONCE_ID),c}(e,t,i,void 0,void 0,(()=>s(!0)));c.crossOrigin=void 0,c.onerror=r,n.prepend(c)}))}(t,n,s,i)),r,c)}catch(e){ht(“Failed to download Static JS”,11103,{scriptId:n,scriptSrc:t},ut.Alert)}}({id:”display-sdk”,src:mt,container:document.head,retryDelayMs:200,retryNumber:5})}const vt=O();function bt(e){return((null==vt?void 0:vt.ocid)||””).toLowerCase().includes(e.toLowerCase())}function yt(){return bt(“superappdhp”)}const kt=”visibilitychange”;function St(){return”visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(kt,(()=>{“visible”===document.visibilityState&&e()}))}))}function At(e){const t=window&&window.chrome&&window.chrome.ntpSettingsPrivate;t&&t.logLoadingError&&St().then((()=>{t.logLoadingError(e)}))}function Ct(e,t){if(e instanceof Error){const n=e.toString();return t&&e.stack?`${n}, Stack: ${e.stack}`:n}return”string”==typeof e?e:function(e){try{return void 0===e?”undefined”:JSON.stringify(e)}catch{return””}}(e)}const{inlineCRS:It}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};try{var n;if(!o())return t;const{all:i,prg:s}=function(){const e=b(“info”),t=(e&&e.match(/f:s*([^;]+)/i)||[])[1]||””,n=t.split(“,”);return{all:n,prg:v(n)}}(),r=w(b(“clientSettings”))||{},c=null===(n=r.apptype)||void 0===n?void 0:n.toLocaleLowerCase(),a=e.crsOptions||{};”winwidgets”===c&&(a.crsPrefetch=!0);(a.crsPrefetch||i.includes(“inlinecrscall”)||i.includes(`icrscall-${c}`))&&(!function(e,t,n){const i=function(e,t){let n;const o=decodeURIComponent(g(e,”aace”)),{child:i}=o&&w(o)||{},s=g(e,h);return n=o&&(1===i||s)?m.Kids:t.audienceMode||m.Adult,n}(document.cookie,e),{apptype:s,browser:r,domain:c=””,bundleInfo:{v:a}={},deviceFormFactor:d=””,locale:{content:u,display:p}={},ocid:f,os:v=””,pagetype:b=””,servicesEndpoints:{crs:y}={}}=e,S=(k()?o()?window.location.hostname:l().url.hostname:c)||””;if(!s||!a||!y)return;const A={audienceMode:i,browser:r,deviceFormFactor:d,domain:S,locale:{content:u,display:p},ocid:f,os:v,platform:”web”,pageType:b,pageExperiments:t},C=new URLSearchParams([[“expType”,”AppConfig”],[“expInstance”,”default”],[“apptype”,s],[“v”,a]]),I=`${y.path}${y.v}/config/?${C}&targetScope=${JSON.stringify(A)}`,_=e=>{const t=new URL(`https://${e}${I}`),{timeout:o=5e3}=n;let i;if(window.crsRequestData={url:t.toString()},o>=0){const e=new AbortController;setTimeout((()=>e.abort()),o),i=e.signal}return fetch(t,{signal:i})},E=”msn.”+(function(e,t){return!!(e.hostname.toLowerCase().endsWith(“.cn”)||t.isChinaCompliance||t.useCnDomain||e.search.match(/item=revip:cn/))}(location,e)?”cn”:”com”),{domain:q}=y,O=q&&new URL(q).host;let N=_(O||`assets.${E}`);n.disableFallback||(N=N.catch((()=>{const{hostname:e}=location,t=e.match(/.msn.(com|cn)$/)?e:`www.${E}`;return _(t)})));window.crsPromise=N}(r,s,a),t.inlineCRS=!0)}catch(e){console.error(“InlineHeadCommon: “+e)}return t}();var _t;!function(){!function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[“vendors”,”common”,”microsoft”],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:”Error when loading bundle(s): “,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e5,o=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;St().then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const s=n.length,r=e.length+1;s{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)})),At(20202),ht(t+e.toString(),20202,{}),i&&(At(o),i(o,{customMessage:e.toString()})))}}),n)}))}();const e=new Set([“Script error.”,”ResizeObserver loop limit exceeded”,”ResizeObserver loop completed with undelivered notifications.”]);window.onerror=function(t,n,o,i,s){if(e.has(t))return;ht(“JS Exception”,20203,{source:n,line:o,message:t,stack:Ct(s,!0),currentUrl:window.location.href,column:i},ut.Alert)}}(),_t={disableWWConfig:It},yt()||(new rt).init(void 0,_t),function(){const e=bt(“skype”)&&(t=”prg-rr-skype-rv”,!((null===(n=document.head)||void 0===n||null===(n=n.getAttribute(“data-info”))||void 0===n?void 0:n.split(“;”).find((e=>e.startsWith(“f:”))))||””).includes(t))&&!(bt(“msnaroverlay”)||”phone”===(null==vt?void 0:vt.deviceFormFactor));var t,n;const o=bt(“skype”)&&”video”===(null==vt?void 0:vt.pagetype);yt()||(bt(“skype”)||bt(“office”)||bt(“outlook”))&&!e&&!o||ft()}()}(); ]]> onErrorHandler(s.src);s.nonce=””;s.crossOrigin=”anonymous”;document.body.appendChild(s);} ]]>
Source
Try Adsterra Earnings, it’s 100% Authentic to make money more and more.