'use strict'; (function(w, d) { function importScript(src, isDynamicImportModule) { var script = d.createElement('script'); script.src = src; if (isDynamicImportModule) { script.type = 'module'; } var node = d.getElementsByTagName('script')[0]; if (node && node.parentNode) { node.parentNode.insertBefore(script, node); } else { document.body.appendChild(script); } } w.adthrive = w.adthrive || {}; w.adthrive.cmd = w.adthrive.cmd || []; w.adthrive.host = "ads.adthrive.com"; w.adthrive.threshold = 0; w.adthrive.styleUrl = "https://ads.adthrive.com/sites/57698a40eddace5b778a80a8/ads.min.css"; w.adthrive.deployment = "2025-05-28-03:ada-1174:pr6490:34eee67:4"; w.adthrive.branch = "34eee67"; w.adthrive.bucket = "flex-51"; w.adthrive.baseUrl = "https://ads.adthrive.com/builds/core/34eee67"; w.adthrive.deliveryFeatures = ["additiveRaptiveFloors","amazonBetaApstag","consentManagerCMP","raptiveFloors","raptiveManualCookieSync","recencyFrequency","reissuingSticky","stickyBucketsLocalStorage","switzerlandGdpr","trafficShaping","ttdSync"]; w.adthrive.deliveryAudit = [{"include":"clsInsertion","value":true,"reason":["adOptions.clsOptimizatedAds is true"]},{"include":"prebidLoad","value":false,"reason":["adOptions.delayLoading is true"]},{"include":"gptLoad","value":false,"reason":["adOptions.delayLoading is true"]},{"include":"amazonLoad","value":false,"reason":["adOptions.delayLoading is true","adOptions.amazonUAM is true"]},{"include":"dcsllSiteSpecific","value":false,"reason":["Delivery Feature Missing"]},{"include":"prebidBrowserRouting","value":false,"reason":["Delivery Feature Missing"]},{"include":"disableStickyBuckets","value":false,"reason":["Delivery Feature Missing"]},{"include":"ttdSync","value":true,"reason":["Non-GDPR Country Detected"]},{"include":"viewabilityV2","value":false,"reason":["Delivery Feature Missing"]},{"include":"manualCookieSync","value":false,"reason":["Delivery Feature Missing"]},{"include":"campaignByURLHash","value":false,"reason":["Delivery Feature Missing"]},{"include":"switzerlandGdpr","value":true,"reason":["Delivery Feature Enabled"]}]; w.adthrive.deliveryVersion = "1.144.0"; w.adthrive.isIOS = /iP(hone|od|ad)/i.test(navigator.userAgent) ? true : false; w.adthrive.targetPath = '/es5'; w.adthrive.sticky = true; w.adthrive.stickyBucketsEnabled = true; w.adthrive.bucketKeys = ["flex-03&2025-05-28-03:0c2ada4:10:con","hbs-q2&dep-5:pr6200:hbs-q2:be74ee5:2:exp","hbs-q2:con&dep-5:pr6200:hbs-q2:be74ee5:2:con","beta03&ade-1714:pr5417:beta03:a86d679:100:exp","beta02&ada-844:pr5671:beta02:5e86777:100:exp","beta04&ade-2042:pr6166:beta04:5e44a1f:100:exp","beta06&acd-912:pr6361:beta06:8bbac65:100:exp","beta01&ade-2107:pr6417:beta01:939b01e:100:exp","flex-54&2025-05-28-03:acd-1053:pr6475:dba3cae:4","flex-59&2025-05-28-03:acd-1081:pr6484:86263d0:4","flex-60&2025-05-28-03:rpsc-373:pr6487:9c8d878:4","flex-62&2025-05-28-03:adv-637:pr6469:3ecc32b:4","flex-64&2025-05-28-03:acd-1046:pr6495:1c33087:4","flex-39&2025-05-28-03:rpsc-367:pr6486:0e948e2:4","flex-66&2025-05-28-03:acd-911:pr6404:f775c64:4","flex-31&2025-05-28-03:ada-1161:pr6480:25f9728:4","flex-25&2025-05-28-03:acd-1092:pr6499:3a1a644:4","flex-26&2025-05-28-03:pe-129:pr6488:dcf8ecc:4","flex-32&2025-05-28-03:adv-653:pr6493:582d1a1:4","flex-33&2025-05-28-03:rpsc-378:pr6497:3e4feee:4","flex-51&2025-05-28-03:ada-1174:pr6490:34eee67:4","flex-44&2025-05-28-03:ada-1199:pr6505:82dbf2b:4","flex-09&2025-05-28-03:ada-1159:pr6513:05d18f7:4","flex-13&2025-05-28-03:adv-559:pr6435:6770f70:4","flex-17&2025-05-28-03:acd-1090:pr6517:859e912:4","flex-46&2025-05-28-03:ada-414:pr6479:fa5c7f8:4","flex-07&2025-05-28-03:rpsc-393:pr6540:e133d99:1","flex-15&2025-05-28-03:adv-645:pr6512:16597a0:1","flex-16&2025-05-28-03:ada-992:pr6514:d768602:1","flex-22&2025-05-28-03:rpsc-359:pr6538:c031983:1","flex-35&2025-05-28-03:rpsc-353:pr6537:250a096:1","prod&f7f40eb"]; w.adthrive.forceGDPR = false; w.adthrive.secFetchStorageAccess = "active"; w.adthrive.debug = false; w.adthrive.country = "CO"; w.adthrive.region = "ANT"; w.adthrive.deviceType = "desktop"; w.adthrive.browserEngine = "chromium"; if ('cookieDeprecationLabel' in navigator) { navigator.cookieDeprecationLabel.getValue() .then(function(value) { w.adthrive.cookieDeprecationLabel = value; }) .catch(function(error) { w.adthrive.cmd.push(function () { w.adthrive.logError('ads-site-origin-request', 'insertCookieDeprecationLabelCode', ['Unable to set cookie deprecation label.', error]); }); }); } // Sticky Bucket function isValidStickyBucketData(stickyBucket) { return (stickyBucket && stickyBucket.bucket && stickyBucket.branch && stickyBucket.deployment && stickyBucket.ttl && stickyBucket.ttl > Date.now() && w.adthrive.bucketKeys && ((w.adthrive.bucketKeys.indexOf(stickyBucket.bucket + '&' + stickyBucket.deployment) > -1) || (stickyBucket.bucket == 'prod' && w.adthrive.bucketKeys.indexOf('prod&' + stickyBucket.branch) > -1))); } function isMatchingStickyData(stickyBucket) { return stickyBucket && w.adthrive.deployment == stickyBucket.deployment && w.adthrive.bucket == stickyBucket.bucket && w.adthrive.branch == stickyBucket.branch; } function tagNewStickyBucket() { var newStickyBucketData = { branch: w.adthrive.branch, bucket: w.adthrive.bucket, deployment: w.adthrive.deployment, deliveryFeatures: w.adthrive.deliveryFeatures, ttl: Date.now() + (3600 * 1000 * 24), }; if(w.adthrive.deliveryFeatures.indexOf('stickyBucketsLocalStorage') > -1) { w.adthrive = w.adthrive || {}; w.adthrive.cmd = w.adthrive.cmd || []; w.adthrive.cmd.push(function() { w.adthrive.api.browserStorage.setLocalStorage('at_sticky_data', JSON.stringify(newStickyBucketData)) }); } else { w.sessionStorage.setItem('at_sticky_data', JSON.stringify(newStickyBucketData)); } } var stickyBucketJSON = w.sessionStorage.getItem('at_sticky_data'); var stickyBucketJSONLocal = w.localStorage.getItem('at_sticky_data'); if(stickyBucketJSONLocal) { stickyBucketJSON = stickyBucketJSONLocal; } try { var stickyBucket = JSON.parse(stickyBucketJSON); if (isValidStickyBucketData(stickyBucket)) { if (stickyBucket.deliveryFeatures && stickyBucket.deliveryFeatures.indexOf('reissuingSticky') > -1) { // check if deployment data in current response matches sticky deployment at_sticky_data if (!isMatchingStickyData(stickyBucket)) { // we need to reissue ads.min.js with querystring params for sticky deployment info // AND we need to return/quit execution of ads.min.js var newAdsMinSrc = 'https://' + w.adthrive.host + '/sites/57698a40eddace5b778a80a8/ads.min.js?stickyDeployment=' + stickyBucket.deployment + '&stickyBucket=' + stickyBucket.bucket + '&stickyBranch=' + stickyBucket.branch; importScript(newAdsMinSrc); return; } } else { w.adthrive.branch = stickyBucket.branch; w.adthrive.bucket = stickyBucket.bucket; w.adthrive.deployment = stickyBucket.deployment; w.adthrive.baseUrl = 'https://' + w.adthrive.host + '/builds/core/' + stickyBucket.branch; } } else { tagNewStickyBucket(); } } catch (e) { w.adthrive.cmd.push(function () { w.adthrive.log = w.adthrive.log || console.log; w.adthrive.log('log', 'ads-site-origin-request', 'insertStickyBucketCode', ['Error parsing session storage bucket data']); }); tagNewStickyBucket(); } w.adthrive.siteAds = {"betaTester":true,"targeting":[{"value":"57698a40eddace5b778a80a8","key":"siteId"},{"value":"6233884d74ccfd70889b97f0","key":"organizationId"},{"value":"Mexico en mi Cocina","key":"siteName"},{"value":"AdThrive Edge","key":"service"},{"value":"on","key":"bidding"},{"value":["Food"],"key":"verticals"}],"siteUrl":"http://www.mexicoenmicocina.com/","siteId":"57698a40eddace5b778a80a8","siteName":"Mexico en mi Cocina","breakpoints":{"tablet":768,"desktop":1024},"cloudflare":null,"adUnits":[{"sequence":1,"targeting":[{"value":["Sidebar"],"key":"location"}],"devices":["desktop"],"name":"Sidebar_1","sticky":false,"location":"Sidebar","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".sidebar-primary > .widget","skip":2,"classNames":[],"position":"beforebegin","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[160,600],[336,280],[320,50],[300,600],[250,250],[1,1],[320,100],[300,1050],[300,50],[300,420],[300,250]],"priority":299,"autosize":true},{"sequence":9,"targeting":[{"value":["Sidebar"],"key":"location"},{"value":true,"key":"sticky"}],"devices":["desktop"],"name":"Sidebar_9","sticky":true,"location":"Sidebar","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".sidebar-primary","skip":0,"classNames":[],"position":"beforeend","every":1,"enabled":true},"stickyOverlapSelector":".footer-widgets","adSizes":[[160,600],[336,280],[320,50],[300,600],[250,250],[1,1],[320,100],[300,1050],[300,50],[300,420],[300,250]],"priority":291,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.home","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".post","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["tablet","phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.home","spacing":1,"max":7,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".post","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop","phone","tablet"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.page-id-1282","spacing":1,"max":3,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"article","skip":1,"classNames":[],"position":"afterend","every":2,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["desktop"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single, body.page","spacing":1,"max":4,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".entry-content > *","skip":3,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["tablet"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":0.7,"max":8,"lazyMax":1,"enable":true,"lazy":true,"elementSelector":".entry-content > *","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Content"],"key":"location"}],"devices":["phone"],"name":"Content","sticky":false,"location":"Content","dynamic":{"pageSelector":"body.single","spacing":1,"max":6,"lazyMax":2,"enable":true,"lazy":true,"elementSelector":".entry-content > *","skip":4,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[970,90],[250,250],[1,1],[320,100],[970,250],[1,2],[300,50],[300,300],[552,334],[728,250],[300,250]],"priority":199,"autosize":true},{"sequence":null,"targeting":[{"value":["Recipe"],"key":"location"}],"devices":["tablet","desktop"],"name":"Recipe","sticky":false,"location":"Recipe","dynamic":{"pageSelector":"","spacing":0.9,"max":3,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".wprm-recipe-ingredients-container li, .wprm-recipe-instructions-container li, .wprm-recipe-notes span, .wprm-recipe-notes li, .wprm-nutrition-label-container","skip":0,"classNames":[],"position":"beforebegin","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],"priority":-101,"autosize":true},{"sequence":3,"targeting":[{"value":["Recipe"],"key":"location"}],"devices":["phone"],"name":"Recipe_3","sticky":false,"location":"Recipe","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":".wprm-recipe-ingredients-container","skip":0,"classNames":[],"position":"beforebegin","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],"priority":-103,"autosize":true},{"sequence":null,"targeting":[{"value":["Recipe"],"key":"location"}],"devices":["phone"],"name":"Recipe","sticky":false,"location":"Recipe","dynamic":{"pageSelector":"","spacing":0.7,"max":1,"lazyMax":1,"enable":true,"lazy":true,"elementSelector":".wprm-recipe-ingredients-container, .wprm-recipe-instructions-container li, .wprm-recipe-notes span, .wprm-recipe-notes li, .wprm-nutrition-label-container","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[250,250],[1,1],[320,100],[1,2],[300,50],[320,300],[300,390],[300,250]],"priority":-101,"autosize":true},{"sequence":null,"targeting":[{"value":["Below Post"],"key":"location"}],"devices":["phone","tablet","desktop"],"name":"Below_Post","sticky":false,"location":"Below Post","dynamic":{"pageSelector":"body.single","spacing":0,"max":0,"lazyMax":1,"enable":true,"lazy":true,"elementSelector":".entry-comments","skip":0,"classNames":[],"position":"beforebegin","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[336,280],[320,50],[468,60],[250,250],[1,1],[320,100],[300,250],[970,250],[728,250]],"priority":99,"autosize":true},{"sequence":null,"targeting":[{"value":["Footer"],"key":"location"},{"value":true,"key":"sticky"}],"devices":["tablet","phone","desktop"],"name":"Footer","sticky":true,"location":"Footer","dynamic":{"pageSelector":"","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"body","skip":0,"classNames":[],"position":"beforeend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[320,50],[320,100],[728,90],[970,90],[468,60],[1,1],[300,50]],"priority":-1,"autosize":true},{"sequence":null,"targeting":[{"value":["Header"],"key":"location"}],"devices":["desktop","tablet","phone"],"name":"Header","sticky":false,"location":"Header","dynamic":{"pageSelector":"body.wprm-print","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"#wprm-print-header","skip":0,"classNames":[],"position":"afterend","every":1,"enabled":true},"stickyOverlapSelector":"","adSizes":[[728,90],[320,50],[468,60],[970,90],[1,1],[320,100],[970,250],[300,50],[728,250]],"priority":399,"autosize":true},{"sequence":9,"targeting":[{"value":["Sidebar"],"key":"location"},{"value":true,"key":"sticky"}],"devices":["desktop"],"name":"Sidebar_9","sticky":true,"location":"Sidebar","dynamic":{"pageSelector":"body.wprm-print","spacing":0,"max":1,"lazyMax":null,"enable":true,"lazy":false,"elementSelector":"body.wprm-print","skip":0,"classNames":[],"position":"beforeend","every":1,"enabled":true},"stickyOverlapSelector":".adthrive-footer-message","adSizes":[[160,600],[336,280],[320,50],[300,600],[250,250],[1,1],[320,100],[300,1050],[300,50],[300,420],[300,250]],"priority":291,"autosize":true}],"adDensityLayout":{"mobile":{"adDensity":0.24,"onePerViewport":false},"pageOverrides":[{"mobile":{"adDensity":0.26,"onePerViewport":false},"note":null,"pageSelector":"body.home","desktop":{"adDensity":0.3,"onePerViewport":false}},{"mobile":{"adDensity":0.26,"onePerViewport":false},"note":null,"pageSelector":"body.page-id-1282","desktop":{"adDensity":0.26,"onePerViewport":false}}],"desktop":{"adDensity":0.2,"onePerViewport":false}},"adDensityEnabled":true,"siteExperiments":[],"adTypes":{"sponsorTileDesktop":true,"interscrollerDesktop":true,"nativeBelowPostDesktop":true,"miniscroller":true,"largeFormatsMobile":true,"nativeMobileContent":true,"inRecipeRecommendationMobile":true,"nativeMobileRecipe":true,"sponsorTileMobile":true,"expandableCatalogAdsMobile":false,"outstreamMobile":false,"nativeHeaderMobile":true,"inRecipeRecommendationDesktop":true,"nativeDesktopContent":true,"outstreamDesktop":false,"animatedFooter":true,"skylineHeader":false,"expandableFooter":true,"nativeDesktopSidebar":true,"videoFootersMobile":true,"videoFootersDesktop":true,"interscroller":true,"nativeDesktopRecipe":true,"nativeHeaderDesktop":true,"nativeBelowPostMobile":true,"expandableCatalogAdsDesktop":false,"largeFormatsDesktop":true},"adOptions":{"theTradeDesk":true,"rtbhouse":true,"undertone":true,"sidebarConfig":{"dynamicStickySidebar":{"minHeight":1800,"enabled":true,"blockedSelectors":[]}},"footerCloseButton":true,"teads":true,"pmp":true,"thirtyThreeAcross":true,"sharethrough":false,"optimizeVideoPlayersForEarnings":true,"removeVideoTitleWrapper":false,"pubMatic":true,"infiniteScroll":false,"yahoossp":true,"improvedigital":true,"spa":false,"stickyContainerConfig":{"recipeDesktop":{"minHeight":null,"enabled":false},"blockedSelectors":[],"stickyHeaderSelectors":[],"content":{"minHeight":null,"enabled":false},"recipeMobile":{"minHeight":null,"enabled":false}},"sonobi":true,"yieldmo":true,"footerSelector":"","amazonUAM":true,"gamMCMEnabled":true,"gamMCMChildNetworkCode":"22515523996","stickyContainerAds":false,"rubicon":true,"conversant":true,"openx":true,"customCreativeEnabled":false,"mobileHeaderHeight":1,"secColor":"#000000","unruly":true,"mediaGrid":true,"bRealTime":true,"adInViewTime":null,"gumgum":true,"comscoreFooter":true,"desktopInterstitial":false,"footerCloseButtonDesktop":false,"ozone":true,"isAutoOptimized":false,"adform":true,"comscoreTAL":true,"targetaff":true,"bgColor":"#FFFFFF","advancePlaylistOptions":{"playlistPlayer":{"enabled":true},"relatedPlayer":{"enabled":true,"applyToFirst":true}},"kargo":true,"liveRampATS":true,"footerCloseButtonMobile":false,"interstitialBlockedPageSelectors":"","prioritizeShorterVideoAds":true,"allowSmallerAdSizes":true,"comscore":"Food","wakeLock":{"desktopEnabled":true,"mobileValue":15,"mobileEnabled":true,"desktopValue":30},"mobileInterstitial":false,"tripleLift":true,"sensitiveCategories":["alc","drg","conl","gamv"],"liveRamp":true,"adthriveEmailIdentity":true,"criteo":true,"nativo":true,"infiniteScrollOptions":{"selector":"","heightThreshold":0},"siteAttributes":{"mobileHeaderSelectors":[],"desktopHeaderSelectors":[]},"dynamicContentSlotLazyLoading":true,"clsOptimizedAds":true,"ogury":true,"aidem":false,"verticals":["Food"],"inImage":false,"stackadapt":true,"usCMP":{"enabled":false,"regions":[]},"advancePlaylist":true,"flipp":true,"delayLoading":true,"inImageZone":null,"appNexus":true,"rise":true,"liveRampId":"","infiniteScrollRefresh":false,"indexExchange":true},"siteAdsProfiles":[],"videoPlayers":{"contextual":{"autoplayCollapsibleEnabled":true,"overrideEmbedLocation":true,"defaultPlayerType":"collapse"},"videoEmbed":"wordpress","footerSelector":"","contentSpecificPlaylists":[],"players":[{"pageSelector":"body.single","devices":["desktop"],"description":"","elementSelector":".entry-content > *","skip":4,"id":4053470,"position":"afterend","title":"Sticky related player - desktop","type":"stickyRelated","enabled":true,"playerId":"SzpabBhm"},{"playlistId":"","pageSelector":"body.single","devices":["mobile"],"mobileLocation":"top-center","description":"","skip":4,"title":"Sticky related player - mobile","type":"stickyRelated","enabled":true,"elementSelector":".entry-content > *","id":4053471,"position":"afterend","saveVideoCloseState":false,"shuffle":false,"mobileHeaderSelector":".feastmobilenavbar","playerId":"SzpabBhm"},{"playlistId":"AxMYWjBT","pageSelector":"body.single, body.page","devices":["desktop"],"description":"","skip":4,"title":"MY LATEST VIDEOS","type":"stickyPlaylist","enabled":true,"footerSelector":"","elementSelector":".entry-content > *","id":4053472,"position":"afterend","saveVideoCloseState":false,"shuffle":true,"playerId":"QXfx5jfk","isCompleted":true},{"playlistId":"AxMYWjBT","pageSelector":"body.single","devices":["mobile"],"mobileLocation":"top-center","description":"","skip":4,"title":"MY LATEST VIDEOS","type":"stickyPlaylist","enabled":true,"footerSelector":"","elementSelector":".entry-content > *","id":4053473,"position":"afterend","saveVideoCloseState":false,"shuffle":true,"mobileHeaderSelector":".feastmobilenavbar","playerId":"QXfx5jfk"},{"devices":["desktop","mobile"],"description":"","id":4053469,"title":"Stationary related player - desktop and mobile","type":"stationaryRelated","enabled":true,"playerId":"SzpabBhm"}],"partners":{"theTradeDesk":true,"unruly":true,"mediaGrid":true,"undertone":true,"gumgum":true,"adform":true,"pmp":true,"kargo":true,"thirtyThreeAcross":false,"stickyOutstream":{"desktop":{"enabled":true},"blockedPageSelectors":"","mobileLocation":"bottom-left","allowOnHomepage":true,"mobile":{"enabled":true},"saveVideoCloseState":false,"mobileHeaderSelector":"","allowForPageWithStickyPlayer":{"enabled":true}},"sharethrough":true,"tripleLift":true,"pubMatic":true,"criteo":true,"yahoossp":true,"nativo":true,"improvedigital":true,"aidem":false,"stackadapt":true,"yieldmo":true,"amazonUAM":true,"rubicon":true,"appNexus":true,"rise":true,"openx":true,"indexExchange":true}}}; //TTD User Sync Logic var metaTagList = d.getElementsByTagName('meta'); var hasHealthDirectedMetaTag = !!Array.from(metaTagList).filter(function(metaTag) { return metaTag.name === 'health-directed-treatment' && metaTag.content === 'true'; }).length; if (((w.navigator && !w.navigator.globalPrivacyControl) || !w.navigator) && !(hasHealthDirectedMetaTag && (w.adthrive.country === 'US' && w.adthrive.region === 'WA'))) { try { var unifiedIdExp = w.localStorage.getItem('pbjs-unifiedid_exp'); // Check if there is expired pbjs-unifiedid_exp value in local storage if ((new Date(unifiedIdExp)).getTime() - Date.now() < 0) { // Try to call TTD user sync endpoint and set local storage values var userSyncUrl = 'https://match.adsrvr.org/track/rid?ttd_pid=iowij76&fmt=json'; var xhrUserSync = new XMLHttpRequest(); xhrUserSync.onload = function() { var status = xhrUserSync.status; if (status === 200) { var response = xhrUserSync.response; var newExpirationGMTString = new Date(Date.now() + 5184000000).toGMTString(); w.localStorage.setItem('pbjs-unifiedid_exp', newExpirationGMTString); w.localStorage.setItem('pbjs-unifiedid', encodeURIComponent(JSON.stringify(response))); } else { w.adthrive.cmd.push(function () { w.adthrive.log = w.adthrive.log || console.log; w.adthrive.log('log', 'ads-site-origin-request', 'getTTDUserSync', ['User sync call failed', status]); }); } }; xhrUserSync.open('GET', userSyncUrl, true); xhrUserSync.responseType = 'json'; xhrUserSync.withCredentials = true; xhrUserSync.send(); } } catch (err) { w.adthrive.cmd.push(function () { w.adthrive.log = w.adthrive.log || console.log; w.adthrive.log('log', 'ads-site-origin-request', 'getTTDUserSync', ['Error with unifiedId sync', err]); }); } } ; //CLS Insertion var cls_site_insertion=function(e){"use strict";window.adthrive.buildDate="2025-05-27";const t="Below_Post",i="Content",n="Recipe",s="Footer",o="Header",r="Sidebar";class a{constructor(e){this.clsOptions=e,this.enabledLocations=[t,i,n,r]}}const l=(e,t)=>null==e||e!=e?t:e;function c(){return c=Object.assign||function(e){for(var t=1;t{const t={};return function(...i){const n=JSON.stringify(i);if(t[n])return t[n];const s=e.apply(this,i);return t[n]=s,s}};const f=new class{info(e,t,...i){this.call(console.info,e,t,...i)}warn(e,t,...i){this.call(console.warn,e,t,...i)}error(e,t,...i){this.call(console.error,e,t,...i),this.sendErrorLogToCommandQueue(e,t,...i)}event(e,t,...i){var n;"debug"===(null==(n=window.adthriveCLS)?void 0:n.bucket)&&this.info(e,t)}sendErrorLogToCommandQueue(e,t,...i){window.adthrive=window.adthrive||{},window.adthrive.cmd=window.adthrive.cmd||[],window.adthrive.cmd.push((()=>{void 0!==window.adthrive.logError&&"function"==typeof window.adthrive.logError&&window.adthrive.logError(e,t,i)}))}call(e,t,i,...n){const s=[`%c${t}::${i} `],o=["color: #999; font-weight: bold;"];n.length>0&&"string"==typeof n[0]&&s.push(n.shift()),o.push(...n);try{Function.prototype.apply.call(e,console,[s.join(""),...o])}catch(e){return void console.error(e)}}},v=e=>{const t=e.offsetHeight,i=e.offsetWidth,n=e.getBoundingClientRect(),s=document.body,o=document.documentElement,r=window.pageYOffset||o.scrollTop||s.scrollTop,a=window.pageXOffset||o.scrollLeft||s.scrollLeft,l=o.clientTop||s.clientTop||0,c=o.clientLeft||s.clientLeft||0,d=Math.round(n.top+r-l),h=Math.round(n.left+a-c);return{top:d,left:h,bottom:d+t,right:h+i,width:i,height:t}},b=e=>{let t={};const i=((e=window.location.search)=>{const t=0===e.indexOf("?")?1:0;return e.slice(t).split("&").reduce(((e,t)=>{const[i,n]=t.split("=");return e.set(i,n),e}),new Map)})().get(e);if(i)try{const n=decodeURIComponent(i).replace(/\+/g,"");t=JSON.parse(n),f.event("ExperimentOverridesUtil","getExperimentOverrides",e,t)}catch(e){}return t},S=_(((e=navigator.userAgent)=>/Windows NT|Macintosh/i.test(e))),E=_((()=>{const e=navigator.userAgent,t=/Tablet|iPad|Playbook|Nook|webOS|Kindle|Android (?!.*Mobile).*Safari|CrOS/i.test(e);return/Mobi|iP(hone|od)|Opera Mini/i.test(e)&&!t})),w=(e,t,i=document)=>{const n=((e=document)=>{const t=e.querySelectorAll("article");if(0===t.length)return null;const i=Array.from(t).reduce(((e,t)=>t.offsetHeight>e.offsetHeight?t:e));return i&&i.offsetHeight>1.5*window.innerHeight?i:null})(i),s=n?[n]:[],o=[];e.forEach((e=>{const n=Array.from(i.querySelectorAll(e.elementSelector)).slice(0,e.skip);var r;(r=e.elementSelector,r.includes(",")?r.split(","):[r]).forEach((r=>{const a=i.querySelectorAll(r);for(let i=0;ie.isEqualNode(r))))continue;const l=r&&r.parentElement;l&&l!==document.body?s.push(l):s.push(r),-1===n.indexOf(r)&&o.push({dynamicAd:e,element:r})}}))}));const r=((e=document)=>(e===document?document.body:e).getBoundingClientRect().top)(i),a=o.sort(((e,t)=>e.element.getBoundingClientRect().top-r-(t.element.getBoundingClientRect().top-r)));return[s,a]};class x{}const A=["mcmpfreqrec"];const C=new class extends x{init(e){this._gdpr="true"===e.gdpr,this._shouldQueue=this._gdpr}clearQueue(e){e&&(this._shouldQueue=!1,this._sessionStorageHandlerQueue.forEach((e=>{this.setSessionStorage(e.key,e.value)})),this._localStorageHandlerQueue.forEach((e=>{if("adthrive_abgroup"===e.key){const t=Object.keys(e.value)[0],i=e.value[t],n=e.value[`${t}_weight`];this.getOrSetABGroupLocalStorageValue(t,i,n,{value:24,unit:"hours"})}else e.expiry?"internal"===e.type?this.setExpirableInternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):this.setExpirableExternalLocalStorage(e.key,e.value,{expiry:e.expiry,resetOnRead:e.resetOnRead}):"internal"===e.type?this.setInternalLocalStorage(e.key,e.value):this.setExternalLocalStorage(e.key,e.value)})),this._cookieHandlerQueue.forEach((e=>{"internal"===e.type?this.setInternalCookie(e.key,e.value):this.setExternalCookie(e.key,e.value)}))),this._sessionStorageHandlerQueue=[],this._localStorageHandlerQueue=[],this._cookieHandlerQueue=[]}readInternalCookie(e){return this._verifyInternalKey(e),this._readCookie(e)}readExternalCookie(e){return this._readCookie(e)}readInternalLocalStorage(e){return this._verifyInternalKey(e),this._readFromLocalStorage(e)}readExternalLocalStorage(e){return this._readFromLocalStorage(e)}readSessionStorage(e){const t=window.sessionStorage.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return t}}deleteCookie(e){document.cookie=`${e}=; SameSite=None; Secure; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/`}deleteLocalStorage(e){window.localStorage.removeItem(e)}deleteSessionStorage(e){window.sessionStorage.removeItem(e)}setInternalCookie(e,t,i){this._verifyInternalKey(e),this._setCookieValue("internal",e,t,i)}setExternalCookie(e,t,i){this._setCookieValue("external",e,t,i)}setInternalLocalStorage(e,t){if(this._verifyInternalKey(e),this._gdpr&&this._shouldQueue){const i={key:e,value:t,type:"internal"};this._localStorageHandlerQueue.push(i)}else{const i="string"==typeof t?t:JSON.stringify(t);window.localStorage.setItem(e,i)}}setExternalLocalStorage(e,t){if(this._gdpr&&this._shouldQueue){const i={key:e,value:t,type:"external"};this._localStorageHandlerQueue.push(i)}else{const i="string"==typeof t?t:JSON.stringify(t);window.localStorage.setItem(e,i)}}setExpirableInternalLocalStorage(e,t,i){this._verifyInternalKey(e);try{var n;const o=null!=(n=null==i?void 0:i.expiry)?n:{value:400,unit:"days"};var s;const r=null!=(s=null==i?void 0:i.resetOnRead)&&s;if(this._gdpr&&this._shouldQueue){const i={key:e,value:t,type:"internal",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};this._localStorageHandlerQueue.push(i)}else{const i={value:t,type:"internal",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};window.localStorage.setItem(e,JSON.stringify(i))}}catch(e){console.error(e)}}setExpirableExternalLocalStorage(e,t,i){try{var n;const o=null!=(n=null==i?void 0:i.expiry)?n:{value:400,unit:"days"};var s;const r=null!=(s=null==i?void 0:i.resetOnRead)&&s;if(this._gdpr&&this._shouldQueue){const i={key:e,value:JSON.stringify(t),type:"external",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};this._localStorageHandlerQueue.push(i)}else{const i={value:t,type:"external",expires:this._getExpiryDate(o),expiry:o,resetOnRead:r};window.localStorage.setItem(e,JSON.stringify(i))}}catch(e){console.error(e)}}setSessionStorage(e,t){if(this._gdpr&&this._shouldQueue){const i={key:e,value:t};this._sessionStorageHandlerQueue.push(i)}else{const i="string"==typeof t?t:JSON.stringify(t);window.sessionStorage.setItem(e,i)}}getOrSetABGroupLocalStorageValue(e,t,i,n,s=!0){const o="adthrive_abgroup",r=this.readInternalLocalStorage(o);if(null!==r){const t=r[e];var a;const i=null!=(a=r[`${e}_weight`])?a:null;if(this._isValidABGroupLocalStorageValue(t))return[t,i]}const l=c({},r,{[e]:t,[`${e}_weight`]:i});return n?this.setExpirableInternalLocalStorage(o,l,{expiry:n,resetOnRead:s}):this.setInternalLocalStorage(o,l),[t,i]}_isValidABGroupLocalStorageValue(e){return null!=e&&!("number"==typeof e&&isNaN(e))}_getExpiryDate({value:e,unit:t}){const i=new Date;return"milliseconds"===t?i.setTime(i.getTime()+e):"seconds"==t?i.setTime(i.getTime()+1e3*e):"minutes"===t?i.setTime(i.getTime()+60*e*1e3):"hours"===t?i.setTime(i.getTime()+60*e*60*1e3):"days"===t?i.setTime(i.getTime()+24*e*60*60*1e3):"months"===t&&i.setTime(i.getTime()+30*e*24*60*60*1e3),i.toUTCString()}_resetExpiry(e){return e.expires=this._getExpiryDate(e.expiry),e}_readCookie(e){const t=document.cookie.split("; ").find((t=>t.split("=")[0]===e));if(!t)return null;const i=t.split("=")[1];if(i)try{return JSON.parse(decodeURIComponent(i))}catch(e){return decodeURIComponent(i)}return null}_readFromLocalStorage(e){const t=window.localStorage.getItem(e);if(!t)return null;try{const n=JSON.parse(t),s=n.expires&&(new Date).getTime()>=new Date(n.expires).getTime();if("adthrive_abgroup"===e&&n.created)return window.localStorage.removeItem(e),null;if(n.resetOnRead&&n.expires&&!s){const t=this._resetExpiry(n);var i;return window.localStorage.setItem(e,JSON.stringify(n)),null!=(i=t.value)?i:t}if(s)return window.localStorage.removeItem(e),null;if(!n.hasOwnProperty("value"))return n;try{return JSON.parse(n.value)}catch(e){return n.value}}catch(e){return t}}_setCookieValue(e,t,i,n){try{if(this._gdpr&&this._shouldQueue){const n={key:t,value:i,type:e};this._cookieHandlerQueue.push(n)}else{var s;const e=this._getExpiryDate(null!=(s=null==n?void 0:n.expiry)?s:{value:400,unit:"days"});var o;const a=null!=(o=null==n?void 0:n.sameSite)?o:"None";var r;const l=null==(r=null==n?void 0:n.secure)||r,c="object"==typeof i?JSON.stringify(i):i;document.cookie=`${t}=${c}; SameSite=${a}; ${l?"Secure;":""} expires=${e}; path=/`}}catch(e){}}_verifyInternalKey(e){const t=e.startsWith("adthrive_"),i=e.startsWith("adt_");if(!t&&!i&&!A.includes(e))throw new Error('When reading an internal cookie, the key must start with "adthrive_" or "adt_" or be part of the allowed legacy keys.')}constructor(...e){super(...e),this.name="BrowserStorage",this.disable=!1,this.gdprPurposes=[1],this._sessionStorageHandlerQueue=[],this._localStorageHandlerQueue=[],this._cookieHandlerQueue=[],this._shouldQueue=!1}},P=(e,t,i)=>{switch(t){case d.AdDensity:return((e,t)=>{const i=e.adDensityEnabled,n=e.adDensityLayout.pageOverrides.find((e=>!!document.querySelector(e.pageSelector)&&(e[t].onePerViewport||"number"==typeof e[t].adDensity)));return!i||!n})(e,i);case d.StickyOutstream:return(e=>{var t,i,n;const s=null==(n=e.videoPlayers)||null==(i=n.partners)||null==(t=i.stickyOutstream)?void 0:t.blockedPageSelectors;return!s||!document.querySelector(s)})(e);case d.Interstitial:return(e=>{const t=e.adOptions.interstitialBlockedPageSelectors;return!t||!document.querySelector(t)})(e);default:return!0}},D=e=>{const t=window.location.href;return e.some((e=>new RegExp(e,"i").test(t)))},O=e=>{try{return{valid:!0,elements:document.querySelectorAll(e)}}catch(e){return c({valid:!1},e)}},k=e=>""===e?{valid:!0}:O(e),I=(e,t)=>{if(!e)return!1;const i=!!e.enabled,n=null==e.dateStart||Date.now()>=e.dateStart,s=null==e.dateEnd||Date.now()<=e.dateEnd,o=null===e.selector||""!==e.selector&&!!document.querySelector(e.selector),r="mobile"===e.platform&&"mobile"===t,a="desktop"===e.platform&&"desktop"===t,l=null===e.platform||"all"===e.platform||r||a,c="bernoulliTrial"===e.experimentType?1===e.variants.length:(e=>{const t=e.reduce(((e,t)=>t.weight?t.weight+e:e),0);return e.length>0&&e.every((e=>{const t=e.value,i=e.weight;return!(null==t||"number"==typeof t&&isNaN(t)||!i)}))&&100===t})(e.variants);return c||f.error("SiteTest","validateSiteExperiment","experiment presented invalid choices for key:",e.key,e.variants),i&&n&&s&&o&&l&&c},M=["siteId","siteName","adOptions","breakpoints","adUnits"];class L{static getScrollTop(){return(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0)}static getScrollBottom(){return this.getScrollTop()+(document.documentElement.clientHeight||0)}static shufflePlaylist(e){let t,i,n=e.length;for(;0!==n;)i=Math.floor(Math.random()*e.length),n-=1,t=e[n],e[n]=e[i],e[i]=t;return e}static isMobileLandscape(){return window.matchMedia("(orientation: landscape) and (max-height: 480px)").matches}static playerViewable(e){const t=e.getBoundingClientRect();return this.isMobileLandscape()?window.innerHeight>t.top+t.height/2&&t.top+t.height/2>0:window.innerHeight>t.top+t.height/2}static createQueryString(e){return Object.keys(e).map((t=>`${t}=${e[t]}`)).join("&")}static createEncodedQueryString(e){return Object.keys(e).map((t=>`${t}=${encodeURIComponent(e[t])}`)).join("&")}static setMobileLocation(e){return"top-left"===(e=e||"bottom-right")?e="adthrive-collapse-top-left":"top-right"===e?e="adthrive-collapse-top-right":"bottom-left"===e?e="adthrive-collapse-bottom-left":"bottom-right"===e?e="adthrive-collapse-bottom-right":"top-center"===e&&(e=E()?"adthrive-collapse-top-center":"adthrive-collapse-bottom-right"),e}static addMaxResolutionQueryParam(e){const t=`max_resolution=${E()?"320":"1280"}`,[i,n]=String(e).split("?");return`${i}?${n?n+`&${t}`:t}`}}class R{constructor(e){this._clsOptions=e,this.removeVideoTitleWrapper=l(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);const t=this._clsOptions.siteAds.videoPlayers;this.footerSelector=l(t&&t.footerSelector,""),this.players=l(t&&t.players.map((e=>(e.mobileLocation=L.setMobileLocation(e.mobileLocation),e))),[]),this.relatedSettings=t&&t.contextual}}class j{constructor(e){this.mobileStickyPlayerOnPage=!1,this.playlistPlayerAdded=!1,this.relatedPlayerAdded=!1,this.footerSelector="",this.removeVideoTitleWrapper=!1,this.videoAdOptions=new R(e),this.players=this.videoAdOptions.players,this.relatedSettings=this.videoAdOptions.relatedSettings,this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper,this.footerSelector=this.videoAdOptions.footerSelector}}class T{checkCommandQueue(){this.adthrive&&this.adthrive.cmd&&this.adthrive.cmd.forEach((e=>{const t=e.toString(),i=this.extractAPICall(t,"disableAds");i&&this.disableAllAds(this.extractPatterns(i));const n=this.extractAPICall(t,"disableContentAds");n&&this.disableContentAds(this.extractPatterns(n));const s=this.extractAPICall(t,"disablePlaylistPlayers");s&&this.disablePlaylistPlayers(this.extractPatterns(s))}))}extractPatterns(e){const t=e.match(/["'](.*?)['"]/g);if(null!==t)return t.map((e=>e.replace(/["']/g,"")))}extractAPICall(e,t){const i=new RegExp(t+"\\((.*?)\\)","g"),n=e.match(i);return null!==n&&n[0]}disableAllAds(e){e&&!D(e)||(this.all=!0,this.reasons.add("all_page"))}disableContentAds(e){e&&!D(e)||(this.content=!0,this.recipe=!0,this.locations.add(i),this.locations.add(n),this.reasons.add("content_plugin"))}disablePlaylistPlayers(e){e&&!D(e)||(this.video=!0,this.locations.add("Video"),this.reasons.add("video_page"))}urlHasEmail(e){if(!e)return!1;return null!==/([A-Z0-9._%+-]+(@|%(25)*40)[A-Z0-9.-]+\.[A-Z]{2,})/i.exec(e)}constructor(e){this.adthrive=e,this.all=!1,this.content=!1,this.recipe=!1,this.video=!1,this.locations=new Set,this.reasons=new Set,(this.urlHasEmail(window.location.href)||this.urlHasEmail(window.document.referrer))&&(this.all=!0,this.reasons.add("all_email"));try{this.checkCommandQueue(),null!==document.querySelector(".tag-novideo")&&(this.video=!0,this.locations.add("Video"),this.reasons.add("video_tag"))}catch(e){f.error("ClsDisableAds","checkCommandQueue",e)}}}const H=window.adthriveCLS;H&&(H.disableAds=new T(window.adthrive));class V{}class N extends V{get(){if(this._probability<0||this._probability>1)throw new Error(`Invalid probability: ${this._probability}`);return Math.random(){if(!e)return!1;for(let i=0;i{const{location:i,sticky:o}=e;if(i===n&&t){const{recipeMobile:e,recipeDesktop:i}=t;if(E()&&(null==e?void 0:e.enabled))return!0;if(!E()&&(null==i?void 0:i.enabled))return!0}return i===s||o},U=(e,t)=>{const a=t.adUnits,c=(e=>!!e.adTypes&&new B(e.adTypes).result)(t);return a.filter((e=>void 0!==e.dynamic&&e.dynamic.enabled)).map((a=>{const d=a.location.replace(/\s+/g,"_"),h="Sidebar"===d?0:2;return{auctionPriority:z.get(d)||8,location:d,sequence:l(a.sequence,1),sizes:(u=a.adSizes,W.filter((([e,t])=>u.some((([i,n])=>e===i&&t===n))))).filter((t=>((e,[t,i],a)=>{const{location:l,sequence:c}=e;if(l===s)return!("phone"===a&&320===t&&100===i);if(l===o)return!0;if(l===n)return!(E()&&"phone"===a&&(300===t&&390===i||320===t&&300===i));if(l===r){const t=e.adSizes.some((([,e])=>e<=300)),n=i>300;return!(!n||t)||9===c||(c&&c<=5?!n||e.sticky:!n)}return!0})(a,t,e))).concat(c&&a.location===i?q:[]),devices:a.devices,pageSelector:l(a.dynamic.pageSelector,"").trim(),elementSelector:l(a.dynamic.elementSelector,"").trim(),position:l(a.dynamic.position,"beforebegin"),max:Math.floor(l(a.dynamic.max,0)),spacing:l(a.dynamic.spacing,0),skip:Math.floor(l(a.dynamic.skip,0)),every:Math.max(Math.floor(l(a.dynamic.every,1)),1),classNames:a.dynamic.classNames||[],sticky:Q(a,t.adOptions.stickyContainerConfig),stickyOverlapSelector:l(a.stickyOverlapSelector,"").trim(),autosize:a.autosize,special:l(a.targeting,[]).filter((e=>"special"===e.key)).reduce(((e,t)=>e.concat(...t.value)),[]),lazy:l(a.dynamic.lazy,!1),lazyMax:l(a.dynamic.lazyMax,h),lazyMaxDefaulted:0!==a.dynamic.lazyMax&&!a.dynamic.lazyMax,name:a.name};var u}))},J=(e,t)=>{const i=(e=>{let t=e.clientWidth;if(getComputedStyle){const i=getComputedStyle(e,null);t-=parseFloat(i.paddingLeft||"0")+parseFloat(i.paddingRight||"0")}return t})(t),n=e.sticky&&e.location===r;return e.sizes.filter((t=>{const s=!e.autosize||(t[0]<=i||t[0]<=320),o=!n||t[1]<=window.innerHeight-100;return s&&o}))},K=e=>`adthrive-${e.location.replace("_","-").toLowerCase()}`,Z=e=>`${K(e)}-${e.sequence}`;function Y(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===i&&n.firstChild?n.insertBefore(s,n.firstChild):n.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}const X=e=>e.some((e=>null!==document.querySelector(e)));function ee(e,t,i,n){var s,o=arguments.length,r=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,i,n);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(r=(o<3?s(r):o>3?s(t,i,r):s(t,i))||r);return o>3&&r&&Object.defineProperty(t,i,r),r}function te(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}"function"==typeof SuppressedError&&SuppressedError;class ie extends V{static fromArray(e,t){return new ie(e.map((([e,t])=>({choice:e,weight:t}))),t)}addChoice(e,t){this._choices.push({choice:e,weight:t})}get(){const e=(t=0,i=100,Math.random()*(i-t)+t);var t,i;let n=0;for(const{choice:t,weight:i}of this._choices)if(n+=i,n>=e)return t;return this._default}get totalWeight(){return this._choices.reduce(((e,{weight:t})=>e+t),0)}constructor(e=[],t){super(),this._choices=e,this._default=t}}const ne={"Europe/Brussels":"gdpr","Europe/Sofia":"gdpr","Europe/Prague":"gdpr","Europe/Copenhagen":"gdpr","Europe/Berlin":"gdpr","Europe/Tallinn":"gdpr","Europe/Dublin":"gdpr","Europe/Athens":"gdpr","Europe/Madrid":"gdpr","Africa/Ceuta":"gdpr","Europe/Paris":"gdpr","Europe/Zagreb":"gdpr","Europe/Rome":"gdpr","Asia/Nicosia":"gdpr","Europe/Nicosia":"gdpr","Europe/Riga":"gdpr","Europe/Vilnius":"gdpr","Europe/Luxembourg":"gdpr","Europe/Budapest":"gdpr","Europe/Malta":"gdpr","Europe/Amsterdam":"gdpr","Europe/Vienna":"gdpr","Europe/Warsaw":"gdpr","Europe/Lisbon":"gdpr","Atlantic/Madeira":"gdpr","Europe/Bucharest":"gdpr","Europe/Ljubljana":"gdpr","Europe/Bratislava":"gdpr","Europe/Helsinki":"gdpr","Europe/Stockholm":"gdpr","Europe/London":"gdpr","Europe/Vaduz":"gdpr","Atlantic/Reykjavik":"gdpr","Europe/Oslo":"gdpr","Europe/Istanbul":"gdpr","Europe/Zurich":"gdpr"},se=()=>(e,t,i)=>{const n=i.value;n&&(i.value=function(...e){const t=(e=>{if(null===e)return null;const t=e.map((({choice:e})=>e));return(e=>{let t=5381,i=e.length;for(;i;)t=33*t^e.charCodeAt(--i);return t>>>0})(JSON.stringify(t)).toString(16)})(this._choices),i=this._expConfigABGroup?this._expConfigABGroup:this.abgroup,s=i?i.toLowerCase():this.key?this.key.toLowerCase():"",o=t?`${s}_${t}`:s,r=this.localStoragePrefix?`${this.localStoragePrefix}-${o}`:o;if([d.AdLayout,d.AdDensity].includes(s)&&"gdpr"===(()=>{const e=Intl.DateTimeFormat().resolvedOptions().timeZone,t=ne[e];return null!=t?t:null})()){return n.apply(this,e)}const a=C.readInternalLocalStorage("adthrive_branch");!1===(a&&a.enabled)&&C.deleteLocalStorage(r);const l=(()=>n.apply(this,e))(),c=(h=this._choices,u=l,null!=(m=null==(p=h.find((({choice:e})=>e===u)))?void 0:p.weight)?m:null);var h,u,p,m;const[g,y]=C.getOrSetABGroupLocalStorageValue(r,l,c,{value:24,unit:"hours"});return this._stickyResult=g,this._stickyWeight=y,g})};class oe{get enabled(){return void 0!==this.experimentConfig}_isValidResult(e,t=()=>!0){return t()&&(e=>null!=e&&!("number"==typeof e&&isNaN(e)))(e)}}class re extends oe{_isValidResult(e){return super._isValidResult(e,(()=>this._resultValidator(e)||"control"===e))}run(){if(!this.enabled)return f.error("CLSWeightedChoiceSiteExperiment","run","() => %o","No experiment config found. Defaulting to control."),"control";if(!this._mappedChoices||0===this._mappedChoices.length)return f.error("CLSWeightedChoiceSiteExperiment","run","() => %o","No experiment variants found. Defaulting to control."),"control";const e=new ie(this._mappedChoices).get();return this._isValidResult(e)?e:(f.error("CLSWeightedChoiceSiteExperiment","run","() => %o","Invalid result from experiment choices. Defaulting to control."),"control")}constructor(...e){super(...e),this._resultValidator=()=>!0}}class ae{getSiteExperimentByKey(e){const t=this.siteExperiments.filter((t=>t.key.toLowerCase()===e.toLowerCase()))[0],i=b("at_site_features"),n=(s=(null==t?void 0:t.variants[1])?null==t?void 0:t.variants[1].value:null==t?void 0:t.variants[0].value,o=i[e],typeof s==typeof o);var s,o;return t&&i[e]&&n&&(t.variants=[{displayName:"test",value:i[e],weight:100,id:0}]),t}constructor(e){var t,i;this.siteExperiments=[],this._clsOptions=e,this._device=E()?"mobile":"desktop",this.siteExperiments=null!=(i=null==(t=this._clsOptions.siteAds.siteExperiments)?void 0:t.filter((e=>{const t=e.key,i=I(e,this._device),n=P(this._clsOptions.siteAds,t,this._device);return i&&n})))?i:[]}}class le extends re{get result(){return this._result}run(){if(!this.enabled)return f.error("CLSAdLayoutSiteExperiment","run","() => %o","No experiment config found. Defaulting to empty class name."),"";const e=new ie(this._mappedChoices).get();return this._isValidResult(e)?e:(f.error("CLSAdLayoutSiteExperiment","run","() => %o","Invalid result from experiment choices. Defaulting to empty class name."),"")}_mapChoices(){return this._choices.map((({weight:e,value:t})=>({weight:e,choice:t})))}constructor(e){super(),this._choices=[],this._mappedChoices=[],this._result="",this._resultValidator=e=>"string"==typeof e,this.key=d.AdLayout,this.abgroup=d.AdLayout,this._clsSiteExperiments=new ae(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&&this.experimentConfig&&(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}}ee([se(),te("design:type",Function),te("design:paramtypes",[]),te("design:returntype",void 0)],le.prototype,"run",null);class ce extends re{get result(){return this._result}run(){if(!this.enabled)return f.error("CLSTargetAdDensitySiteExperiment","run","() => %o","No experiment config found. Defaulting to control."),"control";const e=new ie(this._mappedChoices).get();return this._isValidResult(e)?e:(f.error("CLSTargetAdDensitySiteExperiment","run","() => %o","Invalid result from experiment choices. Defaulting to control."),"control")}_mapChoices(){return this._choices.map((({weight:e,value:t})=>({weight:e,choice:"number"==typeof t?(t||0)/100:"control"})))}constructor(e){super(),this._choices=[],this._mappedChoices=[],this._result="control",this._resultValidator=e=>"number"==typeof e,this.key=d.AdDensity,this.abgroup=d.AdDensity,this._clsSiteExperiments=new ae(e),this.experimentConfig=this._clsSiteExperiments.getSiteExperimentByKey(this.key),this.enabled&&this.experimentConfig&&(this._choices=this.experimentConfig.variants,this._mappedChoices=this._mapChoices(),this._result=this.run(),e.setWeightedChoiceExperiment(this.abgroup,this._result,!0))}}ee([se(),te("design:type",Function),te("design:paramtypes",[]),te("design:returntype",void 0)],ce.prototype,"run",null);const de="250px";class he{start(){try{var e,t;(e=>{const t=document.body,i=`adthrive-device-${e}`;if(!t.classList.contains(i))try{t.classList.add(i)}catch(e){f.error("BodyDeviceClassComponent","init",{message:e.message});const t="classList"in document.createElement("_");f.error("BodyDeviceClassComponent","init.support",{support:t})}})(this._device);const s=new le(this._clsOptions);if(s.enabled){const e=s.result,t=e.startsWith(".")?e.substring(1):e;if((e=>/^[-_a-zA-Z]+[-_a-zA-Z0-9]*$/.test(e))(t))try{document.body.classList.add(t)}catch(e){f.error("ClsDynamicAdsInjector","start",`Uncaught CSS Class error: ${e}`)}else f.error("ClsDynamicAdsInjector","start",`Invalid class name: ${t}`)}const o=U(this._device,this._clsOptions.siteAds).filter((e=>this._locationEnabled(e))).filter((e=>{return t=e,i=this._device,t.devices.includes(i);var t,i})).filter((e=>{return 0===(t=e).pageSelector.length||null!==document.querySelector(t.pageSelector);var t})),r=this.inject(o);var i,n;if(null==(t=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||null==(e=t.content)?void 0:e.enabled)if(!X(this._clsOptions.siteAds.adOptions.stickyContainerConfig.blockedSelectors||[]))Y(`\n .adthrive-device-phone .adthrive-sticky-content {\n height: 450px !important;\n margin-bottom: 100px !important;\n }\n .adthrive-content.adthrive-sticky {\n position: -webkit-sticky;\n position: sticky !important;\n top: 42px !important;\n margin-top: 42px !important;\n }\n .adthrive-content.adthrive-sticky:after {\n content: "— Advertisement. Scroll down to continue. —";\n font-size: 10pt;\n margin-top: 5px;\n margin-bottom: 5px;\n display:block;\n color: #888;\n }\n .adthrive-sticky-container {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n min-height:${(null==(n=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||null==(i=n.content)?void 0:i.minHeight)||400}px !important;\n margin: 10px 0 10px 0;\n background-color: #FAFAFA;\n padding-bottom:0px;\n }\n `);r.forEach((e=>this._clsOptions.setInjectedSlots(e)))}catch(e){f.error("ClsDynamicAdsInjector","start",e)}}inject(e,t=document){this._densityDevice="desktop"===this._device?h:u,this._overrideDefaultAdDensitySettingsWithSiteExperiment();const n=this._clsOptions.siteAds,s=l(n.adDensityEnabled,!0),o=n.adDensityLayout&&s,r=e.filter((e=>o?e.location!==i:e)),a=e.filter((e=>o?e.location===i:null));return[...r.length?this._injectNonDensitySlots(r,t):[],...a.length?this._injectDensitySlots(a,t):[]]}_injectNonDensitySlots(e,t=document){var i;const s=[],o=[];if(e.some((e=>e.location===n&&e.sticky))&&!X((null==(i=this._clsOptions.siteAds.adOptions.stickyContainerConfig)?void 0:i.blockedSelectors)||[])){var r,a;const e=this._clsOptions.siteAds.adOptions.stickyContainerConfig;(e=>{Y(`\n .adthrive-recipe.adthrive-sticky {\n position: -webkit-sticky;\n position: sticky !important;\n top: 42px !important;\n margin-top: 42px !important;\n }\n .adthrive-recipe-sticky-container {\n position: relative;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n min-height:${e||400}px !important;\n margin: 10px 0 10px 0;\n background-color: #FAFAFA;\n padding-bottom:0px;\n }\n `)})("phone"===this._device?null==e||null==(r=e.recipeMobile)?void 0:r.minHeight:null==e||null==(a=e.recipeDesktop)?void 0:a.minHeight)}for(const i of e)this._insertNonDensityAds(i,s,o,t);return o.forEach((({location:e,element:t})=>{t.style.minHeight=this.locationToMinHeight[e]})),s}_injectDensitySlots(e,t=document){try{this._calculateMainContentHeightAndAllElements(e,t)}catch(e){return[]}const{onePerViewport:i,targetAll:n,targetDensityUnits:s,combinedMax:o,numberOfUnits:r}=this._getDensitySettings(e,t);return this._absoluteMinimumSpacingByDevice=i?window.innerHeight:this._absoluteMinimumSpacingByDevice,r?(this._adInjectionMap.filterUsed(),this._findElementsForAds(r,i,n,o,s,t),this._insertAds()):[]}_overrideDefaultAdDensitySettingsWithSiteExperiment(){var e;if(null==(e=this._clsTargetAdDensitySiteExperiment)?void 0:e.enabled){const e=this._clsTargetAdDensitySiteExperiment.result;"number"==typeof e&&(this._clsOptions.siteAds.adDensityEnabled=!0,this._clsOptions.siteAds.adDensityLayout[this._densityDevice].adDensity=e)}}_getDensitySettings(e,t=document){const i=this._clsOptions.siteAds.adDensityLayout,n=this._determineOverrides(i.pageOverrides),s=n.length?n[0]:i[this._densityDevice],o=s.adDensity,r=s.onePerViewport,a=this._shouldTargetAllEligible(o),l=this._getTargetDensityUnits(o,a),c=this._getCombinedMax(e,t),d=Math.min(this._totalAvailableElements.length,l,...c>0?[c]:[]);return this._pubLog={onePerViewport:r,targetDensity:o,targetDensityUnits:l,combinedMax:c},{onePerViewport:r,targetAll:a,targetDensityUnits:l,combinedMax:c,numberOfUnits:d}}_determineOverrides(e){return e.filter((e=>{const t=k(e.pageSelector);return""===e.pageSelector||t.elements&&t.elements.length})).map((e=>e[this._densityDevice]))}_shouldTargetAllEligible(e){return e===this._densityMax}_getTargetDensityUnits(e,t){return t?this._totalAvailableElements.length:Math.floor(e*this._mainContentHeight/(1-e)/this._minDivHeight)-this._recipeCount}_getCombinedMax(e,t=document){return l(e.filter((e=>{let i;try{i=t.querySelector(e.elementSelector)}catch(e){}return i})).map((e=>Number(e.max)+Number(e.lazyMaxDefaulted?0:e.lazyMax))).sort(((e,t)=>t-e))[0],0)}_elementLargerThanMainContent(e){return e.offsetHeight>=this._mainContentHeight&&this._totalAvailableElements.length>1}_elementDisplayNone(e){const t=window.getComputedStyle(e,null).display;return t&&"none"===t||"none"===e.style.display}_isBelowMaxes(e,t){return this._adInjectionMap.map.length{for(const{dynamicAd:t,element:r}of this._totalAvailableElements)if(this._logDensityInfo(r,t.elementSelector,e),!(!i&&this._elementLargerThanMainContent(r)||this._elementDisplayNone(r))){if(!this._isBelowMaxes(n,s))break;this._checkElementSpacing({dynamicAd:t,element:r,insertEvery:e,targetAll:i,target:o})}!this._usedAbsoluteMinimum&&this._smallerIncrementAttempts<5&&(++this._smallerIncrementAttempts,r(this._getSmallerIncrement(e)))},a=this._getInsertEvery(e,t,s);r(a)}_getSmallerIncrement(e){let t=.6*e;return t<=this._absoluteMinimumSpacingByDevice&&(t=this._absoluteMinimumSpacingByDevice,this._usedAbsoluteMinimum=!0),t}_insertNonDensityAds(e,t,i,s=document){let o=0,a=0,l=0;e.spacing>0&&(o=window.innerHeight*e.spacing,a=o);const c=this._repeatDynamicAds(e),d=this.getElements(e.elementSelector,s);e.skip;for(let h=e.skip;hc.length);h+=e.every){let u=d[h];if(o>0){const{bottom:e}=v(u);if(e<=a)continue;a=e+o}const p=c[l],m=`${p.location}_${p.sequence}`;t.some((e=>e.name===m))&&(l+=1);const g=this.getDynamicElementId(p),y=K(e),_=Z(e),f=[e.location===r&&e.sticky&&e.sequence&&e.sequence<=5?"adthrive-sticky-sidebar":"",e.location===n&&e.sticky?"adthrive-recipe-sticky-container":"",y,_,...e.classNames],b=this.addAd(u,g,e.position,f);if(b){const o=J(p,b);if(o.length){const r={clsDynamicAd:e,dynamicAd:p,element:b,sizes:o,name:m,infinite:s!==document};t.push(r),i.push({location:p.location,element:b}),e.location===n&&++this._recipeCount,l+=1}u=b}}}_insertAds(){const e=[];return this._adInjectionMap.filterUsed(),this._adInjectionMap.map.forEach((({el:t,dynamicAd:i,target:n},s)=>{const o=Number(i.sequence)+s,r=i.max,a=i.lazy&&o>r;i.sequence=o,i.lazy=a;const l=this._addContentAd(t,i,n);l&&(i.used=!0,e.push(l))})),e}_getInsertEvery(e,t,i){let n=this._absoluteMinimumSpacingByDevice;return this._moreAvailableElementsThanUnitsToInject(i,e)?(this._usedAbsoluteMinimum=!1,n=this._useWiderSpacing(i,e)):(this._usedAbsoluteMinimum=!0,n=this._useSmallestSpacing(t)),t&&window.innerHeight>n?window.innerHeight:n}_useWiderSpacing(e,t){return this._mainContentHeight/Math.min(e,t)}_useSmallestSpacing(e){return e&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice}_moreAvailableElementsThanUnitsToInject(e,t){return this._totalAvailableElements.length>e||this._totalAvailableElements.length>t}_logDensityInfo(e,t,i){const{onePerViewport:n,targetDensity:s,targetDensityUnits:o,combinedMax:r}=this._pubLog;this._totalAvailableElements.length}_checkElementSpacing({dynamicAd:e,element:t,insertEvery:i,targetAll:n,target:s=document}){(this._isFirstAdInjected()||this._hasProperSpacing(t,e,n,i))&&this._markSpotForContentAd(t,c({},e),s)}_isFirstAdInjected(){return!this._adInjectionMap.map.length}_markSpotForContentAd(e,t,i=document){const n="beforebegin"===t.position||"afterbegin"===t.position;this._adInjectionMap.add(e,this._getElementCoords(e,n),t,i),this._adInjectionMap.sort()}_hasProperSpacing(e,i,n,s){const o="beforebegin"===i.position||"afterbegin"===i.position,r="beforeend"===i.position||"afterbegin"===i.position,a=n||this._isElementFarEnoughFromOtherAdElements(e,s,o),l=r||this._isElementNotInRow(e,o),c=-1===e.id.indexOf(`AdThrive_${t}`);return a&&l&&c}_isElementFarEnoughFromOtherAdElements(e,t,i){const n=this._getElementCoords(e,i);let s=!1;for(let e=0;ei&&(!o||n+t{const[n,s]=w(e,t,i);if(0===n.length)throw Error("No Main Content Elements Found");return[Array.from(n).reduce(((e,t)=>t.offsetHeight>e.offsetHeight?t:e))||document.body,s]})(e,this._adInjectionMap,t);this._mainContentDiv=i,this._totalAvailableElements=n,this._mainContentHeight=((e,t="div #comments, section .comments")=>{const i=e.querySelector(t);return i?e.offsetHeight-i.offsetHeight:e.offsetHeight})(this._mainContentDiv)}_getElementCoords(e,t=!1){const i=e.getBoundingClientRect();return(t?i.top:i.bottom)+window.scrollY}_addContentAd(e,t,i=document){var n,s;let o=null;const r=K(t),a=Z(t),l=(null==(s=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||null==(n=s.content)?void 0:n.enabled)?"adthrive-sticky-container":"",c=this.addAd(e,this.getDynamicElementId(t),t.position,[l,r,a,...t.classNames]);if(c){const e=J(t,c);if(e.length){c.style.minHeight=this.locationToMinHeight[t.location];o={clsDynamicAd:t,dynamicAd:t,element:c,sizes:e,name:`${t.location}_${t.sequence}`,infinite:i!==document}}}return o}getDynamicElementId(e){return`AdThrive_${e.location}_${e.sequence}_${this._device}`}getElements(e,t=document){return t.querySelectorAll(e)}addAd(e,t,i,n=[]){if(!document.getElementById(t)){const s=`
`;e.insertAdjacentHTML(i,s)}return document.getElementById(t)}_repeatDynamicAds(e){const t=[],i=e.location===n?99:this.locationMaxLazySequence.get(e.location),s=e.lazy?l(i,0):0,o=e.max,r=e.lazyMax,a=0===s&&e.lazy?o+r:Math.min(Math.max(s-e.sequence+1,0),o+r),d=Math.max(o,a);for(let i=0;i=o;t.push(c({},e,{sequence:n,lazy:s}))}}return t}_locationEnabled(e){const t=this._clsOptions.enabledLocations.includes(e.location),i=this._clsOptions.disableAds&&this._clsOptions.disableAds.all||document.body.classList.contains("adthrive-disable-all"),n=!document.body.classList.contains("adthrive-disable-content")&&!this._clsOptions.disableAds.reasons.has("content_plugin");return t&&!i&&n}constructor(e,t){this._clsOptions=e,this._adInjectionMap=t,this._recipeCount=0,this._mainContentHeight=0,this._mainContentDiv=null,this._totalAvailableElements=[],this._minDivHeight=250,this._densityDevice=h,this._pubLog={onePerViewport:!1,targetDensity:0,targetDensityUnits:0,combinedMax:0},this._densityMax=.99,this._smallerIncrementAttempts=0,this._absoluteMinimumSpacingByDevice=250,this._usedAbsoluteMinimum=!1,this._infPageEndOffset=0,this.locationMaxLazySequence=new Map([[n,5]]),this.locationToMinHeight={Below_Post:de,Content:de,Recipe:de,Sidebar:de};const{tablet:i,desktop:s}=this._clsOptions.siteAds.breakpoints;this._device=((e,t)=>{const i=window.innerWidth;return i>=t?"desktop":i>=e?"tablet":"phone"})(i,s),this._config=new a(e),this._clsOptions.enabledLocations=this._config.enabledLocations,this._clsTargetAdDensitySiteExperiment=this._clsOptions.siteAds.siteExperiments?new ce(this._clsOptions):null}}class ue{add(e,t,i,n=document){this._map.push({el:e,coords:t,dynamicAd:i,target:n})}get map(){return this._map}sort(){this._map.sort((({coords:e},{coords:t})=>e-t))}filterUsed(){this._map=this._map.filter((({dynamicAd:e})=>!e.used))}reset(){this._map=[]}constructor(){this._map=[]}}class pe extends ue{}function me(e,t){if(null==e)return{};var i,n,s={},o=Object.keys(e);for(n=0;n=0||(s[i]=e[i]);return s}class ge{get enabled(){return!0}}class ye extends ge{setPotentialPlayersMap(){const e=this._videoConfig.players||[],t=this._filterPlayerMap(),i=e.filter((e=>"stationaryRelated"===e.type&&e.enabled));return t.stationaryRelated=i,this._potentialPlayerMap=t,this._potentialPlayerMap}_filterPlayerMap(){const e=this._videoConfig.players,t={stickyRelated:[],stickyPlaylist:[],stationaryRelated:[]};return e&&e.length?e.filter((e=>{var t;return null==(t=e.devices)?void 0:t.includes(this._device)})).reduce(((e,t)=>(e[t.type]||(f.event(this._component,"constructor","Unknown Video Player Type detected",t.type),e[t.type]=[]),t.enabled&&e[t.type].push(t),e)),t):t}_checkPlayerSelectorOnPage(e){const t=this._potentialPlayerMap[e].map((e=>({player:e,playerElement:this._getPlacementElement(e)})));return t.length?t[0]:{player:null,playerElement:null}}_getOverrideElement(e,t,i){if(e&&t){const n=document.createElement("div");t.insertAdjacentElement(e.position,n),i=n}else{const{player:e,playerElement:t}=this._checkPlayerSelectorOnPage("stickyPlaylist");if(e&&t){const n=document.createElement("div");t.insertAdjacentElement(e.position,n),i=n}}return i}_shouldOverrideElement(e){const t=e.getAttribute("override-embed");return"true"===t||"false"===t?"true"===t:!!this._videoConfig.relatedSettings&&this._videoConfig.relatedSettings.overrideEmbedLocation}_checkPageSelector(e,t,i=[]){if(e&&t&&0===i.length){return!("/"===window.location.pathname)&&f.event("VideoUtils","getPlacementElement",new Error(`PSNF: ${e} does not exist on the page`)),!1}return!0}_getElementSelector(e,t,i){return t&&t.length>i?t[i]:(f.event("VideoUtils","getPlacementElement",new Error(`ESNF: ${e} does not exist on the page`)),null)}_getPlacementElement(e){const{pageSelector:t,elementSelector:i,skip:n}=e,s=k(t),{valid:o,elements:r}=s,a=me(s,["valid","elements"]),l=O(i),{valid:c,elements:d}=l,h=me(l,["valid","elements"]);if(""!==t&&!o)return f.error("VideoUtils","getPlacementElement",new Error(`${t} is not a valid selector`),a),null;if(!c)return f.error("VideoUtils","getPlacementElement",new Error(`${i} is not a valid selector`),h),null;if(!this._checkPageSelector(t,o,r))return null;return this._getElementSelector(i,d,n)||null}_getEmbeddedPlayerType(e){let t=e.getAttribute("data-player-type");return t&&"default"!==t||(t=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:"static"),this._stickyRelatedOnPage&&(t="static"),t}_getMediaId(e){const t=e.getAttribute("data-video-id");return!!t&&(this._relatedMediaIds.push(t),t)}_createRelatedPlayer(e,t,i,n){"collapse"===t?this._createCollapsePlayer(e,i):"static"===t&&this._createStaticPlayer(e,i,n)}_createCollapsePlayer(e,t){const{player:i,playerElement:n}=this._checkPlayerSelectorOnPage("stickyRelated"),s=i||this._potentialPlayerMap.stationaryRelated[0];if(s&&s.playerId){this._shouldOverrideElement(t)&&(t=this._getOverrideElement(i,n,t)),t=document.querySelector(`#cls-video-container-${e} > div`)||t,this._createStickyRelatedPlayer(c({},s,{mediaId:e}),t)}else f.error(this._component,"_createCollapsePlayer","No video player found")}_createStaticPlayer(e,t,i){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId){const n=this._potentialPlayerMap.stationaryRelated[0];this._createStationaryRelatedPlayer(c({},n,{mediaOrPlaylistId:e}),t,i)}else f.error(this._component,"_createStaticPlayer","No video player found")}_shouldRunAutoplayPlayers(){return!(!this._isVideoAllowedOnPage()||!this._potentialPlayerMap.stickyRelated.length&&!this._potentialPlayerMap.stickyPlaylist.length)}_setPlaylistMediaIdWhenStationaryOnPage(e,t){if(this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId&&e&&e.length){const i=e[0].getAttribute("data-video-id");return i?c({},t,{mediaId:i}):t}return t}_determineAutoplayPlayers(e){const t=this._component,i="VideoManagerComponent"===t,n=this._context;if(this._stickyRelatedOnPage)return void f.event(t,"stickyRelatedOnPage",i&&{device:n&&n.device,isDesktop:this._device}||{});const{playerElement:s}=this._checkPlayerSelectorOnPage("stickyPlaylist");let{player:o}=this._checkPlayerSelectorOnPage("stickyPlaylist");o&&o.playerId&&s?(o=this._setPlaylistMediaIdWhenStationaryOnPage(e,o),this._createPlaylistPlayer(o,s)):Math.random()<.01&&setTimeout((()=>{f.event(t,"noStickyPlaylist",i&&{vendor:"none",device:n&&n.device,isDesktop:this._device}||{})}),1e3)}_initializeRelatedPlayers(e){const t=new Map;for(let i=0;i{var e,t,i;return(e="generator",(null!=(i=null==(t=document.querySelector(`meta[name=${e}]`))?void 0:t.content)?i:null)||"").includes("Wix")||!!window.wixPerformanceMeasurements||!!window["wix-perf-measure"]||!!window.wixDevelopersAnalytics};class ve{start(){window.requestAnimationFrame&&this._adthrive&&this._adthrive.siteAds&&this._adthrive.siteAds.adOptions&&this._adthrive.siteAds.adOptions.clsOptimizedAds&&!fe()&&(this._clsOptions.disableAds=new T(window.adthrive),this._result&&(this._animationRequestId=window.requestAnimationFrame(this.addClsInsertion.bind(this))))}addClsInsertion(){document.body?(this._clsOptions.injectedFromSiteAds=!0,this._clsOptions.videoDisabledFromPlugin=!!document.body.classList.contains("adthrive-disable-video"),Y(".adthrive-ad{margin-top:10px;margin-bottom:10px;text-align:center;overflow-x:visible;clear:both;line-height:0}"),this.startClsInsertion()):"complete"===document.readyState||this._clsOptions.injectedFromSiteAds?window.cancelAnimationFrame(this._animationRequestId):this._animationRequestId=window.requestAnimationFrame(this.addClsInsertion.bind(this))}startClsInsertion(){if(!this._clsOptions.injectedSlots.some((e=>this._clsOptions.enabledLocations.includes(e.dynamicAd.location)))){new he(this._clsOptions,new pe).start()}new _e(new j(this._clsOptions),this._clsOptions).init()}constructor(e){this._clsOptions=e,this._expKey="clsins_ss",this._animationRequestId=0,this._adthrive=window.adthrive,this._clsOptions.siteAds=this._adthrive&&this._adthrive.siteAds||{},this._result=!0,this._clsOptions.setExperiment(this._expKey,this._result),this._config=new a(e),this._clsOptions.enabledLocations=this._config.enabledLocations}}try{(()=>{let e=new G;if(e.enabled&&e.injectedFromPlugin)return;e.error||(window.adthriveCLS={injectedFromPlugin:!1,injectedSlots:[],experiments:{},siteExperiments:{},injectedVideoSlots:[]},e=new G,new ve(e).start())})()}catch(e){f.error("CLS","siteinsertion-iife",e),window.adthriveCLS&&(window.adthriveCLS.injectedFromSiteAds=!1)}return e.ClsSiteInsertion=ve,e}({}); //esVersionDetection function supports(exp) { try { new Function(exp)(); } catch (e) { return false; } return true; } function isUserAgentInvalid() { return new RegExp('googleweblight|spider|crawler|curl|wget|ia_archiver|insights|baidu|bot|monitor|scraper|A6-Indexer|addthis|admantx|agentslug|alexa|anderspink|apache-httpclient|apachebench|apis-google|appengine-google|ask jeeves|asynchttpclient|awe.sm|baidu|barkrowler|biglotron|bingpreview|brandverify|bubing|butterfly|buzztalk|cf-uc|check_http|cloudflare|cmradar/0.1|coldfusion|comodo ssl checker|convera|copypants|crowsnest|curl|dap\/nethttp|daumoa|developers.google.com\/+\/web\/snippet\/|digitalpersona fingerprint software|drupact|duckduck|elb-healthchecker|embedly|eoaagent|europarchive|eventmachine httpclient|evrinid|exaleadcloudview|ezooms|ez publish|facebookexternalhit|feedburner|feedfetcher-google|findlink|findthatfile|flipboardproxy|garlik|genieo|getprismatic.com|ghost|gigablast|go http package|google( page speed insights| web preview|google-site-verification|-structured-data-testing-tool|-structureddatatestingtool)|hatena|headless|heritrix|htmlparser|http(_request2|client|s|unit)|httrack|hubspot|ichiro|icoreservice|idmarch|in(agist|sieve|stapaper)|ips-agent|jack|jakarta commons|java|jetslide|jobseeker|js-kit|kimengi|knows.is|kraken|laconica|libwww|lighthouse|linode|lipperhey|longurl|ltx71|lwp-trivial|mappydata|mastodon|mediapartners-google|megaindex.ru|metauri|mfe_expand|mixnode|mon(tastic|tools)|moreover|mrchrome|nberta|net(craft|researchserver|state|vibes)|newrelicpinger|newspaper|newsme|ning|nmap|nutch|online-domain-tools|paessler|page(peek|sinventory|thing)|panopta|peerindex|phantomjs|pingdom|plukkie|proximic|pu_in|publiclibraryarchive.org|python-(httplib2|requests|urllib)|quanti|queryseeker|quicklook|qwanti|re-animator|readability|rebelmouse|relateiq|riddler|rssmicro|ruby|scrapy|seo-audit|seodiver|seokicks|shopwiki|shortlinktranslate|siege|sistrix|site24x7|siteexplorer|skypeuripreview|slack|slurp|socialrank|sogou|spinn3r|squider|statuscake|stripe|summify|teeraid|teoma|test certificate info|tineye|traackr|tweetedtimes|twikle|twitjobsearch|twitmunin|twurly|typhoeus|unwindfetch|uptim(e|ia)|uptm.io|vagabondo|vb project|vigil|vkshare|wappalyzer|watchsumo|webceo|webdatascout|webmon|webscout|wesee|wget|whatsapp|whatweb|wikido|wordpress|wormly|wotbox|xenu link sleuth|xing-contenttabreceiver|yandex|yanga|yeti|yff35|yourls|zelist.ro|zibb|^Mozilla\/5\.0$|Viv\/2', 'i') .test(window.navigator.userAgent); } var supportsIO = 'IntersectionObserver' in window && 'IntersectionObserverEntry' in window && 'intersectionRatio' in window.IntersectionObserverEntry.prototype && 'isIntersecting' in window.IntersectionObserverEntry.prototype; var target = 'es5' if (supportsIO && supports('async () => Promise.resolve(({ ...{} })).finally(() => Symbol.asyncIterator)')) { target = 'es2018'; } var invalid = isUserAgentInvalid() ? 'invalid-ua' : ''; if(invalid === '') { w.adthrive.targetPath = '/' + target; } w.adthrive.cmd.push(function () { w.adthrive.setTargetingFlag('target', ([target, invalid]).filter(function (k) { return k != ''; })); }); //getMarmaladeData w.adthrive.marmaladeFinished = function() {}; var page = encodeURIComponent(location.href); var campaignsUrl = 'https://' + w.adthrive.host + '/api/v1/marmalade?siteid=57698a40eddace5b778a80a8&url=' + page + '&deliveryFeatures=additiveRaptiveFloors,amazonBetaApstag,consentManagerCMP,raptiveFloors,raptiveManualCookieSync,recencyFrequency,reissuingSticky,stickyBucketsLocalStorage,switzerlandGdpr,trafficShaping,ttdSync'; if (w.fetch) { fetch(campaignsUrl) .then(function(response) { w.adthrive.marmalade = response.json(); w.adthrive.marmalade.then(function(data) { w.adthrive.marmaladeFinished(data); }); }) .catch(function(error) { w.adthrive.cmd.push(function () { w.adthrive.logError('ads-site-origin-request', 'insertMarmaladeCode', ['Unable to get marmalade data', error]); }); }); } else { var xhrMarmalade = new XMLHttpRequest(); xhrMarmalade.onload = function() { if (xhrMarmalade.status === 200) { w.adthrive.marmalade = xhrMarmalade.response; w.adthrive.marmaladeFinished(w.adthrive.marmalade); } }; xhrMarmalade.open('GET', campaignsUrl, true); xhrMarmalade.responseType = 'json'; xhrMarmalade.send(); } // Additive Raptive floors w.adthrive.additiveRaptiveFloorsFinished = function() {}; var floorsUrl = 'https://' + w.adthrive.host + '/api/v2/additiveRaptiveFloors/57698a40eddace5b778a80a8'; var xhrFloors = new XMLHttpRequest(); xhrFloors.onload = function() { var status = xhrFloors.status; if (status === 200) { w.adthrive.additiveRaptiveFloors = xhrFloors.response; w.adthrive.additiveRaptiveFloorsFinished(w.adthrive.additiveRaptiveFloors); } else { w.adthrive.cmd.push(function () { w.adthrive.log = w.adthrive.log || console.log; w.adthrive.log('log', 'ads-site-origin-request', 'insertAdditiveRaptiveFloorsCode', ['Unable to get floor data', status]); }); } }; xhrFloors.open('GET', floorsUrl, true); xhrFloors.responseType = 'json'; xhrFloors.send(); // Raptive traffic shaping w.adthrive.trafficShapingFinished = function() {}; var trafficShapingUrl = 'https://' + w.adthrive.host + '/api/v2/trafficShaping/57698a40eddace5b778a80a8'; var xhrTrafficShaping = new XMLHttpRequest(); xhrTrafficShaping.onload = function() { var status = xhrTrafficShaping.status; if (status === 200) { w.adthrive.trafficShaping = xhrTrafficShaping.response; w.adthrive.trafficShapingFinished(w.adthrive.trafficShaping); } else { w.adthrive.cmd.push(function () { w.adthrive.log = w.adthrive.log || console.log; w.adthrive.log('log', 'ads-site-origin-request', 'insertTrafficShapingCode', ['Unable to get traffic shaping data', status]); }); } }; xhrTrafficShaping.open('GET', trafficShapingUrl, true); xhrTrafficShaping.responseType = 'json'; xhrTrafficShaping.send(); importScript( w.adthrive.baseUrl + w.adthrive.targetPath + '/js/adthrive.min.js' + '?deployment=' + w.adthrive.deployment + '&bucket='+ w.adthrive.bucket + '&deliveryFeatures=additiveRaptiveFloors,amazonBetaApstag,consentManagerCMP,raptiveFloors,raptiveManualCookieSync,recencyFrequency,reissuingSticky,stickyBucketsLocalStorage,switzerlandGdpr,trafficShaping,ttdSync' + '&siteid=57698a40eddace5b778a80a8' + '', false ); })(window, document);