1if(typeof window.jentisApp>"u"||!window.jentisApp.initialized)if(window.jentis=window.jentis||{},window.jentis.config=window.jentis.config||{},window.jentis.config.account="empower-southamerica-com-br.live",window.jentis.config.trackdomain="https://0w8seo.empower-southamerica.com.br",window.jentis.config.filehash="d0gzk3",window.jentis.config.loadcss=!1,window.jentis.userCustomizable=window.jentis.userCustomizable||{},window.jentisApp=window.jentisApp||{},window.jentisApp.initialized=window.jentisApp.initialized||!1,window.jentis.config.frontend=window.jentis.config.frontend||{},typeof window.jentis.config.frontend.version>"u"&&(window.jentis.config.frontend.version=window.jentis.config.frontend.project!==void 0?"1":"3"),window.jentis.config.frontend.project="empower-southamerica-com-br",window.jentis.config.frontend.env="live",window.jentis.config.jtm=window.jentis.config.jtm||{},window.jentis.config.jtm.timestamp=1790156245,window.jentis.template=window.jentis.template||{},window.jentis.template.parseUrlParams=function(){var t={},e,n=/\+/g,r=/([^&=]+)=?([^&]*)/g,a=function(s){try{return window.decodeURIComponent(s.replace(n," "))}catch{return s}},o=window.location.search.substring(1);try{for(;e=r.exec(o);)t[a(e[1])]=a(e[2])}catch{}return t},window.jentis.template.getPreviewValue=function(){var t=window.jentis.template.parseUrlParams();if(typeof t.jts_preview<"u"){var e=t.jts_preview;return typeof window.jentis.config.jtm.timestamp<"u"&&(e+="/"+window.jentis.config.jtm.timestamp),e}return!1},window.jentis.template.getSessionStorageValue=function(t){try{if(window.sessionStorage&&typeof window.sessionStorage.getItem=="function")return window.sessionStorage.getItem(t)}catch{}return!1},window.jentis.template.sCDNVers=window.jentis.template.getPreviewValue()||window.jentis.template.getSessionStorageValue("jts_preview_version")||!1,window.jentis.config.frontend.vers=window.jentis.template.sCDNVers||"_",window.jentis.config.frontend.cdnhost=window.jentis.template.sCDNVers?window.jentis.config.trackdomain+"/get/"+window.jentis.config.frontend.env+"/web/"+window.jentis.config.frontend.vers+"/":window.jentis.config.trackdomain+"/",window.jentis.template.shouldLoadPreviewScript=window.jentis.template.sCDNVers&&!window.jentis.config.previewLoaded,window.jentis.template.shouldLoadPreviewScript)window.jentis.config.previewLoaded=!0,(function(){var t=document.getElementsByTagName("script")[0],e=document.createElement("script");e.async=!0,e.src=window.jentis.config.frontend.cdnhost+window.jentis.config.filehash+".js",t.parentNode.insertBefore(e,t)})();else try{window.jentisApp.reprocessingCache_activate_reset=function(){typeof window.jentis.tracker<"u"&&typeof window.jentis.tracker.setUserCustomization<"u"&&window.jentis.tracker.setUserCustomization("reprocessCacheReset",!0),window.jentis.userCustomizable.reprocessCacheReset=!0},window.jentisApp.reprocessingCache_deactivate_reset=function(){typeof window.jentis.tracker<"u"&&typeof window.jentis.tracker.setUserCustomization<"u"&&window.jentis.tracker.setUserCustomization("reprocessCacheReset",!1),window.jentis.userCustomizable.reprocessCacheReset=!1},window.jentisApp.reset={},window.jentisApp.reset.user=function(){window.jentis.tracker.resetUser()},window.jentisApp.reset.session=function(){window.jentis.tracker.resetSession()},window.jentisApp.reset.consent=function(){window.jentis.consent.engine.resetConsent()},window.jentisApp.reset.cachedEvents=function(){window.jentis.tracker.resetCachedTrackingData()},window.jentisApp.getEnrichmentData=function(t,e,n,r){if(typeof t!="string")return console.error("getEnrichmentData(): enrichmentPluginId must be of type string! Received:",typeof t),!1;if(typeof e!="object"||e===null)return console.error("getEnrichmentData(): arguments must be of type JSON (object)! Received:",typeof e),!1;if(Object.prototype.toString.call(n)!=="[object Array]")return console.error("getEnrichmentData(): variables must be of type array! Received:",Object.prototype.toString.call(n)),!1;if(typeof r!="function")return console.error("getEnrichmentData(): callback must be a function! Received:",typeof r),!1;var a={};a[t]={arguments:e,variables:n};var o=function(s){typeof s<"u"&&typeof s.response<"u"?r(s.response):r("")};window.jentis.tracker.sendHTTPStream({endpoint:"/enrichment",data:JSON.stringify(a),callback:o,method:"POST",contentType:"application/json",withCredentials:!0})},window.jentisApp.initialized=!0,window.jentisApp.disableWebStorages=function(){typeof window.jentis<"u"&&typeof window.jentis.helper<"u"&&(window.jentis.helper.bIsLocalStorageAvailable=!1,window.jentis.helper.bIsSessionStorageAvailable=!1)},window.jentisApp.optOutSyntheticUsers=function(){typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.setNewVendorConsentsIgnoreConsentMode=="function"&&window.jentis.consent.engine.setNewVendorConsentsIgnoreConsentMode({jentis_predictor_collector:!1})},window.jentis.config.jtm.version=13,window.jentis.config.jtm.maximumStorageLifetime=33696e6,window.jentis.config.jtm.hybridTracking=!1,window.jentis.config.jtm.accountconstants={currency:"EUR","YT_Video_Tracking_EU-track_psb":!0,"YT_Video_Tracking_EU-apisupport":!0,"YT_Video_Tracking_EU-track_start":!0,"YT_Video_Tracking_EU-bind_to_click":"","YT_Video_Tracking_EU-track_complete":!0,"YT_Video_Tracking_EU-track_progress":"25|50|75|98","GAds_SA-adwords_id":"16731203165","GAds_SA-gtag_path":""},window.jentis.config.jtm.plugins={},window.jentis.config.jtm.template_variables={},window.jentis.config.jtm.variables={document_title:{scope:"EVENT",value:(function(){return document.title}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},get_vendors_of_ad_user_data:{scope:"EVENT",value:(function(){var t=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(t=window.jentis.consent.engine.getVendorsOfGCT("ad_user_data")),t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},navigator_language:{scope:"SESSION",value:(function(){return window.navigator.language}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},sanitized_url_ga4_:{scope:"EVENT",value:(function(){var t=["ref","fbclid","mscklid","lang","_hsmi","_hsenc","tx","fullProductGroupTree","cHash","tx_ttnews[tt_news]","data-value","CommunityId","ticketCoder","_sid","_ga","tx_intersolarconference_pi1[session]"],e=document.createElement("a"),n,r,a,o,s;if(e.href=window.location.href,e.pathname=e.pathname.toLowerCase(),e.search){for(r="&"+e.search.replace("?","")+"&",s=0;s<t.length;s++)n=t[s].trim(),a=r.indexOf("&"+n+"="),a>-1&&(o=r.indexOf("&",a+1),r=r.slice(0,a)+r.slice(o,r.length));e.search=r.slice(1,r.length-1)}var c=e.href;return c}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},document_ref:{scope:"EVENT",value:(function(){return document.referrer}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},page_load_happened:{scope:"EVENT",value:(function(t){var e=!1;return typeof window.jentis.cache>"u"&&(window.jentis.cache={}),typeof window.jentis.cache["jentis.core.jtm.plugin.variable.page_load_happened"]>"u"&&(window.jentis.cache["jentis.core.jtm.plugin.variable.page_load_happened"]=!0,e=!0),typeof t.stateContext<"u"&&typeof t.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED<"u"&&t.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED===!0&&delete window.jentis.cache["jentis.core.jtm.plugin.variable.page_load_happened"],e}),triggerRelated:!0,dependencies:[],vendorids:["google_analytics_4_server-side"]},high_resolution_timestamp:{scope:"EVENT",value:(function(){var t="";return typeof window.performance<"u"&&typeof window.performance.now=="function"&&(t=Math.floor(window.performance.now())),t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},iframe_state:{scope:"EVENT",value:(function(){if(window.top==window)return"0";if(typeof window.location<"u"&&typeof window.location.ancestorOrigins<"u"){var t=window.location.ancestorOrigins;if(t)return t[t.length-1]==window.location.origin?"1":"2"}var e=function(n){try{var r=!!n;
1if(n.location.href!=null){try{return n.foo,!0}catch{}r=!1}return r}catch{return!1}};return e(window.top)?1:2}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},window_location_href:{scope:"EVENT",value:(function(){return window.location.href}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},get_vendors_of_ad_storage:{scope:"EVENT",value:(function(){var t=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(t=window.jentis.consent.engine.getVendorsOfGCT("ad_storage")),t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},get_vendors_of_analytics_storage:{scope:"EVENT",value:(function(){var t=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(t=window.jentis.consent.engine.getVendorsOfGCT("analytics_storage")),t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},"random_number_per_page-load":{scope:"EVENT",value:(function(){return typeof window.jentis.cache>"u"&&(window.jentis.cache={}),typeof window.jentis.cache["jentis.core.jtm.plugin.variable.random_number_per_page-load"]>"u"&&(window.jentis.cache["jentis.core.jtm.plugin.variable.random_number_per_page-load"]=Math.floor(Math.random()*2147483647)),window.jentis.cache["jentis.core.jtm.plugin.variable.random_number_per_page-load"]}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},get_vendors_of_ad_personalization:{scope:"EVENT",value:(function(){var t=[];return typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&typeof window.jentis.consent.engine.getVendorsOfGCT=="function"&&(t=window.jentis.consent.engine.getVendorsOfGCT("ad_personalization")),t}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},active_time_on_page:{scope:"EVENT",value:(function(t){var e=function(){var r=function(){return new Date(Date.now()).getTime()},a=function(c,u,d){c.addEventListener&&c.addEventListener(u,d,!1)},o=function(c){var u=0,d=0;return{start(){u=r()},stop(){d=this.get()},get(){var f=0;return c.isTimerActive()&&(f=r()-u),f+d}}},s=function(){this.timer=void 0,this.totalTime=0,this.isActive=!1,this.isVisible=!1,this.isFocused=!1};return s.prototype.init=function(){var c=this;if(!this.timer){this.isFocused=window.document.hasFocus(),this.isVisible=!window.document.hidden,this.isActive=!0;var u=function(d,f,l){a(d,f,function(w){c.timer.stop(),l(w),c.isTimerActive()&&c.timer.start()})};u(window,"focus",function(){c.isFocused=!0}),u(window,"blur",function(){c.isFocused=!1}),u(window,"pageshow",function(){c.isActive=!0}),u(window,"pagehide",function(){c.isActive=!1}),u(window.document,"visibilitychange",function(){c.isVisible=!window.document.hidden}),this.startTimer(),this.totalTime=0}},s.prototype.startTimer=function(){this.totalTime+=this.getTimeElapsed(),this.timer=new o(this),this.isTimerActive()&&this.timer.start()},s.prototype.resetTimer=function(){this.startTimer(),this.totalTime=0},s.prototype.isTimerActive=function(){return this.isFocused&&this.isVisible&&this.isActive},s.prototype.getTotalTime=function(){return this.totalTime+this.getTimeElapsed()},s.prototype.getTimeElapsed=function(){return this.timer?this.timer.get():0},new s};typeof window.jentis.cache>"u"&&(window.jentis.cache={}),typeof window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"]>"u"&&(window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"]=e(),window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"].init());var n=window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"].getTotalTime();return typeof t.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED<"u"&&t.stateContext.$JTS_VIRTUAL_PAGEVIEW_DETECTED===!0&&window.jentis.cache["jentis.core.jtm.plugin.variable.active_time_on_page"].resetTimer(),window.jentis.tracker.log("[J-TRACKER] Total Active Time spent on page: "+n+" ms"),n}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_model:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["model"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"]=a.model,t.callback(a.model)});else return"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_model"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},navigator_user_agent_wow64:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["wow64"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){var o=a.wow64?"1":"0";window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"]=o,t.callback(o)});else return"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_wow64"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},window_screen_width:{scope:"SESSION",value:(function(){return window.screen.width}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},window_screen_height:{scope:"SESSION",value:(function(){return window.screen.height}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},navigator_user_agent_mobile:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["mobile"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){var o=a.mobile?"1":"0";window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"]=o,t.callback(o)});else return typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.mobile<"u"?window.navigator.userAgentData.mobile?"1":"0":"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_mobile"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},navigator_user_agent_bitness:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["bitness"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"]=a.bitness,t.callback(a.bitness)});else return"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_bitness"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},search_param_utm_id:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_id<"u"?decodeURIComponent(t.utm_id):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_platform:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["platform"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"]=a.platform,t.callback(a.platform)});else return typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.platform<"u"?window.navigator.userAgentData.platform:"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platform"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_creative_format:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_creative_format<"u"?decodeURIComponent(t.utm_creative_format):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_marketing_tactic:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_marketing_tactic<"u"?decodeURIComponent(t.utm_marketing_tactic):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_source_platform:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_source_platform<"u"?decodeURIComponent(t.utm_source_platform):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_term:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_term<"u"?decodeURIComponent(t.utm_term):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_full_version_list:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["fullVersionList"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){var o="";typeof a<"u"&&typeof a.fullVersionList<"u"&&typeof a.fullVersionList.map=="function"&&(o=a.fullVersionList.map(function(s){return encodeURIComponent(s.brand||"")+";"+encodeURIComponent(s.version||"")}).join("|")),window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"]=o,t.callback(o)});else return"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_fullVersionList"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_medium:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_medium<"u"?decodeURIComponent(t.utm_medium):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_source:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_source<"u"?decodeURIComponent(t.utm_source):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_architecture:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["architecture"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"]=a.architecture,t.callback(a.architecture)});else return"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_architecture"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side","adwords"]},search_param_utm_content:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_content<"u"?decodeURIComponent(t.utm_content):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_param_utm_campaign:{scope:"EVENT",value:(function(){try{var t={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(n,r,a){t[r]=a});return typeof t.utm_campaign<"u"?decodeURIComponent(t.utm_campaign):""}catch{return""}}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},navigator_user_agent_platform_version:{scope:"SESSION",value:(function(t){window.jentis.cache=window.jentis.cache||{};var e=["platformVersion"],n="";if(typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]>"u"||typeof window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]<"u"&&window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]==="")if(typeof window.navigator<"u"&&typeof window.navigator.userAgentData<"u"&&typeof window.navigator.userAgentData.getHighEntropyValues<"u")var r=window.navigator.userAgentData.getHighEntropyValues(e).then(function(a){window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"]=a.platformVersion,t.callback(a.platformVersion)});else return"";else t.callback(window.jentis.cache["jentis.core.jtm.plugin.variable.navigator_user_agent_platformVersion"])}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},jtspushedcommands:{scope:"EVENT",value:(function(){return window.jentis.tracker.getDatalayer(!1)}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},event_name:{scope:"EVENT",value:(function(){var t=window.jentis.tracker.getDatalayer(!0,"event");return t.length>0&&(t=t[t.length-1],typeof t<"u"&&typeof t.name<"u")?t.name:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},event_value:{scope:"EVENT",value:(function(){var t=window.jentis.tracker.getDatalaye
1r(!0,"event");return t.length>0&&(t=t[t.length-1],typeof t<"u"&&typeof t.value<"u")?t.value:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_term:{scope:"EVENT",value:(function(){var t=window.jentis.tracker.getDatalayer(!0,"search");return t.length>0&&typeof t[0].term<"u"?t[0].term:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},search_type:{scope:"EVENT",value:(function(){var t=window.jentis.tracker.getDatalayer(!0,"search");return t.length>0&&t[0].type?t[0].type:""}),triggerRelated:!1,dependencies:[],vendorids:["google_analytics_4_server-side"]},read_gcl_gb_cookie:{scope:"EVENT",value:(function(){var t="_gcl_gb",e=this.readCookie(t);return e}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},read_gcl_ag_cookie:{scope:"EVENT",value:(function(){var t="_gcl_ag",e=this.readCookie(t);return e}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},read__gcl_aw_cookie:{scope:"EVENT",value:(function(){var t="_gcl_aw",e=this.readCookie(t);return e}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},event_id:{scope:"EVENT",value:(function(){var t=new Date().getTime(),e=Math.round(Math.random()*1e5),n=Math.round(Math.random()*1e5);return""+e+t+n}),triggerRelated:!0,dependencies:[],vendorids:["adwords"]},floodlight_gcl_au:{scope:"EVENT",value:(function(){if(typeof this.readCookie<"u")var t=this.readCookie("_gcl_au");else var t=window.jentis.helper.readCookie("_gcl_au");if(t!==null){var e=t.split(".");if(e.length>2)return e[e.length-2]+"."+e[e.length-1]}return null}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_viewport_height:{scope:"SESSION",value:(function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_viewport_width:{scope:"SESSION",value:(function(){return window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_screen_colordepth:{scope:"SESSION",value:(function(){return window.screen.colorDepth}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},timezone_offset_minutes:{scope:"SESSION",value:(function(){return new Date().getTimezoneOffset()}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_history_length:{scope:"SESSION",value:(function(){return window.history.length}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},order_brutto:{scope:"EVENT",value:(function(){var t=window.jentis.tracker.getDatalayer(!0,"order");return t.length>0&&(t=t[t.length-1],typeof t.brutto<"u")?t.brutto:""}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},navigator_javaenabled:{scope:"SESSION",value:(function(){return window.navigator.javaEnabled()?"1":"0"}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_navigator_mimetypes_len:{scope:"SESSION",value:(function(){return typeof window.navigator.mimeTypes<"u"&&typeof window.navigator.mimeTypes.length<"u"?window.navigator.mimeTypes.length:""}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},window_navigator_plugins_length:{scope:"SESSION",value:(function(){return typeof window.navigator.plugins<"u"&&typeof window.navigator.plugins.length<"u"?window.navigator.plugins.length:""}),triggerRelated:!1,dependencies:[],vendorids:["adwords"]},currency:{scope:"ACCOUNT",value:"EUR"},"YT_Video_Tracking_EU-track_psb":{scope:"ACCOUNT",value:!0},"YT_Video_Tracking_EU-apisupport":{scope:"ACCOUNT",value:!0},"YT_Video_Tracking_EU-track_start":{scope:"ACCOUNT",value:!0},"YT_Video_Tracking_EU-bind_to_click":{scope:"ACCOUNT",value:""},"YT_Video_Tracking_EU-track_complete":{scope:"ACCOUNT",value:!0},"YT_Video_Tracking_EU-track_progress":{scope:"ACCOUNT",value:"25|50|75|98"},"GAds_SA-adwords_id":{tracker:"34",scope:"ACCOUNT",value:"16731203165"},"GAds_SA-gtag_path":{tracker:"34",scope:"ACCOUNT",value:""}},window.jentis.config.jtm.pluginIDtoVendorID={"google_analytics_4_server-side":{11:"google_analytics_4_server-side"},adwords:{34:"adwords"}},window.jentis.config.jtm.states={jts_push_submit:function(t){var e=_jts.push,n=!1,r=!1,a=["event","addtocart","removefromcart","addtowishlist","removefromwishlist","productlistclick","promotionclick","promotionimpression"],o=function(d){var f=window.jentis.tracker.getDatalayer(!0,d),l={};if(f.length>0&&(f=f[f.length-1],Object.keys(f).length>0))for(var w in f)w!=="track"&&(l[w]=f[w]);Object.keys(l).length>0&&(l.track="promotion",l.type=d,window.jentis.tracker.log("[J-TRACKER] "+d+" push transformed."),e(l))},s=function(d,f){if(f){for(var l=0;l<d.length;l++)if(d[l]===f)return!0}return!1},c=function(){for(var d={stateCallback:function(){window._jtsDataLayerContext=[]}},f=0;f<arguments.length;f++){var l=arguments[f];window._jtsDataLayerContext=window._jtsDataLayerContext||[],window._jtsDataLayerContext.push(l),(typeof n>"u"||typeof n<"u"&&n===!0)&&e(l),r&&(d.requestType="sendBeacon"),typeof l.track<"u"?(s(a,l.track)&&(r=!0),l.track==="submit"||l.track==="event"?(r=!1,t(d)):(l.track==="promotionimpression"||l.track==="promotionclick")&&o(l.track)):typeof l=="boolean"&&l===!0&&(r=!1,t(d))}};if(typeof _jts=="object")for(var u=0;u<_jts.length;u++)c(_jts[u]);n=!0,_jts.push=c},jts_framework_loaded:function(t){window.jentis.tracker.addEventListener("jentis.tracker.init",function(){t()})}},window.jentis.config.jtm.selectorActions={click_besucher_ticketshop_sa:{selector:"a[href^='https://euvou.events/thesmarteresouthamerica2026'] span, a[href^='https://euvou.events/thesmarteresouthamerica2026']",action:"click"}},window.jentis.config.jtm.trigger={pageview_without_exclude:{excludeTrigger:[],condition:[[{value:"pageview",o
1perator:"co",variable:"jtspushedcommands"}]],variables:["jtspushedcommands","GA4_SA-debugview_mode","GA4_SA-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","sanitized_url_ga4_","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","window_location_href","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","read_gcl_gb_cookie","read_gcl_ag_cookie","read__gcl_aw_cookie","GAds_SA-adwords_id","event_id","floodlight_gcl_au","window_viewport_height","window_viewport_width","window_screen_colordepth","timezone_offset_minutes","window_history_length","order_brutto","navigator_javaenabled","window_navigator_mimetypes_len","window_navigator_plugins_length"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands"],hasServerSideTag:!0,state:"jts_push_submit"},event_scroll_95:{excludeTrigger:[],condition:[[{value:"scroll",operator:"eq",variable:"event_name"},{value:"95",operator:"eq",variable:"event_value"}]],variables:["event_name","event_value","GA4_SA-debugview_mode","GA4_SA-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","sanitized_url_ga4_","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","window_location_href","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:[],codeblocks:[],conditionVariables:["event_name","event_value"],hasServerSideTag:!0,state:"jts_push_submit"},event_newsletter_submit:{excludeTrigger:[],condition:[[{value:"newsletter_submit",operator:"eq",variable:"event_name"}]],variables:["event_name","GA4_SA-debugview_mode","GA4_SA-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:[],codeblocks:[],conditionVariables:["event_name"],hasServerSideTag:!0,state:"jts_push_submit"},click_besucher_ticketshop_sa:{excludeTrigger:[],condition:[[{value:"/tickets",operator:"co",variable:"window_location_href"}],[{value:"/ingressos",operator:"co",variable:"window_location_href"}]],variables:["window_location_href","GA4_SA-debugview_mode","GA4_SA-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","document_ref","page_load_happened","high_resolution_timestamp","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version","GAds_SA-adwords_id","event_id","floodlight_gcl_au","window_viewport_height","window_viewport_width","window_screen_colordepth","timezone_offset_minutes","read_gcl_gb_cookie","read_gcl_ag_cookie","read__gcl_aw_cookie","window_history_length","order_brutto","navigator_javaenabled","window_navigator_mimetypes_len","window_navigator_plugins_length"],tags:[],codeblocks:[],conditionVariables:["window_location_href","window_location_href"],hasServerSideTag:!0,selector:"a[href^='https://euvou.events/thesmarteresouthamerica2026'] span, a[href^='https://euvou.events/thesmarteresouthamerica2026']",action:"click"},search:{excludeTrigger:[],condition:[[{value:"search",operator:"co",variable:"jtspushedcommands"},{value:"",operator:"eq",variable:"search_type"}]],variables:["jtspushedcommands","search_type","GA4_SA-debugview_mode","GA4_SA-ga_measurement_id","document_title","get_vendors_of_ad_user_data","currency","navigator_language","window_location_href","document_ref","page_load_happened","high_resolution_timestamp","search_term","iframe_state","get_vendors_of_ad_storage","get_vendors_of_analytics_storage","random_number_per_page-load","get_vendors_of_ad_personalization","active_time_on_page","navigator_user_agent_model","navigator_user_agent_wow64","window_screen_width","window_screen_height","navigator_user_agent_mobile","navigator_user_agent_bitness","search_param_utm_id","navigator_user_agent_platform","search_param_utm_creative_format","search_param_utm_marketing_tactic","search_param_utm_source_platform","search_param_utm_term","navigator_user_agent_full_version_list","search_param_utm_medium","search_param_utm_source","navigator_user_agent_architecture","search_param_utm_content","search_param_utm_campaign","navigator_user_agent_platform_version"],tags:[],codeblocks:[],conditionVariables:["jtspushedcommands","search_type"],hasServerSideTag:!0,state:"jts_push_submit"},jts_framework_loaded:{excludeTrigger:[],condition:[],variables:[],tags:[],codeblocks:["8","9","12"],conditionVariables:[],hasServerSideTag:!1,state:"jts_framework_loaded"}},window.jentis.config.jtm.functions={},window.jentis.config.jtm.frontendLibs={"google_analytics_4_server-side":{lib:function(t){},tracker:{11:{}}},adwords:{lib:function(t){this.config=t.config,this.defaultConsentFound=!1,this.bLibraryInitialized=!1,this._mutateObjectWithGuilist=function(e,n){var r="",a="",o={};for(var s in e)r=e[s].propid,a=e[s].propval,n[r]=a;return n},this._maxIteration=function(e){var n=[];for(var r in e)n.push(e[r].length);var a=n.reduce(function(o,s){return Math.max(o,s)});return a},this._checkDefaultConsentSet=function(){for(var e=!1,n=0;n<window.dataLayer.length;n++)if(Object.prototype.toString.call(window.dataLayer[n])==="[object Arguments]"){var r=Array.prototype.slice.call(window.dataLayer[n])||[];if(typeof r[0]<"u"&&r[0]==="consent"&&typeof r[1]<"u"&&r[1]==="default"&&typeof r[2]<"u"&&Object.keys(r[2]).length>0){e=!0;break}}return e},this._updateConsentType=function(e){var n=e.google_consent_mode,r=e.tag_id,a={};for(var o in n)if(n[o]!==""&&n[o]!==null){var s=n[o];typeof window.jentis.tracker.replacePlaceholderForTagId<"u"&&(s=window.jentis.tracker.replacePlaceholderForTagId(r,o,e.scopeOfTheState,e.tagPlaceholder)),n[o]===s?a[o]=n[o]:a[o]=s}Object.keys(a).length>0&&window.gtag("consent","update",a)},this.executeConsentStatus=function(e){(typeof window.dataLayer>"u"||typeof window.gtag>"u")&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)}),this.defaultConsentFound||(this._checkDefaultConsentSet()||window.gtag("consent","default",{ad_storage:"denied",analytics_storage:"denied",ad_user_data:"denied",ad_personalization:"denied"}),this.defaultConsentFound=!0),this._updateConsentType(e)},this.setUserData=function(e){(typeof window.dataLayer>"u"||typeof window.gtag>"u")&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)});var n={};if(typeof e.enhanced_conversion<"u"&&Object.keys(e.enhanced_conversion).length>0){var r=Object.keys(e.enhanced_conversion);for(i=0;i<r.length;i++)if(strIterArg=r[i],strIterArg==="address"){var a={};for(var o in e.enhanced_conversion.address)typeof e.enhanced_conversion.address[o]<"u"&&e.enhanced_conversion.address[o]!==""&&e.enhanced_conversion.address[o]!==null&&(a[o]=e.enhanced_conversion.address[o]);Object.keys(a).length>0&&(n[strIterArg]=a)}else typeof e.enhanced_conversion[strIterArg]<"u"&&e.enhanced_conversion[strIterArg]!==""&&e.enhanced_conversion[strIterArg]!==null&&(n[strIterArg]=e.enhanced_conversion[strIterArg])}typeof e.user_data<"u"&&Object.keys(e.user_data).length>0&&(n=this._mutateObjectWithGuilist(e.user_data,n)),Object.keys(n).length>0&&window.gtag("set","user_data",n)},this.init=function(e){if(!this.bLibraryInitialized){var n=e.adwords_id||"",r=e.gtag_path||"https://www.googletagmanager.com/gtag/js",a=new URL(r);e.gtag_path||a.searchParams.set("id","AW-"+n);var o=document.createElement("script");o.src=a.href,document.getElementsByTagName("head")[0].appendChild(o),window.dataLayer=window.dataLayer||[],window.gtag=function(){dataLayer.push(arguments)};var s={};if(e.gtag_path&&(s.transport_url=e.gtag_path),typeof e.user_id<"u"&&e.user_id!==!1&&e.user_id!==null)try{e.user_id.toString().length>0&&(s.user_id=e.user_id)}catch{}window.gtag("js",new Date),window.gtag("config","AW-"+n,s),this.bLibraryInitialized=!0}},this.createEventObject=function(e){var n="",r={};if(typeof e.event_properties<"u"&&Object.keys(e.event_properties).length>0){var a=Object.keys(e.event_properties);for(d=0;d<a.length;d++)n=a[d],typeof e.event_properties[n]<"u"&&e.event_properties[n]!==""&&e.event_properties[n]!==null&&(r[n]=e.event_properties[n])}if(typeof e.guilist<"u"&&Object.keys(e.guilist).length>0&&(r=this._mutateObjectWithGuilist(e.guilist,r)),typeof e.products<"u"&&typeof e.products=="object"&&Object.keys(e.products).length>0){r.items=[];var o={},s=0;for(var c in e.products)Object.prototype.toString.call(e.products[c])==="[object Array]"&&(s=Math.max(s,e.products[c].length));for(var c in e.products)if(Object.prototype.toString.call(e.products[c])==="[object Array]")o[c]=e.products[c];else if(typeof e.products[c]=="string"&&e.products[c]!==""){for(var u=[],d=0;d<s;d++)u.push(e.products[c]);o[c]=u}else if(e.products[c]!==""&&e.products[c]!==null&&typeof e.products[c]<"u"){for(var u=[],d=0;d<s;d++)u.push(e.products[c]);o[c]=u}for(var f=this._maxIteration(o),d=0;d<f;d++){var l={};for(var c in o)typeof o[c][d]<"u"&&o[c][d]!==""&&(l[c]=o[c][d]);r.items.push(l)}}
1var w=e.adwords_id?"AW-"+e.adwords_id:"";e.conversion_label?r.send_to=w+"/"+e.conversion_label:r.send_to=w;var g=e.event_name||"";this.submitEvent(g,r)},this.submitEvent=function(e,n){window.gtag&&window.gtag("event",e,n)}},tracker:{34:{adwords_id:"16731203165",gtag_path:""}}}},window.jentis.config.jtm.frontendTags={},window.jentis.config.jtm.enrichment={},window.jentis.config.jtm.codeblocks={8:{js:function(t){var e=[10,25,75,90,95,100];window.addEventListener("scroll",function(){for(var n=(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0)+window.innerHeight,r=Math.ceil(100/document.documentElement.scrollHeight*n),a=0;a<e.length;a++)e[a]!=null&&e[a]<=r&&(_jts.push({track:"event",name:"scroll",value:e[a]}),e[a]=null)})},css:"",order:0},9:{js:function(t){(function(){var e=document.querySelector(".newsletter2go-container>form");if(e){var n=window.MutationObserver,r=new n(function(o){o.forEach(function(s){s.type==="childList"&&s.addedNodes.length>0&&s.addedNodes[0].nodeName==="H2"&&s.addedNodes[0].outerText==s.target.messages.message_subscribe_doi&&(_jts.push({track:"event",group:"form",name:"newsletter_submit"}),r.disconnect())})}),a={attributes:!0,childList:!0,characterData:!0};r.observe(e,a)}})()},css:"",order:1},12:{js:function(t){for(var e=document.querySelectorAll("a[href='/servicenav/fulltextsearch']"),n=0;n<e.length;n++)e[n].addEventListener("click",r=>{setTimeout(function(){document.querySelector(".fulltextsearch-overlay form").addEventListener("submit",a=>{_jts.push({track:"search",group:"internal site search",term:document.querySelector("#fulltextsearch-term").value},!0)})},1e3)})},css:"",order:0}},window.jentis.config.jtm.syntheticUsers={urlCampaignNames:[],previewEnabled:!1},window.jentis.config.jtm.mainDomain={setCookieOnMainDomain:!0,domain:"empower-southamerica.com.br"},window.jentis.config.jtm.cookieExtender={enabled:!1,url:"https://empower-southamerica.com.br/0w8seo"},window.jentis.config.jtm.dataLayerAdapters={},window.jentis=window.jentis||{},window.jentis.helper=new(function(){var t=this;this.aEventCache={},this.oServerCookies={},this.bMinimalConsentGiven=!1,this.oClientCookiesCache={},this._cacheTrackingMonitorRequests={},this._cacheEventIdToStateName={},this.isSendingToMonitorActive=!1,this.bIsLocalStorageAvailable,this.bIsSessionStorageAvailable,this.EventEmitter=function(){this.events={},this.cache={}},this.EventEmitter.prototype.on=function(e,n){this.events[e]||(this.events[e]=[]),this.events[e].push(n),this.cache[e]&&this.cache[e].forEach(function(r){n.apply(null,[r])})},this.EventEmitter.prototype.emit=function(e){var n=Array.prototype.slice.call(arguments,1);this.cache[e]||(this.cache[e]=[]),n.length>0&&(n=n[0]),this.cache[e].push(n),this.events[e]&&this.events[e].forEach(function(r){r.apply(null,[n])})},this.eventHandler=new this.EventEmitter,this.init=function(){this.listenForJentisTrackerJSInitEvent()},this.listenForJentisTrackerJSInitEvent=function(){this.addEventListener("jentis.tracker.init",function(){window.jentis.tracker.getPreviewVersion()!==!1&&(window.jentis.helper.isSendingToMonitorActive=!0,window.jentis.helper._startListeningForTrackingMonitorStreams())},!0)},this.sendErrorToLogSystem=function(e,n){},this.checkLocalStorage=function(){var e="test";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch{return!1}},this.checkSessionStorage=function(){var e="test";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch{return!1}},this.addEventListener=function(e,n,r=!1){if(r)this.eventHandler.on(e,n);else if(typeof this.aEventCache[e]<"u")for(var a=0;a<this.aEventCache[e].length;a++)n({detail:this.aEventCache[e][a]})},this.setEvent=function(e,n,r,a=!1){var o=e+"."+n;if(typeof r>"u")var r=null;if(a?this.eventHandler.emit(o,{detail:r}):(typeof this.aEventCache[o]>"u"&&(this.aEventCache[o]=[]),this.aEventCache[o].push(r)),typeof window.CustomEvent=="function")var s=new CustomEvent(o,{detail:r});else{var s=document.createEvent("CustomEvent");s.initCustomEvent(o,!0,!1,r)}document.dispatchEvent(s)},this.getHostname=function(e){var n=e.match(/^https?:\/\/([^\/?#]+)(?:[\/?#]|$)/i);return n&&n[1]||""},this.getJSCookieDomain=function(e,n){var r=this.getHostname(e),a=r.split(".")[0],o=this.getHostname(n),s=o.split(".")[0];if(a===s){var c=n.split(".");return c[0]="",c.join(".")}return"."+o},this.getTrackingDomain=function(e,n){return typeof window.jentis.config.jtm.mainDomain<"u"&&typeof window.jentis.config.jtm.mainDomain.setCookieOnMainDomain<"u"&&window.jentis.config.jtm.mainDomain.setCookieOnMainDomain===!0&&typeof window.jentis.config.jtm.mainDomain.domain<"u"?"."+window.jentis.config.jtm.mainDomain.domain:this.getJSCookieDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain)},this.setServerCookie=function(e){typeof e.name<"u"&&typeof e.value<"u"&&typeof e.exdays<"u"&&(this.oServerCookies[e.name]=e)}
1,this.getServerCookies=function(){if(this.bMinimalConsentGiven===!0){var e=[];for(var n in this.oServerCookies){var r=this.oServerCookies[n];typeof r.vendorids<"u"?window.jentis.helper._isMinimumOneConsentGivenOfList(r.vendorids)===!0&&(e.push(r),delete this.oServerCookies[n]):(e.push(r),delete this.oServerCookies[n])}return e}return[]},this.readCookie=function(e){var n=this.parseCookiesToJson();return typeof n[e]<"u"&&(n[e].length>1&&typeof window.jentis.config.jtm.mainDomain<"u"&&typeof window.jentis.config.jtm.mainDomain.setCookieOnMainDomain<"u"&&window.jentis.config.jtm.mainDomain.setCookieOnMainDomain===!0&&typeof window.jentis.config.jtm.mainDomain.domain<"u"&&(this._deleteCookieFromDomain(e,this.getJSCookieDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain)),n=this.parseCookiesToJson()),typeof n[e]<"u"&&n[e].length>0)?n[e][0]:null},this._deleteCookieFromDomain=function(e,n){document.cookie=`${e}=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/; Domain=${n}`},this.setCookie=function(e){if(this.bMinimalConsentGiven===!1)typeof e.name<"u"&&(this.oClientCookiesCache[e.name]=e);else if(typeof e.vendorids>"u"||typeof e.vendorids<"u"&&window.jentis.helper._isMinimumOneConsentGivenOfList(e.vendorids)===!0){var n=new Date;if(e.exdays!==null&&typeof e.exdays=="object"){var r=((typeof e.exdays.h<"u"?e.exdays.h:0)*60*60+(typeof e.exdays.m<"u"?e.exdays.m:0)*60+(typeof e.exdays.s<"u"?e.exdays.s:0))*1e3;r>window.jentis.config.jtm.maximumStorageLifetime&&(r=window.jentis.config.jtm.maximumStorageLifetime);var a=n.getTime()+r;n.setTime(a)}else{var r=e.exdays*24*60*60*1e3;r>window.jentis.config.jtm.maximumStorageLifetime&&(r=window.jentis.config.jtm.maximumStorageLifetime);var a=n.getTime()+r;n.setTime(a)}var o=this.getJSCookieDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain),s=encodeURIComponent(e.value)+"; path=/; domain="+o+(e.exdays==null?"":"; expires="+n.toUTCString())+(typeof e.sameSite<"u"?"; SameSite="+e.sameSite:"")+(typeof e.bSecure<"u"&&e.bSecure===!0?"; Secure":"");typeof window.jentisApp<"u"&&typeof window.jentisApp.cookieSettingMethod=="function"?window.jentisApp.cookieSettingMethod(e.name+"="+s):document.cookie=e.name+"="+s}else typeof e.name<"u"&&(this.oClientCookiesCache[e.name]=e)},this.setLocalStorageItem=function(e,n,r){if(typeof window.jentis.helper.bIsLocalStorageAvailable>"u"&&(window.jentis.helper.bIsLocalStorageAvailable=this.checkLocalStorage()),!window.jentis.helper.bIsLocalStorageAvailable)return!1;try{var a=new Date;r?r>window.jentis.config.jtm.maximumStorageLifetime&&(r=window.jentis.config.jtm.maximumStorageLifetime):r=window.jentis.config.jtm.maximumStorageLifetime;var o={value:n,ttl:r,expiry:a.getTime()+r};return window.localStorage.setItem(e,JSON.stringify(o)),!0}catch{return this.log("J-DCP :","LocalStorage quota exceeded."),!1}},this.getLocalStorageItem=function(e){if(typeof window.jentis.helper.bIsLocalStorageAvailable>"u"&&(window.jentis.helper.bIsLocalStorageAvailable=this.checkLocalStorage()),!!window.jentis.helper.bIsLocalStorageAvailable)try{var n=window.localStorage.getItem(e);if(!n)return null;var r="",a=new Date;try{r=JSON.parse(n),typeof r.expiry>"u"&&typeof r.ttl>"u"&&(r={value:r,ttl:window.jentis.config.jtm.maximumStorageLifetime,expiry:a.getTime()+window.jentis.config.jtm.maximumStorageLifetime})}catch{r={value:n,ttl:window.jentis.config.jtm.maximumStorageLifetime,expiry:a.getTime()+window.jentis.config.jtm.maximumStorageLifetime}}return a.getTime()>r.expiry?(window.localStorage.removeItem(e),null):(window.jentis.helper.setLocalStorageItem(e,r.value,r.ttl),r.value)}catch{this.log("J-DCP :","LocalStorage quota exceeded.");return}},this.setSessionStorageItem=function(e,n){if(typeof window.jentis.helper.bIsSessionStorageAvailable>"u"&&(window.jentis.helper.bIsSessionStorageAvailable=this.checkSessionStorage()),!!window.jentis.helper.bIsSessionStorageAvailable)try{window.sessionStorage.setItem(e,n)}catch{this.log("J-DCP :","SessionStorage quota exceeded.");return}}
1,this.getSessionStorageItem=function(e){if(typeof window.jentis.helper.bIsSessionStorageAvailable>"u"&&(window.jentis.helper.bIsSessionStorageAvailable=this.checkSessionStorage()),!!window.jentis.helper.bIsSessionStorageAvailable){var n=window.sessionStorage.getItem(e);if(!n)return null;try{return JSON.parse(n)}catch{return n}}},this.enableClientCookies=function(){this.bMinimalConsentGiven=!0;for(var e in this.oClientCookiesCache){var n=this.oClientCookiesCache[e];typeof n.vendorids<"u"?window.jentis.helper._isMinimumOneConsentGivenOfList(n.vendorids)===!0&&(this.setCookie(n),delete this.oClientCookiesCache[e]):(this.setCookie(n),delete this.oClientCookiesCache[e])}},this.disableClientCookies=function(){this.bMinimalConsentGiven=!1},this._isMinimumOneConsentGivenOfList=function(e){for(var n=!1,r=0;r<e.length;r++)if(window.jentis.consent.engine.getVendorConsent(e[r])===!0||window.jentis.consent.engine.getVendorConsent(e[r])==="ncm"){n=!0;break}return n},this.parseCookiesToJson=function(){var e={},n=document.cookie.split("; ");return n.forEach(function(r){var a="",o="";try{var s=r.split(/=(.+)/);a=decodeURIComponent(s[0]),o=decodeURIComponent(s[1]||""),e[a]?e[a].push(o):e[a]=[o]}catch{}}),e},this.fGetUrlParams=function(){var e={},n,r=/\+/g,a=/([^&=]+)=?([^&]*)/g,o=function(c){try{return window.decodeURIComponent(c.replace(r," "))}catch{return c}},s=window.location.search.substring(1);try{for(;n=a.exec(s);)e[o(n[1])]=o(n[2])}catch{}return e},this.cloneObject=function(e){if(Object.prototype.toString.call(e)==="[object Array]"){for(var n=[],r=0;r<e.length;r++)n[r]=this.cloneObject(e[r]);return n}else if(e!==null&&typeof e=="object"){var n={};for(var a in e)e.hasOwnProperty(a)&&(n[a]=this.cloneObject(e[a]));return n}else return e},this.log=function(e,n){window.jentis.tracker.bLogMode===!0&&(typeof n>"u"?typeof e=="object"?(console.log("%o",e),this.sendLogToMonitor(JSON.stringify(e))):(console.log(e),this.sendLogToMonitor(e)):typeof n=="object"?(console.log(e+": %o",n),this.sendLogToMonitor(e+": "+JSON.stringify(n))):(console.log(e+": "+n),this.sendLogToMonitor(e+": "+n)))},this.logError=function(e,n,r){var a=" - Error Report",o="";typeof e<"u"&&e!==""&&(a=e+a,o="["+e+"]: "),typeof n<"u"&&n!==""&&(o+=n),console.group(a),console.log(o),typeof r<"u"&&console.error(r),console.groupEnd(),this.sendErrorToMonitor(e,n,r)},this.sendLogToMonitor=function(e,n){var r=this._getTemplateJSONForMonitorTag();r.name=e,r.source="frontend",r.type="info",n&&(r._id=n),this._pushTagIntoMonitorCache(r,"")},this.sendFrontendTagToMonitor=function(e){var n=e.frontendTag,r=e.stateName,a=e.stateEventId,o=this._getTemplateJSONForMonitorTag();o._id=n.id,o.tool_id=n.tool_id,o.vendor_id=n.vendor_id,o.source="frontend",o.type="tag",o.trigger=n.trigger,o.http.query_string_parameters=n.placeholders,o.variables.frontend=n.frontendVariables,o.variables.constant=n.constantVariables,o.variables.enrichment=n.enrichmentVariables,o.functions=n.transformationFunctions;var s=this._cacheTrackingMonitorRequests,c=s&&s[a],u=!1;if(c)for(var d=0;d<c.length;d++){var f=c[d];if(!(typeof f._id>"u"||f._id!==o._id)){typeof f.triggers>"u"?(f.triggers=[f.trigger,o.trigger],delete f.trigger):f.triggers.push(o.trigger),f.variables.frontend=Object.assign({},f.variables.frontend,o.variables.frontend),o.trigger.executed===!0&&(f.http.query_string_parameters=Object.assign({},f.http.query_string_parameters,o.http.query_string_parameters)),u=!0;break}}u||this._pushTagIntoMonitorCache(o,r,a)},this.sendErrorToMonitor=function(e,n,r){var a=this._getTemplateJSONForMonitorTag();a.name="",typeof n<"u"&&n!==""&&(a.name=n,typeof e<"u"&&e!==""&&(a.name="["+e+"]: "+n)),a.source="frontend",a.type="error",a.error={},typeof r<"u"&&typeof r.message<"u"?(a.error.message=r.message,a.name===""&&(a.name=r.message,typeof e<"u"&&e!==""&&(a.name="["+e+"]: "+r.message))):a.error.message="",typeof r<"u"&&typeof r.stack<"u"?a.error.stack=r.stack:a.error.stack="",this._pushTagIntoMonitorCache(a,"")},this._getTemplateJSONForMonitor=function(){return{debugid:window.jentis.config.frontend.debug,consent:window.jentis.consent.engine.getAllConsents(),docs:{},state:"",tags:[]}},this._getTemplateJSONForMonitorTag=function(){return{_id:"",name:"",source:"",type:"",timestamp:Date.now(),trigger:{id:"",executed:!0,conditions:[],excludeTriggers:[]},http:{general:{requestUrl:"",requestMethod:"",requestStatus:200,remoteAddress:""},payload:{},request_headers:{},query_string_parameters:{},response:{status:200,statusText:"",data:"",success:!0,headers:{}}},variables:{frontend:{},backend:{},constant:{},enrichment:{}},functions:{}}}
1,this._pushTagIntoMonitorCache=function(e,n,r){typeof r>"u"&&(r=""),typeof this._cacheTrackingMonitorRequests[r]>"u"&&(this._cacheTrackingMonitorRequests[r]=[]),this._cacheTrackingMonitorRequests[r].push(e),typeof this._cacheEventIdToStateName[r]>"u"&&(this._cacheEventIdToStateName[r]=n)},this.prepareMonitorRequestData=function(e){var n=window.jentis.helper._getTemplateJSONForMonitor(),r=e.frontendTags||{},a=e.stateName||"",o=e.stateEventIdToSend||"";return n.tags=r,n.state=a,n.eventDocumentId=o,n},this._fireMonitorRequest=function(e,n){n?this.monitorPayloadChunker.resolveMonitorChunks(e):window.jentis.tracker.sendHTTPStream({endpoint:"/monitor",data:JSON.stringify(e),method:"POST",contentType:"application/json",withCredentials:!1})},this.monitorCacheDispatcher=function(e,n){if(e)this.sendCachedMonitorRequest({stateEventIdToSend:e,requestMethod:n});else{var r=[];window.jentis.helper._mergeArrayWithoutDuplicates(r,Object.keys(window.jentis.helper._cacheEventIdToStateName));for(var a=0;a<r.length;a++)this.sendCachedMonitorRequest({stateEventIdToSend:r[a],requestMethod:n})}},this.sendCachedMonitorRequest=function(e){var n=e.stateEventIdToSend,r=!!(e.requestMethod&&e.requestMethod==="sendBeacon");if(typeof window.jentis.helper._cacheTrackingMonitorRequests[n]<"u"&&window.jentis.helper._cacheTrackingMonitorRequests[n].length>0){var a={frontendTags:window.jentis.helper._cacheTrackingMonitorRequests[n],stateName:window.jentis.helper._cacheEventIdToStateName[n],stateEventIdToSend:n},o=window.jentis.helper.prepareMonitorRequestData(a);window.jentis.helper._fireMonitorRequest(o,r),window.jentis.helper._cacheTrackingMonitorRequests[n]=[],delete window.jentis.helper._cacheEventIdToStateName[n]}},this._startListeningForTrackingMonitorStreams=function(){if(window.jentis.helper.isSendingToMonitorActive===!0)var e=window.setInterval(function(){window.jentis.helper.monitorPayloadChunker.retryUnsentMonitorChunksFromLocalStorage(),window.jentis.helper.monitorCacheDispatcher()},3e3)},this._mergeArrayWithoutDuplicates=function(e,n){for(var r=0;r<n.length;r++)e.indexOf(n[r])===-1&&e.push(n[r]);return e},this.monitorPayloadChunker={endpoint:"/monitor",maxPayloadSize:65536,localStorageKey:"jts_cached_monitorlogs",localStorageLifetimeMs:3e5,_getByteLength:function(e){return new Blob([e]).size},_isTagExecuted:function(e){return e.trigger&&e.trigger.executed===!0},_chunkTags:function(e,n){for(var r=t.monitorPayloadChunker,a=65536,o=[],s={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:[]},c=JSON.stringify(s),u=r._getByteLength(c)-2,d=[],f=u+2,l=0;l<e.length;l++){var w=JSON.stringify(e[l]),g=r._getByteLength(w)+(d.length?1:0);if(g+u+2>a){var p={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:[e[l]]};o.push(p),r.saveChunkToLocalStorage(p);continue}if(f+g>a){var h={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:d};o.push(h),d=[e[l]],f=u+2+r._getByteLength(w)}else d.push(e[l]),f+=g}if(d.length){var y={consent:n.consent,debugid:n.debugid,docs:n.docs,eventDocumentId:n.eventDocumentId,state:n.state,tags:d};o.push(y)}return o},_mergeTagsByEventDocumentId:function(e){for(var n=e,r={},a=0;a<n.length;a++){var o=n[a],s=o.eventDocumentId;if(r[s])r[s].tags=r[s].tags.concat(o.tags);else{var c={};for(var u in o)o.hasOwnProperty(u)&&(u==="tags"?c.tags=o.tags.slice():c[u]=o[u]);r[s]=c}}var d=[];for(var f in r)r.hasOwnProperty(f)&&d.push(r[f]);return d},saveChunkToLocalStorage:function(e){var n=t.monitorPayloadChunker,r=[],a=t.getLocalStorageItem(n.localStorageKey);a&&(r=JSON.parse(a)),r.push(e),t.setLocalStorageItem(n.localStorageKey,JSON.stringify(r),n.localStorageLifetimeMs)},chunkPayloadObject:function(e){for(var n=t.monitorPayloadChunker,r=e.tags||[],a=[],o={consent:e.consent,debugid:e.debugid,docs:e.docs,eventDocumentId:e.eventDocumentId,state:e.state,tags:[]},s=0;s<r.length;s++)n._isTagExecuted(r[s])?a.push(r[s]):o.tags.push(r[s]);var c=n._chunkTags(a,e);return{executed:c,notExecuted:o.tags.length>0?[o]:[]}},sendChunk:function(e){var n=t.monitorPayloadChunker,r=JSON.stringify(e),a=window.jentis.tracker.sendBeaconStream({endpoint:n.endpoint,data:r});return a},resolveMonitorChunks:function(e){for(var n=t.monitorPayloadChunker,r=n.chunkPayloadObject(e)||{executed:[],notExecuted:[]},a=!0,o=0;o<r.executed.length;o++)if(a=n.sendChunk(r.executed[o]),!a){for(var s=o;s<r.executed.length;s++)n.saveChunkToLocalStorage(r.executed[s]);break}for(var o=0;o<r.notExecuted.length;o++)n.saveChunkToLocalStorage(r.notExecuted[o])}
1,retryUnsentMonitorChunksFromLocalStorage:function(){var e=t.monitorPayloadChunker,n=[],r=t.getLocalStorageItem(e.localStorageKey);if(r&&(n=e._mergeTagsByEventDocumentId(JSON.parse(r))),n.length!==0){for(var a=0;a<n.length;a++){var o=n[a];window.jentis.tracker.sendHTTPStream({endpoint:e.endpoint,data:JSON.stringify(o),method:"POST",contentType:"application/json",withCredentials:!1})}window.localStorage.removeItem(e.localStorageKey)}}}}),window.jentis.helper.init(),window.jentis=window.jentis||{},window.jentis.consent=window.jentis.consent||{},window.jentis.consent.config={bridge:{vendorsDefault:{consentMode:0,internalUsercentricsID:""},custom_js_eventname:"",custom_global_objectname:"usercentrics"},vendors:{adwords:{internalUsercentricsID:"8ScDZDmU",consentMode:0,googleConsentMode:{ad_storage:!0,analytics_storage:!0,ad_user_data:!0,ad_personalization:!0}},"google_analytics_4_server-side":{internalUsercentricsID:"87JYasXPF",consentMode:0,googleConsentMode:{ad_storage:!0,analytics_storage:!0,ad_user_data:!1,ad_personalization:!1}}}},window.jentis=window.jentis||{},window.jentis.consent=window.jentis.consent||{},window.jentis.consent.engine=new function(){this.init=function(){this.v="2",this.setV2MappingMigration(),this.setFallbackConfiguration(),this.aEventCache={},this.bNewVendorConsent=!1,this.sConsentId=!1,this.bUserConsent=!1,this.iLastUpdate=!1,this.bSend=!1,this.aStorage={},this.vendorsConsentModeFromStorage={},this.aInitStorage={},this.bStartTrack=null,this.consentData={},this.optedOutVendors=[],this.bIframe=window.self!==window.top,this.readStorage(),this.init_eventlistener(),this.init_consentStatus();var t=this.checkifBarShow();this.startJentisTracking(t)},this.setV2MappingMigration=function(){typeof window.jentis.consent.v2mapper<"u"?this.vendorV2Migration=window.jentis.consent.v2mapper:this.vendorV2Migration={adformDMP:"adformdmp",ga:"googleanalytics",fb:"facebook",partnerizeservertoserver:"partnerize",googleoptimize:"googleopt",cjaffiliate:"cj-affiliate",scrolltracker:"scrolltracker"}},this.setFallbackConfiguration=function(){typeof window.jentis.consent.config<"u"?(Object.keys(window.jentis.consent.config.vendors).length===0&&(window.jentis.consent.config.vendors={"*":{category:{id:"fallback"},vendor:{id:"*",name:"",street:"",zip:"",country:{iso:"-",name:""}},purpose:{id:"other",name:"Other"},justification:{id:"other",name:"other"},consentMode:1,description:""}}),this.oLocalConfData=window.jentis.consent.config):(console.log("jentis.consent.engine config not found - fallback config"),this.oLocalConfData={timeoutBarShow:-1,backward:{},bModeStartInitTrackOnNoConsentMode:!0,template:{},vendors:{"*":{category:{id:"fallback"},vendor:{id:"*",name:"",street:"",zip:"",country:{iso:"-",name:""}},purpose:{id:"other",name:"Other"},justification:{id:"other",name:"other"},consentMode:1,description:""}}})},this.startJentisTracking=function(t){var e=!1;for(var n in this.oLocalConfData.vendors){var r=this.oLocalConfData.vendors[n];if(r.consentMode===0||r.consentMode===2){if(typeof this.sConsentId<"u"&&this.sConsentId!==!1&&t===!1&&(this.aStorage[n]===!0||this.aStorage[n]==="ncm")){e=!0;break}}else if(r.consentMode===1){if(typeof this.sConsentId<"u"&&this.sConsentId!==!1&&this.aStorage[n]===!1)continue;e=!0;break}}e===!0&&this.bStartTrack!==!0?window.jentis.helper.setEvent("jentis.consent.engine","minimal-consent-given",null,!0):e===!1&&window.jentis.helper.setEvent("jentis.consent.engine","no-consent-given",null,!0),this.bStartTrack=e},this.init_consentStatus=function(){if(this.sConsentId===!1)var t={};else var t=this.aStorage;this.bNewVendorConsent=!1,this.bWriteStorage=!1;var e=!1;for(var n in this.oLocalConfData.vendors){var r=this.oLocalConfData.vendors[n];typeof t[n]>"u"?r.consentMode===0||r.consentMode===2?this.bNewVendorConsent=!0:r.consentMode===1&&(t[n]=!0,e=!0,window.jentisApp.delayInitForConsent||(this.bWriteStorage=!0),window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0):typeof this.vendorsConsentModeFromStorage[n]<"u"?this.vendorsConsentModeFromStorage[n]!==r.consentMode&&(r.consentMode===0||r.consentMode===2?this.bNewVe
1ndorConsent=!0:r.consentMode===1&&(t[n]=!0,e=!0),this.bWriteStorage=!0):r.consentMode===1&&(t[n]=!0,e=!0,this.bWriteStorage=!0)}Object.keys(t).length>1&&typeof t["*"]<"u"&&(delete t["*"],this.bWriteStorage=!0),this.aInitStorage=this.copyObject(t);var a=!1,o=!1;this.bSend===!1&&this.sConsentId!==!1&&(a=!0,o=!0),this.bSend===!1&&e===!0&&this.oLocalConfData.bModeStartInitTrackOnNoConsentMode===!0&&(a=!0,o=!1),this.bSend===!0&&this.sConsentId!==!1&&this.bNewVendorConsent===!0&&(a=!0,o=!0),this.bWriteStorage?this.writeStorage(t,a,!0,!1,o):a&&this.writeStorage(t,a,!1,!1,o),window.jentis.helper.setEvent("jentis.consent.engine","init",null,!0)},this.checkifBarShow=function(){return Object.keys(this.aStorage).length===0||this.sConsentId===!1||this.bUserConsent===!1||this.bNewVendorConsent===!0||this.iLastUpdate===!1||typeof this.oLocalConfData.timeoutBarShow<"u"&&this.oLocalConfData.timeoutBarShow!==!1&&this.iLastUpdate+this.oLocalConfData.timeoutBarShow<Date.now()?(window.jentis.helper.setEvent("jentis.consent.engine","show-bar",null,!0),!0):!1},this.readStorage=function(){var t=window.jentis.helper.readCookie("jts_cmp")||!1,e=null;if(t?(e=JSON.parse(t),window.jentis.helper.setCookie({name:"jts_cmp",value:"",exdays:-1,sameSite:"Strict"})):e=window.jentis.helper.getLocalStorageItem("jentis.consent.data")||null,e){if(this.sConsentId=e.consentid,this.iLastUpdate=e.lastupdate,this.aStorage=e.vendors,this.bUserConsent=e.userconsent,this.consentData=e.data,typeof e.vendorsJustification<"u")for(var a in e.vendorsJustification)typeof e.vendorsJustification[a]<"u"&&e.vendorsJustification[a]!=="consent"?this.vendorsConsentModeFromStorage[a]=1:this.vendorsConsentModeFromStorage[a]=-1;typeof e.vendorsConsentMode<"u"&&(this.vendorsConsentModeFromStorage=e.vendorsConsentMode),typeof this.aStorage>"u"&&typeof this.oLocalConfData.backward<"u"&&typeof this.oLocalConfData.backward.vendorduplicate<"u"&&(this.aStorage=e[this.oLocalConfData.backward.vendorduplicate]);var o=!1;for(var s in this.aStorage){var c=this.vendorV2Migration[s];typeof c<"u"&&(this.aStorage[c]=this.aStorage[s],delete this.aStorage[s],o=!0)}o&&(e.vendors=this.aStorage,typeof this.aStorage>"u"&&typeof this.oLocalConfData.backward<"u"&&typeof this.oLocalConfData.backward.vendorduplicate<"u"&&(e[this.oLocalConfData.backward.vendorduplicate]=this.aStorage),this.store2LocalStorage(e));for(var n in this.aStorage)e.vendorsConsentMode[n]===1&&typeof this.aStorage[n]<"u"&&this.aStorage[n]===!1&&this.optedOutVendors.push(n);this.aInitStorage=this.copyObject(e.vendors),typeof e.send<"u"?this.bSend=e.send:this.bSend=!1}else{this.sConsentId=!1,this.iLastUpdate=!1,this.bSend=!1,this.aStorage={};for(var n in this.oLocalConfData.vendors){var r=this.oLocalConfData.vendors[n];r.consentMode===1?this.aStorage[n]=!0:this.aStorage[n]=!1}this.aInitStorage={}}},this.getTemplateConfig=function(){return typeof this.oLocalConfData<"u"?this.oLocalConfData:!1},this.getVendorConsent=function(t){return this.aStorage[t]},this.getAllConsents=function(){return this.aStorage},this.getConsentId=function(){return this.sConsentId},this.getVendorFullData=function(){var t={};for(var e in this.oLocalConfData.vendors)t[e]=this.oLocalConfData.vendors[e],t[e].status=this.aStorage[e];return t},this.getLastUpdateTime=function(){return this.iLastUpdate},this.getVendorsOfGCT=function(t){var e=t,n=[];if(typeof window.jentis.consent.config<"u"&&typeof window.jentis.consent.config.vendors<"u"&&Object.keys(window.jentis.consent.config.vendors).length>0){var r=window.jentis.consent.config.vendors;for(var a in r)typeof r[a].googleConsentMode<"u"&&typeof r[a].googleConsentMode[e]<"u"&&r[a].googleConsentMode[e]===!0&&n.push(a)}return n},this.getConsentOfGCT=function(t){var e=this.getVendorsOfGCT(t);if(e.length>0){for(var n=!1,r=0;r<e.length;r++){var a=this.getVendorConsent(e[r]);if(a===!0){n=!0;break}}return n}return null},this.setNewVendorConsentsIgnoreConsentMode=function(t){this.recognizeDisabledVendorOptedOutPattern(t),this.setNewVendorConsents(t,!0)},this.setNewVendorConsents=function(t,e){var n=!1;typeof e>"u"&&(e=!1);for(var r in t)if(this.aStorage[r]=t[r],!e){this.aStorage[r]===!1&&typeof this.oLocalConfData.vendors[r]<"u"&&typeof this.oLocalConfData.vendors[r].consentMode<"u"&&this.oLocalConfData.vendors[r].consentMode===2&&(this.aStorage[r]="ncm",window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0);var a=this.optedOutVendors.indexOf(r);typeof this.oLocalConfData.vendors[r]<"u"&&typeof this.oLocalConfData.vendors[r].consentMode<"u"&&this.oLocalConfData.vendors[r].consentMode===1&&(this.aStorage[r]!==!0?a<0&&(this.aStorage[r]=!0):a>-1&&this.optedOutVendors.splice(a,1))}for(var o in this.aStorage)window.jentisApp&&window.jentisApp.delayInitForConsent&&this.aStorage[o]!=="undefined"&&this.aStorage[o]!==!1&&(window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0,n=!0);if(n){var s=window.jentis.helper.getLocalStorageItem("jentis.consent.data");s||(s=JSON.parse(window.jentis.helper.readCookie("jts_cmp"))),s&&typeof s.vendors<"u"&&(this.aInitStorage=s.vendors),this.sConsentId=s&&s.consentid?s.consentid:this.sConsentId}return this.writeStorage(this.aStorage,!0)},this.OptOut=function(){var t={};for(var e in this.oLocalConfData.vendors)t[e]=!1;return this.writeStorage(t,!0)},this.DenyAll=function(){var t={};for(var e in this.oLocalConfData.vendors){var n=this.oLocalConfData.vendors[e];n.consentMode===0?t[e]=!1:n.consentMode===2?t[e]="ncm":n.consentMode===1&&(this.optedOutVendors.indexOf(e)!==-1?t[e]=!1:t[e]=!0)}return this.setNewVendorConsents(t)},this.AcceptAll=function(){var t={};for(var e in this.oLocalConfData.vendors)t[e]=!0;return this.setNewVendorConsents(t)},this.userShowSettings=function(){window.jentis.helper.setEvent("jentis.consent.engine","user-show-settings",null,!0)},this.addEventListener=function(t,e){window.jentis.helper.addEventListener(t,e,!0)},this.init_eventlistener=function(){(function(t){document.addEventListener("jentis.consent.engine.setNewVendorConsents",function(e){t.setNewVendorConsents(e.details.vendors),window.jentis.helper.setEvent("jentis.consent.engine","external-NewVendorData",null,!0)},!1)})(this),(function(t){document.addEventListener("jentis.consent.engine.DenyAll",function(e){t.alldeny(),window.jentis.helper.setEvent("jentis.consent.engine","external-DenyAll",null,!0)},!1)})(this),(function(t){document.addEventListener("jentis.consent.engine.AcceptAll",function(e){t.allagree(),window.jentis.helper.setEvent("jentis.consent.engine","external-AcceptAll",null,!0)},!1)})(this)},this.checkStorageChange=function(t){var e=[],n={},r=!1,a=!1;for(var o in t)(typeof this.aInitStorage[o]>"u"||this.aInitStorage[o]===!1)&&t[o]===!0||typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]==="ncm"&&t[o]===!0||(typeof this.aInitStorage[o]>"u"||this.aInitStorage[o]===!1)&&t[o]==="ncm"?(e.push(o),n[o]=t[o],r=!0,a=!0):(typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]===!0&&t[o]===!1||typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]===!0&&t[o]==="ncm"||typeof this.aInitStorage[o]<"u"&&this.aInitStorage[o]==="ncm"&&t[o]===!1||typeof this.aInitStorage[o]>"u"&&t[o]===!1)&&(r=!0,n[o]=t[o],a=!0);return e.length>0&&window.jentis.helper.setEvent("jentis.consent.engine","vendor-ad
1d",e,!0),r===!0&&window.jentis.helper.setEvent("jentis.consent.engine","vendor-change",t,!0),this.aInitStorage=this.copyObject(t),[n,a]},this.writeStorage=function(t,e,n,r,a){typeof a>"u"&&(a=!0),this.bUserConsent=a,this.sConsentId===!1&&e===!0&&(this.sConsentId=this.uuidv4()),typeof e>"u"&&(e=!0),typeof r>"u"&&(r=!0),(typeof n>"u"||n===!0)&&(this.iLastUpdate=Date.now());var o={consentid:this.sConsentId,lastupdate:this.iLastUpdate,vendors:t,vendorsConsentMode:this.getConsentModePerVendor(),send:e,userconsent:a,data:this.consentData};typeof this.oLocalConfData.backward<"u"&&typeof this.oLocalConfData.backward.vendorduplicate<"u"&&(o[this.oLocalConfData.backward.vendorduplicate]=t),this.store2LocalStorage(o),this.aStorage=t;var s=this.checkStorageChange(t),c=s[0],u=s[1];return o.vendorsChanged=c,e===!0&&u===!0&&(window.jentis.helper.setEvent("jentis.consent.engine","send-consent-data",o,!0),this.bSend=!0),r===!0&&this.startJentisTracking(!1),this.sConsentId},this.store2LocalStorage=function(t){var e=window.jentis.helper.setLocalStorageItem("jentis.consent.data",t);e||window.jentis.helper.setCookie({name:"jts_cmp",value:JSON.stringify(t),exdays:365,sameSite:"Strict"})},this.getConsentModePerVendor=function(){var t={};for(var e in this.oLocalConfData.vendors)typeof this.oLocalConfData.vendors[e].consentMode<"u"&&this.oLocalConfData.vendors[e].consentMode!==null&&(t[e]=this.oLocalConfData.vendors[e].consentMode);return t},this.uuidv4=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=Math.random()*16|0,n=t=="x"?e:e&3|8;return n.toString(16)})},this.copyObject=function(t){var e={};for(var n in t)e[n]=t[n];return e},this.setConsentData=function(t){typeof t<"u"&&Object.prototype.toString.call(t)==="[object Object]"?this.consentData=t:window.jentis.helper.logError("J-Consent Engine","setConsentData > Passed Parameter is not a JSON!")},this.getConsentData=function(){return this.consentData},this.recognizeDisabledVendorOptedOutPattern=function(t){for(var e in t)if(typeof this.oLocalConfData.vendors[e]<"u"&&typeof this.oLocalConfData.vendors[e].consentMode<"u"&&this.oLocalConfData.vendors[e].consentMode===1&&t[e]===!1)this.optedOutVendors.push(e);else{var n=this.optedOutVendors.indexOf(e);n>-1&&this.optedOutVendors.splice(n,1)}},this.addEventListener=function(t,e){window.jentis.helper.addEventListener(t,e,!0)},this.resetConsent=function(){this.aStorage={},this.store2LocalStorage(null),window.jentis.tracker.log("J-Consent Engine","Consent has been reset."),window.jentis.tracker.resetCachedTrackingData()}},window.jentis.consent.engine.init(),window._jts=window._jts||[],window.jentis=window.jentis||{},window.jentis.vendor=window.jentis.vendor||{},window.jentis.vendor.cmp_bridge_usercentrics=new function(){this.init=function(){this.consentEngineReady=!1,this.ucReady=!1,this.ucServices={},this.newUcServices={},this.templateConfig=window.jentis.consent.engine.getTemplateConfig(),this.bridgeConfig=this.templateConfig.bridge,this.vendorConfig=this.templateConfig.vendors,this.ucGlobalName="usercentrics",typeof this.bridgeConfig.custom_global_objectname<"u"&&(this.ucGlobalName=this.bridgeConfig.custom_global_objectname),this.ucCustomJSEventName="",typeof this.bridgeConfig.custom_js_eventname<"u"&&(this.ucCustomJSEventName=this.bridgeConfig.custom_js_eventname),this.listenConsentEngine(),this.listenConsentEngineShowAgain(),this.listenUsercentrics(),this.listenUCinit()},this.listenConsentEngine=function(){var t=window.document;typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"&&(t=window.jentis.consent.engine),(function(e,n){
1n.addEventListener("jentis.consent.engine.init",function(r){e.consentEngineReady=!0,e.startTracking()})})(this,t)},this._transformNewConsentObejctToOld=function(t){var e=[],n={};if(typeof t.services<"u"&&typeof t.consent<"u"&&(typeof t.consent.type<"u"&&t.consent.type==="EXPLICIT"||typeof t.consent.type>"u"))for(var r in t.services)n={},n.id=r,n.consent={},typeof t.services[r].consent<"u"&&typeof t.services[r].consent.given<"u"&&(n.consent.status=t.services[r].consent.given),e.push(n);return e},this.listenUsercentrics=function(){(function(t){window.addEventListener("UC_UI_VIEW_CHANGED",function(e){typeof window.UC_UI<"u"&&t.handleUCVersions(t)},!1),window.addEventListener("UC_UI_CMP_EVENT",function(e){t.handleUCVersions(t)},!1),window.addEventListener("UC_CONSENT",function(e){t.handleUCVersions(t)},!1),window.addEventListener("ucEvents",function(e){t.addServicesToTracker()},!1),document.addEventListener("cmp:consents",function(e){t.addServicesToTracker()},!1),t.ucCustomJSEventName!==""&&document.addEventListener(t.ucCustomJSEventName,function(e){t.addServicesToTracker()},!1)})(this)},this.listenUCinit=function(){(function(t){typeof window.__ucCmp<"u"&&typeof window.__ucCmp.isInitialized=="function"?window.__ucCmp.isInitialized().then(function(e){e&&t.asyncAddServicesToTracker()}):typeof window.UC_UI<"u"&&window.UC_UI.isInitialized()===!0?t.handleUCVersions(t):window.addEventListener("UC_UI_INITIALIZED",function(e){t.handleUCVersions(t)},!1),window[t.ucGlobalName]=window[t.ucGlobalName]||{},window[t.ucGlobalName].isInitialized?t.addServicesToTracker():window[t.ucGlobalName].onViewInit=function(){t.addServicesToTracker()}})(this)},this.checkV3Presence=function(){return typeof window.__ucCmp<"u"&&typeof window.__ucCmp.getConsentDetails=="function"},this.handleUCVersions=function(t){t.checkV3Presence()?t.asyncAddServicesToTracker():t.addServicesToTracker()},this.asyncAddServicesToTracker=async function(){var t=await window.__ucCmp.getConsentDetails();this.ucServices=this._transformNewConsentObejctToOld(t),this.ucServices.length>0&&(this.ucReady=!0,this.startTracking())},this.addServicesToTracker=function(){var t=!1;if(typeof window.UC_UI<"u"&&typeof window.UC_UI.getServicesBaseInfo=="function"){if(this.ucServices=window.UC_UI.getServicesBaseInfo(),typeof window.UC_UI.getTCFVendors<"u"){var e=window.UC_UI.getTCFVendors()||[];this.ucServices.concat(e)}t=!0}else typeof window[this.ucGlobalName]<"u"&&(typeof window[this.ucGlobalName].getVendors=="function"?(this.ucServices=window[this.ucGlobalName].getVendors(),t=!0):typeof window[this.ucGlobalName].getConsents=="function"&&(this.ucServices=window[this.ucGlobalName].getConsents(),t=!0));t===!0&&(this.ucReady=!0,this.startTracking())},this.listenConsentEngineShowAgain=function(){var t;typeof window.jentis<"u"&&typeof window.jentis.consent<"u"&&typeof window.jentis.consent.engine<"u"?t=window.jentis.consent.engine:t=document,(function(e,n){
1n.addEventListener("jentis.consent.engine.show-bar",function(r){e.startTracking()})})(this,t)},this.getVendorValue=function(t,e,n){return typeof t[e]<"u"&&typeof t[e][n]<"u"?t[e][n]:t.NOTCONFIGUREDVENDOR[n]},this.startTracking=function(){if(this.consentEngineReady&&this.ucReady){if(window.jentis.helper.bIsLocalStorageAvailable===!0){var t=localStorage.getItem("uc_user_interaction");if(t!==null&&t==="false")return}var e=window.jentis.consent.engine.getVendorFullData(),n={};for(var r in e){var a=e[r],o=this.getVendorValue(this.vendorConfig,r,"internalUsercentricsID");if(a.consentMode===0||a.consentMode===2){var s=!1;for(var c in this.ucServices)if(this.ucServices[c].id===o){typeof this.ucServices[c].consent=="boolean"?s=this.ucServices[c].consent:s=this.ucServices[c].consent.status;break}else if(this.ucServices[c].templateId===o){s=this.ucServices[c].consentStatus;break}n[r]=s}}jentis.consent.engine.setNewVendorConsents(n)}},this.init()},window._jtsDataLayerContext=window._jtsDataLayerContext||[],window.jentis.tracker=new function(){this.sStoragePrefix="jentis_raw_controller_documentids",this.sPreviewStorageKey="jts_preview_version",this.sAutomationIdKey="jts_automation_id",this.sPreviewVersion=!1,this.sAutomationId=!1,this.oCache={},this.trackingConsentGiven=!1,this.trackOnlyConditionVariables=!1,this.oConsentListenerEngine=document,this.jtm={},this.jtm.state={},this.jtm.frontendLib={},this.hybridTracking={},this.hybridTracking.enabled=!1,this.datareceiver={},this.private={},this.cookieExtenderEnabled=!1,this.isNew={user:!0,session:!0},typeof window.jentis.config.jtm<"u"&&typeof window.jentis.config.jtm.cookieExtender<"u"&&typeof window.jentis.config.jtm.cookieExtender.enabled<"u"&&(this.cookieExtenderEnabled=window.jentis.config.jtm.cookieExtender.enabled),this.datareceiver.sendHTTPStream=function(t){try{if(typeof t.client_request_type>"u"||typeof t.client_request_type<"u"&&t.client_request_type==="iframe"){var e=window.document.createElement("iframe");e.height="0",e.width="0",e.style.display="none",e.style.visibility="hidden";var n=window.document.body&&window.document.body.lastChild||window.document.body||window.document.head;n.parentNode.insertBefore(e,n),e.src=t.stream}else if(typeof t.client_request_type<"u"&&t.client_request_type==="image"){var r=new Image;r.src=t.stream}}catch{window.jentis.tracker.log("J-DCP","[datareceiver.sendHTTPStream] [WARNING] datareceiver.sendHTTPStream - Error")}},this.pageChangeInit=function(){window.jentis.tracker.userCustomizable.reprocessCacheReset===!0&&(window.jentis.tracker.jtsFrontendTagCache=[],window.jentis.tracker.jtsFrontendTriggerCache=[],window.jentis.tracker.jtsEventCache=[])},this.init=function(){this.setUserCustomizationVariables(),this.createJentisTrackerNamespace(),this.createJentisCachingNamespace(),this.registerOnPageChangeEventsForPageInitializationTasks(),this.checkLogMode(),this.checkDebug(),this.checkAutomationId(),this.checkPreview()===!0&&(this.sPreviewVersion&&window.jentis.helper.monitorPayloadChunker.retryUnsentMonitorChunksFromLocalStorage(),this.initRawdata(),this.triggerJSEventForPropagatingUserID(),this.loadCSSFileIfNecessary(),this.listenOnJSEventsFromCMP(),this.createListenerForPushCommands(),this.executePlugins(),this.createListenerForTriggersRelatedToJSEvents(),this.createListenerForStates(),window.jentis.helper.setEvent("jentis.tracker","init",null,!0))},this.createJentisTrackerNamespace=function(){window._jts=window._jts||[],window._jts.opush=window._jts.push,window.jentis.state=window.jentis.state||{},window.jentis.state.jentisdatalayersend=[],window.jentis.tracker.tracks=window.jentis.state.jentisdatalayersend},this.createJentisCachingNamespace=function(){this.jtsEventCache=[],this.jtsFrontendTagCache=[],this.jtsFrontendTriggerCache=[],this.jtsFrontendScopeOfTheStateCache={}},this.registerOnPageChangeEventsForPageInitializationTasks=function(){try{var t=history.pushState;history.pushState=function(){t.apply(history,arguments),window.jentis.tracker.pageChangeInit()}}catch{window.jentis.tracker.log("J-DCP","[WARNING] pushState not working in this browser!")}try{var e=history.replaceState;history.replaceState=function(){e.apply(history,arguments),window.jentis.tracker.pageChangeInit()}}catch{window.jentis.tracker.log("J-DCP","[WARNING] replaceState not working in this browser!")}window.addEventListener("popstate",function(n){n.state?typeof n.target<"u"&&typeof n.target.document<"u"&&typeof n.target.document.location<"u"&&typeof n.target.document.location.pathname
1<"u"&&window.jentis.tracker.pageChangeInit():n.state===null&&window.jentis.tracker.pageChangeInit()},!1)},this.triggerJSEventForPropagatingUserID=function(){var t=this.readDocumentID("user");t!==null&&window.jentis.helper.setEvent("jentis.tracker","jentis-userid",t,!0)},this.createListenerForPushCommands=function(){if(window.jentis.tracker.bLogMode===!0&&typeof window._jts=="object")for(var t=0;t<window._jts.length;t++)window.jentis.tracker.log("J-DCP : [JENTIS DL] - [AD01] Received _jts.push() - Command: "+window._jts[t].track+" | Tracking "+(window.jentis.config.trackingConsentGiven===!0?"allowed":"NOT allowed"),window._jts[t],!1,"AD01");window._jts.push=function(){for(var e=0;e<arguments.length;e++){var n=arguments[e];window.jentis.tracker.log("J-DCP : [JENTIS DL] - [AD01] Received _jts.push() - Command: "+n.track+" | Tracking "+(window.jentis.config.trackingConsentGiven===!0?"allowed":"NOT allowed"),n,!1,"AD01"),window._jts.opush(n)}}},this.createListenerForTriggersRelatedToJSEvents=function(){document.readyState=="loading"?document.addEventListener("DOMContentLoaded",window.jentis.tracker.startSelectorTracking):window.jentis.tracker.startSelectorTracking()},this.createListenerForStates=function(){for(var t in window.jentis.config.jtm.states)(function(e){window.jentis.config.jtm.states[e](function(){for(var n,r={},a="XMLHttpRequest",o=0;o<arguments.length;o++)typeof arguments[o]=="object"?window.jentis.tracker.isCorrectStateObjectFormat(arguments[o])?(typeof arguments[o].stateCallback<"u"&&(n=arguments[o].stateCallback),typeof arguments[o].contextualStateInformation<"u"&&(r=arguments[o].contextualStateInformation),typeof arguments[o].requestType<"u"&&(a=arguments[o].requestType)):Object.keys(r).length===0&&(r=arguments[o]):typeof arguments[o]=="function"&&(n=arguments[o]);window.jentis.tracker.executeState(e,window,r,a),typeof n=="function"&&n()})})(t)},this.isCorrectStateObjectFormat=function(t){var e=!1;return Object.keys(t).length>0&&(typeof t.stateCallback<"u"||typeof t.contextualStateInformation<"u"||typeof t.requestType<"u")&&(e=!0),e},this.loadCSSFileIfNecessary=function(){if(typeof window.jentis.config<"u"&&typeof window.jentis.config.loadcss<"u"&&typeof window.jentis.config.frontend.cdnhost<"u"&&window.jentis.config.loadcss===!0){var t=window.jentis.config.frontend.vers!=="_",e=t||window.jentis.config.frontend.env==="live"?"":"?env="+window.jentis.config.frontend.env,n=document.createElement("link");n.rel="stylesheet",n.id="jentis-styles",n.href=window.jentis.config.frontend.cdnhost+window.jentis.config.filehash+".css"+e,n.type="text/css",n.media="all",document.getElementsByTagName("head")[0].appendChild(n)}},this.listenOnJSEventsFromCMP=function(){(function(t){window.jentis.helper.addEventListener("jentis.consent.engine.init",function(){var e=window.jentis.consent.engine.getVendorFullData();if(typeof e["*"]<"u")window.jentis.tracker.log("J-DCP","[CONSENT] - [AC02] No CMP connection is defined and Consent Engine deactivated by user",!1,"AC02");else{var n="";typeof window.jentis.consent.config.bridge_name<"u"&&(n=window.jentis.consent.config.bridge_name),window.jentis.tracker.log("J-DCP","[CONSENT] - [AC01] CMP connection is defined, awaiting information: "+n,!1,"AC01")}},!0),window.jentis.helper.addEventListener("jentis.consent.engine.no-consent-given",function(){window.jentis.consent.engine.bUserConsent===!0?(window.jentis.tracker.log("J-DCP","[CONSENT] - User declined consent"),typeof window.jentis.config.jtm.syntheticUsers<"u"&&typeof window.jentis.config.jtm.syntheticUsers.previewEnabled<"u"&&window.jentis.config.jtm.syntheticUsers.previewEnabled===!0?(t.trackOnlyConditionVariables=!0,window.jentis.helper.enableClientCookies(),window.jentis.tracker.log("J-DCP : [SYNTHETIC USERS] - Tracking ONLY condition variables mode ACTIVATED."),t.startTracking()):(window.jentis.helper.disableClientCookies(),t.denyTracking())):(window.jentis.tracker.log("J-DCP","[CONSENT] - No positive consent given"),window.jentis.helper.disableClientCookies(),t.denyTracking())},!0),window.jentis.helper.addEventListener("jentis.consent.engine.send-consent-data",function(e){if(window.jentis.tracker.log("J-DCP : [CONSENT] - [AC04] Consent information received based on new or updated decision of user: ",window.jentis.consent.engine.getAllConsents(),!1,"AC04"),e.detail!==null){var n={track:"consent"};for(var r in e.detail)n[r]=e.detail[r];var a=void 0;if(typeof e.detail<"u"&&typeof e.detail.vendorsChanged<"u"&&Object.keys(e.detail.vendorsChanged).length>0){a={};for(var o in e.detail.vendors)typeof e.detail.vendorsChanged[o]<"u"&&(e.detail.vendorsChanged[o]===!0||e.detail.vendorsChanged[o]==="ncm")?a[o]=e.detail.vendorsChanged[o]:a[o]=!1}window.jentis.tracker.trackConsent(n),window.jentis.config.trackingConsentGiven===!0&&typeof a<"u"&&(window.jentis.tracker.trackOnlyConditionVariables=!1,window.jentis.helper.enableClientCookies(),window.jentis.tracker.trackCachedEvents(a),window.jentis.tracker.trackCachedFrontend(a))}},!0),window.jentis.helper.addEventListener("jentis.consent.engine.minimal-consent-given",function(){window.jentis.tracker.log("J-DCP : [CONSENT] - [AC03] Consent information received - data from storage used:",window.jentis.consent.engine.getAllConsents(),!1,"AC03"),t.trackOnlyConditionVariables=!1,window.jentis.helper.enableClientCookies(),t.startTracking()},!0)})(this)},this.executeState=function(t,e,n,r){window.jentis.tracker.log("J-DCP","[STATE] - [AS01] State executed: "+t,!1,"AS01");var a=window.jentis.tracker.createScopeOfTheStateObject(t,e,n,r);window.jentis.tracker.trackSynchronCase(a),window.jentis.tracker.buildEnrichmentJSONFromVariables(a.cacheForEnrichmentScope.enrichmentVariables,a),window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:a,variablesSortedByTrigger:a._cacheForHTTPVariables.httpVariables,callback:function(o){window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(a,!0),a,!0,o,function(s){if(window.jentis.config.trackingConsentGiven===!0){for(var c in s.triggerVariableExecutedForBackend)if(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:c,scopeOfTheState:a,variables:s.triggerVariableExecutedForBackend[c],cacheEnrichmentVariables:!0}),a.trigger[c].dependencies.length>0){var u=a.trigger[c];if(a.trigger[c]=window.jentis.tracker.allTriggerConditionsFulfilled({scopeOfTheState:a,over
1writeTrigger:u.trigger,triggerName:c,cacheEnrichmentVariables:!0}),a.trigger[c].backendFulfilled===!0){var d=window.jentis.tracker.collectVariablesFromTriggerIncludingExcludeTriggers(c);d.length>0&&(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:c,scopeOfTheState:a,variables:d,cacheEnrichmentVariables:!0}),window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+c+" in scope Server-Side",!1,"AS02"),a.bIsThereDataToSendToBackend=!0)}}}window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:a,variablesSortedByTrigger:a._cacheForHTTPVariables.httpVariables,callback:function(f){window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(a,!0),a,!0,f,function(l){(a.bIsThereDataToSendToBackend===!0||window.jentis.tracker.getPreviewVersion())&&(a.httpvarsSortedPerTrigger=l.triggerVariableCacheForBackend,window.jentis.tracker.sendDocumentsToJENTIS({scopeOfTheState:a})),window.jentis.tracker.trackAsyncCase(a,"async-variables",a._cacheForHTTPVariables),a.cacheForEnrichmentScope.enrichmentVariables.length>0&&(function(w){window.jentis.tracker.log("J-DCP","[ENRICHMENT][FRONTEND] Started for: "+w.cacheForEnrichmentScope.enrichmentVariables),window.jentis.tracker.getEnrichmentOfVariables(w,function(g){if(typeof g<"u"&&typeof g.response=="string"){var p={};try{p=JSON.parse(g.response),window.jentis.tracker.log("J-DCP : [ENRICHMENT][FRONTEND] Received: ",p)}catch{window.jentis.tracker.logError("[ENRICHMENT][FRONTEND] Error: "+g.response)}typeof p<"u"&&(window.jentis.tracker.mergeEnrichedVariablesToScope(w,p),window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(w,!1),w,!1,l,function(){window.jentis.tracker.trackAsyncCase(w,"enrichment-variables",w.cacheForEnrichmentScope)}))}})})(a)})}})})}})},this.private.getArrayOfAllBlockedDependencies=function(t,e){var n=[];for(var r in t.blockedVariablesDueToReferenceMissing)for(var a=0;a<t.blockedVariablesDueToReferenceMissing[r].dependencies.length;a++)typeof e<"u"&&e===!0?window.jentis.tracker.isVariableOfTypeEnrichment(t.blockedVariablesDueToReferenceMissing[r].dependencies[a])===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(n,[t.blockedVariablesDueToReferenceMissing[r].dependencies[a]]):window.jentis.tracker.mergeArrayWithoutDuplicates(n,[t.blockedVariablesDueToReferenceMissing[r].dependencies[a]]);return n},this.evaluateDependendVariables=function(t,e,n,r,a){var o=0,s=r,c=[];t.length>0?window.jentis.tracker.evaluateDependendVariable({scopeOfTheState:e,blockedVariableName:t[o],cacheEnrichmentVariables:n,masterKeys:t,masterIndex:o,masterCallback:a,xReturnObject:s,callback:window.jentis.tracker.private.callback_evaluateDependendVariable,endlessLoopChain:c}):a(s)},this.private.callback_evaluateDependendVariable=function(t){var e=t.scopeOfTheState,n=t.masterIndex,r=t.masterKeys,a=t.masterCallback,o=t.cacheEnrichmentVariables,s=t.xReturnObject,c=t.endlessLoopChain;n++,n===r.length?a(s):window.jentis.tracker.evaluateDependendVariable({scopeOfTheState:e,blockedVariableName:r[n],cacheEnrichmentVariables:o,masterKeys:r,masterIndex:n,masterCallback:a,xReturnObject:s,callback:window.jentis.tracker.private.callback_evaluateDependendVariable,endlessLoopChain:c})},this.evaluateDependendVariable=function(t){var e=t.scopeOfTheState,n=t.blockedVariableName,r=t.cacheEnrichmentVariables,a=t.masterKeys,o=t.masterIndex,s=t.masterCallback,c=t.callback,u=t.xReturnObject,d=t.endlessLoopChain,f=[];typeof e.blockedVariablesDueToReferenceMissing[n]<"u"&&typeof e.blockedVariablesDueToReferenceMissing[n].dependencies<"u"&&(f=e.blockedVariablesDueToReferenceMissing[n].dependencies);for(var l=!0,w=0;w<f.length;w++){var g=f[w];if(r===!0&&window.jentis.tracker.isVariableOfTypeEnrichment(g)===!0){l=!1;continue}if(typeof e.blockedVariablesDueToReferenceMissing[g]<"u"&&e.blockedVariablesDueToReferenceMissing[g].dependencies.length>0){l=!1;continue}if(typeof e._variables[g]>"u"){l=!1;continue}e.blockedVariablesDueToReferenceMissing[n].dependencies.splice(w,1),w-=1}if(l===!0){var p=a.indexOf(n);a.splice(p,1),p<=o&&(o-=1),d.indexOf(n)>-1?c({scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d}):d.push(n);var h=[];if(typeof e.blockedVariablesDueToReferenceMissing[n]<"u"&&typeof e.blockedVariablesDueToReferenceMissing[n].triggers<"u"&&(h=e.blockedVariablesDueToReferenceMissing[n].triggers),h.length>0)if(window.jentis.tracker.isVariableTriggerRelated(n)===!0){for(var y=0;
1y<h.length;trigger++){var j=window.jentis.tracker.getValueOfVariable({variableName:n,triggerName:h[y].triggerName,scopeOfTheState:e});window.jentis.tracker.log("J-DCP : [DEPENDENCY-CHECKER][EVALUATE] Variable: "+n+" | Value: "+j+" | Trigger: "+h[y].triggerName)}c({scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d})}else{var _=h[0].triggerName;if(typeof e._cacheForHTTPVariables.httpVariables[h[0].triggerName]<"u"&&e._cacheForHTTPVariables.httpVariables[h[0].triggerName].indexOf(n)>-1){var m={};m[_]=[n],window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:e,variablesSortedByTrigger:m,callback:function(v){window.jentis.tracker.mergeJsonWithOnePropertyArray(u.triggerVariableCacheForBackend,v.triggerVariableCacheForBackend),window.jentis.tracker.mergeJsonWithOnePropertyArray(u.triggerVariableExecutedForBackend,v.triggerVariableExecutedForBackend),v.consent!==!1?window.jentis.tracker.private.callback_afterDependendVariableEvaluated({variableName:n,scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,callback:c,xReturnObject:u,endlessLoopChain:d}):c({scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d})}})}else{var j=window.jentis.tracker.getValueOfVariable({variableName:n,triggerName:h[0].triggerName,scopeOfTheState:e});window.jentis.tracker.private.callback_afterDependendVariableEvaluated({variableName:n,scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,callback:c,xReturnObject:u,endlessLoopChain:d})}}else window.jentis.tracker.isConsentGivenForVariable(n)?window.jentis.tracker.private.callback_afterDependendVariableEvaluated({variableName:n,scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,callback:c,xReturnObject:u,endlessLoopChain:d}):c({scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d})}else c({scopeOfTheState:e,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d})},this.mergeJsonWithOnePropertyArray=function(t,e){this.mergeJsonWithOnePropertyArray=function(n,r){if(typeof n>"u")n=r;else for(var a in r)typeof n[a]>"u"&&(n[a]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(n[a],r[a])}},this.private.callback_afterDependendVariableEvaluated=function(t){var e=t.variableName,n=t.scopeOfTheState,r=t.cacheEnrichmentVariables,a=t.masterKeys,o=t.masterIndex,s=t.masterCallback,c=t.callback,u=t.xReturnObject,d=t.endlessLoopChain;if(window.jentis.tracker.log("J-DCP : [DEPENDENCY-CHECKER][EVALUATE] Variable: "+e+" | Value: "+n._variables[e]),typeof n._cacheForHTTPVariables.referenceCache[e]<"u"){var f=[];for(var l in n._cacheForHTTPVariables.referenceCache[e])f.push(l);window.jentis.tracker.evaluateDependendVariables(f,n,r,{triggerVariableExecutedForBackend:{},triggerVariableCacheForBackend:{}},function(){delete n._cacheForHTTPVariables.referenceCache[e],c({scopeOfTheState:n,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d})})}else c({scopeOfTheState:n,cacheEnrichmentVariables:r,masterKeys:a,masterIndex:o,masterCallback:s,xReturnObject:u,endlessLoopChain:d})},this.createScopeOfTheStateObject=function(t,e,n,r){var a={};return a.stateEventID=this.createDocumentID("event"),a.primaryKey=window.jentis.tracker.getNewTrackId(),a.bIsThereDataToSendToBackend=!1,a.bIsThereAFrontendTriggerBecauseOfConsentMissing=!1,a.timestamp=Date.now(),a.state=t,a.element=e,a.contextualStateInformation=n,a.requestType=r,a.oVars={USER:{},SESSION:{},EVENT:{},CONSENT:{}},a._variables={},a._cacheForHTTPVariables={tags:{},backend:{},httpVariables:{},triggers:{},referenceCache:{}},a.cacheForEnrichmentScope={triggers:{},tags:{},enrichmentVariables:[],referenceCache:{}},a.trigger={},a.tagsWaitingBecauseOfExcludeTrigger={},a.triggerWaitingForConsent=[],a.blockedVariablesDueToReferenceMissing={},a},this.mergeEnrichedVariablesToScope=function(t,e){for(var n in e)for(var r in e[n])t._variables[r]=e[n][r]},this.trackSynchronCase=function(t){for(var e in window.jentis.config.jtm.trigger)if(window.jentis.config.jtm.trigger[e].state===t.state||typeof window.jentis.config.jtm.trigger[e].state>"u"&&e===t.state){if(t.trigger[e]=window.jentis.tracker.allTriggerConditionsFulfilled({scopeOfTheState:t,triggerName:e,cacheEnrichmentVariables:!0,cacheHTTPVariables:!0}),t.trigger[e].dependencies.length>0&&(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:e,scopeOfTheState:t,variables:t.trigger[e].dependencies,cacheEnrichmentVariables:!0}),window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+e+" in scope Server-Side, because of dependency",!1,"AS02")),t.trigger[e].backendFulfilled===!0){var n=window.jentis.tracker.collectVariablesFromTriggerIncludingExcludeTriggers(e);n.length>0&&(window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:e,scopeOfTheState:t,variables:n,cacheEnrichmentVariables:!0}),window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+e+" in scope Server-Side",!1,"AS02"),t.bIsThereDataToSendToBacken
1d=!0)}if(typeof window.jentis.config.jtm.trigger[e].tags<"u"&&window.jentis.config.jtm.trigger[e].tags.length>0||typeof window.jentis.config.jtm.trigger[e].codeblocks<"u"&&window.jentis.config.jtm.trigger[e].codeblocks.length>0)if(t.trigger[e].frontendFulfilled===!0||t.trigger[e].frontendFulfilled===!1&&(t.trigger[e].dependencies.length>0||t.trigger[e].enrichmentVariables.length>0||t.trigger[e].httpVariables.length>0))t.trigger[e].frontendFulfilled===!1&&t.trigger[e].enrichmentVariables.length>0&&(window.jentis.tracker.mergeArrayWithoutDuplicates(t.cacheForEnrichmentScope.enrichmentVariables,t.trigger[e].enrichmentVariables),t.cacheForEnrichmentScope.triggers[e]=t.trigger[e].trigger),t.trigger[e].frontendFulfilled===!1&&(t.trigger[e].dependencies.length>0||t.trigger[e].httpVariables.length>0)&&(t._cacheForHTTPVariables.triggers[e]=t.trigger[e].trigger),window.jentis.config.jtm.trigger[e].codeblocks.length>0&&(t.trigger[e].frontendFulfilled===!0&&typeof t._cacheForHTTPVariables.httpVariables[e]<"u"&&t._cacheForHTTPVariables.httpVariables[e].length>0?t._cacheForHTTPVariables.triggers[e]=t.trigger[e].trigger:t.trigger[e].frontendFulfilled===!0&&(t.trigger[e].dependencies.length>0||t.trigger[e].trigger.excludeTrigger.length===0)&&(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+e+" in scope Client-Side",!1,"AS02"),window.jentis.tracker.executeCodeblocks({triggerName:e,scopeOfTheState:t}))),window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:t,triggerName:e,cacheHTTPVariables:!0,cacheEnrichmentVariables:!0});else for(var r=0;r<t.trigger[e].trigger.tags.length;r++)window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:t,frontendTag:window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[t.trigger[e].trigger.tags[r]]),frontendTagID:t.trigger[e].trigger.tags[r],triggerName:e})}window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(t)},this.trackAsyncCase=function(t,e,n){var r=!1;e==="async-variables"&&(r=!0);for(var a in n.triggers){var o=n.triggers[a];if(o.trigger=a,t.trigger[a]=window.jentis.tracker.allTriggerConditionsFulfilled({triggerName:a,overwriteTrigger:o,scopeOfTheState:t,cacheEnrichmentVariables:r}),t.trigger[a].frontendFulfilled===!1)if(t.trigger[a].frontendHTTPConditionIncludedWithoutConsent.length===0&&t.trigger[a].enrichmentConditionIncludedInReferences.length===0)for(var s=0;s<t.trigger[a].trigger.tags.length;s++)e==="async-variables"&&typeof n.tags[t.trigger[a].trigger.tags[s]]>"u"&&typeof t.cacheForEnrichmentScope.tags[t.trigger[a].trigger.tags[s]]<"u"&&(n.tags[t.trigger[a].trigger.tags[s]]=t.cacheForEnrichmentScope.tags[t.trigger[a].trigger.tags[s]]),window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:t,frontendTag:n.tags[t.trigger[a].trigger.tags[s]],frontendTagID:t.trigger[a].trigger.tags[s],triggerName:a}),delete t._cacheForHTTPVariables.tags[t.trigger[a].trigger.tags[s]],delete t.cacheForEnrichmentScope.triggers[a],delete t.cacheForEnrichmentScope.tags[t.trigger[a].trigger.tags[s]];else if(e==="async-variables"&&window.jentis.tracker.hasAConnectedTagToASpecificTriggerEnrichmentVariables(t,o.tags)===!0){t.cacheForEnrichmentScope.triggers[a]=o;for(var c=0;c<o.tags.length;c++)typeof n.tags[o.tags[c]]<"u"&&(t.cacheForEnrichmentScope.tags[o.tags[c]]=n.tags[o.tags[c]],delete n.tags[o.tags[c]])}else{var u=window.jentis.tracker.extractFrontendTagsConnectedToATriggerFromCache(t,o.tags,n);window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(t,a,u)}else t.trigger[a].trigger.excludeTrigger.length===0&&(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+o.trigger+" in scope Client-Side",!1,"AS02"),typeof t.trigger[a].trigger.codeblocks<"u"&&t.trigger[a].trigger.codeblocks.length>0&&window.jentis.tracker.executeCodeblocks({triggerName:a,scopeOfTheState:t}))}window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:t,overwriteTags:n.tags,cacheEnrichmentVariables:r}),window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(t),t.bIsThereAFrontendTriggerBecauseOfConsentMissing===!0&&(window.jentis.tracker.jtsFrontendScopeOfTheStateCache[t.primaryKey]=t)},this.hasAConnectedTagToASpecificTriggerEnrichmentVariables=function(t,e){for(var n=0;n<e.length;
1n++)if(typeof t.cacheForEnrichmentScope.tags[e[n]]<"u")return!0;return!1},this.extractFrontendTagsConnectedToATriggerFromCache=function(t,e,n){for(var r={},a=0;a<e.length;a++)typeof n.tags[e[a]]<"u"&&(r[e[a]]=n.tags[e[a]]);return r},this.executeCodeblocks=function(t){var e=t.scopeOfTheState,n=t.triggerName,r=e.trigger[n].trigger.codeblocks,a=t.funcCallback;typeof a>"u"&&(a=function(){});var o={accountvars:window.jentis.config.jtm.accountconstants,stateContext:e.contextualStateInformation,callback:a},s={triggername:n,setCookie:function(d){typeof d=="object"?window.jentis.helper.setCookie(d):window.jentis.tracker.logError("J-DCP","[setCookie] Argument must be of type object")},readCookie:function(d){return typeof d=="string"?window.jentis.helper.readCookie(d):(window.jentis.tracker.logError("J-DCP","[readCookie] Argument must be of type string"),null)},setLocalStorageItem:function(d,f,l){return window.jentis.helper.setLocalStorageItem(d,f,l)},getLocalStorageItem:function(d){return window.jentis.helper.getLocalStorageItem(d)},getFrontendVariable:(function(f,l){return function(w){var g=window.jentis.tracker.getValueOfVariable({variableName:w,triggerName:l,scopeOfTheState:f});return typeof g>"u"&&(typeof f._cacheForHTTPVariables.referenceCache[w]>"u"&&(f._cacheForHTTPVariables.referenceCache[w]={}),typeof f._cacheForHTTPVariables.referenceCache[w].codeblock>"u"&&(f._cacheForHTTPVariables.referenceCache[w].codeblock={},f._cacheForHTTPVariables.referenceCache[w].codeblock.triggerName=[]),f._cacheForHTTPVariables.referenceCache[w].codeblock.triggerName.indexOf(l)===-1&&f._cacheForHTTPVariables.referenceCache[w].codeblock.triggerName.push(l)),g}})(e,n)};if(typeof r<"u")for(var c=window.jentis.tracker.orderCodeblocks(r),u=0;u<c.length;u++){if(window.jentis.tracker.log("J-DCP","[CODEBLOCK] - [AS03] Codeblock executed: "+c[u].id,!1,"AS03"),typeof c[u].js=="function")try{c[u].js.apply(s,[o])}catch(d){window.jentis.tracker.logError("J-DCP: [CODEBLOCK] - [AS03] Error occurred while executing codeblock: "+c[u],d)}typeof c[u].css<"u"&&c[u].css.trim().length>0&&window.jentis.tracker.addElementToDOM("style",c[u].css)}e.trigger[n].trigger.codeblocks=[]},this.checkAndResolveFrontendTagsForScope=function(t){var e=typeof t.cac
1heHTTPVariables<"u"?t.cacheHTTPVariables:!1,n=typeof t.cacheEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,r=typeof t.triggerName<"u"?t.triggerName:void 0,a=typeof t.overwriteTags<"u"?t.overwriteTags:void 0,o=typeof t.pushToCacheDirectly<"u"?t.pushToCacheDirectly:!1,s=typeof t.replayFromCache<"u"?t.replayFromCache:!1,c=window.jentis.tracker.resolveFrontendTagsRelatedToTrigger({scopeOfTheState:t.scopeOfTheState,cacheEnrichmentVariables:n,cacheHTTPVariables:e,triggerName:r,overwriteTags:a});window.jentis.tracker.decideWhatToDoWithFrontendTags({scopeOfTheState:t.scopeOfTheState,frontendTags:c,triggerName:r,cacheHTTPVariables:e,pushToCacheDirectly:o,replayFromCache:s})},this.addTriggerToWaitingCacheUntilConsentIsGiven=function(t,e,n,r){if(typeof r>"u"||typeof r<"u"&&r===!1){t.bIsThereAFrontendTriggerBecauseOfConsentMissing=!0;var a=window.jentis.tracker.getIndexOfJtsFrontendTriggerCacheEntry(t,e);if(t.triggerWaitingForConsent.indexOf(e)>-1&&a>-1)for(var o in n)window.jentis.tracker.jtsFrontendTriggerCache[a].tags[o]=n[o];else t.triggerWaitingForConsent.push(e),window.jentis.tracker.jtsFrontendTriggerCache.push({timestamp:t.timestamp,primaryKey:t.primaryKey,triggerName:e,tags:n,httpVariables:t.trigger[e].frontendHTTPConditionIncludedWithoutConsent})}else window.jentis.tracker.jtsFrontendTriggerCache.push({timestamp:t.timestamp,primaryKey:t.primaryKey,triggerName:e,tags:n,httpVariables:t.trigger[e].frontendHTTPConditionIncludedWithoutConsent})},this.getIndexOfJtsFrontendTriggerCacheEntry=function(t,e){for(var n=0;n<window.jentis.tracker.jtsFrontendTriggerCache.length;n++){var r=window.jentis.tracker.jtsFrontendTriggerCache[n];if(r.primaryKey===t.primaryKey&&r.triggerName===e)return n}return-1},this.decideWhatToDoWithFrontendTags=function(t){for(var e=t.scopeOfTheState,n=t.frontendTags,r=t.triggerName,a=typeof t.cac
1heHTTPVariables<"u"?t.cacheHTTPVariables:!1,o=e.state,s=e.element,c=typeof t.pushToCacheDirectly<"u"?t.pushToCacheDirectly:!1,u=0;u<n.length;u++){var d=n[u],f=r;if(typeof r>"u"&&(f=d.tag.trigger),typeof d.enrichmentVariables>"u"&&(d.enrichmentVariables=[]),d.enrichmentVariables.length>0||typeof e.trigger<"u"&&typeof e.trigger[f]<"u"&&typeof e.trigger[f].enrichmentVariables<"u"&&e.trigger[f].enrichmentVariables.length>0)window.jentis.tracker.mergeArrayWithoutDuplicates(e.cacheForEnrichmentScope.enrichmentVariables,d.enrichmentVariables),e.cacheForEnrichmentScope.tags[d.tag.tagID]=d.tag;else{var l=d.tag;if(l.httpVariables.length>0&&a===!0||typeof e.trigger<"u"&&typeof e.trigger[f]<"u"&&typeof e.trigger[f].httpVariables<"u"&&e.trigger[f].httpVariables.length>0){e._cacheForHTTPVariables.tags[d.tag.tagID]=d.tag;continue}if(typeof l.blockedVariables<"u"&&l.blockedVariables.length>0){a===!0?e._cacheForHTTPVariables.tags[d.tag.tagID]=d.tag:e.cacheForEnrichmentScope.tags[d.tag.tagID]=d.tag;continue}if(typeof e.triggerWaitingForConsent<"u"&&e.triggerWaitingForConsent.indexOf(f)>-1)continue;if(e.trigger[f].frontendFulfilled===!0&&e.trigger[f].trigger.excludeTrigger.length>0){typeof e.tagsWaitingBecauseOfExcludeTrigger[f]>"u"&&(e.tagsWaitingBecauseOfExcludeTrigger[f]=[]),e.tagsWaitingBecauseOfExcludeTrigger[f].push(d);continue}if(e.trigger[f].frontendFulfilled===!1){e._cacheForHTTPVariables.tags[d.tag.tagID]=d.tag;continue}var w=window.jentis.tracker.isEssentialModeFrontendTag(l),g=window.jentis.tracker.isTrackingAllowedForClientSideTag(l)===!0;g===!0&&c===!1?(window.jentis.tracker.sendFrontendTag(e,l),w===!0&&window.jentis.tracker.pushFrontendTagToCache(e,l,f,o,s,!0)):window.jentis.tracker.pushFrontendTagToCache(e,l,f,o,s)}}},this.isTrackingAllowedForClientSideTag=function(t){return window.jentis.config.trackingConsentGiven===!0&&(window.jentis.tracker.isConsentGiven(t.vendorID)===!0||window.jentis.tracker.isConsentGiven(t.vendorID)==="ncm"&&window.jentis.tracker.isEssentialModeFrontendTag(t)===!0)},this.isVendorEssentialConsentMode=function(t){if(typeof t>"u")return!1;var e=window.jentis.consent.engine.getVendorFullData();return typeof e[t]<"u"&&e[t].consentMode===2},this.isEssentialModeFrontendTag=function(t){return t.essential_mode_enabled===!0&&window.jentis.tracker.isVendorEssentialConsentMode(t.vendorID)===!0},this.shouldReplayNormalCachedFrontendTag=function(t,e){if(typeof e>"u")return!0;var n=t.vendorID;return typeof e[n]<"u"?e[n]===!0||e[n]==="ncm":!1},this.shouldReplayCachedFrontendTag=function(t,e){return window.jentis.tracker.isEssentialModeFrontendTag(t.tag)===!0?!0:window.jentis.tracker.shouldReplayNormalCachedFrontendTag(t.tag,e)},this.pushFrontendTagToCache=function(t,e,n,r,a,o){var s={state:r,tag:e,element:a,trigger:{},timestamp:t.timestamp,_variables:t._variables,triggerForMonitor:t.triggerForMonitor,stateEventID:t.stateEventID};s.trigger[n]=t.trigger[n],window.jentis.tracker.jtsFrontendTagCache.push(s),o!==!0&&window.jentis.tracker.sendFrontendTagToMonitor(t,e)},this.startAsynchronousHTTPVariableEvaluation=function(t){var e=t.scopeOfTheState;e._variables=e._variables||{},e._cacheForHTTPVariables=e._cacheForHTTPVariables||{},e._cacheForHTTPVariables.httpVariables=e._cacheForHTTPVariables.httpVariables||{},e._cacheForHTTPVariables.referenceCache=e._cacheForHTTPVariables.referenceCache||{};var n=t.variablesSortedByTrigger,r=t.callback,a={};a.executedVariable={},a.triggerVariableExecutedForBackend={},a.triggerVariableCacheForBackend={};var o={},s=!1,c="",u=!1;for(var d in n)for(var f=0;f<n[d].length;f++){c=n[d][f],u=window.jentis.tracker.isConsentGivenForVariable(c);var l=c;if(typeof e.blockedVariablesDueToReferenceMissing[l]>"u"){if(typeof window.jentis.config.jtm.variables[l].dependencies<"u"&&window.jentis.config.jtm.variables[l].dependencies.length>0){for(var w=0;w<window.jentis.config.jtm.variables[l].dependencies.length;w++){var g=window.jentis.config.jtm.variables[l].dependencies[w];e._cacheForHTTPVariables.httpVariables[d].indexOf(g)>-1&&(typeof e._cacheForHTTPVariables.referenceCache[g]>"u"&&(e._cacheForHTTPVariables.referenceCache[g]={}),typeof e._cacheForHTTPVariables.referenceCache[g][l]>"u"&&(e._cacheForHTTPVariables.referenceCache[g][l]={},e._cacheForHTTPVariables.referenceCache[g][l].triggerName=[]),e._cacheForHTTPVariables.referenceCache[g][l].triggerName.indexOf(d)===-1&&e._cacheForHTTPVariables.referenceCache[g][l].triggerName.push(d))}typeof e.blockedVariablesDueToReferenceMissing[l]>"u"&&(e.blockedVariablesDueToReferenceMissing[l]={},e.blockedVariablesDueToReferenceMissing[l].dependencies=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[l].dependencies),e.blockedVariablesDueToReferenceMissing[l].triggers=[]),e.blockedVariablesDueToReferenceMissing[l].triggers.push({triggerName:d});continue}}else if(e.blockedVariablesDueToReferenceMissing[l].dependencies.length>0)continue;u||typeof window.jentis.config.jtm.variables[c]<"u"&&typeof window.jentis.config.jtm.variables[c].vendorids<"u"&&window.jentis.config.jtm.variables[c].vendorids.indexOf("*")>-1?(s=!0,typeof o[d]>"u"&&(o[d]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(o[d],[c])):typeof e._cacheForHTTPVariables<"u"&&typeof e._cacheForHTTPVariables.backend<"u"&&typeof e._cacheForHTTPVariables.backend[d]<"u"&&e._cacheForHTTPVariables.backend[d].indexOf(c)>-1&&(typeof a.triggerVariableCacheForBackend[d]>"u"&&(a.triggerVariableCacheForBackend[d]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(a.triggerVariableCacheForBackend[d],[c]))}if((window.jentis.config.trackingConsentGiven===!0||s===!0)&&Object.keys(o).length>0)for(var d in o)for(var p=window.jentis.tracker.cloneObject(o[d]),h=0;h<p.length;h++)window.jentis.tracker.getValueOfVariable({variableName:p[h],triggerName:d,scopeOfTheState:e,funcSendHTTPRequest:function(j,_){j.callback=_,window.jentis.tracker.sendHTTPStream(j)},funcCallback:(function(_,m,v,b,k){return function(T){typeof m.executedVariable[v]>"u"&&(m.executedVariable[v]={}),typeof m.triggerVariableExecutedForBackend[v]>"u"&&(m.triggerVariableExecutedForBackend[v]=[]),typeof m.executedVariable[v][b]>"u"&&(window.jentis.tracker.log("J-DCP","[VARIABLE] - Callback executed for variable: "+b+" | Value: "+T+" | Trigger: "+v),m.executedVariable[v][b]=!0,window.jentis.tracker.saveVariableToScope(_,v,b,T),o[v].splice(o[v].indexOf(b),1),window.jentis.tracker.mergeArrayWithoutDuplicates(m.triggerVariableExecutedForBackend[v],[b]),Object.keys(o[v]).length===0&&(
1delete o[v],delete _._cacheForHTTPVariables.httpVariables[v],Object.keys(o).length===0&&k({triggerVariableExecutedForBackend:m.triggerVariableExecutedForBackend,triggerVariableCacheForBackend:m.triggerVariableCacheForBackend,scopeOfTheState:_,consent:!0})))}})(e,a,d,p[h],r)});else r({triggerVariableCacheForBackend:a.triggerVariableCacheForBackend,scopeOfTheState:e,consent:!1})},this.addEnrichmentInformationToVariableScope=function(t,e){typeof e.oVars[t.toUpperCase()].enrichment<"u"&&Object.keys(e.oVars[t.toUpperCase()].enrichment).length>0&&(e.oVars[t.toUpperCase()].enrichment=window.jentis.tracker.buildEnrichmentJSONFromVariables(e.oVars[t.toUpperCase()].enrichment,e))},this.getEnrichmentOfVariables=function(t,e){this.sendHTTPStream({endpoint:"/enrichment",data:JSON.stringify(window.jentis.tracker.buildEnrichmentJSONFromVariables(t.cacheForEnrichmentScope.enrichmentVariables,t)),callback:e,method:"POST",contentType:"application/json",withCredentials:!0})},this.buildEnrichmentJSONFromVariables=function(t,e){for(var n={},r=0;r<t.length;r++)if(typeof window.jentis.config.jtm.variables[t[r]]<"u"&&typeof window.jentis.config.jtm.variables[t[r]].pluginID<"u"){var a=window.jentis.config.jtm.variables[t[r]].pluginID;if(typeof n[a]>"u"&&(n[a]={},n[a].arguments={},n[a].variables=[],typeof window.jentis.config.jtm.enrichment.plugins<"u"&&typeof window.jentis.config.jtm.enrichment.plugins[a]<"u"&&typeof window.jentis.config.jtm.enrichment.plugins[a].arguments<"u"))for(var o in window.jentis.config.jtm.enrichment.plugins[a].arguments)n[a].arguments[o]=window.jentis.tracker.getValueOfVariable({state:void 0,variableName:window.jentis.config.jtm.enrichment.plugins[a].arguments[o],scopeOfTheState:e});n[a].variables.indexOf(t[r])===-1&&n[a].variables.push(t[r])}return n},this.trackCachedEvents=function(t,n){var n=typeof n<"u"?n:0;typeof window.jentis.tracker.jtsEventCache[n]<"u"&&window.jentis.tracker.sendDocumentsToJENTIS({scopeOfTheState:window.jentis.tracker.jtsEventCache[n].scopeOfTheState,consent:t,disableCaching:!0,callback:(function(r,a){return function(){a+=1,window.jentis.tracker.trackCachedEvents(r,a)}})(t,n)})},this.trackCachedFrontend=function(t){window.jentis.tracker.evaluateCachedFrontendTriggers(function(e){for(var n=[];window.jentis.tracker.jtsFrontendTagCache.length;)n.push(window.jentis.tracker.jtsFrontendTagCache.shift());n=n.sort(function(r,a){return r.timestamp>a.timestamp?1:-1}),window.jentis.tracker.trackCachedFrontendTags(n,0,e,t)})},this.evaluateCachedFrontendTriggers=function(t){if(window.jentis.tracker.jtsFrontendTriggerCache.length===0)t(!1);else{for(var e=[];window.jentis.tracker.jtsFrontendTriggerCache.length;)e.push(window.jentis.tracker.jtsFrontendTriggerCache.shift());e=e.sort(function(d,f){return d.timestamp>f.timestamp?1:-1});for(var n=e.length,r=[],a=!1;e.length;){var o=e.shift(),s=o.triggerName,c={};if(c[s]=o.httpVariables,typeof window.jentis.tracker.jtsFrontendScopeOfTheStateCache[o.primaryKey]<"u"){var u=window.jentis.tracker.jtsFrontendScopeOfTheStateCache[o.primaryKey];window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:u,variablesSortedByTrigger:c,callback:(function(f,l,w,g){return function(p){var h=p.scopeOfTheState,y=g.triggerName,j=g.tags;window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(h,!0),h,!0,p,function(_){if(_.consent===!0){var m=window.jentis.tracker.allTriggerConditionsFulfilled({overwriteTrigger:h.trigger[y].trigger,scopeOfTheState:h});h.trigger[y]=m,m.frontendFulfilled===!0&&m.trigger.excludeTrigger.length===0?(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+y+" in scope Client-Side",!1,"AS02"),h.triggerWaitingForConsent.indexOf(y)>-1&&h.triggerWaitingForConsent.splice(h.triggerWaitingForConsent.indexOf(y),1),window.jentis.tracker.executeCodeblocks({triggerName:y,scopeOfTheState:h}),window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:h,overwriteTags:j,cacheHTTPVariables:!0,pushToCacheDirectly:!0}),window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(h,h.triggerWaitingForConsent),a=!0):m.frontendFulfilled===!1?(h.triggerWaitingForConsent.indexOf(y)>-1&&h.triggerWaitingForConsent.splice(h.triggerWaitingForConsent.indexOf(y),1),window.jentis.tracker.executeFrontendTagsWhichWereBlockedByExcludeTriggers(h,h.triggerWaitingForConsent),a=!0):window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(h,y,j,!0)}else window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(h,y,j,!0);h.triggerWaitingForConsent.length===0?delete window.jentis.tracker.jtsFrontendScopeOfTheStateCache[h.primaryKey]:window.jentis.tracker.jtsFrontendScopeOfTheStateCache[h.primaryKey]=h,f.push({}),f.length===l&&w(a)})}})(r,n,t,o)})}}}},this.trackCachedFrontendTags=function(t,a,n,r){var a=typeof a<"u"?a:0;if(typeof t[a]<"u"){var o=t[a];if(typeof o<"u"){if(window.jentis.tracker.shouldReplayCachedFrontendTag(o,r)===!1){window.jentis.tracker.jtsFrontendTagCache.push(o),window.jentis.tracker.trackCachedFrontendTags(t,a+=1,n,r);return}if(window.jentis.tracker.isTrackingAllowedForClientSideTag(o.tag)===!0&&o.tag.httpVariables.length>0){var s={};s[o.tag.trigger]=o.tag.httpVariables;var c={};c[o.tag.tagID]=o.tag;var u={element:o.element,state:o.state,overwriteTags:c,timestamp:o.timestamp,_variables:o._variables,trigger:o.trigger,triggerForMonitor:o.triggerForMonitor,stateEventID:o.stateEventID,blockedVariablesDueToReferenceMissing:{},_cacheForHTTPVariables:{}};u._cacheForHTTPVariables.httpVariables={},u._cacheForHTTPVariables.httpVariables[o.tag.trigger]=o.tag.httpVariables,window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:u,variablesSortedByTrigger:s,callback:(function(d,f,l,w){return function(g){var p=g.scopeOfTheState;window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(p,!0),p,!1,g,function(h){window.jentis.tracker.checkAndResolveFrontendTagsForScope({scopeOfTheState:p,overwriteTags:p.overwriteTags,replayFromCac
1he:!0}),window.jentis.tracker.trackCachedFrontendTags(d,f+=1,l,w)})}})(t,a,n,r)})}else window.jentis.tracker.decideWhatToDoWithFrontendTags({scopeOfTheState:{element:o.element,state:o.state,timestamp:o.timestamp,_variables:o._variables,trigger:o.trigger,triggerForMonitor:o.triggerForMonitor,stateEventID:o.stateEventID,blockedVariablesDueToReferenceMissing:{}},frontendTags:[o],replayFromCache:!0}),window.jentis.tracker.trackCachedFrontendTags(t,a+=1,n,r)}else window.jentis.tracker.trackCachedFrontendTags(t,a+=1,n,r)}else n===!0&&window.jentis.tracker.trackCachedFrontend(r)},this.executePlugins=function(){if(typeof window.jentis.config.jtm.plugins<"u"){for(var t in window.jentis.config.jtm.plugins)if(typeof window.jentis.config.jtm.plugins[t]<"u"){var e=window.jentis.config.jtm.plugins[t];e.func.apply({pluginID:e.pluginID,config:e.config,jtsTracker:window.jentis.tracker},[])}}},this.startSelectorTracking=function(){for(var t in window.jentis.config.jtm.selectorActions)typeof window.jentis.config.jtm.selectorActions[t].selector<"u"&&typeof window.jentis.config.jtm.selectorActions[t].action<"u"&&(function(e){document.addEventListener(window.jentis.config.jtm.selectorActions[e].action,function(n){var r=!!n.target.closest(window.jentis.config.jtm.selectorActions[e].selector);r&&window.jentis.tracker.executeState(e,n.target,{},"sendBeacon")})})(t)},this.sendFrontendTag=function(t,e){try{if(t.executedFrontendTags=t.executed
1FrontendTags||[],t.executedFrontendTags.indexOf(e.tagID)<0){var n=window.jentis.tracker.getFrontendTrackerLibrary(e.pluginID,e.trackerID),r=window.jentis.config.jtm.pluginIDtoVendorID[e.pluginID][e.trackerID];e.func.apply(n,[{placeholder:e.placeholder,tagId:e.tagID,consent:window.jentis.tracker.isConsentGiven(r),scopeOfTheState:t}]),t.executedFrontendTags.push(e.tagID),window.jentis.tracker.log("J-DCP : [STATE] [TRIGGER] [TAG] - [AS04] Client-Side Tag Executed > Tool: "+e.pluginID+" | Tag-ID: "+e.tagID+" | Trigger: "+e.trigger,e.placeholder,!0,"AS04")}else e.notEvaluated=!0;window.jentis.tracker.sendFrontendTagToMonitor(t,e)}catch(a){window.jentis.helper.sendErrorToLogSystem(a.stack,"J-Tracker>sendFrontendTag - Tag:"+e.tagID+" | Tracker: "+e.trackerID+" - "+a.message),window.jentis.tracker.logError("Function from Frontend-Lib throws error!",a)}},this.sendNotExecutedTagToMonitor=function(t){var e=t.scopeOfTheState,n=t.frontendTag,r=t.frontendTagID,a=t.triggerName;n.tagID=r,n.trigger=a,window.jentis.tracker.sendFrontendTagToMonitor(e,n)},this.sendFrontendTagToMonitor=function(t,e){var n={};if(n.tool_id=e.pluginID,n.id=e.tagID,n.vendor_id=e.vendorID,n.trigger={},n.trigger.id=e.trigger,t.trigger[e.trigger].frontendFulfilled===!0&&t.trigger[e.trigger].trigger.excludeTrigger.length>0||typeof e.notEvaluated<"u"&&e.notEvaluated===!0?n.trigger.executed=!1:n.trigger.executed=t.trigger[e.trigger].frontendFulfilled,typeof t.triggerForMonitor<"u"&&typeof t.triggerForMonitor[e.trigger]<"u"&&typeof t.triggerForMonitor[e.trigger].condition<"u"?n.trigger.conditions=t.triggerForMonitor[e.trigger].condition:n.trigger.conditions=t.trigger[e.trigger].trigger.condition,n.trigger.excludetriggers=[],typeof window.jentis.config.jtm.trigger[e.trigger]<"u"&&typeof window.jentis.config.jtm.trigger[e.trigger].excludeTrigger<"u"&&window.jentis.config.jtm.trigger[e.trigger].excludeTrigger.length>0)for(var r=0;r<window.jentis.config.jtm.trigger[e.trigger].excludeTrigger.length;r++){var a=window.jentis.config.jtm.trigger[e.trigger].excludeTrigger[r],o={};if(o.id=a,typeof t.triggerForMonitor[window.jentis.config.jtm.trigger[e.trigger].excludeTrigger[r]]<"u")o.executed=t.triggerForMonitor[a].frontendFulfilled,o.conditions=t.triggerForMonitor[a].condition;else{o.executed=!1,o.conditions=window.jentis.tracker.cloneObject(window.jentis.config.jtm.trigger[a].condition);for(var s=0;s<o.conditions.length;s++)for(var c=0;c<o.conditions[s].length;c++)o.conditions[s][c].variablevalue="- CONDITION NOT EVALUATED -",o.conditions[s][c].executed=!1}n.trigger.excludetriggers.push(o)}n.placeholders=e.placeholder;var u=window.jentis.tracker.getEvaluatedVariablesPerType(t._variables);n.frontendVariables=u.frontend,n.constantVariables=u.constant,n.enrichmentVariables=u.enrichment,n.transformationFunctions=e.monitorForFunctions;var d={frontendTag:n,stateName:t.state,stateEventId:t.stateEventID};window.jentis.helper.sendFrontendTagToMonitor(d)},this.getEvaluatedVariablesPerType=function(t){var e={frontend:{},constant:{},enrichment:{}};for(var n in t)typeof window.jentis.config.jtm.accountconstants[n]<"u"?e.constant[n]=t[n]:window.jentis.tracker.isVariableOfTypeEnrichment(n)===!0?e.enrichment[n]=t[n]:e.frontend[n]=t[n];return e},this.replacePlaceholdersToValues=function(t){var e=t.placeholder,n=t.triggerName,r=t.scopeOfTheState,a=t.frontendTag,o=t.aIndexesWhereArraylistConditionFulfilled,s=typeof t.cac
1heEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,c=t.forceReevaluation||!1,u={},d=0,f=[],l=[],w=[],g=0,p=e.match(/\{\{(.*?)\}\}/ig);if(p!==null)for(var h=0;h<p.length;h++){var y=p[h].replace(/\{\{|\}\}/ig,"");if(window.jentis.tracker.isVariableOfTypeEnrichment(y)===!0&&s===!0){f.push(y);continue}for(var j=window.jentis.tracker.getValueOfVariable({variableName:y,triggerName:n,scopeOfTheState:r,forceReevaluation:c}),_=window.jentis.tracker.private.getAllVariableDependencies(y),m=0;m<_.length;m++){var v=_[m],b=window.jentis.tracker.getScopeOfVariable(v);if(b!==!1){var k=window.jentis.tracker.getValueOfVariable({variableName:v,triggerName:n,scopeOfTheState:r,cacheEnrichmentVariables:s});typeof k>"u"&&l.push(v)}}if(typeof j<"u"){if(g++,typeof r.blockedVariablesDueToReferenceMissing[y]<"u"&&r.blockedVariablesDueToReferenceMissing[y].dependencies.length>0){w.push(y);continue}typeof j=="object"&&Object.prototype.toString.call(j)!=="[object Array]"?e=e.replace(p[h],j):typeof j=="object"&&Object.prototype.toString.call(j)==="[object Array]"?(u[p[h]]=j,d<j.length&&(d=j.length)):p.length===1&&e.length-p[h].length===0?e=j:e=e.replace(p[h],j)}else l.push(y)}else p=[];if(g===p.length&&e.length>0){var T=0,E=function(C,B){if(typeof C!="string")return C;for(var ee=[],J=0,te=0,ne=!1,F=0;F<C.length;F++)C[F]==="("?(J===0&&(te=F),J++):C[F]===","?J>0&&(ne=!0):C[F]===")"&&(J--,J===0&&ne===!0&&(ee.push(C.substr(te,F-te+1)),ne=!1));for(var ie=0;ie<ee.length;ie++){var H=ee[ie],G=H.substring(1,H.indexOf(",")),N=H.substring(H.indexOf(",")+1,H.length-1);N=E(N,!0);var q="("+G+","+N+")",re=window.jentis.config.jtm.functions[G];if(B===!0&&typeof re<"u"&&re.length!==1){for(var O=[],ae=Object.keys(u),z=0;z<ae.length;z++)N.indexOf(ae[z])!==-1&&O.push(ae[z]);var U=N;if(O.length>0){U=[];for(var Y=0,oe=0;oe<O.length;oe++){var le=O[oe];Y<u[le].length&&(Y=u[le].length)}typeof o<"u"&&(Y=o.length);for(var K=0;K<Y;K++){var D=N,se=K;typeof o<"u"&&(se=o[K]);for(var ce=0;ce<O.length;ce++){var $=O[ce],de="";typeof u[$][se]<"u"&&(de=u[$][se]),D.length===$.length?D=de:D=D.replace($,de)}
1typeof D=="string"&&(D=window.jentis.tracker.executeTransformationFunctions(D,!0,a)),U.push(D)}}else U=window.jentis.tracker.executeTransformationFunctions(U,!0,a);typeof a.monitorForFunctions>"u"&&(a.monitorForFunctions={}),typeof a.monitorForFunctions[G]>"u"&&(a.monitorForFunctions[G]=[]);var R={};R.input=U;var x="";try{x=re(U),R.success=!0}catch(we){x="",R.success=!1,R.error=we.message,window.jentis.tracker.logError("Function throws error on execution!",we)}if(R.output=x,R.logs=[],a.monitorForFunctions[G].push(R),Object.prototype.toString.call(x)==="[object Array]"){if(O.length>0&&typeof o<"u"){for(var ue=[],X=0;X<o.length;X++)ue[o[X]]=x[X];x=ue}q="{{jentis-nested-function-result-"+T+"}}",u[q]=x,T++}else q=x}C=C.replace(H,q)}return C};e=E(e,!1);var S=Object.keys(u);d=0;for(var M=S.length-1;M>=0;M--){var P=S[M];typeof e!="string"||e.indexOf(P)===-1?delete u[P]:d<u[P].length&&(d=u[P].length)}var ge=Object.keys(u),A=[];if(ge.length>0){var fe=[];typeof o<"u"&&(d=o.length);for(var I=0;I<d;I++){var V=e,W=I;typeof o<"u"&&(W=o[I]);for(var v in u)typeof u[v][W]<"u"?Object.keys(u).length>1?V=V.replace(v,u[v][W]):V.length===v.length?V=u[v][W]:V=V.replace(v,u[v][W]):V=V.replace(v,"");fe.push(window.jentis.tracker.executeTransformationFunctions(V,!0,a,I===0?A:void 0))}e=fe}else e=window.jentis.tracker.executeTransformationFunctions(e,!0,a,A);for(var Z=0;Z<A.length;Z++){var Q=A[Z];if(typeof window.jentis.config.jtm.functions[Q]<"u"){let C;var L={};L.input=e;try{e=window.jentis.config.jtm.functions[Q](e),L.success=!0}catch(B){C=B.message,L.success=!1,L.error=C,window.jentis.tracker.logError("Function throws error on execution!",B)}L.output=e,L.logs=[],a.monitorForFunctions[Q].push(L)}}}return{placeholder:e,enrichmentVariables:f,httpVariables:l,blockedVariables:w}},this.executeTransformationFunctions=function(t,e,n,r){typeof e>"u"&&(e=!0);let a=[],o=0,s=0,c=!1;for(let w=0;w<t.length;w++)t[w]==="("?(o===0&&(s=w),o++):t[w]===","?o>0&&(c=!0):t[w]===")"&&(o--,o===0&&c===!0&&(a.push(t.substr(s,w-s+1)),c=!1));for(let w=0;w<a.length;w++){var u=a[w],d=u.substring(1,u.indexOf(",")),f=u.substring(u.indexOf(",")+1,u.length-1);f=this.executeTransformationFunctions(f,!1,n,r),typeof f=="string"?t={stream:t,value:f}:t={stream:t,value:f.stream};let g;if(typeof window.jentis.config.jtm.functions[d]<"u"){let p;if(typeof n.monitorForFunctions>"u"&&(n.monitorForFunctions={}),typeof n.monitorForFunctions[d]>"u"&&(n.monitorForFunctions[d]=[]),window.jentis.config.jtm.functions[d].length===1){var l={};l.input=t.value;try{g=window.jentis.config.jtm.functions[d](t.value),l.success=!0}catch(h){p=h.message,g="",l.success=!1,l.error=p,window.jentis.tracker.logError("Function throws error on execution!",h)}l.output=g,l.logs=[],n.monitorForFunctions[d].push(l)}else typeof r<"u"&&r.push(d),g=t.value}typeof g<"u"&&(t.stream=t.stream.replace(u,g)),e===!0&&(t=t.stream)}return t},this.getFrontendTrackerLibrary=function(t,e){if(typeof window.jentis.tracker.jtm.frontendLib[e]<"u")return window.jentis.tracker.jtm.frontendLib[e];if(typeof window.jentis.config.jtm.frontendLibs[t]<"u"&&typeof window.jentis.config.jtm.frontendLibs[t].lib<"u"){var n={};typeof window.jentis.config.jtm.frontendLibs[t].tracker<"u"&&typeof window.jentis.config.jtm.frontendLibs[t].tracker[e]<"u"&&(n=window.jentis.config.jtm.frontendLibs[t].tracker[e]);var r=window.jentis.config.jtm.pluginIDtoVendorID[t][e],a=new window.jentis.config.jtm.frontendLibs[t].lib({pluginID:t,trackerID:e,jtsTracker:window.jentis.tracker,config:n,accountvars:window.jentis.config.jtm.accountconstants,consent:window.jentis.tracker.isConsentGiven(r)});return window.jentis.tracker.jtm.frontendLib[e]=a,window.jentis.tracker.jtm.frontendLib[e]}throw"window.jentis.config.jtm.frontendLibs: "+t+" NOT FOUND!"},this.sendDocumentsToJENTIS=function(t){window.jentis.config.trackingConsentGiven===!0?window.jentis.tracker.startAsynchronousHTTPVariableEvaluation({scopeOfTheState:t.scopeOfTheState,variablesSortedByTrigger:t.scopeOfTheState.httpvarsSortedPerTrigger,callback:(function(e,n){return function(r){window.jentis.tracker.evaluateDependendVariables(window.jentis.tracker.private.getArrayOfAllBlockedDependencies(t.scopeOfTheState,!0),t.scopeOfTheState,!0,r,function(a){for(var o in a.triggerVariableExecutedForBackend)window.jentis.tracker.resolveTriggerVariablesForBackend({triggerName:o,scopeOfTheState:a.scopeOfTheState,variables:a.triggerVariableExecutedForBackend[o]});a.scopeOfTheState.httpvarsSortedPerTrigger=a.triggerVariableCacheForBackend;var s=[];window.jentis.tracker.addEnrichmentInformationToVariableScope("USER",a.scopeOfTheState),window.jentis.tracker.addEnrichmentInformationToVariableScope("SESSION",a.scopeOfTheState),window.jentis.tracker.addEnrichmentInformationToVariableScope("EVENT",a.scopeOfTheState);var c={USER:{},SESSION:{},EVENT:{}};if(window.jentis.tracker.trackOnlyConditionVariables===!0){var u=[];for(o in a.scopeOfTheState.trigger)a.scopeOfTheState.trigger[o].trigger.hasServerSideTag===!0&&window.jentis.tracker.mergeArrayWithoutDuplicates(u,a.scopeOfTheState.trigger[o].trigger.conditionVariables);for(variableScope in a.scopeOfTheState.oVars)if(typeof a.scopeOfTheState.oVars[variableScope].property<"u"&&Object.keys(a.scopeOfTheState.oVars[variableScope].property).length>0)for(variable in a.scopeOfTheState.oVars[variableScope].property)u.indexOf(variable)!==-1&&(c[variableScope].property=typeof c[variableScope].property<"u"?c[variableScope].property:{},c[variableScope].property[variable]=a.scopeOfTheState.oVars[variableScope].property[variable])}else c.USER=a.scopeOfTheState.oVars.USER,c.SESSION=a.scopeOfTheState.oVars.SESSION,c.EVENT=a.scopeOfTheState.oVars.EVENT;s.push(window.jentis.tracker.trackUserDocument(c.USER)),s.push(window.jentis.tracker.trackSessionDocument(c.SESSION)),s.push(window.jentis.tracker.trackEventDocument(a.scopeOfTheState,c.EVENT,n));var d={collectGeneratedDocuments:s,timestampOfStateExecution:a.scopeOfTheState.t
1imestamp,state:a.scopeOfTheState.state,requestType:a.scopeOfTheState.requestType,oneVendorHasAtLeastNotFalse:void 0,stateEventID:a.scopeOfTheState.stateEventID};window.jentis.tracker.sendDocumentsToDatareceiver(d),typeof window.jentis.tracker.oCache[window.jentis.tracker.sStoragePrefix]<"u"&&(typeof window.jentis.tracker.oCache[window.jentis.tracker.sStoragePrefix].user<"u"&&(window.jentis.tracker.isNew.user=!1),typeof window.jentis.tracker.oCache[window.jentis.tracker.sStoragePrefix].session<"u"&&(window.jentis.tracker.isNew.session=!1)),typeof e<"u"&&e()})}})(t.callback,t.consent)}):window.jentis.tracker.log("J-DCP","[STATE] - Tracking not allowed, because no consent is given. State: "+t.scopeOfTheState.state),(typeof t.disableCaching>"u"||typeof t.disableCaching<"u"&&t.disableCaching===!1)&&window.jentis.tracker.jtsEventCache.push({scopeOfTheState:t.scopeOfTheState})},this.trackUserDocument=function(t){typeof t>"u"&&(t={}),typeof t.property>"u"&&(t.property={});var e={},n=this.readDocumentID("user");return this.isNew.user===!0?(e._id=n===null?this.createDocumentID("user"):n,e.action="new",window.jentis.helper.setEvent("jentis.tracker","jentis-userid",e._id,!0)):(e._id=n,e.action="upd"),e.account=window.jentis.config.account,e.documentType="user",e.property=t.property,e.system={},typeof t.enrichment<"u"&&Object.keys(t.enrichment).length>0&&(e.system.enrichment=t.enrichment),e.aggr={},e.parent={},e},this.trackSessionDocument=function(t){typeof t>"u"&&(t={}),typeof t.property>"u"&&(t.property={});var e={},n=this.readDocumentID("session"),r=window.jentis.tracker.getPreviewVersion();if(typeof r=="string"?t.property.jts_version=r:t.property.jts_version="_",typeof window.jentis.config.frontend.debug<"u"&&window.jentis.config.frontend.debug!==null&&(t.property.jts_debug=window.jentis.config.frontend.debug),this.isNew.user===!0||this.isNew.user===!1&&this.isNew.session===!0)e._id=n===null?this.createDocumentID("session"):n,e.action="new";else{var a=this.readDocumentID("session");a===null&&(a=n,this.updateDocumentID("session",n)),e._id=a,e.action="upd"}e.account=window.jentis.config.account,e.documentType="session",e.property=t.property,e.system={};var o=window.jentis.tracker.getAutomationId();return o&&(e.system.jts_automation_id=o),typeof t.enrichment<"u"&&Object.keys(t.enrichment).length>0&&(e.system.enrichment=t.enrichment),e.aggr={},e.parent={user:this.readDocumentID("user")},typeof window.navigator<"u"&&window.navigator.userAgent!=="undefined"&&(e.system["navigator-userAgent"]=window.navigator.userAgent),window.jentis.helper.setCookie({name:"jctr_sid",value:e._id,exdays:{m:30},sameSite:"Lax",bSecure:!0}),e},this.trackEventDocument=function(t,e,n){var r={_id:t.stateEventID,documentType:"event",action:"new",parent:{user:this.readDocumentID("user"),session:this.readDocumentID("session")},account:window.jentis.config.account,aggr:{},pluginid:t.state,system:{href:window.location.href},property:e.property};return typeof e.enrichment<"u"&&Object.keys(e.enrichment).length>0&&(r.system.enrichment=e.enrichment),r.system.consent=typeof n<"u"?n:window.jentis.consent.engine.getAllConsents(),r.system.consentStatus=window.jentis.tracker.getConsentStatus(),r},this.trackConsentDocument=function(t){var e={_id:this.createDocumentID("consent"),documentType:"consent",action:"new",parent:{user:this.readDocumentID("user")},account:window.jentis.config.account,aggr:{},property:t};return e},this.trackConsent=function(t){var e=[];e.push(this.trackUserDocument()),e.push(this.trackConsentDocument(t));var n=!1;for(vendors in t.vendors)if(t.vendors[vendors]!==!1){n=!0;break}var r={collectGeneratedDocuments:e,timestampOfStateExecution:Date.now(),state:"JENTIS Consent Data",requestType:!1,oneVendorHasAtLeastNotFalse:n};this.sendDocumentsToDatareceiver(r),typeof this.oCache[this.sStoragePrefix]<"u"&&typeof this.oCache[this.sStoragePrefix].user<"u"&&(this.isNew.user=!1)},this.getValueOfVariable=function(t){var e=t.scopeOfTheState,n=typeof t.state<"u"?t.state:e.state,r=t.variableName,a=t.triggerName,o=typeof t.cac
1heEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,s=typeof t.funcSendHTTPRequest<"u"?t.funcSendHTTPRequest:function(h,y){},c=t.funcCallback,u=t.forceReevaluation||!1;try{if(typeof window.jentis.config.jtm.variables[r]<"u"){if(u!==!0&&window.jentis.tracker.isVariableTriggerRelated(r)===!0&&typeof a<"u"&&typeof e._variables._jts_sys_trigger<"u"&&typeof e._variables._jts_sys_trigger[a]<"u"&&typeof e._variables._jts_sys_trigger[a][r]<"u")if(typeof c<"u")c(e._variables._jts_sys_trigger[a][r]);else return e._variables._jts_sys_trigger[a][r];else if(u!==!0&&typeof e._variables[r]<"u")if(typeof c<"u")c(e._variables[r]);else return e._variables[r];else if(typeof window.jentis.config.jtm.variables[r].scope<"u"&&window.jentis.config.jtm.variables[r].scope!==null&&window.jentis.config.jtm.variables[r].scope.toLowerCase()==="account"&&typeof window.jentis.config.jtm.variables[r].value<"u")return window.jentis.config.jtm.variables[r].value;if(window.jentis.tracker.isVariableOfTypeEnrichment(r)===!0){if(o===!1)return typeof e._variables[r]<"u"?e._variables[r]:(window.jentis.tracker.logError("getValueOfVariable(): "+r+" <> Value not found after successful enrichment! | State: "+(typeof n>"u"?"Selector Action":n)),"");var d=window.jentis.tracker.getScopeOfVariable(r);d!==!1?(typeof e.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment>"u"&&(e.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment=[]),e.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment.indexOf(r)===-1&&e.oVars[window.jentis.config.jtm.variables[r].scope.toUpperCase()].enrichment.push(r)):window.jentis.tracker.logError("getValueOfVariable(): "+r+" <> Scope not found for ENRICHMENT! | State: "+(typeof n>"u"?"Selector Action":n))}var f=window.jentis.tracker.evaluateFrontendVariable({variableName:r,triggerName:a,scopeOfTheState:e,funcSendHTTPRequest:s,funcCallback:c});if(typeof f>"u"){var l=[];if(typeof window.jentis.config.jtm.variables[r].template>"u"?(typeof e._cacheForHTTPVariables.httpVariables[a]>"u"&&(e._cacheForHTTPVariables.httpVariables[a]=[]),window.jentis.tracker.mergeArrayWithoutDuplicates(e._cacheForHTTPVariables.httpVariables[a],[r]),typeof window.jentis.config.jtm.variables[r]<"u"&&typeof window.jentis.config.jtm.variables[r].dependencies<"u"&&(l=window.jentis.config.jtm.variables[r].dependencies)):l=e.templateVariables[r].dependencies,l.length>0)for(var w=0;w<l.length;w++){var g=l[w],p=r;typeof e._cacheForHTTPVariables.referenceCache[g]>"u"&&(e._cacheForHTTPVariables.referenceCache[g]={}),typeof e._cacheForHTTPVariables.referenceCache[g][p]>"u"&&(e._cacheForHTTPVariables.referenceCache[g][p]={},e._cacheForHTTPVariables.referenceCache[g][p].triggerName=[]),e._cacheForHTTPVariables.referenceCache[g][p].triggerName.indexOf(a)===-1&&e._cacheForHTTPVariables.referenceCache[g][p].triggerName.push(a),typeof e.blockedVariablesDueToReferenceMissing[p]>"u"&&(e.blockedVariablesDueToReferenceMissing[p]={},e.blockedVariablesDueToReferenceMissing[p].dependencies=window.jentis.tracker.cloneObject(l),e.blockedVariablesDueToReferenceMissing[p].triggers=[]),e.blockedVariablesDueToReferenceMissing[p].triggers.push({triggerName:a})}}else(typeof e.blockedVariablesDueToReferenceMissing[r]>"u"||typeof e.blockedVariablesDueToReferenceMissing[r]<"u"&&e.blockedVariablesDueToReferenceMissing[r].dependencies.length===0)&&window.jentis.tracker.saveVariableToScope(e,a,r,f);return f}return""}catch(h){return window.jentis.helper.sendErrorToLogSystem(h.stack,"J-Tracker>getValueOfVariable - Var:"+r+" | State: "+(typeof n>"u"?"Selector Action":n)+" | "+h.message),window.jentis.tracker.logError("getValueOfVariable(): "+r+" | State: "+(typeof n>"u"?"Selector Action":n),h),""}},this.evaluateFrontendVariable=function(t){var e=t.scopeOfTheState,n=t.variableName,r=e.element,a=e.state,o=t.triggerName,s=t.funcSendHTTPRequest,c=!1,u=function(){};typeof t.funcCallback=="function"&&(u=t.funcCallback,c=!0);var d="",f={element:r,accountvars:window.jentis.config.jtm.accountconstants,stateContext:e.contextualStateInformation,callback:u},l={variableid:n,triggername:o,sendHTTPRequest:s,setCookie:function(j){typeof j=="object"?(j.vendorids=window.jentis.config.jtm.variables[this.variableid].vendorids,window.jentis.helper.setCookie(j)):window.jentis.tracker.log("J-DCP","[setCookie] Argument must be of type object")},readCookie:function(j){return typeof j=="string"?window.jentis.helper.readCookie(j):(window.jentis.tracker.log("J-DCP","[readCookie] Argument must be of type string"),null)},setServerCookie:function(j){typeof j=="object"?(j.vendorids=window.jentis.config.jtm.variables[this.variableid].vendorids,window.jentis.helper.setServerCookie(j)):window.jentis.tracker.log("J-DCP","[setServerCookie] Argument must be of type object")},setLocalStorageItem:function(j,_,m){return window.jentis.helper.setLocalStorageItem(j,_,m)},getLocalStorageItem:function(j){return window.jentis.helper.getLocalStorageItem(j)},getFrontendVariable:(function(_,m,v){return function(b){var k=window.jentis.tracker.getValueOfVariable({variableName:b,triggerName:m,scopeOfTheState:_});return typeof k>"u"&&(typeof _._cacheForHTTPVariables.referenceCache[b]>"u"&&(_._cacheForHTTPVariables.referenceCache[b]={}),typeof _._cacheForHTTPVariables.referenceCache[b][v]>"u"&&(_._cacheForHTTPVariables.referenceCache[b][v]={},_._cacheForHTTPVariables.referenceCache[b][v].triggerName=[]),_._cacheForHTTPVariables.referenceCache[b][v].triggerName.indexOf(m)===-1&&_._cacheForHTTPVariables.referenceCache[b][v].triggerName.push(m),typeof _.blockedVariablesDueToReferenceMissing[v]>"u"&&(_.blockedVariablesDueToReferenceMissing[v]={},_.blockedVariablesDueToReferenceMissing[v].dependencies=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[v].dependencies),_.blockedVariablesDueToReferenceMissing[v].triggers=[]),_.blockedVariablesDueToReferenceMissing[v].triggers.push({triggerName:m})),k}})(e,o,n)};if(typeof window.jentis.config.jtm.variables[n].template<"u")if(typeof window.jentis.config.jtm.variables[n].placeholder<"u"&&typeof window.jentis.config.jtm.template_variables<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[n].template]<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[n].template].value=="function"){typeof e.templateVariables>"u"&&(e.templateVariables={}),typeof e.templateVariables[n]>"u"&&(e.templateVariables[n]={},e.templateVariables[n].dependencies=[],e.templateVariables[n].evaluateFirst=window.jentis.config.jtm.variables[n].evaluateFirst||[],e.templateVariables[n].placeholder=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[n].placeholder));var w=!1,g=[];if(typeof e.templateVariables[n].evaluateFirst<"u"&&e.templateVariables[n].evaluateFirst.length>0)for(var p=0;p<e.templateVariables[n].evaluateFirst.length;p++){var h=e.templateVariables[n].evaluateFirst[p];if(typeof e.templateVariables[n].placeholder[h]<"u"){var y=window.jentis.tracker.getValueOfVariable({variableName:e.templateVariables[n].placeholder[h],triggerName:o,scopeOfTheState:e,funcSendHTTPRequest:s});g.push(e.templateVariables[n].placeholder[h]),typeof y<"u"?e.templateVariables[n].placeholder[h]=y:w=!0}}w?(d=void 0,e.templateVariables[n].dependencies=g):(f.placeholder=e.templateVariables[n].placeholder,d=window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[n].template].value.apply(l,[f]),c===!0&&window.setTimeout(function(){f.callback("")},2e3))}else window.jentis.tracker.logError("getValueOfVariable(): "+n+" <> Template not found! | State: "+(typeof a>"u"?"Selector Action":a),{});else typeof window.jentis.config.jtm.variables[n].value=="string"?d=window.jentis.config.jtm.variables[n].value:typeof window.jentis.config.jtm.variables[n].value=="function"&&(d=window.jentis.config.jtm.variables[n].value.apply(l,[f]),c===!0&&window.setTimeout(function(){f.callback("")},2e3));return d},this.saveVariableToScope=function(t,e,n,r){this.saveVariableToScope_variables(t,e,n,r),window.jentis.tracker.isVariableOfTypeEnrichment(n)===!1&&this.saveVariableToScope_oVars(t,e,n,r)},this.saveVariableToScope_oVars=function(t,e,n,r){var a=window.jentis.tracker.getScopeOfVariable(n);typeof t.oVars>"u"&&(t.oVars={}),typeof t.oVars>"u"&&(t.oVars={}),typeof t.oVars[a]>"u"&&(t.oVars[a]={}),typeof t.oVars[a].property>"u"&&(t.oVars[a].property={}),window.jentis.tracker.isVariableTriggerRelated(n)===!0?(typeof t.oVars[a].property._jts_sys_trigger>"u"&&(t.oVars[a].property._jts_sys_trigger={}),typeof t.oVars[a].property._jts_sys_trigger[e]>"u"&&(t.oVars[a].property._jts_sys_trigger[e]={}),t.oVars[a].property._jts_sys_trigger[e][n]=r):t.oVars[a].property[n]=r},this.saveVariableToScope_variables=function(t,e,n,r){window.jentis.tracker.isVariableTriggerRelated(n)===!0?(typeof t._variables._jts_sys_trigger>"u"&&(t._variables._jts_sys_trigger={}),typeof e<"u"&&(typeof t._variables._jts_sys_trigger[e]>"u"&&(t._variables._jts_sys_trigger[e]={}),t._variables._jts_sys_trigger[e][n]=r)):(typeof t._variables>"u"&&(t._variables={}),t._variables[n]=r)},this.getValueTypeToMatch=function(t){try{return typeof t=="object"?JSON.stringify(t):typeof t>"u"?"undefined":t.toString()}catch(e){return window.jentis.tracker.logError("getValueTypeToMatch(): "+t+" - Problem",e),""}},this.isVariableTriggerRelated=function(t){if(typeof window.jentis.config.jtm.variables[t]<"u"){if(typeof window.jentis.config.jtm.variables[t].template<"u"){if(typeof window.jentis.config.jtm.template_variables<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[t].template]<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[t].template].triggerRelated<"u")return window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[t].template].triggerRelated}else if(typeof window.jentis.config.jtm.variables[t].triggerRelated<"u")return window.jentis.config.jtm.variables[t].triggerRelated}return!1}
1,this.getScopeOfVariable=function(t){if(typeof window.jentis.config.jtm.variables[t]<"u"){if(typeof window.jentis.config.jtm.variables[t].template<"u")return typeof window.jentis.config.jtm.template_variables<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[t].template]<"u"&&typeof window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[t].template].scope<"u"?window.jentis.config.jtm.template_variables[window.jentis.config.jtm.variables[t].template].scope:(window.jentis.tracker.logError("getScopeOfVariable(): "+t+" <> Scope not found!",{}),!1);if(typeof window.jentis.config.jtm.variables[t].scope<"u")return window.jentis.config.jtm.variables[t].scope}return!1},this.isVariableOfTypeEnrichment=function(t){return typeof window.jentis.config.jtm.variables[t]<"u"&&typeof window.jentis.config.jtm.variables[t].source<"u"&&window.jentis.config.jtm.variables[t].source==="ENRICHMENT"},this.mergeArrayWithoutDuplicates=function(t,e){for(var n=0;n<e.length;n++)t.indexOf(e[n])===-1&&t.push(e[n]);return t},this.checkOperatorMatch=function(t,e,n){let r=this.getValueTypeToMatch(t),a=this.getValueTypeToMatch(n);switch(e){case"eq":return this._equal(r,a);case"neq":return!this._equal(r,a);case"co":return this._contains(r,a);case"nco":return!this._contains(r,a);case"bw":return this._startsWith(r,a);case"nbw":return!this._startsWith(r,a);case"ew":return this._endsWith(r,a);case"new":return!this._endsWith(r,a);case"reg":return this._matchesRegex(n,r);case"nreg":return!this._matchesRegex(n,r);case"bg":return this._bigger(r,a);case"bgeq":return this._biggerEqual(r,a);case"lo":return this._lower(r,a);case"loeq":return this._lowerEqual(r,a);case"j-true":return!0;default:return!1}},this._equal=function(t,e){return t===e},this._contains=function(t,e){return t.toLowerCase().indexOf(e.toLowerCase())>-1},this._startsWith=function(t,e){return!!t.toLowerCase().startsWith(e.toLowerCase())},this._endsWith=function(t,e){return!!t.toLowerCase().endsWith(e.toLowerCase())},this._matchesRegex=function(t,e){var n=this.parseRegExpString(t);return!!n.test(e)},this._bigger=function(t,e){return parseFloat(t)>parseFloat(e)},this._biggerEqual=function(t,e){return parseFloat(t)>=parseFloat(e)},this._lower=function(t,e){return parseFloat(t)<parseFloat(e)},this._lowerEqual=function(t,e){return parseFloat(t)<=parseFloat(e)},this.resolveTriggerVariablesForBackend=function(t){for(var e=t.scopeOfTheState,n=t.triggerName,r=t.variables,a=typeof t.cac
1heEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,o=0;o<r.length;o++){var s=r[o],c=window.jentis.tracker.getScopeOfVariable(s);if(c!==!1){var u=window.jentis.tracker.getValueOfVariable({variableName:s,triggerName:n,scopeOfTheState:e,cacheEnrichmentVariables:a});typeof u>"u"&&(typeof e._cacheForHTTPVariables.backend[n]>"u"&&(e._cacheForHTTPVariables.backend[n]=[]),e._cacheForHTTPVariables.backend[n].push(s))}}},this.collectVariablesFromTriggerIncludingExcludeTriggers=function(t,r){var n=[],r=r||[];return r.indexOf(t)>-1||(r.push(t),typeof window.jentis.config.jtm.trigger[t]<"u"&&typeof window.jentis.config.jtm.trigger[t].variables<"u"&&window.jentis.tracker.mergeArrayWithoutDuplicates(n,window.jentis.config.jtm.trigger[t].variables)),n},this.resolveFrontendTagsRelatedToTrigger=function(t){var e=t.scopeOfTheState,n=typeof t.triggerName<"u"?t.triggerName:"",r=t.overwriteTags,a=typeof t.cacheEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,o=typeof t.cacheHTTPVariables<"u"?t.cacheHTTPVariables:!1,s=[],c=[],u=!1;if(typeof r>"u"){for(var d=0;d<window.jentis.config.jtm.trigger[n].tags.length;d++)if(typeof window.jentis.config.jtm.trigger[n].tags[d]<"u"&&typeof window.jentis.config.jtm.frontendTags[window.jentis.config.jtm.trigger[n].tags[d]]<"u"){var f=window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[window.jentis.config.jtm.trigger[n].tags[d]]);f.tagID=window.jentis.config.jtm.trigger[n].tags[d],f.trigger=n,c.push(f)}}else typeof r=="object"&&Object.prototype.toString.call(r)!=="[object Array]"&&(r=window.jentis.tracker.getArrayFromObject(r)),c=r,u=!0;for(var d=0;d<c.length;d++){var l={},f=c[d];u===!0&&(n=f.trigger),l.enrichmentVariables=[],l.tag=f,l.tag.httpVariables=[],l.tag.blockedVariables=[];for(var w in f.placeholder)this.replacePlaceholder({frontendTag:f,placeholderName:w,trigger:n,frontendTagResult:l,scopeOfTheState:e,cacheEnrichmentVariables:a});s.push(l)}return s},this.replacePlaceholderForTagId=function(t,e,n,r){var a=window.jentis.config.jtm.frontendTags[t];if(typeof a>"u")return window.jentis.tracker.logError("[TAG][FRONTEND] Error: Tag with ID: "+t+" not found!"),"";var o=this.replacePlaceholder({frontendTag:window.jentis.tracker.cloneObject(a),placeholderName:e,scopeOfTheState:n,forceReevaluation:!0});return typeof r<"u"&&typeof r[e]<"u"&&(r[e]=o),this.log("J-DCP : [STATE] [TRIGGER] [TAG] - [AS04] - [RE-EVALUATE PLACEHOLDER] Placeholder-Key: "+e+"| New-Value: [ "+o+" ] for Client-Side Tag > Tool: "+a.pluginID+" | Tag-ID: "+t,!0,"AS04"),o},this.replacePlaceholder=function(t){var e=t.frontendTag,n=t.placeholderName,r=!0,a=t.trigger||void 0,o=t.scopeOfTheState||this.createScopeOfTheStateObject(),s=t.cacheEnrichmentVariables||!1,c="",u=t.forceReevaluation||!1;if(typeof t.frontendTagResult<"u"){var d=t.frontendTagResult;r=!1}if(typeof e.arraylist<"u"&&typeof e.arraylist[n]<"u"){var f=window.jentis.tracker.replacePlaceholdersFromArraylist({arraylist:e.placeholder[n],arraylistcondition:e.arraylist[n],triggerName:a,scopeOfTheState:o,frontendTag:e,cacheEnrichmentVariables:s});f.enrichmentVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.enrichmentVariables,f.enrichmentVariables),f.httpVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.tag.httpVariables,f.httpVariables),c=e.arraylist[n]}else if(typeof e.placeholder[n]=="object"){for(var l in e.placeholder[n])for(var w in e.placeholder[n][l])if(typeof e.placeholder[n][l][w]=="string"){var f=window.jentis.tracker.replacePlaceholdersToValues({placeholder:e.placeholder[n][l][w],triggerName:a,scopeOfTheState:o,frontendTag:e,cacheEnrichmentVariables:s});e.placeholder[n][l][w]=f.placeholder,f.enrichmentVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.enrichmentVariables,f.enrichmentVariables),f.httpVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.tag.httpVariables,f.httpVariables),f.blockedVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.tag.blockedVariables,f.blockedVariables)}c=e.placeholder[n]}
1else if(typeof e.placeholder[n]=="string"){var f=window.jentis.tracker.replacePlaceholdersToValues({placeholder:e.placeholder[n],triggerName:a,scopeOfTheState:o,frontendTag:e,cacheEnrichmentVariables:s,forceReevaluation:u});e.placeholder[n]=f.placeholder,f.enrichmentVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.enrichmentVariables,f.enrichmentVariables),f.httpVariables.length>0&&r===!1&&window.jentis.tracker.mergeArrayWithoutDuplicates(d.tag.httpVariables,f.httpVariables),c=f.placeholder}return c},this.replacePlaceholdersFromArraylist=function(t){var e=t.arraylist,n=t.arraylistcondition,r=t.scopeOfTheState,a=t.triggerName,o=t.frontendTag,s=typeof t.cacheEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,c=[],u=[],d=[];if(s===!0&&window.jentis.tracker.isVariableOfTypeEnrichment(n.variable)===!0)c.push(n.variable);else if(typeof n.realizedValue>"u"&&(n.realizedValue=window.jentis.tracker.getValueOfVariable({variableName:n.variable,triggerName:a,scopeOfTheState:r})),typeof n.realizedValue=="object"&&Object.prototype.toString.call(n.realizedValue)==="[object Array]")for(var f=0;f<n.realizedValue.length;f++)window.jentis.tracker.checkOperatorMatch(n.realizedValue[f],n.operator,n.value)===!0&&d.push(f);for(var l in e)if(typeof e[l]=="object"&&Object.prototype.toString.call(e[l])!=="[object Array]"){for(var f in e[l])for(var w in e[l][f])if(typeof e[l][f][w]=="string"){var g=window.jentis.tracker.replacePlaceholdersToValues({placeholder:e[l][f][w],triggerName:a,scopeOfTheState:r,frontendTag:o,aIndexesWhereArraylistConditionFulfilled:d,cacheEnrichmentVariables:s});typeof g.placeholder=="object"&&Object.prototype.toString.call(g.placeholder)==="[object Array]"?e[l][f][w]=g.placeholder:s===!1?e[l][f][w]=[g.placeholder]:e[l][f][w]=g.placeholder,g.enrichmentVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(c,g.enrichmentVariables),g.httpVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(u,g.httpVariables)}}else if(typeof e[l]=="string"){var g=window.jentis.tracker.replacePlaceholdersToValues({placeholder:e[l],triggerName:a,scopeOfTheState:r,frontendTag:o,aIndexesWhereArraylistConditionFulfilled:d,cacheEnrichmentVariables:s});g.enrichmentVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(c,g.enrichmentVariables),g.httpVariables.length>0&&window.jentis.tracker.mergeArrayWithoutDuplicates(u,g.httpVariables),e[l]=g.placeholder}return{enrichmentVariables:c,httpVariables:u}},this.allTriggerConditionsFulfilled=function(t){var e=t.scopeOfTheState,n=t.triggerName,r=t.overwriteTrigger,a=typeof t.cac
1heEnrichmentVariables<"u"?t.cacheEnrichmentVariables:!1,o=typeof t.cacheHTTPVariables<"u"?t.cacheHTTPVariables:!1;if(typeof r<"u")var s=r;else{var s=this.cloneObject(window.jentis.config.jtm.trigger[n]);s.trigger=n}var c=s.condition,u=[],d=[],f=!1,l=[],w=[],g=[];if(typeof e.triggerForMonitor>"u"&&(e.triggerForMonitor={}),typeof e.triggerForMonitor[s.trigger]>"u"&&(e.triggerForMonitor[s.trigger]={}),typeof e.triggerForMonitor[s.trigger].condition>"u"){e.triggerForMonitor[s.trigger].condition=[];for(var p=0;p<c.length;p++)e.triggerForMonitor[s.trigger].condition.push([])}if(c.length===0)return e.triggerForMonitor[s.trigger].frontendFulFilled=!0,{backendFulfilled:!0,frontendFulfilled:!0,enrichmentVariables:[],httpVariables:d,frontendHTTPConditionIncludedWithoutConsent:l,enrichmentConditionIncludedInReferences:w,dependencies:g,trigger:s};for(var p=0;p<c.length;p++){if(c[p].length===0)return e.triggerForMonitor[s.trigger].frontendFulFilled=!0,{backendFulfilled:!0,frontendFulfilled:!0,enrichmentVariables:[],httpVariables:d,frontendHTTPConditionIncludedWithoutConsent:l,enrichmentConditionIncludedInReferences:w,dependencies:g,trigger:s};for(var h=0,y=0,j=0;j<c[p].length;j++){var _=c[p][j];if(this.isVariableOfTypeEnrichment(_.variable)===!0&&a===!0)u.push(_.variable),h+=1,c[p].length-h-y===0&&(f=!0);else{var m=_.variable,v=this.getValueOfVariable({variableName:m,triggerName:s.trigger,scopeOfTheState:e});if(o===!0&&typeof e._cacheForHTTPVariables.httpVariables[s.trigger]<"u"&&e._cacheForHTTPVariables.httpVariables[s.trigger].indexOf(m)>-1||typeof window.jentis.config.jtm.variables[m]<"u"&&typeof window.jentis.config.jtm.variables[m].template<"u"&&typeof v>"u"){window.jentis.tracker.mergeArrayWithoutDuplicates(d,[m]),y+=1;for(var b=0;b<window.jentis.config.jtm.variables[m].dependencies.length;b++){var k=m,T=window.jentis.config.jtm.variables[m].dependencies[b];typeof e._cacheForHTTPVariables.referenceCache[T]>"u"&&(e._cacheForHTTPVariables.referenceCache[T]={}),typeof e._cacheForHTTPVariables.referenceCache[T][k]>"u"&&(e._cacheForHTTPVariables.referenceCache[T][k]={},e._cacheForHTTPVariables.referenceCache[T][k].triggerName=[]),e._cacheForHTTPVariables.referenceCache[T][k].triggerName.indexOf(s.trigger)===-1&&e._cacheForHTTPVariables.referenceCache[T][k].triggerName.push(s.trigger),typeof e.blockedVariablesDueToReferenceMissing[k]>"u"&&(e.blockedVariablesDueToReferenceMissing[k]={},e.blockedVariablesDueToReferenceMissing[k].dependencies=window.jentis.tracker.cloneObject(window.jentis.config.jtm.variables[k].dependencies),e.blockedVariablesDueToReferenceMissing[k].triggers=[]),e.blockedVariablesDueToReferenceMissing[k].triggers.push({triggerName:s.trigger})}c[p].length-h-y===0&&(f=!0)}else if(window.jentis.tracker.isVariableFromTypeHTTP(m,s.trigger,e)===!0&&window.jentis.tracker.isConsentGivenForVariable(m)===!1)window.jentis.tracker.mergeArrayWithoutDuplicates(l,[m]);else if(typeof e.blockedVariablesDueToReferenceMissing[m]>"u"||typeof e.blockedVariablesDueToReferenceMissing[m]<"u"&&e.blockedVariablesDueToReferenceMissing[m].dependencies.length===0){if(typeof _.alreadyNegativeEvaluated<"u"&&_.alreadyNegativeEvaluated===!1||typeof _.alreadyNegativeEvaluated>"u"&&this.checkOperatorMatch(v,_.operator,_.value)){var E=window.jentis.tracker.cloneObject(_);if(E.variablevalue=v,E.executed=!0,e.triggerForMonitor[s.trigger].condition[p].push(E),c[p].splice(j,1),j-=1,c[p].length===0)return e.triggerForMonitor[s.trigger].frontendFulFilled=!0,{backendFulfilled:!0,frontendFulfilled:!0,enrichmentVariables:[],httpVariables:d,frontendHTTPConditionIncludedWithoutConsent:l,enrichmentConditionIncludedInReferences:w,dependencies:g,trigger:s}}else if(typeof _.alreadyNegativeEvaluated>"u"){var E=window.jentis.tracker.cloneObject(_);E.variablevalue=v,E.executed=!1,e.triggerForMonitor[s.trigger].condition[p].push(E),_.alreadyNegativeEvaluated=!0}}else if(typeof e.blockedVariablesDueToReferenceMissing[m]<"u"){for(var S=window.jentis.tracker.private.getAllVariableDependencies(m),b=0;b<S.length;b++)window.jentis.tracker.isVariableFromTypeHTTP(S[b],s.trigger,e)===!0&&window.jentis.tracker.isConsentGivenForVariable(S[b])===!1?window.jentis.tracker.mergeArrayWithoutDuplicates(l,[S[b]]):window.jentis.tracker.isVariableOfTypeEnrichment(S[b])===!0&&(window.jentis.tracker.mergeArrayWithoutDuplicates(u,[S[b]]),window.jentis.tracker.mergeArrayWithoutDuplicates(w,[S[b]]));window.jentis.tracker.mergeArrayWithoutDuplicates(g,S)}}}}if(u.length===0&&d.length===0&&l.length===0)for(var M in e.trigger){var P=e.trigger[M].trigger.excludeTrigger.indexOf(s.trigger);P>-1&&e.trigger[M].trigger.excludeTrigger.splice(P,1)}return e.triggerForMonitor[s.trigger].frontendFulFilled=!1,{backendFulfilled:f,frontendFulfilled:!1,enrichmentVariables:u,httpVariables:d,frontendHTTPConditionIncludedWithoutConsent:l,enrichmentConditionIncludedInReferences:w,dependencies:g,trigger:s}},this.private.getAllVariableDependencies=function(t,e,n){if(typeof e>"u"&&(e=[]),typeof n>"u"&&(n=[]),n.indexOf(t)>-1)return e;if(typeof window.jentis.config.jtm.variables[t]<"u"&&typeof window.jentis.config.jtm.variables[t].dependencies<"u"&&window.jentis.config.jtm.variables[t].dependencies.length>0){window.jentis.tracker.mergeArrayWithoutDuplicates(e,window.jentis.config.jtm.variables[t].dependencies);for(var r=0;r<window.jentis.config.jtm.variables[t].dependencies.length;r++)window.jentis.tracker.mergeArrayWithoutDuplicates(e,window.jentis.tracker.private.getAllVariableDependencies(window.jentis.config.jtm.variables[t].dependencies[r],e,n))}return e},this.executeFrontendTagsWhichWereBlockedByExcludeTriggers=function(t,e){var n=t.trigger;typeof e<"u"&&(n=window.jentis.tracker.getObjectFromArray(e));for(var r in n){for(var a=!1,o=0;o<t.trigger[r].trigger.excludeTrigger.length;o++){var s=t.trigger[r].trigger.excludeTrigger[o];if(typeof t.trigger[s]<"u")if(t.trigger[s].frontendFulfilled===!1)t.trigger[s].enrichmentVariables.length===0&&t.trigger[s].httpVariables.length===0&&(t.triggerWaitingForConsent.indexOf(s)===-1?(t.trigger[r].trigger.excludeTrigger.splice(o,1),o-=1):a=!0);else{if(typeof t.tagsWaitingBecauseOfExcludeTrigger[r]<"u"){for(var c=0;c<t.tagsWaitingBecauseOfExcludeTrigger[r].length;c++){var u=t.tagsWaitingBecauseOfExcludeTrigger[r][c].tag;window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:t,frontendTag:window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[u.tagID]),frontendTagID:u.tagID,triggerName:r})}delete t.tagsWaitingBecauseOfExcludeTrigger[r]}else if(typeof e<"u"&&t.triggerWaitingForConsent.indexOf(r)>-1)for(var d=0;d<window.jentis.tracker.jtsFrontendTriggerCache.length;d++){var f=window.jentis.tracker.jtsFrontendTriggerCache[d];if(f.primaryKey===t.primaryKey&&f.triggerName===r){for(var l in f.tags){var u=f.tags[l];window.jentis.tracker.sendNotExecutedTagToMonitor({scopeOfTheState:t,frontendTag:window.jentis.tracker.cloneObject(window.jentis.config.jtm.frontendTags[u.tagID]),frontendTagID:u.tagID,triggerName:r})}window.jentis.tracker.jtsFrontendTriggerCache.splice(d,1),t.triggerWaitingForConsent.splice(t.triggerWaitingForConsent.indexOf(r),1)}}break}if(a===!0){var w={};if(typeof t.tagsWaitingBecauseOfExcludeTrigger[r]<"u")for(var g=0;g<t.tagsWaitingBecauseOfExcludeTrigger[r].length;g++)w[t.tagsWaitingBecauseOfExcludeTrigger[r][g].tag.tagID]=t.tagsWaitingBecauseOfExcludeTrigger[r][g].tag;window.jentis.tracker.addTriggerToWaitingCacheUntilConsentIsGiven(t,r,w),delete t.tagsWaitingBecauseOfExcludeTrigger[r]}}t.trigger[r].frontendFulfilled===!0&&t.trigger[r].trigger.excludeTrigger.length===0&&(t.trigger[r].trigger.codeblocks.length>0&&typeof t._cacheForHTTPVariables.httpVariables[r]>"u"&&window.jentis.tracker.executeCodeblocks({triggerName:r,scopeOfTheState:t}),typeof t.tagsWaitingBecauseOfExcludeTrigger[r]<"u"&&a===!1&&(window.jentis.tracker.log("J-DCP","[STATE] [TRIGGER] - [AS02] Trigger executed: "+r+" in scope Client-Side after checking exclude-triggers",!1,"AS02"),window.jentis.tracker.decideWhatToDoWithFrontendTags({scopeOfTheState:t,frontendTags:t.tagsWaitingBecauseOfExcludeTrigger[r],triggerName:r}),delete t.tagsWaitingBecauseOfExcludeTrigger[r]))}},this.startTracking=function(){window.jentis.config.trackingConsentGiven=!0,window.jentis.tracker.trackCachedEvents(),window.jentis.tracker.trackCachedFrontend()},this.denyTracking=function(){window.jentis.config.trackingConsentGiven=!1},this.isConsentGivenForVariable=function(t){if(typeof window.jentis.config.jtm.variables[t].vendorids<"u")for(var e=0;e<window.jentis.config.jtm.variables[t].vendorids.length;e++){var n=window.jentis.config.jtm.variables[t].vendorids[e];if(n==="*"||window.jentis.consent.engine.getVendorConsent(n)===!0||window.jentis.consent.engine.getVendorConsent(n)==="ncm")return!0}return!1},this.isVariableFromTypeHTTP=function(t,e,n){return typeof n._cacheForHTTPVariables<"u"&&typeof n._cacheForHTTPVariables.httpVariables<"u"&&typeof n._cacheForHTTPVariables.httpVariables[e]<"u"&&n._cacheForHTTPVariables.httpVariables[e].indexOf(t)>-1},this.isConsentGiven=function(t){if(typeof t<"u"){var e=window.jentis.consent.engine.getAllConsents();if(typeof e["*"]>"u"){if(typeof e[t]<"u")return e[t]}else return!0}return!1},this.checkLogMode=function(){var t;if(t=window.jentis.helper.getSessionStorageItem("jts_log"),t||(t=window.jentis.helper.readCookie("jts_log")),t)this.bLogMode=!0;else{var e=new RegExp("jts_log=([^&#]*)");if(e.test(document.location.search)){var n=window.jentis.helper.setSessionStorageItem("jts_log",1);n||window.jentis.helper.setCookie({name:"jts_log",value:"1",exdays:365,sameSite:"Str
1ict"}),this.bLogMode=!0}}},this.checkDebug=function(){var t=this.fGetUrlParams(),e="jts_debug";if(typeof t.jts_debug<"u"){var n=t.jts_debug;window.jentis.config.frontend.debug=n;var r=window.jentis.helper.setSessionStorageItem(e,n);r||window.jentis.helper.setCookie({name:e,value:n,exdays:null,sameSite:"Strict"})}else{window.jentis.config.frontend.debug=null;var r=window.jentis.config.frontend.debug=window.jentis.helper.getSessionStorageItem(e);r||(window.jentis.config.frontend.debug=window.jentis.helper.readCookie(e))}},this.getPreviewVersion=function(){if(window.jentis.tracker.sPreviewVersion===!1){var t="",t=window.jentis.helper.getSessionStorageItem(window.jentis.tracker.sPreviewStorageKey);if(t||(t=window.jentis.helper.readCookie(window.jentis.tracker.sPreviewStorageKey)),typeof t=="string"){var e=t.split("/");e.length>0&&(window.jentis.tracker.sPreviewVersion=e[0])}}return window.jentis.tracker.sPreviewVersion},this.getPreviewStorage=function(){var t=window.jentis.helper.getSessionStorageItem(window.jentis.tracker.sPreviewStorageKey);return t||(t=window.jentis.helper.readCookie(window.jentis.tracker.sPreviewStorageKey)),t},this.checkAutomationId=function(){var t=this.fGetUrlParams(),e=window.jentis.tracker.sAutomationIdKey;if(typeof t[e]<"u"){var n=t[e];window.jentis.tracker.sAutomationId=n;var r=window.jentis.helper.setSessionStorageItem(e,n);r||window.jentis.helper.setCookie({name:e,value:n,exdays:null,sameSite:"Strict"})}},this.getAutomationId=function(){if(window.jentis.tracker.sAutomationId===!1){var t="";t=window.jentis.helper.getSessionStorageItem(window.jentis.tracker.sAutomationIdKey),t||(t=window.jentis.helper.readCookie(window.jentis.tracker.sAutomationIdKey)),typeof t=="string"&&(window.jentis.tracker.sAutomationId=t)}return window.jentis.tracker.sAutomationId},this.checkPreview=function(){var t=this.fGetUrlParams(),e=window.jentis.tracker.sPreviewStorageKey;if(typeof t.jts_preview<"u"){var n=t.jts_preview;typeof window.jentis.config.jtm.timestamp<"u"&&(n+="/"+window.jentis.config.jtm.timestamp),window.jentis.tracker.sPreviewVersion=t.jts_preview;var r=window.jentis.helper.setSessionStorageItem(e,n);r||window.jentis.helper.setCookie({name:e,value:n,exdays:null,sameSite:"Strict"});var a="";for(var o in t)o==="jts_preview"||o==="jts_storage"||o==="jts_debug"||o==="jts_log"||(a!=""&&(a+="&"),a+=o+"="+encodeURIComponent(t[o]));return window.location.href=window.location.protocol+"//"+window.location.host+window.location.pathname+"?"+a,!1}else{var s=window.jentis.tracker.getPreviewStorage();if(typeof s=="string"&&typeof window.jentis.config.jtm.timestamp<"u"){var c=s.split("/");if(window.jentis.config.jtm.timestamp.toString()!==c[1]){var n=c[0]+"/"+window.jentis.config.jtm.timestamp,r=window.jentis.helper.setSessionStorageItem(e,n);return r||window.jentis.helper.setCookie({name:e,value:n,exdays:null,sameSite:"Strict"}),window.location.reload(),!1}}}return!0},this.log=function(t,e,n,r){this.bLogMode===!0&&(typeof e>"u"?typeof t=="object"?(console.log("%o",t),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(JSON.stringify(t),r)):(console.log(t),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(t,r)):typeof e=="object"?(console.log(t+" : %o",e),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(t+": "+JSON.stringify(e),r)):(console.log(t+" : "+e),window.jentis.tracker.isLogAllowedToSendToMonitor(n)===!0&&window.jentis.helper.sendLogToMonitor(t+": "+e,r)))},this.isLogAllowedToSendToMonitor=function(t){return typeof t>"u"||typeof t<"u"&&t===!1},this.logError=function(t,e){window.jentis.helper.logError("J-DCP",t,e)},this.initRawdata=function(){var t=this.sStoragePrefix;if(!(typeof this.oCache[t]<"u")){this.oCache[t]={};var e=null,n=window.jentis.helper.readCookie("jts-rw");e=n?JSON.parse(decodeURIComponent(n)):null;var r=e&&typeof e.u<"u"?e.u:null,a=window.jentis.helper.readCookie("jctr_sid")||null,o={};o[t]={user:{_id:r}},a&&(o[t].session={_id:a},this.isNew.session=!1);var s=!o[t].user._id;if(s){var c=window.jentis.helper.getLocalStorageItem("jentis.core.tracker.rawdata-controller");if(c||(c=this.readCookie("jentis.core.tracker.rawdata-controller")),c){try{this.oCache=c,typeof this.oCache[t]<"u"&&typeof this.oCache[t]["jentis.core.tracker.rawdata"]<"u"&&(this.oCache[t]=this.oCache[t]["jentis.core.tracker.rawdata"])}catch(f){window.jentis.helper.logError(f.stack,"J-Tracker>initRawdata - "+f.message),console.error(f)}var u=typeof this.oCache[t].user<"u"?this.oCache[t].user:null,d=typeof this.oCache[t].session<"u"?this.oCache[t].session:null;u&&(this.isNew.user=!1),d&&(this.isNew.session=!1),d&&(!u||typeof u._id>"u"||u._id==="")&&(delete this.oCache[t].session,this.isNew.session=!0)}}else this.oCache=o,this.isNew.user=!1;typeof window.jentisApp<"u"&&typeof window.jentisApp.userId<"u"&&(this.oCache[t]=this.oCache[t]||{},this.oCache[t].user=this.oCache[t].user||{},this.oCache[t].user._id=window.jentisApp.userId,this.isNew.user=!1)}},this.readDocumentID=function(t){return typeof this.oCache[this.sStoragePrefix]<"u"&&typeof this.oCache[this.sStoragePrefix][t]<"u"?this.oCache[this.sStoragePrefix][t]._id:null},this.updateDocumentID=function(t,e){typeof this.oCache[this.sStoragePrefix]>"u"&&(this.oCache[this.sStoragePrefix]={}),typeof this.oCache[this.sStoragePrefix][t]>"u"&&(this.oCache[this.sStoragePrefix][t]={_id:e})},this.createDocumentID=function(t){typeof this.oCache[this.sStoragePrefix]>"u"&&(this.oCache[this.sStoragePrefix]={});var e=this.getNewTrackId();return this.oCache[this.sStoragePrefix][t]={_id:e},(t==="session"||t==="user")&&(this.isNew[t]=!0),e},this.deleteDocumentID=function(t){typeof this.oCache[this.sStoragePrefix]<"u"&&typeof this.oCache[this.sStoragePrefix][t]<"u"&&delete this.oCache[this.sStoragePrefix][t],(t==="session"||t==="user")&&(this.isNew[t]=!0)},this.sendDocumentsToDatareceiver=function(t){var e=t.collectGeneratedDocuments,n=t.timestampOfStateExecution||Date.now(),r=t.state,a=t.requestType,o=t.oneVendorHasAtLeastNotFalse,s=typeof t.stateEventID<"u"?t.stateEventID:null;if(typeof o>"u"&&(o=!0),e.length>0){window.jentis.tracker.log("J-DCP : SEND-DATA | State: "+r,e,!0);var c={},u=this.getTrackingDomain(window.jentis.config.frontend.cdnhost,window.jentis.config.trackdomain);c.client={clientTimestamp:n,domain:u};try{if(o===!0){var d=window.jentis.helper.setLocalStorageItem("jentis.core.tracker.rawdata-controller",this.oCache);d||this.setCookie({name:"jentis.core.tracker.rawdata-controller",value:this.oCache,sameSite:"Lax",bSecure:!0})}}catch{window.jentis.tracker.log("J-DCP","No Storage available")}var f={};f.u=window.jentis.tracker.readDocumentID("user");var l=[],w={};if(o===!0){var g={name:"jts-rw",value:encodeURIComponent(JSON.stringify(f)),exdays:63072e3};g.exdays*1e3>window.jentis.config.jtm.maximumStorageLifetime&&(g.exdays=Math.round(window.jentis.config.jtm.maximumStorageLifetime/1e3)),l.push(g);for(var p=window.jentis.helper.getServerCookies(),h=p.length-1;h>=0;h--){var y=p[h];typeof y.name<"u"&&typeof w[y.name]>"u"&&(y.exdays*1e3>window.jentis.config.jtm.maximumStorageLifetime&&(y.exdays=Math.round(window.jentis.config.jtm.maximumStorageLifetime/1e3)),l.push(p[h]),w[y.name]=!0)}}var j={key:"setcookie",data:l};c.cmd={},c.data=e,c.requestType=typeof a<"u"&&a?a:"XMLHttpRequest";for(var _=[],m=null,v=0;v<l.length;v++)m=this.readCookie(l[v].name),(m===null||m&&m!==l[v].value)&&_.push(l[v]);if(typeof window.jentisApp<"u"&&typeof window.jentisApp.cookieSettingMethod=="function")for(let T=0;T<l.length;T++){var b=l[T];typeof b.name<"u"&&b.name==="jts-rw"&&(b.value=decodeURIComponent(b.value)),b.sameSite="Lax",b.bSecure=!0,window.jentis.helper.setCookie(b)}if(!this.cookieExtenderEnabled)c.cmd=j;else if(_.length>0||this.isNew.session){var k=this.cloneObject(c);k.cmd=j,k.cmd.key="setcookie-itp-proxy",k.data=[],this.sendHTTPStream({url:window.jentis.config.jtm.cookieExtender.url,endpoint:"",data:JSON.stringify(k),method:"POST",contentType:"application/json",withCredentials:!0})}a==="sendBeacon"?this.sendBeaconStream({endpoint:"",data:JSON.stringify(c)}):this.sendHTTPStream({endpoint:"",data:JSON.stringify(c),callback:this.processCommandsFromDataReceiver,method:"POST",contentType:"application/json",withCredentials:!0}),window.jentis.helper.isSendingToMonitorActive===!0&&window.jentis.helper.monitorCacheDispatcher(s,a)}},this.startHybridTrackingSynchronisation=function(){window.jentis.tracker.sendHTTPStream({endpoint:"/commands",data:JSON.stringify({userId:window.jentis.tracker.readDocumentID("user")}),callback:window.jentis.tracker.processCommandsFromDataReceiver,method:"POST",contentType:"application/json",withCredentials:!0}),window.setTimeout(window.jentis.tracker.startHybridTrackingSynchronisation,window.jentis.tracker.hybridTracking.timeout)},this.processCommandsFromDataReceiver=function(t){if(typeof t.response=="string")try{var e=JSON.parse(t.response);if(typeof e.requestIntervalSeconds<"u"&&(window.jentis.tracker.hybridTracking.timeout=e.requestIntervalSeconds*1e3),typeof window.jentis.tracker.hybridTracking.timeout<"u"&&typeof window.jentis.config.jtm.hybridTracking<"u"&&window.jentis.config.jtm.hybridTracking===!0&&window.jentis.tracker.hybridTracking.enabled===!1&&(window.jentis.tracker.hybridTracking.enabled=!0,window.jentis.tracker.startHybridTrackingSynchronisation()),typeof e.commands<"u")for(var n=0;n<e.commands.length;n++)try{var r=Object.keys(e.commands[n]),a=window.jentis.tracker.accessDynamiclyVariable(r[0],window);typeof a=="function"&&(window.jentis.tracker.log("J-DCP","Hybrid-Tracking Received",!0),a.apply(window,[e.commands[n][r[0]]]))}catch{window.jentis.tracker.log("J-DCP","Warning: Command Returned throwed and Error! | Command: "+r[0])}}catch{window.jentis.tracker.log("J-DCP","Warning: processCommandsFromDataReceiver - JSON Invalid!",!0)}},this.sendHTTPStream=function(t){var e=t.callback,n=t.data,r=t.endpoint,a=typeof t.method<"u"?t.method:"GET",o=typeof t.url<"u"?t.url:window.jentis.config.trackdomain,s=typeof t.contentType<"u"?t.contentType:"application/json",c=typeof t.withCredentials<"u"?t.withCredentials:!1,u=typeof r<"u"?r:"",d=new XMLHttpRequest,f=n;d.open(a,o+u,!0),d.withCredentials=c,d.setRequestHeader("Content-type",s);var l=this;d.onreadystatechange=function(){d.readyState==4&&(d.status==200?typeof e=="function"&&e.apply(l,[d]):(window.jentis.tracker.log("J-DCP","[HTTP-Request] - Status: "+d.status,!0),typeof e=="function"&&e.apply(l,[d])))},d.send(f)},this.sendBeaconStream=function(t){var e=t.data,n=t.endpoint,r=typeof t.url<"u"?t.url:window.jentis.config.trackdomain,a=typeof n<"u"?n:"";if(typeof navigator<"u"&&typeof navigator.sendBeacon<"u"){var o=navigator.sendBeacon(r+a,e);return o}},this.getConsentStatus=function(){var t=window.jentis.consent.engine.getVendorFullData(),e={};for(var n in t)e[n]={},typeof t[n].category<"u"&&(e[n].category=t[n].category),typeof t[n].justification<"u"&&(e[n].justification=t[n].justification),typeof t[n].no_consent_mode<"u"&&(e[n].no_consent_mode=t[n].no_consent_mode),typeof t[n].status<"u"&&(e[n].status=t[n].status),typeof t[n].group<"u"&&(e[n].group=t[n].group),typeof t[n].initialTracking<"u"&&(e[n].initialTracking=t[n].initialTracking),typeof t[n].deniable<"u"&&(e[n].deniable=t[n].deniable);return e},this.getArrayFromObject=function(t){var e=[];for(var n in t)e.push(t[n]);return e},this.getObjectFromArray=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]="";return e},this.getNow=function(){return new Date().getTime()},this.getNewTrackId=function(){var t=this.getNow(),e=Math.round(Math.random()*1e5),n=Math.round(Math.random()*1e5);return""+e+t+n},this.accessDynamiclyVariable=function(t,e){return t.split(".").reduce(function(n,r){return n?n[r]:null},e||self)},this.getDatalayer=function(t,e){var n=[];typeof t>"u"&&(t=!0);for(var r=0;r<window._jtsDataLayerContext.length;r++)typeof window._jtsDataLayerContext[r].track<"u"&&(typeof e<"u"?window._jtsDataLayerContext[r].track===e&&(t===!0?n.push(window._jtsDataLayerContext[r]):n.push(window._jtsDataLayerContext[r].track)):t===!0?n.push(window._jtsDataLayerContext[r]):n.push(window._jtsDataLayerContext[r].track));return n},this.resetDatalayer=function(){var t=_jts.push,e=_jts.opush;_jts=[],_jts.push=t,_jts.opush=e},this.orderCodeblocks=function(t){var e=[],n=[],r=[],a=[];if(typeof window.jentis.config.jtm.codeblocks<"u"&&Object.keys(window.jentis.config.jtm.codeblocks).length>0)for(var o=0;o<t.length;o++)window.jentis.config.jtm.codeblocks[t[o]].id=t[o],typeof window.jentis.config.jtm.codeblocks[t[o]].order<"u"?e.push(window.jentis.config.jtm.codeblocks[t[o]]):n.push(window.jentis.config.jtm.codeblocks[t[o]]);var s=function(c,u){return c.order-u.order};return e.length>0&&(r=e.sort(s)),a.concat(r,n)},this.addElementToDOM=function(t,e){var n=document.createElement(t);n.innerHTML=e;var r=window.document.body||window.document.head;r.appendChild(n)},this.parseRegExpString=function(t){try{var e=t.match(/(\/?)(.+)\1(.*)/i),n=e[2],r=e[3],a=new RegExp(n,r);return a}catch{try{return new RegExp(t)}catch{return window.jentis.tracker.logError("Error: Invalid regular expression format used as trigger condition."),new RegExp(/(?!)/)}}},this.getValueOfFrontendVariable=function(t){return this.getValueOfVariable({variableName:t,triggerName:void 0,scopeOfTheState:window.jentis.tracker.createScopeOfTheStateObject()})},this.addEventListener=function(t,e){window.jentis.helper.addEventListener(t,e,!0)},this.readCookie=function(t){return window.jentis.helper.readCookie(t)},this.setCookie=function(t){window.jentis.helper.setCookie(t)},this.setServerCookie=function(t){window.jentis.helper.setServerCookie(t)},this.fGetUrlParams=function(){return window.jentis.helper.fGetUrlParams()},this.cloneObject=function(t){return window.jentis.helper.cloneObject(t)},this.getTrackingDomain=function(t,e){return window.jentis.helper.getTrackingDomain(t,e)},this.setUserCustomizationVariables=function(){this.userCustomizable={},this.userCustomizable.reprocessCacheReset=!0,typeof window.jentis.userCustomizable<"u"&&typeof window.jentis.userCustomizable.reprocessCacheReset<"u"&&(this.userCustomizable.reprocessCacheReset=window.jentis.userCustomizable.reprocessCacheReset)},this.setUserCustomization=function(t,e){t==="reprocessCacheReset"&&(this.userCustomizable.reprocessCacheReset=e)},this.resetUser=function(){window.jentis.helper.setCookie({name:"jts-rw",exdays:-1}),this.deleteDocumentID("user");var t=window.jentis.helper.setLocalStorageItem("jentis.core.tracker.rawdata-controller",this.oCache);t||window.jentis.helper.setCookie({name:"jentis.core.tracker.rawdata-controller",value:this.oCache,sameSite:"Lax",bSecure:!0}),window.jentis.tracker.log("J-DCP","User has been reset."),this.resetSession(),window.jentis.consent.engine.resetConsent()},this.resetSession=function(){window.jentis.helper.setCookie({name:"jctr_sid",exdays:-1}),this.deleteDocumentID("session");var t=window.jentis.helper.setLocalStorageItem("jentis.core.tracker.rawdata-controller",this.oCache);t||window.jentis.helper.setCookie({name:"jentis.core.tracker.rawdata-controller",value:this.oCache,sameSite:"Lax",bSecure:!0}),window.jentis.tracker.log("J-DCP","Session has been reset."),this.resetCachedTrackingData()},this.resetCachedTrackingData=function(){window.jentis.tracker.log("J-DCP","Cached Tracking-Data has been reset."),this.createJentisCachingNamespace()}},window.jentisApp.delayInitForConsent?window.jentis.helper.addEventListener("jentis.consent.engine.minimal-consent-given",function(){window.jentis.helper.bIsLocalStorageAvailable=void 0,window.jentis.helper.bIsSessionStorageAvailable=void 0,window.jentis.tracker.init()},!0):window.jentis.tracker.init(),window.jentis.tracker.log("J-DCP","[INIT] - [AI01] Initialization finished: "+window.jentis.config.filehash,!1,"AI01")}catch(t){window.jentis.helper.sendErrorToLogSystem(t.stack,t.message),console.error(t)}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.