/*! 20241218-12-RELEASE */ function _typeof(t){"@babel/helpers - typeof";return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}!function(t){var e='TFASC';e.indexOf("{jsScope}")>-1&&(e="TRC"),t[e]||(t[e]={})}(window),function(t,e){t.TRC=t.TRC||{};var n=function t(){return!0},r=function n(r,i,o,a){var s=r+"/"+encodeURIComponent(o||t.TRC.publisherId)+"/log/3"+"/"+i;return a&&(s+="?"+e.TRCLogger.formatParams(a)),s},i=function e(r,i,a,s){var c,u=new(t.XDomainRequest||t.XMLHttpRequest);return u.open(r,i),u.onload="function"==typeof s?s:n,u.onerror=n,u.ontimeout=n,u.onprogress=n,u.withCredentials=!0,a&&o(u,a),u},o=function t(e,n){for(var r in n)n.hasOwnProperty(r)&&e.setRequestHeader(r,n[r])};t.TRC.TRCLogger=e.TRCLogger={post:function n(o,a,s,c,u,l){var f=r(o,a,c,u),d=i("POST",f);l&&"function"==typeof t.navigator.sendBeacon?t.navigator.sendBeacon(f,e.TRCLogger.formatBeaconParams(s)):(d.setRequestHeader&&d.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),d.send(e.TRCLogger.formatParams(s)))},get:function t(e,n,o,a,s){if(o.headers){var c=o.headers;delete o.headers}var u=r(e,n,a,o),l;i("GET",u,c,s).send()},formatParams:function t(e){var n=[];for(var r in e)e.hasOwnProperty(r)&&n.push(encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return n.join("&")},formatBeaconParams:function t(e){var n="",r;for(var i in e)e.hasOwnProperty(i)&&(n+=i+"="+encodeURIComponent(e[i])+"&");return new Blob([n.slice(0,-1)],{type:"application/x-www-form-urlencoded"})},reportES:function t(n){if(e&&e.util&&e.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(t,e){if(e&&!e.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=e.eventUtils.getDateNow();if(s){this.timeoutHandles[a]&&(clearTimeout(this.timeoutHandles[a]),this.timeoutHandles[a]=null);var u=[].concat(s);this.delayedEventsMap[a]=[];for(var l=0;l=0?"TRC":'TFASC']),function(t){t.TRC=t.TRC||{},t.TRC.sharedObjects=t.TRC.sharedObjects||{},t.TRC.sharedObjects.loadedScripts=t.TRC.sharedObjects.loadedScripts||{},t.TRC.sharedObjects.loadedPixels=t.TRC.sharedObjects.loadedPixels||{}}(window),function(t,e,n){!function(){if("function"==typeof t.CustomEvent)return!1;function n(t,n){n=n||{bubbles:!1,cancelable:!1,detail:void 0};var r=e.createEvent("CustomEvent");return r.initCustomEvent(t,n.bubbles,n.cancelable,n.detail),r}n.prototype=t.Event.prototype,t.CustomEvent=n}(),n.eventUtils=n.eventUtils||{},n.eventUtils.dispatchEvent=n.eventUtils.dispatchEvent||function(t,e){"function"==typeof CustomEvent&&document.dispatchEvent(new CustomEvent(t,{detail:e||{}}))},n.eventUtils.safeAddEventListener=n.eventUtils.safeAddEventListener||function(t,e){document.addEventListener(t,function(t){try{e.call(this,t)}catch(t){}})},n.eventUtils.safeAddEventListenerToWindow=n.eventUtils.safeAddEventListenerToWindow||function(t,e){window.addEventListener(t,function(t){try{e.call(this,t)}catch(t){}})},n.eventUtils.getDateNow=n.eventUtils.getDateNow||function(){var t,e;if(Date.now){if("number"==typeof(t=Date.now()))return t;if("number"==typeof(e=Number(t)))return e}return(new Date).getTime()},n.eventUtils.hashString=n.eventUtils.hashString||function(t){var e=0;if(0==t.length)return e;for(var n=0;n=0?"TRC":'TFASC']),function(t,e){t._tfa=t._tfa||[],t._tfa.config||(t._tfa.TfaConfig=function(){this.configMap={}},t._tfa.TfaConfig.prototype={safeGet:function t(e,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])[e])?n:a}catch(t){return n}},hasValidConfig:function t(){return!!this.firstPublisherId},addConfig:function t(e,n){"string"==typeof n||n instanceof String||(this.firstPublisherId||(this.firstPublisherId=e),this.configMap[""+e]=n)}},t._tfa.config=new t._tfa.TfaConfig,t._taboola=t._taboola||[]),t._tfa.config.addConfig(1670027,{"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","trc:user-history:conversion-incrementality-enable":true,"tfa:trk:topics-enabled":true,"tfa:allow-cross-domain-tracking":true})}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(t,e,n){"use strict";var r=t[n.jsScope],i={map:function t(e,n){if("function"==typeof Array.prototype.map)return n.map(e);for(var r=[],i=0;i=r?i.slice(r-1).join(n):[])},Y=function t(e){if(!e)throw new Error("Invalid URL!");this.href=e;var n=z(e,"#",2);return this.hash=n.length>1?"#"+n.pop():"",e=n[0],n=z(e,"?",2),this.search=n.length>1?"?"+n.pop():"",e=n[0],n=z(e,"://",2),this.protocol=n.length>1?n.shift()+":":"",e=n[0],n=z(e,"/",2),this.pathname=n.length>1?"/"+n.pop():"/",e=n[0],n=z(e,"@",2),this.auth=n.length>1?n.shift():"",e=n[0],n=z(e,":",2),this.port=n.length>1?parseInt(n.pop()):0,this.host=n[0],this},X={"http:":1,"https:":1};Y.prototype.toString=function(t){return(this.host?this.protocol+"//"+(this.auth?this.auth+"@":"")+this.host+(this.port?":"+this.port:""):"")+this.pathname+this.search+(t?"":this.hash||"")},Y.prototype.switchProtocol=function(t,e){var n=this instanceof Y?this:new Y(this),r;return X[t]&&(e&&"https:"===n.protocol||(n.protocol=t)),(r=n.toString(!1)).length>1?r:""},Y.prototype.getParameter=function(t){for(var e,n=(this instanceof Y?this:new Y(this)).search.substr(1).split(/&/),r=0;r0?n[n.length-1]:null},lt=function t(){r.eventUtils.dispatchEvent(M,x)},ft=function e(i,o){if(t.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||(t.TRC.events_ri=a),i[S]=a,i[E]=C,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[E]!==C&&(i[E]=P,r.eventUtils.dispatchEvent(r.sharedEvents.REQUEST_ID_CREATION_ERROR,{publisherId:i.publisherId})),i.isMediaRequest||(t.TRC.trkRequestStatus=!(O.indexOf(i[E])>=0)),t.TRC.alertVVResponseLoaded&&t.TRC.alertVVResponseLoaded(n.tblVersion),et(i),lt()},dt=function(){var t,e=function t(){try{return decodeURI(top.window.document.referrer)}catch(t){}return null},n=/https?:\/\/\w+\.taboola(?:syndication)?\.com/,r=function t(e){return n.test(e)?e.split("?")[0]:e.substr(0,400)},i,o=[function t(){for(var e=document.head.getElementsByTagName("link"),n=0;nn&&(r=$.substring(0,n-1),$=r.substring(0,r.lastIndexOf("&"))),$},vt=function t(e){var n=Et("usprivacy");if("function"==typeof __uspapi)try{__uspapi("getUSPData",1,function(t,r){r&&t?e(t.uspString):n&&e(n)})}catch(t){throw n&&e(n),new Error("Error while calling __uspapi for getUSPData")}else n&&e(n)};function mt(t,e,n){if(e){try{window.__gpp("removeEventListener",function(){},t.listenerId)}catch(t){}n(t)}}var St=function t(e){if("function"==typeof e)try{var n=function t(n,r){mt(n,r,e)};window.__gpp("addEventListener",n)}catch(t){}},Et=function t(e){var n=e+"=",r="; "+document.cookie;if(r)for(var i=r.split(";"),o=0;o=0&&(n=n.substr(0,e))},r["truncate-at"]||[]);for(var a=new Y(n),s=i.objKeys(r),c=0;c=0&&(a.hash="#"+h)})}}return a.pathname||(a.pathname="/"),"item-id"===e?a.toString().toLowerCase():a.toString()},Ct=function t(){return At(ht(),"ampproject.net")},Pt=function t(){return At(ht(),"instantarticles.fb.com")},At=function t(e,n){try{return void 0!==e&&void 0!==n&&e.indexOf(n)>0}catch(t){return!1}},Ot=function t(e,r,i){var o=["paramUrl","meta","canonical","og","location"],a={paramUrl:kt,canonical:Ut,og:Dt,location:Nt},s=n.urlExtractOrder&&Array.isArray(n.urlExtractOrder)?n.urlExtractOrder:o,c=0,l,f,d,h="",p=function t(e,n){return wt.call(this,e,n,i)};for(s.push("location");c5)return i.call(this,n,r.trk.encodeItemUrlIfNeeded(o[a].content));return null},Nt=function e(n,r){var o=function e(){var n=t.location,r=i.filter(function(t){return 0!==t.search("trc_")&&"taboola-debug"!==t},n.search.replace(/^\?/,"").split("&")).join("&");return n.origin+n.pathname+"?"+r};return r.call(this,n,o())},Lt=function t(e){try{var n=i.objKeys(e[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(t){return"video"}},Mt=function t(e){return localStorage.getItem(e+":session-data")},xt=function t(){return localStorage.getItem("taboola global:user-id")},Vt=function t(){return Ot("item-url",n.normalizeItemUrl,n.prenormalizeUrlRules)},jt=function t(e){for(var n,r=/^(.*\/libtrc\/.+\/)(?:(?:trk)|(?:tfa))\.js(?:\?(.*))?$/,i=0;i1?s[r[i].index]:s[0];return a},Ft=function e(){if(!t.TRC.AdServerManager){var r=Bt();t.TRC.VVReady=Kt,rt("//"+r+"/libtrc/vv."+n.tblVersion+".js")}},Kt=function e(){t.TRC.adManager=new t.TRC.AdServerManager(n.vvConfig,n.tblVersion),t.TRC.adManager.startVV().then(function(){t.TRC.adManager.run()})},$t=function t(e,n){return e?e[n]:e},Gt=function t(e,n,r){if(0===i.objKeys(r).length||D[""+e])return e;var o=document.createElement("a");o.href=f;var a=(o.host||location.host).toLowerCase(),s=(o.href||location.href).toLowerCase(),c=U[n],u=$t(r[a],c),l="/",d=["m","mobile","www2","www3"],h=[],p,g,v,m,S;if(!u){for(tt(r,h),h.sort(function(t,e){return t[0].length>e[0].length?-1:t[0].length0){if(s.match(v)){u=$t(h[p][1],c);break}if(v.indexOf("www.")>-1&&s.match(v.replace("www.",""))){u=$t(h[p][1],c);break}}else if(a.match(v)){u=$t(h[p][1],c);break}if(!u&&a.indexOf("www.")<0){for(p=0,g=d.length;p-1},!1)},hasRequestEnded:function t(e){return Ht(e,function(t){return O.indexOf(t)>-1||!(k.indexOf(t)>-1)},!1)},getPublisherRequestId:function t(e){var n=ut(e);return n&&n[E]===C?n[S]:null},getPublisherSessionData:function t(e){var n=Mt(e);return n||null},getViewId:function t(){return K},getReferrer:dt,getCcpaParam:function t(e){return vt(e)},getGppParam:function t(e){return St(e)},COOKIE_BANNER_MAP:H(),parseCookieBanner:function t(){var e,n;try{return(n=Q())?n:null===(e=r.trk.parseCookieBannerProvider())?null:(r.trk.parseCookieBannerConsent(e),Q())}catch(t){return null}},parseCookieBannerProvider:function t(){var e,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)&&(e=r.trk.COOKIE_BANNER_MAP[n]).isCookieBannerOfProvider())return r.trk.cookieBannerProvider={providerName:e.providerName,version:e.version},e.addListenerForConsentChange(),e;return null},parseCookieBannerConsent:function t(e){try{e.isCookieBannerOpen()||e.parseConsent()}catch(t){}},loadPixels:function e(n){try{return qt(n,t.TRC.sharedObjects.loadedPixels,function(t){var e=new Image;return e.src=t,e})}catch(t){}},loadScriptTags:function e(n){try{return qt(n,t.TRC.sharedObjects.loadedScripts,function(t){return rt(t,null,null,!0)})}catch(t){}},rboxNotLoaded:function e(){return!(t.TRC&&t.TRC.utm)},rboxTrcProtocol:function t(){return n.rboxTrcProtocol},observeTopics:function t(){try{"browsingTopics"in e&&"function"==typeof e.browsingTopics&&e.featurePolicy&&e.featurePolicy.allowsFeature("browsing-topics")&&fetch("https://psb.taboola.com/topics_api",{browsingTopics:!0})}catch(t){}},hasSuperUTFSeq:function t(e){for(var n=e.split("").map(function(t){return t.charCodeAt(0)}),i=0,o=0;o=3)return!0;i++}return!1},isSuperUTF:function t(e){var n;return e>1200},encodeItemUrlIfNeeded:function t(e){try{if(r.trk.hasSuperUTFSeq(e))return encodeURI(e)}catch(t){}return e}},J()&&!t._tfa.config.safeGet("tfa:trk:enabled",!0,n.bakedPublisherId)||r.trk.init()}(window,document,{bakedPublisherId:1670027,bakedPublisherName:'madhumulya',tblVersion:"20241218-12-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(t,e){t._tfa=t._tfa||[],e.useStorageDetection=t.TRC.useStorageDetection=t.TRC.useStorageDetection||!0,e.text=e.text||{},e.text.lsplit=e.text.lsplit||function(t,e,n){var r=t.split(e);return r.slice(0,n-1).concat(r.length>=n?r.slice(n-1).join(e):[])},e.tfaUtil=e.tfaUtil||{},e.tfaUtil.safeAddParam=e.tfaUtil.safeAddParam||function(t,e,n){var r,i;n&&e&&t&&(r=encodeURIComponent(t),i=encodeURIComponent(e),n.push(r+"="+i))},e.tfaUtil.getParameterByName=e.tfaUtil.getParameterByName||function(t,e){if(!e||!t)return null;t=t.replace(/[\[\]]/g,"\\$&");var n,r=new RegExp("[?&]"+t+"(=([^&#]*)|&|#|$)").exec(e);return r?r[2]?decodeURIComponent(r[2].replace(/\+/g," ")):"":null};var n=t.TRCImpl=t.TRCImpl||{};n.global=n.global||{},t.__trcError=t.__trcError||function t(){}}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(t,e){var n="taboola global",r="trctestcookie";function i(){for(var t="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),document.cookie=t+"="+escape(e.join("|"))+";path=/;expires="+i.toUTCString()}return this.getValue=function(t){return n.hasOwnProperty(t)?n[t]:null},this.setValue=function(t,e){n[t]=e,l()},this.removeKey=function(t){delete n[t],l()},this}function o(t){var e=t||{};return this.getValue=function(t){return e[t]?e[t]:null},this.setValue=function(t,n){e[t]=n},this.removeKey=function(t){delete e[t]},this.getData=function(){return e},this}function a(e){return this.getValue=function(n){return t[e+"Storage"].getItem(n)},this.setValue=function(n,r){try{t[e+"Storage"].setItem(n,r)}catch(t){}},this.removeKey=function(n){try{t[e+"Storage"].removeItem(n)}catch(t){}},this}function s(e){var n=t[e+"Storage"],r=(new Date).getTime()+"",i="_taboolaStorageDetection";try{if(n.setItem(i,r),n.getItem(i)==r)return n.removeItem(i),n}catch(t){}return null}function c(n){try{if(t.localStorage instanceof Storage&&e.useStorageDetection&&s(n))return new a(n)}catch(t){return null}}function u(t){var e=[c("local"),new i,c("session")];try{for(var n=0,r=e;n=0?"TRC":'TFASC']),function(t,e,n){var r=n.tfaPageManager,i="https://",o="tblci",a="TABOOLA-DO-NOT-TRACK",s="#"+o;function c(t,e){t&&e&&(e[t]=!0)}function u(t,e,n){for(var r={},i=0;i1}n.tfaUserId={initialized:!1,userId:null,clickId:null,getUserId:function t(){return this.userId},getClickId:function t(){return this.clickId},getHttpsPrefix:function t(){return i},sendUserIdsToTrc:function e(r,i,o,a){var s,c='https:',l=[];if(u(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,t._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 e(n){return!n||!t._tfa.config.safeGet("tfa-uid:filter-do-not-track",!0)||-1===n.indexOf(a)},readAndStoreUserId:function t(){var e=this.extractUserIdFromReferrer(),n=r.getValue("user-id"),i=r.getUserIdFirstPartyCookie();this.isUserCanBeTracked(e)||(e=void 0),this.isUserCanBeTracked(n)||(n=void 0),this.isUserCanBeTracked(i)||(i=void 0),this.sendUserIdsToTrc(e,n,i,this.getClickId()),e&&(r.storeUserId(e),i&&r.getFirstPartyCookie().setValue(r.TABOOLA_GLOBAL_KEY+":"+"user-id",e)),this.userId=e||n||i},readAndStoreClickIdParam:function t(){var e=this.extractClickIdFromUrl(this.getWindowLocation().toString())||this.extractClickIdFromUrl(this.getReferrer()),n=r.getValue(o);e&&r.storePublisherValue(r.TABOOLA_GLOBAL_KEY,o,e),this.clickId=e||n},extractUserIdFromReferrer:function t(){var e=this.getReferrer();if(e&&e.indexOf("taboola")>-1)return n.tfaUtil.getParameterByName("ui",e)},extractClickIdFromUrl:function t(e){if(e){var r=e.length>1&&-1!==e.indexOf("#")?e.substring(e.indexOf("#")):"",i;if(i=n.tfaUtil.getParameterByName(o,e))return i;if(r&&r.length>s.length&&0===r.indexOf(s))return r.substr(s.length)}},getWindowLocation:function e(){return t.location},getReferrer:function t(){return e.referrer},init:function t(){this.initialized||(this.readAndStoreUserId(),this.readAndStoreClickIdParam(),this.initialized=!0)}},n.tfaUserId.init(),n.tfaUserId.CLICK_ID_KEY=o}(window,document,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(t,e){var n="_tfa",r=t[n]=t[n]||[],i,o,a,s,c=6*60*60*1e3,u="eng_mt",l="crossSessionsData",f=36,d;function h(t,e,n){var r=this.getTimeLeftForSession(t,this.getSessionDuration(),e);r<0&&(r=0),setTimeout(function(){n()},r)}function p(t){return t.ver&&t.ver===this.getDataVersion()}var g=function t(){};g.prototype={constructor:g,init:function t(n){if(d=r.config.safeGet("tfa:engagement:session-duration-in-milliseconds",c),!this.isInitialized()){var i=e.eventUtils.getDateNow(),o=this.getSessionDataFromStorage();if(this.getIsLocalStorageAvailable())return a=o&&o.sessionStartTime,h.call(this,o,i,n),a&&!this.isSessionInvalid(o)||(a=i,this.persistDefaultValues(a)),s=!0,this}},getStorageKey:function t(){return u},getCrossSessionsData:function t(e){var n=e&&e.getValue(this.getStorageKey()),r=n&&JSON.parse(n);return r&&r[l]},resetStorageMetricData:function t(){var n=e.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),r=this.getCrossSessionsData(n),i={crossSessionsData:r};n.setValue(this.getStorageKey(),r?JSON.stringify(i):"")},hasOnlyCrossSessionData:function t(e,n){return e&&1===e.length&&n.hasOwnProperty(l)},isSessionInvalid:function t(e){if(!e)return!0;var n=Object.keys(e);return this.hasOnlyCrossSessionData(n,e)},getSessionDataFromStorage:function t(){var n,r;n=e.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:!p.call(this,r)||this.hasSessionEnded()?(this.resetStorageMetricData(),r):r},hasSessionEnded:function t(){return!!s&&(!a||e.eventUtils.getDateNow()-a>this.getSessionDuration())},persistDefaultValues:function t(n){var r=e.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage");if(r){var i={ver:f,sessionStartTime:n,scrollDepth:0,sessionDepth:[],timeOnSite:0},o=this.getCrossSessionsData(r);o&&(i[l]=o),r.setValue(this.getStorageKey(),JSON.stringify(i))}},persistSpecificMetricsData:function t(n,r){var i=e.tfaPageManager.getLocalStorageImplementation("strict-w3c-storage"),o;i&&n&&(o=this.getSessionDataFromStorage())&&(o[n]=r,i.setValue(this.getStorageKey(),JSON.stringify(o)))},getCrossSessionsDataKey:function t(){return l},getSessionDuration:function t(){return d},getDataVersion:function t(){return f},getIsLocalStorageAvailable:function t(){return o},getSessionStartTime:function t(){return a},getTimeLeftForSession:function t(e,n,r){return e&&a?a+n-r:n},isInitialized:function t(){return s}},(i=r.TEM=r.TEM||{}).ESU=i.ESU||new g}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(t,e){var n="_tfa",r;function i(t,e){this.storageUtils.persistSpecificMetricsData(t,e)}var o=function t(){};o.prototype={constructor:o,init:function t(e,n,r){this.isValid=e&&n&&r,this.storageUtils=e,this.visibilityListener=r,this.refreshFromStorage(),this.initLastVisibleStartTime(),this.visibilityListener.subscribeToEvent(this.handleVisibilityChange.bind(this)),n.subscribeToEvent(this.handleStorageChange.bind(this))},getStorageKey:function t(){return"timeOnSite"},initLastVisibleStartTime:function t(){this.isValid&&(this.lastVisibleStartTime=e.eventUtils.getDateNow())},refreshFromStorage:function t(){if(this.isValid){var e=this.storageUtils.getSessionDataFromStorage(),n=0;e&&e[this.getStorageKey()]&&(n=e[this.getStorageKey()]||0),this.timeOnSite=n}},calcTimeOnSite:function t(){if(this.isValid)return this.lastVisibleStartTime?this.timeOnSite+(e.eventUtils.getDateNow()-this.lastVisibleStartTime):this.timeOnSite},handleVisibilityChange:function t(){this.isValid&&(this.visibilityListener.getIsPageHidden()?(this.timeOnSite=this.calcTimeOnSite(),i.call(this,this.getStorageKey(),this.timeOnSite)):this.lastVisibleStartTime=e.eventUtils.getDateNow())},handleStorageChange:function t(){this.refreshFromStorage()},getTimeOnSite:function t(){if(this.isValid)return this.visibilityListener.getIsPageHidden()?this.timeOnSite:this.calcTimeOnSite()}},(r=t[n]=t[n]||[]).TEM=r.TEM||{},r.TEM.TOS=r.TEM.TOS||new o}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(){var t="_tfa",e,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 t}function o(t,e){this.storageUtils.persistSpecificMetricsData(t,e)}function a(t,e){var n;return function(){var r=this,i=arguments;clearTimeout(n),n=setTimeout(function(){t.apply(r,i)},e)}}var s=function t(){};s.prototype={constructor:s,init:function t(e,n){this.storageUtils=e||{},n.subscribeToEvent(this.handleStorageChange.bind(this)),this.refreshFromStorage(),this.initEventListeners(),this.updateMeasurements(),this.calcMaxScrollPercentage()},getStorageKey:function t(){return"scrollDepth"},getScrollDepth:function t(){return n||this.calcMaxScrollPercentage(),this.maxScrollPercentage},getMaxScrollableAmount:function t(){return n||(this.maxScrollableAmount=i()),this.maxScrollableAmount},initEventListeners:function t(){window.addEventListener("resize",a(this.onResize.bind(this),100)),window.addEventListener("scroll",a(this.onScroll.bind(this),50))},refreshFromStorage:function t(){var e=this.storageUtils.getSessionDataFromStorage(),n=0;e&&e[this.getStorageKey()]&&(n=e[this.getStorageKey()]||0),this.maxScrollPercentage=n},onResize:function t(){this.updateMeasurements()},onScroll:function t(){this.calcMaxScrollPercentage()},updateMeasurements:function t(){this.winHeight=window.innerHeight,this.maxScrollableAmount=i()},calcMaxScrollPercentage:function t(){this.updateMeasurements();var e=0===this.maxScrollableAmount?0:Math.floor(window.pageYOffset/this.maxScrollableAmount*100);e>this.maxScrollPercentage&&(this.maxScrollPercentage=e,o.call(this,this.getStorageKey(),this.maxScrollPercentage))},handleStorageChange:function t(){this.refreshFromStorage()}},(r=(e=window[t]=window[t]||[]).TEM=e.TEM||{}).SCD=r.SCD||new s}(),function(t,e){var n,r,i=t["_tfa"].TEM,o=function t(){};o.prototype={constructor:o,init:function t(n,r,i){this.storageUtils=n,this.refreshFromStorage(),e.eventUtils.safeAddEventListener(i,this.handleUnipPageView.bind(this)),r.subscribeToEvent(this.handleStorageChange.bind(this))},getKey:function t(){return"ssd"},getStorageKey:function t(){return"sessionDepth"},setState:function t(e){this.visitedUrls={};for(var n=0;n=0?"TRC":'TFASC']),function(t){var e,n=t["_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",u,l,f=function t(){};f.prototype={init:function t(e){u=n.config.safeGet(s,o),l=n.config.safeGet(a,i),this.storageUtils=e,this.updateCrossSessionsData(this.storageUtils.getSessionStartTime())},updateCrossSessionsData:function t(e){var n=this.updateData(e);return this.storageUtils.persistSpecificMetricsData(this.storageUtils.getCrossSessionsDataKey(),n),n},updateData:function t(e){var n=this.getCrossSessionsDataFromStorage()||{};return n[c]=this.getSessionsHistory(e),n},resetCrossSessionsData:function t(){this.storageUtils.persistSpecificMetricsData(this.storageUtils.getCrossSessionsDataKey(),"")},getCrossSessionsDataFromStorage:function t(){var e=this.storageUtils.getSessionDataFromStorage();return e&&e[this.storageUtils.getCrossSessionsDataKey()]},getFilteredSessionsHistory:function t(e,n){var r=e?this.removeOldSessions(e,n):[];if(!r.indexOf(n)>-1&&!this.isInPreviousSession(r,n)){for(;r.length>u-1;)r.shift();r.push(n)}return r},removeOldSessions:function t(e,n){for(var r=[],i=0;ie},getSessionsHistory:function t(e){var n=this.getCrossSessionsDataFromStorage(),r=n?n[c]:[];return this.getFilteredSessionsHistory(r,e)},isInPreviousSession:function t(e,n){return!(!Array.isArray(e)||!e.length)&&n-e[e.length-1]=0?"TRC":'TFASC']),function(t,e){var n="_tfa",r,i=function t(){};i.prototype={constructor:i,init:function t(e){this.runningId=0,this.subscribers={},this.storageUtils=e,this.initListener()},initListener:function t(){e.eventUtils.safeAddEventListenerToWindow("storage",this.handleStorageChange.bind(this))},handleStorageChange:function t(e){e&&e.key===this.storageUtils.getStorageKey()&&this.notify(e)},subscribeToEvent:function t(e){var n=this.runningId++;return this.subscribers[n]=e,function(){delete this.subscribers[n]}.bind(this)},notify:function t(e){Object.keys(this.subscribers).forEach(function(t){this.subscribers[t](e)}.bind(this))}},(r=t[n]=t[n]||[]).TEM=r.TEM||{},r.TEM.storageListener=r.TEM.storageListener||new i}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(t,e){var n="_tfa",r=t[n]=t[n]||[],i,o=r.TEM=r.TEM||{},a=o.ESU||{},s=o.SCD||{},c=o.SSD||{},u=o.TOS||{},l=o.returnVisits||{},f=o.crossSessionsUtils||{},d=o.visibilityListener||{},h=o.storageListener||{},p=1500,g=50,v=3e4,m="numOfTimesMetricsSent",S="pre_d_eng_tb",E={SESSION_END:"SESSION_END"},y,b,T=!1,I=Date.now();function _(t,e){var n=u.getTimeOnSite(),r=s.getScrollDepth(),i=c.getMetric(),o={notify:"event",name:S,tos:n,scd:r,ssd:i,est:a.getSessionStartTime(),ver:a.getDataVersion(),isls:a.getIsLocalStorageAvailable(),src:t,invt:e,msa:"function"==typeof s.getMaxScrollableAmount?s.getMaxScrollableAmount():void 0};return o=l.addReturnVisits(o)}function R(t,e){var n=_(t,e);n.est&&(i.pageViewAccountIds?w(i.pageViewAccountIds,n):C(n))}function w(t,e){var n=Object.keys(t);n.length>0?n.forEach(function(n){e.id=t[n],C(e)}):C(e)}function C(t){i.push(t)}function P(){A(),a.resetStorageMetricData()}function A(){clearTimeout(b)}function O(t){(isNaN(y)||y<0)&&(y=0),a.hasSessionEnded()||(y++,a.persistSpecificMetricsData(m,y),k()||o.sendMetrics("i",t),D())}function k(){return u.getTimeOnSite()>5*60*1e3&&c.getMetric()>5}function U(t){var e;return e=0===t?4500:1===t?5500:t>1&&t<=9?1e4:p*Math.pow(2,t-3)}function D(){if(clearTimeout(b),T&&!d.getIsPageHidden()){var t,e=r.config.safeGet("tfa:engagement:use-new-interval-calculation",!1)?U(y):p*Math.pow(2,y);e!==1/0&&(b=setTimeout(O,e,e))}}function N(){L(),D()}function L(){var t=a.getSessionDataFromStorage();y=t&&t[m]&&t[m]||0}function M(){h.subscribeToEvent(V.bind(this)),d.subscribeToEvent(x.bind(this))}function x(){d.getIsPageHidden()?A():D()}function V(t){function e(t){var e=JSON.parse(t.newValue),i=JSON.parse(t.oldValue);return!n(e,i)&&!r(e,i)}function n(t,e){return t.sessionDepth.length!==e.sessionDepth.length}function r(t,e){return t.timeOnSite!==e.timeOnSite}L(),t&&T&&!d.getIsPageHidden()&&e(t)&&(T=!1,A(),j(g,v,N,A))}function j(t,e,n,r){var i=!1;function o(t){if(window.top!==window){var e=window.parent;for(e.postMessage(t,"*");e!==e.parent;)(e=e.parent).postMessage(t,"*")}function n(e){try{for(var r=0;r=0?"TRC":'TFASC']),function(t,e){var n="_tfa",r=t[n]=t[n]||[],i="taboola global:last-external-referrer",o="taboola",a="other",s=["taboola","taboolanews","taboolasyndication"];e.lastExternalReferrer={init:function t(){r.config.safeGet("tfa:last-external-referrer:is-disabled",!1,1670027)||this.extractExternalReferrerIfExistsAndStoreLocally()},extractExternalReferrerIfExistsAndStoreLocally:function e(){var n=this.extractExternalReferrer(t);n&&this.saveExternalReferrerToLocalStorage(n)},extractExternalReferrer:function t(n){var r=n.location.href,i=this.getExternalReferrer(n);return this.isExternalReferrerTaboola(r,i)?o:i||e.tfaUtil.getParameterByName("utm_source",r)||e.tfaUtil.getParameterByName("gclid",r)||e.tfaUtil.getParameterByName("fbclid",r)||e.tfaUtil.getParameterByName("dicbo",r)||e.tfaUtil.getParameterByName("dclid",r)?a:""},isExternalReferrerTaboola:function t(n,r){if(e.tfaUtil.getParameterByName("tblci",n))return!0;var i=e.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(t,e,n){var r="https://pa.taboola.com/ig/joinIg.html";n.privacySandbox={isProtectedAudienceSupported:function t(){return navigator&&!!navigator.joinAdInterestGroup},joinInterestGroupsInIframe:function t(e){var n;if(this.isProtectedAudienceSupported()&&e&&e.igList&&Array.isArray(e.igList)&&e.igList.length)return(n=document.createElement("iframe")).style.display="none",n.src=r,n.addEventListener("load",function(){n.contentWindow.postMessage(JSON.stringify(e),"*")}),document.body.appendChild(n),n}}}(window,document,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC']),function(t,e,n){var r=function t(e,n,r){var i=e.split(n);return i.slice(0,r-1).concat(i.length>=r?i.slice(r-1).join(n):[])},i=n.TFA_URL=function(t){if(!t)throw new Error("Invalid URL!");this.href=t;var e=r(t,"#",2);return this.hash=e.length>1?"#"+e.pop():"",t=e[0],e=r(t,"?",2),this.search=e.length>1?"?"+e.pop():"",t=e[0],e=r(t,"://",2),this.protocol=e.length>1?e.shift()+":":"",t=e[0],e=r(t,"/",2),this.pathname=e.length>1?"/"+e.pop():"/",t=e[0],e=r(t,"@",2),this.auth=e.length>1?e.shift():"",t=e[0],e=r(t,":",2),this.port=e.length>1?parseInt(e.pop()):0,this.host=e[0],this};function o(t){for(var e={},n=0;n=0?"&":"?")+e+(n[1]?"#"+n[1]:"")},i.prototype.removeParamFromUrl=function(t,e){var n=t.split("?");if(n.length>=2){for(var r=n[0],i,o=[],a=n[1].split("&"),s=0;s=0?"TRC":'TFASC']),function(t,e,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,u=n.publisherId,l=c.tfaPageManager;function f(){t._tfa&&t._tfa.config&&t._tfa.config.safeGet&&t._tfa.config.safeGet(r,!1,u)&&c.cdt.init()}t.TRC=t.TRC||{},t.TRC.cdt=c.cdt=t.TRC.cdt||{init:function t(){e.addEventListener(a,this.updateTrackingData.bind(this)),this.verifyUpdatesAfterDomLoaded()},updateTrackingData:function t(){for(var e=this.getAdvertiserSelectors(),n=0;n=0?"TRC":'TFASC']}),function(t,e,n){var r=e.tfaPageManager||{},i="_tfa",o=window[i]=window[i]||[],a=o.TEM||{},s={event:X,subscription:tt},c=/(\S+)taboola(\S+|)\.com\/libtrc\/unip\/(\S+)\/tfa\.js(\S+|)/,u="script[src$='tfa.js']",l="//",f,d=["notify","id"],h="JS_PIXEL",p;function g(){var t=rt();t.initialized&&t.domAccountId&&setTimeout(function(){for(var t=rt().asyncQueue;t.length;)it(t.shift())},0)}function v(){var t=m(),e;if(t&&t.src&&(e=t.src.replace(c,"$3")))return/^\d+$/.test(e)?parseInt(e,10):(at("Value '"+e+"' is invalid for 'id' param in script source url '"+t.src+"'. Only numeric values are allowed."),INVALID_ACCOUNT_ID)}function m(){for(var t=document.querySelectorAll(u),e,n=0;n0)return e}function S(){return e.eventUtils.getDateNow()}function E(t){t["ce"]="subscr"}function y(t){var e=r.getSessionDataFirstPartyCookie();void 0!==e&&e&&(t["sd"]=e)}function b(t){var e=T();e&&(t["ui"]=e)}function T(){try{var t=e.tfaUserId.getUserId(),n=r.getValue("user-id");if(t||n)return t||n}catch(t){at("Error while trying to add user-id param",t)}}function I(t){try{var n=e.tfaUserId.getClickId();n&&(t[e.tfaUserId.CLICK_ID_KEY]=n)}catch(e){at("Error while trying to addClickIdParam, params="+JSON.stringify(t),e)}}function _(t){var n=rt();n.referrer||(n.referrer=e.trk.getReferrer()),t[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.referrer]=n.referrer}function R(t,e){var n=EVENT_PROPERTIES_TO_URL_PARAMS_MAP.url,r;gt(ut(t),e)&&(t[n]=t[n]||document.location.href)}function w(t){var e={},n=!1,r;for(var i in t[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.timestamp]=S(),t)!t.hasOwnProperty(i)||d.indexOf(i)>=0||(e[r=EVENT_PROPERTIES_TO_URL_PARAMS_MAP.hasOwnProperty(i)?EVENT_PROPERTIES_TO_URL_PARAMS_MAP[i]:i]=t[i],n=!0);return n&&e}function C(t,e){D(e),U(t,e)}function P(t){document.featurePolicy&&document.featurePolicy.allowedFeatures()&&-1!==document.featurePolicy.allowedFeatures().indexOf("attribution-reporting")&&(t.headers||(t.headers={}),t.headers["Attribution-Reporting-Eligible"]="trigger")}function A(t){var n;if(e.privacySandbox&&e.privacySandbox.isProtectedAudienceSupported())try{n=JSON.parse(t),e.privacySandbox.joinInterestGroupsInIframe(n)}catch(t){}}function O(){200===this.status&&A(this.responseText)}function k(t){return!!(e.privacySandbox&&e.privacySandbox.isProtectedAudienceSupported()&&t&&"pre_d_eng_tb"!==t[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.name])&&(t["psb"]="true",!0)}function U(t,n){var r=lt(t)+l+ft(t,n),i,o;G(n,t),N(n,t),P(n),(o=k(n))&&(i=O);try{e.TRCLogger[CONFIGS.httpMethod](r,CONFIGS.loggerEventName,n,t,i)}catch(e){at("Error while trying to send to server event with id '"+t+"' and params '"+JSON.stringify(n)+"'.",e)}}function D(t){var e=T(),n=t[CALLBACK_PARAMETER_NAME];if(n){if(!e)return st("No UserId to notify callback"),void delete t[CALLBACK_PARAMETER_NAME];if("function"!=typeof n)return st("Callback function parameter is not a function "+n),void delete t[CALLBACK_PARAMETER_NAME];try{n({userId:e})}catch(t){at("Error calling advertiser callback",t)}delete t[CALLBACK_PARAMETER_NAME]}}function N(t,e){b(t),I(t),_(t),z(t),R(t,e),V(t),L(t),K(t,e),x(t,e),$(t,e),M(t)}function L(t){var n=e.lastExternalReferrer.getLastExternalReferrer();n&&(t[LAST_EXTERNAL_REFERRER_URL_PARAM]=n)}function M(t){t[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.integrationType]=t[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.integrationType]||h}function x(t,n){var r;o.config.safeGet("unip:collect-cookie-banner-consent:enabled",!0,n)&&(r=e.trk.parseCookieBanner())&&(t.cbp=r.cookieBannerProvider.providerName,t.cbpv=r.cookieBannerProvider.version,r.cookieBannerConsent.tcString&&o.config.safeGet("unip:send-tc-string:enabled",!0,n)?(t.tcs=r.cookieBannerConsent.tcString,void 0!==r.cookieBannerConsent.gdprApplies&&(t.ga=r.cookieBannerConsent.gdprApplies),void 0!==r.cookieBannerConsent.cmpStatus&&(t.cmps=r.cookieBannerConsent.cmpStatus)):r.cookieBannerConsent.consentData&&(t.cbcd=r.cookieBannerConsent.consentData))}function V(t){t&&a&&a.ESU&&a.ESU.getIsLocalStorageAvailable()&&(j(t),B(t),F(t))}function j(t){a.TOS&&(t.tos=a.TOS.getTimeOnSite())}function B(t){if(a.SSD){var n=a.SSD.getMetric(),r=e.eventUtils.hashString(window.location.href);a.SSD.isURLVisited(r)||n++,t.ssd=n}}function F(t){a.SCD&&(t.scd=a.SCD.getScrollDepth())}function K(t,n){o.config.safeGet("unip:add-ccpa-params",!0,n)&&e.trk.getCcpaParam(function(e){e&&(t["ccpaPs"]=e)})}function $(t,n){if(o.config.safeGet("unip:add-gpp-params",!1,n))try{e.trk.getGppParam(function(e){e&&(t.cmpStatus=0,t.applicableSections=e.pingData.applicableSections,t.gppString=e.pingData.gppString)})}catch(t){}}function G(t,e){q(t),Q(t,e),J(t,e)}function H(t,e){E(e),y(e),Z(t,e)}function q(t){t["vi"]=e.trk.getViewId()}function Q(t,n){var r=e.trk.getPublisherRequestId(n);r&&(t["ri"]=r)}function J(t,n){var r=e.trk.getPublisherSessionData(n);r&&(t["sd"]=r)}function W(t,e){t["mrir"]=e}function z(t){t["cv"]=n}function Y(t,n){var r=rt(),i;if(!e.trk.getPublisherRequestId(t)){if(e.trk.isRequestProcessing(t))return void r.messageDelayer.delayMessage(t,n,{successCallback:C,failCallback:function t(e,n,r,i){var o=TRK_EVENT_TO_ERROR_TYPE_MAP[i];o||(o=i),W(n,o),U(e,n)},timeoutInMillis:ct(t)});W(n,e.trk.getRequestStatus(t))}U(t,n)}function X(t,n){var r=w(t),i=ut(r),o=TUP_EVENT_HANDLERS_BY_EVENT_NAME[i];if(n=parseInt(n,10),!o||!o(r,n)){if(ht(n)){if(pt(n))return void Y(n,r);e.trk.getPublisherRequestId(n)||W(r,"wffo")}else W(r,"ttd");U(n,r)}}function Z(t,e){void 0!==t["sourceurl"]&&t["sourceurl"]&&(e["surl"]=t["sourceurl"])}function tt(t,e){var n=w(t);H(t,n),U(parseInt(e,10),n)}function et(t,n){var r=rt(),i=!1;return n&&(i=dt(n),N(t),r.pageViewAccountIds[n]=parseInt(n,10),e.eventUtils.dispatchEvent(e.sharedEvents.PAGE_VIEW,{accountId:n,publisherIdType:e.publisherIdType.ID,pageViewInitiator:e.pageViewInitiator.TFA,isUnifiedPageView:i,metadata:t})),i}function nt(t){return t?t.notify?s.hasOwnProperty(t.notify)?t.name?!(t.hasOwnProperty("id")&&!/^\d+$/.test(t.id))||(ot(VALIDATION_ERRORS.INVALID_ID,t,"Value '"+t.id+"' is invalid for 'id' field in command '"+JSON.stringify(t)+"'. Only numeric values are allowed."),!1):(ot(VALIDATION_ERRORS.MISSING_NAME,t,"Mandatory 'name' field is missing in command '"+JSON.stringify(t)+"'."),!1):(ot(VALIDATION_ERRORS.INVALID_NOTIFY,t,"Value '"+t.notify+"' is invalid for 'notify' field in command '"+JSON.stringify(t)+"'."),!1):(ot(VALIDATION_ERRORS.MISSING_NOTIFY,t,"Mandatory 'notify' field is missing in command '"+JSON.stringify(t)+"'."),!1):(ot(VALIDATION_ERRORS.EMPTY_COMMAND,t,"Command is '"+t+"'."),!1)}function rt(){return window&&window[i]&&window[i].TUP||{}}function it(t){var e,n;if(nt(t))if(e=rt(),n=t.id||e.domAccountId){if(n!==INVALID_ACCOUNT_ID)try{s[t.notify](t,n)}catch(e){at("An error occurred while handling command '"+JSON.stringify(t)+"'.",e)}}else e.asyncQueue.push(t)}function ot(t,n,r){var i=rt();e.eventUtils.dispatchEvent(EVENTS.TFA_VALIDATION_ERROR,{accountId:i.domAccountId,errorCode:t,command:n}),at(r)}function at(t,e){CONFIGS.logToConsole&&st(t,e)}function st(t,e){e?console.log("Taboola Pixel: "+t,e):console.log("Taboola Pixel: "+t)}function ct(t){return 500+o.config.safeGet("tfa:trk:tracking-request-timeout",2e3,t)}function ut(t){return t[EVENT_PROPERTIES_TO_URL_PARAMS_MAP.name]}function lt(t){return o.config.safeGet("tfa:default-protocol",CONFIGS.protocol,t)}function ft(t,e){var n=ut(e),r;return o.config.safeGet("tfa:event-host-map",{},t)[n]||CONFIGS.host}function dt(t){return ht(t)&&o.config.safeGet("tfa:trk:is-unified-page-view",!1,t)}function ht(t){return o.config.safeGet("tfa:trk:enabled",!0,t)}function pt(t){return o.config.safeGet("tfa:trk:wait-for-request-id",!0,t)}function gt(t,e){var n=o.config.safeGet("tfa:add-item-url:event-list",[],e);return"*"===n||n.indexOf(t)>=0}function vt(){var t=o.TUP=o.TUP||{},n=o.config.safeGet("tfa:get-publisher-id-from-baker",!1);t.domAccountId=t.domAccountId||(n&&PUBLISHER_ID_EXISTS?1670027:v()),t.initialized||(t.push=o.TUP.push||it,t.initialized=!0,t.asyncQueue=[],t.EVENTS=EVENTS,t.pageViewAccountIds={},t.messageDelayer=new e.MessageDelayer("publisherId",e.sharedEvents.REQUEST_ID_CREATED,[e.sharedEvents.REQUEST_ID_CREATION_JS_ERROR,e.sharedEvents.REQUEST_ID_CREATION_ERROR,e.sharedEvents.REQUEST_ID_CREATION_TIMEOUT,e.sharedEvents.INVALID_TRK_RESPONSE]),a&&a.init&&a.init()),g()}EVENT_PROPERTIES_TO_URL_PARAMS_MAP={name:"en",url:"item-url",referrer:"ref",timestamp:"tim",integrationType:"it"},INVALID_ACCOUNT_ID=-1,CONFIGS={protocol:'https:',host:"trc.taboola.com",httpMethod:"get",loggerEventName:"unip",logToConsole:!0},VALIDATION_ERRORS={EMPTY_COMMAND:"EMPTY_COMMAND",MISSING_NOTIFY:"MISSING_NOTIFY",INVALID_NOTIFY:"INVALID_NOTIFY",MISSING_NAME:"MISSING_NAME",INVALID_ID:"INVALID_ID"},EVENTS={TFA_VALIDATION_ERROR:"TFA_VALIDATION_ERROR"},TUP_EVENT_HANDLERS_BY_EVENT_NAME=((p={})["page_view"]=et,p),TRK_EVENT_TO_ERROR_TYPE_MAP=function(){var t={};return t[e.sharedEvents.REQUEST_ID_CREATION_TIMEOUT]="to",t[e.sharedEvents.REQUEST_ID_CREATION_ERROR]="err",t[e.sharedEvents.REQUEST_ID_CREATION_JS_ERROR]="jserr",t[e.sharedEvents.INVALID_TRK_RESPONSE]="itrkr",t}(),PUBLISHER_ID_EXISTS=!isNaN(parseFloat(1670027)),CALLBACK_PARAMETER_NAME="callback",LAST_EXTERNAL_REFERRER_URL_PARAM="ler",vt()}(window,window['TFASC'.indexOf("{jsScope}")>=0?"TRC":'TFASC'],"20241218-12-RELEASE"),function(t,e,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+|)/,u="unip/",l=[],f=[],d="_tecq",h="_dcojobs",p=!isNaN(parseFloat(1670027));function g(t){var e;switch(t.notify){case"action":e=l;break;case"mark":e=f;break;case"event":case"subscription":e=i.TUP;break;case"ecevent":var n=i.config&&i.config.safeGet("tfa:ecomm:enabled",!1,t.id),r=i.config&&i.config.safeGet("tfa:ecomm:cnx-enabled",!1,t.id);n||r?e=window[d]=window[d]||[]:i.config&&i.config.safeGet("tfa:dco:jobs:enabled",!1,t.id)&&(e=window[h]=window[h]||[]);break;default:return}e&&e.push(t)}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 S(){var e,n,r,i;if(r=t._tfa.config.safeGet("tfa:get-publisher-id-from-baker",!1)&&p?1670027:w())for(e=0,n=l.length;e=0?"TRC":'TFASC']);