/** * Minified by jsDelivr using Terser v5.39.0. * Original file: /npm/hockeystack@1.3.207/hockeystack.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ window.HockeyStack=(()=>{"use strict";const e={};let t="https://data.hockeystack.com",o="/send";const n=[],a=[],i=document.currentScript||document.querySelector('script[src*="hockeystack.min.js"]'),r=i.getAttribute("apikey")||i.getAttribute("data-apikey");let c=1e3*i.getAttribute("data-interval-start")||5e3;const s=1e3*i.getAttribute("data-interval-increment")||2e3,l=!(!i.getAttribute("cookieless")&&!i.getAttribute("data-cookieless")&&""!==i.getAttribute("data-cookieless")),d=!(!i.getAttribute("cross-domain")&&!i.getAttribute("data-cross-domain")||l);let u=!(!i.getAttribute("auto-identify")&&!i.getAttribute("data-auto-identify"));const m=!(!i.getAttribute("only-identify")&&!i.getAttribute("data-only-identify")),h=!(!i.getAttribute("privacy-mode")&&!i.getAttribute("data-privacy-mode")&&""!==i.getAttribute("data-privacy-mode"));i.getAttribute("data-server-url")&&(t=i.getAttribute("data-server-url"));const g=window.location.search.includes("hsdebug=true");if(e.cookieless=l,!r)return void console.error("HockeyStack: No API key provided");if(["d7a8d720de58efe016822c1390cebb","3f5faca79c311a7348a04aa7389bcb"].includes(r))return;["695accfb6c874ac0d46cf9c7b3303f","78f842f2350d245dd06df65bfa49b9","82ee9e4a8b15fc058046998d5e9fbe"].includes(r)&&(u=!0),[].includes(r)&&(t="https://data.hockeystack.com",o="/send-fast"),g&&console.log("HockeyStack: debug mode is on");let p,f,y=0,k=!1,b=0,w=new Date,v=!1,S=[];i.getAttribute("data-identity")&&(f=i.getAttribute("data-identity"));const x=document,C=navigator,A=window;let j,q,I;const H=()=>(A.location.origin+A.location.pathname+A.location.search+A.location.hash).toLowerCase(),O=()=>{try{const e=localStorage.getItem("hs_tracking_enabled");return null===e||"true"===e}catch(e){return!0}},N=e=>{try{localStorage.setItem("hs_tracking_enabled",e.toString()),g&&console.log("HockeyStack tracking state set to:",e)}catch(e){g&&console.log("Failed to set tracking state in localStorage:",e.message)}};let _=H();const L=(e,o,n)=>{const a="object"==typeof C&&"function"==typeof C.sendBeacon&&"function"==typeof Blob&&"50fcf52eca5476546b54230ccbaea2"!==r;if(!O())return void(g&&console.log("HockeyStack tracking is disabled, skipping request"));if(g&&console.log("Send request via beacon",JSON.stringify(o),a),!a)return T(e,o),!1;let i=!1;const c=new Blob([JSON.stringify(o)],{type:"application/json"}),s=`${t}${e}`;try{i=C.sendBeacon(s,c)}catch(e){g&&console.log("Error while sending request via beacon: ",e.message),n||E(e,{operation:"sendReqViaBeacon",requestObj:o,serverUrl:s}),i=!1}return g&&console.log("Sent request via beacon",i),i||T(e,o,n),i},T=(e,o,n)=>{if(0===a.length)return!1;if(!O())return void(g&&console.log("HockeyStack tracking is disabled, skipping request"));let i=!0;const r=`${t}${e}`,c=new XMLHttpRequest;try{c.open("POST",r,!0),c.setRequestHeader("Content-Type","text/plain; charset=UTF-8"),c.send(JSON.stringify(o)),c.onreadystatechange=()=>!0}catch(e){n||E(e,{operation:"sendReqViaBeacon",requestObj:o,serverUrl:r}),i=!1}return i},E=(e,t)=>{const o={error:e.message,apiKey:r,page:window.location.href,metadata:t};L("/send-error",o,!0)};try{e.init=function(n){if(!V()&&!C.webdriver){try{0}catch(e){return}e.apiKey=n,w=new Date,p="phone"===Q(C.userAgent.toLowerCase()),K("hs_uuid")||l?K("hs_uuid")&&l&&(I=K("hs_uuid"),z("hs_uuid")):B("hs_uuid",R(),365),j={website:window.location.hostname,apiKey:e.apiKey,isFingerprint:l,debugMode:g,serverPath:o,serverURL:t,version:"1.3.168"},q=W(),Z(),re(),D("enter-page",null),P("beacon");try{ie()}catch(e){E(e,{operation:"trackContentSchema"})}e.trackSession(),e.sendIntervalData()}},e.sendIntervalData=function(){setTimeout((()=>{x.hasFocus()?(c+=s,e.endSession(!0),e.sendIntervalData()):e.sendIntervalData()}),c)},e.endSession=function(e){let t=oe()?parseInt(b/(ee()-te())*100):100;if(t>100&&(t=100),k&&(void 0===e||!e))return D("scroll-depth",null,t),D("end-session"),void P("beacon");if(!k&&void 0!==e&&e)return D("scroll-depth",null,t),void P("beacon");let o=x.activeElement.href;if(J(o)&&_!==o){o=o.split("#")[0];const e=H();o.startsWith("http")&&e!==o&&(D("scroll-depth",null,t),P("beacon"))}else D("scroll-depth",null,t),D("end-session"),P("beacon")},e.trackSession=()=>{k=!1,i(A,"pagehide",(()=>{v||(v=!0,e.endSession())})),p&&i(A,"pageshow",(t=>{t.persisted&&e.init(e.apiKey)}));let t=x.hasFocus();function o(t,o){const n=t.trim();g&&console.log("identifyThroughForm fired",n);let a={};try{a=ne(o)}catch(e){E(e,{operation:"identifyThroughForm/getClickInfo"})}$(n)&&(e.identify(n),e.goal("Identified from Form",{email:M(n),...JSON.parse(JSON.stringify(a))}))}function n(t){if(!window.innerPageClick)return;let n;s();try{n=ne(t.target),D("onclick",null,n)}catch(e){E(e,{operation:"onClickFunc/getClickInfo"})}!function(t){const n=t.closest("button")||t.closest("a");if(!n)return;if("A"===n.nodeName&&!n.className.includes("button"))return;g&&console.log("checkSubmitClickInForm fired",n);const i=t.closest("form");if(i){g&&console.log("found form",i);const e=i.elements;let t=!0;for(let n=0;n"onsubmit"===e.action.actionType));if(t&&!c&&("submit"===n.type||r)){let e={};try{e=ne(i)}catch(e){E(e,{operation:"checkSubmitClickInForm/getClickInfo"})}const t=JSON.parse(JSON.stringify(e));D("onsubmit",null,{...t,eventSource:"checkSubmitClickInForm"})}}else if(u){const t=[...document.querySelectorAll("input")];g&&console.log("found all inputs to search for email",t),t.forEach((t=>{if("email"!==t.type&&!t.placeholder?.toLowerCase().includes("email")&&!t.name?.toLowerCase().includes("email"))return;const o=t.value.trim();$(o)&&e.identify(o)}))}}(t.target),F()}setInterval((()=>{t!==x.hasFocus()&&(t=x.hasFocus(),t?(v=!1,s()):p&&!v&&(v=!0,e.endSession()))}),500),i(A,"message",(t=>{if(t.data&&"hockeystack-identify"===t.data.name&&t.data.email)e.identify(t.data.email);else if(t.data&&"hockeystack-onsubmit"===t.data.name&&t.data.element&&t.source!==window)D("onsubmit",null,{element:t.data.element,eventSource:"hockeystack-onsubmit"});else if(t.data&&"hockeystack-identify-form"===t.data.name&&t.data.value)o(t.data.value,null);else if(t.data&&"hsFormCallback"===t.data.type&&"onFormSubmit"===t.data.eventName){if(u){const o=t.data.data.find((e=>"email"===e.name)).value;e.identify(o)}D("onsubmit",null,{element:"#hsForm_"+t.data.id,eventSource:"hsFormCallback"})}else{if(!t.data||!t.data.meetingBookSucceeded)return;if(u){const o=t.data.meetingsPayload.bookingResponse.postResponse.contact.email;e.identify(o)}e.goal("Meeting Booked on Website",{integration:"HubSpot"})}})),i(A,"klaviyoForms",(t=>{const o=t.detail.metaData;if(o){if(u){const t=o.$email;e.identify(t)}e.goal("Submit Klaviyo Form",{integration:"Klaviyo",klaviyoFormId:t.detail.formId})}}));let r=0;function c(e){s(),g&&console.log("onsubmit fired");const t=e.target;let n={};try{n=ne(t)}catch(e){E(e,{operation:"onSubmitFunc/getClickInfo"})}if(!n||!n.element.startsWith("#hsForm_"))try{const a=t.elements;for(let e=0;e6e5&&(k=!0,e.endSession()),w=new Date,y=0,k&&setTimeout((()=>{x.hasFocus()&&e.init(e.apiKey)}),5e3),k=!1}i(document,"mouseover",(()=>{window.innerPageClick=!0})),i(document,"mouseleave",(()=>{window.innerPageClick=!1})),i(A,"mousemove",s),i(A,"mousedown",(e=>n(e))),i(A,"scroll",(e=>(s(),r=Math.max(r,window.scrollY,document.body.scrollTop,document.documentElement.scrollTop),void(r>b&&(b=r))))),i(A,"keydown",s),S=[...document.querySelectorAll("form")],S.forEach((e=>i(e,"submit",(e=>c(e))))),setInterval((()=>{const e=[...document.querySelectorAll("form")].filter((e=>!S.includes(e)));e.forEach((e=>i(e,"submit",(e=>c(e))))),S=S.concat(e)}),5e3),i(A,"submit",(e=>{S.includes(e.target)||c(e)}));const l=setInterval((()=>{y++,y>=10&&(clearInterval(l),k=!0,e.endSession())}),6e4)},e.identify=(e,t)=>{g&&console.log("Identify called with",e,t),"string"==typeof e?(e=M(e),f=e,q.identity=e,window.parent&&window.parent.postMessage&&window.parent.postMessage({name:"hockeystack-identify",identity:f},"*")):"object"==typeof e&&(q.custom=Object.assign(q.custom||{},e)),t&&"object"==typeof t&&(q.custom=Object.assign(q.custom||{},t)),D("identify",null)},e.addSharedProperty=({key:e,value:t,properties:o})=>{const n={key:e,value:t,properties:o};g&&console.log("Shared property called with",JSON.stringify(n));try{const t=q.shared.findIndex((t=>t.key===e));-1!==t?q.shared.splice(t,1,n):q.shared.push(n)}catch(e){E(e,{operation:"addSharedProperty",sharedObject:n})}},e.goal=(e,t={},o)=>{g&&console.log("Goal called with",e,JSON.stringify(t),o);const n=A.location.origin+A.location.pathname+A.location.search,i={actionName:e,actionProperties:t,actionType:"custom",actionDate:o?new Date(o).toISOString():k?new Date(w.getTime()).toISOString():(new Date).toISOString()};a.push({action:i,url:n.toLowerCase()})},e.toggleTracking=e=>{if(void 0===e){const e=O();return N(!e),g&&console.log("HockeyStack tracking toggled to:",!e),!e}return N(!!e),g&&console.log("HockeyStack tracking set to:",!!e),!!e};const i=(e,t,o)=>{!["submit","change"].includes(t)&&n.includes(t)||(g&&console.log("Adding event listener for",t,"on",e),void 0!==e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent("on"+t,o),n.push(t))},F=()=>{if(H()!==_){const e=oe()?parseInt(b/(ee()-te())*100):100;D("scroll-depth",_,e),D("enter-page",null),P("beacon")}_=H()};setInterval((()=>{F()}),500);const D=(e,t,o)=>{g&&console.log("Creating action",e,t,JSON.stringify(o));const n=t||H(),i=_;if(m&&"identify"!==e)return;const r={actionType:e,actionDate:k?new Date(w.getTime()).toISOString():(new Date).toISOString()};if("onclick"===e){if(r.actionElement=o.element,o.text&&(r.actionText=o.text),o.url&&(r.actionUrl=o.url,o.url===n&&n!==i))return void D("onclick",i,o)}else"onsearch"===e?(r.actionValue=o.value,r.actionElement=o.element):"scroll-depth"===e?r.actionNumber=o||100:"onsubmit"===e&&(r.actionElement=o.element);["enter-page","scroll-depth"].includes(e)||n===_||F(),a.push({action:r,url:n.toLowerCase()}),"onsubmit"!==e&&"identify"!==e||P("beacon")},M=e=>h?ae(e.toLowerCase()):e.toLowerCase(),P=e=>{if(V()||C.webdriver)return;if(0===a.length)return;const t=JSON.parse(JSON.stringify(a)),n=G(H(),document.referrer),i={customerObject:j,userObject:q,actionLog:t,referrer:n};let r;r="beacon"===e?L(o,i):T(o,i),r&&(a.length=0)},J=e=>{if(void 0===e)return!1;let t;try{t=new URL(e)}catch(t){return E(t,{operation:"sameSite/newURL",uri:e}),!1}return A.location.hostname===t.hostname},R=()=>K("hs_uuid")||U(),U=()=>{let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){const o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?o:3&o|8).toString(16)}))},$=e=>String(e).toLowerCase().match(/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/),B=(e,t,o)=>{const n=new Date;n.setDate(n.getDate()+o);const a=t+(null==o?"":"; expires="+n.toUTCString())+"; path=/;SameSite=Lax"+(d?`;domain=${window.location.hostname}`:"");x.cookie=e+"="+a},K=e=>{let t,o,n;const a=x.cookie.split(";");for(t=0;t{document.cookie=`hs_uuid=; expires=${new Date("2020-01-01")}`,document.cookie.includes("hs_uuid")&&(document.cookie="hs_uuid=;")},G=(e,t)=>/(\?.*utm_.*=)/.test(e)||/((\?|&)ref=)/.test(e)||/((\?|&)(gclid|fbclid|msclkid)=)/.test(e)?e:""!==t?t:"",V=()=>{const e=C.userAgent.toLowerCase();return A.location.search.includes("disable_abtestingai")||/(preview|funnelytics|crawl|hexometer|curl|lynx|ptst|nuhk|googlebot|googlesecurityscanner|gtmetrix|slurp|ask jeeves\/teoma|ia_archiver|google web preview|mediapartners-google|baiduspider|ezooms|yahooseeker|altavista|mercator|scooter|infoseek|ultraseek|lycos|wget|yadirectfetcher|magpie-crawler|nutch crawler|cms crawler|domnutch|netseer|digincore|fr-crawler|wesee|aliasio|bingpreview|headlesschrome|facebookexternalhit|facebookplatform|facebookexternalua|bot|crawler|sp(i|y)der|search|worm|fetch|nutch)/i.test(e)},Q=e=>/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/i.test(e)?"tablet":/(mobi|ipod|phone|blackberry|opera mini|fennec|minimo|symbian|psp|nintendo ds|archos|skyfire|puffin|blazer|bolt|gobrowser|iris|maemo|semc|teashark|uzard)/i.test(e)?"phone":"desktop",W=()=>({language:C.language,platform:C.platform,uuid:l?I:R(),...l&&{screen:{availHeight:A.screen.availHeight,height:A.screen.height,width:A.screen.width,depth:A.screen.colorDepth+A.screen.pixelDepth},mimeTypes:X(),plugins:Y(),storageEnabled:(!!localStorage).toString()+!!indexedDB+C.cookieEnabled,otherInfo:C.hardwareConcurrency+C.javaEnabled()},identity:f,custom:{},shared:[]}),Z=t=>{const o=[...new URLSearchParams(window.location.search)].find((e=>{let o=!1;const n=e[0].toLowerCase();return o=t?n===t:n.includes("email"),!(!o||(g&&console.log("Possible identify through URL: ",JSON.stringify(e)),!$(e[1])))}));o&&o[1]&&e.identify(o[1])},X=()=>{let e="";const t=C.mimeTypes||[];for(const o of t)e+=o.type;return e},Y=()=>{let e="";for(const t of navigator.plugins)e+=t.filename;return e},ee=()=>{const e=x;return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))},te=()=>{const e=x;return Math.min(Math.min(e.body.clientHeight,e.documentElement.clientHeight),Math.min(e.body.offsetHeight,e.documentElement.offsetHeight),window.innerHeight)},oe=()=>A.innerHeight?Math.max(x.body.scrollHeight,x.documentElement.scrollHeight)>A.innerHeight:x.documentElement.scrollHeight>x.documentElement.offsetHeight||x.body.scrollHeight>x.body.offsetHeight,ne=e=>{const t=[];let o="",n="";if(!e)return{};if(e.placeholder)o=e.placeholder;else if(e.innerText){let t=e.innerText.replace(/\n/g," ");t.length>103&&(t=t.substring(0,100)+"..."),o=t}else"input"!==e.tagName.toLowerCase()||"button"!==e.type&&"submit"!==e.type||(o=e.value);for(o=o.trim(),e.src?n=e.src:e.href&&""!==e.href&&(n=e.href),n=n.trim();e.parentNode;){let o=e.tagName.toLowerCase();if(e.id){o="#"+e.id,t.unshift(o);break}{const n=(1===e.nodeType&&"http://www.w3.org/2000/svg"===e.namespaceURI?e.className?e.className.baseVal:e.getAttribute("class"):[...e.classList].join(" ")).trim()||"";""!==n&&(o+="."+n.replace(/ +/g,".").replace(/[:/]|\.[0-9]|\[|\]|%|~|=|&|#|@|`/g,"\\$&"));const a=e.parentElement;if(a){const t=a.querySelectorAll(o);if(t.length>1)for(let n=0;n{const t=(e,t)=>e<>>32-t,o=e=>{let t,o,n="";for(t=7;t>=0;t--)o=e>>>4*t&15,n+=o.toString(16);return n};let n,a,i;const r=new Array(80);let c,s,l,d,u,m,h=1732584193,g=4023233417,p=2562383102,f=271733878,y=3285377520;const k=(e=(e=>{e=e.replace(/\r\n/g,"\n");let t="";for(let o=0;o127&&n<2048?(t+=String.fromCharCode(n>>6|192),t+=String.fromCharCode(63&n|128)):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128),t+=String.fromCharCode(63&n|128))}return t})(e)).length,b=[];for(a=0;a>>29),b.push(k<<3&4294967295),n=0;n{const t=document.querySelector("script.yoast-schema-graph");if(t&&t.innerText){const o=JSON.parse(t.innerText)["@graph"].find((e=>"Article"===e["@type"])),n=JSON.parse(t.innerText)["@graph"].find((e=>"BreadcrumbList"===e["@type"])),a=JSON.parse(t.innerText)["@graph"].find((e=>"Person"===e["@type"]));o?e.goal("View Content",{content_category:o.articleSection[0],content_author:o.author&&o.author.name||a&&a.name,content_title:o.headline,content_url:new URL(o.mainEntityOfPage["@id"]).pathname}):n&&n.itemListElement.some((e=>e.name.toLowerCase().includes("blog")))&&e.goal("View Content",{content_author:a&&a.name,content_title:document.title,content_url:window.location.pathname})}},re=()=>{const e=e=>{const t=e.value.trim();t&&window.HockeyStack.identify(t)},t=()=>{if(!(o>5e3||"undefined"!=typeof jQuery))return o+=50,void setTimeout(t,50);try{"function"==typeof jQuery&&jQuery(document).on("gform_page_loaded",(function(t,o,n){const a=document.querySelector(`#gform_${o} input[type="email"]`);window.HockeyStack.goal("Move to New Page",{formId:o,page:n,integration:"Gravity Forms"}),a&&e(a)})),window.addEventListener("click",(t=>{const o=t.target.closest("form");if(!(o&&o.id&&o.id.includes("gform")))return;const n=o.id.replace("gform_","");if(window[`gf_submitting_${n}`]){window.HockeyStack.goal("Submit Gravity Form",{formId:n,integration:"Gravity Forms"});const t=o.querySelector('input[type="email"]');t&&e(t)}}))}catch(e){E(e,{operation:"processGForms"})}};let o=0;t()};return r&&e.init(r),(()=>{const e=e=>{if(!r)return;if(document.querySelector(`script[src*="${e}"]`))return;g&&console.log("Creating script",e);const t=document.createElement("script");t.src=e,t.async=1,t.dataset.apikey=r,t.dataset.cookieless=1,t.dataset.autoGenerated=!0,document.getElementsByTagName("head")[0].append(t)},t=()=>{const t=!!document.querySelector('iframe[src*="demo.arcade.software"]'),o=!!document.querySelector('script[src*="heyflow.app"]'),n=!!document.querySelector('script[src*="j.6sc.co/6si.min.js"]'),a=!!document.querySelector('script[src*="tag.demandbase.com"]'),i=!!new URLSearchParams(window.location.search).get("event_type_uuid"),r=!!document.querySelector('script[src*="qualified"]'),c=!!document.querySelector('script[src*="insent.ai"]'),s=!!document.querySelector('script[src*="js.navattic.com"]'),l=!!document.querySelector('script[src*="js.driftt.com"]'),d=!!document.querySelector('script[src*="pi.pardot.com"]'),u=!!window.MktoForms2;t&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-arcade.min.js"),o&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-heyflow.min.js"),n&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-6sense.min.js"),a&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-demandbase.min.js"),i&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-calendly.min.js"),r&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-qualified.min.js"),c&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-zoominfo-chat.min.js"),s&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-navattic.min.js"),l&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-drift.min.js"),u&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-marketo-forms.min.js"),d&&e("https://cdn.jsdelivr.net/npm/hockeystack@latest/hockeystack-pardot.min.js")};"complete"!==document.readyState&&"interactive"!==document.readyState||t(),window.addEventListener("load",(()=>{t();let e=0;const o=()=>{setTimeout((()=>{50!==e&&(e++,t(),o())}),200)};o()}))})(),e}catch(e){E(e,{operation:"general"})}})(),window.hockeystackQueue&&window.hockeystackQueue.forEach((e=>e())); //# sourceMappingURL=/sm/95963ff78cc4a5dd0dfd03d054b5a6fa52fedddc606c45466075c8e49d9a2beb.map