News Archyuk

विवरण: होमपॉड मिनी के नए मॉडल में देरी हुई

हाल ही में एप्पल ने एक लॉन्च किया होमपॉड का नया मॉडलजिसके कारण अटकलें लगाई जा रही हैं कि होमपॉड मिनी का अपग्रेड होने वाला है।

ब्लूमबर्ग के प्रौद्योगिकी लेखक के अनुसार मार्क गुरमन हालाँकि, इस बात का कोई संकेत नहीं है कि Apple आधे आकार के स्मार्ट स्पीकर के आसन्न अपग्रेड पर काम कर रहा है।

नए रंगों और कीमतों में बदलाव के अलावा, बस बदलने के लिए पर्याप्त नहीं है।

तब Apple के लिए सॉफ्टवेयर पर ध्यान देना बेहतर हो सकता है, और वहां हम अपडेट में पहले से ही अधिक समाचार देखेंगे संस्करण 16.3 जो इसी हफ्ते रिलीज हुई है।

यह निश्चित रूप से इस सवाल से बाहर नहीं है कि Apple 2024 या 2025 में होमपॉड मिनी का एक नया मॉडल लॉन्च करेगा, लेकिन उम्मीद है कि मौजूदा मॉडल थोड़ी देर के लिए आसपास रहेगा।

window.dataLayer = [{“environment”:”production” Ny modell av Homepod Mini dröjer” Ny modell av Homepod Mini dröjer – MacWorld” uppgradering av Apples halvstora högtalare tycks inte vara aktuell under 2023.” uppgradering av Apples halvstora högtalare tycks inte vara aktuell under 2023.”https://news.google.com/__i/rss/rd/articles/,”contentId”:”1.766467″https://news.google.com/__i/rss/rd/articles/,”articleId”:”1.766467″https://news.google.com/__i/rss/rd/articles/,”layoutId”:”2.1038″https://news.google.com/__i/rss/rd/articles/,”displayTypeSpecific”:”standard”https://news.google.com/__i/rss/rd/articles/,”property”:”macworld”https://news.google.com/__i/rss/rd/articles/,”source”:”macworld”https://news.google.com/__i/rss/rd/articles/,”locked”:”false”https://news.google.com/__i/rss/rd/articles/,”lockedFirstPage”:”false”https://news.google.com/__i/rss/rd/articles/,”unlockedByTime”:”false”https://news.google.com/__i/rss/rd/articles/,”sponsored”:”false”https://news.google.com/__i/rss/rd/articles/,”displayType”:”article”https://news.google.com/__i/rss/rd/articles/,”contentType”:”nyhet”https://news.google.com/__i/rss/rd/articles/,”primaryChannel”:”apple”https://news.google.com/__i/rss/rd/articles/,”secondaryChannels”:[“högtalare”https://news.google.com/__i/rss/rd/articles/,”homepod”https://news.google.com/__i/rss/rd/articles/,”homepod mini” & tillbehör”https://news.google.com/__i/rss/rd/articles/,”rykte”],”metaKeywords”:[“apple”https://news.google.com/__i/rss/rd/articles/,”högtalare”https://news.google.com/__i/rss/rd/articles/,”homepod”https://news.google.com/__i/rss/rd/articles/,”homepod mini” & tillbehör”https://news.google.com/__i/rss/rd/articles/,”rykte”https://news.google.com/__i/rss/rd/articles/,”rykte”https://news.google.com/__i/rss/rd/articles/,”teknik”https://news.google.com/__i/rss/rd/articles/,”macworld”],”authors”:[“mikael markander”],”pageNumber”:”” 14:44″ 17:02″ = {“consent_project”:”csp”https://news.google.com/__i/rss/rd/articles/,”event”:{“action”:{“name”:”idg-consent”https://news.google.com/__i/rss/rd/articles/,”dispatched”:false},”stored”:{“name”:”idg-consent-stored”https://news.google.com/__i/rss/rd/articles/,”dispatched”:false},”limbo”:{“name”:”idg-consent-limbo”https://news.google.com/__i/rss/rd/articles/,”dispatched”:false},”response”:{“name”:”idg-consent-response”https://news.google.com/__i/rss/rd/articles/,”dispatched”:false},”open”:{“name”:”idg-consent-open”}},”comments”:{“enabled”:false},”premium”:{“access”:”subscription-access”https://news.google.com/__i/rss/rd/articles/,”identifier”:”article-premium”https://news.google.com/__i/rss/rd/articles/,”loading”:”article-premium–loading”https://news.google.com/__i/rss/rd/articles/,”locked”:”article-premium–locked”https://news.google.com/__i/rss/rd/articles/,”unlocked”:”article-premium–unlocked”},”ads”:{“enabled”:true,”gpt_source”:”//www.googletagservices.com/tag/js/gpt.js”https://news.google.com/__i/rss/rd/articles/,”unit_name”:”/8456/IDG.SE_CSMB_Macworld.idg.se/article_section”https://news.google.com/__i/rss/rd/articles/,”page_level”:{“url”:”https%3A%2F%2Fmacworld.idg.se%2F2.1038%2F1.766467%2Fhomepod-mini-2″https://news.google.com/__i/rss/rd/articles/,”categoryIds”:[“2.1038″],”categorySlugs”:[],”context”:”apple,högtalare,homepod,homepod mini,rykten,Apple,Prylar & tillbehör,Rykte,Rykte,mw”https://news.google.com/__i/rss/rd/articles/,”page_type”:”article”https://news.google.com/__i/rss/rd/articles/,”site”:”https://macworld.idg.se”https://news.google.com/__i/rss/rd/articles/,”type”:”Nyhet”https://news.google.com/__i/rss/rd/articles/,”typeId”:”1.102″https://news.google.com/__i/rss/rd/articles/,”zone”:”article”https://news.google.com/__i/rss/rd/articles/,”resolve”:{“enabled”:false,}},”correlator_flag”:”correlator”https://news.google.com/__i/rss/rd/articles/,”page_ads_correlator”:[],”page_in_text_config”:[],”page_slots”:[],”page_slots_ids”:[],”page_bid_slots”:[],”page_bid_slots_config”:[],”gpt_ad_slots”:[],”matching_slots_ids”:[],”prebid_active”:true,”bid_out_of_page_active”:true,”prebid_timeout”:450,”prebid_source”:”/assets/scripts/prebid-4.25-2.min.js”https://news.google.com/__i/rss/rd/articles/,”prebid_code_key”:”hb_bidder”https://news.google.com/__i/rss/rd/articles/,”prebid_ad_id_key”:”hb_adid”https://news.google.com/__i/rss/rd/articles/,”prebid_price_key”:”hb_pb”https://news.google.com/__i/rss/rd/articles/,”prebid_hb_price_key”:”orig_hb_pb”},”facebook_pixel”:{“enabled”:false,”source”:”https://connect.facebook.net/en_US/fbevents.js”},”async_sources”:{“enabled”:true,”full”:{“head”:{“source”:””https://news.google.com/__i/rss/rd/articles/,”auth”:””https://news.google.com/__i/rss/rd/articles/,”unauth”:””},”footer”:{“source”:”/combine/1.757149.1633945377/1.760091.1644306545/1.712277.1545145957/1.708828.1574419887/1.733428.1661956901/1.692246.1510916199/1.718111.1635401490/1.750881.1638881578/”https://news.google.com/__i/rss/rd/articles/,”auth”:””https://news.google.com/__i/rss/rd/articles/,”unauth”:””}},”light”:{“head”:{“source”:””https://news.google.com/__i/rss/rd/articles/,”auth”:””https://news.google.com/__i/rss/rd/articles/,”unauth”:””},”footer”:{“source”:”/combine/1.692246.1510916199/”https://news.google.com/__i/rss/rd/articles/,”auth”:””https://news.google.com/__i/rss/rd/articles/,”unauth”:””}},”subscriber”:{“head”:{“auth”:””https://news.google.com/__i/rss/rd/articles/,”unauth”:””},”footer”:{“auth”:””https://news.google.com/__i/rss/rd/articles/,”unauth”:””}}},”adsense”:{“enabled”:true,”source”:”https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js”https://news.google.com/__i/rss/rd/articles/,”class_name”:”adsbygoogle”,},”account”:{“enabled”:true,”source”:”https://account.idg.se”https://news.google.com/__i/rss/rd/articles/,”page”:”https://medlem.idg.se”https://news.google.com/__i/rss/rd/articles/,”package_name”:”Bas”https://news.google.com/__i/rss/rd/articles/,”package_name_enterprise”:”Pro”https://news.google.com/__i/rss/rd/articles/,”package_name_consumer”:”Plus”https://news.google.com/__i/rss/rd/articles/,”path_ar”:”/view”https://news.google.com/__i/rss/rd/articles/,”path_fr_ar”:”/view/free”https://news.google.com/__i/rss/rd/articles/,”path_m_ar”:”/mina-artiklar”https://news.google.com/__i/rss/rd/articles/,”path_au”:”/auth”https://news.google.com/__i/rss/rd/articles/,”path_si”:”/”https://news.google.com/__i/rss/rd/articles/,”path_so”:”/logout”https://news.google.com/__i/rss/rd/articles/,”path_su”:”/skapa-konto”https://news.google.com/__i/rss/rd/articles/,”path_o”:”/medlemskap”https://news.google.com/__i/rss/rd/articles/,”path_o_enterprise”:”/pro”https://news.google.com/__i/rss/rd/articles/,”path_o_consumer”:”/plus”https://news.google.com/__i/rss/rd/articles/,”event_name”:”authentication_ready”},”permutive”:{“enabled”:true,”mapping”:{“apple”:739,”iphone”:746,”mobiler”:358,”ios”:230,”android”:233,”smb”:675,”säkerhet”:941,”mac”:740,”dator”:378,”ljud”:1087,”ipad”:745,”google”:778,”windows”:226,”nätverk”:1048,”tv”:1013,”spel”:1011,”iphone x”:746,”samsung”:840,”smartworld”:1027,”hörlurar”:409,”rykte”:947,”sony”:843,”datorer”:347,”wifi”:445,”windows 10″:226,”router”:435,”streamingtjänster”:6,”microsoft”:804,”huawei”:792,”netflix”:824,”apple watch”:747,”prylar”:1026,”högtalare”:403,”film”:1013,”streaming”:1014,”routrar”:435,”smartphone”:358,”4g”:544,”lagring”:1055,”app”:557,”mobil”:358,”macbook”:741,”apple tv”:1134,”program”:4,”pc”:124,”gaming”:1011,”internet”:536,”appar”:557,”video”:1013,”macbook pro”:741,”trådlöst”:1062,”os x”:230,”hårdvara”:329,”tillbehör”:378,”facebook”:773,”vpn”:451,”bluetooth”:455,”hemnätverk”:445,”panasonic”:831,”virus”:70,”app store”:750,”linksys”:803,”telefoni”:546,”lenovo”:801,”surfplattor”:354,”antivirus”:34,”spotify”:1164,”eldriven”:776,”acer”:1101,”musik”:1012,”macos”:229,”ios 12″:230,”kameror”:395,”övervakning”:79,”smart-tv”:401,”mac os”:230,”webbläsare”:26,”siri”:748,”chromecast”:1117,”telefoner”:357,”netgear”:825,”smartphones”:358,”itunes”:1139,”youtube”:1174,”fotografi”:1023,”foto”:374,”datortillbehör”:378,”laptops”:350,”sociala medier”:186,”övervakningskameror”:1024,”bevakningskameror”:1085,”mobiltelefoner”:1047,”icloud”:1138,”black friday”:908,”imac”:742,”hälsa”:1041,”backup”:478,”wwdc”:902,”prestanda”:94,”mobilt”:1047,”nintendo”:868,”mobila appar”:1047,”kamera”:396,”operativsystem”:234,”samtal”:178,”lösenord”:38,”usb”:1169,”mejl”:976,”toshiba”:848,”homepod”:1135,”led”:1116,”ipod”:749,”laptop”:969,”nyheter”:14,”raspberry pi”:1156,”office”:413,”chrome”:234,”nokia”:1149,”intel”:796,”shopping”:904,”bärbara datorer”:350,”skype”:1163,”gmail”:1130,”mac mini”:743,”surf”:354,”internet security”:974,”amazon”:1178,”telefon”:384,”bil”:422,”dell”:765,”media”:1049,”google home”:1132,”molnet”:1030,”bredband”:539,”mac pro”:744,”bärbar dator”:969,”kryptering”:482,”mobiltillbehör”:382,”google play”:786,”lightning”:1173,”surfplatta”:354,”mobiltelefoni”:1047,”cyber monday”:908,”event”:506,”kindle”:738,”google drive”:787,”word”:812,”säkerhetskopiering”:478,”safari”:31,”hemmabio”:398,”mjukvara”:1032,”pro”:744,”galaxy”:1128,”skadeprogram”:67,”elbil”:776,”fiber”:541,”underhållning”:1010,”server”:1004,”utveckling”:1054,”ringa”:178,”fujitsu”:1127,”extern”:1092,”ultrabook”:798,”firefox”:29,”adobe”:732,”pixel”:781,”instagram”:864,”minne”:1096,”linux”:235,”wan”:446,”xbox”:821,”wi-fi”:454,”batterier”:1100,”3d”:1044,”dropbox”:767,”mobilabonnemang”:1047,”excel”:811,”skola”:906,”carplay”:1109,”analys”:699,”amd”:1102,”undersökning”:985,”nvidia”:1151},”source”:” configuration_status={started:”started”,done:”done”,consent_timeout:2000,ads:{excluding_hb:{name:”excluding_hb”,timeout:1000},including_hb:{name:”including_hb”,timeout:1000}},ab_test:{enable:false,name:”pageVersion”,activate:[],modal:{matching_config:[],none_matching_value:{consent_disable_modal:false},default_value:{consent_disable_modal:false}}},lazy:{html:{waiting:”lazy-html-waiting”,approved:”lazy-html-approved”,dissaproved:”lazy-html-disapproved”},ad:{waiting:”lazy-ad-waiting”},},vibrant:{m3:”84547″,pcforalla:”84541″,macworld:”84549″,studio:”84552″},io:{ids:{m3:”xKe4h6pub7YZ”,pcforalla:”unypxh3SwDMi”,macworld:”DYiKJ6nAi1qx”,smartworld:”tIucNh9ruCGM”,computersweden:”cFXjHpAi2hzJ”,cio:”cFXjHpAi2hzJ”,idgse:”cFXjHpAi2hzJ”},source:”https://cdn.onthe.io/io.js/”,version:”0.2.0″,active:true,initated:false,},custom_lazy_event:{active:true,name:”lazyafterunveil”},vibrant_active:false,articleBodyReady:[],image_tracker:{waiting:[],retried:[],error:[]}};configuration_status.ab_test.modal.matching_config[“7″]={consent_disable_modal:false,};window.IDG_CONFIGURATION.ga.initiated=false;window.IDG_CONFIGURATION.auth={};window.IDG_CONFIGURATION.auth.state=”init”;window.IDG_CONFIGURATION.auth.packages=[];window.IDG_CONFIGURATION.auth.error=[];window.IDG_CONFIGURATION.comments.enabled_by_audience=[];if(typeof window.dataLayer[0].audience!==”undefined”){document.documentElement.classList.add(window.dataLayer[0].audience);}window.dataLayer[0].view=(navigator.userAgent.indexOf(“gonative”)>-1)?”in-app”:”standalone”;if(window.dataLayer[0].view===”in-app”){document.documentElement.classList.add(“view–in-app”);if(/iPad|iPhone|iPod/.test(navigator.userAgent)){document.documentElement.classList.add(“view–in-app-ios”);window.dataLayer[0].view=”in-app-ios”;}}function ReplaceWithPolyfill(){var parent=this.parentNode,i=arguments.length,currentNode;if(!parent){return;}if(!i){removeChild(this);}while(i–){currentNode=arguments[i];if(typeof currentNode!==”object”){currentNode=this.ownerDocument.createTextNode(currentNode);}else{if(currentNode.parentNode){currentNode.parentNode.removeChild(currentNode);}}if(!i){parent.replaceChild(currentNode,this);}else{parent.insertBefore(this.previousSibling,currentNode);}}}if(!Element.prototype.replaceWith){Element.prototype.replaceWith=ReplaceWithPolyfill;}if(!CharacterData.prototype.replaceWith){CharacterData.prototype.replaceWith=ReplaceWithPolyfill;}if(!DocumentType.prototype.replaceWith){DocumentType.prototype.replaceWith=ReplaceWithPolyfill;}function findParentByClass(element,elementClassName){while((element=element.parentElement)&&!hasClass(element,elementClassName)){}return element;}function findChildByType(element,elementType){return element.getElementsByTagName(elementType)[0];}function hasClass(element,elementClassName){return(” “+element.className+” “).indexOf(” “+elementClassName+” “)>-1;}function addClass(element,elementClassName){element.className+=” “+elementClassName;}function removeClass(element,elementClassName){element.classList.remove(elementClassName);}function getAttributeValue(element,elementAttributeName){return element.getAttribute(elementAttributeName);}function getUrlParameter(name){name=name.replace(/[[]/,”\[“).replace(/[]]/,”\]”);var regex=new RegExp(“[\?&]”+name+”=([^&#]*)”);var results=regex.exec(location.search);return results===null?””:decodeURIComponent(results[1].replace(/+/g,” “));}function show(element){element.style.display=”block”;}function hide(element){element.style.display=”none”;}function createScriptTag(source){var scriptElement=document.createElement(“script”);scriptElement.src=source;scriptElement.async=”async”;return scriptElement;}function appendAsyncJSTag(source){document.head.appendChild(createScriptTag(source));}function appendAsyncJSTagToBody(source){document.body.appendChild(createScriptTag(source));}function printJSAtOnload(source){if(window.addEventListener){window.addEventListener(“load”,function(){appendAsyncJSTag(source);},false);}else{if(window.attachEvent){window.attachEvent(“onload”,function(){appendAsyncJSTag(source);});}else{window.onload=function(){appendAsyncJSTag(source);};}}}function addImageTracker(source,element){try{if(element==null){configuration_status.image_tracker.waiting.push(source);}else{var trackingPixel=document.createElement(“img”);trackingPixel.src=source;trackingPixel.width=1;trackingPixel.height=1;trackingPixel.style=”display:none;”;element.appendChild(trackingPixel);}}catch(e){configuration_status.image_tracker.error.push({src:source,error:e.message});}}function waitingTrackers(){var waiting=configuration_status.image_tracker.waiting;configuration_status.image_tracker.waiting=[];for(var i in waiting){configuration_status.image_tracker.retried.push(waiting[i]);addImageTracker(waiting[i],document.body);}}function updateSponsorTracking(element,sponsorDcUI,sponsorDcSeg,sponsorIframeName,sponsorIframeSrc){if((sponsorDcUI!==null&&sponsorDcUI!==””)&&(sponsorDcSeg!==null&&sponsorDcSeg!==””)){var spAxel=Math.random()+””;var spA=spAxel*10000000000000;var source=” trackingIframe=document.createElement(“iframe”);trackingIframe.src=sponsorIframeSrc;trackingIframe.width=”0″;trackingIframe.height=”0″;if((sponsorIframeName!==null&&sponsorIframeName!==””)){trackingIframe.name=sponsorIframeName;}trackingIframe.frameborder=”0″;trackingIframe.scrolling=”no”;element.appendChild(trackingIframe);}}function initiateConsentDependencies(){var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);window.IDG_CONFIGURATION.event_status=configuration_status.started;if(!(window.IDG_CONFIGURATION.head_status===configuration_status.started||window.IDG_CONFIGURATION.head_status===configuration_status.done)){initiateConsentDependenciesHead();}else{if(consent==window.IDG_CONSENT.storage.value.granted&&(window.IDG_CONFIGURATION.event.stored.dispatched&&window.IDG_CONFIGURATION.event.stored.value===window.IDG_CONSENT.storage.value.revoked)){if(window.IDG_CONFIGURATION.ads.enabled){googletag.cmd.push(function(){if(typeof googletag.pubads().setRequestNonPersonalizedAds==”function”){googletag.pubads().setRequestNonPersonalizedAds(0);}});}if(window.IDG_CONFIGURATION.adsense.enabled&&window.dataLayer[0].displayTypeSpecific===”standard”){}if(localStorage.getItem(window.IDG_CONSENT.storage.name)==window.IDG_CONSENT.storage.value.granted){var disapprovedElements=document.querySelectorAll(“.”+configuration_status.lazy.html.dissaproved);for(var i in disapprovedElements){var element=disapprovedElements[i];if(typeof element===”object”){loadHtmlContent(element);}}}window.IDG_CONFIGURATION.event_status=configuration_status.done;}function initiateConsentDependenciesHead(){if(typeof window.IDG_CONSENT!==”undefined”&&typeof window.IDG_CONFIGURATION!==”undefined”){window.IDG_CONFIGURATION.head_status=configuration_status.started;var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);if(consent==window.IDG_CONSENT.storage.value.granted||(window.IDG_CONFIGURATION.consent_disable_modal&&consent==window.IDG_CONSENT.storage.value.limbo)){if(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&window.IDG_CONFIGURATION.auth.state===”ready”){initiatePermutive();initateAds();insertHeadFullScript();}else{window.IDG_CONFIGURATION.waiting_auth=true;}}else{if(consent==window.IDG_CONSENT.storage.value.revoked){if(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&window.IDG_CONFIGURATION.auth.state===”ready”){initateAds();window.IDG_CONFIGURATION.permutive.enabled=false;insertHeadLightScript();}else{window.IDG_CONFIGURATION.waiting_auth=true;}}}var waitingHtmlTargets=document.querySelectorAll(“.”+configuration_status.lazy.html.waiting);for(var i in waitingHtmlTargets){var target=waitingHtmlTargets[i];if(typeof target===”object”){removeClass(target,configuration_status.lazy.html.waiting);loadHtmlContent(target);}}window.IDG_CONFIGURATION.head_status=configuration_status.done;}}function authReady(pageNumber){var userExists=(typeof window.IDG_CONFIGURATION.auth.user!==”undefined”);var consumerSub=(window.IDG_CONFIGURATION.auth.packages.indexOf(“consumer”)>-1);var enterpriseSub=(window.IDG_CONFIGURATION.auth.packages.indexOf(“enterprise”)>-1);window.dataLayer[0].member=userExists;window.dataLayer[0].subscriber=(userExists&&(enterpriseSub||consumerSub));window.IDG_CONFIGURATION.adsense.enabled=false;if(window.dataLayer[0].subscriber){if(consumerSub&&”consumer”===window.dataLayer[0].audience){window.IDG_CONFIGURATION.ads.enabled=false;}if(!hasClass(document.documentElement,”subscriber”)){document.documentElement.classList.add(“subscriber”);}if(consumerSub&&!hasClass(document.documentElement,”subscriber-“+window.IDG_CONFIGURATION.account.package_name_consumer.toLowerCase())){document.documentElement.classList.add(“subscriber-“+window.IDG_CONFIGURATION.account.package_name_consumer.toLowerCase());}if(enterpriseSub&&!hasClass(document.documentElement,”subscriber-“+window.IDG_CONFIGURATION.account.package_name_enterprise.toLowerCase())){document.documentElement.classList.add(“subscriber-“+window.IDG_CONFIGURATION.account.package_name_enterprise.toLowerCase());}}if(userExists&&!hasClass(document.documentElement,”member”)){document.documentElement.classList.add(“member”);}if(userExists&&!consumerSub&&!enterpriseSub&&!hasClass(document.documentElement,”member-“+window.IDG_CONFIGURATION.account.package_name.toLowerCase())){document.documentElement.classList.add(“member-“+window.IDG_CONFIGURATION.account.package_name.toLowerCase());}gaPageView(pageNumber);if(pageNumber==1){ioPageView(dataLayer[0]);}if(window.IDG_CONFIGURATION.waiting_auth){window.IDG_CONFIGURATION.auth.state=”ready”;window.IDG_CONFIGURATION.waiting_auth=false;var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);if(consent==window.IDG_CONSENT.storage.value.granted||(window.IDG_CONFIGURATION.consent_disable_modal&&consent==window.IDG_CONSENT.storage.value.limbo)){initiatePermutive();insertHeadFullScript();if(typeof window.IDG_CONFIGURATION.async_sources.full.footer.waiting!==”undefined”&&window.IDG_CONFIGURATION.async_sources.full.footer.waiting){insertFooterFullScript();}}else{if(consent==window.IDG_CONSENT.storage.value.revoked){window.IDG_CONFIGURATION.permutive.enabled=false;insertHeadLightScript();if(typeof window.IDG_CONFIGURATION.async_sources.light.footer.waiting!==”undefined”&&window.IDG_CONFIGURATION.async_sources.light.footer.waiting){insertFooterLightScript();}}}initateAds();initAccountWrapper();if(window.dataLayer[0].displayTypeSpecific===”standard”&&window.dataLayer[0].subscriber){var articlesXhr=new XMLHttpRequest();articlesXhr.open(“GET”,window.IDG_CONFIGURATION.account.source+”/saved-articles”);articlesXhr.withCredentials=true;articlesXhr.crossDomain=true;articlesXhr.onload=function(){try{var response=JSON.parse(articlesXhr.responseText);if(response.success){window.IDG_CONFIGURATION.auth.user.saved_articles=response.saved_articles;if(window.IDG_CONFIGURATION.auth.user.saved_articles.length>0){for(var i in window.IDG_CONFIGURATION.auth.user.saved_articles){var articleElement=document.querySelector(‘div[data-article-id=”‘+window.IDG_CONFIGURATION.auth.user.saved_articles[i].article_id+'”]’);if(articleElement!==null){if(!hasClass(articleElement,”article–bookmarked”)){addClass(articleElement,”article–bookmarked”);}}}}}else{window.IDG_CONFIGURATION.auth.user.saved_articles=[];}}catch(error){window.IDG_CONFIGURATION.auth.user.saved_articles=[];}};articlesXhr.onerror=function(e){window.IDG_CONFIGURATION.auth.user.saved_articles=[];};articlesXhr.send(null);}}else{window.IDG_CONFIGURATION.auth.state=”ready”;initAccountWrapper();}document.dispatchEvent(new CustomEvent(window.IDG_CONFIGURATION.account.event_name,{detail:{page:pageNumber,member:window.dataLayer[0].member,subscriber:window.dataLayer[0].subscriber}}));}function initAccountWrapper(){var accountElements=document.querySelectorAll(“.idg-konto”);var accountSize=accountElements.length;if(accountSize>0){window.IDG_CONFIGURATION.auth.wrapper=”rendered”;var userExists=(typeof window.IDG_CONFIGURATION.auth.user!==”undefined”);var returnurl=””;var url=null;var canonicalUrl=document.querySelector(“link[rel=”canonical”]”);if(typeof canonicalUrl!==”undefined”&&canonicalUrl!==null){url=canonicalUrl.getAttribute(“href”);if(!(typeof url!==”undefined”&&url!==null&&url.length>0&&url.indexOf(window.dataLayer[0].property)>-1)){url=null;}}if(url===null){var ogUrl=document.querySelector(“meta[property=’og:url’]”);if(typeof ogUrl!==”undefined”&&ogUrl!==null){url=ogUrl.getAttribute(“content”);}}if(typeof url!==”undefined”&&url!==null&&url.length>0){try{returnurl+=”?return=”;returnurl+=encodeURIComponent(url);}catch(err){returnurl=””;}}var packageName=””;var upgradeUrl=window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_o;if(window.dataLayer[0].audience===”consumer”){upgradeUrl=”https://m3kampanj.idg.se/plus-medlemskap/”;packageName=window.IDG_CONFIGURATION.account.package_name_consumer+”-“;}else{if(window.dataLayer[0].audience===”enterprise”){upgradeUrl+=window.IDG_CONFIGURATION.account.path_o_enterprise;packageName=window.IDG_CONFIGURATION.account.package_name_enterprise+”-“;}}var upgradeTrUrl=upgradeUrl;upgradeUrl+=returnurl;var clickSettings={category:”Header Links”,action:”To: “,label:”From: “+(window.dataLayer[0].headline.length>0?window.dataLayer[0].headline:window.dataLayer[0].property)+” → “+window.dataLayer[0].property+” → “+window.dataLayer[0].contentId};for(var i in accountElements){var accountWrapper=accountElements[i];if(typeof accountWrapper===”object”&&!hasClass(accountWrapper,”rendered”)){addClass(accountWrapper,”rendered”);var memberLinks=document.createElement(“ul”);if(userExists){addClass(accountWrapper,”member”);if(window.IDG_CONFIGURATION.auth.packages.length>0||typeof window.IDG_CONFIGURATION.auth.user.first_name!==”undefined”){var liMe=document.createElement(“li”);liMe.setAttribute(“class” nav-member”);var liMeLink=document.createElement(“a”);liMeLink.setAttribute(“href”,window.IDG_CONFIGURATION.account.page+”/mina-sidor”+returnurl);liMeLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+window.IDG_CONFIGURATION.account.page+”/mina-sidor?ref=hem”,clickSettings.label);}});var meContent=””;if(window.IDG_CONFIGURATION.auth.packages.length>0){for(var p in window.IDG_CONFIGURATION.auth.packages){meContent+=’‘;}}if(typeof window.IDG_CONFIGURATION.auth.user.first_name!==”undefined”){meContent+=’‘;meContent+=window.IDG_CONFIGURATION.auth.user.first_name;meContent+=”“;}liMeLink.innerHTML=meContent;liMe.appendChild(liMeLink);memberLinks.appendChild(liMe);}if(window.IDG_CONFIGURATION.auth.packages.length<=0){var liPackages=document.createElement("li");liPackages.setAttribute("class" nav-member-bas");var liPackagesLink=document.createElement("a");liPackagesLink.setAttribute("href",upgradeUrl);liPackagesLink.addEventListener("click",function(e){if(typeof IDGTrackEvent!=="undefined"){IDGTrackEvent(clickSettings.category,clickSettings.action+upgradeTrUrl,clickSettings.label);}});if(window.dataLayer[0].audience==="consumer"){liPackagesLink.innerHTML="Om “+packageName+”medlemskapet“;liPackagesLink.setAttribute(“target”https://news.google.com/__i/rss/rd/articles/,”_blank”);}else{liPackagesLink.innerHTML=”Bli “+packageName+”medlem“;}liPackages.appendChild(liPackagesLink);memberLinks.appendChild(liPackages);}var liMyAccount=document.createElement(“li”);liMyAccount.setAttribute(“class” nav-account”);var liMyAccountLink=document.createElement(“a”);liMyAccountLink.setAttribute(“href”,window.IDG_CONFIGURATION.account.page+”/mina-sidor”+returnurl);liMyAccountLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+window.IDG_CONFIGURATION.account.page+”/mina-sidor?ref=mina-sidor”,clickSettings.label);}});liMyAccountLink.innerHTML=”Mina sidor“;liMyAccount.appendChild(liMyAccountLink);memberLinks.appendChild(liMyAccount);var liMyArticles=document.createElement(“li”);liMyArticles.setAttribute(“class” nav-articles”);var liMyArticlesLink=document.createElement(“a”);liMyArticlesLink.setAttribute(“href”,window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_m_ar+returnurl);liMyArticlesLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_m_ar,clickSettings.label);}});liMyArticlesLink.innerHTML=”Sparade artiklar“;liMyArticles.appendChild(liMyArticlesLink);memberLinks.appendChild(liMyArticles);var liSignOut=document.createElement(“li”);liSignOut.setAttribute(“class” nav-sign-out”);liSignOut.innerHTML=”Logga ut“;liSignOut.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+”Logga ut”,clickSettings.label);}var authXhr=new XMLHttpRequest();authXhr.open(“GET”,window.IDG_CONFIGURATION.account.source+window.IDG_CONFIGURATION.account.path_so);authXhr.withCredentials=true;authXhr.crossDomain=true;authXhr.onload=function(){try{var response=JSON.parse(authXhr.responseText);if(response.success){if(typeof IDG_CORAL!==”undefined”){IDG_CORAL.logout();}document.location.reload();}}catch(error){}};authXhr.onerror=function(e){};authXhr.send(null);},false);memberLinks.appendChild(liSignOut);}else{addClass(accountWrapper,”none-member”);var liSignIn=document.createElement(“li”);liSignIn.setAttribute(“class” nav-sign-in”);var liSignInLink=document.createElement(“a”);liSignInLink.setAttribute(“href”,window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_si+returnurl);liSignInLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_si,clickSettings.label);}});liSignInLink.innerHTML=”Logga in“;liSignIn.appendChild(liSignInLink);memberLinks.appendChild(liSignIn);if(window.dataLayer[0].view!==”in-app-ios”){var liOffer=document.createElement(“li”);liOffer.setAttribute(“class” nav-deal”);var liOfferLink=document.createElement(“a”);liOfferLink.setAttribute(“href”,upgradeUrl);liOfferLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+upgradeTrUrl,clickSettings.label);}});if(window.dataLayer[0].audience===”consumer”){liOfferLink.innerHTML=”Om “+packageName+”medlemskapet“;liOfferLink.setAttribute(“target”https://news.google.com/__i/rss/rd/articles/,”_blank”);}else{liOfferLink.innerHTML=”Bli “+packageName+”medlem“;}liOffer.appendChild(liOfferLink);memberLinks.appendChild(liOffer);}}accountWrapper.appendChild(memberLinks);var toggleWrapper=accountWrapper.querySelector(“.idg-konto-toggle”);if(toggleWrapper!==null&&typeof toggleWrapper!==”undefined”){toggleWrapper.addEventListener(“click”,function(e){var parent=findParentByClass(e.target,”idg-konto”);if(parent!==null){var isVisible=hasClass(parent,”visible”);if(isVisible){removeClass(parent,”visible”);}else{addClass(parent,”visible”);}if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+(isVisible?”Member toggle collapse”:”Member toogle expand”),clickSettings.label);}}},false);}}}document.addEventListener(“click”,function(event){var parent=findParentByClass(event.target,”idg-konto”);if(parent===null&&!hasClass(event.target,”.idg-konto”)){var visibleTargets=document.querySelectorAll(“.idg-konto.visible”);if(visibleTargets.length>0&&typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+”Member toogle collapse”,clickSettings.label);}for(var i in visibleTargets){var target=visibleTargets[i];if(typeof target===”object”){removeClass(target,”visible”);}}}},false);}}function initateAds(){if(window.IDG_CONFIGURATION.ads.enabled){var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);if(consent==window.IDG_CONSENT.storage.value.granted||(window.IDG_CONFIGURATION.consent_disable_modal&&consent==window.IDG_CONSENT.storage.value.limbo)){window.IDG_CONFIGURATION.ads.status=configuration_status.started;if(window.IDG_CONFIGURATION.ads.prebid_active){initiateAdsIncludingHB();}else{initiateAdsExcludingHB();}}else{if(consent==window.IDG_CONSENT.storage.value.revoked){window.IDG_CONFIGURATION.ads.status=configuration_status.started;initiateAdsExcludingHB();}}}}function initiateConsentDependenciesFooter(){if(typeof window.IDG_CONSENT!==”undefined”&&typeof window.IDG_CONFIGURATION!==”undefined”){window.IDG_CONFIGURATION.footer_status=configuration_status.started;var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);if(consent==window.IDG_CONSENT.storage.value.granted||(window.IDG_CONFIGURATION.consent_disable_modal&&consent==window.IDG_CONSENT.storage.value.limbo)){initiateFacebookPixel();insertFooterFullScript();var articleElement=document.getElementById(“articlePage-1”);insertSponsoredPixel(articleElement);loadVibrant(articleElement);initiateComscore();loadTTDFrames(document);}else{if(consent==window.IDG_CONSENT.storage.value.revoked){insertFooterLightScript();}}window.IDG_CONFIGURATION.footer_status=configuration_status.done;}}function waitingAdsStatus(config){setTimeout(function(){window.IDG_CONFIGURATION.ads.status=configuration_status.done;window.IDG_CONFIGURATION.ads.type=config.name;var waitingTargets=document.querySelectorAll(“.lazy-ad-waiting”);for(var i in waitingTargets){var target=waitingTargets[i];if(typeof target===”object”){removeClass(target,configuration_status.lazy.ad.waiting);loadNewPageAds(target,target.getAttribute(“data-page”),target.getAttribute(“data-selector”));}}},config.timeout);}function initiateAdsExcludingHB(){appendAsyncJSTag(window.IDG_CONFIGURATION.ads.gpt_source);googletag.cmd.push(function(){googletag.pubads().enableAsyncRendering();googletag.pubads().disableInitialLoad();googletag.pubads().collapseEmptyDivs();if(localStorage.getItem(window.IDG_CONSENT.storage.name)==window.IDG_CONSENT.storage.value.revoked){if(typeof googletag.pubads().setRequestNonPersonalizedAds==”function”){googletag.pubads().setRequestNonPersonalizedAds(1);}}for(var targetKey in IDG_CONFIGURATION.ads.page_level){if(targetKey===”context”){var pageContextTargets=IDG_CONFIGURATION.ads.page_level[targetKey];try{if(navigator.userAgent.indexOf(“gonative”)>-1){if(pageContextTargets==””){pageContextTargets=”uama”;}else{pageContextTargets=”uama,”+pageContextTargets;}}}catch(err){}googletag.pubads().setTargeting(targetKey,pageContextTargets);}else{if(targetKey!==”resolve”){googletag.pubads().setTargeting(targetKey,IDG_CONFIGURATION.ads.page_level[targetKey]);}}}try{googletag.pubads().setTargeting(“IDG.SE_Adgroup”,(getCookieValue(“aikeyx”)||”-“).slice(-1));}catch(err){}if(getCookieValue(“autoReload”)===”1″){googletag.pubads().setTargeting(“SE_ar” kvs=window.localStorage.getItem(“_pdfps”);googletag.pubads().setTargeting(“permutive”,kvs?JSON.parse(kvs):[]);}googletag.pubads().addEventListener(“slotRenderEnded”,function(e){var id=e.slot.getSlotId().getDomId();var slotElement=document.getElementById(id);if(slotElement!=null){var slotAdContainer=findParentByClass(slotElement,”adContainer”);if(!e.isEmpty){var childFrame=findChildByType(slotElement,”iframe”);if(typeof childFrame!=”undefined”){var defaultHeight=getAttributeValue(childFrame,”height”);var defaultWidth=getAttributeValue(childFrame,”width”);if(slotAdContainer!=null){addClass(slotAdContainer,”slotSize-“+defaultWidth+”x”+defaultHeight);var lazyAdContainer=findParentByClass(slotAdContainer,”lazy-ad-container”);if(lazyAdContainer==null){lazyAdContainer=findParentByClass(slotAdContainer,”ads-container”);}if(lazyAdContainer!=null){addClass(lazyAdContainer,”slotSize-“+defaultWidth+”x”+defaultHeight);}}}if(getAttributeValue(slotElement,”data-ad-marking”)==”true”){addClass(slotElement,”adMarkings”);}}else{if(slotAdContainer!=null){addClass(slotAdContainer,”emptySlot”);var lazyAdContainer=findParentByClass(slotAdContainer,”lazy-ad-container”);if(lazyAdContainer==null){lazyAdContainer=findParentByClass(slotAdContainer,”ads-container”);}if(lazyAdContainer!=null){addClass(lazyAdContainer,”emptySlot”);}}}}});googletag.enableServices();});waitingAdsStatus(configuration_status.ads.excluding_hb);}function initiateAdsIncludingHB(){var standardAdserverSettings=[];if(window.IDG_CONFIGURATION.ads.prebid_code_key!=””){var codeKeySettings={};codeKeySettings.key=window.IDG_CONFIGURATION.ads.prebid_code_key;codeKeySettings.val=function(bidResponse){return bidResponse.bidderCode;};standardAdserverSettings.push(codeKeySettings);}if(window.IDG_CONFIGURATION.ads.prebid_ad_id_key!=””){var adIdKeySettings={};adIdKeySettings.key=window.IDG_CONFIGURATION.ads.prebid_ad_id_key;adIdKeySettings.val=function(bidResponse){return bidResponse.adId;};standardAdserverSettings.push(adIdKeySettings);}if(window.IDG_CONFIGURATION.ads.prebid_hb_price_key!=””){var hbPriceKeySettings={};hbPriceKeySettings.key=window.IDG_CONFIGURATION.ads.prebid_hb_price_key;hbPriceKeySettings.val=function(bidResponse){return bidResponse.pbMg;};standardAdserverSettings.push(hbPriceKeySettings);}if(window.IDG_CONFIGURATION.ads.prebid_price_key!=””){var priceKeySettings={};priceKeySettings.key=window.IDG_CONFIGURATION.ads.prebid_price_key;priceKeySettings.val=function(bidResponse){var cpm=bidResponse.cpm;if(cpm<5){return(Math.floor(cpm*10)/10).toFixed(2);}else{if(cpm<10){return(Math.floor(cpm*5)/5).toFixed(2);}else{if(cpm0){pbjs.bidderSettings={standard:{suppressEmptyKeys:true,adserverTargeting:standardAdserverSettings}};}appendAsyncJSTag(window.IDG_CONFIGURATION.ads.prebid_source);window.getCookieValue=window.getCookieValue||function(cookieKey){var value=””;var i,x,y,ARRcookies=document.cookie.split(“;”);for(i=0;i-1){if(pageContextTargets==””){pageContextTargets=”uama”;}else{pageContextTargets=”uama,”+pageContextTargets;}}}catch(err){}googletag.pubads().setTargeting(targetKey,pageContextTargets);}else{if(targetKey===”resolve”&&resolvedValue!==null){var pageResolveTargets=IDG_CONFIGURATION.ads.page_level[targetKey];if(pageResolveTargets.enabled){var resolvedValue=getCookieValue(pageResolveTargets.name);if(resolvedValue!==””){googletag.pubads().setTargeting(pageResolveTargets.key,resolvedValue);}}}else{googletag.pubads().setTargeting(targetKey,IDG_CONFIGURATION.ads.page_level[targetKey]);}}}try{googletag.pubads().setTargeting(“IDG.SE_Adgroup”,(getCookieValue(“aikeyx”)||”-“).slice(-1));}catch(err){}if(getCookieValue(“autoReload”)===”1″){googletag.pubads().setTargeting(“SE_ar” kvs=window.localStorage.getItem(“_pdfps”);googletag.pubads().setTargeting(“permutive”,kvs?JSON.parse(kvs):[]);}googletag.pubads().addEventListener(“slotRenderEnded”,function(e){var id=e.slot.getSlotId().getDomId();var slotElement=document.getElementById(id);if(slotElement!=null){var slotAdContainer=findParentByClass(slotElement,”adContainer”);if(!e.isEmpty){var childFrame=findChildByType(slotElement,”iframe”);if(typeof childFrame!=”undefined”){var defaultHeight=getAttributeValue(childFrame,”height”);var defaultWidth=getAttributeValue(childFrame,”width”);if(slotAdContainer!=null){addClass(slotAdContainer,”slotSize-“+defaultWidth+”x”+defaultHeight);var lazyAdContainer=findParentByClass(slotAdContainer,”lazy-ad-container”);if(lazyAdContainer==null){lazyAdContainer=findParentByClass(slotAdContainer,”ads-container”);}if(lazyAdContainer!=null){addClass(lazyAdContainer,”slotSize-“+defaultWidth+”x”+defaultHeight);}}}if(getAttributeValue(slotElement,”data-ad-marking”)==”true”){addClass(slotElement,”adMarkings”);}}else{if(slotAdContainer!=null){addClass(slotAdContainer,”emptySlot”);var lazyAdContainer=findParentByClass(slotAdContainer,”lazy-ad-container”);if(lazyAdContainer==null){lazyAdContainer=findParentByClass(slotAdContainer,”ads-container”);}if(lazyAdContainer!=null){addClass(lazyAdContainer,”emptySlot”);}}}}});googletag.enableServices();});appendAsyncJSTag(window.IDG_CONFIGURATION.ads.gpt_source);var resolve=IDG_CONFIGURATION.ads.page_level.resolve;if(typeof resolve!==”undefined”&&resolve.enabled){printJSAtOnload(resolve.source);}waitingAdsStatus(configuration_status.ads.including_hb);}function loadNewPageAds(element,pageIdentifer,adSelector){if(typeof window.IDG_CONFIGURATION.ads.page_slots[adSelector]===”undefined”){window.IDG_CONFIGURATION.ads.page_slots[adSelector]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector]===”undefined”){window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector]===”undefined”){window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_bid_slots_config[adSelector]===”undefined”){window.IDG_CONFIGURATION.ads.page_bid_slots_config[adSelector]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer]===”undefined”){window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector][pageIdentifer]===”undefined”){window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector][pageIdentifer]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector][pageIdentifer]===”undefined”){window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector][pageIdentifer]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_bid_slots_config[adSelector][pageIdentifer]===”undefined”){window.IDG_CONFIGURATION.ads.page_bid_slots_config[adSelector][pageIdentifer]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag]===”undefined”){window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag]=[];}if(typeof window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer]===”undefined”){window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer]=true;}var changeCorrelator=window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer];if(window.IDG_CONFIGURATION.ads.status===configuration_status.done){var isHB=window.IDG_CONFIGURATION.ads.prebid_active;var articleElements=document.getElementsByClassName(“.”+pageIdentifer);if(typeof articleElements!==”undefined”&&articleElements.length>0){isHB=articleElements(“page-1”)[0].getAttribute(“data-article-ads-header-bidding”);}var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);if((consent==window.IDG_CONSENT.storage.value.granted||(window.IDG_CONFIGURATION.consent_disable_modal&&consent==window.IDG_CONSENT.storage.value.limbo))&&isHB&&window.IDG_CONFIGURATION.ads.type===configuration_status.ads.including_hb.name){loadNewPageAdsIncludingHB(element,pageIdentifer,adSelector);}else{if(window.IDG_CONFIGURATION.ads.type===configuration_status.ads.excluding_hb.name){loadNewPageAdsExcludingHB(element,pageIdentifer,adSelector);}}}}function loadNewPageAdsExcludingHB(element,pageIdentifer,adSelector){var prevDisapproved=hasClass(element,”lazy-ad-disapproved”);if(prevDisapproved){removeClass(element,”lazy-ad-disapproved”);}var ads=element.querySelectorAll(adSelector);for(var i in ads){var adElement=ads[i];if(typeof adElement===”object”){if(prevDisapproved){adElement.innerHTML=””;}var id=adElement.getAttribute(“data-ad-id”);var unitName=adElement.getAttribute(“data-ad-unitname”);if(typeof unitName==”undefined”||unitName==””){unitName=window.IDG_CONFIGURATION.ads.unit_name;}var sizes=eval(adElement.getAttribute(“data-ad-sizes”));var contextTarget=adElement.getAttribute(“data-ad-context”);var posTarget=adElement.getAttribute(“data-ad-pos”);var mediaQuery=adElement.getAttribute(“data-ad-responsive”);var outOfPage=eval(adElement.getAttribute(“data-ad-out-of-page”));var wrapperId=id+”Wrapper”;adElement.setAttribute(“id”,wrapperId);if(document.getElementById(id)==null){var adMarking=adElement.getAttribute(“data-ad-marking”);var adClasses=adElement.getAttribute(“data-ad-classes”);var slotDiv=document.createElement(“div”);slotDiv.setAttribute(“id”,id);slotDiv.setAttribute(“data-ad-marking”,adMarking);slotDiv.setAttribute(“class”,adClasses);slotDiv.setAttribute(“style” window.IDG_CONFIGURATION.ads.gpt_ad_slots[id]==”undefined”){var slot;if(outOfPage){slot=googletag.defineOutOfPageSlot(unitName,id).setTargeting(“pos”,posTarget).setTargeting(“context”,contextTarget).addService(googletag.pubads());}else{slot=googletag.defineSlot(unitName,sizes,id).setTargeting(“pos”,posTarget).setTargeting(“context”,contextTarget).addService(googletag.pubads());}googletag.display(id);window.IDG_CONFIGURATION.ads.gpt_ad_slots[id]=slot;window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer].push(slot);}});},deferSetup:true,match:function(){show(document.getElementById(wrapperId));show(document.getElementById(id));window.IDG_CONFIGURATION.ads.matching_slots_ids[id]=true;},unmatch:function(){hide(document.getElementById(wrapperId));hide(document.getElementById(id));window.IDG_CONFIGURATION.ads.matching_slots_ids[id]=false;}});}else{show(document.getElementById(wrapperId));show(document.getElementById(id));window.IDG_CONFIGURATION.ads.matching_slots_ids[id]=true;googletag.cmd.push(function(){if(typeof window.IDG_CONFIGURATION.ads.gpt_ad_slots[id]==”undefined”){var slot;if(outOfPage){slot=googletag.defineOutOfPageSlot(unitName,id).setTargeting(“pos”,posTarget).setTargeting(“context”,contextTarget).addService(googletag.pubads());}else{slot=googletag.defineSlot(unitName,sizes,id).setTargeting(“pos”,posTarget).setTargeting(“context”,contextTarget).addService(googletag.pubads());}googletag.display(id);window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer].push(slot);window.IDG_CONFIGURATION.ads.gpt_ad_slots[id]=slot;}});}}}googletag.cmd.push(function(){if(window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer].length>0){googletag.pubads().refresh(window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer],{changeCorrelator:window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer]});window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer]=false;}});}function loadNewPageAdsIncludingHB(element,pageIdentifer,adSelector){var adConfiguration=[];var medias=[];var prevDisapproved=hasClass(element,”lazy-ad-disapproved”);if(prevDisapproved){removeClass(element,”lazy-ad-disapproved”);}var ads=element.querySelectorAll(adSelector);for(var i in ads){var adElement=ads[i];if(typeof adElement===”object”){if(prevDisapproved){adElement.innerHTML=””;}var outOfPage=eval(adElement.getAttribute(“data-ad-out-of-page”));if(!outOfPage||(outOfPage&&window.IDG_CONFIGURATION.ads.bid_out_of_page_active)){var id=adElement.getAttribute(“data-ad-id”);var dynamicId=adElement.getAttribute(“data-dymanic-id”);if(typeof dynamicId!=”undefined”&&dynamicId!=null){id+=dynamicId;}var mediaQuery=adElement.getAttribute(“data-ad-responsive”);if(!(medias.indexOf(mediaQuery)>-1)){medias.push(mediaQuery);}if(typeof adConfiguration[mediaQuery]==”undefined”){adConfiguration[mediaQuery]=[];}var slotBiddersData=adElement.getAttribute(“data-ad-header-bidders”);var slotBidders;if(typeof slotBiddersData==”undefined”||slotBiddersData==””){slotBidders=[];}else{slotBidders=eval(slotBiddersData);}var unitName=adElement.getAttribute(“data-ad-unitname”);if(typeof unitName==”undefined”||unitName==””){unitName=window.IDG_CONFIGURATION.ads.unit_name;}var currentConfig={id:id,unitName:unitName,sizes:eval(adElement.getAttribute(“data-ad-sizes”)),contextTarget:adElement.getAttribute(“data-ad-context”),posTarget:adElement.getAttribute(“data-ad-pos”),bidders:slotBidders,outOfPage:eval(adElement.getAttribute(“data-ad-out-of-page”))};adConfiguration[mediaQuery].push(currentConfig);var wrapperId=id+”Wrapper”;adElement.setAttribute(“id”,wrapperId);if(document.getElementById(id)==null){var adMarking=adElement.getAttribute(“data-ad-marking”);var adClasses=adElement.getAttribute(“data-ad-classes”);var slotDiv=document.createElement(“div”);slotDiv.setAttribute(“id”,id);slotDiv.setAttribute(“data-ad-marking”,adMarking);slotDiv.setAttribute(“class”,adClasses);slotDiv.setAttribute(“style” item in medias){var media=medias[item];if(media!==””&&media!=”false”){var items=adConfiguration[medias[item]];enquire.register(media,{setup:function(){for(var slotIndex in items){var slot=items[slotIndex];var bidSlot={code:slot.id,mediaTypes:{banner:{sizes:slot.sizes}},bids:slot.bidders};bidSlot.mediaTypes.banner.sizes=(bidSlot.mediaTypes.banner.sizes||[]).filter(function(s){return s!=”fluid”;});window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector][pageIdentifer].push(bidSlot);window.IDG_CONFIGURATION.ads.page_bid_slots_config[adSelector][pageIdentifer][bidSlot.code]={config:bidSlot,pos:slot.posTarget,sizes:slot.sizes,context:slot.contextTarget,unitName:slot.unitName,outOfPage:slot.outOfPage};addClass(document.getElementById(slot.id+”Wrapper”),”initiated”);}},deferSetup:true,match:function(){for(var slotIndex in items){var slot=items[slotIndex];var slotWrapperElement=document.getElementById(slot.id+”Wrapper”);if(hasClass(slotWrapperElement,”initiated”)){show(slotWrapperElement);show(document.getElementById(slot.id));}window.IDG_CONFIGURATION.ads.matching_slots_ids[slot.id]=true;}},unmatch:function(){for(var slotIndex in items){var slot=items[slotIndex];var slotWrapperElement=document.getElementById(slot.id+”Wrapper”);if(hasClass(slotWrapperElement,”initiated”)){hide(slotWrapperElement);hide(document.getElementById(slot.id));}window.IDG_CONFIGURATION.ads.matching_slots_ids[slot.id]=false;}}});}else{var items=adConfiguration[medias[item]];for(var slotIndex in items){var slot=items[slotIndex];var bidSlot={code:slot.id,mediaTypes:{banner:{sizes:slot.sizes}},bids:slot.bidders};bidSlot.mediaTypes.banner.sizes=(bidSlot.mediaTypes.banner.sizes||[]).filter(function(s){return s!=”fluid”;});window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector][pageIdentifer].push(bidSlot);window.IDG_CONFIGURATION.ads.page_bid_slots_config[adSelector][pageIdentifer][bidSlot.code]={config:bidSlot,pos:slot.posTarget,sizes:slot.sizes,context:slot.contextTarget,unitName:slot.unitName,outOfPage:slot.outOfPage};show(document.getElementById(slot.id+”Wrapper”));show(document.getElementById(slot.id));}}}pbjs.que.push(function(){pbjs.addAdUnits(window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector][pageIdentifer]);googletag.cmd.push(function(){var pageBidSlots=window.IDG_CONFIGURATION.ads.page_bid_slots[adSelector][pageIdentifer];if(pageBidSlots.length>0){for(i=0;i0){slot.setTargeting(“context”,currentSlot.context);}slot.addService(googletag.pubads());googletag.display(currentSlot.config.code);window.IDG_CONFIGURATION.ads.gpt_ad_slots[currentSlot.config.code]=slot;window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer].push(slot);window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector][pageIdentifer].push(currentSlot.config.code);}}pbjs.requestBids({timeout:window.IDG_CONFIGURATION.ads.prebid_timeout,adUnitCodes:window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector][pageIdentifer],bidsBackHandler:function(){pbjs.setTargetingForGPTAsync(window.IDG_CONFIGURATION.ads.page_slots_ids[adSelector][pageIdentifer]);googletag.pubads().refresh(window.IDG_CONFIGURATION.ads.page_slots[adSelector][pageIdentifer],{changeCorrelator:window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer]});window.IDG_CONFIGURATION.ads.page_ads_correlator[window.IDG_CONFIGURATION.ads.correlator_flag][pageIdentifer]=false;}});}});});}function loadNewPageAdsExcludingP(element,pageIdentifer,adSelector){addClass(element,”lazy-ad-disapproved”);var ads=element.querySelectorAll(adSelector);for(var i in ads){var adElement=ads[i];if(typeof adElement===”object”){var outOfPage=eval(adElement.getAttribute(“data-ad-out-of-page”));if(!outOfPage){var id=”disapproved-“+adElement.getAttribute(“data-ad-id”);var wrapperId=id+”-wrapper”;adElement.setAttribute(“id”,wrapperId);var mediaQuery=adElement.getAttribute(“data-ad-responsive”);var dataSizes=adElement.getAttribute(“data-ad-sizes”);var sizes=[];if(dataSizes!==null&&dataSizes!==””){sizes=eval(adElement.getAttribute(“data-ad-sizes”));}var slotConsentWrapper=document.createElement(“div”);slotConsentWrapper.setAttribute(“id”,id);slotConsentWrapper.setAttribute(“style” consentInfoWrapper=document.createElement(“div”);consentInfoWrapper.setAttribute(“class” wrapperStyle=””;if(sizes.length>0){var firstSize=sizes[0];var valid=(typeof firstSize!==”undefined”);if(typeof firstSize===”number”){wrapperStyle=”width:”+firstSize+”px;height:”+sizes[1]+”px”;}else{wrapperStyle=”width:”+firstSize[0]+”px;height:”+firstSize[1]+”px”;}}consentInfoWrapper.setAttribute(“style”,wrapperStyle);var info=document.createElement(“div”);info.setAttribute(“class” text=document.createElement(“div”);text.setAttribute(“class” inställningar tillåter inte att vi visar upp detta innehåll. Ändra innehåll“;info.appendChild(text);consentInfoWrapper.addEventListener(“click”,function(){document.dispatchEvent(new CustomEvent(window.IDG_CONFIGURATION.event.open.name,{response:”open consent modal”}));},false);consentInfoWrapper.appendChild(info);slotConsentWrapper.appendChild(consentInfoWrapper);adElement.appendChild(slotConsentWrapper);if(mediaQuery!=undefined||mediaQuery!==””||!mediaQuery){enquire.register(mediaQuery,{match:function(){show(document.getElementById(wrapperId));show(document.getElementById(id));},unmatch:function(){hide(document.getElementById(wrapperId));hide(document.getElementById(id));}});}else{show(document.getElementById(wrapperId));show(document.getElementById(id));}}}}}function initHtmlContentPlaceHolder(element){var consentInfoWrapper=document.createElement(“div”);consentInfoWrapper.setAttribute(“class” info=document.createElement(“div”);info.setAttribute(“class” gaPageView(pageNumber){if(!window.IDG_CONFIGURATION.ga.initiated&&pageNumber0){window.IDG_CONFIGURATION.ga.initiated=true;ga(“create”,window.IDG_CONFIGURATION.ga.uid,”auto”);gaPageDimensions(window.dataLayer[0]);var curPage=document.location.pathname+document.location.search+document.location.hash;if(window.IDG_CONFIGURATION.ga.extras.length>0){curPage+=(curPage.split(“?”)[1]?”&”:”?”);curPage+=window.IDG_CONFIGURATION.ga.extras;}ga(“send” gaPageDimensions(currentDataLayer){if(window.IDG_CONFIGURATION.ga.initiated&&typeof currentDataLayer!==”undefined”&&currentDataLayer!==null){var version=localStorage.getItem(“pageVersion”);if(version==null){version=”def”;}ga(“set” currentDataLayer.authors!==”undefined”&&currentDataLayer.authors.length>0){ga(“set” userExists=(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&typeof window.IDG_CONFIGURATION.auth.user!==”undefined”);ga(“set” level=”Non Member”;if(userExists){level=window.IDG_CONFIGURATION.account.package_name;if(window.IDG_CONFIGURATION.auth.packages.length>0){if(window.IDG_CONFIGURATION.auth.packages.indexOf(“consumer”)>-1){level=window.IDG_CONFIGURATION.account.package_name_consumer;}else{if(window.IDG_CONFIGURATION.auth.packages.indexOf(“enterprise”)>-1){level=window.IDG_CONFIGURATION.account.package_name_enterprise;}}}}ga(“set” isLocked=(typeof currentDataLayer.locked!==”undefined”&&currentDataLayer.locked===”true”);ga(“set” currentDataLayer.pageTotalNumber!==”undefined”&&currentDataLayer.pageTotalNumber.length>0&&currentDataLayer.pageTotalNumber!==”1″&&currentDataLayer.pageNumber===”1″)){ga(“set” currentDataLayer.lockedFirstPage!==”undefined”&&currentDataLayer.lockedFirstPage===”false”));}if(typeof currentDataLayer.audience!==”undefined”&&currentDataLayer.audience.length>0){ga(“set” sponsorName=”na”;if(typeof currentDataLayer.displayTypeSpecific!==”undefined”&&currentDataLayer.displayTypeSpecific===”standard”){ga(“set” art=document.querySelector(‘div[data-article-id=”‘+currentDataLayer.articleId+'”]’);if(typeof art!==”undefined”&&art!==null){var spaName=art.getAttribute(“data-article-sp-name”);if(typeof spaName!==”undefined”&&spaName!==null&&spaName.length>0){sponsorName=spaName.trim();}}}catch(err){}}}ga(“set” currentDataLayer.property!==”undefined”){ga(“set” currentDataLayer.sponsored!==”undefined”&&currentDataLayer.sponsored!==null){ga(“set” currentDataLayer.contentType!==”undefined”&&currentDataLayer.contentType!==null&&currentDataLayer.contentType.length>0){ga(“set” currentDataLayer.displayType!==”undefined”&&currentDataLayer.displayType!==null&&currentDataLayer.displayType.length>0){ga(“set” currentDataLayer.displayTypeSpecific!==”undefined”&&currentDataLayer.displayTypeSpecific!==null&&currentDataLayer.displayTypeSpecific.length>0){ga(“set” gtxIds=([currentDataLayer.primaryChannel||””].concat(currentDataLayer.secondaryChannels||[]).map(function(tag){return(IDG_CONFIGURATION.permutive||{mapping:[]}).mapping[tag];}).filter(function(item){return item;})||[]);gtxIds=gtxIds.filter(function(item,pos){return gtxIds.indexOf(item)==pos;});ga(“set” ioPageView(layer){var id=configuration_status.io.ids[layer.property];var validId=(typeof id!==”undefined”);if(configuration_status.io.active&&!configuration_status.io.initated&&validId){if(dataLayer[0].environment===”production”){appendAsyncJSTag(configuration_status.io.source+id);}configuration_status.io.initated=true;}if(configuration_status.io.initated&&validId){window._io_config=window._io_config||{};window._io_config[configuration_status.io.version]=window._io_config[configuration_status.io.version]||[];var io_page={page_url_canonical:document.querySelector(“link[rel=canonical]”).href,page_title:layer.metaTitle,page_type:”default”,user_status:”default”,page_language:”sv”,};if(window._io_config[configuration_status.io.version].length===0){io_page.page_url=window.location.href;}else{io_page.page_url=io_page.page_url_canonical;}if(typeof window.IDG_CONFIGURATION.auth.user!==”undefined”){io_page.user_status=”member_no_access”;if(typeof window.IDG_CONFIGURATION.auth.user.packages!==”undefined”&&window.IDG_CONFIGURATION.auth.user.packages.indexOf(dataLayer[0].audience)>-1){io_page.user_status=”member_access”;}}if(layer.displayTypeSpecific===”standard”){io_page.page_type=layer.displayType;io_page.article_type=layer.contentType;io_page.page_title=layer.headline;io_page.article_authors=layer.authors;io_page.article_publication_date=new Date(dataLayer[0].datePublished).toUTCString();io_page.article_categories=[];if(layer.sponsored==”true”){io_page.article_categories.push(“sponsored”);}else{if(layer.locked==”true”){io_page.article_categories.push(“premium”);}}io_page.tags=[];var primary=layer.primaryChannel;if(primary.length>0){io_page.article_categories.push(primary);io_page.tags.push(primary);}for(var i in layer.secondaryChannels){var channel=layer.secondaryChannels[i];if(channel.length>0&&channel!==primary){io_page.tags.push(channel);}}}else{if(layer.contentType==”home page”){io_page.page_type=”main”;}}window._io_config[configuration_status.io.version].push(io_page);}}function loadHtmlWaiting(element){if(!hasClass(element,configuration_status.lazy.html.waiting)){addClass(element,configuration_status.lazy.html.waiting);}if(typeof window.IDG_CONFIGURATION.consent_state_ready===”undefined”||window.IDG_CONFIGURATION.consent_state_ready){initHtmlContentPlaceHolder(element);}else{if(element.getAttribute(“data-placeholder-state”)!==”init”){initHtmlContentPlaceHolder(element);}var info=element.querySelectorAll(“.consent-information”)[0];var text=document.createElement(“div”);text.setAttribute(“class”https://news.google.com/__i/rss/rd/articles/,”consent-text”);text.innerHTML=”

Anpassa dina inställningar

För att kunna visa innehållet behöver vi ditt godkännande. Om du inte fått möjlighet att godkänna kan det bero på ett tillfälligt fel hos oss eller att ett plugin till din webbläsare blockerar vår förfrågan.

Ladda om sidan eller inaktivera eventuella plugin i din webbläsare för att göra ditt val.

Du kan välja bort alla funktioner där din webbläsares aktivitet kan lagras för att direkt eller indirekt ge dig personligt anpassade annonser.

“;info.appendChild(text);}}function loadHtmlContent(element){var consent=localStorage.getItem(window.IDG_CONSENT.storage.name);if((consent==window.IDG_CONSENT.storage.value.granted||(window.IDG_CONFIGURATION.consent_disable_modal&&consent==window.IDG_CONSENT.storage.value.limbo))&&!hasClass(element,configuration_status.lazy.html.approved)){var elementType=element.getAttribute(“data-lazy-type”);var lazyLoaded=document.createElement(elementType);if(element.getAttribute(“style”)!=null){element.removeAttribute(“style”);}for(var i=0;i-1){href=decodeURIComponent(param.replace(“href=” likeLink=document.createElement(“a”);likeLink.setAttribute(“target”https://news.google.com/__i/rss/rd/articles/,”_blank”);likeLink.setAttribute(“rel”https://news.google.com/__i/rss/rd/articles/,”noopener”);likeLink.setAttribute(“href”,href);likeLink.innerHTML=”Gilla“;element.appendChild(likeLink);}else{var consentInformation=element.getAttribute(“data-lazy-consent-info”);var consentActionText=element.getAttribute(“data-lazy-consent-customize”);if(element.getAttribute(“data-placeholder-state”)!==”init”){initHtmlContentPlaceHolder(element);}var info=element.querySelectorAll(“.consent-information”)[0];info.innerHTML=””;var text=document.createElement(“div”);text.setAttribute(“class” button=document.createElement(“div”);button.setAttribute(“class” consentInfoWrapper=element.querySelectorAll(“.consent-information-container”)[0];consentInfoWrapper.addEventListener(“click”,function(){document.dispatchEvent(new CustomEvent(window.IDG_CONFIGURATION.event.open.name,{response:”open consent modal”}));},false);consentInfoWrapper.appendChild(info);element.appendChild(consentInfoWrapper);}removeClass(element,configuration_status.lazy.html.approved);addClass(element,configuration_status.lazy.html.dissaproved);}}}function loadHTBContent(element){var source=element.getAttribute(“data-source”);if(source!==null&&source!==””){var articleTeaserWrapper=element.querySelector(“.htb__inner”);if(typeof articleTeaserWrapper!==”undefined”&&articleTeaserWrapper!==null){addClass(element,”loading”);var htbXhr=new XMLHttpRequest();htbXhr.open(“GET”,source);htbXhr.crossDomain=true;htbXhr.onload=function(){try{var response=JSON.parse(htbXhr.responseText);var hasArticles=false;if(typeof response.articles!==”undefined”){for(var i in response.articles){if(response.articles.hasOwnProperty(i)){hasArticles=true;var article=response.articles[i];var articleElement=document.createElement(“article”);articleElement.setAttribute(“class” articleLink=document.createElement(“a”);if(typeof article.topTeaserImageUrl!==”undefined”&&article.topTeaserImageUrl!==null&&article.topTeaserImageUrl.length>0){articleLink.setAttribute(“style” url(“+article.topTeaserImageUrl+”)”);}else{if(typeof article.teaserImageUrl!==”undefined”&&article.teaserImageUrl!==null&&article.teaserImageUrl.length>0){articleLink.setAttribute(“style” url(“+article.teaserImageUrl+”)”);}}articleLink.setAttribute(“href”,article.articleLink);articleLink.setAttribute(“title”,article.teaserTitle);var articleTitle=document.createElement(“h3”);articleTitle.innerHTML=article.teaserTitle;articleLink.appendChild(articleTitle);articleElement.appendChild(articleLink);var articleSkeleton=articleTeaserWrapper.querySelector(“.htb__article-skeleton”);if(typeof articleSkeleton!==”undefined”&&articleSkeleton!==null){articleSkeleton.replaceWith(articleElement);}else{articleTeaserWrapper.appendChild(articleElement);}}}}if(hasArticles){var footerWrapper=element.querySelector(“.htb__footer”);if(typeof footerWrapper!==”undefined”&&footerWrapper!==null&&hasClass(footerWrapper,”wwu-buttons”)){var clickSettings={category:”Page Links”,action:”To: “,label:”From: “+(window.dataLayer[0].headline.length>0?window.dataLayer[0].headline:window.dataLayer[0].property)+” → “+window.dataLayer[0].property+” → “+window.dataLayer[0].contentId};var returnurl=””;var url=null;var canonicalUrl=document.querySelector(“link[rel=”canonical”]”);if(typeof canonicalUrl!==”undefined”&&canonicalUrl!==null){url=canonicalUrl.getAttribute(“href”);if(!(typeof url!==”undefined”&&url!==null&&url.length>0&&url.indexOf(window.dataLayer[0].property)>-1)){url=null;}}if(url===null){var ogUrl=document.querySelector(“meta[property=’og:url’]”);if(typeof ogUrl!==”undefined”&&ogUrl!==null){url=ogUrl.getAttribute(“content”);}}if(typeof url!==”undefined”&&url!==null&&url.length>0){try{returnurl+=”?return=”;returnurl+=encodeURIComponent(url);}catch(err){returnurl=””;}}var packageName=””;var upgradeUrl=window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_o;if(window.dataLayer[0].audience===”consumer”){upgradeUrl+=window.IDG_CONFIGURATION.account.path_o_consumer;packageName=window.IDG_CONFIGURATION.account.package_name_consumer+”-“;}else{if(window.dataLayer[0].audience===”enterprise”){upgradeUrl+=window.IDG_CONFIGURATION.account.path_o_enterprise;packageName=window.IDG_CONFIGURATION.account.package_name_enterprise+”-“;}}var upgradeTrUrl=upgradeUrl;upgradeUrl+=returnurl;if(window.dataLayer[0].view!==”in-app-ios”&&window.dataLayer[0].audience!==”consumer”){var upgradeLink=document.createElement(“a”);upgradeLink.setAttribute(“href”,upgradeUrl);upgradeLink.setAttribute(“title” “+packageName+”medlem”);upgradeLink.innerHTML=’“;upgradeLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+upgradeTrUrl,clickSettings.label);}});footerWrapper.appendChild(upgradeLink);}var loginLink=document.createElement(“a”);loginLink.setAttribute(“href”,window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_si+returnurl);loginLink.setAttribute(“title” in”);loginLink.innerHTML=’‘;loginLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_si,clickSettings.label);}});footerWrapper.appendChild(loginLink);}removeClass(element,”loading”);addClass(element,”loaded”);}else{addClass(element,”failed–empty”);}}catch(error){addClass(element,”failed-js”);}};htbXhr.onerror=function(e){addClass(element,”failed-xhr”);};htbXhr.send(null);}else{addClass(element,”failed–missing-wrapper”);}}else{addClass(element,”failed–missing-source”);}}function initiateFacebookPixel(){if(typeof window.IDG_CONFIGURATION.facebook_pixel!==”undefined”&&window.IDG_CONFIGURATION.facebook_pixel.enabled){!function(f,b,e,v,n,t,s){if(f.fbq){return;}n=f.fbq=function(){n.callMethod?n.callMethod.apply(n,arguments):n.queue.push(arguments);};if(!f._fbq){f._fbq=n;}n.push=n;n.loaded=!0;n.version=”2.0″;n.queue=[];t=b.createElement(e);t.async=!0;t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s);}(window,document,”script”,window.IDG_CONFIGURATION.facebook_pixel.source);for(var i in window.IDG_CONFIGURATION.facebook_pixel.ids){var id=window.IDG_CONFIGURATION.facebook_pixel.ids[i];if(id!=””){fbq(“init”,id);fbq(“track” initiateComscore(){var _comscore=_comscore||[];_comscore.push({c1:”2″,c2:”6035308″}),function(){var a=document.createElement(“script”),b=document.getElementsByTagName(“script”)[0];a.async=!0,a.src=” initiatePermutive(){try{window.IDG_CONFIGURATION.permutive.debug=(window.location.href.indexOf(“permutivedebug=true”)>-1);}catch(err){window.IDG_CONFIGURATION.permutive.debug=false;window.IDG_CONFIGURATION.permutive.debug_error=err.message;}if(window.IDG_CONFIGURATION.permutive.debug){console.log(“DEBUG Permutive enabled”,window.IDG_CONFIGURATION.permutive.enabled);}if(window.IDG_CONFIGURATION.permutive.enabled){!function(n,e,o,r,i){if(!e){e=e||{},window.permutive=e,e.q=[],e.config=i||{},e.config.projectId=o,e.config.apiKey=r,e.config.environment=e.config.environment||”production”;for(var t=[“addon”https://news.google.com/__i/rss/rd/articles/,”identify”https://news.google.com/__i/rss/rd/articles/,”track”https://news.google.com/__i/rss/rd/articles/,”trigger”https://news.google.com/__i/rss/rd/articles/,”query”https://news.google.com/__i/rss/rd/articles/,”segment”https://news.google.com/__i/rss/rd/articles/,”segments”https://news.google.com/__i/rss/rd/articles/,”ready”https://news.google.com/__i/rss/rd/articles/,”on”https://news.google.com/__i/rss/rd/articles/,”once”https://news.google.com/__i/rss/rd/articles/,”user”https://news.google.com/__i/rss/rd/articles/,”consent”],c=0;c0){return date.replace(” ” null;}function appendPermutiveAddon(pageDataLayer){var appendAddon=(window.IDG_CONFIGURATION.permutive.enabled&&typeof pageDataLayer!==”undefined”&&pageDataLayer!==null);if(window.IDG_CONFIGURATION.permutive.debug){console.log(“DEBUG Permutive appendAddon”,appendAddon);}if(appendAddon){var page={type:pageDataLayer.displayType,language:dataLayer[0].propertyCountry,tags:[],keywords:pageDataLayer.metaKeywords,audience:pageDataLayer.audience,description:pageDataLayer.metaDescription,gTax:{primaryIds:[],secondaryIds:[],},ads:{enabled:window.IDG_CONFIGURATION.ads.enabled}};if(typeof pageDataLayer.primaryChannel!==”undefined”&&pageDataLayer.primaryChannel.length>0){page.tags.push(pageDataLayer.primaryChannel);if(typeof window.IDG_CONFIGURATION.permutive.mapping[pageDataLayer.primaryChannel]!==”undefined”){page.gTax.primaryIds.push(window.IDG_CONFIGURATION.permutive.mapping[pageDataLayer.primaryChannel]);}}if(typeof pageDataLayer.secondaryChannels!==”undefined”&&pageDataLayer.secondaryChannels.length>0){for(var i in pageDataLayer.secondaryChannels){var current=pageDataLayer.secondaryChannels[i];page.tags.push(current);if(typeof window.IDG_CONFIGURATION.permutive.mapping[current]!==”undefined”){page.gTax.secondaryIds.push(window.IDG_CONFIGURATION.permutive.mapping[current]);}}}if(pageDataLayer.contentType===”home page”){page.type=pageDataLayer.contentType;}else{if(pageDataLayer.displayType===”article”){var article={type:pageDataLayer.contentType,title:pageDataLayer.headline,description:pageDataLayer.description,source:pageDataLayer.source,id:pageDataLayer.articleId,modifiedAt:formatPermutiveDate(pageDataLayer.dateUpdated),publishedAt:formatPermutiveDate(pageDataLayer.datePublished),authors:pageDataLayer.authors,isInsiderContent:(pageDataLayer.locked===”true”)?true:false};page.article=article;}}permutive.addon(“web”,{page:page});if(window.IDG_CONFIGURATION.permutive.debug){console.log(“DEBUG Permutive page”,page);}}}function insertHeadFullScript(){if(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&window.IDG_CONFIGURATION.auth.state===”ready”&&window.IDG_CONFIGURATION.async_sources.enabled&&typeof window.IDG_CONFIGURATION.async_sources.full.head!==”undefined”){if(window.IDG_CONFIGURATION.async_sources.full.head.source!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.full.head.source);}if(window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.full.head.auth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.full.head.auth);}if(!window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.full.head.unauth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.full.head.unauth);}}}function insertHeadLightScript(){if(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&window.IDG_CONFIGURATION.auth.state===”ready”&&window.IDG_CONFIGURATION.async_sources.enabled&&typeof window.IDG_CONFIGURATION.async_sources.light.head!==”undefined”){if(window.IDG_CONFIGURATION.async_sources.light.head.source!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.light.head.source);}if(window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.light.head.auth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.light.head.auth);}if(!window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.light.head.unauth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.light.head.unauth);}}}function insertFooterFullScript(){if(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&window.IDG_CONFIGURATION.auth.state===”ready”&&window.IDG_CONFIGURATION.async_sources.enabled&&typeof window.IDG_CONFIGURATION.async_sources.full.footer!==”undefined”){if(window.IDG_CONFIGURATION.async_sources.full.footer.source!=””){appendAsyncJSTagToBody(window.IDG_CONFIGURATION.async_sources.full.footer.source);}if(window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.full.footer.auth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.full.footer.auth);}if(!window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.full.footer.unauth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.full.footer.unauth);}}else{window.IDG_CONFIGURATION.async_sources.full.footer.waiting=true;}}function insertFooterLightScript(){if(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&window.IDG_CONFIGURATION.auth.state===”ready”&&window.IDG_CONFIGURATION.async_sources.enabled&&typeof window.IDG_CONFIGURATION.async_sources.light.footer!==”undefined”){if(window.IDG_CONFIGURATION.async_sources.light.footer.source!=””){appendAsyncJSTagToBody(window.IDG_CONFIGURATION.async_sources.light.footer.source);}if(window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.light.footer.auth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.light.footer.auth);}if(!window.dataLayer[0].subscriber&&window.IDG_CONFIGURATION.async_sources.light.footer.unauth!=””){appendAsyncJSTag(window.IDG_CONFIGURATION.async_sources.light.footer.unauth);}}else{window.IDG_CONFIGURATION.async_sources.light.footer.waiting=true;}}function insertSponsoredPixel(articleElement){if(typeof articleElement!==”undefined”&&articleElement!=null){if(hasClass(articleElement,”sparticle”)&&!hasClass(articleElement,”sptarticle”)){updateSponsorTracking(articleElement,articleElement.getAttribute(“data-article-sp-dcui”),articleElement.getAttribute(“data-article-sp-dcseg”),articleElement.getAttribute(“data-article-sp-iframe-name”),articleElement.getAttribute(“data-article-sp-iframe-src”));}}}function loadTTDFrames(element){var ttdFrames=element.querySelectorAll(“.ttd-frame”);var ttdFramesSize=ttdFrames.length;for(var i=0;i0&&typeof configuration_status.vibrant[name]!==”undefined”){var id=configuration_status.vibrant[name];(function(d,s,host,ipid){var e=d.createElement(s);e.type=”application/javascript”;e.async=!0;e.src=”https://”+host+”/intellitxt/front.asp?ipid=”+ipid;d.getElementsByTagName(s)[0].parentNode.appendChild(e);})(document,”script”https://news.google.com/__i/rss/rd/articles/,”k.intellitxt.com”,id);}}}var pbjs=pbjs||{};pbjs.que=pbjs.que||[];var googletag=googletag||{};googletag.cmd=googletag.cmd||[];if(configuration_status.ab_test.enable){var group=localStorage.getItem(configuration_status.ab_test.name);if(configuration_status.ab_test.activate.indexOf(group)>-1&&typeof configuration_status.ab_test.modal.matching_config[group]!==”undefined”){var currentConfig=configuration_status.ab_test.modal.matching_config[group];window.IDG_CONFIGURATION.consent_disable_modal=currentConfig.consent_disable_modal;}else{window.IDG_CONFIGURATION.consent_disable_modal=configuration_status.ab_test.modal.none_matching_value.consent_disable_modal;}}else{window.IDG_CONFIGURATION.consent_disable_modal=configuration_status.ab_test.modal.default_value.consent_disable_modal;}if(window.IDG_CONFIGURATION.consent_disable_modal){document.addEventListener(window.IDG_CONFIGURATION.event.limbo.name,function(e){window.IDG_CONFIGURATION.event.limbo.dispatched=true;initiateConsentDependenciesHead();});}window.IDG_CONFIGURATION.consent_response_box={enable:true};if(window.location.hostname===”idgsverige.se”){window.IDG_CONFIGURATION.consent_domain=”idgsverige.se”;}window.IDG_CONFIGURATION.consent_state_ready=”init”;setTimeout(function(){window.IDG_CONFIGURATION.consent_state_ready=false;if(!window.IDG_CONFIGURATION.consent_state_ready){var waitingHtmlTargets=document.querySelectorAll(“.”+configuration_status.lazy.html.waiting);for(var i in waitingHtmlTargets){var target=waitingHtmlTargets[i];if(typeof target===”object”){loadHtmlWaiting(target);}}}},configuration_status.consent_timeout);document.addEventListener(window.IDG_CONFIGURATION.event.stored.name,function(e){window.IDG_CONFIGURATION.event.stored.dispatched=true;window.IDG_CONFIGURATION.event.stored.value=localStorage.getItem(window.IDG_CONSENT.storage.name);initiateConsentDependenciesHead();});document.addEventListener(window.IDG_CONFIGURATION.event.action.name,function(e){window.IDG_CONFIGURATION.event.action.dispatched=true;initiateConsentDependencies();});document.addEventListener(window.IDG_CONFIGURATION.event.response.name,function(e){window.IDG_CONFIGURATION.event.response.dispatched=true;});document.addEventListener(“lazybeforeunveil”,function(e){var lazyTarget=e.target;var classNames=lazyTarget.getAttribute(“class”);if(typeof classNames!==”undefined”&&classNames!==null){if(hasClass(lazyTarget,”lazy-ad-container”)||hasClass(lazyTarget,”ads-container”)){if(typeof window.IDG_CONFIGURATION!==”undefined”&&window.IDG_CONFIGURATION.ads.status===configuration_status.done){loadNewPageAds(lazyTarget,lazyTarget.getAttribute(“data-page”),lazyTarget.getAttribute(“data-selector”));}else{addClass(lazyTarget,configuration_status.lazy.ad.waiting);}}else{if(hasClass(lazyTarget,”lazy-html-container”)){if(window.IDG_CONFIGURATION.event.stored.dispatched||(window.IDG_CONFIGURATION.consent_disable_modal&&window.IDG_CONFIGURATION.event.limbo.dispatched)||window.IDG_CONFIGURATION.event.action.dispatched){loadHtmlContent(lazyTarget);}else{loadHtmlWaiting(lazyTarget);}}else{if(hasClass(lazyTarget,”lazy-htb”)){loadHTBContent(lazyTarget);}}}}if(configuration_status.custom_lazy_event.active){setTimeout(function(){document.dispatchEvent(new CustomEvent(configuration_status.custom_lazy_event.name,{detail:{target:lazyTarget}}));},100);}});if(typeof window.NSPT!==”undefined”){var nsptId=getUrlParameter(“prx_t”);if(nsptId.length1){nsptId=parts[1].replace(//|s/g,””);}}if(nsptId.length-1)){if(articleIndex==1){window.firstarticlebodyloaded=true;}configuration_status.articleBodyReady.push(articleBodyReadyIdentifier);document.dispatchEvent(new CustomEvent(“articlebodyloaded”,{detail:{articleIdNo:articleIndex,articleClass:articlePageClass,articleId:articleId,articleSponsored:isSponsored}}));if(typeof window.IDG_CONFIGURATION.auth&&typeof window.IDG_CONFIGURATION.auth.user!==”undefined”&&typeof window.IDG_CONFIGURATION.auth.user.saved_articles!==”undefined”&&window.IDG_CONFIGURATION.auth.user.saved_articles.length>0){for(var i in window.IDG_CONFIGURATION.auth.user.saved_articles){var articleElement=document.querySelector(“.page-“+articleIndex);if(articleElement!==null){if(window.IDG_CONFIGURATION.auth.user.saved_articles[i].article_id===articleElement.getAttribute(“data-article-id”)){if(!hasClass(articleElement,”article–bookmarked”)){addClass(articleElement,”article–bookmarked”);}}}}}}}function unauthFeatureLayer(config){var currentLayer=window.dataLayer[0];var parentElement=null;if(typeof config.id!==”undefined”){parentElement=document.querySelector(‘div[data-article-id=”‘+config.id+'”]’);for(var i in window.dataLayer){if(typeof window.dataLayer[i]!==”function”&&typeof window.dataLayer[i].articleId!==”undefined”&&window.dataLayer[i].articleId===config.id){currentLayer=window.dataLayer[i];break;}}}if(parentElement===null){parentElement=document;}var clickSettings={category:”Paywall Layer”,label:”From: “+(typeof currentLayer.headline!==”undefined”&&currentLayer.headline.length>0?currentLayer.headline:currentLayer.property)+” → “+config.layer_class+” → “+currentLayer.property+” → “+currentLayer.contentId,action:”To: “};var layer=parentElement.querySelector(“.”+config.layer_class);if(layer===null){var userExists=(typeof window.IDG_CONFIGURATION.auth!==”undefined”&&typeof window.IDG_CONFIGURATION.auth.user!==”undefined”);var returnurl=””;if(typeof config.url!==”undefined”&&config.url!==null){try{returnurl+=”?return=”;var currenturl=config.url;if(currenturl.indexOf(” packageName=””;var upgradeUrl=window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_o;if(window.dataLayer[0].audience===”consumer”){upgradeUrl+=window.IDG_CONFIGURATION.account.path_o_consumer;packageName=window.IDG_CONFIGURATION.account.package_name_consumer+”-“;}else{if(window.dataLayer[0].audience===”enterprise”){upgradeUrl+=window.IDG_CONFIGURATION.account.path_o_enterprise;packageName=window.IDG_CONFIGURATION.account.package_name_enterprise+”-“;}}var upgradeTrUrl=upgradeUrl;upgradeUrl+=returnurl;var wrapper=document.createElement(“div”);wrapper.setAttribute(“class” “+config.layer_class+” visible”);var headline=document.createElement(“h5”);headline.setAttribute(“class”__head”);if(window.dataLayer[0].view===”in-app-ios”){headline.innerHTML=(userExists?config.view_headline.existing_user:config.view_headline.new_user).replace(/{packageName}/g,packageName);}else{headline.innerHTML=(userExists?config.headline.existing_user:config.headline.new_user).replace(/{packageName}/g,packageName);}wrapper.appendChild(headline);var info=document.createElement(“div”);info.setAttribute(“class”__lead”);if(window.dataLayer[0].view===”in-app-ios”){info.innerHTML=(userExists?config.view_lead.existing_user:config.view_lead.new_user).replace(/{packageName}/g,packageName);}else{info.innerHTML=(userExists?config.lead.existing_user:config.lead.new_user).replace(/{packageName}/g,packageName);}wrapper.appendChild(info);if(!userExists){var loginLink=document.createElement(“a”);loginLink.setAttribute(“href”,window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_si+returnurl);loginLink.setAttribute(“title” in”);loginLink.innerHTML=’‘;loginLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+window.IDG_CONFIGURATION.account.page+window.IDG_CONFIGURATION.account.path_si,clickSettings.label);}});wrapper.appendChild(loginLink);}if(window.dataLayer[0].view!==”in-app-ios”&&window.dataLayer[0].audience!==”consumer”){var upgradeLink=document.createElement(“a”);upgradeLink.setAttribute(“href”,upgradeUrl);upgradeLink.setAttribute(“title” “+packageName+”medlem”);upgradeLink.innerHTML=’“;upgradeLink.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+upgradeTrUrl,clickSettings.label);}});wrapper.appendChild(upgradeLink);}var closeWrapper=document.createElement(“div”);closeWrapper.setAttribute(“class”__close”);closeWrapper.innerHTML=’‘;closeWrapper.addEventListener(“click”,function(e){var parent=findParentByClass(e.target,config.layer_class);if(parent!==null){removeClass(parent,”visible”);hide(parentElement.querySelector(“div.wwu__overlay”));if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+config.layer_class+” toggle collapse”,clickSettings.label);}}});wrapper.appendChild(closeWrapper);var overlay=document.createElement(“div”);overlay.setAttribute(“class”__overlay”);parentElement.appendChild(overlay);parentElement.appendChild(wrapper);}else{if(!hasClass(layer,”visible”)){show(parentElement.querySelector(“div.wwu__overlay”));addClass(layer,”visible”);}}if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+config.layer_class+” toggle expand”,clickSettings.label);}}function unhandledLockedError(lockedId,lockedPageNumber,lockedUrl,errorMessage,trace,lockedXhr,identifier){var errorBox=prepareLockedErrorInfo(lockedId,lockedUrl,null,errorMessage,trace,lockedXhr,identifier);renderLockedErrorInfo(lockedPageNumber,errorBox);}function renderLockedErrorInfo(pageNumber,errorBox){try{if(typeof pageNumber!==”undefined”&&typeof errorBox!==”undefined”&&errorBox!==null){var articleElement=document.getElementsByClassName(“page-“+pageNumber)[0];if(typeof articleElement!==”undefined”){var lockedColumn=articleElement.getElementsByClassName(“divColumn1Article”);if(typeof lockedColumn!==”undefined”&&lockedColumn.length>0){lockedColumn[0].replaceWith(errorBox);}else{window.lockedArticleBody=errorBox;}}else{window.lockedArticleBody=errorBox;}}}catch(error){window.IDG_CONFIGURATION.auth.error.push({message:”Error renderLockedErrorInfo “+error.message});}}function accountError(id,accountUrl,lockedHtml,errorMessage,trace,xhrResponse,identifier){var error={account_url:accountUrl,message:”Failed to load account response”,};if(typeof id!==”undefined”){error.article=id;}if(typeof errorMessage!==”undefined”&&errorMessage!==null){error.message+=” error: “;error.message+=errorMessage;}if(typeof trace!==”undefined”&&trace!==null){var tracktrace=null;try{tracktrace=trace.replace(/n/g,” “).replace(/s+/g,” “);}catch(err){}if(tracktrace!==null){error.message+=” trace: “;error.message+=tracktrace;}}else{if(typeof identifier!==”undefined”&&identifier!==null){error.message+=” identifier: “;error.message+=identifier;}}if(typeof lockedHtml!==”undefined”&&lockedHtml!==null){try{var errorMessage=lockedHtml.getAttribute(“data-error-message”);if(typeof errorMessage!==”undefined”&&errorMessage!==null){error.message+=” html error: “;error.message+=errorMessage;}else{var text=lockedResponse.innerText;if(typeof text!==”undefined”&&text!==null){error.message+=” html error: “;error.message+=text;}}}catch(e){}}if(typeof xhrResponse!==”undefined”&&xhrResponse!==null){try{if(typeof xhrResponse.status!==”undefined”){error.code=xhrResponse.status;}if(typeof xhrResponse.statusText!==”undefined”){error.status=xhrResponse.statusText;}if(typeof xhrResponse.responseText!==”undefined”&&xhrResponse.responseText.startsWith(“{“)){var response=JSON.parse(xhrResponse.responseText);if(typeof response.message!==”undefined”&&error.message.indexOf(response.message)-1){error.location=error.location.substr(0,error.location.indexOf(“?”));}}catch(e){}window.IDG_CONFIGURATION.auth.error.push(error);try{if(typeof error.article!==”undefined”&&error.article!==null&&error.article.length>0){var errorUrl=window.IDG_CONFIGURATION.account.source;errorUrl+=”/error/log”;errorUrl+=”?”;if(typeof error.status!==”undefined”){errorUrl+=”status=”;errorUrl+=encodeURIComponent(error.status);}if(typeof error.code!==”undefined”){errorUrl+=”&code=”;errorUrl+=encodeURIComponent(error.code);}if(typeof error.message!==”undefined”){errorUrl+=”&message=”;errorUrl+=encodeURIComponent(error.message);}if(typeof error.location!==”undefined”){errorUrl+=”&location=”;errorUrl+=encodeURIComponent(error.location);}var errorXhr=new XMLHttpRequest();errorXhr.open(“GET”,errorUrl);errorXhr.withCredentials=true;errorXhr.crossDomain=true;errorXhr.send(null);}}catch(err){}}function prepareLockedErrorInfo(lockedId,lockedUrl,lockedResponse,lockedErrorMessage,traceError,xhrlockedResponse,identifier){try{accountError(lockedId,lockedUrl,lockedResponse,lockedErrorMessage,traceError,xhrlockedResponse,identifier);var columnInformation=document.createElement(“div”);columnInformation.setAttribute(“class” columnBodyText=document.createElement(“div”);columnBodyText.setAttribute(“class” emptyBodyText”);var errorInformation=document.createElement(“div”);errorInformation.setAttribute(“class” article-premium__teaser–box-error article-premium__teaser–box-alone”);var errorHeader=document.createElement(“div”);errorHeader.setAttribute(“class””);var errorHead=document.createElement(“h5”);errorHead.setAttribute(“class”__head”);errorHead.innerHTML=”Tillfälligt fel”;var errorText=document.createElement(“div”);errorText.setAttribute(“class”__lead”);errorText.innerHTML=”Artikeln kunde tyvärr inte hämtas. Vänligen försök igen om en stund.”;errorHeader.appendChild(errorHead);errorHeader.appendChild(errorText);errorInformation.appendChild(errorHeader);columnBodyText.appendChild(errorInformation);columnInformation.appendChild(columnBodyText);return columnInformation;}catch(err){window.IDG_CONFIGURATION.auth.error.push({message:”Error prepareLockedErrorInfo “+err.message});return null;}}function prepareLockedInfo(lockedId,lockedPageNumber,lockedPageSelector,lockedResponse){var response=lockedResponse;var currentLayer=window.dataLayer[0];for(var i in window.dataLayer){if(typeof window.dataLayer[i]!==”function”&&typeof window.dataLayer[i].articleId!==”undefined”&&window.dataLayer[i].articleId===lockedId){currentLayer=window.dataLayer[i];break;}}var clickSettings={category:”Article Paywall”,action:”To: “,label:”From: “+(currentLayer.headline.length>0?currentLayer.headline:currentLayer.property)+” → “+currentLayer.property+” → “+currentLayer.contentId};var returnurl=null;var currentDomain=null;var property=dataLayer[0].property;try{if(typeof currentLayer.property!==”undefined”&&currentLayer.property!==null&&currentLayer.property.length>0){property=currentLayer.property;}currentDomain=” article=null;try{article=document.querySelector(“.page-“+lockedPageNumber);if(article!==null&&currentDomain!==null){var part=article.getAttribute(“data-article-ga-url”);if(typeof part!==”undefined”&&part!==null){returnurl=currentDomain+part.trim();}}}catch(err){}if(returnurl===null&&currentDomain!==null){returnurl=currentDomain+”/”+currentLayer.layoutId+”/”+currentLayer.articleId;}if(returnurl===null){try{if(lockedPageNumber===1){var canonical=document.querySelector(“link[rel=”canonical”]”);if(typeof canonical!==”undefined”&&canonical!==null){returnurl=canonical.getAttribute(“href”);if(!(typeof returnurl!==”undefined”&&returnurl!==null&&returnurl.length>0&&returnurl.indexOf(property)>-1)){returnurl=null;}}}if(article!==null&&returnurl===null){returnurl=article.getAttribute(“data-article-canonical”);}if(typeof returnurl!==”undefined”&&returnurl!==null){returnurl=returnurl.trim();}else{returnurl=null;}}catch(err){}}if(typeof returnurl!==”undefined”&&returnurl!==null){try{if(returnurl.indexOf(” userExists=(typeof window.IDG_CONFIGURATION.auth.user!==”undefined”);if(currentLayer.audience===”enterprise”){try{var visitingHour=””;var trafficSource=””;var paywallViews=””;var hourFrom=19;var hourTo=4;var hourNow=new Date().getHours();if(hourNow>=hourFrom&&hourTo=0;})){trafficSource=”refMatch”;}else{if(localStorage.getItem(“permutive-data”)!==null){var f=JSON.parse(localStorage.getItem(“permutive-data”)).query_states;var allSegments=f;var pwSegment=”26579″;if(allSegments.hasOwnProperty(pwSegment)){if(allSegments[pwSegment][“result”][“result”]){paywallViews=”paywallHit”;}}}}}if((trafficSource==”refMatch”)||(paywallViews==”paywallHit”)||(visitingHour==”visitingOoo”)){var rootElement=document.documentElement;rootElement.classList.add(“wwu–has-v1″);}}catch(err){}}if(window.dataLayer[0].view===”in-app-ios”){try{var headline=response.querySelector(“.wwu__head”);if(headline!==null){if(userExists){headline.innerHTML=”Du är inloggad som “+window.IDG_CONFIGURATION.account.package_name+”-medlem”;}else{headline.innerHTML=”Logga in”;}}var lead=response.querySelector(“.wwu__lead”);if(lead!==null){var iosPackageName=(currentLayer.audience===”consumer”?window.IDG_CONFIGURATION.account.package_name_consumer:window.IDG_CONFIGURATION.account.package_name_enterprise);if(userExists){lead.innerHTML=”Som “+iosPackageName+’-medlem läser du artiklar obegränsat. Tyvärr kan du inte ändra ditt medlemskap i appen.
Läs om hur du ändrar ditt medlemskap på support.idg.se‘;}else{lead.innerHTML=”Som “+iosPackageName+”-medlem läser du artiklar obegränsat.”;}}var primaryButton=response.querySelector(“button[data-auth]”);if(primaryButton!==null){primaryButton.parentNode.removeChild(primaryButton);}if(!userExists){var secondaryButton=response.querySelector(“.wwu__btn–secondary”);if(secondaryButton!==null){removeClass(secondaryButton,”wwu__btn–secondary”);addClass(secondaryButton,”wwu__btn–primary”);}}}catch(err){}}var responseButtons=response.querySelectorAll(“.wwu__btn”);for(var i in responseButtons){try{var current=responseButtons[i];if(typeof current===”object”){var clickElement=current;var listener=current.getAttribute(“data-listener”);if(!(listener!==null&&typeof listener!==”undefined”)){var parentLink=current.parentElement;if(parentLink!==null&&parentLink.tagName===”A”){clickElement=parentLink;try{var href=clickElement.getAttribute(“href”);if(href!==null&&href.indexOf(“return=http”)>-1&&href.indexOf(“return=https”)-1)&&returnurl!==null&&returnurl.length>0){href+=(href.indexOf(“?”)>=0?”&”:”?”);href+=”return=”;href+=returnurl;}linkElement.setAttribute(“href”,href);linkElement.addEventListener(“click”,function(e){if(typeof IDGTrackEvent!==”undefined”){IDGTrackEvent(clickSettings.category,clickSettings.action+e.target.innerText,clickSettings.label);}});}}catch(err){}}return response;}function loadLockedArticleHtml(lockedId,lockedPageNumber,lockedPageSelector){var pageNum=1;try{var regexp=/(/sida/)([0-9]{1,3})/g;var match=regexp.exec(window.location.href);if(match!=null){var num=parseInt(match[2],10);if(num>=1){pageNum=num;}}}catch(err){}var articleUrl=window.IDG_CONFIGURATION.account.source;articleUrl+=window.IDG_CONFIGURATION.account.path_ar;articleUrl+=”/”;articleUrl+=lockedId;articleUrl+=”/”;articleUrl+=pageNum;var lockedXhr=new XMLHttpRequest();lockedXhr.open(“GET”,articleUrl);lockedXhr.withCredentials=true;lockedXhr.crossDomain=true;lockedXhr.onload=function(){var hasError=false;try{var data=lockedXhr.responseText;var code=data.replace(/document.write/gi,”console.error”);var wrapper=document.createElement(“div”);wrapper.innerHTML=code;var response=wrapper.firstElementChild.cloneNode(true);if(typeof response!==”undefined”&&response!==null){var access=hasClass(response,window.IDG_CONFIGURATION.premium.access);hasError=hasClass(response,”error”);var dataUser=response.getAttribute(“data-user”);if(typeof dataUser!==”undefined”&&dataUser!==null&&dataUser.length>0){var user=JSON.parse(dataUser.replace(/’/g,'”‘));window.IDG_CONFIGURATION.auth.user=user;if(typeof user.packages!==”undefined”){window.IDG_CONFIGURATION.auth.packages=user.packages;}}if(!access){response=prepareLockedInfo(lockedId,lockedPageNumber,lockedPageSelector,response);}if(hasError){response=prepareLockedErrorInfo(lockedId,articleUrl,response,null,null,lockedXhr,”lockedXhr onload hasError”);}if(typeof response!==”undefined”&&response!==null){var articleElement=document.getElementsByClassName(“page-“+lockedPageNumber)[0];if(typeof articleElement!==”undefined”){var lockedColumn=articleElement.getElementsByClassName(“divColumn1Article”);if(typeof lockedColumn!==”undefined”&&lockedColumn.length>0){lockedColumn[0].replaceWith(response);if(response.getAttribute(“data-unlocked-first-page”)===”true”){addClass(articleElement,”article-premium–intro”);}if(access){addClass(articleElement,window.IDG_CONFIGURATION.premium.unlocked);removeClass(articleElement,window.IDG_CONFIGURATION.premium.locked);addImageTracker(” required response to render”,null,lockedXhr,”lockedXhr onload handling response”);}}else{unhandledLockedError(lockedId,lockedPageNumber,articleUrl,”Missing required response to render”,null,lockedXhr,”lockedXhr onload response”);}}catch(error){if(hasError){unhandledLockedError(lockedId,lockedPageNumber,articleUrl,error.message,(error.stack||error.stacktrace),lockedXhr,”lockedXhr onload catch hasError”);}else{accountError(lockedId,articleUrl,null,error.message,(error.stack||error.stacktrace),lockedXhr,”lockedXhr onload catch”);}}finally{authReady(lockedPageNumber);}};lockedXhr.onerror=function(e){unhandledLockedError(lockedId,lockedPageNumber,articleUrl,e.message,(e.stack||e.stacktrace),lockedXhr,”lockedXhr onerror”);authReady(lockedPageNumber);};lockedXhr.send(null);}if(window.dataLayer[0].locked===”true”&&window.dataLayer[0].unlockedByTime!==”true”&&(window.dataLayer[0].pageNumber!==”1″||(window.dataLayer[0].pageNumber===”1″&&window.dataLayer[0].lockedFirstPage===”true”))){loadLockedArticleHtml(window.dataLayer[0].articleId,1,”page-1″);}else{if(window.IDG_CONFIGURATION.account.enabled){var authXhr=new XMLHttpRequest();authXhr.open(“GET”,window.IDG_CONFIGURATION.account.source+window.IDG_CONFIGURATION.account.path_au);authXhr.withCredentials=true;authXhr.crossDomain=true;authXhr.onload=function(){try{var response=JSON.parse(authXhr.responseText);if(typeof response.error!==”undefined”){accountError(null,window.IDG_CONFIGURATION.account.source+window.IDG_CONFIGURATION.account.path_au,null,response.message,null,authXhr,”authXhr onload response.error”);}else{if(response.success&&typeof response.user!==”undefined”){window.IDG_CONFIGURATION.auth.user=response.user;if(typeof response.user.packages!==”undefined”){window.IDG_CONFIGURATION.auth.packages=response.user.packages;}}}}catch(error){accountError(null,window.IDG_CONFIGURATION.account.source+window.IDG_CONFIGURATION.account.path_au,null,error.message,(error.stack||error.stacktrace),authXhr,”authXhr onload catch”);}finally{authReady(1);}};authXhr.onerror=function(e){accountError(null,window.IDG_CONFIGURATION.account.source+window.IDG_CONFIGURATION.account.path_au,null,e.message,(e.stack||e.stacktrace),authXhr,”authXhr onerror”);authReady(1);};authXhr.send(null);}else{window.IDG_CONFIGURATION.auth.state=”ready”;window.IDG_CONFIGURATION.waiting_auth=false;gaPageView(1);ioPageView(dataLayer[0]);}}if(window.location.href.indexOf(“tooltip=welcome”)>-1){document.documentElement.classList.add(“idg-konto-tip–active”);setTimeout(function(){removeClass(document.documentElement,”idg-konto-tip–active”);},4000);}

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular

Get The Latest Updates

Subscribe To Our Weekly Newsletter

No spam, notifications only about new products, updates.

Categories

On Key

Related Posts

डीसी स्टूडियोज के लिए ‘स्वैम्प थिंग’ मूवी को चलाने के लिए जेम्स मैंगोल्ड से बातचीत चल रही है

अच्छा, वह जल्दी था: हॉलीवुड रिपोर्टर ने पुष्टि की है कि जेम्स मैंगोल्ड पर लेने के लिए बातचीत कर रहा है दलदल की चीज डीसी

अध्ययन भारत के ‘गहन’ पशु चिकित्सा रोगाणुरोधी उपयोग पर प्रकाश डालता है

जिस ‘तीव्रता’ के साथ भारत खाद्य-उत्पादक जानवरों में रोगाणुरोधी दवाओं का प्रशासन करता है, वह विश्व औसत से बहुत अधिक है और इस दशक के

रॉय कीन का कहना है कि एनर्जी-सेपिंग खिलाड़ियों को मैन यूडीटी छोड़ने के बाद फील-गुड फैक्टर वापस आ गया है

रॉय कीन ने काराबाओ कप फाइनल में पहुंचने के बाद मैनचेस्टर यूनाइटेड में ‘फील-गुड फैक्टर’ को वापस लाने के लिए एरिक टेन हैग की सराहना

‘संघर्ष’: बारिलारो के कार्यालय की रिपोर्ट

एक निंदनीय रिपोर्ट में प्रमुख सत्यनिष्ठा के मुद्दों को पाया गया है कि कैसे पूर्व एनएसडब्ल्यू डिप्टी प्रीमियर जॉन बारिलारो के कार्यालय ने एक बहुत