MSN

[]
MSN i.delete(e),has:e=>i.has(e)});const s=”__RequestDataInstance__”;class a{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=c(“OSATE”,this.cookie),t=!!e&&”1″===e,n=c(“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=r.get(s);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 a(e,arguments.length>1&&void 0!==arguments[1]&&arguments[1]);return r.set(s,t),t}}function c(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=a.resetInstance,l=()=>a.getInstance();function u(){return o()?window.location.search:l().url.search}var p,h;!function(e){e.Anon=”ANON”,e.AppAnon=”APP_ANON”,e.Unknown=””}(p||(p={})),function(e){e.AnonCookieExists=”ace”,e.AppAnonCookieExists=”aace”}(h||(h={}));const g=”child”;function w(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 f(e){try{if(e)return JSON.parse(e)}catch(e){}return null}const m=”prg-pr2-“,v=”prg-pw-“,b=”prg-“,y=”prg-1sw-“;function k(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:b;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 C(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:””,n=b;var o,i;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]?n=v:t.toLocaleLowerCase()===”windowsShell”.toLocaleLowerCase()||t.toLocaleLowerCase()===”windowsShellV2″.toLocaleLowerCase()?n=y:t.toLocaleLowerCase()!==”winWidgets”.toLocaleLowerCase()||(null===(o=window)||void 0===o||null===(o=o.location)||void 0===o||null===(o=o.search)||void 0===o?void 0:o.includes(“reqsrc=vp”))||null!==(i=window)&&void 0!==i&&null!==(i=i.location)&&void 0!==i&&null!==(i=i.search)&&void 0!==i&&i.includes(“vptest”)||(n=m),n}function S(e){var t;return document.head.dataset[e]||(null===(t=A())||void 0===t?void 0:t.dataset[e])}let I;function A(){return void 0===I&&(I=document.getElementsByClassName(“peregrine-widget-settings”)[0]||null),I}function q(e){var t;if(!e||!e.startsWith(“f:”))return;const n=(e.match(/f:s*([^;]+)/i)||[])[1];return n?null===(t=n.toLowerCase().split(“,”))||void 0===t?void 0:t.sort():[]}const _=”Authorization”;var x,O;!function(e){e.Presentation=”presentation”}(x||(x={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(O||(O={}));var L,E;!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(L||(L={})),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”}(E||(E={}));new Set([“winp0dash”,”winp1taskbar”,”winp1taskbarent”,”winp1taskbardirect”,”winp1taskbardirectent”,”winp1taskbarent”,”winp2juntaskbar”,”winp2juntaskbarent”,”winp2″,”winp2ent”,”winp2fp”,”winp2fpent”,”winp2fptaskbar”,”winp2fptaskbarent”,”winp2fptaskbarhover”,”winp2fptaskbarhoverent”,”winp2widget”,”winp2widgetent”]);const T=new Set([“finance-app-win”,”weather-app-win”,”winpstoreapp”]),N=(new Set([“msedgdhp”,”msedgdhphdr”,”msedgntphdr”,”msedgntp”,”msedgdhp”,”entnewsntp”]),new Set([“hpmsn”]));new Set([“chromentpnews”]);function W(){var e;return o()?f(document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”))):null}const R=”feed/personalize/settings”;function P(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 M=new class{constructor(){o()?(this.isDebugEnabled=(P(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1}||”vp”===(P(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 F{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=f(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 f(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;M.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=z(Y,!0),t=e&&f(e),{login_hint:n}=t||{};return n&&t})),ee=Q((()=>!!z(Y)));function te(){try{return localStorage}catch(e){return null}}const ne=”__PageExperimentInstance__”;function oe(e){r.set(ne,e)}function ie(e){if(!r.has(ne)&&o()){var t;oe(re(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=r.get(ne);return n&&n.has(e)}function re(e){const t=(e||””).replace(/(^f:|;.*$)/g,””).split(“,”);return new Set(t)}const se=”uxlogin”,ae=”uxlogout”,ce=”uxedit”,de=”useRedirect”,le=”uxswitch”,ue=Q((()=>{const e=te();return e&&”1″===e.getItem(se)||o()&&location.search&&location.search.includes(`${se}=1`)}));const pe=Q((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(ae)}));const he=Q((()=>{const e=te();return e&&”1″===e.getItem(ce)}));const ge=Q((()=>{const e=te(),t=!ie(“prg-noredirect”)&&e&&”1″===e.getItem(de)&&function(){const e=document.head.dataset.clientSettings||””,{browser:t}=f(e)||{},{browserType:n=””}=t||{};return!!/safari/i.test(n)}();return t}));const we=Q((()=>{const e=te();return e&&”1″===e.getItem(le)}));const fe={bingHomepageMobile:”binghomepagemobile”,outlookMobile:”OnOOutlookMobile”,msnCopilot:”cp_msn_news”,officeMobile:”OnOOfficeMobile”,sapphire:”OnOStartApp”,skype:”OnOSkype”,freFullPage:”emmxFre”,winWeatherApp:”weather-app-win”,xiaomiApp:”xmweather-“,launcher:”launcherntp”,launcherInterests:”launcherInterests”,swiftKey:”swiftKey”,winMoneyApp:”finance-app-win”},me=”superappdhp”,ve=[“ios”,”android”,”ipados”],be=”_ocidIsomorphicKey”,ye=()=>(r.get(be)||r.set(be,Fe(“ocid”).toLowerCase()),r.get(be)),ke=”_platformFlagKey”,Ce=”_hostAppNameKey”,Se=”_clientTypeKey”,Ie=()=>(r.get(ke)||r.set(ke,Fe(“chpltfm”)),r.get(ke)),Ae=()=>{if(!r.get(Ce)){const e=Ie();r.set(Ce,e.toLowerCase().split(“-“)[0])}return r.get(Ce)},qe=()=>{if(!r.get(Se)){const e=Ie();r.set(Se,e.toLowerCase().split(“-“)[1])}return r.get(Se)};function _e(){if(!o()||Re())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 xe(){const e=Ie()&&”outlook”===Ae()&&ve.includes(qe()),t=ye()===fe.outlookMobile.toLowerCase();return e||t}function Oe(){const e=Ie()&&[“office”,”union”].includes(Ae())&&ve.includes(qe()),t=ye()===fe.officeMobile.toLowerCase();return e||t}function Le(){const e=ye()===fe.skype.toLowerCase()||”skype”===Ae();return o()&&(null===(t=window.skypeWebviewBridge)||void 0===t?void 0:t.isSkype)||e;var t}function Ee(){return!(!o()||Re())&&(_e()||ye()===fe.sapphire.toLowerCase()||ye()===me.toLowerCase())}function Te(){const e=Fe(“edge”);return(“emmx”===Ae()||”1″===e)&&Ee()||”mmx”===ye()}function Ne(){return”3rdp”===Ae()||ye().startsWith(fe.xiaomiApp)||Re()}function We(){return[fe.launcher.toLowerCase(),fe.launcherInterests.toLowerCase()].includes(ye())&&Ee()}function Re(){return ye().toLowerCase()===fe.swiftKey.toLowerCase()||”swiftkey”==Ae().toLowerCase()}function Pe(){return-1!==window.location.href.indexOf(“huawei”)||-1!==window.location.href.indexOf(“airfind”)||-1!==window.location.href.indexOf(“aloha”)||”vivo”===ye()&&Ne()}const Me=Q((()=>_e()||Le()||Oe()||xe()||Ee()||ye()===fe.winWeatherApp.toLowerCase()||ye()===fe.winMoneyApp.toLowerCase()||Te()||Ne()||We()||Re()||Pe()||-1!==window.location.href.indexOf(“metaos=true”)));function Fe(e){try{return new URL(location.href).searchParams.get(e)||””}catch(e){return””}}const De=W()||{},Ue={newsAndInterests:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,distribution:1,superApp:1,channelmobile:1,edgeMobile:1},$e={edgeChromium:1},je={winWidgets:1},He={edgeChromium:1,shopping:1,newsAndInterests:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,windowsShellV2:1,msn:1},Be={edgeChromium:1,channelmobile:1,cgHomePage:1,distribution:1,newsAndInterests:1,windowsNewsPlus:1,winWidgets:1,webWidgets:1,windowsShell:1,windowsShellV2:1,superApp:1,edgeMobile:1},Je=Q((()=>De&&De.apptype)),Ge=(Q((()=>o()&&Je()in je)),Q((()=>o()&&!Me()&&!(Je()in Ue)&&!ze()&&!Xe()))),Ve=Q((()=>Ge()&&!(Je()in $e)));Q((()=>Ge()&&(!(Je()in $e)||!ee()))),Q((()=>Ge()&&!Ye()&&!Ze()));const Ke=Q((()=>Ze()||Ye())),ze=Q((()=>!(Je()in He)&&et()&&function(){if(“homePage”==Je())return!0;const e=new URLSearchParams(u()).get(“ocid”)||(null==De?void 0:De.ocid),t=null==e?void 0:e.toLowerCase();if(N.has(t)&&ie(“prg-msn-id”))return!0;const n=!N.has(t)&&!T.has(t);return n}()&&!function(){const e=”windows”==Je()&&”windowshp”==(De&&De.pagetype)&&(o()?window.location.href:l().url.href).includes(`${R}`);return e}())),Xe=()=>o()&&document&&document.body&&document.body.getElementsByClassName(“peregrine-widgets”).length>0;Q((()=>Je()in Be||ze()));function Qe(){const e=H;if(e)return M.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=J();if(t)return M.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${G()}`),t;M.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function Ye(){return Ve()&&ue()||function(){const e=Ve()&&!tt()&&!ue()&&Z()&&(“expired”==G()||he());return e}()||pe()||ge()}function Ze(){return Ve()&&!Z()&&we()}const et=Q((()=>{const{browser:e}=De,{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)}));Q((()=>Ve()&&!ze()));const tt=()=>{const e=Z();if(!e)return!1;let t;switch(e.account_type){case”MSA”:t=Ve()?”ace”:”aace”;break;case”AAD”:t=Ve()?”WID”:”APP_WID”;break;default:return!1}return!!z(t)};const nt=”__core_auth_authHeaderPromiseParts__”,ot=()=>r.get(nt);let it;function rt(){return it}!function(){let e;const t={promise:new Promise((t=>e=t)),resolver:e};r.set(nt,t)}();const st=Q((()=>f(z(“AL_STATE”,!0))));class at{constructor(){this.childCookieName=”child”,this.command=”command”,this.domInfo=document.head.dataset.info,this.canvasInfo=document.head.dataset.canvasInfo||””}init(e,t){this.clientSettings=e||W(),this.authCookieName=rt()||window._authCookieName||””,this.bundle=window._webWorkerBundle||””,t=t||{};const n=this.buildWebWorkerUrl(this.clientSettings,t),o=window.webWorker=this.createWebWorkerInstance(n);o?this.initCore(o):console.warn(“Error while initializing the web worker.”)}initCore(e){const t=window.webWorkerMessages=[];e.onmessage=e=>{t.push(e.data)};const n=window.webWorkerErrors=[];e.onerror=e=>{n.push(e)},Ke()&&ot().promise.then((t=>e.postMessage({id:”AuthHeaders”,type:this.command,payload:t||{}})))}createWebWorkerInstance(e){return new Worker(e,{name:”web-worker”})}shouldFetchAppAnonCookie(){return!0}getAudienceMode(e){te();const t=z(this.authCookieName),n=z(this.childCookieName),{child:o}=t&&JSON.parse(t)||{};return t&&(1===o||n)?”kids”:e.audienceMode||”adult”}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(X(this.authCookieName),”aace”,”1″)+this.qs(X(“muid”),”muid”)+this.qs(X(this.childCookieName),”child”)+this.qs(X(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(X(“ecasession”),”ecasession”)+this.qs(X(“TOptOut”),”browserOptOut”)}qsFromDataAttributeHelper(e,t,n){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”)+this.qs(n,”canvasInfo”)}qsSelectedPivot(){const e=”selectedPivot”;let t;try{const n=te();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=te();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=te(),o=parseInt(e),i=parseInt(JSON.parse(n.getItem(`cbid_${t||””}`)));let r;if(o&&!isNaN(o)&&i&&!isNaN(i)&&(r=o>i?o:i),r=r||o||i,r)return window._cbid=r.toString()}catch(e){console.warn(“Error getting highest CBID”+e)}}qsFromDataAttribute(e){let t,n,o;const i=te();if(i){const o=JSON.parse(i.getItem(“shd_”+e.pagetype)||null);o&&o.clientSettings&&o.info&&(t={…o.clientSettings,bundleInfo:e.bundleInfo},n=o.info)}return(!t||!n||e.pageGenTime>=t.pageGenTime)&&(t=e,n=this.domInfo,o=this.canvasInfo),t.audienceMode=this.getAudienceMode(t),this.qsFromDataAttributeHelper(t,n,o)}qsFromUrl(){const e=location.search;return e&&e.length?e.substring(1,e.length):””}qsMisc(e){return this.qs(performance.timeOrigin&&performance.timeOrigin.toString(),”mainTimeOrigin”)+this.qs(e.disableWWConfig&&”1″,”disableWWConfig”)}qsAuth(e){let t=this.qs(Ve()&&”1″,”disableWWAuth”);if(!Ke()){const e=Ve()&&Qe()||{};t+=this.qs(encodeURIComponent(JSON.stringify(function(e){const t={};return e&&(t[_]=`Bearer ${e}`),t}(e.accessToken))),”authHeaders”)}return t+=this.qs(function(e){const t=e||rt()||”al_app_anon”,n=st();return!(!n||!([“anon”,”al_anon”].includes(t)&&n.AL_ANON||[“app_anon”,”al_app_anon”].includes(t)&&n.AL_APP_ANON))}()&&”1″,”isAccountLinked”),t+=this.qs(this.shouldFetchAppAnonCookie()&&”1″,”fetchAppAnonCookie”),t}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===z(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===z(“eupubconsent-v2”);return e||t}}let ct,dt,lt;function ut(){if(dt)return dt;const e=document.head.getAttribute(“data-info”);return dt=((/f:s*([^;]+)/i.exec(e)||{})[1]||””).toLowerCase(),dt}var pt;!function(e){e[e.Alert=0]=”Alert”,e[e.Deprecated=1]=”Deprecated”,e[e.HighImpact=2]=”HighImpact”,e[e.Critical=3]=”Critical”}(pt||(pt={}));const ht=new class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;this.maxLength=e,this.list=[]}push(e){this.list.push(e),this.list.length>this.maxLength&&this.list.shift()}get data(){return this.list}};function gt(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:pt.Alert,r=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0;try{const c=function(){if(!ct){const e=document.head.getAttribute(“data-client-settings”);e&&(ct=JSON.parse(e))}return ct}(),d=ut(),l=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);lt=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}(c);let u=””;l&&l.apikey&&””!==l.apikey&&(u=function(e){if(e){const t=e.indexOf(“-“);if(t>0)return e.substring(0,t)}return””}(l.apikey));const p=function(e,t,n,i,r,s){let a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:pt.Alert,c=arguments.length>7&&void 0!==arguments[7]?arguments[7]:””;if(n){r=r||{};const{apptype:p,audienceMode:h,pagetype:g,pageGenTime:w,bundleInfo:f,deviceFormFactor:m=””,fd_muid:v,os:b}=n;r.pageGenTime=w,r.build=f&&f.v,r.appType=p;const y=function(e,t,n){const i=n&&”phone”===n.toLowerCase(),r=t&&”enterprise”===t;let s=”Edge”;Re()?s=”swiftKey”:We()?s=”Launcher”:function(){var e;if(!o())return!1;const t=document.head.dataset.clientSettings||(null===(e=document.getElementsByClassName(“peregrine-widget-settings”)[0])||void 0===e?void 0:e.getAttribute(“data-client-settings”));if(t){const e=JSON.parse(t);return e&&e.pagetype&&”bingHomepageMobile”===e.pagetype}return!1}()&&(s=”bingHomepageMobile”);const a={bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:r?”entnews”:”anaheim”,hybrid:”spartan”,hub:i?”prime_mobile”:”prime”,microsoftNews:”msnews”,office:”entnews”,views:i?”prime_mobile”:”prime”,homePage:i?”prime_mobile”:”prime”,windowsShell:”windowsshell”,edgeMobile:s};return a[e]}(p,h,m),k=y||p,C=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let S,I=””,A=”muid”;try{if(“edgeChromium”===p&&”object”==typeof window&&window.location&&window.location.search){const e=new URLSearchParams(window.location.search);S=e.has(“startpage”)?”msedgdhp”:”msedgntp”,”enterprise”===h?S=”entnewsntp”:”xbox”===b&&(S=”xboxntp”)}window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(I=(null===(l=window)||void 0===l||null===(l=l.__SSRUserConfigEarlyLog)||void 0===l?void 0:l.consistentMuid)||(null===(u=window)||void 0===u?void 0:u.__muid)||z(“muid”))}catch{}I||(I=n.aid,A=”aid”);const q={name:”MS.News.Web.AppError”,time:w,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:k,type:ft(g),content:wt[p]??{category:”standaloneError”},ocid:S},browser:{clientId:I,clientIdType:A},flight:{id:s,tmpl:c},request:{activityId:n.aid,requestId:n.aid,afdMuid:v},locale:{mkt:C},extSchema:{id:e,severity:a,pb:r,message:t}}};var d;if(I&&”muid”===A)q.ext={…null==q?void 0:q.ext,user:{…null==q||null===(d=q.ext)||void 0===d?void 0:d.user,localId:`t:${I}`}};return”object”==typeof window&&(window.isSSREnabled&&(q.data.flight.tmpl+=”;ssr-enabled:1″),window.isSSRCompleted&&(q.data.flight.tmpl+=”;ssr-completed:1″)),q?JSON.stringify(q):null}var l,u;return null}(t,e,c,u,n,d,i,a);if(s&&!function(e){if(null==e)return!1;return e.startsWith(“1”)||e.startsWith(“2”)||e.startsWith(“3”)||e.startsWith(“4″)}(null==c?void 0:c.aid))return console.error(p),void console.error(`This App error Id: ${t} will not be sent due to app error sampling!`);if(l&&p){console.error(p),ht.push(p);const e=”https://”+lt+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(l);if(r&&!performance.getEntriesByType(“visibility-state”).some((e=>”visible”===e.name))){const t=()=>{“visible”===document.visibilityState&&navigator.sendBeacon(e,p)};document.addEventListener(“visibilitychange”,t,{once:!0})}else navigator.sendBeacon(e,p)}}catch{}}const wt={homePage:{vertical:”homepage”,category:””,id:””,domainId:”13041″,title:”undefined”!=typeof document?document.title:””}};function ft(e){let t=e;switch(e){case”windowsshellhp”:t=”dhp”;break;case”video”:t=”watch”;break;case”EdgeMobile”:t=Te()?”ntp”:”dhp”}return t}function mt(e){return new Promise((t=>setTimeout(t,e)))}const vt=”https://acdn.adnxs.com/ast/ast.js”,bt=”https://adsdk.microsoft.com/ast/ast.js”;async function yt(e){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:r=document.head,retryNumber:s=0,retryDelayMs:a=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(t<=1)return e();let o,i=1;do{try{o=await e()}catch(e){if(i===t)throw e&&e.message&&(e.message=`${e.message} after ${i} attempts`),e;await mt(n)}}while(!o&&++ifunction(e,t,n){let i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];return new Promise(((r,s)=>{const a=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”,r=arguments.length>4?arguments[4]:void 0,s=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 a=document.createElement(“script”);return t&&(a.id=t),r&&a.setAttribute(“class”,r),s&&(a.onload=s),a.type=”text/javascript”,e&&(window&&window.trustedTypesURLValidation?a.src=window.trustedTypesURLValidation(e,”scriptSrcUrlPolicy”):a.src=e,a.async=n,a.crossOrigin=i),window&&window.NONCE_ID&&(a.nonce=window.NONCE_ID),a}(e,t,i,void 0,void 0,(()=>r(!0)));a.crossOrigin=void 0,a.onerror=s,n.prepend(a)}))}(t,n,r,i)),s,a)}catch(e){gt(“Failed to download Static JS”,11103,{scriptId:n,scriptSrc:t},pt.Alert)}}({id:”display-sdk”,src:e?bt:vt,container:document.head,retryDelayMs:200,retryNumber:5})}function kt(e){var t;return((null===(t=document.head)||void 0===t||null===(t=t.getAttribute(“data-info”))||void 0===t?void 0:t.split(“;”).find((e=>e.startsWith(“f:”))))||””).includes(e)}const Ct=(()=>{let e;return()=>(e||(e=W()),e)})();function St(e){return(Ct().ocid||””).toLowerCase().includes(e.toLowerCase())}function It(){return St(“superappdhp”)}function At(e){gt(“Error when loading bundle: “+e,20202,{…arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}function qt(e){gt(“JS Exception”,20203,{customMessage:e&&e.reason&&e.reason.message,stack:e&&e.reason&&e.reason.stack})}const _t=”experience”,xt=Object.create(null),Ot=2;function Lt(){const e=[“vendors”,”microsoft”,”common”];window.addEventListener(“load”,(()=>{window._pageTimings.navType=Tt(),window.requestIdleCallback((()=>{const t=function(e){const t=window.viewsWebpackChunks;if(!t)return[…e,_t];if(t.length>e.length)return[];t.forEach((t=>e.splice(e.indexOf(t[0][0]),1))),t.push===Array.prototype.push&&e.push(_t);return e}(e);t.length&&t.forEach((e=>Et(e)))}))}),{once:!0})}function Et(e,t){if(!(t=t||Array.from(document.scripts).find((t=>t.src.indexOf(`/${e}.`)>-1))))return;const n=function(e,t){const n=document.createElement(“script”);return n.type=”text/javascript”,n.crossOrigin=”anonymous”,n.src=e,n.onerror=()=>{let e=xt[t]||0;xt[t]=++e,e{delete xt[t];const e=window._pageTimings.retriedBundles;window._pageTimings.retriedBundles=e?`${e},${t}`:t,Nt()},n}((o=t.src,xt[e],o),e);var o;setTimeout((()=>t.replaceWith(n)),100)}function Tt(){const[e={}]=performance.getEntriesByType(“navigation”);return e.type}function Nt(){if(!Object.values(xt).every((e=>e===Ot)))return;let e=””;Object.keys(xt).forEach((t=>{e=e?`${e},${t}`:t,delete xt[t]})),e&&gt(`Error when loading bundle(s): ${e}`,20202,{timeElapsed:Math.round(performance.now()),navType:Tt()})}”undefined”!=typeof window&&window.document&&window.document.createElement&&(window._pageTimings=window._pageTimings||{},window.requestIdleCallback=window.requestIdleCallback||window.setTimeout),function(){void 0!==window.onunhandledrejection&&(window.onunhandledrejection=qt),window.onErrorHandler=At,Lt();const e=new Set([“Script error.”,”ResizeObserver loop limit exceeded”,”ResizeObserver loop completed with undelivered notifications.”]);window.onerror=function(t,n,o,i,r){if(e.has(t))return;gt(“JS Exception”,20203,{source:n,customMessage:t,line:o,column:i,stack:r&&r.stack})}}();const{inlineCRS:Wt}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t={};try{var n,i,r;if(!o())return t;const s=f(S(“clientSettings”))||{};let a=null===(n=s.apptype)||void 0===n?void 0:n.toLocaleLowerCase();const c=e.crsOptions||{};”winwidgets”!==a&&”homepage”!==a&&”travel”!==a||(c.crsPrefetch=!0),null!==(i=s.widgetAttributes)&&void 0!==i&&null!==(i=i.clientPerf)&&void 0!==i&&i.earlyCRSCall&&(c.crsPrefetch=!0),”edgechromium”===a&&(a=”edgechr”);const d=!(null===(r=s.widgetAttributes)||void 0===r||null===(r=r.clientPerf)||void 0===r||!r.shouldUsePWOnlyFlights),{all:p,prg:h}=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:””;const n=q(S(“info”))||[];let o=q(S(“canvasInfo”));if(!o){o=k(n,C(n,e,t))}return{all:n,prg:o}}(d,a);(c.crsPrefetch||p.includes(“inlinecrscall”)||p.includes(`icrscall-${a}`))&&(!function(e,t,n){const i=function(e,t){let n;const o=decodeURIComponent(w(e,”aace”)),{child:i}=o&&f(o)||{},r=w(e,g);return n=o&&(1===i||r)?”kids”:t.audienceMode||”adult”,n}(document.cookie,e),{apptype:r,browser:s,domain:a,bundleInfo:{v:c}={},deviceFormFactor:d,locale:{content:p,display:h}={},ocid:m,os:v,pagetype:b,servicesEndpoints:{crs:y}={}}=e,k=(A()?o()?window.location.hostname:l().url.hostname:a)||””;if(!r||!c||!y)return;const C={audienceMode:i,browser:s,deviceFormFactor:d,domain:k,locale:{content:p,display:h},ocid:m,os:v,platform:”web”,pageType:b,pageExperiments:t},S=new URLSearchParams([[“expType”,”AppConfig”],[“expInstance”,”default”],[“apptype”,r],[“v”,c]]),I=u(),q=I.includes(“?item=”)||I.includes(“&item=”)?”&citem=dev:true&instance=Int1″:””,_=`${y.path}${y.v}/config/?${S}&targetScope=${JSON.stringify(C)}${q}`,x=e=>{const t=new URL(`https://${e}${_}`),{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})},O=”msn.”+(function(e,t){return!!(e.hostname.toLowerCase().endsWith(“.cn”)||t.isChinaCompliance||t.useCnDomain||e.search.match(/isChinaBuild=true/i)||e.search.match(/item=revip:cn/))}(location,e)?”cn”:”com”),{domain:L}=y,E=L&&new URL(L).host;let T=x(E||`assets.${O}`);n.disableFallback||(T=T.catch((()=>{const{hostname:e}=location,t=e.match(/.msn.(com|cn)$/)?e:`www.${O}`;return x(t)})));window.crsPromise=T}(s,h,c),t.inlineCRS=!0)}catch(e){console.error(“InlineHeadCommon: “+e)}return t}();var Rt;Rt={disableWWConfig:Wt},It()||(new at).init(void 0,Rt),function(){const e=St(“skype”)&&!(St(“msnaroverlay”)||”phone”===Ct().deviceFormFactor);if(It()||(St(“skype”)||St(“office”)||St(“outlook”))&&!e||function(){const e=Ct().ocid||””;return kt(“prg-ruby-con”)&&[“edge_desktop_ntp_ruby”,”edge_desktop_dhp_ruby”,”edge_enterprise_desktop_ntp_ruby”,”edge_enterprise_desktop_dhp_ruby”,”msnruby”,”edgntpruby”,”edgdhpruby”,”edgentntpruby”,”edgentdhpruby”,”winp2f”].some((t=>e.toLowerCase().startsWith(t)))}())return;yt(!kt(“prg-msft-xan-rf”))}()}(); ]]> onErrorHandler(s.src);s.nonce=””;s.crossOrigin=”anonymous”;document.body.appendChild(s);} ]]>

You May Also Like

답글 남기기

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다