@gemx-dev/clarity-js 0.8.85 → 0.8.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(){"use strict";var t=Object.freeze({__proto__:null,get flush(){return jn},get queue(){return Pn},get start(){return Xn},get stop(){return Yn},get track(){return Tn}}),e=Object.freeze({__proto__:null,get data(){return gr},get start(){return mr},get stop(){return wr},get upgrade(){return yr}}),n=Object.freeze({__proto__:null,get check(){return kr},get compute(){return xr},get data(){return hr},get start(){return _r},get stop(){return Sr},get trigger(){return Tr}}),r=Object.freeze({__proto__:null,get compute(){return Pr},get data(){return Or},get log(){return Xr},get reset(){return jr},get start(){return Ir},get stop(){return Mr},get updates(){return Er}}),a=Object.freeze({__proto__:null,get compute(){return qr},get config(){return Ar},get consent(){return Wr},get data(){return Yr},get start(){return zr},get stop(){return Dr},get trackConsentv2(){return Lr}}),o=Object.freeze({__proto__:null,get callback(){return ia},get callbacks(){return Fr},get clear(){return oa},get consent(){return ea},get consentv2(){return na},get data(){return Ur},get electron(){return Vr},get id(){return ta},get metadata(){return $r},get save(){return ua},get shortid(){return sa},get start(){return Zr},get stop(){return Qr}}),i=Object.freeze({__proto__:null,get data(){return pa},get envelope(){return ga},get start(){return ha},get stop(){return va}}),u={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,modules:[],diagnostics:!1,externalSession:!1,userId:null,sessionId:null};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(){return performance.now()+performance.timeOrigin}function d(t){void 0===t&&(t=null);var e=0===s?l():s,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var f="0.8.85";function p(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2){if(r=(r<<5)+r^t.charCodeAt(o),o+1<t.length)a=(a<<5)+a^t.charCodeAt(o+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var h=/\S/gi,v=255,g=!0,m=null,y=null,w=null;function b(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,o=!1,i=null;O();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=g&&null!==w?s.match(w)?s:x(s,"▪","▫"):T(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):T(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return T(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):T(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return x(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function _(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=u.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),i=o[0],c=o[1];r=i+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,v)),r}function k(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function T(t){return t.replace(h,"•")}function x(t,e,n){return O(),t?t.replace(y,e).replace(m,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function O(){if(g&&null===m)try{m=new RegExp("\\p{N}","gu"),y=new RegExp("\\p{L}","gu"),w=new RegExp("\\p{Sc}","gu")}catch(t){g=!1}}var E=null,N=null,I=!1;function M(){I&&(E={time:d(),event:4,data:{visible:N.visible,docWidth:N.docWidth,docHeight:N.docHeight,screenWidth:N.screenWidth,screenHeight:N.screenHeight,scrollX:N.scrollX,scrollY:N.scrollY,pointerX:N.pointerX,pointerY:N.pointerY,activityTime:N.activityTime,scrollTime:N.scrollTime,pointerTime:N.pointerTime,moveX:N.moveX,moveY:N.moveY,moveTime:N.moveTime,downX:N.downX,downY:N.downY,downTime:N.downTime,upX:N.upX,upY:N.upY,upTime:N.upTime,pointerPrevX:N.pointerPrevX,pointerPrevY:N.pointerPrevY,pointerPrevTime:N.pointerPrevTime,modules:N.modules}}),N=N||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0,modules:null}}function X(t,e,n,r){switch(t){case 8:N.docWidth=e,N.docHeight=n;break;case 11:N.screenWidth=e,N.screenHeight=n;break;case 10:N.scrollX=e,N.scrollY=n,N.scrollTime=r;break;case 12:N.moveX=e,N.moveY=n,N.moveTime=r,N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r;break;case 13:N.downX=e,N.downY=n,N.downTime=r,N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r;break;case 14:N.upX=e,N.upY=n,N.upTime=r,N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r;break;default:N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r}I=!0}function P(t){N.activityTime=t}function j(t,e){N.visible=e,N.visible||P(t),I=!0}function Y(t){N.modules=Array.from(t),I=!0}function C(){I&&br(4)}var z=Object.freeze({__proto__:null,activity:P,compute:C,dynamic:Y,reset:M,start:function(){I=!1,M()},get state(){return E},stop:function(){M()},track:X,visibility:j}),D=null;function H(t,e){Ya()&&t&&"string"==typeof t&&t.length<255&&(D=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},br(24))}var A,W=null,R=null;function L(t){t in W||(W[t]=0),t in R||(R[t]=0),W[t]++,R[t]++}function q(t,e){null!==e&&(t in W||(W[t]=0),t in R||(R[t]=0),W[t]+=e,R[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in W||(W[t]=0),(e>W[t]||0===W[t])&&(R[t]=e,W[t]=e))}function F(t,e,n){return window.setTimeout(wa(t),e,n)}function V(t){return window.clearTimeout(t)}var G=0,J=0,B=null;function Z(){B&&V(B),B=F(K,J),G=d()}function K(){var t=d();A={gap:t-G},br(25),A.gap<3e5?B=F(K,J):Xa&&(H("clarityGemX","suspend"),Ra(),["mousemove","touchstart"].forEach((function(t){return _a(document,t,Ca)})),["resize","scroll","pageshow"].forEach((function(t){return _a(window,t,Ca)})))}var Q=Object.freeze({__proto__:null,get data(){return A},reset:Z,start:function(){J=6e4,G=0},stop:function(){V(B),G=0,J=0}}),$=null;function tt(){br(36)}function et(){$={}}var nt=Object.freeze({__proto__:null,compute:tt,get data(){return $},reset:et,start:function(){$={}},stop:function(){$={}},track:function(t,e){if(t in $){var n=$[t],r=n[n.length-1];e-r[0]>100?$[t].push([e,0]):r[1]=e-r[0]}else $[t]=[[e,0]]}}),rt=function(){return rt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},rt.apply(this,arguments)};function at(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))}function ot(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var it="CompressionStream"in window;function ut(t){return at(this,void 0,void 0,(function(){var e,n;return ot(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),it?(e=new ReadableStream({start:function(e){return at(this,void 0,void 0,(function(){return ot(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ct(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function ct(t){return at(this,void 0,void 0,(function(){var e,n,r,a,o;return ot(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],r=!1,a=[],i.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return o=i.sent(),r=o.done,a=o.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var st=null;function lt(t,e){ft(t,"string"==typeof e?[e]:e)}function dt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),at(this,void 0,void 0,(function(){var a,o;return ot(this,(function(i){switch(i.label){case 0:return o={},[4,vt(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(x(u.substring(2),"*","*")):x(u,"*","*")),ft("userId",[(a=o).userId]),ft("userHint",[a.userHint]),ft("userType",[gt(t)]),e&&(ft("sessionId",[e]),a.sessionId=e),n&&(ft("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ft(t,e){if(Ya()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in st?st[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);st[t]=n}}function pt(){br(34)}function ht(){st={}}function vt(t){return at(this,void 0,void 0,(function(){var e;return ot(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function gt(t){return t&&t.indexOf("@")>0?"email":"string"}var mt=Object.freeze({__proto__:null,compute:pt,get data(){return st},identify:dt,reset:ht,set:lt,start:function(){ht()},stop:function(){ht()}});var yt,wt={};function bt(t){var e=t.error||t;return e.message in wt||(wt[e.message]=0),wt[e.message]++>=5||e&&e.message&&(yt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},_t(31)),!0}function _t(t){return at(this,void 0,void 0,(function(){var e;return ot(this,(function(n){switch(e=[d(),t],t){case 31:e.push(yt.message),e.push(yt.line),e.push(yt.column),e.push(yt.stack),e.push(_(yt.source)),Pn(e);break;case 33:kt&&(e.push(kt.code),e.push(kt.name),e.push(kt.message),e.push(kt.stack),e.push(kt.severity),Pn(e,!1))}return[2]}))}))}var kt,Tt={};function xt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var o=n?"".concat(n,"|").concat(r):"";t in Tt&&Tt[t].indexOf(o)>=0||(kt={code:t,name:n,message:r,stack:a,severity:e},t in Tt?Tt[t].push(o):Tt[t]=[o],_t(33))}var St={},Ot=new Set,Et={},Nt={},It={},Mt={};function Xt(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",o=e.length>1?JSON.parse(e[1]):{};for(var i in Et[r]={},Nt[r]={},It[r]={},Mt[r]=a,o){var u=parseInt(i),c=o[i],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);Et[r][u]=zt(l);break;case 2:Nt[r][u]=c;break;case 4:var d=c.slice(1);It[r][u]=d}}}catch(t){xt(8,1,t?t.name:null)}}function Pt(t){return JSON.parse(JSON.stringify(t))}function jt(){try{for(var t in Et){var e=parseInt(t);if(""==Mt[e]||document.querySelector(Mt[e])){var n=Et[e];for(var r in n){var a=parseInt(r),o=(m=Dt(Pt(n[a])))?JSON.stringify(m).slice(0,1e4):m;o&&Ct(e,a,o)}var i=Nt[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var f=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");Ct(e,s,(c?p(f).trim():f).slice(0,1e4))}}var h=It[e];for(var v in h){var g=parseInt(v);Ct(e,g,(void h[g]).trim().slice(0,1e4))}}}Ot.size>0&&br(40)}catch(t){xt(5,1,t?t.name:null)}var m}function Yt(){Ot.clear()}function Ct(t,e,n){var r,a=!1;t in St||(St[t]={},a=!0),r=It[t],0==Object.keys(r).length||e in St[t]&&St[t][e]==n||(a=!0),St[t][e]=n,a&&Ot.add(t)}function zt(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),o=r.indexOf("{"),i=r.indexOf("}");e.push({name:a>0?r.slice(0,a):o>0?r.slice(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.slice(o+1,i):null})}return e}function Dt(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,r=t.shift();if(e&&e[r.name]){var a=e[r.name];if(1!==r.type&&Ht(a,r.condition))n=Dt(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(Ht(c,r.condition)){var s=Dt(t,c);s&&o.push(s)}}n=o}return n}return null}function Ht(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var At=Object.freeze({__proto__:null,clone:Pt,compute:jt,data:St,keys:Ot,reset:Yt,start:function(){Yt()},stop:function(){Yt()},trigger:Xt,update:Ct});function Wt(t,e){try{return!!t[e]}catch(t){return!1}}function Rt(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var Lt=null,qt="^";function Ut(t,e){var n;if(void 0===e&&(e=!1),Wt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=Rt(o[1]),u=i[0],c=i[1];u;)u=(n=Rt(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Ft(t,e,n){if((u.track||""==e)&&(navigator&&navigator.cookieEnabled||Wt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===Lt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Lt=".".concat(c[s]).concat(Lt||""),s<c.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(Lt),Ut(t)===e))return;Lt=""}}catch(t){Lt=""}document.cookie=Lt?"".concat(i).concat(";").concat("domain=").concat(Lt):i}}var Vt=Object.freeze({__proto__:null,COOKIE_SEP:qt,getCookie:Ut,setCookie:Ft,start:function(){Lt=null},stop:function(){Lt=null}}),Gt={excludeClassNames:[]},Jt=rt({},Gt);var Bt=Object.freeze({__proto__:null,get:function(){return Jt},set:function(t){Jt=rt(rt({},Jt),t)},start:function(){var t,e;Jt={excludeClassNames:null!==(e=null===(t=null===window||void 0===window?void 0:window.GemXHeatmap)||void 0===t?void 0:t.excludeClassNames)&&void 0!==e?e:[]}},stop:function(){Jt=rt({},Gt)}}),Zt=null;function Kt(t){try{if(!Zt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Zt(t)}))}catch(t){}}var Qt=[Bt,z,r,mt,n,nt,Vt,a,o,i,t,Q,e,At];function $t(){W={},R={},L(5),Qt.forEach((function(t){return wa(t.start)()}))}function te(){Qt.slice().reverse().forEach((function(t){return wa(t.stop)()})),W={},R={}}function ee(){pt(),C(),Pr(),br(0),tt(),xr(),jt(),qr()}var ne=[],re=null;var ae=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:re,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:ne,stop:function(){}}),oe=[],ie=null,ue=null,ce=null;function se(){oe=[],ie=null,ue=null}function le(t,e){return void 0===e&&(e=0),at(this,void 0,void 0,(function(){var n,r,a;return ot(this,(function(o){for(n=0,r=oe;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){oe[1===e?"unshift":"push"]({task:t,resolve:n,id:ta()})})),null===ie&&null===ue&&de(),[2,a]}))}))}function de(){var t=oe.shift();t&&(ie=t,t.task().then((function(){t.id===ta()&&(t.resolve(),ie=null,de())})).catch((function(e){t.id===ta()&&(e&&xt(0,1,e.name,e.message,e.stack),ie=null,de())})))}var fe=["input","textarea","radio","button","canvas","select"],pe=/VM\d/,he=[];function ve(t,e,n){var r,a=document.documentElement,o="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null,c=ur(n),s=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(c),l=we(c);0===n.detail&&l&&(o=Math.round(l.x+l.w/2),i=Math.round(l.y+l.h/2));var f=function(t,e,n,r){if(!r)return{eX:0,eY:0};var a=r,o=t,i=Math.max(Math.floor((e-a.x)/a.w*32767),0),u=Math.max(Math.floor((n-a.y)/a.h*32767),0),c=0;for(;(i>32767||u>32767)&&o.parentElement&&c<10;)c++,(a=we(o=o.parentElement))&&(i=Math.max(Math.floor((e-a.x)/a.w*32767),0),u=Math.max(Math.floor((n-a.y)/a.h*32767),0));return{eX:i,eY:u}}(c,o,i,l),p=f.eX,h=f.eY;if(null!==o&&null!==i){var v=function(t){var e=null,n=!1;if(t){var r=ge(t)||String(t.value||"")||t.alt;if(r){var a=r.replace(/\s+/g," ").trim();n=(e=a.substring(0,25)).length===a.length}}return{text:e,isFullText:n?1:0}}(c);if(u.diagnostics){var g=c;console.log("[clarity:click] text debug",{tag:null==g?void 0:g.tagName,id:(null==g?void 0:g.id)||null,class:(null==g?void 0:g.className)||null,rawTextContent:(null===(r=null==g?void 0:g.textContent)||void 0===r?void 0:r.replace(/\s+/g," ").trim().substring(0,100))||null,inputValue:(null==g?void 0:g.value)||null,altText:(null==g?void 0:g.alt)||null,resolvedText:v.text,isFullText:v.isFullText,x:o,y:i})}he.push({time:d(n),event:t,data:{target:c,x:o,y:i,eX:p,eY:h,button:n.button,reaction:me(c),context:be(s),text:v.text,link:s?s.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:v.isFullText,w:l?l.w:0,h:l?l.h:0,tag:ye(c,"tagName").substring(0,10),class:ye(c,"className").substring(0,50),id:ye(c,"id").substring(0,25),source:u.diagnostics&&!n.isTrusted?_e():0}}),le(un.bind(this,t))}}function ge(t){if(t.nodeType!==Node.ELEMENT_NODE)return t.textContent||"";var e=t,n=e.tagName;if("SCRIPT"===n||"STYLE"===n||"NOSCRIPT"===n)return"";for(var r="",a=0;a<e.childNodes.length;a++)r+=ge(e.childNodes[a]);return r}function me(t){var e=ye(t,"tagName");return fe.indexOf(e)>=0?0:1}function ye(t,e){if(t.nodeType===Node.ELEMENT_NODE){var n=null==t?void 0:t[e];return"string"==typeof n?null==n?void 0:n.toLowerCase():""}return""}function we(t){var e=null,n=t.ownerDocument||document,r=n.documentElement,a=n.defaultView||window;if("function"==typeof t.getBoundingClientRect){var o=t.getBoundingClientRect();if(o&&o.width>0&&o.height>0){var i="pageXOffset"in a?a.pageXOffset:r.scrollLeft,u="pageYOffset"in a?a.pageYOffset:r.scrollTop;e={x:Math.floor(o.left+i),y:Math.floor(o.top+u),w:Math.floor(o.width),h:Math.floor(o.height)}}}return e}function be(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function _e(){_e.dn=1;try{for(var t=(new Error).stack||"",e=location.origin,n=4,r=0,a=t.split("\n");r<a.length;r++){var o=a[r];o.indexOf("://")>=0?n=o.indexOf("extension")<0&&o.indexOf(e)>=0?1:2:(o.indexOf("eval")>=0||o.indexOf("Function")>=0||o.indexOf("<a")>=0||pe.test(o))&&(n=3)}return n}catch(t){return 4}}function ke(){he=[]}var Te,xe=Object.freeze({__proto__:null,observe:function(t){_a(t,"click",ve.bind(this,9,t),!0),_a(t,"contextmenu",ve.bind(this,48,t),!0)},reset:ke,start:function(){ke()},get state(){return he},stop:function(){ke()}});function Se(t,e){var n=0,r=null,a=null;function o(){for(var o=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=i,r)return;r=setTimeout((function(){n=performance.now(),t.apply(o,a),a=null,r=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},o}var Oe=null,Ee=!1,Ne=Se(Ie,500);function Ie(){var t=document.documentElement;Te={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},Ee?(V(Oe),Oe=F(Me,500,11)):(un(11),Ee=!0)}function Me(t){le(un.bind(this,t))}function Xe(){Te=null,V(Oe),Ne.cleanup()}var Pe=Object.freeze({__proto__:null,get data(){return Te},reset:Xe,start:function(){Ee=!1,_a(window,"resize",Ne),Ie()},stop:function(){Xe()}}),je=[],Ye=null,Ce=null,ze=null;function De(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?ur(t):n;if(r){if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,l=u-s,f=Ae(c,s),p=Ae(c,l),h=t&&t.isTrusted?1:0,v={time:d(t),event:10,data:{target:r,x:a,y:o,top:f,bottom:p,trust:h}};if(null===t&&0===a&&0===o||null===a||null===o)return Ye=f,void(Ce=p);var g=je.length,m=g>1?je[g-2]:null;m&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<50}(m,v)&&je.pop(),je.push(v),V(ze),ze=F(Re,500,10)}}var He=Se(De,25);function Ae(t,e){var n,r,a;return"caretPositionFromPoint"in document?a=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(a=null===(r=document.caretRangeFromPoint(t,e))||void 0===r?void 0:r.startContainer),a||(a=document.elementFromPoint(t,e)),a&&a.nodeType===Node.TEXT_NODE&&(a=a.parentNode),a}function We(){je=[],Ye=null,Ce=null}function Re(t){le(un.bind(this,t))}var Le=Object.freeze({__proto__:null,compute:function(){var t,e;if(Ye){var n=cr(Ye);Xr(31,null===(t=null==n?void 0:n.hash)||void 0===t?void 0:t.join("."))}if(Ce){var r=cr(Ce);Xr(32,null===(e=null==r?void 0:r.hash)||void 0===e?void 0:e.join("."))}},observe:function(t){_a(t===document?window:t,"scroll",He,!0)},reset:We,start:function(){je=[],De()},get state(){return je},stop:function(){V(ze),He.cleanup(),je=[],Ye=null,Ce=null}}),qe=[];function Ue(t){qe.push({time:d(t),event:39,data:{target:ur(t)}}),le(un.bind(this,39))}function Fe(){qe=[]}var Ve,Ge=Object.freeze({__proto__:null,observe:function(t){_a(t,"submit",Ue,!0)},reset:Fe,start:function(){Fe()},get state(){return qe},stop:function(){Fe()}});function Je(){jn()}function Be(t){Ve={name:t.type,persisted:t.persisted?1:0},un(26,d(t)),Ra()}function Ze(){Ve=null}var Ke,Qe=Object.freeze({__proto__:null,get data(){return Ve},reset:Ze,start:function(){_a(window,"pagehide",Be),_a(window,"beforeunload",Je)},stop:function(){Ze()}});function $e(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ke={visible:e},un(28,d(t))}}function tn(){Ke=null}var en,nn=Object.freeze({__proto__:null,get data(){return Ke},reset:tn,start:function(){_a(document,"visibilitychange",$e),$e()},stop:function(){tn()}});function rn(){en=null}function an(t){en={focused:t},un(50)}var on=Object.freeze({__proto__:null,get data(){return en},reset:rn,start:function(){_a(window,"focus",(function(){return an(1)})),_a(window,"blur",(function(){return an(0)}))},stop:function(){rn()}});function un(t,e){return void 0===e&&(e=null),at(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,s,l,f,p,h,v,g,m,y,w,k,T,x,S,O,E,N,I,M,P,Y,C,z,D,H,A,W,R,L;return ot(this,(function(q){switch(n=e||d(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,o=ne;a<o.length;a++)W=o[a],(i=cr(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(i.id),r.push(W.data.x),r.push(W.data.y),void 0!==W.data.id&&(r.push(W.data.id),void 0!==W.data.isPrimary&&r.push(W.data.isPrimary.toString())),Pn(r),(void 0===W.data.isPrimary||W.data.isPrimary)&&X(W.event,W.data.x,W.data.y,W.time));break;case 9:case 48:for(u=0,c=he;u<c.length;u++)W=c[u],s=cr(W.data.target,W.event,W.data.text),r=[W.time,W.event],l=s.hash?s.hash.join("."):"",console.log("[GemX - Interaction - Encode]",{cHash:l,cTarget:s}),r.push(s.id),r.push(W.data.x),r.push(W.data.y),r.push(W.data.eX),r.push(W.data.eY),r.push(W.data.button),r.push(W.data.reaction),r.push(W.data.context),r.push(b(W.data.text,"click",s.privacy)),r.push(_(W.data.link)),r.push(l),r.push(W.data.trust),r.push(W.data.isFullText),r.push(W.data.w),r.push(W.data.h),r.push(W.data.tag),r.push(W.data.class),r.push(W.data.id),r.push(W.data.source),Pn(r),dn(W.time,W.event,l,W.data.x,W.data.y,W.data.reaction,W.data.context);ke();break;case 38:for(f=0,p=ne;f<p.length;f++)W=p[f],r=[W.time,W.event],(D=cr(W.data.target,W.event)).id>0&&(r.push(D.id),r.push(W.data.action),Pn(r));break;case 11:h=Te,r.push(h.width),r.push(h.height),X(t,h.width,h.height),Xe(),Pn(r);break;case 26:v=Ve,r.push(v.name),r.push(v.persisted),Ze(),Pn(r);break;case 27:for(g=0,m=ne;g<m.length;g++)W=m[g],y=cr(W.data.target,W.event,W.data.value),(r=[W.time,W.event]).push(y.id),r.push(b(W.data.value,"input",y.privacy,!1,W.data.type)),r.push(W.data.trust),Pn(r);break;case 21:(w=re)&&(k=cr(w.start),T=cr(w.end),r.push(k.id),r.push(w.startOffset),r.push(T.id),r.push(w.endOffset),Pn(r));break;case 10:for(x=0,S=je;x<S.length;x++)W=S[x],O=cr(W.data.target,W.event),E=cr(W.data.top,W.event),N=cr(W.data.bottom,W.event),I=(null==E?void 0:E.hash)?E.hash.join("."):"",M=(null==N?void 0:N.hash)?N.hash.join("."):"",O.id>0&&((r=[W.time,W.event]).push(O.id),r.push(W.data.x),r.push(W.data.y),r.push(I),r.push(M),r.push(W.data.trust),Pn(r),X(W.event,W.data.x,W.data.y,W.time));We();break;case 42:for(P=0,Y=ne;P<Y.length;P++)W=Y[P],r=[W.time,W.event],(D=cr(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(D.id),r.push(W.data.type),r.push(b(W.data.value,"change",D.privacy)),r.push(b(W.data.checksum,"checksum",D.privacy)),Pn(r));break;case 39:for(C=0,z=qe;C<z.length;C++)W=z[C],r=[W.time,W.event],(D=cr(W.data.target,W.event)).id>0&&(r.push(D.id),Pn(r));Fe();break;case 22:for(H=0,A=sn;H<A.length;H++)W=A[H],(r=[W.time,W.event]).push(W.data.type),r.push(W.data.hash),r.push(W.data.x),r.push(W.data.y),r.push(W.data.reaction),r.push(W.data.context),Pn(r,!1);ln();break;case 28:R=Ke,r.push(R.visible),Pn(r),j(n,R.visible),tn();break;case 50:L=en,r.push(L.focused),Pn(r,!1),rn()}return[2]}))}))}var cn=[],sn=[];function ln(){sn=[]}function dn(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),cn.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),X(e,r,a,t)}function fn(){if(pa){var t=[];sn=[];for(var e=(pa.start||0)+(pa.duration||0),n=Math.max(e-2e3,0),r=0,a=cn;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&sn.push(o),t.push(o))}cn=t,un(22)}}var pn=Object.freeze({__proto__:null,compute:fn,reset:ln,start:function(){cn=[],ln()},stop:function(){cn=[],ln()},track:dn,get updates(){return sn}}),hn=[],vn=!1,gn=null;function mn(t){vn&&"function"==typeof t&&hn.push(t)}function yn(t){if(vn){var e=t?t.split(" "):[""],n=e.length>1?parseInt(e[1],10):null;n&&gn.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(gn.add(e),Y(gn))},n.onerror=function(){ya(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var wn,bn,_n,kn,Tn,xn,Sn=Object.freeze({__proto__:null,event:yn,register:mn,start:function(){vn=!0,gn=new Set,u.modules&&u.modules.length>0&&u.modules.forEach((function(t){yn(t)}))},stop:function(){hn.reverse().forEach((function(t){try{t()}catch(t){}})),hn=[],vn=!1}}),On=0,En=0,Nn=null,In=0,Mn=!1;function Xn(){kn=!0,On=0,En=0,Mn=!1,In=0,wn=[],bn=[],_n={},Tn=null}function Pn(t,e){if(void 0===e&&(e=!0),kn){var n=d(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(u.lean?!Mn&&En+a.length>10485760&&(xt(10,0),Mn=!0):Mn=!1,r){case 5:if(Mn)break;On+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(Mn)break;En+=a.length,wn.push(a);break;default:bn.push(a)}L(25);var o=function(){var t=!1===u.lean&&On>0?100:pa.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-In>2*o&&(V(Nn),Nn=null),e&&null===Nn&&(25!==r&&Z(),Nn=F(Cn,o),In=n,kr(En))}}function jn(){kn&&(V(Nn),Nn=null,Cn(!0))}function Yn(){V(Nn),Cn(!0),On=0,En=0,Mn=!1,In=0,wn=[],bn=[],_n={},Tn=null,kn=!1}function Cn(t){return void 0===t&&(t=!1),at(this,void 0,void 0,(function(){var e,n,r,a,o,i,c,s;return ot(this,(function(l){switch(l.label){case 0:return kn?(Nn=null,(e=!1===u.lean&&En>0&&(En<1048576||pa.sequence>0))&&U(1,1),fn(),ee(),n=!0===t,pa?(r=JSON.stringify(ga(n)),a="[".concat(bn.join(),"]"),o=e?"[".concat(wn.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),i=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,ut(i)];case 2:s=l.sent(),l.label=3;case 3:return q(2,(c=s)?c.length:i.length),zn(i,c,pa.sequence,n),bn=[],e&&(wn=[],En=0,On=0,Mn=!1),[2]}}))}))}function zn(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&Hn(n)}catch(t){}if(!1===o){n in _n?_n[n].attempts++:_n[n]={data:t,attempts:1};var i=new XMLHttpRequest;i.open("POST",a,!0),i.timeout=15e3,i.ontimeout=function(){ya(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(i.onreadystatechange=function(){wa(Dn)(i,n)}),i.withCredentials=!0,e?(i.setRequestHeader("Accept","application/x-clarity-gzip"),i.send(e)):i.send(t)}}else if(u.upload){(0,u.upload)(t),Hn(n)}}function Dn(t,e){var n=_n[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Tr(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),Tn={sequence:e,attempts:n.attempts,status:t.status},br(2),zn(n.data,null,e)):(Tn={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&br(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],o=a&&a.length>0?a.split(/ (.*)/):[""];switch(o[0]){case"END":Tr(6);break;case"UPGRADE":yr("Auto");break;case"ACTION":u.action&&o.length>1&&u.action(o[1]);break;case"EXTRACT":o.length>1&&Xt(o[1]);break;case"SIGNAL":o.length>1&&Kt(o[1]);break;case"MODULE":o.length>1&&yn(o[1]);break;case"SNAPSHOT":u.lean=!1,sr()}}}(t.responseText),0===t.status&&(zn(n.data,null,e,!0),Tr(3)),t.status>=200&&t.status<=208&&Hn(e),delete _n[e]))}function Hn(t){1===t&&(ua(),ia())}function An(t){return at(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,l,f,p,h;return ot(this,(function(v){switch(e=d(),n=[e,t],t){case 8:r=xn,n.push(r.width),n.push(r.height),X(t,r.width,r.height),Pn(n);break;case 43:if((a=tr).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,l=0,f=["tag","attributes","value"];l<f.length;l++)if(s[p=f[l]])switch(p){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[p]);break;case"attributes":for(h in s[p])void 0!==s[p][h]&&n.push(Wn(h,s[p][h],c,s.tag));break;case"value":n.push(b(s[p],s.tag,c))}Pn(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}function Wn(t,e,n,r){return"href"===t&&"LINK"===r?"".concat(t,"=").concat(e):"".concat(t,"=").concat(b(e,0===t.indexOf("data-")?"data-":t,n))}function Rn(){xn=null}function Ln(){var t,e,n,r,a,o,i,u,c,s,l,d,f,p,h,v;Rn(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,o=e?e.clientWidth:null,i=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,o,i,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,p=e?e.scrollHeight:null,h=e?e.offsetHeight:null,v=Math.max(s,l,d,f,p,h),null!==xn&&c===xn.width&&v===xn.height||null===c||null===v||(xn={width:c,height:v},An(8))}var qn=!1;function Un(t){t&&t.persisted&&(Wa(),xt(11,0))}var Fn=Object.freeze({__proto__:null,start:function(){if(!qn)try{window[c("addEventListener")]("pageshow",wa(Un),{capture:!1,passive:!0}),qn=!0}catch(t){}},stop:function(){}}),Vn=[pn,xe,Pe,nn,Le,Fn,Qe],Gn=[pn,xe,ae,ae,ae,Pe,nn,on,Fn,Le,ae,ae,Ge,Qe],Jn={allRoots:[Le],documentOnly:[xe]},Bn={allRoots:[Le],documentOnly:[xe,ae,ae,ae,ae,ae,Ge]},Zn=Gn,Kn=Bn;function Qn(t){Kn.allRoots.forEach((function(e){return e.observe(t)})),t.nodeType===Node.DOCUMENT_NODE&&Kn.documentOnly.forEach((function(e){return e.observe(t)}))}var $n=Object.freeze({__proto__:null,observe:Qn,start:function(){var t=u.mode;Kn="gemx"===t?Jn:Bn,(Zn="gemx"===t?Vn:Gn).forEach((function(t){return t.start()}))},stop:function(){Zn.forEach((function(t){return t.stop()}))}}),tr=[],er=1,nr=null;function rr(){lr(),Ln(),fr(document.documentElement),Qn(document)}function ar(){return!1}function or(){return{x:0,y:0}}function ir(){}function ur(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function cr(t){var e={id:0,hash:null,privacy:u.conversions?1:5};return t&&(e.id=nr.has(t)?nr.get(t):fr(t)),e}function sr(){tr=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=o.nodeValue,r=nr.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=dr(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}pr(o,u,{tag:r,attributes:n,value:a})}}(document),An(43)}function lr(){nr=new WeakMap}function dr(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function fr(t){return null===t?null:nr.has(t)?nr.get(t):(nr.set(t,er),er++)}function pr(t,e,n){if(t&&n&&n.tag){var r=fr(t),a=e?nr.get(e):null,o=t.previousSibling?nr.get(t.previousSibling):null;tr.push({id:r,parent:a,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var hr,vr=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:ir,iframe:ar,metadata:cr,offset:or,snapshot:sr,start:rr,stop:function(){lr(),Rn()},target:ur,get values(){return tr}}),gr=null;function mr(){!u.lean&&u.upgrade&&u.upgrade("Config"),gr=null}function yr(t){Ya()&&u.lean&&(u.lean=!1,gr={key:t},ia(),ua(),u.upgrade&&u.upgrade(t),br(3),u.lite&&rr())}function wr(){gr=null}function br(t){var e=[d(),t];switch(t){case 4:var n=E;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),e.push(n.data.modules),Pn(e,!1)),M();break;case 25:e.push(A.gap),Pn(e);break;case 35:e.push(hr.check),Pn(e,!1);break;case 3:e.push(gr.key),Pn(e);break;case 2:e.push(Tn.sequence),e.push(Tn.attempts),e.push(Tn.status),Pn(e,!1);break;case 24:D.key&&e.push(D.key),e.push(D.value),Pn(e);break;case 34:var r=Object.keys(st);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(st[i])}ht(),Pn(e,!1)}break;case 0:var u=Object.keys(R);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var l=s[c],f=parseInt(l,10);e.push(f),e.push(Math.round(R[l]))}R={},Pn(e,!1)}break;case 1:var p=Object.keys(Er);if(p.length>0){for(var h=0,v=p;h<v.length;h++){var g=v[h];f=parseInt(g,10);e.push(f),e.push(Er[g])}jr(),Pn(e,!1)}break;case 36:var m=Object.keys($);if(m.length>0){for(var y=0,w=m;y<w.length;y++){var b=w[y];f=parseInt(b,10);e.push(f),e.push([].concat.apply([],$[b]))}et(),Pn(e,!1)}break;case 40:Ot.forEach((function(t){e.push(t);var n=[];for(var r in St[t]){var a=parseInt(r,10);n.push(a),n.push(St[t][r])}e.push(n)})),Yt(),Pn(e,!1);break;case 47:e.push(Yr.source),e.push(Yr.ad_Storage),e.push(Yr.analytics_Storage),Pn(e,!1)}}function _r(){hr={check:0}}function kr(t){if(0===hr.check){var e=hr.check;e=pa.sequence>=128?1:e,e=pa.pageNum>=128?7:e,e=d()>72e5?2:e,(e=t>10485760?2:e)!==hr.check&&Tr(e)}}function Tr(t){hr.check=t,5!==t&&(oa(),Ra())}function xr(){0!==hr.check&&br(35)}function Sr(){hr=null}var Or=null,Er=null,Nr=!1;function Ir(){Or={},Er={},Nr=!1}function Mr(){Or={},Er={},Nr=!1}function Xr(t,e){if(e&&(e="".concat(e),t in Or||(Or[t]=[]),Or[t].indexOf(e)<0)){if(Or[t].length>128)return void(Nr||(Nr=!0,Tr(5)));Or[t].push(e),t in Er||(Er[t]=[]),Er[t].push(e)}}function Pr(){br(1)}function jr(){Er={},Nr=!1}var Yr=null,Cr=!0;function zr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;Cr=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],Hr)}function Dr(){Cr=!0}function Hr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState)try{var n=e.getConsentState("analytics_storage");na(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}catch(t){return}}function Ar(t){Rr(t.analytics_Storage?1:0),Yr=t}function Wr(){Rr(2)}function Rr(t){Xr(36,t.toString())}function Lr(t){Yr=t,br(47)}function qr(){var t;if(Cr&&(br(47),Cr=!1,!u.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&Hr()}}var Ur=null,Fr=[],Vr=0,Gr=null,Jr=!1,Br={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function Zr(){var t,e,n,r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",o=(new Date).getTimezoneOffset().toString(),i=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Vr=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:sa(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Ut("_clsk",!u.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-la(n[1])<18e5&&(t.session=n[0],t.count=la(n[2])+1,t.upgrade=la(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=da(),d=u.projectId||p(location.host),f=u.externalSession&&u.userId?u.userId:l.id,h=u.externalSession&&u.sessionId?u.sessionId:s.session;Ur={projectId:d,userId:f,sessionId:h,pageNum:s.count},u.lean=u.track&&null!==s.upgrade?0===s.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&s.upload&&s.upload.length>"https://".length?s.upload:u.upload,Xr(0,r),Xr(3,c),Xr(1,_(location.href,!!Vr)),Xr(2,document.referrer),Xr(15,function(){var t=sa();if(u.track&&Wt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Xr(16,document.documentElement.lang),Xr(17,document.dir),Xr(26,"".concat(window.devicePixelRatio)),Xr(28,l.dob.toString()),Xr(29,l.version.toString()),Xr(33,i),Xr(34,a),Xr(35,o),U(0,s.ts),U(1,0),U(35,Vr);var v,g=null===window||void 0===window?void 0:window.Zone;g&&"__symbol__"in g&&U(39,1),navigator&&(Xr(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(v=navigator.userAgentData)&&v.getHighEntropyValues?v.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Xr(22,t.platform),Xr(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Xr(24,t.name+"~"+t.version)})),Xr(25,t.model),U(27,t.mobile?1:0)})):Xr(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth))),null===Gr&&(Gr={source:l.consent?6:0,ad_Storage:u.track?"granted":"denied",analytics_Storage:u.track?"granted":"denied"}),Kr(),Ar(ra(Gr)),u.externalSession||ca(l)}function Kr(){if(!Jr&&"granted"===(null==Gr?void 0:Gr.analytics_Storage)&&"granted"===(null==Gr?void 0:Gr.ad_Storage)){for(var t=0,e=u.cookies;t<e.length;t++){var n=e[t],r=Ut(n);r&&lt(n,r)}Jr=!0}}function Qr(){Ur=null,Jr=!1,Fr.forEach((function(t){t.called=!1}))}function $r(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=u.lean?0:1,o=!1;Ur&&(a||!1===e)&&(t(Ur,!u.lean,r?Gr:void 0),o=!0),!n&&o||Fr.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function ta(){return Ur?[Ur.userId,Ur.sessionId,Ur.pageNum].join("."):""}function ea(t){void 0===t&&(t=!0),na(t?{source:4,ad_Storage:"granted",analytics_Storage:"granted"}:{source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function na(t,e){var n;if(void 0===t&&(t=Br),void 0===e&&(e=5),Ya()){var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:aa(t.ad_Storage,null==Gr?void 0:Gr.ad_Storage),analytics_Storage:aa(t.analytics_Storage,null==Gr?void 0:Gr.analytics_Storage)};if(Gr&&r.ad_Storage===Gr.ad_Storage&&r.analytics_Storage===Gr.analytics_Storage)return Gr.source=r.source,Lr(ra(Gr)),void Wr();Gr=r,ia(!0);var a=ra(Gr);if(!a.analytics_Storage&&u.track)return u.track=!1,oa(!0),Ra(),void window.setTimeout(Wa,250);Ya()&&a.analytics_Storage&&(u.track=!0,ca(da(),1),ua()),Kr(),Lr(a),Wr()}}function ra(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function aa(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function oa(t){void 0===t&&(t=!1),Ft("_clsk","",0),t&&Ft("_clck","",0)}function ia(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(Fr.length>0)for(var n=0;n<Fr.length;n++){var r=Fr[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(Ur,!u.lean,r.consentInfo?Gr:void 0),r.called=!0,r.recall||(Fr.splice(n,1),n--))}}(u.lean?0:1,t)}function ua(){if(Ur&&u.track&&!u.externalSession){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;Ft("_clsk",[Ur.sessionId,t,Ur.pageNum,n,e].join(qt),1)}}function ca(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===u.dob?0:u.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Ft("_clck",[Ur.userId,2,n.toString(36),e,r].join(qt),365)}function sa(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function la(t,e){return void 0===e&&(e=10),parseInt(t,e)}function da(){var t={id:sa(),version:0,expiry:null,consent:0,dob:0},e=Ut("_clck",!u.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=la(n[1])),n.length>2&&(t.expiry=la(n[2],36)),n.length>3&&1===la(n[3])&&(t.consent=1),n.length>4&&la(n[1])>1&&(t.dob=la(n[4])),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}var fa,pa=null;function ha(){var t=Ur;pa={version:f,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function va(){pa=null}function ga(t){return pa.start=pa.start+pa.duration,pa.duration=d()-pa.start,pa.sequence++,pa.upload=t&&"sendBeacon"in navigator?1:0,pa.end=t?1:0,pa.applicationPlatform=0,pa.url=_(location.href,!1,!0),[pa.version,pa.sequence,pa.start,pa.duration,pa.projectId,pa.userId,pa.sessionId,pa.pageNum,pa.upload,pa.end,pa.applicationPlatform,pa.url]}function ma(){fa=[]}function ya(t){if(fa&&-1===fa.indexOf(t.message)){var e=u.report;if(e&&e.length>0&&pa){var n={v:pa.version,p:pa.projectId,u:pa.userId,s:pa.sessionId,n:pa.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),fa.push(t.message)}}return t}function wa(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw ya(t)}var n=performance.now()-e;q(4,n),n>30&&(L(7),U(6,n),t.dn&&xt(9,0,"".concat(t.dn,"-").concat(n)))}}var ba=new Map;function _a(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=wa(n);try{t[c("addEventListener")](e,n,{capture:r,passive:a}),function(t){return ba.has(t)}(t)||ba.set(t,[]),ba.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function ka(){ba.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[c("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),ba.delete(e)}(t,e)})),ba=new Map}var Ta=null,xa=null,Sa=null,Oa=0;function Ea(){return!(Oa++>20)||(xt(4,0),!1)}function Na(){Oa=0,Sa!==Ma()&&(Ra(),window.setTimeout(Ia,250))}function Ia(){Wa(),U(29,1)}function Ma(){return location.href?location.href.replace(location.hash,""):location.href}var Xa=!1;function Pa(){Xa=!0,s=l(),se(),ka(),ma(),function(){if(Sa=Ma(),Oa=0,_a(window,"popstate",Na),null===Ta)try{Ta=history.pushState,history.pushState=function(){Ta.apply(this,arguments),Ya()&&Ea()&&Na()}}catch(t){Ta=null}if(null===xa)try{xa=history.replaceState,history.replaceState=function(){xa.apply(this,arguments),Ya()&&Ea()&&Na()}}catch(t){xa=null}}()}function ja(){Sa=null,Oa=0,ma(),ka(),se(),s=0,Xa=!1}function Ya(){return Xa}function Ca(){Wa(),H("clarityGemX","restart")}var za=Object.freeze({__proto__:null,start:function(){!function(){U(26,navigator.webdriver?1:0);try{U(31,window.top==window.self||window.top==window?1:2)}catch(t){U(31,0)}}(),_a(window,"error",bt),wt={},Tt={}},stop:function(){Tt={}}}),Da=[za,vr,$n],Ha=[za,vr,$n,ae,Sn],Aa=Ha;function Wa(t){void 0===t&&(t=null),Aa="gemx"===t.mode?Da:Ha,function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Xa&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||Xa)return!1;for(var e in t)e in u&&(u[e]=t[e])}(t),Pa(),$t(),Aa.forEach((function(t){return wa(t.start)()})),null===t&&Fa())}function Ra(){Ya()&&(Aa.slice().reverse().forEach((function(t){return wa(t.stop)()})),te(),ja(),void 0!==qa&&(qa[Ua]=function(){(qa[Ua].q=qa[Ua].q||[]).push(arguments),"start"===arguments[0]&&qa[Ua].q.unshift(qa[Ua].q.pop())&&Fa()}))}var La=Object.freeze({__proto__:null,consent:ea,consentv2:na,dlog:Xr,event:H,hashText:ir,identify:dt,maxMetric:U,measure:wa,metadata:$r,pause:function(){Ya()&&(H("clarityGemX","pause"),null===ue&&(ue=new Promise((function(t){ce=t}))))},queue:Pn,register:mn,resume:function(){Ya()&&(ue&&(ce(),ue=null,null===ie&&de()),H("clarityGemX","resume"))},schedule:le,set:lt,signal:function(t){Zt=t},start:Wa,stop:Ra,time:d,upgrade:yr,version:f}),qa=window,Ua="clarityGemX";function Fa(){if(void 0!==qa){if(qa[Ua]&&qa[Ua].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=qa[Ua]&&qa[Ua].q||[];for(qa[Ua]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return La[t].apply(La,e)},qa[Ua].v=f;t.length>0;)qa[Ua].apply(qa,t.shift())}}Fa()}();
1
+ !function(){"use strict";var t=Object.freeze({__proto__:null,get flush(){return jn},get queue(){return Pn},get start(){return Xn},get stop(){return Yn},get track(){return Tn}}),e=Object.freeze({__proto__:null,get data(){return vr},get start(){return gr},get stop(){return wr},get upgrade(){return mr}}),n=Object.freeze({__proto__:null,get check(){return _r},get compute(){return Tr},get data(){return pr},get start(){return br},get stop(){return xr},get trigger(){return kr}}),r=Object.freeze({__proto__:null,get compute(){return Xr},get data(){return Sr},get log(){return Mr},get reset(){return Pr},get start(){return Nr},get stop(){return Ir},get updates(){return Or}}),a=Object.freeze({__proto__:null,get compute(){return Lr},get config(){return Hr},get consent(){return Ar},get data(){return jr},get start(){return Cr},get stop(){return zr},get trackConsentv2(){return Rr}}),o=Object.freeze({__proto__:null,get callback(){return oa},get callbacks(){return Ur},get clear(){return aa},get consent(){return ta},get consentv2(){return ea},get data(){return qr},get electron(){return Fr},get id(){return $r},get metadata(){return Qr},get save(){return ia},get shortid(){return ca},get start(){return Br},get stop(){return Kr}}),i=Object.freeze({__proto__:null,get data(){return fa},get envelope(){return va},get start(){return pa},get stop(){return ha}}),u={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,modules:[],diagnostics:!1,externalSession:!1,userId:null,sessionId:null,mode:"gemx"};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(){return performance.now()+performance.timeOrigin}function d(t){void 0===t&&(t=null);var e=0===s?l():s,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var f="0.8.86";function p(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2){if(r=(r<<5)+r^t.charCodeAt(o),o+1<t.length)a=(a<<5)+a^t.charCodeAt(o+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var h=/\S/gi,v=255,g=!0,m=null,w=null,y=null;function b(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,o=!1,i=null;O();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=g&&null!==y?s.match(y)?s:x(s,"▪","▫"):T(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):T(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return T(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):T(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return x(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function _(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=u.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),i=o[0],c=o[1];r=i+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,v)),r}function k(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function T(t){return t.replace(h,"•")}function x(t,e,n){return O(),t?t.replace(w,e).replace(m,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function O(){if(g&&null===m)try{m=new RegExp("\\p{N}","gu"),w=new RegExp("\\p{L}","gu"),y=new RegExp("\\p{Sc}","gu")}catch(t){g=!1}}var E=null,N=null,I=!1;function M(){I&&(E={time:d(),event:4,data:{visible:N.visible,docWidth:N.docWidth,docHeight:N.docHeight,screenWidth:N.screenWidth,screenHeight:N.screenHeight,scrollX:N.scrollX,scrollY:N.scrollY,pointerX:N.pointerX,pointerY:N.pointerY,activityTime:N.activityTime,scrollTime:N.scrollTime,pointerTime:N.pointerTime,moveX:N.moveX,moveY:N.moveY,moveTime:N.moveTime,downX:N.downX,downY:N.downY,downTime:N.downTime,upX:N.upX,upY:N.upY,upTime:N.upTime,pointerPrevX:N.pointerPrevX,pointerPrevY:N.pointerPrevY,pointerPrevTime:N.pointerPrevTime,modules:N.modules}}),N=N||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0,modules:null}}function X(t,e,n,r){switch(t){case 8:N.docWidth=e,N.docHeight=n;break;case 11:N.screenWidth=e,N.screenHeight=n;break;case 10:N.scrollX=e,N.scrollY=n,N.scrollTime=r;break;case 12:N.moveX=e,N.moveY=n,N.moveTime=r,N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r;break;case 13:N.downX=e,N.downY=n,N.downTime=r,N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r;break;case 14:N.upX=e,N.upY=n,N.upTime=r,N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r;break;default:N.pointerPrevX=N.pointerX,N.pointerPrevY=N.pointerY,N.pointerPrevTime=N.pointerTime,N.pointerX=e,N.pointerY=n,N.pointerTime=r}I=!0}function P(t){N.activityTime=t}function j(t,e){N.visible=e,N.visible||P(t),I=!0}function Y(t){N.modules=Array.from(t),I=!0}function C(){I&&yr(4)}var z=Object.freeze({__proto__:null,activity:P,compute:C,dynamic:Y,reset:M,start:function(){I=!1,M()},get state(){return E},stop:function(){M()},track:X,visibility:j}),D=null;function H(t,e){ja()&&t&&"string"==typeof t&&t.length<255&&(D=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},yr(24))}var A,W=null,R=null;function L(t){t in W||(W[t]=0),t in R||(R[t]=0),W[t]++,R[t]++}function q(t,e){null!==e&&(t in W||(W[t]=0),t in R||(R[t]=0),W[t]+=e,R[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in W||(W[t]=0),(e>W[t]||0===W[t])&&(R[t]=e,W[t]=e))}function F(t,e,n){return window.setTimeout(wa(t),e,n)}function G(t){return window.clearTimeout(t)}var V=0,J=0,B=null;function Z(){B&&G(B),B=F(K,J),V=d()}function K(){var t=d();A={gap:t-V},yr(25),A.gap<3e5?B=F(K,J):Ma&&(H("clarityGemX","suspend"),Wa(),["mousemove","touchstart"].forEach((function(t){return ba(document,t,Ya)})),["resize","scroll","pageshow"].forEach((function(t){return ba(window,t,Ya)})))}var Q=Object.freeze({__proto__:null,get data(){return A},reset:Z,start:function(){J=6e4,V=0},stop:function(){G(B),V=0,J=0}}),$=null;function tt(){yr(36)}function et(){$={}}var nt=Object.freeze({__proto__:null,compute:tt,get data(){return $},reset:et,start:function(){$={}},stop:function(){$={}},track:function(t,e){if(t in $){var n=$[t],r=n[n.length-1];e-r[0]>100?$[t].push([e,0]):r[1]=e-r[0]}else $[t]=[[e,0]]}}),rt=function(){return rt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var a in e=arguments[n])Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t},rt.apply(this,arguments)};function at(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))}function ot(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var it="CompressionStream"in window;function ut(t){return at(this,void 0,void 0,(function(){var e,n;return ot(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),it?(e=new ReadableStream({start:function(e){return at(this,void 0,void 0,(function(){return ot(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ct(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function ct(t){return at(this,void 0,void 0,(function(){var e,n,r,a,o;return ot(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],r=!1,a=[],i.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return o=i.sent(),r=o.done,a=o.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var st=null;function lt(t,e){ft(t,"string"==typeof e?[e]:e)}function dt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),at(this,void 0,void 0,(function(){var a,o;return ot(this,(function(i){switch(i.label){case 0:return o={},[4,vt(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(x(u.substring(2),"*","*")):x(u,"*","*")),ft("userId",[(a=o).userId]),ft("userHint",[a.userHint]),ft("userType",[gt(t)]),e&&(ft("sessionId",[e]),a.sessionId=e),n&&(ft("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ft(t,e){if(ja()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in st?st[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);st[t]=n}}function pt(){yr(34)}function ht(){st={}}function vt(t){return at(this,void 0,void 0,(function(){var e;return ot(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function gt(t){return t&&t.indexOf("@")>0?"email":"string"}var mt=Object.freeze({__proto__:null,compute:pt,get data(){return st},identify:dt,reset:ht,set:lt,start:function(){ht()},stop:function(){ht()}});var wt,yt={};function bt(t){var e=t.error||t;return e.message in yt||(yt[e.message]=0),yt[e.message]++>=5||e&&e.message&&(wt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},_t(31)),!0}function _t(t){return at(this,void 0,void 0,(function(){var e;return ot(this,(function(n){switch(e=[d(),t],t){case 31:e.push(wt.message),e.push(wt.line),e.push(wt.column),e.push(wt.stack),e.push(_(wt.source)),Pn(e);break;case 33:kt&&(e.push(kt.code),e.push(kt.name),e.push(kt.message),e.push(kt.stack),e.push(kt.severity),Pn(e,!1))}return[2]}))}))}var kt,Tt={};function xt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var o=n?"".concat(n,"|").concat(r):"";t in Tt&&Tt[t].indexOf(o)>=0||(kt={code:t,name:n,message:r,stack:a,severity:e},t in Tt?Tt[t].push(o):Tt[t]=[o],_t(33))}var St={},Ot=new Set,Et={},Nt={},It={},Mt={};function Xt(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",o=e.length>1?JSON.parse(e[1]):{};for(var i in Et[r]={},Nt[r]={},It[r]={},Mt[r]=a,o){var u=parseInt(i),c=o[i],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);Et[r][u]=zt(l);break;case 2:Nt[r][u]=c;break;case 4:var d=c.slice(1);It[r][u]=d}}}catch(t){xt(8,1,t?t.name:null)}}function Pt(t){return JSON.parse(JSON.stringify(t))}function jt(){try{for(var t in Et){var e=parseInt(t);if(""==Mt[e]||document.querySelector(Mt[e])){var n=Et[e];for(var r in n){var a=parseInt(r),o=(m=Dt(Pt(n[a])))?JSON.stringify(m).slice(0,1e4):m;o&&Ct(e,a,o)}var i=Nt[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var f=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");Ct(e,s,(c?p(f).trim():f).slice(0,1e4))}}var h=It[e];for(var v in h){var g=parseInt(v);Ct(e,g,(void h[g]).trim().slice(0,1e4))}}}Ot.size>0&&yr(40)}catch(t){xt(5,1,t?t.name:null)}var m}function Yt(){Ot.clear()}function Ct(t,e,n){var r,a=!1;t in St||(St[t]={},a=!0),r=It[t],0==Object.keys(r).length||e in St[t]&&St[t][e]==n||(a=!0),St[t][e]=n,a&&Ot.add(t)}function zt(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),o=r.indexOf("{"),i=r.indexOf("}");e.push({name:a>0?r.slice(0,a):o>0?r.slice(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.slice(o+1,i):null})}return e}function Dt(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,r=t.shift();if(e&&e[r.name]){var a=e[r.name];if(1!==r.type&&Ht(a,r.condition))n=Dt(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(Ht(c,r.condition)){var s=Dt(t,c);s&&o.push(s)}}n=o}return n}return null}function Ht(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var At=Object.freeze({__proto__:null,clone:Pt,compute:jt,data:St,keys:Ot,reset:Yt,start:function(){Yt()},stop:function(){Yt()},trigger:Xt,update:Ct});function Wt(t,e){try{return!!t[e]}catch(t){return!1}}function Rt(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var Lt=null,qt="^";function Ut(t,e){var n;if(void 0===e&&(e=!1),Wt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=Rt(o[1]),u=i[0],c=i[1];u;)u=(n=Rt(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Ft(t,e,n){if((u.track||""==e)&&(navigator&&navigator.cookieEnabled||Wt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===Lt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Lt=".".concat(c[s]).concat(Lt||""),s<c.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(Lt),Ut(t)===e))return;Lt=""}}catch(t){Lt=""}document.cookie=Lt?"".concat(i).concat(";").concat("domain=").concat(Lt):i}}var Gt=Object.freeze({__proto__:null,COOKIE_SEP:qt,getCookie:Ut,setCookie:Ft,start:function(){Lt=null},stop:function(){Lt=null}}),Vt={excludeClassNames:[],ignoreMutationClassNames:[]},Jt=rt({},Vt);var Bt=Object.freeze({__proto__:null,get:function(){return Jt},set:function(t){Jt=rt(rt({},Jt),t)},start:function(){var t,e,n,r;Jt={excludeClassNames:null!==(e=null===(t=null===window||void 0===window?void 0:window.GemXHeatmap)||void 0===t?void 0:t.excludeClassNames)&&void 0!==e?e:[],ignoreMutationClassNames:null!==(r=null===(n=null===window||void 0===window?void 0:window.GemXHeatmap)||void 0===n?void 0:n.ignoreMutationClassNames)&&void 0!==r?r:[]}},stop:function(){Jt=rt({},Vt)}}),Zt=null;function Kt(t){try{if(!Zt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Zt(t)}))}catch(t){}}var Qt=[Bt,z,r,mt,n,nt,Gt,a,o,i,t,Q,e,At];function $t(){W={},R={},L(5),Qt.forEach((function(t){return wa(t.start)()}))}function te(){Qt.slice().reverse().forEach((function(t){return wa(t.stop)()})),W={},R={}}function ee(){C(),Tr(),Lr(),"gemx"!==u.mode&&(pt(),Xr(),yr(0),tt(),jt())}var ne=[],re=null;var ae=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:re,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:ne,stop:function(){}}),oe=[],ie=null,ue=null,ce=null;function se(){oe=[],ie=null,ue=null}function le(t,e){return void 0===e&&(e=0),at(this,void 0,void 0,(function(){var n,r,a;return ot(this,(function(o){for(n=0,r=oe;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){oe[1===e?"unshift":"push"]({task:t,resolve:n,id:$r()})})),null===ie&&null===ue&&de(),[2,a]}))}))}function de(){var t=oe.shift();t&&(ie=t,t.task().then((function(){t.id===$r()&&(t.resolve(),ie=null,de())})).catch((function(e){t.id===$r()&&(e&&xt(0,1,e.name,e.message,e.stack),ie=null,de())})))}var fe=["input","textarea","radio","button","canvas","select"],pe=/VM\d/,he=[];function ve(t,e,n){var r,a=document.documentElement,o="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null,c=ir(n),s=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(c),l=ye(c);0===n.detail&&l&&(o=Math.round(l.x+l.w/2),i=Math.round(l.y+l.h/2));var f=function(t,e,n,r){if(!r)return{eX:0,eY:0};var a=r,o=t,i=Math.max(Math.floor((e-a.x)/a.w*32767),0),u=Math.max(Math.floor((n-a.y)/a.h*32767),0),c=0;for(;(i>32767||u>32767)&&o.parentElement&&c<10;)c++,(a=ye(o=o.parentElement))&&(i=Math.max(Math.floor((e-a.x)/a.w*32767),0),u=Math.max(Math.floor((n-a.y)/a.h*32767),0));return{eX:i,eY:u}}(c,o,i,l),p=f.eX,h=f.eY;if(null!==o&&null!==i){var v=function(t){var e=null,n=!1;if(t){var r=ge(t)||String(t.value||"")||t.alt;if(r){var a=r.replace(/\s+/g," ").trim();n=(e=a.substring(0,25)).length===a.length}}return{text:e,isFullText:n?1:0}}(c);if(u.diagnostics){var g=c;console.log("[clarity:click] text debug",{tag:null==g?void 0:g.tagName,id:(null==g?void 0:g.id)||null,class:(null==g?void 0:g.className)||null,rawTextContent:(null===(r=null==g?void 0:g.textContent)||void 0===r?void 0:r.replace(/\s+/g," ").trim().substring(0,100))||null,inputValue:(null==g?void 0:g.value)||null,altText:(null==g?void 0:g.alt)||null,resolvedText:v.text,isFullText:v.isFullText,x:o,y:i})}he.push({time:d(n),event:t,data:{target:c,x:o,y:i,eX:p,eY:h,button:n.button,reaction:me(c),context:be(s),text:v.text,link:s?s.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:v.isFullText,w:l?l.w:0,h:l?l.h:0,tag:we(c,"tagName").substring(0,10),class:we(c,"className").substring(0,50),id:we(c,"id").substring(0,25),source:u.diagnostics&&!n.isTrusted?_e():0}}),le(un.bind(this,t))}}function ge(t){if(t.nodeType!==Node.ELEMENT_NODE)return t.textContent||"";var e=t,n=e.tagName;if("SCRIPT"===n||"STYLE"===n||"NOSCRIPT"===n)return"";for(var r="",a=0;a<e.childNodes.length;a++)r+=ge(e.childNodes[a]);return r}function me(t){var e=we(t,"tagName");return fe.indexOf(e)>=0?0:1}function we(t,e){if(t.nodeType===Node.ELEMENT_NODE){var n=null==t?void 0:t[e];return"string"==typeof n?null==n?void 0:n.toLowerCase():""}return""}function ye(t){var e=null,n=t.ownerDocument||document,r=n.documentElement,a=n.defaultView||window;if("function"==typeof t.getBoundingClientRect){var o=t.getBoundingClientRect();if(o&&o.width>0&&o.height>0){var i="pageXOffset"in a?a.pageXOffset:r.scrollLeft,u="pageYOffset"in a?a.pageYOffset:r.scrollTop;e={x:Math.floor(o.left+i),y:Math.floor(o.top+u),w:Math.floor(o.width),h:Math.floor(o.height)}}}return e}function be(t){if(t&&t.hasAttribute("target"))switch(t.getAttribute("target")){case"_blank":return 1;case"_parent":return 2;case"_top":return 3}return 0}function _e(){_e.dn=1;try{for(var t=(new Error).stack||"",e=location.origin,n=4,r=0,a=t.split("\n");r<a.length;r++){var o=a[r];o.indexOf("://")>=0?n=o.indexOf("extension")<0&&o.indexOf(e)>=0?1:2:(o.indexOf("eval")>=0||o.indexOf("Function")>=0||o.indexOf("<a")>=0||pe.test(o))&&(n=3)}return n}catch(t){return 4}}function ke(){he=[]}var Te,xe=Object.freeze({__proto__:null,observe:function(t){ba(t,"click",ve.bind(this,9,t),!0),ba(t,"contextmenu",ve.bind(this,48,t),!0)},reset:ke,start:function(){ke()},get state(){return he},stop:function(){ke()}});function Se(t,e){var n=0,r=null,a=null;function o(){for(var o=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=i,r)return;r=setTimeout((function(){n=performance.now(),t.apply(o,a),a=null,r=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},o}var Oe=null,Ee=!1,Ne=Se(Ie,500);function Ie(){var t=document.documentElement;Te={width:t&&"clientWidth"in t?Math.min(t.clientWidth,window.innerWidth):window.innerWidth,height:t&&"clientHeight"in t?Math.min(t.clientHeight,window.innerHeight):window.innerHeight},Ee?(G(Oe),Oe=F(Me,500,11)):(un(11),Ee=!0)}function Me(t){le(un.bind(this,t))}function Xe(){Te=null,G(Oe),Ne.cleanup()}var Pe=Object.freeze({__proto__:null,get data(){return Te},reset:Xe,start:function(){Ee=!1,ba(window,"resize",Ne),Ie()},stop:function(){Xe()}}),je=[],Ye=null,Ce=null,ze=null;function De(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?ir(t):n;if(r){if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,l=u-s,f=Ae(c,s),p=Ae(c,l),h=t&&t.isTrusted?1:0,v={time:d(t),event:10,data:{target:r,x:a,y:o,top:f,bottom:p,trust:h}};if(null===t&&0===a&&0===o||null===a||null===o)return Ye=f,void(Ce=p);var g=je.length,m=g>1?je[g-2]:null;m&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<50}(m,v)&&je.pop(),je.push(v),G(ze),ze=F(Re,500,10)}}var He=Se(De,25);function Ae(t,e){var n,r,a;return"caretPositionFromPoint"in document?a=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(a=null===(r=document.caretRangeFromPoint(t,e))||void 0===r?void 0:r.startContainer),a||(a=document.elementFromPoint(t,e)),a&&a.nodeType===Node.TEXT_NODE&&(a=a.parentNode),a}function We(){je=[],Ye=null,Ce=null}function Re(t){le(un.bind(this,t))}var Le=Object.freeze({__proto__:null,compute:function(){var t,e;if(Ye){var n=ur(Ye);Mr(31,null===(t=null==n?void 0:n.hash)||void 0===t?void 0:t.join("."))}if(Ce){var r=ur(Ce);Mr(32,null===(e=null==r?void 0:r.hash)||void 0===e?void 0:e.join("."))}},observe:function(t){ba(t===document?window:t,"scroll",He,!0)},reset:We,start:function(){je=[],De()},get state(){return je},stop:function(){G(ze),He.cleanup(),je=[],Ye=null,Ce=null}}),qe=[];function Ue(t){qe.push({time:d(t),event:39,data:{target:ir(t)}}),le(un.bind(this,39))}function Fe(){qe=[]}var Ge,Ve=Object.freeze({__proto__:null,observe:function(t){ba(t,"submit",Ue,!0)},reset:Fe,start:function(){Fe()},get state(){return qe},stop:function(){Fe()}});function Je(){jn()}function Be(t){Ge={name:t.type,persisted:t.persisted?1:0},un(26,d(t)),Wa()}function Ze(){Ge=null}var Ke,Qe=Object.freeze({__proto__:null,get data(){return Ge},reset:Ze,start:function(){ba(window,"pagehide",Be),ba(window,"beforeunload",Je)},stop:function(){Ze()}});function $e(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ke={visible:e},un(28,d(t))}}function tn(){Ke=null}var en,nn=Object.freeze({__proto__:null,get data(){return Ke},reset:tn,start:function(){ba(document,"visibilitychange",$e),$e()},stop:function(){tn()}});function rn(){en=null}function an(t){en={focused:t},un(50)}var on=Object.freeze({__proto__:null,get data(){return en},reset:rn,start:function(){ba(window,"focus",(function(){return an(1)})),ba(window,"blur",(function(){return an(0)}))},stop:function(){rn()}});function un(t,e){return void 0===e&&(e=null),at(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,s,l,f,p,h,v,g,m,w,y,k,T,x,S,O,E,N,I,M,P,Y,C,z,D,H,A,W,R,L;return ot(this,(function(q){switch(n=e||d(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,o=ne;a<o.length;a++)W=o[a],(i=ur(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(i.id),r.push(W.data.x),r.push(W.data.y),void 0!==W.data.id&&(r.push(W.data.id),void 0!==W.data.isPrimary&&r.push(W.data.isPrimary.toString())),Pn(r),(void 0===W.data.isPrimary||W.data.isPrimary)&&X(W.event,W.data.x,W.data.y,W.time));break;case 9:case 48:for(u=0,c=he;u<c.length;u++)W=c[u],s=ur(W.data.target,W.event,W.data.text),r=[W.time,W.event],l=s.hash?s.hash.join("."):"",console.log("[GemX - Interaction - Encode]",{cHash:l,cTarget:s}),r.push(s.id),r.push(W.data.x),r.push(W.data.y),r.push(W.data.eX),r.push(W.data.eY),r.push(W.data.button),r.push(W.data.reaction),r.push(W.data.context),r.push(b(W.data.text,"click",s.privacy)),r.push(_(W.data.link)),r.push(l),r.push(W.data.trust),r.push(W.data.isFullText),r.push(W.data.w),r.push(W.data.h),r.push(W.data.tag),r.push(W.data.class),r.push(W.data.id),r.push(W.data.source),Pn(r),dn(W.time,W.event,l,W.data.x,W.data.y,W.data.reaction,W.data.context);ke();break;case 38:for(f=0,p=ne;f<p.length;f++)W=p[f],r=[W.time,W.event],(D=ur(W.data.target,W.event)).id>0&&(r.push(D.id),r.push(W.data.action),Pn(r));break;case 11:h=Te,r.push(h.width),r.push(h.height),X(t,h.width,h.height),Xe(),Pn(r);break;case 26:v=Ge,r.push(v.name),r.push(v.persisted),Ze(),Pn(r);break;case 27:for(g=0,m=ne;g<m.length;g++)W=m[g],w=ur(W.data.target,W.event,W.data.value),(r=[W.time,W.event]).push(w.id),r.push(b(W.data.value,"input",w.privacy,!1,W.data.type)),r.push(W.data.trust),Pn(r);break;case 21:(y=re)&&(k=ur(y.start),T=ur(y.end),r.push(k.id),r.push(y.startOffset),r.push(T.id),r.push(y.endOffset),Pn(r));break;case 10:for(x=0,S=je;x<S.length;x++)W=S[x],O=ur(W.data.target,W.event),E=ur(W.data.top,W.event),N=ur(W.data.bottom,W.event),I=(null==E?void 0:E.hash)?E.hash.join("."):"",M=(null==N?void 0:N.hash)?N.hash.join("."):"",O.id>0&&((r=[W.time,W.event]).push(O.id),r.push(W.data.x),r.push(W.data.y),r.push(I),r.push(M),r.push(W.data.trust),Pn(r),X(W.event,W.data.x,W.data.y,W.time));We();break;case 42:for(P=0,Y=ne;P<Y.length;P++)W=Y[P],r=[W.time,W.event],(D=ur(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(D.id),r.push(W.data.type),r.push(b(W.data.value,"change",D.privacy)),r.push(b(W.data.checksum,"checksum",D.privacy)),Pn(r));break;case 39:for(C=0,z=qe;C<z.length;C++)W=z[C],r=[W.time,W.event],(D=ur(W.data.target,W.event)).id>0&&(r.push(D.id),Pn(r));Fe();break;case 22:for(H=0,A=sn;H<A.length;H++)W=A[H],(r=[W.time,W.event]).push(W.data.type),r.push(W.data.hash),r.push(W.data.x),r.push(W.data.y),r.push(W.data.reaction),r.push(W.data.context),Pn(r,!1);ln();break;case 28:R=Ke,r.push(R.visible),Pn(r),j(n,R.visible),tn();break;case 50:L=en,r.push(L.focused),Pn(r,!1),rn()}return[2]}))}))}var cn=[],sn=[];function ln(){sn=[]}function dn(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),cn.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),X(e,r,a,t)}function fn(){if(fa){var t=[];sn=[];for(var e=(fa.start||0)+(fa.duration||0),n=Math.max(e-2e3,0),r=0,a=cn;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&sn.push(o),t.push(o))}cn=t,un(22)}}var pn=Object.freeze({__proto__:null,compute:fn,reset:ln,start:function(){cn=[],ln()},stop:function(){cn=[],ln()},track:dn,get updates(){return sn}}),hn=[],vn=!1,gn=null;function mn(t){vn&&"function"==typeof t&&hn.push(t)}function wn(t){if(vn){var e=t?t.split(" "):[""],n=e.length>1?parseInt(e[1],10):null;n&&gn.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(gn.add(e),Y(gn))},n.onerror=function(){ma(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var yn,bn,_n,kn,Tn,xn,Sn=Object.freeze({__proto__:null,event:wn,register:mn,start:function(){vn=!0,gn=new Set,u.modules&&u.modules.length>0&&u.modules.forEach((function(t){wn(t)}))},stop:function(){hn.reverse().forEach((function(t){try{t()}catch(t){}})),hn=[],vn=!1}}),On=0,En=0,Nn=null,In=0,Mn=!1;function Xn(){kn=!0,On=0,En=0,Mn=!1,In=0,yn=[],bn=[],_n={},Tn=null}function Pn(t,e){if(void 0===e&&(e=!0),kn){var n=d(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(u.lean?!Mn&&En+a.length>10485760&&(xt(10,0),Mn=!0):Mn=!1,r){case 5:if(Mn)break;On+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(Mn)break;En+=a.length,yn.push(a);break;default:bn.push(a)}L(25);var o=function(){var t=!1===u.lean&&On>0?100:fa.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-In>2*o&&(G(Nn),Nn=null),e&&null===Nn&&(25!==r&&Z(),Nn=F(Cn,o),In=n,_r(En))}}function jn(){kn&&(G(Nn),Nn=null,Cn(!0))}function Yn(){G(Nn),Cn(!0),On=0,En=0,Mn=!1,In=0,yn=[],bn=[],_n={},Tn=null,kn=!1}function Cn(t){return void 0===t&&(t=!1),at(this,void 0,void 0,(function(){var e,n,r,a,o,i,c,s;return ot(this,(function(l){switch(l.label){case 0:return kn?(Nn=null,(e=!1===u.lean&&En>0&&(En<1048576||fa.sequence>0))&&U(1,1),fn(),ee(),n=!0===t,fa?(r=JSON.stringify(va(n)),a="[".concat(bn.join(),"]"),o=e?"[".concat(yn.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),i=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,ut(i)];case 2:s=l.sent(),l.label=3;case 3:return q(2,(c=s)?c.length:i.length),zn(i,c,fa.sequence,n),bn=[],e&&(yn=[],En=0,On=0,Mn=!1),[2]}}))}))}function zn(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&Hn(n)}catch(t){}if(!1===o){n in _n?_n[n].attempts++:_n[n]={data:t,attempts:1};var i=new XMLHttpRequest;i.open("POST",a,!0),i.timeout=15e3,i.ontimeout=function(){ma(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(i.onreadystatechange=function(){wa(Dn)(i,n)}),i.withCredentials=!0,e?(i.setRequestHeader("Accept","application/x-clarity-gzip"),i.send(e)):i.send(t)}}else if(u.upload){(0,u.upload)(t),Hn(n)}}function Dn(t,e){var n=_n[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?kr(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),Tn={sequence:e,attempts:n.attempts,status:t.status},yr(2),zn(n.data,null,e)):(Tn={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&yr(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],o=a&&a.length>0?a.split(/ (.*)/):[""];switch(o[0]){case"END":kr(6);break;case"UPGRADE":mr("Auto");break;case"ACTION":u.action&&o.length>1&&u.action(o[1]);break;case"EXTRACT":o.length>1&&Xt(o[1]);break;case"SIGNAL":o.length>1&&Kt(o[1]);break;case"MODULE":o.length>1&&wn(o[1]);break;case"SNAPSHOT":u.lean=!1,cr()}}}(t.responseText),0===t.status&&(zn(n.data,null,e,!0),kr(3)),t.status>=200&&t.status<=208&&Hn(e),delete _n[e]))}function Hn(t){1===t&&(ia(),oa())}function An(t){return at(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,l,f,p,h;return ot(this,(function(v){switch(e=d(),n=[e,t],t){case 8:r=xn,n.push(r.width),n.push(r.height),X(t,r.width,r.height),Pn(n);break;case 43:if((a=$n).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,l=0,f=["tag","attributes","value"];l<f.length;l++)if(s[p=f[l]])switch(p){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[p]);break;case"attributes":for(h in s[p])void 0!==s[p][h]&&n.push(Wn(h,s[p][h],c,s.tag));break;case"value":n.push(b(s[p],s.tag,c))}Pn(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}function Wn(t,e,n,r){return"href"===t&&"LINK"===r?"".concat(t,"=").concat(e):"".concat(t,"=").concat(b(e,0===t.indexOf("data-")?"data-":t,n))}function Rn(){xn=null}function Ln(){var t,e,n,r,a,o,i,u,c,s,l,d,f,p,h,v;Rn(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,o=e?e.clientWidth:null,i=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,o,i,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,f=e?e.clientHeight:null,p=e?e.scrollHeight:null,h=e?e.offsetHeight:null,v=Math.max(s,l,d,f,p,h),null!==xn&&c===xn.width&&v===xn.height||null===c||null===v||(xn={width:c,height:v},An(8))}var qn=!1;function Un(t){t&&t.persisted&&(Aa(),xt(11,0))}var Fn=Object.freeze({__proto__:null,start:function(){if(!qn)try{window[c("addEventListener")]("pageshow",wa(Un),{capture:!1,passive:!0}),qn=!0}catch(t){}},stop:function(){}}),Gn=[pn,xe,Pe,nn,Le,Fn,Qe],Vn=[pn,xe,ae,ae,ae,Pe,nn,on,Fn,Le,ae,ae,Ve,Qe],Jn={allRoots:[Le],documentOnly:[xe]},Bn={allRoots:[Le],documentOnly:[xe,ae,ae,ae,ae,ae,Ve]},Zn=Vn;function Kn(t){var e="gemx"===u.mode?Jn:Bn;e.allRoots.forEach((function(e){return e.observe(t)})),t.nodeType===Node.DOCUMENT_NODE&&e.documentOnly.forEach((function(e){return e.observe(t)}))}var Qn=Object.freeze({__proto__:null,observe:Kn,start:function(){(Zn="gemx"===u.mode?Gn:Vn).forEach((function(t){return t.start()}))},stop:function(){Zn.forEach((function(t){return t.stop()}))}}),$n=[],tr=1,er=null;function nr(){sr(),Ln(),dr(document.documentElement),Kn(document)}function rr(){return!1}function ar(){return{x:0,y:0}}function or(){}function ir(t){var e=t.composed&&t.composedPath?t.composedPath():null,n=e&&e.length>0?e[0]:t.target;return n.nodeType===Node.DOCUMENT_NODE?n.documentElement:n}function ur(t){var e={id:0,hash:null,privacy:u.conversions?1:5};return t&&(e.id=er.has(t)?er.get(t):dr(t)),e}function cr(){$n=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=o.nodeValue,r=er.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=lr(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}fr(o,u,{tag:r,attributes:n,value:a})}}(document),An(43)}function sr(){er=new WeakMap}function lr(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function dr(t){return null===t?null:er.has(t)?er.get(t):(er.set(t,tr),tr++)}function fr(t,e,n){if(t&&n&&n.tag){var r=dr(t),a=e?er.get(e):null,o=t.previousSibling?er.get(t.previousSibling):null;$n.push({id:r,parent:a,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var pr,hr=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:or,iframe:rr,metadata:ur,offset:ar,snapshot:cr,start:nr,stop:function(){sr(),Rn()},target:ir,get values(){return $n}}),vr=null;function gr(){!u.lean&&u.upgrade&&u.upgrade("Config"),vr=null}function mr(t){ja()&&u.lean&&(u.lean=!1,vr={key:t},oa(),ia(),u.upgrade&&u.upgrade(t),yr(3),u.lite&&nr())}function wr(){vr=null}function yr(t){var e=[d(),t];switch(t){case 4:var n=E;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),e.push(n.data.modules),Pn(e,!1)),M();break;case 25:e.push(A.gap),Pn(e);break;case 35:e.push(pr.check),Pn(e,!1);break;case 3:e.push(vr.key),Pn(e);break;case 2:e.push(Tn.sequence),e.push(Tn.attempts),e.push(Tn.status),Pn(e,!1);break;case 24:D.key&&e.push(D.key),e.push(D.value),Pn(e);break;case 34:var r=Object.keys(st);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(st[i])}ht(),Pn(e,!1)}break;case 0:var u=Object.keys(R);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var l=s[c],f=parseInt(l,10);e.push(f),e.push(Math.round(R[l]))}R={},Pn(e,!1)}break;case 1:var p=Object.keys(Or);if(p.length>0){for(var h=0,v=p;h<v.length;h++){var g=v[h];f=parseInt(g,10);e.push(f),e.push(Or[g])}Pr(),Pn(e,!1)}break;case 36:var m=Object.keys($);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];f=parseInt(b,10);e.push(f),e.push([].concat.apply([],$[b]))}et(),Pn(e,!1)}break;case 40:Ot.forEach((function(t){e.push(t);var n=[];for(var r in St[t]){var a=parseInt(r,10);n.push(a),n.push(St[t][r])}e.push(n)})),Yt(),Pn(e,!1);break;case 47:e.push(jr.source),e.push(jr.ad_Storage),e.push(jr.analytics_Storage),Pn(e,!1)}}function br(){pr={check:0}}function _r(t){if(0===pr.check){var e=pr.check;e=fa.sequence>=128?1:e,e=fa.pageNum>=128?7:e,e=d()>72e5?2:e,(e=t>10485760?2:e)!==pr.check&&kr(e)}}function kr(t){pr.check=t,5!==t&&(aa(),Wa())}function Tr(){0!==pr.check&&yr(35)}function xr(){pr=null}var Sr=null,Or=null,Er=!1;function Nr(){Sr={},Or={},Er=!1}function Ir(){Sr={},Or={},Er=!1}function Mr(t,e){if(e&&(e="".concat(e),t in Sr||(Sr[t]=[]),Sr[t].indexOf(e)<0)){if(Sr[t].length>128)return void(Er||(Er=!0,kr(5)));Sr[t].push(e),t in Or||(Or[t]=[]),Or[t].push(e)}}function Xr(){yr(1)}function Pr(){Or={},Er=!1}var jr=null,Yr=!0;function Cr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;Yr=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],Dr)}function zr(){Yr=!0}function Dr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState)try{var n=e.getConsentState("analytics_storage");ea(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}catch(t){return}}function Hr(t){Wr(t.analytics_Storage?1:0),jr=t}function Ar(){Wr(2)}function Wr(t){Mr(36,t.toString())}function Rr(t){jr=t,yr(47)}function Lr(){var t;if(Yr&&(yr(47),Yr=!1,!u.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&Dr()}}var qr=null,Ur=[],Fr=0,Gr=null,Vr=!1,Jr={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function Br(){var t,e,n,r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",o=(new Date).getTimezoneOffset().toString(),i=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Fr=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:ca(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Ut("_clsk",!u.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-sa(n[1])<18e5&&(t.session=n[0],t.count=sa(n[2])+1,t.upgrade=sa(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=la(),d=u.projectId||p(location.host),f=u.externalSession&&u.userId?u.userId:l.id,h=u.externalSession&&u.sessionId?u.sessionId:s.session;qr={projectId:d,userId:f,sessionId:h,pageNum:s.count},u.lean=u.track&&null!==s.upgrade?0===s.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&s.upload&&s.upload.length>"https://".length?s.upload:u.upload,Mr(0,r),Mr(3,c),Mr(1,_(location.href,!!Fr)),Mr(2,document.referrer),Mr(15,function(){var t=ca();if(u.track&&Wt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Mr(16,document.documentElement.lang),Mr(17,document.dir),Mr(26,"".concat(window.devicePixelRatio)),Mr(28,l.dob.toString()),Mr(29,l.version.toString()),Mr(33,i),Mr(34,a),Mr(35,o),U(0,s.ts),U(1,0),U(35,Fr);var v,g=null===window||void 0===window?void 0:window.Zone;g&&"__symbol__"in g&&U(39,1),navigator&&(Mr(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(v=navigator.userAgentData)&&v.getHighEntropyValues?v.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Mr(22,t.platform),Mr(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Mr(24,t.name+"~"+t.version)})),Mr(25,t.model),U(27,t.mobile?1:0)})):Mr(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth))),null===Gr&&(Gr={source:l.consent?6:0,ad_Storage:u.track?"granted":"denied",analytics_Storage:u.track?"granted":"denied"}),Zr(),Hr(na(Gr)),u.externalSession||ua(l)}function Zr(){if(!Vr&&"granted"===(null==Gr?void 0:Gr.analytics_Storage)&&"granted"===(null==Gr?void 0:Gr.ad_Storage)){for(var t=0,e=u.cookies;t<e.length;t++){var n=e[t],r=Ut(n);r&&lt(n,r)}Vr=!0}}function Kr(){qr=null,Vr=!1,Ur.forEach((function(t){t.called=!1}))}function Qr(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=u.lean?0:1,o=!1;qr&&(a||!1===e)&&(t(qr,!u.lean,r?Gr:void 0),o=!0),!n&&o||Ur.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function $r(){return qr?[qr.userId,qr.sessionId,qr.pageNum].join("."):""}function ta(t){void 0===t&&(t=!0),ea(t?{source:4,ad_Storage:"granted",analytics_Storage:"granted"}:{source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function ea(t,e){var n;if(void 0===t&&(t=Jr),void 0===e&&(e=5),ja()){var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:ra(t.ad_Storage,null==Gr?void 0:Gr.ad_Storage),analytics_Storage:ra(t.analytics_Storage,null==Gr?void 0:Gr.analytics_Storage)};if(Gr&&r.ad_Storage===Gr.ad_Storage&&r.analytics_Storage===Gr.analytics_Storage)return Gr.source=r.source,Rr(na(Gr)),void Ar();Gr=r,oa(!0);var a=na(Gr);if(!a.analytics_Storage&&u.track)return u.track=!1,aa(!0),Wa(),void window.setTimeout(Aa,250);ja()&&a.analytics_Storage&&(u.track=!0,ua(la(),1),ia()),Zr(),Rr(a),Ar()}}function na(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function ra(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function aa(t){void 0===t&&(t=!1),Ft("_clsk","",0),t&&Ft("_clck","",0)}function oa(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(Ur.length>0)for(var n=0;n<Ur.length;n++){var r=Ur[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(qr,!u.lean,r.consentInfo?Gr:void 0),r.called=!0,r.recall||(Ur.splice(n,1),n--))}}(u.lean?0:1,t)}function ia(){if(qr&&u.track&&!u.externalSession){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;Ft("_clsk",[qr.sessionId,t,qr.pageNum,n,e].join(qt),1)}}function ua(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===u.dob?0:u.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Ft("_clck",[qr.userId,2,n.toString(36),e,r].join(qt),365)}function ca(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function sa(t,e){return void 0===e&&(e=10),parseInt(t,e)}function la(){var t={id:ca(),version:0,expiry:null,consent:0,dob:0},e=Ut("_clck",!u.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=sa(n[1])),n.length>2&&(t.expiry=sa(n[2],36)),n.length>3&&1===sa(n[3])&&(t.consent=1),n.length>4&&sa(n[1])>1&&(t.dob=sa(n[4])),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}var da,fa=null;function pa(){var t=qr;fa={version:f,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function ha(){fa=null}function va(t){return fa.start=fa.start+fa.duration,fa.duration=d()-fa.start,fa.sequence++,fa.upload=t&&"sendBeacon"in navigator?1:0,fa.end=t?1:0,fa.applicationPlatform=0,fa.url=_(location.href,!1,!0),[fa.version,fa.sequence,fa.start,fa.duration,fa.projectId,fa.userId,fa.sessionId,fa.pageNum,fa.upload,fa.end,fa.applicationPlatform,fa.url]}function ga(){da=[]}function ma(t){if(da&&-1===da.indexOf(t.message)){var e=u.report;if(e&&e.length>0&&fa){var n={v:fa.version,p:fa.projectId,u:fa.userId,s:fa.sessionId,n:fa.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),da.push(t.message)}}return t}function wa(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw ma(t)}var n=performance.now()-e;q(4,n),n>30&&(L(7),U(6,n),t.dn&&xt(9,0,"".concat(t.dn,"-").concat(n)))}}var ya=new Map;function ba(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=wa(n);try{t[c("addEventListener")](e,n,{capture:r,passive:a}),function(t){return ya.has(t)}(t)||ya.set(t,[]),ya.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function _a(){ya.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[c("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),ya.delete(e)}(t,e)})),ya=new Map}var ka=null,Ta=null,xa=null,Sa=0;function Oa(){return!(Sa++>20)||(xt(4,0),!1)}function Ea(){Sa=0,xa!==Ia()&&(Wa(),window.setTimeout(Na,250))}function Na(){Aa(),U(29,1)}function Ia(){return location.href?location.href.replace(location.hash,""):location.href}var Ma=!1;function Xa(){Ma=!0,s=l(),se(),_a(),ga(),function(){if(xa=Ia(),Sa=0,ba(window,"popstate",Ea),null===ka)try{ka=history.pushState,history.pushState=function(){ka.apply(this,arguments),ja()&&Oa()&&Ea()}}catch(t){ka=null}if(null===Ta)try{Ta=history.replaceState,history.replaceState=function(){Ta.apply(this,arguments),ja()&&Oa()&&Ea()}}catch(t){Ta=null}}()}function Pa(){xa=null,Sa=0,ga(),_a(),se(),s=0,Ma=!1}function ja(){return Ma}function Ya(){Aa(),H("clarityGemX","restart")}var Ca=Object.freeze({__proto__:null,start:function(){!function(){U(26,navigator.webdriver?1:0);try{U(31,window.top==window.self||window.top==window?1:2)}catch(t){U(31,0)}}(),ba(window,"error",bt),yt={},Tt={}},stop:function(){Tt={}}}),za=[Ca,hr,Qn],Da=[Ca,hr,Qn,ae,Sn],Ha=Da;function Aa(t){void 0===t&&(t=null),Ha="gemx"===t.mode?za:Da,function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Ma&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||Ma)return!1;for(var e in t)e in u&&(u[e]=t[e])}(t),Xa(),$t(),Ha.forEach((function(t){return wa(t.start)()})),null===t&&Ua())}function Wa(){ja()&&(Ha.slice().reverse().forEach((function(t){return wa(t.stop)()})),te(),Pa(),void 0!==La&&(La[qa]=function(){(La[qa].q=La[qa].q||[]).push(arguments),"start"===arguments[0]&&La[qa].q.unshift(La[qa].q.pop())&&Ua()}))}var Ra=Object.freeze({__proto__:null,consent:ta,consentv2:ea,dlog:Mr,event:H,hashText:or,identify:dt,maxMetric:U,measure:wa,metadata:Qr,pause:function(){ja()&&(H("clarityGemX","pause"),null===ue&&(ue=new Promise((function(t){ce=t}))))},queue:Pn,register:mn,resume:function(){ja()&&(ue&&(ce(),ue=null,null===ie&&de()),H("clarityGemX","resume"))},schedule:le,set:lt,signal:function(t){Zt=t},start:Aa,stop:Wa,time:d,upgrade:mr,version:f}),La=window,qa="clarityGemX";function Ua(){if(void 0!==La){if(La[qa]&&La[qa].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=La[qa]&&La[qa].q||[];for(La[qa]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Ra[t].apply(Ra,e)},La[qa].v=f;t.length>0;)La[qa].apply(La,t.shift())}}Ua()}();
package/build/clarity.js CHANGED
@@ -188,6 +188,7 @@ var config$2 = {
188
188
  externalSession: false,
189
189
  userId: null,
190
190
  sessionId: null,
191
+ mode: "gemx",
191
192
  };
192
193
 
193
194
  function api(method) {
@@ -221,7 +222,7 @@ function stop$M() {
221
222
  startTime = 0;
222
223
  }
223
224
 
224
- var version$1 = "0.8.85";
225
+ var version$1 = "0.8.86";
225
226
 
226
227
  // tslint:disable: no-bitwise
227
228
  function hash (input, precision) {
@@ -1315,12 +1316,14 @@ var cookie = /*#__PURE__*/Object.freeze({
1315
1316
 
1316
1317
  var defaultConfig = {
1317
1318
  excludeClassNames: [],
1319
+ ignoreMutationClassNames: [],
1318
1320
  };
1319
1321
  var _config = __assign({}, defaultConfig);
1320
1322
  function start$H() {
1321
- var _a, _b;
1323
+ var _a, _b, _c, _d;
1322
1324
  _config = {
1323
1325
  excludeClassNames: ((_b = (_a = window === null || window === void 0 ? void 0 : window.GemXHeatmap) === null || _a === void 0 ? void 0 : _a.excludeClassNames) !== null && _b !== void 0 ? _b : []),
1326
+ ignoreMutationClassNames: ((_d = (_c = window === null || window === void 0 ? void 0 : window.GemXHeatmap) === null || _c === void 0 ? void 0 : _c.ignoreMutationClassNames) !== null && _d !== void 0 ? _d : []),
1324
1327
  };
1325
1328
  }
1326
1329
  function stop$E() {
@@ -1384,14 +1387,16 @@ function stop$D() {
1384
1387
  stop$K();
1385
1388
  }
1386
1389
  function compute$b() {
1387
- compute$d();
1388
1390
  compute$g();
1389
- compute$3();
1390
- compute$f();
1391
- compute$e();
1392
1391
  compute$4();
1393
- compute$c();
1394
1392
  compute$2();
1393
+ if (config$2.mode !== "gemx") {
1394
+ compute$d();
1395
+ compute$3();
1396
+ compute$f();
1397
+ compute$e();
1398
+ compute$c();
1399
+ }
1395
1400
  }
1396
1401
 
1397
1402
  var history$5 = [];
@@ -2377,17 +2382,15 @@ var ALL$1 = [
2377
2382
  var GEMX_OBSERVE = { allRoots: [scroll], documentOnly: [click] };
2378
2383
  var ALL_OBSERVE = { allRoots: [scroll], documentOnly: [click, clipboard, pointer, input, selection, change, submit] };
2379
2384
  var modules$2 = ALL$1;
2380
- var observeModules = ALL_OBSERVE;
2381
2385
  function start$r() {
2382
- var mode = config$2.mode;
2383
- modules$2 = mode === "gemx" ? GEMX$1 : ALL$1;
2384
- observeModules = mode === "gemx" ? GEMX_OBSERVE : ALL_OBSERVE;
2386
+ modules$2 = config$2.mode === "gemx" ? GEMX$1 : ALL$1;
2385
2387
  modules$2.forEach(function (m) { return m.start(); });
2386
2388
  }
2387
2389
  function stop$p() {
2388
2390
  modules$2.forEach(function (m) { return m.stop(); });
2389
2391
  }
2390
2392
  function observe$4(root) {
2393
+ var observeModules = config$2.mode === "gemx" ? GEMX_OBSERVE : ALL_OBSERVE;
2391
2394
  observeModules.allRoots.forEach(function (m) { return m.observe(root); });
2392
2395
  if (root.nodeType === Node.DOCUMENT_NODE) {
2393
2396
  observeModules.documentOnly.forEach(function (m) { return m.observe(root); });
@@ -3082,7 +3085,7 @@ function handle$1(m) {
3082
3085
  }
3083
3086
  function processMutation(timer, mutation, instance, timestamp) {
3084
3087
  return __awaiter(this, void 0, void 0, function () {
3085
- var state$1, target, type;
3088
+ var state$1, target, ignoredClasses, el_1, type;
3086
3089
  return __generator(this, function (_a) {
3087
3090
  switch (_a.label) {
3088
3091
  case 0:
@@ -3097,6 +3100,13 @@ function processMutation(timer, mutation, instance, timestamp) {
3097
3100
  return [2 /*return*/];
3098
3101
  }
3099
3102
  target = mutation.target;
3103
+ ignoredClasses = get$2().ignoreMutationClassNames;
3104
+ if (ignoredClasses.length > 0 && target instanceof Element) {
3105
+ el_1 = target;
3106
+ if (ignoredClasses.some(function (cls) { return el_1.classList.contains(cls); })) {
3107
+ return [2 /*return*/];
3108
+ }
3109
+ }
3100
3110
  type = config$2.throttleDom ? track$5(mutation, timer, instance, timestamp) : mutation.type;
3101
3111
  if (type && target && target.ownerDocument) {
3102
3112
  parse(target.ownerDocument);
@@ -4474,10 +4484,10 @@ function metadata$2(node, event, text) {
4474
4484
  var output = { id: 0, hash: null, privacy: 2 /* Privacy.Text */ };
4475
4485
  if (node) {
4476
4486
  var value = get(node);
4477
- console.log("[GemX - Target - Metadata]", {
4478
- selector: value.selector,
4479
- hash: value.hash,
4480
- });
4487
+ if (!window.GemXHeatmap.__debug) {
4488
+ window.GemXHeatmap.__debug = [];
4489
+ }
4490
+ window.GemXHeatmap.__debug.push({ event: event, selector: value.selector, hash: value.hash });
4481
4491
  if (value !== null) {
4482
4492
  var metadata_1 = value.metadata;
4483
4493
  output.id = value.id;