clarity-js 0.7.10 → 0.7.12

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 He},get start(){return je},get stop(){return Ae},get track(){return Me}}),e=Object.freeze({__proto__:null,get clone(){return tn},get compute(){return en},get data(){return Je},get keys(){return Be},get reset(){return nn},get start(){return Qe},get stop(){return an},get trigger(){return $e},get update(){return rn}}),n=Object.freeze({__proto__:null,get check(){return dn},get compute(){return fn},get data(){return Ve},get start(){return ln},get stop(){return pn},get trigger(){return hn}}),r=Object.freeze({__proto__:null,get compute(){return wn},get data(){return gn},get log(){return yn},get reset(){return kn},get start(){return mn},get stop(){return bn},get updates(){return vn}}),a=Object.freeze({__proto__:null,get callbacks(){return xn},get clear(){return In},get consent(){return Sn},get data(){return _n},get id(){return Nn},get metadata(){return Tn},get save(){return jn},get start(){return En},get stop(){return Mn}}),o=Object.freeze({__proto__:null,get data(){return qn},get envelope(){return Ln},get start(){return Rn},get stop(){return Pn}}),i={projectId:null,delay:1e3,lean:!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};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();return Math.max(Math.round(e-c),0)}var l="0.7.10";var d=/\S/gi,h=!0,f=null,p=null,g=null;function v(t,e,n,r){if(void 0===r&&(r=!1),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;_();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=h&&null!==g?s.match(g)?s:w(s,"▪","▫"):y(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 k(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?b(t):y(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return k(t);case"placeholder":return y(t)}break;case 4:switch(e){case"*T":case"data-":return r?b(t):y(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 w(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 m(t,e){if(void 0===e&&(e=!1),e)return"".concat("https://").concat("Electron");var n=i.drop;if(n&&n.length>0&&t&&t.indexOf("?")>0){var r=t.split("?"),a=r[0],o=r[1];return a+"?"+o.split("&").map((function(t){return n.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}return t}function b(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 y(t){return t.replace(d,"•")}function w(t,e,n){return _(),t?t.replace(p,e).replace(f,n):t}function k(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 _(){if(h&&null===f)try{f=new RegExp("\\p{N}","gu"),p=new RegExp("\\p{L}","gu"),g=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}}var x=null,O=null,E=!1;function M(){E&&(x={time:s(),event:4,data:{visible:O.visible,docWidth:O.docWidth,docHeight:O.docHeight,screenWidth:O.screenWidth,screenHeight:O.screenHeight,scrollX:O.scrollX,scrollY:O.scrollY,pointerX:O.pointerX,pointerY:O.pointerY,activityTime:O.activityTime}}),O=O||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0}}function T(t,e,n){switch(t){case 8:O.docWidth=e,O.docHeight=n;break;case 11:O.screenWidth=e,O.screenHeight=n;break;case 10:O.scrollX=e,O.scrollY=n;break;default:O.pointerX=e,O.pointerY=n}E=!0}function N(t){O.activityTime=t}function S(t,e){O.visible="visible"===e?1:0,O.visible||N(t),E=!0}function I(){E&&sn(4)}var j=Object.freeze({__proto__:null,activity:N,compute:I,reset:M,start:function(){E=!1,M()},get state(){return x},stop:function(){M()},track:T,visibility:S}),H=null;function A(t,e){ur()&&t&&e&&"string"==typeof t&&"string"==typeof e&&t.length<255&&e.length<255&&(H={key:t,value:e},sn(24))}var C,D=null,W=null;function X(t){t in D||(D[t]=0),t in W||(W[t]=0),D[t]++,W[t]++}function z(t,e){null!==e&&(t in D||(D[t]=0),t in W||(W[t]=0),D[t]+=e,W[t]+=e)}function Y(t,e){null!==e&&!1===isNaN(e)&&(t in D||(D[t]=0),(e>D[t]||0===D[t])&&(W[t]=e,D[t]=e))}function q(t,e,n){return window.setTimeout(Jn(t),e,n)}function R(t){return window.clearTimeout(t)}var P=0,L=0,U=null;function V(){U&&R(U),U=q(J,L),P=s()}function J(){var t=s();C={gap:t-P},sn(25),C.gap<3e5?U=q(J,L):ar&&(A("clarity","suspend"),hr(),["mousemove","touchstart"].forEach((function(t){return Zn(document,t,sr)})),["resize","scroll","pageshow"].forEach((function(t){return Zn(window,t,sr)})))}var B=Object.freeze({__proto__:null,get data(){return C},reset:V,start:function(){L=6e4,P=0},stop:function(){R(U),P=0,L=0}}),Z=null;function G(){sn(36)}function F(){Z={}}var K=Object.freeze({__proto__:null,compute:G,get data(){return Z},reset:F,start:function(){Z={}},stop:function(){Z={}},track:function(t,e){if(t in Z){var n=Z[t],r=n[n.length-1];e-r[0]>100?Z[t].push([e,0]):r[1]=e-r[0]}else Z[t]=[[e,0]]}}),Q=null;function $(t){ur()&&i.lean&&(i.lean=!1,Q={key:t},jn(),i.upgrade&&i.upgrade(t),sn(3))}var tt=Object.freeze({__proto__:null,get data(){return Q},start:function(){!i.lean&&i.upgrade&&i.upgrade("Config"),Q=null},stop:function(){Q=null},upgrade:$});function et(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 nt(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 rt=null;function at(t,e){it(t,"string"==typeof e?[e]:e)}function ot(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),et(this,void 0,void 0,(function(){var a,o;return nt(this,(function(i){switch(i.label){case 0:return o={},[4,st(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(w(u.substring(2),"*","*")):w(u,"*","*")),it("userId",[(a=o).userId]),it("userHint",[a.userHint]),it("userType",[lt(t)]),e&&(it("sessionId",[e]),a.sessionId=e),n&&(it("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function it(t,e){if(ur()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in rt?rt[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);rt[t]=n}}function ut(){sn(34)}function ct(){rt={}}function st(t){return et(this,void 0,void 0,(function(){var e;return nt(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 lt(t){return t&&t.indexOf("@")>0?"email":"string"}var dt="CompressionStream"in window;function ht(t){return et(this,void 0,void 0,(function(){var e,n;return nt(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),dt?(e=new ReadableStream({start:function(e){return et(this,void 0,void 0,(function(){return nt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ft(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 ft(t){return et(this,void 0,void 0,(function(){var e,n,r,a,o;return nt(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 pt,gt=[j,r,Object.freeze({__proto__:null,compute:ut,get data(){return rt},identify:ot,reset:ct,set:at,start:function(){ct()},stop:function(){ct()}}),n,K,a,o,t,B,tt,e];function vt(){D={},W={},X(5),gt.forEach((function(t){return Jn(t.start)()}))}function mt(){gt.slice().reverse().forEach((function(t){return Jn(t.stop)()})),D={},W={}}function bt(){ut(),I(),wn(),sn(0),G(),fn(),en()}function yt(t){return et(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,l,d,h,f,p;return nt(this,(function(g){switch(e=s(),n=[e,t],t){case 8:r=pt,n.push(r.width),n.push(r.height),T(t,r.width,r.height),He(n);break;case 43:if((a=oe).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,l=u.data,d=0,h=["tag","attributes","value"];d<h.length;d++)if(l[f=h[d]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[f]);break;case"attributes":for(p in l[f])void 0!==l[f][p]&&n.push(wt(p,l[f][p],c));break;case"value":n.push(v(l[f],l.tag,c))}He(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 wt(t,e,n){return"".concat(t,"=").concat(v(e,0===t.indexOf("data-")?"data-":t,n))}function kt(){pt=null}function _t(){var t,e,n,r,a,o,i,u,c,s,l,d,h,f,p,g;kt(),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,h=e?e.clientHeight:null,f=e?e.scrollHeight:null,p=e?e.offsetHeight:null,g=Math.max(s,l,d,h,f,p),null!==pt&&c===pt.width&&g===pt.height||null===c||null===g||(pt={width:c,height:g},yt(8))}var xt=[],Ot=null;var Et=Object.freeze({__proto__:null,compute:function(){},data:Ot,log:function(){},observe:function(){},reset:function(){},start:function(){},state:xt,stop:function(){}}),Mt=[],Tt=null,Nt=null,St=null;function It(){Mt=[],Tt=null,Nt=null}function jt(t,e){return void 0===e&&(e=0),et(this,void 0,void 0,(function(){var n,r,a;return nt(this,(function(o){for(n=0,r=Mt;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){Mt[1===e?"unshift":"push"]({task:t,resolve:n,id:Nn()})})),null===Tt&&null===Nt&&Ht(),[2,a]}))}))}function Ht(){var t=Mt.shift();t&&(Tt=t,t.task().then((function(){t.id===Nn()&&(t.resolve(),Tt=null,Ht())})).catch((function(e){t.id===Nn()&&(e&&Ue(0,1,e.name,e.message,e.stack),Tt=null,Ht())})))}var At,Ct=["input","textarea","radio","button","canvas"],Dt=[];function Wt(t){Zn(t,"click",Xt.bind(this,9,t),!0)}function Xt(t,e,n){var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,i=le(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}(i),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}(i);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),o=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((o-c.y)/c.h*32767),0):0;null!==a&&null!==o&&(Dt.push({time:s(n),event:t,data:{target:i,x:a,y:o,eX:l,eY:d,button:n.button,reaction:Yt(i),context:qt(u),text:zt(i),link:u?u.href:null,hash:null,trust:n.isTrusted?1:0}}),jt(me.bind(this,t)))}function zt(t){var e=null;if(t){var n=t.textContent||t.value||t.alt;n&&(e=n.replace(/\s+/g," ").trim().substr(0,25))}return e}function Yt(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Ct.indexOf(e)>=0)return 0}return 1}function qt(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 Rt(){Dt=[]}function Pt(){var t=document.documentElement;At={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},me(11)}function Lt(){At=null}var Ut=[],Vt=null;function Jt(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?le(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),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i={time:s(t),event:10,data:{target:r,x:a,y:o}};if((null!==t||0!==a||0!==o)&&null!==a&&null!==o){var u=Ut.length,c=u>1?Ut[u-2]:null;c&&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}(c,i)&&Ut.pop(),Ut.push(i),R(Vt),Vt=q(Bt,500,10)}}function Bt(t){jt(me.bind(this,t))}var Zt,Gt,Ft=[];function Kt(t){Ft.push({time:s(t),event:39,data:{target:le(t)}}),jt(me.bind(this,39))}function Qt(){Ft=[]}function $t(t){Zt={name:t.type},me(26,s(t)),hr()}function te(){Zt=null}function ee(t){void 0===t&&(t=null),Gt={visible:"visibilityState"in document?document.visibilityState:"default"},me(28,s(t))}function ne(){Gt=null}function re(t){!function(t){Zn(t===document?window:t,"scroll",Jt,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(Wt(t),function(t){Zn(t,"submit",Kt,!0)}(t))}var ae=Object.freeze({__proto__:null,observe:re,start:function(){be=[],we(),Rt(),Zn(window,"resize",Pt),Pt(),Zn(document,"visibilitychange",ee),ee(),Ut=[],Jt(),Qt(),Zn(window,"pagehide",$t)},stop:function(){be=[],we(),Rt(),Lt(),ne(),R(Vt),Ut=[],Qt(),te()}}),oe=[],ie=1,ue=null;function ce(){return!1}function se(){}function le(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 de(t){var e={id:0,hash:null,privacy:5,node:t};return t&&(e.id=ue.has(t)?ue.get(t):pe(t)),e}function he(){ue=new WeakMap}function fe(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 pe(t){return null===t?null:ue.has(t)?ue.get(t):(ue.set(t,ie),ie++)}function ge(t,e,n){if(t&&n&&n.tag){var r=pe(t),a=e?ue.get(e):null,o=t.previousSibling?ue.get(t.previousSibling):null;oe.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 ve=Object.freeze({__proto__:null,compute:function(){},hashText:se,iframe:ce,metadata:de,offset:function(){return{x:0,y:0}},snapshot:function(){oe=[],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=ue.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=fe(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}ge(o,u,{tag:r,attributes:n,value:a})}}(document),yt(43)},start:function(){he(),_t(),pe(document.documentElement),re(document)},stop:function(){he(),kt()},target:le,get values(){return oe}});function me(t,e){return void 0===e&&(e=null),et(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,l,d,h,f,p,g,b,y,w,k,_,x,O,E,M,N,I,j,H,A,C,D,W,X;return nt(this,(function(z){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,o=xt;a<o.length;a++)W=o[a],(i=de(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),He(r),T(W.event,W.data.x,W.data.y));break;case 9:for(u=0,c=Dt;u<c.length;u++)W=c[u],l=de(W.data.target,W.event,W.data.text),r=[W.time,W.event],d=l.hash?l.hash.join("."):"",r.push(l.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(v(W.data.text,"click",l.privacy)),r.push(m(W.data.link)),r.push(d),r.push(W.data.trust),He(r),ke(W.time,W.event,d,W.data.x,W.data.y,W.data.reaction,W.data.context);Rt();break;case 38:for(h=0,f=xt;h<f.length;h++)W=f[h],r=[W.time,W.event],(A=de(W.data.target,W.event)).id>0&&(r.push(A.id),r.push(W.data.action),He(r));break;case 11:p=At,r.push(p.width),r.push(p.height),T(t,p.width,p.height),Lt(),He(r);break;case 26:g=Zt,r.push(g.name),te(),He(r);break;case 27:for(b=0,y=xt;b<y.length;b++)W=y[b],w=de(W.data.target,W.event,W.data.value),(r=[W.time,W.event]).push(w.id),r.push(v(W.data.value,"input",w.privacy)),He(r);break;case 21:(k=Ot)&&(_=de(k.start),x=de(k.end),r.push(_.id),r.push(k.startOffset),r.push(x.id),r.push(k.endOffset),He(r));break;case 10:for(O=0,E=Ut;O<E.length;O++)W=E[O],(M=de(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(M.id),r.push(W.data.x),r.push(W.data.y),He(r),T(W.event,W.data.x,W.data.y));Ut=[];break;case 42:for(N=0,I=xt;N<I.length;N++)W=I[N],r=[W.time,W.event],(A=de(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(A.id),r.push(W.data.type),r.push(v(W.data.value,"change",A.privacy)),r.push(v(W.data.checksum,"checksum",A.privacy)),He(r));break;case 39:for(j=0,H=Ft;j<H.length;j++)W=H[j],r=[W.time,W.event],(A=de(W.data.target,W.event)).id>0&&(r.push(A.id),He(r));Qt();break;case 22:for(C=0,D=ye;C<D.length;C++)W=D[C],(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),He(r,!1);we();break;case 28:X=Gt,r.push(X.visible),He(r),S(n,X.visible),ne()}return[2]}))}))}var be=[],ye=[];function we(){ye=[]}function ke(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),be.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),T(e,r,a)}var _e,xe,Oe,Ee,Me,Te=0,Ne=0,Se=null,Ie=0;function je(){Ee=!0,Te=0,Ne=0,Ie=0,_e=[],xe=[],Oe={},Me=null}function He(t,e){if(void 0===e&&(e=!0),Ee){var n=s(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(r){case 5:Te+=a.length;case 37:case 6:case 43:Ne+=a.length,_e.push(a);break;default:xe.push(a)}X(25);var o=function(){var t=!1===i.lean&&Te>0?100:qn.sequence*i.delay;return"string"==typeof i.upload?Math.max(Math.min(t,3e4),100):i.delay}();n-Ie>2*o&&(R(Se),Se=null),e&&null===Se&&(25!==r&&V(),Se=q(Ce,o),Ie=n,dn(Ne))}}function Ae(){R(Se),Ce(!0),Te=0,Ne=0,Ie=0,_e=[],xe=[],Oe={},Me=null,Ee=!1}function Ce(t){return void 0===t&&(t=!1),et(this,void 0,void 0,(function(){var e,n,r,a,o,u,c,s;return nt(this,(function(l){switch(l.label){case 0:return Se=null,(e=!1===i.lean&&Ne>0&&(Ne<1048576||qn.sequence>0))&&Y(1,1),function(){var t=[];ye=[];for(var e=qn.start+qn.duration,n=Math.max(e-2e3,0),r=0,a=be;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&ye.push(o),t.push(o))}be=t,me(22)}(),bt(),n=!0===t,r=JSON.stringify(Ln(n)),a="[".concat(xe.join(),"]"),o=e?"[".concat(_e.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:o}),n?(s=null,[3,3]):[3,1];case 1:return[4,ht(u)];case 2:s=l.sent(),l.label=3;case 3:return z(2,(c=s)?c.length:u.length),De(u,c,qn.sequence,n),xe=[],e&&(_e=[],Ne=0,Te=0),[2]}}))}))}function De(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof i.upload){var a=i.upload,o=!1;if(r&&"sendBeacon"in navigator)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&Xe(n)}catch(t){}if(!1===o){n in Oe?Oe[n].attempts++:Oe[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){Vn(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){Jn(We)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(i.upload){(0,i.upload)(t),Xe(n)}}function We(t,e){var n=Oe[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?hn(6):(0===t.status&&(i.upload=i.fallback?i.fallback:i.upload),De(n.data,null,e)):(Me={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&sn(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":hn(6);break;case"UPGRADE":$("Auto");break;case"ACTION":i.action&&o.length>1&&i.action(o[1]);break;case"EXTRACT":o.length>1&&$e(o[1])}}}(t.responseText),0===t.status&&(De(n.data,null,e,!0),hn(3)),t.status>=200&&t.status<=208&&Xe(e),delete Oe[e]))}function Xe(t){1===t&&jn()}var ze,Ye={};function qe(t){var e=t.error||t;return e.message in Ye||(Ye[e.message]=0),Ye[e.message]++>=5||e&&e.message&&(ze={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Re(31)),!0}function Re(t){return et(this,void 0,void 0,(function(){var e;return nt(this,(function(n){switch(e=[s(),t],t){case 31:e.push(ze.message),e.push(ze.line),e.push(ze.column),e.push(ze.stack),e.push(m(ze.source)),He(e);break;case 33:Pe&&(e.push(Pe.code),e.push(Pe.name),e.push(Pe.message),e.push(Pe.stack),e.push(Pe.severity),He(e,!1))}return[2]}))}))}var Pe,Le={};function Ue(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 Le&&Le[t].indexOf(o)>=0||(Pe={code:t,name:n,message:r,stack:a,severity:e},t in Le?Le[t].push(o):Le[t]=[o],Re(33))}var Ve,Je={},Be=new Set,Ze={},Ge={},Fe={},Ke={};function Qe(){nn()}function $e(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 Ze[r]={},Ge[r]={},Fe[r]={},Ke[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.substring(1,c.length);Ze[r][u]=on(l);break;case 2:Ge[r][u]=c;break;case 4:var d=c.substring(1,c.length);Fe[r][u]=d}}}catch(t){Ue(8,1,t?t.name:null)}}function tn(t){return JSON.parse(JSON.stringify(t))}function en(){try{for(var t in Ze){var e=parseInt(t);if(""==Ke[e]||document.querySelector(Ke[e])){var n=Ze[e];for(var r in n){var a=parseInt(r),o=(f=un(tn(n[a])))?JSON.stringify(f).substring(0,1e4):f;o&&rn(e,a,o)}var i=Ge[e];for(var u in i){var c=parseInt(u),s=document.querySelectorAll(i[c]);if(s)rn(e,c,Array.from(s).map((function(t){return t.textContent})).join("<SEP>").substring(0,1e4))}var l=Fe[e];for(var d in l){var h=parseInt(d);rn(e,h,(void l[h]).trim().substring(0,1e4))}}}Be.size>0&&sn(40)}catch(t){Ue(5,1,t?t.name:null)}var f}function nn(){Be.clear()}function rn(t,e,n){var r,a=!1;t in Je||(Je[t]={},a=!0),r=Fe[t],0==Object.keys(r).length||e in Je[t]&&Je[t][e]==n||(a=!0),Je[t][e]=n,a&&Be.add(t)}function an(){nn()}function on(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.substring(0,a):o>0?r.substring(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.substring(o+1,i):null})}return e}function un(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&&cn(a,r.condition))n=un(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(cn(c,r.condition)){var s=un(t,c);s&&o.push(s)}}n=o}return n}return null}function cn(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function sn(t){var e=[s(),t];switch(t){case 4:var n=x;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),He(e,!1)),M();break;case 25:e.push(C.gap),He(e);break;case 35:e.push(Ve.check),He(e,!1);break;case 3:e.push(Q.key),He(e);break;case 2:e.push(Me.sequence),e.push(Me.attempts),e.push(Me.status),He(e,!1);break;case 24:e.push(H.key),e.push(H.value),He(e);break;case 34:var r=Object.keys(rt);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(rt[i])}ct(),He(e,!1)}break;case 0:var u=Object.keys(W);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],h=parseInt(d,10);e.push(h),e.push(Math.round(W[d]))}W={},He(e,!1)}break;case 1:var f=Object.keys(vn);if(f.length>0){for(var p=0,g=f;p<g.length;p++){var v=g[p];h=parseInt(v,10);e.push(h),e.push(vn[v])}kn(),He(e,!1)}break;case 36:var m=Object.keys(Z);if(m.length>0){for(var b=0,y=m;b<y.length;b++){var w=y[b];h=parseInt(w,10);e.push(h),e.push([].concat.apply([],Z[w]))}F(),He(e,!1)}break;case 40:Be.forEach((function(t){e.push(t);var n=[];for(var r in Je[t]){var a=parseInt(r,10);n.push(a),n.push(Je[t][r])}e.push(n)})),nn(),He(e,!1)}}function ln(){Ve={check:0}}function dn(t){if(0===Ve.check){var e=Ve.check;e=qn.sequence>=128?1:e,e=qn.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==Ve.check&&hn(e)}}function hn(t){Ve.check=t,In(),hr()}function fn(){0!==Ve.check&&sn(35)}function pn(){Ve=null}var gn=null,vn=null;function mn(){gn={},vn={}}function bn(){gn={},vn={}}function yn(t,e){e&&(e="".concat(e),t in gn||(gn[t]=[]),gn[t].indexOf(e)<0&&(gn[t].push(e),t in vn||(vn[t]=[]),vn[t].push(e),gn[t].length>128&&hn(5)))}function wn(){sn(1)}function kn(){vn={}}var _n=null,xn=[],On=null;function En(){On=null;var t,e=navigator&&"userAgent"in navigator?navigator.userAgent:"",n=document&&document.title?document.title:"",r=e.indexOf("Electron")>0?1:0,a=function(){var t={session:Cn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Xn("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-Dn(n[1])<18e5&&(t.session=n[0],t.count=Dn(n[2])+1,t.upgrade=Dn(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),o=Wn(),u=i.projectId||function(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2)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)}(location.host);_n={projectId:u,userId:o.id,sessionId:a.session,pageNum:a.count},i.lean=i.track&&null!==a.upgrade?0===a.upgrade:i.lean,i.upload=i.track&&"string"==typeof i.upload&&a.upload&&a.upload.length>"https://".length?a.upload:i.upload,yn(0,e),yn(3,n),yn(1,m(location.href,!!r)),yn(2,document.referrer),yn(15,function(){var t=Cn();if(i.track&&Hn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),yn(16,document.documentElement.lang),yn(17,document.dir),yn(26,"".concat(window.devicePixelRatio)),yn(28,o.dob.toString()),yn(29,o.version.toString()),Y(0,a.ts),Y(1,0),Y(35,r),navigator&&(yn(9,navigator.language),Y(33,navigator.hardwareConcurrency),Y(32,navigator.maxTouchPoints),Y(34,Math.round(navigator.deviceMemory)),(t=navigator.userAgentData)&&t.getHighEntropyValues?t.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;yn(22,t.platform),yn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){yn(24,t.name+"~"+t.version)})),yn(25,t.model),Y(27,t.mobile?1:0)})):yn(22,navigator.platform)),screen&&(Y(14,Math.round(screen.width)),Y(15,Math.round(screen.height)),Y(16,Math.round(screen.colorDepth)));for(var c=0,s=i.cookies;c<s.length;c++){var l=s[c],d=Xn(l);d&&at(l,d)}An(o)}function Mn(){On=null,_n=null}function Tn(t,e){void 0===e&&(e=!0);var n=i.lean?0:1;_n&&(n||!1===e)?t(_n,!i.lean):xn.push({callback:t,wait:e})}function Nn(){return _n?[_n.userId,_n.sessionId,_n.pageNum].join("."):""}function Sn(){ur()&&(i.track=!0,An(Wn(),1))}function In(){zn("_clsk","",0)}function jn(){var t=Math.round(Date.now()),e=i.upload&&"string"==typeof i.upload?i.upload.replace("https://",""):"",n=i.lean?0:1;!function(t){xn.length>0&&xn.forEach((function(e){!e.callback||e.wait&&!t||e.callback(_n,!i.lean)}))}(n),zn("_clsk",[_n.sessionId,t,_n.pageNum,n,e].join("|"),1)}function Hn(t,e){try{return!!t[e]}catch(t){return!1}}function An(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===i.dob?0:i.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&zn("_clck",[_n.userId,2,n.toString(36),e,r].join("|"),365)}function Cn(){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 Dn(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Wn(){var t={id:Cn(),version:0,expiry:null,consent:0,dob:0},e=Xn("_clck");if(e&&e.length>0){for(var n=e.split("|"),r=0,a=0,o=document.cookie.split(";");a<o.length;a++){r+="_clck"===o[a].split("=")[0].trim()?1:0}if(1===n.length||r>1){var u="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(u),document.cookie="".concat("_clsk","=").concat(u)}n.length>1&&(t.version=Dn(n[1])),n.length>2&&(t.expiry=Dn(n[2],36)),n.length>3&&1===Dn(n[3])&&(t.consent=1),n.length>4&&Dn(n[1])>1&&(t.dob=Dn(n[4])),i.track=i.track||1===t.consent,t.id=i.track?n[0]:t.id}return t}function Xn(t){if(Hn(document,"cookie")){var e=document.cookie.split(";");if(e)for(var n=0;n<e.length;n++){var r=e[n].split("=");if(r.length>1&&r[0]&&r[0].trim()===t)return r[1]}}return null}function zn(t,e,n){if(i.track&&(navigator&&navigator.cookieEnabled||Hn(document,"cookie"))){var r=new Date;r.setDate(r.getDate()+n);var a=r?"expires="+r.toUTCString():"",o="".concat(t,"=").concat(e).concat(";").concat(a).concat(";path=/");try{if(null===On){for(var u=location.hostname?location.hostname.split("."):[],c=u.length-1;c>=0;c--)if(On=".".concat(u[c]).concat(On||""),c<u.length-1&&(document.cookie="".concat(o).concat(";").concat("domain=").concat(On),Xn(t)===e))return;On=""}}catch(t){On=""}document.cookie=On?"".concat(o).concat(";").concat("domain=").concat(On):o}}var Yn,qn=null;function Rn(){var t=_n;qn={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Pn(){qn=null}function Ln(t){return qn.start=qn.start+qn.duration,qn.duration=s()-qn.start,qn.sequence++,qn.upload=t&&"sendBeacon"in navigator?1:0,qn.end=t?1:0,[qn.version,qn.sequence,qn.start,qn.duration,qn.projectId,qn.userId,qn.sessionId,qn.pageNum,qn.upload,qn.end]}function Un(){Yn=[]}function Vn(t){if(Yn&&-1===Yn.indexOf(t.message)){var e=i.report;if(e&&e.length>0){var n={v:qn.version,p:qn.projectId,u:qn.userId,s:qn.sessionId,n:qn.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)),Yn.push(t.message)}}return t}function Jn(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Vn(t)}var n=performance.now()-e;z(4,n),n>30&&(X(7),Y(6,n))}}var Bn=[];function Zn(t,e,n,r){void 0===r&&(r=!1),n=Jn(n);try{t[u("addEventListener")](e,n,r),Bn.push({event:e,target:t,listener:n,capture:r})}catch(t){}}function Gn(){for(var t=0,e=Bn;t<e.length;t++){var n=e[t];try{n.target[u("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}Bn=[]}var Fn=null,Kn=null,Qn=null,$n=0;function tr(){return!($n++>20)||(Ue(4,0),!1)}function er(){$n=0,Qn!==rr()&&(hr(),window.setTimeout(nr,250))}function nr(){dr(),Y(29,1)}function rr(){return location.href?location.href.replace(location.hash,""):location.href}var ar=!1;function or(){ar=!0,c=performance.now(),It(),Gn(),Un(),Qn=rr(),$n=0,Zn(window,"popstate",er),null===Fn&&(Fn=history.pushState,history.pushState=function(){Fn.apply(this,arguments),ur()&&tr()&&er()}),null===Kn&&(Kn=history.replaceState,history.replaceState=function(){Kn.apply(this,arguments),ur()&&tr()&&er()})}function ir(){Qn=null,$n=0,Un(),Gn(),It(),c=0,ar=!1}function ur(){return ar}function cr(t){if(null===t||ar)return!1;for(var e in t)e in i&&(i[e]=t[e]);return!0}function sr(){dr(),A("clarity","restart")}var lr=[Object.freeze({__proto__:null,start:function(){!function(){Y(26,navigator.webdriver?1:0);try{Y(31,window.top==window.self?1:2)}catch(t){Y(31,0)}}(),Zn(window,"error",qe),Ye={},Le={}},stop:function(){Le={}}}),ve,ae,Et];function dr(t){void 0===t&&(t=null),function(){try{return!1===ar&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap}catch(t){return!1}}()&&(cr(t),or(),vt(),lr.forEach((function(t){return Jn(t.start)()})),null===t&&vr())}function hr(){ur()&&(lr.slice().reverse().forEach((function(t){return Jn(t.stop)()})),mt(),ir(),void 0!==pr&&(pr[gr]=function(){(pr[gr].q=pr[gr].q||[]).push(arguments),"start"===arguments[0]&&pr[gr].q.unshift(pr[gr].q.pop())&&vr()}))}var fr=Object.freeze({__proto__:null,consent:Sn,event:A,hashText:se,identify:ot,metadata:Tn,pause:function(){ur()&&(A("clarity","pause"),null===Nt&&(Nt=new Promise((function(t){St=t}))))},resume:function(){ur()&&(Nt&&(St(),Nt=null,null===Tt&&Ht()),A("clarity","resume"))},set:at,start:dr,stop:hr,upgrade:$,version:l}),pr=window,gr="clarity";function vr(){if(void 0!==pr){if(pr[gr]&&pr[gr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=pr[gr]&&pr[gr].q||[];for(pr[gr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return fr[t].apply(fr,e)},pr[gr].v=l;t.length>0;)pr[gr].apply(pr,t.shift())}}vr()}();
1
+ !function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return He},get start(){return je},get stop(){return Ae},get track(){return Me}}),e=Object.freeze({__proto__:null,get clone(){return tn},get compute(){return en},get data(){return Je},get keys(){return Be},get reset(){return nn},get start(){return Qe},get stop(){return an},get trigger(){return $e},get update(){return rn}}),n=Object.freeze({__proto__:null,get check(){return dn},get compute(){return fn},get data(){return Ve},get start(){return ln},get stop(){return pn},get trigger(){return hn}}),r=Object.freeze({__proto__:null,get compute(){return wn},get data(){return gn},get log(){return yn},get reset(){return kn},get start(){return mn},get stop(){return bn},get updates(){return vn}}),a=Object.freeze({__proto__:null,get callbacks(){return xn},get clear(){return In},get consent(){return Sn},get data(){return _n},get id(){return Nn},get metadata(){return Tn},get save(){return jn},get shortid(){return Cn},get start(){return En},get stop(){return Mn}}),o=Object.freeze({__proto__:null,get data(){return qn},get envelope(){return Ln},get start(){return Rn},get stop(){return Pn}}),i={projectId:null,delay:1e3,lean:!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};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();return Math.max(Math.round(e-c),0)}var l="0.7.12";var d=/\S/gi,h=!0,f=null,p=null,g=null;function v(t,e,n,r){if(void 0===r&&(r=!1),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;_();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=h&&null!==g?s.match(g)?s:w(s,"▪","▫"):y(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 k(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?b(t):y(t);case"src":case"srcset":case"title":case"alt":return 3===n?"":t;case"value":case"click":case"input":case"change":return k(t);case"placeholder":return y(t)}break;case 4:switch(e){case"*T":case"data-":return r?b(t):y(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 w(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 m(t,e){if(void 0===e&&(e=!1),e)return"".concat("https://").concat("Electron");var n=i.drop;if(n&&n.length>0&&t&&t.indexOf("?")>0){var r=t.split("?"),a=r[0],o=r[1];return a+"?"+o.split("&").map((function(t){return n.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}return t}function b(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 y(t){return t.replace(d,"•")}function w(t,e,n){return _(),t?t.replace(p,e).replace(f,n):t}function k(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 _(){if(h&&null===f)try{f=new RegExp("\\p{N}","gu"),p=new RegExp("\\p{L}","gu"),g=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}}var x=null,O=null,E=!1;function M(){E&&(x={time:s(),event:4,data:{visible:O.visible,docWidth:O.docWidth,docHeight:O.docHeight,screenWidth:O.screenWidth,screenHeight:O.screenHeight,scrollX:O.scrollX,scrollY:O.scrollY,pointerX:O.pointerX,pointerY:O.pointerY,activityTime:O.activityTime}}),O=O||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0}}function T(t,e,n){switch(t){case 8:O.docWidth=e,O.docHeight=n;break;case 11:O.screenWidth=e,O.screenHeight=n;break;case 10:O.scrollX=e,O.scrollY=n;break;default:O.pointerX=e,O.pointerY=n}E=!0}function N(t){O.activityTime=t}function S(t,e){O.visible="visible"===e?1:0,O.visible||N(t),E=!0}function I(){E&&sn(4)}var j=Object.freeze({__proto__:null,activity:N,compute:I,reset:M,start:function(){E=!1,M()},get state(){return x},stop:function(){M()},track:T,visibility:S}),H=null;function A(t,e){ur()&&t&&e&&"string"==typeof t&&"string"==typeof e&&t.length<255&&e.length<255&&(H={key:t,value:e},sn(24))}var C,D=null,W=null;function X(t){t in D||(D[t]=0),t in W||(W[t]=0),D[t]++,W[t]++}function z(t,e){null!==e&&(t in D||(D[t]=0),t in W||(W[t]=0),D[t]+=e,W[t]+=e)}function Y(t,e){null!==e&&!1===isNaN(e)&&(t in D||(D[t]=0),(e>D[t]||0===D[t])&&(W[t]=e,D[t]=e))}function q(t,e,n){return window.setTimeout(Jn(t),e,n)}function R(t){return window.clearTimeout(t)}var P=0,L=0,U=null;function V(){U&&R(U),U=q(J,L),P=s()}function J(){var t=s();C={gap:t-P},sn(25),C.gap<3e5?U=q(J,L):ar&&(A("clarity","suspend"),hr(),["mousemove","touchstart"].forEach((function(t){return Zn(document,t,sr)})),["resize","scroll","pageshow"].forEach((function(t){return Zn(window,t,sr)})))}var B=Object.freeze({__proto__:null,get data(){return C},reset:V,start:function(){L=6e4,P=0},stop:function(){R(U),P=0,L=0}}),Z=null;function G(){sn(36)}function F(){Z={}}var K=Object.freeze({__proto__:null,compute:G,get data(){return Z},reset:F,start:function(){Z={}},stop:function(){Z={}},track:function(t,e){if(t in Z){var n=Z[t],r=n[n.length-1];e-r[0]>100?Z[t].push([e,0]):r[1]=e-r[0]}else Z[t]=[[e,0]]}}),Q=null;function $(t){ur()&&i.lean&&(i.lean=!1,Q={key:t},jn(),i.upgrade&&i.upgrade(t),sn(3))}var tt=Object.freeze({__proto__:null,get data(){return Q},start:function(){!i.lean&&i.upgrade&&i.upgrade("Config"),Q=null},stop:function(){Q=null},upgrade:$});function et(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 nt(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 rt=null;function at(t,e){it(t,"string"==typeof e?[e]:e)}function ot(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),et(this,void 0,void 0,(function(){var a,o;return nt(this,(function(i){switch(i.label){case 0:return o={},[4,st(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(w(u.substring(2),"*","*")):w(u,"*","*")),it("userId",[(a=o).userId]),it("userHint",[a.userHint]),it("userType",[lt(t)]),e&&(it("sessionId",[e]),a.sessionId=e),n&&(it("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function it(t,e){if(ur()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in rt?rt[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);rt[t]=n}}function ut(){sn(34)}function ct(){rt={}}function st(t){return et(this,void 0,void 0,(function(){var e;return nt(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 lt(t){return t&&t.indexOf("@")>0?"email":"string"}var dt="CompressionStream"in window;function ht(t){return et(this,void 0,void 0,(function(){var e,n;return nt(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),dt?(e=new ReadableStream({start:function(e){return et(this,void 0,void 0,(function(){return nt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ft(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 ft(t){return et(this,void 0,void 0,(function(){var e,n,r,a,o;return nt(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 pt,gt=[j,r,Object.freeze({__proto__:null,compute:ut,get data(){return rt},identify:ot,reset:ct,set:at,start:function(){ct()},stop:function(){ct()}}),n,K,a,o,t,B,tt,e];function vt(){D={},W={},X(5),gt.forEach((function(t){return Jn(t.start)()}))}function mt(){gt.slice().reverse().forEach((function(t){return Jn(t.stop)()})),D={},W={}}function bt(){ut(),I(),wn(),sn(0),G(),fn(),en()}function yt(t){return et(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,l,d,h,f,p;return nt(this,(function(g){switch(e=s(),n=[e,t],t){case 8:r=pt,n.push(r.width),n.push(r.height),T(t,r.width,r.height),He(n);break;case 43:if((a=oe).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,l=u.data,d=0,h=["tag","attributes","value"];d<h.length;d++)if(l[f=h[d]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(l[f]);break;case"attributes":for(p in l[f])void 0!==l[f][p]&&n.push(wt(p,l[f][p],c));break;case"value":n.push(v(l[f],l.tag,c))}He(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 wt(t,e,n){return"".concat(t,"=").concat(v(e,0===t.indexOf("data-")?"data-":t,n))}function kt(){pt=null}function _t(){var t,e,n,r,a,o,i,u,c,s,l,d,h,f,p,g;kt(),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,h=e?e.clientHeight:null,f=e?e.scrollHeight:null,p=e?e.offsetHeight:null,g=Math.max(s,l,d,h,f,p),null!==pt&&c===pt.width&&g===pt.height||null===c||null===g||(pt={width:c,height:g},yt(8))}var xt=[],Ot=null;var Et=Object.freeze({__proto__:null,compute:function(){},data:Ot,log:function(){},observe:function(){},reset:function(){},start:function(){},state:xt,stop:function(){}}),Mt=[],Tt=null,Nt=null,St=null;function It(){Mt=[],Tt=null,Nt=null}function jt(t,e){return void 0===e&&(e=0),et(this,void 0,void 0,(function(){var n,r,a;return nt(this,(function(o){for(n=0,r=Mt;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){Mt[1===e?"unshift":"push"]({task:t,resolve:n,id:Nn()})})),null===Tt&&null===Nt&&Ht(),[2,a]}))}))}function Ht(){var t=Mt.shift();t&&(Tt=t,t.task().then((function(){t.id===Nn()&&(t.resolve(),Tt=null,Ht())})).catch((function(e){t.id===Nn()&&(e&&Ue(0,1,e.name,e.message,e.stack),Tt=null,Ht())})))}var At,Ct=["input","textarea","radio","button","canvas"],Dt=[];function Wt(t){Zn(t,"click",Xt.bind(this,9,t),!0)}function Xt(t,e,n){var r=document.documentElement,a="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+r.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+r.scrollTop):null,i=le(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}(i),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}(i);0===n.detail&&c&&(a=Math.round(c.x+c.w/2),o=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((o-c.y)/c.h*32767),0):0;null!==a&&null!==o&&(Dt.push({time:s(n),event:t,data:{target:i,x:a,y:o,eX:l,eY:d,button:n.button,reaction:Yt(i),context:qt(u),text:zt(i),link:u?u.href:null,hash:null,trust:n.isTrusted?1:0}}),jt(me.bind(this,t)))}function zt(t){var e=null;if(t){var n=t.textContent||t.value||t.alt;n&&(e=n.replace(/\s+/g," ").trim().substr(0,25))}return e}function Yt(t){if(t.nodeType===Node.ELEMENT_NODE){var e=t.tagName.toLowerCase();if(Ct.indexOf(e)>=0)return 0}return 1}function qt(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 Rt(){Dt=[]}function Pt(){var t=document.documentElement;At={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},me(11)}function Lt(){At=null}var Ut=[],Vt=null;function Jt(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?le(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),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i={time:s(t),event:10,data:{target:r,x:a,y:o}};if((null!==t||0!==a||0!==o)&&null!==a&&null!==o){var u=Ut.length,c=u>1?Ut[u-2]:null;c&&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}(c,i)&&Ut.pop(),Ut.push(i),R(Vt),Vt=q(Bt,500,10)}}function Bt(t){jt(me.bind(this,t))}var Zt,Gt,Ft=[];function Kt(t){Ft.push({time:s(t),event:39,data:{target:le(t)}}),jt(me.bind(this,39))}function Qt(){Ft=[]}function $t(t){Zt={name:t.type},me(26,s(t)),hr()}function te(){Zt=null}function ee(t){void 0===t&&(t=null),Gt={visible:"visibilityState"in document?document.visibilityState:"default"},me(28,s(t))}function ne(){Gt=null}function re(t){!function(t){Zn(t===document?window:t,"scroll",Jt,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(Wt(t),function(t){Zn(t,"submit",Kt,!0)}(t))}var ae=Object.freeze({__proto__:null,observe:re,start:function(){be=[],we(),Rt(),Zn(window,"resize",Pt),Pt(),Zn(document,"visibilitychange",ee),ee(),Ut=[],Jt(),Qt(),Zn(window,"pagehide",$t)},stop:function(){be=[],we(),Rt(),Lt(),ne(),R(Vt),Ut=[],Qt(),te()}}),oe=[],ie=1,ue=null;function ce(){return!1}function se(){}function le(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 de(t){var e={id:0,hash:null,privacy:5,node:t};return t&&(e.id=ue.has(t)?ue.get(t):pe(t)),e}function he(){ue=new WeakMap}function fe(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 pe(t){return null===t?null:ue.has(t)?ue.get(t):(ue.set(t,ie),ie++)}function ge(t,e,n){if(t&&n&&n.tag){var r=pe(t),a=e?ue.get(e):null,o=t.previousSibling?ue.get(t.previousSibling):null;oe.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 ve=Object.freeze({__proto__:null,compute:function(){},hashText:se,iframe:ce,metadata:de,offset:function(){return{x:0,y:0}},snapshot:function(){oe=[],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=ue.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=fe(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}ge(o,u,{tag:r,attributes:n,value:a})}}(document),yt(43)},start:function(){he(),_t(),pe(document.documentElement),re(document)},stop:function(){he(),kt()},target:le,get values(){return oe}});function me(t,e){return void 0===e&&(e=null),et(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,l,d,h,f,p,g,b,y,w,k,_,x,O,E,M,N,I,j,H,A,C,D,W,X;return nt(this,(function(z){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,o=xt;a<o.length;a++)W=o[a],(i=de(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),He(r),T(W.event,W.data.x,W.data.y));break;case 9:for(u=0,c=Dt;u<c.length;u++)W=c[u],l=de(W.data.target,W.event,W.data.text),r=[W.time,W.event],d=l.hash?l.hash.join("."):"",r.push(l.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(v(W.data.text,"click",l.privacy)),r.push(m(W.data.link)),r.push(d),r.push(W.data.trust),He(r),ke(W.time,W.event,d,W.data.x,W.data.y,W.data.reaction,W.data.context);Rt();break;case 38:for(h=0,f=xt;h<f.length;h++)W=f[h],r=[W.time,W.event],(A=de(W.data.target,W.event)).id>0&&(r.push(A.id),r.push(W.data.action),He(r));break;case 11:p=At,r.push(p.width),r.push(p.height),T(t,p.width,p.height),Lt(),He(r);break;case 26:g=Zt,r.push(g.name),te(),He(r);break;case 27:for(b=0,y=xt;b<y.length;b++)W=y[b],w=de(W.data.target,W.event,W.data.value),(r=[W.time,W.event]).push(w.id),r.push(v(W.data.value,"input",w.privacy)),He(r);break;case 21:(k=Ot)&&(_=de(k.start),x=de(k.end),r.push(_.id),r.push(k.startOffset),r.push(x.id),r.push(k.endOffset),He(r));break;case 10:for(O=0,E=Ut;O<E.length;O++)W=E[O],(M=de(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(M.id),r.push(W.data.x),r.push(W.data.y),He(r),T(W.event,W.data.x,W.data.y));Ut=[];break;case 42:for(N=0,I=xt;N<I.length;N++)W=I[N],r=[W.time,W.event],(A=de(W.data.target,W.event)).id>0&&((r=[W.time,W.event]).push(A.id),r.push(W.data.type),r.push(v(W.data.value,"change",A.privacy)),r.push(v(W.data.checksum,"checksum",A.privacy)),He(r));break;case 39:for(j=0,H=Ft;j<H.length;j++)W=H[j],r=[W.time,W.event],(A=de(W.data.target,W.event)).id>0&&(r.push(A.id),He(r));Qt();break;case 22:for(C=0,D=ye;C<D.length;C++)W=D[C],(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),He(r,!1);we();break;case 28:X=Gt,r.push(X.visible),He(r),S(n,X.visible),ne()}return[2]}))}))}var be=[],ye=[];function we(){ye=[]}function ke(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),be.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),T(e,r,a)}var _e,xe,Oe,Ee,Me,Te=0,Ne=0,Se=null,Ie=0;function je(){Ee=!0,Te=0,Ne=0,Ie=0,_e=[],xe=[],Oe={},Me=null}function He(t,e){if(void 0===e&&(e=!0),Ee){var n=s(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(r){case 5:Te+=a.length;case 37:case 6:case 43:Ne+=a.length,_e.push(a);break;default:xe.push(a)}X(25);var o=function(){var t=!1===i.lean&&Te>0?100:qn.sequence*i.delay;return"string"==typeof i.upload?Math.max(Math.min(t,3e4),100):i.delay}();n-Ie>2*o&&(R(Se),Se=null),e&&null===Se&&(25!==r&&V(),Se=q(Ce,o),Ie=n,dn(Ne))}}function Ae(){R(Se),Ce(!0),Te=0,Ne=0,Ie=0,_e=[],xe=[],Oe={},Me=null,Ee=!1}function Ce(t){return void 0===t&&(t=!1),et(this,void 0,void 0,(function(){var e,n,r,a,o,u,c,s;return nt(this,(function(l){switch(l.label){case 0:return Se=null,(e=!1===i.lean&&Ne>0&&(Ne<1048576||qn.sequence>0))&&Y(1,1),function(){var t=[];ye=[];for(var e=qn.start+qn.duration,n=Math.max(e-2e3,0),r=0,a=be;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&ye.push(o),t.push(o))}be=t,me(22)}(),bt(),n=!0===t,r=JSON.stringify(Ln(n)),a="[".concat(xe.join(),"]"),o=e?"[".concat(_e.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:o}),n?(s=null,[3,3]):[3,1];case 1:return[4,ht(u)];case 2:s=l.sent(),l.label=3;case 3:return z(2,(c=s)?c.length:u.length),De(u,c,qn.sequence,n),xe=[],e&&(_e=[],Ne=0,Te=0),[2]}}))}))}function De(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof i.upload){var a=i.upload,o=!1;if(r&&"sendBeacon"in navigator)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&Xe(n)}catch(t){}if(!1===o){n in Oe?Oe[n].attempts++:Oe[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){Vn(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){Jn(We)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(i.upload){(0,i.upload)(t),Xe(n)}}function We(t,e){var n=Oe[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?hn(6):(0===t.status&&(i.upload=i.fallback?i.fallback:i.upload),De(n.data,null,e)):(Me={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&sn(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":hn(6);break;case"UPGRADE":$("Auto");break;case"ACTION":i.action&&o.length>1&&i.action(o[1]);break;case"EXTRACT":o.length>1&&$e(o[1])}}}(t.responseText),0===t.status&&(De(n.data,null,e,!0),hn(3)),t.status>=200&&t.status<=208&&Xe(e),delete Oe[e]))}function Xe(t){1===t&&jn()}var ze,Ye={};function qe(t){var e=t.error||t;return e.message in Ye||(Ye[e.message]=0),Ye[e.message]++>=5||e&&e.message&&(ze={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Re(31)),!0}function Re(t){return et(this,void 0,void 0,(function(){var e;return nt(this,(function(n){switch(e=[s(),t],t){case 31:e.push(ze.message),e.push(ze.line),e.push(ze.column),e.push(ze.stack),e.push(m(ze.source)),He(e);break;case 33:Pe&&(e.push(Pe.code),e.push(Pe.name),e.push(Pe.message),e.push(Pe.stack),e.push(Pe.severity),He(e,!1))}return[2]}))}))}var Pe,Le={};function Ue(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 Le&&Le[t].indexOf(o)>=0||(Pe={code:t,name:n,message:r,stack:a,severity:e},t in Le?Le[t].push(o):Le[t]=[o],Re(33))}var Ve,Je={},Be=new Set,Ze={},Ge={},Fe={},Ke={};function Qe(){nn()}function $e(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 Ze[r]={},Ge[r]={},Fe[r]={},Ke[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.substring(1,c.length);Ze[r][u]=on(l);break;case 2:Ge[r][u]=c;break;case 4:var d=c.substring(1,c.length);Fe[r][u]=d}}}catch(t){Ue(8,1,t?t.name:null)}}function tn(t){return JSON.parse(JSON.stringify(t))}function en(){try{for(var t in Ze){var e=parseInt(t);if(""==Ke[e]||document.querySelector(Ke[e])){var n=Ze[e];for(var r in n){var a=parseInt(r),o=(f=un(tn(n[a])))?JSON.stringify(f).substring(0,1e4):f;o&&rn(e,a,o)}var i=Ge[e];for(var u in i){var c=parseInt(u),s=document.querySelectorAll(i[c]);if(s)rn(e,c,Array.from(s).map((function(t){return t.textContent})).join("<SEP>").substring(0,1e4))}var l=Fe[e];for(var d in l){var h=parseInt(d);rn(e,h,(void l[h]).trim().substring(0,1e4))}}}Be.size>0&&sn(40)}catch(t){Ue(5,1,t?t.name:null)}var f}function nn(){Be.clear()}function rn(t,e,n){var r,a=!1;t in Je||(Je[t]={},a=!0),r=Fe[t],0==Object.keys(r).length||e in Je[t]&&Je[t][e]==n||(a=!0),Je[t][e]=n,a&&Be.add(t)}function an(){nn()}function on(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.substring(0,a):o>0?r.substring(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.substring(o+1,i):null})}return e}function un(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&&cn(a,r.condition))n=un(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(cn(c,r.condition)){var s=un(t,c);s&&o.push(s)}}n=o}return n}return null}function cn(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}function sn(t){var e=[s(),t];switch(t){case 4:var n=x;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),He(e,!1)),M();break;case 25:e.push(C.gap),He(e);break;case 35:e.push(Ve.check),He(e,!1);break;case 3:e.push(Q.key),He(e);break;case 2:e.push(Me.sequence),e.push(Me.attempts),e.push(Me.status),He(e,!1);break;case 24:e.push(H.key),e.push(H.value),He(e);break;case 34:var r=Object.keys(rt);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(rt[i])}ct(),He(e,!1)}break;case 0:var u=Object.keys(W);if(u.length>0){for(var c=0,l=u;c<l.length;c++){var d=l[c],h=parseInt(d,10);e.push(h),e.push(Math.round(W[d]))}W={},He(e,!1)}break;case 1:var f=Object.keys(vn);if(f.length>0){for(var p=0,g=f;p<g.length;p++){var v=g[p];h=parseInt(v,10);e.push(h),e.push(vn[v])}kn(),He(e,!1)}break;case 36:var m=Object.keys(Z);if(m.length>0){for(var b=0,y=m;b<y.length;b++){var w=y[b];h=parseInt(w,10);e.push(h),e.push([].concat.apply([],Z[w]))}F(),He(e,!1)}break;case 40:Be.forEach((function(t){e.push(t);var n=[];for(var r in Je[t]){var a=parseInt(r,10);n.push(a),n.push(Je[t][r])}e.push(n)})),nn(),He(e,!1)}}function ln(){Ve={check:0}}function dn(t){if(0===Ve.check){var e=Ve.check;e=qn.sequence>=128?1:e,e=qn.pageNum>=128?7:e,e=s()>72e5?2:e,(e=t>10485760?2:e)!==Ve.check&&hn(e)}}function hn(t){Ve.check=t,In(),hr()}function fn(){0!==Ve.check&&sn(35)}function pn(){Ve=null}var gn=null,vn=null;function mn(){gn={},vn={}}function bn(){gn={},vn={}}function yn(t,e){e&&(e="".concat(e),t in gn||(gn[t]=[]),gn[t].indexOf(e)<0&&(gn[t].push(e),t in vn||(vn[t]=[]),vn[t].push(e),gn[t].length>128&&hn(5)))}function wn(){sn(1)}function kn(){vn={}}var _n=null,xn=[],On=null;function En(){On=null;var t,e=navigator&&"userAgent"in navigator?navigator.userAgent:"",n=document&&document.title?document.title:"",r=e.indexOf("Electron")>0?1:0,a=function(){var t={session:Cn(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Xn("_clsk");if(e){var n=e.split("|");n.length>=5&&t.ts-Dn(n[1])<18e5&&(t.session=n[0],t.count=Dn(n[2])+1,t.upgrade=Dn(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),o=Wn(),u=i.projectId||function(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2)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)}(location.host);_n={projectId:u,userId:o.id,sessionId:a.session,pageNum:a.count},i.lean=i.track&&null!==a.upgrade?0===a.upgrade:i.lean,i.upload=i.track&&"string"==typeof i.upload&&a.upload&&a.upload.length>"https://".length?a.upload:i.upload,yn(0,e),yn(3,n),yn(1,m(location.href,!!r)),yn(2,document.referrer),yn(15,function(){var t=Cn();if(i.track&&Hn(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),yn(16,document.documentElement.lang),yn(17,document.dir),yn(26,"".concat(window.devicePixelRatio)),yn(28,o.dob.toString()),yn(29,o.version.toString()),Y(0,a.ts),Y(1,0),Y(35,r),navigator&&(yn(9,navigator.language),Y(33,navigator.hardwareConcurrency),Y(32,navigator.maxTouchPoints),Y(34,Math.round(navigator.deviceMemory)),(t=navigator.userAgentData)&&t.getHighEntropyValues?t.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;yn(22,t.platform),yn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){yn(24,t.name+"~"+t.version)})),yn(25,t.model),Y(27,t.mobile?1:0)})):yn(22,navigator.platform)),screen&&(Y(14,Math.round(screen.width)),Y(15,Math.round(screen.height)),Y(16,Math.round(screen.colorDepth)));for(var c=0,s=i.cookies;c<s.length;c++){var l=s[c],d=Xn(l);d&&at(l,d)}An(o)}function Mn(){On=null,_n=null}function Tn(t,e){void 0===e&&(e=!0);var n=i.lean?0:1;_n&&(n||!1===e)?t(_n,!i.lean):xn.push({callback:t,wait:e})}function Nn(){return _n?[_n.userId,_n.sessionId,_n.pageNum].join("."):""}function Sn(){ur()&&(i.track=!0,An(Wn(),1))}function In(){zn("_clsk","",0)}function jn(){var t=Math.round(Date.now()),e=i.upload&&"string"==typeof i.upload?i.upload.replace("https://",""):"",n=i.lean?0:1;!function(t){xn.length>0&&xn.forEach((function(e){!e.callback||e.wait&&!t||e.callback(_n,!i.lean)}))}(n),zn("_clsk",[_n.sessionId,t,_n.pageNum,n,e].join("|"),1)}function Hn(t,e){try{return!!t[e]}catch(t){return!1}}function An(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===i.dob?0:i.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&zn("_clck",[_n.userId,2,n.toString(36),e,r].join("|"),365)}function Cn(){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 Dn(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Wn(){var t={id:Cn(),version:0,expiry:null,consent:0,dob:0},e=Xn("_clck");if(e&&e.length>0){for(var n=e.split("|"),r=0,a=0,o=document.cookie.split(";");a<o.length;a++){r+="_clck"===o[a].split("=")[0].trim()?1:0}if(1===n.length||r>1){var u="".concat(";").concat("expires=").concat(new Date(0).toUTCString()).concat(";path=/");document.cookie="".concat("_clck","=").concat(u),document.cookie="".concat("_clsk","=").concat(u)}n.length>1&&(t.version=Dn(n[1])),n.length>2&&(t.expiry=Dn(n[2],36)),n.length>3&&1===Dn(n[3])&&(t.consent=1),n.length>4&&Dn(n[1])>1&&(t.dob=Dn(n[4])),i.track=i.track||1===t.consent,t.id=i.track?n[0]:t.id}return t}function Xn(t){if(Hn(document,"cookie")){var e=document.cookie.split(";");if(e)for(var n=0;n<e.length;n++){var r=e[n].split("=");if(r.length>1&&r[0]&&r[0].trim()===t)return r[1]}}return null}function zn(t,e,n){if(i.track&&(navigator&&navigator.cookieEnabled||Hn(document,"cookie"))){var r=new Date;r.setDate(r.getDate()+n);var a=r?"expires="+r.toUTCString():"",o="".concat(t,"=").concat(e).concat(";").concat(a).concat(";path=/");try{if(null===On){for(var u=location.hostname?location.hostname.split("."):[],c=u.length-1;c>=0;c--)if(On=".".concat(u[c]).concat(On||""),c<u.length-1&&(document.cookie="".concat(o).concat(";").concat("domain=").concat(On),Xn(t)===e))return;On=""}}catch(t){On=""}document.cookie=On?"".concat(o).concat(";").concat("domain=").concat(On):o}}var Yn,qn=null;function Rn(){var t=_n;qn={version:l,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0}}function Pn(){qn=null}function Ln(t){return qn.start=qn.start+qn.duration,qn.duration=s()-qn.start,qn.sequence++,qn.upload=t&&"sendBeacon"in navigator?1:0,qn.end=t?1:0,[qn.version,qn.sequence,qn.start,qn.duration,qn.projectId,qn.userId,qn.sessionId,qn.pageNum,qn.upload,qn.end]}function Un(){Yn=[]}function Vn(t){if(Yn&&-1===Yn.indexOf(t.message)){var e=i.report;if(e&&e.length>0){var n={v:qn.version,p:qn.projectId,u:qn.userId,s:qn.sessionId,n:qn.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)),Yn.push(t.message)}}return t}function Jn(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Vn(t)}var n=performance.now()-e;z(4,n),n>30&&(X(7),Y(6,n))}}var Bn=[];function Zn(t,e,n,r){void 0===r&&(r=!1),n=Jn(n);try{t[u("addEventListener")](e,n,r),Bn.push({event:e,target:t,listener:n,capture:r})}catch(t){}}function Gn(){for(var t=0,e=Bn;t<e.length;t++){var n=e[t];try{n.target[u("removeEventListener")](n.event,n.listener,n.capture)}catch(t){}}Bn=[]}var Fn=null,Kn=null,Qn=null,$n=0;function tr(){return!($n++>20)||(Ue(4,0),!1)}function er(){$n=0,Qn!==rr()&&(hr(),window.setTimeout(nr,250))}function nr(){dr(),Y(29,1)}function rr(){return location.href?location.href.replace(location.hash,""):location.href}var ar=!1;function or(){ar=!0,c=performance.now(),It(),Gn(),Un(),Qn=rr(),$n=0,Zn(window,"popstate",er),null===Fn&&(Fn=history.pushState,history.pushState=function(){Fn.apply(this,arguments),ur()&&tr()&&er()}),null===Kn&&(Kn=history.replaceState,history.replaceState=function(){Kn.apply(this,arguments),ur()&&tr()&&er()})}function ir(){Qn=null,$n=0,Un(),Gn(),It(),c=0,ar=!1}function ur(){return ar}function cr(t){if(null===t||ar)return!1;for(var e in t)e in i&&(i[e]=t[e]);return!0}function sr(){dr(),A("clarity","restart")}var lr=[Object.freeze({__proto__:null,start:function(){!function(){Y(26,navigator.webdriver?1:0);try{Y(31,window.top==window.self?1:2)}catch(t){Y(31,0)}}(),Zn(window,"error",qe),Ye={},Le={}},stop:function(){Le={}}}),ve,ae,Et];function dr(t){void 0===t&&(t=null),function(){try{return!1===ar&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap}catch(t){return!1}}()&&(cr(t),or(),vt(),lr.forEach((function(t){return Jn(t.start)()})),null===t&&vr())}function hr(){ur()&&(lr.slice().reverse().forEach((function(t){return Jn(t.stop)()})),mt(),ir(),void 0!==pr&&(pr[gr]=function(){(pr[gr].q=pr[gr].q||[]).push(arguments),"start"===arguments[0]&&pr[gr].q.unshift(pr[gr].q.pop())&&vr()}))}var fr=Object.freeze({__proto__:null,consent:Sn,event:A,hashText:se,identify:ot,metadata:Tn,pause:function(){ur()&&(A("clarity","pause"),null===Nt&&(Nt=new Promise((function(t){St=t}))))},resume:function(){ur()&&(Nt&&(St(),Nt=null,null===Tt&&Ht()),A("clarity","resume"))},set:at,start:dr,stop:hr,upgrade:$,version:l}),pr=window,gr="clarity";function vr(){if(void 0!==pr){if(pr[gr]&&pr[gr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=pr[gr]&&pr[gr].q||[];for(pr[gr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return fr[t].apply(fr,e)},pr[gr].v=l;t.length>0;)pr[gr].apply(pr,t.shift())}}vr()}();