static.criteo.net Open in urlscan Pro
2a02:2638:3::3  Public Scan

URL: https://static.criteo.net/js/ld/publishertag.ids.js
Submission: On November 07 via api from IT — Scanned from FR

Form analysis 0 forms found in the DOM

Text Content

(()=>{(R=r=r||{})[R.Error=0]="Error",R[R.Warning=1]="Warning",R[R.Debug=2]="Debug";var r,L=["color: #fff;","background: #ff8f1c;","display: inline-block;","padding: 1px 4px;","border-radius: 3px;"].join(" "),d=(o.Log=function(e,t){var n;o.LOGLEVEL<e||(e=r[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",L,"".concat(e,": %O"),t)))},o.Debug=function(e){o.Log(r.Debug,e)},o.Warning=function(e){o.Log(r.Warning,e)},o.Error=function(e){o.Log(r.Error,e)},o.LOGLEVEL=r.Error,o);function o(){}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 o=null==(t=n.top)?void 0:t.location.href;if(o)return o}catch(e){}try{var r=n.location.ancestorOrigins;if(r)return r[r.length-1]}catch(e){}return n.document.referrer},e.inIframe=function(){try{return window.self!==window.top}catch(e){return!0}};var N=e;function e(){}function s(e){try{return JSON.parse(e)}catch(e){}}t.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},t.prototype.hasCallerFunctionInWindow=function(){return"function"==typeof this.currentWindow.__uspapi},t.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInWindow()||void 0!==this.getCMPFrame()},t.prototype.retrieveConsent=function(n){var o=this,r=!1,i=window.setTimeout(function(){r=!0,o.logger("Timeout: Unable to resolve CCPA consent after ".concat(o.timeout,"ms")),n(void 0)},this.timeout);this.executeCommand("getUSPData",1,function(e,t){r||(clearTimeout(i),t?(o.logger("CCPA consent retrieved"),o.processResponseData(e,n)):(o.logger("Error retrieving CCPA consent data from CMP"),n(void 0)))})},t.prototype.processResponseData=function(e,t){e?t(e):(this.logger("Unable to read CCPA consent data from CMP"),t(void 0))},t.prototype.executeCommand=function(e,t,n){var o,r=this;this.hasCallerFunctionInWindow()||(this.logger("No CCPA CMP defined on current frame"),o=this.getCMPFrame(),this.currentWindow.__uspapi=function(e,t,n){o?(t={__uspapiCall:{command:e,parameter:t,callId:e=Math.random().toString(10)}},r.uspapiCallbacks[e]=n,o.postMessage(t,"*")):(r.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?s(e.data):e.data;e&&e.__uspapiReturn&&e.__uspapiReturn.callId&&e.__uspapiReturn.returnValue&&(e=e.__uspapiReturn,r.uspapiCallbacks)&&r.uspapiCallbacks[e.callId]&&(r.uspapiCallbacks[e.callId](e.returnValue,e.success),delete r.uspapiCallbacks[e.callId])},!1)),this.currentWindow.__uspapi(e,t,n)},t.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)};var a=t;function t(e,t,n){void 0===n&&(n=function(e){}),this.uspapiCallbacks={},this.currentWindow=e,this.timeout=t.uspApiTimeout,this.logger=n}n.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},n.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)},n.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)},n.prototype.readyToRetrieve=function(){return this.tcfv2ConsentProvider.readyToRetrieve()||this.tcfv1ConsentProvider.readyToRetrieve()};var c=n;function n(e,t,n){void 0===n&&(n=function(e){}),this.tcfv1ConsentProvider=e,this.tcfv2ConsentProvider=t,this.logger=n}i.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},i.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__cmp},i.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},i.prototype.pingWithTimeout=function(o,e,t,n){function r(e,t){i.logger(t),clearTimeout(e),n()}var i=this;return window.setTimeout(function(){var n=window.setTimeout(function(){r(o,"Timeout: Unable to get ping return after ".concat(e,"ms"))},e);i.executeCommand("ping",null,function(e,t){clearTimeout(n),t?(i.logger("GDPR CMP ping returned"),!0!==e.cmpLoaded&&r(o,"GDPR ping returned cmpLoaded which is not true"),i.logger("GDPR ping returned cmpLoaded which is true")):r(o,"Error sending ping to GDPR CMP")})},t)},i.prototype.retrieveConsent=function(e){this.executeRetrieveConsent("getConsentData",null,e)},i.prototype.retrieveConsentForPassback=function(e){this.executeRetrieveConsent("getVendorConsents",[91],e)},i.prototype.executeRetrieveConsent=function(e,t,n){var o=this,r=!1,i=window.setTimeout(function(){r=!0,o.logger("Timeout: Unable to resolve GDPR consent after ".concat(o.timeout,"ms")),n(void 0)},this.timeout),s=!1!==this.cmpAutoDetect?this.pingWithTimeout(i,this.pingTimeout,this.pingDelay,function(){r=!0,o.logger("Timeout: Unable to ping GDPR API after ".concat(o.pingTimeout,"ms")),n(void 0)}):void 0;this.executeCommand(e,t,function(e,t){clearTimeout(s),r||(clearTimeout(i),t?(o.logger("GDPR consent retrieved"),o.processConsentData(e,n)):(o.logger("Error retrieving GDPR consent data from CMP"),n(void 0)))})},i.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))},i.prototype.executeCommand=function(e,t,n){var o,r=this;this.hasCallerFunctionInFrame()||(this.logger("No GDPR CMP defined on current frame"),o=this.getCMPFrame(),this.currentWindow.__cmp=function(e,t,n){o?(t={__cmpCall:{command:e,parameter:t,callId:e=Math.random().toString(10)}},r.cmpCallbacks[e]=n,o.postMessage(t,"*")):(r.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?s(e.data):e.data;e&&e.__cmpReturn&&e.__cmpReturn.callId&&e.__cmpReturn.returnValue&&(e=e.__cmpReturn,r.cmpCallbacks)&&r.cmpCallbacks[e.callId]&&(r.cmpCallbacks[e.callId](e.returnValue,e.success),delete r.cmpCallbacks[e.callId])},!1)),this.currentWindow.__cmp(e,t,n)};var W=i;function i(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}(R=u=u||{}).LOADED="tcloaded",R.UI_SHOWN="cmpuishown",R.USER_ACTION_COMPLETE="useractioncomplete",p.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},p.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__tcfapi},p.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},p.prototype.pingWithTimeout=function(n,e,t,o){function r(e,t){i.logger(t),clearTimeout(e),o()}var i=this;return window.setTimeout(function(){var t=window.setTimeout(function(){r(n,"Timeout: Unable to get TCFv2 ping return after ".concat(e,"ms"))},e);i.executeCommand("ping",2,function(e){clearTimeout(t),i.logger("TCFv2 CMP ping returned in ms"),"error"===e.cmpStatus?r(n,"Error status on ping to TCFv2 CMP"):!0!==e.cmpLoaded?r(n,"TCFv2 ping returned cmpLoaded = false"):i.logger("TCFv2 ping returned cmpLoaded = true")})},t)},p.prototype.retrieveConsent=function(n){var o,r,i=this,s=!1,a=window.setTimeout(function(){s=!0,r===u.UI_SHOWN?(i.logger("Timeout: User hasn't confirm their consent settings after ".concat(i.timeout,"ms")),n(o)):(i.logger("Timeout: Unable to resolve TCFv2 consent after ".concat(i.timeout,"ms")),n(void 0))},this.timeout),c=!1!==this.cmpAutoDetect?this.pingWithTimeout(a,this.pingTimeout,this.pingDelay,function(){s=!0,i.logger("Timeout: Unable to ping TCFv2 API after ".concat(i.pingTimeout,"ms")),n(void 0)}):void 0;this.executeCommand("addEventListener",2,function(e,t){clearTimeout(c),s||((r=e.eventStatus)!==u.UI_SHOWN&&clearTimeout(a),t?(i.logger("TCFv2 consent retrieved in ms"),e||(i.logger("Unable to read GDPR consent data from CMP"),n(void 0)),o=i.processResponseData(e),(!1===e.gdprApplies&&void 0===r||r===u.LOADED||r===u.USER_ACTION_COMPLETE)&&n(o)):(i.logger("Error retrieving TCFv2 consent data from CMP"),n(void 0)))})},p.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||2,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},p.prototype.executeCommand=function(e,t,n,o){var r,i=this;this.hasCallerFunctionInFrame()||(this.logger("No TCFv2 CMP defined on current frame"),r=this.getCMPFrame(),this.currentWindow.__tcfapi=function(e,t,n,o){r?(t={__tcfapiCall:{command:e,version:t,parameter:o,callId:e=Math.random().toString(10)}},i.cmpCallbacks[e]=n,r.postMessage(t,"*")):(i.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?s(e.data):e.data;e&&e.__tcfapiReturn&&e.__tcfapiReturn.callId&&e.__tcfapiReturn.returnValue&&(e=e.__tcfapiReturn,i.cmpCallbacks)&&i.cmpCallbacks[e.callId]&&"function"==typeof i.cmpCallbacks[e.callId]&&(i.cmpCallbacks[e.callId](e.returnValue,e.success),e.returnValue.eventStatus!==u.UI_SHOWN)&&delete i.cmpCallbacks[e.callId]},!1)),this.currentWindow.__tcfapi(e,t,n,o)};var u,H=p;function p(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}f.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},f.prototype.hasCallerFunctionInFrame=function(){return"function"==typeof this.currentWindow.__gpp},f.prototype.readyToRetrieve=function(){return this.hasCallerFunctionInFrame()||void 0!==this.getCMPFrame()},f.prototype.retrieveConsent=function(n){function o(e,t){r.logger(t),clearTimeout(e),i=!0,r.logger("Timeout: Unable to ping GPP after ".concat(r.pingTimeout,"ms")),n(void 0)}var r=this,i=!1,s=window.setTimeout(function(){i=!0,r.logger("Timeout: Unable to resolve GPP consent after ".concat(r.timeout,"ms")),n(void 0)},this.timeout);window.setTimeout(function(){var t=window.setTimeout(function(){o(s,"Timeout: Unable to get GPP ping return after ".concat(r.pingTimeout,"ms"))},r.pingTimeout);r.executeCommand("ping",function(e){clearTimeout(t),r.logger("GPP CMP ping has responsed"),"1.0"===e.gppVersion?(r.logger("Detected GPP CMP 1.0"),"error"===e.cmpStatus?o(s,"Error status on ping to GPP CMP"):"loaded"===e.cmpStatus?(r.logger("GPP ping returned cmpStatus = loaded"),r.executeCommand("getGPPData",function(e,t){i||(clearTimeout(s),t?(r.logger("GPP consent retrieved"),r.processResponseData(e,n)):(r.logger("Error retrieving GPP consent data from CMP"),n(void 0)))})):o(s,"GPP ping returned cmpStatus != loaded")):"1.1"===e.gppVersion?(r.logger("Detected GPP CMP 1.1"),"ready"===e.signalStatus?(clearTimeout(s),r.logger("GPP consent retrieved"),r.processResponseData(e,n)):r.executeCommand("addEventListener",function(e,t){i||"signalStatus"===e.eventName&&"ready"===e.pingData.signalStatus&&(clearTimeout(s),r.logger("GPP consent retrieved"),r.processResponseData(e.pingData,n))})):o(s,"Unknown GPP version "+e.gppVersion)})},this.pingDelay)},f.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))},f.prototype.executeCommand=function(e,t,n){var o,r=this;this.hasCallerFunctionInFrame()||(this.logger("No GPP CMP defined on current frame"),o=this.getCMPFrame(),this.currentWindow.__gpp=function(e,t,n){o?(n={__gppCall:{command:e,parameter:n,callId:e=Math.random().toString(10)}},r.cmpCallbacks[e]=t,o.postMessage(n,"*")):(r.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?s(e.data):e.data;e&&e.__gppReturn&&e.__gppReturn.callId&&e.__gppReturn.returnValue&&(e=e.__gppReturn,r.cmpCallbacks)&&r.cmpCallbacks[e.callId]&&"function"==typeof r.cmpCallbacks[e.callId]&&(r.cmpCallbacks[e.callId](e.returnValue,e.success),delete r.cmpCallbacks[e.callId])},!1)),this.currentWindow.__gpp(e,t,n)};var l=f;function f(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}h.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):(d.Debug("Purpose One not granted"),!1)}catch(e){return!1}},h.prototype.checkTcfPurposeOne=function(e){return!(e&&e.gdprConsent&&e.gdprConsent.purposes)||!0===e.gdprConsent.purposes[1]},h.prototype.removeItem=function(e){this.localStorageEnabled&&(this.localStorage.removeItem(e),this.localStorage.removeItem(e+this.EXPIRE_SUFFIX))},h.prototype.getItem=function(e,t){var n,o;return this.localStorageEnabled?(n=(new Date).getTime(),-1!==(o=(o=this.localStorage.getItem(e+this.EXPIRE_SUFFIX))?parseInt(o,10):-1)&&o<n||t&&(-1===o||t<o-n)?(this.removeItem(e),null):this.localStorage.getItem(e)):null},h.prototype.setItem=function(e,t,n){if(this.localStorageEnabled)try{var o;this.localStorage.setItem(e,t),n&&(o=(new Date).getTime()+n,this.localStorage.setItem(e+this.EXPIRE_SUFFIX,o.toString()))}catch(e){}},h.prototype.getAllItemsByPrefix=function(e){var t=[];if(this.localStorageEnabled)for(var n in localStorage)0===n.indexOf(e)&&t.push(n);return t};var x=h;function h(e,t){this.EXPIRE_SUFFIX="_expires",this.CHECK_STORAGE_KEY="criteo_localstorage_check",this.localStorage=(e=>{try{return e.localStorage}catch(e){}})(e||window),this.localStorageEnabled=this.checkLocalStorage(t)}g.prototype.checkTcfPurposeOne=function(e){return!(e&&null!=e&&e.gdprConsent&&e.gdprConsent.purposes)||!0===e.gdprConsent.purposes[1]},g.prototype.setCookie=function(e,t,n,o,r){void 0===r&&(r=!1);var i=o||document,s=i.location.hostname,a=new Date,c=(a.setTime(a.getTime()+60*n*60*1e3),"expires="+a.toUTCString());if(r)for(var u=s.split("."),p=1;p<u.length;++p){var l=u.slice(u.length-p-1,u.length).join(".");if(!(-1<this.publicTopTlds.indexOf(l)))try{this.setCookieString(e,t,c,l,i);var d=this.getCookie(e,o);if(d&&d===t)return l}catch(e){}}else this.setCookieString(e,t,c,void 0,i);return s},g.prototype.deleteCookie=function(e,t,n){this.setCookie(e,"",0,t,n=void 0===n?!1:n)},g.prototype.getCookie=function(e,t){if(this.cookiesEnabled)for(var n=0,o=(t||document).cookie.split(";");n<o.length;n++){var r=o[n],i=r.substr(0,r.indexOf("=")).replace(/^\s+|\s+$/g,""),r=r.substr(r.indexOf("=")+1);if(i===e)return decodeURIComponent(r)}},g.prototype.setCookieString=function(e,t,n,o,r){this.cookiesEnabled&&(e=e+"="+encodeURIComponent(t)+";"+n+";",o&&""!==o&&(e+="domain=."+o+";"),r.cookie=e+"path=/")};var G=g;function g(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)}m.prototype.initializeServices=function(){var n=this;this.initializing=!0,this.retrievePrivacyConsent(function(e){var t={localStorageHelper:new x(n.topFrame,e),privacies:e,ccpaConsentProvider:n.ccpaConsentProvider,gppConsentProvider:n.gppConsentProvider,cookieHelper:new G(e)};n.services=t,n.initialized=!0,n.initializing=!1,n.postInitiliazeServicesCallbacks.forEach(function(e){e(t)})})},m.prototype.getServicesAsync=function(e){this.initialized?e(this.services):(this.postInitiliazeServicesCallbacks.push(e),this.initializing||this.initializeServices())},m.prototype.retrievePrivacyConsent=function(t){var e=this.tcfCompatibleConsentProvider.readyToRetrieve(),n=this.ccpaConsentProvider.readyToRetrieve(),o=this.gppConsentProvider.readyToRetrieve(),r=(e||n||o||t(void 0),[]),i=(e&&r.push(c),n&&r.push(a),o&&r.push(l),{});e&&this.tcfCompatibleConsentProvider.retrieveConsent(function(e){i.gdprConsent=e,r.splice(r.indexOf(c),1),0===r.length&&t(i)}),n&&this.ccpaConsentProvider.retrieveConsent(function(e){i.ccpaIabConsent=e,r.splice(r.indexOf(a),1),0===r.length&&t(i)}),o&&this.gppConsentProvider.retrieveConsent(function(e){i.gppConsent=e,r.splice(r.indexOf(l),1),0===r.length&&t(i)})};var V=m;function m(e,t,n,o,r){this.initializing=!1,this.initialized=!1,this.postInitiliazeServicesCallbacks=[],this.topFrame=e||window;e=r;r={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},this.ccpaConsentProvider=t||new a(window,r,d.Warning),e=new W(window,r,d.Warning),t=new H(window,r,d.Warning);this.tcfCompatibleConsentProvider=n||new c(e,t,d.Warning),this.gppConsentProvider=o||new l(window,r,d.Warning),this.initializeServices()}function B(t,n){try{return decodeURIComponent(t)}catch(e){return void 0!==n?n:t}}var v,q=function(e,t){return(q=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 y(e,t){function n(){this.constructor=e}q(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}(R=v=v||{})[R.None=0]="None",R[R.Cookie=1]="Cookie",R[R.LocalStorage=2]="LocalStorage",R[R.Delegation=4]="Delegation",C.prototype.getLocalWebId=function(){return this.userDataHandlers.localWebId().fromAllStorages()},C.prototype.getOptOut=function(){return this.userDataHandlers.optOut().fromAllStorages()},C.prototype.getBundle=function(){return this.userDataHandlers.bundle().fromAllStorages()};var K=C;function C(e){this.userDataHandlers=e}function _(e,t){this.value=e,this.origin=t}_.fromUserIdentificationData=function(e){return new _(e.value,e.origin)},_.fromValue=function(e){return new _(e,v.None)},_.prototype.hasValue=function(){return""!==String(this.value)&&null!=this.value},y(w,j=_),w.prototype.hasValue=function(){return""!==String(this.value)&&null!=this.value},w.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))},w.prototype.toJSON=function(){return{value:this.value,origin:this.origin}};var j,z=w;function w(e,t,n,o,r){n=j.call(this,n,o)||this;return n.storageKey=e,n.expirationTimeHours=t,n.storageAdapter=r,n}E.prototype.localWebId=function(){return this.createGuid(E.LWID_COOKIE_NAME)},E.prototype.optOut=function(){return new Y(Boolean,E.OPTOUT_COOKIE_NAME,E.OPTOUT_RETENTION_TIME_HOUR,this.storageAdapter)},E.prototype.bundle=function(){return this.createGuid(E.BUNDLE_COOKIE_NAME)},E.prototype.createGuid=function(e){return new Y(String,e,E.GUID_RETENTION_TIME_HOUR,this.storageAdapter)},E.LWID_COOKIE_NAME="cto_lwid",E.OPTOUT_COOKIE_NAME="cto_optout",E.BUNDLE_COOKIE_NAME="cto_bundle",E.GUID_RETENTION_TIME_HOUR=9360,E.OPTOUT_RETENTION_TIME_HOUR=43200;var X=E;function E(e){this.storageAdapter=e}P.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)},P.prototype.fromValue=function(e){return this.create(e,v.None)},P.prototype.removeFromAllStorages=function(){this.storageAdapter.removeFromAllStorages(this.storageKey)},P.prototype.create=function(e,t){return new z(this.storageKey,this.expirationTimeHours,e,t,this.storageAdapter)};var Y=P;function P(e,t,n,o){this.type=e,this.storageKey=t,this.expirationTimeHours=n,this.storageAdapter=o}function T(e,t,n){this.criteoGlobalVendorListId=91,this.window=e,this.document=e.document,this.userDataHandlers=new X(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=[])}T.prototype.getSyncframeListener=function(n,o){var r=this;return function(e){var t;r.discardMessageFromOtherFrames(e)&&!r.window.criteo_syncframe_state.ForceSyncframeMessageHandling||(null==(t=e.data)?void 0:t.requestId)===n&&(e.stopImmediatePropagation(),r.handleSyncframeResponse(t,o),r.window.criteo_syncframe_state.firstSyncframeCompleted=!0,r.window.criteo_syncframe_state.syncframeRequested=!1,r.tryUnqueueAppendSyncframeRequests())}},T.prototype.userBundleHasAlreadyBeenRetrieved=function(){return this.userDataHandlers.bundle().fromAllStorages().hasValue()},T.prototype.canDropSyncframe=function(){return!this.window.criteo_syncframe_state.syncframeRequested},T.prototype.discardMessageFromOtherFrames=function(e){return!e.data||e.origin!=this.syncframeOrigin},T.prototype.appendGumIframeIfDoesNotExist=function(e,t,n){var o,r=this;!0===(null==(o=this.window.criteo_syncframe_state)?void 0:o.firstSyncframeCompleted)||this.userBundleHasAlreadyBeenRetrieved()||this.canDropSyncframe()?this.appendGumIframe(e,t,n):this.queueAppendSyncframeRequest(function(){return r.appendGumIframeIfDoesNotExist(e,t,n)})},T.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)))},T.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)},T.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])},T.prototype.queueAppendSyncframeRequest=function(e){void 0!==this.window.criteo_syncframe_state.appendSyncframeRequestQueue&&this.window.criteo_syncframe_state.appendSyncframeRequestQueue.push(e)},T.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()},T.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},o=[];return o.push("origin=".concat(e.origin)),o.push("topUrl=".concat(e.topUrl)),e.consent&&(void 0!==e.consent.gdprApplies&&o.push("gdpr=".concat(e.consent.gdprApplies?1:0)),void 0!==e.consent.consentData&&o.push("gdpr_consent=".concat(e.consent.consentData)),void 0!==e.consent.uspString&&o.push("us_privacy=".concat(e.consent.uspString)),void 0!==e.consent.gppString&&o.push("gpp=".concat(e.consent.gppString)),void 0!==e.consent.gppSectionIds)&&o.push("gpp_sid=".concat(e.consent.gppSectionIds)),e.isDebug&&o.push("debug=1"),t.src="".concat(this.syncframeEndpoint,"?").concat(o.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},y(S,J=T),S.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 o=0,r="string"==typeof e.callbacks?[e.callbacks]:e.callbacks;o<r.length;o++){var i=r[o],s=this.document.createElement("img");s.style.display="none",s.width=1,s.height=1,s.setAttribute("data-owner","criteo-tag"),s.src=i}else e.bundle&&this.userDataHandlers.bundle().fromValue(e.bundle).saveOnAllStorages();null!=t&&t.resolve&&t.resolve(e.bundle||"")}},S.prototype.appendGumIFrameOnCompletedDomIfItDoesNotExist=function(e,t){function n(){return o.appendGumIframeIfDoesNotExist(function(){return o.createSyncframeRequest(e(),r)},function(){},{resolve:t})}var o=this,r=Math.random().toString();this.adapter.isPubTagIds?n():this.doOnCompletedDom(n)},S.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}},S.prototype.fetchUserData=function(){return new K(this.userDataHandlers)},S.prototype.deleteUserData=function(){this.userDataHandlers.bundle().removeFromAllStorages()};var J,Q=S;function S(e,t,n){t=J.call(this,t,e.storageAdapter,(n=void 0===n?!1:n)?"gumi.criteo.com":"gum.criteo.com")||this;return t.adapter=e,t}b.prototype.synchronizeCriteoUid=function(e,t){var n=this,o=null==e?void 0:e.gdprConsent,r=null==e?void 0:e.gppConsent;this.syncframe.appendGumIFrameOnCompletedDomIfItDoesNotExist(function(){var e,t;return{topLevelDomain:n.getTld(),topUrl:encodeURIComponent((e=n.topUrl,(t=document.createElement("a")).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}).hostname),version:159,canWriteCookie:n.canWriteCookies,canWriteLocalStorage:n.localStorageHelper.localStorageEnabled,consent:{gdprApplies:null==o?void 0:o.gdprApplies,consentData:null==o?void 0:o.consentData||"",gdprVersion:null==o?void 0:o.version,vendorConsents:null==o?void 0:o.vendorConsents,gppString:null==r?void 0:r.gpp,gppSectionIds:null==(e=null==r?void 0:r.gppSid)?void 0:e.join(",")}}},t)},b.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},b.prototype.writeOnAllStorages=function(e,t,n){this.localStorageHelper.setItem(e,t),this.cookieHelper.setCookie(e,t,n,this.topDoc,!0)},b.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&&v.Cookie)|(e&&v.LocalStorage)}},b.prototype.deleteFromAllStorage=function(e){this.cookieHelper.deleteCookie(e,this.topDoc,!0),this.localStorageHelper.removeItem(e)},b.prototype.getTld=function(){var e=this.cookieHelper.setCookie(b.TLD_TEST_COOKIE_NAME,"test",1,this.topDoc,!0);return this.cookieHelper.deleteCookie(b.TLD_TEST_COOKIE_NAME,this.topDoc,!0),e},b.prototype.fetchUserData=function(){return this.syncframe.fetchUserData()},b.prototype.deleteUserData=function(){this.syncframe.deleteUserData()},b.TLD_TEST_COOKIE_NAME="cto_pub_test_tld";var $=b;function b(e,t,n,o,r,i,s){var a=this,e=(this.topDoc=n.document,this.cookieHelper=e,this.localStorageHelper=t,this.canWriteCookies=this.checkCookiesAreWriteable(),this.topUrl=r,!1);try{e=JSON.parse("false")}catch(e){}this.syncframe=null!=s?s:new Q({storageAdapter:{readFromAllStorages:function(e){e=a.getFromAllStorages(e);return{value:e.value,origin:e.origin}},writeToAllStorages:function(e,t,n){a.writeOnAllStorages(e,t,n)},removeFromAllStorages:function(e){a.deleteFromAllStorage(e)}},isPubTagIds:null!=i&&i,isDebug:o},n,e)}function Z(e){return e.top!==e&&!(e=>{var t;try{return null!=(t=e.top)&&t.location.toString(),1}catch(e){}})(e)}function ee(e){if(void 0===e&&(e=window),!Z(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 te(e){var t=ee();t||(t={},window.googletag=t),t.cmd=t.cmd||[],t.cmd.push(e)}oe.generateCacheBuster=function(){return Math.floor(99999999999*Math.random())};var I,ne=oe;function oe(){}(R=I=I||{})[R.Unspecified=0]="Unspecified",R[R.AMP=1]="AMP",D.prototype.buildUrl=function(e,t,n,o,r){void 0===n&&(n=I.Unspecified);var i=D.CRITEO_BIDDER_URL+this.getHandlerPath(e,t);return i+="?ptv=159",!0===t.isAdBlocked&&(i+="&abp=1"),i=this.appendCommonParameters(i,e,o,r),i=(i+=t.isOptOut?"&optout=1":"")+(t.bundle?"&bundle="+t.bundle:""),n!==I.Unspecified&&(i+="&im="+n),i=(i+="&cb="+String(ne.generateCacheBuster()))+t.getContextFlags()},D.prototype.buildErrorUrl=function(){return D.CRITEO_BIDDER_URL+D.CRITEO_ERROR_HANDLER},D.prototype.buildCsmEventsUrl=function(){return D.CRITEO_BIDDER_URL+D.CRITEO_CSM_EVENTS_HANDLER},D.prototype.buildCsmCountersUrl=function(){return D.CRITEO_BIDDER_URL+D.CRITEO_CSM_COUNTERS_HANDLER},D.prototype.appendCommonParameters=function(e,t,n,o){return e+="&profileId="+String(t),void 0!==n&&(e+="&av="+String(n)),void 0!==o&&(e+="&wv="+encodeURIComponent(o)),e},D.prototype.getHandlerPath=function(e,t){var n;if(this.auditMode)return D.CRITEO_BIDDER_AUDIT_HANDLER;if(334==e&&void 0!==t.slotsExt)for(var o in t.slotsExt){o=t.slotsExt[o];if(void 0!==(null==(n=null==o?void 0:o.data)?void 0:n.gtin))return D.CRITEO_COMMERCE_EXPERIENCE_3_HANDLER;if(void 0!==(null==(n=null==o?void 0:o.data)?void 0:n.keyword))return D.CRITEO_COMMERCE_EXPERIENCE_4_HANDLER}return D.CRITEO_BIDDER_HANDLER},D.CRITEO_BIDDER_URL="https://bidder.criteo.com/",D.CRITEO_BIDDER_HANDLER="cdb",D.CRITEO_COMMERCE_EXPERIENCE_3_HANDLER="experiences/2023-10/dynamic-buttons",D.CRITEO_COMMERCE_EXPERIENCE_4_HANDLER="experiences/2023-10/product-recommendation",D.CRITEO_CSM_EVENTS_HANDLER="csm/events",D.CRITEO_CSM_COUNTERS_HANDLER="csm/counters",D.CRITEO_ERROR_HANDLER="error",D.CRITEO_BIDDER_AUDIT_HANDLER="prebid/audit";var re=D;function D(e){this.auditMode=e=void 0===e?!1:e}ie.prototype.sendEventsToBeacon=function(e,t){navigator.sendBeacon&&e&&navigator.sendBeacon(t,JSON.stringify(e))};var R=ie;function ie(){this.urlBuilder=new re}O.CreateRunning=function(){var e=new O;return e.start(),e},O.CreateWithStartTime=function(e){var t=new O(!1);return t.startTime=e,t},O.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},O.prototype.start=function(){this.startTime=this.now()},O.prototype.elapsed=function(){return this.now()-this.startTime};var A=O;function O(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()}}y(M,se=R),M.prototype.sendSetTagLoadedTime=function(){this.sendEvents({eventId:"TagLoaded",elapsed:A.TimeSincePageLoad()})},M.prototype.sendSetEspPromiseTime=function(){this.sendEvents({eventId:"SetEspPromise",elapsed:A.TimeSincePageLoad()})},M.prototype.sendReturnEspPromiseToGptTime=function(){this.sendEvents({eventId:"ReturnEspPromiseToGpt",elapsed:A.TimeSincePageLoad()})},M.prototype.sendResolveEspPromiseTime=function(){this.sendEvents({eventId:"ResolveEspPromise",elapsed:A.TimeSincePageLoad()})},M.prototype.sendEvents=function(e){e={events:[e],domain:this.topFrame.location.hostname,requestId:this.requestId};this.isEligibleForCsmEvents&&this.sendEventsToBeacon(e,this.urlBuilder.buildCsmEventsUrl())};var se,ae=M;function M(e,t){var n=se.call(this)||this;return n.topFrame=e,n.isEligibleForCsmEvents=t,n.requestId=crypto.randomUUID(),n}function k(e,a,t,n){void 0===e&&(e=null==(o=window.Criteo_identitytag_159||window.Criteo)?void 0:o.config),void 0===n&&(n=(new Date).getUTCMilliseconds()),this.sessionRandomId=n;var c=N.getHighestAccessibleWindow(window),u=N.getHighestAccessibleUrl(c),p=new ae(c.topFrame,this.isEligibleForCsmEvents());p.sendSetTagLoadedTime();var o,l="1"===(e=>{var t={};if(1<(e=e.split("?")).length)for(var n=0,o=e[1].split("&");n<o.length;n++){var r=o[n].split("=");t[B(r[0])]=B(r[1])}return t})(u).pbt_debug||!1;l&&(o=r.Debug,d.LOGLEVEL=o),(t||new V(c.topFrame,void 0,void 0,void 0,e)).getServicesAsync(function(e){var t,n,o,r,i,s;(null==(t=e.ccpaConsentProvider)?void 0:t.hasUserOptOut(null==(t=e.privacies)?void 0:t.ccpaIabConsent))||(t=(null==a?void 0:a())||new $(e.cookieHelper,e.localStorageHelper,c.topFrame,l,u,!0),(n=t.fetchUserData().getBundle()).hasValue()&&""!==n.value&&(o=new Promise(function(e,t){e(n.value),d.Debug("Resolving GPT ESP Promise"),p.sendResolveEspPromiseTime()}),r=o,i=function(){p.sendReturnEspPromiseToGptTime()},s=function(){p.sendSetEspPromiseTime()},te(function(){var e=ee();e.encryptedSignalProviders||(e.encryptedSignalProviders=[]),d.Debug("Promise set for GPT ESP"),e.encryptedSignalProviders.push({id:"esp.criteo.com",collectorFunction:function(){return d.Debug("Returning Promise to GPT"),i(),r}}),s()})),t.synchronizeCriteoUid(e.privacies))}),d.Debug("Publisher Tag loaded")}k.prototype.isEligibleForCsmEvents=function(){return this.sessionRandomId%100==0},k.VERSION=159,R=k;var ce,ue="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},pe=(F={exports:{}},ce=function(){function c(e){return"function"==typeof e}var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},o=0,t=void 0,r=void 0,s=function(e,t){l[o]=e,l[o+1]=t,2===(o+=2)&&(r?r(d):L())};var e="undefined"!=typeof window?window:void 0,i=e||{},i=i.MutationObserver||i.WebKitMutationObserver,a="undefined"==typeof self&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process),u="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function p(){var e=setTimeout;return function(){return e(d,1)}}var l=new Array(1e3);function d(){for(var e=0;e<o;e+=2)(0,l[e])(l[e+1]),l[e]=void 0,l[e+1]=void 0;o=0}function f(){try{var e=Function("return this")().require("vertx");return void 0!==(t=e.runOnLoop||e.runOnContext)?function(){t(d)}:p()}catch(e){return p()}}var h,g,m,L=void 0;function v(e,t){var n,o=this,r=new this.constructor(_),i=(void 0===r[C]&&M(r),o._state);return i?(n=arguments[i-1],s(function(){return A(i,r,n,o._result)})):D(o,r,e,t),r}function y(e){var t;return e&&"object"==typeof e&&e.constructor===this?e:(S(t=new this(_),e),t)}var L=a?function(){return process.nextTick(d)}:i?(g=0,a=new i(d),m=document.createTextNode(""),a.observe(m,{characterData:!0}),function(){m.data=g=++g%2}):u?((h=new MessageChannel).port1.onmessage=d,function(){return h.port2.postMessage(0)}):(void 0===e?f:p)(),C=Math.random().toString(36).substring(2);function _(){}var w=void 0,E=1,P=2;function N(e,o,r){s(function(t){var n=!1,e=((e,t,n,o)=>{try{e.call(t,n,o)}catch(e){return e}})(r,o,function(e){n||(n=!0,(o!==e?S:b)(t,e))},function(e){n||(n=!0,I(t,e))},t._label);!n&&e&&(n=!0,I(t,e))},e)}function T(e,t,n){var o,r;t.constructor===e.constructor&&n===v&&t.constructor.resolve===y?(o=e,(r=t)._state===E?b(o,r._result):r._state===P?I(o,r._result):D(r,void 0,function(e){return S(o,e)},function(e){return I(o,e)})):void 0!==n&&c(n)?N(e,t,n):b(e,t)}function S(t,e){if(t===e)I(t,new TypeError("You cannot resolve a promise with itself"));else if(n=typeof e,null===e||"object"!=n&&"function"!=n)b(t,e);else{n=void 0;try{n=e.then}catch(e){return void I(t,e)}T(t,e,n)}var n}function W(e){e._onerror&&e._onerror(e._result),R(e)}function b(e,t){e._state===w&&(e._result=t,e._state=E,0!==e._subscribers.length)&&s(R,e)}function I(e,t){e._state===w&&(e._state=P,e._result=t,s(W,e))}function D(e,t,n,o){var r=e._subscribers,i=r.length;e._onerror=null,r[i]=t,r[i+E]=n,r[i+P]=o,0===i&&e._state&&s(R,e)}function R(e){var t=e._subscribers,n=e._state;if(0!==t.length){for(var o,r=void 0,i=e._result,s=0;s<t.length;s+=3)o=t[s],r=t[s+n],o?A(n,o,r,i):r(i);e._subscribers.length=0}}function A(e,t,n,o){var r=c(n),i=void 0,s=void 0,a=!0;if(r){try{i=n(o)}catch(e){a=!1,s=e}if(t===i)return void I(t,new TypeError("A promises callback cannot return that same promise."))}else i=o;t._state===w&&(r&&a?S(t,i):!1===a?I(t,s):e===E?b(t,i):e===P&&I(t,i))}var O=0;function M(e){e[C]=O++,e._state=void 0,e._result=void 0,e._subscribers=[]}k.prototype._enumerate=function(e){for(var t=0;this._state===w&&t<e.length;t++)this._eachEntry(e[t],t)},k.prototype._eachEntry=function(t,e){var n=this._instanceConstructor,o=n.resolve;if(o===y){var r,i=void 0,s=void 0,a=!1;try{i=t.then}catch(e){a=!0,s=e}i===v&&t._state!==w?this._settledAt(t._state,e,t._result):"function"!=typeof i?(this._remaining--,this._result[e]=t):n===F?(r=new n(_),a?I(r,s):T(r,t,i),this._willSettleAt(r,e)):this._willSettleAt(new n(function(e){return e(t)}),e)}else this._willSettleAt(o(t),e)},k.prototype._settledAt=function(e,t,n){var o=this.promise;o._state===w&&(this._remaining--,e===P?I(o,n):this._result[t]=n),0===this._remaining&&b(o,this._result)},k.prototype._willSettleAt=function(e,t){var n=this;D(e,void 0,function(e){return n._settledAt(E,t,e)},function(e){return n._settledAt(P,t,e)})};var H=k;function k(e,t){this._instanceConstructor=e,this.promise=new e(_),this.promise[C]||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)||b(this.promise,this._result)):I(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 c(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 F=U;function U(e){if(this[C]=O++,this._result=this._state=void 0,this._subscribers=[],_!==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){S(t,e)},function(e){I(t,e)})}catch(e){I(t,e)}}}return F.prototype.then=v,F.all=function(e){return new H(this,e).promise},F.race=function(r){var i=this;return n(r)?new i(function(e,t){for(var n=r.length,o=0;o<n;o++)i.resolve(r[o]).then(e,t)}):new i(function(e,t){return t(new TypeError("You must pass an array to race."))})},F.resolve=y,F.reject=function(e){var t=new this(_);return I(t,e),t},F._setScheduler=function(e){r=e},F._setAsap=function(e){s=e},F._asap=s,F.polyfill=function(){var e=void 0;if(void 0!==ue)e=ue;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=F},F.Promise=F},F.exports=ce(),F.exports.polyfill),F=(U.LoadPolyfills=function(){U.DefineIsArray(),U.DefineIndexOf(),U.DefineFilter(),U.DefinePromise()},U.DefinePromise=function(){window.Promise||pe()},U.DefineIsArray=function(){Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)})},U.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 o=Math.max(0<=t?t:n-Math.abs(t),0);o<n;){if(o in this&&this[o]===e)return o;o++}return-1})},U.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,o=[],r=2<=arguments.length?arguments[1]:void 0,i=0;i<t;i++)i in this&&(n=this[i],e.call(r,n,i,this))&&o.push(n);return o})},U);function U(){}window.criteo_pubtag||(F.LoadPolyfills(),window.criteo_pubtag=new R,window.criteo_identitytag_159=window.criteo_pubtag),window.Criteo=window.Criteo||{},window.Criteo_identitytag_159=window.Criteo})();