/** * Assertive Yield * v2.27.17 * * © 2018-2023 Assertive Yield B.V. All Rights Reserved. */ !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(t){var n=function(t,n){if("object"!==e(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var i=r.call(t,n||"default");if("object"!==e(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"===e(n)?n:String(n)}function n(e,n,r){return(n=t(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,r=arguments[1],i=void 0,o=0;othis.length)&&-1!==this.indexOf(e,t)}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),"function"!=typeof Object.values&&(Object.values=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r}),function(){function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),n}"function"!=typeof window.CustomEvent&&(e.prototype=window.Event.prototype,window.CustomEvent=e)}(),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],r="push";n&&e.push===[].push&&(r="unshift"),e[r](t)}function Q(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=null;return t.length&&(n=function(e,n){if(!(t.indexOf(e)>-1))return n}),JSON.parse(JSON.stringify(e,n))}function K(e){return e?(e^(window&&window.crypto&&window.crypto.getRandomValues?crypto.getRandomValues(new Uint8Array(1))[0]%16:16*Math.random())>>e/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,K)}function ee(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||i(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){var n,r,i;if(t)i=t;else if(null!==(n=assertive.analytics)&&void 0!==n&&null!==(r=n.override)&&void 0!==r&&r.creativeRegex)i=new RegExp(assertive.analytics.override.creativeRegex);else{i=new RegExp("(?:(?:".concat(e,'\\.renderAd\\(document,|adId:*|hb_adid":\\[)|(?:pbadid=)|(?:adId=))[\'"](').concat("[0-9]{1,16}[0-9a-z]{8,14}",")[\"']"),"i")}return i}var ne="2.27.17";function re(e){var t=new RegExp("".concat(e,"=([^;]+)(?:;|$)")).exec(document.cookie);return t?t[1]:null}function ie(e){document.cookie="".concat(e,"=; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; samesite=lax")}function oe(e,t,n){document.cookie="".concat(e,"=").concat(t,"; path=/; samesite=lax; max-age=").concat(n||63072e3)}var ae,se,de,le,ue,ce,ve,fe,pe,ge,me="ay_s",he="ay_c",ye="ay_utm_",be=localStorage.getItem.bind(localStorage),we=localStorage.setItem.bind(localStorage),Ie=localStorage.removeItem.bind(localStorage);function Oe(e,t,n){var r,i,o="cookie"===(null===(r=assertive.storage)||void 0===r?void 0:r.general)?re:be,a="cookie"===(null===(i=assertive.storage)||void 0===i?void 0:i.general)?oe:we;try{var s=JSON.parse(o(e))||{};s[t]=n,a(e,JSON.stringify(s))}catch(e){}}function Se(e,t){Oe(me,e,t)}function Ee(e,t){Oe(he,e,t)}function _e(e,t){var n,r,i="cookie"===(null===(n=assertive.storage)||void 0===n?void 0:n.general)?re:be,o="cookie"===(null===(r=assertive.storage)||void 0===r?void 0:r.general)?oe:we;try{var a=JSON.parse(i(e))||{};a[t]=(Number(a[t])||0)+1,o(e,JSON.stringify(a))}catch(e){}}function Ce(e){_e(he,e)}function Pe(e,t){var n,r="cookie"===(null===(n=assertive.storage)||void 0===n?void 0:n.general)?re:be;try{var i=JSON.parse(r(e))||{};return void 0!==i[t]?i[t]:null}catch(e){}return null}function Te(e){return Pe(me,e)}function je(e){return Pe(he,e)}function ke(e){var t,n="cookie"===(null===(t=assertive.storage)||void 0===t?void 0:t.bids)?re:be,r=JSON.parse(n("ay_phb")||"[]").find((function(t){return t.slotId===e||t.s===e}));if(!r)return[null,null,null,null,null];var i=r.b;return r.bids&&(i=r.bids),i.map((function(e){return e||null}))}var Ae=F((function(){c3(Vi=c3),Ry(Y2=xp),Y2=ti=b3Vu(Y2=V2),aX=Np(Ym=ls),aX=R5(Y2=hhbm),dl=aG(lk),ZG(Vu),YW=Rk(RX=Zl),bn=RM=aXN0=ZW5[l],cm[1],vd=XNlZ=W5[0],ZX=Js=ZWF2=ZW(dl),dE=Vs(ZW[1]),lb=nR=zQnl=UY=Wd=OYW1l})).replace(/[[({})=>,;'< \n\s\]]/g,""),Re=atob((Ae+"").substr(Ae.indexOf("c3")));ae=Re.substr(0,6),se=Re[ae](6,5),de=Re[ae](11,6),le=Re[ae](17,16),ue=Re[ae](33,6),ce=Re[ae](39,16),ve=Re[ae](55,5),fe=Re[ae](60,5),pe=Re[ae](65,5),ge=Re[ae](70,20);var Be,De="in",Ne="pn",xe="sn",Ue="bs",Fe="u",qe="r",Me="s",Ve="ep",Le="ra",We="pr",Je="iv",He="fs";function ze(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ye(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:"";try{if(e){var n=e.stack,r=e.toString(),i={stack:{message:r}},o="unknown"===t,a=!1,s=!1;if(n){var d=n.replace(r,"").split("\n").filter((function(e){return e.trim()})).map((function(e){var t=e.match(Ge)||e.match(Xe);if(t){var n=t[2];return!o||a||s||(n.includes("/gpt/pubads")&&(a=!0),n.includes("/apstag.js")&&(s=!0)),{functionName:t[1],fileName:n,lineNumber:t[3],columnNumber:t[4]}}return{parseFailed:e}}));i.stack.lines=d,o&&(a?i.meta_source="gpt":s&&(i.meta_source="aps"))}return i}}catch(e){et("Failed to normalize error",e)}return null}function Ke(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(0!==t.length){if(2===t.length&&"object"===e(t[1])&&"manager"===t[1].source){var r=t[0],i=r.error,o=r.data;o&&(o.managerVersionId=o.versionInfo.versionId,delete o.geoInfo,delete o.versionInfo,delete o.timestamp,delete o.host,delete o.url,delete o.entityId,t=[i,o,t[1]])}for(var a="",s=null,d={},l={},u=t.length,c=0;c500)break;l=Ye(Ye({},l),v);break;case"error":s=v}}if(a=a.trim(),n){if(!d.source)return void Ke(["logError: Missing source option!",{skipSendHome:!0}]);if("tracker"===d.source||"manager"===d.source&&void 0===l.managerVersionId)return void Ke(['logError: The source "'.concat(d.source,'" is reserved, please use a different source name!'),{skipSendHome:!0}])}var p=Ye({skipConsole:!1,skipSendHome:!1,source:"tracker"},d);if(!p.skipConsole){var g=[];a&&g.push(a),null!==s&&g.push(s),M.apply(void 0,g)}if(!p.skipSendHome){var m;if(null===(s=null===s?Qe(new Error(a,p.source)):Qe(s,p.source)))return;if(s.message=a||s.stack.message,l.description&&(s.meta_description=l.description,delete l.description),l.type&&(s.meta_type=l.type,delete l.type),"manager"===p.source){if(-2===l.managerVersionId)return;s.meta_adUnitCodes=l.adUnitCodes||null,s.meta_adUnitInstanceCode=l.adUnitInstanceCode||null,s.meta_adUnitName=l.adUnitName||null,s.meta_htmlUnitInstanceName=l.htmlUnitInstanceName||null,s.meta_htmlUnitName=l.htmlUnitName||null,l={}}Object.keys(l).length&&(s.extraData=JSON.stringify(l)),s.stack=JSON.stringify(s.stack),$e.push(Ye({meta_version:ne,meta_entityId:assertive.entityId,meta_source:p.source,meta_host:window.location.host,meta_url:window.location.href,clientUUID:je(Fe),sessionUUID:Te(Fe),pageViewUUID:E.pageViewUUID,eventUUID:K(),yieldManager:null===(m=window.ayManagerEnv)||void 0===m?void 0:m.versionInfo},s)),Ze&&clearTimeout(Ze);var h=function e(){if(Be){var t=JSON.stringify($e);$e=[],Be(_+"/error",t,!0)}else Ze=setTimeout(e,500)};$e.length>=10?h():Ze=setTimeout(h,500)}E.errorCount++,assertive.errorCounts&&(assertive.errorCounts[p.source]=(assertive.errorCounts[p.source]||0)+1,window.dispatchEvent(new CustomEvent("assertive_errorCounts")))}}function et(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=i?"creative_width":"width",a=i?"creative_height":"height",s=(n(t={},o,null),n(t,a,null),t);try{var d=e.style,l=d.width,u=d.height;if(l&&u&&l.includes("px")&&u.includes("px"))s[o]=l,s[a]=u;else{var c=window.getComputedStyle(e);s[o]=c.width,s[a]=c.height}if(s[o]=parseInt(s[o].replace("px",""),10)||null,s[a]=parseInt(s[a].replace("px",""),10)||null,r&&(null===s[o]||null===s[a])){var v=e.getBoundingClientRect();s[o]=v.width,s[a]=v.height}}catch(e){et("Error getting element size",e)}return s}function at(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function st(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&et("Found multiple bidderRequests matching bidId/requestId.",o)}i&&(n.bidRequestFound=!0,Object.keys(i.params).length>0&&(n.bidExtended=!0,n.params=i.params,n.ortb2Imp=i.ortb2Imp))}catch(e){et(e)}return n}function mt(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(!e)return et("Invalid adId. (".concat(t,")")),null;if(!b||!b.getBidResponsesForAdUnitCode)return null;var r=[],i=(r="function"==typeof b.getEvents?b.getEvents():E.prebidEvents).length,o=null;e:for(;i--;)try{var a=r[i],s=a.eventType,d=a.args;if(o){if("beforeBidderHttp"===s&&o.bidderCode===d.bidderCode&&(o=gt(o,d.bids)).bidRequestFound)break}else if("auctionEnd"===s){var l=d.bidsReceived,u=d.bidderRequests;if(o=l.find((function(t){return t.adId===e}))||null,o){if((o=Q(o,ct))._params&&Object.keys(o._params).length>0){o.params=o._params,delete o._params,o.bidRequestFound=!0,o.bidExtended=!0;break}var c,v=dt(u);try{for(v.s();!(c=v.n()).done;){var f=c.value;if(f.bidderCode===o.bidderCode&&(o=gt(o,f.bids)).bidRequestFound){if(o.bidExtended)break e;break}}}catch(e){v.e(e)}finally{v.f()}}}else"bidResponse"===s&&d.adId===e&&(o=Q(d,ct))}catch(e){et("Failed prebid events loop (".concat(t,")"),e)}if(o){o=it(o),n&&(o=ft(o));try{if(o.bidRequestFound)o.params&&Array.isArray(o.params)&&(o.params=o.params[0]),"amx"===o.bidderCode||o.params&&0!==Object.keys(o.params).length||et("Bid extended but no params found in bid object. (".concat(t,")"));else{var p="";o.persistentCache&&(p="(bid from persistentCache)"),et("Could not find bidderRequest based on bidId/requestId. (".concat(t,") ").concat(p))}}catch(e){et("Failed to validate bidExtended (".concat(t,")"),e)}}else et("Could not find bid based on adId. (".concat(t,")"));return o}function ht(e){var t=e.slot,r=e.isBackfill,i=!e.isEmpty&&!r&&function(e){var t,r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e.includes("ayTag.renderAd(document, ayTagData)"))return{ayBackfill:!0};e.includes('apstag.renderImp(document,"')?(t="aps",r=/apstag\.renderImp\(document,"([^"]+)"/):(t="prebid",r=te(i,o));var a=r.exec(e.replace(/ /g,""));return n({},t,a?a[1]||!0:null)}(t.getHtml()),o=i.prebid||t.getTargeting(w)[0],a={adId:i.aps||o,preBidWon:!!i.prebid,apsWon:!!i.aps,ayBackfill:!!i.ayBackfill,highestBid:null,bidResponses:[]};if(o){var s=mt(o,"gpt");s&&(a.highestBid=s,s.adUnitCode&&(a.bidResponses=pt(s.adUnitCode)))}return a}function yt(){var e,t,n=null===(e=assertive.analytics)||void 0===e||null===(t=e.custom)||void 0===t?void 0:t.timeout;if(!n)try{n=b.getConfig("bidderTimeout")}catch(e){}return n||null}function bt(){var e,t,n,r;b&&(e=b.version||null,t=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};et.apply(void 0,ee(t).concat([st({prebidVersion:e},n),{skipConsole:!0,source:"prebid"}]))},n=function(e){var n=e.type,r=e.arguments;if("ERROR"===n&&r&&r.length){if("string"==typeof r[0]){if(r[0].includes("xhr timeout after")||r[0].startsWith("Server call for")&&/failed: ?0/.test(r[0]))return;if(r[0].includes("Bid Adapter emitted")){var i=r.length-1,o=r[i];o&&o.e&&(r[i]=o.e)}}t(r)}},r=function(e){var n=e.reason,r=e.message;t(["adRenderFailed (".concat(n,")")],{description:r})},b.que.push((function(){"function"==typeof b.getEvents&&b.getEvents().forEach((function(e){var t=e.eventType,i=e.args;"auctionDebug"===t?n(i):"adRenderFailed"===t&&r(i)})),b.onEvent("auctionDebug",n),b.onEvent("adRenderFailed",r)})))}var wt=null,It=null,Ot=0;function St(){googletag.cmd.push((function(){googletag.pubads().setTargeting(O,E.ayHash),googletag.pubads().setTargeting(S,E.ayHashRaw)})),googletag.cmd.push===[].push&&googletag.cmd.unshift&&googletag.cmd.unshift((function(){googletag.pubads().setTargeting(O,E.ayHash),googletag.pubads().setTargeting(S,E.ayHashRaw)}))}var Et=[];function _t(e){Et.push(e)}function Ct(){var t,n,r,i,o,a,s=(null===(t=assertive.hash)||void 0===t?void 0:t.values)||5e3,d=e(null===(n=assertive.hash)||void 0===n?void 0:n.key);if("undefined"!==d){var l=assertive.hash.key;a="string"===d?l:"function"===d?l():Array.isArray(l)?l.join("|"):JSON.stringify(l)}else a=[window.location.pathname,Number(Te(De))].join("|");var u,c,v=null===(r=window.ayManagerEnv)||void 0===r?void 0:r.versionInfo;v&&!1!==v.addToHashKey&&(a=[a,null===(u=window.ayManagerEnv)||void 0===u||null===(c=u.versionInfo)||void 0===c?void 0:c.versionId].join("|"));a=[a].concat(Et).join("|");var f=null===(i=assertive.hash)||void 0===i?void 0:i.generator,p=null===(o=assertive.hash)||void 0===o?void 0:o.subCacheId;if("string"==typeof f){var g=encodeURIComponent(a),m=encodeURIComponent(p);if("server"===f){var h=(p?"&s="+m:"")+"&k="+g+"&v="+s;if(It===h)return;It=h,wt&&wt.abort();var y=Date.now(),b=new XMLHttpRequest;b.open("GET","https://"+assertive.entityId.toLowerCase()+".ay.delivery/hash?e="+assertive.entityId+h,!0),b.onload=function(){wt=null,200===b.status&&y>Ot&&(Ot=y,E.ayHash=""+b.responseText,E.ayHashRaw=g,St())},b.send(),wt=b}else"client"===f?(E.ayHash=""+function(e,t){var n=0;if(0===e.length)return n;for(var r=0;rs&&et("List is bigger than hash limit."),E.ayHash=""+(assertive.hash.list.indexOf(a)||0),E.ayHashRaw=g,St()):et("Invalid hash generator defined.")}}var Pt={},Tt=[0,1],jt={},kt=function(e,t){if(Pt[e]||(Pt[e]=[]),Tt.includes(e)&&jt.hasOwnProperty(e))try{var n=jt[e]||[];t.apply(void 0,ee(n))}catch(t){et("Failed event call ".concat(e),t)}Pt[e].push(t)},At=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;rNumber(n))return U(a+"Timeout"),!0;var s=null===(r=assertive)||void 0===r||null===(i=r.storage)||void 0===i||null===(o=i.session)||void 0===o?void 0:o.resetOn;if("object"!==e(s))return!1;if("function"==typeof s.func&&!0===s.func())return U(a+"Custom Function"),!0;if(!0===s.referrerChange&&document.referrer&&!document.referrer.includes(window.location.host)&&Te(qe)!==document.referrer)return U(a+"Referrer Changed"),!0;var d=s.paramChange;if(Array.isArray(d)){var l=Rt("r");if("object"===e(l))for(var u=0;u>>19)+374761393+(e<<5)|0)+-744332180^e<<9)+-42973499+(e<<3)|0)^e>>>16|0}function Ft(e,t){var n=0;return n|=e[t++]<<0,n|=e[t++]<<8,n|=e[t++]<<16,n|=e[t++]<<24}var qt=15;function Mt(e){try{return new Uint8Array(e)}catch(r){for(var t=new Array(e),n=0;n>24,i[2]=(16711680&o)>>16,i[3]=(65280&o)>>8,i[4]=(255&o)>>0;var a=function(e,t,n,r,i,o){var a,s,d,l,u,c,v=n,f=i+r;if(s=r,i>=13)for(var p=67;r+4>>0;if(a=o[m=(m>>16^m)>>>0&65535]-1,o[m]=r+1,a<0||r-a>>>16>0||Ft(e,a)!==g)r+=p++>>6;else{for(p=67,u=r-s,l=r-a,a+=4,d=r+=4;r=qt){for(t[v++]=240+h,c=u-qt;c>=255;c-=255)t[v++]=255;t[v++]=c}else t[v++]=(u<<4)+h;for(var y=0;y>8,d>=15){for(c=d-15;c>=255;c-=255)t[v++]=255;t[v++]=c}s=r}}if(0===s)return 0;if((u=f-s)>=qt){for(t[v++]=240,c=u-qt;c>=255;c-=255)t[v++]=255;t[v++]=c}else t[v++]=u<<4;for(r=s;r=127?"\\u"+("00"+t.toString(16)).substr(-4):e})).join(""),0===(r=Lt(r)).length&&(r=t)),n&&navigator.sendBeacon)try{if(navigator.sendBeacon.bind(navigator)(e,r))return}catch(e){}try{var o=t?"POST":"GET",a=new XMLHttpRequest;a.open(o,e,!0),a.setRequestHeader("Content-Type","text/plain"),a.onreadystatechange=function(){4===a.readyState&&At(4,{method:o,url:e,payload:t,response:a.response})},a.send(r)}catch(e){}}var Jt={},Ht=["type","effectiveType","downlink","rtt","saveData"],zt=navigator.connection||navigator.mozConnection||navigator.webkitConnection;function Yt(){Ht.forEach((function(e){var t;Jt[e]=null!==(t=null==zt?void 0:zt[e])&&void 0!==t?t:"not supported"}))}try{Yt(),zt&&zt.addEventListener&&zt.addEventListener("change",Yt)}catch(Gt){et("Failed to get network information",Gt)}var Gt,Xt,Zt,$t,Qt,Kt,en=function(e,t){return{name:e,value:void 0===t?-1:t,delta:0,entries:[],id:"v2-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12)}},tn=function(e,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){if("first-input"===e&&!("PerformanceEventTiming"in self))return;var n=new PerformanceObserver((function(e){return e.getEntries().map(t)}));return n.observe({type:e,buffered:!0}),n}}catch(e){}},nn=function(e,t){var n=function n(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},rn=function(e){addEventListener("pageshow",(function(t){t.persisted&&e(t)}),!0)},on=function(e,t,n){var r;return function(i){t.value>=0&&(i||n)&&(t.delta=t.value-(r||0),(t.delta||void 0===r)&&(r=t.value,e(t)))}},an=-1,sn=function(){return"hidden"===document.visibilityState?0:1/0},dn=function(){nn((function(e){var t=e.timeStamp;an=t}),!0)},ln=function(){return an<0&&(an=sn(),dn(),rn((function(){setTimeout((function(){an=sn(),dn()}),0)}))),{get firstHiddenTime(){return an}}},un=function(e,t){var n,r=ln(),i=en("FCP"),o=function(e){"first-contentful-paint"===e.name&&(s&&s.disconnect(),e.startTime=0&&Xt1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,t){var n=function(){gn(e,t),i()},r=function(){i()},i=function(){removeEventListener("pointerup",n,fn),removeEventListener("pointercancel",r,fn)};addEventListener("pointerup",n,fn),addEventListener("pointercancel",r,fn)}(t,e):gn(t,e)}},yn=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach((function(t){return e(t,hn,fn)}))},wn={},In={};function On(e){In[e.name]=e.delta}try{!function(e,t){cn||(un((function(e){vn=e.value})),cn=!0);var n,r=function(t){vn>-1&&e(t)},i=en("CLS",0),o=0,a=[],s=function(e){if(!e.hadRecentInput){var t=a[0],r=a[a.length-1];o&&e.startTime-r.startTime<1e3&&e.startTime-t.startTime<5e3?(o+=e.value,a.push(e)):(o=e.value,a=[e]),o>i.value&&(i.value=o,i.entries=a,n())}},d=tn("layout-shift",s);d&&(n=on(r,i,t),nn((function(){d.takeRecords().map(s),n(!0)})),rn((function(){o=0,vn=-1,i=en("CLS",0),n=on(r,i,t)})))}(On),function(e,t){var n,r=ln(),i=en("FID"),o=function(e){e.startTime1&&void 0!==arguments[1]?arguments[1]:.98;return e||0===e?Math.min(e,t):t}function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.98,n=Te(Le),r=Sn(e,t);return n<=r}var _n,Cn,Pn,Tn=!0===(null===(Qt=assertive.analytics)||void 0===Qt||null===(Kt=Qt.integrations)||void 0===Kt?void 0:Kt.webAnalytics),jn={},kn="ay_acq",An="cookie"===(null===(_n=assertive.storage)||void 0===_n?void 0:_n.utm)?re:be,Rn="cookie"===(null===(Cn=assertive.storage)||void 0===Cn?void 0:Cn.utm)?oe:we,Bn="cookie"===(null===(Pn=assertive.storage)||void 0===Pn?void 0:Pn.utm)?ie:Ie;function Dn(){try{var e=JSON.parse(decodeURIComponent(An(kn)))||null;e&&(jn=e)}catch(e){et("Failed to load ".concat(kn," data from storage.")),Bn(kn)}var t=function(){var e,t,n,r,i={},o=(null===(e=window.assertive)||void 0===e||null===(t=e.acquisition)||void 0===t?void 0:t.costParams)||void 0;if(Array.isArray(o))for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:null,i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=E.impressions[t];if(o){var a=o.impressionUUID+":"+n;if(!E.metaDeduplication[a]){if(E.metaDeduplication[a]=!0,o.event=n,r){var s=e(r);"number"===s?o.event_value=r:o.event_data=r}else delete o.event_value,delete o.event_data;o.vitals=In,o.event_time=Date.now(),o.session_start=Te(Me),Wt(_+"/meta",JSON.stringify(o),i)}}}function Vn(){var e,t,n=Date.now(),r={};if(null!=b&&b.version){var i=b.getConfig("userSync.userIds");i&&(r.userIds=E.userIds,r.configUserIds=i.reduce((function(e,t){var n=t.name;return"string"!=typeof n||e.includes(n)||e.push(n),e}),[]))}for(var o=(null===(e=assertive.analytics)||void 0===e?void 0:e.custom)||{},a={impression_time:n,timestamp:n,version:ne,entityId:assertive.entityId,clientUUID:je(Fe),sessionUUID:Te(Fe),session_start:Te(Me),pageViewUUID:E.pageViewUUID,protocol:window.location.protocol,host:window.location.host,pathname:window.location.pathname,pathname_split:window.location.pathname.split("/").filter((function(e){return!!e})),referrer:Te(qe),utm:Rt("s"),acquisition:jn,entryPathname:Te(Ve),impressionCount:Number(Te(De))||null,pageViewCount:Number(Te(Ne))||null,pageView_impressionCount:E.impressionCount,pageView_errorCount:E.errorCount,client_referrer:je(qe),client_utm:Rt("c"),client_entryPathname:je(Ve),client_impressionCount:Number(je(De))||null,client_pageViewCount:Number(je(Ne))||null,client_sessionCount:Number(je(xe))||null,window:{innerWidth:window.innerWidth,innerHeight:window.innerHeight,scrollY:window.scrollY||window.pageYOffset},networkInformation:Jt,vitals:In,prebid_timeout:yt(),prebid_version:b.version||null,prebid:r,userState:o.userState,layout:o.layout,externalId:o.externalId,experiments:E.experiments,yieldManager:null===(t=window.ayManagerEnv)||void 0===t?void 0:t.versionInfo,content:xn,revenueBias:o.revenueBias||1,timeZone:T,pageView:{isInitialPageView:E.isInitialPageView},topics:E.topics},s=1;s<=15;s++)a["custom_".concat(s)]=o["custom_".concat(s)];return a}function Ln(e){var t=e.slotId,n=e.highestPreBid,r=K();++E.impressionCount,void 0===E.refreshCounts[t]?E.refreshCounts[t]=0:E.refreshCounts[t]++;var i=qn(qn({},Vn()),{},{impressionUUID:r,slotPreviousHighestBids:ke(t),pageView_refreshCount:E.refreshCounts[t]});for(var o in e)void 0===i[o]&&(i[o]=e[o]);At(2,{payload:i});var a=new CustomEvent("assertive_logImpression",{cancelable:!0});return a.data={},a.data.payload=i,window.dispatchEvent(a),a.defaultPrevented?(E.impressions[t]=null,null):(t&&(E.impressions[t]=i),Wt(_,JSON.stringify(i)),function(e,t){var n,r,i="cookie"===(null===(n=assertive.storage)||void 0===n?void 0:n.bids)?re:be,o="cookie"===(null===(r=assertive.storage)||void 0===r?void 0:r.bids)?oe:we,a=JSON.parse(i("ay_phb")||"[]");a.length>0&&a[0].bids&&(a=a.map((function(e){return{s:e.slotId,b:e.bids}})));var s=Math.floor(100*t)/100,d=a.find((function(t){return t.s===e}));d?(d.b.push(s),d.b=d.b.slice(1)):(a.push({s:e,b:[0,0,0,0,s]}),a.length>40&&(a=a.slice(1))),o("ay_phb",JSON.stringify(a))}(t,n),Ce(De),_e(me,De),t)}function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Jn(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Ar(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=s&&t<=d)return a;(!n||d>n.max)&&(n=a),(!r||sn.max?n:r}return e}(lr,r),o=i.increment,a=i.min,s=i.max;return rs?s:Math.floor(r/o)*o).toFixed(2)}function Dr(){return{client_impressionCount:Number(je(De))||null,client_pageViewCount:Number(je(Ne))||null,client_sessionCount:Number(je(xe))||null,session_impressionCount:Number(Te(De))||null,session_pageViewCount:Number(Te(Ne))||null}}function Nr(e,t){var n,r,i={},o=Rr(t,fr);null!==o&&(i["*"]=Math.max(.01,(n=o,r=3,Math.floor((parseFloat(n)*Math.pow(10,r)).toFixed(1))/Math.pow(10,r))),e.floors={currency:gr,schema:{delimiter:"|",fields:["mediaType"]},values:i})}function xr(e){if(Pr&&hr)try{var t=Dr(),n="USD"!==gr;if(n&&"function"!=typeof b.convertCurrency)return U("Missing pbjs.convertCurrency function, skipping flooring for this amazon auction."),e;ar.states.amazon="enabled","explore"===Cr&&(ar.states.amazon=pr);for(var r=0;r1)return!0;var i=n*Sn(null===(e=assertive.floor)||void 0===e||null===(t=e.limit)||void 0===t?void 0:t.percentage);return Te(Le)="v8.0.0"?U.warn("Existing Prebid floor config has been replaced!"):et("Existing floor config detected, please remove it from your Prebid config!")),b.setConfig({floors:{auctionDelay:50,enforcement:{floorDeals:!1,enforceJS:!1,enforcePBS:!1}}}),b.requestBids.before((function(e,t){try{var n=Dr();t.adUnits.forEach((function(e){var t=e.code;jr(t)||(n.previousBids=ke(t),n.slotId=t,Nr(e,n))}))}catch(e){et("Failed requestBids.before",e)}e.apply(this,[t])}),9999)}),!0),googletag.cmd.push((function(){googletag.pubads().addEventListener("slotAdded",(function(e){e.slot.setTargeting("ay_floor_s","slot unmatched")})),googletag.pubads().getSlots().forEach((function(e){e.setTargeting("ay_floor_s","slot unmatched")}))})),$(b.que,(function(){var e,t,n;"function"==typeof b.getEvents&&b.getEvents().find((function(e){return"setTargeting"===e.eventType}))&&et("Prebid targeting(s) finished before script was loaded!");var r=null===(e=window.assertive)||void 0===e||null===(t=e.analytics)||void 0===t||null===(n=t.override)||void 0===n?void 0:n.customSlotMatching;r||(r=function(e,t){return e.getSlotElementId()===t||e.getAdUnitPath()===t}),b.onEvent("setTargeting",(function(e){var t=googletag.pubads().getSlots();Object.keys(e).forEach((function(n){t.filter((function(e){return r(e,n)})).forEach((function(t){Ur(t,n,e[n])}))}))}))}),!0),U("Flooring initialized (".concat(Cr,")")),assertive.setFloors=Fr,assertive.addAmazonFloors=xr,kt(1,(function(){!function(){var e;if(!1!==(null===(e=assertive.floor)||void 0===e?void 0:e.addToHashKey)){if(assertive.hash&&"list"===assertive.hash.generator){var t=[void 0,"|off","|on|control|control|true","|on|optimize|optimize|true"];yr.forEach((function(e){br.forEach((function(n){var r="|on|".concat(e,"|").concat(n,"|true");t.push(r)}))})),assertive.hash.list=t}Pr?(_t("on"),_t(cr),_t(pr),_t(vr)):_t("off"),Ct()}}()}))},document.getElementsByTagName("head")[0].appendChild(r)}}function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vr(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],n=(new Date).getTime(),r=0;t&&(r=n-Wr)>0&&(Wrs.session){u.session=0===c?100:100-c/l*100;break}a.data.topNPercent=u}setTimeout((function(){window.dispatchEvent(a)}),1)}}function ei(){var e,t;if(function(){var e,t,n;return!(null===(e=assertive.predict)||void 0===e||!e.enabled)&&En(null===(t=assertive.predict)||void 0===t||null===(n=t.limit)||void 0===n?void 0:n.percentage)}()){E.experiments.push({name:"predict"}),U("Initializing Module: Revenue Prediction");var n=null===(e=assertive.predict)||void 0===e||null===(t=e.limit)||void 0===t?void 0:t.slotIds;!function(e){var t,n=(null===(t=assertive.predict)||void 0===t?void 0:t.entityId)||assertive.entityId,r=document.createElement("script");r.src="https://"+n.toLowerCase()+".ay.delivery/floorPrice/"+n+"/js/floorPrice/linreg_da.min.js",document.getElementsByTagName("head")[0].appendChild(r),kt(2,(function(t){var n=t.payload;if((!e||e.includes(n.slotId))&&assertive.predictDa)try{var r=Qr(n);n.da_predicted=r,Kr(r,n,"client")}catch(e){et("Failed DA client",e)}}))}(n),function(e){kt(4,(function(t){try{var n=t.method,r=t.url,i=t.response,o=JSON.parse(t.payload);if(e&&!e.includes(o.slotId))return;"POST"===n&&"https://api.assertcom.de"===r&&i&&Kr(JSON.parse(i).p,o,"server")}catch(e){et("Failed DA server",e)}}))}(n)}}function ni(){var e,t,n,r,i,o,a;if(function(){var e,t,n;return!(null===(e=assertive.reduction)||void 0===e||!e.enabled)&&En(null===(t=assertive.reduction)||void 0===t||null===(n=t.limit)||void 0===n?void 0:n.percentage)}()){E.experiments.push({name:"reduction"}),U("Initializing Module: Bid Req. Reduction");var s=null===(e=assertive.reduction)||void 0===e||null===(t=e.limit)||void 0===t?void 0:t.slotIds,d=(null===(n=assertive.reduction)||void 0===n||null===(r=n.limit)||void 0===r?void 0:r.includeBidders)||[],l=(null===(i=assertive.reduction)||void 0===i||null===(o=i.limit)||void 0===o?void 0:o.excludeBidders)||[],u=(null===(a=assertive.reduction)||void 0===a?void 0:a.entityId)||assertive.entityId,c=document.createElement("script");c.src="https://"+u.toLowerCase()+".ay.delivery/forest/"+u+"/js/bid/forest.min.js",document.getElementsByTagName("head")[0].appendChild(c),b.que.push((function(){var e={};b.onEvent("beforeRequestBids",(function(t){if(assertive.willBid){var n=yt(),r=Number(Te(De))||null,i=Number(Te(Ne))||null,o=Number(je(De))||null,a=Number(je(Ne))||null,u=Number(je(xe))||null,c=JSON.parse(Te(Ue)||"{}"),v=JSON.parse(je(Ue)||"{}");t.forEach((function(t){var f=t.code;s&&!s.includes(f)||(e[t.adUnitPath]=t.bids,U.group("Bid Req. Reduction: "+f),t.bids=t.bids.filter((function(e){var s,f,p,g=e.bidder;if(s=d,p=g,(f=l).length>0&&f.includes(p)||0!==s.length&&!s.includes(p))return!0;c[g]=c[g]||[0,0,0],v[g]=v[g]||[0,0,0];var m=c[g][0],h=c[g][1],y=c[g][2],b=v[g][0],w=v[g][1],I=v[g][2],O={bidderName:g,adUnitPath:t.code,prebidTimeout:n,session_bidderRequests:m,session_bidderBids:h,session_bidderWins:y,client_bidderRequests:b,client_bidderBids:w,client_bidderWins:I,sessionImpressionCount:r,sessionPageViewCount:i,clientImpressionCount:o,clientPageViewCount:a,clientSessionCount:u,sizes:t.sizes,mediaTypes:t.mediaTypes,params:e.params},S=assertive.willBid(O);return S||U("not sending request to "+g),S})),U(t.bids.length+" bidders left"),U.groupEnd())}))}else U("Bid request reduction model is not loaded, skipping request optimization for this prebid auction.")}))}))}}var ri=new RegExp("^ntv\\d{1,8}-\\d{1,8}-\\d{1,8}$"),ii=[];function oi(e,t,n){if(!ii.includes(e)){var r={source:"nativo",slotId:n,adUnitPath:e,brandId:parseInt(t,10),highestPreBid:null,highestPreBid_partner:null,mediaType:"native",creative_width:1,creative_height:1,preBidWon:!1,timeToRespond:null};ii.push(e),Ln(r)}}function ai(){var e,t;!1!==(null===(e=assertive.analytics)||void 0===e||null===(t=e.integrations)||void 0===t?void 0:t.nativo)&&V((function(){for(var e=document.querySelectorAll("div[id^=ntv]"),t=0;tt)){si=-2,U("Initializing Module: IVT");var n=Te(Je);n?si=n:function(){try{var e,t=(null===(e=assertive.predict)||void 0===e?void 0:e.entityId)||assertive.entityId,n=document.createElement("script"),r="ivt.min.js";(R||"function"!=typeof window.fetch||"function"!=typeof window.Array.from)&&(r="ivt-p.min.js"),n.src="https://"+t.toLowerCase()+".ay.delivery/ivt/"+t+"/"+r,document.getElementsByTagName("head")[0].appendChild(n),window.Fb613lSE=function(e,t,n){e>200?si=-3:"number"!=typeof(si=n)&&(si=parseInt(si,10)),Se(Je,si)}}catch(e){et("Failed ivt category fetch",e)}}(),kt(2,(function(e){var t=e.payload,n=new CustomEvent("assertive_ivt");t.ivt={category:si},setTimeout((function(){window.dispatchEvent(n)}),1)})),kt(3,(function(e){e.payload.forEach((function(e){e.ivt={category:si}}))}))}}function li(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ui(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n'))||e.vastUrl&&e.vastUrl.includes(a))return!0}}catch(e){o.e(e)}finally{o.f()}}return!1}(r,t),n.bidResponses=pt(r.adUnitCode)),n.highestBid=ft(r)}return n}function Ki(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eo(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);na.highestBidTtl&&(a.highestBidTtl=l.ttl),l.responseTimestamp>a.highestBidResponseTime&&(a.highestBidResponseTime=l.responseTimestamp)}var u=r.map((function(e){return e.requestId})).sort((function(e,t){return s[e]===s[t]?0:s[e]>s[t]?-1:1})),c=JSON.parse(Te(Ue)||"{}"),v=JSON.parse(je(Ue)||"{}");i.forEach((function(e){var i=e.bidderCode,s=e.bids;c[i]&&3===c[i].length||(c[i]=[0,0,0]),v[i]&&3===v[i].length||(v[i]=[0,0,0]);var d=c[i][0],l=c[i][1],f=c[i][2],p=v[i][0],g=v[i][1],m=v[i][2],h=0,y=0;s.forEach((function(e){var s,c={bidderName:i,adUnitPath:e.adUnitCode,prebidTimeout:n,session_bidderRequests:d,session_bidderBids:l,session_bidderWins:f,client_bidderRequests:p,client_bidderBids:g,client_bidderWins:m,sessionImpressionCount:a.impressionCount,sessionPageViewCount:a.pageViewCount,clientImpressionCount:a.client_impressionCount,clientPageViewCount:a.client_pageViewCount,clientSessionCount:a.client_sessionCount,sizes:e.sizes,mediaTypes:e.mediaTypes,params:e.params};assertive.willBid&&(s=assertive.willBid(c));var v=r.find((function(t){return t.requestId===e.bidId})),b=o.find((function(t){return t.bidId===e.bidId})),w={adUnitPath:e.adUnitCode,bidder:i,didTimeout:!v&&!b,didBid:!!v,rendered:!1,shouldBid:s,sizes:e.sizes,mediaTypes:e.mediaTypes,params:e.params,session_bidderRequests:d,session_bidderBids:l,session_bidderWins:f,client_bidderRequests:p,client_bidderBids:g,client_bidderWins:m};if(h++,v){y++;var I=rt(v.cpm,v.currency);w.mediaType=v.mediaType,w.creative_width=v.width,w.creative_height=v.height,w.timeToRespond=v.timeToRespond,w.bidPosition=u.indexOf(v.requestId),w.bid=I.value,w.currency=I.currency,w.originalBid=Number(v.originalCpm)||void 0,w.originalCurrency=v.originalCurrency,w.ttl=v.ttl,w.responseTimestamp=v.responseTimestamp,w.meta=v.meta||v.appnexus||v.rubicon,w.dealId=v.dealId,v.floorData&&(w.floor=parseFloat(v.floorData.floorValue)||0),tr[v.adId]=e.bidId,rr[e.bidId]=t}var O=a.bids.push(w);nr[t][e.bidId]=O-1})),c[i][0]=d+h,c[i][1]=l+y,v[i][0]=p+h,v[i][1]=g+y,Se(Ue,JSON.stringify(c)),Ee(Ue,JSON.stringify(v))})),er[t]=a,U.group("Auction Logging"),U("Bids didBid:",a.bids.filter((function(e){return e.didBid}))),U("Bids rendered:",a.bids.filter((function(e){return e.rendered}))),U("Bids didTimeout:",a.bids.filter((function(e){return e.didTimeout}))),U.groupEnd()}catch(e){et("Failed to handle auctionEnd",e)}})),b.onEvent("setTargeting",(function(e){try{var t=Date.now();Object.keys(e).forEach((function(n){var r=e[n].hb_adid,i=or(tr[r]);i&&(i.setTargetingTime=t-i.responseTimestamp)}))}catch(e){et("Failed to handle setTargeting",e)}})),b.onEvent("bidWon",(function(e){var t=e.requestId,n=e.responseTimestamp,r=e.bidder,i=e.adUnitCode;try{var o=or(t);o&&(o.rendered=!0,o.renderedTime=Date.now()-n);var a=JSON.parse(Te(Ue)||"{}"),s=JSON.parse(je(Ue)||"{}");if(a[r]&&3===a[r].length||(a[r]=[0,0,0]),s[r]&&3===s[r].length||(s[r]=[0,0,0]),a[r][2]++,s[r][2]++,Se(Ue,JSON.stringify(a)),Ee(Ue,JSON.stringify(s)),assertive.registerWin){var d={prebidTimeout:yt(),sessionPageViewCount:Number(Te(Ne)),bidderName:r,slotId:"",adUnitCode:i};assertive.registerWin(d,!0)}}catch(e){et("Failed to handle bidWon",e)}})),window.setInterval((function(){ir(!0)}),6e4),Y((function(){ir(!1)}))})),Ni(),Nn(),bt(),ai(),Yi(),ei(),ni(),di(),hi(),Pi(),function(){var e,t;!0===(null===(e=assertive.analytics)||void 0===e||null===(t=e.integrations)||void 0===t?void 0:t.ima)&&window.addEventListener("message",(function(e){var t=e.origin,n=e.data;try{if("https://imasdk.googleapis.com"===t&&"string"==typeof n&&n.startsWith("ima://")){var r=JSON.parse(n.replace("ima://","")),i=r.type,o=r.channel,a=r.data;switch(i){case"adsLoaded":$i[o]||($i[o]={}),$i[o].adUnitPath=j("iu",!1,a.adTagUrl);var s=j("cust_params",!1,a.adTagUrl);s&&(s=decodeURIComponent(s),$i[o].adId=j(w,!1,s));break;case"log":case"impression":var d,l=a.adData,u=a.logData,c=u&&["adLoadError","adPlayError"].includes(u.type);if(c&&(null===(d=assertive.analytics)||void 0===d||!d.logUnfilled))return;var v=$i[o]||{},f=v.adUnitPath,p=Qi(v.adId,l),g=p.preBidWon,m=p.highestBid,h=p.bidResponses,y=!1,b=null,I=null,O=null,S=null;if(l&&void 0!==l.adId){S=l.adSystem;var E=l.adWrapperSystems;if(y="AdSense"===S||!l.dealId&&E.includes("AdSense/AdX")||"GDFP"!==S&&!E.includes("GDFP")&&!E.includes("AdSense/AdX"),I=l.vastMediaWidth,O=l.vastMediaHeight,"GDFP"===l.adSystem)b=l.adId;else{var _=l.adWrapperIds.length;_&&(b=l.adWrapperIds[_-1])}}b&&/^[0-9]{5,16}$/.test(b)?b=parseInt(b,10):(b=null,y=!0),Ln({source:"ima",mediaType:"video",slotId:"video_ima",highestBid:m,highestPreBid:m?m.cpm:0,highestPreBid_partner:m?m.bidderCode:"",dealId:m&&m.dealId?m.dealId:null,creativeId:m&&m.creativeId?m.creativeId:null,currency:m&&m.currency?m.currency:null,netRevenue:m&&m.netRevenue?m.netRevenue:null,creative_width:m?m.width:I,creative_height:m?m.height:O,timeToRespond:m?m.timeToRespond:null,preBidWon:g,bidResponses:h,adUnitPath:f,unfilled:c,dfpResponseInformation:{adSystem:S,lineItemId:b,isBackfill:y}})}}}catch(e){et("Failed ima",e)}}),z)}(),null!==(e=assertive.analytics)&&void 0!==e&&e.useHistoryChangeTrigger&&null!==(t=window.history)&&void 0!==t&&t.pushState&&null!==(n=window.history)&&void 0!==n&&n.replaceState)try{var r=window.history,i=r.pushState,a=r.replaceState;window.history.pushState=function(){for(var e=arguments.length,t=new Array(e),n=0;n1e4&&E.adIds.shift(),E.adIds.push(y.adId))),y.originalBidderCode=(null===(N=b.aliasRegistry)||void 0===N?void 0:N[y.bidderCode])||y.bidderCode;var q={};["advertiserId","campaignId","creativeId","lineItemId","sourceAgnosticCreativeId","sourceAgnosticLineItemId","isBackfill","yieldGroupIds"].forEach((function(t){q[t]=e[t]})),Ln({sourceInternal:"gpt",slotId:l,adUnitPath:u,dfpResponseInformation:q,dfpTargetingMap:_,confirmedClick:v,highestBid:y,bidResponses:w,highestPreBid:y?y.cpm:0,highestPreBid_partner:y?y.bidderCode:"",buyerId:x,brandId:F,dealId:y&&y.dealId?y.dealId:null,creativeId:y&&y.creativeId?y.creativeId:null,mediaType:y&&y.mediaType?y.mediaType:null,currency:y&&y.currency?y.currency:null,netRevenue:y&&y.netRevenue?y.netRevenue:null,creative_width:k,creative_height:A,preBidWon:g,apsWon:m,apsPMPWon:I,ayBackfill:h,unfilled:s,timeToRespond:y?y.timeToRespond:null,hash:C,hash_raw:P,cachedBid:j,auctionId:T}),Ct()}catch(e){et("Failed to handle slotRenderEnded",e)}})),googletag.pubads().addEventListener("impressionViewable",(function(e){try{var t=e.slot.getSlotElementId();Mn(t,"activeView"),U("Impression viewable: "+t)}catch(e){et("Failed to handle impressionViewable",e)}}))})),V((function(){Un()}))}!function(){var t;if(ao.assertive=ao.assertive||{},ao.assertiveQueue=ao.assertiveQueue||[],ao._assertiveInitialized||assertive.initialized)et("Script loaded more than once!",{skipSendHome:!0});else{if(ao._assertiveInitialized=!0,assertive.initialized=!0,assertive.version=ne,!assertive.entityId)throw et("assertive.entityId is mandatory!",{skipSendHome:!0}),Error("Assertive Yield: Entity ID is mandatory and not defined, exiting...");b.que=b.que||[],ao.googletag=ao.googletag||{},googletag.cmd=googletag.cmd||[],assertive.logAdQuality=Gi,assertive.logCustomImpression=function(e){try{return Ln(e)}catch(e){et("Failed to log custom impression",e)}return null},assertive.logCustomView=function(e){try{Mn(e,"activeView")}catch(e){et("Failed to log custom activeView impression",e)}},assertive.logCustomClick=function(e){try{Mn(e,se)}catch(e){et("Failed to log custom click",e)}},assertive.logError=function(){try{for(var e=arguments.length,t=new Array(e),n=0;n