clarity-js 0.8.49 → 0.8.50-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 ln},get start(){return sn},get stop(){return dn},get track(){return tn}}),e=Object.freeze({__proto__:null,get data(){return Dn},get start(){return Hn},get stop(){return zn},get upgrade(){return Wn}}),n=Object.freeze({__proto__:null,get check(){return Ln},get compute(){return Fn},get data(){return Cn},get start(){return Rn},get stop(){return Jn},get trigger(){return Un}}),r=Object.freeze({__proto__:null,get compute(){return $n},get data(){return Vn},get log(){return Qn},get reset(){return tr},get start(){return Gn},get stop(){return Kn},get updates(){return Bn}}),a=Object.freeze({__proto__:null,get compute(){return lr},get config(){return ir},get consent(){return ur},get data(){return er},get start(){return rr},get stop(){return ar},get trackConsentv2(){return sr}}),o=Object.freeze({__proto__:null,get callback(){return Or},get callbacks(){return pr},get clear(){return Sr},get consent(){return br},get consentv2(){return _r},get data(){return dr},get electron(){return fr},get id(){return yr},get metadata(){return wr},get save(){return xr},get shortid(){return Mr},get start(){return gr},get stop(){return mr}}),i=Object.freeze({__proto__:null,get data(){return Xr},get envelope(){return Cr},get start(){return Yr},get stop(){return jr}}),u={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,modules:[]};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(){return performance.now()+performance.timeOrigin}function d(t){void 0===t&&(t=null);var e=0===s?l():s,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var p="0.8.49";function f(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2){if(r=(r<<5)+r^t.charCodeAt(o),o+1<t.length)a=(a<<5)+a^t.charCodeAt(o+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var h=/\S/gi,v=255,g=!0,m=null,w=null,y=null;function b(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,o=!1,i=null;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,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=g&&null!==y?s.match(y)?s:S(s,"▪","▫"):T(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return O(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):T(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return O(t);case"placeholder":return T(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):T(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return S(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function _(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=u.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),i=o[0],c=o[1];r=i+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,v)),r}function k(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function T(t){return t.replace(h,"•")}function S(t,e,n){return x(),t?t.replace(w,e).replace(m,n):t}function O(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(g&&null===m)try{m=new RegExp("\\p{N}","gu"),w=new RegExp("\\p{L}","gu"),y=new RegExp("\\p{Sc}","gu")}catch(t){g=!1}}var E=null,M=null,I=!1;function N(){I&&(E={time:d(),event:4,data:{visible:M.visible,docWidth:M.docWidth,docHeight:M.docHeight,screenWidth:M.screenWidth,screenHeight:M.screenHeight,scrollX:M.scrollX,scrollY:M.scrollY,pointerX:M.pointerX,pointerY:M.pointerY,activityTime:M.activityTime,scrollTime:M.scrollTime,pointerTime:M.pointerTime,moveX:M.moveX,moveY:M.moveY,moveTime:M.moveTime,downX:M.downX,downY:M.downY,downTime:M.downTime,upX:M.upX,upY:M.upY,upTime:M.upTime,pointerPrevX:M.pointerPrevX,pointerPrevY:M.pointerPrevY,pointerPrevTime:M.pointerPrevTime,modules:M.modules}}),M=M||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0,modules:null}}function P(t,e,n,r){switch(t){case 8:M.docWidth=e,M.docHeight=n;break;case 11:M.screenWidth=e,M.screenHeight=n;break;case 10:M.scrollX=e,M.scrollY=n,M.scrollTime=r;break;case 12:M.moveX=e,M.moveY=n,M.moveTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 13:M.downX=e,M.downY=n,M.downTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 14:M.upX=e,M.upY=n,M.upTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;default:M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r}I=!0}function X(t){M.activityTime=t}function Y(t,e){M.visible=e,M.visible||X(t),I=!0}function j(t){M.modules=Array.from(t),I=!0}function C(){I&&qn(4)}var A=Object.freeze({__proto__:null,activity:X,compute:C,dynamic:j,reset:N,start:function(){I=!1,N()},get state(){return E},stop:function(){N()},track:P,visibility:Y}),D=null;function H(t,e){$r()&&t&&"string"==typeof t&&t.length<255&&(D=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},qn(24))}var W,z=null,q=null;function R(t){t in z||(z[t]=0),t in q||(q[t]=0),z[t]++,q[t]++}function L(t,e){null!==e&&(t in z||(z[t]=0),t in q||(q[t]=0),z[t]+=e,q[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in z||(z[t]=0),(e>z[t]||0===z[t])&&(q[t]=e,z[t]=e))}function F(t,e,n){return window.setTimeout(Hr(t),e,n)}function J(t){return window.clearTimeout(t)}var V=0,B=0,Z=null;function G(){Z&&J(Z),Z=F(K,B),V=d()}function K(){var t=d();W={gap:t-V},qn(25),W.gap<3e5?Z=F(K,B):Gr&&(H("clarity","suspend"),ra(),["mousemove","touchstart"].forEach((function(t){return zr(document,t,ta)})),["resize","scroll","pageshow"].forEach((function(t){return zr(window,t,ta)})))}var Q=Object.freeze({__proto__:null,get data(){return W},reset:G,start:function(){B=6e4,V=0},stop:function(){J(Z),V=0,B=0}}),$=null;function tt(){qn(36)}function et(){$={}}var nt=Object.freeze({__proto__:null,compute:tt,get data(){return $},reset:et,start:function(){$={}},stop:function(){$={}},track:function(t,e){if(t in $){var n=$[t],r=n[n.length-1];e-r[0]>100?$[t].push([e,0]):r[1]=e-r[0]}else $[t]=[[e,0]]}});function rt(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 at(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 ot="CompressionStream"in window;function it(t){return rt(this,void 0,void 0,(function(){var e,n;return at(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ot?(e=new ReadableStream({start:function(e){return rt(this,void 0,void 0,(function(){return at(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ut(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 ut(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o;return at(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 ct=null;function st(t,e){dt(t,"string"==typeof e?[e]:e)}function lt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),rt(this,void 0,void 0,(function(){var a,o;return at(this,(function(i){switch(i.label){case 0:return o={},[4,ht(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(S(u.substring(2),"*","*")):S(u,"*","*")),dt("userId",[(a=o).userId]),dt("userHint",[a.userHint]),dt("userType",[vt(t)]),e&&(dt("sessionId",[e]),a.sessionId=e),n&&(dt("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function dt(t,e){if($r()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in ct?ct[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);ct[t]=n}}function pt(){qn(34)}function ft(){ct={}}function ht(t){return rt(this,void 0,void 0,(function(){var e;return at(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 vt(t){return t&&t.indexOf("@")>0?"email":"string"}var gt=Object.freeze({__proto__:null,compute:pt,get data(){return ct},identify:lt,reset:ft,set:st,start:function(){ft()},stop:function(){ft()}});var mt,wt={};function yt(t){var e=t.error||t;return e.message in wt||(wt[e.message]=0),wt[e.message]++>=5||e&&e.message&&(mt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},bt(31)),!0}function bt(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(e=[d(),t],t){case 31:e.push(mt.message),e.push(mt.line),e.push(mt.column),e.push(mt.stack),e.push(_(mt.source)),ln(e);break;case 33:_t&&(e.push(_t.code),e.push(_t.name),e.push(_t.message),e.push(_t.stack),e.push(_t.severity),ln(e,!1))}return[2]}))}))}var _t,kt={};function Tt(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 kt&&kt[t].indexOf(o)>=0||(_t={code:t,name:n,message:r,stack:a,severity:e},t in kt?kt[t].push(o):kt[t]=[o],bt(33))}var St={},Ot=new Set,xt={},Et={},Mt={},It={};function Nt(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 xt[r]={},Et[r]={},Mt[r]={},It[r]=a,o){var u=parseInt(i),c=o[i],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);xt[r][u]=Ct(l);break;case 2:Et[r][u]=c;break;case 4:var d=c.slice(1);Mt[r][u]=d}}}catch(t){Tt(8,1,t?t.name:null)}}function Pt(t){return JSON.parse(JSON.stringify(t))}function Xt(){try{for(var t in xt){var e=parseInt(t);if(""==It[e]||document.querySelector(It[e])){var n=xt[e];for(var r in n){var a=parseInt(r),o=(m=At(Pt(n[a])))?JSON.stringify(m).slice(0,1e4):m;o&&jt(e,a,o)}var i=Et[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var p=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");jt(e,s,(c?f(p).trim():p).slice(0,1e4))}}var h=Mt[e];for(var v in h){var g=parseInt(v);jt(e,g,(void h[g]).trim().slice(0,1e4))}}}Ot.size>0&&qn(40)}catch(t){Tt(5,1,t?t.name:null)}var m}function Yt(){Ot.clear()}function jt(t,e,n){var r,a=!1;t in St||(St[t]={},a=!0),r=Mt[t],0==Object.keys(r).length||e in St[t]&&St[t][e]==n||(a=!0),St[t][e]=n,a&&Ot.add(t)}function Ct(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),o=r.indexOf("{"),i=r.indexOf("}");e.push({name:a>0?r.slice(0,a):o>0?r.slice(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.slice(o+1,i):null})}return e}function At(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&&Dt(a,r.condition))n=At(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(Dt(c,r.condition)){var s=At(t,c);s&&o.push(s)}}n=o}return n}return null}function Dt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Ht=Object.freeze({__proto__:null,clone:Pt,compute:Xt,data:St,keys:Ot,reset:Yt,start:function(){Yt()},stop:function(){Yt()},trigger:Nt,update:jt});function Wt(t,e){try{return!!t[e]}catch(t){return!1}}function zt(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var qt=null,Rt="^";function Lt(t,e){var n;if(void 0===e&&(e=!1),Wt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=zt(o[1]),u=i[0],c=i[1];u;)u=(n=zt(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Ut(t,e,n){if((u.track||""==e)&&(navigator&&navigator.cookieEnabled||Wt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===qt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(qt=".".concat(c[s]).concat(qt||""),s<c.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(qt),Lt(t)===e))return;qt=""}}catch(t){qt=""}document.cookie=qt?"".concat(i).concat(";").concat("domain=").concat(qt):i}}var Ft=null;function Jt(t){try{if(!Ft)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Ft(t)}))}catch(t){}}var Vt=[A,r,gt,n,nt,Object.freeze({__proto__:null,COOKIE_SEP:Rt,getCookie:Lt,setCookie:Ut,start:function(){qt=null},stop:function(){qt=null}}),a,o,i,t,Q,e,Ht];function Bt(){z={},q={},R(5),Vt.forEach((function(t){return Hr(t.start)()}))}function Zt(){Vt.slice().reverse().forEach((function(t){return Hr(t.stop)()})),z={},q={}}function Gt(){pt(),C(),$n(),qn(0),tt(),Fn(),Xt(),lr()}var Kt=[],Qt=null;var $t=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Qt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Kt,stop:function(){}}),te=[],ee=null,ne=null,re=null;function ae(){te=[],ee=null,ne=null}function oe(t,e){return void 0===e&&(e=0),rt(this,void 0,void 0,(function(){var n,r,a;return at(this,(function(o){for(n=0,r=te;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){te[1===e?"unshift":"push"]({task:t,resolve:n,id:yr()})})),null===ee&&null===ne&&ie(),[2,a]}))}))}function ie(){var t=te.shift();t&&(ee=t,t.task().then((function(){t.id===yr()&&(t.resolve(),ee=null,ie())})).catch((function(e){t.id===yr()&&(e&&Tt(0,1,e.name,e.message,e.stack),ee=null,ie())})))}var ue,ce=["input","textarea","radio","button","canvas","select"],se=[];function le(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=Mn(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 s=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,l=c?Math.max(Math.floor((o-c.y)/c.h*32767),0):0;if(null!==a&&null!==o){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}}(i);se.push({time:d(n),event:t,data:{target:i,x:a,y:o,eX:s,eY:l,button:n.button,reaction:de(i),context:fe(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText,w:c?c.w:0,h:c?c.h:0,tag:pe(i,"tagName").substring(0,10),class:pe(i,"className").substring(0,50),id:pe(i,"id").substring(0,25)}}),oe(ze.bind(this,t))}}function de(t){var e=pe(t,"tagName");return ce.indexOf(e)>=0?0:1}function pe(t,e){if(t.nodeType===Node.ELEMENT_NODE){var n=null==t?void 0:t[e];return"string"==typeof n?null==n?void 0:n.toLowerCase():""}return""}function fe(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 he(){se=[]}function ve(t,e){var n=0,r=null,a=null;function o(){for(var o=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=i,r)return;r=setTimeout((function(){n=performance.now(),t.apply(o,a),a=null,r=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},o}var ge=null,me=!1,we=ve(ye,500);function ye(){var t=document.documentElement;ue={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?(J(ge),ge=F(be,500,11)):(ze(11),me=!0)}function be(t){oe(ze.bind(this,t))}function _e(){ue=null,J(ge),we.cleanup()}var ke=[],Te=null;function Se(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?Mn(t):n;if(r){if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,l=u-s,p=xe(c,s),f=xe(c,l),h=t&&t.isTrusted?1:0,v={time:d(t),event:10,data:{target:r,x:a,y:o,top:p,bottom:f,trust:h}};if((null!==t||0!==a||0!==o)&&null!==a&&null!==o){var g=ke.length,m=g>1?ke[g-2]:null;m&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<50}(m,v)&&ke.pop(),ke.push(v),J(Te),Te=F(Ee,500,10)}}}var Oe=ve(Se,25);function xe(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 Ee(t){oe(ze.bind(this,t))}var Me,Ie,Ne,Pe=[];function Xe(t){Pe.push({time:d(t),event:39,data:{target:Mn(t)}}),oe(ze.bind(this,39))}function Ye(){Pe=[]}function je(t){Me={name:t.type,persisted:t.persisted?1:0},ze(26,d(t)),ra()}function Ce(){Me=null}function Ae(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ie={visible:e},ze(28,d(t))}}function De(){Ie=null}function He(){Ne=null}function We(t){Ne={focused:t},ze(50)}function ze(t,e){return void 0===e&&(e=null),rt(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,s,l,p,f,h,v,g,m,w,y,k,T,S,O,x,E,M,I,N,X,j,C,A,D,H,W,z,q,R;return at(this,(function(L){switch(n=e||d(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,o=Kt;a<o.length;a++)z=o[a],(i=In(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(i.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())),ln(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&P(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=se;u<c.length;u++)z=c[u],s=In(z.data.target,z.event,z.data.text),r=[z.time,z.event],l=s.hash?s.hash.join("."):"",r.push(s.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(b(z.data.text,"click",s.privacy)),r.push(_(z.data.link)),r.push(l),r.push(z.data.trust),r.push(z.data.isFullText),r.push(z.data.w),r.push(z.data.h),r.push(z.data.tag),r.push(z.data.class),r.push(z.data.id),ln(r),Ue(z.time,z.event,l,z.data.x,z.data.y,z.data.reaction,z.data.context);he();break;case 38:for(p=0,f=Kt;p<f.length;p++)z=f[p],r=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),ln(r));break;case 11:h=ue,r.push(h.width),r.push(h.height),P(t,h.width,h.height),_e(),ln(r);break;case 26:v=Me,r.push(v.name),r.push(v.persisted),Ce(),ln(r);break;case 27:for(g=0,m=Kt;g<m.length;g++)z=m[g],w=In(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(w.id),r.push(b(z.data.value,"input",w.privacy,!1,z.data.type)),r.push(z.data.trust),ln(r);break;case 21:(y=Qt)&&(k=In(y.start),T=In(y.end),r.push(k.id),r.push(y.startOffset),r.push(T.id),r.push(y.endOffset),ln(r));break;case 10:for(S=0,O=ke;S<O.length;S++)z=O[S],x=In(z.data.target,z.event),E=In(z.data.top,z.event),M=In(z.data.bottom,z.event),I=(null==E?void 0:E.hash)?E.hash.join("."):"",N=(null==M?void 0:M.hash)?M.hash.join("."):"",x.id>0&&((r=[z.time,z.event]).push(x.id),r.push(z.data.x),r.push(z.data.y),r.push(I),r.push(N),r.push(z.data.trust),ln(r),P(z.event,z.data.x,z.data.y,z.time));ke=[];break;case 42:for(X=0,j=Kt;X<j.length;X++)z=j[X],r=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(b(z.data.value,"change",D.privacy)),r.push(b(z.data.checksum,"checksum",D.privacy)),ln(r));break;case 39:for(C=0,A=Pe;C<A.length;C++)z=A[C],r=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(r.push(D.id),ln(r));Ye();break;case 22:for(H=0,W=Re;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),ln(r,!1);Le();break;case 28:q=Ie,r.push(q.visible),ln(r),Y(n,q.visible),De();break;case 50:R=Ne,r.push(R.focused),ln(r,!1),He()}return[2]}))}))}var qe=[],Re=[];function Le(){Re=[]}function Ue(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),qe.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),P(e,r,a,t)}var Fe=[],Je=!1,Ve=null;function Be(t){Je&&"function"==typeof t&&Fe.push(t)}function Ze(t){if(Je){var e=t?t.split(" "):[""],n=e.length>1?parseInt(e[1],10):null;n&&Ve.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(Ve.add(e),j(Ve))},n.onerror=function(){Dr(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var Ge,Ke,Qe,$e,tn,en,nn=Object.freeze({__proto__:null,event:Ze,register:Be,start:function(){Je=!0,Ve=new Set,u.modules&&u.modules.length>0&&u.modules.forEach((function(t){Ze(t)}))},stop:function(){Fe.reverse().forEach((function(t){try{t()}catch(t){}})),Fe=[],Je=!1}}),rn=0,an=0,on=null,un=0,cn=!1;function sn(){$e=!0,rn=0,an=0,cn=!1,un=0,Ge=[],Ke=[],Qe={},tn=null}function ln(t,e){if(void 0===e&&(e=!0),$e){var n=d(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(u.lean?!cn&&an+a.length>10485760&&(Tt(10,0),cn=!0):cn=!1,r){case 5:if(cn)break;rn+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(cn)break;an+=a.length,Ge.push(a);break;default:Ke.push(a)}R(25);var o=function(){var t=!1===u.lean&&rn>0?100:Xr.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-un>2*o&&(J(on),on=null),e&&null===on&&(25!==r&&G(),on=F(pn,o),un=n,Ln(an))}}function dn(){J(on),pn(!0),rn=0,an=0,cn=!1,un=0,Ge=[],Ke=[],Qe={},tn=null,$e=!1}function pn(t){return void 0===t&&(t=!1),rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,c,s;return at(this,(function(l){switch(l.label){case 0:return $e?(on=null,(e=!1===u.lean&&an>0&&(an<1048576||Xr.sequence>0))&&U(1,1),function(){if(Xr){var t=[];Re=[];for(var e=(Xr.start||0)+(Xr.duration||0),n=Math.max(e-2e3,0),r=0,a=qe;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&Re.push(o),t.push(o))}qe=t,ze(22)}}(),Gt(),n=!0===t,Xr?(r=JSON.stringify(Cr(n)),a="[".concat(Ke.join(),"]"),o=e?"[".concat(Ge.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),i=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,it(i)];case 2:s=l.sent(),l.label=3;case 3:return L(2,(c=s)?c.length:i.length),fn(i,c,Xr.sequence,n),Ke=[],e&&(Ge=[],an=0,rn=0,cn=!1),[2]}}))}))}function fn(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&vn(n)}catch(t){}if(!1===o){n in Qe?Qe[n].attempts++:Qe[n]={data:t,attempts:1};var i=new XMLHttpRequest;i.open("POST",a,!0),i.timeout=15e3,i.ontimeout=function(){Dr(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(i.onreadystatechange=function(){Hr(hn)(i,n)}),i.withCredentials=!0,e?(i.setRequestHeader("Accept","application/x-clarity-gzip"),i.send(e)):i.send(t)}}else if(u.upload){(0,u.upload)(t),vn(n)}}function hn(t,e){var n=Qe[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Un(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),tn={sequence:e,attempts:n.attempts,status:t.status},qn(2),fn(n.data,null,e)):(tn={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&qn(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":Un(6);break;case"UPGRADE":Wn("Auto");break;case"ACTION":u.action&&o.length>1&&u.action(o[1]);break;case"EXTRACT":o.length>1&&Nt(o[1]);break;case"SIGNAL":o.length>1&&Jt(o[1]);break;case"MODULE":o.length>1&&Ze(o[1]);break;case"SNAPSHOT":u.lean=!1,Nn()}}}(t.responseText),0===t.status&&(fn(n.data,null,e,!0),Un(3)),t.status>=200&&t.status<=208&&vn(e),delete Qe[e]))}function vn(t){1===t&&(xr(),Or())}function gn(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,l,p,f,h;return at(this,(function(v){switch(e=d(),n=[e,t],t){case 8:r=en,n.push(r.width),n.push(r.height),P(t,r.width,r.height),ln(n);break;case 43:if((a=kn).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,l=0,p=["tag","attributes","value"];l<p.length;l++)if(s[f=p[l]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[f]);break;case"attributes":for(h in s[f])void 0!==s[f][h]&&n.push(mn(h,s[f][h],c));break;case"value":n.push(b(s[f],s.tag,c))}ln(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 mn(t,e,n){return"".concat(t,"=").concat(b(e,0===t.indexOf("data-")?"data-":t,n))}function wn(){en=null}function yn(){var t,e,n,r,a,o,i,u,c,s,l,d,p,f,h,v;wn(),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,p=e?e.clientHeight:null,f=e?e.scrollHeight:null,h=e?e.offsetHeight:null,v=Math.max(s,l,d,p,f,h),null!==en&&c===en.width&&v===en.height||null===c||null===v||(en={width:c,height:v},gn(8))}function bn(t){!function(t){zr(t===document?window:t,"scroll",Oe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){zr(t,"click",le.bind(this,9,t),!0),zr(t,"contextmenu",le.bind(this,48,t),!0)}(t),function(t){zr(t,"submit",Xe,!0)}(t))}var _n=Object.freeze({__proto__:null,observe:bn,start:function(){qe=[],Le(),he(),me=!1,zr(window,"resize",we),ye(),zr(document,"visibilitychange",Ae),Ae(),zr(window,"focus",(function(){return We(1)})),zr(window,"blur",(function(){return We(0)})),ke=[],Se(),Ye(),zr(window,"pagehide",je)},stop:function(){qe=[],Le(),he(),_e(),De(),He(),J(Te),Oe.cleanup(),ke=[],Ye(),Ce()}}),kn=[],Tn=1,Sn=null;function On(){Pn(),yn(),Yn(document.documentElement),bn(document)}function xn(){return!1}function En(){}function Mn(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 In(t){var e={id:0,hash:null,privacy:u.conversions?1:5};return t&&(e.id=Sn.has(t)?Sn.get(t):Yn(t)),e}function Nn(){kn=[],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=Sn.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=Xn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}jn(o,u,{tag:r,attributes:n,value:a})}}(document),gn(43)}function Pn(){Sn=new WeakMap}function Xn(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 Yn(t){return null===t?null:Sn.has(t)?Sn.get(t):(Sn.set(t,Tn),Tn++)}function jn(t,e,n){if(t&&n&&n.tag){var r=Yn(t),a=e?Sn.get(e):null,o=t.previousSibling?Sn.get(t.previousSibling):null;kn.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 Cn,An=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:En,iframe:xn,metadata:In,offset:function(){return{x:0,y:0}},snapshot:Nn,start:On,stop:function(){Pn(),wn()},target:Mn,get values(){return kn}}),Dn=null;function Hn(){!u.lean&&u.upgrade&&u.upgrade("Config"),Dn=null}function Wn(t){$r()&&u.lean&&(u.lean=!1,Dn={key:t},Or(),xr(),u.upgrade&&u.upgrade(t),qn(3),u.lite&&On())}function zn(){Dn=null}function qn(t){var e=[d(),t];switch(t){case 4:var n=E;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),e.push(n.data.modules),ln(e,!1)),N();break;case 25:e.push(W.gap),ln(e);break;case 35:e.push(Cn.check),ln(e,!1);break;case 3:e.push(Dn.key),ln(e);break;case 2:e.push(tn.sequence),e.push(tn.attempts),e.push(tn.status),ln(e,!1);break;case 24:D.key&&e.push(D.key),e.push(D.value),ln(e);break;case 34:var r=Object.keys(ct);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(ct[i])}ft(),ln(e,!1)}break;case 0:var u=Object.keys(q);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var l=s[c],p=parseInt(l,10);e.push(p),e.push(Math.round(q[l]))}q={},ln(e,!1)}break;case 1:var f=Object.keys(Bn);if(f.length>0){for(var h=0,v=f;h<v.length;h++){var g=v[h];p=parseInt(g,10);e.push(p),e.push(Bn[g])}tr(),ln(e,!1)}break;case 36:var m=Object.keys($);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],$[b]))}et(),ln(e,!1)}break;case 40:Ot.forEach((function(t){e.push(t);var n=[];for(var r in St[t]){var a=parseInt(r,10);n.push(a),n.push(St[t][r])}e.push(n)})),Yt(),ln(e,!1);break;case 47:e.push(er.source),e.push(er.ad_Storage),e.push(er.analytics_Storage),ln(e,!1)}}function Rn(){Cn={check:0}}function Ln(t){if(0===Cn.check){var e=Cn.check;e=Xr.sequence>=128?1:e,e=Xr.pageNum>=128?7:e,e=d()>72e5?2:e,(e=t>10485760?2:e)!==Cn.check&&Un(e)}}function Un(t){Cn.check=t,5!==t&&(Sr(),ra())}function Fn(){0!==Cn.check&&qn(35)}function Jn(){Cn=null}var Vn=null,Bn=null,Zn=!1;function Gn(){Vn={},Bn={},Zn=!1}function Kn(){Vn={},Bn={},Zn=!1}function Qn(t,e){if(e&&(e="".concat(e),t in Vn||(Vn[t]=[]),Vn[t].indexOf(e)<0)){if(Vn[t].length>128)return void(Zn||(Zn=!0,Un(5)));Vn[t].push(e),t in Bn||(Bn[t]=[]),Bn[t].push(e)}}function $n(){qn(1)}function tr(){Bn={},Zn=!1}var er=null,nr=!0;function rr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;nr=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],or)}function ar(){nr=!0}function or(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState){var n=e.getConsentState("analytics_storage");_r(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}}function ir(t){cr(t.analytics_Storage?1:0),er=t}function ur(){cr(2)}function cr(t){Qn(36,t.toString())}function sr(t){er=t,qn(47)}function lr(){var t;if(nr&&(qn(47),nr=!1,!u.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&or()}}var dr=null,pr=[],fr=0,hr=null,vr={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function gr(){var t,e,n,r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",o=(new Date).getTimezoneOffset().toString(),i=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";fr=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:Mr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Lt("_clsk",!u.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Ir(n[1])<18e5&&(t.session=n[0],t.count=Ir(n[2])+1,t.upgrade=Ir(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Nr(),d=u.projectId||f(location.host);dr={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},u.lean=u.track&&null!==s.upgrade?0===s.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&s.upload&&s.upload.length>"https://".length?s.upload:u.upload,Qn(0,r),Qn(3,c),Qn(1,_(location.href,!!fr)),Qn(2,document.referrer),Qn(15,function(){var t=Mr();if(u.track&&Wt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),Qn(16,document.documentElement.lang),Qn(17,document.dir),Qn(26,"".concat(window.devicePixelRatio)),Qn(28,l.dob.toString()),Qn(29,l.version.toString()),Qn(33,i),Qn(34,a),Qn(35,o),U(0,s.ts),U(1,0),U(35,fr);var p,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&U(39,1),navigator&&(Qn(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(p=navigator.userAgentData)&&p.getHighEntropyValues?p.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;Qn(22,t.platform),Qn(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){Qn(24,t.name+"~"+t.version)})),Qn(25,t.model),U(27,t.mobile?1:0)})):Qn(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth)));for(var v=0,g=u.cookies;v<g.length;v++){var m=g[v],w=Lt(m);w&&st(m,w)}null===hr&&(hr={source:l.consent?6:0,ad_Storage:u.track?"granted":"denied",analytics_Storage:u.track?"granted":"denied"}),ir(kr(hr)),Er(l)}function mr(){dr=null,pr.forEach((function(t){t.called=!1}))}function wr(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=u.lean?0:1,o=!1;dr&&(a||!1===e)&&(t(dr,!u.lean,r?hr:void 0),o=!0),!n&&o||pr.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function yr(){return dr?[dr.userId,dr.sessionId,dr.pageNum].join("."):""}function br(t){void 0===t&&(t=!0),t?(_r({source:4,ad_Storage:"granted",analytics_Storage:"granted"}),ur()):_r({source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function _r(t,e){var n;void 0===t&&(t=vr),void 0===e&&(e=5);var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:Tr(t.ad_Storage,null==hr?void 0:hr.ad_Storage),analytics_Storage:Tr(t.analytics_Storage,null==hr?void 0:hr.analytics_Storage)};if(hr&&r.ad_Storage===hr.ad_Storage&&r.analytics_Storage===hr.analytics_Storage)return hr.source=r.source,sr(kr(hr)),void ur();hr=r,Or(!0);var a=kr(hr);if(!a.analytics_Storage&&u.track)return u.track=!1,Sr(!0),ra(),void window.setTimeout(na,250);$r()&&a.analytics_Storage&&(u.track=!0,Er(Nr(),1),xr()),sr(a),ur()}function kr(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function Tr(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function Sr(t){void 0===t&&(t=!1),Ut("_clsk","",0),t&&Ut("_clck","",0)}function Or(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(pr.length>0)for(var n=0;n<pr.length;n++){var r=pr[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(dr,!u.lean,r.consentInfo?hr:void 0),r.called=!0,r.recall||(pr.splice(n,1),n--))}}(u.lean?0:1,t)}function xr(){if(dr&&u.track){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;Ut("_clsk",[dr.sessionId,t,dr.pageNum,n,e].join(Rt),1)}}function Er(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===u.dob?0:u.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Ut("_clck",[dr.userId,2,n.toString(36),e,r].join(Rt),365)}function Mr(){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 Ir(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Nr(){var t={id:Mr(),version:0,expiry:null,consent:0,dob:0},e=Lt("_clck",!u.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Ir(n[1])),n.length>2&&(t.expiry=Ir(n[2],36)),n.length>3&&1===Ir(n[3])&&(t.consent=1),n.length>4&&Ir(n[1])>1&&(t.dob=Ir(n[4])),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}var Pr,Xr=null;function Yr(){var t=dr;Xr={version:p,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 jr(){Xr=null}function Cr(t){return Xr.start=Xr.start+Xr.duration,Xr.duration=d()-Xr.start,Xr.sequence++,Xr.upload=t&&"sendBeacon"in navigator?1:0,Xr.end=t?1:0,Xr.applicationPlatform=0,Xr.url=_(location.href,!1,!0),[Xr.version,Xr.sequence,Xr.start,Xr.duration,Xr.projectId,Xr.userId,Xr.sessionId,Xr.pageNum,Xr.upload,Xr.end,Xr.applicationPlatform,Xr.url]}function Ar(){Pr=[]}function Dr(t){if(Pr&&-1===Pr.indexOf(t.message)){var e=u.report;if(e&&e.length>0&&Xr){var n={v:Xr.version,p:Xr.projectId,u:Xr.userId,s:Xr.sessionId,n:Xr.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)),Pr.push(t.message)}}return t}function Hr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Dr(t)}var n=performance.now()-e;L(4,n),n>30&&(R(7),U(6,n),t.dn&&Tt(9,0,"".concat(t.dn,"-").concat(n)))}}var Wr=new Map;function zr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=Hr(n);try{t[c("addEventListener")](e,n,{capture:r,passive:a}),function(t){return Wr.has(t)}(t)||Wr.set(t,[]),Wr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function qr(){Wr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[c("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Wr.delete(e)}(t,e)})),Wr=new Map}var Rr=null,Lr=null,Ur=null,Fr=0;function Jr(){return!(Fr++>20)||(Tt(4,0),!1)}function Vr(){Fr=0,Ur!==Zr()&&(ra(),window.setTimeout(Br,250))}function Br(){na(),U(29,1)}function Zr(){return location.href?location.href.replace(location.hash,""):location.href}var Gr=!1;function Kr(){Gr=!0,s=l(),ae(),qr(),Ar(),Ur=Zr(),Fr=0,zr(window,"popstate",Vr),null===Rr&&(Rr=history.pushState,history.pushState=function(){Rr.apply(this,arguments),$r()&&Jr()&&Vr()}),null===Lr&&(Lr=history.replaceState,history.replaceState=function(){Lr.apply(this,arguments),$r()&&Jr()&&Vr()})}function Qr(){Ur=null,Fr=0,Ar(),qr(),ae(),s=0,Gr=!1}function $r(){return Gr}function ta(){na(),H("clarity","restart")}var ea=[Object.freeze({__proto__:null,start:function(){!function(){U(26,navigator.webdriver?1:0);try{U(31,window.top==window.self||window.top==window?1:2)}catch(t){U(31,0)}}(),zr(window,"error",yt),wt={},kt={}},stop:function(){kt={}}}),An,_n,$t,nn];function na(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Gr&&"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||Gr)return!1;for(var e in t)e in u&&(u[e]=t[e])}(t),Kr(),Bt(),ea.forEach((function(t){return Hr(t.start)()})),null===t&&ua())}function ra(){$r()&&(ea.slice().reverse().forEach((function(t){return Hr(t.stop)()})),Zt(),Qr(),void 0!==oa&&(oa[ia]=function(){(oa[ia].q=oa[ia].q||[]).push(arguments),"start"===arguments[0]&&oa[ia].q.unshift(oa[ia].q.pop())&&ua()}))}var aa=Object.freeze({__proto__:null,consent:br,consentv2:_r,dlog:Qn,event:H,hashText:En,identify:lt,maxMetric:U,measure:Hr,metadata:wr,pause:function(){$r()&&(H("clarity","pause"),null===ne&&(ne=new Promise((function(t){re=t}))))},queue:ln,register:Be,resume:function(){$r()&&(ne&&(re(),ne=null,null===ee&&ie()),H("clarity","resume"))},schedule:oe,set:st,signal:function(t){Ft=t},start:na,stop:ra,time:d,upgrade:Wn,version:p}),oa=window,ia="clarity";function ua(){if(void 0!==oa){if(oa[ia]&&oa[ia].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=oa[ia]&&oa[ia].q||[];for(oa[ia]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return aa[t].apply(aa,e)},oa[ia].v=p;t.length>0;)oa[ia].apply(oa,t.shift())}}ua()}();
1
+ !function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return dn},get start(){return ln},get stop(){return pn},get track(){return en}}),e=Object.freeze({__proto__:null,get data(){return zn},get start(){return qn},get stop(){return Rn},get upgrade(){return Ln}}),n=Object.freeze({__proto__:null,get check(){return Vn},get compute(){return Bn},get data(){return Hn},get start(){return Fn},get stop(){return Zn},get trigger(){return Jn}}),r=Object.freeze({__proto__:null,get compute(){return nr},get data(){return Gn},get log(){return er},get reset(){return rr},get start(){return $n},get stop(){return tr},get updates(){return Kn}}),a=Object.freeze({__proto__:null,get compute(){return fr},get config(){return sr},get consent(){return lr},get data(){return ar},get start(){return ir},get stop(){return ur},get trackConsentv2(){return pr}}),o=Object.freeze({__proto__:null,get callback(){return Mr},get callbacks(){return vr},get clear(){return Er},get consent(){return Tr},get consentv2(){return Sr},get data(){return hr},get electron(){return gr},get id(){return kr},get metadata(){return _r},get save(){return Ir},get shortid(){return Pr},get start(){return yr},get stop(){return br}}),i=Object.freeze({__proto__:null,get data(){return Cr},get envelope(){return Hr},get start(){return Ar},get stop(){return Dr}}),u={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,modules:[]};function c(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var s=0;function l(){return performance.now()+performance.timeOrigin}function d(t){void 0===t&&(t=null);var e=0===s?l():s,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var p="0.8.50-beta";function f(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2){if(r=(r<<5)+r^t.charCodeAt(o),o+1<t.length)a=(a<<5)+a^t.charCodeAt(o+1)}return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}var h=/\S/gi,v=255,g=!0,m=null,w=null,y=null;function b(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,o=!1,i=null;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,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=g&&null!==y?s.match(y)?s:S(s,"▪","▫"):T(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return O(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?k(t):T(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return O(t);case"placeholder":return T(t)}break;case 4:switch(e){case"*T":case"data-":return r?k(t):T(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return S(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function _(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=u.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),i=o[0],c=o[1];r=i+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,v)),r}function k(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function T(t){return t.replace(h,"•")}function S(t,e,n){return x(),t?t.replace(w,e).replace(m,n):t}function O(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(g&&null===m)try{m=new RegExp("\\p{N}","gu"),w=new RegExp("\\p{L}","gu"),y=new RegExp("\\p{Sc}","gu")}catch(t){g=!1}}var E=null,M=null,I=!1;function N(){I&&(E={time:d(),event:4,data:{visible:M.visible,docWidth:M.docWidth,docHeight:M.docHeight,screenWidth:M.screenWidth,screenHeight:M.screenHeight,scrollX:M.scrollX,scrollY:M.scrollY,pointerX:M.pointerX,pointerY:M.pointerY,activityTime:M.activityTime,scrollTime:M.scrollTime,pointerTime:M.pointerTime,moveX:M.moveX,moveY:M.moveY,moveTime:M.moveTime,downX:M.downX,downY:M.downY,downTime:M.downTime,upX:M.upX,upY:M.upY,upTime:M.upTime,pointerPrevX:M.pointerPrevX,pointerPrevY:M.pointerPrevY,pointerPrevTime:M.pointerPrevTime,modules:M.modules}}),M=M||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0,modules:null}}function P(t,e,n,r){switch(t){case 8:M.docWidth=e,M.docHeight=n;break;case 11:M.screenWidth=e,M.screenHeight=n;break;case 10:M.scrollX=e,M.scrollY=n,M.scrollTime=r;break;case 12:M.moveX=e,M.moveY=n,M.moveTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 13:M.downX=e,M.downY=n,M.downTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;case 14:M.upX=e,M.upY=n,M.upTime=r,M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r;break;default:M.pointerPrevX=M.pointerX,M.pointerPrevY=M.pointerY,M.pointerPrevTime=M.pointerTime,M.pointerX=e,M.pointerY=n,M.pointerTime=r}I=!0}function X(t){M.activityTime=t}function Y(t,e){M.visible=e,M.visible||X(t),I=!0}function j(t){M.modules=Array.from(t),I=!0}function C(){I&&Un(4)}var A=Object.freeze({__proto__:null,activity:X,compute:C,dynamic:j,reset:N,start:function(){I=!1,N()},get state(){return E},stop:function(){N()},track:P,visibility:Y}),D=null;function H(t,e){na()&&t&&"string"==typeof t&&t.length<255&&(D=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Un(24))}var W,z=null,q=null;function L(t){t in z||(z[t]=0),t in q||(q[t]=0),z[t]++,q[t]++}function R(t,e){null!==e&&(t in z||(z[t]=0),t in q||(q[t]=0),z[t]+=e,q[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in z||(z[t]=0),(e>z[t]||0===z[t])&&(q[t]=e,z[t]=e))}function F(t,e,n){return window.setTimeout(qr(t),e,n)}function V(t){return window.clearTimeout(t)}var J=0,B=0,Z=null;function G(){Z&&V(Z),Z=F(K,B),J=d()}function K(){var t=d();W={gap:t-J},Un(25),W.gap<3e5?Z=F(K,B):$r&&(H("clarity","suspend"),ia(),["mousemove","touchstart"].forEach((function(t){return Rr(document,t,ra)})),["resize","scroll","pageshow"].forEach((function(t){return Rr(window,t,ra)})))}var Q=Object.freeze({__proto__:null,get data(){return W},reset:G,start:function(){B=6e4,J=0},stop:function(){V(Z),J=0,B=0}}),$=null;function tt(){Un(36)}function et(){$={}}var nt=Object.freeze({__proto__:null,compute:tt,get data(){return $},reset:et,start:function(){$={}},stop:function(){$={}},track:function(t,e){if(t in $){var n=$[t],r=n[n.length-1];e-r[0]>100?$[t].push([e,0]):r[1]=e-r[0]}else $[t]=[[e,0]]}});function rt(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 at(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 ot="CompressionStream"in window;function it(t){return rt(this,void 0,void 0,(function(){var e,n;return at(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),ot?(e=new ReadableStream({start:function(e){return rt(this,void 0,void 0,(function(){return at(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ut(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 ut(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o;return at(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 ct=null;function st(t,e){dt(t,"string"==typeof e?[e]:e)}function lt(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),rt(this,void 0,void 0,(function(){var a,o;return at(this,(function(i){switch(i.label){case 0:return o={},[4,ht(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(S(u.substring(2),"*","*")):S(u,"*","*")),dt("userId",[(a=o).userId]),dt("userHint",[a.userHint]),dt("userType",[vt(t)]),e&&(dt("sessionId",[e]),a.sessionId=e),n&&(dt("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function dt(t,e){if(na()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in ct?ct[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);ct[t]=n}}function pt(){Un(34)}function ft(){ct={}}function ht(t){return rt(this,void 0,void 0,(function(){var e;return at(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 vt(t){return t&&t.indexOf("@")>0?"email":"string"}var gt=Object.freeze({__proto__:null,compute:pt,get data(){return ct},identify:lt,reset:ft,set:st,start:function(){ft()},stop:function(){ft()}});var mt,wt={};function yt(t){var e=t.error||t;return e.message in wt||(wt[e.message]=0),wt[e.message]++>=5||e&&e.message&&(mt={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},bt(31)),!0}function bt(t){return rt(this,void 0,void 0,(function(){var e;return at(this,(function(n){switch(e=[d(),t],t){case 31:e.push(mt.message),e.push(mt.line),e.push(mt.column),e.push(mt.stack),e.push(_(mt.source)),dn(e);break;case 33:_t&&(e.push(_t.code),e.push(_t.name),e.push(_t.message),e.push(_t.stack),e.push(_t.severity),dn(e,!1))}return[2]}))}))}var _t,kt={};function Tt(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 kt&&kt[t].indexOf(o)>=0||(_t={code:t,name:n,message:r,stack:a,severity:e},t in kt?kt[t].push(o):kt[t]=[o],bt(33))}var St={},Ot=new Set,xt={},Et={},Mt={},It={};function Nt(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 xt[r]={},Et[r]={},Mt[r]={},It[r]=a,o){var u=parseInt(i),c=o[i],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);xt[r][u]=Ct(l);break;case 2:Et[r][u]=c;break;case 4:var d=c.slice(1);Mt[r][u]=d}}}catch(t){Tt(8,1,t?t.name:null)}}function Pt(t){return JSON.parse(JSON.stringify(t))}function Xt(){try{for(var t in xt){var e=parseInt(t);if(""==It[e]||document.querySelector(It[e])){var n=xt[e];for(var r in n){var a=parseInt(r),o=(m=At(Pt(n[a])))?JSON.stringify(m).slice(0,1e4):m;o&&jt(e,a,o)}var i=Et[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var p=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");jt(e,s,(c?f(p).trim():p).slice(0,1e4))}}var h=Mt[e];for(var v in h){var g=parseInt(v);jt(e,g,(void h[g]).trim().slice(0,1e4))}}}Ot.size>0&&Un(40)}catch(t){Tt(5,1,t?t.name:null)}var m}function Yt(){Ot.clear()}function jt(t,e,n){var r,a=!1;t in St||(St[t]={},a=!0),r=Mt[t],0==Object.keys(r).length||e in St[t]&&St[t][e]==n||(a=!0),St[t][e]=n,a&&Ot.add(t)}function Ct(t){for(var e=[],n=t.split(".");n.length>0;){var r=n.shift(),a=r.indexOf("["),o=r.indexOf("{"),i=r.indexOf("}");e.push({name:a>0?r.slice(0,a):o>0?r.slice(0,o):r,type:a>0?1:o>0?2:3,condition:o>0?r.slice(o+1,i):null})}return e}function At(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&&Dt(a,r.condition))n=At(t,a);else if(Array.isArray(a)){for(var o=[],i=0,u=a;i<u.length;i++){var c=u[i];if(Dt(c,r.condition)){var s=At(t,c);s&&o.push(s)}}n=o}return n}return null}function Dt(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Ht=Object.freeze({__proto__:null,clone:Pt,compute:Xt,data:St,keys:Ot,reset:Yt,start:function(){Yt()},stop:function(){Yt()},trigger:Nt,update:jt});function Wt(t,e){try{return!!t[e]}catch(t){return!1}}function zt(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var qt=null,Lt="^";function Rt(t,e){var n;if(void 0===e&&(e=!1),Wt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=zt(o[1]),u=i[0],c=i[1];u;)u=(n=zt(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Ut(t,e,n){if((u.track||""==e)&&(navigator&&navigator.cookieEnabled||Wt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",i="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===qt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(qt=".".concat(c[s]).concat(qt||""),s<c.length-1&&(document.cookie="".concat(i).concat(";").concat("domain=").concat(qt),Rt(t)===e))return;qt=""}}catch(t){qt=""}document.cookie=qt?"".concat(i).concat(";").concat("domain=").concat(qt):i}}var Ft=null;function Vt(t){try{if(!Ft)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Ft(t)}))}catch(t){}}var Jt=[A,r,gt,n,nt,Object.freeze({__proto__:null,COOKIE_SEP:Lt,getCookie:Rt,setCookie:Ut,start:function(){qt=null},stop:function(){qt=null}}),a,o,i,t,Q,e,Ht];function Bt(){z={},q={},L(5),Jt.forEach((function(t){return qr(t.start)()}))}function Zt(){Jt.slice().reverse().forEach((function(t){return qr(t.stop)()})),z={},q={}}function Gt(){pt(),C(),nr(),Un(0),tt(),Bn(),Xt(),fr()}var Kt=[],Qt=null;var $t=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:Qt,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Kt,stop:function(){}}),te=[],ee=null,ne=null,re=null;function ae(){te=[],ee=null,ne=null}function oe(t,e){return void 0===e&&(e=0),rt(this,void 0,void 0,(function(){var n,r,a;return at(this,(function(o){for(n=0,r=te;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){te[1===e?"unshift":"push"]({task:t,resolve:n,id:kr()})})),null===ee&&null===ne&&ie(),[2,a]}))}))}function ie(){var t=te.shift();t&&(ee=t,t.task().then((function(){t.id===kr()&&(t.resolve(),ee=null,ie())})).catch((function(e){t.id===kr()&&(e&&Tt(0,1,e.name,e.message,e.stack),ee=null,ie())})))}var ue,ce=["input","textarea","radio","button","canvas","select"],se=[];function le(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=Pn(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 s=c?Math.max(Math.floor((a-c.x)/c.w*32767),0):0,l=c?Math.max(Math.floor((o-c.y)/c.h*32767),0):0;if(null!==a&&null!==o){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}}(i);se.push({time:d(n),event:t,data:{target:i,x:a,y:o,eX:s,eY:l,button:n.button,reaction:de(i),context:fe(u),text:p.text,link:u?u.href:null,hash:null,trust:n.isTrusted?1:0,isFullText:p.isFullText,w:c?c.w:0,h:c?c.h:0,tag:pe(i,"tagName").substring(0,10),class:pe(i,"className").substring(0,50),id:pe(i,"id").substring(0,25),source:n.isTrusted?0:he()}}),oe(qe.bind(this,t))}}function de(t){var e=pe(t,"tagName");return ce.indexOf(e)>=0?0:1}function pe(t,e){if(t.nodeType===Node.ELEMENT_NODE){var n=null==t?void 0:t[e];return"string"==typeof n?null==n?void 0:n.toLowerCase():""}return""}function fe(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 he(){try{for(var t=(new Error).stack||"",e=location.origin,n=4,r=0,a=t.split("\n");r<a.length;r++){var o=a[r];o.indexOf("://")>=0?n=o.indexOf("extension")<0&&o.indexOf(e)>=0?1:2:(o.indexOf("eval")>=0||o.indexOf("Function")>=0||o.indexOf("<a")>=0||/VM\d/.test(o))&&(n=3)}return n}catch(t){return 4}}function ve(){se=[]}function ge(t,e){var n=0,r=null,a=null;function o(){for(var o=this,i=[],u=0;u<arguments.length;u++)i[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(a=i,r)return;r=setTimeout((function(){n=performance.now(),t.apply(o,a),a=null,r=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){r&&(clearTimeout(r),r=null,a=null)},o}var me=null,we=!1,ye=ge(be,500);function be(){var t=document.documentElement;ue={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},we?(V(me),me=F(_e,500,11)):(qe(11),we=!0)}function _e(t){oe(qe.bind(this,t))}function ke(){ue=null,V(me),ye.cleanup()}var Te=[],Se=null;function Oe(t){void 0===t&&(t=null);var e=window,n=document.documentElement,r=t?Pn(t):n;if(r){if(r&&r.nodeType===Node.DOCUMENT_NODE){r=n=r.documentElement}var a=r===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(r.scrollLeft),o=r===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(r.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,l=u-s,p=Ee(c,s),f=Ee(c,l),h=t&&t.isTrusted?1:0,v={time:d(t),event:10,data:{target:r,x:a,y:o,top:p,bottom:f,trust:h}};if((null!==t||0!==a||0!==o)&&null!==a&&null!==o){var g=Te.length,m=g>1?Te[g-2]:null;m&&function(t,e){var n=t.data.x-e.data.x,r=t.data.y-e.data.y;return n*n+r*r<400&&e.time-t.time<50}(m,v)&&Te.pop(),Te.push(v),V(Se),Se=F(Me,500,10)}}}var xe=ge(Oe,25);function Ee(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 Me(t){oe(qe.bind(this,t))}var Ie,Ne,Pe,Xe=[];function Ye(t){Xe.push({time:d(t),event:39,data:{target:Pn(t)}}),oe(qe.bind(this,39))}function je(){Xe=[]}function Ce(t){Ie={name:t.type,persisted:t.persisted?1:0},qe(26,d(t)),ia()}function Ae(){Ie=null}function De(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ne={visible:e},qe(28,d(t))}}function He(){Ne=null}function We(){Pe=null}function ze(t){Pe={focused:t},qe(50)}function qe(t,e){return void 0===e&&(e=null),rt(this,void 0,void 0,(function(){var n,r,a,o,i,u,c,s,l,p,f,h,v,g,m,w,y,k,T,S,O,x,E,M,I,N,X,j,C,A,D,H,W,z,q,L;return at(this,(function(R){switch(n=e||d(),r=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(a=0,o=Kt;a<o.length;a++)z=o[a],(i=Xn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(i.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())),dn(r),(void 0===z.data.isPrimary||z.data.isPrimary)&&P(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=se;u<c.length;u++)z=c[u],s=Xn(z.data.target,z.event,z.data.text),r=[z.time,z.event],l=s.hash?s.hash.join("."):"",r.push(s.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(b(z.data.text,"click",s.privacy)),r.push(_(z.data.link)),r.push(l),r.push(z.data.trust),r.push(z.data.isFullText),r.push(z.data.w),r.push(z.data.h),r.push(z.data.tag),r.push(z.data.class),r.push(z.data.id),r.push(z.data.source),dn(r),Fe(z.time,z.event,l,z.data.x,z.data.y,z.data.reaction,z.data.context);ve();break;case 38:for(p=0,f=Kt;p<f.length;p++)z=f[p],r=[z.time,z.event],(D=Xn(z.data.target,z.event)).id>0&&(r.push(D.id),r.push(z.data.action),dn(r));break;case 11:h=ue,r.push(h.width),r.push(h.height),P(t,h.width,h.height),ke(),dn(r);break;case 26:v=Ie,r.push(v.name),r.push(v.persisted),Ae(),dn(r);break;case 27:for(g=0,m=Kt;g<m.length;g++)z=m[g],w=Xn(z.data.target,z.event,z.data.value),(r=[z.time,z.event]).push(w.id),r.push(b(z.data.value,"input",w.privacy,!1,z.data.type)),r.push(z.data.trust),dn(r);break;case 21:(y=Qt)&&(k=Xn(y.start),T=Xn(y.end),r.push(k.id),r.push(y.startOffset),r.push(T.id),r.push(y.endOffset),dn(r));break;case 10:for(S=0,O=Te;S<O.length;S++)z=O[S],x=Xn(z.data.target,z.event),E=Xn(z.data.top,z.event),M=Xn(z.data.bottom,z.event),I=(null==E?void 0:E.hash)?E.hash.join("."):"",N=(null==M?void 0:M.hash)?M.hash.join("."):"",x.id>0&&((r=[z.time,z.event]).push(x.id),r.push(z.data.x),r.push(z.data.y),r.push(I),r.push(N),r.push(z.data.trust),dn(r),P(z.event,z.data.x,z.data.y,z.time));Te=[];break;case 42:for(X=0,j=Kt;X<j.length;X++)z=j[X],r=[z.time,z.event],(D=Xn(z.data.target,z.event)).id>0&&((r=[z.time,z.event]).push(D.id),r.push(z.data.type),r.push(b(z.data.value,"change",D.privacy)),r.push(b(z.data.checksum,"checksum",D.privacy)),dn(r));break;case 39:for(C=0,A=Xe;C<A.length;C++)z=A[C],r=[z.time,z.event],(D=Xn(z.data.target,z.event)).id>0&&(r.push(D.id),dn(r));je();break;case 22:for(H=0,W=Re;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),dn(r,!1);Ue();break;case 28:q=Ne,r.push(q.visible),dn(r),Y(n,q.visible),He();break;case 50:L=Pe,r.push(L.focused),dn(r,!1),We()}return[2]}))}))}var Le=[],Re=[];function Ue(){Re=[]}function Fe(t,e,n,r,a,o,i){void 0===o&&(o=1),void 0===i&&(i=0),Le.push({time:t,event:22,data:{type:e,hash:n,x:r,y:a,reaction:o,context:i}}),P(e,r,a,t)}var Ve=[],Je=!1,Be=null;function Ze(t){Je&&"function"==typeof t&&Ve.push(t)}function Ge(t){if(Je){var e=t?t.split(" "):[""],n=e.length>1?parseInt(e[1],10):null;n&&Be.has(n)||function(t,e){try{var n=document.createElement("script");n.src=t,n.async=!0,n.onload=function(){e&&(Be.add(e),j(Be))},n.onerror=function(){zr(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var Ke,Qe,$e,tn,en,nn,rn=Object.freeze({__proto__:null,event:Ge,register:Ze,start:function(){Je=!0,Be=new Set,u.modules&&u.modules.length>0&&u.modules.forEach((function(t){Ge(t)}))},stop:function(){Ve.reverse().forEach((function(t){try{t()}catch(t){}})),Ve=[],Je=!1}}),an=0,on=0,un=null,cn=0,sn=!1;function ln(){tn=!0,an=0,on=0,sn=!1,cn=0,Ke=[],Qe=[],$e={},en=null}function dn(t,e){if(void 0===e&&(e=!0),tn){var n=d(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(u.lean?!sn&&on+a.length>10485760&&(Tt(10,0),sn=!0):sn=!1,r){case 5:if(sn)break;an+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(sn)break;on+=a.length,Ke.push(a);break;default:Qe.push(a)}L(25);var o=function(){var t=!1===u.lean&&an>0?100:Cr.sequence*u.delay;return"string"==typeof u.upload?Math.max(Math.min(t,3e4),100):u.delay}();n-cn>2*o&&(V(un),un=null),e&&null===un&&(25!==r&&G(),un=F(fn,o),cn=n,Vn(on))}}function pn(){V(un),fn(!0),an=0,on=0,sn=!1,cn=0,Ke=[],Qe=[],$e={},en=null,tn=!1}function fn(t){return void 0===t&&(t=!1),rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,c,s;return at(this,(function(l){switch(l.label){case 0:return tn?(un=null,(e=!1===u.lean&&on>0&&(on<1048576||Cr.sequence>0))&&U(1,1),function(){if(Cr){var t=[];Re=[];for(var e=(Cr.start||0)+(Cr.duration||0),n=Math.max(e-2e3,0),r=0,a=Le;r<a.length;r++){var o=a[r];o.time>=n&&(o.time<=e&&Re.push(o),t.push(o))}Le=t,qe(22)}}(),Gt(),n=!0===t,Cr?(r=JSON.stringify(Hr(n)),a="[".concat(Qe.join(),"]"),o=e?"[".concat(Ke.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),i=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,it(i)];case 2:s=l.sent(),l.label=3;case 3:return R(2,(c=s)?c.length:i.length),hn(i,c,Cr.sequence,n),Qe=[],e&&(Ke=[],on=0,an=0,sn=!1),[2]}}))}))}function hn(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof u.upload){var a=u.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&gn(n)}catch(t){}if(!1===o){n in $e?$e[n].attempts++:$e[n]={data:t,attempts:1};var i=new XMLHttpRequest;i.open("POST",a,!0),i.timeout=15e3,i.ontimeout=function(){zr(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(i.onreadystatechange=function(){qr(vn)(i,n)}),i.withCredentials=!0,e?(i.setRequestHeader("Accept","application/x-clarity-gzip"),i.send(e)):i.send(t)}}else if(u.upload){(0,u.upload)(t),gn(n)}}function vn(t,e){var n=$e[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?Jn(6):(0===t.status&&(u.upload=u.fallback?u.fallback:u.upload),en={sequence:e,attempts:n.attempts,status:t.status},Un(2),hn(n.data,null,e)):(en={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Un(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":Jn(6);break;case"UPGRADE":Ln("Auto");break;case"ACTION":u.action&&o.length>1&&u.action(o[1]);break;case"EXTRACT":o.length>1&&Nt(o[1]);break;case"SIGNAL":o.length>1&&Vt(o[1]);break;case"MODULE":o.length>1&&Ge(o[1]);break;case"SNAPSHOT":u.lean=!1,Yn()}}}(t.responseText),0===t.status&&(hn(n.data,null,e,!0),Jn(3)),t.status>=200&&t.status<=208&&gn(e),delete $e[e]))}function gn(t){1===t&&(Ir(),Mr())}function mn(t){return rt(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,l,p,f,h;return at(this,(function(v){switch(e=d(),n=[e,t],t){case 8:r=nn,n.push(r.width),n.push(r.height),P(t,r.width,r.height),dn(n);break;case 43:if((a=On).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,l=0,p=["tag","attributes","value"];l<p.length;l++)if(s[f=p[l]])switch(f){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[f]);break;case"attributes":for(h in s[f])void 0!==s[f][h]&&n.push(wn(h,s[f][h],c));break;case"value":n.push(b(s[f],s.tag,c))}dn(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}function wn(t,e,n){return"".concat(t,"=").concat(b(e,0===t.indexOf("data-")?"data-":t,n))}function yn(){nn=null}function bn(){var t,e,n,r,a,o,i,u,c,s,l,d,p,f,h,v;yn(),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,p=e?e.clientHeight:null,f=e?e.scrollHeight:null,h=e?e.offsetHeight:null,v=Math.max(s,l,d,p,f,h),null!==nn&&c===nn.width&&v===nn.height||null===c||null===v||(nn={width:c,height:v},mn(8))}var _n=!1;function kn(t){t&&t.persisted&&(oa(),Tt(11,0))}function Tn(t){!function(t){Rr(t===document?window:t,"scroll",xe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){Rr(t,"click",le.bind(this,9,t),!0),Rr(t,"contextmenu",le.bind(this,48,t),!0)}(t),function(t){Rr(t,"submit",Ye,!0)}(t))}var Sn=Object.freeze({__proto__:null,observe:Tn,start:function(){Le=[],Ue(),ve(),we=!1,Rr(window,"resize",ye),be(),Rr(document,"visibilitychange",De),De(),Rr(window,"focus",(function(){return ze(1)})),Rr(window,"blur",(function(){return ze(0)})),function(){if(!_n)try{window[c("addEventListener")]("pageshow",qr(kn),{capture:!1,passive:!0}),_n=!0}catch(t){}}(),Te=[],Oe(),je(),Rr(window,"pagehide",Ce)},stop:function(){Le=[],Ue(),ve(),ke(),He(),We(),V(Se),xe.cleanup(),Te=[],je(),Ae()}}),On=[],xn=1,En=null;function Mn(){jn(),bn(),An(document.documentElement),Tn(document)}function In(){return!1}function Nn(){}function Pn(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 Xn(t){var e={id:0,hash:null,privacy:u.conversions?1:5};return t&&(e.id=En.has(t)?En.get(t):An(t)),e}function Yn(){On=[],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=En.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=Cn(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}Dn(o,u,{tag:r,attributes:n,value:a})}}(document),mn(43)}function jn(){En=new WeakMap}function Cn(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 An(t){return null===t?null:En.has(t)?En.get(t):(En.set(t,xn),xn++)}function Dn(t,e,n){if(t&&n&&n.tag){var r=An(t),a=e?En.get(e):null,o=t.previousSibling?En.get(t.previousSibling):null;On.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 Hn,Wn=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:Nn,iframe:In,metadata:Xn,offset:function(){return{x:0,y:0}},snapshot:Yn,start:Mn,stop:function(){jn(),yn()},target:Pn,get values(){return On}}),zn=null;function qn(){!u.lean&&u.upgrade&&u.upgrade("Config"),zn=null}function Ln(t){na()&&u.lean&&(u.lean=!1,zn={key:t},Mr(),Ir(),u.upgrade&&u.upgrade(t),Un(3),u.lite&&Mn())}function Rn(){zn=null}function Un(t){var e=[d(),t];switch(t){case 4:var n=E;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),e.push(n.data.modules),dn(e,!1)),N();break;case 25:e.push(W.gap),dn(e);break;case 35:e.push(Hn.check),dn(e,!1);break;case 3:e.push(zn.key),dn(e);break;case 2:e.push(en.sequence),e.push(en.attempts),e.push(en.status),dn(e,!1);break;case 24:D.key&&e.push(D.key),e.push(D.value),dn(e);break;case 34:var r=Object.keys(ct);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(ct[i])}ft(),dn(e,!1)}break;case 0:var u=Object.keys(q);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var l=s[c],p=parseInt(l,10);e.push(p),e.push(Math.round(q[l]))}q={},dn(e,!1)}break;case 1:var f=Object.keys(Kn);if(f.length>0){for(var h=0,v=f;h<v.length;h++){var g=v[h];p=parseInt(g,10);e.push(p),e.push(Kn[g])}rr(),dn(e,!1)}break;case 36:var m=Object.keys($);if(m.length>0){for(var w=0,y=m;w<y.length;w++){var b=y[w];p=parseInt(b,10);e.push(p),e.push([].concat.apply([],$[b]))}et(),dn(e,!1)}break;case 40:Ot.forEach((function(t){e.push(t);var n=[];for(var r in St[t]){var a=parseInt(r,10);n.push(a),n.push(St[t][r])}e.push(n)})),Yt(),dn(e,!1);break;case 47:e.push(ar.source),e.push(ar.ad_Storage),e.push(ar.analytics_Storage),dn(e,!1)}}function Fn(){Hn={check:0}}function Vn(t){if(0===Hn.check){var e=Hn.check;e=Cr.sequence>=128?1:e,e=Cr.pageNum>=128?7:e,e=d()>72e5?2:e,(e=t>10485760?2:e)!==Hn.check&&Jn(e)}}function Jn(t){Hn.check=t,5!==t&&(Er(),ia())}function Bn(){0!==Hn.check&&Un(35)}function Zn(){Hn=null}var Gn=null,Kn=null,Qn=!1;function $n(){Gn={},Kn={},Qn=!1}function tr(){Gn={},Kn={},Qn=!1}function er(t,e){if(e&&(e="".concat(e),t in Gn||(Gn[t]=[]),Gn[t].indexOf(e)<0)){if(Gn[t].length>128)return void(Qn||(Qn=!0,Jn(5)));Gn[t].push(e),t in Kn||(Kn[t]=[]),Kn[t].push(e)}}function nr(){Un(1)}function rr(){Kn={},Qn=!1}var ar=null,or=!0;function ir(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;or=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],cr)}function ur(){or=!0}function cr(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState){var n=e.getConsentState("analytics_storage");Sr(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}}function sr(t){dr(t.analytics_Storage?1:0),ar=t}function lr(){dr(2)}function dr(t){er(36,t.toString())}function pr(t){ar=t,Un(47)}function fr(){var t;if(or&&(Un(47),or=!1,!u.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&cr()}}var hr=null,vr=[],gr=0,mr=null,wr={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function yr(){var t,e,n,r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",o=(new Date).getTimezoneOffset().toString(),i=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";gr=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:Pr(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Rt("_clsk",!u.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Xr(n[1])<18e5&&(t.session=n[0],t.count=Xr(n[2])+1,t.upgrade=Xr(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Yr(),d=u.projectId||f(location.host);hr={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},u.lean=u.track&&null!==s.upgrade?0===s.upgrade:u.lean,u.upload=u.track&&"string"==typeof u.upload&&s.upload&&s.upload.length>"https://".length?s.upload:u.upload,er(0,r),er(3,c),er(1,_(location.href,!!gr)),er(2,document.referrer),er(15,function(){var t=Pr();if(u.track&&Wt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),er(16,document.documentElement.lang),er(17,document.dir),er(26,"".concat(window.devicePixelRatio)),er(28,l.dob.toString()),er(29,l.version.toString()),er(33,i),er(34,a),er(35,o),U(0,s.ts),U(1,0),U(35,gr);var p,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&U(39,1),navigator&&(er(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(p=navigator.userAgentData)&&p.getHighEntropyValues?p.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;er(22,t.platform),er(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){er(24,t.name+"~"+t.version)})),er(25,t.model),U(27,t.mobile?1:0)})):er(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth)));for(var v=0,g=u.cookies;v<g.length;v++){var m=g[v],w=Rt(m);w&&st(m,w)}null===mr&&(mr={source:l.consent?6:0,ad_Storage:u.track?"granted":"denied",analytics_Storage:u.track?"granted":"denied"}),sr(Or(mr)),Nr(l)}function br(){hr=null,vr.forEach((function(t){t.called=!1}))}function _r(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=u.lean?0:1,o=!1;hr&&(a||!1===e)&&(t(hr,!u.lean,r?mr:void 0),o=!0),!n&&o||vr.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function kr(){return hr?[hr.userId,hr.sessionId,hr.pageNum].join("."):""}function Tr(t){void 0===t&&(t=!0),t?(Sr({source:4,ad_Storage:"granted",analytics_Storage:"granted"}),lr()):Sr({source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function Sr(t,e){var n;void 0===t&&(t=wr),void 0===e&&(e=5);var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:xr(t.ad_Storage,null==mr?void 0:mr.ad_Storage),analytics_Storage:xr(t.analytics_Storage,null==mr?void 0:mr.analytics_Storage)};if(mr&&r.ad_Storage===mr.ad_Storage&&r.analytics_Storage===mr.analytics_Storage)return mr.source=r.source,pr(Or(mr)),void lr();mr=r,Mr(!0);var a=Or(mr);if(!a.analytics_Storage&&u.track)return u.track=!1,Er(!0),ia(),void window.setTimeout(oa,250);na()&&a.analytics_Storage&&(u.track=!0,Nr(Yr(),1),Ir()),pr(a),lr()}function Or(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function xr(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function Er(t){void 0===t&&(t=!1),Ut("_clsk","",0),t&&Ut("_clck","",0)}function Mr(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(vr.length>0)for(var n=0;n<vr.length;n++){var r=vr[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(hr,!u.lean,r.consentInfo?mr:void 0),r.called=!0,r.recall||(vr.splice(n,1),n--))}}(u.lean?0:1,t)}function Ir(){if(hr&&u.track){var t=Math.round(Date.now()),e=u.upload&&"string"==typeof u.upload?u.upload.replace("https://",""):"",n=u.lean?0:1;Ut("_clsk",[hr.sessionId,t,hr.pageNum,n,e].join(Lt),1)}}function Nr(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===u.dob?0:u.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&Ut("_clck",[hr.userId,2,n.toString(36),e,r].join(Lt),365)}function Pr(){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 Xr(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Yr(){var t={id:Pr(),version:0,expiry:null,consent:0,dob:0},e=Rt("_clck",!u.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Xr(n[1])),n.length>2&&(t.expiry=Xr(n[2],36)),n.length>3&&1===Xr(n[3])&&(t.consent=1),n.length>4&&Xr(n[1])>1&&(t.dob=Xr(n[4])),u.track=u.track||1===t.consent,t.id=u.track?n[0]:t.id}return t}var jr,Cr=null;function Ar(){var t=hr;Cr={version:p,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 Dr(){Cr=null}function Hr(t){return Cr.start=Cr.start+Cr.duration,Cr.duration=d()-Cr.start,Cr.sequence++,Cr.upload=t&&"sendBeacon"in navigator?1:0,Cr.end=t?1:0,Cr.applicationPlatform=0,Cr.url=_(location.href,!1,!0),[Cr.version,Cr.sequence,Cr.start,Cr.duration,Cr.projectId,Cr.userId,Cr.sessionId,Cr.pageNum,Cr.upload,Cr.end,Cr.applicationPlatform,Cr.url]}function Wr(){jr=[]}function zr(t){if(jr&&-1===jr.indexOf(t.message)){var e=u.report;if(e&&e.length>0&&Cr){var n={v:Cr.version,p:Cr.projectId,u:Cr.userId,s:Cr.sessionId,n:Cr.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)),jr.push(t.message)}}return t}function qr(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw zr(t)}var n=performance.now()-e;R(4,n),n>30&&(L(7),U(6,n),t.dn&&Tt(9,0,"".concat(t.dn,"-").concat(n)))}}var Lr=new Map;function Rr(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=qr(n);try{t[c("addEventListener")](e,n,{capture:r,passive:a}),function(t){return Lr.has(t)}(t)||Lr.set(t,[]),Lr.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function Ur(){Lr.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[c("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Lr.delete(e)}(t,e)})),Lr=new Map}var Fr=null,Vr=null,Jr=null,Br=0;function Zr(){return!(Br++>20)||(Tt(4,0),!1)}function Gr(){Br=0,Jr!==Qr()&&(ia(),window.setTimeout(Kr,250))}function Kr(){oa(),U(29,1)}function Qr(){return location.href?location.href.replace(location.hash,""):location.href}var $r=!1;function ta(){$r=!0,s=l(),ae(),Ur(),Wr(),Jr=Qr(),Br=0,Rr(window,"popstate",Gr),null===Fr&&(Fr=history.pushState,history.pushState=function(){Fr.apply(this,arguments),na()&&Zr()&&Gr()}),null===Vr&&(Vr=history.replaceState,history.replaceState=function(){Vr.apply(this,arguments),na()&&Zr()&&Gr()})}function ea(){Jr=null,Br=0,Wr(),Ur(),ae(),s=0,$r=!1}function na(){return $r}function ra(){oa(),H("clarity","restart")}var aa=[Object.freeze({__proto__:null,start:function(){!function(){U(26,navigator.webdriver?1:0);try{U(31,window.top==window.self||window.top==window?1:2)}catch(t){U(31,0)}}(),Rr(window,"error",yt),wt={},kt={}},stop:function(){kt={}}}),Wn,Sn,$t,rn];function oa(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===$r&&"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||$r)return!1;for(var e in t)e in u&&(u[e]=t[e])}(t),ta(),Bt(),aa.forEach((function(t){return qr(t.start)()})),null===t&&la())}function ia(){na()&&(aa.slice().reverse().forEach((function(t){return qr(t.stop)()})),Zt(),ea(),void 0!==ca&&(ca[sa]=function(){(ca[sa].q=ca[sa].q||[]).push(arguments),"start"===arguments[0]&&ca[sa].q.unshift(ca[sa].q.pop())&&la()}))}var ua=Object.freeze({__proto__:null,consent:Tr,consentv2:Sr,dlog:er,event:H,hashText:Nn,identify:lt,maxMetric:U,measure:qr,metadata:_r,pause:function(){na()&&(H("clarity","pause"),null===ne&&(ne=new Promise((function(t){re=t}))))},queue:dn,register:Ze,resume:function(){na()&&(ne&&(re(),ne=null,null===ee&&ie()),H("clarity","resume"))},schedule:oe,set:st,signal:function(t){Ft=t},start:oa,stop:ia,time:d,upgrade:Ln,version:p}),ca=window,sa="clarity";function la(){if(void 0!==ca){if(ca[sa]&&ca[sa].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=ca[sa]&&ca[sa].q||[];for(ca[sa]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return ua[t].apply(ua,e)},ca[sa].v=p;t.length>0;)ca[sa].apply(ca,t.shift())}}la()}();
package/build/clarity.js CHANGED
@@ -187,7 +187,7 @@ var startTime = 0;
187
187
  function computeStartTime() {
188
188
  return performance.now() + performance.timeOrigin;
189
189
  }
190
- function start$N() {
190
+ function start$O() {
191
191
  startTime = computeStartTime();
192
192
  }
193
193
  // event.timestamp is number of milliseconds elapsed since the document was loaded
@@ -207,7 +207,7 @@ function stop$K() {
207
207
  startTime = 0;
208
208
  }
209
209
 
210
- var version$1 = "0.8.49";
210
+ var version$1 = "0.8.50-beta";
211
211
 
212
212
  // tslint:disable: no-bitwise
213
213
  function hash (input, precision) {
@@ -430,7 +430,7 @@ function redact$1(value) {
430
430
  var state$b = null;
431
431
  var buffer = null;
432
432
  var update$2 = false;
433
- function start$M() {
433
+ function start$N() {
434
434
  update$2 = false;
435
435
  reset$u();
436
436
  }
@@ -583,7 +583,7 @@ var baseline = /*#__PURE__*/Object.freeze({
583
583
  compute: compute$g,
584
584
  dynamic: dynamic$1,
585
585
  reset: reset$u,
586
- start: start$M,
586
+ start: start$N,
587
587
  get state () { return state$b; },
588
588
  stop: stop$J,
589
589
  track: track$8,
@@ -610,7 +610,7 @@ function event$1(a, b) {
610
610
 
611
611
  var data$k = null;
612
612
  var updates$3 = null;
613
- function start$L() {
613
+ function start$M() {
614
614
  data$k = {};
615
615
  updates$3 = {};
616
616
  count$1(5 /* Metric.InvokeCount */);
@@ -671,7 +671,7 @@ var data$j;
671
671
  var last = 0;
672
672
  var interval = 0;
673
673
  var timeout$7 = null;
674
- function start$K() {
674
+ function start$L() {
675
675
  interval = 60000 /* Setting.PingInterval */;
676
676
  last = 0;
677
677
  }
@@ -703,12 +703,12 @@ var ping$1 = /*#__PURE__*/Object.freeze({
703
703
  __proto__: null,
704
704
  get data () { return data$j; },
705
705
  reset: reset$s,
706
- start: start$K,
706
+ start: start$L,
707
707
  stop: stop$H
708
708
  });
709
709
 
710
710
  var data$i = null;
711
- function start$J() {
711
+ function start$K() {
712
712
  data$i = {};
713
713
  }
714
714
  function stop$G() {
@@ -743,7 +743,7 @@ var summary = /*#__PURE__*/Object.freeze({
743
743
  compute: compute$e,
744
744
  get data () { return data$i; },
745
745
  reset: reset$r,
746
- start: start$J,
746
+ start: start$K,
747
747
  stop: stop$G,
748
748
  track: track$7
749
749
  });
@@ -862,7 +862,7 @@ function read(stream) {
862
862
  }
863
863
 
864
864
  var data$h = null;
865
- function start$I() {
865
+ function start$J() {
866
866
  reset$q();
867
867
  }
868
868
  function set(variable, value) {
@@ -964,7 +964,7 @@ var variable = /*#__PURE__*/Object.freeze({
964
964
  identify: identify,
965
965
  reset: reset$q,
966
966
  set: set,
967
- start: start$I,
967
+ start: start$J,
968
968
  stop: stop$F
969
969
  });
970
970
 
@@ -974,7 +974,7 @@ var variables = {};
974
974
  var selectors = {};
975
975
  var hashes = {};
976
976
  var validation = {};
977
- function start$H() {
977
+ function start$I() {
978
978
  reset$p();
979
979
  }
980
980
  // Input string is of the following form:
@@ -1163,7 +1163,7 @@ var extract = /*#__PURE__*/Object.freeze({
1163
1163
  data: data$g,
1164
1164
  keys: keys,
1165
1165
  reset: reset$p,
1166
- start: start$H,
1166
+ start: start$I,
1167
1167
  stop: stop$E,
1168
1168
  trigger: trigger$2,
1169
1169
  update: update$1
@@ -1192,7 +1192,7 @@ function decodeCookieValue(value) {
1192
1192
 
1193
1193
  var rootDomain = null;
1194
1194
  var COOKIE_SEP = "^" /* Constant.Caret */;
1195
- function start$G() {
1195
+ function start$H() {
1196
1196
  rootDomain = null;
1197
1197
  }
1198
1198
  function stop$D() {
@@ -1277,7 +1277,7 @@ var cookie = /*#__PURE__*/Object.freeze({
1277
1277
  COOKIE_SEP: COOKIE_SEP,
1278
1278
  getCookie: getCookie,
1279
1279
  setCookie: setCookie,
1280
- start: start$G,
1280
+ start: start$H,
1281
1281
  stop: stop$D
1282
1282
  });
1283
1283
 
@@ -1310,9 +1310,9 @@ function signalsEvent(signalsPayload) {
1310
1310
  }
1311
1311
 
1312
1312
  var modules$2 = [baseline, dimension, variable, limit, summary, cookie, consent$2, metadata$1, envelope$1, upload$1, ping$1, upgrade$1, extract];
1313
- function start$F() {
1313
+ function start$G() {
1314
1314
  // Metric needs to be initialized before we can start measuring. so metric is not wrapped in measure
1315
- start$L();
1315
+ start$M();
1316
1316
  modules$2.forEach(function (x) { return measure(x.start)(); });
1317
1317
  }
1318
1318
  function stop$C() {
@@ -1336,7 +1336,7 @@ function compute$b() {
1336
1336
 
1337
1337
  var history$5 = [];
1338
1338
  var data$f;
1339
- function start$E() {
1339
+ function start$F() {
1340
1340
  history$5 = [];
1341
1341
  max(26 /* Metric.Automation */, navigator.webdriver ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */);
1342
1342
  try {
@@ -1360,7 +1360,7 @@ function check$5(id, target, input) {
1360
1360
  }
1361
1361
 
1362
1362
  var state$a = [];
1363
- function start$D() {
1363
+ function start$E() {
1364
1364
  reset$o();
1365
1365
  }
1366
1366
  function observe$c(root) {
@@ -1400,14 +1400,14 @@ function offset(element) {
1400
1400
 
1401
1401
  var UserInputTags = ["input", "textarea", "radio", "button", "canvas", "select"];
1402
1402
  var state$9 = [];
1403
- function start$C() {
1403
+ function start$D() {
1404
1404
  reset$n();
1405
1405
  }
1406
1406
  function observe$b(root) {
1407
- bind(root, "click", handler$3.bind(this, 9 /* Event.Click */, root), true);
1408
- bind(root, "contextmenu", handler$3.bind(this, 48 /* Event.ContextMenu */, root), true);
1407
+ bind(root, "click", handler$4.bind(this, 9 /* Event.Click */, root), true);
1408
+ bind(root, "contextmenu", handler$4.bind(this, 48 /* Event.ContextMenu */, root), true);
1409
1409
  }
1410
- function handler$3(event, root, evt) {
1410
+ function handler$4(event, root, evt) {
1411
1411
  var frame = iframe(root);
1412
1412
  var d = frame && frame.contentDocument ? frame.contentDocument.documentElement : document.documentElement;
1413
1413
  var x = "pageX" in evt ? Math.round(evt.pageX) : ("clientX" in evt ? Math.round(evt["clientX"] + d.scrollLeft) : null);
@@ -1458,6 +1458,7 @@ function handler$3(event, root, evt) {
1458
1458
  tag: getElementAttribute(t, "tagName").substring(0, 10 /* Setting.ClickTag */),
1459
1459
  class: getElementAttribute(t, "className").substring(0, 50 /* Setting.ClickClass */),
1460
1460
  id: getElementAttribute(t, "id").substring(0, 25 /* Setting.ClickId */),
1461
+ source: evt.isTrusted ? 0 /* ClickSource.Undefined */ : source()
1461
1462
  }
1462
1463
  });
1463
1464
  schedule(encode$4.bind(this, event));
@@ -1538,6 +1539,28 @@ function context(a) {
1538
1539
  }
1539
1540
  return 0 /* BrowsingContext.Self */;
1540
1541
  }
1542
+ function source() {
1543
+ try {
1544
+ var stack = new Error().stack || "";
1545
+ var origin_1 = location.origin;
1546
+ var result = 4 /* ClickSource.Unknown */;
1547
+ for (var _i = 0, _a = stack.split("\n"); _i < _a.length; _i++) {
1548
+ var line = _a[_i];
1549
+ if (line.indexOf("://") >= 0) {
1550
+ result = line.indexOf("extension") < 0 && line.indexOf(origin_1) >= 0
1551
+ ? 1 /* ClickSource.FirstParty */
1552
+ : 2 /* ClickSource.ThirdParty */;
1553
+ }
1554
+ else if (line.indexOf("eval") >= 0 || line.indexOf("Function") >= 0 || line.indexOf("<a") >= 0 || /VM\d/.test(line)) {
1555
+ result = 3 /* ClickSource.Eval */;
1556
+ }
1557
+ }
1558
+ return result;
1559
+ }
1560
+ catch (_b) {
1561
+ return 4 /* ClickSource.Unknown */;
1562
+ }
1563
+ }
1541
1564
  function reset$n() {
1542
1565
  state$9 = [];
1543
1566
  }
@@ -1546,7 +1569,7 @@ function stop$A() {
1546
1569
  }
1547
1570
 
1548
1571
  var state$8 = [];
1549
- function start$B() {
1572
+ function start$C() {
1550
1573
  reset$m();
1551
1574
  }
1552
1575
  function observe$a(root) {
@@ -1567,7 +1590,7 @@ function stop$z() {
1567
1590
 
1568
1591
  var timeout$6 = null;
1569
1592
  var state$7 = [];
1570
- function start$A() {
1593
+ function start$B() {
1571
1594
  reset$l();
1572
1595
  }
1573
1596
  function observe$9(root) {
@@ -1611,7 +1634,7 @@ var timeout$5 = null;
1611
1634
  var hasPrimaryTouch = false;
1612
1635
  var primaryTouchId = 0;
1613
1636
  var activeTouchPointIds = new Set();
1614
- function start$z() {
1637
+ function start$A() {
1615
1638
  reset$k();
1616
1639
  }
1617
1640
  function observe$8(root) {
@@ -1638,7 +1661,7 @@ function mouse(event, root, evt) {
1638
1661
  }
1639
1662
  // Check for null values before processing this event
1640
1663
  if (x !== null && y !== null) {
1641
- handler$2({ time: time(evt), event: event, data: { target: target(evt), x: x, y: y } });
1664
+ handler$3({ time: time(evt), event: event, data: { target: target(evt), x: x, y: y } });
1642
1665
  }
1643
1666
  }
1644
1667
  function touch(event, root, evt) {
@@ -1673,7 +1696,7 @@ function touch(event, root, evt) {
1673
1696
  var isPrimary = hasPrimaryTouch && primaryTouchId === id;
1674
1697
  // Check for null values before processing this event
1675
1698
  if (x !== null && y !== null) {
1676
- handler$2({ time: t, event: event, data: { target: target(evt), x: x, y: y, id: id, isPrimary: isPrimary } });
1699
+ handler$3({ time: t, event: event, data: { target: target(evt), x: x, y: y, id: id, isPrimary: isPrimary } });
1677
1700
  }
1678
1701
  // Reset primary touch point id once touch event ends
1679
1702
  if (event === 20 /* Event.TouchCancel */ || event === 18 /* Event.TouchEnd */) {
@@ -1684,7 +1707,7 @@ function touch(event, root, evt) {
1684
1707
  }
1685
1708
  }
1686
1709
  }
1687
- function handler$2(current) {
1710
+ function handler$3(current) {
1688
1711
  switch (current.event) {
1689
1712
  case 12 /* Event.MouseMove */:
1690
1713
  case 15 /* Event.MouseWheel */:
@@ -1779,7 +1802,7 @@ var data$e;
1779
1802
  var timeout$4 = null;
1780
1803
  var initialStateLogged = false;
1781
1804
  var throttledRecompute$1 = throttle(recompute$5, 500 /* Setting.LookAhead */);
1782
- function start$y() {
1805
+ function start$z() {
1783
1806
  initialStateLogged = false;
1784
1807
  bind(window, "resize", throttledRecompute$1);
1785
1808
  recompute$5();
@@ -1817,7 +1840,7 @@ var state$5 = [];
1817
1840
  var initialTop = null;
1818
1841
  var initialBottom = null;
1819
1842
  var timeout$3 = null;
1820
- function start$x() {
1843
+ function start$y() {
1821
1844
  state$5 = [];
1822
1845
  recompute$4();
1823
1846
  }
@@ -1925,7 +1948,7 @@ function stop$v() {
1925
1948
  var data$d = null;
1926
1949
  var previous = null;
1927
1950
  var timeout$2 = null;
1928
- function start$w() {
1951
+ function start$x() {
1929
1952
  reset$h();
1930
1953
  }
1931
1954
  function observe$6(root) {
@@ -1975,7 +1998,7 @@ function stop$u() {
1975
1998
  }
1976
1999
 
1977
2000
  var state$4 = [];
1978
- function start$v() {
2001
+ function start$w() {
1979
2002
  reset$g();
1980
2003
  }
1981
2004
  function observe$5(root) {
@@ -1993,7 +2016,7 @@ function stop$t() {
1993
2016
  }
1994
2017
 
1995
2018
  var data$c;
1996
- function start$u() {
2019
+ function start$v() {
1997
2020
  bind(window, "pagehide", recompute$1);
1998
2021
  }
1999
2022
  function recompute$1(evt) {
@@ -2009,7 +2032,7 @@ function stop$s() {
2009
2032
  }
2010
2033
 
2011
2034
  var data$b;
2012
- function start$t() {
2035
+ function start$u() {
2013
2036
  bind(document, "visibilitychange", recompute);
2014
2037
  recompute();
2015
2038
  }
@@ -2029,7 +2052,7 @@ function stop$r() {
2029
2052
  }
2030
2053
 
2031
2054
  var data$a;
2032
- function start$s() {
2055
+ function start$t() {
2033
2056
  bind(window, "focus", function () { return compute$9(1 /* BooleanFlag.True */); });
2034
2057
  bind(window, "blur", function () { return compute$9(0 /* BooleanFlag.False */); });
2035
2058
  }
@@ -2044,20 +2067,44 @@ function compute$9(focus) {
2044
2067
  encode$4(50 /* Event.Focus */);
2045
2068
  }
2046
2069
 
2070
+ var bound = false;
2071
+ function start$s() {
2072
+ // Only bind once - this listener must persist even when Clarity stops
2073
+ // to detect when the page is restored from bfcache
2074
+ if (!bound) {
2075
+ try {
2076
+ window[api("addEventListener" /* Constant.AddEventListener */)]("pageshow", measure(handler$2), { capture: false, passive: true });
2077
+ bound = true;
2078
+ }
2079
+ catch (_a) {
2080
+ /* do nothing */
2081
+ }
2082
+ }
2083
+ }
2084
+ function handler$2(evt) {
2085
+ // The persisted property indicates if the page was loaded from bfcache
2086
+ if (evt && evt.persisted) {
2087
+ // Restart Clarity since it was stopped when the page entered bfcache
2088
+ start();
2089
+ log$1(11 /* Code.BFCache */, 0 /* Severity.Info */);
2090
+ }
2091
+ }
2092
+
2047
2093
  function start$r() {
2048
2094
  start$j();
2095
+ start$D();
2049
2096
  start$C();
2097
+ start$A();
2050
2098
  start$B();
2051
2099
  start$z();
2052
- start$A();
2053
- start$y();
2100
+ start$u();
2054
2101
  start$t();
2055
2102
  start$s();
2103
+ start$y();
2056
2104
  start$x();
2105
+ start$E();
2057
2106
  start$w();
2058
- start$D();
2059
2107
  start$v();
2060
- start$u();
2061
2108
  }
2062
2109
  function stop$p() {
2063
2110
  stop$h();
@@ -4173,6 +4220,7 @@ function encode$4 (type, ts) {
4173
4220
  tokens.push(entry.data.tag);
4174
4221
  tokens.push(entry.data.class);
4175
4222
  tokens.push(entry.data.id);
4223
+ tokens.push(entry.data.source);
4176
4224
  queue(tokens);
4177
4225
  track$2(entry.time, entry.event, cHash, entry.data.x, entry.data.y, entry.data.reaction, entry.data.context);
4178
4226
  }
@@ -6037,7 +6085,7 @@ function stop$6() {
6037
6085
  var status = false;
6038
6086
  function start$5() {
6039
6087
  status = true;
6040
- start$N();
6088
+ start$O();
6041
6089
  reset$4();
6042
6090
  reset$1();
6043
6091
  reset$2();
@@ -6104,7 +6152,7 @@ function restart() {
6104
6152
  }
6105
6153
 
6106
6154
  function start$4() {
6107
- start$E();
6155
+ start$F();
6108
6156
  start$g();
6109
6157
  start$f();
6110
6158
  }
@@ -6446,7 +6494,7 @@ function start(config$1) {
6446
6494
  if (check()) {
6447
6495
  config(config$1);
6448
6496
  start$5();
6449
- start$F();
6497
+ start$G();
6450
6498
  modules.forEach(function (x) { return measure(x.start)(); });
6451
6499
  // If it's an internal call to start, without explicit configuration,
6452
6500
  // re-process any newly accumulated items in the queue