MSN

37 people 👁️ing this randomly
MSN {“use strict”;var e,t={},n={};function o(e){var i=n[e];if(void 0!==i)return i.exports;var s=n[e]={exports:{}};return t[e](s,s.exports,o),s.exports}function i(e){try{return JSON.parse(e)}catch(e){return null}}function s(){return!(“undefined”==typeof window||!window.document||!window.document.createElement)}function r(){return s()?i(document.head.dataset.clientSettings):null}o.g=function(){if(“object”==typeof globalThis)return globalThis;try{return this||new Function(“return this”)()}catch(e){if(“object”==typeof window)return window}}(),function(e){e.Adult=”adult”,e.Enterprise=”enterprise”,e.Kids=”kids”}(e||(e={}));let a=new class{constructor(){s()?(this.isDebugEnabled=(function(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,” “))||””}(window.location.href,”debug”)||””).toLowerCase()in{1:1,true:1},this.isDebugEnabled&&!o.g.TEST_ENV&&(window.webpackRequire=o)):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 c=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=i(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 i(t)}setItem(e,t){if(this.supported)try{this.storage.setItem(e,t)}catch(e){a.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;n{const e=q();return e&&”1″===e.getItem(C)||s()&&location.search&&location.search.includes(“uxlogin=1″)}));const W=”currentaccount”,_={newsAndInterests:1,ugc:1,windowsNewsbar:1,windowsNewsPlus:1,winWidgets:1,windowsShell:1},E={edgeChromium:1},L=S((()=>(s()&&r()||{}).apptype));const N=S((()=>{const e=k(W),t=e&&i(decodeURIComponent(e)),{login_hint:n}=t||{};return n&&t})),O=S((()=>!!k(W))),D=S((()=>T()&&(N()||!(k(h)||k(“ace”))))),A=S((()=>{var e;return s()&&!(L()in _)&&(e=/bprg-nodualauth($|;|,)/,!(s()&&(document.head.dataset.info||””).match(e)))})),T=S((()=>A()&&!(L()in E)));S((()=>A()&&(!(L()in E)||!O()))),S((()=>A()&&!x()));function F(e,t){const n={};return e&&(n[p]=`Bearer ${e}`),t&&(n[m]=t),n}function x(){return T()&&I()||D()&&!I()&&N()&&”expired”==function(){if(d=g(),!d)return”notAvailable”;const e=d&&d.expiresOn,t=new Date(e);return t&&t.getTime()&&t>new Date?”valid”:”expired”}()}function H(){if(“undefined”!=typeof window&&window.document&&window.document.createElement&&window.applicationCache){return window.document.getElementsByTagName(“html”)[0].getAttribute(“manifest”)}return!1}let M,P,R;function U(){if(!M){const e=document.head.getAttribute(“data-client-settings”);e&&(M=JSON.parse(e))}return M}const $={bingHomepage:”binghomepage”,mmx:”emmx”,edge:”spartan”,edgeChromium:”anaheim”,hybrid:”spartan”,hub:”prime”,microsoftNews:”msnews”,office:”entnews”},J=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 j(e,t,n){try{const o=U(),i=function(){if(P)return P;let e=document.head.getAttribute(“data-info”);const t=U();if(H()){let n;try{const e=window.localStorage.getItem(“shd_”+t.pagetype);n=JSON.parse(e)}catch(e){n=null}if(n){const o=n.clientSettings,i=n.info;o&&i&&t.pageGenTime0)return e.substring(0,t)}return””}(s.apikey));const a=function(e,t,n,o,i,s){if(n){i=i||{};const{apptype:r,audienceMode:a,pagetype:c,pageGenTime:l,bundleInfo:u}=n;i.pageGenTime=l,i.build=u&&u.v,i.appType=r;const d=”enterprise”===a&&”edgeChromium”===r?”entnews”:$[r],g=d||r,h=document.getElementsByTagName(“html”)[0].getAttribute(“lang”);let p=””,m=”muid”;try{getCookieConsentRequired&&”function”==typeof getCookieConsentRequired&&getCookieConsentRequired()||(p=k(“muid”))}catch(e){console.log(“error fetching muid.”)}p||(p=n.aid,m=”aid”);const f={name:”MS.News.Web.AppError”,time:l,ver:”4.0″,iKey:`o:${o}`,data:{baseData:{},baseType:”MS.News.Web.Base”,page:{name:”default”,product:g,type:c},browser:{clientId:p,clientIdType:m},flight:{id:s},request:{activityId:n.aid,requestId:n.aid},locale:{mkt:h},extSchema:{id:e,severity:0,pb:i,message:t}}};return f?JSON.stringify(f):null}return null}(t,e,o,r,n,i);if(s&&a){console.error(a),J.push(a);const e=”https://”+R+”/OneCollector/1.0″+function(e){return”?”+Object.keys(e).map((function(t){return t+”=”+encodeURIComponent(e[t])})).join(“&”)}(s);navigator.sendBeacon(e,a)}else console.log(“missing parameters in data-client-settings. “+e)}catch(t){console.log(“error logging the app error. “+e)}}(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(t=null){this.clientSettings=t||r(),this.authCookieName=window._authCookieName||””,this.bundle=window._webWorkerBundle||””;const n=this.buildWebWorkerUrl();if(window.webWorker=new Worker(n,{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 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&&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})})),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===e.Enterprise&&this.clientSettings.browser&&”edgeChromium”===this.clientSettings.browser.browserType&&parseInt(this.clientSettings.browser.version)>=87&&this.getAccessToken().then((e=>{e&&window.webWorker.postMessage({id:”AuthTokenEnterprise”,type:”command”,payload:F(e)})})),t!==e.Adult&&t!==e.Enterprise||this.sendPageConfiguration()}}buildWebWorkerUrl(e=null){return(this.bundle||””)+”#”+this.qsFromDocument()+this.qsFromCookies()+this.qsFromDataAttribute(e||this.clientSettings)+this.qsMisc()+this.qsFromUrl()+this.qsFromServiceWorker()}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”)}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(v(this.authCookieName),”aace”,”1″)+this.qs(v(“muid”),”muid”)+this.qs(v(this.childCookieName),”child”)+this.qs(v(“cbypass”),”cbypass”)+this.qs(this.cookieBannerConsentRequired().toString(),”ccRequired”)+this.qs(v(“ecasession”),”ecasession”)+this.qs(v(“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(v(this.WeaSpartanHomeLocCookie),this.WeaSpartanHomeLocCookie)+this.qs(v(this.WeaSpartanDetectLocSetting),this.WeaSpartanDetectLocSetting):this.qs(v(this.WeaHomeLocCookie),this.WeaHomeLocCookie)+this.qs(v(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=”;”,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}buildArtifactHashes(e){let t;try{const{bundleInfo:n={},audienceMode:o,pagetype:i,apptype:s}=e,r=e.locale||{},a=r.content||r,c=r.display||a,{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 g=`config_hash_${o}_${`${a.language}_${a.market}_${c.language}_${c.market}`}_${i}_${s}`,h=q().getItem(g);if(h){const{bundleHash:e,configHash:n,locHash:o}=JSON.parse(h)||{};e&&n&&o&&(t+=this.qs(e,”lastBundleHash”)+this.qs(n,”lastConfigHash”)+this.qs(o,”lastLocHash”))}return t}catch(e){console.error(`Error getting config hashes from ls: ${e}`)}return t}getHighestCbid(e,t){try{const n=q(),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.log(“Error getting highest CBID”+e)}}getAudienceMode(t){q();const n=k(this.authCookieName),o=k(this.childCookieName),{child:i}=n&&JSON.parse(n)||{};return n&&(1===i||o)?”kids”:”enterprise”===t.audienceMode&&t.IsChinaCompliance&&t.currentFlights.includes(“prg-china-aad”)?”adult”:t.audienceMode||e.Adult}sendPageConfiguration(){const e=this.clientSettings.pagetype;if(e){const t=k&&k(“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 o=q();if(o){const i=JSON.parse(o.getItem(“shd_”+e.pagetype)||null);i&&i.clientSettings&&i.info&&(t=Object.assign(Object.assign({},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):””}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”)+this.qs(D()&&”1″,”disableWWAuth”)}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===k(“MSCC”),t=null!=document.getElementById(“onetrust-sdk”)&&null===k(“eupubconsent-v2”);return e||t}}).init(),function(e=[“vendors”,”common”,”microsoft”],t=”Error when loading bundle(s): “,n=5e5,o,i){(“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)}))}j(t+e.toString(),20202,{}),i&&i(o,{customMessage:e.toString()})}}}),n)}))}()})(); ]]>
Source

this site is a gnomie of the domain mym3verse.space

Leave a Reply

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

mym3verse

||| © mym3verse 2050