(()=>{"use strict";var e={865:(e,t)=>{var n,r;t.__esModule=!0,t.LOG_TYPES=t.CONTENT_TYPE=t.Zone=t.GDPR_PURPOSE_CONSENTS=t.HAS_CONSENT_EVENT=t.VERSION=void 0,t.VERSION="2.0.5",t.HAS_CONSENT_EVENT="has_concent_event",t.GDPR_PURPOSE_CONSENTS=[1,3,4],(r=t.Zone||(t.Zone={})).Default="all",r.EuZone1="euZone1",r.EuZone2="euZone2",(t.CONTENT_TYPE||(t.CONTENT_TYPE={})).Product="product",(n=t.LOG_TYPES||(t.LOG_TYPES={})).Log="log",n.Warning="warning",n.Info="info",n.Error="error"},323:(e,t,n)=>{t.__esModule=!0;var r=n(865);t.default={zone:r.Zone.EuZone1}},778:(e,t)=>{t.__esModule=!0,t.SEND_BEACON_SUPPORT=t.VERSION_NAME=t.API_NAME=t.GDPR_CALL_ID=t.GDPR_VENDOR_NAME=t.GDPR_VENDOR_ID=t.DOMAIN_URL_PARAMETER_NAME=t.NO_CLICK_ID_COOKIE_NAME=t.VARIATIONS_COOKIE_NAME=t.CLICK_ID_COOKIE_NAME=t.CLICK_ID_URL_PARAM=t.CLICK_ID_PIXEL_URL_PARAM=t.PAGE_VIEW_NAME=t.BASE_URL=void 0,t.BASE_URL="//tr.outbrain.com",t.PAGE_VIEW_NAME="PAGE_VIEW",t.CLICK_ID_PIXEL_URL_PARAM="ob_click_id",t.CLICK_ID_URL_PARAM="dicbo",t.CLICK_ID_COOKIE_NAME="dicbo_id",t.VARIATIONS_COOKIE_NAME="variations",t.NO_CLICK_ID_COOKIE_NAME="dicbo_fetch",t.DOMAIN_URL_PARAMETER_NAME="ob_cvr_pixel_domain",t.GDPR_VENDOR_ID=164,t.GDPR_VENDOR_NAME="Outbrain",t.GDPR_CALL_ID="obamplify",t.API_NAME="obApi",t.VERSION_NAME="obtp",t.SEND_BEACON_SUPPORT=!0},368:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n-1&&delete n[o];return n},t.removeEmptyProperties=function(e){var t=r({},e);for(var n in t)null!==t[n]&&void 0!==t[n]&&""!==t[n]||delete t[n];return t},t.isArray=i,t.getQueryParamsString=function(e){return Object.keys(e).map((function(t){return"".concat(t,"=").concat(encodeURIComponent(e[t]))})).join("&")},t.dummyFunc=function(){},t.decorate=function(e,t,n){var r=e[t];e[t]=function(){var e=r.apply(this,arguments);return n.apply(this,arguments),e}},t.logger=function(e,n,r){(window.postMessage||t.dummyFunc)({action:"log",type:e,message:n,name:r},"*")},t.runQ=function(){for(var e=!1;apiObj.queue.length;){var t=apiObj.queue.shift();if(t[1]===o.PAGE_VIEW_NAME&&!t[2]){if(e)continue;e=!0}apiObj.dispatch.apply(apiObj,t)}},t.transformMarketerIdToArray=function(e){if(e)return"string"==typeof e?e.replace(" ","").split(","):i(e)?e:void 0},t.transformMarketerIdToString=function(e){return"string"==typeof e?e:i(e)?e.join(","):void 0}},894:function(e,t){var n=this&&this.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{t.__esModule=!0,t.customDispatch=void 0,t.customDispatch=function(e,t){t(e.toString())}},81:(e,t,n)=>{t.T=void 0;var r=n(261),o=n(859),i=n(368),a=n(894),s=n(599),c=n(323),d=n(784),p=n(269),u=n(388);t.T=window.__$$OBGeoZone||c.default.zone;try{window.apiObj=new r.ApiService(window).apiObj,window.apiObj.setZone(t.T),(0,p.handleExperiments)(window.apiObj),new o.HistoryObserverService,(0,i.runQ)(),new s.KickstartService(u.eventBusService).getCachedClickId(),(0,d.loadWaves)()}catch(e){(0,a.logError)(e,window.apiObj)}},994:(e,t)=>{t.__esModule=!0,t.gdprCcpaValidator=t.GDPRCcpaValidator=void 0;var n=function(){function e(){}return e.prototype.hasConsent=function(){return window.__uspapi&&"function"==typeof window.__uspapi},e.prototype.handleConsent=function(e){window.__uspapi("getUSPData",1,(function(t,n){t.uspString?n&&"1YYN"!==t.uspString.toUpperCase()&&"1NYN"!==t.uspString.toUpperCase()?e(!0):e(!1):e(!0)}))},e}();t.GDPRCcpaValidator=n,t.gdprCcpaValidator=new n},166:(e,t)=>{t.__esModule=!0,t.gdprCookiebotValidatorService=t.GDPRCookiebotValidatorService=void 0;var n=function(){function e(){this.boundOnAccept=!1}return e.prototype.hasConsent=function(){return!!window.Cookiebot},e.prototype.handleConsent=function(e){var t;this.cb=e;var n=window.Cookiebot;this.boundOnAccept||this.bindOnAccept(),this.cb(null===(t=n.consent)||void 0===t?void 0:t.marketing)},e.prototype.bindOnAccept=function(){window.addEventListener("CookiebotOnAccept",this.cb.bind(this,!0),!1),this.boundOnAccept=!0},e}();t.GDPRCookiebotValidatorService=n,t.gdprCookiebotValidatorService=new n},987:(e,t)=>{t.__esModule=!0,t.gdprDidomiValidatorService=t.GDPRDidomiValidatorService=void 0;var n=function(){function e(){}return e.prototype.hasConsent=function(){return!!window.didomiState},e.prototype.handleConsent=function(e){this.cb=e;var t=window.didomiState;this.cb(t.didomiPurposesConsent.indexOf("cookies")>-1&&t.didomiPurposesConsent.indexOf("measure_ad_performance")>-1)},e}();t.GDPRDidomiValidatorService=n,t.gdprDidomiValidatorService=new n},17:(e,t)=>{t.__esModule=!0,t.gdprGppValidatorService=t.GDPRGppValidatorService=void 0;var n=function(){function e(){}return e.prototype.hasConsent=function(){return!!window.__gpp},e.prototype.handleConsent=function(e){var t=this;this.cb=e,window.__gpp("addEventListener",(function(n){"signalStatus"===n.eventName&&"ready"===n.data&&(n.pingData.gppString.indexOf("6")>-1?e(!0):t.getSectionDefaultZone(e,"uspv1")||e(!1))}))},e.prototype.getSectionDefaultZone=function(e,t){return window.__gpp("getSection",(function(t){if(t){var n=t[0].Vendor.Consent.Purpose.Consent[1];e(!!n)}}),t)},e}();t.GDPRGppValidatorService=n,t.gdprGppValidatorService=new n},587:(e,t)=>{t.__esModule=!0,t.gdprGTMValidatorService=t.GDPRGTMValidatorService=void 0;var n=function(){function e(){}return e.prototype.hasConsent=function(){return!!document.querySelector('script[src*="googletagmanager.com/gtm.js"]')},e.prototype.handleConsent=function(e){e(!0)},e}();t.GDPRGTMValidatorService=n,t.gdprGTMValidatorService=new n},618:(e,t)=>{t.__esModule=!0,t.gdprOneTrustValidatorService=t.GDPROneTrustValidatorService=void 0;var n=function(){function e(){}return e.prototype.hasConsent=function(){return void 0!==window.OnetrustActiveGroups},e.prototype.handleConsent=function(e){this.cb=e;var t=window.OnetrustActiveGroups.toUpperCase();this.cb(t.indexOf("4")>-1)},e}();t.GDPROneTrustValidatorService=n,t.gdprOneTrustValidatorService=new n},471:(e,t,n)=>{t.__esModule=!0,t.gdprTcf1ValidatorService=t.GDPRTcf1ValidatorService=void 0;var r=n(778),o=function(){function e(){}return e.prototype.hasConsent=function(){return!!window.__cmp||!!this.getCmpFrame()},e.prototype.handleConsent=function(e){this.cb=e,this.callCmp(this.callback)},e.prototype.getCmpFrame=function(){var e=window;try{for(;e&&!e.frames.__cmpLocator;){if(e===window.top)return;e=e.parent}return e}catch(e){}},e.prototype.callback=function(){window.removeEventListener?window.removeEventListener("message",this.postMsgCB.bind(this),!1):window.detachEvent&&window.detachEvent("message",this.postMsgCB.bind(this),!1),this.cb.apply(this.cb,arguments)},e.prototype.postMsgCB=function(e){var t;try{t=e&&"string"==typeof e.data?JSON.parse(e.data):e.data}catch(e){this.callback.apply(this.callback,[!0])}t&&t.__cmpReturn&&this.onCmpCB(this.callback,t.__cmpReturn.returnValue,t.__cmpReturn.success)},e.prototype.callCmp=function(e){if("function"==typeof window.__cmp){var t=this;window.__cmp("getVendorConsents",[r.GDPR_VENDOR_ID],(function(n,r){t.onCmpCB(e.bind(t),n,r)}))}else{var n=this.getCmpFrame();if(window.addEventListener?window.addEventListener("message",this.postMsgCB,!1):window.attachEvent&&window.attachEvent("message",this.postMsgCB,!1),!n)return void this.callback.apply(this.callback,[{msg:"CMP not found"},!1]);var o={__cmpCall:{command:"getVendorConsents",parameter:[r.GDPR_VENDOR_ID],callId:r.GDPR_CALL_ID}};n.postMessage(o,"*")}},e.prototype.hasPurposeConsent=function(e){if(!e)return!0;var t=!0;for(var n in e)if(e.hasOwnProperty(n)&&(t=!1,e[n]))return!0;return t},e.prototype.onCmpCB=function(e,t,n){if((!n||!t||!t.vendorConsents||void 0===t.vendorConsents[r.GDPR_VENDOR_ID]||!0===t.vendorConsents[r.GDPR_VENDOR_ID])&&this.hasPurposeConsent(t.purposeConsents))return e(!0);e(!1)},e}();t.GDPRTcf1ValidatorService=o,t.gdprTcf1ValidatorService=new o},677:(e,t,n)=>{t.__esModule=!0,t.gdprTcf2ValidatorService=t.GDPRTcf2ValidatorService=void 0;var r=n(778),o=n(865),i=function(){function e(){this.tcfApiEventListeners=[]}return e.prototype.hasConsent=function(){return!!window.__tcfapi||!!this.getTCF2Window()},e.prototype.handleConsent=function(e){if(this.cb=e,window.__tcfapi){var t=this.onTCFChanges.bind(this);this.tcfApiEventListeners.push(t),window.__tcfapi("addEventListener",2,t),window.__tcfapi("getTCData",2,this.onTCFChanges.bind(this),[r.GDPR_VENDOR_ID])}else{var n=this.getTCF2Window();window.addEventListener?window.addEventListener("message",this.postMsgCB.bind(this),!1):window.attachEvent&&window.attachEvent("message",this.postMsgCB.bind(this),!1);var o={__tcfapiCall:{command:"getTCData",parameter:[r.GDPR_VENDOR_ID],version:2,callId:r.GDPR_CALL_ID}};n.postMessage(o,"*")}},e.prototype.hasPurposeConsent=function(e){if(!(null==e?void 0:e.consents))return!0;var t=e.consents,n=o.GDPR_PURPOSE_CONSENTS,r=!0;return n.forEach((function(e){t.hasOwnProperty(e)&&!1===t[e]&&(r=!1)})),r},e.prototype.postMsgCB=function(e){e.data.__tcfapiReturn&&e.data.__tcfapiReturn.callId===r.GDPR_CALL_ID&&this.onTCFCB(e.data.__tcfapiReturn.returnValue,!0)},e.prototype.onTCFCB=function(e,t){t&&"tcloaded"===e.eventStatus?(e&&e.vendor&&e.vendor.consents&&!1===e.vendor.consents[r.GDPR_VENDOR_ID]||!e||!this.hasPurposeConsent(e.purpose)?this.cb(!1):this.cb(!0),this.removeTcfApiEventListeners()):this.cb(!0)},e.prototype.removeTcfApiEventListeners=function(){window.__tcfapi&&this.tcfApiEventListeners.forEach((function(e){window.__tcfapi("removeEventListener",2,e)}))},e.prototype.onTCFChanges=function(e,t){this.onTCFCB(e,t)},e.prototype.getTCF2Window=function(){var e=window;try{for(;e&&!e.frames.__tcfapiLocator;){if(e===window.top)return;e=e.parent}return e}catch(e){}},e}();t.GDPRTcf2ValidatorService=i,t.gdprTcf2ValidatorService=new i},583:(e,t,n)=>{t.__esModule=!0,t.gdprUserCentricValidatorService=t.GDPRUserCentricValidatorService=void 0;var r=n(778),o=function(){function e(){}return e.prototype.hasConsent=function(){return!!window.UC_UI},e.prototype.handleConsent=function(e){this.cb=e;var t,n,o=window.UC_UI;this.cb(o.areAllConsentsAccepted()||!!(null===(n=null===(t=o.getServicesBaseInfo().find((function(e){return e.name===r.GDPR_VENDOR_NAME})))||void 0===t?void 0:t.consent)||void 0===n?void 0:n.status))},e}();t.GDPRUserCentricValidatorService=o,t.gdprUserCentricValidatorService=new o},895:(e,t,n)=>{t.__esModule=!0,t.gdprValidatorService=t.GDPRValidatorService=void 0;var r=n(583),o=n(166),i=n(987),a=n(618),s=n(587),c=n(471),d=n(677),p=n(994),u=n(17),l=function(){function e(){this.consentHandlerType=void 0}return e.prototype.checkHasConsent=function(e){var t=!0,n=this.clearAndCallback.bind(this,e);try{this.timeout=setTimeout((function(){e(t)}),500),d.gdprTcf2ValidatorService.hasConsent()?(this.consentHandlerType="tcf",d.gdprTcf2ValidatorService.handleConsent(n)):c.gdprTcf1ValidatorService.hasConsent()?(this.consentHandlerType="cmp",c.gdprTcf1ValidatorService.handleConsent(n)):r.gdprUserCentricValidatorService.hasConsent()?(this.consentHandlerType="uc",r.gdprUserCentricValidatorService.handleConsent(n)):o.gdprCookiebotValidatorService.hasConsent()?(this.consentHandlerType="cb",o.gdprCookiebotValidatorService.handleConsent(n)):i.gdprDidomiValidatorService.hasConsent()?(this.consentHandlerType="di",i.gdprDidomiValidatorService.handleConsent(n)):a.gdprOneTrustValidatorService.hasConsent()?(this.consentHandlerType="ot",a.gdprOneTrustValidatorService.handleConsent(n)):p.gdprCcpaValidator.hasConsent()?(this.consentHandlerType="ccpa",p.gdprCcpaValidator.handleConsent(n)):u.gdprGppValidatorService.hasConsent()?(this.consentHandlerType="gpp",u.gdprGppValidatorService.handleConsent(n)):s.gdprGTMValidatorService.hasConsent()?(this.consentHandlerType="gtm",s.gdprGTMValidatorService.handleConsent(n)):n(t)}catch(n){throw this.clearAndCallback(e,t),n}},e.prototype.clearAndCallback=function(e,t){clearTimeout(this.timeout),e(t,this.consentHandlerType)},e}();t.GDPRValidatorService=l,t.gdprValidatorService=new l},261:(e,t,n)=>{t.__esModule=!0,t.ApiService=void 0;var r=n(368),o=n(865),i=n(896),a=n(778);t.ApiService=function(e){var t=window[a.API_NAME],n=function(){for(var e=[],t=0;t{t.__esModule=!0,t.cookiesService=t.CookiesService=void 0;var r=n(388),o=n(865),i=n(778),a=function(){function e(e){this.cookiesToProcess=[];var t=this;e.on(o.HAS_CONSENT_EVENT,(function(e){if(t.hasConsent=e,t.hasConsent)for(;t.cookiesToProcess.length;){var n=t.cookiesToProcess.pop();t.set(n.name,n.value,n.expirationInDays,n.domain)}}))}return e.prototype.set=function(e,t,n,r){if(void 0===n&&(n=7),this.hasConsent){var o=this.getAllCookies();o[e]=t;var a=new Date;a.setTime(a.getTime()+24*n*60*60*1e3);var s="expires="+a.toUTCString(),c="".concat(i.CLICK_ID_COOKIE_NAME,"=")+encodeURIComponent(JSON.stringify(o))+"; "+s+"; path=/;";r&&(c+="domain="+r+";"),document.cookie=c}else this.cookiesToProcess.push({name:e,value:t,expirationInDays:n,domain:r})},e.prototype.get=function(e){return this.getAllCookies()[e]||""},e.prototype.getAllCookies=function(){var e,t;if(!document.cookie)return{};var n,r=null===(t=document.cookie.split("; ").find((function(e){return e.startsWith("dicbo_id=")})))||void 0===t?void 0:t.split("=")[1];if(!r)return{};try{n=JSON.parse(decodeURIComponent(r))}catch(t){(e={})[i.CLICK_ID_COOKIE_NAME]=r,n=e}return n},e}();t.CookiesService=a,t.cookiesService=new a(r.eventBusService)},896:function(e,t,n){var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0;)t.fire(t.pixelsWaitingForConsent.shift(),t.hasConsent)}))}},e.prototype.fire=function(e,t){var n,i=r({optOut:!t,bust:(0,o.getRandomInt)(),referrer:document.referrer},e.cht&&{cht:e.cht}),a=this.getClickIdCookieCached(),s=r(r(r({},i),(0,v.getCustomPixelQueryParams)(e)),a&&((n={})[l.CLICK_ID_PIXEL_URL_PARAM]=a,n)),c=e.marketerId;if(h.SEND_BEACON_SUPPORT&&_.featureFlagService.isTest(c,100))navigator.sendBeacon((0,v.getBasePixelUrl)(e)+"?"+(0,o.getQueryParamsString)(s));else{var d=new Image;d.referrerPolicy="no-referrer-when-downgrade",d.src=(0,v.getBasePixelUrl)(e)+"?"+(0,o.getQueryParamsString)(s)}},e.prototype.dispatch=function(e,t){var n=this;if(!t)throw new Error("Can't dispatch pixel, event name is missing");var r=arguments[2],o=this.getUniqueMarketers(apiObj.marketerId);(0,f.customDispatch)(o,(function(o){n.unifiedDispatch(e,t,o,r)}))},e.prototype.unifiedDispatch=function(e,t,n,r){var s=this.getRequestParams(t,n,r);"track"===e?(i.validatorService.validate(s),this.firePixel(s)):(0,o.logger)(a.LOG_TYPES.Error,"Command type ".concat(e," is not recognized."),t)},e.prototype.getRequestParams=function(e,t,n){var o,i=(0,C.getUniqueVariations)(),a=r(r({},n),((o={marketerId:t,name:e,dl:s.urlService.getLocation(),g:this.hasGtm()?1:0})["".concat(h.API_NAME,"Version")]=apiObj.version?apiObj.version:"-1",o["".concat(h.VERSION_NAME,"Version")]=apiObj["".concat(h.VERSION_NAME,"Version")],o));return i.length&&Object.assign(a,{variationId:i.join(",")}),Object.keys(a).forEach((function(e){return void 0===a[e]&&delete a[e]})),a},e.prototype.getUniqueMarketersNew=function(e){return e.filter((function(e,t,n){return n.indexOf(e)===t}))},e.prototype.getUniqueMarketers=function(e){for(var t=[],n={},r=0;r-1)){e.variations.push(t);var n=o.cookiesService.get("variations"),i=n?n.split(",").map((function(e){return parseInt(e)})):[];i.indexOf(t)>-1||o.cookiesService.set("variations","".concat(r(r([],i,!0),[t],!1)))}}},t.getUniqueVariations=function(){var e=apiObj.variations||[],t=o.cookiesService.get("variations");return t&&t.split(",").forEach((function(t){var n=parseInt(t);isNaN(n)||-1!==e.indexOf(n)||e.push(n)})),e}},821:(e,t)=>{t.__esModule=!0,t.featureFlagService=t.FeatureFlagService=void 0;var n=function(){function e(){}return e.prototype.isTest=function(e,t){return e.split("").reduce((function(e,t){return e+t.charCodeAt(0)}),0)%100{t.__esModule=!0,t.HistoryObserverService=void 0;var r=n(368),o=n(778);t.HistoryObserverService=function(){if(history.pushState&&history.replaceState&&window.addEventListener){var e=this,t=function(t){location.href!==e.lastVisited&&t&&(e.lastVisited=location.href,apiObj("track",o.PAGE_VIEW_NAME))};(0,r.decorate)(history,"pushState",t),(0,r.decorate)(history,"replaceState",t),window.addEventListener("popstate",t,!1)}}},599:(e,t,n)=>{t.__esModule=!0,t.KickstartService=void 0;var r=n(368),o=n(63),i=n(3),a=n(778),s=n(865),c=n(895),d=function(){function e(e){this.eventBusService=e}return e.prototype.getCachedClickId=function(){var e,t,n,d;if(!o.cookiesService.get(a.CLICK_ID_COOKIE_NAME)&&(d=parseInt(o.cookiesService.get(a.NO_CLICK_ID_COOKIE_NAME)),isNaN(d)||Date.now()-d>3e5)&&!i.urlService.getParamFromUrl(a.CLICK_ID_URL_PARAM)){var p=this;apiObj.setCachedClickId=(n=function(){o.cookiesService.set(a.NO_CLICK_ID_COOKIE_NAME,Date.now(),5/1440)},e=document.createElement("script"),t=(0,r.transformMarketerIdToString)(window.apiObj.marketerId),e.src=a.BASE_URL+"/cachedClickId?marketerId="+t,document.body.appendChild(e),function(e){if("optout"!==e)if("NoClickId"===e)apiObj.zone===s.Zone.Default?n():(c.gdprValidatorService.checkHasConsent((function(e,t){e&&n()})),p.eventBusService.on(s.HAS_CONSENT_EVENT,(function(e){e&&n()})));else{var t=i.urlService.getParamFromUrl(a.DOMAIN_URL_PARAMETER_NAME);e&&(e=e.replace(/#/g,"")),o.cookiesService.set(a.CLICK_ID_COOKIE_NAME,e,7,t)}})}},e}();t.KickstartService=d},88:(e,t,n)=>{t.__esModule=!0,t.CustomValidatorService=void 0;var r=n(865),o=n(368),i=n(778),a=function(){function e(){this.validCurrencies=["USD","CAD","EUR","GBP","ILS","AUD","MXN","BRL","SEK","SGD","RUB","NZD","INR","JPY","PHP","CHF"],this.validNameRegX=new RegExp("^[A-Za-z0-9]+[A-Za-z0-9- ]*$"),this.validNumber=new RegExp("^[0-9]+[.0-9]*$"),this.validNameLength=100}return e.prototype.validate=function(e){return e.content&&e.content.id,e.orderValue&&!e.currency?((0,o.logger)(r.LOG_TYPES.Warning,"Order value reported but no currency is declared",e.name),!1):e.currency&&-1===this.validCurrencies.indexOf(e.currency)?((0,o.logger)(r.LOG_TYPES.Warning,"Currency not recognized",e.name),!1):e.orderValue&&!this.validNumber.test(e.orderValue)?((0,o.logger)(r.LOG_TYPES.Warning,"Order value can only be a positive number",e.name),!1):e.name===i.PAGE_VIEW_NAME||this.validNameRegX.test(e.name)?!(e.name!==i.PAGE_VIEW_NAME&&e.name.length>this.validNameLength&&((0,o.logger)(r.LOG_TYPES.Warning,"Event name length cannot exceed 100 characters",e.name),1)):((0,o.logger)(r.LOG_TYPES.Warning,"Event Name invalid",e.name),!1)},e}();t.CustomValidatorService=a},3:(e,t)=>{t.__esModule=!0,t.urlService=t.UrlService=void 0;var n=function(){function e(){}return e.prototype.getParamFromUrl=function(e){var t=this.getLocation();t.indexOf("#")>-1&&(t=t.substring(0,t.indexOf("#")));for(var n=(t.split("?")[1]||"").split(/&/),r=0;r{t.__esModule=!0,t.validatorService=void 0;var r=n(88);t.validatorService=new r.CustomValidatorService},784:(e,t,n)=>{t.__esModule=!0,t.loadWaves=void 0;var r=n(894),o=n(821);t.loadWaves=function(){var e;function t(e){var t=document.createElement("script");t.async=!0,t.src=e,t.type="text/javascript";var n=document.getElementsByTagName("script")[0];n.parentNode.insertBefore(t,n)}var n=function(e){var r,o;if(["https://my.outbrain.com","http://localhost:4949","http://localhost:2109","https://simsite.outbrain.com"].indexOf(e.origin)>-1&&"SHOW_EVENT_PICKER"===(null===(r=e.data)||void 0===r?void 0:r.message)){var i=(null===(o=e.data)||void 0===o?void 0:o.content).appName;t("https://my.outbrain.com/events-picker-app?appName=".concat(i||"codeless")),window.opener.postMessage({message:"EVENT_PICKER_CONNECTED"},e.origin),window.removeEventListener("message",n)}};window.addEventListener("message",n),null===(e=null===top||void 0===top?void 0:top.window.opener)||void 0===e||e.postMessage({message:"OB_SHOULD_SHOW_PICKER",content:{marketerId:apiObj.marketerId}},"*");try{var i=["00538945db33fa7a7705d45670ccc3912a","00828acc846e44356aac0b8f10d381d69f","00e2e50096dcc67415ebb484f11dcdb213","0026fc2cc364aa0cd2fa6de4146fc2c8b6","003ca3d94af87c082812859ece689385df","005330249d4fb35d028c0011becd1b0833","008a94464dfbbe84c9d01851caa9fa02f4","0029126269a650c9809d8135dde0fa01c5","00ebcc522805c7e78b7da896d6ec3472f5"].find((function(e){return apiObj.marketerId.indexOf(e)>-1}));Array.isArray(apiObj.marketerId)&&apiObj.marketerId.slice(0,5).forEach((function(e){return(i||o.featureFlagService.isTest(e,100))&&t("https://wave.outbrain.com/mtWavesBundler/handler/".concat(e.trim()))}))}catch(e){(0,r.logError)(e,window.apiObj)}}}},t={};!function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(81)})();