[]
b.indexOf(d)&&(a[d]=c[d]);if(null!=c&&”function”===typeof Object.getOwnPropertySymbols){var e=0;for(d=Object.getOwnPropertySymbols(c);e b.indexOf(d[e])&&Object.prototype.propertyIsEnumerable.call(c,d[e])&&(a[d[e]]=c[d[e]])}return a}function I(c,b,a,d){var e=arguments.length,f=3>e?b:null===d?d=Object.getOwnPropertyDescriptor(b,a):d,g;if(“object”===typeof Reflect&&”function”===typeof Reflect.decorate)f=Reflect.decorate(c,b,a,d);else for(var h=c.length-1;0e?g(f):31.5*window.innerHeight?c:null},ua=function(c,b,a){void 0===a&&(a=document);var d=ta(a),e=d?[d]:[],f=[];c.forEach(function(h){var k=Array.from(a.querySelectorAll(h.elementSelector)).slice(0,h.skip);sa(h.elementSelector).forEach(function(l){var p=a.querySelectorAll(l);l=function(t){var n=p[t];if(b.map.some(function(x){return x.el.isEqualNode(n)}))return”continue”;(t=n&&n.parentElement)&&t!==document.body?e.push(t):e.push(n);-1===k.indexOf(n)&&f.push({dynamicAd:h,element:n})}; for(var m=0;m

d.offsetHeight?e:d})||document.body,b]},M=new (function(){function c(){var b=this;this.name=”StorageHandler”;this.disable=!1; this.removeLocalStorageValue=function(a){window.localStorage.removeItem(“adthrive_”.concat(a.toLowerCase()))};this.getLocalStorageValue=function(a,d,e,f,g){void 0===d&&(d=!0);void 0===e&&(e=!0);if(b.disable)return null;try{var h=window.localStorage.getItem(“”.concat(d?”adthrive_”:””).concat(e?a.toLowerCase():a));if(h){var k=JSON.parse(h),l=void 0!==f&&Date.now()-k.created>=f;if(k&&!l)return g&&b.setLocalStorageValue(a,k.value,d),k.value}}catch(p){}return null};this.setLocalStorageValue=function(a, d,e){void 0===e&&(e=!0);try{e=e?”adthrive_”:””;var f={value:d,created:Date.now()};window.localStorage.setItem(“”.concat(e).concat(a.toLowerCase()),JSON.stringify(f))}catch(g){}};this.isValidABGroupLocalStorageValue=function(a){return void 0!==a&&null!==a&&!(“number”===typeof a&&isNaN(a))};this.getOrSetLocalStorageValue=function(a,d,e,f,g,h,k){void 0===f&&(f=!0);void 0===g&&(g=!0);void 0===k&&(k=!0);e=b.getLocalStorageValue(a,k,f,e,g);if(null!==e)return e;d=d();b.setLocalStorageValue(a,d,k);h&&h(d); return d};this.getOrSetABGroupLocalStorageValue=function(a,d,e,f,g){var h;void 0===f&&(f=!0);e=b.getLocalStorageValue(“abgroup”,!0,!0,e,f);if(null!==e&&(f=e[a],b.isValidABGroupLocalStorageValue(f)))return f;d=d();a=y(y({},e),(h={},h[a]=d,h));b.setLocalStorageValue(“abgroup”,a);g&&g();return d}}c.prototype.init=function(){};return c}()),z;(function(c){c.amznbid=”amznbid”;c.amzniid=”amzniid”;c.amznp=”amznp”;c.amznsz=”amznsz”})(z||(z={}));var D;(function(c){c.ThirtyThreeAcross=”33across”;c.Adform=”adform”; c.Aidem=”aidem”;c.AidemServer=”aidem_ss”;c.AppNexus=”appnexus”;c.AmazonTAM=”amazon”;c.AmazonUAM=”AmazonUAM”;c.Colossus=”colossus”;c.ColossusServer=”col_ss”;c.Conversant=”conversant”;c.Concert=”concert”;c.Criteo=”criteo”;c.GumGum=”gumgum”;c.ImproveDigital=”improvedigital”;c.ImproveDigitalServer=”improve_ss”;c.IndexExchange=”ix”;c.Kargo=”kargo”;c.KargoServer=”krgo_ss”;c.MediaGrid=”grid”;c.MediaGridVideo=”gridvid”;c.Nativo=”nativo”;c.OpenX=”openx”;c.Ogury=”ogury”;c.OpenXServer=”opnx_ss”;c.Ozone=”ozone”; c.Pubmatic=”pubmatic”;c.PubmaticServer=”pubm_ss”;c.ResetDigital=”resetdigital”;c.Rtbhouse=”rtbhouse”;c.Rubicon=”rubicon”;c.RubiconServer=”rubi_ss”;c.Sharethrough=”sharethrough”;c.Teads=”teads”;c.Triplelift=”triplelift”;c.TripleliftServer=”tripl_ss”;c.TTD=”ttd”;c.Undertone=”undertone”;c.UndertoneServer=”under_ss”;c.Unruly=”unruly”;c.YahooSSP=”yahoossp”;c.YahooSSPServer=”yah_ss”;c.Verizon=”verizon”;c.Yieldmo=”yieldmo”})(D||(D={}));var U;(function(c){c.Prebid=”prebid”;c.GAM=”gam”;c.Amazon=”amazon”;c.Marmalade= “marmalade”;c.Floors=”floors”;c.CMP=”cmp”;c.Optable=”optable”})(U||(U={}));var V;(function(c){c.cm=”cm”;c.fbrap=”fbrap”;c.rapml=”rapml”})(V||(V={}));var W;(function(c){c.lazy=”lazy”;c.raptive=”raptive”;c.refresh=”refresh”;c.session=”session”;c.crossDomain=”crossdomain”;c.highSequence=”highsequence”;c.lazyBidPool=”lazyBidPool”})(W||(W={}));var X;(function(c){c.lazy=”l”;c.raptive=”rapml”;c.refresh=”r”;c.session=”s”;c.crossdomain=”c”;c.highsequence=”hs”;c.lazyBidPool=”lbp”})(X||(X={}));var Y;(function(c){c.Version= “Version”;c.SharingNotice=”SharingNotice”;c.SaleOptOutNotice=”SaleOptOutNotice”;c.SharingOptOutNotice=”SharingOptOutNotice”;c.TargetedAdvertisingOptOutNotice=”TargetedAdvertisingOptOutNotice”;c.SensitiveDataProcessingOptOutNotice=”SensitiveDataProcessingOptOutNotice”;c.SensitiveDataLimitUseNotice=”SensitiveDataLimitUseNotice”;c.SaleOptOut=”SaleOptOut”;c.SharingOptOut=”SharingOptOut”;c.TargetedAdvertisingOptOut=”TargetedAdvertisingOptOut”;c.SensitiveDataProcessing=”SensitiveDataProcessing”;c.KnownChildSensitiveDataConsents= “KnownChildSensitiveDataConsents”;c.PersonalDataConsents=”PersonalDataConsents”;c.MspaCoveredTransaction=”MspaCoveredTransaction”;c.MspaOptOutOptionMode=”MspaOptOutOptionMode”;c.MspaServiceProviderMode=”MspaServiceProviderMode”;c.SubSectionType=”SubsectionType”;c.Gpc=”Gpc”})(Y||(Y={}));var Z;(function(c){c[c.NA=0]=”NA”;c[c.OptedOut=1]=”OptedOut”;c[c.OptedIn=2]=”OptedIn”})(Z||(Z={}));var C;(function(c){c.AdDensity=”addensity”;c.AdLayout=”adlayout”;c.FooterCloseButton=”footerclose”;c.Interstitial=”interstitial”; c.RemoveVideoTitleWrapper=”removevideotitlewrapper”;c.StickyOutstream=”stickyoutstream”;c.StickyOutstreamOnStickyPlayer=”sospp”;c.VideoAdvancePlaylistRelatedPlayer=”videoadvanceplaylistrp”;c.MobileStickyPlayerPosition=”mspp”})(C||(C={}));var J;(function(c){c.Desktop=”desktop”;c.Mobile=”mobile”})(J||(J={}));var G;(function(c){c.Video_Collapse_Autoplay_SoundOff=”Video_Collapse_Autoplay_SoundOff”;c.Video_Individual_Autoplay_SOff=”Video_Individual_Autoplay_SOff”;c.Video_Coll_SOff_Smartphone=”Video_Coll_SOff_Smartphone”; c.Video_In_Post_ClicktoPlay_SoundOn=”Video_In-Post_ClicktoPlay_SoundOn”})(G||(G={}));var aa;(aa||(aa={})).None=”none”;var ba;(function(c){c.Default=”default”;c.AZ_Animals=”5daf495ed42c8605cfc74b0b”;c.Natashas_Kitchen=”55bccc97303edab84afd77e2″;c.RecipeTin_Eats=”55cb7e3b4bc841bd0c4ea577″;c.Sallys_Baking_Recipes=”566aefa94856897050ee7303″;c.Spend_With_Pennies=”541917f5a90318f9194874cf”})(ba||(ba={}));var wa=function(c,b){var a=c.adDensityEnabled;c=c.adDensityLayout.pageOverrides.find(function(d){return!!document.querySelector(d.pageSelector)&& (d[b].onePerViewport||”number”===typeof d[b].adDensity)});return a?!c:!0},ca=function(c){try{return{valid:!0,elements:document.querySelectorAll(c)}}catch(b){return y({valid:!1},b)}},da=function(c){return””===c?{valid:!0}:ca(c)},xa=function(c){var b=c.reduce(function(a,d){return d.weight?d.weight+a:a},0);return 0b.top+b.height/2&&0b.top+b.height/2};c.createQueryString=function(b){return Object.keys(b).map(function(a){return””.concat(a,”=”).concat(b[a])}).join(“&”)};c.createEncodedQueryString=function(b){return Object.keys(b).map(function(a){return””.concat(a,”=”).concat(encodeURIComponent(b[a]))}).join(“&”)};c.setMobileLocation=function(b){b=b||”bottom-right”;”top-left”=== b?b=”adthrive-collapse-top-left”:”top-right”===b?b=”adthrive-collapse-top-right”:”bottom-left”===b?b=”adthrive-collapse-bottom-left”:”bottom-right”===b?b=”adthrive-collapse-bottom-right”:”top-center”===b&&(b=E()?”adthrive-collapse-top-center”:”adthrive-collapse-bottom-right”);return b};c.addMaxResolutionQueryParam=function(b){var a=E()?”320″:”1280″;a=”max_resolution=”.concat(a);var d=r(String(b).split(“?”),2);b=d[0];a=(d=d[1])?d+”&”.concat(a):a;return””.concat(b,”?”).concat(a)};return c}(),Ba=function(){return function(c){this._clsOptions= c;this.removeVideoTitleWrapper=u(this._clsOptions.siteAds.adOptions.removeVideoTitleWrapper,!1);c=this._clsOptions.siteAds.videoPlayers;this.footerSelector=u(c&&c.footerSelector,””);this.players=u(c&&c.players.map(function(b){b.mobileLocation=Aa.setMobileLocation(b.mobileLocation);return b}),[]);this.relatedSettings=c&&c.contextual}}(),Ca=function(){return function(c){this.relatedPlayerAdded=this.playlistPlayerAdded=this.mobileStickyPlayerOnPage=!1;this.footerSelector=””;this.removeVideoTitleWrapper= !1;this.videoAdOptions=new Ba(c);this.players=this.videoAdOptions.players;this.relatedSettings=this.videoAdOptions.relatedSettings;this.removeVideoTitleWrapper=this.videoAdOptions.removeVideoTitleWrapper;this.footerSelector=this.videoAdOptions.footerSelector}}();D=function(){return function(){}}();var H=function(c){function b(a){var d=c.call(this)||this;d._probability=a;return d}v(b,c);b.prototype.get=function(){if(0>this._probability||1=d)return k}}catch(p){var l={error:p}}finally{try{g&&!g.done&&(a=f.return)&&a.call(f)}finally{if(l)throw l.error;}}return this._default};Object.defineProperty(b.prototype,”totalWeight”,{get:function(){return this._choices.reduce(function(a,d){return a+d.weight},0)},enumerable:!1,configurable:!0});return b}(D),Ra=function(c){for(var b=5381,a=c.length;a;)b=33*b^c.charCodeAt(–a);return b>>>0},la=function(){return function(c,b,a){var d=a.value;d&&(a.value=function(){for(var e=this,f= [],g=0;g %o”,”No experiment config found. Defaulting to control.”),”control”;if(!this._mappedChoices||0=== this._mappedChoices.length)return q.error(“CLSWeightedChoiceSiteExperiment”,”run”,”() => %o”,”No experiment variants found. Defaulting to control.”),”control”;var a=(new R(this._mappedChoices)).get();if(this._isValidResult(a))return a;q.error(“CLSWeightedChoiceSiteExperiment”,”run”,”() => %o”,”Invalid result from experiment choices. Defaulting to control.”);return”control”};return b}(function(){function c(){}Object.defineProperty(c.prototype,”enabled”,{get:function(){return void 0!==this.experimentConfig}, enumerable:!1,configurable:!0});c.prototype._isValidResult=function(b,a){void 0===a&&(a=function(){return!0});return a()&&M.isValidABGroupLocalStorageValue(b)};return c}());var ma=function(){function c(b){var a=this,d,e;this.siteExperiments=[];this._clsOptions=b;this._device=E()?”mobile”:”desktop”;this.siteExperiments=null!==(e=null===(d=this._clsOptions.siteAds.siteExperiments)||void 0===d?void 0:d.filter(function(f){var g=f.key;var h=a._device;if(f){var k=!!f.enabled,l=null==f.dateStart||Date.now()>= f.dateStart,p=null==f.dateEnd||Date.now() %o”,”No experiment config found. Defaulting to empty class name.”), “”;var a=(new R(this._mappedChoices)).get();if(this._isValidResult(a))return a;q.error(“CLSAdLayoutSiteExperiment”,”run”,”() => %o”,”Invalid result from experiment choices. Defaulting to empty class name.”);return””};b.prototype._mapChoices=function(){return this._choices.map(function(a){return{weight:a.weight,choice:a.value}})};I([la(),B(“design:type”,Function),B(“design:paramtypes”,[]),B(“design:returntype”,void 0)],b.prototype,”run”,null);return b}(D),Ta=function(c){function b(a){var d=c.call(this)|| this;d._choices=[];d._mappedChoices=[];d._result=”control”;d._resultValidator=function(e){return”number”===typeof e};d.key=C.AdDensity;d.abgroup=C.AdDensity;d._clsSiteExperiments=new ma(a);d.experimentConfig=d._clsSiteExperiments.getSiteExperimentByKey(d.key);d.enabled&&d.experimentConfig&&(d._choices=d.experimentConfig.variants,d._mappedChoices=d._mapChoices(),d._result=d.run(),a.setWeightedChoiceExperiment(d.abgroup,d._result,!0));return d}v(b,c);Object.defineProperty(b.prototype,”result”,{get:function(){return this._result}, enumerable:!1,configurable:!0});b.prototype.run=function(){if(!this.enabled)return q.error(“CLSTargetAdDensitySiteExperiment”,”run”,”() => %o”,”No experiment config found. Defaulting to control.”),”control”;var a=(new R(this._mappedChoices)).get();if(this._isValidResult(a))return a;q.error(“CLSTargetAdDensitySiteExperiment”,”run”,”() => %o”,”Invalid result from experiment choices. Defaulting to control.”);return”control”};b.prototype._mapChoices=function(){return this._choices.map(function(a){var d= a.value;return{weight:a.weight,choice:”number”===typeof d?(d||0)/100:”control”}})};I([la(),B(“design:type”,Function),B(“design:paramtypes”,[]),B(“design:returntype”,void 0)],b.prototype,”run”,null);return b}(D),Ua=function(c){function b(){var a=c.call(this)||this;a._result=!1;a.abgroup=”scae”;a.key=”StickyContainerAds”;a._choices=[{choice:!0},{choice:!1}];a.weight=.99;a._result=a.run();a.setExperimentKey();return a}v(b,c);Object.defineProperty(b.prototype,”result”,{get:function(){return this._result}, enumerable:!1,configurable:!0});b.prototype.run=function(){return(new H(this.weight)).get()};return b=I([P(“StickyContainerAdsExperiment”),B(“design:paramtypes”,[])],b)}(z),Va=function(c){function b(){var a=c.call(this)||this;a._result=!1;a.abgroup=”scre”;a.key=”StickyContainerRecipe”;a._choices=[{choice:!0},{choice:!1}];a.weight=.99;a._result=a.run();a.setExperimentKey();return a}v(b,c);Object.defineProperty(b.prototype,”result”,{get:function(){return this._result},enumerable:!1,configurable:!0}); b.prototype.run=function(){return(new H(this.weight)).get()};return b=I([P(“StickyContainerRecipeExperiment”),B(“design:paramtypes”,[])],b)}(z),Ya=function(){function c(b,a){this._clsOptions=b;this._adInjectionMap=a;this._mainContentHeight=this._recipeCount=0;this._mainContentDiv=null;this._totalAvailableElements=[];this._minDivHeight=250;this._densityDevice=J.Desktop;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([[“Recipe”,5]]);this.locationToMinHeight={Below_Post:”250px”,Content:”250px”,Recipe:”250px”,Sidebar:”250px”};a=this._clsOptions.siteAds.breakpoints;var d=a.tablet;var e=window.innerWidth;a=e>=a.desktop?”desktop”:e>=d?”tablet”:”phone”;this._device=a;this._config=new Na(b);this._clsOptions.enabledLocations=this._config.enabledLocations;this._clsTargetAdDensitySiteExperiment= this._clsOptions.siteAds.siteExperiments?new Ta(this._clsOptions):null;this._stickyContainerAdsExperiment=new Ua;this._stickyContainerRecipeExperiment=new Va;this._removeRecipeCapExperiment=new Qa}c.prototype.start=function(){var b=this,a,d,e,f;try{Oa(this._device);var g=new Sa(this._clsOptions);if(g.enabled){var h=g.result,k=h.startsWith(“.”)?h.substring(1):h;if(/^[-_a-zA-Z]+[-_a-zA-Z0-9]*$/.test(k))try{document.body.classList.add(k)}catch(m){q.error(“ClsDynamicAdsInjector”,”start”,”Uncaught CSS Class error: “.concat(m))}else q.error(“ClsDynamicAdsInjector”, “start”,”Invalid class name: “.concat(k))}var l=Ma(this._device,this._clsOptions.siteAds).filter(function(m){return b._locationEnabled(m)}).filter(function(m){return m.devices.includes(b._device)}).filter(function(m){return 0===m.pageSelector.length||null!==document.querySelector(m.pageSelector)}),p=this.inject(l);(null===(d=null===(a=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||void 0===a?void 0:a.content)||void 0===d?0:d.enabled)&&this._stickyContainerAdsExperiment.result&&!ka(this._clsOptions.siteAds.adOptions.stickyContainerConfig.blockedSelectors|| [])&&Pa(null===(f=null===(e=this._clsOptions.siteAds.adOptions.stickyContainerConfig)||void 0===e?void 0:e.content)||void 0===f?void 0:f.minHeight);p.forEach(function(m){return b._clsOptions.setInjectedSlots(m)})}catch(m){q.error(“ClsDynamicAdsInjector”,”start”,m)}};c.prototype.inject=function(b,a){void 0===a&&(a=document);this._densityDevice=”desktop”===this._device?J.Desktop:J.Mobile;this._overrideDefaultAdDensitySettingsWithSiteExperiment();var d=this._clsOptions.siteAds,e=u(d.adDensityEnabled, !0),f=d.adDensityLayout&&e;d=b.filter(function(g){return f?”Content”!==g.location:g});b=b.filter(function(g){return f?”Content”===g.location:null});return w(w([],r(d.length?this._injectNonDensitySlots(d,a):[]),!1),r(b.length?this._injectDensitySlots(b,a):[]),!1)};c.prototype._injectNonDensitySlots=function(b,a){var d,e=this,f,g,h;void 0===a&&(a=document);var k=[],l=[];this._stickyContainerRecipeExperiment.result&&b.some(function(n){return”Recipe”===n.location&&n.sticky})&&!ka((null===(f=this._clsOptions.siteAds.adOptions.stickyContainerConfig)|| void 0===f?void 0:f.blockedSelectors)||[])&&(f=this._clsOptions.siteAds.adOptions.stickyContainerConfig,f=”phone”===this._device?null===(g=null===f||void 0===f?void 0:f.recipeMobile)||void 0===g?void 0:g.minHeight:null===(h=null===f||void 0===f?void 0:f.recipeDesktop)||void 0===h?void 0:h.minHeight,T(“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:”.concat(f? f:400,”px !important;n margin: 10px 0 10px 0;n background-color: #FAFAFA;n padding-bottom:0px;n }n “)));try{for(var p=L(b),m=p.next();!m.done;m=p.next())this._insertNonDensityAds(m.value,k,l,a)}catch(n){var t={error:n}}finally{try{m&&!m.done&&(d=p.return)&&d.call(p)}finally{if(t)throw t.error;}}l.forEach(function(n){n.element.style.minHeight=e.locationToMinHeight[n.location]});return k};c.prototype._injectDensitySlots=function(b,a){void 0===a&&(a=document);try{this._calculateMainContentHeightAndAllElements(b, a)}catch(h){return[]}var d=this._getDensitySettings(b,a);b=d.onePerViewport;var e=d.targetAll,f=d.targetDensityUnits,g=d.combinedMax;d=d.numberOfUnits;this._absoluteMinimumSpacingByDevice=b?window.innerHeight:this._absoluteMinimumSpacingByDevice;if(!d)return[];this._adInjectionMap.filterUsed();this._findElementsForAds(d,b,e,g,f,a);return this._insertAds()};c.prototype._overrideDefaultAdDensitySettingsWithSiteExperiment=function(){var b;if(null===(b=this._clsTargetAdDensitySiteExperiment)||void 0=== b?0:b.enabled)b=this._clsTargetAdDensitySiteExperiment.result,”number”===typeof b&&(this._clsOptions.siteAds.adDensityEnabled=!0,this._clsOptions.siteAds.adDensityLayout[this._densityDevice].adDensity=b)};c.prototype._getDensitySettings=function(b,a){void 0===a&&(a=document);var d=this._clsOptions.siteAds.adDensityLayout,e=this._determineOverrides(d.pageOverrides);e=e.length?e[0]:d[this._densityDevice];d=this._clsOptions.getTargetDensity(e.adDensity);e=e.onePerViewport;var f=this._shouldTargetAllEligible(d), g=this._getTargetDensityUnits(d,f);b=this._getCombinedMax(b,a);a=Math.min.apply(Math,w([],r(w([this._totalAvailableElements.length,g],r(0=this._mainContentHeight&&1h._smallerIncrementAttempts&&(++h._smallerIncrementAttempts,k(h._getSmallerIncrement(l)))};b=this._getInsertEvery(b,a,f);k(b)};c.prototype._getSmallerIncrement=function(b){b*=.6;b<=this._absoluteMinimumSpacingByDevice&&(b=this._absoluteMinimumSpacingByDevice,this._usedAbsoluteMinimum= !0);return b};c.prototype._insertNonDensityAds=function(b,a,d,e){void 0===e&&(e=document);var f=0,g=0,h=0;0k.length)return”break”;var x=l[n];if(0 b?window.innerHeight:b};c.prototype._useWiderSpacing=function(b,a){return this._mainContentHeight/Math.min(b,a)};c.prototype._useSmallestSpacing=function(b){return b&&window.innerHeight>this._absoluteMinimumSpacingByDevice?window.innerHeight:this._absoluteMinimumSpacingByDevice};c.prototype._moreAvailableElementsThanUnitsToInject=function(b,a){return this._totalAvailableElements.length>b||this._totalAvailableElements.length>a};c.prototype._logDensityInfo=function(b,a,d){b=this._pubLog;b.onePerViewport; b.targetDensity;b.combinedMax};c.prototype._checkElementSpacing=function(b){var a=b.dynamicAd,d=b.element,e=b.insertEvery,f=b.targetAll;b=b.target;b=void 0===b?document:b;(this._isFirstAdInjected()||this._hasProperSpacing(d,a,f,e))&&this._markSpotForContentAd(d,y({},a),b)};c.prototype._isFirstAdInjected=function(){return!this._adInjectionMap.map.length};c.prototype._markSpotForContentAd=function(b,a,d){void 0===d&&(d=document);this._adInjectionMap.add(b,this._getElementCoords(b,”beforebegin”===a.position|| “afterbegin”===a.position),a,d);this._adInjectionMap.sort()};c.prototype._hasProperSpacing=function(b,a,d,e){var f=”beforebegin”===a.position||”afterbegin”===a.position;a=”beforeend”===a.position||”afterbegin”===a.position;d=d||this._isElementFarEnoughFromOtherAdElements(b,e,f);f=a||this._isElementNotInRow(b,f);b=-1===b.id.indexOf(“AdThrive_”.concat(“Below_Post”));return d&&f&&b};c.prototype._isElementFarEnoughFromOtherAdElements=function(b,a,d){b=this._getElementCoords(b,d);var e=!1;for(d=0;dthis._adInjectionMap.map[d].coords&&(!e||b+ae)return d[e];q.event(“VideoUtils”, “getPlacementElement”,Error(“ESNF: “.concat(a,” does not exist on the page”)));return null};b.prototype._getPlacementElement=function(a){var d=a.pageSelector,e=a.elementSelector;a=a.skip;var f=da(d),g=f.valid,h=f.elements;f=S(f,[“valid”,”elements”]);var k=ca(e),l=k.valid,p=k.elements;k=S(k,[“valid”,”elements”]);return””===d||g?l?this._checkPageSelector(d,g,h)?this._getElementSelector(e,p,a)||null:null:(q.error(“VideoUtils”,”getPlacementElement”,Error(“”.concat(e,” is not a valid selector”)),k),null): (q.error(“VideoUtils”,”getPlacementElement”,Error(“”.concat(d,” is not a valid selector”)),f),null)};b.prototype._getEmbeddedPlayerType=function(a){(a=a.getAttribute(“data-player-type”))&&”default”!==a||(a=this._videoConfig.relatedSettings?this._videoConfig.relatedSettings.defaultPlayerType:”static”);this._stickyRelatedOnPage&&(a=”static”);return a};b.prototype._getMediaId=function(a){return(a=a.getAttribute(“data-video-id”))?(this._relatedMediaIds.push(a),a):!1};b.prototype._createRelatedPlayer= function(a,d,e,f){“collapse”===d?this._createCollapsePlayer(a,e):”static”===d&&this._createStaticPlayer(a,e,f)};b.prototype._createCollapsePlayer=function(a,d){var e=this._checkPlayerSelectorOnPage(“stickyRelated”),f=e.player;e=e.playerElement;var g=f?f:this._potentialPlayerMap.stationaryRelated[0];g&&g.playerId?(this._shouldOverrideElement(d)&&(d=this._getOverrideElement(f,e,d)),d=document.querySelector(“#cls-video-container-“.concat(a,” > div”))||d,this._createStickyRelatedPlayer(y(y({},g),{mediaId:a}), d)):q.error(this._component,”_createCollapsePlayer”,”No video player found”)};b.prototype._createStaticPlayer=function(a,d,e){this._potentialPlayerMap.stationaryRelated.length&&this._potentialPlayerMap.stationaryRelated[0].playerId?this._createStationaryRelatedPlayer(y(y({},this._potentialPlayerMap.stationaryRelated[0]),{mediaOrPlaylistId:a}),d,e):q.error(this._component,”_createStaticPlayer”,”No video player found”)};b.prototype._shouldRunAutoplayPlayers=function(){return this._isVideoAllowedOnPage()&& (this._potentialPlayerMap.stickyRelated.length||this._potentialPlayerMap.stickyPlaylist.length)?!0:!1};b.prototype._determineAutoplayPlayers=function(){var a=this._component,d=”VideoManagerComponent”===a,e=this._config;if(this._stickyRelatedOnPage)q.event(a,”stickyRelatedOnPage”,d&&{device:e&&e.context.device,isDesktop:this._device}||{});else{var f=this._checkPlayerSelectorOnPage(“stickyPlaylist”),g=f.player;f=f.playerElement;g&&g.playerId&&g.playlistId&&f?this._createPlaylistPlayer(g,f):q.event(a, “noStickyPlaylist”,d&&{vendor:”none”,device:e&&e.context.device,isDesktop:this._device}||{})}};b.prototype._initializeRelatedPlayers=function(a){for(var d=new Map,e=0;e 0 || rocketlazy_count > 0){ lazyLoadInstance.update(); } } ); var b = document.getElementsByTagName(“body”)[0]; var config = { childList: true, subtree: true }; observer.observe(b, config); } }, false);]]>‘,a=’]]>

Source