[]
MSN {const e=h(f,!0),t=e&&o(e),{login_hint:n}=t||{};return n&&t})),w=p((()=>!!h(f)));let b=new class{constructor(){r()?(this.isDebugEnabled=(function(e,t){const n=t.replace(/[[]]/g,”\$&”),i=new RegExp(“[?&]”+n+”(=([^&#]*)|&|#|$)”).exec(e);if(!i)return null;const o=i[2];return decodeURIComponent(o.replace(/+/g,” “))||””}(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!i.g.TEST_ENV&&(window.webpackRequire=i)):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)}};let y,v=new class extends class{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=o(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 o(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){b.logError(e)}}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}}removeSubstringKeys(e){if(!this.supported||!e)return;const t=[];for(let n=0;ni)return o}}return n}function N(){return C=C||void 0===C&&v.getObject(A)||null,C}!function(e){e.NotAvailable=”notAvailable”,e.Expired=”expired”,e.Valid=”valid”}(I||(I={}));const T=”Authorization”;var R,P;!function(e){e.Presentation=”presentation”}(R||(R={})),function(e){e.Unknown=”Unknown”,e.Portrait=”Portrait”,e.Landscape=”Landscape”}(P||(P={}));var x;function H(){try{return localStorage}catch(e){return null}}!function(e){e[e.Undefined=0]=”Undefined”,e[e.Basic=1]=”Basic”,e[e.Advanced=2]=”Advanced”,e[e.Premium=3]=”Premium”}(x||(x={}));const U=”uxlogin”,D=”uxlogout”,M=p((()=>{const e=H();return e&&”1″===e.getItem(U)||r()&&location.search&&location.search.includes(“uxlogin=1”)}));const W=p((()=>{const e=function(){try{return sessionStorage}catch(e){return null}}();return e&&!!e.getItem(D)}));const F={newsAndInterests:1,ugc:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1,distribution:1,superApp:1,gaming:1},L={edgeChromium:1},$=p((()=>(r()&&c()||{}).apptype)),V=p((()=>B()&&(m()||!h(“ace”)))),G=p((()=>r()&&!($()in F)&&!S(“prg-nodualauth”))),B=p((()=>G()&&!($()in L)));p((()=>G()&&(!($()in L)||!w()))),p((()=>G()&&!K()));function J(){return K()}function j(){const e=E;if(e)return b.log(“dual-auth: tryGet1SAuthToken returned live tokens”),e;const t=_();if(t)return b.log(`dual-auth: tryGet1SAuthToken returned cached tokens that are ${O()}`),t;b.log(“dual-auth: tryGet1SAuthToken returned empty tokens”)}function Y(e){const t={};return e&&(t[T]=`Bearer ${e}`),t}function K(){return B()&&M()||V()&&(V()&&!M()&&m()&&”expired”==O()||W())}var z;!function(e){e.GLOBAL=”GLOBAL”,e.GCC_MODERATE=”GCC_MODERATE”}(z||(z={}));const Q=[0,656,980,1304],X=[0,540,768,1084,1400,1779];function Z(e,t=X){for(let n=t.length-1;n>=0;n–)if(e>=t[n])return n}const ee={ver:”0.1.0″,spec:{innerWidth:{clientValue:()=>window.innerWidth},innerHeight:{clientValue:()=>window.innerHeight},outerWidth:{clientValue:()=>window.outerWidth},breakpoint:{clientValue:()=>Z(window.innerWidth,Q)},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}}};class te{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.oneServiceHeaders=function(e){try{if(e)return JSON.parse(e)}catch(e){}}(e.oneServiceHeaders)||{},this.isPssrMode=t,t){const e=ne(“OSATE”,this.cookie),t=ne(“OSAT”,this.cookie);if(e&&t||!e&&!t)return this.msalAuthReady=!0,void(t&&(this.oneServiceHeaders.Authorization=`Bearer ${t}`));this.msalAuthReady=!1,this.pssrRejectedReason=e&&!t?”missOSAT”:”missOSATE”}}static getInstance(){return i.g.TEST_ENV&&!te._instance&&ie({href:”http://localhost:8080/”,innerHeight:768,devicePixelRatio:1,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),te._instance||ie({href:”http://localhost:8080/”,innerHeight:0,devicePixelRatio:0,canUseCssGrid:!1,requestId:”0″,cookie:””,userAgent:””,referer:””,oneServiceHeaders:””}),te._instance}static resetInstance(e,t=!1){return te._instance=new te(e,t),te._instance}}function ne(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}te._instance=null;const ie=te.resetInstance;function oe(){return r()?window.devicePixelRatio:te.getInstance().devicePixelRatio}let se,re;var ce,ae,le;re=ce||(r()?window:{}),le=()=>{let e;return{promise:new Promise((t=>e=t)),resolver:e}},se=re[ae=”authHeaderPromiseParts”]||(re[ae]=le());function ue(){if(“undefined”!=typeof window&&window.document&&window.document.createElement&&window.applicationCache){return window.document.getElementsByTagName(“html”)[0].getAttribute(“manifest”)}return!1}let de,he,ge;function pe(){if(!de){const e=document.head.getAttribute(“data-client-settings”);e&&(de=JSON.parse(e))}return de}const fe={bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:”anaheim”,hybrid:”spartan”,hub:”prime”,microsoftNews:”msnews”,office:”entnews”,windowsShell:”windowsshell”};var me;!function(e){e[e.Alert=0]=”Alert”,e[e.NoAlert=1]=”NoAlert”,e[e.HighImpact=2]=”HighImpact”,e[e.Critical=3]=”Critical”}(me||(me={}));const we=new class{constructor(e=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 be(e,t,n,i=me.Alert){try{const o=pe(),s=function(){if(he)return he;let e=document.head.getAttribute(“data-info”);const t=pe();if(ue()){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,o=n.info;i&&o&&t.pageGenTime0)return e.substring(0,t)}return””}(r.apikey));const a=function(e,t,n,i,o,s,r=me.Alert){if(n){o=o||{};const{apptype:c,audienceMode:a,pagetype:l,pageGenTime:u,bundleInfo:d}=n;o.pageGenTime=u,o.build=d&&d.v,o.appType=c;const g=”enterprise”===a&&”edgeChromium”===c?”entnews”:fe[c],p=g||c,f=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let m=””,w=”muid”;try{window&&window.getCookieConsentRequired&&”function”==typeof window.getCookieConsentRequired&&window.getCookieConsentRequired()||(m=h(“muid”))}catch(e){console.log(“error fetching muid.”)}m||(m=n.aid,w=”aid”);const b={name:”MS.News.Web.AppError”,time:u,ver:”4.0″,iKey:`o:${i}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:p,type:ye(l)},browser:{clientId:m,clientIdType:w},flight:{id:s},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:f},extSchema:{id:e,severity:r,pb:o,message:t}}};return b?JSON.stringify(b):null}return null}(t,e,o,c,n,s,i);if(r&&a){console.error(a),we.push(a);const e=”https://”+ge+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(r);navigator.sendBeacon(e,a)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}function ye(e){let t=e;return”windowsshellhp”===e&&(t=”dhp”),t}function ve(e,t,n,i,o){be(“JS Exception”,20203,{source:t,customMessage:e,line:n,column:i,stack:o&&o.stack})}Object.assign({},ee.spec);(new class{constructor(){this.childCookieName=”child”,this.domInfo=document.head.dataset.info}init(t=null){this.clientSettings=t||c(),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const n=this.buildWebWorkerUrl(),i=window.webWorker=new Worker(n,{name:”web-worker”}),o=window.webWorkerMessages=[];i.onmessage=e=>{o.push(e.data)};const s=window.webWorkerErrors=[];if(i.onerror=e=>{s.push(e)},window.chrome){const t=this.getAudienceMode(this.clientSettings),n=window.webWorker&&window.chrome&&window.chrome.ntpSettingsPrivate;n&&”function”==typeof n.getPref&&(n.getPref(“ntp.news_feed_display”,(e=>{e&&e.value&&i.postMessage({id:”FeedDisplaySetting”,type:”command”,payload:e.value})})),n.getPref(“ntp.layout_mode”,(e=>{e&&e.value&&i.postMessage({id:”LayoutModeSetting”,type:”command”,payload:e.value})})),n.getPref(“ntp.user_nurturing”,(e=>{let t=!1;e&&e.value&&e.value.length&&(t=this.getSingleColRequest(e.value)),i.postMessage({id:”RenderSingleColumn”,type:”command”,payload:t})}))),t===e.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:”command”,payload:Y(e)})})),t!==e.Adult&&t!==e.Enterprise||this.sendPageConfiguration()}J()&&se.promise.then((e=>i.postMessage({id:”AuthHeaders”,type:”command”,payload:e||{}})))}buildWebWorkerUrl(e=null){return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsAuth()+this.qsFromUrl()+this.qsFromServiceWorker()+this.qsSelectedPivot()}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=oe())||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(g(this.authCookieName),”aace”,”1″)+this.qs(g(“muid”),”muid”)+this.qs(g(this.childCookieName),”child”)+this.qs(g(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(g(“ecasession”),”ecasession”)+this.qs(g(“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”)+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”)}qsSelectedPivot(){const e=”selectedPivot”;let t;try{const n=H();n&&(t=n.getItem(e))}catch(e){console.log(“Error getting pivot id from local storage. “+e)}return this.qs(t,e)}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{bundleInfo:n={},audienceMode:i,pagetype:o,apptype:s}=e,r=e.locale||{},c=r.content||r,a=r.display||c,{hash:l,configsHash:u,locConfigsHash:d}=n;if(!l||!u||!d)return””;t=this.qs(l,”bundleHash”)+this.qs(u,”configHash”)+this.qs(d,”locHash”);const h=`config_hash_${i}_${`${c.language}_${c.market}_${a.language}_${a.market}`}_${o}_${s}`,g=H().getItem(h);if(g){const{bundleHash:e,configHash:n,locHash:i}=JSON.parse(g)||{};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=H(),i=parseInt(e),o=parseInt(JSON.parse(n.getItem(`cbid_${t||””}`)));let s;if(i&&!isNaN(i)&&o&&!isNaN(o)&&(s=i>o?i:o),s=s||i||o,s)return window._cbid=s.toString()}catch(e){console.log(“Error getting highest CBID”+e)}}getAudienceMode(t){H();const n=h(this.authCookieName),i=h(this.childCookieName),{child:o}=n&&JSON.parse(n)||{};return n&&(1===o||i)?”kids”:t.audienceMode||e.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=h&&h(“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=H();if(i){const o=JSON.parse(i.getItem(“shd_”+e.pagetype)||null);o&&o.clientSettings&&o.info&&(t=Object.assign(Object.assign({},o.clientSettings),{bundleInfo:e.bundleInfo}),n=o.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(){return this.qs(performance.timeOrigin&&performance.timeOrigin.toString(),”mainTimeOrigin”)}qsAuth(){let e=this.qs(V()&&”1″,”disableWWAuth”);if(!J()){const t=B()&&j()||{};e+=this.qs(encodeURIComponent(JSON.stringify(Y(t.accessToken))),”authHeaders”)}return e}getSingleColRequest(e){const t=”render_single_column”,n=”feed_layout”;let i,o;for(const s of e){const{key:e,value:r}=s;e===t?i=r:e===n&&(o=r)}return”boolean”==typeof i?i:!!o&&(o&&”single”===o.type)}cookieBannerConsentRequired(){const e=null!=document.getElementById(“consent-banner-container”)&&null===h(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===h(“eupubconsent-v2”);return e||t}}).init(),function(e=[“vendors”,”common”,”microsoft”],t=”Error when loading bundle(s): “,n=5e5,i,o){(“visible”===document.visibilityState?Promise.resolve():new Promise((e=>{document.addEventListener(“visibilitychange”,(()=>{“visible”===document.visibilityState&&e()}))}))).then((()=>{setTimeout((()=>{const n=window.webpackJsonp;if(n){const s=n.length,r=e.length+1;if(s{t.length&&t[0][0]&&e.splice(e.indexOf(t[0][0]),1)}))}be(t+e.toString(),20202,{}),o&&o(i,{customMessage:e.toString()})}}}),n)}))}(),window.onerror=ve}(); ]]>
Source
GIPHY App Key not set. Please check settings