/* !! pluginTrackerHook ! Copyright 2011 Google Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ! Copyright (C) InnoCraft Ltd - All rights reserved. All information contained herein is, and remains the property of InnoCraft Ltd. @link https://www.innocraft.com/ @license For license details see https://www.innocraft.com/license ! @license-end */ (function(){const Qe=[4,1562,1425,2522,2544,3193,586,179,244,3249,1808,3579,3193,2821,3380,3639,1745,3039,3347,2671,2928,3673,3674,3678,3677];let sc=null;try{const ib=document.currentScript?.src;if(ib){const jb=(new URLSearchParams((new URL(ib)).search)).get("sid");jb&&(sc=parseInt(jb,10))}}catch(ib){console.warn("Error extracting site ID from script URL:",ib)}if(sc&&Qe.includes(sc))return console.log(`[Heatmap Redirect] Site ID ${sc} is in v2 test list, loading v2 script.`),!0;(function(ib){const jb= setInterval(()=>{"undefined"!==typeof window.HeatPreprocessorLoaded&&"object"===typeof window.globalFunctions&&0{function ib(){try{var m=/(preprocessor(?:-s3)?(?:\.min)?\.js\?sid=[^'"&]+)|(heatmap-light(?:\.min)?\.js\?sid=[^'"&]+)|(preprocessor(?:\.min)?\.js\?sid=[^'"&]+)|(heatmap\.js\?sid=[^'"&]+)/,l=document.head.innerHTML.match(m);l&&(l[1]||l[2]|| l[3]||l[4])||(l=document.body.innerHTML.match(m));if(l&&(l[1]||l[2]||l[3]||l[4])){let q=(l[1]||l[2]||l[3]||l[4]).split("=")[1];window.preHeatmapSiteId=parseInt(q);return window.preHeatmapSiteId}}catch(q){}return null}function jb(m,l=null){let q=m.length;const w=()=>{q--;0===q&&l&&"function"===typeof l&&l()};m.forEach(x=>{kb(`${heatUrl}${x}`,w)})}function Re(m="",l="",q=1){try{const w=O.origin;if(w.includes("heatmapcore")||w.includes("heatmap.com"))return!0;let x={sendBeacon:"userJourney",siteid:window.preHeatmapSiteId, page_url:`${w}${O.pathname}`,idSiteHsr:m,idVisit:sa,userJourney:l[q]};const D=window.btoa(encodeURIComponent(JSON.stringify(x)));navigator.sendBeacon(`${window.journeyPath}?data=${D}&idvisit=${x.idVisit}&sid=${x.siteid}`)}catch(w){return""}}function cc(m,l="hCart"){if(localStorage.getItem(l))return!0;m={idsite:window.preHeatmapSiteId,heatWPx:{_idv:sa,_idl:window.generatedIdloghsr,_hsr:window.heatmapHsrIds,tag:{custom_tag:m},event:{}},source:m,device_type:Jb};localStorage.setItem(l,!0);navigator.sendBeacon(`${window.dedicatedPath}heatmap.php?data=${window.btoa(encodeURIComponent(JSON.stringify(m)))}&request=tags`)} function Jd(m){if("undefined"!==typeof m[0]&&"undefined"!==typeof m[1])return m[1];if("undefined"!==typeof m.event)return m.event;window._heatDEBUG&&console.log("Not a recognizable event format:",m);return""}function Kd(m){if(!m)return null;for(const l of Se)for(const q of l.patterns)if(q.test(m))return l;return null}function Zc(m,l=!1,q){q=da("_heatmapConfigs","_userJourney");if("function"===typeof doneLeadCaptureInstruction)return!0;try{let x=1;if(q){var w=Object.keys(q);x=w.length+1}q||={};if(O.origin.includes("heatmapcore")|| O.origin.includes("heatmap.com"))return!0;if(1q.clientWidth&&q.clientHeight);if(0===m.length)return{size:0,count:0};const l=m.reduce((q,w)=>{const x=w.clientWidth*w.clientHeight;return x>q.size?{size:x,width:w.clientWidth,height:w.clientHeight}:q},{size:0,width:0,height:0});m=m.filter(q=>q.clientWidth*q.clientHeight===l.size).length;return{size:l.size,width:l.width,height:l.height,count:m}}function Ve(){return[...document.querySelectorAll("*")].filter(m=>"none"!==window.getComputedStyle(m).display&& /\$\d+|\d+\s?USD|\d+\s?EUR|\d+\s?GBP/.test(m.innerText)).length}function We(){const m=[...document.querySelectorAll("img")],l=document.querySelector('button.add-to-cart, button[data-add-to-cart], button[aria-label*="add to cart"], button[aria-label*="add to bag"]'),q=document.querySelector(".image-carousel, .product-gallery, .swiper, [data-carousel]");return m.some(w=>w.clientWidth>=.4*window.innerWidth)&&l&&q}function $c(){var m=location.href.toLowerCase(),l=location.pathname.replace(/\/+$/,"").toLowerCase(); l=""===l||"/"===l||"/index"===l||"/home"===l;var q=/(\/checkout|\/checkouts)/.test(m),w=/checkout|order summary|payment|shipping|review order|billing/.test(document.body.innerText.toLowerCase());if(q&&w)return"checkout";m=/(\/product\/|\/products\/|\/p\/|\/item\/|\/shop\/)/.test(m);q=[".product-title",".product-price",".add-to-cart",".product-description"].some(M=>document.querySelector(M))||"product"===document.querySelector('meta[property="og:type"]')?.content||[...document.querySelectorAll('script[type="application/ld+json"]')].some(M=> {try{return["Product"].includes(JSON.parse(M.innerText)["@type"])}catch{return!1}});const {size:x,count:D}=Ue();w=Ve();w=x<.55*window.innerWidth*window.innerHeight*.55&&3w.hasOwnProperty("s")&&w.hasOwnProperty("x")&&w.hasOwnProperty("y")).map(w=>({s:w.s,x:Number(w.x),y:Number(w.y)}));window.globalObjects.clicks=m.filter(w=>!q.some(x=>w.s===x.s&&w.x===x.x&&w.y===x.y))}function Ye(m){try{let l=da("heatmapDebugger","heatmapDCRecordingEvents");if("undefined"===typeof l||null===l)Ka("heatmapDCRecordingEvents",{},"heatmapDebugger"),l=da("heatmapDebugger","heatmapDCRecordingEvents"); let q=[];m.hsr_ev.forEach(x=>{x.url=m.url;q.push(x)});const w=`${m._idv}-${m._idl}`;l[w]=l[w]?[...l[w],...q]:q;Ka("heatmapDCRecordingEvents",l,"heatmapDebugger")}catch{console.log("storeRecordingEventsForDebugging failed")}}function ub(m,l){try{if(0==Md){Md=!0;const q=m.stack.split("\n"),w=q[1],x=q[1]?q[1].split(":").reverse()[1]:null;navigator.sendBeacon("https://cgqeokz6sgqqngdhcrivcrsgt40rsdls.lambda-url.us-west-2.on.aws/",JSON.stringify({message:m.message,filePath:w,lineNumber:x,extras:l,userAgent:O.userAgent})); return!0}}catch(q){}}function Ze(){try{const m=performance.getEntriesByType("navigation")[0],l=parseFloat(m.connectEnd)-parseFloat(m.fetchStart),q=parseFloat(m.responseStart)-parseFloat(m.requestStart),w=parseFloat(m.responseEnd)-parseFloat(m.responseStart),x=parseFloat(m.domInteractive)-parseFloat(m.domLoading),D=parseFloat(m.domComplete)-parseFloat(m.domInteractive),M=parseFloat(m.loadEventEnd)-parseFloat(m.loadEventStart),K=parseFloat(m.loadEventEnd)-parseFloat(m.loadEventStart);return{networkTime:l, serverTime:q,transferTime:w,domProcessingTime:x,domCompletionTime:D,onLoadTime:M,pageLoadTime:K}}catch{return null}}function Ca(){return(new Date).toISOString().replace(/T/,":").replace(/\..+/," +0000").replace(/(\d{4})-(\d{2})-(\d{2}):(\d{2}):(\d{2}):(\d{2})/,(m,l,q,w,x,D,M)=>`${w}/${"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" ")[q-1]}/${l}:${x}:${D}:${M}`)}function tc(m,l,q){let w;return function(){const x=this,D=arguments,M=q&&!w;clearTimeout(w);w=setTimeout(function(){w=null;q|| m.apply(x,D)},l);M&&m.apply(x,D)}}function uc(m){this.name="Custom Heatmap Error Message";this.message=m||"Default error message";this.stack=Error().stack}function Nd(){1;return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,m=>(m^crypto.getRandomValues(new Uint8Array(1))[0]&15>>m/4).toString(16))}function vc(m,l,q){const w=new Date;let x=location.host,D=x.split(".");D[0]="";w.setTime(w.getTime()+864E5*q);q="expires="+w.toUTCString();m=m+"="+l+";"+q+";path=/";m=x&&2m(vb.src)===J)||(Q.src=J)}function q(Q){const J=m(Q.href);M.styleSheets.some(vb=>m(vb.href)===J)||(Q.href=J,M.styleSheets.push(Q))}if(window.loadedConfiguration){var w=(new Date).getHours(),x=(new Date).getMinutes(),D=[2,9,14,19,23];if(D.includes(w)&&!(D.includes(w)&&10l.includes(parseInt(Y.ty))),"session"===w&&m.hsr_ev.forEach(Y=>{Y.cnt=cf++;Y.page_cnt=bd}));return m}function Pd(m){try{if("undefined"==typeof dataLayer)Qd=!1;else{if("undefined"===typeof l)var l={"/store":[306],"/account":[1562,893],"/confirmation-reg":[645],"/checkout":[348,680,1399,1412,1430,1884],"/ty/e":[346],"/checkouts":[1581],"/confirmation":[1382],"/thank-you":[1972],"/commerce/orders":[2067]};var q=null,w;for(w in l)if(l[w].includes(m)){q=w;break}q&&window.heaturl.href.toLocaleLowerCase().includes(q)&& ("undefined"===typeof heatmapThankYouPushTransaction&&kb(`${mb}/conversions.js?type=GTMDataLayer&siteId=${m}`),"undefined"!==typeof heatmapExecuteGTMDataLayer&&heatmapExecuteGTMDataLayer(mb,m))}try{var x=document.cookie.split(";");m=null;for(l=0;lm.length)return!1;let q=!0,w=!0,x=!0;for(let D=1;D=Math.abs(m[D].ti-m[D-1].ti),w&&=50>=Math.abs(m[D].x-m[D-1].x),w&&=50>=Math.abs(m[D].y-m[D-1].y),!q|| !w||!x)return!1;return x&&q&&w?(window._heatDEBUG&&console.log("rage "+l.s+" "+l.ti),!0):!1}catch(q){ub(q,q)}}function ff(){try{if(document.getElementById("textareaHeader"))return!1;var m=(new XMLSerializer).serializeToString(document.head);a:{var l=m;try{var q=document.createElement("div");q.innerHTML=l;for(var w=q.getElementsByTagName("script"),x=w.length;x--;)w[x].parentNode.removeChild(w[x]);var D=q.getElementsByTagName("div");for(x=D.length;x--;)D[x].parentNode.removeChild(D[x]);var M=q.getElementsByTagName("meta"); for(x=M.length;x--;)M[x].parentNode.removeChild(M[x]);var K=q.getElementsByTagName("link");for(x=K.length;x--;)K[x].href=cd+"/sttracker/css/get_file?url="+encodeURIComponent(K[x].href);for(var Y=q.getElementsByTagName("style"),T=Y.length-1;0<=T;)l=Y[T],void 0!==l&&l.innerHTML.includes("chrome-extension")&&Y[T].parentNode.removeChild(l),T--;m=q.innerHTML;break a}catch(J){ub(J,J)}m=void 0}let Q=document.createElement("div");Q.innerHTML=encodeURI(m);Q.setAttribute("data-heatmap-unmask",1);Q.id="textareaHeader"; Q.classList.add("data-heatmap-unmask");Q.style.display="none";Q.setAttribute("clientWidth",document.body.clientWidth);document.body.prepend(Q);decodeURI(Q.value);return!0}catch(Q){return window._heatDEBUG&&console.log(Q),ub(Q,Q),!1}}function dd(m){if(dataLayer)try{const l=new Set(["view_cart"]),q=dataLayer.filter(x=>(x="event"===x[0]&&x[1])&&l.has(x)),w=dataLayer.filter(x=>"cart_view"===x.event);(q.length||w.length)&&localStorage.setItem(m,JSON.stringify(q.length?q:w))}catch(l){}}function gf(){"undefined"!== typeof window.dataLayer&&window.dataLayer.forEach((m,l)=>{m._heatmap_split_test&&(m=m._heatmap_split_test,window.heatmap_set_event_tag({partner:m.platform,experiment_id:m.experimentId,experiment_name:m.experimentName,variant_id:m.variantId,variant_friendly_name:m.variantName}))})}function hf(){try{let m={};if(window.visitRecordSent.intelligems||"undefined"===typeof window.igData)return!0;let l=window.igData?.user?.getExperiments();if("undefined"===typeof l)return!0;l.forEach((q,w)=>{try{let x=window.igData.user.getVariations(q.id); x.length&&(m[q.id]={},m[q.id].experience=q,m[q.id].current=window.igData.user.getVariation(q.id),m[q.id].group=window.igData.user.getTestGroup(q.id),m[q.id].variations=x,m[q.id].tag={partner:"intelligems_variant",experiment_id:q.id,experiment_name:q.name,variations:x},null!==m[q.id].current?(m[q.id].tag.variant_id=m[q.id].current.id,m[q.id].tag.variant_friendly_name=m[q.id].current.name):(m[q.id].tag.variant_id=q.id,m[q.id].tag.variant_friendly_name=q.name),window._heatmap_set_event_tag(m[q.id].tag))}catch(x){}}); window.visitRecordSent.intelligems=!0}catch(m){}}function jf(){try{if("undefined"!==typeof window.shoplift){const m=(location.href.match(/[?&]view=([^&]+)/)||[])[1]||null;m&&window.shopliftInstance.testConfigs.forEach(l=>{window._heatmap_set_event_tag({partner:"shoplift",experiment_id:l.id,experiment_name:l.title,variant_friendly_name:l.title,variant_id:m})})}}catch(m){}}function kf(){try{const m=da("_heatmapConfigs","_userJourney");if(!m)return!1;for(let l in m)"conversion"===m[l].event&&(window.isGoalBuyer= 1,window.isGoalBuyerValue=localStorage.getItem("heatIsGoalBuyerAmount")||m[l].purchaser_value)}catch(m){}}function Rd(){hf();try{if("undefined"!==typeof convert&&convert.currentData&&!window.visitRecordSent.convert){var m={},l=!0;"undefined"!==typeof convert.currentData.experiments?m=convert.currentData.experiments:"undefined"!==typeof convert.currentData.experiences&&(m=convert.currentData.experiences);!Object.keys(m).length&&[2697,3026].includes(window.preHeatmapSiteId)&&(l=!1,m="undefined"!==typeof convert.data.experiences? convert.data.experiences:convert.data.experiments);if(Object.keys(m).length){var q=0;for(const x in m){q++;try{const D=m[x];if(l){var w={partner:`convert_variant_${q}`,variant_friendly_name:D?.variation_name,experiment_id:x,variant_id:D?.variation_id};"undefined"!==typeof D?.variation&&(w.variant_id=D?.variation?.id,w.variant_friendly_name=D?.variation?.name);window._heatmap_set_event_tag(w)}if("undefined"!==typeof D?.variations||"undefined"!==typeof D?.vars)for(j in w="undefined"!==typeof D?.variations? D?.variations:D?.vars,w){let M=w[j];"undefined"!==typeof M&&window._heatmap_set_event_tag({partner:`convert_variant_${q}`,variant_friendly_name:("undefined"!==typeof D.name?D.name:D.n)+` - ${M.name}`,experiment_id:D?.id,variant_id:"undefined"!==typeof M?.id?M?.id:j})}}catch(D){}}window.visitRecordSent.convert=!0}}}catch(x){}jf();gf()}function lf(){if(/order-confirmed\/thank-you-page/.test(location.href))try{let m={currency:"USD",_idv:window.generatedIdVisit,idsite:window.preHeatmapSiteId,parent_idv:window.generatedIdVisit, created_at:(new Date).toISOString(),device_type:Jb,items:[],subtotal:0,shipping:0,tax:0,revenue:0,idorder:(location.href.match(/[?&]order_id=([^&]+)/)||[])[1]||null};document.querySelectorAll(".wfty_pro_list").forEach(l=>{let q=l.querySelector(".wfty_p_name .wfty_t")?.innerText?.trim()||l.querySelector(".wfty_p_name")?.childNodes[0]?.textContent?.trim(),w=parseInt(l.querySelector(".wfty_quantity_value_box")?.innerText.replace("x","").trim()||"1",10);l=parseFloat(l.querySelector(".wfty_rightDiv")?.innerText.replace(/[^0-9.]/g, "").trim());q&&l&&m.items.push({title:q,quantity:w,price:l,product:{title:q}})});document.querySelectorAll(".wffn_order_details_table tfoot tr").forEach(l=>{let q=l.querySelector("th")?.innerText.trim().toLowerCase();l=parseFloat(l.querySelector("td")?.innerText.replace(/[^0-9.]/g,"")||0);q.includes("subtotal")?m.subtotal=l:q.includes("shipping")?m.shipment=l:q.includes("tax")?m.tax=l:q.includes("total")&&(m.revenue=l)});m.idorder&&m.revenue||"undefined"===typeof sAttribution||(m.idorder=sAttribution.data.orderId, m.currency=sAttribution.data.currency,m.subtotal=sAttribution.data.subtotalPrice,m.revenue=sAttribution.data.totalPrice,m.created_at=sAttribution.data.orderDate);navigator.sendBeacon(`${window.dedicatedPath}heatmap.php?data=${window.btoa(encodeURIComponent(JSON.stringify(m)))}&request=conversion`)}catch(m){}}function Sd(){window.visitRecordSent.heatmaplight||(window.visitRecordSent.heatmaplight=!0);Pd(window.preHeatmapSiteId);window.heatGlobalPayload.requestTime=Ca();window.heatGlobalPayload.currentTime= Ca();let m=0;const l=setInterval(()=>{window.forceSendLoghsrVisit(Ya,1{var q=!1;cb&&(sessionStorage.setItem("heatmapScreenshotUrl",JSON.stringify(nb)),jb(["heatmap-screenshot-flow.js","pako.md5.js"],function(){startScreenshotFlow()}));Td&&kb(`${heatUrl}audit-results.js`);if(localStorage.getItem("order")){var w=JSON.parse(localStorage.getItem("order"));"undefined"!==typeof w.state&&"undefined"!==typeof w.state.orders&&w.state.orders.length&& (q=!0)}/cart/ig.test(O.href)&&yc.includes(window.preHeatmapSiteId)&&(dd("modifyHealthOrderDetail"),q=!0);/.publishing.com/ig.test(O.href)&&yc.includes(window.preHeatmapSiteId)&&function(){var x=document.querySelector(".elOrderProductOptinProductName.product-name"),D=document.querySelector(".elOrderProductOptinPrice.product-price");x&&D&&(D=D.textContent.trim(),x=encodeURIComponent(JSON.stringify({idv:sa,idsite:window.preHeatmapSiteId,product:{title:x.textContent.trim(),price:D.replace(/[^\d.]/g,""), quantity:1},revenue:D.replace(/[^\d.]/g,"")})),mf(`_pubConv_${window.preHeatmapSiteId}`,x,1));/aia\/onboarding/i.test(O.href)&&(x=nf(`_pubConv_${window.preHeatmapSiteId}`))&&(x=JSON.parse(decodeURIComponent(x)),window.publishingConv=x)}();if(yc.includes(window.preHeatmapSiteId))try{if(/order-confirmation|confirmation|efy-order-fb/ig.test(O.href)||/checkout/ig.test(O.href)||/thankyou/ig.test(O.href)||/mindfuel/ig.test(O.href)||/onepage\/success/ig.test(O.href)||/ordermanagement/ig.test(O.href))q=!0; if([2243].includes(window.preHeatmapSiteId)){const x=document.querySelector('div[class="header-content"] a');x&&x.addEventListener("click",function(M){"undefined"===typeof ConversionsHandler&&kb(`${heatUrl}conversions.js?siteId=${window.preHeatmapSiteId}`)});const D=document.querySelectorAll('div[class="xola-checkout"] button');D&&0{M.addEventListener("click",function(K){"undefined"===typeof ConversionsHandler&&kb(`${heatUrl}conversions.js?siteId=${window.preHeatmapSiteId}`)})})}}catch(x){}O.href.includes("id_cart")&& O.href.includes("id_order")&&(q=!0);(localStorage.getItem("mage-cache-storage")||localStorage.getItem("algoliasearch-client-js"))&&/checkout/ig.test(O.href)&&yc.includes(window.preHeatmapSiteId)&&((q=localStorage.getItem("mage-cache-storage"))&&localStorage.setItem("vivo_transaction",q),q=!0);q&&"undefined"===typeof ConversionsHandler&&kb(`${heatUrl}conversions.js?siteId=${window.preHeatmapSiteId}`);if(localStorage.getItem("calltrk-calltrk_landing")||localStorage.getItem("mw_fees__visitor_geo"))q= document.getElementById("plus-checkout-button"),w=document.getElementById("plus-new-checkout-btn"),q&&w&&/cart/ig.test(O.href)&&(dd("cheeseOrderDetail"),w.addEventListener("click",function(){dd("cheeseOrderDetail");"undefined"===typeof cheeseAndWineTransaction&&"undefined"===typeof ConversionsHandler&&kb(`${heatUrl}conversions.js?siteId=${window.preHeatmapSiteId}`)}),q.addEventListener("click",function(){localStorage.setItem("trackedCompleteOrderSourceId",Date.now());cheeseAndWineTransaction()})); try{Rd(),kf(),window.heatmapRateLimiting&&window.heatmapRateLimiting.record&&window.heatmapRateLimiting.record.track&&$e(),Ud(window.preHeatmapSiteId)}catch(x){}of&&(window.defaultEventTimeout=1E3,window.addEventListener("click",window.debouncedClickHandler,!0));Xe();lf();window.shouldSetUniqueHeatmapIds&&window.globalFunctions.setHeatmapIds()},2E3)}function pf(){function m(l,q,w,x){let D=da("_heatmapConfigs","leadConvCount");D=D?D+1:1;qf("leadConversion",ia,{eventType:q,target:w,idgoal:l,referrer:x, count:D,device_type:localStorage.getItem("_heatDeviceType")});window.isGoalBuyer=1;window.isGoalBuyerValue=1;window.isGoalBuyerAmount=1;window.isGoalBuyerCurrency="USD";localStorage.setItem("heatIsGoalBuyer",1);localStorage.setItem("heatIsGoalBuyerCurrency","USD");localStorage.setItem("heatIsGoalBuyerValue",1);localStorage.setItem("heatIsGoalBuyerAmount",1);Ka("leadConvCount",D,"_heatmapConfigs")}window.addEventListener("message",l=>{try{if(![null,"null"].includes(l.origin)){if("https://calendly.com"=== l.origin&&l.data.event&&0===l.data.event.indexOf("calendly.")){let q=l.data;"calendly.event_scheduled"===q.event&&m(1,q.event.split(".")[1],q.event,q.payload.event.uri,q.payload.invitee.uri)}else l.origin.includes("submit.jotform.com")&&l.data.action&&l.data.action.includes("submission-completed")?m(1,"jotform_form_submitted",l.data.action,l.data.data,l.data.data):l.origin.includes("cal.com/api/book/event")&&m(1,"cal_event_scheduled","cal_event_scheduled",`https://cal.com/api/book/event/${l.data?.eventTypeId}`); "undefined"!==typeof l.data.type&&["ig:updateCart"].includes(l.data.type)&&cc("add_to_cart","hCart")}}catch(q){}})}function Vd(m){try{for(var l=document.getElementsByTagName("script"),q=0;qw.src.includes("form.jotform.com"))?!0:!1}catch(w){return!1}}function Ud(m){if("undefined"!==typeof dataLayer)try{if(!localStorage.getItem(`purch_${window.generatedIdVisit}`)){var l= {discount:0,shipment:0,revenue:0,currency:"",items:[],idorder:""},q=dataLayer.find(w=>"event"===w[0]&&"purchase"===w[1]);[3454,3549,3630,3663].includes(m)&&(q=dataLayer.find(w=>"event"===w[0]&&"purchase"===w[1]&&"undefined"!==typeof w[2].shipping));3443===m&&(q=dataLayer.find(w=>"Purchase"===w.event))&&(l.revenue=q.value||0,l.currency=q.currency||"",l.idorder=(new URLSearchParams(window.location.search)).get("o")||Date.now(),l.shipment=q.shipping||0,l.items={title:q.content_name||"",price:parseFloat(q.value)|| 0,quantity:1,sku:""});if(q&&q[2]){const w=q[2];l.revenue=w.value||0;l.currency=w.currency||"";l.idorder=w.transaction_id||"";l.shipment=w.shipping||0;w.items&&Array.isArray(w.items)&&(l.items=w.items.map(x=>({title:x.item_name||"",price:parseFloat(x.price)||0,quantity:x.quantity||1,sku:x.item_id||""})))}l.idorder&&(l._idv=window.generatedIdVisit,l.idsite=window.preHeatmapSiteId,l.device_type=Jb,navigator.sendBeacon(`${window.dedicatedPath}heatmap.php?data=${window.btoa(encodeURIComponent(JSON.stringify(l)))}&request=conversion&siteId=${l.idsite}`), localStorage.setItem("heatIsGoalBuyer",1),localStorage.setItem("heatIsGoalBuyerCurrency",l.currency),localStorage.setItem("heatIsGoalBuyerValue",l.revenue),localStorage.setItem("heatIsGoalBuyerAmount",l.revenue),localStorage.setItem(`purch_${window.generatedIdVisit}`,1))}}catch(w){}}const O="undefined"!==typeof window.globalFunctions.loadClientOriginHref?window.globalFunctions.loadClientOriginHref():{host:window.location.host,hostname:window.location.hostname,href:window.location.href,origin:window.location.origin, pathname:window.location.pathname,search:window.location.search,userAgent:window.navigator.userAgent,language:window.navigator.language};if(O.origin.includes("heatmapcore")||O.origin.includes("heatmap.com")||window.heatmapIsLoaded||O.origin.includes("localhost"))return window.heatmapIsLoaded=!0;window.heatmapIsLoaded=!0;window.FirstHSRSentToAPI=!1;window.removeEventListener("click",window.debouncedClickHandler,!0);const sa=window.generatedIdVisit,kb=window.globalFunctions.loadScriptHeatmap,Wd=!!window.browserState&& "bot-testing"==window.browserState,mf=window.globalFunctions.setHeatmapCrossDomainCookie,nf=window.globalFunctions.getHeatmapCrossDomainCookie,qf=window.globalFunctions.sendHeatBeatBeacon;var Ma=window.preHeatmapSiteId?window.preHeatmapSiteId:ib(),ia=window.heatmapHsrIds,Ra=window.myHeatEnv;window.globalObjects.data=[];window.globalObjects.clicks=[];window.heatmapRateLimiting&&window.heatmapRateLimiting.contentEngagement&&(window.contentEngagement=window.heatmapRateLimiting.contentEngagement);const rf= performance.now(),of=[1694,1562,2452].includes(Ma);"undefined"===typeof window.heatmapBreakPoints&&(window.heatmapBreakPoints={});[{label:"Fn addConfig",id:"add-config-fn",is_active:!1},{label:"Fn assign",id:"assign-fn",is_active:!1},{label:"Click Event",id:"click-event",is_active:!1},{label:"Fn onExit",id:"onexit-events",is_active:!1},{label:"Fn sendQueuedDataRequestNow",id:"send-queued-data-request-now",is_active:!1},{label:"Screenshot Taken",id:"screenshot-taken",is_active:!1}].forEach(m=>{"undefined"=== typeof window.heatmapBreakPoints[m.id]&&(window.heatmapBreakPoints[m.id]=m)});const da=window.globalFunctions.heatRetrieveStore,Ka=window.globalFunctions.heatSaveStore,yc=[1906,1722,1951,1947,2320,2135,2315,2243,2499,2653,2850,3039,3058,3218,3258,3268,3359],Te=[0,1,2];var ob=window.heatmapDeviceType="Desktop",Jb=1;480>=window.innerWidth?(ob="Mobile",Jb=3):480<=window.innerWidth&&850>=window.innerWidth&&(ob="Tablet",Jb=2);window._heatmapDEBUG&&(Ka("heatmapCDHeatmapLight",{status:1,data:{}},"heatmapDebugger"), Ka("heatmapCDEntryEvents",window._heatmap_pre_clicks,"heatmapDebugger"));var Se=[{patterns:[/add_to_cart/i,/addtocart/i],handlerTag:"add_to_cart",processingTag:"hCart"},{patterns:[/checkout/i,/begin_checkout/i],handlerTag:"checkout_started",processingTag:"hCheck"}];(function(){if("undefined"!==typeof window.dataLayer)for(const [,m]of window.dataLayer.entries())try{const l=Jd(m),q=Kd(l);if(q){cc(q.handlerTag,q.processingTag);window._heatDEBUG&&console.log(`Processed existing ${q.handlerTag} event`); break}}catch(l){window._heatDEBUG&&console.error("Error processing dataLayer entry:",l)}})();(function(){"undefined"===typeof window.dataLayer&&(window.dataLayer=[]);try{const m=window.dataLayer.push;window.dataLayer.push=function(){const l=m.apply(this,arguments);if(arguments[0])try{const q=Jd(arguments[0]),w=Kd(q);w&&(cc(w.handlerTag,w.processingTag),window._heatDEBUG&&console.log(`Processed ${w.handlerTag} event`))}catch(q){window._heatDEBUG&&console.error("Error processing dataLayer push:",q)}return l}}catch(m){}})(); const sf=m=>m.split(" > ").map(l=>l.replace(/sticky-header:nth-child\(\d+\)/,"sticky-header")).join(" > ");O.href.includes("remove_hsr")&&localStorage.removeItem("update_hsr");if(O.href.includes("update_hsr")||localStorage.getItem("update_hsr")){localStorage.setItem("update_hsr",!0);try{navigator.sendBeacon(`${window.heatUrl}heatmap.php`,window.btoa(encodeURIComponent(JSON.stringify({updatesitehsr:!0,siteid:Ma,name:decodeURIComponent(window.globalFunctions.extractNameFromURL()),idSiteHsr:ia}))))}catch(m){}}window.globalObjects.cleanup= function(m){return m.filter(l=>null!==l.x&&null!==l.y&&!isNaN(l.x)&&!isNaN(l.y)).map(l=>{l.x="undefined"===typeof l.x||0>l.x?Math.floor(2001*Math.random()):l.x;l.y="undefined"===typeof l.y||0>l.y?Math.floor(2001*Math.random()):l.y;return l}).filter(l=>document.querySelector(l.s))};window.globalObjects.remove=Ld;let Md=!1;window.heatMapLoaded=!0;window.silenceHeatMapLogs&&1!=window._heatmapDEBUG||console.log("%c \u25ba Heatmap.com-The Only Heatmap Tool With Revenue Insights","background-color: #43a047; color: #fff; padding: 5px;"); if("undefined"==typeof window._heatmap_paq){var la=window._heatmap_paq=window._heatmap_paq||[];if(void 0!==window._paq&&0!==window._paq.length){let m=!0;for(let l=0;l<_paq.length;l++)if(Array.isArray(_paq[l])){let q=_paq[l][1];if("setTrackerUrl"===_paq[l][0]&&q!==window.heatUrl){m=!1;break}}0==m?la.push(["setTrackerUrl",window.heatUrl+"heatmap.php"]):la=window._paq}}else la=window._heatmap_paq;(Ra=da("_heatmapConfigs","_heatMapEnvRecord"))||(Ra={IDSITE:window.preHeatmapSiteId,FRONTEND_DEBUG:!1,KINESISGATEWAY:window.globalObjects.KINESISGATEWAY, RECORDINGGATEWAY:"https://rdn.heatmap.com",PROXYURL:"",HEATMAPURL:"",S3URL:"https://heatmap-project-2022.s3.us-west-2.amazonaws.com/",KINESISSTREAM:"kinesisForProduction"});window.configsResponse="undefined"!==typeof window.nodeConfigs&&"undefined"!==typeof window.nodeConfigs.heatmap?window.nodeConfigs.heatmap:window.heatmapConfigsResponse.heatmap;la.push(["setExcludedQueryParams","/(.*)/ /^utm/ cb _heat_audit _heat_audit_results JS JavaScript".split(" ")],["setExcludedReferrers",["localhost"]],["trackPageView"], ["enableLinkTracking"]);window.pageLoadTimeArray={};var tf=[];const nb=O.href;window.heatviewsent=0;let dc=[],Xd="",Kb="",Lb="",Qd=!0,wb=window.globalObjects.KINESISGATEWAY,cd=Ra.PROXYURL,mb=Ra.HEATMAPURL,ed=Ra.S3URL||"https://heatmap-project-2022.s3.us-west-2.amazonaws.com/",Mb=window.globalObjects.KINESISSTREAM,Nb=!1,Za,Yd=!0,Zd="";var fd=!1,zc=0,$d=0;let $a="",ae="",cf=0,bd=0;window.globalObjects.KINESISGATEWAY=wb;const cb=-1this.reconnectionAttempts&&this.scheduleReconnect()}this.websocket&&(this.websocket.addEventListener("message",m=>{}),this.websocket.addEventListener("close",()=>{this.websocket=null;("visits"!== this.sectionName||window.visitRecordSent.loghsr&&window.visitRecordSent.visit)&&"recordings"!==this.sectionName||this.scheduleReconnect()}),this.websocket.addEventListener("error",()=>{this.websocket=null;("visits"!==this.sectionName||window.visitRecordSent.loghsr&&window.visitRecordSent.visit)&&"recordings"!==this.sectionName||this.scheduleReconnect()}))}}async waitForConnection(){return new Promise((m,l)=>{try{if(this.websocket){const q=setInterval(()=>{this.websocket.readyState&&(this.websocket.readyState=== WebSocket.OPEN||[2191,2674,3193].includes(window.preHeatmapSiteId)||window.ignoreReadyState)&&(clearInterval(q),m())},500);setTimeout(()=>{clearInterval(q);l(Error("WebSocket connection timed out"))},1E4)}}catch(q){}})}scheduleReconnect(){5>this.reconnectionAttempts&&!O.userAgent.toLowerCase().includes("heatmap")&&setTimeout(()=>{this.reconnectionAttempts++;this.connect()},5E3)}send(m,l=""){if(!O.userAgent.toLowerCase().includes("heatmap"))if(""!==l&&(this.hmWebSocketPendingRequest[l]||(this.hmWebSocketPendingRequest[l]= [])),window.ignoreReadyState&&this.connect(),this.websocket&&this.websocket.readyState){if(this.websocket.readyState===WebSocket.OPEN||[2191,2674].includes(window.preHeatmapSiteId)||window.ignoreReadyState){if(["visit","loghsr","loadtimesent"].includes(l)&&window.visitRecordSent[l])return this.cleanUp(l),delete this.hmWebSocketPendingRequest[l],!0;this.websocket.send(m);this.cleanUp(l);this.sendWSPendingRequests()}}else this.hmWebSocketPendingRequest[l].push(m)}cleanUp(m){try{window.visitRecordSent[m]= !0,"visit"==m&&(window.heatVisitData={},window.heatviewsent=1),"loghsr"==m&&(window.FirstHSRSentToAPI=!0),"undefined"!==typeof this.hmWebSocketPendingRequest[m]&&delete this.hmWebSocketPendingRequest[m]}catch(l){}}sendWSPendingRequests(){if(0!==Object.keys(this.hmWebSocketPendingRequest).length)for(const m in this.hmWebSocketPendingRequest)this.websocket&&this.websocket.readyState&&this.hmWebSocketPendingRequest[m].forEach(l=>{let q=!0;["visit","loghsr","loadtimesent"].includes(m)&&window.visitRecordSent[m]&& (delete this.hmWebSocketPendingRequest[m],q=!1);q&&(this.websocket.send(l),this.cleanUp(m))})}}const Ya=new be("wss://kinesis.heatmap.com/khsrv/v1",!0,"visits"),ce="matomo-kinesis"===Ra.KINESISSTREAM?"staging":"live",Cc=new be(`wss://ws.heatmap.com/ws/record/events?env=${ce}`,!1,"recordings");window.globalObjects.hmWS=Ya;window.globalObjects.recordEnv=ce;const Dc=JSON.parse(localStorage.getItem("heat_last_record_before_unload_event"));if(Dc)try{window.heatmapRateLimiting&&window.heatmapRateLimiting.record.track&& (Cc.connect(),Cc.send(JSON.stringify(Dc.recording_record),"recordings"),window.globalFunctions.GzipWebWorker(Dc.gzip_recording_record,"https://srevents.heatmapcore.com/",!0,"recordings"),localStorage.setItem("heat_last_record_before_unload_event",JSON.stringify({event_record:Dc.event_record})))}catch(m){}(function(){function m(){window._heatDEBUG&&console.log("Recording Stopped");window.globalFunctions.heatmapGenerateUniqueId(Ma,"_idl");window.globalFunctions.heatmapGenerateUniqueId(Ma,"_idv");HeatmapTracking.HeatmapSessionRecording.recording.stopRecordingMutations(); HeatmapTracking.HeatmapSessionRecording.recording.stopRecording();clearInterval(Zd);window.removeEventListener("load",q,!1);M.forEach(function(K){document.removeEventListener(K,q,!1)})}function l(){}function q(){window._heatDEBUG&&console.log("Event Stopped")}function w(){clearTimeout(x);clearTimeout(D);x=setTimeout(m,12E5);D=setTimeout(l,12E5)}let x,D;window.addEventListener("load",w,!0);let M=["mousedown","mousemove","keypress","scroll","touchstart"];M.forEach(function(K){document.addEventListener(K, w,!0)})})();var de=[];(function(m){var l=O.href,q=l,w=!1,x=!0;window.heatmapRateLimiting&&"undefined"!==typeof window.heatmapRateLimiting.trackvariant&&(x=window.heatmapRateLimiting.trackvariant);const D=(M="")=>{var K=!1;(new URLSearchParams(window.location.search)).forEach((Y,T)=>{if("undefined"!==typeof window.heatmapRateLimiting.acceptedTags&&window.heatmapRateLimiting.acceptedTags.includes(T)){["variant"].includes(T);if("variant"==T&&x)if("undefined"===typeof window.heatmapSessionTag.params[T])window.heatmapSessionTag.params[T]= Y;else{T="variant";let Q=0,J=!1;for(;window.heatmapSessionTag.params.hasOwnProperty(T)&&!(window.heatmapSessionTag.params[T]===Y||8<=Q);)Q++,J=!0,T="variant_"+Q;J&&(window.heatmapSessionTag.params[T]=Y)}else if("variant"!==T||"view"===T&&window.shopliftInstance)window.heatmapSessionTag.params[T]=Y;K=!0}});da("_heatmap_event_tag")&&(K=!0,window.heatmapSessionTag.partner_tag=JSON.parse(da("_heatmap_event_tag")));if(K&&0!==ia)try{if(Object.keys(window.heatmapSessionTag).length){if(window.visitRecordSent.session_tag&& (delete window.heatmapSessionTag.partner_tag,!Object.keys(window.heatmapSessionTag.params).length))return!0;window.heatGlobalPayload.idsitehsr=ia;window.heatGlobalPayload.request="sessionTags";window.heatGlobalPayload.sessionTags=window.heatmapSessionTag;Ya.send(JSON.stringify({action:"staging-visits",data:window.heatGlobalPayload,streamName:"STTrackerCustomIds",requestTime:Ca()}),"sessiontags");if(Object.keys(window.heatmapSessionTag).length){const Y=window.btoa(encodeURIComponent(JSON.stringify(window.heatGlobalPayload))); navigator.sendBeacon(`https://sstags.heatmapcore.com/?data=${Y}&id=${sa}&idl=${window.generatedIdloghsr}&sid=${window.preHeatmapSiteId}`)}"undefined"!==typeof window.heatmapSessionTag.partner_tag&&(localStorage.removeItem("_heatmap_event_tag"),window.visitRecordSent.session_tag=!0);w=!0;de.push(M)}}catch(Y){}};setInterval(()=>{l=O.href;if(l!==q||!w&&l.includes("variant")||!w&&l.includes("utm_source")||!w&&l.includes("view=")||da("_heatmap_event_tag"))if(!de.includes(l)||da("_heatmap_event_tag"))D(l), q=l;[3265,3454,3541,3443,3549,3630,3663].includes(window.preHeatmapSiteId)&&Ud(window.preHeatmapSiteId);[1910,2184].includes(window.preHeatmapSiteId)&&("undefined"===typeof ConversionsHandler&&kb(`${m}conversions.js?siteId=${window.preHeatmapSiteId}`),1910==window.preHeatmapSiteId&&"undefined"!==typeof processSkinnyrx&&processSkinnyrx(window.preHeatmapSiteId),2184==window.preHeatmapSiteId&&"undefined"!==typeof vetrinexlabsConversion&&vetrinexlabsConversion(window.preHeatmapSiteId))},3E3)})(window.trackingPath, window.preHeatmapSiteId);let Ec=!1;const La={RECORDING_BASIS_IDV:"_heatmap_recording_basis_idv",RECORDING_STATUS:"_heatmap_recording_status",GROUP_RECORDING:"_heatmap_group_recording",HAS_INITIALIZED_RECORDING:"_heatmap_has_initialized_recording",CONFIGS_CREATED_AT:"_heatmap_configs_created_at"},ee=localStorage.getItem(La.CONFIGS_CREATED_AT);if(ee){let m=(new Date).getTime()-ee;86400=w?!1:100*Math.random()w.expiry&&null!==l?(localStorage.removeItem(m),null):w.value}catch(q){ub(q,q)}}("_heat_audit", ge),Td=fe.searchParams.get("_heat_audit_results");if((null!==ge||null!==hd)&&null===Td)try{var yf=window.globalFunctions.heatmapRandomString(10);hd?$a=hd:($a=yf,localStorage.removeItem("_heat_audit_visit"),localStorage.removeItem("_heat_audit_idls"),localStorage.removeItem("_heat_audit_clicks"),localStorage.removeItem("_heat_audit_trans"),df("_heat_audit",$a,30));localStorage.setItem("_heat_audit_visit",JSON.stringify({_idv:sa,_heat_audit_key:$a}));const m=JSON.parse(localStorage.getItem("_heat_audit_idls"))|| [];m.push({_idl:window.generatedIdloghsr,_heat_audit_key:$a});localStorage.setItem("_heat_audit_idls",JSON.stringify(m));if("undefined"!==typeof window._heatmap_pre_clicks&&0>>32-Ea},v=function(ea){var Ea="",ja;for(ja=7;0<=ja;ja--){var ya=ea>>>4*ja&15;Ea+=ya.toString(16)}return Ea},b,g=[],e=1732584193,d=4023233417,h=2562383102,p=271733878,r=3285377520,t=[];c=decodeURIComponent(P(c));var y=c.length;for(b=0;b>>29);t.push(y<<3&4294967295);for(c=0;cb;b++)g[b]=t[c+b];for(b=16;79>=b;b++)g[b]=k(g[b-3]^g[b-8]^g[b-14]^g[b-16],1);C=e;y=d;var B=h;var E=p;var I=r;for(b=0;19>=b;b++){var A=k(C,5)+(y&B|~y&E)+I+g[b]+1518500249&4294967295;I=E;E=B;B=k(y,30);y=C;C=A}for(b=20;39>=b;b++)A=k(C,5)+(y^B^E)+I+g[b]+1859775393&4294967295,I=E,E=B,B=k(y,30),y=C,C=A;for(b=40;59>=b;b++)A= k(C,5)+(y&B|y&E|B&E)+I+g[b]+2400959708&4294967295,I=E,E=B,B=k(y,30),y=C,C=A;for(b=60;79>=b;b++)A=k(C,5)+(y^B^E)+I+g[b]+3395469782&4294967295,I=E,E=B,B=k(y,30),y=C,C=A;e=e+C&4294967295;d=d+y&4294967295;h=h+B&4294967295;p=p+E&4294967295;r=r+I&4294967295}A=v(e)+v(d)+v(h)+v(p)+v(r);return A.toLowerCase()}function zb(c,k,v){c||="";k||="";if("translate.googleusercontent.com"===c)""===v&&(v=k),k=pb(k,"u"),c=Da(k);else if("cc.bingj.com"===c||"webcache.googleusercontent.com"===c||"74.6."===c.slice(0,5))k= R.links[0].href,c=Da(k);return[c,k,v]}function bb(c){var k=c.length;"."===c.charAt(--k)&&(c=c.slice(0,k));"*."===c.slice(0,2)&&(c=c.slice(1));-1!==c.indexOf("/")&&(c=c.substr(0,c.indexOf("/")));return c}function U(c){return c?!l(c.children)&&l(c.childNodes)||l(c.children)?c.children:[]:[]}function S(c,k){if(c&&c.indexOf)return c.indexOf(k);if(!l(c)||null===c||!c.length)return-1;var v=c.length;if(0===v)return-1;for(var b=0;bt.offsetWidth+t.scrollLeft||h+p-1t.offsetHeight+t.scrollTop||g+r-1oa.indexOf("?")?"?":"&")+`request&sid=${window.preHeatmapSiteId}&_data=`+ window.btoa(encodeURIComponent(a))}function C(a){return"POST"===ld?!0:a&&(2E3{ca= da("_heatmapConfigs","_heatMapEnvRecord");null!==ca&&void 0!==ca.KINESISGATEWAY&&(wb=ca.KINESISGATEWAY,cd=ca.PROXYURL,mb=ca.HEATMAPURL,ed=ca.S3URL,Mb=window.globalObjects.KINESISSTREAM,Ra=ca)},2500)}try{var N=a.split("=")[0],W=a.split("=")[1];W=W.split("&")[0];let ca=da("_heatmapConfigs","_heatEventsCount");window._heatDEBUG&&console.log(W);if("action_name"==a.split("=")[0]){window.heatmapClientId=null==window.heatmapClientId?da("_heatmapConfigs","heatmapClientId"):window.heatmapClientId;window.heatmapClientId&& (a+=`&cip=${window.heatmapClientId}`,a+=`&sourceIp=${window.heatmapClientId}`);a+=`&entry=${window._entryEnPage}`;a+=`&exit=${window._entryExPage}`;a+=`&exithsr=${window.heatmapHsrIds}`;window.createNewVisitRequired&&(a+=`&entryhsr=${window.heatmapHsrIds}`);localStorage.getItem("_entryHsr")&&(a+=`&_entry=${localStorage.getItem("_entryHsr")}`);a+=`&requestTime=${Ca()}`;a+=`¤tTime=${Ca()}`;a+=`&_idv=${sa}&uagent=${O.userAgent}`;a+=`&lang=${navigator.language}&hsr_return=${window.isReturningUser}&test_data=${Wd}`; window.globalFunctions.previousIdVisit&&(a+=`&prev_idv=${window.globalFunctions.previousIdVisit}`);window.isGoalBuyer&&(window.isGoalBuyerValue=window.isGoalBuyerValue?window.isGoalBuyerValue:1,a+=`&buyer=${window.isGoalBuyer}&buyer_value=${window.isGoalBuyerValue}&buyer_currency=${window.isGoalBuyerCurrency}`);ca&&(a+=`&events_count=${parseInt(ca)}`);"undefined"!==typeof convertData&&(a+=`&user=${JSON.stringify(convertData.geo)}`,a+=`&system=${JSON.stringify(convertData.system)}`);var X=(new URLSearchParams("?"+ a)).get("_id");a+="&Storage_updated=1";a+=ae;vc("mr_vid",X,1);vc("_heat_idv",sa,1);vc("heat_idv",sa,1);vc("_heat_idl",window.generatedIdloghsr,1);localStorage.setItem("_user_agent",O.userAgent);localStorage.setItem("_mr_vid",X);xc()}new Blob([a],u);!n||C(a)||a.includes("&_id=")||(new Blob([],u),H=H+(0>H.indexOf("?")?"?":"&")+a);u="";z=!0;n="staging"==xf?"staging-pageview":"staging-visits";if(a.includes("hsr_vid")&&!window.FirstHSRSentToAPI||Object.keys(window.heatVisitData).length){let za=a.replace(Xd, "");za=za.replace(/\s/g,"");u=za+`&initalDOMOnly=1&_idv=${sa}&_idl=${window.generatedIdloghsr}&sessionTags=${JSON.stringify(window.heatmapSessionTag)}`;window._heatDEBUG&&console.log("Initial DOM to API",u);if(window.heatmapRateLimiting&&window.heatmapRateLimiting.events.track){window.visitRecordSent.loadtimesent||(Ya.send(JSON.stringify({action:n,data:window.pageLoadTimeArray,streamName:"STTrackerCustomIds",requestTime:Ca()}),"loadtimesent"),Ka("heatmapDCPageLoadTime",1,"heatmapDebugger"));window.visitRecordSent.visit|| (Object.keys(window.heatVisitData).length&&(JSON.stringify({...window.heatVisitData,uadata:JSON.parse(window.heatVisitData?.uadata||{})}),Ya.send(JSON.stringify({action:n,data:window.heatVisitData,streamName:"STTrackerCustomIds",requestTime:Ca()}),"visit")),window.createNewVisitRequired&&(window.heartBeatBeacons+=",visits"),Ka("heatmapDCVisit",1,"heatmapDebugger"));let gc=window.userScrollData.smp?window.userScrollData.smp:Za;window.visitRecordSent.loghsr||(Ya.send(JSON.stringify({action:n,data:Xa(u), streamName:"STTrackerCustomIds",requestTime:Ca()}),"loghsr"),localStorage.setItem("userMaxScroll",gc),window.heartBeatBeacons+=",loghsrs");Ka("heatmapDCLogHSR",1,"heatmapDebugger");window.loadtimesent=!0}window.heartBeatBeacons.length&&(window.heartBeatBeacons="");window.FirstHSRSentToAPI=!0}Kb&&0{const hc={method:"POST",body:JSON.stringify(Aa)};if(Aa){if(window.heatmapRateLimiting&&!window.heatmapRateLimiting.events.track||!ia)return localStorage.removeItem("_heatSessDom"),!0;try{window.fetch(wb,hc).then(Rb=>{200===Rb.status&&a.includes("[ty]=5")&&(Lb="",localStorage.removeItem("_heatSessDom"))}).catch(Rb=>{Z.sendBeacon(wb,JSON.stringify(Aa));a.includes("[ty]=5")&&(Lb="",localStorage.removeItem("_heatSessDom"))})}catch(Rb){}Qd&&Pd(Ma)}if(null!== Bc&&null!==Ga&&1==Fc?.get_session){if(window.heatmapRateLimiting&&!window.heatmapRateLimiting.record.track)return!0;try{Cc.send(JSON.stringify(Ga),"recordings")}catch(Rb){}}};N=(Aa,Ga)=>{Ga.forEach(hc=>delete Aa[hc]);return Aa};ha=aa=null;let za=Xa(a,[2]),gc=Xa(a,[14]),rb=Xa(a,[2,8,14,15]),ic=Xa(a,[1,2,3,4,5,6,9,10,12,13],"","session");_reInitialDom=Xa(a,[5],"","session");a.includes("IsExitEvents")&&(ic.hsr_ev=[]);_heatmapDEBUG&&Ye(ic);0!==gc.hsr_ev.length&&(gc=N(gc,["uadata","sessionTags","uagent"])); 0!==za.hsr_ev.length&&(za=N(za,["uadata","sessionTags","uagent"]),window.globalFunctions.GzipWebWorker(JSON.stringify(za),"https://clicks.heatmapcore.com/",!0,"clicks"));window.globalObjects.data.push(Xa(a,[1,2,8,10,12,13,14,15],"heatmap_hsr _idl _idv hsr_smp hsr_sh hsr_return hsr_fyp lang audit_key".split(" ")));if(!Ec&&"undefined"!==typeof heatmapDebugger)heatmapDebugger.updateEvents(lb(rb));else if("undefined"!==typeof heatmapDebugger)heatmapDebugger.onExitEvents(lb(rb));Xa(a);if(0!==rb.hsr_ev.length){let Aa= lb(rb);window.globalObjects.hsr=za;aa={Data:window.btoa(Aa),PartitionKey:`${(new Date).getTime()}`,StreamDataset:"heatclicks",StreamName:Mb};if(14!==rb.hsr_ev[0].ty&&![5,6,15,16,17].includes(rb.hsr_ev[0].ty)){let Ga=localStorage.getItem("userMaxScroll");"undefined"==Ga&&(Ga=null);Object.keys(window.userScrollData).length&&(!Ga||Ga&&parseInt(Ga)this.status?4===this.readyState&&"function"===typeof f&&f({request:a,trackerUrl:oa,success:!0, xhr:this}):ba&&B(a,f,n)||!n?"function"===typeof f&&f({request:a,trackerUrl:oa,success:!1,xhr:this}):y(a,f)};u.setRequestHeader("Content-Type",ke);u.withCredentials=!0}catch(z){u=ba&&B(a,f,n),!u&&n?y(a,f):"function"===typeof f&&f({request:a,trackerUrl:oa,success:!1})}},50)}function I(a){a=(new Date).getTime()+a;if(!Ha||a>Ha)Ha=a}function A(){Hc=(new Date).getTime()}function ea(){var a=(new Date).getTime();return!Hc||a-Hc>Sb}function Ea(){ea()&&md()}function ja(){"hidden"===R.visibilityState&&ea()? md():"visible"===R.visibilityState&&(Hc=(new Date).getTime())}function ya(){!Tb&&Sb&&(Tb=!0,K(G,"focus",A),K(G,"blur",Ea),K(G,"visibilitychange",ja),Bb++,ta.addPlugin("HeartBeat"+Bb,{unload:function(){Tb&&ea()&&md()}}))}function le(a){var f=(new Date).getTime();Ic=f;Ub&&f=a.length)var u=[a];else{u=0;var z=a.length,H=[];for(u;u=ud|| f>=n&&f<=n+ud)){f=!0;break a}f=!1}if(f)return a.substr(0,16)}return""}function pe(){Xb||=Bf(mc);var a=Math.round((new Date).getTime()/1E3),f=Pa("id");if(f=v(f))return a=f.split("."),a.unshift("0"),Xb.length&&(a[1]=Xb),a;Xb.length?f=Xb:"0"===pd()?f="":(f=sd(),f=rd((Z.userAgent||"")+(Z.platform||"")+G.JSON.stringify(f)+(new Date).getTime()+Math.random()).slice(0,16));return a=["1",f,a]}function vd(){var a=pe();return{newVisitor:a[0],uuid:a[1],createTs:a[2]}}function Nc(a){if(Ba){(new Date).getTime(); l(a)||(a=vd());a=a.uuid+"."+a.createTs+".";var f=Pa("id");var n=(new Date).getTime();var u=vd().createTs;n=1E3*parseInt(u,10)+qe-n;b(f,a,n,pa,qa,Va,Wa)}}function Yb(){var a=v(Pa("ref"));if(a.length)try{if(a=G.JSON.parse(a),q(a))return a}catch(f){}return["","",0,""]}function Oc(){var a=Fa;Fa=!1;var f;for(f=0;f z;z++)u+="abcdefghijklmnopqrstuvwxyz0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))}Uc=u}u=(u=a||Yc)&&u.text?u.text:u;w(u)||(z=R.getElementsByTagName("title"))&&l(z[0])&&(u=z[0].text);u=Ia("action_name="+P(u),f,"log");yd&&!nc&&(u=se(u));Oa(u,na,n)})};this.disableBrowserFeatureDetection=function(){Vb=!1};this.enableBrowserFeatureDetection=function(){Vb=!0};this.trackAllContentImpressions=function(){ma(Ba)||wa(function(){T(function(){var a=F.findContentNodes();a=Ed(a);ra.pushMultiple(a)})})}; this.trackVisibleContentImpressions=function(a,f){ma(Ba)||(l(a)||(a=!0),l(f)||(f=750),Df(a,f,this),wa(function(){Y(function(){var n=F.findContentNodes();n=Ee(n);ra.pushMultiple(n)})}))};this.trackContentImpression=function(a,f,n){ma(Ba)||(a=Na(a),f=Na(f),n=Na(n),a&&(f=f||"Unknown",wa(function(){var u=F.buildImpressionRequestParams(a,f,n);u=Ia(u,null,"contentImpression");ra.push(u)})))};this.trackContentImpressionsWithinNode=function(a){!ma(Ba)&&a&&wa(function(){rc?Y(function(){var f=F.findContentNodesWithinNode(a); f=Ee(f);ra.pushMultiple(f)}):T(function(){var f=F.findContentNodesWithinNode(a);f=Ed(f);ra.pushMultiple(f)})})};this.trackContentInteraction=function(a,f,n,u){ma(Ba)||(a=Na(a),f=Na(f),n=Na(n),u=Na(u),a&&f&&(n=n||"Unknown",wa(function(){var z=Ce(a,f,n,u);z&&ra.push(z)})))};this.trackContentInteractionNode=function(a,f){if(!ma(Ba)&&a){var n=null;wa(function(){var u=f;if(a){var z=F.findParentContentNode(a);(z=F.buildContentBlock(z))?(u||="Unknown",n=Ce(u,z.name,z.piece,z.target)):n=void 0}else n=void 0; n&&ra.push(n)});return n}};this.logAllContentBlocksOnPage=function(){var a=F.findContentNodes();a=F.collectContent(a);"undefined"!==typeof console&&console&&console.log&&window._heatDEBUG&&console.log(a)};this.trackEvent=function(a,f,n,u,z,H){wa(function(){Fe(a,f,n,u,z,H)})};this.trackSiteSearch=function(a,f,n,u){Ib=[];wa(function(){var z=Ia("search="+P(a)+(f?"&search_cat="+P(f):"")+(l(n)?"&search_count="+n:""),u,"sitesearch");Oa(z,na)})};this.setEcommerceView=function(a,f,n,u){tb={};x(n)&&(n=String(n)); l(n)&&null!==n&&!1!==n&&n.length?n instanceof Array&&(n=G.JSON.stringify(n)):n="";tb._pkc=n;l(u)&&null!==u&&!1!==u&&String(u).length&&(tb._pkp=u);if(x(a)||x(f))x(a)&&(tb._pks=a),x(f)||(f=""),tb._pkn=f};this.getEcommerceItems=function(){return JSON.parse(JSON.stringify(ka))};this.addEcommerceItem=function(a,f,n,u,z){x(a)&&(ka[a]=[String(a),f,n,u,z])};this.removeEcommerceItem=function(a){x(a)&&(a=String(a),delete ka[a])};this.clearEcommerceCart=function(){ka={}};this.trackEcommerceOrder=function(a, f,n,u,z,H){String(a).length&&l(f)&&xe(a,f,n,u,z,H)};this.trackEcommerceCartUpdate=function(a){l(a)&&xe("",a,"","","","")};this.trackRequest=function(a,f,n,u){wa(function(){var z=Ia(a,f,u);Oa(z,na,n)})};this.ping=function(){this.trackRequest("ping=1",null,null,"ping")};this.disableQueueRequest=function(){ra.enabled=!1};this.setRequestQueueInterval=function(a){if(1E3>a)throw Error("Request queue interval needs to be at least 1000ms");ra.interval=a};this.queueRequest=function(a){wa(function(){var f= Ia(a);ra.push(f)})};this.isConsentRequired=function(){return od};this.getRememberedConsent=function(){var a=v("mtm_consent");return v("mtm_consent_removed")?(a&&Db("mtm_consent",pa,qa),null):a&&0!==a?a:null};this.hasRememberedConsent=function(){return!!this.getRememberedConsent()};this.requireConsent=function(){od=!0;(Ua=this.hasRememberedConsent())||(Fa=!0);ac++;xa["CoreConsent"+ac]={unload:function(){Ua||Oc()}}};this.setConsentGiven=function(a){Vb=Ua=!0;Db("mtm_consent_removed",pa,qa);var f;for(f= 0;fh?-1:1});if(1>=c.length)return c;var v=0,b= 0,g=[],e;for(e=c[v++];e;)e===c[v]&&(b=g.push(v)),e=c[v++]||null;for(;b--;)c.splice(g[b],1);return c},getAttributeValueFromNode:function(c,k){if(this.hasNodeAttribute(c,k)){if(c&&c.getAttribute)return c.getAttribute(k);if(c&&c.attributes&&"undefined"!==typeof c.attributes[k]){if(c.attributes[k].value)return c.attributes[k].value;if(c.attributes[k].nodeValue)return c.attributes[k].nodeValue;var v=c.attributes;if(v){for(c=0;c=c&&0<=c?!0:!1},removeDomainIfIsInLink:function(c){c&&c.search&&-1!==c.search(RegExp("^https?://[^/]+"))&& this.isSameDomain(c)&&((c=c.replace(RegExp("^.*//[^/]+"),""))||(c="/"));return c},findMediaUrlInNode:function(c){if(c){var k=c.nodeName.toLowerCase();if(-1!==S(["img","embed","video","audio"],k)&&L.findFirstNodeHavingAttributeWithValue(c,"src"))return c=L.findFirstNodeHavingAttributeWithValue(c,"src"),L.getAttributeValueFromNode(c,"src");if("object"===k&&L.hasNodeAttributeWithValue(c,"data"))return L.getAttributeValueFromNode(c,"data");if("object"===k){if((k=L.findNodesByTagName(c,"param"))&&k.length){var v; for(v=0;vk.top;b&&c.offsetTop&&(b=0G.innerWidth&&(c=G.innerWidth);v=v.clientHeight;G.innerHeight&&v>G.innerHeight&&(v=G.innerHeight);return(0=b?!1:100*Math.random()=V.roundTimeToSeconds(V.getTimeSincePageReady())&& (d=!1);g.activity&&!P&&(P=ba.getDocumentHeight()<=ba.getWindowSize().height);if(g.activity&&(!Qa||!P)||q("pk_hsr_capturescreen=1")||O.userAgent.toLowerCase().includes("heatmap"))d=!1;d&&(g.conditionsMet=!0,g.keystrokes=1,Wb(g)&&("undefined"!==typeof g.keystrokes&&g.keystrokes&&"0"!==g.keystrokes||(G=!1),this.addHsrId(g.id),setInterval(xc,1E4)))}},addHsrId:function(g){this.hsrids.push(g);b.HeatmapSessionRecording.hasTrackedData&&c.recordData(2,{ty:7,id:g});parseInt(b.getSiteId(),10);L.set(b,g,1)}}, addConfig:function(g){this.hasReceivedConfig=this.hasRequestedConfig=!0;if("undefined"!==typeof g&&g){"object"===typeof g.heatmap&&this.Heatmap.addConfig(g.heatmap);var e;if(window._heatmapDEBUG&&window.heatmapBreakPoints["add-config-fn"].is_active)debugger;if(g.heatmaps&&V.isArray(g.heatmaps)&&g.heatmaps.length){for(e=0;e{Fc?.get_session&&(Cc.connect(),k.startRecordingMutations());c.startSendingData()};if(null==localStorage.getItem(La.HAS_INITIALIZED_RECORDING)){try{window.requestIdleCallback(g)}catch(e){g()}localStorage.setItem(La.HAS_INITIALIZED_RECORDING, "true")}else g()}},isEnabled:function(){return ma},setMaxCaptureTime:function(b){Ha=1E3*parseInt(b,10);18E5>>0};e.prototype.nodeId=function(d){var h=d[e.ID_PROP];h||=d[e.ID_PROP]=e.nextId_++;return h};e.prototype.set=function(d,h){var p=this.nodeId(d); this.nodes[p]=d;this.values[p]=h};e.prototype.get=function(d){d=this.nodeId(d);return this.values[d]};e.prototype.has=function(d){return this.nodeId(d)in this.nodes};e.prototype["delete"]=function(d){d=this.nodeId(d);delete this.nodes[d];this.values[d]=void 0};e.prototype.keys=function(){var d=[],h;for(h in this.nodes)this.isIndex(h)&&d.push(this.nodes[h]);return d};e.ID_PROP="__mutation_summary_node_map_id__";e.nextId_=1;return e}(),J;(function(e){e[e.STAYED_OUT=0]="STAYED_OUT";e[e.ENTERED=1]="ENTERED"; e[e.STAYED_IN=2]="STAYED_IN";e[e.REPARENTED=3]="REPARENTED";e[e.REORDERED=4]="REORDERED";e[e.EXITED=5]="EXITED"})(J||={});var vb=function(){function e(d,h,p,r,t,y,C,B){void 0===h&&(h=!1);void 0===p&&(p=!1);void 0===r&&(r=!1);void 0===t&&(t=null);void 0===y&&(y=!1);void 0===C&&(C=null);void 0===B&&(B=null);this.node=d;this.childList=h;this.attributes=p;this.characterData=r;this.oldParentNode=t;this.added=y;this.attributeOldValues=C;this.characterDataOldValue=B;this.isCaseInsensitive=1===this.node.nodeType&& this.node instanceof HTMLElement&&this.node.ownerDocument instanceof HTMLDocument}e.prototype.getAttributeOldValue=function(d){if(this.attributeOldValues)return this.isCaseInsensitive&&(d=d.toLowerCase()),this.attributeOldValues[d]};e.prototype.getAttributeNamesMutated=function(){var d=[];if(!this.attributeOldValues)return d;for(var h in this.attributeOldValues)d.push(h);return d};e.prototype.attributeMutated=function(d,h){this.attributes=!0;this.attributeOldValues=this.attributeOldValues||{};d in this.attributeOldValues||(this.attributeOldValues[d]=h)};e.prototype.characterDataMutated=function(d){this.characterData||(this.characterData=!0,this.characterDataOldValue=d)};e.prototype.removedFromParent=function(d){this.childList=!0;this.added||this.oldParentNode?this.added=!1:this.oldParentNode=d};e.prototype.insertedIntoParent=function(){this.added=this.childList=!0};e.prototype.getOldParent=function(){if(this.childList){if(this.oldParentNode)return this.oldParentNode;if(this.added)return null}return this.node.parentNode}; return e}(),ec=function(){return function(){this.added=new Q;this.removed=new Q;this.maybeMoved=new Q;this.oldPrevious=new Q;this.moved=void 0}}(),Da=function(e){function d(h,p){e.call(this);this.rootNode=h;this.wasReachableCache=this.reachableCache=void 0;this.anyCharacterDataChanged=this.anyAttributesChanged=this.anyParentsChanged=!1;for(h=0;h{for(const B of C)if(B.childNodes)for(const E of B.childNodes)if("BODY"=== E.tagName)return!0;window._heatDEBUG&&console.log("BODY tag not found!")})(t);this.mirror.initialize(h,t);h=[{all:!0}];p&&(h=h.concat(p));this.mutationSummary=new zb({rootNode:d,callback:function(C){r.applyChanged(C)},queries:h})}e.prototype.disconnect=function(){this.mutationSummary&&(this.mutationSummary.disconnect(),this.mutationSummary=void 0)};e.prototype.rememberNode=function(d){var h=this.nextId++;this.knownNodes.set(d,h);return h};e.prototype.forgetNode=function(d){this.knownNodes["delete"](d)}; e.prototype.serializeNode=function(d,h,p,r){if(null===d)return null;var t=this.knownNodes.get(d);if(void 0!==t)return{id:t};t={nodeType:d.nodeType,id:this.rememberNode(d)};r=F.shouldMaskElementRecursive(d,p,r);p=r.isIgnoredField;r=r.isIgnoredContent;switch(t.nodeType){case 10:t.name=d.name;t.publicId=d.publicId;t.systemId=d.systemId;break;case 8:t.textContent=" ";break;case 3:void 0===d.forceUnmask&&(d.forceUnmask=!1);d.forceUnmask||(d.textContent&&!r&&F.shouldMaskContent(d,!0)?t.textContent=F.maskFormField(d.textContent): t.textContent=F.getMaskedTextContent(d,p,r));break;case 1:if(t.tagName=d.tagName,t.attributes={},"SCRIPT"!==t.tagName&&"NOSCRIPT"!==t.tagName){if("STYLE"===t.tagName&&("string"===typeof d.innerText&&""===d.innerText.trim()||"string"===typeof d.innerHTML&&""===d.innerHTML.trim())&&U.styleSheets&&U.styleSheets.length){for(var y,C=0;C=d.scrollWidth||1>=d.scrollHeight)?r.src="about:blank": "META"===d.tagName&&(d.attributes.property&&0<=String(d.attributes.property.value).indexOf("og:")?r={}:d.attributes.name&&(d=String(d.attributes.name.value).toLowerCase(),0<=d.indexOf("twitter:")||0<=d.indexOf("description")||0<=d.indexOf("keywords"))&&(r={}));return r};e.prototype.serializeAddedAndMoved=function(d,h,p){var r=this;d=d.concat(h).concat(p);var t=new zb.NodeMap;d.forEach(function(C){var B=C.parentNode,E=t.get(B);E||(E=new zb.NodeMap,t.set(B,E));E.set(C,!0)});var y=[];t.keys().forEach(function(C){C= t.get(C);for(var B=C.keys();B.length;){for(B=B[0];B.previousSibling&&C.has(B.previousSibling);)B=B.previousSibling;for(;B&&C.has(B);){B.forceUnmask=!1;B&&void 0!=B.classList&&(B.forceUnmask=B.classList.contains("data-heatmap-unmask"));var E=r.serializeNode(B);E.previousSibling=r.serializeNode(B.previousSibling);E.parentNode=r.serializeNode(B.parentNode);y.push(E);C["delete"](B);B=B.nextSibling}B=C.keys()}});return y};e.prototype.serializeAttributeChanges=function(d){var h=this,p=new zb.NodeMap;Object.keys(d).forEach(function(r){d[r].forEach(function(t){var y= p.get(t);y||(y=h.serializeNode(t),y.attributes={},p.set(t,y));var C=F.shouldMaskElementRecursive(t);t=h.getAttributesFromNode(t,C.isIgnoredField,C.isIgnoredContent);y.attributes[r]=r in t?t[r]:null})});return p.keys().map(function(r){return p.get(r)})};e.prototype.applyChanged=function(d){var h=this;d=d[0];var p=d.removed.map(function(C){return h.serializeNode(C)});try{var r=this.serializeAddedAndMoved(d.added,d.reparented,d.reordered),t=this.serializeAttributeChanges(d.attributeChanged),y=d.characterDataChanged.map(function(C){var B= h.serializeNode(C),E=F.shouldMaskElementRecursive(C,!1,!1);B.textContent=F.getMaskedTextContent(C,E.isIgnoredField,E.isIgnoredContent);return B});this.mirror.applyChanged(p,r,t,y);d.removed.forEach(function(C){h.forgetNode(C)})}catch(C){}};return e}()}var U=document,S=window,Ab=0,eb=!1,ma=!m(),Pb=!0,qb=null,Qb=!1,hb="",bc="",Ha=9E5,xa=500,Ja=!1;let R=null,Z=0;var Wb=function(){return!0},G=!0,Qa=!1,P=!1,xb=!0,fa=null,ua=!1,Sa={};"object"===typeof JSON&&(Sa=JSON);var ac=!1,Bb=[],$b="undefined"!==typeof WebKitMutationObserver|| "undefined"!==typeof MutationObserver?!0:!1,ba={getScrollLeft:function(){return S.document.body.scrollLeft||S.document.documentElement.scrollLeft},getScrollTop:function(){return S.document.body.scrollTop||S.document.documentElement.scrollTop},getDocumentHeight:function(){if(null!==U.body)return V.safeMathMax([U.body.offsetHeight,U.body.scrollHeight,U.documentElement.offsetHeight,U.documentElement.clientHeight,U.documentElement.scrollHeight,1]);setTimeout(function(){ba.getDocumentHeight()},500)},getDocumentWidth:function(){if(null!== U.body)return V.safeMathMax([U.body.offsetWidth,U.body.scrollWidth,U.documentElement.offsetWidth,U.documentElement.clientWidth,U.documentElement.scrollWidth,1]);setTimeout(function(){ba.getDocumentWidth()},500)},getWindowSize:function(){return{width:S.innerWidth||U.documentElement.clientWidth||U.body.clientWidth,height:S.innerHeight||U.documentElement.clientHeight||U.body.clientHeight}},getScrollPercent:function(){var b=U.documentElement,g=U.body;return(b.scrollTop||g.scrollTop)/((b.scrollHeight|| g.scrollHeight)-b.clientHeight)*100},getScrollDepthPercent:function(){return(window.scrollY||document.documentElement.scrollTop)/(document.documentElement.scrollHeight-window.innerHeight)*100}},L={namespace:"hsr",set:function(b,g,e){g=parseInt(g,10);e=parseInt(e,10);for(var d="",h=L.getHsrConfigs(b),p=!1,r=0;r]+/,""),b=document.querySelector(e)}if(window.globalFunctions.heatHasBeforeOrAfterPseudoElement(b)&&!window.globalFunctions.heatDoesElementHaveChildren(b)){const d=window.getComputedStyle(b,"::after"),h=b.offsetParent,p=b.parentElement;h&&"BODY"!==h.tagName&&d&&"absolute"===d.position&&"0px"===d.left&&"0px"===d.right&&"0px"===d.bottom&&(e="li"===p.tagName.toLowerCase()&&"ul"===h.tagName.toLowerCase()?window.clicksHandler.cssPath(p): window.clicksHandler.cssPath(h))}return e=window.clicksHandler.simplifyAndJoinSelectors(e)}catch(e){return!1}},getMaskedTextContent:function(b,g,e){return"undefined"!==typeof b.parentNode&&b.parentNode&&"TEXTAREA"===b.parentNode.tagName&&(!G||g||F.shouldMaskField(b,!1))||e||F.shouldMaskContent(b,!1)?F.maskFormField(V.trim(b.textContent)):b.textContent},maskFormField:function(b,g){if(!b)return b;if(b.startsWith("data-heatmap-unmask:::"))return b=b.substr(22,b.length);b=String(b).replace(/./g,"*"); g&&(b+=Array(Math.floor(10*Math.random())+1+1).join("*"));return b},shouldMaskElementRecursive:function(b,g,e){e||=!1;g||=!1;!g&&F.shouldMaskField(b,!1)?g=!0:g&&!F.shouldMaskField(b,!1)&&(g=!1);!e&&F.shouldMaskContent(b,!1)?e=!0:e&&"#text"!==b.nodeName&&!F.shouldMaskContent(b,!1)&&(e=!1);for(var d=b&&b.parentNode?b.parentNode:null,h=!0;d&&("TEXTAREA"===d.nodeType&&F.hasAttribute(d,"data-heatmap-unmask")&&(g=!1),g||"INPUT"!==d.nodeType&&"SELECT"!==d.nodeType&&"TEXTAREA"!==d.nodeType||!F.shouldMaskField(d, !1)||F.hasAttribute(d,"data-heatmap-unmask")||(g=!0),e||!h||"INPUT"===b.nodeType||"SELECT"===b.nodeType||"TEXTAREA"===b.nodeType||F.hasAttribute(b,"data-heatmap-unmask")||"#text"===b.nodeName||(F.shouldMaskContent(d,!1)?e=!0:F.hasAttribute(d,"data-heatmap-unmask")&&(h=!1)),!g||!e);)d=d.parentNode?d.parentNode:null;g&&F.isAllowedInputType(b)&&(g=!1);return{isIgnoredField:g,isIgnoredContent:e}},shouldMaskField:function(b,g){if(!b)return!1;var e=F.getAttribute(b,"type");e=e?String(e).toLowerCase():"text"; if(F.isAllowedInputType(b))return!1;var d="radio"===e||"checkbox"===e||b.nodeName&&"SELECT"===b.nodeName;if(!G)return d?!1:!0;var h=F.getAttribute(b,"name"),p=F.getAttribute(b,"id"),r=F.getAttribute(b,"autocomplete");h=V.trim(String(h)).toLowerCase().replace(/[\s_-]+/g,"");p=V.trim(String(p)).toLowerCase().replace(/[\s_-]+/g,"");r=V.trim(String(r)).toLowerCase().replace(/[\s_-]+/g,"");var t="creditcardnumber;off;kreditkarte;debitcard;kreditkort;kredietkaart; kartakredytowa;cvv;cc;ccc;cccsc;cccvc;ccexpiry;ccexpyear;ccexpmonth;cccvv;cctype;cvc;exp;ccname;cardnumber;ccnumber;username;creditcard;name;fullname;familyname;firstname;vorname;nachname;lastname;nickname;surname;login;formlogin;konto;user;website;domain;gender;company;firma;geschlecht;email;emailaddress;emailadresse;mail;epos;ebost;epost;eposta;authpw;token_auth;tokenauth;token;pin;ibanaccountnum;ibanaccountnumber;account;accountnum;auth;age;alter;tel;city;cell;cellphone;bic;iban;swift;kontonummer;konto;kontonr;phone;mobile;mobiili;mobilne;handynummer;t\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac \u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u00a2\u00e2\u20ac\u017e\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac \u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00be\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00e2\u20ac\u00a6\u00c3\u201a\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u2026\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a9l\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac \u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u00a2\u00e2\u20ac\u017e\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac \u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00be\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00e2\u20ac\u00a6\u00c3\u201a\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u2026\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a9phone;telefono;ssn;socialsecuritynumber;socialsec;socsec;address;addressline1;addressline2;billingaddress;billingaddress1;billingaddress2;shippingaddress;shippingaddress1;shippingaddress2;vat;vatnumber;gst;gstnumber;tax;taxnumber;steuernummer;adresse;indirizzo;adres;direcci\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac \u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u00a2\u00e2\u20ac\u017e\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u2026\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00b3n;osoite;address1;address2;address3;street;strasse;rue;via;ulica;calle;sokak;zip;zipcode;plz;postleitzahl;postalcode;postcode;dateofbirth;dob;telephone;telefon;telefonnr;telefonnummer;password;passwort;kennwort;wachtwoord;contrase\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac \u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u00a2\u00e2\u20ac\u017e\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac \u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00be\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00e2\u20ac\u00a6\u00c3\u201a\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u2026\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00b1a;passord;has\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac \u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u00a2\u00e2\u20ac\u017e\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u2026\u00c2\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a6\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac \u00c3\u00a2\u00e2\u201a\u00ac\u00e2\u201e\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c6\u2019\u00c3\u201a\u00c2\u00a2\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00e2\u20ac\u00a6\u00c3\u201a\u00c2\u00a1\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00ac\u00c3\u0192\u00c6\u2019\u00c3\u2020\u00e2\u20ac\u2122\u00c3\u0192\u00c2\u00a2\u00c3\u00a2\u00e2\u20ac\u0161\u00c2\u00ac\u00c3\u201a\u00c2\u00a6\u00c3\u0192\u00c6\u2019\u00c3\u00a2\u00e2\u201a\u00ac\u00c5\u00a1\u00c3\u0192\u00e2\u20ac\u0161\u00c3\u201a\u00c2\u00a1o;heslo;wagwoord;parole;contrasenya;heslo;clientid;identifier;id;consumersecret;webhooksecret;consumerkey;keyconsumersecret;keyconsumerkey;clientsecret;secret;secretq;secretquestion;privatekey;publickey;pw;pwd;pwrd;pword;paword;pasword;paswort;pass".split(";"); if("password"===e||"email"===e||"tel"===e||"hidden"===e||-1!==t.indexOf(h)||-1!==t.indexOf(p)||-1!==t.indexOf(r)||F.hasAttribute(b,"data-piwik-mask")||F.hasAttribute(b,"data-heatmap-mask")||!d&&b&&b.value&&(!e||"text"===e||"number"===e||b&&"TEXTAREA"===b.nodeName)&&(/^\d{7,24}$/.test(String(b.value))||-1!==String(b.value).indexOf("@")&&2g;g++)b+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".charAt(Math.floor(62*Math.random()));return b}},ta=ba.getWindowSize(),c={getPiwikTrackers:function(){if(null===qb&&"object"===typeof HeatmapTracker&& HeatmapTracker.getAsyncTrackers){var b=HeatmapTracker.getAsyncTrackers();return b&&b.length?b:[]}return V.isArray(qb)?qb:[]},sendQueuedData:function(b,g){if((Qb||cb)&&(hb||cb)&&(b||cb)&&(b.HeatmapSessionRecording||cb)){var e=b.HeatmapSessionRecording;if(e.isEnabled()){O.href.includes("debug")&&console.log("debugger_here");var d=!1,h=[],p=[];e.Heatmap.hsrids&&e.Heatmap.hsrids.length&&(h=e.Heatmap.hsrids,e.Heatmap.data.length&&(p=e.Heatmap.data,e.Heatmap.data=[]),d=e.Heatmap.configs[0].getdom);if(window.heatPauseBeforeSCreenshot|| d){e.Session.hsrids=e.Heatmap.hsrids;var r={lazy_load_images:!0,fadein:!0,section_height:!0,div_height:!0,capture_header:!0};void 0!=window.improvements&&(r=window.improvements);if(void 0===window.fixcontent&&void 0!=window.doscreenshot&&r.fadein||void 0===window.fixcontent&&1==d&&r.fadein)window.fixcontent=!0}if(d=e.Session.hsrids&&e.Session.hsrids.length&&k.initialDOM)if(h=h.concat(e.Session.hsrids),e.Session.data.length&&(p=p.concat(e.Session.data),e.Session.data=[],!G))for(r=p.length-1;0<=r;r--)p[r]&& p[r].ty&&9===p[r].ty&&p.splice(r,1);h.length&&e.Both.data.length&&(p=p.concat(e.Both.data),e.Both.data=[]);"undefined"===typeof g&&(g=this.shouldEndRecording(b));g&&e.hasTrackedData&&!e.hasSentStopTrackingEvent&&d&&(p.push({ty:11}),e.hasSentStopTrackingEvent=!0);if(h&&h.length&&(window.heatPauseBeforeSCreenshot||!window.FirstHSRSentToAPI||p)&&(window.heatPauseBeforeSCreenshot||!window.FirstHSRSentToAPI||p.length)){if(b.HeatmapSessionRecording.hsrIdsToGetDOM&&b.HeatmapSessionRecording.hsrIdsToGetDOM.length&& (!window.heatPauseBeforeSCreenshot&&!0===window.Heatscreenshotready&&1==Yd||window.heatPauseBeforeSCreenshot&&void 0!=window.doscreenshot&&!0===window.Heatscreenshotready)){window._heatDEBUG&&console.log("taking screenshot");if(!k.initialDOM&&$b||!window.heatPauseBeforeSCreenshot||window.heatPauseBeforeSCreenshot){d=document.body;r=document.documentElement;var t=Math.max(d.scrollHeight,d.offsetHeight,r.clientHeight,r.scrollHeight,r.offsetHeight);(new bb(U,{initialize:function(y,C){k.initialDOM=Sa.stringify({rootId:y, docHeight:t,windowHeight:window.innerHeight,children:C})}})).disconnect();"undefined"!==typeof heatmapDebugger&&heatmapDebugger.updateDomSerialization("screenshot",1);if(window._heatmapDEBUG&&window.heatmapBreakPoints["screenshot-taken"].is_active)debugger}window._heatDEBUG&&console.log(k.initialDOM);if(k.initialDOM&&window.heatSearchParams.get("idSideHsr")&&window.heatSearchParams.get("idSite")&&0==$d){$d=1;screenshotReady(k.initialDOM);return}if(k.initialDOM&&$b){for(d=0;d=b.numSentTrackingRequests||e)Ha=g+3E5; else return!0}return!1},sendQueuedDataRequestNow:async function(b,g,e,d=!1){var h="";if(0!=g.length&&-1!=Ma&&(window._heatDEBUG&&Nb&&console.log("before tasks, heatmap only"),e.filter(function(B){return 2==B.ty}),fd&&(e=e.filter(function(B){return 8!==B.ty})),fd||0{var I=hb;const A=String(Math.random()).slice(2,18);I=await this.getNewFilePath(I,A,window.generatedIdloghsr);try{return await this.uploadMutationToS3(B,I,E),I}catch(ea){return null}},r=null;(await Promise.all(e.flatMap((B,E)=>Object.keys(B).map(async I=>{var A=encodeURIComponent(B[I]);const ea={idx:E,key:I,blob:A};if("te"===I||"dom"===I)if({ty:I}=B,5===I||(6===I||13===I||8===I)&&this.S3storable(A))A=await p(A,I),ea.blob=null!==A?ed+A:null;return ea})))).forEach(({idx:B,key:E, blob:I})=>{null!=I&&(h+="&hsr_ev["+B+"]["+E+"]="+I);if(8==I||"dom"==E)Kb+="&hsr_ev["+B+"]["+E+"]="+I;if(5==I||r==B)r=B,Lb+="&hsr_ev["+B+"]["+E+"]="+I});window._heatDEBUG&&console.log(h);Xd=h;for(e=0;e{}]/g,"_");e+="&session_hsr="+Bc;e+="&heatmap_hsr="+ia;e+="&group_recording_id="+Fc?.id;e=e+"&ca=1&test_data="+Wd;e+="&hsr_return="+window.isReturningUser;e+="&lang="+navigator.language;e+="&uagent="+O.userAgent;e+="&user_agent="+O.userAgent; e+="&audit_key="+$a;e+="&trigger_client="+localStorage.getItem("pk_trigger_client");g=Ze();null!==g&&(e+="&network_time="+g.networkTime,e+="&server_time="+g.serverTime,e+="&transfer_time="+g.transferTime,e+="&dom_processing_time="+(isNaN(g.domProcessingTime)?0:g.domProcessingTime),e+="&dom_completion_time="+(isNaN(g.domCompletionTime)?0:g.domCompletionTime),e+="&on_load_time="+g.onLoadTime,e+="&page_load_time="+g.pageLoadTime);e+=d?"&IsExitEvents=true":"&NormalEvents=true";b.HeatmapSessionRecording.numSentTrackingRequests++; b.trackRequest(e,null,null,"HeatmapSessionRecording");1fa)&&g.ty&&6!==g.ty&&(fa=g.ti),0===b?e.HeatmapSessionRecording.Both.data.push(g):1===b?e.HeatmapSessionRecording.Heatmap.data.push(g):2===b&&e.HeatmapSessionRecording.Session.data.push(g))});eb&&l("recorddata",Sa.stringify(g))},stopSendingData:function(){c.getPiwikTrackers().forEach(function(b){b.HeatmapSessionRecording&&(b=b.HeatmapSessionRecording, "undefined"!==typeof b.trackingInterval&&(clearInterval(b.trackingInterval),delete b.trackingInterval))})},startSendingData:function(){c.getPiwikTrackers().forEach(function(b){if(b.HeatmapSessionRecording&&"undefined"===typeof b.HeatmapSessionRecording.trackingInterval){if(!cb||1!=window.doscreenshot){var g=V.getRandomInt(3250,5250);b.HeatmapSessionRecording.trackingInterval=setInterval(function(){c.sendQueuedData(b)},g)}c.sendQueuedData(b)}})},S3storable:function(b){return 1E4{setTimeout(()=>{setTimeout(async()=>{try{await this.sendBlobToS3InitialDom(b,h,400),p()}catch(t){r(t)}},1E3)},500)})},sendBlobToS3InitialDom:async function(b,g,e){if(cb)return!0;if(200!==e)return window.globalFunctions.GzipWebWorker(b,g),!0},sendBlobToS3Direct:async function(b,g,e){e=[];for(var d=0;dsetTimeout(t,1E3))).then(()=>{Ya.send(r,`mutation_${p}_${h}`)})}return e.length}};window.HeatSessionTracking=c;var k={moveEvents:["mousemove","touchmove"],clickEvents:["mousedown","click"],scrollEvents:"scroll resize wheel touchmove DOMMouseScroll mousewheel keydown".split(" "),exitPageEvents:["beforeunload","pagehide","visibilitychange"],lastScroll:null,lastElementScroll:null,lastMove:null,lastResize:null,scrollMaxPercentage:0, lastResizeInterval:null,lastScrollInterval:null,lastMoveInterval:null,isRecording:!1,isRecordingMutations:!1,startRecording:function(){ma&&!this.isRecording&&(this.isRecording=!0,window.saveClicksToLocal=!1,this.lastScrollInterval=setInterval(function(){if(k.lastScroll){var b=k.lastScroll;k.lastScroll=null;b={ti:b.time,ty:3,x:b.scrollX,y:b.scrollY};c.recordData(2,b)}k.lastElementScroll&&(b=k.lastElementScroll,k.lastElementScroll=null,b={ti:b.time,ty:12,s:b.selector,x:b.scrollX,y:b.scrollY},c.recordData(2, b))},200),this.lastResizeInterval=setInterval(function(){if(k.lastResize){var b=k.lastResize;k.lastResize=null;c.recordData(2,{ti:b.ti,ty:4,x:b.width,y:b.height})}},200),this.lastMoveInterval=setInterval(function(){if(k.lastMove){var b=k.lastMove;k.lastMove=null;c.recordData(0,{ti:b.time,ty:1,s:b.selector,x:b.offsetx,y:b.offsety})}},200),this.scrollEvents.forEach(function(b){S.addEventListener(b,k.onScroll,!0)}),"undefined"!==typeof window.debouncedClickHandler&&window.removeEventListener("click", window.debouncedClickHandler,!0),this.clickEvents.forEach(function(b){S.addEventListener(b,k.onClick,!0)}),this.moveEvents.forEach(function(b){S.addEventListener(b,k.onMove,!0)}),this.exitPageEvents.forEach(function(b){S.addEventListener(b,k.onExit,!0);S.addEventListener(b,k.Engagement,!0)}),Zd=setInterval(k.sendScrollData,45E3),setInterval(k.Engagement,6E4),setTimeout(k.processHeatErrorLogs,2E4))},mirror:null,initialDOM:null,startRecordingMutationsRetryCount:2,startRecordingMutations:function(){if(ma&& $b&&!this.isRecordingMutations){this.isRecordingMutations=!0;S.addEventListener("resize",k.onResize,!0);S.addEventListener("change",k.onFormChange,!0);try{this.mirror=new bb(document,{initialize:function(b,g){b={ty:5,ti:0,te:Sa.stringify({rootId:b,children:g})};k.initialDOM||(k.initialDOM=b.te,"undefined"!==typeof heatmapDebugger&&heatmapDebugger.updateDomSerialization("sessionRecording",1));c.recordData(2,b)},applyChanged:function(b,g,e,d){if(b.length||g.length||e.length||d.length){var h={ti:V.getTimeSincePageReady(), ty:6,te:{}};b.length&&(h.te.rem=b);g.length&&(h.te.adOrMo=g);e.length&&(h.te.att=e);d.length&&(h.te.text=d);h.te=Sa.stringify(h.te);c.recordData(2,h)}}})}catch(b){l(b),this.stopRecording(),this.stopRecordingMutations(),0{this.startRecordingMutations();this.startRecording()},500))}}},isMediumElement:function(b){const g=window.innerHeight;b=b.getBoundingClientRect().height;return.05=b/g},isLargeElementWithNoValidChildren:function(b){var g= window.innerHeight,e=b.getBoundingClientRect().height;if(.1e/g){b=b.children;g=!1;for(e=0;eg.bottom)},selectElementsToTrack:function(){const b=[];document.querySelector("body").querySelectorAll("*").forEach(e=> {if(!this.isElementHidden(e)){var d=[],h=0;this.isMediumElement(e)&&(d.push("Medium Element"),h=window.innerHeight,h=e.getBoundingClientRect().height/h*100);this.isLargeElementWithNoValidChildren(e)&&(d.push("Large Element with No Valid Children"),h=window.innerHeight,h=e.getBoundingClientRect().height/h*100);0{const h=e.element;d=!1;for(let p of g)if(p.some(r=>this.elementsOverlap(r.element, h))){p.push(e);d=!0;break}d||g.push([e])});return g},handleVisibilityChange:function(){window.isPageVisible=document.hidden?!1:!0;window._heatDEBUG&&console.log("Page visibility status",window.isPageVisible)},startContentEngagement:function(){this.monitoredSections=[];this.visibilityData={};this.sectionToId=new Map;this.groupToSection=new Map;this.intersectionObserver=null;window.isPageVisible=!0;this.elementGroups=this.selectElementsToTrack();this.elementGroups.forEach((b,g)=>{b.forEach((e,d)=>{e= e.element;d=`section-${g}-${d}`;const h=`group-${g}`;this.sectionToId.set(e,d);e=F.getSelector(e);try{"string"===typeof e&&(e=e.replace(/"/g,""),this.visibilityData[d]={is_visible:!1,start_time:0,duration_visible:0,elapsed_time:0,ty:15,s:window.globalFunctions.heatmapReplaceUUIDInSelector(e),groupId:h},this.groupToSection.has(h)||this.groupToSection.set(h,d))}catch(p){}})});this.intersectionObserver=new IntersectionObserver(this.handleIntersection.bind(this),{threshold:.5});this.groupToSection.forEach((b, g)=>{g=[...this.sectionToId.entries()].find(([,e])=>e===b)[0];this.intersectionObserver.observe(g)});this.startVisibilityTimer()},handleIntersection:function(b){b.forEach(g=>{const e=this.sectionToId.get(g.target),d=this.visibilityData[e].groupId;if(g.isIntersecting)this.visibilityData[e].is_visible||(this.visibilityData[e].is_visible=!0,this.visibilityData[e].start_time=Date.now());else if(this.visibilityData[e].is_visible){this.visibilityData[e].is_visible=!1;const h=(Date.now()-this.visibilityData[e].start_time)/ 1E3;this.visibilityData[e].duration_visible+=h;this.visibilityData[e].elapsed_time=h;this.visibilityData[e].start_time=0;Object.keys(this.visibilityData).forEach(p=>{this.visibilityData[p].groupId===d&&p!==e&&(this.visibilityData[p].duration_visible+=h,this.visibilityData[p].elapsed_time=h)});localStorage.setItem("contentEngagementData",JSON.stringify(this.visibilityData));"undefined"!==typeof heatmapDebugger&&heatmapDebugger.sendSignal("heatmapCDTimeInViewPort",this.visibilityData)}})},startVisibilityTimer:function(){setInterval(()=> {window.isPageVisible?this.sectionToId.forEach((b,g)=>{if("undefined"!==typeof this.visibilityData[b]&&this.visibilityData[b].is_visible){g=Date.now();const e=(g-this.visibilityData[b].start_time)/1E3;this.visibilityData[b].duration_visible+=e;this.visibilityData[b].elapsed_time=e;this.visibilityData[b].start_time=g;const d=this.visibilityData[b].groupId;Object.keys(this.visibilityData).forEach(h=>{this.visibilityData[h].groupId===d&&h!==b&&(this.visibilityData[h].duration_visible+=e,this.visibilityData[h].elapsed_time= e)});localStorage.setItem("contentEngagementData",JSON.stringify(this.visibilityData));"undefined"!==typeof heatmapDebugger&&heatmapDebugger.sendSignal("heatmapCDTimeInViewPort",this.visibilityData)}}):window._heatDEBUG&&console.log("Page is currently hidden visibility tracking is currently disabled")},5E3)},onResize:tc(function(){var b=ba.getWindowSize();k.lastResize={ti:V.getTimeSincePageReady(),width:b.width,height:b.height}},100),onFormChange:tc(function(b){if("target"in b&&b.target){var g=b.target, e=F.getTagName(g);if(e){var d=V.getTimeSincePageReady(),h=10,p=!1;if("input"===e)e=F.getAttribute(g,"type"),"radio"===String(e).toLowerCase()||"checkbox"===String(e).toLowerCase()?p=!0:h=9;else if("textarea"===e)h=9;else if("select"!==e)return;if(G||9!==h)if(e=F.getSelector(g)){var r="";p?r=g.checked?"1":"0":9===h&&"undefined"!==typeof g.value?(r=String(g.value),r>xa&&(r=r.substr(0,xa)),F.shouldMaskField(g,!0)&&(r=F.maskFormField(r,"password"===F.getAttribute(g,"type")))):10===h&&"undefined"!==typeof g.value&& (r=String(g.value));g={ti:d,ty:h,s:e,te:r};e?c.recordData(2,g):l("No selector found for text input ",b)}}}},100),onScroll:tc(function(b){P||(P=!0,k.checkTrackersIfConditionsMet());var g=V.getTimeSincePageReady();if(b&&b.type&&"scroll"===b.type&&b.target&&b.target!==U){var e=b.target;if("undefined"!==typeof e.scrollTop){b=e.scrollTop;var d=e.scrollLeft,h=F.getWidth(e),p=F.getHeight(e);!(0>=h||0>=p)&&h&&p&&(e=F.getSelector(e))&&(k.lastElementScroll={time:g,selector:e,scrollY:parseInt(1E3*b/p,10),scrollX:parseInt(1E3* d/h,10)})}}else b=parseInt(ba.getScrollTop(),10),d=parseInt(ba.getScrollLeft(),10),h=ba.getDocumentHeight(),p=ba.getDocumentWidth(),k.lastScroll={time:g,scrollY:parseInt(1E3*b/h,10),scrollX:parseInt(1E3*d/p,10)},g=parseInt(10*ba.getScrollDepthPercent(),10),Za=g>k.scrollMaxPercentage?k.scrollMaxPercentage=g:k.scrollMaxPercentage,window.userScrollData.current_smp=Za,window._heatDEBUG&&console.log("Current Scroll %:",window.userScrollData.current_smp/10),window._heatDEBUG&&console.log("Previous Max Scroll %", window.userScrollData.smp/10),22% diff"),b=c.getPiwikTrackers(),b.forEach(function(r){var t=r.HeatmapSessionRecording.Heatmap.hsrids;t=t.concat(r.HeatmapSessionRecording.Session.hsrids);c.sendQueuedDataRequestNow(r,t,[window.userScrollData])}),localStorage.setItem("userMaxScroll",Za))},100),checkTrackersIfConditionsMet:function(){for(var b=c.getPiwikTrackers(), g=0;g{const g=document.querySelectorAll("script[src]"),e=new Map;g.forEach(d=>{if(d=d.src){var h=e.get(d)||0;e.set(d,h+1);1===h&&window.hErrorLogs.push({type:"duplicateScript",src:d,count:h+1,timestamp:(new Date).toISOString(),location:window.location.href})}});return e})();const b=[];"undefined"!==typeof window.hErrorLogs&&window.hErrorLogs.length?(window.hErrorLogs.forEach(g=>{const e={type:g.type,message:"", file:"",lineno:"",colno:"",stack:"",src:"",count:"",timestamp:g.timestamp,location:window.location.href};"error"===g.type||"unhandledrejection"===g.type?(e.message=g.event.message||(g.event.reason?g.event.reason.message:"No message"),e.file=g.event.filename||(g.event.error?g.event.error.fileName:"No file"),e.lineno=g.event.lineno||(g.event.error?g.event.error.lineNumber:"No line number"),e.colno=g.event.colno||(g.event.error?g.event.error.columnNumber:"No column number"),e.stack=g.event.error?g.event.error.stack: "No stack trace"):"duplicateScript"===g.type&&(e.src=g.src,e.count=g.count);e.ty=16;c.recordData(0,e);b.push(e)}),window._heatDEBUG&&console.log("Classified Error Logs:",b)):window._heatDEBUG&&console.log("No error logs found.")}catch(b){}},onClick:function(b){var g=Date.now(),e=b.type;if(!(R&&e!==R&&100>g-Z)){R=e;Z=g;if(window._heatmapDEBUG&&window.heatmapBreakPoints["click-event"].is_active)debugger;l("click");Qa||(Qa=!0,k.checkTrackersIfConditionsMet());if("target"in b&&"pageY"in b&&"pageX"in b&& b.target){window.tagging&&window.tagging.processEvent(b,"click");e=V.getTimeSincePageReady();k.lastMove=null;var d=b.target.getRootNode(),h=d instanceof ShadowRoot;if(g=function(A){if(!h)return F.getSelector(A);try{const ea=F.getSelector(d.host);if(!ea)return null;const Ea=(ja=>{if(ja.id)return`#${ja.id}`;if(ja.className){var ya=Array.from(ja.classList).filter(Boolean);if(ya.length&&(ya=`.${ya.join(".")}`,1===d.querySelectorAll(ya).length))return ya}return(ya=ja.parentNode)?(ya=Array.from(ya.children).indexOf(ja)+ 1,`${ja.tagName.toLowerCase()}:nth-child(${ya})`):ja.tagName.toLowerCase()})(A);return`${ea} >>> ${Ea}`}catch(ea){return console.warn("Error generating shadow DOM selector: ",ea),null}}(b.target)){var p=b.target.getBoundingClientRect(),r=p.left+(document.documentElement.scrollLeft||document.body.scrollLeft),t=p.top+(document.documentElement.scrollTop||document.body.scrollTop),y=b.pageX,C=b.pageY;h&&d.host.getBoundingClientRect();r=parseInt((b.pageX-r)/p.width*2E3,10);p=parseInt((b.pageY-t)/p.height* 2E3,10);t=r+r%2;p+=p%2;eb&&(isNaN(t)||isNaN(p))&&l("could not detect x or y coordinate for selector "+g,b);e={ti:e,ty:2,s:g.replace(/"/g,""),x:t,y:p,ax:y,ay:C,name:b.target.tagName};var {rus:B,rud:E,ruap:I}=window.globalFunctions.calculateRusRud(b.target,e.s);window._RollUpDEBUG&&console.log("raw rud:",E);e.rus=I;e.rud=E;e.ruap=B;window._RollUpDEBUG&&console.log("selector:",e.s);window._RollUpDEBUG&&console.log("rus:",e.rus);window._RollUpDEBUG&&console.log("rud:",e.rud);if(window._heatmapDEBUG&& window.heatmapBreakPoints["click-event"].is_active)debugger;if(window._heatmapDEBUG&&(y=(A=>{if(!A.includes(">>>"))return document.querySelector(A);const [ea,Ea]=A.split(">>>").map(ja=>ja.trim());return document.querySelector(ea)?.shadowRoot?.querySelector(Ea)})(e.s))&&y.closest(".heatmap_ext_widget"))return console.log("Parent element includes the class.: ",e.s),!0;e.s=window.globalFunctions.heatmapReplaceUUIDInSelector(e.s);e.s=window.shouldCleanupSelectors?window.globalFunctions.HeatreplaceComplexWithNthChild(e.s): e.s;ef(tf,e)&&(e.meta1="rage");if(g&&null!==e.s&&1==window.globalFunctions.validateHeatSelector(e.s)&&"NaN"!==e.y){g="";g=h?b.target.textContent:(b=document.querySelector(e.s))?b.innerText:"";e.s=window.getParentDataAttribute(sf(e.s));if(!h&&g&&(b=g.substring(0,64),b.length))try{b=b.replace(/[^a-zA-Z\s]/g,""),b.length||"INPUT"!=e.name||(b=element.value),b=b.trim(),/add to cart|add to bag|buy now|buy it now/i.test(b)&&cc("add_to_cart","hCart"),b.toLowerCase().includes("checkout")&&cc("checkout_started", "hCheck")}catch(A){}window._heatDEBUG&&console.log("selector clicked: ",e);0<$a.length&&(b=JSON.parse(localStorage.getItem("_heat_audit_clicks"))||[],e._heat_audit_key=$a,b.push(e),localStorage.setItem("_heat_audit_clicks",JSON.stringify(b)));e.hsr=ia;e.idl=window.generatedIdloghsr;localStorage.setItem("_HEATMAP_LAST_ELEMENT_CLICKED",JSON.stringify(e));window.globalObjects.clicks.push(e);c.recordData(0,e);k.getEventTagValue(e.s);window.userEventsCounter++}else l("No selector found for click ",b)}}}}, onExit:function(b){b=V.getTimeSincePageReady();var g=[];q;localStorage.setItem("prevHsr",ia);"undefined"!==typeof Ya&&Ya.sendWSPendingRequests();if(window._heatmapDEBUG&&window.heatmapBreakPoints["onexit-events"].is_active)debugger;1E3{HeatmapTracker.HeatmapSessionRecording.configuration.assign(window.configsResponse)},2E3)}(d)):(l("cannot find piwik url for tracker or site, disabling heatmap & session recording"),d.HeatmapSessionRecording.disable(),d.HeatmapSessionRecording.hasReceivedConfig=!0)}}0===b&&this.checkAllConfigsReceived()}},assign:function(b){if(0===b.heatmaps.length){var g=da("_heatmapConfigs",window.currentHeatmapURL);g&&(window.configsResponse=g,"undefined"!==typeof g.heatmap&&(b=g?.heatmap))}window.heatmapRateLimiting&& !window.heatmapRateLimiting.events.track&&(b.heatmaps=[]);window.heatmapConfigsHasBeenAssigned=!0;0{h.getdom=!0}):g.forEach(h=>{h.getdom=1==h.force||1==h.getdom?!0:!1}),b.heatmaps=g):cb&&(b.heatmaps=[{getdom:!0,id:1,sample_rate:100}]);g=c.getPiwikTrackers();if(window._heatmapDEBUG&&window.heatmapBreakPoints["assign-fn"].is_active)debugger; for(var e=0;e