(function(exoDynamicParams) {if (Array.isArray(window.QueueManager) || typeof window.QueueManager === "undefined") { window.QueueManager = (function QueueManager() { var queueList = []; var waitingList = []; var free = true; // true represents 'green', false represents 'red' /** * Push a new item to the queue * * @param {string} key * @param {*} args * @return {QueueManager} */ var enqueue = function (key, args) { if (free) { initializeQueueKey(queueList, key); queueList[key].push(args); } else { initializeQueueKey(waitingList, key); waitingList.push(args); } return this; }; var initializeQueueKey = function (queue, key) { if (!queue.hasOwnProperty(key)) { queue[key] = []; } }; /** * Process queue * * @param {string} key * @param {function} callback * @param {number=} interval */ var processQueue = function (key, callback, interval) { setInterval(function () { if (!free) { return; } if (!queueList.hasOwnProperty(key) || queueList[key].length === 0) { return; } free = false; callback( queueList[key].splice(0) // Get all pending processes ); // Move processes from waiting list to the queue list if (waitingList.hasOwnProperty(key) && waitingList.length > 0) { queueList[key].push(...waitingList[key]); waitingList = []; } free = true; }, interval || 50); }; return { enqueue: enqueue, processQueue: processQueue }; })(); };!function(){var e=null===window.AdProvider?[]:window.AdProvider,t={name:exoDynamicParams.network,syndication:exoDynamicParams.syndication,asyncScriptInfoTag:exoDynamicParams.asyncScriptInfoTag,tcfEnabled:exoDynamicParams.tcfEnabled,hash:exoDynamicParams.hash,shortHash:exoDynamicParams.shortHash};(Array.isArray(window.AdProvider)||void 0===window.AdProvider)&&(window.AdProvider=function(){var e,n,r=[],a=[],o=null,i={container:[],content:[]},s=[],d={},c=0,u=[],l=[],p=[],f=[],h=[],y=null,v=null,m=!1,g=!1,b=["native_ad"],w=["native_ad"],O=[],_=[],P=window,A={},z=QueueManager,x=[],S=function(e){var t=(new Date).toISOString()+": "+e;console.log(t),_.push(t)};function j(e){var t={};try{t="string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){}var n=t.__tcfapiReturn;n&&"function"==typeof A[n.callId]&&A[n.callId](n.returnValue,n.success)}var R=function(){return{gdpr:0}},E=function(e){return{gdpr:e.gdprApplies?1:0,consent:e.tcString}},I=function(e){return e?h:l},k=function(e,t){for(var n="",r=t||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",a=0;a{if(t[r]){var a=t[r],o=e.getAttribute(r);Object.prototype.hasOwnProperty.call(a,"toApiParser")&&"function"==typeof a.toApiParser&&(o=a.toApiParser(o)),n[a.apiKey]=o}else if(r.indexOf("data-")>=0){var i=r.replace("data-","");n.custom_targeting[i]=e.getAttribute(r)}}));var r=document.createElement("div");e.parentElement.insertBefore(r,e),C({zone:n,where:r}),e.setAttribute("data-processed",!0)},q=function(e,t){var n=Object.keys(e)[0],r=e[n];switch(n){case"addUnit":C(r);break;case"serve":H(c,r,t);break;default:S("Action not recognized by AdProvider: "+n)}},D=function(e,t){if(void 0===t){for(var n=0;nDate.now()}));e.cids_viewed=i.map((function(e){return e.cid}))}}(d.user);for(var c=["cookieconsent","el","scr_info"],u=0;u{e=t,V(p,d)}))},V=function(t,n){null!==e&&"object"==typeof e&&(n.user.ch_ua=e);try{t.send(JSON.stringify(n))}catch(e){S("error")}},U=function(){return navigator.userAgentData&&navigator.userAgentData.getHighEntropyValues?navigator.userAgentData.getHighEntropyValues(["architecture","bitness","model","platformVersion","fullVersionList"]):new Promise(((e,t)=>{e(null)}))},K=function(e,n,r){S("Request #"+n+" handling the response");var a=JSON.parse(e),i=!1,d=void 0!==a.errors?a.errors:[],c=I(r);if(Array.isArray(c[n])||(c[n]=[]),void 0!==a.zones){void 0!==a.user&&(p[n]=a.user),s[n]=a.renderers,function(e){var n=t.shortHash,r=o,a={};null!==r&&"{}"!==r&&(a=JSON.parse(r)),Object.prototype.hasOwnProperty.call(a,n)||(a[n]=[]),Object.prototype.hasOwnProperty.call(e,"zones")&&Array.isArray(e.zones)&&e.zones.map((function(e){if(null!==e&&Object.prototype.hasOwnProperty.call(e,"data")&&null!==e.data&&Object.prototype.hasOwnProperty.call(e,"cid")&&(0===a[n].length||!a[n].some((function(t){return t.cid===e.data.cid})))){var t=new Date((new Date).getTime()+18e5).getTime();a[n].push({cid:parseInt(e.data.cid),time:parseInt(t)})}}));var i=JSON.stringify(a);"{}"!==i&&(o=i)}(a);for(var u=0;u0?O.filter((e=>-1!==w.indexOf(e.type))):function(e){if(O.length>0)for(var t in e){var n=e[t];for(var r in O)O[r].uid===n.uid&&(O[r]=n)}else O=e;return e}(r=Z(e,t));for(var a=te(e).cookieconsent,o=0;o0&&(c=u[0])}else c=i.dom.placeholder;d&&c&&d.call(null,e,i,c,a)}},Z=function(e,t){var n,r=[],a=function(e){return e?f:u}(t),o=I(t),s=i.container.group;for(var d in o[e])if(Object.prototype.hasOwnProperty.call(o[e],d)){var c=o[e][d];if(null!==c){var l=c.type;if(void 0!==c.group){var p=a[e][d].placeholder;re(c,p);for(var h={dom:{placeholder:p,doc_reference:document},orientation:c.group.orientation,ad_items:c.group.ad_items},y=s.call(null,e,h),v=0;v0&&n>=e.data.capping)return!1}var r=!1;Object.prototype.hasOwnProperty.call(e.data,"isVast")&&(r=e.data.isVast);var a=!0!==e.data.campaign_already_displayed&&"in_page_push_notification"!==t;return r?a:a&&"outstream_video"!==t}function te(e){return p[e]}var ne=function(e,t){t.notificationDisplayedCount=0,Object.prototype.hasOwnProperty.call(e,"notificationDisplayedCount")&&(t.notificationDisplayedCount=e.notificationDisplayedCount),t.processNextNotification=function(t){e.notificationDisplayedCount=t;var n,r,a=f.length;f.push([e]),n=e,S("Request #"+(r=a)+" from delayed request is being served."),M(n.zones,n.requestData,r,!0)}},re=function(e,t){if(void 0!==e.original_zone){var n=e.original_zone.data.width,r=e.original_zone.data.height;t.parentElement.style.width="100%",t.parentElement.style.maxWidth=n+"px",t.parentElement.style.overflow="hidden",t.parentElement.style.margin="auto",t.parentElement.style.display="inline-block",t.parentElement.style.height="html_banner"===e.data.media?"100%":"auto",t.parentElement.style.maxHeight=r+"px",t.parentElement.style.overflow="hidden",t.parentElement.style.margin="auto",t.parentElement.style.display="inline-block"}},ae=function(e){return Object.prototype.hasOwnProperty.call(e.data,"refresh_rate")&&e.data.refresh_rate>0},oe=function(e,t){Object.prototype.hasOwnProperty.call(e,"multizoneid")&&(t.multizoneid=e.multizoneid)},ie=function(e,n,r,a){var o,i=e.uid;"object"!=typeof(o=i in x?x[i]:a?f[n][r]:{placeholder:e.dom.placeholder,requestData:u[n][r].requestData,zones:u[n][r].zones.map((function(t){return t.id=e.idzone,oe(e,t),t}))}).adRefresher?(z.processQueue(t.shortHash,(function(e){var n=[];c++,e.forEach((function(e){void 0===f[c]&&(f[c]=[]),f[c].push(e),n.push(e.zones)})),M(n,{},c,!0,t)}),50),o.adRefresher=new window.ExoAdsRefresh(e.dom.placeholder,e.idzone,e.data.refresh_rate,(function(e){z.enqueue(t.shortHash,e)}),o,e.data.max_number_refresh_iteration),x[i]=o):o.adRefresher.performImpressionReset()},se=function(e,t,n){var r={idzone:e.idzone,type:e.type,dom:{placeholder:t,doc_reference:n},data:e.data,uid:t.getAttribute("data-uid")};return void 0!==e.original_zone&&(r.original_zone=e.original_zone),oe(e,r),r},de=function(e){if(null!==e.data){var t=e.data,n=!1;Object.prototype.hasOwnProperty.call(t,"isVast")&&(n=t.isVast);var r=!n;if(Object.prototype.hasOwnProperty.call(t,"ad_items")&&Array.isArray(t.ad_items)){var a=t.ad_items;for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&Object.prototype.hasOwnProperty.call(a[o],"impression")&&ce(a[o].impression,e.idzone,o,r)}else Object.prototype.hasOwnProperty.call(t,"impression")&&ce(t.impression,e.idzone,void 0,r)}},ce=function(e,t,n,r){var a=function(e,t){var n="Error tracking the impression from zone "+e;void 0!==t&&(n+=" ad #"+t),S(n)},o=new XMLHttpRequest;o.onreadystatechange=function(){o.readyState===XMLHttpRequest.DONE&&200!=o.status&&a(t,n)},o.open("GET",e),void 0!==r&&!0===r&&(o.withCredentials=!0);try{o.send()}catch(e){a(t,n)}},ue=function(e){try{var t,n,r,a=document.cookie.split(";")}catch(e){return}for(t=0;t0;)D(e.shift())},push:D,serve:H,getDebugMessages:function(){return _},getUserData:te,formatImage:function(e,t){return t},formatLink:function(e,t){return t},openLink:function(e,t,n,r){var a,o;void 0!==n&&"get"!==n&&"post"!==n&&S("openLink() trying to force invalid method"),void 0!==e&&(e.returnValue=!1,e.preventDefault&&e.preventDefault(),e.stopPropagation()),r&&(t+="&clickX="+e.clientX,t+="&clickY="+e.clientY);var i=n||"get";-1!==t.indexOf("?")?o=function(e){for(var t={},n=e.substring(e.indexOf("?")+1).split("&"),r=0;ra.options.maxAllowedVastTagRedirects&&!a.inLineFound?a.stopProcessAndReportError(8):a.processVastXml(n,r,i)}else a.stopProcessAndReportError(6)}else a.stopProcessAndReportError(4)}else a.stopProcessAndReportError(3);else a.stopProcessAndReportError(2)})),t++):a.stopProcessAndReportError(1)},processVastXml:function(e,t,r){var i=this;if(e){var a=e.getElementsByTagName("Impression");null!==a&&i.registerImpressionEvents(a,t);var n=e.getElementsByTagName("Error");null!==n&&i.registerErrorEvents(n,t);var s=null,o=null,l=null,g=e.getElementsByTagName("Extensions");if(g.length&&g[0].getElementsByTagName("Extension").length){var c=g[0].getElementsByTagName("TitleCTA");if(c.length){var d=c[0].getElementsByTagName("DisplayUrl"),h=c[0].getElementsByTagName("PCText"),u=c[0].getElementsByTagName("Tracking");null!=d&&(s=this.extractNodeData(d[0])),null!=h&&(o=this.extractNodeData(h[0])),null!=u&&(l=this.extractNodeData(u[0]));var m={displayUrl:s,ctaText:o,tracking:l};t.videoCta.push(m)}}var p=e.getElementsByTagName("Creative");if(void 0!==p&&p.length){var v,T=p[0].getElementsByTagName("Linear");if(null!=T&&T.length){var f=T[0];i.registerTrackingEvents(f,t),v=i.getClickTrackingEvents(f),i.registerClickTracking(v,t),!i.hasVastAdTagUri(e)&&i.hasInLine(e)&&(t.adFinished=!1,t.adType="linear",t.skipoffset=i.convertTimeStringToSeconds(f.getAttribute("skipoffset")),t.clickthroughUrl=i.getClickThroughUrlFromLinear(f),t.duration=i.getDurationFromLinear(f),t.mediaFile=i.getMediaFileFromLinear(f),t.mediaFileDetails=i.getMediaFileAttributesFromLinear(f),t.iconClick=i.getIconClickThroughFromLinear(f))}var y=p[0].getElementsByTagName("NonLinearAds");if(null!=y&&y.length){var N=y[0];i.registerTrackingEvents(N,t),v=i.getNonLinearClickTrackingEvents(N),i.registerClickTracking(v,t),!i.hasVastAdTagUri(e)&&i.hasInLine(e)&&(t.adType="nonLinear",t.clickthroughUrl=i.getClickThroughUrlFromNonLinear(N),t.duration=i.getDurationFromNonLinear(N),t.dimension=i.getDimensionFromNonLinear(N),t.staticResource=i.getStaticResourceFromNonLinear(N),t.creativeType=i.getCreativeTypeFromStaticResources(N))}!i.hasVastAdTagUri(e)&&i.hasInLine(e)&&(void 0!==t.mediaFile||void 0!==t.staticResource?r(t):i.stopProcessAndReportError(10))}else i.stopProcessAndReportError(11)}else i.stopProcessAndReportError(9)},registerTrackingEvents:function(e,t){for(var r=this.getTrackingFromLinear(e),i="",a=0,n=0;n=e.video.duration}function s(e){var i=this;i.video.readyState>=i.video.HAVE_FUTURE_DATA?(i.hasAudio||(i.driver.currentTime=i.video.currentTime+e*i.video.playbackRate/1e3,i.video.loop&&o(i)&&(i.driver.currentTime=0)),u(i.video,i.driver.currentTime)):i.video.networkState===i.video.NETWORK_IDLE&&0===i.video.buffered.length&&i.video.load(),i.video.ended&&(delete i.video[h],i.video.pause(!0))}function c(){var e=this,i=e[g];if(e.webkitDisplayingFullscreen)return void e[E]();"data:"!==i.driver.src&&i.driver.src!==e.src&&(u(e,0,!0),i.driver.src=e.src),e.paused&&(i.paused=!1,0===e.buffered.length&&e.load(),i.driver.play(),i.updater.start(),i.hasAudio||(d(e,"play"),i.video.readyState>=i.video.HAVE_ENOUGH_DATA&&d(e,"playing")))}function v(e){var i=this,n=i[g];n.driver.pause(),n.updater.stop(),i.webkitDisplayingFullscreen&&i[w](),n.paused&&!e||(n.paused=!0,n.hasAudio||d(i,"pause"),i.ended&&!i.webkitDisplayingFullscreen&&(i[h]=!0,d(i,"ended")))}function p(e,n){var r={};e[g]=r,r.paused=!0,r.hasAudio=n,r.video=e,r.updater=i(s.bind(r)),n?r.driver=a(e):(e.addEventListener("canplay",function(){e.paused||d(e,"playing")}),r.driver={src:e.src||e.currentSrc||"data:",muted:!0,paused:!0,pause:function(){r.driver.paused=!0},play:function(){r.driver.paused=!1,o(r)&&u(e,0)},get ended(){return o(r)}}),e.addEventListener("emptied",function(){var i=!r.driver.src||"data:"===r.driver.src;r.driver.src&&r.driver.src!==e.src&&(u(e,0,!0),r.driver.src=e.src,i||!n&&e.autoplay?r.driver.play():r.updater.stop())},!1),e.addEventListener("webkitbeginfullscreen",function(){e.paused?n&&0===r.driver.buffered.length&&r.driver.load():(e.pause(),e[E]())}),n&&(e.addEventListener("webkitendfullscreen",function(){r.driver.currentTime=e.currentTime}),e.addEventListener("seeking",function(){k.indexOf(100*e.currentTime|0)<0&&(r.driver.currentTime=e.currentTime)}))}function l(e){var i=e[h];return delete e[h],!e.webkitDisplayingFullscreen&&!i}function f(e){var i=e[g];e[E]=e.play,e[w]=e.pause,e.play=c,e.pause=v,r(e,"paused",i.driver),r(e,"muted",i.driver,!0),r(e,"playbackRate",i.driver,!0),r(e,"ended",i.driver),r(e,"loop",i.driver,!0),n(e,"seeking",function(e){return!e.webkitDisplayingFullscreen}),n(e,"seeked",function(e){return!e.webkitDisplayingFullscreen}),n(e,"timeupdate",l),n(e,"ended",l)}function y(e,i){if(void 0===i&&(i={}),!e[g]){if(!i.everywhere){if(!b)return;if(!(i.iPad||i.ipad?/iPhone|iPod|iPad/:/iPhone|iPod/).test(navigator.userAgent))return}e.pause();var n=e.autoplay;e.autoplay=!1,p(e,!e.muted),f(e),e.classList.add("IIV"),e.muted&&n&&(e.play(),e.addEventListener("playing",function i(){e.autoplay=!0,e.removeEventListener("playing",i)})),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments")}}var m,b="object"==typeof document&&"object-fit"in document.head.style&&!matchMedia("(-webkit-video-playable-inline)").matches,g="bfred-it:iphone-inline-video",h="bfred-it:iphone-inline-video:event",E="bfred-it:iphone-inline-video:nativeplay",w="bfred-it:iphone-inline-video:nativepause",k=[],T=0;return y}(); !function(){function t(t,e,n,i){var o=!1,a=!0,r=!0,u=this,w=Math.random().toString(36).substr(2,6).toUpperCase(),s=function(){return(new Date).getTime()},c=function(){return"object"==typeof i},d=function(){if(window.viewabilityDebugMode){var e=void 0!==t.src&&t.src?(t.src.match(/[?&]idzone=(\d+)/)||[])[1]:((t.id||"").match(/_(\d+)_/)||[])[1];if("string"!=typeof e&&"DIV"===t.tagName)try{e=t.parentNode.nextElementSibling.dataset.zoneid}catch(n){try{e=t.parentNode.parentNode.nextElementSibling.dataset.zoneid}catch(t){e=t.name}}console.log((new Date).toISOString().substr(11,8)+" - "+t.tagName+" - "+e+" - "+w+" - "+(o?"VIEW":"NOT"))}},l=function(t,e,n){return t.top>n||t.left>e||t.bottom<0||t.right<0||0===t.top&&0===t.left&&0===t.bottom&&0===t.right},v=function(t,e){return e>t?e-t:0},m=function(t,e,n){return n-(t=t>0?t:0)-e},E=function(t,e,n){var i=e-t+n;return i>0?i:0};this.viewabilityEvent=function(a){if(!function(){if(!u.isInFocus()||c()&&!i.isViewable())return!1;var n=t.getBoundingClientRect(),o=c()?window:parent,a=o.innerHeight||o.document.documentElement.clientHeight,r=o.innerWidth||o.document.documentElement.clientWidth;if(l(n,r,a))return!1;var w=n.height*n.width,s=v(n.bottom,a),d=v(n.right,r),b=m(n.top,s,a)*m(n.left,d,r)>=w*e;if(!c()||!b)return b;var f=window.frameElement.getBoundingClientRect(),h=parent.innerHeight||parent.document.documentElement.clientHeight,p=parent.innerWidth||parent.document.documentElement.clientWidth;return!l(f,p,h)&&m(f.top+n.top,E(f.bottom,h,s),h)*m(f.left+n.left,E(f.right,p,d),p)>=w*e}())return this.unViewabilityEvent();if(!o){if(null==a&&(a=s()),s()-a0&&n<=1?parseFloat(n):.5,i=i>=0&&i<=5e3?parseInt(i):1e3,window===parent)return new t(e,n,i);try{return void 0===window.ExoIFrameID&&(window.ExoIFrameID="exo-iframe-"+(new Date).getTime(),parent.ExoViewabilityInstances=parent.ExoViewabilityInstances||{},parent.ExoViewabilityInstances[window.ExoIFrameID]=new t(window.frameElement,.01,0)),new t(e,n,i,parent.ExoViewabilityInstances[window.ExoIFrameID])}catch(t){window.viewabilityDebugMode&&console.log("Viewability not supported when using cross-domain iFrame!")}}}();window.ExoAdsRefresh=function(e,i,t,n,a,o){var r=0,s=null,l=!1,f=[];if("function"==typeof window.instantiateViewability){if(t>0)if("function"==typeof n){var c=window.instantiateViewability(e,.5,1e3),w=function(){if(-1===f.indexOf(i))if(c.isViewable())try{a.zones.forEach((function(e){if(e.id===i){if("object"!=typeof e.extra_params&&(e.extra_params={}),-1===e.extra_params.refresh_iteration)throw new Error("stopIteration");e.extra_params.refresh_iteration=++r}})),n(a),s=null}catch(e){if("stopIteration"===e.message)return;console.log(e,"Failed while calling ad-refresh callback!")}else l=!0};this.performImpressionReset=function(){c.unViewabilityEvent(),c.viewabilityEvent()},e.addEventListener("viewable",(function(){if(!(r>=o))return l?(l=!1,w()):void(null===s&&(s=setTimeout(w,1e3*t)))})),ExoAdsRefresh.stopZoneAdRefresh=function(e){f.push(e)}}else console.warn("Invalid callback attempted to be set.")}else console.warn("Viewability library is missing.")};!function(){try{var e="undefined"!=typeof ExoLoader&&null!==ExoLoader?ExoLoader:void 0;null!=e&&e.registerRenderer("sticky","container",(function(o,r,n,i){if(null!=e){var a=r.original_zone&&r.original_zone.data?r.original_zone.data:r.data;if(e.isNeverblock)var d=e.formatImage(o,a.additional_images[0]);else d=exoDynamicParams.closeImgCircle;return t(a,r.idzone,r.dom,{},d,n,i)}}))}catch(e){console.log("sticky container renderer failed with error: "+e.message)}function t(t,o,r,n,i,a,d){var s=!1,c=[];if(d&&(s=e.getCookie(exoDynamicParams.zoneClosedCookiePrefix+o)),s)return"undefined"!=typeof ExoAdsRefresh&&"function"==typeof ExoAdsRefresh.stopZoneAdRefresh&&ExoAdsRefresh.stopZoneAdRefresh(o),c;if(a){var l=r.doc_reference.getElementById(e.getRandomizedReference("exo-sticky-container-"+o,n));if(!l||!l.childNodes[1])return c;var f=l.childNodes[1];f.innerHTML="",c.push(f)}else!function(){var a,d,s="";switch(t.h_pos){case"left":a=" left: 0px; margin-left: 20px;";break;case"right":a=" right: 0px; margin-right: 20px;";break;default:a=" left: 50%; margin-left: -"+t.width/2+"px;"}switch(t.v_pos){case"top":d=" top: 0px; margin-top: 20px;";break;case"bottom":d=" bottom: 0px; margin-bottom: 20px;";break;default:d=" top: 50%; margin-top: -"+t.height/2+"px;"}0!==t.border_width&&""!==t.border_color&&(s=" border: "+t.border_width+"px solid #"+t.border_color+";");var l='
',f=r.doc_reference.createElement("div");f.id=e.getRandomizedReference("exo-sticky-container-"+o,n),f.innerHTML=l;var h=r.doc_reference.createElement("style"),m={"zone-id":o,width:t.width,height:t.height,"additional-container-css":a+d+s},g="#exo-sticky-container-{{zone-id}} { position: fixed; width: {{width}}px; height: {{height}}px; {{additional-container-css}} z-index: 999999; cursor: pointer;}#exo-sticky-container-{{zone-id}} .exo-content { position: relative; width: {{width}}px; height: {{height}}px; overflow: hidden;}.exo-sticky-close-button { width: 24px; height: 24px; position: absolute; top: 0px; right: 0px; background-color: transparent; z-index: 999999; cursor: pointer;}.exo-sticky-close-button img { float: right; top: -12px; right: -12px; position: relative; cursor: pointer;}";for(var u in m)if(Object.prototype.hasOwnProperty.call(m,u)){var y=new RegExp("{{"+u+"}}","g");g=g.replace(y,m[u])}g=e.scrambleStyleString(g,n),h.innerHTML=g,r.placeholder.appendChild(h),r.placeholder.parentNode.appendChild(f);var x=f.childNodes[0];x.addEventListener("mousedown",(function(e){p(e,f)}),!0),x.addEventListener("touchstart",(function(e){p(e,f)}),!0),x.addEventListener("mouseup",(function(e){p(e,f)}),!0),x.addEventListener("touchend",(function(e){p(e,f)}),!0),void 0!==e.activateContainer&&e.activateContainer(r.placeholder),c.push(f.childNodes[1].childNodes[0])}();return c;function p(n,i){if(n.stopPropagation(),n.preventDefault(),i.style.display="none",d){var a=parseInt(t.frequency_period,10);isNaN(a)&&(a=0),e.setCookie(exoDynamicParams.zoneClosedCookiePrefix+o,!0,a,"."+r.doc_reference.location.hostname)}"undefined"!=typeof ExoAdsRefresh&&"function"==typeof ExoAdsRefresh.stopZoneAdRefresh&&ExoAdsRefresh.stopZoneAdRefresh(o)}}"undefined"!=typeof RendererApi&&(void 0===e&&(e=RendererApi),window.StickyContainerRenderer={render:function(e,o,r){RendererApi.validateRenderArguments(e,o,"sticky"),"boolean"!=typeof r&&(r=!1);var n=exoDynamicParams.closeImgCircle;return e.dom={placeholder:o,doc_reference:document},t(e.data,e.idzone,e.dom,{},n,!1,r)},setBorder:function(e,t,o){var r=document.getElementById("exo-sticky-container-"+e);if(!r)throw new Error("Container for zone with id: "+e+" was not found.");if(isNaN(t)||t<1||t>5)throw new Error("Invalid argument: Border width should be a number between 1 and 5");r.style.border=t+"px solid "+o},removeBorder:function(e){var t=document.getElementById("exo-sticky-container-"+e);if(!t)throw new Error("Container for zone with id: "+e+" was not found.");t.style.borderStyle="none",t.style.borderWidth="0",t.style.borderColor="transparent"},setPosition:function(e,t,o){var r=document.getElementById("exo-sticky-container-"+e),n="20px";if(!r)throw new Error("Container for zone with id: "+e+" was not found.");switch(r.style.top="auto",r.style.bottom="auto",r.style.left="auto",r.style.right="auto",r.style.marginTop="0",r.style.marginBottom="0",r.style.marginLeft="0",r.style.marginRight="0",t){case"left":r.style.left="0px",r.style.marginLeft=n;break;case"right":r.style.right="0px",r.style.marginRight=n;break;default:r.style.left="50%",r.style.marginLeft="-"+r.offsetWidth/2+"px"}switch(o){case"top":r.style.top="0px",r.style.marginTop=n;break;case"bottom":r.style.bottom="0px",r.style.marginBottom=n;break;default:r.style.top="50%",r.style.marginTop="-"+r.offsetHeight/2+"px"}}})}();!function(){try{var e="undefined"!=typeof ExoLoader&&null!==ExoLoader?ExoLoader:void 0;null!=e&&e.registerRenderer("fixed","container",(function(n,o,d,i){if(null!=e)return r(o.original_zone&&o.original_zone.data?o.original_zone.data:o.data,o.dom)}))}catch(e){console.log("fixed container renderer failed with error: "+e.message)}function r(r,n){n.placeholder.innerHTML="",void 0!==r.height&&(n.placeholder.style.height=r.height+"px"),void 0!==r.width&&(n.placeholder.style.width=r.width+"px"),n.placeholder.style.cursor="pointer",void 0!==e.activateContainer&&e.activateContainer(n.placeholder);var o=[];return o.push(n.placeholder),o}"undefined"!=typeof RendererApi&&(void 0===e&&(e=RendererApi),window.FixedContainerRenderer={render:function(e,n){return RendererApi.validateRenderArguments(e,n,"fixed"),e.dom={placeholder:n,doc_reference:document},r(e.data,e.dom)}})}();!function(){try{var e="undefined"!=typeof AdProvider&&null!==AdProvider?AdProvider:void 0;void 0!==e&&e.registerRenderer("group","container",(function(n,o){if(null!=e)return o.dom.placeholder.innerHTML="",r(o.dom,o.ad_items,o.orientation)}))}catch(e){console.log("multiformat group renderer failed with error: "+e.message)}function r(e,r,n){var o=[],d="vertical"===n?"column":"row",i=e.placeholder;i.className="group-container",i.style.display="inline-flex",i.style.flexDirection=d;for(var t=0;t
',o=t.doc_reference.createElement("div");o.id=e.getRandomizedReference("exo-im-container-wrapper",i),o.innerHTML=n;var d=t.doc_reference.createElement("style"),a={width:300,height:250,margin:20},s="#exo-im-container-wrapper { position: fixed; width: {{width}}px; height: 0px; display: none; z-index: 100; bottom: 0 !important; right: {{margin}}px !important; transition: height 1s ease-in-out 0s; -webkit-transition: height 1s ease-in-out 0s; -o-transition: height 1s ease-in-out 0s; -moz-transition: height 1s ease-in-out 0s; -ms-transition: height 2s ease-in-out 0s;}#exo-im-container { position: absolute; z-index: 101; cursor: pointer;}#exo-im-close-button { height: 24px; width: 24px; top: -12px; left: -12px; position: absolute; z-index: 1999999 !important; cursor: pointer;}#exo-im-container #exo-im-content { border: none; width: {{width}}px; height: {{height}}px; overflow: hidden;}#exo-im-close-button img { cursor: pointer;}";for(var m in a)if(Object.prototype.hasOwnProperty.call(a,m)){var f=new RegExp("{{"+m+"}}","g");s=s.replace(f,a[m])}s=e.scrambleStyleString(s,i),d.innerHTML=s,t.placeholder.appendChild(d),t.placeholder.parentNode.appendChild(o),c.push(t.doc_reference.getElementById(e.getRandomizedReference("exo-im-content",i)))}(),window.setTimeout((function(){p(),l()}),500);return c;function f(r){if(r.stopPropagation(),r.preventDefault(),t.doc_reference.getElementById(e.getRandomizedReference("exo-im-container-wrapper",i)).style.display="none",s=!0,a){var d=parseInt(n.frequency_period,10);isNaN(d)&&(d=0),e.setCookie(exoDynamicParams.zoneClosedCookiePrefix+o,s,d)}"undefined"!=typeof ExoAdsRefresh&&"function"==typeof ExoAdsRefresh.stopZoneAdRefresh&&ExoAdsRefresh.stopZoneAdRefresh(o)}function p(){var n=t.doc_reference.getElementById(e.getRandomizedReference("exo-im-close-button",i));n.addEventListener("mousedown",f,!0),n.addEventListener("touchstart",f,!0),n.addEventListener("mouseup",f,!0),n.addEventListener("touchend",f,!0)}function l(){s||(t.doc_reference.getElementById(e.getRandomizedReference("exo-im-container-wrapper",i)).style.display="block",window.setTimeout((function(){t.doc_reference.getElementById(e.getRandomizedReference("exo-im-container-wrapper",i)).style.height="250px",window.setTimeout(g,7e3)}),100))}function g(){t.doc_reference.getElementById(e.getRandomizedReference("exo-im-container-wrapper",i)).style.height="0px",window.setTimeout((function(){t.doc_reference.getElementById(e.getRandomizedReference("exo-im-container-wrapper",i)).style.display="none",p(),window.setTimeout(l,5e3)}),1e3)}}"undefined"!=typeof RendererApi&&(void 0===e&&(e=RendererApi),window.InstantMessageContainerRenderer={render:function(e,o,t){RendererApi.validateRenderArguments(e,o,"instant-message"),"boolean"!=typeof t&&(t=!1);var i=exoDynamicParams.closeImgCircle;return e.dom={placeholder:o,doc_reference:document},n(e.data,e.idzone,e.dom,{},i,!1,t)}})}();!function(){try{var e="undefined"!=typeof ExoLoader&&null!==ExoLoader?ExoLoader:void 0;null!=e&&e.registerRenderer("mobile-instant-message","container",(function(o,i,t,r){if(null!=e){var d=i.original_zone&&i.original_zone.data?i.original_zone.data:i.data;if(e.isNeverblock)var a=e.formatImage(o,d.additional_images[0]);else a=exoDynamicParams.closeImgCircle;return n(d,i.idzone,i.dom,{},a,t,r)}}))}catch(e){console.log("mobile-instant-message container renderer failed with error: "+e.message)}function n(n,o,i,t,r,d,a){var s=0,c=!1,m=[];if(a&&(s=parseInt(e.getCookie("zone-cap-"+o)),isNaN(s)&&(s=0),c=e.getCookie(exoDynamicParams.zoneClosedCookiePrefix+o)),n.capping>0&&s>=n.capping||c)return"undefined"!=typeof ExoAdsRefresh&&"function"==typeof ExoAdsRefresh.stopZoneAdRefresh&&ExoAdsRefresh.stopZoneAdRefresh(o),m;if(d){var l=i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-content",t));if(!l)return m;l.innerHTML="",m.push(l)}else!function(){var n='
',o=i.doc_reference.createElement("div");o.id=e.getRandomizedReference("exo-mobile-im-container-wrapper",t),o.innerHTML=n;var d=i.doc_reference.createElement("style"),a="#exo-mobile-im-container-wrapper { height: 0px; display: none; visibility: hidden; background: none repeat scroll 0 0 rgba(226, 226, 226, 0.8) !important; bottom: 0 !important; left: 0 !important; position: fixed !important; text-align: center; width: 100%; z-index: 1999900 !important; transition: height 1s ease-in-out 0s; -webkit-transition: height 1s ease-in-out 0s; -o-transition: height 1s ease-in-out 0s; -moz-transition: height 1s ease-in-out 0s; -ms-transition: height 2s ease-in-out 0s;}#exo-mobile-im-container { position: relative; min-width: 150px; width: 100%; height: 0px; max-width: 300px; margin: 0 auto;}#exo-mobile-im-close-button { height: 24px; width: 24px; top: -12px; left: -12px; position: absolute; z-index: 1999999 !important; cursor: pointer;}#exo-mobile-im-content { border:none; overflow:hidden; position: relative; flex-shrink: 0; width: 300px; height: 100px; cursor: pointer;}";a=e.scrambleStyleString(a,t),d.innerHTML=a,i.placeholder.appendChild(d),i.placeholder.parentNode.appendChild(o),m.push(i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-content",t)))}(),window.setTimeout((function(){i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-container-wrapper",t)).style.display="block",i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-container-wrapper",t)).style.visibility="visible",window.setTimeout((function(){i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-container-wrapper",t)).style.height="100px"}),100);var n=i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-close-button",t));n.addEventListener("mousedown",p,!0),n.addEventListener("touchstart",p,!0),n.addEventListener("mouseup",p,!0),n.addEventListener("touchend",p,!0),null!=(n=i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-content",t)))&&(n.addEventListener("mouseup",f),n.addEventListener("touchend",f),n.addEventListener("mousedown",f),n.addEventListener("touchstart",f))}),500),a&&(s+=1,e.setCookie("zone-cap-"+o,s,21600));return m;function p(r){if(r.stopPropagation(),r.preventDefault(),i.doc_reference.getElementById(e.getRandomizedReference("exo-mobile-im-container-wrapper",t)).style.display="none",c=!0,a){var d=parseInt(n.frequency_period,10);isNaN(d)&&(d=0),e.setCookie(exoDynamicParams.zoneClosedCookiePrefix+o,c,d,"."+i.doc_reference.location.hostname)}"undefined"!=typeof ExoAdsRefresh&&"function"==typeof ExoAdsRefresh.stopZoneAdRefresh&&ExoAdsRefresh.stopZoneAdRefresh(o)}function f(e){e.stopPropagation()}}"undefined"!=typeof RendererApi&&(void 0===e&&(e=RendererApi),window.MobileInstantMessageContainerRenderer={render:function(e,o,i){RendererApi.validateRenderArguments(e,o,"mobile-instant-message"),"boolean"!=typeof i&&(i=!1);var t=exoDynamicParams.closeImgCircle;return e.dom={placeholder:o,doc_reference:document},n(e.data,e.idzone,e.dom,{},t,!1,i)}})}();!function(){try{var e="undefined"!=typeof ExoLoader&&null!==ExoLoader?ExoLoader:void 0;null!=e&&e.registerRenderer("banner","content",(function(i,r,o){null!=e&&(r.data.image=e.formatImage(i,r.data.image),r.data.url=e.formatLink(i,r.data.url),r.data.optimum_image&&ExoSupport.supported("webp")&&(r.data.optimum_image=e.formatImage(i,r.data.optimum_image)),o.parentElement.style.display="inline-flex",t(r.data,r.dom,o))}))}catch(e){console.log("banner renderer failed with error: "+e.message)}function t(t,i,r){var o=function(e,t){if(void 0!==e.width&&(t.setAttribute("width","100%"),t.setAttribute("max-width",e.width+"px")),void 0!==e.height){const i="html_banner"===e.media?"100%":"auto";t.setAttribute("height",i),t.setAttribute("max-height",e.height+"px")}},a=function(e,t){var i=e.doc_reference.createElement("video");o(t,i),i.setAttribute("loop",!0),i.setAttribute("muted",!0),i.muted=!0,i.setAttribute("autoplay",!0),i.setAttribute("playsinline",!0),i.setAttribute("preload","auto");var a=e.doc_reference.createElement("source");t.optimum_image?a.setAttribute("src",t.optimum_image):a.setAttribute("src",t.video),i.appendChild(a),r.appendChild(i)},n=function(t,i,o){var a;r.onclick=(a=i,function(t){e.openLink(t,a,void 0,o)})};t.media&&"img_banner"!==t.media?"html_banner"===t.media?function(e,t){var i=e.doc_reference.createElement("iframe");o(t,i),i.setAttribute("sandbox","allow-forms allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts"),i.setAttribute("frameborder","0"),i.setAttribute("scrolling","no"),i.setAttribute("marginwidth","0"),i.setAttribute("marginheight","0"),r.appendChild(i);var a=i.contentWindow.document;a.open(),a.write(''+t.html+""),a.close()}(i,t):"video_banner"===t.media&&(a(i,t),n(0,t.url,!0)):(t.optimum_image&&!0===t.is_video||t.optimum_image&&void 0===t.is_video&&"webp"!==t.optimum_image.split(".").pop()?a(i,t):function(e,t){var i=e.doc_reference.createElement("img");o(t,i),i.src=t.optimum_image&&ExoSupport.supported("webp")?t.optimum_image:t.image,r.appendChild(i)}(i,t),n(0,t.url))}"undefined"!=typeof RendererApi&&(void 0===e&&(e=RendererApi),window.BannerRenderer={render:function(e,i){RendererApi.validateRenderArguments(e,i,"banner"),e.dom={placeholder:i,doc_reference:document},t(e.data,e.dom,i),RendererApi.trackImpression(e.data.impression,e.idzone,void 0,!0)}})}();!function(){try{var e,t={},i=/\.(exo-native[a-zA-Z\-_]+)/g,n="undefined"!=typeof ExoLoader&&null!==ExoLoader?ExoLoader:void 0;null!=n&&n.registerRenderer("native","content",(function(t,i,a){var r=!0;if(null!=n&&void 0!==i){var m=["branding_logo","branding_logo_hover"];n.isNeverblock&&(i.data.data&&(i.data.ad_items=i.data.data,delete i.data.data),r=!1);for(var s=i.idzone,g=0;g1?"block":"none"}function l(e,t){for(var i="",n=t||"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",o=0;od(t.image_width).get()?"auto 100%":"100% auto",t.zoomIn=t.zoomOut.replace("100%",d(t.zoom).perc()),t.text_display=r(t.text_box_size),t.aspect_ratio=d(t.image_height).div(t.image_width).mult(100).perc(),t.widget_width=d(t.widget_width).px(),t.header_padding_position=d(t.header_is_on_top).get()?"bottom":"top",t.text_box_size=d(a?t.text_box_size:0).px(),t.text_box_size_flex="initial",t.image_size_flex="initial",n){var l=t.is_mobile?2.5:1,_=d(t.image_width).mult(l).sum(t.item_padding).px();t.text_box_size=d(a?_:0).px(),t.widget_width_calc=d(t.image_width).sum(t.text_box_size).mult(t.cols).px(),t.widget_min_width=d(t.text_box_size).mult(2).mult(t.cols).sub(t.spacing_v).px(),t.image_wrapper_width=d("calc(100% - ").concat(t.text_box_size).concat(")").string(),t.text_max_width=d(t.text_box_size).px(),t.text_max_height=d(t.image_height).px(),t.text_width=d(t.text_box_size).px(),t.text_height="auto",t.text_padding_left=d(t.item_padding).px(),t.text_padding_top=d(0).px(),t.image_size_flex=1,t.text_box_size_flex=l,a&&(t.text_max_width=t.is_mobile?"initial":t.text_max_width,t.text_absolute="initial")}else t.text_box_size=d(a?90:0).px(),t.widget_width_calc=d(t.image_width).mult(t.cols).px(),t.widget_min_width="auto",t.image_wrapper_width=d(100).perc(),t.text_max_width=d(100).perc(),t.text_max_height=d(t.text_box_size).px(),t.text_width=d(100).perc(),t.text_height=d(t.text_box_size).px(),t.text_padding_left=d(0).px(),t.text_padding_top=d(t.item_padding).px();var m=d(t.spacing_h).mult(d(t.cols).sub(1).get()).get();return t.widget_width_calc=d(t.widget_width_calc).sum(m).px(),t.widget_min_width=d(100).sum(m).px(),d(t.widget_width)>0&&(t.widget_width_calc=d(t.widget_width).px()),t.max_items=d(t.cols).mult(t.rows).sum(1).get(),t.max_items_mobile=d(t.mobile_rows).mult(t.mobile_cols).sum(1).get(),t.is_mobile&&(t.widget_min_width=d(50).px(),t.max_items=t.max_items_mobile),o&&(t.widget_min_width=d(100).perc()),void 0!==t.header_enabled&&0===d(t.header_enabled).get()&&(t.widgetHeaderContentHtml=""),t}(o);var l='{{zone_id_prefix}}.exo-native-widget , /* required space between class and comma because of regex from frontend loader*/{{zone_id_prefix}}.exo-native-widget * { box-sizing: border-box;}{{zone_id_prefix}}.exo-native-widget { background-color: {{widget_background_color}}; overflow: hidden; max-width: 100%; width: {{widget_width_calc}}; min-width: {{widget_min_width}}; display: inline-flex; flex-direction: column;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-header { width: initial !important; float: initial !important; white-space: nowrap; font-family: {{font_family}}; font-size: {{header_font_size}}; color: {{header_font_color}}; display: {{header_display}}; padding-{{header_padding_position}}: 15px; line-height: 15px;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-header a { display: flex; justify-content: {{header_justify_content}}; color: inherit; text-decoration: none;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-header a span { display: flex; height: 14px; width: 47px; margin-left: 4px; background: rgba(0, 0, 0, 0) url("{{branding_logo}}") repeat scroll 0 0 / 47px 14px;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-header a:hover span { background: rgba(0, 0, 0, 0) url("{{branding_logo_hover}}") repeat scroll 0 0 / 47px 14px;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container { display: flex; flex-wrap: wrap; height: 100%; align-content: space-between; margin-bottom: -{{spacing_v}}; margin-right: -{{spacing_h}};}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container { overflow: hidden; flex-basis: calc(100%/{{cols}}); position: relative; padding-right: {{spacing_h}}; padding-bottom: {{spacing_v}};}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item , /* required space between class and comma because of regex from frontend loader*/a.exo-native-widget-item:visited { text-decoration: none; font-family: {{font_family}}; font-size: {{header_font_size}}; color: {{header_font_color}}; overflow: hidden; display: flex; position: relative; flex-direction: {{flex_direction}};}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-image-wrapper { position: relative; float: left; width: {{image_wrapper_width}}; min-width: auto; z-index: 2; flex: {{image_size_flex}}; height: 100%;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-image-ratio { width: 100%; padding-top: {{aspect_ratio}}; z-index: 1;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-image { background-repeat: no-repeat; background-size: {{zoomOut}}; {{string_image_border_style}} position: absolute; top: 0; left: 0; width: 100%; height: 100%; transition: background-size 0.3s;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-image:hover { background-size: {{zoomIn}};}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content { max-width: {{text_max_width}}; max-height: {{text_max_height}}; overflow: hidden; position: {{text_absolute}}; right: 0; top: 0; width: {{text_width}}; height: {{text_height}}; padding-left: {{text_padding_left}}; padding-right: 0; padding-top: {{text_padding_top}}; padding-bottom: 0; display: {{text_display}}; text-align: {{text_align}}; flex: {{text_box_size_flex}}; position: relative;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content .exo-native-widget-item-content-box { position: absolute; width: 100%;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content .exo-native-widget-item-title { font-family: {{font_family}}; font-size: {{title_font_size}}; color: {{title_font_color}}; font-weight: {{title_font_weight}}; text-decoration: {{title_decoration}}; display: {{item_title_display}}; transition: color 0.16s;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content .exo-native-widget-item-text { font-family: {{font_family}}; font-size: {{description_font_size}}; color: {{description_font_color}}; font-weight: {{description_font_weight}}; text-decoration: {{description_decoration}}; display: {{item_description_display}}; transition: color 0.16s;}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content .exo-native-widget-item-brand { font-family: {{font_family}}; font-size: {{brand_font_size}}; color: {{brand_font_color}}; font-weight: {{brand_font_weight}}; text-decoration: {{brand_decoration}}; display: {{item_brand_display}};}/* Hover section below: */{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content .exo-native-widget-item-title:hover { color: {{title_hover_color}}; font-weight: {{title_hover_font_weight}}; text-decoration: {{title_hover_decoration}};}{{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container a.exo-native-widget-item .exo-native-widget-item-content .exo-native-widget-item-text:hover { color: {{description_hover_color}}; font-weight: {{description_hover_font_weight}}; text-decoration: {{description_hover_decoration}};}@media all and (max-width: {{mobile_breakpoint}}px) { {{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container:nth-child(n+{{max_items_mobile}}) { display: none; } {{zone_id_prefix}}.exo-native-widget .exo-native-widget-outer-container .exo-native-widget-item-container { flex-basis: calc(100%/{{mobile_cols}}); }}',_=null;for(var m in o)Object.prototype.hasOwnProperty.call(o,m)&&(_=new RegExp("{{"+m+"}}","g"),l=l.replace(_,o[m]));return l=n.scrambleStyleString(l,t,i),a.innerHTML=l,a}(o.layout)),o.layout.mobile_responsive_type&&w.appendChild((l=o.layout.minimum_width_for_full_sized_layout,_="#"+n.getRandomizedReference(e,t),c=document.createElement("style"),x="@media all and (max-width: "+l+") { "+_+".exo-native-widget { width: 100% !important; height: auto !important; } "+_+".exo-native-widget .exo-native-widget-item-container { clear: both; width: 100% !important; max-width: 100% !important; margin-left: 0 !important; } "+_+".exo-native-widget .exo-native-widget-item-outer-container { width: 100% !important; } "+_+".exo-native-widget .exo-native-widget-item .exo-native-widget-item-image { width: 100% !important; max-width: 100% !important; margin: auto !important } "+_+".exo-native-widget .exo-native-widget-item-container .exo-native-widget-item .exo-native-widget-item-content { max-width: 100% !important; } "+_+".exo-native-widget .exo-native-widget-item-container .exo-native-widget-item { margin: 0 auto !important; }}",x=n.scrambleStyleString(x,t,i),c.innerHTML=x,c)),o.layout.customcss_enabled&&w.appendChild(function(o){var a=document.createElement("style"),d=o.replace(/ *(:|;|{|}) */g,"$1").replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*\/+/g,"").split("}").filter((function(e){return e.trim().length>0})).map((function(t){return"#"+e+".exo-native-widget "+t})).join("} ")+"}";return d=n.scrambleStyleString(d,t,i),a.innerHTML=d,a}(o.layout.customcss)),s()&&w.appendChild(((p=document.createElement("script")).setAttribute("type","application/javascript"),scriptString='function setRealHref(e) {var caller = e.currentTarget || e.srcElement; caller.setAttribute("href", caller.getAttribute("real-href"));}',p.innerHTML=scriptString,p)),o.layout.header_enabled&&o.layout.header_is_on_top&&w.appendChild(g(o.layout.widgetHeaderContentHtml));var h=document.createElement("div");h.className=n.getRandomizedReference("exo-native-widget-outer-container",t),w.appendChild(h);for(var v=0;v
'+f.title+'
'+f.description+'
',I=function(e,t,n){e.stopPropagation(),e.preventDefault(),t.style.display="none";var a=o+n+"-"+x;l&&i.setCookie(a,!0,w,"."+g.doc_reference.location.hostname);for(var p=t.parentElement.getElementsByClassName("second-notification"),r=0;r0&&T>=y||j||(h=0!==_?0:h,window.setTimeout((function(){!function(){if(0===_){var e=g.doc_reference.createElement("style"),o={horizontalPositionCenterMarginLeft:"-"+p/2+"px;",verticalPositionMiddleMarginTop:"-"+r/2+"px;",secondNotificationVerticalPositionMiddleMarginTop:"-"+(s+a+r/2)+"px;"},t=N;for(var n in o)if(Object.prototype.hasOwnProperty.call(o,n)){var c=new RegExp("{{"+n+"}}","g");t=t.replace(c,o[n])}t=i.scrambleStyleString(t,m,/\.(exo-ipp[a-zA-Z\-_]+)/g),e.innerHTML=t,d.appendChild(e)}}();var o,n=g.doc_reference.createElement("div");n.setAttribute("id",i.getRandomizedReference("exo-ipp-"+x,m)),n.innerHTML=E,n.className=i.getRandomizedReference("exo-ipp",m),n.style.display="none",d.appendChild(n),n.onclick=(o=f.url,function(e,t){i.openLink(e,o),I(e,n,t)}),n.childNodes[0].childNodes[5].onclick=function(i){I(i,n,_)},n.style.removeProperty("display"),i.trackImpression(c.data.impression,c.idzone,void 0,!0),0===_&&(T+=1,l&&i.setCookie(e+x,T,t)),++_0?1:0,w=void 0!==i.data.cta&&void 0!==i.data.cta.displayUrl&&"string"==typeof i.data.cta.displayUrl?i.data.cta.displayUrl:"",y=void 0!==i.data.cta&&void 0!==i.data.cta.text&&"string"==typeof i.data.cta.text?i.data.cta.text:"",b=void 0!==i.data.url&&"string"==typeof i.data.url?i.data.url:"",k=isNaN(i.data.ctaEnabled)||i.data.ctaEnabled>0,C=i.data.isVast,L=function(e){if(C){var a=[];for(var o in"undefined"!==i.data.tracking&&(Array.isArray(i.data.tracking)&&i.data.tracking.length>0||"object"==typeof i.data.tracking&&Object.keys(i.data.tracking).length>0)&&(a=i.data.tracking),i.data=e,a){var r=a[o];Object.prototype.hasOwnProperty.call(i.data.tracking,o)&&r.length>0?Array.prototype.push.apply(i.data.tracking[o],r):r.length>0&&(i.data.tracking[o]=r)}}void 0===e&&(e=null);var f=t,h=Y(),L=O(h);if(null!==e&&void 0!==e.videoCta&&Object.prototype.hasOwnProperty.call(e.videoCta,"length")&&e.videoCta.length>0)for(var E=e.videoCta.length-1;E>=0;E--){w=e.videoCta[E].displayUrl,y=e.videoCta[E].ctaText,b=e.videoCta[E].tracking;break}d=Z(x,w,y,k),D(L,d),g=f.querySelector(s+".exo_wrapper"),v=f.querySelector(s+"_close_text"),m=f.querySelector(s+"_video"),p=f.querySelector(s+"_close_x"),_=f.querySelector(s+"_progress"),u=f.querySelector(s+"_replay_button"),n=f.querySelector(s+"_source"),f.querySelector(s+"_mute_button").addEventListener("click",(function(e){e.stopPropagation(),m.muted=!m.muted,S()}));var T=i.data.video;if(x&&exoDynamicParams.showBranding){var P=f.querySelector(s+"_network_link");P.innerHTML=exoDynamicParams.brandingName,P.setAttribute("href","http://"+exoDynamicParams.networkDomain),P.addEventListener("click",(function(e){e.stopImmediatePropagation()}))}if(k){var B=function(e){window.open(b,"_blank"),e.stopImmediatePropagation()};if(f.querySelector(s+"_cta_wrapper").addEventListener("click",B),""!==w){var N=f.querySelector(s+"_display_url");N.innerHTML=w,N.addEventListener("click",B)}if(""!==y){var R=f.querySelector(s+"_cta_text");R.innerHTML=y,R.addEventListener("click",B)}}if(k||(f.querySelector(s+"_cta_wrapper").style.padding="0px"),C){if(!e||"linear"!==e.adType)return;T=e.mediaFile,e.mediaFileDetails&&"streaming"===e.mediaFileDetails.delivery&&VastSupport.VastStreaming.initialiseStreamers(e.mediaFileDetails.type,m,n)}F(i.data),A(z),g.addEventListener("click",(function(){W(m)&&(C?(K([i.data.url]),window.open(e.clickthroughUrl),"undefined"!==e.clicktracking&&K(e.clicktracking)):window.open(i.data.url))})),J(M,h),n.setAttribute("src",T),m.muted=!0,S(),m.addEventListener("ended",(function(){l=!1,c++,u.style.display="block",u.addEventListener("click",V)}),!1),H(),m.addEventListener("timeupdate",(function(){q(i.data,m.currentTime,m.duration);var e=m.currentTime/m.duration*100;_.style.width=e+"%",0>m.currentTime&&c<1?(v.innerHTML="Close ad in "+Math.ceil(0-m.currentTime)+" sec",p.style.display="none"):H()}))},H=function(){var i=o.querySelector(s+"_close");v.innerHTML="Close ad",p.style.display="block",i.addEventListener("click",(function(i){if(i.stopPropagation(),a){var t="."+document.location.hostname,n=E(f);e.setCookie(h,!0,n,t)}m.pause(),l=!1,T()}))},E=function(e){return Math.floor(60*e)},V=function(e){e.stopPropagation(),_.classList.add("exo_notransition"),_.style.width="0px",u.removeEventListener("click",V),u.style.display="none",m.play().then((function(){l=!0,_.classList.remove("exo_notransition")}))},z=function(){A()||!l?A()&&l&&m.paused&&m.play():m.pause()},M=function(){if(l=!0,!(c>=1)){setTimeout((function(){g.classList.remove("exo_notransition"),d.style.right=0}),100);var t,a,n=!C;if(C)for(a=0;a=t-1&&P(e,"complete")},P=function(t,a,n){C?function(t,a,n){void 0!==t.tracking[a]&&t.tracking[a].forEach(((o,r)=>{!1===o.stopTracking&&o.elements.length?function(e,i,t){return"progress"!==e||"progress"===e&&i===t}(a,n,r)&&(o.elements.forEach((t=>{e.trackImpression(t,i.idzone,void 0,!1)})),o.stopTracking=!0):B(t,a,n)}))}(t,a,n):B(t,a,n)},B=function(t,a,n){if(void 0!==i.data.tracking[a])for(var o,r,s=(o=n,(r=new Date(1970,0,1)).setSeconds(o),r.toTimeString().substr(0,8)+".000"),l=0;l=0},R=function(){o.querySelector(s).classList.contains("ucBrowser")||o.querySelector(s).classList.add("ucBrowser")},I=function(e,i){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var a=new RegExp("{{"+t+"}}","g");i=i.replace(a,e[t])}return i},O=function(e){var i=document.createElement("style"),t={main_el_class:r,screen_density:0,density_width:0,maximum_width:e};return i.innerHTML=I(t," .{{main_el_class}} { display: block !important; } .{{main_el_class}}_network_link { display: block; color: rgb(255, 255, 255); font-size: 12px; font-family: Roboto, sans-serif, Verdana, Arial; line-height: 20px; padding: 0px 5px; text-decoration: none; } .{{main_el_class}}_display_url, .{{main_el_class}}_cta_text { font-size: 10px; font-family: Roboto, sans-serif, Verdana, Arial; text-decoration: none; } .{{main_el_class}}_cta_text { text-transform: uppercase; color: rgba(34, 33, 31, 1); margin-right: 2px; flex-shrink: 0; } .{{main_el_class}}_cta_text_link_icon { flex: none; } .{{main_el_class}}_display_url { color: rgba(236, 188, 27, 1); display: flex; align-items: center; letter-spacing: 0.01em; margin: 3px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; display: inline-block; } .{{main_el_class}}_exo_display_url_box:hover .{{main_el_class}}_display_url { color: rgb(255, 205, 55) !important; } .{{main_el_class}}_display_url_ad_icon { background: rgba(236, 188, 27, 1); color: rgba(34, 33, 31, 1); display: flex; align-items: center; display: flex; flex-direction: column; align-items: flex-start; padding: 2px; border-radius: 1px; } .{{main_el_class}}_exo_display_url_box:hover .{{main_el_class}}_display_url_ad_icon { background: rgb(255, 205, 55); } .{{main_el_class}}_display_url_link_icon { flex: none; } .{{main_el_class}}_exo_display_url_box:hover .{{main_el_class}}_display_url_link_icon path { fill: rgb(255, 205, 55); } .{{main_el_class}}_effect { -webkit-transition: all 1s ease-in-out; -moz-transition: all 1s ease-in-out; -ms-transition: all 1s ease-in-out; -o-transition: all 1s ease-in-out; transition: all 1s ease-in-out; width: 100%; position: relative; height: 0; max-height: 0; overflow: hidden; } .{{main_el_class}}.exo_wrapper { display: inline-block; position: relative; width: 100%; height: 100%; cursor: pointer; } .{{main_el_class}}_effect.exo_wrapper_show { height: auto; max-height: 1000px; } .{{main_el_class}} video { width: 100%; height: 100%; display: block; margin: 0px auto; } .{{main_el_class}}.ucBrowser { z-index:99999999; } .{{main_el_class}}.ucBrowser .exo_close{ padding: 3px; background: none; top: -20px; } .{{main_el_class}}.ucBrowser .exo_link{ width: 100%; } .{{main_el_class}} .exo_link { display: block; color: rgb(255, 255, 255); font-size: 12px; font-family: Roboto, sans-serif, Verdana, Arial; position: absolute; left: 0px; top: -20px; height: 20px; line-height: 20px; padding: 0px 5px; background: rgba(0, 0, 0, 0.7); text-decoration: none; z-index: 100; } .{{main_el_class}}_exo_link_box { background: rgba(0, 0, 0, 0.7); display: none; font-size: 12px; } .{{main_el_class}}_exo_cta_text_box, .{{main_el_class}}_exo_display_url_box { display: flex; align-items: center; flex-direction: row; } .{{main_el_class}}_exo_display_url_box { margin-right: 5px; overflow: hidden; } .{{main_el_class}}_exo_cta_text_box { background: rgba(236, 188, 27, 1) !important; border-radius: 3px; padding: 6px 10px; justify-content: center; flex-shrink: 0; } .{{main_el_class}}_exo_cta_text_box:hover { background: rgb(255, 205, 55) !important; } .{{main_el_class}}_cta_wrapper { background: rgba(34, 33, 31, 1); padding: 10px; cursor: pointer; display: flex !important; justify-content: space-between; flex-direction: row; } .{{main_el_class}}_main_outstream:hover .{{main_el_class}}_cta_wrapper { background-color: rgb(44, 44, 44); } .{{main_el_class}} .exo_close { position: absolute; border-radius: 50%; padding: 5px; user-select: none; color: rgb(255, 255, 255); right: 8px; top: 8px; background: rgba(0, 0, 0, 0.7); cursor: pointer; z-index: 9999; opacity: 0.85; } .{{main_el_class}} .exo_close:hover { opacity: 1; } .{{main_el_class}} .exo_close_show { display: block; } .{{main_el_class}} .exo_close_text{ display: none; } .{{main_el_class}} .exo_close svg { height: 24px; width: 24px; fill: #FFFFFF; display: none; } .{{main_el_class}} .progress_exo_wrapper { position: absolute; width: calc(100% - 30px); height: 3px; left: 15px; bottom: 15px; background: rgba(255, 255, 255, 0.25); z-index: 1; } .{{main_el_class}}_main_outstream .progress_exo_wrapper:hover { background: rgba(255, 255, 255, 0.35); } .{{main_el_class}} .exo_progressbar { width: 0%; height: 100%; background: rgba(249, 211, 0, 0.8); transition: width 0.6s linear 0s; } .progress_exo_wrapper:hover .exo_progressbar { background: rgb(255, 205, 55); } .{{main_el_class}}_replay_button { top: 50%; left: 50%; transform: translate(-50%, -50%); height: 70px; width: 70px; position: absolute; border-radius: 50%; background: rgba(0, 0, 0, 0.7); display: none; } .{{main_el_class}}_mute_button { border-radius: 5px; position: absolute; left: 15px; bottom: 28px; background: rgba(0, 0, 0, 0.7); height: 30px; width: 30px; opacity: 0.85; } .{{main_el_class}}_mute_button:hover { opacity: 1; } .{{main_el_class}}_mute_button svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); fill: #FFFFFF; height: 24px; width: 24px; display: none; } .{{main_el_class}}.exo_notransition, .{{main_el_class}} .exo_notransition { -webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important; } .{{main_el_class}}_main_outstream { max-width: {{maximum_width}}; min-width: 200px; } video::-webkit-media-controls-start-playback-button { display: none !important; } "),i},Z=function(e,i,t,a){var n,o,s={main_el_class:r};return s.branding=e?I(s,' '):"",s.displayUrl=a&&i?I(s,'
'):"",s.ctaText=a&&t?I(s,'
'):"",n=I(s,'
{{branding}}
{{displayUrl}} {{ctaText}}
'),(o=document.createElement("div")).innerHTML=n.trim(),o.firstChild},D=function(e,i){t.appendChild(e),t.appendChild(i)},U=function(){return t.parentNode.offsetWidth>=200&&window.innerWidth>=200},j=function(){var e=window.navigator.userAgent||"";return e.match(/iPad/i)||e.match(/iPhone/i)},W=function(e){return j()&&e.currentTime.toFixed(0)>0||!j()},Q="100%",Y=function(){var e=i.data.maximumWidth;return isNaN(e)||e<200||e>1080?Q:e+"px"},G=function(e){e.style.display="none"},J=function(e,i){enableInlineVideo(m,{iPad:!0});var a=!0,n=!0,r=g.parentNode;function l(){return window.innerHeight+window.scrollY+5>=document.body.offsetHeight}function c(){var e,a,p,u,v,f,h;if(!r.classList.contains("exo_wrapper_show")&&U()&&(a=i===Q?t.offsetWidth:parseInt(i),p=Math.ceil(a*m.videoHeight/m.videoWidth/2),u=Math.ceil(window.innerHeight||document.documentElement.clientHeight),v=Math.ceil(g.getBoundingClientRect().top),f=l()?v:v+p,v>0&&f