static.criteo.net
Open in
urlscan Pro
2a02:2638:3::3
Public Scan
URL:
https://static.criteo.net/js/ld/publishertag.js
Submission: On October 28 via api from IT — Scanned from FR
Submission: On October 28 via api from IT — Scanned from FR
Form analysis
0 forms found in the DOMText Content
!function(){var B=function(e,t){return(B=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(e,t){e.__proto__=t}:function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}))(e,t)};function s(e,t){function n(){this.constructor=e}B(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var b=function(){return(b=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function F(e,t){for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(i,e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(i[n],e[i[n]])}function N(e,t,n,i){var o,r=arguments.length,a=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;0<=s;s--)(o=e[s])&&(a=(r<3?o(a):3<r?o(t,n,a):o(t,n))||a);3<r&&a&&Object.defineProperty(t,n,a)}function L(e,t){}function W(e,t){"object"==typeof Reflect&&"function"==typeof Reflect.metadata&&Reflect.metadata(e,t)}function G(e,a,s,d){new(s=s||Promise)(function(n,t){function i(e){try{r(d.next(e))}catch(e){t(e)}}function o(e){try{r(d.throw(e))}catch(e){t(e)}}function r(e){var t;e.done?n(e.value):((t=e.value)instanceof s?t:new s(function(e){e(t)})).then(i,o)}r((d=d.apply(e,a||[])).next())})}function z(i,o){var r,a,s,d={label:0,sent:function(){if(1&s[0])throw s[1];return s[1]},trys:[],ops:[]};function e(n){return function(e){var t=[n,e];if(r)throw new TypeError("Generator is already executing.");for(;d;)try{if(r=1,a&&(s=2&t[0]?a.return:t[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,t[1])).done)return s;switch(a=0,(t=s?[2&t[0],s.value]:t)[0]){case 0:case 1:s=t;break;case 4:return d.label++,{value:t[1],done:!1};case 5:d.label++,a=t[1],t=[0];continue;case 7:t=d.ops.pop(),d.trys.pop();continue;default:if(!(s=0<(s=d.trys).length&&s[s.length-1])&&(6===t[0]||2===t[0])){d=0;continue}if(3===t[0]&&(!s||t[1]>s[0]&&t[1]<s[3]))d.label=t[1];else if(6===t[0]&&d.label<s[1])d.label=s[1],s=t;else{if(!(s&&d.label<s[2])){s[2]&&d.ops.pop(),d.trys.pop();continue}d.label=s[2],d.ops.push(t)}}t=o.call(i,d)}catch(e){t=[6,e],a=0}finally{r=s=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}}e(0),e(1),e(2)}function H(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function q(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return{value:(e=e&&i>=e.length?void 0:e)&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function V(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,o,r=n.call(e),a=[];try{for(;(void 0===t||0<t--)&&!(i=r.next()).done;)a.push(i.value)}catch(e){o={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(o)throw o.error}}return a}function j(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(V(arguments[t]))}function K(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var i=Array(e),o=0,t=0;t<n;t++)for(var r=arguments[t],a=0,s=r.length;a<s;a++,o++)i[o]=r[a]}function l(e){return this instanceof l?(this.v=e,this):new l(e)}function X(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n.apply(e,t||[]),o=[];function r(e){i[e]&&(e,0)}function a(e,t){try{(n=i[e](t)).value instanceof l?Promise.resolve(n.value.v).then(s,d):c(o[0][2],n)}catch(e){c(o[0][3],e)}var n}function s(e){a("next",e)}function d(e){a("throw",e)}function c(e,t){e(t),o.shift(),o.length&&a(o[0][0],o[0][1])}r("next"),r("throw"),r("return"),Symbol.asyncIterator}function J(n){var e;function t(e,t){e,n[e]}t("next"),t("throw",function(e){throw e}),t("return"),Symbol.iterator}function Y(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];function n(e){e,t[e]}e?e.call(t):(t="function"==typeof q?q(t):t[Symbol.iterator](),n("next"),n("throw"),n("return"),Symbol.asyncIterator)}function Q(e,t){Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t}function Z(e){if(!e||!e.__esModule){if(null!=e)for(var t in e)Object.hasOwnProperty.call(e,t)&&(t,e[t]);0}}function $(e){e&&e.__esModule}function ee(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");t.get(e)}function te(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");t.set(e,n)}var ne=(()=>{function n(){this.allowedPixelLoaded=!1,this.blockedPixelFailed=!1}return n.prototype.isAdBlocked=function(e){var t=this;this.createPixel(n.allowedPixelUrl,function(){(t.allowedPixelLoaded=!0)===t.blockedPixelFailed&&e(!0)},function(){}),this.createPixel(n.blockedPixelUrl,function(){e(!1)},function(){(t.blockedPixelFailed=!0)===t.allowedPixelLoaded&&e(!0)})},n.prototype.createPixel=function(e,t,n){var i=document.createElement("img");i.src=e,i.height=1,i.width=1,i.style.display="none",i.onload=t,i.onerror=n},n.allowedPixelUrl="https://static.criteo.net/images/pixel.gif?ch=1",n.blockedPixelUrl="https://static.criteo.net/images/pixel.gif?ch=2",n})(),ie=(()=>{function t(e){this.timerEnabled=!0,this.timerStarted=!1,this.localStorageHelper=e}return t.create=function(e){return new t(e)},t.prototype.adBlockFlagEnabled=function(){return null!==this.localStorageHelper.getItem(t.ADBLOCK_FLAG_KEY)},t.prototype.enableAdBlockFlag=function(){this.localStorageHelper.setItem(t.ADBLOCK_FLAG_KEY,"1",t.ADBLOCK_FLAG_LIFETIME)},t.prototype.disableAdBlockFlag=function(){this.localStorageHelper.removeItem(t.ADBLOCK_FLAG_KEY)},t.prototype.setAdBlockFlagTimer=function(e){var t=this;this.adBlockFlagEnabled()||!this.timerEnabled||this.timerStarted||(this.timerStarted=!0,setTimeout(function(){t.timerEnabled&&(t.refreshAdblockFlag(),t.timerEnabled=!1)},e))},t.prototype.disableAdBlockFlagTimer=function(){this.timerEnabled=!1,this.adBlockFlagEnabled()&&this.refreshAdblockFlag()},t.prototype.refreshAdblockFlag=function(){var t=this;(new ne).isAdBlocked(function(e){e?t.enableAdBlockFlag():t.disableAdBlockFlag()})},t.ADBLOCK_FLAG_KEY="criteo_adblock_flag",t.ADBLOCK_FLAG_LIFETIME=864e5,t})(),c=(()=>{function a(e,t,n,i){void 0===i&&(i=!0),this.url=e,this.data=t,this.contentType=n,this.withCredentials=i}return a.prototype.send=function(e,t,n,i){var o=void 0!==this.data?"POST":"GET",r=this.getXMLHttpRequest(o,e,t,n,i);void 0!==r?r.send(this.data):void 0!==(r=this.getXDomainRequest(o,e,t,n,i))&&r.send(this.data)},a.prototype.getXMLHttpRequest=function(e,t,n,i,o){var r=new XMLHttpRequest;if("withCredentials"in r)return r.open(e,this.url,!0),r.timeout=o||a.LOCAL_PASSBACK_TIMEOUT,this.contentType?r.setRequestHeader("Content-type",this.contentType):"POST"===e&&r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.withCredentials=this.withCredentials,r.onload=function(){4===r.readyState&&200===r.status?t(r.responseText):n(r.readyState,r.status)},r.onerror=function(){n(void 0,void 0)},i&&(r.ontimeout=i),r},a.prototype.getXDomainRequest=function(e,t,n,i,o){var r;if("undefined"!=typeof XDomainRequest)return(r=new XDomainRequest).timeout=o||a.LOCAL_PASSBACK_TIMEOUT,r.open(e,this.url),r.onload=function(){void 0!==r.responseText?t(r.responseText):n(void 0,void 0)},r.onerror&&(r.onerror=function(){n(void 0,void 0)}),r.ontimeout&&i&&(r.ontimeout=i),r},a.LOCAL_PASSBACK_TIMEOUT=3e4,a})(),d,oe=((e=>{e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Debug=2]="Debug"})(d=d||{}),["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" ")),C=(()=>{function i(){}return i.Log=function(e,t){var n;i.LOGLEVEL<e||(e=d[e].toUpperCase(),n=0<(n=window.navigator.userAgent).indexOf("MSIE ")||0<n.indexOf("Trident/"),window.console&&(n?console.log("[PubTag] ".concat(e,": %O"),t):console.log("%cPubTag",oe,"".concat(e,": %O"),t)))},i.Debug=function(e){i.Log(d.Debug,e)},i.Warning=function(e){i.Log(d.Warning,e)},i.Error=function(e){i.Log(d.Error,e)},i.LOGLEVEL=d.Error,i})();function re(e){C.LOGLEVEL=e}var e=function(){},ae=function(i){function e(e,t){var n=i.call(this)||this,e=(n.containerId=t,e.getElementById(t));return e?n.element=e:C.Error("Target element '"+t+"' not found in the document"),n}return s(e,i),e.prototype.ResizeFrame=function(e,t){},e.prototype.Write=function(e){this.element&&(this.element.innerHTML=e)},e.prototype.LoadScript=function(e){e+=-1===e.indexOf("?")?"?":"&",e+="containerid="+encodeURIComponent(this.containerId);var t=new c(e);t.send(function(e){eval(e)},function(){},function(){})},e}(e);function se(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var de=(n=>{function e(e){var t=n.call(this)||this;return t.document=e,t}return s(e,n),e.prototype.ResizeFrame=function(e,t){var n;this.document.defaultView&&this.document.defaultView.frameElement&&((n=this.document.defaultView.frameElement).width=e.toString(),n.height=t.toString())},e.prototype.Write=function(e){this.document.open(),this.document.write(e),this.document.close()},e.prototype.LoadScript=function(e){this.Write("<script type='text/javascript' src='"+se(e)+"'><\/script>")},e})(e),t=(()=>{function e(e){this.name=e}return e.prototype.eval=function(e){},e})();function P(e){try{return JSON.parse(e)}catch(e){}}function ce(e){var t="number"==typeof window.PREBID_TIMEOUT?window.PREBID_TIMEOUT:void 0;return e&&t?Math.min(e,t):e||t||void 0}var le=(()=>{function e(e){this.elapsed=0,this.isTimeout=!1,this.adapterStartElapsed=0,this.cdbCallStartElapsed=0,this.cdbCallEndElapsed=0,this.adapterEndElapsed=0,this.slotIdsMatchedByCache=[],this.events=[],this.metricsManager=e}return e.prototype.getMetricsManager=function(){return this.metricsManager},e.prototype.withElapsed=function(e){return this.elapsed=Math.round(e),this},e.prototype.withIsTimeout=function(e){return(this.isTimeout=e)&&this.events.push({eventId:"CdbCallTimeout"}),this},e.prototype.withAdapterStartElapsed=function(e){return this.adapterStartElapsed=Math.round(e),this.events.push({eventId:"AdapterBidStart",elapsed:this.adapterStartElapsed}),this},e.prototype.withCdbCallStartElapsed=function(e){return this.cdbCallStartElapsed=Math.round(e),this.events.push({eventId:"CdbCallStart",elapsed:this.cdbCallStartElapsed}),this},e.prototype.withCdbCallEndElapsed=function(e){return this.cdbCallEndElapsed=Math.round(e),this.events.push({eventId:"CdbCallEnd",elapsed:this.cdbCallEndElapsed}),this},e.prototype.withAdapterEndElapsed=function(e){return this.adapterEndElapsed=Math.round(e),this.events.push({eventId:"AdapterBidEnd",elapsed:this.adapterEndElapsed}),this},e.prototype.withAdapterTimeout=function(e){return this.adapterTimeout=e&&Math.round(e),this},e.prototype.withTimeToFirstByte=function(e){return this.timeToFirstByte=e&&Math.round(e),this.timeToFirstByte&&this.events.push({eventId:"TimeToFirstByte",elapsed:this.timeToFirstByte}),this},e.prototype.withConnectionEstablishmentTime=function(e){return this.connectionEstablishmentTime=e&&Math.round(e),this.connectionEstablishmentTime&&this.events.push({eventId:"TcpConnectionElapsedTime",elapsed:this.connectionEstablishmentTime}),this},e.prototype.withDomainLookupTime=function(e){return this.domainLookupTime=e&&Math.round(e),this.domainLookupTime&&this.events.push({eventId:"DomainLookupElapsedTime",elapsed:this.domainLookupTime}),this},e.prototype.buildEvents=function(e){if(this.events.length)return e={requestId:e,events:this.events},void 0!==this.adapterTimeout&&this.adapterEndElapsed>this.adapterTimeout&&e.events.push({eventId:"AdapterTimeout"}),e},e.prototype.clear=function(){this.events=[]},e})(),ue=(()=>{function e(){}return e.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())},e})(),I;function pe(e){return"amp"!==e.toLowerCase()?I.Unspecified:I.AMP}(e=>{e[e.Unspecified=0]="Unspecified",e[e.AMP=1]="AMP"})(I=I||{});var u=159,he=184,fe=275,ve=334,S=(()=>{function a(e){this.auditMode=e=void 0===e?!1:e}return a.prototype.buildUrl=function(e,t,n,i,o){void 0===n&&(n=I.Unspecified);var r=a.CRITEO_BIDDER_URL+this.getHandlerPath(e,t);return r+="?ptv="+u,!0===t.isAdBlocked&&(r+="&abp=1"),r=this.appendCommonParameters(r,e,i,o),r=(r+=t.isOptOut?"&optout=1":"")+(t.bundle?"&bundle="+t.bundle:""),n!==I.Unspecified&&(r+="&im="+n),r=(r+="&cb="+String(ue.generateCacheBuster()))+t.getContextFlags()},a.prototype.buildErrorUrl=function(){return a.CRITEO_BIDDER_URL+a.CRITEO_ERROR_HANDLER},a.prototype.buildCsmEventsUrl=function(){return a.CRITEO_BIDDER_URL+a.CRITEO_CSM_EVENTS_HANDLER},a.prototype.buildCsmCountersUrl=function(){return a.CRITEO_BIDDER_URL+a.CRITEO_CSM_COUNTERS_HANDLER},a.prototype.appendCommonParameters=function(e,t,n,i){return e+="&profileId="+String(t),void 0!==n&&(e+="&av="+String(n)),void 0!==i&&(e+="&wv="+encodeURIComponent(i)),e},a.prototype.getHandlerPath=function(e,t){var n;if(this.auditMode)return a.CRITEO_BIDDER_AUDIT_HANDLER;if(e==ve&&void 0!==t.slotsExt)for(var i in t.slotsExt){i=t.slotsExt[i];if(void 0!==(null==(n=null==i?void 0:i.data)?void 0:n.gtin))return a.CRITEO_COMMERCE_EXPERIENCE_3_HANDLER;if(void 0!==(null==(n=null==i?void 0:i.data)?void 0:n.keyword))return a.CRITEO_COMMERCE_EXPERIENCE_4_HANDLER}return a.CRITEO_BIDDER_HANDLER},a.CRITEO_BIDDER_URL="https://bidder.criteo.com/",a.CRITEO_BIDDER_HANDLER="cdb",a.CRITEO_COMMERCE_EXPERIENCE_3_HANDLER="experiences/2023-10/dynamic-buttons",a.CRITEO_COMMERCE_EXPERIENCE_4_HANDLER="experiences/2023-10/product-recommendation",a.CRITEO_CSM_EVENTS_HANDLER="csm/events",a.CRITEO_CSM_COUNTERS_HANDLER="csm/counters",a.CRITEO_ERROR_HANDLER="error",a.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit",a})(),me=(()=>{function e(){this.urlBuilder=new S}return e.prototype.sendEventsToBeacon=function(e,t){navigator.sendBeacon&&e&&navigator.sendBeacon(t,JSON.stringify(e))},e})(),ge=(n=>{function e(e){var t=n.call(this)||this;return t.localStorageHelper=e,t}return s(e,n),e.prototype.getLocalStorageKeyCount=function(){return this.localStorageHelper.getAllItemsByPrefix("criteo_").length+this.localStorageHelper.getAllItemsByPrefix("cto_").length},e.prototype.sendEvents=function(e,t){this.sendEventsToBeacon(e.buildEvents(t),this.urlBuilder.buildCsmEventsUrl()),e.clear()},e})(me),ye=(()=>{function t(e,t,n,i,o,r,a,s,d,c,l,u,p,h,f,v,m,g,y,w,b,C){this.slots=e,this.context=t,this.urlBuilder=n,this.profileId=i,this.integrationMode=o||I.Unspecified,this.networkId=r,this.adapterVersion=a,this.privacyWrapper=s,this.wrapperVersion=d,this.viewportComputer=c,this.adapterTimeout=l,this.clientRequestId=u,this.userIds=p,this.auctionStart=h,this.source=f,this.regs=v,this.bcat=m,this.badv=g,this.bapp=y,this.fledgeEnabled=w||!1,this.publisherId=b,this.accountId=C}return t.prototype.isValid=function(){return 0<this.slots.length},t.prototype.getRequest=function(){for(var e=[],t=0,n=this.slots;t<n.length;t++){var i,o=n[t],r={slotid:o.slotId,impid:o.impId};if(void 0!==o.zoneId&&(r.zoneid=o.zoneId),void 0===o.nativeCallback&&!o.native||(r.native=!0),void 0!==o.transactionId&&(r.transactionid=o.transactionId),void 0!==o.publisherSubId&&(r.publishersubid=o.publisherSubId),void 0!==o.sizes){for(var a=[],s=0,d=o.sizes;s<d.length;s++){var c=d[s];a.push(c.width+"x"+c.height)}r.sizes=a}void 0!==o.video&&(i={context:o.video.context,playersizes:this.parsePlayerSizes(o.video.playersize),mimes:o.video.mimes,protocols:o.video.protocols,maxduration:o.video.maxduration,api:o.video.api,skip:o.video.skip,placement:o.video.placement,playbackmethod:o.video.playbackmethod,minduration:o.video.minduration,startdelay:o.video.startdelay,plcmt:o.video.plcmt,w:o.video.w,h:o.video.h,linearity:o.video.linearity,skipmin:o.video.skipmin,skipafter:o.video.skipafter,minbitrate:o.video.minbitrate,maxbitrate:o.video.maxbitrate,delivery:o.video.delivery,pos:o.video.pos,playbackend:o.video.playbackend,adPodDurationSec:o.video.adPodDurationSec,durationRangeSec:o.video.durationRangeSec},r.video=i),void 0!==this.viewportComputer&&void 0!==(i=this.viewportComputer.getSlotPosition(o))&&(r.position={top:i.top,left:i.left}),void 0!==o.ext&&(r.ext=o.ext),void 0!==o.rwdd&&(r.rwdd=o.rwdd),!this.fledgeEnabled&&null!=(o=r.ext)&&o.ae&&delete r.ext.ae,e.push(r)}var l=b(b({},this.context.getUser()),{ceh:this.context.ceh,uspOptout:this.context.ccpaOptout}),u=this.context.getSite(),p=this.context.getApp(),h=this.context.getDevice(),u=(void 0!==this.publisherId&&(void 0!==u?(u.publisher=u.publisher||{},u.publisher.id=this.publisherId):void 0!==p?(p.publisher=p.publisher||{},p.publisher.id=this.publisherId):u={publisher:{id:this.publisherId}}),this.context.getUserExtWithContextualData(),this.context.getPublisherExt(),{publisher:{url:this.context.highestAccessibleUrl},slots:e,user:l,site:u,bcat:this.bcat,badv:this.badv,bapp:this.bapp,app:p,device:h});return void 0!==this.networkId&&(u.publisher.networkid=this.networkId),void 0!==this.accountId&&(u.publisher.id=this.accountId),this.privacyWrapper&&(this.privacyWrapper.gdprConsent&&(u.gdprConsent=this.privacyWrapper.gdprConsent),this.privacyWrapper.ccpaIabConsent&&(l.uspIab=this.privacyWrapper.ccpaIabConsent.uspString),this.privacyWrapper.gppConsent)&&(void 0===this.regs&&(this.regs={}),this.regs.gpp=this.privacyWrapper.gppConsent.gpp,this.regs.gpp_sid=this.privacyWrapper.gppConsent.gppSid),void 0!==this.viewportComputer&&(p=this.viewportComputer.getViewport(),u.viewport={width:p.width,height:p.height,scrollTop:p.scrollTop,scrollLeft:p.scrollLeft}),void 0!==this.adapterTimeout&&(u.tmax=this.adapterTimeout),void 0!==this.auctionStart&&(u.auctionStart=this.auctionStart),void 0!==this.clientRequestId&&(u.id=this.clientRequestId),void 0!==this.userIds&&(u.eids=this.userIds),void 0!==this.source&&(u.source=this.source),void 0!==this.regs&&(u.regs=this.regs),u},t.parsePlayerSize=function(e){return e[0]+"x"+e[1]},t.prototype.parsePlayerSizes=function(e){return e&&(Array.isArray(e[0])?e.map(function(e){return t.parsePlayerSize(e)}):[t.parsePlayerSize(e)])},t.prototype.getUrl=function(){return this.urlBuilder.buildUrl(this.profileId,this.context,this.integrationMode,this.adapterVersion,this.wrapperVersion)},t})();function we(e){var t={slots:void 0,time_to_next_call:0};return void 0!==e.exd&&(void 0!==e.exd.time_to_next_call&&(t.time_to_next_call=e.exd.time_to_next_call),t.slots=e.exd.slots,delete e.exd),t}var i=(()=>{function n(e){(e=void 0===e?!0:e)&&window.performance&&window.performance.now?this.now=window.performance.now.bind(window.performance):Date.now?this.now=Date.now:this.now=function(){return(new Date).getTime()}}return n.CreateRunning=function(){var e=new n;return e.start(),e},n.CreateWithStartTime=function(e){var t=new n(!1);return t.startTime=e,t},n.TimeSincePageLoad=function(){if(window.performance){if(window.performance.now)return window.performance.now();if(window.performance.timing&&window.performance.timing.navigationStart)return(new Date).getTime()-performance.timing.navigationStart}return 0},n.prototype.start=function(){this.startTime=this.now()},n.prototype.elapsed=function(){return this.now()-this.startTime},n})();function be(e){if(window.performance&&window.performance.getEntries)for(var t=window.performance.getEntries(),n=t.length-1;0<=n;--n){var i=t[n];if(i.name===e&&i.duration)return Math.round(i.duration)}}var Ce=(()=>{function t(e,t,n){this.builder=e,this.timer=void 0!==t?i.CreateWithStartTime(t):i.CreateRunning();e=this.timer.elapsed();this.builder.withAdapterStartElapsed(e),void 0!==n&&this.builder.withAdapterTimeout(n)}return t.prototype.sendRequest=function(e){this.url=e,this.sendTime=i.CreateRunning(),this.builder.withCdbCallStartElapsed(this.timer.elapsed())},t.prototype.requestReceived=function(e){void 0===e&&(e=!1),this.builder.withElapsed(be(this.url)||this.sendTime.elapsed()),this.builder.withCdbCallEndElapsed(this.timer.elapsed()),this.builder.withIsTimeout(e)},t.prototype.finish=function(){this.builder.withAdapterEndElapsed(this.timer.elapsed());var e=t.getLastCdbTiming();void 0!==e&&(this.builder.withTimeToFirstByte(t.computeTimeToFirstByte(e)),this.builder.withConnectionEstablishmentTime(t.computeConnectionEstablishmentTime(e)),this.builder.withDomainLookupTime(t.computeDomainLookupTime(e)))},t.getLastCdbTiming=function(){var e;return void 0!==window.performance&&void 0!==window.performance.getEntriesByType&&"function"==typeof window.performance.getEntriesByType&&void 0!==(e=window.performance.getEntriesByType("resource"))&&void 0!==(e=e.filter(function(e){return 0<=e.name.indexOf("cdb")}))&&0<e.length?e[e.length-1]:void 0},t.computeTimeToFirstByte=function(e){var t=e.responseStart,e=e.requestStart;if(void 0!==t&&void 0!==e)return t-e},t.computeConnectionEstablishmentTime=function(e){e=e.connectEnd-e.connectStart;return isNaN(e)?void 0:e},t.computeDomainLookupTime=function(e){e=e.domainLookupEnd-e.domainLookupStart;return isNaN(e)?void 0:e},t})();function a(e){try{return JSON.parse(e)}catch(e){}}var Ie=1,_e=(()=>{function e(e,t,n){void 0===n&&(n=function(e){}),this.uspapiCallbacks={},this.currentWindow=e,this.timeout=t.uspApiTimeout,this.logger=n}return e.prototype.getCMPFrame=function(){for(var e,t=this.currentWindow,n=0;n<10;++n){try{t.frames.__uspapiLocator&&(e=t)}catch(e){}if(t===this.currentWindow.top)break;t=t.parent}return e},e.prototype.hasCallerFunctionInWindow=function(){return"function"==typeof this.currentWindow.__uspapi},e.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInWindow()||void 0!==this.getCMPFrame()},e.prototype.retrieveConsent=function(n){var i=this,o=!1,r=window.setTimeout(function(){o=!0,i.logger("Timeout: Unable to resolve CCPA consent after ".concat(i.timeout,"ms")),n(void 0)},this.timeout);this.executeCommand("getUSPData",Ie,function(e,t){o||(clearTimeout(r),t?(i.logger("CCPA consent retrieved"),i.processResponseData(e,n)):(i.logger("Error retrieving CCPA consent data from CMP"),n(void 0)))})},e.prototype.processResponseData=function(e,t){e?t(e):(this.logger("Unable to read CCPA consent data from CMP"),t(void 0))},e.prototype.executeCommand=function(e,t,n){var i,o=this;this.hasCallerFunctionInWindow()||(this.logger("No CCPA CMP defined on current frame"),i=this.getCMPFrame(),this.currentWindow.__uspapi=function(e,t,n){i?(t={__uspapiCall:{command:e,parameter:t,callId:e=Math.random().toString(10)}},o.uspapiCallbacks[e]=n,i.postMessage(t,"*")):(o.logger("CCPA CMP not found in any frame"),n({msg:"CCPA CMP not found in any frame"},!1))},this.currentWindow.addEventListener("message",function(e){var e="string"==typeof e.data?a(e.data):e.data;e&&e.__uspapiReturn&&e.__uspapiReturn.callId&&e.__uspapiReturn.returnValue&&(e=e.__uspapiReturn,o.uspapiCallbacks)&&o.uspapiCallbacks[e.callId]&&(o.uspapiCallbacks[e.callId](e.returnValue,e.success),delete o.uspapiCallbacks[e.callId])},!1)),this.currentWindow.__uspapi(e,t,n)},e.prototype.hasUserOptOut=function(e){return!(!e||!e.uspString||"1YNY"===e.uspString.toUpperCase()||"1YNN"===e.uspString.toUpperCase()||"1YN-"===e.uspString.toUpperCase()||"1-N-"===e.uspString.toUpperCase()||"1-NN"===e.uspString.toUpperCase()||"1-NY"===e.uspString.toUpperCase()||"1---"===e.uspString)},e})(),p=(()=>{function e(e,t,n){void 0===n&&(n=function(e){}),this.tcfv1ConsentProvider=e,this.tcfv2ConsentProvider=t,this.logger=n}return e.prototype.getReadyToRetrieveProvider=function(){return this.tcfv2ConsentProvider.hasCallerFunctionInFrame()?this.tcfv2ConsentProvider:this.tcfv1ConsentProvider.hasCallerFunctionInFrame()?this.tcfv1ConsentProvider:void 0!==this.tcfv2ConsentProvider.getCMPFrame()?this.tcfv2ConsentProvider:void 0!==this.tcfv1ConsentProvider.getCMPFrame()?this.tcfv1ConsentProvider:void 0},e.prototype.retrieveConsentForPassback=function(e){var t=this.getReadyToRetrieveProvider();void 0===t&&(this.logger("No compatible GDPR privacy provider found"),e(void 0)),t===this.tcfv1ConsentProvider?this.tcfv1ConsentProvider.retrieveConsentForPassback(e):t===this.tcfv2ConsentProvider&&this.tcfv2ConsentProvider.retrieveConsent(e)},e.prototype.retrieveConsent=function(e){var t=this.getReadyToRetrieveProvider();void 0===t&&(this.logger("No compatible GDPR privacy provider found"),e(void 0)),null!=t&&t.retrieveConsent(e)},e.prototype.readyToRetrieve=function(){return this.tcfv2ConsentProvider.readyToRetrieve()||this.tcfv1ConsentProvider.readyToRetrieve()},e})(),Ee=91,Ae=(()=>{function e(e,t,n){void 0===n&&(n=function(e){}),this.cmpCallbacks={},this.currentWindow=e,this.timeout=t.tcfTimeout,this.pingTimeout=t.tcfPingTimeout,this.pingDelay=t.tcfPingDelay,this.cmpAutoDetect=t.cmpAutoDetect,this.logger=n}return e.prototype.getCMPFrame=function(){for(var e,t=this.currentWindow,n=0;n<10;++n){try{t.frames.__cmpLocator&&(e=t)}catch(e){}if(t===this.currentWindow.top)break;t=t.parent}return e},e.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__cmp},e.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},e.prototype.pingWithTimeout=function(i,e,t,n){function o(e,t){r.logger(t),clearTimeout(e),n()}var r=this;return window.setTimeout(function(){var n=window.setTimeout(function(){o(i,"Timeout: Unable to get ping return after ".concat(e,"ms"))},e);r.executeCommand("ping",null,function(e,t){clearTimeout(n),t?(r.logger("GDPR CMP ping returned"),!0!==e.cmpLoaded&&o(i,"GDPR ping returned cmpLoaded which is not true"),r.logger("GDPR ping returned cmpLoaded which is true")):o(i,"Error sending ping to GDPR CMP")})},t)},e.prototype.retrieveConsent=function(e){this.executeRetrieveConsent("getConsentData",null,e)},e.prototype.retrieveConsentForPassback=function(e){this.executeRetrieveConsent("getVendorConsents",[Ee],e)},e.prototype.executeRetrieveConsent=function(e,t,n){var i=this,o=!1,r=window.setTimeout(function(){o=!0,i.logger("Timeout: Unable to resolve GDPR consent after ".concat(i.timeout,"ms")),n(void 0)},this.timeout),a=!1!==this.cmpAutoDetect?this.pingWithTimeout(r,this.pingTimeout,this.pingDelay,function(){o=!0,i.logger("Timeout: Unable to ping GDPR API after ".concat(i.pingTimeout,"ms")),n(void 0)}):void 0;this.executeCommand(e,t,function(e,t){clearTimeout(a),o||(clearTimeout(r),t?(i.logger("GDPR consent retrieved"),i.processConsentData(e,n)):(i.logger("Error retrieving GDPR consent data from CMP"),n(void 0)))})},e.prototype.processConsentData=function(e,t){var n;e?(n={},"undefined"===e.consentData&&(e.consentData=""),n.consentData=void 0!==e.consentData?e.consentData:"",void 0!==e.gdprApplies&&(n.gdprApplies=!!e.gdprApplies),t(n)):(this.logger("Unable to read GDPR consent data from CMP"),t(void 0))},e.prototype.executeCommand=function(e,t,n){var i,o=this;this.hasCallerFunctionInFrame()||(this.logger("No GDPR CMP defined on current frame"),i=this.getCMPFrame(),this.currentWindow.__cmp=function(e,t,n){i?(t={__cmpCall:{command:e,parameter:t,callId:e=Math.random().toString(10)}},o.cmpCallbacks[e]=n,i.postMessage(t,"*")):(o.logger("GDPR CMP not found in any frame"),n({msg:"GDPR CMP not found in any frame"},!1))},this.currentWindow.addEventListener("message",function(e){var e="string"==typeof e.data?a(e.data):e.data;e&&e.__cmpReturn&&e.__cmpReturn.callId&&e.__cmpReturn.returnValue&&(e=e.__cmpReturn,o.cmpCallbacks)&&o.cmpCallbacks[e.callId]&&(o.cmpCallbacks[e.callId](e.returnValue,e.success),delete o.cmpCallbacks[e.callId])},!1)),this.currentWindow.__cmp(e,t,n)},e})(),Pe=2,h,Se=((e=>{e.LOADED="tcloaded",e.UI_SHOWN="cmpuishown",e.USER_ACTION_COMPLETE="useractioncomplete"})(h=h||{}),(()=>{function e(e,t,n){void 0===n&&(n=function(e){}),this.cmpCallbacks={},this.currentWindow=e,this.timeout=t.tcfTimeout,this.pingTimeout=t.tcfPingTimeout,this.pingDelay=t.tcfPingDelay,this.cmpAutoDetect=t.cmpAutoDetect,this.logger=n}return e.prototype.getCMPFrame=function(){for(var e,t=this.currentWindow,n=0;n<10;++n){try{t.frames.__tcfapiLocator&&(e=t)}catch(e){}if(t===this.currentWindow.top)break;t=t.parent}return e},e.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__tcfapi},e.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},e.prototype.pingWithTimeout=function(n,e,t,i){function o(e,t){r.logger(t),clearTimeout(e),i()}var r=this;return window.setTimeout(function(){var t=window.setTimeout(function(){o(n,"Timeout: Unable to get TCFv2 ping return after ".concat(e,"ms"))},e);r.executeCommand("ping",Pe,function(e){clearTimeout(t),r.logger("TCFv2 CMP ping returned in ms"),"error"===e.cmpStatus?o(n,"Error status on ping to TCFv2 CMP"):!0!==e.cmpLoaded?o(n,"TCFv2 ping returned cmpLoaded = false"):r.logger("TCFv2 ping returned cmpLoaded = true")})},t)},e.prototype.retrieveConsent=function(n){var i,o,r=this,a=!1,s=window.setTimeout(function(){a=!0,o===h.UI_SHOWN?(r.logger("Timeout: User hasn't confirm their consent settings after ".concat(r.timeout,"ms")),n(i)):(r.logger("Timeout: Unable to resolve TCFv2 consent after ".concat(r.timeout,"ms")),n(void 0))},this.timeout),d=!1!==this.cmpAutoDetect?this.pingWithTimeout(s,this.pingTimeout,this.pingDelay,function(){a=!0,r.logger("Timeout: Unable to ping TCFv2 API after ".concat(r.pingTimeout,"ms")),n(void 0)}):void 0;this.executeCommand("addEventListener",Pe,function(e,t){clearTimeout(d),a||((o=e.eventStatus)!==h.UI_SHOWN&&clearTimeout(s),t?(r.logger("TCFv2 consent retrieved in ms"),e||(r.logger("Unable to read GDPR consent data from CMP"),n(void 0)),i=r.processResponseData(e),(!1===e.gdprApplies&&void 0===o||o===h.LOADED||o===h.USER_ACTION_COMPLETE)&&n(i)):(r.logger("Error retrieving TCFv2 consent data from CMP"),n(void 0)))})},e.prototype.processResponseData=function(e){var t,n={};return"undefined"===e.tcString&&(e.tcString=""),n.consentData=void 0!==e.tcString?e.tcString:"",void 0!==e.gdprApplies&&(n.gdprApplies=!!e.gdprApplies),n.version=e.tcfPolicyVersion||Pe,n.purposes=null==(t=null==e?void 0:e.purpose)?void 0:t.consents,n.vendorConsents=null==(t=null==e?void 0:e.vendor)?void 0:t.consents,n},e.prototype.executeCommand=function(e,t,n,i){var o,r=this;this.hasCallerFunctionInFrame()||(this.logger("No TCFv2 CMP defined on current frame"),o=this.getCMPFrame(),this.currentWindow.__tcfapi=function(e,t,n,i){o?(t={__tcfapiCall:{command:e,version:t,parameter:i,callId:e=Math.random().toString(10)}},r.cmpCallbacks[e]=n,o.postMessage(t,"*")):(r.logger("TCFv2 CMP not found in any frame"),n({msg:"TCFv2 CMP not found in any frame"},!1))},this.currentWindow.addEventListener("message",function(e){var e="string"==typeof e.data?a(e.data):e.data;e&&e.__tcfapiReturn&&e.__tcfapiReturn.callId&&e.__tcfapiReturn.returnValue&&(e=e.__tcfapiReturn,r.cmpCallbacks)&&r.cmpCallbacks[e.callId]&&"function"==typeof r.cmpCallbacks[e.callId]&&(r.cmpCallbacks[e.callId](e.returnValue,e.success),e.returnValue.eventStatus!==h.UI_SHOWN)&&delete r.cmpCallbacks[e.callId]},!1)),this.currentWindow.__tcfapi(e,t,n,i)},e})()),Te="1.0",Re="1.1",f=(()=>{function e(e,t,n){void 0===n&&(n=function(e){}),this.cmpCallbacks={},this.currentWindow=e,this.timeout=t.gppTimeout,this.pingTimeout=t.gppPingTimeout,this.pingDelay=t.gppPingDelay,this.logger=n}return e.prototype.getCMPFrame=function(){for(var e,t=this.currentWindow,n=0;n<10;++n){try{void 0!==t&&t.frames.__gppLocator&&(e=t)}catch(e){}if(t===this.currentWindow.top)break;t=t.parent}return e},e.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__gpp},e.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},e.prototype.retrieveConsent=function(n){function i(e,t){o.logger(t),clearTimeout(e),r=!0,o.logger("Timeout: Unable to ping GPP after ".concat(o.pingTimeout,"ms")),n(void 0)}var o=this,r=!1,a=window.setTimeout(function(){r=!0,o.logger("Timeout: Unable to resolve GPP consent after ".concat(o.timeout,"ms")),n(void 0)},this.timeout);window.setTimeout(function(){var t=window.setTimeout(function(){i(a,"Timeout: Unable to get GPP ping return after ".concat(o.pingTimeout,"ms"))},o.pingTimeout);o.executeCommand("ping",function(e){clearTimeout(t),o.logger("GPP CMP ping has responsed"),e.gppVersion===Te?(o.logger("Detected GPP CMP 1.0"),"error"===e.cmpStatus?i(a,"Error status on ping to GPP CMP"):"loaded"===e.cmpStatus?(o.logger("GPP ping returned cmpStatus = loaded"),o.executeCommand("getGPPData",function(e,t){r||(clearTimeout(a),t?(o.logger("GPP consent retrieved"),o.processResponseData(e,n)):(o.logger("Error retrieving GPP consent data from CMP"),n(void 0)))})):i(a,"GPP ping returned cmpStatus != loaded")):e.gppVersion===Re?(o.logger("Detected GPP CMP 1.1"),"ready"===e.signalStatus?(clearTimeout(a),o.logger("GPP consent retrieved"),o.processResponseData(e,n)):o.executeCommand("addEventListener",function(e,t){r||"signalStatus"===e.eventName&&"ready"===e.pingData.signalStatus&&(clearTimeout(a),o.logger("GPP consent retrieved"),o.processResponseData(e.pingData,n))})):i(a,"Unknown GPP version "+e.gppVersion)})},this.pingDelay)},e.prototype.processResponseData=function(e,t){var n;e?(n={},void 0!==e.gppString&&(n.gpp=e.gppString),void 0!==e.applicableSections&&(n.gppSid=e.applicableSections),t(n)):(this.logger("Unable to read GPP consent data from CMP"),t(void 0))},e.prototype.executeCommand=function(e,t,n){var i,o=this;this.hasCallerFunctionInFrame()||(this.logger("No GPP CMP defined on current frame"),i=this.getCMPFrame(),this.currentWindow.__gpp=function(e,t,n){i?(n={__gppCall:{command:e,parameter:n,callId:e=Math.random().toString(10)}},o.cmpCallbacks[e]=t,i.postMessage(n,"*")):(o.logger("GPP CMP not found in any frame"),t({msg:"GPP CMP not found in any frame"},!1))},this.currentWindow.addEventListener("message",function(e){var e="string"==typeof e.data?a(e.data):e.data;e&&e.__gppReturn&&e.__gppReturn.callId&&e.__gppReturn.returnValue&&(e=e.__gppReturn,o.cmpCallbacks)&&o.cmpCallbacks[e.callId]&&"function"==typeof o.cmpCallbacks[e.callId]&&(o.cmpCallbacks[e.callId](e.returnValue,e.success),delete o.cmpCallbacks[e.callId])},!1)),this.currentWindow.__gpp(e,t,n)},e})();function ke(e){return{uspApiTimeout:parseInt("50",10),tcfTimeout:parseInt("10000",10),tcfPingTimeout:Math.min(parseInt("10000",10),parseInt("50",10)),tcfPingDelay:Math.min(parseInt("10000",10),parseInt("1000",10)),gppTimeout:parseInt("10000",10),gppPingTimeout:Math.min(parseInt("10000",10),parseInt("50",10)),gppPingDelay:Math.min(parseInt("10000",10),parseInt("1000",10)),cmpAutoDetect:null==e?void 0:e.cmpAutoDetect}}function xe(e){try{return e.localStorage}catch(e){}}var Me=(()=>{function e(e,t){this.EXPIRE_SUFFIX="_expires",this.CHECK_STORAGE_KEY="criteo_localstorage_check",this.localStorage=xe(e||window),this.localStorageEnabled=this.checkLocalStorage(t)}return e.prototype.checkLocalStorage=function(e){if(!this.localStorage)return!1;var t=this.CHECK_STORAGE_KEY;try{return this.checkTcfPurposeOne(e)?(this.localStorage.setItem(t,t),this.localStorage.removeItem(t),!0):(C.Debug("Purpose One not granted"),!1)}catch(e){return!1}},e.prototype.checkTcfPurposeOne=function(e){return!(e&&e.gdprConsent&&e.gdprConsent.purposes)||!0===e.gdprConsent.purposes[1]},e.prototype.removeItem=function(e){this.localStorageEnabled&&(this.localStorage.removeItem(e),this.localStorage.removeItem(e+this.EXPIRE_SUFFIX))},e.prototype.getItem=function(e,t){var n,i;return this.localStorageEnabled?(n=(new Date).getTime(),-1!==(i=(i=this.localStorage.getItem(e+this.EXPIRE_SUFFIX))?parseInt(i,10):-1)&&i<n||t&&(-1===i||t<i-n)?(this.removeItem(e),null):this.localStorage.getItem(e)):null},e.prototype.setItem=function(e,t,n){if(this.localStorageEnabled)try{var i;this.localStorage.setItem(e,t),n&&(i=(new Date).getTime()+n,this.localStorage.setItem(e+this.EXPIRE_SUFFIX,i.toString()))}catch(e){}},e.prototype.getAllItemsByPrefix=function(e){var t=[];if(this.localStorageEnabled)for(var n in localStorage)0===n.indexOf(e)&&t.push(n);return t},e})(),De=(()=>{function e(e){this.publicTopTlds=["co.id","co.il","co.jp","co.kr","co.nz","co.th","co.uk","com.au","com.br","com.mx","com.my","com.pl","com.sg","com.tr","com.vn"],this.cookiesEnabled=this.checkTcfPurposeOne(e)}return e.prototype.checkTcfPurposeOne=function(e){return!(e&&null!=e&&e.gdprConsent&&e.gdprConsent.purposes)||!0===e.gdprConsent.purposes[1]},e.prototype.setCookie=function(e,t,n,i,o){void 0===o&&(o=!1);var r=i||document,a=r.location.hostname,s=new Date,d=(s.setTime(s.getTime()+60*n*60*1e3),"expires="+s.toUTCString());if(o)for(var c=a.split("."),l=1;l<c.length;++l){var u=c.slice(c.length-l-1,c.length).join(".");if(!(-1<this.publicTopTlds.indexOf(u)))try{this.setCookieString(e,t,d,u,r);var p=this.getCookie(e,i);if(p&&p===t)return u}catch(e){}}else this.setCookieString(e,t,d,void 0,r);return a},e.prototype.deleteCookie=function(e,t,n){this.setCookie(e,"",0,t,n=void 0===n?!1:n)},e.prototype.getCookie=function(e,t){if(this.cookiesEnabled)for(var n=0,i=(t||document).cookie.split(";");n<i.length;n++){var o=i[n],r=o.substr(0,o.indexOf("=")).replace(/^\s+|\s+$/g,""),o=o.substr(o.indexOf("=")+1);if(r===e)return decodeURIComponent(o)}},e.prototype.setCookieString=function(e,t,n,i,o){this.cookiesEnabled&&(e=e+"="+encodeURIComponent(t)+";"+n+";",i&&""!==i&&(e+="domain=."+i+";"),o.cookie=e+"path=/")},e})(),Oe=(()=>{function e(e,t,n,i,o){this.initializing=!1,this.initialized=!1,this.postInitiliazeServicesCallbacks=[],this.topFrame=e||window;e=ke(o),this.ccpaConsentProvider=t||new _e(window,e,C.Warning),o=new Ae(window,e,C.Warning),t=new Se(window,e,C.Warning);this.tcfCompatibleConsentProvider=n||new p(o,t,C.Warning),this.gppConsentProvider=i||new f(window,e,C.Warning),this.initializeServices()}return e.prototype.initializeServices=function(){var n=this;this.initializing=!0,this.retrievePrivacyConsent(function(e){var t={localStorageHelper:new Me(n.topFrame,e),privacies:e,ccpaConsentProvider:n.ccpaConsentProvider,gppConsentProvider:n.gppConsentProvider,cookieHelper:new De(e)};n.services=t,n.initialized=!0,n.initializing=!1,n.postInitiliazeServicesCallbacks.forEach(function(e){e(t)})})},e.prototype.getServicesAsync=function(e){this.initialized?e(this.services):(this.postInitiliazeServicesCallbacks.push(e),this.initializing||this.initializeServices())},e.prototype.retrievePrivacyConsent=function(t){var e=this.tcfCompatibleConsentProvider.readyToRetrieve(),n=this.ccpaConsentProvider.readyToRetrieve(),i=this.gppConsentProvider.readyToRetrieve(),o=(e||n||i||t(void 0),[]),r=(e&&o.push(p),n&&o.push(_e),i&&o.push(f),{});e&&this.tcfCompatibleConsentProvider.retrieveConsent(function(e){r.gdprConsent=e,o.splice(o.indexOf(p),1),0===o.length&&t(r)}),n&&this.ccpaConsentProvider.retrieveConsent(function(e){r.ccpaIabConsent=e,o.splice(o.indexOf(_e),1),0===o.length&&t(r)}),i&&this.gppConsentProvider.retrieveConsent(function(e){r.gppConsent=e,o.splice(o.indexOf(f),1),0===o.length&&t(r)})},e})(),Ue=(()=>{function i(e,t,n){void 0===n&&(n=!1),this.pixelSyncEndpoint="https://ssp-sync.criteo.com/user-sync/pixels",this.pixelSyncTimeout=2e3,this.errorReporter=t,this.onPixelsRetrieved=e,this.debug=n}return i.prototype.retrievePixels=function(e,t){var n=this;new c(this.getUserSyncUrl(e,t)).send(function(e){e&&((e=i.parseUserSyncResponse(e))?n.onPixelsRetrieved(e):n.errorReporter.log("Error","Unable to parse response from user sync"))},function(e,t){C.Warning("User Sync Pixel endpoint error; readyState ".concat(e,"; requestStatus ").concat(t))},function(){C.Warning("User Sync Pixel endpoint timeout")},this.pixelSyncTimeout)},i.prototype.getUserSyncUrl=function(e,t){var n=null==e?void 0:e.gdprConsent,e=null==e?void 0:e.gppConsent,i=[];return null!=n&&n.consentData&&i.push("gdpr=".concat(n.consentData)),null!=n&&n.gdprApplies&&i.push("gdprapplies=".concat(n.gdprApplies)),null!=e&&e.gpp&&i.push("gpp=".concat(e.gpp)),null!=e&&e.gppSid&&e.gppSid.forEach(function(e){i.push("gpp_sid=".concat(e))}),null!=t&&t.country_code&&i.push("countrycode=".concat(t.country_code)),this.debug&&i.push("debug=1"),this.pixelSyncEndpoint+(i.length?"?"+i.join("&"):"")},i.parseUserSyncResponse=function(e){e=P(e);if(e)return"pixels"in e?Array.isArray(e.pixels)?e.pixels=e.pixels.filter(function(t){try{return new URL(t),!0}catch(e){return C.Warning("Failed to parse User Sync Pixel URL: ".concat(t)),!1}}):(C.Warning("pixels field in user sync response is not an array: ".concat(e.pixels)),e.pixels=[]):e.pixels=[],e;C.Warning("Failed to parse user sync pixel JSON payload")},i})(),Be=(()=>{function a(){}return a.execUserSync=function(e,t,n,i){new Ue(a.appendUserSyncPixels,e,i=void 0===i?!1:i).retrievePixels(t,n)},a.getOrCreateTagContainer=function(){var e=document.getElementById(a.tagElementName);return e||((e=document.createElement("div")).setAttribute("id",a.tagElementName),e.style.display="none",document.body.appendChild(e),e)},a.appendUserSyncPixels=function(e){if(e.pixels.length)for(var t=a.getOrCreateTagContainer(),n=0,i=e.pixels;n<i.length;n++){var o=i[n],r=new Image;r.src=o,r.alt="",t.appendChild(r)}},a.tagElementName="criteoUserSyncTagsContainer",a})();function _(){var n=(new Date).getTime();return"undefined"!=typeof performance&&"function"==typeof performance.now&&(n+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=(n+16*Math.random())%16|0;return n=Math.floor(n/16),("x"===e?t:3&t|8).toString(16)})}var Fe=(m=>{function g(e,t,n,i,o,r,a,s,d,c,l,u,p,h,f){var v=m.call(this,g.NAME)||this;return v.profileId=e,v.urlBuilder=t,v.slots=n,v.callbackSuccess=i,v.callbackError=o,v.callbackTimeout=r,v.serviceProvider=a,v.timeout=d,v.networkId=c,v.integrationMode=l,v.adapterVersion=u,v.viewportComputer=p,v.metricsManager=s,v.publisherId=h,v.accountId=f,v.metricsManager&&(v.metricBuilder=new le(v.metricsManager)),v}return s(g,m),g.prototype.getMetricBuilder=function(){return this.metricBuilder},g.prototype.eval=function(e){this.evalWithTimeout(e,void 0)},g.prototype.evalWithTimeout=function(t,n){var i=this;(this.serviceProvider||new Oe).getServicesAsync(function(e){i.metricsManager||(i.metricsManager=new ge(e.localStorageHelper)),i.metricBuilder||(i.metricBuilder=new le(i.metricsManager)),i.innerEval(t,i.metricBuilder,e.privacies,n)})},g.prototype.innerEval=function(i,o,r,e){var a=this,s=_(),t=g.getCriteoAdapterBidRequest(),n=g.getRequestAuctionStart(t),e=e||ce(t&&t.timeout),d=new Ce(o,n,e),t=new ye(this.slots,i.context,this.urlBuilder,this.profileId,this.integrationMode,this.networkId,this.adapterVersion,r,void 0,this.viewportComputer,e,s,i.context.userIds,Math.round(new Date/1e3),void 0,void 0,void 0,void 0,void 0,void 0,this.publisherId,this.accountId);t.isValid()&&"undefined"!=typeof JSON?(n=t.getRequest(),e=JSON.stringify(b(b({},n),i.context.ortb2Request)),n=t.getUrl(),t=new c(n,e,"application/x-www-form-urlencoded"),d.sendRequest(n),t.send(function(e){try{d.requestReceived();var t=P(e)||{},n=we(t);void 0!==a.callbackSuccess&&a.callbackSuccess(JSON.stringify(t),n),d.finish(),!0===t.user_sync&&Be.execUserSync(i.context.remoteLogging,r,t),o.getMetricsManager().sendEvents(o,s)}catch(e){a.reportAsyncRequestException(i,"onSuccess",e)}i.context.remoteLogging.sendErrorReport(a.urlBuilder,s),a.metricBuilder=void 0},function(e,t){try{d.requestReceived(),void 0!==a.callbackError&&a.callbackError(e,t),d.finish(),o.getMetricsManager().sendEvents(o,s)}catch(e){a.reportAsyncRequestException(i,"onError",e)}i.context.remoteLogging.sendErrorReport(a.urlBuilder,s),a.metricBuilder=void 0},function(){try{d.requestReceived(!0),void 0!==a.callbackTimeout&&a.callbackTimeout(),d.finish(),o.getMetricsManager().sendEvents(o,s)}catch(e){a.reportAsyncRequestException(i,"onTimeout",e)}i.context.remoteLogging.sendErrorReport(a.urlBuilder,s),a.metricBuilder=void 0},this.timeout)):(C.Debug("Request ignored because it doesnt contain any slot"),this.callbackError(void 0,void 0))},g.prototype.reportAsyncRequestException=function(e,t,n){n=n.stack||n.toString();e.context.remoteLogging.log("Exception","Exception caught in AsyncRequest ".concat(t," callback:\n").concat(n)),C.Error("Error ".concat(t,":\n\t").concat(n))},g.getCriteoAdapterBidRequest=function(){try{return window.pbjs._bidsRequested.find(function(e){return"criteo"===e.bidderCode})}catch(e){}},g.getRequestAuctionStart=function(e){return e&&e.auctionStart},g.NAME="directbidding",g})(t),Ne=(g=>{function y(e,t,n,i,o,r,a,s,d,c,l,u,p,h,f){var v=g.call(this,y.NAME)||this,m=Math.max(10*(d||3e3),3e3);return v.directBiddingEvent=new Fe(e,t,n,function(e,t){return v.onSuccess(e,t)},function(e,t){return v.onError(e,t)},function(){return v.onHttpTimeout()},s,a,m,c,l,u,p,h,f),v.slots=n,v.callbackSuccess=i,v.callbackError=o,v.callbackTimeout=r,v.timeout=0===d?0:d||3e3,v.hasTimeouted=!1,v.hasResponded=!1,v}return s(y,g),y.prototype.eval=function(e){var t=this;setTimeout(function(){return t.onTimeout()},this.timeout),this.directBiddingEvent.evalWithTimeout(e,this.timeout)},y.prototype.onSuccess=function(e,t){this.hasResponded=!0,this.hasTimeouted||this.callbackSuccess(e,t)},y.prototype.onError=function(e,t){this.hasResponded=!0,this.hasTimeouted||this.callbackError(e,t)},y.prototype.onHttpTimeout=function(){this.hasResponded=!0,this.hasTimeouted||this.callbackTimeout()},y.prototype.onTimeout=function(){this.hasResponded||(this.hasTimeouted=!0,this.callbackTimeout())},y.prototype.getMetricBuilder=function(){return this.directBiddingEvent.getMetricBuilder()},y.NAME="directbidding",y})(t),v=(n=>{function i(e){var t=n.call(this,i.NAME)||this;return t.callback=e,t}return s(i,n),i.prototype.eval=function(e){this.callback&&this.callback.apply(this)},i.NAME="genericEvent",i})(t),n=(()=>{function e(e,t,n,i,o,r,a,s){this.id=this.generateRandomId(),this.slotId=e,this.impressionId=t,this.cpm=n,this.width=i,this.height=o,this.zoneId=r,this.dealCode=a,this.useSafeframe=null!=s&&s}return e.prototype.generateRandomId=function(){return Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,6)},e})(),Le=(c=>{function e(e,t,n,i,o,r,a,s,d){e=c.call(this,e,t,n,i,o,r,s,d)||this;return e.displayUrl=a,e}return s(e,c),e.prototype.GenerateEvent=function(e){var t=this;return e.ResizeFrame(this.width,this.height),new v(function(){return e.LoadScript(t.displayUrl)})},e.prototype.GenerateMessage=function(){return{displayUrl:this.displayUrl}},e})(n),We=(c=>{function e(e,t,n,i,o,r,a,s,d){e=c.call(this,e,t,n,i,o,r,s,d)||this;return e.creative=a,e}return s(e,c),e.prototype.GenerateEvent=function(e){var t=this;return e.ResizeFrame(this.width,this.height),new v(function(){return e.Write(t.creative)})},e.prototype.GenerateMessage=function(){return{creative:this.creative}},e})(n),Ge=(c=>{function e(e,t,n,i,o,r,a,s,d){e=c.call(this,e,t,n,i,o,r,d)||this;return e.nativeCallback=a,e.nativePayload=s,e}return s(e,c),e.prototype.GenerateEvent=function(e){var t=this;return"function"!=typeof this.nativeCallback?(C.Error("'nativeCallback' parameter is not a function in placements object"),new v(void 0)):"object"!=typeof this.nativePayload?(C.Error("'nativePayload' parameter is not an object in placements object"),new v(void 0)):new v(function(){return t.nativeCallback(t.nativePayload)})},e.prototype.GenerateMessage=function(){return{nativePayload:this.nativePayload}},e})(n);function ze(e,t){if(e){var n;try{n=eval("(function(){return ".concat(e,"})()"))}catch(e){return void C.Error("Error evaluating the function: "+e)}"function"!=typeof n?C.Error("The passed value is not a function"):n.apply(n,t)}else C.Error("Cannot execute an empty function")}var He=(u=>{function e(e,t,n,i,o,r,a,s,d,c,l){e=u.call(this,e,t,n,i,o,r,s)||this;return e.videoCallback=a,e.vastUrl=d,e.vastXml=c,e.videoPlayerFunction=l,e}return s(e,u),e.prototype.GenerateEvent=function(e){var t=this;return void 0===this.videoCallback?(ze(this.videoPlayerFunction,[{slotid:this.impressionId,vastUrl:this.vastUrl,vastXml:this.vastXml}]),new v(void 0)):"function"!=typeof this.videoCallback?(C.Error("'videoCallback' parameter is not a function in video object"),new v(void 0)):new v(function(){return t.videoCallback(t.GenerateMessage())})},e.prototype.GenerateMessage=function(){return{vastUrl:this.vastUrl,vastXml:this.vastXml,slotid:this.impressionId,cpm:this.cpm}},e})(n);function qe(e,t,n,i,o,r,a,s,d,c,l,u,p,h,f){if(u)return new He(e,t,n,i,o,r,p,l,d,c,f);if(void 0!==a&&void 0!==s)return new Ge(e,t,n,i,o,r,a,s,l);if(void 0!==c&&0!==c.indexOf("<script"))return new We(e,t,n,i,o,r,c,l,h);if(void 0!==c&&0===c.indexOf("<script")){u=new RegExp("(?<=src='|\")(.*)(?='|\")"),p=c.match(u);if(null!==p&&0<p.length)return new Le(e,t,n,i,o,r,p[0],l,h)}return void 0!==d?new Le(e,t,n,i,o,r,d,l,h):void 0}var T=(()=>{function l(){}return l.tryInsertPlaceholder=function(e,t,n){var i,o=document.getElementById(e);return null===o?(C.Warning("Unable to insert ad placeholder : impression id "+e+" not found."),!1):(o.appendChild(this.createPlaceholder()),!(t||!this.isVisible(o))||(this.removePlaceholder(e,n),null!==(t=o.parentElement)&&(i=this.createClone(o),t.insertBefore(i,o),i.appendChild(this.createPlaceholder()),this.isVisible(i)?(n[e]=i,!0):(C.Warning("Ad placeholder created but not visible : can't render."),t.removeChild(i),!1))))},l.isVisible=function(e){return 0!==e.offsetWidth&&0!==e.offsetHeight&&0!==e.getClientRects().length},l.createClone=function(e){var t=e.cloneNode(!1);return t.id=this.generateRandomId(),t.className="","none"===t.style.display&&t.style.removeProperty("display"),"SPAN"===t.tagName&&(t.style.display="block"),e.style.display="none",t},l.generateRandomId=function(){for(var e="1234567890abcdefghijklmnopqrstuvwxyz",t="",n=0;n<20;n++){var i=Math.floor(Math.random()*e.length);t+=e.charAt(i)}return t},l.createPlaceholder=function(){var e=document.createElement("div");return e.style.width="1px",e.style.height="1px",e.style.display="block",e.className=l.PLACEHOLDER_NAME,e},l.removePlaceholder=function(e,t){t=t[e],void 0!==t&&null!==t.parentNode&&t.parentNode.removeChild(t),t=document.getElementById(e);if(null!==t)for(var n=0,i=t.getElementsByClassName(l.PLACEHOLDER_NAME);n<i.length;n++){var o=i[n];null!==o.parentNode&&o.parentNode.removeChild(o)}},l.insertAdIFrame=function(e,t){var n,t=t[e];if(void 0!==t)n=t;else{t=document.getElementById(e);if(null===t)return null;n=t}for(var i=0,o=n.getElementsByClassName(l.PLACEHOLDER_NAME);i<o.length;i++){for(var r=o[i],a=0,s=r.childNodes;a<s.length;a++){var d=s[a];null!==d.parentNode&&d.parentNode.removeChild(d)}var c=this.createAdIFrame();return r.appendChild(c),r.style.width="",r.style.height="",r.style.display="",c}return null},l.createAdIFrame=function(){var e=document.createElement("iframe");return e.scrolling="no",e.marginWidth="0",e.marginHeight="0",e.frameBorder="0",e.style.border="0",e.style.verticalAlign="bottom",e},l.removePlaceholders=function(e,t,n){for(var i=0,o=e;i<o.length;i++){var r=o[i].impId;-1===t.indexOf(r)&&l.removePlaceholder(r,n)}},l.tryInsertPlaceholders=function(e,t,n){for(var i=[],o=0,r=e;o<r.length;o++){var a=r[o],s=a.impId;l.tryInsertPlaceholder(s,t,n)&&i.push(a)}return i},l.PLACEHOLDER_NAME="criteo_placeholder",l})();function Ve(e){var t;try{return null!=(t=e.top)&&t.location.toString(),1}catch(e){}}function je(e){return e.top!==e&&!Ve(e)}function o(e){if(void 0===e&&(e=window),!je(window))for(var t=0;t<10;t++){if(void 0!==e.googletag)return e.googletag;if(e===e.top)break;e=e.parent}return window.googletag}function Ke(){var e=o();return void 0!==(null==e?void 0:e.cmd)}function Xe(e){var t=o();t||(t={},window.googletag=t),t.cmd=t.cmd||[],t.cmd.push(e)}function Je(){return o().pubads().getSlots()}function Ye(n,i){var e=o().pubads().getSlots().filter(function(e){var t=void 0!==i?i(e):function(){return!1};return e.getSlotElementId()===n||t(n)});return 0===e.length?C.Warning("No googletag slot found for slotId: "+n):1<e.length&&C.Warning("More than one googletag slot found for slotId: "+n),e[0]}function Qe(t){Xe(function(){var e=Ze(o().pubads().getSlots());t(e)})}function Ze(e){for(var t=[],n=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,i=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,o=0,r=e;o<r.length;o++){for(var a=r[o],s=a.getSlotElementId(),d=[],c=0,l=a.getSizes(n,i)||a.getSizes();c<l.length;c++){var u=l[c];"function"==typeof u.getWidth&&u.getWidth()&&"function"==typeof u.getHeight&&u.getHeight()&&d.push("".concat(u.getWidth(),"x").concat(u.getHeight()))}s&&0<d.length&&t.push({slotId:s,sizes:d,ext:{}})}return t}function $e(){var e=o();return!(!e||"function"!=typeof e.pubads||"function"!=typeof e.pubads().getSlots)}function et(e,t,n){$e()?$e()&&(void 0===(e=Ye(e,n))?C.Debug(Je().map(function(e){return{name:e.getAdUnitPath(),elementId:e.getSlotElementId()}})):e.setConfig({componentAuction:[{configKey:t.config.seller,auctionConfig:t.config}]})):C.Debug("Can't set auction config because pubads was undefined")}function tt(t,n,i){Xe(function(){var e=o();e.encryptedSignalProviders||(e.encryptedSignalProviders=[]),C.Debug("Promise set for GPT ESP"),e.encryptedSignalProviders.push({id:"esp.criteo.com",collectorFunction:function(){return C.Debug("Returning Promise to GPT"),n(),t}}),i()})}function nt(){return it(null,null)}function it(e,t,n){e={crt_pb:[e],crt_bidid:[t]};return e=void 0!==n?b(b({},e),{crt_deal:[n]}):e}var ot=(()=>{function e(){var e=o();void 0===e&&(e={},window.googletag=e),this.googletag=e,this.googletag.cmd=e.cmd||[]}return e.prototype.setKeyValuesForAllSlots=function(t){var n=this;this.googletag.cmd.push(function(){for(var e in t)t.hasOwnProperty(e)&&(n.googletag.pubads().clearTargeting(e),n.googletag.pubads().setTargeting(e,t[e]+""))})},e.prototype.setKeyValuePerSlot=function(t,n){var i=this.googletag.pubads().getSlots().filter(function(e){return e.getSlotElementId()===t});0===i.length?C.Warning("No googletag slot found for slotId: "+t):1<i.length?C.Warning("More than one googletag slot found for slotId: "+t):this.googletag.cmd.push(function(){for(var e in n)n.hasOwnProperty(e)&&(i[0].clearTargeting(e),i[0].setTargeting(e,n[e]+""))})},e.prototype.resetKeyValuesForSlots=function(t){var e=this,n=nt();this.googletag.pubads().getSlots().filter(function(e){return-1!==t.indexOf(e.getSlotElementId())}).forEach(function(t){e.googletag.cmd.push(function(){for(var e in n)n.hasOwnProperty(e)&&t.clearTargeting(e)})})},e})();function r(e,t,n){return typeof e[t]===n?e[t]:void 0}function rt(t,n){try{return decodeURIComponent(t)}catch(e){return void 0!==n?n:t}}function at(e){var t=document.createElement("a");return t.href=e,{protocol:t.protocol,host:t.host,hostname:t.hostname,pathname:"/"===t.pathname[0]?t.pathname.slice(1):t.pathname,search:t.search,href:t.href}}function st(e,t){var n=document.createElement("a"),e=(t&&"noDecodeWholeURL"in t&&t.noDecodeWholeURL?n.href=e:n.href=decodeURIComponent(e),t&&"decodeSearchAsString"in t&&t.decodeSearchAsString);return{href:n.href,protocol:(n.protocol||"").replace(/:$/,""),hostname:n.hostname,port:+n.port,pathname:n.pathname.replace(/^(?!\/)/,"/"),search:e?n.search:lt(n.search||""),hash:(n.hash||"").replace(/^#/,""),host:n.host||window.location.host}}function dt(t){return Object.keys(t).map(function(e){return"".concat(e,"=").concat(t[e])}).join("&")}function ct(e){return(e.protocol||"http")+"://"+(e.host||e.hostname+(e.port?":".concat(e.port):""))+(e.pathname||"")+(e.search?"?".concat(dt(e.search||"")):"")+(e.hash?"#".concat(e.hash):"")}function lt(e){return e?e.replace(/^\?/,"").split("&").reduce(function(e,t){var t=t.split("="),n=t[0],t=t[1];return/\[\]$/.test(n)||(e[n]=t||""),e},{}):{}}function ut(e){var t={},e=e.split("?");if(1<e.length)for(var n=0,i=e[1].split("&");n<i.length;n++){var o=i[n].split("=");t[rt(o[0])]=rt(o[1])}return t}function pt(e){try{Boolean(new URL(e))}catch(e){}}var ht=function(e,t){this.top=e,this.left=t},ft=function(e,t,n,i){this.width=e,this.height=t,this.scrollTop=n,this.scrollLeft=i},m=(()=>{function e(){}return e.getHighestAccessibleWindow=function(e){var t=e,n=!1;try{for(;t.parent.document!==t.document;){if(!t.parent.document){n=!0;break}t=t.parent}}catch(e){n=!0}return{topFrame:t,err:n}},e.getHighestAccessibleUrl=function(e){var t,n=e.topFrame;if(!e.err)return n.location.href;try{var i=null==(t=n.top)?void 0:t.location.href;if(i)return i}catch(e){}try{var o=n.location.ancestorOrigins;if(o)return o[o.length-1]}catch(e){}return n.document.referrer},e.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}},e})(),vt=(()=>{function e(){}return e.prototype.getViewport=function(){var e=m.getHighestAccessibleWindow(window).topFrame,t=e.document,n=e.innerWidth||t.documentElement.clientWidth,e=e.innerHeight||t.documentElement.clientHeight,i=t.documentElement.scrollTop||t.body&&t.body.scrollTop||0,t=t.documentElement.scrollLeft||t.body&&t.body.scrollLeft||0;return new ft(n,e,i,t)},e.prototype.getSlotPosition=function(e){var e=e.impId,e=document.getElementById(e);if(null!==e)return e=e.getBoundingClientRect(),new ht(e.top,e.left)},e})(),g=(()=>{function c(e,t,n){this.lowerBound=e,this.upperBound=t,this.increment=n}return c.createLineItemRangesFromString=function(e){for(var t=[],n=0,i=e.split(";");n<i.length;n++){var o=i[n],r=o.split(".."),a=c.roundToDecimal(r[0],2),r=r[1].split(":"),s=c.roundToDecimal(r[0],2),r=c.roundToDecimal(r[1],2);if(isNaN(a)||isNaN(s)||isNaN(r)||0===r){C.Warning("Could not parse range parameter: "+o);break}if(a<0||s<0||r<0){C.Warning("Positive values must be set for range bounds: "+o);break}var o=s-a,d=100*o/(100*r),d=d===Math.floor(d);s<a?C.Warning("Lower bound ("+a+") greater than upper bound ("+s+")"):d?t.push(new c(a,s,r)):C.Warning("Range ("+o+") is not divisible by increment ("+r+")")}return t.sort(function(e,t){return e.upperBound>t.upperBound?1:t.upperBound>e.upperBound?-1:0}),t},c.getDefaultDenseLineItemRanges=function(){return[new c(0,3,.01),new c(3,8,.05),new c(8,20,.5)]},c.computeLineItemPricebandValue=function(e,t){for(var n=0,i=t=0===t.length?c.getDefaultDenseLineItemRanges():t;n<i.length;n++){var o=i[n];if(e<=o.upperBound&&e>o.lowerBound)return o=Math.floor(e/o.increment+1e-4)*o.increment,c.formatPriceBand(o)}if(!(e<t[0].lowerBound))return e===t[0].lowerBound?c.formatPriceBand(t[0].lowerBound):c.formatPriceBand(t[t.length-1].upperBound)},c.formatPriceBand=function(e){return e.toFixed(2)},c.roundToDecimal=function(e,t){e=parseFloat(e),t=Math.pow(10,t);return Math.round(e*t)/t},c})(),y=(()=>{function e(){var t=this;this.integrationMode=I.Unspecified,this.paramParser={},this.addParameter("integrationMode",function(e){t.integrationMode=pe(e)})}return e.prototype.addParameter=function(e,t){this.paramParser[e.toLowerCase()]=t},e.prototype.tryFillParameters=function(e){for(var t in e){var n;void 0!==e[t]&&(n=t.toLowerCase(),this.paramParser[n]?this.paramParser[n](e[t]):C.Warning("Unknown parameter: "+t))}},e})(),mt=(n=>{function e(e){var t=n.call(this)||this;return t.bidId=void 0,t.document=window.document,t.containerId=void 0,t.addParameter("bidId",function(e){t.bidId=e}),t.addParameter("document",function(e){t.document=e}),t.addParameter("containerId",function(e){t.containerId=e}),n.prototype.tryFillParameters.call(t,e),t}return s(e,n),e})(y),gt=function(e,t,n,i,o,r,a,s,d,c,l,u){this.slotId=null!=u?u:_().replace(/-/g,""),this.impId=e,this.zoneId=t,this.native=n,this.nativeCallback=i,this.transactionId=o,this.sizes=r,this.publisherSubId=a,this.mediaTypes=s,this.video=d,this.ext=c,this.rwdd=l},E=(()=>{function e(e,t){this.width=e,this.height=t}return e.prototype.toString=function(){return"".concat(this.width,"x").concat(this.height)},e})(),yt=function(e,t,n,i,o,r,a,s,d,c,l,u,p,h,f,v,m,g,y,w,b,C,I,_,E){this.context=e,this.playersize=t,this.mimes=n,this.protocols=i,this.maxduration=o,this.api=r,this.skip=a,this.placement=s,this.playbackmethod=d,this.minduration=c,this.startdelay=l,this.videoCallback=u,this.plcmt=p,this.w=h,this.h=f,this.linearity=v,this.skipmin=m,this.skipafter=g,this.minbitrate=y,this.maxbitrate=w,this.delivery=b,this.pos=C,this.playbackend=I,this.adPodDurationSec=_,this.durationRangeSec=E},wt=(t=>{function n(e){var i=t.call(this)||this;return i.slotId=void 0,i.zoneId=void 0,i.sizes=[],i.nativeCallback=void 0,i.publisherSubId=void 0,i.ext=void 0,i.video=void 0,i.impId=void 0,i.addParameter("slotid",function(e){i.slotId=e}),i.addParameter("zoneid",function(e){i.zoneId=e}),i.addParameter("impid",function(e){i.impId=e}),i.addParameter("sizes",function(e){0==i.sizes.length&&(i.sizes=n.getSizesFromRawSizes(e))}),i.addParameter("mediaTypes",function(e){var t;null!=(t=null==e?void 0:e.banner)&&t.sizes&&(i.sizes=n.getSizesFromRawSizes(null==e?void 0:e.banner.sizes)),null!=e&&e.video&&(i.video=new yt(e.video.context,e.video.playerSize,e.video.mimes,e.video.protocols,e.video.maxduration,e.video.api,e.video.skip,e.video.placement||n.placementFromContext(e.video.context),e.video.playbackmethod||[],e.video.minduration,e.video.startdelay,e.video.videoCallback,e.video.plcmt,e.video.w,e.video.h,e.video.linearity,e.video.skipmin,e.video.skipafter,e.video.minbitrate,e.video.maxbitrate,e.video.delivery,e.video.pos,e.video.playbackend,e.video.adPodDurationSec,e.video.durationRangeSec))}),i.addParameter("nativecallback",function(e){i.nativeCallback=e}),i.addParameter("publisherSubId",function(e){i.publisherSubId=e}),i.addParameter("ext",function(e){var t=i.ext;null!=t&&t.data&&e.data&&(t.data=b(b({},e.data),t.data)),i.ext=t?b(b({},e),t):e}),i.addParameter("ortb2Imp",function(e){var t,n=i.ext;null!=n&&n.data&&null!=(t=e.ext)&&t.data&&(n.data=b(b({},e.ext.data),n.data)),i.ext=n?b(b({},e.ext),n):e.ext}),t.prototype.tryFillParameters.call(i,e),i}return s(n,t),n.getSizesFromRawSizes=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n].split("x");t.push(new E(parseInt(o[0],10),parseInt(o[1],10)))}return t},n.placementFromContext=function(e){return"instream"===e?1:"outstream"===e?2:void 0},n})(y);function bt(){return"runAdAuction"in navigator&&"joinAdInterestGroup"in navigator}function Ct(n,e,i,o){void 0===o&&(o=!1);var t,r={};n.forEach(function(e){return r[e.slotId]=e.impId}),e.ext&&Array.isArray(null==(t=e.ext)?void 0:t.igi)&&e.ext.igi.forEach(function(e){Array.isArray(e.igs)&&e.igs.forEach(function(t){var e;void 0!==t&&void 0!==r[t.impid]&&(Ke()&&et(r[t.impid],t,i),o)&&(e=_t(null==(e=n.filter(function(e){return e.slotId==t.impid})[0])?void 0:e.sizes))&&It(r[t.impid],t,e)})})}function It(e,t,n){try{var i=navigator.runAdAuction(t.config);window.criteo_pubtag.standaloneBidder.paapiBids[e]={resultPromise:i,size:n}}catch(e){}}function _t(e){if(e&&0!=e.length){for(var t=e[0],n=t.height*t.width,i=0,o=e;i<o.length;i++){var r=o[i];r.height*r.width>n&&(t=r)}return t}}var Et=(n=>{function e(e){var t=n.call(this)||this;return t.placements=void 0,t.networkId=void 0,t.publisherId=void 0,t.accountId=void 0,t.addParameter("networkId",function(e){t.networkId=e}),t.addParameter("accountId",function(e){t.accountId=e}),t.addParameter("publisherId",function(e){t.publisherId=e}),t.addParameter("placements",function(e){t.placements=t.deserializePlacementInput(e)}),n.prototype.tryFillParameters.call(t,e),t}return s(e,n),e.prototype.deserializePlacementInput=function(e){for(var t=[],n=0,i=e;n<i.length;n++){var o=i[n],o=new wt(o),r=o.ext;bt()&&void 0===(null==r?void 0:r.igs)&&(r=b(b({},r),{igs:{ae:1}})),t.push(new gt(o.slotId,o.zoneId,void 0!==o.nativeCallback,o.nativeCallback,void 0,o.sizes,o.publisherSubId,void 0,o.video,r,void 0,o.impId))}return t},e})(y),At=(o=>{function n(e,t,n){var i=o.call(this)||this;return i.document=e,i.containerId=t,i.id=n,i.width=0,i.height=0,i}return s(n,o),n.prototype.ResizeFrame=function(e,t){this.width=e,this.height=t},n.prototype.Write=function(e){e={id:this.id,width:this.width,height:this.height,html:e};this.LoadSafeframe(e)},n.prototype.LoadScript=function(e){e={id:this.id,width:this.width,height:this.height,url:se(e)};this.LoadSafeframe(e)},n.prototype.LoadSafeframe=function(e){var t=this.document.getElementById(this.containerId);t&&(e=this.CreateSafeframe(n.IFRAME_URL+"#"+encodeURIComponent(JSON.stringify(e))),t.appendChild(e))},n.prototype.CreateSafeframe=function(e){var t=this.document.createElement("iframe");return t.scrolling="no",t.marginWidth="0",t.marginHeight="0",t.frameBorder="0",t.style.border="0",t.width=this.width.toString(),t.height=this.height.toString(),t.src=e,t},n.IFRAME_URL="https://static.criteo.net/js/ld/safeframe/html/safeframe.html",n})(e),Pt=(i=>{function e(e,t){var n=i.call(this)||this;return n.document=e,n.containerId=t,n}return s(e,i),e.prototype.ResizeFrame=function(e,t){},e.prototype.Write=function(e){this.LoadFencedFrame(e)},e.prototype.LoadScript=function(e){},e.prototype.LoadFencedFrame=function(e){var t;void 0!==this.containerId&&(t=this.document.getElementById(this.containerId))&&(e=this.CreateFencedFrame(e),t.appendChild(e))},e.prototype.CreateFencedFrame=function(e){var t=this.document.createElement("fencedframe");return t.config=e,t},e})(e),St=(r=>{function e(e,t,n,i){var o=r.call(this)||this;return o.document=e,o.containerId=t,o.width=n,o.height=i,o}return s(e,r),e.prototype.ResizeFrame=function(e,t){this.width=e,this.height=t},e.prototype.Write=function(e){this.LoadIFrame(e)},e.prototype.LoadScript=function(e){},e.prototype.LoadIFrame=function(e){var t;void 0!==this.containerId&&(t=this.document.getElementById(this.containerId))&&(e=this.CreateIFrame(e),t.appendChild(e))},e.prototype.CreateIFrame=function(e){var t=this.document.createElement("iframe");return t.src=e,this.width&&(t.style.width=this.width.toString()+"px"),this.height&&(t.style.height=this.height.toString()+"px"),t},e})(e);function Tt(e,t,n,i){w(e,he,t,n,i)}function Rt(t,n,i,o){Qe(function(e){e.length<=0?C.Warning("No Google tag placements have been retrieved, no bid will be requested."):w({networkId:t,publisherId:o,placements:e},he,n,i)})}function kt(e,t,n){var i,o;"number"==typeof e?Rt(e,t,n,void 0):(t=r(e,"networkId","number"),n=r(e,"publisherId","string"),i=r(e,"placements","object"),o=r(e,"callback","function"),e=r(e,"timeout","function"),void 0===i?Rt(t,o,e,n):w({networkId:t,publisherId:n,placements:Ze(i)},he,o,e))}function xt(e,t,n,i,o){var r,a;void 0===n&&void 0===i||(Kt(((r={})[a=_()]={data:{gtin:n,keyword:i}},r)),w({accountId:e,placements:[{slotId:a,nativeCallback:t}]},ve,function(e){e.forEach(function(e){R(e.id,document)})},o))}function w(e,t,n,i,o){try{Mt(e,t,n,i,o)}catch(e){n&&n([])}}function Mt(e,C,I,d,_){var c,E,A=new Et(e);Wt(A)&&(c=new vt,(E=(window["criteo_pubtag_159"]||window.criteo_pubtag).context).serviceProvider.getServicesAsync(function(e){var t=ie.create(e.localStorageHelper);if(t.adBlockFlagEnabled()){C=fe,E.isAdBlocked=!0;var n=T.tryInsertPlaceholders(A.placements,!0,E.cloneByImpressionId);if(0===n.length)return;A.placements=n;var i=I;I=function(e){void 0!==i&&i(e),e.forEach(function(e){var t=T.insertAdIFrame(e.impressionId,E.cloneByImpressionId);null!==t&&R(e.id,t.contentDocument)})}}for(var n=function(){T.removePlaceholders(A.placements,[],E.cloneByImpressionId),(new ne).isAdBlocked(function(e){e?t.enableAdBlockFlag():t.disableAdBlockFlag()}),void 0!==I&&I([])},n=new Ne(C,new S(!1),A.placements,function(e,t){var s,d=[],e=P(e);if(void 0!==e&&void 0!==e.slots){var c={};if(void 0!==(null==t?void 0:t.slots))for(var n=0,i=t.slots;n<i.length;n++){var o=i[n];c[o.imp_id]=o}var l={};if(e.invocation_codes)for(var r=0,a=e.invocation_codes;r<a.length;r++)for(var u=a[r],p=0,h=u.slot_ids;p<h.length;p++){var f=h[p];l[f]=u.invocation_code}for(var v=0,m=e.slots;v<m.length;v++)(t=>{for(var e=void 0,n=void 0,i=0,o=A.placements;i<o.length;i++){var r=o[i];if(r.nativeCallback&&r.impId===t.impid){e=r.nativeCallback;break}if(r.video&&r.video.videoCallback&&r.impId===t.impid){n=r.video.videoCallback;break}}!e&&t.slotid in l&&(e=function(e){ze(l[t.slotid],[e])});var a=qe(t.slotid,t.impid,t.cpm,t.width,t.height,t.zoneid,e,t.native,t.displayurl,t.creative,t.deal,t.video,n,null==(s=c[t.slotid])?void 0:s.enable_safeframe,t.video_callback);void 0!==a&&((window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.bids[a.id]=a,d.push(a.impressionId))})(o=m[v]);e.granularity&&Dt(e.granularity)}if(bt()&&(t=206==C,Ct(A.placements,e,_,t)),T.removePlaceholders(A.placements,d,E.cloneByImpressionId),void 0!==I){for(var g=[],y=0,w=A.placements;y<w.length;y++){var b=w[y];g.push(b.impId)}I(Nt({impressionIds:g}))}},n,n,new ge(e.localStorageHelper),E.serviceProvider,0===d?0:d||3e3,A.networkId,A.integrationMode,void 0,c,A.publisherId,A.accountId),o=[],r=0,a=A.placements;r<a.length;r++){var s=a[r];o.push(s.impId),void 0!==E.slotsExt&&void 0!==E.slotsExt[s.impId]&&(s.ext=b(b({},s.ext),E.slotsExt[s.impId]))}(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.impIds=o,(window["criteo_pubtag_159"]||window.criteo_pubtag).push(n)}))}function Dt(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.lineItemRanges=g.createLineItemRangesFromString(e)}function Ot(){var e,t,n=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.impIds,i=new ot,o=(i.resetKeyValuesForSlots(n),(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.lineItemRanges),r=Gt();for(e in r)r.hasOwnProperty(e)&&void 0!==(t=Bt(r[e],o))&&i.setKeyValuePerSlot(e,t)}function Ut(e,t){return Bt(e,g.createLineItemRangesFromString(t))}function Bt(e,t){t=g.computeLineItemPricebandValue(e.cpm,t);return void 0===t?void 0:it(t,e.id,e.dealCode)}function R(e,t){var n,i,o,r,t=new mt("string"==typeof e?{bidId:e,document:t}:e);t.bidId?(e=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.bids,r=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.paapiBids,e.hasOwnProperty(t.bidId)||r.hasOwnProperty(t.bidId)?(n=e[t.bidId],null!=(i=r[t.bidId])&&i.result?(o="string"==typeof i.result?new St(t.document,t.containerId,null==(r=i.size)?void 0:r.width,null==(r=i.size)?void 0:r.height):new Pt(t.document,t.containerId),r=new v(function(){return o.Write(i.result)}),(window["criteo_pubtag_159"]||window.criteo_pubtag).push(r),delete i[t.bidId]):n&&(Ft(n,void 0===t.containerId?new de(t.document):!Ke()&&n.useSafeframe?new At(t.document,t.containerId,n.impressionId):new ae(t.document,t.containerId)),delete e[n.id])):C.Error("Could not render bid with id: "+t.bidId)):C.Error("You must provide a bidId to the RenderAd call")}function Ft(e,t){e=e.GenerateEvent(t);(window["criteo_pubtag_159"]||window.criteo_pubtag).push(e)}function Nt(e){var t=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.bids;if(null===t)return[];var n,i,o=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.lineItemRanges,r=[];for(n in t)t.hasOwnProperty(n)&&(i=t[n],e&&e.impressionIds&&-1===e.impressionIds.indexOf(i.impressionId)||(0<o.length&&(i.cpm_bucket=g.computeLineItemPricebandValue(i.cpm,o)),r.push(i)));return r}function Lt(e,t){void 0===t&&(t=1);e=Nt({impressionIds:[e]});return e.sort(function(e,t){return t.cpm-e.cpm}).slice(0,Math.min(Math.max(t,0),e.length))}function Wt(e){var t;if(void 0===e.placements)C.Error("Missing 'placements' parameter");else{if(0!==e.placements.length){for(var n=0,i=e.placements;n<i.length;n++){var o=i[n];if(A(o.impId))return void C.Error("Missing 'slotId' parameter in placements object");if(A(o.video)){if(A(o.zoneId)&&(A(o.sizes)||A(e.networkId)&&A(e.publisherId))&&A(e.accountId))return void C.Error("Missing zone information: specify either a zoneId or a networkId and a zone size")}else{if(A(o.zoneId)&&A(e.networkId)&&A(e.publisherId)&&A(e.accountId))return void C.Error("Missing zone information: specify either a zoneId or a networkId (size is only recommended for video");if(null!=(null==(t=o.video)?void 0:t.videoCallback)&&"function"!=typeof o.video.videoCallback)return void C.Error("'videoCallback' parameter is not a function in video object")}if(void 0!==o.nativeCallback&&"function"!=typeof o.nativeCallback)return void C.Error("'nativeCallback' parameter is not a function in placements object")}return 1}C.Error("'placements' parameter is empty")}}function Gt(){var e,t,n={},i=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.bids;for(e in i)i.hasOwnProperty(e)&&(t=i[e],!n.hasOwnProperty(t.impressionId)||n[t.impressionId].cpm<t.cpm)&&(n[t.impressionId]=t);return n}function A(e){return void 0===e||e+""==""}function zt(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.ceh=e}function Ht(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.ccpaOptout=e}function qt(e){}function Vt(e){}function jt(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.ortb2Request=e}function Kt(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.slotsExt=e}function Xt(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.userIds=e}function Jt(e,t,n,i){if(void 0===i&&(i=void 0),n||t){var o=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.lineItemRanges;if(t){var t=st(t,{noDecodeWholeURL:!0});if(!n)return t=t,r=a(r=e,o,i),t.search.cust_params=t.search.cust_params?t.search.cust_params+"%26"+r:r,ct(t)}var r,i={};return r=e,(t=i).correlator=Date.now().toFixed(),t.sz=r.width+"x"+r.height,(t=i=t).env="vp",t.gdfp_req="1",t.output="vast",t.unviewed_position_start="1",(i=((e,t)=>{if(void 0!==t)for(var n in t)e[n]=t[n];return e})(i=t,n)).cust_params=a(e,o),ct({protocol:"https",host:"securepubads.g.doubleclick.net",pathname:"/gampad/ads",search:i})}function a(e,t,n){void 0===n&&(n=void 0);var i=encodeURIComponent(encodeURIComponent(e.vastUrl)),n={crt_displayurl:i=n?encodeURIComponent(i):i,crt_format:"video"},i=g.computeLineItemPricebandValue(e.cpm,t);return n.crt_pb=void 0!==i?i:e.cpm.toFixed(2),encodeURIComponent(dt(n))}C.Error("A params object or a gamVastUrl is required")}var Yt=(()=>{function s(){}return s.Standalone=function(o,r,a){Tt({integrationmode:"amp",placements:[{slotid:o.slot,zoneid:o.zone,sizes:[o.width+"x"+o.height]}]},function(e){if("DFP"===o.adserver){s.listenForCreativeRequests(e);for(var t=0,n=e;t<n.length;t++){var i=Ut(n[t],o.lineItemRanges);void 0!==i&&a(i)}0===e.length&&a({})}r(null)},o.timeout)},s.listenForCreativeRequests=function(a){window.addEventListener("message",function(e){var t=e.data instanceof Object?e.data:P(e.data);if(t&&t.bidId&&e.source)for(var n=0,i=a;n<i.length;n++){var o,r=i[n];r.id===t.bidId&&(o=e.source,(r=r.GenerateMessage()).message="Criteo creative",o.postMessage(JSON.stringify(r),"*"))}},!1)},s})();function Qt(){return(window["criteo_pubtag_159"]||window.criteo_pubtag).context.getIdfs()}function Zt(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.setIdfs(e)}function $t(e){(window["criteo_pubtag_159"]||window.criteo_pubtag).context.ceh=e}var en=function(e,t,n,i){this.coppa=e,this.gpp=t,this.gpp_sid=n,this.ext=i},tn=280,nn=5e3,k,on=((e=>{e.Native="native",e.Banner="banner",e.Video="video"})(k=k||{}),(()=>{function e(){}return e.prototype.interpretResponse=function(e,t){return[]},e.prototype.handleBidWon=function(){},e.prototype.handleBidTimeout=function(){},e.prototype.handleSetTargeting=function(){},e})()),rn=(()=>{function w(e,t,n,i,o,r){this.utilMethods=r;for(var a,s,d,c,r=window["criteo_pubtag_159"]||window.criteo_pubtag,l=(this.clientRequestId=_(),this.privacies={},i.gdprConsent&&(this.privacies.gdprConsent={},void 0!==i.gdprConsent.consentString&&(this.privacies.gdprConsent.consentData=i.gdprConsent.consentString),void 0!==i.gdprConsent.gdprApplies&&(this.privacies.gdprConsent.gdprApplies=!!i.gdprConsent.gdprApplies),this.privacies.gdprConsent.version=i.gdprConsent.apiVersion),this.privacies.ccpaIabConsent={uspString:i.uspConsent},this.regs=new en(i.coppa,null==(l=null==(l=i.ortb2)?void 0:l.regs)?void 0:l.gpp,null==(l=null==(l=i.ortb2)?void 0:l.regs)?void 0:l.gpp_sid,null==(l=null==(l=i.ortb2)?void 0:l.regs)?void 0:l.ext),new Me(void 0,this.privacies)),u=(this.timeout=ce(i.timeout),this.metricsManager=new ge(l),this.metricBuilder=new le(this.metricsManager),this.timer=new Ce(this.metricBuilder,i.start,this.timeout),new vt),p=(this.adBlockFlagManager=ie.create(l),this.adBlockFlagManager.adBlockFlagEnabled()&&(e=tn,r.context.isAdBlocked=!0),this.auctionId=i.auctionId,this.bidRequests=n,(window["Criteo_159"]||window.Criteo).prebid_adapters=(window["Criteo_159"]||window.Criteo).prebid_adapters||{},((window["Criteo_159"]||window.Criteo).prebid_adapters[this.auctionId]=this).slots=[],!0),h=0,f=n;h<f.length;h++){(y=f[h]).bidId&&((window["Criteo_159"]||window.Criteo).prebid_adapters[y.bidId]=this);var v=void 0,m=(y.fpd&&y.fpd.context&&(v=y.fpd.context),null!=(m=y.ortb2Imp)&&m.ext&&(null!=v&&v.data&&y.ortb2Imp.ext.data&&(v.data=b(b({},v.data),y.ortb2Imp.ext.data)),v=b(b({},y.ortb2Imp.ext),v)),y.params.ext&&(null!=v&&v.data&&y.params.ext.data&&(v.data=b(b({},v.data),y.params.ext.data)),v=b(b({},y.params.ext),v)),null!=(m=y.nativeOrtbRequest)&&m.assets&&(v=b({assets:y.nativeOrtbRequest.assets},v)),p=this.hasValidNativeParams(y),w.isPrebid3OrAbove(o)),v=this.enrichSlotWithFloors(v,y);this.slots.push(new gt(y.adUnitCode,y.params.zoneId,void 0!==y.params.nativeCallback||void 0!==(null==(a=null==y?void 0:y.mediaTypes)?void 0:a.native),y.params.nativeCallback,y.transactionId,this.getSizes(y,m),y.params.publisherSubId,y.mediaTypes,w.getVideoInfoFromBidRequest(y),v,null==(a=y.ortb2Imp)?void 0:a.rwdd,y.bidId)),s=y.params.networkId||s,d=y.schain||d,$t(i.ceh),y.params.integrationMode&&(c=pe(y.params.integrationMode))}p||C.Warning("All native assets containing URL should be sent as placeholders with sendId(icon, image, clickUrl, privacyLink, privacyIcon)");var g,y,l=new S(!1),n=(0<n.length&&(y=n[0]).userIdAsEids&&0<y.userIdAsEids.length&&(g=y.userIdAsEids),null!=(n=i.ortb2)&&n.user&&r.context.setUser(i.ortb2.user),null!=(n=i.ortb2)&&n.site&&r.context.setSite(i.ortb2.site),null!=(n=i.ortb2)&&n.app&&r.context.setApp(i.ortb2.app),null!=(n=i.ortb2)&&n.device&&r.context.setDevice(i.ortb2.device),{tid:null==(n=null==(n=i.ortb2)?void 0:n.source)?void 0:n.tid,ext:d?{schain:d}:void 0});this.requestBuilder=new ye(this.slots,r.context,l,e,c,s,t,{ccpaIabConsent:this.privacies.ccpaIabConsent,gdprConsent:this.privacies.gdprConsent},o,u,this.timeout,this.clientRequestId,g,i.start,n,this.regs,null==(r=i.ortb2)?void 0:r.bcat,null==(l=i.ortb2)?void 0:l.badv,null==(e=i.ortb2)?void 0:e.bapp,i.fledgeEnabled),this.url=this.requestBuilder.getUrl(),this.fledgeEnabled=!!i.fledgeEnabled}return w.prototype.hasValidNativeParams=function(e){return!(e.nativeParams&&(e.nativeParams.image&&(!0!==e.nativeParams.image.sendId||!0===e.nativeParams.image.sendTargetingKeys)||e.nativeParams.icon&&(!0!==e.nativeParams.icon.sendId||!0===e.nativeParams.icon.sendTargetingKeys)||e.nativeParams.clickUrl&&(!0!==e.nativeParams.clickUrl.sendId||!0===e.nativeParams.clickUrl.sendTargetingKeys)||e.nativeParams.displayUrl&&(!0!==e.nativeParams.displayUrl.sendId||!0===e.nativeParams.displayUrl.sendTargetingKeys)||e.nativeParams.privacyLink&&(!0!==e.nativeParams.privacyLink.sendId||!0===e.nativeParams.privacyLink.sendTargetingKeys)||e.nativeParams.privacyIcon&&(!0!==e.nativeParams.privacyIcon.sendId||!0===e.nativeParams.privacyIcon.sendTargetingKeys)))},w.prototype.buildCdbUrl=function(){return this.url},w.prototype.buildCdbRequest=function(){var e;if(this.requestBuilder.isValid())return e=Math.min((this.timeout||nn)+1e3,nn),this.adBlockFlagManager.setAdBlockFlagTimer(e),this.timer.sendRequest(this.url),this.requestBuilder.getRequest();C.Debug("Request ignored because it doesnt contain any slot")},w.GetAllAdapters=function(){return(window["Criteo_159"]||window.Criteo).prebid_adapters},w.GetAdapter=function(e){if("string"==typeof e)return new on;for(var t=w.GetAllAdapters(),n=0,i=e.bidRequests;n<i.length;n++){var o=i[n];if(null!=o&&o.bidId&&t&&o.bidId in t)return t[o.bidId]}e=e.bidRequests[0].auctionId;return t&&e in t?t[e]:void 0},w.isPrebid3OrAbove=function(e){return null!=e&&(e=parseInt(e,10),!isNaN(e))&&3<=e},w.createCriteoNativeAdWithCallback=function(e,t,n){e=se(e);return window.criteo_prebid_native_slots=window.criteo_prebid_native_slots||{},window.criteo_prebid_native_slots[e]={callback:n,payload:t},'<script type="text/javascript">\n var win = window;\n for (var i = 0; i < 10; ++i) {\n win = win.parent;\n if (win.criteo_prebid_native_slots) {\n var responseSlot = win.criteo_prebid_native_slots["'.concat(e,'"];\n responseSlot.callback(responseSlot.payload);\n break;\n }\n }\n <\/script>')},w.createPrebidNativeAd=function(e){return{sendTargetingKeys:!1,title:e.products[0].title,body:e.products[0].description,sponsoredBy:e.advertiser.description,icon:e.advertiser.logo,image:e.products[0].image,clickUrl:e.products[0].click_url,privacyLink:e.privacy.optout_click_url,privacyIcon:e.privacy.optout_image_url,cta:e.products[0].call_to_action,price:e.products[0].price,impressionTrackers:e.impression_pixels.map(function(e){return e.url})}},w.prototype.getBidRequestForSlot=function(e){for(var t,n,i=0,o=this.bidRequests;i<o.length;i++){var r=o[i];if(r.adUnitCode===e.impid){if(r.params.zoneId&&parseInt(r.params.zoneId,10)===e.zoneid)return r;if(e.native){if(null!=(t=r.mediaTypes)&&t.native||r.nativeParams)return r}else if(e.video){if(null!=(t=r.mediaTypes)&&t.video)return r}else if(null!=(n=r.mediaTypes)&&n.banner)return r}}},w.prototype.getSlotForAdUnitCode=function(e){for(var t=0,n=this.slots;t<n.length;t++){var i=n[t];if(i&&i.impId===e)return i}},w.getVideoInfoFromBidRequest=function(e){var t;if(w.hasVideoMediaType(e))return new yt(e.mediaTypes.video.context,e.mediaTypes.video.playerSize,e.mediaTypes.video.mimes,e.mediaTypes.video.protocols,e.mediaTypes.video.maxduration,e.mediaTypes.video.api,e.mediaTypes.video.skip||(null==(t=e.params.video)?void 0:t.skip)||0,e.mediaTypes.video.placement||(null==(t=e.params.video)?void 0:t.placement),e.mediaTypes.video.playbackmethod||(null==(t=e.params.video)?void 0:t.playbackmethod),e.mediaTypes.video.minduration||(null==(t=e.params.video)?void 0:t.minduration),e.mediaTypes.video.startdelay||(null==(t=e.params.video)?void 0:t.startdelay)||0,void 0,e.mediaTypes.video.plcmt,e.mediaTypes.video.w,e.mediaTypes.video.h,e.mediaTypes.video.linearity,e.mediaTypes.video.skipmin,e.mediaTypes.video.skipafter,e.mediaTypes.video.minbitrate,e.mediaTypes.video.maxbitrate,e.mediaTypes.video.delivery,e.mediaTypes.video.pos,e.mediaTypes.video.playbackend,e.mediaTypes.video.adPodDurationSec,e.mediaTypes.video.durationRangeSec)},w.hasVideoMediaType=function(e){return 0<(null==(e=null==(e=null==(e=null==e?void 0:e.mediaTypes)?void 0:e.video)?void 0:e.playerSize)?void 0:e.length)},w.prototype.interpretResponse=function(e,t){var n=window["criteo_pubtag_159"]||window.criteo_pubtag,i=(this.timer.requestReceived(),this.adBlockFlagManager.disableAdBlockFlagTimer(),we(e)),o={};if(void 0!==i.slots)for(var r=0,a=i.slots;r<a.length;r++)o[(f=a[r]).imp_id]=f;var s=[],d=[];if(e.slots&&Array.isArray(e.slots))for(var c=0,l=e.slots;c<l.length;c++){var u,p,h,f=l[c],v=this.getBidRequestForSlot(f);v?!0===n.context.isAdBlocked?void 0!==(p=qe(f.slotid,f.impid,f.cpm,f.width,f.height,f.zoneid,v.params.nativeCallback,f.native,f.displayurl,f.creative,f.deal,null==(p=o[f.slotid])?void 0:p.enable_safeframe))&&T.tryInsertPlaceholder(v.adUnitCode,!0,n.context.cloneByImpressionId)&&null!=(u=T.insertAdIFrame(v.adUnitCode,n.context.cloneByImpressionId))&&(u=new de(u.contentDocument),p.GenerateEvent(u).eval(window["criteo_pubtag_159"])):(u=v.bidId,h=f.ttl||o[f.slotid]&&o[f.slotid].ttl||60,p={requestId:u,cpm:f.cpm,currency:f.currency,netRevenue:!0,ttl:h,creativeId:f.creativecode||u,width:f.width,height:f.height,dealId:f.deal},null!=(h=null==(h=e.ext)?void 0:h.paf)&&h.transmission&&null!=(h=null==(h=f.ext)?void 0:h.paf)&&h.content_id&&(h={content_id:f.ext.paf.content_id,transmission:e.ext.paf.transmission},p.meta=b(b({},p.meta),{paf:h})),null!=(h=null==(h=f.ext)?void 0:h.meta)&&h.networkName&&(p.meta=b(b({},p.meta),{networkName:f.ext.meta.networkName})),f.adomain&&(p.meta=b(b({},p.meta),{advertiserDomains:f.adomain})),null!=(h=f.ext)&&h.dsa&&(p.meta=b(b({},p.meta),{dsa:f.ext.dsa})),f.native?v.params.nativeCallback?p.ad=w.createCriteoNativeAdWithCallback(u,f.native,v.params.nativeCallback):(p.native=w.createPrebidNativeAd(f.native),p.mediaType=k.Native):f.video?(p.vastUrl=f.displayurl,p.mediaType=k.Video,"outstream"===(null==(v=null==(h=v.mediaTypes)?void 0:h.video)?void 0:v.context)&&(null!=(h=this.utilMethods)&&h.createOutstreamVideoRenderer&&(p.renderer=null==(v=this.utilMethods)?void 0:v.createOutstreamVideoRenderer(f)),p.renderer=null!=(h=p.renderer)?h:this.createOutstreamVideoRenderer(f))):p.ad=f.creative,s.push(p)):C.Error("Unable to bid request for slot "+f)}return this.fledgeEnabled&&e.ext&&Array.isArray(null==(i=e.ext)?void 0:i.igi)&&e.ext.igi.forEach(function(e){Array.isArray(e.igs)&&e.igs.forEach(function(e){d.push(e)})}),this.timer.finish(),this.metricsManager.sendEvents(this.metricBuilder,this.clientRequestId),!0===e.user_sync&&Be.execUserSync(n.context.remoteLogging,this.privacies,e),d.length?{bids:s,fledgeAuctionConfigs:d}:s},w.prototype.handleBidWon=function(){},w.prototype.handleBidTimeout=function(){this.timer.requestReceived(!0),this.timer.finish(),this.metricsManager.sendEvents(this.metricBuilder,this.clientRequestId)},w.prototype.handleSetTargeting=function(){},w.prototype.onDataDeletionRequest=function(e){var t=(window["criteo_pubtag_159"]||window.criteo_pubtag).context,n=t.bundle;t.identityHelper.deleteCriteoUid(),n&&fetch("https://privacy.criteo.com/api/privacy/datadeletionrequest",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({publisherUserId:n})})},w.prototype.getBannerSizes=function(e,t){var n;return(null==(n=null==(n=e.mediaTypes)?void 0:n.banner)?void 0:n.sizes)||(t?e.sizes:[])||[]},w.prototype.getNativeSizes=function(e){return(null==(e=null==(e=null==(e=e.mediaTypes)?void 0:e.native)?void 0:e.image)?void 0:e.sizes)||[]},w.prototype.getSizes=function(e,t){t=this.getBannerSizes(e,!t).map(function(e){return new E(e[0],e[1])}),e=this.getNativeSizes(e).map(function(e){return new E(e[0],e[1])});return t.concat(e).filter(function(e,t,n){return n.indexOf(e)===t})},w.prototype.createOutstreamVideoRenderer=function(n){if(void 0!==n.video_callback)return{url:"#",render:function(e,t){ze(n.video_callback,[{slotid:n.impid,vastUrl:n.displayurl,vastXml:n.creative,documentContext:t}])},config:{documentResolver:function(e,t,n){return null!=n?n:t}}}},w.prototype.parseSizes=function(e){try{if(e)return 2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]?[new E(e[0],e[1])]:(e||[]).map(function(e){return new E(e[0],e[1])})}catch(e){C.Debug("Could not parse size"+e)}return[]},w.prototype.pickAvailableGetFloorFunc=function(t){if(t.getFloor)return t.getFloor;if(t.params.bidFloor&&t.params.bidFloorCur)try{var n=parseFloat(t.params.bidFloor);return function(e){return{currency:t.params.bidFloorCur,floor:n}}}catch(e){}},w.prototype.enrichSlotWithFloors=function(e,t){var n,i,o,r,a,s,d;try{var c={},l=this.pickAvailableGetFloorFunc(t);void 0!==l&&(null!=(n=t.mediaTypes)&&n.banner&&(c.banner={},this.parseSizes(null==(o=null==(i=t.mediaTypes)?void 0:i.banner)?void 0:o.sizes).forEach(function(e){void 0!==l&&(c.banner[e.toString()]=l.call(t,{size:[e.width,e.height],mediaType:k.Banner}))})),null!=(r=t.mediaTypes)&&r.video&&(c.video={},this.parseSizes(null==(s=null==(a=t.mediaTypes)?void 0:a.video)?void 0:s.playerSize).forEach(function(e){void 0!==l&&(c.video[e.toString()]=l.call(t,{size:[e.width,e.height],mediaType:k.Video}))})),null!=(d=t.mediaTypes)&&d.native&&(c.native={},c.native["*"]=l.call(t,{size:"*",mediaType:k.Native})),Object.keys(c).length)&&(e=b(b({},e),{floors:c}))}catch(e){C.Debug("Could not parse floors from Prebid: "+e)}return e},w})(),an=(r=>{function a(e,t,n,i){var o=r.call(this,a.NAME)||this;return o.condition=e,o.eventIfTrue=t,o.eventIfFalse=n,o.conditionRequirement=i,o}return s(a,r),a.prototype.canEval=function(){return void 0===this.conditionRequirement||this.conditionRequirement.apply(this)},a.prototype.eval=function(e){(this.condition.apply(this)?this.eventIfTrue:this.eventIfFalse).eval(e)},a.NAME="conditionalEvent",a})(t),x,sn=((e=>{e[e.Classic=0]="Classic",e[e.StickyFooter=1]="StickyFooter",e[e.ScrollingBanner=2]="ScrollingBanner"})(x=x||{}),(()=>{function e(e,t){this.adFormat=e,this.cookieHelper=t}return e.prototype.CreateAdvancedAdFormatContainer=function(e){return this.adFormat===x.StickyFooter?this.CreateStickyFooterContainer(e):this.adFormat===x.ScrollingBanner?this.CreateScrollingBannerContainer(e):void 0},e.prototype.IsUserOptout=function(){return this.adFormat===x.StickyFooter&&"true"===this.cookieHelper.getCookie("cto_sticky_closed")},e.prototype.CreateStickyFooterContainer=function(e){var t,n=this,i=document.createElement("div"),o=(i.style.position="fixed",i.style.zIndex="2147483646",i.style.bottom="0",i.style.left="0",i.style.padding="0",i.style.borderColor="rgb(196, 196, 196)",i.style.width="100%",i.style.backgroundColor="rgba(245, 245, 245, 0.54902)",i.style.borderStyle="solid",i.style.borderWidth="1px",document.createElement("a")),o=(i.appendChild(o),o.style.backgroundColor="rgb(221, 221, 221)",o.style.backgroundImage="url('//static.criteo.net/images/criteo/publishertag/close.png')",o.style.backgroundRepeat="no-repeat",o.style.backgroundPosition="center",o.style.display="block",o.style.position="absolute",o.style.left="0",o.style.top="-24px",o.style.width="23px",o.style.height="24px",o.style.borderBottomColor="#6d6c71",o.style.cursor="pointer",o.onclick=function(){i.style.display="none",n.cookieHelper.setCookie("cto_sticky_closed","true",24)},document.createElement("div"));return i.appendChild(o),o.id="cto_sticky",o.style.margin="0 auto",o.style.display="table",void 0===e||""===e?document.body.appendChild(i):(t=document.getElementById(e))?t.appendChild(i):C.Error('Target element "'.concat(e,'" not found in the document')),o.id},e.prototype.CreateScrollingBannerContainer=function(e){var t,n=this;if(void 0===e||""===e)(t=document.createElement("div")).id="cto_scrolling",document.body.appendChild(t);else{var i=document.getElementById(e);if(!i)return C.Error('Target element "'.concat(e,'" not found in the document')),e;t=i}var o=t.offsetTop;return window.addEventListener?window.addEventListener("scroll",function(){n.SetScrollingContainerPosition(t,o)},!1):window.attachEvent("onscroll",function(){n.SetScrollingContainerPosition(t,o)}),this.SetScrollingContainerPosition(t,o),t.id},e.prototype.SetScrollingContainerPosition=function(e,t){t-10<=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)?(e.style.position="fixed",e.style.top="10px"):(e.style.position="static",e.style.top="auto")},e})()),M,dn=((e=>{e[e.InFriendlyIframe=1]="InFriendlyIframe",e[e.InUnfriendlyIframe=2]="InUnfriendlyIframe",e[e.DirectIntegration=3]="DirectIntegration"})(M=M||{}),(()=>{function e(){}return e.tryWrite=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return"loading"===e.readyState&&(e.write.apply(e,t),!0)},e})()),cn=(()=>{function i(){}return i.GetAtfRatio=function(e,t){t=document.getElementById(t);if(e.displayContext===M.DirectIntegration){if(null!==t)return i.GetRatioAboveFold(t);if(dn.tryWrite(document,"<div id='compute_visibility_helper' width='0px' height='0px'></div>")){var n,t=document.getElementById("compute_visibility_helper");if(void 0!==t)return n=i.GetRatioAboveFold(t),t.parentElement.removeChild(t),n}}if(e.displayContext===M.InFriendlyIframe)return i.GetRatioAboveFold(frameElement)},i.GetRatioAboveFold=function(e){var t=(new vt).getViewport(),n=t.height,i=e.getBoundingClientRect(),t=t.scrollTop;return n>=i.bottom+t?1:n<=i.top+t?0:(n-i.top-t)/e.offsetHeight},i})(),ln=(r=>{function e(e,t,n,i,o){e=r.call(this,e)||this,e.displayParameters=n,e.urlBuilder=t,n=ke();return e.tcfCompatibleConsentProvider=null!=i?i:new p(new Ae(window,n,C.Warning),new Se(window,n,C.Warning),C.Warning),e.gppConsentProvider=null!=o?o:new f(window,n,C.Warning),e}return s(e,r),e.prototype.eval=function(e){this.displayParameters.atfRatio=cn.GetAtfRatio(e.context,this.displayParameters.containerid)},e.prototype.buildCasUrl=function(t,n,i,o,r){var a,s,d=this,e=this.tcfCompatibleConsentProvider.readyToRetrieve(),c=this.gppConsentProvider.readyToRetrieve();e||c?(a=[],e&&a.push(p),c&&a.push(f),s={},e&&this.tcfCompatibleConsentProvider.retrieveConsentForPassback(function(e){a.splice(a.indexOf(p),1),s.gdprConsent=e,0===a.length&&t(d.urlBuilder.buildUrl(d.displayParameters,n,i,o,r,s))}),c&&this.gppConsentProvider.retrieveConsent(function(e){s.gppConsent=e,a.splice(a.indexOf(f),1),0===a.length&&t(d.urlBuilder.buildUrl(d.displayParameters,n,i,o,r,s))})):t(this.urlBuilder.buildUrl(this.displayParameters,n,i,o,r))},e})(t),D,un=((e=>{e[e.AFR=0]="AFR",e[e.AJS=1]="AJS",e[e.NATIVEAPI=2]="NATIVEAPI"})(D=D||{}),(a=>{function i(e,t,n){e=a.call(this,i.NAME,e,t)||this;return e.respectsEyeoDeal=n,e}return s(i,a),i.prototype.eval=function(t){var n=this,i=(a.prototype.eval.call(this,t),this.displayParameters.containerid),o=this.displayParameters.callbackSuccess,r=this.displayParameters.callbackError;this.buildCasUrl(function(e){(!t.context.isAdBlocked||n.respectsEyeoDeal)&&n.loadIframe(e,i,o,r)},t.context,D.AFR)},i.prototype.loadIframe=function(e,t,n,i){var o=document.createElement("iframe"),e=(o.src=e,o.id=t+"_cto_iframe",o.frameBorder="0",o.setAttribute("hspace","0"),o.setAttribute("vspace","0"),o.marginWidth="0px",o.marginHeight="0px",o.width="100%",o.height="100%",o.scrolling="no",n&&(o.onload=n),i&&(o.onerror=i),document.getElementById(t));e?e.appendChild(o):C.Error('Target element "'.concat(t,'" not found in the document'))},i.NAME="displayAfr",i})(ln)),pn=function(p){function h(e,t){return p.call(this,h.NAME,e,t)||this}return s(h,p),h.prototype.eval=function(t){var n,i=this,o=(p.prototype.eval.call(this,t),this.displayParameters.containerid),r=this.displayParameters.width,a=this.displayParameters.height,e=this.displayParameters.layout,s=this.displayParameters.callbackSuccess,d=this.displayParameters.callbackError,c=this.displayParameters.passbackCode,l=this.displayParameters.nativeCallback,u=this.displayParameters.nativeCallbackName;void 0!==l&&void 0!==u?this.buildCasUrl(function(e){i.loadJsonpNativeApi(e,u,l,s,c)},t.context,D.NATIVEAPI):""===o||void 0===o?C.Error("No containerid provided"):void 0!==e?(n=h.CHAPI_NAME+"="+encodeURIComponent(JSON.stringify(e)),e=function(){var e=i.getContainerSize(o,r,a);i.buildCasUrl(function(e){i.loadScriptAsync(e,n,s,d,c)},t.context,void 0,e.width,e.height)},void 0!==r&&void 0!==a?e():window.addEventListener?window.addEventListener("load",e,!1):window.attachEvent("onload",e)):this.buildCasUrl(function(e){i.loadScriptAsync(e,void 0,s,d,c)},t.context)},h.prototype.loadJsonpNativeApi=function(e,t,n,i,o){var r=document.createElement("script");r.type="text/javascript",r.src=e,window[t]=function(e){void 0!==e&&0===e.response_status?(n(e),void 0!==i&&i(e)):void 0!==o&&o(),window[t]=void 0,document.head.removeChild(r)},document.head.appendChild(r)},h.prototype.loadScriptAsync=function(e,t,n,i,o){var r=new c(e,t);r.send(function(e){var pb=o||function(){};eval(e),void 0!==n&&n(e)},function(e,t){void 0!==o&&o(),void 0!==i&&i(e,t)},o)},h.prototype.getContainerSize=function(e,t,n){var e=document.getElementById(e),i=m.inIframe(),t=t||(i?document.body.offsetWidth:e?e.offsetWidth:0),n=n||(i?document.body.offsetHeight:e?e.offsetHeight:0);return{width:t=0===t||0===n||t<80||n<40?n=void 0:t,height:n}},h.NAME="displayEventAsync",h.CHAPI_NAME="publisherCreativeConfiguration",h}(ln),hn=(o=>{function r(e,t,n,i){return o.call(this,r.NAME,e,t,n,i)||this}return s(r,o),r.prototype.eval=function(e){var t=this;o.prototype.eval.call(this,e),this.buildCasUrl(function(e){t.loadScriptSync(e)},e.context)},r.prototype.loadScriptSync=function(e){document.write("<script type='text/javascript' src='"+e+"'><\/script>")},r.NAME="displaySync",r})(ln),fn=(n=>{function e(e){var t=n.call(this)||this;return t.zoneid=void 0,t.async=void 0,t.containerid=void 0,t.width=void 0,t.height=void 0,t.callbackSuccess=void 0,t.callbackError=void 0,t.callIfNotAdblocked=void 0,t.passbackCode=void 0,t.publisherUrl=void 0,t.overridenWpdt0=void 0,t.overridenCt0=void 0,t.layout=void 0,t.atfRatio=void 0,t.adFormat=x.Classic,t.nativeCallback=void 0,t.nativeCallbackName=void 0,t.overrideZoneFloor=!0,t.collapseContainerIfNotAdblocked=!0,t.extraData={},t.addParameter("zoneId",function(e){t.zoneid=e}),t.addParameter("async",function(e){t.async=!0===e}),t.addParameter("containerId",function(e){t.containerid=e}),t.addParameter("width",function(e){t.width=e}),t.addParameter("height",function(e){t.height=e}),t.addParameter("callbackSuccess",function(e){t.callbackSuccess=e}),t.addParameter("callbackError",function(e){t.callbackError=e}),t.addParameter("callIfNotAdblocked",function(e){t.callIfNotAdblocked=e}),t.addParameter("passbackCode",function(e){t.passbackCode=e}),t.addParameter("layout",function(e){t.layout=e}),t.addParameter("publisherCreativeConfiguration",function(e){t.layout=e}),t.addParameter("extraData",function(e){t.extraData=e}),t.addParameter("publisherUrl",function(e){t.publisherUrl=e}),t.addParameter("wpdt0",function(e){t.overridenWpdt0=e}),t.addParameter("ct0",function(e){t.overridenCt0=e}),t.addParameter("overrideZoneFloor",function(e){t.overrideZoneFloor=e}),t.addParameter("collapseContainerIfNotAdblocked",function(e){t.collapseContainerIfNotAdblocked=e}),t.addParameter("adFormat",function(e){t.adFormat=t.parseAdFormat(e)}),t.addParameter("nativeCallback",function(e){t.nativeCallback=e,t.nativeCallbackName="criteo_cb_"+_().replace(/-/g,"")}),n.prototype.tryFillParameters.call(t,e),t}return s(e,n),e.prototype.parseAdFormat=function(e){switch(e.toLowerCase()){case"stickyfooter":return x.StickyFooter;case"scrollingbanner":return x.ScrollingBanner;default:return x.Classic}},e})(y),vn=(()=>{function l(){}return l.prototype.buildUrl=function(e,t,n,i,o,r){var a;switch(n){case D.AFR:a=l.CAS_URL_AFR;break;case D.NATIVEAPI:a=l.CAS_URL_NATIVE_API;break;default:a=l.CAS_URL_AJS}var s,d,c=a+"?ptv="+u;for(s in!0===t.isAdBlocked&&(d=this.getAbpParameter(e,t),c+="&abp="+String(d)),n!==D.AFR&&(c+=void 0!==e.containerid&&""!==e.containerid?"&containerid="+encodeURIComponent(e.containerid):""),c=(c=(c=(c=(c=(c=(c=(c=(c+="&zoneid="+String(e.zoneid))+(i?"&width="+i:"")+(o?"&height="+o:""))+(t.isOptOut?"&optout=1":""))+(t.bundle?"&bundle="+t.bundle:""))+("&cb="+String(ue.generateCacheBuster())))+("&nodis="+(t.dising?"0":"1")))+(t.charset?"&charset="+t.charset:""))+(e.overridenCt0?"&ct0="+encodeURIComponent(e.overridenCt0):t.ct0?"&ct0="+encodeURIComponent(t.ct0):""))+(e.overridenWpdt0?"&wpdt0="+encodeURIComponent(e.overridenWpdt0):t.wpdt0?"&wpdt0="+encodeURIComponent(t.wpdt0):""),e.publisherUrl&&(c+="&publisherurl="+encodeURIComponent(e.publisherUrl)),c+=t.getContextFlags(),e.extraData)void 0!==e.extraData[s]&&(c+="&"+s+"="+encodeURIComponent(e.extraData[s]));c+=e.passbackCode?"&dlp=1":"",e.integrationMode!==I.Unspecified&&(c+="&im="+e.integrationMode),c+="&dc="+t.displayContext,void 0!==e.atfRatio&&(d=Math.round(100*e.atfRatio)/100,c+="&atfr="+d),c+=t.highestAccessibleUrl?"&loc="+encodeURIComponent(t.highestAccessibleUrl).substring(0,1600):"";n=null==r?void 0:r.gdprConsent,i=null==r?void 0:r.gppConsent;return n&&(void 0!==n.gdprApplies&&(c+="&gdprApp="+(n.gdprApplies?"1":"0")),void 0!==n.consentData&&(c+=n.consentData?"&gdprDta="+n.consentData:""),void 0!==n.version)&&(c+=n.version?"&gdprVer="+n.version:""),i&&void 0!==i.gpp&&(c+="&gpp="+i.gpp),i&&void 0!==i.gppSid&&i.gppSid.forEach(function(e){c+="&gpp_sid="+e}),void 0!==e.nativeCallbackName&&(c+="&callback="+e.nativeCallbackName),c},l.prototype.getAbpParameter=function(e,t){return(t.isAdBlocked?1:0)|(e.overrideZoneFloor?0:2)},l.CAS_URL_AJS="https://cas.criteo.com/delivery/ajs.php",l.CAS_URL_AFR="https://cas.criteo.com/delivery/afr.php",l.CAS_URL_NATIVE_API="https://cas.criteo.com/delivery/0.1/napi.jsonp",l})(),mn=(()=>{function o(){}return o.prototype.respectsEyeoDeal=function(e){var t,n=document.getElementById(e);return this.respectsSizeConstraints(n)?((t=(n=this.getNewRatiosFeatures(n)).respectsAdRatioConstraint)?(o.atfRatio=n.newAtfRatio,o.btfRatio=n.newBtfRatio):C.Debug("The element "+e+"does not respect Eyeo acceptable ads ratio constraints"),t):(C.Debug("The element "+e+"does not respect Eyeo acceptable ads size constraints"),!1)},o.prototype.respectsSizeConstraints=function(e){var t=this.getAdLocationAttribute(e);switch(t){case"above-content":return e.offsetHeight<=200;case"in-content":return!1;case"below-content":return e.offsetHeight<=400;case"side-content":return e.offsetWidth<=350;default:return void 0!==t&&C.Error("Unknown data-ad-loc attribute : "+t),!0}},o.prototype.getAdLocationAttribute=function(e){return e.getAttribute("data-ad-loc")||void 0},o.prototype.getNewRatiosFeatures=function(e){var t=cn.GetRatioAboveFold(e),e=e.offsetHeight*e.offsetWidth,n=screen.width*screen.height,i=o.atfRatio+t*e/n,t=o.btfRatio+(1-t)*e/n;return{respectsAdRatioConstraint:i<=.15&&t<=.25,newAtfRatio:i,newBtfRatio:t}},o.atfRatio=0,o.btfRatio=0,o})();function gn(e){var t,n=new fn(e);n.async=!1!==n.async,void 0===n.zoneid?C.Error("missing parameter 'zoneid'"):void 0!==n.layout&&!1===n.async?C.Error("Criteo hosted ads only work in async mode"):!0!==n.async||void 0!==n.containerid&&""!==n.containerid||void 0!==n.nativeCallback?(!1===n.async&&void 0!==n.passbackCode&&(C.Error("Criteo.DisplayAd does not support synchronous local passback"),n.passbackCode=void 0),!1===n.async&&void 0!==n.nativeCallback&&(C.Error("Native API does not support synchronous local passback"),n.passbackCode=void 0),t=new(n.async?pn:hn)(new vn,n),n.adFormat!==x.Classic?(window["criteo_pubtag_159"]||window.criteo_pubtag).context.serviceProvider.getServicesAsync(function(e){e=new sn(n.adFormat,e.cookieHelper);e.IsUserOptout()?C.Debug("The user has opted-out for 1 day when closing the sticky footer."):(n.containerid=e.CreateAdvancedAdFormatContainer(n.containerid),(window["criteo_pubtag_159"]||window.criteo_pubtag).push(t))}):(window["criteo_pubtag_159"]||window.criteo_pubtag).push(t)):C.Error("Missing parameter 'containerid' for an async display")}function yn(e){var t,n,i,o=new fn(e);void 0===o.zoneid?C.Error("missing parameter 'zoneid'"):void 0===o.containerid||""===o.containerid?C.Error("missing parameter 'containerid' to display acceptable ads"):wn(t=document.getElementById(o.containerid))?(void 0===(n=(window["criteo_pubtag_159"]||window.criteo_pubtag).context).isAdBlocked&&(new ne).isAdBlocked(function(e){n.isAdBlocked=e,(window["criteo_pubtag_159"]||window.criteo_pubtag).evalEvents()}),e=new mn,e=new un(new vn,o,e.respectsEyeoDeal(o.containerid)),i=new v(function(){o.collapseContainerIfNotAdblocked&&(t.style.display="none"),void 0!==o.callIfNotAdblocked&&o.callIfNotAdblocked()}),e=new an(function(){return!0===(window["criteo_pubtag_159"]||window.criteo_pubtag).context.isAdBlocked},e,i,function(){return void 0!==(window["criteo_pubtag_159"]||window.criteo_pubtag).context.isAdBlocked}),(window["criteo_pubtag_159"]||window.criteo_pubtag).push(e)):C.Error("can't display acceptable ad : the container \""+o.containerid+'" is not visible')}function wn(e,t){if(e===document)return!0;var n="visible"===e.style.visibility;if(!e)return!1;if(!e.parentNode)return!1;if(e.style){if("none"===e.style.display)return!1;if("hidden"===e.style.visibility&&!1===t)return!1}if(window.getComputedStyle){var i=window.getComputedStyle(e,"");if("none"===i.display)return!1;if("hidden"===i.visibility&&!1===t)return!1;n=n||"visible"===i.visibility}i=e.currentStyle;if(i){if("none"===i.display)return!1;if("hidden"===i.visibility&&!1===t)return!1;n=n||"visible"===i.visibility}return wn(e.parentNode,null!=t?t:n)}function bn(e){function t(){try{return i.apply(this,arguments)}catch(e){C.Error("Exception caught: "+e.toString())}}var n,i=e;for(n in t.prototype=i.prototype,i)i.hasOwnProperty(n)&&(t[n]=i[n]);return t}function Cn(e){for(var t in e){var n;t in e&&("function"==typeof(n=e[t])?e[t]=bn(n):"object"==typeof n&&(e[t]=Cn(n)))}return e}function In(e){var t={push:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(void 0!==e)for(var n=0,i=e;n<i.length;n++){var o=i[n];"function"==typeof o&&bn(o)()}}};return e&&Array.isArray(e)&&t.push.apply(t,e),t}function _n(e){}function En(e){}var An="crtg_content",Pn="crtg_rta",Sn=206;function Tn(){(window["Criteo_159"]||window.Criteo).passbackEvents=In((window["Criteo_159"]||window.Criteo).passbackEvents)}function Rn(e,t){w(e,Sn,Tn,t)}function kn(e,t,n,i){var o;"string"==typeof e?o=e:(o=r(e,"adUnit","string"),t=r(e,"passback","function"),n=r(e,"customRenderFunction","function"),i=r(e,"minimumBidPrice","number")),void 0===o?C.Error("An adUnit string parameter should be provided"):void 0===t?C.Error("A passback callback should be provided"):("function"!=typeof n&&(n=function(e,t){R({bidId:e?e.id:o,containerId:o,document:void 0})}),(window["Criteo_159"]||window.Criteo).passbackEvents=(window["Criteo_159"]||window.Criteo).passbackEvents||[],(window["Criteo_159"]||window.Criteo).passbackEvents.push(function(){var e=(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.paapiBids[o];e?e.resultPromise.then(function(e){e?((window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.paapiBids[o].result=e,n(void 0,e)):(delete(window["criteo_pubtag_159"]||window.criteo_pubtag).standaloneBidder.paapiBids[o],xn(o,i,n,t))}):xn(o,i,n,t)}))}function xn(e,t,n,i){var o=Lt(e)[0];o&&(void 0===t||o.cpm>t)?n(o):i(e)}var Mn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Dn(){throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")}function On(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}function Un(e,t){return e(t={exports:{}},t.exports),t.exports}function Bn(e){e&&e.default}var Fn=Un(function(e,t){var n;n=function(){function d(e){return"function"==typeof e}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=0,t=void 0,o=void 0,a=function(e,t){u[i]=e,u[i+1]=t,2===(i+=2)&&(o?o(p):B())};var e="undefined"!=typeof window?window:void 0,r=e||{},r=r.MutationObserver||r.WebKitMutationObserver,s="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),c="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function l(){var e=setTimeout;return function(){return e(p,1)}}var u=new Array(1e3);function p(){for(var e=0;e<i;e+=2)(0,u[e])(u[e+1]),u[e]=void 0,u[e+1]=void 0;i=0}function h(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(p)}:l()}catch(e){return l()}}var f,v,m,B=void 0;function g(e,t){var n,i=this,o=new this.constructor(b),r=(void 0===o[w]&&M(o),i._state);return r?(n=arguments[r-1],a(function(){return k(r,o,n,i._result)})):T(i,o,e,t),o}function y(e){var t;return e&&"object"==typeof e&&e.constructor===this?e:(A(t=new this(b),e),t)}var B=s?function(){return process.nextTick(p)}:r?(v=0,s=new r(p),m=document.createTextNode(""),s.observe(m,{characterData:!0}),function(){m.data=v=++v%2}):c?((f=new MessageChannel).port1.onmessage=p,function(){return f.port2.postMessage(0)}):(void 0===e&&"function"==typeof Dn?h:l)(),w=Math.random().toString(36).substring(2);function b(){}var C=void 0,I=1,_=2;function F(e,i,o){a(function(t){var n=!1,e=((e,t,n,i)=>{try{e.call(t,n,i)}catch(e){return e}})(o,i,function(e){n||(n=!0,(i!==e?A:P)(t,e))},function(e){n||(n=!0,S(t,e))},t._label);!n&&e&&(n=!0,S(t,e))},e)}function E(e,t,n){var i,o;t.constructor===e.constructor&&n===g&&t.constructor.resolve===y?(i=e,(o=t)._state===I?P(i,o._result):o._state===_?S(i,o._result):T(o,void 0,function(e){return A(i,e)},function(e){return S(i,e)})):void 0!==n&&d(n)?F(e,t,n):P(e,t)}function A(t,e){if(t===e)S(t,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof e,null===e||"object"!=n&&"function"!=n)P(t,e);else{n=void 0;try{n=e.then}catch(e){return void S(t,e)}E(t,e,n)}var n}function N(e){e._onerror&&e._onerror(e._result),R(e)}function P(e,t){e._state===C&&(e._result=t,e._state=I,0!==e._subscribers.length)&&a(R,e)}function S(e,t){e._state===C&&(e._state=_,e._result=t,a(N,e))}function T(e,t,n,i){var o=e._subscribers,r=o.length;e._onerror=null,o[r]=t,o[r+I]=n,o[r+_]=i,0===r&&e._state&&a(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var i,o=void 0,r=e._result,a=0;a<t.length;a+=3)i=t[a],o=t[a+n],i?k(n,i,o,r):o(r);e._subscribers.length=0}}function k(e,t,n,i){var o=d(n),r=void 0,a=void 0,s=!0;if(o){try{r=n(i)}catch(e){s=!1,a=e}if(t===r)return void S(t,new TypeError("A promises callback cannot return that same promise."))}else r=i;t._state===C&&(o&&s?A(t,r):!1===s?S(t,a):e===I?P(t,r):e===_&&S(t,r))}var x=0;function M(e){e[w]=x++,e._state=void 0,e._result=void 0,e._subscribers=[]}D.prototype._enumerate=function(e){for(var t=0;this._state===C&&t<e.length;t++)this._eachEntry(e[t],t)},D.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,i=n.resolve;if(i===y){var o,r=void 0,a=void 0,s=!1;try{r=t.then}catch(e){s=!0,a=e}r===g&&t._state!==C?this._settledAt(t._state,e,t._result):"function"!=typeof r?(this._remaining--,this._result[e]=t):n===O?(o=new n(b),s?S(o,a):E(o,t,r),this._willSettleAt(o,e)):this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(i(t),e)},D.prototype._settledAt=function(e,t,n){var i=this.promise;i._state===C&&(this._remaining--,e===_?S(i,n):this._result[t]=n),0===this._remaining&&P(i,this._result)},D.prototype._willSettleAt=function(e,t){var n=this;T(e,void 0,function(e){return n._settledAt(I,t,e)},function(e){return n._settledAt(_,t,e)})};var L=D;function D(e,t){this._instanceConstructor=e,this.promise=new e(b),this.promise[w]||M(this.promise),n(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0!==this.length&&(this.length=this.length||0,this._enumerate(t),0!==this._remaining)||P(this.promise,this._result)):S(this.promise,new Error("Array Methods must be provided an Array"))}U.prototype.catch=function(e){return this.then(null,e)},U.prototype.finally=function(t){var n=this.constructor;return d(t)?this.then(function(e){return n.resolve(t()).then(function(){return e})},function(e){return n.resolve(t()).then(function(){throw e})}):this.then(t,t)};var O=U;function U(e){if(this[w]=x++,this._result=this._state=void 0,this._subscribers=[],b!==e){if("function"!=typeof e)throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");if(!(this instanceof U))throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");var t=this;try{e(function(e){A(t,e)},function(e){S(t,e)})}catch(e){S(t,e)}}}return O.prototype.then=g,O.all=function(e){return new L(this,e).promise},O.race=function(o){var r=this;return n(o)?new r(function(e,t){for(var n=o.length,i=0;i<n;i++)r.resolve(o[i]).then(e,t)}):new r(function(e,t){return t(new TypeError("You must pass an array to race."))})},O.resolve=y,O.reject=function(e){var t=new this(b);return S(t,e),t},O._setScheduler=function(e){o=e},O._setAsap=function(e){a=e},O._asap=a,O.polyfill=function(){var e=void 0;if(void 0!==Mn)e=Mn;else if("undefined"!=typeof self)e=self;else try{e=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var t=e.Promise;if(t){var n=null;try{n=Object.prototype.toString.call(t.resolve())}catch(e){}if("[object Promise]"===n&&!t.cast)return}e.Promise=O},O.Promise=O},e.exports=n()}),Nn=Fn.polyfill,Ln=(()=>{function e(){}return e.LoadPolyfills=function(){e.DefineIsArray(),e.DefineIndexOf(),e.DefineFilter(),e.DefinePromise()},e.DefinePromise=function(){window.Promise||Nn()},e.DefineIsArray=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)})},e.DefineIndexOf=function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){if(void 0===t&&(t=0),void 0===this)throw new TypeError("'this' is null or not defined");var n=this.length;if(0!==n&&!(n<=t))for(var i=Math.max(0<=t?t:n-Math.abs(t),0);i<n;){if(i in this&&this[i]===e)return i;i++}return-1})},e.DefineFilter=function(){Array.prototype.filter||(Array.prototype.filter=function(e){if(void 0===this)throw new TypeError;var t=this.length;if("function"!=typeof e)throw new TypeError;for(var n,i=[],o=2<=arguments.length?arguments[1]:void 0,r=0;r<t;r++)r in this&&(n=this[r],e.call(o,n,r,this))&&i.push(n);return i})},e})(),Wn=function(e,t){this.errorType=e,this.messages=t},Gn=function(e,t,n){this.environment=e,this.errors=t,this.requestId=n},zn=(()=>{function e(e){this.messages={},this.environment=e}return e.prototype.withMessage=function(e,t){return e in this.messages||(this.messages[e]=new Array),this.messages[e].push(t),this},e.prototype.withRequestId=function(e){return this.requestId=e,this},e.prototype.build=function(){var e,t=Array();for(e in this.messages)null!=e&&t.push(new Wn(e,this.messages[e]));return new Gn(this.environment,t,this.requestId)},e})(),Hn=(()=>{function n(e){void 0===e&&(e=!1),this.builder=new zn(n.environment),this.shouldSend=!1,this.debug=e}return n.prototype.reportPending=function(){return this.shouldSend},n.prototype.sendErrorReport=function(e,t){this.shouldSend&&(void 0!==t&&this.builder.withRequestId(t),t=this.builder.build(),e=e.buildErrorUrl(),e+=this.debug?"?debug=1":"",t=JSON.stringify(t),navigator.sendBeacon&&navigator.sendBeacon(e,t),this.shouldSend=!1,this.builder=new zn(n.environment))},n.prototype.log=function(e,t){this.shouldSend=!0,this.builder.withMessage(e,t)},n.environment="PublisherTag Version ".concat(u),n})(),qn=(()=>{function e(e){this.window=e}return e.prototype.getUserContextualData=function(){var e;return{data:{contentLanguage:this.getContentLanguage(),navigatorLanguage:null==(e=null==(e=this.window)?void 0:e.navigator)?void 0:e.language,orientation:this.getOrientation(),windowInnerWidth:null==(e=this.window)?void 0:e.innerWidth,windowInnerHeight:null==(e=this.window)?void 0:e.innerHeight,pageWidth:null==(e=null==(e=null==(e=this.window)?void 0:e.document)?void 0:e.documentElement)?void 0:e.scrollWidth,pageHeight:null==(e=null==(e=null==(e=this.window)?void 0:e.document)?void 0:e.documentElement)?void 0:e.scrollHeight,sessionDuration:i.TimeSincePageLoad()},device:{w:null==(e=null==(e=this.window)?void 0:e.screen)?void 0:e.width,h:null==(e=null==(e=this.window)?void 0:e.screen)?void 0:e.height}}},e.prototype.getOrientation=function(){var e;return((null==(e=null==(e=this.window)?void 0:e.screen)?void 0:e.orientation)||{}).type||(null==(e=null==(e=this.window)?void 0:e.screen)?void 0:e.mozOrientation)||(null==(e=null==(e=this.window)?void 0:e.screen)?void 0:e.msOrientation)},e.prototype.getContentLanguage=function(){var e,t=null==(t=null==(t=null==(t=this.window)?void 0:t.document)?void 0:t.documentElement)?void 0:t.lang;return t=t||"function"!=typeof(null==(e=null==(e=this.window)?void 0:e.document)?void 0:e.querySelector)?t:null==(e=this.window.document.querySelector('meta[http-equiv="Content-Language"]'))?void 0:e.content},e})(),Vn=(n=>{function e(e){var t=n.call(this)||this;return t.context=e,t}return s(e,n),e.prototype.sendEvents=function(e){e={requestId:this.context.getClientSessionId(),events:[e]};this.context.isEligibleForCsmEvents()&&this.sendEventsToBeacon(e,this.urlBuilder.buildCsmEventsUrl())},e})(me),O,jn,Kn=((e=>{e[e.None=0]="None",e[e.Cookie=1]="Cookie",e[e.LocalStorage=2]="LocalStorage",e[e.Delegation=4]="Delegation"})(O=O||{}),(e=>{e[e.Unknown=0]="Unknown",e[e.Deactivated=1]="Deactivated",e[e.Activated=2]="Activated"})(jn=jn||{}),(()=>{function e(e){this.userDataHandlers=e}return e.prototype.getLocalWebId=function(){return this.userDataHandlers.localWebId().fromAllStorages()},e.prototype.getOptOut=function(){return this.userDataHandlers.optOut().fromAllStorages()},e.prototype.getBundle=function(){return this.userDataHandlers.bundle().fromAllStorages()},e})()),Xn=(()=>{function t(e,t){this.value=e,this.origin=t}return t.fromUserIdentificationData=function(e){return new t(e.value,e.origin)},t.fromValue=function(e){return new t(e,O.None)},t.prototype.hasValue=function(){return""!==String(this.value)&&null!=this.value},t})(),Jn=(r=>{function e(e,t,n,i,o){n=r.call(this,n,i)||this;return n.storageKey=e,n.expirationTimeHours=t,n.storageAdapter=o,n}return s(e,r),e.prototype.hasValue=function(){return""!==String(this.value)&&null!=this.value},e.prototype.saveOnAllStorages=function(){var e;this.hasValue()&&(e="boolean"==typeof this.value?this.value?"1":"0":String(this.value),this.storageAdapter.writeToAllStorages(this.storageKey,e,this.expirationTimeHours))},e.prototype.toJSON=function(){return{value:this.value,origin:this.origin}},e})(Xn),Yn=(()=>{function t(e){this.storageAdapter=e}return t.prototype.localWebId=function(){return this.createGuid(t.LWID_COOKIE_NAME)},t.prototype.optOut=function(){return new Qn(Boolean,t.OPTOUT_COOKIE_NAME,t.OPTOUT_RETENTION_TIME_HOUR,this.storageAdapter)},t.prototype.bundle=function(){return this.createGuid(t.BUNDLE_COOKIE_NAME)},t.prototype.createGuid=function(e){return new Qn(String,e,t.GUID_RETENTION_TIME_HOUR,this.storageAdapter)},t.LWID_COOKIE_NAME="cto_lwid",t.OPTOUT_COOKIE_NAME="cto_optout",t.BUNDLE_COOKIE_NAME="cto_bundle",t.GUID_RETENTION_TIME_HOUR=9360,t.OPTOUT_RETENTION_TIME_HOUR=43200,t})(),Qn=(()=>{function e(e,t,n,i){this.type=e,this.storageKey=t,this.expirationTimeHours=n,this.storageAdapter=i}return e.prototype.fromAllStorages=function(){var e=this.storageAdapter.readFromAllStorages(this.storageKey),t="boolean"==typeof(new this.type).valueOf()?"1"===e.value:e.value;return this.create(t,e.origin)},e.prototype.fromValue=function(e){return this.create(e,O.None)},e.prototype.removeFromAllStorages=function(){this.storageAdapter.removeFromAllStorages(this.storageKey)},e.prototype.create=function(e,t){return new Jn(this.storageKey,this.expirationTimeHours,e,t,this.storageAdapter)},e})(),Zn=(()=>{function e(e,t,n){this.criteoGlobalVendorListId=91,this.window=e,this.document=e.document,this.userDataHandlers=new Yn(t),this.syncframeOrigin="https://".concat(n=null!=n?n:"gum.criteo.com"),this.syncframeEndpoint="https://".concat(n,"/syncframe"),this.window.criteo_syncframe_state||(this.window.criteo_syncframe_state={syncframeRequested:!1}),this.window.criteo_syncframe_state.appendSyncframeRequestQueue||(this.window.criteo_syncframe_state.appendSyncframeRequestQueue=[])}return e.prototype.getSyncframeListener=function(n,i){var o=this;return function(e){var t;o.discardMessageFromOtherFrames(e)&&!o.window.criteo_syncframe_state.ForceSyncframeMessageHandling||(null==(t=e.data)?void 0:t.requestId)===n&&(e.stopImmediatePropagation(),o.handleSyncframeResponse(t,i),o.window.criteo_syncframe_state.firstSyncframeCompleted=!0,o.window.criteo_syncframe_state.syncframeRequested=!1,o.tryUnqueueAppendSyncframeRequests())}},e.prototype.userBundleHasAlreadyBeenRetrieved=function(){return this.userDataHandlers.bundle().fromAllStorages().hasValue()},e.prototype.canDropSyncframe=function(){return!this.window.criteo_syncframe_state.syncframeRequested},e.prototype.discardMessageFromOtherFrames=function(e){return!e.data||e.origin!=this.syncframeOrigin},e.prototype.appendGumIframeIfDoesNotExist=function(e,t,n){var i,o=this;!0===(null==(i=this.window.criteo_syncframe_state)?void 0:i.firstSyncframeCompleted)||this.userBundleHasAlreadyBeenRetrieved()||this.canDropSyncframe()?this.appendGumIframe(e,t,n):this.queueAppendSyncframeRequest(function(){return o.appendGumIframeIfDoesNotExist(e,t,n)})},e.prototype.doOnCompletedDom=function(e){var t,n=this;this.window.addEventListener&&("complete"===this.document.readyState?e():(t=function(){n.window.removeEventListener("load",t),n.document.removeEventListener("DOMContentLoaded",t),e()},this.window.addEventListener("load",t,!1),this.document.addEventListener("DOMContentLoaded",t,!1)))},e.prototype.appendGumIframe=function(e,t,n){t();t=e();this.consentAllowsSyncframeToBeDropped(t.consent)?(this.window.addEventListener("message",this.getSyncframeListener(t.requestId,n),!0),e=this.createIFrame(t),this.document.body.appendChild(e),this.window.criteo_syncframe_state.syncframeRequested=!0):this.handleSyncframeResponse({},n)},e.prototype.consentAllowsSyncframeToBeDropped=function(e){return 2!==(null==e?void 0:e.gdprVersion)||!0!==(null==e?void 0:e.gdprApplies)||!0===(null==(e=null==e?void 0:e.vendorConsents)?void 0:e[this.criteoGlobalVendorListId])},e.prototype.queueAppendSyncframeRequest=function(e){void 0!==this.window.criteo_syncframe_state.appendSyncframeRequestQueue&&this.window.criteo_syncframe_state.appendSyncframeRequestQueue.push(e)},e.prototype.tryUnqueueAppendSyncframeRequests=function(){for(var e,t,n=null==(e=this.window.criteo_syncframe_state.appendSyncframeRequestQueue)?void 0:e.shift();void 0!==n;)n(),n=null==(t=this.window.criteo_syncframe_state.appendSyncframeRequestQueue)?void 0:t.shift()},e.prototype.createIFrame=function(e){var t=this.document.createElement("iframe"),n={lwid:e.localWebId,bundle:e.bundle,optout:e.optoutCookie,tld:e.topLevelDomain,topUrl:e.topUrl,version:"string"==typeof e.version?null==(n=e.version)?void 0:n.replace(/\./g,"_"):e.version,cw:e.canWriteCookie,lsw:e.canWriteLocalStorage,origin:e.origin,pm:e.privateMode,rtusCallerId:e.rtusCallerId,requestId:e.requestId},i=[];return i.push("origin=".concat(e.origin)),i.push("topUrl=".concat(e.topUrl)),e.consent&&(void 0!==e.consent.gdprApplies&&i.push("gdpr=".concat(e.consent.gdprApplies?1:0)),void 0!==e.consent.consentData&&i.push("gdpr_consent=".concat(e.consent.consentData)),void 0!==e.consent.uspString&&i.push("us_privacy=".concat(e.consent.uspString)),void 0!==e.consent.gppString&&i.push("gpp=".concat(e.consent.gppString)),void 0!==e.consent.gppSectionIds)&&i.push("gpp_sid=".concat(e.consent.gppSectionIds)),e.isDebug&&i.push("debug=1"),t.src="".concat(this.syncframeEndpoint,"?").concat(i.join("&"),"#").concat(JSON.stringify(n)),t.width="0",t.height="0",t.frameBorder="0",t.style.borderWidth="0px",t.style.margin="0px",t.style.display="none",t.setAttribute("sandbox","allow-scripts allow-same-origin"),t.setAttribute("aria-hidden","true"),t.title="Criteo GUM iframe",t},e})(),$n=(i=>{function e(e,t,n){t=i.call(this,t,e.storageAdapter,(n=void 0===n?!1:n)?"gumi.criteo.com":"gum.criteo.com")||this;return t.adapter=e,t}return s(e,i),e.prototype.handleSyncframeResponse=function(e,t){var n;if(e.optout)this.deleteUserData(),this.userDataHandlers.optOut().fromValue(!0).saveOnAllStorages(),null!=(n=null==t?void 0:t.resolve)&&n.call(t,"");else{if(e.callbacks)for(var i=0,o="string"==typeof e.callbacks?[e.callbacks]:e.callbacks;i<o.length;i++){var r=o[i],a=this.document.createElement("img");a.style.display="none",a.width=1,a.height=1,a.setAttribute("data-owner","criteo-tag"),a.src=r}else e.bundle&&this.userDataHandlers.bundle().fromValue(e.bundle).saveOnAllStorages();null!=t&&t.resolve&&t.resolve(e.bundle||"")}},e.prototype.appendGumIFrameOnCompletedDomIfItDoesNotExist=function(e,t){function n(){return i.appendGumIframeIfDoesNotExist(function(){return i.createSyncframeRequest(e(),o)},function(){},{resolve:t})}var i=this,o=Math.random().toString();this.adapter.isPubTagIds?n():this.doOnCompletedDom(n)},e.prototype.createSyncframeRequest=function(e,t){return{localWebId:this.userDataHandlers.localWebId().fromAllStorages().toJSON(),bundle:this.userDataHandlers.bundle().fromAllStorages().toJSON(),optoutCookie:this.userDataHandlers.optOut().fromAllStorages().toJSON(),topLevelDomain:e.topLevelDomain,topUrl:e.topUrl,version:e.version,canWriteCookie:e.canWriteCookie,canWriteLocalStorage:e.canWriteLocalStorage,origin:this.adapter.isPubTagIds?"publishertagids":"publishertag",privateMode:void 0,consent:e.consent,rtusCallerId:void 0,isDebug:this.adapter.isDebug,requestId:t}},e.prototype.fetchUserData=function(){return new Kn(this.userDataHandlers)},e.prototype.deleteUserData=function(){this.userDataHandlers.bundle().removeFromAllStorages()},e})(Zn),ei=(()=>{function t(e,t,n,i,o,r,a){var s=this,e=(this.topDoc=n.document,this.cookieHelper=e,this.localStorageHelper=t,this.canWriteCookies=this.checkCookiesAreWriteable(),this.topUrl=o,!1);try{e=JSON.parse("false")}catch(e){}this.syncframe=null!=a?a:new $n({storageAdapter:{readFromAllStorages:function(e){e=s.getFromAllStorages(e);return{value:e.value,origin:e.origin}},writeToAllStorages:function(e,t,n){s.writeOnAllStorages(e,t,n)},removeFromAllStorages:function(e){s.deleteFromAllStorage(e)}},isPubTagIds:null!=r&&r,isDebug:i},n,e)}return t.prototype.synchronizeCriteoUid=function(e,t){var n=this,i=null==e?void 0:e.gdprConsent,o=null==e?void 0:e.gppConsent;this.syncframe.appendGumIFrameOnCompletedDomIfItDoesNotExist(function(){var e;return{topLevelDomain:n.getTld(),topUrl:encodeURIComponent(at(n.topUrl).hostname),version:u,canWriteCookie:n.canWriteCookies,canWriteLocalStorage:n.localStorageHelper.localStorageEnabled,consent:{gdprApplies:null==i?void 0:i.gdprApplies,consentData:null==i?void 0:i.consentData||"",gdprVersion:null==i?void 0:i.version,vendorConsents:null==i?void 0:i.vendorConsents,gppString:null==o?void 0:o.gpp,gppSectionIds:null==(e=null==o?void 0:o.gppSid)?void 0:e.join(",")}}},t)},t.prototype.checkCookiesAreWriteable=function(){var e="cto_writeable",t=(this.cookieHelper.setCookie(e,"1",1,this.topDoc,!0),"1"===this.cookieHelper.getCookie(e,this.topDoc));return this.cookieHelper.deleteCookie(e,this.topDoc,!0),t},t.prototype.writeOnAllStorages=function(e,t,n){this.localStorageHelper.setItem(e,t),this.cookieHelper.setCookie(e,t,n,this.topDoc,!0)},t.prototype.getFromAllStorages=function(e){var t=this.cookieHelper.getCookie(e,this.topDoc),e=this.localStorageHelper.getItem(e)||void 0;return{value:t||e,origin:(t&&O.Cookie)|(e&&O.LocalStorage)}},t.prototype.deleteFromAllStorage=function(e){this.cookieHelper.deleteCookie(e,this.topDoc,!0),this.localStorageHelper.removeItem(e)},t.prototype.getTld=function(){var e=this.cookieHelper.setCookie(t.TLD_TEST_COOKIE_NAME,"test",1,this.topDoc,!0);return this.cookieHelper.deleteCookie(t.TLD_TEST_COOKIE_NAME,this.topDoc,!0),e},t.prototype.fetchUserData=function(){return this.syncframe.fetchUserData()},t.prototype.deleteUserData=function(){this.syncframe.deleteUserData()},t.TLD_TEST_COOKIE_NAME="cto_pub_test_tld",t})(),ti=(()=>{function e(e,t,n,i){this.highestAccessibleWindowStruct=m.getHighestAccessibleWindow(e),this.highestAccessibleUrl=m.getHighestAccessibleUrl(this.highestAccessibleWindowStruct);e=ut(this.highestAccessibleUrl);this.debugMode="1"===e.pbt_debug||!1,this.debugMode&&re(d.Debug),this.cookieSynchronizerFactory=t,this.serviceProvider=n||new Oe(this.highestAccessibleWindowStruct.topFrame,void 0,void 0,void 0,i)}return e.prototype.synchronizeCriteoUid=function(e,t,n,i){var o=(null==(o=this.cookieSynchronizerFactory)?void 0:o.call(this))||new ei(t,e,this.highestAccessibleWindowStruct.topFrame,this.debugMode,this.highestAccessibleUrl,!1),t=o.fetchUserData();n("",t.getOptOut().value,"",t.getBundle().value),o.synchronizeCriteoUid(i)},e.prototype.getServicesAndSyncCriteoUid=function(n){var i=this;void 0===n&&(n=function(e,t,n,i){}),this.serviceProvider.getServicesAsync(function(e){var t;(null==(t=e.ccpaConsentProvider)?void 0:t.hasUserOptOut(null==(t=e.privacies)?void 0:t.ccpaIabConsent))||i.synchronizeCriteoUid(e.localStorageHelper,e.cookieHelper,n,e.privacies)})},e.prototype.deleteCriteoUid=function(){var n=this;this.serviceProvider.getServicesAsync(function(e){var t;((null==(t=n.cookieSynchronizerFactory)?void 0:t.call(n))||new ei(e.cookieHelper,e.localStorageHelper,n.highestAccessibleWindowStruct.topFrame,n.debugMode,n.highestAccessibleUrl,!1)).deleteUserData()})},e})(),ni=(()=>{function e(e,t,n,i,o,r,a,s){void 0===a&&(a=(new Date).getUTCMilliseconds()),void 0===s&&(s=_()),this.cloneByImpressionId={},this.sessionRandomId=a,this.clientSessionId=s,this.contextMetricsManager=new Vn(this),this.charset=e.charset||e.characterSet||"",this.highestAccessibleWindowStruct=m.getHighestAccessibleWindow(t),this.displayContext=this.getDisplayContext(this.highestAccessibleWindowStruct),this.highestAccessibleUrl=m.getHighestAccessibleUrl(this.highestAccessibleWindowStruct);a=ut(this.highestAccessibleUrl);this.debugMode="1"===a.pbt_debug||!1,this.noLog="1"===a.pbt_nolog||!1,this.remoteLogging=new Hn(this.debugMode),this.debugMode&&re(d.Debug),this.location=t.location,this.dising=!1,this.ct0=void 0,this.wpdt0=void 0,this.isAdBlocked=void 0,this.rtaVarNames=[],this.identityHelper=new ti(t,n,i,o),this.serviceProvider=this.identityHelper.serviceProvider,this.synchronizeCriteoUid(),this.userContextualDataManager=r||new qn(t)}return e.prototype.getContextFlags=function(){var e="";return(e+=this.debugMode?"&debug=1":"")+(this.noLog?"&nolog=1":"")},e.prototype.isEligibleForCsmEvents=function(){return this.sessionRandomId%100==0},e.prototype.getClientSessionId=function(){return this.clientSessionId},e.prototype.getMetricsManager=function(){return this.contextMetricsManager},e.prototype.getDisplayContext=function(e){return m.inIframe()?e.err?M.InUnfriendlyIframe:M.InFriendlyIframe:M.DirectIntegration},e.prototype.synchronizeCriteoUid=function(){var o=this;this.identityHelper.getServicesAndSyncCriteoUid(function(e,t,n,i){o.isOptOut=t,o.bundle=i})},e.prototype.getIdfs=function(){return""},e.prototype.setIdfs=function(e){},e.prototype.setSite=function(e){this.site=e},e.prototype.getSite=function(){return this.site},e.prototype.setApp=function(e){this.app=e},e.prototype.getApp=function(){return this.app},e.prototype.setDevice=function(e){this.device=e},e.prototype.getDevice=function(){return this.device},e.prototype.setUser=function(e){this.user=e},e.prototype.getPublisherExt=function(){return{}},e.prototype.getUserExtWithContextualData=function(){return{}},e.prototype.getUser=function(){var e,t=this.user||{},n=this.userContextualDataManager.getUserContextualData();return null!=n&&n.data&&(e=b(b({},null==(e=t.ext)?void 0:e.data),n.data),t.ext=b(b({},t.ext),{data:e})),null!=n&&n.device&&(e=b(b({},null==(e=t.ext)?void 0:e.device),n.device),t.ext=b(b({},t.ext),{device:e})),null!=(n=this.device)&&n.sua&&(t.ext=b(b({},t.ext),{sua:this.device.sua})),t},e})(),ii=function(){this.bids={},this.paapiBids={},this.lineItemRanges=[],this.impIds=[]};function oi(e){return"conditionalEvent"===e.name}var ri=(()=>{function e(e){var t;void 0===e&&(e=null==(t=window["Criteo_159"]||window.Criteo)?void 0:t.config),this.standaloneBidder=new ii,this.events=[],this.context=new ni(document,window,void 0,void 0,e),C.Debug("Publisher Tag loaded")}return e.prototype.push=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=0,i=e;n<i.length;n++)this.events.push(i[n]);this.evalEvents()},e.prototype.evalEvents=function(){for(var e=0;e<this.events.length;){var t=this.events[e];if(oi(t)&&!t.canEval())e++;else{t=this.events.splice(e,1);try{t[0].eval(this)}catch(e){C.Error("An exception occurred processing an event: "+e.toString())}}}},e.VERSION=u,e})(),ai,si,di,ci,li,ui;function pi(e){window.criteo_pubtag&&window.criteo_pubtag.context&&"serviceProvider"in window.criteo_pubtag.context||(Ln.LoadPolyfills(),window.criteo_pubtag=new ri,window["criteo_pubtag_159"]=window.criteo_pubtag),window.Criteo=hi(window.Criteo||{},e),window["Criteo_159"]=window.Criteo,C.Debug("Publisher Tag initialized with window.criteo_pubtag|criteo_pubtag_159, window.Criteo|Criteo_159")}function hi(e,t){if(U(e)&&U(t))for(var n in t)U(t[n])?!U(e[n])&&void 0!==e[n]||(U(e[n])||(e[n]={}),hi(e[n],t[n])):void 0===e[n]&&(e[n]=t[n]);return e}function U(e){return e&&"object"==typeof e&&!Array.isArray(e)}pi(Cn({CallRTA:_n,SetTargeting:En,DisplayAd:gn,DisplayAcceptableAdIfAdblocked:yn,ComputeStandaloneDFPTargeting:Ut,GetBids:Nt,GetBidsForAdUnit:Lt,RenderAd:R,RequestBids:Tt,RequestBidsOnGoogleTagSlots:kt,SetDFPKeyValueTargeting:Ot,SetLineItemRanges:Dt,SetCeh:$t,SetCCPAExplicitOptOut:Ht,SetPublisherExt:qt,SetUserExt:Vt,SetSlotsExt:Kt,SetIdentities:Xt,SetDFPVideoKeyValueTargeting:Jt,SetOrtb2Request:jt,Passback:{RequestBids:Rn,RenderAd:kn},PubTag:{Adapters:{AMP:Yt,Prebid:rn},Context:{SetIdfs:Zt,GetIdfs:Qt},DirectBidding:{DirectBiddingEvent:Fe,DirectBiddingSlot:gt,DirectBiddingUrlBuilder:S,Size:E},RTA:{DefaultCrtgContentName:An,DefaultCrtgRtaCookieName:Pn}},events:null!=(si=null==(ai=window.Criteo)?void 0:ai.events)?si:[],passbackEvents:null!=(ci=null==(di=window.Criteo)?void 0:di.passbackEvents)?ci:[],usePrebidEvents:null==(ui=null==(li=window.Criteo)?void 0:li.usePrebidEvents)||ui})),window.Criteo.events=In(window.Criteo.events)}();