clarity-js 0.8.9 → 0.8.11-beta

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 queue(){return qe},get start(){return ze},get stop(){return Re},get track(){return Ye}}),e=Object.freeze({__proto__:null,get data(){return vn},get start(){return gn},get stop(){return wn},get upgrade(){return mn}}),n=Object.freeze({__proto__:null,get check(){return kn},get compute(){return _n},get data(){return hn},get start(){return bn},get stop(){return xn},get trigger(){return Tn}}),r=Object.freeze({__proto__:null,get compute(){return Pn},get data(){return On},get log(){return Xn},get reset(){return In},get start(){return Mn},get stop(){return Nn},get updates(){return En}}),a=Object.freeze({__proto__:null,get callback(){return Un},get callbacks(){return An},get clear(){return Ln},get consent(){return Rn},get data(){return jn},get electron(){return Cn},get id(){return qn},get metadata(){return zn},get save(){return Fn},get shortid(){return Bn},get start(){return Hn},get stop(){return Wn}}),i=Object.freeze({__proto__:null,get data(){return er},get envelope(){return ar},get start(){return nr},get stop(){return rr}}),o={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};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(t){void 0===t&&(t=null);var e=t&&t.timeStamp>0?t.timeStamp:performance.now(),n=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(e+n-c),0)}var l="0.8.9";function d(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,i=0;i<t.length;i+=2){if(r=(r<<5)+r^t.charCodeAt(i),i+1<t.length)a=(a<<5)+a^t.charCodeAt(i+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var p=/\S/gi,h=255,f=!0,v=null,g=null,m=null;function w(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,i=!1,o=null;x();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(r||a){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=f&&null!==m?s.match(m)?s:T(s,"▪","▫"):k(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(r=!1,a=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return _(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?b(t):k(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return _(t);case"placeholder":return k(t)}break;case 4:switch(e){case"*T":case"data-":return r?b(t):k(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 T(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 y(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=o.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];r=u+"?"+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,h)),r}function b(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),i=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(i)}return t}function k(t){return t.replace(p,"•")}function T(t,e,n){return x(),t?t.replace(g,e).replace(v,n):t}function _(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 x(){if(f&&null===v)try{v=new RegExp("\\p{N}","gu"),g=new RegExp("\\p{L}","gu"),m=new RegExp("\\p{Sc}","gu")}catch(t){f=!1}}var O=null,E=null,S=!1;function M(){S&&(O={time:s(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime}}),E=E||{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}}function N(t,e,n,r){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=r;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 13:E.downX=e,E.downY=n,E.downTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 14:E.upX=e,E.upY=n,E.upTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r}S=!0}function X(t){E.activityTime=t}function P(t,e){E.visible="visible"===e?1:0,E.visible||X(t),S=!0}function I(){S&&yn(4)}var Y=Object.freeze({__proto__:null,activity:X,compute:I,reset:M,start:function(){S=!1,M()},get state(){return O},stop:function(){M()},track:N,visibility:P}),j=null;function A(t,e){Tr()&&t&&"string"==typeof t&&t.length<255&&(j=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},yn(24))}var C,D=null,H=null;function W(t){t in D||(D[t]=0),t in H||(H[t]=0),D[t]++,H[t]++}function z(t,e){null!==e&&(t in D||(D[t]=0),t in H||(H[t]=0),D[t]+=e,H[t]+=e)}function q(t,e){null!==e&&!1===isNaN(e)&&(t in D||(D[t]=0),(e>D[t]||0===D[t])&&(H[t]=e,D[t]=e))}function R(t,e,n){return window.setTimeout(ur(t),e,n)}function L(t){return window.clearTimeout(t)}var U=0,F=0,V=null;function J(){V&&L(V),V=R(B,F),U=s()}function B(){var t=s();C={gap:t-U},yn(25),C.gap<3e5?V=R(B,F):yr&&(A("clarity","suspend"),Sr(),["mousemove","touchstart"].forEach((function(t){return sr(document,t,_r)})),["resize","scroll","pageshow"].forEach((function(t){return sr(window,t,_r)})))}var Z=Object.freeze({__proto__:null,get data(){return C},reset:J,start:function(){F=6e4,U=0},stop:function(){L(V),U=0,F=0}}),G=null;function K(){yn(36)}function Q(){G={}}var $=Object.freeze({__proto__:null,compute:K,get data(){return G},reset:Q,start:function(){G={}},stop:function(){G={}},track:function(t,e){if(t in G){var n=G[t],r=n[n.length-1];e-r[0]>100?G[t].push([e,0]):r[1]=e-r[0]}else G[t]=[[e,0]]}});function tt(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(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(o,u)}c((r=r.apply(t,e||[])).next())}))}function et(t,e){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)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 o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}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 nt="CompressionStream"in window;function rt(t){return tt(this,void 0,void 0,(function(){var e,n;return et(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),nt?(e=new ReadableStream({start:function(e){return tt(this,void 0,void 0,(function(){return et(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,at(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 at(t){return tt(this,void 0,void 0,(function(){var e,n,r,a,i;return et(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],r=!1,a=[],o.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return i=o.sent(),r=i.done,a=i.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var it=null;function ot(t,e){ct(t,"string"==typeof e?[e]:e)}function ut(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),tt(this,void 0,void 0,(function(){var a,i;return et(this,(function(o){switch(o.label){case 0:return i={},[4,dt(t)];case 1:return i.userId=o.sent(),i.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),ct("userId",[(a=i).userId]),ct("userHint",[a.userHint]),ct("userType",[pt(t)]),e&&(ct("sessionId",[e]),a.sessionId=e),n&&(ct("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ct(t,e){if(Tr()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in it?it[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);it[t]=n}}function st(){yn(34)}function lt(){it={}}function dt(t){return tt(this,void 0,void 0,(function(){var e;return et(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 pt(t){return t&&t.indexOf("@")>0?"email":"string"}var ht=Object.freeze({__proto__:null,compute:st,get data(){return it},identify:ut,reset:lt,set:ot,start:function(){lt()},stop:function(){lt()}});var ft,vt={};function gt(t){gt.dn=4;var e=t.error||t;return e.message in vt||(vt[e.message]=0),vt[e.message]++>=5||e&&e.message&&(ft={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},mt(31)),!0}function mt(t){return tt(this,void 0,void 0,(function(){var e;return et(this,(function(n){switch(e=[s(),t],t){case 31:e.push(ft.message),e.push(ft.line),e.push(ft.column),e.push(ft.stack),e.push(y(ft.source)),qe(e);break;case 33:wt&&(e.push(wt.code),e.push(wt.name),e.push(wt.message),e.push(wt.stack),e.push(wt.severity),qe(e,!1))}return[2]}))}))}var wt,yt={};function bt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?"".concat(n,"|").concat(r):"";t in yt&&yt[t].indexOf(i)>=0||(wt={code:t,name:n,message:r,stack:a,severity:e},t in yt?yt[t].push(i):yt[t]=[i],mt(33))}var kt={},Tt=new Set,_t={},xt={},Ot={},Et={};function St(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in _t[r]={},xt[r]={},Ot[r]={},Et[r]=a,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);_t[r][u]=It(l);break;case 2:xt[r][u]=c;break;case 4:var d=c.slice(1);Ot[r][u]=d}}}catch(t){bt(8,1,t?t.name:null)}}function Mt(t){return JSON.parse(JSON.stringify(t))}function Nt(){try{for(var t in _t){var e=parseInt(t);if(""==Et[e]||document.querySelector(Et[e])){var n=_t[e];for(var r in n){var a=parseInt(r),i=(m=Yt(Mt(n[a])))?JSON.stringify(m).slice(0,1e4):m;i&&Pt(e,a,i)}var o=xt[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var p=document.querySelectorAll(l);if(p){var h=Array.from(p).map((function(t){return t.textContent})).join("<SEP>");Pt(e,s,(c?d(h).trim():h).slice(0,1e4))}}var f=Ot[e];for(var v in f){var g=parseInt(v);Pt(e,g,(void f[g]).trim().slice(0,1e4))}}}Tt.size>0&&yn(40)}catch(t){bt(5,1,t?t.name:null)}var m}function Xt(){Tt.clear()}function Pt(t,e,n){var r,a=!1;t in kt||(kt[t]={},a=!0),r=Ot[t],0==Object.keys(r).length||e in kt[t]&&kt[t][e]==n||(a=!0),kt[t][e]=n,a&&Tt.add(t)}function It(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),i=r.indexOf("{"),o=r.indexOf("}");e.push({name:a>0?r.slice(0,a):i>0?r.slice(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.slice(i+1,o):null})}return e}function Yt(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&&jt(a,r.condition))n=Yt(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var c=u[o];if(jt(c,r.condition)){var s=Yt(t,c);s&&i.push(s)}}n=i}return n}return null}function jt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var At=null;function Ct(t){try{if(!At)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){At(t)}))}catch(t){}}var Dt=[Y,r,ht,n,$,a,i,t,Z,e,Object.freeze({__proto__:null,clone:Mt,compute:Nt,data:kt,keys:Tt,reset:Xt,start:function(){Xt()},stop:function(){Xt()},trigger:St,update:Pt})];function Ht(){D={},H={},W(5),Dt.forEach((function(t){return ur(t.start)()}))}function Wt(){Dt.slice().reverse().forEach((function(t){return ur(t.stop)()})),D={},H={}}function zt(){st(),I(),Pn(),yn(0),K(),_n(),Nt()}var qt=[],Rt=null;var Lt=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Rt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:qt,stop:function(){}}),Ut=[],Ft=null,Vt=null,Jt=null;function Bt(){Ut=[],Ft=null,Vt=null}function Zt(t,e){return void 0===e&&(e=0),tt(this,void 0,void 0,(function(){var n,r,a;return et(this,(function(i){for(n=0,r=Ut;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){Ut[1===e?"unshift":"push"]({task:t,resolve:n,id:qn()})})),null===Ft&&null===Vt&&Gt(),[2,a]}))}))}function Gt(){var t=Ut.shift();t&&(Ft=t,t.task().then((function(){t.id===qn()&&(t.resolve(),Ft=null,Gt())})).catch((function(e){t.id===qn()&&(e&&bt(0,1,e.name,e.message,e.stack),Ft=null,Gt())})))}var Kt,Qt=["input","textarea","radio","button","canvas","select"],$t=[];function te(t){sr(t,"click",ee.bind(this,9,t),!0)}function ee(t,e,n){ee.dn=6;var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,o=un(n),u=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}(o),c=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var r=t.getBoundingClientRect();r&&r.width>0&&r.height>0&&(e={x:Math.floor(r.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(r.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(r.width),h:Math.floor(r.height)})}return e}(o);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var l=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==a&&null!==i){var p=function(t){var e=null,n=!1;if(t){var r=t.textContent||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}}(o);$t.push({time:s(n),event:t,data:{target:o,x:a,y:i,eX:l,eY:d,button:n.button,reaction:ne(o),context:re(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText}}),Zt(xe.bind(this,t))}}function ne(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Qt.indexOf(e)>=0)return 0}return 1}function re(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 ae(){$t=[]}var ie=null,oe=!1;function ue(){ue.dn=12;var t=document.documentElement;Kt={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},oe?(L(ie),ie=R(ce,500,11)):(xe(11),oe=!0)}function ce(t){Zt(xe.bind(this,t))}function se(){Kt=null,L(ie)}var le=[],de=null;function pe(t){void 0===t&&(t=null),pe.dn=13;var e=window,n=document.documentElement,r=t?un(t):n;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),i=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,l=o>u?.15*u:.2*u,d=u-l,p=he(c,l),h=he(c,d),f={time:s(t),event:10,data:{target:r,x:a,y:i,top:p,bottom:h}};if((null!==t||0!==a||0!==i)&&null!==a&&null!==i){var v=le.length,g=v>1?le[v-2]:null;g&&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<25}(g,f)&&le.pop(),le.push(f),L(de),de=R(fe,500,10)}}function he(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 fe(t){Zt(xe.bind(this,t))}var ve,ge,me=[];function we(t){we.dn=16,me.push({time:s(t),event:39,data:{target:un(t)}}),Zt(xe.bind(this,39))}function ye(){me=[]}function be(t){be.dn=17,ve={name:t.type,persisted:t.persisted?1:0},xe(26,s(t)),Sr()}function ke(){ve=null}function Te(t){void 0===t&&(t=null),Te.dn=18,ge={visible:"visibilityState"in document?document.visibilityState:"default"},xe(28,s(t))}function _e(){ge=null}function xe(t,e){return void 0===e&&(e=null),tt(this,void 0,void 0,(function(){var n,r,a,i,o,u,c,l,d,p,h,f,v,g,m,b,k,T,_,x,O,E,S,M,X,I,Y,j,A,C,D,H,W,z,q;return et(this,(function(R){switch(n=e||s(),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,i=qt;a<i.length;a++)z=i[a],(o=cn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(o.id),r.push(z.data.x),r.push(z.data.y),void 0!==z.data.id&&(r.push(z.data.id),void 0!==z.data.isPrimary&&r.push(z.data.isPrimary.toString())),qe(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&N(z.event,z.data.x,z.data.y,z.time));break;case 9:for(u=0,c=$t;u<c.length;u++)z=c[u],l=cn(z.data.target,z.event,z.data.text),r=[z.time,z.event],d=l.hash?l.hash.join("."):"",r.push(l.id),r.push(z.data.x),r.push(z.data.y),r.push(z.data.eX),r.push(z.data.eY),r.push(z.data.button),r.push(z.data.reaction),r.push(z.data.context),r.push(w(z.data.text,"click",l.privacy)),r.push(y(z.data.link)),r.push(d),r.push(z.data.trust),r.push(z.data.isFullText),qe(r),Me(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);ae();break;case 38:for(p=0,h=qt;p<h.length;p++)z=h[p],r=[z.time,z.event],(D=cn(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),qe(r));break;case 11:f=Kt,r.push(f.width),r.push(f.height),N(t,f.width,f.height),se(),qe(r);break;case 26:v=ve,r.push(v.name),r.push(v.persisted),ke(),qe(r);break;case 27:for(g=0,m=qt;g<m.length;g++)z=m[g],b=cn(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(b.id),r.push(w(z.data.value,"input",b.privacy,!1,z.data.type)),qe(r);break;case 21:(k=Rt)&&(T=cn(k.start),_=cn(k.end),r.push(T.id),r.push(k.startOffset),r.push(_.id),r.push(k.endOffset),qe(r));break;case 10:for(x=0,O=le;x<O.length;x++)z=O[x],E=cn(z.data.target,z.event),S=cn(z.data.top,z.event),M=cn(z.data.bottom,z.event),X=(null==S?void 0:S.hash)?S.hash.join("."):"",I=(null==M?void 0:M.hash)?M.hash.join("."):"",E.id>0&&((r=[z.time,z.event]).push(E.id),r.push(z.data.x),r.push(z.data.y),r.push(X),r.push(I),qe(r),N(z.event,z.data.x,z.data.y,z.time));le=[];break;case 42:for(Y=0,j=qt;Y<j.length;Y++)z=j[Y],r=[z.time,z.event],(D=cn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(w(z.data.value,"change",D.privacy)),r.push(w(z.data.checksum,"checksum",D.privacy)),qe(r));break;case 39:for(A=0,C=me;A<C.length;A++)z=C[A],r=[z.time,z.event],(D=cn(z.data.target,z.event)).id>0&&(r.push(D.id),qe(r));ye();break;case 22:for(H=0,W=Ee;H<W.length;H++)z=W[H],(r=[z.time,z.event]).push(z.data.type),r.push(z.data.hash),r.push(z.data.x),r.push(z.data.y),r.push(z.data.reaction),r.push(z.data.context),qe(r,!1);Se();break;case 28:q=ge,r.push(q.visible),qe(r),P(n,q.visible),_e()}return[2]}))}))}var Oe=[],Ee=[];function Se(){Ee=[]}function Me(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Oe.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),N(e,r,a,t)}var Ne,Xe,Pe,Ie,Ye,je,Ae=0,Ce=0,De=null,He=0,We=!1;function ze(){Ie=!0,Ae=0,Ce=0,We=!1,He=0,Ne=[],Xe=[],Pe={},Ye=null}function qe(t,e){if(void 0===e&&(e=!0),Ie){var n=s(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(o.lean?!We&&Ce+a.length>10485760&&(bt(10,0),We=!0):We=!1,r){case 5:if(We)break;Ae+=a.length;case 37:case 6:case 43:case 45:case 46:if(We)break;Ce+=a.length,Ne.push(a);break;default:Xe.push(a)}W(25);var i=function(){var t=!1===o.lean&&Ae>0?100:er.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-He>2*i&&(L(De),De=null),e&&null===De&&(25!==r&&J(),De=R(Le,i),He=n,kn(Ce))}}function Re(){L(De),Le(!0),Ae=0,Ce=0,We=!1,He=0,Ne=[],Xe=[],Pe={},Ye=null,Ie=!1}function Le(t){return void 0===t&&(t=!1),tt(this,void 0,void 0,(function(){var e,n,r,a,i,u,c,s;return et(this,(function(l){switch(l.label){case 0:return De=null,(e=!1===o.lean&&Ce>0&&(Ce<1048576||er.sequence>0))&&q(1,1),function(){var t=[];Ee=[];for(var e=er.start+er.duration,n=Math.max(e-2e3,0),r=0,a=Oe;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&Ee.push(i),t.push(i))}Oe=t,xe(22)}(),zt(),n=!0===t,r=JSON.stringify(ar(n)),a="[".concat(Xe.join(),"]"),i=e?"[".concat(Ne.join(),"]"):"",u=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:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,rt(u)];case 2:s=l.sent(),l.label=3;case 3:return z(2,(c=s)?c.length:u.length),Ue(u,c,er.sequence,n),Xe=[],e&&(Ne=[],Ce=0,Ae=0,We=!1),[2]}}))}))}function Ue(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof o.upload){var a=o.upload,i=!1;if(r&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&Ve(n)}catch(t){}if(!1===i){n in Pe?Pe[n].attempts++:Pe[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){or(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){ur(Fe)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),Ve(n)}}function Fe(t,e){var n=Pe[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Tn(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),Ue(n.data,null,e)):(Ye={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&yn(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],i=a&&a.length>0?a.split(/ (.*)/):[""];switch(i[0]){case"END":Tn(6);break;case"UPGRADE":mn("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&St(i[1]);break;case"SIGNAL":i.length>1&&Ct(i[1])}}}(t.responseText),0===t.status&&(Ue(n.data,null,e,!0),Tn(3)),t.status>=200&&t.status<=208&&Ve(e),delete Pe[e]))}function Ve(t){1===t&&(Fn(),Un())}function Je(t){return tt(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,c,l,d,p,h,f;return et(this,(function(v){switch(e=s(),n=[e,t],t){case 8:r=je,n.push(r.width),n.push(r.height),N(t,r.width,r.height),qe(n);break;case 43:if((a=tn).length>0){for(i=0,o=a;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,l=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(l[h=p[d]])switch(h){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[h]);break;case"attributes":for(f in l[h])void 0!==l[h][f]&&n.push(Be(f,l[h][f],c));break;case"value":n.push(w(l[h],l.tag,c))}qe(function(t){for(var e=[],n={},r=0,a=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(o),n[o]=r++)}else a=null,e.push(t[i]),r++;return e}(n),!0)}}return[2]}))}))}function Be(t,e,n){return"".concat(t,"=").concat(w(e,0===t.indexOf("data-")?"data-":t,n))}function Ze(){je=null}function Ge(){Ze(),Ke()}function Ke(){Ke.dn=19;var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,p=e?e.clientHeight:null,h=e?e.scrollHeight:null,f=e?e.offsetHeight:null,v=Math.max(s,l,d,p,h,f);null!==je&&c===je.width&&v===je.height||null===c||null===v||(je={width:c,height:v},Je(8))}function Qe(t){!function(t){sr(t===document?window:t,"scroll",pe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(te(t),function(t){sr(t,"submit",we,!0)}(t))}var $e=Object.freeze({__proto__:null,observe:Qe,start:function t(){t.dn=8,Oe=[],Se(),ae(),oe=!1,sr(window,"resize",ue),ue(),sr(document,"visibilitychange",Te),Te(),le=[],pe(),ye(),sr(window,"pagehide",be)},stop:function(){Oe=[],Se(),ae(),se(),_e(),L(de),le=[],ye(),ke()}}),tn=[],en=1,nn=null;function rn(){sn(),Ge(),dn(document.documentElement),Qe(document)}function an(){return!1}function on(){}function un(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 cn(t){var e={id:0,hash:null,privacy:o.conversions?1:5};return t&&(e.id=nn.has(t)?nn.get(t):dn(t)),e}function sn(){nn=new WeakMap}function ln(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 dn(t){return null===t?null:nn.has(t)?nn.get(t):(nn.set(t,en),en++)}function pn(t,e,n){if(t&&n&&n.tag){var r=dn(t),a=e?nn.get(e):null,i=t.previousSibling?nn.get(t.previousSibling):null;tn.push({id:r,parent:a,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var hn,fn=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:on,iframe:an,metadata:cn,offset:function(){return{x:0,y:0}},snapshot:function(){tn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,r=nn.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=i;n=ln(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}pn(i,u,{tag:r,attributes:n,value:a})}}(document),Je(43)},start:rn,stop:function(){sn(),Ze()},target:un,get values(){return tn}}),vn=null;function gn(){!o.lean&&o.upgrade&&o.upgrade("Config"),vn=null}function mn(t){Tr()&&o.lean&&(o.lean=!1,vn={key:t},Un(),Fn(),o.upgrade&&o.upgrade(t),yn(3),o.lite&&rn())}function wn(){vn=null}function yn(t){var e=[s(),t];switch(t){case 4:var n=O;n&&((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),qe(e,!1)),M();break;case 25:e.push(C.gap),qe(e);break;case 35:e.push(hn.check),qe(e,!1);break;case 3:e.push(vn.key),qe(e);break;case 2:e.push(Ye.sequence),e.push(Ye.attempts),e.push(Ye.status),qe(e,!1);break;case 24:j.key&&e.push(j.key),e.push(j.value),qe(e);break;case 34:var r=Object.keys(it);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(it[o])}lt(),qe(e,!1)}break;case 0:var u=Object.keys(H);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],p=parseInt(d,10);e.push(p),e.push(Math.round(H[d]))}H={},qe(e,!1)}break;case 1:var h=Object.keys(En);if(h.length>0){for(var f=0,v=h;f<v.length;f++){var g=v[f];p=parseInt(g,10);e.push(p),e.push(En[g])}In(),qe(e,!1)}break;case 36:var m=Object.keys(G);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],G[b]))}Q(),qe(e,!1)}break;case 40:Tt.forEach((function(t){e.push(t);var n=[];for(var r in kt[t]){var a=parseInt(r,10);n.push(a),n.push(kt[t][r])}e.push(n)})),Xt(),qe(e,!1)}}function bn(){hn={check:0}}function kn(t){if(0===hn.check){var e=hn.check;e=er.sequence>=128?1:e,e=er.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==hn.check&&Tn(e)}}function Tn(t){hn.check=t,5!==t&&(Ln(),Sr())}function _n(){0!==hn.check&&yn(35)}function xn(){hn=null}var On=null,En=null,Sn=!1;function Mn(){On={},En={},Sn=!1}function Nn(){On={},En={},Sn=!1}function Xn(t,e){if(e&&(e="".concat(e),t in On||(On[t]=[]),On[t].indexOf(e)<0)){if(On[t].length>128)return void(Sn||(Sn=!0,Tn(5)));On[t].push(e),t in En||(En[t]=[]),En[t].push(e)}}function Pn(){yn(1)}function In(){En={},Sn=!1}function Yn(t){Xn(36,t.toString())}var jn=null,An=[],Cn=0,Dn=null;function Hn(){var t,e,n;Dn=null;var r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n=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:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Cn=r.indexOf("Electron")>0?1:0;var s,l=function(){var t={session:Bn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Kn("_clsk",!o.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Zn(n[1])<18e5&&(t.session=n[0],t.count=Zn(n[2])+1,t.upgrade=Zn(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),p=Gn(),h=o.projectId||d(location.host);jn={projectId:h,userId:p.id,sessionId:l.session,pageNum:l.count},o.lean=o.track&&null!==l.upgrade?0===l.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&l.upload&&l.upload.length>"https://".length?l.upload:o.upload,Xn(0,r),Xn(3,c),Xn(1,y(location.href,!!Cn)),Xn(2,document.referrer),Xn(15,function(){var t=Bn();if(o.track&&Vn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Xn(16,document.documentElement.lang),Xn(17,document.dir),Xn(26,"".concat(window.devicePixelRatio)),Xn(28,p.dob.toString()),Xn(29,p.version.toString()),Xn(33,u),Xn(34,a),Xn(35,i),q(0,l.ts),q(1,0),q(35,Cn),navigator&&(Xn(9,navigator.language),q(33,navigator.hardwareConcurrency),q(32,navigator.maxTouchPoints),q(34,Math.round(navigator.deviceMemory)),(s=navigator.userAgentData)&&s.getHighEntropyValues?s.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Xn(22,t.platform),Xn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Xn(24,t.name+"~"+t.version)})),Xn(25,t.model),q(27,t.mobile?1:0)})):Xn(22,navigator.platform)),screen&&(q(14,Math.round(screen.width)),q(15,Math.round(screen.height)),q(16,Math.round(screen.colorDepth)));for(var f=0,v=o.cookies;f<v.length;f++){var g=v[f],m=Kn(g);m&&ot(g,m)}!function(t){Yn(t?1:0)}(o.track),Jn(p)}function Wn(){Dn=null,jn=null,An.forEach((function(t){t.called=!1}))}function zn(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var r=o.lean?0:1,a=!1;jn&&(r||!1===e)&&(t(jn,!o.lean),a=!0),!n&&a||An.push({callback:t,wait:e,recall:n,called:a})}function qn(){return jn?[jn.userId,jn.sessionId,jn.pageNum].join("."):""}function Rn(t){if(void 0===t&&(t=!0),!t)return o.track=!1,$n("_clsk","",-Number.MAX_VALUE),$n("_clck","",-Number.MAX_VALUE),Sr(),void window.setTimeout(Er,250);Tr()&&(o.track=!0,Jn(Gn(),1),Fn(),Yn(2))}function Ln(){$n("_clsk","",0)}function Un(){!function(t){if(An.length>0)for(var e=0;e<An.length;e++){var n=An[e];!n.callback||n.called||n.wait&&!t||(n.callback(jn,!o.lean),n.called=!0,n.recall||(An.splice(e,1),e--))}}(o.lean?0:1)}function Fn(){if(jn&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;$n("_clsk",[jn.sessionId,t,jn.pageNum,n,e].join("|"),1)}}function Vn(t,e){try{return!!t[e]}catch(t){return!1}}function Jn(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===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&$n("_clck",[jn.userId,2,n.toString(36),e,r].join("|"),365)}function Bn(){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 Zn(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Gn(){var t={id:Bn(),version:0,expiry:null,consent:0,dob:0},e=Kn("_clck",!o.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Zn(n[1])),n.length>2&&(t.expiry=Zn(n[2],36)),n.length>3&&1===Zn(n[3])&&(t.consent=1),n.length>4&&Zn(n[1])>1&&(t.dob=Zn(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function Kn(t,e){var n;if(void 0===e&&(e=!1),Vn(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var i=r[a].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=Qn(i[1]),u=o[0],c=o[1];u;)u=(n=Qn(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Qn(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function $n(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||Vn(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var i=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(i).concat(";path=/");try{if(null===Dn){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Dn=".".concat(c[s]).concat(Dn||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(Dn),Kn(t)===e))return;Dn=""}}catch(t){Dn=""}document.cookie=Dn?"".concat(u).concat(";").concat("domain=").concat(Dn):u}}var tr,er=null;function nr(){var t=jn;er={version:l,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 rr(){er=null}function ar(t){return er.start=er.start+er.duration,er.duration=s()-er.start,er.sequence++,er.upload=t&&"sendBeacon"in navigator?1:0,er.end=t?1:0,er.applicationPlatform=0,er.url=y(location.href,!1,!0),[er.version,er.sequence,er.start,er.duration,er.projectId,er.userId,er.sessionId,er.pageNum,er.upload,er.end,er.applicationPlatform,er.url]}function ir(){tr=[]}function or(t){if(tr&&-1===tr.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:er.version,p:er.projectId,u:er.userId,s:er.sessionId,n:er.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)),tr.push(t.message)}}return t}function ur(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw or(t)}var n=performance.now()-e;z(4,n),n>30&&(W(7),q(6,n),bt(9,0,"".concat(t.dn||t.name,"-").concat(n)))}}var cr=new Map;function sr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=ur(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return cr.has(t)}(t)||cr.set(t,[]),cr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function lr(){cr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),cr.delete(e)}(t,e)})),cr=new Map}var dr=null,pr=null,hr=null,fr=0;function vr(){return!(fr++>20)||(bt(4,0),!1)}function gr(){gr.dn=1,fr=0,hr!==wr()&&(Sr(),window.setTimeout(mr,250))}function mr(){Er(),q(29,1)}function wr(){return location.href?location.href.replace(location.hash,""):location.href}var yr=!1;function br(){yr=!0,c=performance.now()+performance.timeOrigin,Bt(),lr(),ir(),hr=wr(),fr=0,sr(window,"popstate",gr),null===dr&&(dr=history.pushState,history.pushState=function(){dr.apply(this,arguments),Tr()&&vr()&&gr()}),null===pr&&(pr=history.replaceState,history.replaceState=function(){pr.apply(this,arguments),Tr()&&vr()&&gr()})}function kr(){hr=null,fr=0,ir(),lr(),Bt(),c=0,yr=!1}function Tr(){return yr}function _r(){_r.dn=2,Er(),A("clarity","restart")}var xr=Object.freeze({__proto__:null,start:function t(){t.dn=3,function(){q(26,navigator.webdriver?1:0);try{q(31,window.top==window.self||window.top==window?1:2)}catch(t){q(31,0)}}(),sr(window,"error",gt),vt={},yt={}},stop:function(){yt={}}}),Or=[xr,fn,$e,Lt];function Er(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===yr&&"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||yr)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),br(),Ht(),Or.forEach((function(t){return ur(t.start)()})),null===t&&Pr())}function Sr(){Tr()&&(Or.slice().reverse().forEach((function(t){return ur(t.stop)()})),Wt(),kr(),void 0!==Nr&&(Nr[Xr]=function(){(Nr[Xr].q=Nr[Xr].q||[]).push(arguments),"start"===arguments[0]&&Nr[Xr].q.unshift(Nr[Xr].q.pop())&&Pr()}))}var Mr=Object.freeze({__proto__:null,consent:Rn,event:A,hashText:on,identify:ut,metadata:zn,pause:function(){Tr()&&(A("clarity","pause"),null===Vt&&(Vt=new Promise((function(t){Jt=t}))))},resume:function(){Tr()&&(Vt&&(Jt(),Vt=null,null===Ft&&Gt()),A("clarity","resume"))},set:ot,signal:function(t){At=t},start:Er,stop:Sr,upgrade:mn,version:l}),Nr=window,Xr="clarity";function Pr(){if(void 0!==Nr){if(Nr[Xr]&&Nr[Xr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Nr[Xr]&&Nr[Xr].q||[];for(Nr[Xr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Mr[t].apply(Mr,e)},Nr[Xr].v=l;t.length>0;)Nr[Xr].apply(Nr,t.shift())}}Pr()}();
1
+ !function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Je},get start(){return Ve},get stop(){return Be},get track(){return We}}),e=Object.freeze({__proto__:null,get data(){return kn},get start(){return Tn},get stop(){return xn},get upgrade(){return _n}}),n=Object.freeze({__proto__:null,get check(){return Sn},get compute(){return Nn},get data(){return yn},get start(){return En},get stop(){return Xn},get trigger(){return Mn}}),r=Object.freeze({__proto__:null,get compute(){return Dn},get data(){return Pn},get log(){return Cn},get reset(){return Hn},get start(){return jn},get stop(){return An},get updates(){return In}}),a=Object.freeze({__proto__:null,get callback(){return Gn},get callbacks(){return qn},get clear(){return Zn},get consent(){return Bn},get data(){return zn},get electron(){return Rn},get id(){return Jn},get metadata(){return Vn},get save(){return Kn},get shortid(){return tr},get start(){return Un},get stop(){return Fn}}),i=Object.freeze({__proto__:null,get data(){return ur},get envelope(){return lr},get start(){return cr},get stop(){return sr}}),o={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};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(t){void 0===t&&(t=null);var e=t&&t.timeStamp>0?t.timeStamp:performance.now(),n=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(e+n-c),0)}var l="0.8.11-beta";function d(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,i=0;i<t.length;i+=2){if(r=(r<<5)+r^t.charCodeAt(i),i+1<t.length)a=(a<<5)+a^t.charCodeAt(i+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var p=/\S/gi,h=255,f=!0,v=null,g=null,m=null;function w(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,i=!1,o=null;x();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(r||a){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=f&&null!==m?s.match(m)?s:T(s,"▪","▫"):k(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(r=!1,a=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return _(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?b(t):k(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return _(t);case"placeholder":return k(t)}break;case 4:switch(e){case"*T":case"data-":return r?b(t):k(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 T(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 y(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=o.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];r=u+"?"+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,h)),r}function b(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),i=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(i)}return t}function k(t){return t.replace(p,"•")}function T(t,e,n){return x(),t?t.replace(g,e).replace(v,n):t}function _(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 x(){if(f&&null===v)try{v=new RegExp("\\p{N}","gu"),g=new RegExp("\\p{L}","gu"),m=new RegExp("\\p{Sc}","gu")}catch(t){f=!1}}var O=null,E=null,S=!1;function M(){S&&(O={time:s(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime}}),E=E||{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}}function N(t,e,n,r){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=r;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 13:E.downX=e,E.downY=n,E.downTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;case 14:E.upX=e,E.upY=n,E.upTime=r,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=r}S=!0}function X(t){E.activityTime=t}function P(t,e){E.visible="visible"===e?1:0,E.visible||X(t),S=!0}function I(){S&&On(4)}var Y=Object.freeze({__proto__:null,activity:X,compute:I,reset:M,start:function(){S=!1,M()},get state(){return O},stop:function(){M()},track:N,visibility:P}),j=null;function A(t,e){Mr()&&t&&"string"==typeof t&&t.length<255&&(j=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},On(24))}var C,D=null,H=null;function W(t){t in D||(D[t]=0),t in H||(H[t]=0),D[t]++,H[t]++}function z(t,e){null!==e&&(t in D||(D[t]=0),t in H||(H[t]=0),D[t]+=e,H[t]+=e)}function q(t,e){null!==e&&!1===isNaN(e)&&(t in D||(D[t]=0),(e>D[t]||0===D[t])&&(H[t]=e,D[t]=e))}function R(t,e,n){return window.setTimeout(hr(t),e,n)}function L(t){return window.clearTimeout(t)}var U=0,F=0,V=null;function J(){V&&L(V),V=R(B,F),U=s()}function B(){var t=s();C={gap:t-U},On(25),C.gap<3e5?V=R(B,F):Or&&(A("clarity","suspend"),Yr(),["mousemove","touchstart"].forEach((function(t){return vr(document,t,Nr)})),["resize","scroll","pageshow"].forEach((function(t){return vr(window,t,Nr)})))}var Z=Object.freeze({__proto__:null,get data(){return C},reset:J,start:function(){F=6e4,U=0},stop:function(){L(V),U=0,F=0}}),G=null;function K(){On(36)}function Q(){G={}}var $=Object.freeze({__proto__:null,compute:K,get data(){return G},reset:Q,start:function(){G={}},stop:function(){G={}},track:function(t,e){if(t in G){var n=G[t],r=n[n.length-1];e-r[0]>100?G[t].push([e,0]):r[1]=e-r[0]}else G[t]=[[e,0]]}});function tt(t,e,n,r){return new(n||(n=Promise))((function(a,i){function o(t){try{c(r.next(t))}catch(t){i(t)}}function u(t){try{c(r.throw(t))}catch(t){i(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(o,u)}c((r=r.apply(t,e||[])).next())}))}function et(t,e){var n,r,a,i,o={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)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 o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(a=o.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){o.label=u[1];break}if(6===u[0]&&o.label<a[1]){o.label=a[1],a=u;break}if(a&&o.label<a[2]){o.label=a[2],o.ops.push(u);break}a[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}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 nt="CompressionStream"in window;function rt(t){return tt(this,void 0,void 0,(function(){var e,n;return et(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),nt?(e=new ReadableStream({start:function(e){return tt(this,void 0,void 0,(function(){return et(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,at(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 at(t){return tt(this,void 0,void 0,(function(){var e,n,r,a,i;return et(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],r=!1,a=[],o.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return i=o.sent(),r=i.done,a=i.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}var it=null;function ot(t,e){ct(t,"string"==typeof e?[e]:e)}function ut(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),tt(this,void 0,void 0,(function(){var a,i;return et(this,(function(o){switch(o.label){case 0:return i={},[4,dt(t)];case 1:return i.userId=o.sent(),i.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),ct("userId",[(a=i).userId]),ct("userHint",[a.userHint]),ct("userType",[pt(t)]),e&&(ct("sessionId",[e]),a.sessionId=e),n&&(ct("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ct(t,e){if(Mr()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in it?it[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);it[t]=n}}function st(){On(34)}function lt(){it={}}function dt(t){return tt(this,void 0,void 0,(function(){var e;return et(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 pt(t){return t&&t.indexOf("@")>0?"email":"string"}var ht=Object.freeze({__proto__:null,compute:st,get data(){return it},identify:ut,reset:lt,set:ot,start:function(){lt()},stop:function(){lt()}});var ft,vt={};function gt(t){gt.dn=4;var e=t.error||t;return e.message in vt||(vt[e.message]=0),vt[e.message]++>=5||e&&e.message&&(ft={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},mt(31)),!0}function mt(t){return tt(this,void 0,void 0,(function(){var e;return et(this,(function(n){switch(e=[s(),t],t){case 31:e.push(ft.message),e.push(ft.line),e.push(ft.column),e.push(ft.stack),e.push(y(ft.source)),Je(e);break;case 33:wt&&(e.push(wt.code),e.push(wt.name),e.push(wt.message),e.push(wt.stack),e.push(wt.severity),Je(e,!1))}return[2]}))}))}var wt,yt={};function bt(t,e,n,r,a){void 0===n&&(n=null),void 0===r&&(r=null),void 0===a&&(a=null);var i=n?"".concat(n,"|").concat(r):"";t in yt&&yt[t].indexOf(i)>=0||(wt={code:t,name:n,message:r,stack:a,severity:e},t in yt?yt[t].push(i):yt[t]=[i],mt(33))}var kt={},Tt=new Set,_t={},xt={},Ot={},Et={};function St(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),r=parseInt(n[0]),a=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in _t[r]={},xt[r]={},Ot[r]={},Et[r]=a,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);_t[r][u]=It(l);break;case 2:xt[r][u]=c;break;case 4:var d=c.slice(1);Ot[r][u]=d}}}catch(t){bt(8,1,t?t.name:null)}}function Mt(t){return JSON.parse(JSON.stringify(t))}function Nt(){try{for(var t in _t){var e=parseInt(t);if(""==Et[e]||document.querySelector(Et[e])){var n=_t[e];for(var r in n){var a=parseInt(r),i=(m=Yt(Mt(n[a])))?JSON.stringify(m).slice(0,1e4):m;i&&Pt(e,a,i)}var o=xt[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var p=document.querySelectorAll(l);if(p){var h=Array.from(p).map((function(t){return t.textContent})).join("<SEP>");Pt(e,s,(c?d(h).trim():h).slice(0,1e4))}}var f=Ot[e];for(var v in f){var g=parseInt(v);Pt(e,g,(void f[g]).trim().slice(0,1e4))}}}Tt.size>0&&On(40)}catch(t){bt(5,1,t?t.name:null)}var m}function Xt(){Tt.clear()}function Pt(t,e,n){var r,a=!1;t in kt||(kt[t]={},a=!0),r=Ot[t],0==Object.keys(r).length||e in kt[t]&&kt[t][e]==n||(a=!0),kt[t][e]=n,a&&Tt.add(t)}function It(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),i=r.indexOf("{"),o=r.indexOf("}");e.push({name:a>0?r.slice(0,a):i>0?r.slice(0,i):r,type:a>0?1:i>0?2:3,condition:i>0?r.slice(i+1,o):null})}return e}function Yt(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&&jt(a,r.condition))n=Yt(t,a);else if(Array.isArray(a)){for(var i=[],o=0,u=a;o<u.length;o++){var c=u[o];if(jt(c,r.condition)){var s=Yt(t,c);s&&i.push(s)}}n=i}return n}return null}function jt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var At=null;function Ct(t){try{if(!At)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){At(t)}))}catch(t){}}var Dt=[Y,r,ht,n,$,a,i,t,Z,e,Object.freeze({__proto__:null,clone:Mt,compute:Nt,data:kt,keys:Tt,reset:Xt,start:function(){Xt()},stop:function(){Xt()},trigger:St,update:Pt})];function Ht(){D={},H={},W(5),Dt.forEach((function(t){return hr(t.start)()}))}function Wt(){Dt.slice().reverse().forEach((function(t){return hr(t.stop)()})),D={},H={}}function zt(){st(),I(),Dn(),On(0),K(),Nn(),Nt()}var qt=[],Rt=null;var Lt=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Rt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:qt,stop:function(){}}),Ut=[],Ft=null,Vt=null,Jt=null;function Bt(){Ut=[],Ft=null,Vt=null}function Zt(t,e){return void 0===e&&(e=0),tt(this,void 0,void 0,(function(){var n,r,a;return et(this,(function(i){for(n=0,r=Ut;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){Ut[1===e?"unshift":"push"]({task:t,resolve:n,id:Jn()})})),null===Ft&&null===Vt&&Gt(),[2,a]}))}))}function Gt(){var t=Ut.shift();t&&(Ft=t,t.task().then((function(){t.id===Jn()&&(t.resolve(),Ft=null,Gt())})).catch((function(e){t.id===Jn()&&(e&&bt(0,1,e.name,e.message,e.stack),Ft=null,Gt())})))}var Kt,Qt=["input","textarea","radio","button","canvas","select"],$t=[];function te(t){vr(t,"click",ee.bind(this,9,t),!0)}function ee(t,e,n){ee.dn=6;var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,o=hn(n),u=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}(o),c=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var r=t.getBoundingClientRect();r&&r.width>0&&r.height>0&&(e={x:Math.floor(r.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(r.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(r.width),h:Math.floor(r.height)})}return e}(o);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var l=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==a&&null!==i){var p=function(t){var e=null,n=!1;if(t){var r=t.textContent||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}}(o);$t.push({time:s(n),event:t,data:{target:o,x:a,y:i,eX:l,eY:d,button:n.button,reaction:ne(o),context:re(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText}}),Zt(Xe.bind(this,t))}}function ne(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Qt.indexOf(e)>=0)return 0}return 1}function re(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 ae(){$t=[]}var ie=null,oe=!1;function ue(){ue.dn=12;var t=document.documentElement;Kt={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},oe?(L(ie),ie=R(ce,500,11)):(Xe(11),oe=!0)}function ce(t){Zt(Xe.bind(this,t))}function se(){Kt=null,L(ie)}var le=[],de=null;function pe(t){void 0===t&&(t=null),pe.dn=13;var e=window,n=document.documentElement,r=t?hn(t):n;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),i=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,l=o>u?.15*u:.2*u,d=u-l,p=ye(c,l),h=ye(c,d),f={time:s(t),event:10,data:{target:r,x:a,y:i,top:p,bottom:h}};if((null!==t||0!==a||0!==i)&&null!==a&&null!==i){var v=le.length,g=v>1?le[v-2]:null;g&&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}(g,f)&&le.pop(),le.push(f),L(de),de=R(be,500,10)}}var he,fe,ve,ge,me,we=(he=pe,fe=25,ve=0,ge=null,me=null,function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=performance.now(),a=r-ve;if(0!==ve&&a<fe){if(me=e,ge)return;ge=setTimeout((function(){ve=performance.now(),he.apply(t,me),me=null,ge=null}),fe-a)}else ve=r,he.apply(this,e)});function ye(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 be(t){Zt(Xe.bind(this,t))}var ke,Te,_e=[];function xe(t){xe.dn=16,_e.push({time:s(t),event:39,data:{target:hn(t)}}),Zt(Xe.bind(this,39))}function Oe(){_e=[]}function Ee(t){Ee.dn=17,ke={name:t.type,persisted:t.persisted?1:0},Xe(26,s(t)),Yr()}function Se(){ke=null}function Me(t){void 0===t&&(t=null),Me.dn=18,Te={visible:"visibilityState"in document?document.visibilityState:"default"},Xe(28,s(t))}function Ne(){Te=null}function Xe(t,e){return void 0===e&&(e=null),tt(this,void 0,void 0,(function(){var n,r,a,i,o,u,c,l,d,p,h,f,v,g,m,b,k,T,_,x,O,E,S,M,X,I,Y,j,A,C,D,H,W,z,q;return et(this,(function(R){switch(n=e||s(),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,i=qt;a<i.length;a++)z=i[a],(o=fn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(o.id),r.push(z.data.x),r.push(z.data.y),void 0!==z.data.id&&(r.push(z.data.id),void 0!==z.data.isPrimary&&r.push(z.data.isPrimary.toString())),Je(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&N(z.event,z.data.x,z.data.y,z.time));break;case 9:for(u=0,c=$t;u<c.length;u++)z=c[u],l=fn(z.data.target,z.event,z.data.text),r=[z.time,z.event],d=l.hash?l.hash.join("."):"",r.push(l.id),r.push(z.data.x),r.push(z.data.y),r.push(z.data.eX),r.push(z.data.eY),r.push(z.data.button),r.push(z.data.reaction),r.push(z.data.context),r.push(w(z.data.text,"click",l.privacy)),r.push(y(z.data.link)),r.push(d),r.push(z.data.trust),r.push(z.data.isFullText),Je(r),je(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);ae();break;case 38:for(p=0,h=qt;p<h.length;p++)z=h[p],r=[z.time,z.event],(D=fn(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),Je(r));break;case 11:f=Kt,r.push(f.width),r.push(f.height),N(t,f.width,f.height),se(),Je(r);break;case 26:v=ke,r.push(v.name),r.push(v.persisted),Se(),Je(r);break;case 27:for(g=0,m=qt;g<m.length;g++)z=m[g],b=fn(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(b.id),r.push(w(z.data.value,"input",b.privacy,!1,z.data.type)),Je(r);break;case 21:(k=Rt)&&(T=fn(k.start),_=fn(k.end),r.push(T.id),r.push(k.startOffset),r.push(_.id),r.push(k.endOffset),Je(r));break;case 10:for(x=0,O=le;x<O.length;x++)z=O[x],E=fn(z.data.target,z.event),S=fn(z.data.top,z.event),M=fn(z.data.bottom,z.event),X=(null==S?void 0:S.hash)?S.hash.join("."):"",I=(null==M?void 0:M.hash)?M.hash.join("."):"",E.id>0&&((r=[z.time,z.event]).push(E.id),r.push(z.data.x),r.push(z.data.y),r.push(X),r.push(I),Je(r),N(z.event,z.data.x,z.data.y,z.time));le=[];break;case 42:for(Y=0,j=qt;Y<j.length;Y++)z=j[Y],r=[z.time,z.event],(D=fn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(w(z.data.value,"change",D.privacy)),r.push(w(z.data.checksum,"checksum",D.privacy)),Je(r));break;case 39:for(A=0,C=_e;A<C.length;A++)z=C[A],r=[z.time,z.event],(D=fn(z.data.target,z.event)).id>0&&(r.push(D.id),Je(r));Oe();break;case 22:for(H=0,W=Ie;H<W.length;H++)z=W[H],(r=[z.time,z.event]).push(z.data.type),r.push(z.data.hash),r.push(z.data.x),r.push(z.data.y),r.push(z.data.reaction),r.push(z.data.context),Je(r,!1);Ye();break;case 28:q=Te,r.push(q.visible),Je(r),P(n,q.visible),Ne()}return[2]}))}))}var Pe=[],Ie=[];function Ye(){Ie=[]}function je(t,e,n,r,a,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Pe.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:i,context:o}}),N(e,r,a,t)}var Ae,Ce,De,He,We,ze,qe=0,Re=0,Le=null,Ue=0,Fe=!1;function Ve(){He=!0,qe=0,Re=0,Fe=!1,Ue=0,Ae=[],Ce=[],De={},We=null}function Je(t,e){if(void 0===e&&(e=!0),He){var n=s(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(o.lean?!Fe&&Re+a.length>10485760&&(bt(10,0),Fe=!0):Fe=!1,r){case 5:if(Fe)break;qe+=a.length;case 37:case 6:case 43:case 45:case 46:if(Fe)break;Re+=a.length,Ae.push(a);break;default:Ce.push(a)}W(25);var i=function(){var t=!1===o.lean&&qe>0?100:ur.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-Ue>2*i&&(L(Le),Le=null),e&&null===Le&&(25!==r&&J(),Le=R(Ze,i),Ue=n,Sn(Re))}}function Be(){L(Le),Ze(!0),qe=0,Re=0,Fe=!1,Ue=0,Ae=[],Ce=[],De={},We=null,He=!1}function Ze(t){return void 0===t&&(t=!1),tt(this,void 0,void 0,(function(){var e,n,r,a,i,u,c,s;return et(this,(function(l){switch(l.label){case 0:return Le=null,(e=!1===o.lean&&Re>0&&(Re<1048576||ur.sequence>0))&&q(1,1),function(){var t=[];Ie=[];for(var e=ur.start+ur.duration,n=Math.max(e-2e3,0),r=0,a=Pe;r<a.length;r++){var i=a[r];i.time>=n&&(i.time<=e&&Ie.push(i),t.push(i))}Pe=t,Xe(22)}(),zt(),n=!0===t,r=JSON.stringify(lr(n)),a="[".concat(Ce.join(),"]"),i=e?"[".concat(Ae.join(),"]"):"",u=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:i}),n?(s=null,[3,3]):[3,1];case 1:return[4,rt(u)];case 2:s=l.sent(),l.label=3;case 3:return z(2,(c=s)?c.length:u.length),Ge(u,c,ur.sequence,n),Ce=[],e&&(Ae=[],Re=0,qe=0,Fe=!1),[2]}}))}))}function Ge(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof o.upload){var a=o.upload,i=!1;if(r&&"sendBeacon"in navigator)try{(i=navigator.sendBeacon.bind(navigator)(a,t))&&Qe(n)}catch(t){}if(!1===i){n in De?De[n].attempts++:De[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){pr(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){hr(Ke)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),Qe(n)}}function Ke(t,e){var n=De[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Mn(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),Ge(n.data,null,e)):(We={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&On(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],i=a&&a.length>0?a.split(/ (.*)/):[""];switch(i[0]){case"END":Mn(6);break;case"UPGRADE":_n("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&St(i[1]);break;case"SIGNAL":i.length>1&&Ct(i[1])}}}(t.responseText),0===t.status&&(Ge(n.data,null,e,!0),Mn(3)),t.status>=200&&t.status<=208&&Qe(e),delete De[e]))}function Qe(t){1===t&&(Kn(),Gn())}function $e(t){return tt(this,void 0,void 0,(function(){var e,n,r,a,i,o,u,c,l,d,p,h,f;return et(this,(function(v){switch(e=s(),n=[e,t],t){case 8:r=ze,n.push(r.width),n.push(r.height),N(t,r.width,r.height),Je(n);break;case 43:if((a=un).length>0){for(i=0,o=a;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,l=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(l[h=p[d]])switch(h){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[h]);break;case"attributes":for(f in l[h])void 0!==l[h][f]&&n.push(tn(f,l[h][f],c));break;case"value":n.push(w(l[h],l.tag,c))}Je(function(t){for(var e=[],n={},r=0,a=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(o),n[o]=r++)}else a=null,e.push(t[i]),r++;return e}(n),!0)}}return[2]}))}))}function tn(t,e,n){return"".concat(t,"=").concat(w(e,0===t.indexOf("data-")?"data-":t,n))}function en(){ze=null}function nn(){en(),rn()}function rn(){rn.dn=19;var t=document.body,e=document.documentElement,n=t?t.clientWidth:null,r=t?t.scrollWidth:null,a=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,r,a,i,o,u),s=t?t.clientHeight:null,l=t?t.scrollHeight:null,d=t?t.offsetHeight:null,p=e?e.clientHeight:null,h=e?e.scrollHeight:null,f=e?e.offsetHeight:null,v=Math.max(s,l,d,p,h,f);null!==ze&&c===ze.width&&v===ze.height||null===c||null===v||(ze={width:c,height:v},$e(8))}function an(t){!function(t){vr(t===document?window:t,"scroll",we,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(te(t),function(t){vr(t,"submit",xe,!0)}(t))}var on=Object.freeze({__proto__:null,observe:an,start:function t(){t.dn=8,Pe=[],Ye(),ae(),oe=!1,vr(window,"resize",ue),ue(),vr(document,"visibilitychange",Me),Me(),le=[],pe(),Oe(),vr(window,"pagehide",Ee)},stop:function(){Pe=[],Ye(),ae(),se(),Ne(),L(de),le=[],Oe(),Se()}}),un=[],cn=1,sn=null;function ln(){vn(),nn(),mn(document.documentElement),an(document)}function dn(){return!1}function pn(){}function hn(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 fn(t){var e={id:0,hash:null,privacy:o.conversions?1:5};return t&&(e.id=sn.has(t)?sn.get(t):mn(t)),e}function vn(){sn=new WeakMap}function gn(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 mn(t){return null===t?null:sn.has(t)?sn.get(t):(sn.set(t,cn),cn++)}function wn(t,e,n){if(t&&n&&n.tag){var r=mn(t),a=e?sn.get(e):null,i=t.previousSibling?sn.get(t.previousSibling):null;un.push({id:r,parent:a,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var yn,bn=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:pn,iframe:dn,metadata:fn,offset:function(){return{x:0,y:0}},snapshot:function(){un=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=i.nodeValue,r=sn.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=i;n=gn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}wn(i,u,{tag:r,attributes:n,value:a})}}(document),$e(43)},start:ln,stop:function(){vn(),en()},target:hn,get values(){return un}}),kn=null;function Tn(){!o.lean&&o.upgrade&&o.upgrade("Config"),kn=null}function _n(t){Mr()&&o.lean&&(o.lean=!1,kn={key:t},Gn(),Kn(),o.upgrade&&o.upgrade(t),On(3),o.lite&&ln())}function xn(){kn=null}function On(t){var e=[s(),t];switch(t){case 4:var n=O;n&&((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),Je(e,!1)),M();break;case 25:e.push(C.gap),Je(e);break;case 35:e.push(yn.check),Je(e,!1);break;case 3:e.push(kn.key),Je(e);break;case 2:e.push(We.sequence),e.push(We.attempts),e.push(We.status),Je(e,!1);break;case 24:j.key&&e.push(j.key),e.push(j.value),Je(e);break;case 34:var r=Object.keys(it);if(r.length>0){for(var a=0,i=r;a<i.length;a++){var o=i[a];e.push(o),e.push(it[o])}lt(),Je(e,!1)}break;case 0:var u=Object.keys(H);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],p=parseInt(d,10);e.push(p),e.push(Math.round(H[d]))}H={},Je(e,!1)}break;case 1:var h=Object.keys(In);if(h.length>0){for(var f=0,v=h;f<v.length;f++){var g=v[f];p=parseInt(g,10);e.push(p),e.push(In[g])}Hn(),Je(e,!1)}break;case 36:var m=Object.keys(G);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],G[b]))}Q(),Je(e,!1)}break;case 40:Tt.forEach((function(t){e.push(t);var n=[];for(var r in kt[t]){var a=parseInt(r,10);n.push(a),n.push(kt[t][r])}e.push(n)})),Xt(),Je(e,!1)}}function En(){yn={check:0}}function Sn(t){if(0===yn.check){var e=yn.check;e=ur.sequence>=128?1:e,e=ur.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==yn.check&&Mn(e)}}function Mn(t){yn.check=t,5!==t&&(Zn(),Yr())}function Nn(){0!==yn.check&&On(35)}function Xn(){yn=null}var Pn=null,In=null,Yn=!1;function jn(){Pn={},In={},Yn=!1}function An(){Pn={},In={},Yn=!1}function Cn(t,e){if(e&&(e="".concat(e),t in Pn||(Pn[t]=[]),Pn[t].indexOf(e)<0)){if(Pn[t].length>128)return void(Yn||(Yn=!0,Mn(5)));Pn[t].push(e),t in In||(In[t]=[]),In[t].push(e)}}function Dn(){On(1)}function Hn(){In={},Yn=!1}function Wn(t){Cn(36,t.toString())}var zn=null,qn=[],Rn=0,Ln=null;function Un(){var t,e,n;Ln=null;var r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n=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:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";Rn=r.indexOf("Electron")>0?1:0;var s,l=function(){var t={session:tr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=rr("_clsk",!o.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-er(n[1])<18e5&&(t.session=n[0],t.count=er(n[2])+1,t.upgrade=er(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),p=nr(),h=o.projectId||d(location.host);zn={projectId:h,userId:p.id,sessionId:l.session,pageNum:l.count},o.lean=o.track&&null!==l.upgrade?0===l.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&l.upload&&l.upload.length>"https://".length?l.upload:o.upload,Cn(0,r),Cn(3,c),Cn(1,y(location.href,!!Rn)),Cn(2,document.referrer),Cn(15,function(){var t=tr();if(o.track&&Qn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Cn(16,document.documentElement.lang),Cn(17,document.dir),Cn(26,"".concat(window.devicePixelRatio)),Cn(28,p.dob.toString()),Cn(29,p.version.toString()),Cn(33,u),Cn(34,a),Cn(35,i),q(0,l.ts),q(1,0),q(35,Rn),navigator&&(Cn(9,navigator.language),q(33,navigator.hardwareConcurrency),q(32,navigator.maxTouchPoints),q(34,Math.round(navigator.deviceMemory)),(s=navigator.userAgentData)&&s.getHighEntropyValues?s.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Cn(22,t.platform),Cn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Cn(24,t.name+"~"+t.version)})),Cn(25,t.model),q(27,t.mobile?1:0)})):Cn(22,navigator.platform)),screen&&(q(14,Math.round(screen.width)),q(15,Math.round(screen.height)),q(16,Math.round(screen.colorDepth)));for(var f=0,v=o.cookies;f<v.length;f++){var g=v[f],m=rr(g);m&&ot(g,m)}!function(t){Wn(t?1:0)}(o.track),$n(p)}function Fn(){Ln=null,zn=null,qn.forEach((function(t){t.called=!1}))}function Vn(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!1);var r=o.lean?0:1,a=!1;zn&&(r||!1===e)&&(t(zn,!o.lean),a=!0),!n&&a||qn.push({callback:t,wait:e,recall:n,called:a})}function Jn(){return zn?[zn.userId,zn.sessionId,zn.pageNum].join("."):""}function Bn(t){if(void 0===t&&(t=!0),!t)return o.track=!1,ir("_clsk","",-Number.MAX_VALUE),ir("_clck","",-Number.MAX_VALUE),Yr(),void window.setTimeout(Ir,250);Mr()&&(o.track=!0,$n(nr(),1),Kn(),Wn(2))}function Zn(){ir("_clsk","",0)}function Gn(){!function(t){if(qn.length>0)for(var e=0;e<qn.length;e++){var n=qn[e];!n.callback||n.called||n.wait&&!t||(n.callback(zn,!o.lean),n.called=!0,n.recall||(qn.splice(e,1),e--))}}(o.lean?0:1)}function Kn(){if(zn&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;ir("_clsk",[zn.sessionId,t,zn.pageNum,n,e].join("|"),1)}}function Qn(t,e){try{return!!t[e]}catch(t){return!1}}function $n(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===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&ir("_clck",[zn.userId,2,n.toString(36),e,r].join("|"),365)}function tr(){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 er(t,e){return void 0===e&&(e=10),parseInt(t,e)}function nr(){var t={id:tr(),version:0,expiry:null,consent:0,dob:0},e=rr("_clck",!o.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=er(n[1])),n.length>2&&(t.expiry=er(n[2],36)),n.length>3&&1===er(n[3])&&(t.consent=1),n.length>4&&er(n[1])>1&&(t.dob=er(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function rr(t,e){var n;if(void 0===e&&(e=!1),Qn(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var i=r[a].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=ar(i[1]),u=o[0],c=o[1];u;)u=(n=ar(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function ar(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function ir(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||Qn(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var i=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(i).concat(";path=/");try{if(null===Ln){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(Ln=".".concat(c[s]).concat(Ln||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(Ln),rr(t)===e))return;Ln=""}}catch(t){Ln=""}document.cookie=Ln?"".concat(u).concat(";").concat("domain=").concat(Ln):u}}var or,ur=null;function cr(){var t=zn;ur={version:l,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 sr(){ur=null}function lr(t){return ur.start=ur.start+ur.duration,ur.duration=s()-ur.start,ur.sequence++,ur.upload=t&&"sendBeacon"in navigator?1:0,ur.end=t?1:0,ur.applicationPlatform=0,ur.url=y(location.href,!1,!0),[ur.version,ur.sequence,ur.start,ur.duration,ur.projectId,ur.userId,ur.sessionId,ur.pageNum,ur.upload,ur.end,ur.applicationPlatform,ur.url]}function dr(){or=[]}function pr(t){if(or&&-1===or.indexOf(t.message)){var e=o.report;if(e&&e.length>0){var n={v:ur.version,p:ur.projectId,u:ur.userId,s:ur.sessionId,n:ur.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)),or.push(t.message)}}return t}function hr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw pr(t)}var n=performance.now()-e;z(4,n),n>30&&(W(7),q(6,n),bt(9,0,"".concat(t.dn||t.name,"-").concat(n)))}}var fr=new Map;function vr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=hr(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return fr.has(t)}(t)||fr.set(t,[]),fr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function gr(){fr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),fr.delete(e)}(t,e)})),fr=new Map}var mr=null,wr=null,yr=null,br=0;function kr(){return!(br++>20)||(bt(4,0),!1)}function Tr(){Tr.dn=1,br=0,yr!==xr()&&(Yr(),window.setTimeout(_r,250))}function _r(){Ir(),q(29,1)}function xr(){return location.href?location.href.replace(location.hash,""):location.href}var Or=!1;function Er(){Or=!0,c=performance.now()+performance.timeOrigin,Bt(),gr(),dr(),yr=xr(),br=0,vr(window,"popstate",Tr),null===mr&&(mr=history.pushState,history.pushState=function(){mr.apply(this,arguments),Mr()&&kr()&&Tr()}),null===wr&&(wr=history.replaceState,history.replaceState=function(){wr.apply(this,arguments),Mr()&&kr()&&Tr()})}function Sr(){yr=null,br=0,dr(),gr(),Bt(),c=0,Or=!1}function Mr(){return Or}function Nr(){Nr.dn=2,Ir(),A("clarity","restart")}var Xr=Object.freeze({__proto__:null,start:function t(){t.dn=3,function(){q(26,navigator.webdriver?1:0);try{q(31,window.top==window.self||window.top==window?1:2)}catch(t){q(31,0)}}(),vr(window,"error",gt),vt={},yt={}},stop:function(){yt={}}}),Pr=[Xr,bn,on,Lt];function Ir(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Or&&"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||Or)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),Er(),Ht(),Pr.forEach((function(t){return hr(t.start)()})),null===t&&Dr())}function Yr(){Mr()&&(Pr.slice().reverse().forEach((function(t){return hr(t.stop)()})),Wt(),Sr(),void 0!==Ar&&(Ar[Cr]=function(){(Ar[Cr].q=Ar[Cr].q||[]).push(arguments),"start"===arguments[0]&&Ar[Cr].q.unshift(Ar[Cr].q.pop())&&Dr()}))}var jr=Object.freeze({__proto__:null,consent:Bn,event:A,hashText:pn,identify:ut,metadata:Vn,pause:function(){Mr()&&(A("clarity","pause"),null===Vt&&(Vt=new Promise((function(t){Jt=t}))))},resume:function(){Mr()&&(Vt&&(Jt(),Vt=null,null===Ft&&Gt()),A("clarity","resume"))},set:ot,signal:function(t){At=t},start:Ir,stop:Yr,upgrade:_n,version:l}),Ar=window,Cr="clarity";function Dr(){if(void 0!==Ar){if(Ar[Cr]&&Ar[Cr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Ar[Cr]&&Ar[Cr].q||[];for(Ar[Cr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return jr[t].apply(jr,e)},Ar[Cr].v=l;t.length>0;)Ar[Cr].apply(Ar,t.shift())}}Dr()}();
package/build/clarity.js CHANGED
@@ -181,7 +181,7 @@ function stop$F() {
181
181
  startTime = 0;
182
182
  }
183
183
 
184
- var version$1 = "0.8.9";
184
+ var version$1 = "0.8.11-beta";
185
185
 
186
186
  // tslint:disable: no-bitwise
187
187
  function hash (input, precision) {
@@ -619,7 +619,7 @@ function reset$r() {
619
619
  updates$3 = {};
620
620
  }
621
621
 
622
- function setTimeout(handler, timeout, event) {
622
+ function setTimeout$1(handler, timeout, event) {
623
623
  return window.setTimeout(measure(handler), timeout, event);
624
624
  }
625
625
  function clearTimeout(handle) {
@@ -638,7 +638,7 @@ function reset$q() {
638
638
  if (timeout$7) {
639
639
  clearTimeout(timeout$7);
640
640
  }
641
- timeout$7 = setTimeout(ping, interval);
641
+ timeout$7 = setTimeout$1(ping, interval);
642
642
  last = time();
643
643
  }
644
644
  function ping() {
@@ -646,7 +646,7 @@ function ping() {
646
646
  data$h = { gap: now - last };
647
647
  encode$1(25 /* Event.Ping */);
648
648
  if (data$h.gap < 300000 /* Setting.PingTimeout */) {
649
- timeout$7 = setTimeout(ping, interval);
649
+ timeout$7 = setTimeout$1(ping, interval);
650
650
  }
651
651
  else {
652
652
  suspend();
@@ -1430,7 +1430,7 @@ function recompute$6(evt) {
1430
1430
  }
1431
1431
  state$7.push({ time: time(evt), event: 27 /* Event.Input */, data: data });
1432
1432
  clearTimeout(timeout$6);
1433
- timeout$6 = setTimeout(process$7, 1000 /* Setting.InputLookAhead */, 27 /* Event.Input */);
1433
+ timeout$6 = setTimeout$1(process$7, 1000 /* Setting.InputLookAhead */, 27 /* Event.Input */);
1434
1434
  }
1435
1435
  }
1436
1436
  function process$7(event) {
@@ -1536,7 +1536,7 @@ function handler$2(current) {
1536
1536
  }
1537
1537
  state$6.push(current);
1538
1538
  clearTimeout(timeout$5);
1539
- timeout$5 = setTimeout(process$6, 500 /* Setting.LookAhead */, current.event);
1539
+ timeout$5 = setTimeout$1(process$6, 500 /* Setting.LookAhead */, current.event);
1540
1540
  break;
1541
1541
  default:
1542
1542
  state$6.push(current);
@@ -1557,7 +1557,7 @@ function similar$1(last, current) {
1557
1557
  var gap = current.time - last.time;
1558
1558
  var match = current.data.target === last.data.target;
1559
1559
  var sameId = current.data.id !== undefined ? current.data.id === last.data.id : true;
1560
- return current.event === last.event && match && distance < 20 /* Setting.Distance */ && gap < 25 /* Setting.Interval */ && sameId;
1560
+ return current.event === last.event && match && distance < 20 /* Setting.Distance */ && gap < 50 /* Setting.Interval */ && sameId;
1561
1561
  }
1562
1562
  function stop$t() {
1563
1563
  clearTimeout(timeout$5);
@@ -1586,7 +1586,7 @@ function recompute$5() {
1586
1586
  };
1587
1587
  if (initialStateLogged) {
1588
1588
  clearTimeout(timeout$4);
1589
- timeout$4 = setTimeout(process$5, 500 /* Setting.LookAhead */, 11 /* Event.Resize */);
1589
+ timeout$4 = setTimeout$1(process$5, 500 /* Setting.LookAhead */, 11 /* Event.Resize */);
1590
1590
  }
1591
1591
  else {
1592
1592
  encode$3(11 /* Event.Resize */);
@@ -1604,6 +1604,45 @@ function stop$s() {
1604
1604
  reset$h();
1605
1605
  }
1606
1606
 
1607
+ /**
1608
+ * Creates a throttled version of the provided function that only executes at most once
1609
+ * every specified duration in milliseconds, ensuring the last event is not lost.
1610
+ * @param func - The function to throttle.
1611
+ * @param duration - The duration in milliseconds to wait before allowing the next execution.
1612
+ * @returns A throttled version of the provided function.
1613
+ */
1614
+ function throttle(func, duration) {
1615
+ var lastExecutionTime = 0;
1616
+ var timeoutId = null;
1617
+ var lastArgs = null;
1618
+ return function () {
1619
+ var _this = this;
1620
+ var args = [];
1621
+ for (var _i = 0; _i < arguments.length; _i++) {
1622
+ args[_i] = arguments[_i];
1623
+ }
1624
+ var now = performance.now();
1625
+ var timeSinceLastExecution = now - lastExecutionTime;
1626
+ // If the function is called during the throttling period, store the arguments to ensure we don't drop the last event
1627
+ if (lastExecutionTime !== 0 && timeSinceLastExecution < duration) {
1628
+ lastArgs = args;
1629
+ if (timeoutId)
1630
+ return;
1631
+ timeoutId = setTimeout(function () {
1632
+ lastExecutionTime = performance.now();
1633
+ func.apply(_this, lastArgs);
1634
+ lastArgs = null;
1635
+ timeoutId = null;
1636
+ }, duration - timeSinceLastExecution);
1637
+ }
1638
+ else {
1639
+ // Execute immediately if outside the throttling period (including the first run)
1640
+ lastExecutionTime = now;
1641
+ func.apply(this, args);
1642
+ }
1643
+ };
1644
+ }
1645
+
1607
1646
  var state$5 = [];
1608
1647
  var initialTop = null;
1609
1648
  var initialBottom = null;
@@ -1615,7 +1654,7 @@ function start$t() {
1615
1654
  function observe$7(root) {
1616
1655
  var frame = iframe(root);
1617
1656
  var node = frame ? frame.contentWindow : (root === document ? window : root);
1618
- bind(node, "scroll", recompute$4, true);
1657
+ bind(node, "scroll", throttledRecompute, true);
1619
1658
  }
1620
1659
  function recompute$4(event) {
1621
1660
  if (event === void 0) { event = null; }
@@ -1656,8 +1695,9 @@ function recompute$4(event) {
1656
1695
  }
1657
1696
  state$5.push(current);
1658
1697
  clearTimeout(timeout$3);
1659
- timeout$3 = setTimeout(process$4, 500 /* Setting.LookAhead */, 10 /* Event.Scroll */);
1698
+ timeout$3 = setTimeout$1(process$4, 500 /* Setting.LookAhead */, 10 /* Event.Scroll */);
1660
1699
  }
1700
+ var throttledRecompute = throttle(recompute$4, 25 /* Setting.Throttle */);
1661
1701
  function getPositionNode(x, y) {
1662
1702
  var _a, _b;
1663
1703
  var node;
@@ -1686,7 +1726,7 @@ function process$4(event) {
1686
1726
  function similar(last, current) {
1687
1727
  var dx = last.data.x - current.data.x;
1688
1728
  var dy = last.data.y - current.data.y;
1689
- return (dx * dx + dy * dy < 20 /* Setting.Distance */ * 20 /* Setting.Distance */) && (current.time - last.time < 25 /* Setting.Interval */);
1729
+ return (dx * dx + dy * dy < 20 /* Setting.Distance */ * 20 /* Setting.Distance */) && (current.time - last.time < 50 /* Setting.Interval */);
1690
1730
  }
1691
1731
  function compute$8() {
1692
1732
  var _a, _b;
@@ -1746,7 +1786,7 @@ function recompute$3(root) {
1746
1786
  };
1747
1787
  previous = current;
1748
1788
  clearTimeout(timeout$2);
1749
- timeout$2 = setTimeout(process$3, 500 /* Setting.LookAhead */, 21 /* Event.Selection */);
1789
+ timeout$2 = setTimeout$1(process$3, 500 /* Setting.LookAhead */, 21 /* Event.Selection */);
1750
1790
  }
1751
1791
  function process$3(event) {
1752
1792
  schedule(encode$3.bind(this, event));
@@ -2490,7 +2530,7 @@ function handle$1(m) {
2490
2530
  track$7(6 /* Event.Mutation */, now);
2491
2531
  mutations.push({ time: now, mutations: m });
2492
2532
  schedule(process$2, 1 /* Priority.High */).then(function () {
2493
- setTimeout(compute$6);
2533
+ setTimeout$1(compute$6);
2494
2534
  measure(compute$5)();
2495
2535
  });
2496
2536
  }
@@ -2702,7 +2742,7 @@ function processThrottledMutations() {
2702
2742
  if (throttleDelay) {
2703
2743
  clearTimeout(throttleDelay);
2704
2744
  }
2705
- throttleDelay = setTimeout(function () {
2745
+ throttleDelay = setTimeout$1(function () {
2706
2746
  schedule(process$2, 1 /* Priority.High */);
2707
2747
  }, 33 /* Setting.LookAhead */);
2708
2748
  }
@@ -2717,7 +2757,7 @@ function schedule$1(node) {
2717
2757
  if (timeout$1) {
2718
2758
  clearTimeout(timeout$1);
2719
2759
  }
2720
- timeout$1 = setTimeout(function () {
2760
+ timeout$1 = setTimeout$1(function () {
2721
2761
  trigger$1();
2722
2762
  }, 33 /* Setting.LookAhead */);
2723
2763
  return node;
@@ -4152,7 +4192,7 @@ function queue(tokens, transmit) {
4152
4192
  if (type !== 25 /* Event.Ping */) {
4153
4193
  reset$q();
4154
4194
  }
4155
- timeout = setTimeout(upload, gap);
4195
+ timeout = setTimeout$1(upload, gap);
4156
4196
  queuedTime = now;
4157
4197
  check$2(playbackBytes);
4158
4198
  }
@@ -5775,7 +5815,7 @@ function start$2() {
5775
5815
  // If the document.readyState is not yet complete, we intentionally call observe using a setTimeout.
5776
5816
  // This allows us to capture loadEventEnd on navigation timeline.
5777
5817
  if (document.readyState !== "complete") {
5778
- bind(window, "load", setTimeout.bind(this, observe, 0));
5818
+ bind(window, "load", setTimeout$1.bind(this, observe, 0));
5779
5819
  }
5780
5820
  else {
5781
5821
  observe();