/*! 20260916-1-RELEASE */ function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _typeof(e){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){var t='TFASC';t.indexOf("{jsScope}")>-1&&(t="TRC"),e[t]||(e[t]={})}(window),function(e,t){e.TRC=e.TRC||{};var n=function e(){return!0},r=function n(r,i,o,a){var s=r+"/"+encodeURIComponent(o||e.TRC.publisherId)+"/log/3"+"/"+i;return a&&(s+="?"+t.TRCLogger.formatParams(a)),s},i=function t(r,i,a,s){var c,l=new(e.XDomainRequest||e.XMLHttpRequest);return l.open(r,i),l.onload="function"==typeof s?s:n,l.onerror=n,l.ontimeout=n,l.onprogress=n,l.withCredentials=!0,a&&o(l,a),l},o=function e(t,n){for(var r in n)n.hasOwnProperty(r)&&t.setRequestHeader(r,n[r])};e.TRC.TRCLogger=t.TRCLogger={post:function n(o,a,s,c,l,u){var f=r(o,a,c,l),d=i("POST",f);u&&"function"==typeof e.navigator.sendBeacon?e.navigator.sendBeacon(f,t.TRCLogger.formatBeaconParams(s)):(d.setRequestHeader&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(t.TRCLogger.formatParams(s)))},get:function e(t,n,o,a,s){if(o.headers){var c=o.headers;delete o.headers}var l=r(t,n,a,o),u;i("GET",l,c,s).send()},formatParams:function e(t){var n=[];for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];null!==i&&"object"===_typeof(i)&&(i=JSON.stringify(i)),n.push(encodeURIComponent(r)+"="+encodeURIComponent(i))}return n.join("&")},formatBeaconParams:function e(t){var n="",r;for(var i in t)if(t.hasOwnProperty(i)){var o=t[i];null!==o&&"object"===_typeof(o)&&(o=JSON.stringify(o)),n+=i+"="+encodeURIComponent(o)+"&"}return new Blob([n.slice(0,-1)],{type:"application/x-www-form-urlencoded"})},reportES:function e(n){if(t&&t.util&&t.util.isPercentEnabled(TRCImpl.global,"enable-rbox-es-events")){var r=TRCImpl&&TRCImpl.global&&TRCImpl.global["rbox-es-events-url"]||"https://vidanalytics.taboola.com/putes";r=r+"/"+n.index;var i={timestamp:(new Date).toISOString(),name:n.name};for(var o in n.data)i[o]=n.data[o];if("function"==typeof navigator.sendBeacon)navigator.sendBeacon(r,JSON.stringify(i));else{var a=new XMLHttpRequest;a.open("POST",r,!0),a.send(JSON.stringify(i))}}}}}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){if(t&&!t.MessageDelayer){var n=function n(r){return function(n){var i=n.detail,o=n.type,a=""+i[this.groupingKeyName],s=this.delayedEventsMap[a],c=t.eventUtils.getDateNow();if(s){this.timeoutHandles[a]&&(clearTimeout(this.timeoutHandles[a]),this.timeoutHandles[a]=null);var l=[].concat(s);this.delayedEventsMap[a]=[];for(var u=0;u=0?"TRC":'TFASC']),function(e){e.TRC=e.TRC||{},e.TRC.sharedObjects=e.TRC.sharedObjects||{},e.TRC.sharedObjects.loadedScripts=e.TRC.sharedObjects.loadedScripts||{},e.TRC.sharedObjects.loadedPixels=e.TRC.sharedObjects.loadedPixels||{}}(window),function(e,t,n){!function(){if("function"==typeof e.CustomEvent)return!1;function n(e,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=t.createEvent("CustomEvent");return r.initCustomEvent(e,n.bubbles,n.cancelable,n.detail),r}n.prototype=e.Event.prototype,e.CustomEvent=n}(),n.eventUtils=n.eventUtils||{},n.eventUtils.dispatchEvent=n.eventUtils.dispatchEvent||function(e,t){"function"==typeof CustomEvent&&document.dispatchEvent(new CustomEvent(e,{detail:t||{}}))},n.eventUtils.safeAddEventListener=n.eventUtils.safeAddEventListener||function(e,t){document.addEventListener(e,function(e){try{t.call(this,e)}catch(e){}})},n.eventUtils.safeAddEventListenerToWindow=n.eventUtils.safeAddEventListenerToWindow||function(e,t){window.addEventListener(e,function(e){try{t.call(this,e)}catch(e){}})},n.eventUtils.getDateNow=n.eventUtils.getDateNow||function(){var e,t;if(Date.now){if("number"==typeof(e=Date.now()))return e;if("number"==typeof(t=Number(e)))return t}return(new Date).getTime()},n.eventUtils.hashString=n.eventUtils.hashString||function(e){var t=0;if(0==e.length)return t;for(var n=0;n=0?"TRC":'TFASC']),function(e,t){e._tfa=e._tfa||[],e._tfa.config||(e._tfa.TfaConfig=function(){this.configMap={},this.trackedElements=[]},e._tfa.TfaConfig.prototype={safeGet:function e(t,n,r){var i,o,a;if(r&&this.configMap[r])i=""+r;else{if(!this.firstPublisherId)return n;i=this.firstPublisherId}try{return void 0===(a=(o=this.configMap[i])[t])?n:a}catch(e){return n}},hasValidConfig:function e(){return!!this.firstPublisherId},addConfig:function e(t,n){"string"==typeof n||n instanceof String||(this.firstPublisherId||(this.firstPublisherId=t),this.configMap[""+t]=n)},addTrackedElements:function e(t){this.trackedElements=t}},e._tfa.config=new e._tfa.TfaConfig,e._taboola=e._taboola||[]),e._tfa.config.addConfig(1557663,{"tfa:event-host-map":{"pre_d_eng_tb": "trc-events.taboola.com"},"tfa:add-item-url:event-list":"*","tfa:trk:is-unified-page-view":true,"eid:send-eid-encoded":true,"tfa-uid:send-ids-to-cds":false,"cds:send-uad-req":true,"cds:send-dnid-req":true,"tfa:get-publisher-id-from-baker":true,"tfa:trk:flc-enabled":true,"tfa:engagement:return-visits:is-enabled":true,"tfa:collect-eid-from-page":false,"eid-enabled":"false","eid:tfa:common-eid-keywords":"help,support,contact,readme,test,info,reply,careers,spam,login,subscribe,feedback,reachus,customers,cookie,members","tfa:trk:topics-enabled":true,"tfa:allow-cross-domain-tracking":true,"tfa:engagement:use-new-interval-calculation":true,"tfa:allow-codeless-tracking":true,"tfa:tfa-codeless-tracking:selector-matching-by-native-css":true,"tfa:tfa-codeless-tracking:advanced-matching":true,"tfa:codeless-domain-override":false,"tfa:search-click-id-in-query-string-prefix":"tbl"}),e._tfa.config.addTrackedElements([])}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t,n){"use strict";var r=e[n.jsScope],i={map:function e(t,n){if("function"==typeof Array.prototype.map)return n.map(t);for(var r=[],i=0;i0&&Object.keys(r).every(function(e){return!0===r[e]})).toString()}}}}catch(e){}q(t)};var h=function e(){};(h.prototype=Object.create(i.prototype)).constructor=h,h.prototype.providerName="CookieFirst",h.prototype.isCookieBannerOfProvider=function(){return void 0!==e.CookieFirst&&void 0!==e.CookieFirst.consent},h.prototype.parseConsent=function(){var t=null;try{if(e.CookieFirst&&e.CookieFirst.consent&&"object"===_typeof(e.CookieFirst.consent)){var n=e.CookieFirst.consent,r;t={consentData:(Object.keys(n).length>0&&Object.keys(n).every(function(e){return!0===n[e]})).toString()}}}catch(e){}q(t)};var g=function e(){};(g.prototype=Object.create(i.prototype)).constructor=g,g.prototype.providerName="Klaro",g.prototype.isCookieBannerOfProvider=function(){return void 0!==e.klaroConfig||void 0!==e.klaro},g.prototype.parseConsent=function(){var t=null;try{if(e.klaro&&"function"==typeof e.klaro.getManager){var n=e.klaro.getManager();if(n&&n.consents&&"object"===_typeof(n.consents)){var r=n.consents,i;t={consentData:(Object.keys(r).length>0&&Object.keys(r).every(function(e){return!0===r[e]})).toString()}}}}catch(e){}q(t)};var v=function e(){};(v.prototype=Object.create(i.prototype)).constructor=v,v.prototype.providerName="CookieScript",v.prototype.isCookieBannerOfProvider=function(){return void 0!==e.CookieScript},v.prototype.parseConsent=function(){var t=null;try{if(e.CookieScript&&e.CookieScript.instance&&"function"==typeof e.CookieScript.instance.currentState){var n=e.CookieScript.instance.currentState();t=n&&"accept"===n.action?{consentData:"true"}:{consentData:"false"}}}catch(e){}q(t)};var m=["ad_storage"],y=function e(){};(y.prototype=Object.create(i.prototype)).constructor=y,y.prototype.providerName="Gtm",y.prototype.isCookieBannerOfProvider=function(){return!!(e.dataLayer&&"function"==typeof e.dataLayer.push||e.google_tag_data)},y.prototype.parseConsent=function(){function t(e,t){return e?"granted":t?"denied":null}function r(e){q("granted"===e?{consentData:"true"}:"denied"===e?{consentData:"false"}:null)}function i(e,n){for(var r=!0,i=!1,o=0;o=0;t--){var n=e[t];if(n&&"consent"===n[0]&&"update"===n[1]&&n[2]&&"object"===_typeof(n[2]))return n[2]}return null}try{var s=e._tfa.config.safeGet("tfa:trk:gtm-consent-fields",m,n.bakedPublisherId),c;if(e.google_tag_data&&e.google_tag_data.ics&&e.google_tag_data.ics.entries&&null!==(c=i(e.google_tag_data.ics.entries,s)))return void r(c);if(e.dataLayer&&e.dataLayer.length){var l=a(e.dataLayer);if(l)return void r(c=o(l,s))}}catch(e){}q(null)},y.prototype.addListenerForConsentChange=function(){var t=e._tfa.config.safeGet("tfa:trk:gtm-consent-fields",m,n.bakedPublisherId);e.google_tag_data&&e.google_tag_data.ics&&"function"==typeof e.google_tag_data.ics.addListener&&e.google_tag_data.ics.addListener(t,function(){r.trk.parseCookieBannerConsent(y.prototype)})};var S=function e(){};return S.COOKIE_NAME="aep_usuc_f",S.CONSENT_FIELD="ae_u_p_s",S.CONSENT_VALUE="2",S.NON_CONSENT_VALUE="1",(S.prototype=Object.create(i.prototype)).constructor=S,S.prototype.providerName="AliExpress",S.prototype.isCookieBannerOfProvider=function(){return null!==Se(S.COOKIE_NAME)},S.prototype.parseConsent=function(){var e=Se(S.COOKIE_NAME);if(e){for(var t=e.split("&"),n=0;n=r?i.slice(r-1).join(n):[])},Y=function e(t){if(!t)throw new Error("Invalid URL!");this.href=t;var n=W(t,"#",2);return this.hash=n.length>1?"#"+n.pop():"",t=n[0],n=W(t,"?",2),this.search=n.length>1?"?"+n.pop():"",t=n[0],n=W(t,"://",2),this.protocol=n.length>1?n.shift()+":":"",t=n[0],n=W(t,"/",2),this.pathname=n.length>1?"/"+n.pop():"/",t=n[0],n=W(t,"@",2),this.auth=n.length>1?n.shift():"",t=n[0],n=W(t,":",2),this.port=n.length>1?parseInt(n.pop()):0,this.host=n[0],this},X={"http:":1,"https:":1};Y.prototype.toString=function(e){return(this.host?this.protocol+"//"+(this.auth?this.auth+"@":"")+this.host+(this.port?":"+this.port:""):"")+this.pathname+this.search+(e?"":this.hash||"")},Y.prototype.switchProtocol=function(e,t){var n=this instanceof Y?this:new Y(this),r;return X[e]&&(t&&"https:"===n.protocol||(n.protocol=e)),(r=n.toString(!1)).length>1?r:""},Y.prototype.getParameter=function(e){for(var t,n=(this instanceof Y?this:new Y(this)).search.substr(1).split(/&/),r=0;r0?n[n.length-1]:null},ue=function e(){r.eventUtils.dispatchEvent(L,M)},fe=function t(i,o){if(e.clearTimeout(i[m]),o&&o.trc){if(o.trc.ui?(o.trc["DNT"]&&"TRUE"===o.trc["DNT"].toUpperCase()?localStorage.removeItem("taboola global:user-id"):o.trc["cm"]||localStorage.setItem("taboola global:user-id",o.trc["ui"]),F=B.USER_ID_SET):F=B.UNINITIALIZED,o.trc.sd&&!o.trc["cm"]&&localStorage.setItem(i.publisherId+":session-data",o.trc["sd"]),o.trc["vl"]&&o.trc["vl"].length){var a=o.trc["vl"][0].ri;i.isMediaRequest||(e.TRC.events_ri=a),i[y]=a,i[S]=k,r.eventUtils.dispatchEvent(r.sharedEvents.REQUEST_ID_CREATED,{publisherId:i.publisherId,requestId:a})}i.isMediaRequest&&r.trk.rboxNotLoaded()&&(o.trc.stp&&r.trk.loadPixels(o.trc.stp),o.trc.jst&&r.trk.loadScriptTags(o.trc.jst)),r.privacySandbox&&r.privacySandbox.isProtectedAudienceSupported()&&i.isMediaRequest&&o.trc.ig&&r.privacySandbox.joinInterestGroupsInIframe(o.trc.ig)}i[S]!==k&&(i[S]=R,r.eventUtils.dispatchEvent(r.sharedEvents.REQUEST_ID_CREATION_ERROR,{publisherId:i.publisherId})),i.isMediaRequest||(e.TRC.trkRequestStatus=!(P.indexOf(i[S])>=0)),e.TRC.alertVVResponseLoaded&&e.TRC.alertVVResponseLoaded(n.tblVersion),te(i),ue()},de=function(){var e,t=function e(){try{return decodeURI(top.window.document.referrer)}catch(e){}return null},n=/https?:\/\/\w+\.taboola(?:syndication)?\.com/,r=function e(t){return n.test(t)?t.split("?")[0]:t.substr(0,400)},i,o=[function e(){for(var t=document.head.getElementsByTagName("link"),n=0;nn&&(r=G.substring(0,n-1),G=r.substring(0,r.lastIndexOf("&"))),G},ve=function e(t){var n=Se("usprivacy");if("function"==typeof __uspapi)try{__uspapi("getUSPData",1,function(e,r){r&&e?t(e.uspString):n&&t(n)})}catch(e){throw n&&t(n),new Error("Error while calling __uspapi for getUSPData")}else n&&t(n)};function me(e,t,n){if(t){try{window.__gpp("removeEventListener",function(){},e.listenerId)}catch(e){}n(e)}}var ye=function e(t){if("function"==typeof t)try{var n=function e(n,r){me(n,r,t)};window.__gpp("addEventListener",n)}catch(e){}},Se=function e(t){var n=t+"=",r="; "+document.cookie;if(r)for(var i=r.split(";"),o=0;o=0&&(n=n.substr(0,t))},r["truncate-at"]||[]);for(var a=new Y(n),s=i.objKeys(r),c=0;c=0&&(a.hash="#"+p)})}}return a.pathname||(a.pathname="/"),"item-id"===t?a.toString().toLowerCase():a.toString()},ke=function e(){return Oe(pe(),"ampproject.net")},Re=function e(){return Oe(pe(),"instantarticles.fb.com")},Oe=function e(t,n){try{return void 0!==t&&void 0!==n&&t.indexOf(n)>0}catch(e){return!1}},Pe=function e(t,r,i){var o=["paramUrl","meta","canonical","og","location"],a={paramUrl:Ae,canonical:Ue,og:Ne,location:De},s=n.urlExtractOrder&&Array.isArray(n.urlExtractOrder)?n.urlExtractOrder:o,c=0,u,f,d,p="",h=function e(t,n){return we.call(this,t,n,i)};for(s.push("location");c5)return i.call(this,n,r.trk.encodeItemUrlIfNeeded(o[a].content));return null},De=function t(n,r){var o=function t(){var n=e.location,r=i.filter(function(e){return 0!==e.search("trc_")&&"taboola-debug"!==e},n.search.replace(/^\?/,"").split("&")).join("&");return n.origin+n.pathname+"?"+r};return r.call(this,n,o())},xe=function e(t){try{var n=i.objKeys(t[0]);for(var r in n)switch(n[r]){case"home":return"home";case"category":return"category";case"text":case"article":return"text";case"search":return"search";case"photo":return"photo";case"other":return"other";case"content_hub":return"content_hub";case"video":default:return"video"}}catch(e){return"video"}},Le=function e(t){return localStorage.getItem(t+":session-data")},Me=function e(){return localStorage.getItem("taboola global:user-id")},je=function e(){return Pe("item-url",n.normalizeItemUrl,n.prenormalizeUrlRules)},Ve=function e(t){for(var n,r=/^(.*\/libtrc\/.+\/)(?:(?:trk)|(?:tfa))\.js(?:\?(.*))?$/,i=0;i1?s[r[i].index]:s[0];return a},Fe=function t(){if(!e.TRC.AdServerManager){var r=Be();e.TRC.VVReady=Ke,re("//"+r+"/libtrc/vv."+n.tblVersion+".js")}},Ke=function t(){e.TRC.adManager=new e.TRC.AdServerManager(n.vvConfig,n.tblVersion),e.TRC.adManager.startVV().then(function(){e.TRC.adManager.run()})},Ge=function e(t,n){return t?t[n]:t},$e=function e(t,n,r){if(0===i.objKeys(r).length||N[""+t])return t;var o=document.createElement("a");o.href=f;var a=(o.host||location.host).toLowerCase(),s=(o.href||location.href).toLowerCase(),c=U[n],l=Ge(r[a],c),u="/",d=["m","mobile","www2","www3"],p=[],h,g,v,m,y;if(!l){for(ee(r,p),p.sort(function(e,t){return e[0].length>t[0].length?-1:e[0].length0){if(s.match(v)){l=Ge(p[h][1],c);break}if(v.indexOf("www.")>-1&&s.match(v.replace("www.",""))){l=Ge(p[h][1],c);break}}else if(a.match(v)){l=Ge(p[h][1],c);break}if(!l&&a.indexOf("www.")<0){for(h=0,g=d.length;h-1},!1)},hasRequestEnded:function e(t){return He(t,function(e){return P.indexOf(e)>-1||!(A.indexOf(e)>-1)},!1)},getPublisherRequestId:function e(t){var n=le(t);return n&&n[S]===k?n[y]:null},getPublisherSessionData:function e(t){var n=Le(t);return n||null},getViewId:function e(){return K},getReferrer:de,getCcpaParam:function e(t){return ve(t)},getGppParam:function e(t){return ye(t)},COOKIE_BANNER_MAP:H(),parseCookieBanner:function e(){var t,n;try{return(n=Q())?n:null===(t=r.trk.parseCookieBannerProvider())?null:(r.trk.parseCookieBannerConsent(t),Q())}catch(e){return null}},parseCookieBannerProvider:function e(){var t,n;if(r.trk.cookieBannerProvider)return r.trk.COOKIE_BANNER_MAP[r.trk.cookieBannerProvider.providerName+",V"+r.trk.cookieBannerProvider.version];for(n in r.trk.COOKIE_BANNER_MAP)if(r.trk.COOKIE_BANNER_MAP.hasOwnProperty(n)&&(t=r.trk.COOKIE_BANNER_MAP[n]).isCookieBannerOfProvider())return r.trk.cookieBannerProvider={providerName:t.providerName,version:t.version},t.addListenerForConsentChange(),t;return null},parseCookieBannerConsent:function e(t){try{t.isCookieBannerOpen()||t.parseConsent()}catch(e){}},loadPixels:function t(n){try{return qe(n,e.TRC.sharedObjects.loadedPixels,function(e){var t=new Image;return t.src=e,t})}catch(e){}},loadScriptTags:function t(n){try{return qe(n,e.TRC.sharedObjects.loadedScripts,function(e){return re(e,null,null,!0)})}catch(e){}},rboxNotLoaded:function t(){return!(e.TRC&&e.TRC.utm)},rboxTrcProtocol:function e(){return n.rboxTrcProtocol},hasSuperUTFSeq:function e(t){for(var n=t.split("").map(function(e){return e.charCodeAt(0)}),i=0,o=0;o=3)return!0;i++}return!1},isSuperUTF:function e(t){var n;return t>1200},encodeItemUrlIfNeeded:function e(t){try{if(r.trk.hasSuperUTFSeq(t))return encodeURI(t)}catch(e){}return t},getItemUrl:je},z()&&!e._tfa.config.safeGet("tfa:trk:enabled",!0,n.bakedPublisherId)||r.trk.init()}(window,document,{bakedPublisherId:1557663,bakedPublisherName:'psmarketing-pucsp-network',tblVersion:"20260916-1-RELEASE",normalizeItemId:function(itemid,type,canon){if(!canon&&type=='text'&&typeof itemid=='string'&&itemid.search(new RegExp('^https?://'))==0)itemid=itemid.replace(/\?.*/,'', false);return itemid.toLowerCase();},prenormalizeIdRules:{"host":true,"fragment":"^(/video/|!)","query":["p","id"],"truncate-at":["search.searchcompletion.com","org.mozilla.javascript.undefined"],"trailing-dirsep":true},prenormalizeUrlRules:false,normalizeItemUrl:function(itemurl,type,canon){return itemurl;},urlExtractOrder:null,networkMap:{},vvConfig:null,enableVV:false,rboxTrcProtocol:'https:',tfaContext:true,jsScope:'TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC'}),function(e,t){e._tfa=e._tfa||[],t.useStorageDetection=e.TRC.useStorageDetection=e.TRC.useStorageDetection||!0,t.text=t.text||{},t.text.lsplit=t.text.lsplit||function(e,t,n){var r=e.split(t);return r.slice(0,n-1).concat(r.length>=n?r.slice(n-1).join(t):[])},t.tfaUtil=t.tfaUtil||{},t.tfaUtil.safeAddParam=t.tfaUtil.safeAddParam||function(e,t,n){var r,i;n&&t&&e&&(r=encodeURIComponent(e),i=encodeURIComponent(t),n.push(r+"="+i))},t.tfaUtil.getParameterByName=t.tfaUtil.getParameterByName||function(e,t){if(!t||!e)return null;e=e.replace(/[\[\]]/g,"\\$&");var n,r=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null},t.cnxUtil=t.cnxUtil||{},t.cnxUtil.CNX_CLICK_ID_KEY="cnxclid",t.cnxUtil.TBLA_CNX_ROI_COOKIE_NAME="tbla_cnx_roi",t.cnxUtil.CNX_TRACKER_ID_SEPARATOR="~",t.cnxUtil.CNX_TRACKER_IDS_TO_KEEP=3,t.cnxUtil.getCnxClickId=function(){var n=t.tfaPageManager,r=e._tfa||{},i=!r.config||!r.config.safeGet||r.config.safeGet("tfa:ecomm:setTblacnxclidCookie",!0),o=t.tfaUtil.getParameterByName(t.cnxUtil.CNX_CLICK_ID_KEY,e.location.href),a;if(i&&o){var s=t.cnxUtil.buildTrackerIds(o);return n.storePublisherValue(n.TABOOLA_GLOBAL_KEY,t.cnxUtil.TBLA_CNX_ROI_COOKIE_NAME,s),o}if(a=n.getPublisherValue(n.TABOOLA_GLOBAL_KEY,t.cnxUtil.TBLA_CNX_ROI_COOKIE_NAME))return a.split(t.cnxUtil.CNX_TRACKER_ID_SEPARATOR)[0]},t.cnxUtil.buildTrackerIds=function(e){var n=t.tfaPageManager,r=n.getPublisherValue(n.TABOOLA_GLOBAL_KEY,t.cnxUtil.TBLA_CNX_ROI_COOKIE_NAME);if(e){var i=r?r.split(t.cnxUtil.CNX_TRACKER_ID_SEPARATOR):[];i.unshift(e),r=i.slice(0,t.cnxUtil.CNX_TRACKER_IDS_TO_KEEP).join(t.cnxUtil.CNX_TRACKER_ID_SEPARATOR)}return r};var n=e.TRCImpl=e.TRCImpl||{};n.global=n.global||{},e.__trcError=e.__trcError||function e(){}}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="taboola global",r="trctestcookie";function i(){for(var e="trc_cookie_storage",n=new Object,r=document.cookie.split(/;\s+/),i=0;i0?1:-1,i=new Date((new Date).getTime()+365*r*864e5);var a="",s=document.domain.match(/[^\.]*\.[^.]*$/);s&&s.length>0&&(a=";domain=."+s[0]),document.cookie=e+"="+escape(t.join("|"))+";path=/;expires="+i.toUTCString()+a}return this.getValue=function(e){return n.hasOwnProperty(e)?n[e]:null},this.setValue=function(e,t){n[e]=t,u()},this.removeKey=function(e){delete n[e],u()},this}function o(e){var t=e||{};return this.getValue=function(e){return t[e]?t[e]:null},this.setValue=function(e,n){t[e]=n},this.removeKey=function(e){delete t[e]},this.getData=function(){return t},this}function a(t){return this.getValue=function(n){return e[t+"Storage"].getItem(n)},this.setValue=function(n,r){try{e[t+"Storage"].setItem(n,r)}catch(e){}},this.removeKey=function(n){try{e[t+"Storage"].removeItem(n)}catch(e){}},this}function s(t){var n=e[t+"Storage"],r=(new Date).getTime()+"",i="_taboolaStorageDetection";try{if(n.setItem(i,r),n.getItem(i)==r)return n.removeItem(i),n}catch(e){}return null}function c(n){try{if(e.localStorage instanceof Storage&&t.useStorageDetection&&s(n))return new a(n)}catch(e){return null}}function l(e){var t=[c("local"),new i,c("session")];try{for(var n=0,r=t;n=0?"TRC":'TFASC']),function(e,t,n){var r=function e(t,n,r){var i=t.split(n);return i.slice(0,r-1).concat(i.length>=r?i.slice(r-1).join(n):[])},i=n.TFA_URL=function(e){if(!e)throw new Error("Invalid URL!");this.href=e;var t=r(e,"#",2);return this.hash=t.length>1?"#"+t.pop():"",e=t[0],t=r(e,"?",2),this.search=t.length>1?"?"+t.pop():"",e=t[0],t=r(e,"://",2),this.protocol=t.length>1?t.shift()+":":"",e=t[0],t=r(e,"/",2),this.pathname=t.length>1?"/"+t.pop():"/",e=t[0],t=r(e,"@",2),this.auth=t.length>1?t.shift():"",e=t[0],t=r(e,":",2),this.port=t.length>1?parseInt(t.pop()):0,this.host=t[0],this};function o(e){for(var t={},n=0;n=0?"&":"?")+t+(n[1]?"#"+n[1]:"")},i.prototype.removeParamFromUrl=function(e,t){var n=e.split("?");if(n.length>=2){for(var r=n[0],i,o=[],a=n[1].split("&"),s=0;s=0?"TRC":'TFASC']),function(e,t,n){var r=n.tfaPageManager,i="https://",o="tblci",a="TABOOLA-DO-NOT-TRACK",s="(?:tbl|Gi)[A-Za-z0-9_-]{40,200}",c=new RegExp("^#"+o+"("+s+")"),l=new RegExp("^"+s),u={QUERY:"q",HASH:"h",CUSTOM_QUERY:"cq",LOCAL_STORAGE:"ls"};function f(e,t){e&&t&&(t[e]=!0)}function d(e,t,n){for(var r={},i=0;i1}n.tfaUserId={initialized:!1,userId:null,clickId:null,clickIdSource:null,cnxClickId:null,getUserId:function e(){return this.userId},getClickId:function e(){return this.clickId},getClickIdSource:function e(){return this.clickIdSource},getCnxClickId:function e(){return this.cnxClickId},getHttpsPrefix:function e(){return i},sendUserIdsToTrc:function t(r,i,o,a){var s,c='https:',l=[];if(d(r,i,o))return n.tfaUtil.safeAddParam("uiref",r,l),n.tfaUtil.safeAddParam("uils",i,l),n.tfaUtil.safeAddParam("uifpc",o,l),n.tfaUtil.safeAddParam("tblci",a,l),s=new Image,e._tfa.config.safeGet("tfa:add-referrer-policy-when-firing-pixel",!0)&&(s.referrerPolicy="no-referrer-when-downgrade"),s.src=c+"//trc.taboola.com/sg/taboola-tfa/1/um/?"+l.join("&"),s},isUserCanBeTracked:function t(n){return!n||!e._tfa.config.safeGet("tfa-uid:filter-do-not-track",!0)||-1===n.indexOf(a)},readAndStoreUserId:function e(){var t=this.extractUserIdFromReferrer(),n=r.getValue("user-id"),i=r.getUserIdFirstPartyCookie();this.isUserCanBeTracked(t)||(t=void 0),this.isUserCanBeTracked(n)||(n=void 0),this.isUserCanBeTracked(i)||(i=void 0),this.sendUserIdsToTrc(t,n,i,this.getClickId()),t&&(r.storeUserId(t),i&&r.getFirstPartyCookie().setValue(r.TABOOLA_GLOBAL_KEY+":"+"user-id",t)),this.userId=t||n||i},readAndStoreClickIdParam:function e(){var t=this.extractClickIdFromUrl(this.getWindowLocation().toString())||this.extractClickIdFromUrl(this.getItemUrlFromTrk())||this.extractClickIdFromUrl(this.getReferrer()),n=t?t.clickId:null,i=t?t.source:null,a=r.getValue(o);n?(r.storePublisherValue(r.TABOOLA_GLOBAL_KEY,o,n),this.clickId=n,this.clickIdSource=i):a&&(this.clickId=a,this.clickIdSource=u.LOCAL_STORAGE)},readAndStoreCnxClickId:function e(){this.cnxClickId=n.cnxUtil.getCnxClickId()||null},extractUserIdFromReferrer:function e(){var t=this.getReferrer();if(t&&t.indexOf("taboola")>-1)return n.tfaUtil.getParameterByName("ui",t)},searchAllParameterValuesForClickId:function e(t){if(t)for(var r=n.TFA_URL.prototype.getQueryStringObj.call(t),i=Object.keys(r),o=0;o1&&r.indexOf("#")>-1?r.substring(r.indexOf("#")):"",a=n.tfaUtil.getParameterByName(o,r),s,l;if(a)return{clickId:a,source:u.QUERY};if(l=i.match(c))return{clickId:l[1],source:u.HASH};if(e._tfa.config.safeGet("tfa:search-click-id-in-query-string-enabled",!0)&&(s=this.searchAllParameterValuesForClickId(r)))return{clickId:s,source:u.CUSTOM_QUERY}}},getWindowLocation:function t(){return e.location},getReferrer:function e(){return t.referrer},getItemUrlFromTrk:function e(){return n&&n.trk&&"function"==typeof n.trk.getItemUrl&&n.trk.getItemUrl()},init:function e(){this.initialized||(this.readAndStoreClickIdParam(),this.readAndStoreCnxClickId(),this.readAndStoreUserId(),this.initialized=!0)}},n.tfaUserId.init(),n.tfaUserId.CLICK_ID_KEY=o,n.tfaUserId.CLICK_ID_SOURCE=u}(window,document,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r=e[n]=e[n]||[],i,o,a,s,c=6*60*60*1e3,l="eng_mt",u="crossSessionsData",f=36,d;function p(e,t,n){var r=this.getTimeLeftForSession(e,this.getSessionDuration(),t);r<0&&(r=0),setTimeout(function(){n()},r)}function h(e){return e.ver&&e.ver===this.getDataVersion()}var g=function e(){};g.prototype={constructor:g,init:function e(n){if(d=r.config.safeGet("tfa:engagement:session-duration-in-milliseconds",c),!this.isInitialized()){var i=t.eventUtils.getDateNow(),o=this.getSessionDataFromStorage();if(this.getIsLocalStorageAvailable())return a=o&&o.sessionStartTime,p.call(this,o,i,n),a&&!this.isSessionInvalid(o)||(a=i,this.persistDefaultValues(a)),s=!0,this}},getStorageKey:function e(){return l},getCrossSessionsData:function e(t){var n=t&&t.getValue(this.getStorageKey()),r=n&&JSON.parse(n);return r&&r[u]},resetStorageMetricData:function e(){var n=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),r=this.getCrossSessionsData(n),i={crossSessionsData:r};n.setValue(this.getStorageKey(),r?JSON.stringify(i):"")},hasOnlyCrossSessionData:function e(t,n){return t&&1===t.length&&n.hasOwnProperty(u)},isSessionInvalid:function e(t){if(!t)return!0;var n=Object.keys(t);return this.hasOnlyCrossSessionData(n,t)},getSessionDataFromStorage:function e(){var n,r;n=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),o=!!n;var i=n&&n.getValue(this.getStorageKey());if(r=i&&JSON.parse(i))return this.isSessionInvalid(r)?r:!h.call(this,r)||this.hasSessionEnded()?(this.resetStorageMetricData(),r):r},hasSessionEnded:function e(){return!!s&&(!a||t.eventUtils.getDateNow()-a>this.getSessionDuration())},persistDefaultValues:function e(n){var r=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage");if(r){var i={ver:f,sessionStartTime:n,scrollDepth:0,sessionDepth:[],timeOnSite:0},o=this.getCrossSessionsData(r);o&&(i[u]=o),r.setValue(this.getStorageKey(),JSON.stringify(i))}},persistSpecificMetricsData:function e(n,r){var i=t.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),o;i&&n&&(o=this.getSessionDataFromStorage())&&(o[n]=r,i.setValue(this.getStorageKey(),JSON.stringify(o)))},getCrossSessionsDataKey:function e(){return u},getSessionDuration:function e(){return d},getDataVersion:function e(){return f},getIsLocalStorageAvailable:function e(){return o},getSessionStartTime:function e(){return a},getTimeLeftForSession:function e(t,n,r){return t&&a?a+n-r:n},isInitialized:function e(){return s}},(i=r.TEM=r.TEM||{}).ESU=i.ESU||new g}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r;function i(e,t){this.storageUtils.persistSpecificMetricsData(e,t)}var o=function e(){};o.prototype={constructor:o,init:function e(t,n,r){this.isValid=t&&n&&r,this.storageUtils=t,this.visibilityListener=r,this.refreshFromStorage(),this.initLastVisibleStartTime(),this.visibilityListener.subscribeToEvent(this.handleVisibilityChange.bind(this)),n.subscribeToEvent(this.handleStorageChange.bind(this))},getStorageKey:function e(){return"timeOnSite"},initLastVisibleStartTime:function e(){this.isValid&&(this.lastVisibleStartTime=t.eventUtils.getDateNow())},refreshFromStorage:function e(){if(this.isValid){var t=this.storageUtils.getSessionDataFromStorage(),n=0;t&&t[this.getStorageKey()]&&(n=t[this.getStorageKey()]||0),this.timeOnSite=n}},calcTimeOnSite:function e(){if(this.isValid)return this.lastVisibleStartTime?this.timeOnSite+(t.eventUtils.getDateNow()-this.lastVisibleStartTime):this.timeOnSite},handleVisibilityChange:function e(){this.isValid&&(this.visibilityListener.getIsPageHidden()?(this.timeOnSite=this.calcTimeOnSite(),i.call(this,this.getStorageKey(),this.timeOnSite)):this.lastVisibleStartTime=t.eventUtils.getDateNow())},handleStorageChange:function e(){this.refreshFromStorage()},getTimeOnSite:function e(){if(this.isValid)return this.visibilityListener.getIsPageHidden()?this.timeOnSite:this.calcTimeOnSite()}},(r=e[n]=e[n]||[]).TEM=r.TEM||{},r.TEM.TOS=r.TEM.TOS||new o}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(){var e="_tfa",t,n=!1,r;function i(){return void 0==document.body||void 0==document.documentElement?0:(n=!0,Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)-document.documentElement.clientHeight);var e}function o(e,t){this.storageUtils.persistSpecificMetricsData(e,t)}function a(e,t){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}}var s=function e(){};s.prototype={constructor:s,init:function e(t,n){this.storageUtils=t||{},n.subscribeToEvent(this.handleStorageChange.bind(this)),this.refreshFromStorage(),this.initEventListeners(),this.updateMeasurements(),this.calcMaxScrollPercentage()},getStorageKey:function e(){return"scrollDepth"},getScrollDepth:function e(){return n||this.calcMaxScrollPercentage(),this.maxScrollPercentage},getMaxScrollableAmount:function e(){return n||(this.maxScrollableAmount=i()),this.maxScrollableAmount},initEventListeners:function e(){window.addEventListener("resize",a(this.onResize.bind(this),100)),window.addEventListener("scroll",a(this.onScroll.bind(this),50))},refreshFromStorage:function e(){var t=this.storageUtils.getSessionDataFromStorage(),n=0;t&&t[this.getStorageKey()]&&(n=t[this.getStorageKey()]||0),this.maxScrollPercentage=n},onResize:function e(){this.updateMeasurements()},onScroll:function e(){this.calcMaxScrollPercentage()},updateMeasurements:function e(){this.winHeight=window.innerHeight,this.maxScrollableAmount=i()},calcMaxScrollPercentage:function e(){this.updateMeasurements();var t=0===this.maxScrollableAmount?0:Math.floor(window.pageYOffset/this.maxScrollableAmount*100);t>this.maxScrollPercentage&&(this.maxScrollPercentage=t,o.call(this,this.getStorageKey(),this.maxScrollPercentage))},handleStorageChange:function e(){this.refreshFromStorage()}},(r=(t=window[e]=window[e]||[]).TEM=t.TEM||{}).SCD=r.SCD||new s}(),function(e,t){var n,r,i=e["_tfa"].TEM,o=function e(){};o.prototype={constructor:o,init:function e(n,r,i){this.storageUtils=n,this.refreshFromStorage(),t.eventUtils.safeAddEventListener(i,this.handleUnipPageView.bind(this)),r.subscribeToEvent(this.handleStorageChange.bind(this))},getKey:function e(){return"ssd"},getStorageKey:function e(){return"sessionDepth"},setState:function e(t){this.visitedUrls={};for(var n=0;n=0?"TRC":'TFASC']),function(e){var t,n=e["_tfa"]||[],r=n.TEM||{},i=30*24*60*60*1e3,o=10,a="tfa:engagement:session-history-timeframe-in-milliseconds",s="tfa:engagement:session-history-limit",c="sessionsHistory",l,u,f=function e(){};f.prototype={init:function e(t){l=n.config.safeGet(s,o),u=n.config.safeGet(a,i),this.storageUtils=t,this.updateCrossSessionsData(this.storageUtils.getSessionStartTime())},updateCrossSessionsData:function e(t){var n=this.updateData(t);return this.storageUtils.persistSpecificMetricsData(this.storageUtils.getCrossSessionsDataKey(),n),n},updateData:function e(t){var n=this.getCrossSessionsDataFromStorage()||{};return n[c]=this.getSessionsHistory(t),n},resetCrossSessionsData:function e(){this.storageUtils.persistSpecificMetricsData(this.storageUtils.getCrossSessionsDataKey(),"")},getCrossSessionsDataFromStorage:function e(){var t=this.storageUtils.getSessionDataFromStorage();return t&&t[this.storageUtils.getCrossSessionsDataKey()]},getFilteredSessionsHistory:function e(t,n){var r=t?this.removeOldSessions(t,n):[];if(!r.indexOf(n)>-1&&!this.isInPreviousSession(r,n)){for(;r.length>l-1;)r.shift();r.push(n)}return r},removeOldSessions:function e(t,n){for(var r=[],i=0;it},getSessionsHistory:function e(t){var n=this.getCrossSessionsDataFromStorage(),r=n?n[c]:[];return this.getFilteredSessionsHistory(r,t)},isInPreviousSession:function e(t,n){return!(!Array.isArray(t)||!t.length)&&n-t[t.length-1]=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r,i=function e(){};i.prototype={constructor:i,init:function e(t){this.runningId=0,this.subscribers={},this.storageUtils=t,this.initListener()},initListener:function e(){t.eventUtils.safeAddEventListenerToWindow("storage",this.handleStorageChange.bind(this))},handleStorageChange:function e(t){t&&t.key===this.storageUtils.getStorageKey()&&this.notify(t)},subscribeToEvent:function e(t){var n=this.runningId++;return this.subscribers[n]=t,function(){delete this.subscribers[n]}.bind(this)},notify:function e(t){Object.keys(this.subscribers).forEach(function(e){this.subscribers[e](t)}.bind(this))}},(r=e[n]=e[n]||[]).TEM=r.TEM||{},r.TEM.storageListener=r.TEM.storageListener||new i}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r=e[n]=e[n]||[],i,o=r.TEM=r.TEM||{},a=o.ESU||{},s=o.SCD||{},c=o.SSD||{},l=o.TOS||{},u=o.returnVisits||{},f=o.crossSessionsUtils||{},d=o.visibilityListener||{},p=o.storageListener||{},h=1500,g=50,v=3e4,m="numOfTimesMetricsSent",y="pre_d_eng_tb",S="external-pixel-id",b="external-source",E={SESSION_END:"SESSION_END"},I,C,T=!1,_=Date.now();function w(e,t){var n=l.getTimeOnSite(),r=s.getScrollDepth(),o=c.getMetric(),f={notify:"event",name:y,tos:n,scd:r,ssd:o,est:a.getSessionStartTime(),ver:a.getDataVersion(),isls:a.getIsLocalStorageAvailable(),src:e,invt:t,msa:"function"==typeof s.getMaxScrollableAmount?s.getMaxScrollableAmount():void 0};return f=u.addReturnVisits(f),i.externalPixelId&&(f[S]=i.externalPixelId),i.externalSource&&(f[b]=i.externalSource),f}function k(e,t){var n=w(e,t);n.est&&(i.pageViewAccountIds?R(i.pageViewAccountIds,n):O(n))}function R(e,t){var n=Object.keys(e);n.length>0?n.forEach(function(n){t.id=e[n],O(t)}):O(t)}function O(e){i.push(e)}function P(){A(),a.resetStorageMetricData()}function A(){clearTimeout(C)}function U(e){(isNaN(I)||I<0)&&(I=0),a.hasSessionEnded()||(I++,a.persistSpecificMetricsData(m,I),N()||o.sendMetrics("i",e),x())}function N(){return l.getTimeOnSite()>5*60*1e3&&c.getMetric()>5}function D(e){var t;return t=0===e?4500:1===e?5500:e>1&&e<=9?1e4:h*Math.pow(2,e-3)}function x(){if(clearTimeout(C),T&&!d.getIsPageHidden()){var e,t=r.config.safeGet("tfa:engagement:use-new-interval-calculation",!1)?D(I):h*Math.pow(2,I);t!==1/0&&(C=setTimeout(U,t,t))}}function L(){M(),x()}function M(){var e=a.getSessionDataFromStorage();I=e&&e[m]&&e[m]||0}function j(){p.subscribeToEvent(B.bind(this)),d.subscribeToEvent(V.bind(this))}function V(){d.getIsPageHidden()?A():x()}function B(e){function t(e){var t=JSON.parse(e.newValue),i=JSON.parse(e.oldValue);return!n(t,i)&&!r(t,i)}function n(e,t){return e.sessionDepth.length!==t.sessionDepth.length}function r(e,t){return e.timeOnSite!==t.timeOnSite}M(),e&&T&&!d.getIsPageHidden()&&t(e)&&(T=!1,A(),F(g,v,L,A))}function F(e,t,n,r){var i=!1;function o(e){if(window.top!==window){var t=window.parent;for(t.postMessage(e,"*");t!==t.parent;)(t=t.parent).postMessage(e,"*")}function n(t){try{for(var r=0;r=0?"TRC":'TFASC']),function(e,t){var n="_tfa",r=e[n]=e[n]||[],i="taboola global:last-external-referrer",o="taboola",a="other",s=["taboola","taboolanews","taboolasyndication"];t.lastExternalReferrer={init:function e(){r.config.safeGet("tfa:last-external-referrer:is-disabled",!1,1557663)||this.extractExternalReferrerIfExistsAndStoreLocally()},extractExternalReferrerIfExistsAndStoreLocally:function t(){var n=this.extractExternalReferrer(e);n&&this.saveExternalReferrerToLocalStorage(n)},extractExternalReferrer:function e(n){var r=n.location.href,i=this.getExternalReferrer(n);return this.isExternalReferrerTaboola(r,i)?o:i||t.tfaUtil.getParameterByName("utm_source",r)||t.tfaUtil.getParameterByName("gclid",r)||t.tfaUtil.getParameterByName("fbclid",r)||t.tfaUtil.getParameterByName("dicbo",r)||t.tfaUtil.getParameterByName("dclid",r)?a:""},isExternalReferrerTaboola:function e(n,r){if(t.tfaUtil.getParameterByName("tblci",n))return!0;var i=t.tfaUtil.getParameterByName("utm_source",n);if(i&&"taboola"===i.toLowerCase())return!0;if(r)for(var o=r.split("/")[2],a=0;a=0?"TRC":'TFASC']),function(e,t,n){var r="https://pa.taboola.com/ig/joinIg.html";n.privacySandbox={isProtectedAudienceSupported:function e(){return navigator&&!!navigator.joinAdInterestGroup},joinInterestGroupsInIframe:function e(t){var n;if(this.isProtectedAudienceSupported()&&t&&t.igList&&Array.isArray(t.igList)&&t.igList.length)return(n=document.createElement("iframe")).style.display="none",n.src=r,n.addEventListener("load",function(){n.contentWindow.postMessage(JSON.stringify(t),"*")}),document.body.appendChild(n),n}}}(window,document,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(e,t,n){var r="tfa:allow-cross-domain-tracking",i="tfa:cross-domain-tracking:elements-to-update",o=[{selector:'a[href^="http"], a[href^="https"], a[href^="//"]',urlAttribute:"href"}],a="UpdateTrackingData",s=["tblci"],c=n.jsScope,l=n.publisherId,u=c.tfaPageManager;function f(){e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(r,!1,l)&&c.cdt.init()}e.TRC=e.TRC||{},e.TRC.cdt=c.cdt=e.TRC.cdt||{init:function e(){t.addEventListener(a,this.updateTrackingData.bind(this)),this.verifyUpdatesAfterDomLoaded()},updateTrackingData:function e(){for(var t=this.getAdvertiserSelectors(),n=0;n=0?"TRC":'TFASC']}),function(e,t,n){var r="tfa:allow-codeless-tracking",i="tfa:codeless-domain-override",o="taboola-codeless-active",a=n.jsScope,s=n.publisherId;function c(){return t.referrer&&"string"==typeof t.referrer&&t.referrer.indexOf("ads.realizeperformance.com")>-1}function l(){try{return!!sessionStorage.getItem(o)}catch(e){return!1}}function u(){(c()||l())&&e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(r,!1,s)&&a.codeless.init()}e.TRC=e.TRC||{},e.TRC.codeless=a.codeless=e.TRC.codeless||{shouldUseCspBypass:function t(){return!!(e._tfa&&e._tfa.config&&e._tfa.config.safeGet)&&!0===e._tfa.config.safeGet(i,!1,s)},isCodelessResourceUrl:function t(n){return"string"==typeof n&&"string"==typeof e.__CODELESS_APP_HOST__&&0===n.indexOf(e.__CODELESS_APP_HOST__+"/resources/codeless/")},init:function e(){this.loadCodelessScript()},loadCodelessScript:function n(){var r=t.createElement("script"),i,o=this.shouldUseCspBypass()?"https://code.taboola.com":"https://ads.realizeperformance.com";e.__CODELESS_APP_HOST__=o;var a=o+"/resources/codeless/codeless-events.js",s=(new Date).getTime();r.src=a+"?t="+s,r.async=!0,r.type="text/javascript",r.id="codeless_script",t.head.appendChild(r)}},e.TRC.codelessInit=a.codelessInit=u,u()}(window,document,{publisherId:1557663,jsScope:window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']}),function(e,t,n){var r=n.jsScope;e.TRC=e.TRC||{};var i="advancedMatching",o="originalMatching",a="tfa:tfa-codeless-tracking:advanced-matching",s="tfa:allow-codeless-debug-events",c="tfa:tfa-codeless-tracking:selector-matching-by-native-css";function l(){if(!isNaN(parseInt(n.publisherId,10)))return n.publisherId;if(e._tfa&&e._tfa.config&&e._tfa.config.firstPublisherId){var t=e._tfa.config.firstPublisherId;if(!isNaN(parseInt(t,10)))return t}return null}e.TRC.codelessTrackingInit=r.codelessTrackingInit=function(){var u,f=l();if(f){var d="codelessTracking-"+f,p="string"==typeof n.publisherName&&-1===n.publisherName.indexOf("${")?n.publisherName:null;e.TRC[d]=r[d]=e.TRC[d]||(_defineProperty(u={trackedElements:[],init:function e(){this.trackedElements=this.getTrackedElements(),this.trackedElements.length&&this.setupClickTracking()},getTrackedElements:function t(){var n=e._tfa&&e._tfa.config&&e._tfa.config.trackedElements||[];if(Array.isArray(n))return n;if("string"==typeof n)try{var r=JSON.parse(n);return Array.isArray(r)?r:[]}catch(e){return[]}return"object"===_typeof(n)?Object.values(n):[]},setupClickTracking:function e(){t.addEventListener("click",this.handleClick.bind(this),!0)},extractElementText:function e(t){var n="";return!n&&t&&void 0!==t.textContent&&(n=t.textContent.trim()),t&&void 0!==t.innerText&&(n=t.innerText.trim()),!n&&t&&t.tagName&&"input"===t.tagName.toLowerCase()&&(n=t.getAttribute("value")||""),!n&&t&&(n=t.getAttribute("aria-label")||t.getAttribute("data-text")||t.getAttribute("title")||""),n.trim()},extractHref:function e(t){if(t){if(t.tagName&&"a"===t.tagName.toLowerCase()&&t.href)return this.readAnchorHref(t);var n=t.closest("a");return n?this.readAnchorHref(n):void 0}},readAnchorHref:function e(t){var n=t.href,r,i;return"string"==typeof n?n:n&&n.baseVal||void 0},handleClick:function t(n){var r=n.target;if(this.trackedElements&&this.trackedElements.length){var i=n&&n.target&&n.target.form;if(!i||i.checkValidity()){var o=this.findAllMatchingTrackedElements({clickedElement:r,sendCodelessDebugEvents:this.isCodelessDebugEventsAllowed(),isAdvancedMatchingEnabled:this.isAdvancedMatchingEnabled(),isSelectorMatchingByNativeCSSEnabled:this.isSelectorMatchingByNativeCSSEnabled(),publisherName:p});if(o&&o.length){var a=this;o.forEach(function(t){t.eventNames&&t.eventNames.length&&t.eventNames.forEach(function(t){a.pushEvent(t),e._tfa.lastNonAutoTrackedClickEvent=n})})}}}},isCodelessDebugEventsAllowed:function t(){return e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(s,!1,f)},isAdvancedMatchingEnabled:function t(){return e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(a,!1,f)},isSelectorMatchingByNativeCSSEnabled:function t(){return e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(c,!1,f)},getFeatureFlag:function t(n,r){return e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(n,r||!1,f)}},"isCodelessDebugEventsAllowed",function e(){return this.getFeatureFlag(s)}),_defineProperty(u,"isAdvancedMatchingEnabled",function e(){return this.getFeatureFlag(a)}),_defineProperty(u,"isSelectorMatchingByNativeCSSEnabled",function e(){return this.getFeatureFlag(c)}),_defineProperty(u,"findAllMatchingTrackedElements",function e(t){var n=t.clickedElement,r=this.getElementPath(n),i=this.extractElementText(n),o=this.extractHref(n),a=t.sendCodelessDebugEvents,s=t.publisherName,c=t.isAdvancedMatchingEnabled,l=t.isSelectorMatchingByNativeCSSEnabled;try{var u;return this.trackedElements.filter(function(e){var t=this.isElementMatched({clickedElement:n,trackedElement:e,legacyElementPath:r,elementText:i,elementHref:o,isAdvancedMatchingEnabled:c,isSelectorMatchingByNativeCSSEnabled:l});return t.isMatch&&a&&this.sendCodelessDebugEvent({matchInfo:t,publisherName:s}),t.isMatch}.bind(this))}catch(e){var d=n?n.tagName:null;return this.sendCodelessErrorEvent({error:e,functionName:"findAllMatchingTrackedElements",publisherId:f,additionalContext:{clickedElementTag:d}}),[]}}),_defineProperty(u,"isElementMatched",function e(t){var n=t.clickedElement,r=t.trackedElement,a=t.legacyElementPath,s=t.elementText,c=t.elementHref,l=t.isAdvancedMatchingEnabled,u=t.isSelectorMatchingByNativeCSSEnabled;if(!r)return{isMatch:!1};var f=this.isMatchedBySelector({clickedElement:n,trackedSelector:r.selector,legacyElementPath:a,isSelectorMatchingByNativeCSSEnabled:u}),d=this.hasValidDisplayText(r.displayText),p=!!d&&this.isMatchedByDisplayText(r.displayText,s),h=this.isMatchedByHref(r.href,c),g;return g=l?!!h||(r.selector?d?f&&p:f:p):f||p,{legacyElementPath:a,elementText:s,elementHref:c,trackedElementSelector:r.selector,trackedElementDisplayText:r.displayText,trackedElementHref:r.href,isMatchedBySelector:f,isMatchedByDisplayText:p,isMatchedByHref:h,isMatch:g,eventNames:r.eventNames,matchingStrategy:l?i:o}}),_defineProperty(u,"isMatchedBySelector",function e(t){var n=t.clickedElement,r=t.trackedSelector,i=t.legacyElementPath,o=t.isSelectorMatchingByNativeCSSEnabled;if(!r)return!1;var a=function e(){return i.includes(r)};if(!o)return a();try{return!!n.matches(r)||!!n.closest(r);var s}catch(e){var c=n?n.tagName:null;return this.sendCodelessErrorEvent({error:e,functionName:"isMatchedBySelector",publisherId:f,additionalContext:{trackedSelector:r,clickedElementTag:c}}),a()}}),_defineProperty(u,"unescapeEmojis",function e(t){return t?t.replace(/\\u\{([0-9a-fA-F]+)\}/g,function(e,t){var n=parseInt(t,16);return String.fromCodePoint(n)}):""}),_defineProperty(u,"normalizeWhitespace",function e(t){return t&&"string"==typeof t?t.replace(/\s+/g," ").trim():""}),_defineProperty(u,"hasValidDisplayText",function e(t){return t&&"string"==typeof t&&t.trim().length>0}),_defineProperty(u,"isMatchedByDisplayText",function e(t,n){if("string"!=typeof n)return!1;var r=this.normalizeWhitespace(this.unescapeEmojis(t)).toLowerCase(),i;return this.normalizeWhitespace(n).toLowerCase().includes(r)}),_defineProperty(u,"isMatchedByHref",function e(t,n){return!(!t||"string"!=typeof t||void 0===n||!n.toLowerCase().includes(t.toLowerCase()))}),_defineProperty(u,"sendLogMessage",function e(t,n,r){if(r)try{var i=new Date,o=i.toTimeString().slice(0,8).replace(/:/g,"%3A")+"."+i.getMilliseconds().toString().padStart(3,"0"),a=new URL("https://trc.taboola.com/"+r+"/log/2/debug"),s;a.searchParams.set("tim",o),a.searchParams.set("type",n),a.searchParams.set("msg",JSON.stringify(t)),(new Image).src=a.toString()}catch(e){}}),_defineProperty(u,"sendCodelessDebugEvent",function e(t){var n=t.matchInfo,r=t.publisherName;this.sendLogMessage(n,"CODELESS_TRACKING",r)}),_defineProperty(u,"sendCodelessErrorEvent",function e(t){var n=t.error,r=t.functionName,i=t.publisherId,o=t.additionalContext,a=void 0===o?{}:o,s,c,l={errorMessage:"string"==typeof n?n:n&&n.message?n.message:"Unknown error",errorStack:n&&n.stack?n.stack:void 0,functionName:r,publisherId:i,additionalContext:a,timestamp:(new Date).toISOString()};this.sendLogMessage(l,"CODELESS_ERROR",p)}),_defineProperty(u,"pushEvent",function t(r){try{var i=f;if(!i)return void this.sendCodelessErrorEvent({error:"Could not find valid publisher id",functionName:"pushEvent",publisherId:null,additionalContext:{eventName:r,configPublisherId:n.publisherId,tfaFirstPublisherId:e._tfa&&e._tfa.config&&e._tfa.config.firstPublisherId}});i=parseInt(i,10),e._tfa.push({notify:"event",name:r,id:i})}catch(e){this.sendCodelessErrorEvent({error:e,functionName:"pushEvent",publisherId:f,additionalContext:{eventName:r,parsedId:i}})}}),_defineProperty(u,"getElementPath",function e(n){for(var r=[],i=n;i&&i!==t;){var o=i.tagName.toLowerCase(),a=i.id?"#"+i.id:"",s="";i.className&&(s="."+Array.from(i.classList||i.className.split(" ")).join(".")),r.unshift(o+a+s),i=i.parentElement}return r.join(" > ")}),u),h()}function h(){e._tfa&&e._tfa.config&&("complete"===t.readyState||"interactive"===t.readyState?setTimeout(function(){r[d].init()},0):t.addEventListener("DOMContentLoaded",function(){r[d].init()}))}},e.TRC.codelessTrackingInit()}(window,document,{publisherName:'psmarketing-pucsp-network',publisherId:1557663,jsScope:window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']}),function(e,t,n){var r=n.jsScope;e.TRC=e.TRC||{};var i="tfa:allow-codeless-error-reporting",o="scriptLoadFailure",a="cspViolation",s="windowError",c="codelessInitCheck",l="heavyAdIntervention";function u(){if(!isNaN(parseInt(n.publisherId,10)))return n.publisherId;if(e._tfa&&e._tfa.config&&e._tfa.config.firstPublisherId){var t=e._tfa.config.firstPublisherId;if(!isNaN(parseInt(t,10)))return t}return null}var f=u();if(f&&e._tfa&&e._tfa.config&&e._tfa.config.safeGet&&e._tfa.config.safeGet(i,!0,f)){var d,p=r["codelessTracking-"+f];if(p&&p.sendLogMessage){var h="string"==typeof n.publisherName&&-1===n.publisherName.indexOf("${")?n.publisherName:null,g=t.getElementById("codeless_script");g&&g.addEventListener("error",function(){b({error:"Script failed to load: "+(g.src||"unknown"),errorType:o,publisherId:f,additionalContext:{scriptSrc:g.src}})}),t.addEventListener("securitypolicyviolation",function(e){var t=e.blockedURI?e.blockedURI.split("?")[0]:"";t&&(t.indexOf("codeless")>-1||t.indexOf("realizeperformance")>-1||t.indexOf("code.taboola.com")>-1)&&b({error:"CSP violation: "+e.violatedDirective,errorType:a,publisherId:f,additionalContext:{blockedURI:e.blockedURI,violatedDirective:e.violatedDirective,originalPolicy:(e.originalPolicy||"").substring(0,200)}})}),e.addEventListener("error",function(e){e.filename&&r.codeless&&r.codeless.isCodelessResourceUrl(e.filename)&&b({error:e.error||e.message,errorType:s,publisherId:f,additionalContext:{filename:e.filename,lineno:e.lineno,colno:e.colno}})});var v=t.referrer&&"string"==typeof t.referrer&&t.referrer.indexOf("ads.realizeperformance.com")>-1,m=!1;try{m=!!sessionStorage.getItem("taboola-codeless-active")}catch(e){}if((v||m)&&!g){var y=!!(e._tfa&&e._tfa.config&&e._tfa.config.safeGet),S=y&&e._tfa.config.safeGet("tfa:allow-codeless-tracking",!1,f);b({error:"Codeless expected but not loaded",errorType:c,publisherId:f,additionalContext:{referrerFromRealize:v,codelessInSessionStorage:m,tfaConfigAvailable:y,featureFlagEnabled:!!S}})}"function"==typeof e.ReportingObserver&&g&&new e.ReportingObserver(function(e){var n=e.find(function(e){return e.body&&"HeavyAdIntervention"===e.body.id});n&&b({error:n.body.message||"Heavy Ad Intervention",errorType:l,publisherId:f,additionalContext:{iframeStillInDom:!!t.getElementById("taboola-codeless-events"),reportId:n.body.id,reportUrl:n.url}})},{types:["intervention"],buffered:!0}).observe()}}function b(e){var t=e.error,n=e.errorType,r=e.additionalContext||{},i,o,a={errorMessage:"string"==typeof t?t:t&&t.message?t.message:"Unknown error",errorStack:t&&t.stack?t.stack:void 0,errorType:n,publisherId:e.publisherId,additionalContext:r,timestamp:(new Date).toISOString()};p.sendLogMessage(a,"CODELESS_LOADING_ERROR",h)}}(window,document,{publisherName:'psmarketing-pucsp-network',publisherId:1557663,jsScope:window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']}),function(e,t,n){var r=t.tfaPageManager||{},i="_tfa",o=window[i]=window[i]||[],a=o.TEM||{},s={event:le,subscription:fe},c=/(\S+)taboola(\S+|)\.com\/libtrc\/unip\/(\S+)\/tfa\.js(\S+|)/,l="script[src*='/tfa.js']",u="//",f,d=["notify","id"],p="JS_PIXEL",h={name:"en",url:"item-url",referrer:"ref",timestamp:"tim",integrationType:"it"},g=-1,v={protocol:'https:',host:"trc.taboola.com",httpMethod:"get",loggerEventName:"unip",logToConsole:!0},m={EMPTY_COMMAND:"EMPTY_COMMAND",MISSING_NOTIFY:"MISSING_NOTIFY",INVALID_NOTIFY:"INVALID_NOTIFY",MISSING_NAME:"MISSING_NAME",INVALID_ID:"INVALID_ID"},y={TFA_VALIDATION_ERROR:"TFA_VALIDATION_ERROR"},S=((T={})["page_view"]=de,T),b=function(){var e={};return e[t.sharedEvents.REQUEST_ID_CREATION_TIMEOUT]="to",e[t.sharedEvents.REQUEST_ID_CREATION_ERROR]="err",e[t.sharedEvents.REQUEST_ID_CREATION_JS_ERROR]="jserr",e[t.sharedEvents.INVALID_TRK_RESPONSE]="itrkr",e}(),E=!isNaN(parseFloat(1557663)),I="callback",C="ler",T;function _(){var e=he();e.initialized&&e.domAccountId&&setTimeout(function(){for(var e=he().asyncQueue;e.length;)ge(e.shift())},0)}function w(){var e=k(),t;if(e&&e.src&&(t=e.src.replace(c,"$3")))return/^\d+$/.test(t)?parseInt(t,10):(me("Value '"+t+"' is invalid for 'id' param in script source url '"+e.src+"'. Only numeric values are allowed."),g)}function k(){for(var e=document.querySelectorAll(l),t,n=0;n0)return t}function R(){return t.eventUtils.getDateNow()}function O(e){e["ce"]="subscr"}function P(e){var t=r.getSessionDataFirstPartyCookie();void 0!==t&&t&&(e["sd"]=t)}function A(e){var t=U();t&&(e["ui"]=t)}function U(){try{var e=t.tfaUserId.getUserId(),n=r.getValue("user-id");if(e||n)return e||n}catch(e){me("Error while trying to add user-id param",e)}}function N(e){try{var n=t.tfaUserId.getClickId();n&&(e[t.tfaUserId.CLICK_ID_KEY]=n)}catch(t){me("Error while trying to addClickIdParam, params="+JSON.stringify(e),t)}}function D(e){try{var n=t.tfaUserId.getCnxClickId();n&&(e[t.cnxUtil.CNX_CLICK_ID_KEY]=n)}catch(t){me("Error while trying to addCnxClickIdParam, params="+JSON.stringify(e),t)}}function x(e,n){try{if(!o.config.safeGet("unip:add-click-id-source",!0,n))return;var r=t.tfaUserId.getClickIdSource();r&&(e["cis"]=r)}catch(t){me("Error while trying to addClickIdSourceParam, params="+JSON.stringify(e),t)}}function L(e){var n=he();n.referrer||(n.referrer=t.trk.getReferrer()),e[h.referrer]=n.referrer}function M(e,t){var n=h.url,r;we(be(e),t)&&(e[n]=e[n]||document.location.href)}function j(e){var t={},n=!1,r;for(var i in e[h.timestamp]=R(),e)!e.hasOwnProperty(i)||d.indexOf(i)>=0||(t[r=h.hasOwnProperty(i)?h[i]:i]=e[i],n=!0);return n&&t}function V(e,t){$(t),G(e,t)}function B(e){var n;if(t.privacySandbox&&t.privacySandbox.isProtectedAudienceSupported())try{n=JSON.parse(e),t.privacySandbox.joinInterestGroupsInIframe(n)}catch(e){}}function F(){200===this.status&&B(this.responseText)}function K(e){return!!(t.privacySandbox&&t.privacySandbox.isProtectedAudienceSupported()&&e&&"pre_d_eng_tb"!==e[h.name])&&(e["psb"]="true",!0)}function G(e,n){var r=Ee(e)+u+Ie(e,n),i,o;te(n,e),H(n,e),(o=K(n))&&(i=F);try{t.TRCLogger[v.httpMethod](r,v.loggerEventName,n,e,i)}catch(t){me("Error while trying to send to server event with id '"+e+"' and params '"+JSON.stringify(n)+"'.",t)}}function $(e){var t=U(),n=e[I];if(n){if(!t)return ye("No UserId to notify callback"),void delete e[I];if("function"!=typeof n)return ye("Callback function parameter is not a function "+n),void delete e[I];try{n({userId:t})}catch(e){me("Error calling advertiser callback",e)}delete e[I]}}function H(e,t){A(e),N(e),x(e,t),D(e),L(e),se(e),M(e,t),J(e),q(e),Z(e,t),z(e,t),ee(e,t),Q(e)}function q(e){var n=t.lastExternalReferrer.getLastExternalReferrer();n&&(e[C]=n)}function Q(e){var t=h.integrationType,n=e[t];n?n!==p&&(r.currentIntegrationType=n):r.currentIntegrationType?e[t]=r.currentIntegrationType:(r.scriptIntegrationType||(r.scriptIntegrationType=ke(),r.scriptIntegrationType&&r.scriptIntegrationType!==p&&(r.currentIntegrationType=r.scriptIntegrationType)),r.scriptIntegrationType?e[t]=r.scriptIntegrationType:e[t]=p)}function z(e,n){var r;o.config.safeGet("unip:collect-cookie-banner-consent:enabled",!0,n)&&(r=t.trk.parseCookieBanner())&&(e.cbp=r.cookieBannerProvider.providerName,e.cbpv=r.cookieBannerProvider.version,r.cookieBannerConsent.tcString&&o.config.safeGet("unip:send-tc-string:enabled",!0,n)?(e.tcs=r.cookieBannerConsent.tcString,void 0!==r.cookieBannerConsent.gdprApplies&&(e.ga=r.cookieBannerConsent.gdprApplies),void 0!==r.cookieBannerConsent.cmpStatus&&(e.cmps=r.cookieBannerConsent.cmpStatus)):r.cookieBannerConsent.consentData&&(e.cbcd=r.cookieBannerConsent.consentData))}function J(e){e&&a&&a.ESU&&a.ESU.getIsLocalStorageAvailable()&&(W(e),Y(e),X(e))}function W(e){a.TOS&&(e.tos=a.TOS.getTimeOnSite())}function Y(e){if(a.SSD){var n=a.SSD.getMetric(),r=t.eventUtils.hashString(window.location.href);a.SSD.isURLVisited(r)||n++,e.ssd=n}}function X(e){a.SCD&&(e.scd=a.SCD.getScrollDepth())}function Z(e,n){o.config.safeGet("unip:add-ccpa-params",!0,n)&&t.trk.getCcpaParam(function(t){t&&(e["ccpaPs"]=t)})}function ee(e,n){if(o.config.safeGet("unip:add-gpp-params",!1,n))try{t.trk.getGppParam(function(t){t&&(e.cmpStatus=0,e.applicableSections=t.pingData.applicableSections,e.gppString=t.pingData.gppString)})}catch(e){}}function te(e,t){re(e),ie(e,t),oe(e,t)}function ne(e,t){O(t),P(t),ue(e,t)}function re(e){e["vi"]=t.trk.getViewId()}function ie(e,n){var r=t.trk.getPublisherRequestId(n);r&&(e["ri"]=r)}function oe(e,n){var r=t.trk.getPublisherSessionData(n);r&&(e["sd"]=r)}function ae(e,t){e["mrir"]=t}function se(e){e["cv"]=n}function ce(e,n){var r=he(),i;if(!t.trk.getPublisherRequestId(e)){if(t.trk.isRequestProcessing(e))return void r.messageDelayer.delayMessage(e,n,{successCallback:V,failCallback:function e(t,n,r,i){var o=b[i];o||(o=i),ae(n,o),G(t,n)},timeoutInMillis:Se(e)});ae(n,t.trk.getRequestStatus(e))}G(e,n)}function le(e,n){var r=j(e),i=be(r),o=S[i];if(n=parseInt(n,10),!o||!o(r,n)){if(Te(n)){if(_e(n))return void ce(n,r);t.trk.getPublisherRequestId(n)||ae(r,"wffo")}else ae(r,"ttd");G(n,r)}}function ue(e,t){void 0!==e["sourceurl"]&&e["sourceurl"]&&(t["surl"]=e["sourceurl"])}function fe(e,t){var n=j(e);ne(e,n),G(parseInt(t,10),n)}function de(e,n){var r=he(),i=!1;return n&&(i=Ce(n),H(e),r.pageViewAccountIds[n]=parseInt(n,10),e["external-pixel-id"]&&(r.externalPixelId=e["external-pixel-id"]),e["external-source"]&&(r.externalSource=e["external-source"]),t.eventUtils.dispatchEvent(t.sharedEvents.PAGE_VIEW,{accountId:n,publisherIdType:t.publisherIdType.ID,pageViewInitiator:t.pageViewInitiator.TFA,isUnifiedPageView:i,metadata:e})),i}function pe(e){return e?e.notify?s.hasOwnProperty(e.notify)?e.name?!(e.hasOwnProperty("id")&&!/^\d+$/.test(e.id))||(ve(m.INVALID_ID,e,"Value '"+e.id+"' is invalid for 'id' field in command '"+JSON.stringify(e)+"'. Only numeric values are allowed."),!1):(ve(m.MISSING_NAME,e,"Mandatory 'name' field is missing in command '"+JSON.stringify(e)+"'."),!1):(ve(m.INVALID_NOTIFY,e,"Value '"+e.notify+"' is invalid for 'notify' field in command '"+JSON.stringify(e)+"'."),!1):(ve(m.MISSING_NOTIFY,e,"Mandatory 'notify' field is missing in command '"+JSON.stringify(e)+"'."),!1):(ve(m.EMPTY_COMMAND,e,"Command is '"+e+"'."),!1)}function he(){return window&&window[i]&&window[i].TUP||{}}function ge(e){var t,n;if(pe(e))if(t=he(),n=e.id||t.domAccountId){if(n!==g)try{s[e.notify](e,n)}catch(t){me("An error occurred while handling command '"+JSON.stringify(e)+"'.",t)}}else t.asyncQueue.push(e)}function ve(e,n,r){var i=he();t.eventUtils.dispatchEvent(y.TFA_VALIDATION_ERROR,{accountId:i.domAccountId,errorCode:e,command:n}),me(r)}function me(e,t){v.logToConsole&&ye(e,t)}function ye(e,t){t?console.log("Taboola Pixel: "+e,t):console.log("Taboola Pixel: "+e)}function Se(e){return 500+o.config.safeGet("tfa:trk:tracking-request-timeout",2e3,e)}function be(e){return e[h.name]}function Ee(e){return o.config.safeGet("tfa:default-protocol",v.protocol,e)}function Ie(e,t){var n=be(t),r;return o.config.safeGet("tfa:event-host-map",{},e)[n]||v.host}function Ce(e){return Te(e)&&o.config.safeGet("tfa:trk:is-unified-page-view",!1,e)}function Te(e){return o.config.safeGet("tfa:trk:enabled",!0,e)}function _e(e){return o.config.safeGet("tfa:trk:wait-for-request-id",!0,e)}function we(e,t){var n=o.config.safeGet("tfa:add-item-url:event-list",[],t);return"*"===n||n.indexOf(e)>=0}function ke(){var e=k(),t;if(e&&e.src&&(t=e.src.match(/[?&]it=([^&]+)/))&&t[1])try{return decodeURIComponent(t[1])}catch(e){return t[1]}}function Re(){var e=o.TUP=o.TUP||{},n=o.config.safeGet("tfa:get-publisher-id-from-baker",!1);e.domAccountId=e.domAccountId||(n&&E?1557663:w()),e.initialized||(e.push=o.TUP.push||ge,e.initialized=!0,e.asyncQueue=[],e.EVENTS=y,e.pageViewAccountIds={},e.messageDelayer=new t.MessageDelayer("publisherId",t.sharedEvents.REQUEST_ID_CREATED,[t.sharedEvents.REQUEST_ID_CREATION_JS_ERROR,t.sharedEvents.REQUEST_ID_CREATION_ERROR,t.sharedEvents.REQUEST_ID_CREATION_TIMEOUT,t.sharedEvents.INVALID_TRK_RESPONSE]),a&&a.init&&a.init(),r.scriptIntegrationType=ke(),r.scriptIntegrationType&&r.scriptIntegrationType!==p&&(r.currentIntegrationType=r.scriptIntegrationType)),_()}Re()}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC'],"20260916-1-RELEASE"),function(e,t,n){var r="_tfa",i,o={orderid:"orderid",currency:"currency",revenue:"revenue",quantity:"quantity",name:"name",attributionGroup:"attributionGroup"},a={type:"marking-type"},s='https:'+"//trc.taboola.com/{$publishreId}log/3/{$logType}?",c=/(\S+)taboola(\S+|)\.com\/libtrc\/(\S+)\/tfa\.js(\S+|)/,l="unip/",u=[],f=[],d="_tecq",p="_dcojobs",h=!isNaN(parseFloat(1557663));function g(e){var t;switch(e.notify){case"action":t=u;break;case"mark":t=f;break;case"event":case"subscription":t=i.TUP;break;case"ecevent":var n=i.config&&i.config.safeGet("tfa:ecomm:enabled",!1,e.id),r=i.config&&i.config.safeGet("tfa:ecomm:cnx-enabled",!1,e.id);n||r?t=window[d]=window[d]||[]:i.config&&i.config.safeGet("tfa:dco:jobs:enabled",!1,e.id)&&(t=window[p]=window[p]||[]);break;default:return}t&&t.push(e)}function v(){return n.tfaUserId&&n.tfaUserId.getUserId()?"&ui="+encodeURIComponent(n.tfaUserId.getUserId()):""}function m(){return n.tfaUserId&&n.tfaUserId.getClickId()?"&"+n.tfaUserId.CLICK_ID_KEY+"="+encodeURIComponent(n.tfaUserId.getClickId()):""}function y(){var t,n,r,i;if(r=e._tfa.config.safeGet("tfa:get-publisher-id-from-baker",!1)&&h?1557663:w())for(t=0,n=u.length;t=0?"TRC":'TFASC']);