(function() { var preEngineFunc={ preEngineJS: function (loaderParams) {"use strict";var pageHasDemandAPIelements=document.querySelector(".fixedAd"),isHomePageOrSection=document.querySelector("main.flexible");pageHasDemandAPIelements&&(isHomePageOrSection&&(loaderParams.su.dy.start=3.5),loaderParams.su.fm=null,loaderParams.su.r=null);var v4=loaderParams&&loaderParams.i&&4===loaderParams.i.v,pageBody=getElementAttributeValueBySelector("body","class"),bodyNoAds=!1;pageBody&&pageBody.includes("noad")&&(v4?loaderParams.su.dy.mi=0:loaderParams.e.sc.ms=0,bodyNoAds=!0);var isPinsPage=!("/pins/"!==window.location.pathname);function addPageCSS(e){var t=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style"),i=document.createTextNode(e);r.type="text/css",r.styleSheet?r.styleSheet.cssText=i.nodeValue:r.appendChild(i),t.appendChild(r)}function getFilteredCompatibleSizesfromBrowsiSpot(e,t){if(e){var r=JSON.parse(e);return t.filter(function(t){return r.find(function(e){return e.w===t.w&&e.h===t.h})})}return t}function getElementAttributeValue(e,t){var r=e.getAttribute(t);return r?r.toLowerCase():null}function getElementAttributeValueBySelector(e,t){var r=document.querySelector(e);return r?getElementAttributeValue(r,t):null}function getFilteredCompatibleSizes(e,t){var r=(e=e||[]).map(function(e){return e&&2===e.length?{w:e[0],h:e[1]}:""}),i=[],i=r.length?t.filter(function(t){return r.find(function(e){return e.w===t.w&&e.h===t.h})}):t;return r.find(function(e){return 300===e.w&&600===e.h})&&i.push({adSizeType:"narrow",h:600,minSizeForWrapping:1,optionalEmbeddings:["break"],selectedEmbedding:"break",w:300}),i}function sortByDomLocation(e){return e.sort(function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_PRECEDING?1:-1})}function buildYieldFunction(e,t){return r=t,function(){return e+r++};var r}var positionsStack={RIGHT:buildYieldFunction("RIGHT",11),LEADER_BOARD:buildYieldFunction("LEADER_BOARD",1),PROMO:buildYieldFunction("PROMO",1),PREMIUM_BANNER:buildYieldFunction("PREMIUM_BANNER",1),PREMIUM_DISPLAY:buildYieldFunction("PREMIUM_DISPLAY",1),AUTO_INCREASE:buildYieldFunction("AUTO_INCREASE",1)};function replaceAscendingKeys(e){e=sortByDomLocation(e);for(var t=0;t div[class*="scGrid"]'));1 aside > div.sticky",pos:"RIGHT"})),addFixedSpots(t)}function getPageTargetings(){var e=[],t=(t=getElementAttributeValueBySelector('meta[property="article:tag"]',"content"))&&t.replace(/[^\w\s\,]/gi,"").split(","),r=getElementAttributeValueBySelector('meta[name="coid"]',"value"),i=getElementAttributeValueBySelector('meta[name="type"]',"value");return t&&e.push({k:"tags",v:t}),r&&e.push({k:"coid",v:r}),i&&e.push({k:"type",v:i}),e.push({k:"view",v:window.matchMedia("(max-width: 1200)").matches?"desktop":["desktop","wide"]}),e}function isPassingViewabilityThreshold(e,t){var r=e&&e[50]&&e[50].p&&+e[50].p;return!r||t<=r}loaderParams.externalFlowHandler={engineInitiator:function(e,t){function r(){clearTimeout(a),findFixedSpots(),t()}function i(){var e,t;"complete"===document.readyState&&(document.removeEventListener("readystatechange",i),isPinsPage?(e=setInterval(function(){window.top.document.querySelector("div.pin-category > div.preview > div.pin-wrap")&&(clearInterval(e),clearTimeout(t),r())},100),t=setTimeout(function(){clearInterval(e),r()},1e4)):r())}document.addEventListener("readystatechange",i),i();var a=setTimeout(function(){document.removeEventListener("readystatechange",i),findFixedSpots(),t()},2e4)},preDemand:function(e){e.filter(function(e){return-1<["dynamic","dynamic_mc"].indexOf(e.type.toLowerCase())}).forEach(function(e){return e.ref.setAttribute("data-generated-key","AUTO_INCREASE")}),replaceAscendingKeys(e.map(function(e){return e.ref}))},preFetchAsync:function(e,t,r,i,a){var n,o,s,l,d;"dynamic_mc"!==e.type||isPassingViewabilityThreshold(r.od,.3)?("header_bidding"!==t.providerName&&"dfp"!==t.providerName||(r.kv=(r.kv||[]).concat(getPageTargetings()),"api"!==e.type&&r.kv.push({k:"pos",v:e.ref.getAttribute("data-generated-key")}),n="header_bidding"===e.providerName?r.c.d:r.c,(o=getElementAttributeValue(e.ref.parentElement,"class"))&&-1