clarity-js 0.8.41 → 0.8.43
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.
- package/build/clarity.extended.js +1 -1
- package/build/clarity.insight.js +1 -1
- package/build/clarity.js +29 -16
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +29 -16
- package/build/clarity.performance.js +1 -1
- package/package.json +1 -1
- package/src/core/dynamic.ts +13 -7
- package/src/core/scrub.ts +2 -0
- package/src/core/version.ts +1 -1
- package/src/data/metadata.ts +12 -9
- package/types/data.d.ts +1 -0
package/build/clarity.insight.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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 Hn},get start(){return Wn},get stop(){return qn},get upgrade(){return zn}}),n=Object.freeze({__proto__:null,get check(){return Un},get compute(){return Vn},get data(){return Cn},get start(){return Rn},get stop(){return Jn},get trigger(){return Fn}}),a=Object.freeze({__proto__:null,get compute(){return ta},get data(){return Bn},get log(){return $n},get reset(){return ea},get start(){return Kn},get stop(){return Qn},get updates(){return Zn}}),r=Object.freeze({__proto__:null,get callback(){return ma},get callbacks(){return aa},get clear(){return ga},get consent(){return pa},get consentv2(){return fa},get data(){return na},get electron(){return ra},get id(){return da},get metadata(){return la},get save(){return wa},get shortid(){return ka},get start(){return ca},get stop(){return sa}}),i=Object.freeze({__proto__:null,get data(){return Ma},get envelope(){return Xa},get start(){return Na},get stop(){return Ia}}),o={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(){return performance.now()+performance.timeOrigin}function l(t){void 0===t&&(t=null);var e=0===c?s():c,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),a=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+a-e),0)}var d="0.8.41";function p(t,e){void 0===e&&(e=null);for(var n,a=5381,r=a,i=0;i<t.length;i+=2){if(a=(a<<5)+a^t.charCodeAt(i),i+1<t.length)r=(r<<5)+r^t.charCodeAt(i+1)}return n=Math.abs(a+11579*r),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=255,v=!0,g=null,m=null,w=null;function y(t,e,n,a,r){if(void 0===a&&(a=!1),t){if("input"==e&&("checkbox"===r||"radio"===r))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,a=!1,r=!1,i=!1,o=null;O();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(a=a||c>=48&&c<=57,r=r||64===c,i=9===c||10===c||13===c||32===c,0===u||u===t.length-1||i){if(a||r){null===o&&(o=t.split(""));var s=t.substring(e+1,i?u:u+1);s=v&&null!==w?s.match(w)?s:T(s,"▪","▫"):_(s),o.splice(e+1-n,s.length,s),n+=s.length-1}i&&(a=!1,r=!1,e=u)}}return o?o.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return a?k(t):_(t);case"src":case"srcset":case"title":case"alt":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return _(t)}break;case 4:switch(e){case"*T":case"data-":return a?k(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 T(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var a=t;if(e)a="".concat("https://").concat("Electron");else{var r=o.drop;if(r&&r.length>0&&t&&t.indexOf("?")>0){var i=t.split("?"),u=i[0],c=i[1];a=u+"?"+c.split("&").map((function(t){return r.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(a=a.substring(0,h)),a}function k(t){var e=t.trim();if(e.length>0){var n=e[0],a=t.indexOf(n),r=t.substr(0,a),i=t.substr(a+e.length);return"".concat(r).concat(e.length.toString(36)).concat(i)}return t}function _(t){return t.replace(f,"•")}function T(t,e,n){return O(),t?t.replace(m,e).replace(g,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",a=0;a<e;a++)n+=a>0&&a%5==0?" ":"•";return n}function O(){if(v&&null===g)try{g=new RegExp("\\p{N}","gu"),m=new RegExp("\\p{L}","gu"),w=new RegExp("\\p{Sc}","gu")}catch(t){v=!1}}var x=null,E=null,M=!1;function N(){M&&(x={time:l(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime,modules:E.modules}}),E=E||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0,modules:null}}function I(t,e,n,a){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=a;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=a,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a;break;case 13:E.downX=e,E.downY=n,E.downTime=a,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a;break;case 14:E.upX=e,E.upY=n,E.upTime=a,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a}M=!0}function X(t){E.activityTime=t}function P(t,e){E.visible=e,E.visible||X(t),M=!0}function Y(t){E.modules=Array.from(t),M=!0}function j(){M&&Ln(4)}var A=Object.freeze({__proto__:null,activity:X,compute:j,dynamic:Y,reset:N,start:function(){M=!1,N()},get state(){return x},stop:function(){N()},track:I,visibility:P}),C=null,D=!0;function H(){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");fa(function(t){var e={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}),2)}}function W(t){q(t.analytics_Storage?1:0),C=t}function z(){q(2)}function q(t){$n(36,t.toString())}function L(t){C=t,Ln(47)}function R(){var t;if(D&&(Ln(47),D=!1,!o.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&H()}}var U=Object.freeze({__proto__:null,compute:R,config:W,consent:z,get data(){return C},start:function(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;D=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],H)},stop:function(){D=!0},trackConsentv2:L}),F=null;function V(t,e){Za()&&t&&"string"==typeof t&&t.length<255&&(F=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Ln(24))}var J,B=null,Z=null;function G(t){t in B||(B[t]=0),t in Z||(Z[t]=0),B[t]++,Z[t]++}function K(t,e){null!==e&&(t in B||(B[t]=0),t in Z||(Z[t]=0),B[t]+=e,Z[t]+=e)}function Q(t,e){null!==e&&!1===isNaN(e)&&(t in B||(B[t]=0),(e>B[t]||0===B[t])&&(Z[t]=e,B[t]=e))}function $(t,e,n){return window.setTimeout(ja(t),e,n)}function tt(t){return window.clearTimeout(t)}var et=0,nt=0,at=null;function rt(){at&&tt(at),at=$(it,nt),et=l()}function it(){var t=l();J={gap:t-et},Ln(25),J.gap<3e5?at=$(it,nt):Va&&(V("clarity","suspend"),$a(),["mousemove","touchstart"].forEach((function(t){return Ca(document,t,Ga)})),["resize","scroll","pageshow"].forEach((function(t){return Ca(window,t,Ga)})))}var ot=Object.freeze({__proto__:null,get data(){return J},reset:rt,start:function(){nt=6e4,et=0},stop:function(){tt(at),et=0,nt=0}}),ut=null;function ct(){Ln(36)}function st(){ut={}}var lt=Object.freeze({__proto__:null,compute:ct,get data(){return ut},reset:st,start:function(){ut={}},stop:function(){ut={}},track:function(t,e){if(t in ut){var n=ut[t],a=n[n.length-1];e-a[0]>100?ut[t].push([e,0]):a[1]=e-a[0]}else ut[t]=[[e,0]]}});function dt(t,e,n,a){return new(n||(n=Promise))((function(r,i){function o(t){try{c(a.next(t))}catch(t){i(t)}}function u(t){try{c(a.throw(t))}catch(t){i(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(o,u)}c((a=a.apply(t,e||[])).next())}))}function pt(t,e){var n,a,r,i,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(o=0)),o;)try{if(n=1,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,a=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(r=o.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){o=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){o.label=u[1];break}if(6===u[0]&&o.label<r[1]){o.label=r[1],r=u;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(u);break}r[2]&&o.ops.pop(),o.trys.pop();continue}u=e.call(t,o)}catch(t){u=[6,t],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var ft="CompressionStream"in window;function ht(t){return dt(this,void 0,void 0,(function(){var e,n;return pt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),ft?(e=new ReadableStream({start:function(e){return dt(this,void 0,void 0,(function(){return pt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,vt(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,null]}}))}))}function vt(t){return dt(this,void 0,void 0,(function(){var e,n,a,r,i;return pt(this,(function(o){switch(o.label){case 0:e=t.getReader(),n=[],a=!1,r=[],o.label=1;case 1:return a?[3,3]:[4,e.read()];case 2:return i=o.sent(),a=i.done,r=i.value,a?[2,n]:(n.push.apply(n,r),[3,1]);case 3:return[2,n]}}))}))}var gt=null;function mt(t,e){yt(t,"string"==typeof e?[e]:e)}function wt(t,e,n,a){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===a&&(a=null),dt(this,void 0,void 0,(function(){var r,i;return pt(this,(function(o){switch(o.label){case 0:return i={},[4,_t(t)];case 1:return i.userId=o.sent(),i.userHint=a||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),yt("userId",[(r=i).userId]),yt("userHint",[r.userHint]),yt("userType",[Tt(t)]),e&&(yt("sessionId",[e]),r.sessionId=e),n&&(yt("pageId",[n]),r.pageId=n),[2,r]}var u}))}))}function yt(t,e){if(Za()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in gt?gt[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);gt[t]=n}}function bt(){Ln(34)}function kt(){gt={}}function _t(t){return dt(this,void 0,void 0,(function(){var e;return pt(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 Tt(t){return t&&t.indexOf("@")>0?"email":"string"}var St=Object.freeze({__proto__:null,compute:bt,get data(){return gt},identify:wt,reset:kt,set:mt,start:function(){kt()},stop:function(){kt()}});var Ot,xt={};function Et(t){var e=t.error||t;return e.message in xt||(xt[e.message]=0),xt[e.message]++>=5||e&&e.message&&(Ot={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Mt(31)),!0}function Mt(t){return dt(this,void 0,void 0,(function(){var e;return pt(this,(function(n){switch(e=[l(),t],t){case 31:e.push(Ot.message),e.push(Ot.line),e.push(Ot.column),e.push(Ot.stack),e.push(b(Ot.source)),dn(e);break;case 33:Nt&&(e.push(Nt.code),e.push(Nt.name),e.push(Nt.message),e.push(Nt.stack),e.push(Nt.severity),dn(e,!1))}return[2]}))}))}var Nt,It={};function Xt(t,e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=null);var i=n?"".concat(n,"|").concat(a):"";t in It&&It[t].indexOf(i)>=0||(Nt={code:t,name:n,message:a,stack:r,severity:e},t in It?It[t].push(i):It[t]=[i],Mt(33))}var Pt={},Yt=new Set,jt={},At={},Ct={},Dt={};function Ht(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),a=parseInt(n[0]),r=n.length>1?n[1]:"",i=e.length>1?JSON.parse(e[1]):{};for(var o in jt[a]={},At[a]={},Ct[a]={},Dt[a]=r,i){var u=parseInt(o),c=i[o],s=2;switch(c.startsWith("~")?s=0:c.startsWith("!")&&(s=4),s){case 0:var l=c.slice(1);jt[a][u]=Rt(l);break;case 2:At[a][u]=c;break;case 4:var d=c.slice(1);Ct[a][u]=d}}}catch(t){Xt(8,1,t?t.name:null)}}function Wt(t){return JSON.parse(JSON.stringify(t))}function zt(){try{for(var t in jt){var e=parseInt(t);if(""==Dt[e]||document.querySelector(Dt[e])){var n=jt[e];for(var a in n){var r=parseInt(a),i=(m=Ut(Wt(n[r])))?JSON.stringify(m).slice(0,1e4):m;i&&Lt(e,r,i)}var o=At[e];for(var u in o){var c=!1,s=parseInt(u),l=o[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var f=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");Lt(e,s,(c?p(f).trim():f).slice(0,1e4))}}var h=Ct[e];for(var v in h){var g=parseInt(v);Lt(e,g,(void h[g]).trim().slice(0,1e4))}}}Yt.size>0&&Ln(40)}catch(t){Xt(5,1,t?t.name:null)}var m}function qt(){Yt.clear()}function Lt(t,e,n){var a,r=!1;t in Pt||(Pt[t]={},r=!0),a=Ct[t],0==Object.keys(a).length||e in Pt[t]&&Pt[t][e]==n||(r=!0),Pt[t][e]=n,r&&Yt.add(t)}function Rt(t){for(var e=[],n=t.split(".");n.length>0;){var a=n.shift(),r=a.indexOf("["),i=a.indexOf("{"),o=a.indexOf("}");e.push({name:r>0?a.slice(0,r):i>0?a.slice(0,i):a,type:r>0?1:i>0?2:3,condition:i>0?a.slice(i+1,o):null})}return e}function Ut(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,a=t.shift();if(e&&e[a.name]){var r=e[a.name];if(1!==a.type&&Ft(r,a.condition))n=Ut(t,r);else if(Array.isArray(r)){for(var i=[],o=0,u=r;o<u.length;o++){var c=u[o];if(Ft(c,a.condition)){var s=Ut(t,c);s&&i.push(s)}}n=i}return n}return null}function Ft(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Vt=null;function Jt(t){try{if(!Vt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Vt(t)}))}catch(t){}}var Bt=[A,a,St,n,lt,U,r,i,t,ot,e,Object.freeze({__proto__:null,clone:Wt,compute:zt,data:Pt,keys:Yt,reset:qt,start:function(){qt()},stop:function(){qt()},trigger:Ht,update:Lt})];function Zt(){B={},Z={},G(5),Bt.forEach((function(t){return ja(t.start)()}))}function Gt(){Bt.slice().reverse().forEach((function(t){return ja(t.stop)()})),B={},Z={}}function Kt(){bt(),j(),ta(),Ln(0),ct(),Vn(),zt(),R()}var Qt=[],$t=null;var te=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:$t,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Qt,stop:function(){}}),ee=[],ne=null,ae=null,re=null;function ie(){ee=[],ne=null,ae=null}function oe(t,e){return void 0===e&&(e=0),dt(this,void 0,void 0,(function(){var n,a,r;return pt(this,(function(i){for(n=0,a=ee;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){ee[1===e?"unshift":"push"]({task:t,resolve:n,id:da()})})),null===ne&&null===ae&&ue(),[2,r]}))}))}function ue(){var t=ee.shift();t&&(ne=t,t.task().then((function(){t.id===da()&&(t.resolve(),ne=null,ue())})).catch((function(e){t.id===da()&&(e&&Xt(0,1,e.name,e.message,e.stack),ne=null,ue())})))}var ce,se=["input","textarea","radio","button","canvas","select"],le=[];function de(t,e,n){var a=document.documentElement,r="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,i="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null,o=Nn(n),u=function(t){for(;t&&t!==document;){if(t.nodeType===Node.ELEMENT_NODE){var e=t;if("A"===e.tagName)return e}t=t.parentNode}return null}(o),c=function(t){var e=null,n=document.documentElement;if("function"==typeof t.getBoundingClientRect){var a=t.getBoundingClientRect();a&&a.width>0&&a.height>0&&(e={x:Math.floor(a.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(a.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(a.width),h:Math.floor(a.height)})}return e}(o);0===n.detail&&c&&(r=Math.round(c.x+c.w/2),i=Math.round(c.y+c.h/2));var s=c?Math.max(Math.floor((r-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((i-c.y)/c.h*32767),0):0;if(null!==r&&null!==i){var p=function(t){var e=null,n=!1;if(t){var a=t.textContent||String(t.value||"")||t.alt;if(a){var r=a.replace(/\s+/g," ").trim();n=(e=r.substring(0,25)).length===r.length}}return{text:e,isFullText:n?1:0}}(o);le.push({time:l(n),event:t,data:{target:o,x:r,y:i,eX:s,eY:d,button:n.button,reaction:pe(o),context:he(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:fe(o,"tagName").substring(0,10),class:fe(o,"className").substring(0,50),id:fe(o,"id").substring(0,25)}}),oe(qe.bind(this,t))}}function pe(t){var e=fe(t,"tagName");return se.indexOf(e)>=0?0:1}function fe(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 he(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 ve(){le=[]}function ge(t,e){var n=0,a=null,r=null;function i(){for(var i=this,o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var c=performance.now(),s=c-n;if(0!==n&&s<e){if(r=o,a)return;a=setTimeout((function(){n=performance.now(),t.apply(i,r),r=null,a=null}),e-s)}else n=c,t.apply(this,o)}return i.cleanup=function(){a&&(clearTimeout(a),a=null,r=null)},i}var me=null,we=!1,ye=ge(be,500);function be(){var t=document.documentElement;ce={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?(tt(me),me=$(ke,500,11)):(qe(11),we=!0)}function ke(t){oe(qe.bind(this,t))}function _e(){ce=null,tt(me),ye.cleanup()}var Te=[],Se=null;function Oe(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?Nn(t):n;if(a){if(a&&a.nodeType===Node.DOCUMENT_NODE){a=n=a.documentElement}var r=a===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(a.scrollLeft),i=a===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(a.scrollTop),o=window.innerWidth,u=window.innerHeight,c=o/3,s=o>u?.15*u:.2*u,d=u-s,p=Ee(c,s),f=Ee(c,d),h={time:l(t),event:10,data:{target:a,x:r,y:i,top:p,bottom:f}};if((null!==t||0!==r||0!==i)&&null!==r&&null!==i){var v=Te.length,g=v>1?Te[v-2]:null;g&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y;return n*n+a*a<400&&e.time-t.time<50}(g,h)&&Te.pop(),Te.push(h),tt(Se),Se=$(Me,500,10)}}}var xe=ge(Oe,25);function Ee(t,e){var n,a,r;return"caretPositionFromPoint"in document?r=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(r=null===(a=document.caretRangeFromPoint(t,e))||void 0===a?void 0:a.startContainer),r||(r=document.elementFromPoint(t,e)),r&&r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r}function Me(t){oe(qe.bind(this,t))}var Ne,Ie,Xe,Pe=[];function Ye(t){Pe.push({time:l(t),event:39,data:{target:Nn(t)}}),oe(qe.bind(this,39))}function je(){Pe=[]}function Ae(t){Ne={name:t.type,persisted:t.persisted?1:0},qe(26,l(t)),$a()}function Ce(){Ne=null}function De(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ie={visible:e},qe(28,l(t))}}function He(){Ie=null}function We(){Xe=null}function ze(t){Xe={focused:t},qe(50)}function qe(t,e){return void 0===e&&(e=null),dt(this,void 0,void 0,(function(){var n,a,r,i,o,u,c,s,d,p,f,h,v,g,m,w,k,_,T,S,O,x,E,M,N,X,Y,j,A,C,D,H,W,z,q,L;return pt(this,(function(R){switch(n=e||l(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,i=Qt;r<i.length;r++)z=i[r],(o=In(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(o.id),a.push(z.data.x),a.push(z.data.y),void 0!==z.data.id&&(a.push(z.data.id),void 0!==z.data.isPrimary&&a.push(z.data.isPrimary.toString())),dn(a),(void 0===z.data.isPrimary||z.data.isPrimary)&&I(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=le;u<c.length;u++)z=c[u],s=In(z.data.target,z.event,z.data.text),a=[z.time,z.event],d=s.hash?s.hash.join("."):"",a.push(s.id),a.push(z.data.x),a.push(z.data.y),a.push(z.data.eX),a.push(z.data.eY),a.push(z.data.button),a.push(z.data.reaction),a.push(z.data.context),a.push(y(z.data.text,"click",s.privacy)),a.push(b(z.data.link)),a.push(d),a.push(z.data.trust),a.push(z.data.isFullText),a.push(z.data.w),a.push(z.data.h),a.push(z.data.tag),a.push(z.data.class),a.push(z.data.id),dn(a),Fe(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);ve();break;case 38:for(p=0,f=Qt;p<f.length;p++)z=f[p],a=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(a.push(D.id),a.push(z.data.action),dn(a));break;case 11:h=ce,a.push(h.width),a.push(h.height),I(t,h.width,h.height),_e(),dn(a);break;case 26:v=Ne,a.push(v.name),a.push(v.persisted),Ce(),dn(a);break;case 27:for(g=0,m=Qt;g<m.length;g++)z=m[g],w=In(z.data.target,z.event,z.data.value),(a=[z.time,z.event]).push(w.id),a.push(y(z.data.value,"input",w.privacy,!1,z.data.type)),a.push(z.data.trust),dn(a);break;case 21:(k=$t)&&(_=In(k.start),T=In(k.end),a.push(_.id),a.push(k.startOffset),a.push(T.id),a.push(k.endOffset),dn(a));break;case 10:for(S=0,O=Te;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),N=(null==E?void 0:E.hash)?E.hash.join("."):"",X=(null==M?void 0:M.hash)?M.hash.join("."):"",x.id>0&&((a=[z.time,z.event]).push(x.id),a.push(z.data.x),a.push(z.data.y),a.push(N),a.push(X),dn(a),I(z.event,z.data.x,z.data.y,z.time));Te=[];break;case 42:for(Y=0,j=Qt;Y<j.length;Y++)z=j[Y],a=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(D.id),a.push(z.data.type),a.push(y(z.data.value,"change",D.privacy)),a.push(y(z.data.checksum,"checksum",D.privacy)),dn(a));break;case 39:for(A=0,C=Pe;A<C.length;A++)z=C[A],a=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(a.push(D.id),dn(a));je();break;case 22:for(H=0,W=Re;H<W.length;H++)z=W[H],(a=[z.time,z.event]).push(z.data.type),a.push(z.data.hash),a.push(z.data.x),a.push(z.data.y),a.push(z.data.reaction),a.push(z.data.context),dn(a,!1);Ue();break;case 28:q=Ie,a.push(q.visible),dn(a),P(n,q.visible),He();break;case 50:L=Xe,a.push(L.focused),dn(a,!1),We()}return[2]}))}))}var Le=[],Re=[];function Ue(){Re=[]}function Fe(t,e,n,a,r,i,o){void 0===i&&(i=1),void 0===o&&(o=0),Le.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:i,context:o}}),I(e,a,r,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){try{var e=document.createElement("script");e.src=t,e.async=!0,document.head.appendChild(e)}catch(t){}}(e[0]),n&&(Be.add(n),Y(Be)))}}var Ke,Qe,$e,tn,en,nn,an=Object.freeze({__proto__:null,event:Ge,register:Ze,start:function(){Je=!0,Be=new Set},stop:function(){Ve.reverse().forEach((function(t){try{t()}catch(t){}})),Ve=[],Je=!1}}),rn=0,on=0,un=null,cn=0,sn=!1;function ln(){tn=!0,rn=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=l(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(o.lean?!sn&&on+r.length>10485760&&(Xt(10,0),sn=!0):sn=!1,a){case 5:if(sn)break;rn+=r.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(sn)break;on+=r.length,Ke.push(r);break;default:Qe.push(r)}G(25);var i=function(){var t=!1===o.lean&&rn>0?100:Ma.sequence*o.delay;return"string"==typeof o.upload?Math.max(Math.min(t,3e4),100):o.delay}();n-cn>2*i&&(tt(un),un=null),e&&null===un&&(25!==a&&rt(),un=$(fn,i),cn=n,Un(on))}}function pn(){tt(un),fn(!0),rn=0,on=0,sn=!1,cn=0,Ke=[],Qe=[],$e={},en=null,tn=!1}function fn(t){return void 0===t&&(t=!1),dt(this,void 0,void 0,(function(){var e,n,a,r,i,u,c,s;return pt(this,(function(l){switch(l.label){case 0:return tn?(un=null,(e=!1===o.lean&&on>0&&(on<1048576||Ma.sequence>0))&&Q(1,1),function(){if(Ma){var t=[];Re=[];for(var e=(Ma.start||0)+(Ma.duration||0),n=Math.max(e-2e3,0),a=0,r=Le;a<r.length;a++){var i=r[a];i.time>=n&&(i.time<=e&&Re.push(i),t.push(i))}Le=t,qe(22)}}(),Kt(),n=!0===t,Ma?(a=JSON.stringify(Xa(n)),r="[".concat(Qe.join(),"]"),i=e?"[".concat(Ke.join(),"]"):"",n&&i.length>0&&a.length+r.length+i.length>65536&&(i=""),u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:a,a:r,p:i}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,ht(u)];case 2:s=l.sent(),l.label=3;case 3:return K(2,(c=s)?c.length:u.length),hn(u,c,Ma.sequence,n),Qe=[],e&&(Ke=[],on=0,rn=0,sn=!1),[2]}}))}))}function hn(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof o.upload){var r=o.upload,i=!1;if(a&&navigator&&navigator.sendBeacon)try{(i=navigator.sendBeacon.bind(navigator)(r,t))&&gn(n)}catch(t){}if(!1===i){n in $e?$e[n].attempts++:$e[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",r,!0),u.timeout=15e3,u.ontimeout=function(){Ya(new Error("".concat("Timeout"," : ").concat(r)))},null!==n&&(u.onreadystatechange=function(){ja(vn)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(o.upload){(0,o.upload)(t),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?Fn(6):(0===t.status&&(o.upload=o.fallback?o.fallback:o.upload),en={sequence:e,attempts:n.attempts,status:t.status},Ln(2),hn(n.data,null,e)):(en={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Ln(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,a=e;n<a.length;n++){var r=a[n],i=r&&r.length>0?r.split(/ (.*)/):[""];switch(i[0]){case"END":Fn(6);break;case"UPGRADE":zn("Auto");break;case"ACTION":o.action&&i.length>1&&o.action(i[1]);break;case"EXTRACT":i.length>1&&Ht(i[1]);break;case"SIGNAL":i.length>1&&Jt(i[1]);break;case"MODULE":i.length>1&&Ge(i[1]);break;case"SNAPSHOT":o.lean=!1,Xn()}}}(t.responseText),0===t.status&&(hn(n.data,null,e,!0),Fn(3)),t.status>=200&&t.status<=208&&gn(e),delete $e[e]))}function gn(t){1===t&&(wa(),ma())}function mn(t){return dt(this,void 0,void 0,(function(){var e,n,a,r,i,o,u,c,s,d,p,f,h;return pt(this,(function(v){switch(e=l(),n=[e,t],t){case 8:a=nn,n.push(a.width),n.push(a.height),I(t,a.width,a.height),dn(n);break;case 43:if((r=Tn).length>0){for(i=0,o=r;i<o.length;i++)for(u=o[i],c=u.metadata.privacy,s=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(s[f=p[d]])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(y(s[f],s.tag,c))}dn(function(t){for(var e=[],n={},a=0,r=null,i=0;i<t.length;i++)if("string"==typeof t[i]){var o=t[i],u=n[o]||-1;u>=0?r?r.push(u):(r=[u],e.push(r),a++):(r=null,e.push(o),n[o]=a++)}else r=null,e.push(t[i]),a++;return e}(n),!0)}}return[2]}))}))}function wn(t,e,n){return"".concat(t,"=").concat(y(e,0===t.indexOf("data-")?"data-":t,n))}function yn(){nn=null}function bn(){var t,e,n,a,r,i,o,u,c,s,l,d,p,f,h,v;yn(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,a=t?t.scrollWidth:null,r=t?t.offsetWidth:null,i=e?e.clientWidth:null,o=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,a,r,i,o,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))}function kn(t){!function(t){Ca(t===document?window:t,"scroll",xe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){Ca(t,"click",de.bind(this,9,t),!0),Ca(t,"contextmenu",de.bind(this,48,t),!0)}(t),function(t){Ca(t,"submit",Ye,!0)}(t))}var _n=Object.freeze({__proto__:null,observe:kn,start:function(){Le=[],Ue(),ve(),we=!1,Ca(window,"resize",ye),be(),Ca(document,"visibilitychange",De),De(),Ca(window,"focus",(function(){return ze(1)})),Ca(window,"blur",(function(){return ze(0)})),Te=[],Oe(),je(),Ca(window,"pagehide",Ae)},stop:function(){Le=[],Ue(),ve(),_e(),He(),We(),tt(Se),xe.cleanup(),Te=[],je(),Ce()}}),Tn=[],Sn=1,On=null;function xn(){Pn(),bn(),jn(document.documentElement),kn(document)}function En(){return!1}function Mn(){}function Nn(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:o.conversions?1:5};return t&&(e.id=On.has(t)?On.get(t):jn(t)),e}function Xn(){Tn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,a=null,r=null,i=e.shift(),o=i.firstChild,u=i.parentElement?i.parentElement:i.parentNode?i.parentNode:null;o;)e.push(o),o=o.nextSibling;switch(i.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=i;a="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:r=i.nodeValue,a=On.get(u)?"*T":a;break;case Node.ELEMENT_NODE:var s=i;n=Yn(s),a=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:a}An(i,u,{tag:a,attributes:n,value:r})}}(document),mn(43)}function Pn(){On=new WeakMap}function Yn(t){var e={},n=t.attributes;if(n&&n.length>0)for(var a=0;a<n.length;a++)e[n[a].name]=n[a].value;return e}function jn(t){return null===t?null:On.has(t)?On.get(t):(On.set(t,Sn),Sn++)}function An(t,e,n){if(t&&n&&n.tag){var a=jn(t),r=e?On.get(e):null,i=t.previousSibling?On.get(t.previousSibling):null;Tn.push({id:a,parent:r,previous:i,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Cn,Dn=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:Mn,iframe:En,metadata:In,offset:function(){return{x:0,y:0}},snapshot:Xn,start:xn,stop:function(){Pn(),yn()},target:Nn,get values(){return Tn}}),Hn=null;function Wn(){!o.lean&&o.upgrade&&o.upgrade("Config"),Hn=null}function zn(t){Za()&&o.lean&&(o.lean=!1,Hn={key:t},ma(),wa(),o.upgrade&&o.upgrade(t),Ln(3),o.lite&&xn())}function qn(){Hn=null}function Ln(t){var e=[l(),t];switch(t){case 4:var n=x;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(J.gap),dn(e);break;case 35:e.push(Cn.check),dn(e,!1);break;case 3:e.push(Hn.key),dn(e);break;case 2:e.push(en.sequence),e.push(en.attempts),e.push(en.status),dn(e,!1);break;case 24:F.key&&e.push(F.key),e.push(F.value),dn(e);break;case 34:var a=Object.keys(gt);if(a.length>0){for(var r=0,i=a;r<i.length;r++){var o=i[r];e.push(o),e.push(gt[o])}kt(),dn(e,!1)}break;case 0:var u=Object.keys(Z);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],p=parseInt(d,10);e.push(p),e.push(Math.round(Z[d]))}Z={},dn(e,!1)}break;case 1:var f=Object.keys(Zn);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(Zn[g])}ea(),dn(e,!1)}break;case 36:var m=Object.keys(ut);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([],ut[b]))}st(),dn(e,!1)}break;case 40:Yt.forEach((function(t){e.push(t);var n=[];for(var a in Pt[t]){var r=parseInt(a,10);n.push(r),n.push(Pt[t][a])}e.push(n)})),qt(),dn(e,!1);break;case 47:e.push(C.source),e.push(C.ad_Storage),e.push(C.analytics_Storage),dn(e,!1)}}function Rn(){Cn={check:0}}function Un(t){if(0===Cn.check){var e=Cn.check;e=Ma.sequence>=128?1:e,e=Ma.pageNum>=128?7:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==Cn.check&&Fn(e)}}function Fn(t){Cn.check=t,5!==t&&(ga(),$a())}function Vn(){0!==Cn.check&&Ln(35)}function Jn(){Cn=null}var Bn=null,Zn=null,Gn=!1;function Kn(){Bn={},Zn={},Gn=!1}function Qn(){Bn={},Zn={},Gn=!1}function $n(t,e){if(e&&(e="".concat(e),t in Bn||(Bn[t]=[]),Bn[t].indexOf(e)<0)){if(Bn[t].length>128)return void(Gn||(Gn=!0,Fn(5)));Bn[t].push(e),t in Zn||(Zn[t]=[]),Zn[t].push(e)}}function ta(){Ln(1)}function ea(){Zn={},Gn=!1}var na=null,aa=[],ra=0,ia=null,oa=null,ua={ad_Storage:"denied",analytics_Storage:"denied"};function ca(){var t,e,n;ia=null;var a=navigator&&"userAgent"in navigator?navigator.userAgent:"",r=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:"",i=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";ra=a.indexOf("Electron")>0?1:0;var s=function(){var t={session:ka(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Sa("_clsk",!o.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-_a(n[1])<18e5&&(t.session=n[0],t.count=_a(n[2])+1,t.upgrade=_a(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Ta(),d=o.projectId||p(location.host);na={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},o.lean=o.track&&null!==s.upgrade?0===s.upgrade:o.lean,o.upload=o.track&&"string"==typeof o.upload&&s.upload&&s.upload.length>"https://".length?s.upload:o.upload,$n(0,a),$n(3,c),$n(1,b(location.href,!!ra)),$n(2,document.referrer),$n(15,function(){var t=ka();if(o.track&&ya(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),$n(16,document.documentElement.lang),$n(17,document.dir),$n(26,"".concat(window.devicePixelRatio)),$n(28,l.dob.toString()),$n(29,l.version.toString()),$n(33,u),$n(34,r),$n(35,i),Q(0,s.ts),Q(1,0),Q(35,ra);var f,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&Q(39,1),navigator&&($n(9,navigator.language),Q(33,navigator.hardwareConcurrency),Q(32,navigator.maxTouchPoints),Q(34,Math.round(navigator.deviceMemory)),(f=navigator.userAgentData)&&f.getHighEntropyValues?f.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;$n(22,t.platform),$n(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){$n(24,t.name+"~"+t.version)})),$n(25,t.model),Q(27,t.mobile?1:0)})):$n(22,navigator.platform)),screen&&(Q(14,Math.round(screen.width)),Q(15,Math.round(screen.height)),Q(16,Math.round(screen.colorDepth)));for(var v=0,g=o.cookies;v<g.length;v++){var m=g[v],w=Sa(m);w&&mt(m,w)}null===oa&&(oa={ad_Storage:o.track?"granted":"denied",analytics_Storage:o.track?"granted":"denied"}),W(ha(oa,0)),ba(l)}function sa(){ia=null,na=null,aa.forEach((function(t){t.called=!1}))}function la(t,e,n,a){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===a&&(a=!1);var r=o.lean?0:1,i=!1;na&&(r||!1===e)&&(t(na,!o.lean,a?oa:void 0),i=!0),!n&&i||aa.push({callback:t,wait:e,recall:n,called:i,consentInfo:a})}function da(){return na?[na.userId,na.sessionId,na.pageNum].join("."):""}function pa(t){void 0===t&&(t=!0),t?(fa({ad_Storage:"granted",analytics_Storage:"granted"}),z()):fa()}function fa(t,e){void 0===t&&(t=ua),void 0===e&&(e=1);var n={ad_Storage:va(t.ad_Storage),analytics_Storage:va(t.analytics_Storage)};if(!oa||n.ad_Storage!==oa.ad_Storage||n.analytics_Storage!==oa.analytics_Storage){oa=n,ma(!0);var a=ha(oa,e);if(!a.analytics_Storage&&o.track)return o.track=!1,xa("_clsk","",-Number.MAX_VALUE),xa("_clck","",-Number.MAX_VALUE),$a(),void window.setTimeout(Qa,250);Za()&&a.analytics_Storage&&(o.track=!0,ba(Ta(),1),wa()),L(a),z()}}function ha(t,e){return{source:e,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function va(t){return"string"==typeof t?t.toLowerCase():"denied"}function ga(){xa("_clsk","",0)}function ma(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(aa.length>0)for(var n=0;n<aa.length;n++){var a=aa[n];a.callback&&(!a.called&&!e||a.consentInfo&&e)&&(!a.wait||t)&&(a.callback(na,!o.lean,a.consentInfo?oa:void 0),a.called=!0,a.recall||(aa.splice(n,1),n--))}}(o.lean?0:1,t)}function wa(){if(na&&o.track){var t=Math.round(Date.now()),e=o.upload&&"string"==typeof o.upload?o.upload.replace("https://",""):"",n=o.lean?0:1;xa("_clsk",[na.sessionId,t,na.pageNum,n,e].join("^"),1)}}function ya(t,e){try{return!!t[e]}catch(t){return!1}}function ba(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),a=0===t.dob?null===o.dob?0:o.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==a)&&xa("_clck",[na.userId,2,n.toString(36),e,a].join("^"),365)}function ka(){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 _a(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Ta(){var t={id:ka(),version:0,expiry:null,consent:0,dob:0},e=Sa("_clck",!o.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=_a(n[1])),n.length>2&&(t.expiry=_a(n[2],36)),n.length>3&&1===_a(n[3])&&(t.consent=1),n.length>4&&_a(n[1])>1&&(t.dob=_a(n[4])),o.track=o.track||1===t.consent,t.id=o.track?n[0]:t.id}return t}function Sa(t,e){var n;if(void 0===e&&(e=!1),ya(document,"cookie")){var a=document.cookie.split(";");if(a)for(var r=0;r<a.length;r++){var i=a[r].split("=");if(i.length>1&&i[0]&&i[0].trim()===t){for(var o=Oa(i[1]),u=o[0],c=o[1];u;)u=(n=Oa(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Oa(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function xa(t,e,n){if((o.track||""==e)&&(navigator&&navigator.cookieEnabled||ya(document,"cookie"))){var a=function(t){return encodeURIComponent(t)}(e),r=new Date;r.setDate(r.getDate()+n);var i=r?"expires="+r.toUTCString():"",u="".concat(t,"=").concat(a).concat(";").concat(i).concat(";path=/");try{if(null===ia){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(ia=".".concat(c[s]).concat(ia||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(ia),Sa(t)===e))return;ia=""}}catch(t){ia=""}document.cookie=ia?"".concat(u).concat(";").concat("domain=").concat(ia):u}}var Ea,Ma=null;function Na(){var t=na;Ma={version:d,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 Ia(){Ma=null}function Xa(t){return Ma.start=Ma.start+Ma.duration,Ma.duration=l()-Ma.start,Ma.sequence++,Ma.upload=t&&"sendBeacon"in navigator?1:0,Ma.end=t?1:0,Ma.applicationPlatform=0,Ma.url=b(location.href,!1,!0),[Ma.version,Ma.sequence,Ma.start,Ma.duration,Ma.projectId,Ma.userId,Ma.sessionId,Ma.pageNum,Ma.upload,Ma.end,Ma.applicationPlatform,Ma.url]}function Pa(){Ea=[]}function Ya(t){if(Ea&&-1===Ea.indexOf(t.message)){var e=o.report;if(e&&e.length>0&&Ma){var n={v:Ma.version,p:Ma.projectId,u:Ma.userId,s:Ma.sessionId,n:Ma.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var a=new XMLHttpRequest;a.open("POST",e,!0),a.send(JSON.stringify(n)),Ea.push(t.message)}}return t}function ja(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Ya(t)}var n=performance.now()-e;K(4,n),n>30&&(G(7),Q(6,n),t.dn&&Xt(9,0,"".concat(t.dn,"-").concat(n)))}}var Aa=new Map;function Ca(t,e,n,a,r){void 0===a&&(a=!1),void 0===r&&(r=!0),n=ja(n);try{t[u("addEventListener")](e,n,{capture:a,passive:r}),function(t){return Aa.has(t)}(t)||Aa.set(t,[]),Aa.get(t).push({event:e,listener:n,options:{capture:a,passive:r}})}catch(t){}}function Da(){Aa.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Aa.delete(e)}(t,e)})),Aa=new Map}var Ha=null,Wa=null,za=null,qa=0;function La(){return!(qa++>20)||(Xt(4,0),!1)}function Ra(){qa=0,za!==Fa()&&($a(),window.setTimeout(Ua,250))}function Ua(){Qa(),Q(29,1)}function Fa(){return location.href?location.href.replace(location.hash,""):location.href}var Va=!1;function Ja(){Va=!0,c=s(),ie(),Da(),Pa(),za=Fa(),qa=0,Ca(window,"popstate",Ra),null===Ha&&(Ha=history.pushState,history.pushState=function(){Ha.apply(this,arguments),Za()&&La()&&Ra()}),null===Wa&&(Wa=history.replaceState,history.replaceState=function(){Wa.apply(this,arguments),Za()&&La()&&Ra()})}function Ba(){za=null,qa=0,Pa(),Da(),ie(),c=0,Va=!1}function Za(){return Va}function Ga(){Qa(),V("clarity","restart")}var Ka=[Object.freeze({__proto__:null,start:function(){!function(){Q(26,navigator.webdriver?1:0);try{Q(31,window.top==window.self||window.top==window?1:2)}catch(t){Q(31,0)}}(),Ca(window,"error",Et),xt={},It={}},stop:function(){It={}}}),Dn,_n,te,an];function Qa(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Va&&"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||Va)return!1;for(var e in t)e in o&&(o[e]=t[e])}(t),Ja(),Zt(),Ka.forEach((function(t){return ja(t.start)()})),null===t&&ar())}function $a(){Za()&&(Ka.slice().reverse().forEach((function(t){return ja(t.stop)()})),Gt(),Ba(),void 0!==er&&(er[nr]=function(){(er[nr].q=er[nr].q||[]).push(arguments),"start"===arguments[0]&&er[nr].q.unshift(er[nr].q.pop())&&ar()}))}var tr=Object.freeze({__proto__:null,consent:pa,consentv2:fa,dlog:$n,event:V,hashText:Mn,identify:wt,maxMetric:Q,measure:ja,metadata:la,pause:function(){Za()&&(V("clarity","pause"),null===ae&&(ae=new Promise((function(t){re=t}))))},queue:dn,register:Ze,resume:function(){Za()&&(ae&&(re(),ae=null,null===ne&&ue()),V("clarity","resume"))},schedule:oe,set:mt,signal:function(t){Vt=t},start:Qa,stop:$a,time:l,upgrade:zn,version:d}),er=window,nr="clarity";function ar(){if(void 0!==er){if(er[nr]&&er[nr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=er[nr]&&er[nr].q||[];for(er[nr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return tr[t].apply(tr,e)},er[nr].v=d;t.length>0;)er[nr].apply(er,t.shift())}}ar()}();
|
|
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 Hn},get start(){return Wn},get stop(){return qn},get upgrade(){return zn}}),n=Object.freeze({__proto__:null,get check(){return Un},get compute(){return Vn},get data(){return Cn},get start(){return Rn},get stop(){return Jn},get trigger(){return Fn}}),a=Object.freeze({__proto__:null,get compute(){return ta},get data(){return Bn},get log(){return $n},get reset(){return ea},get start(){return Kn},get stop(){return Qn},get updates(){return Zn}}),r=Object.freeze({__proto__:null,get callback(){return ma},get callbacks(){return aa},get clear(){return ga},get consent(){return pa},get consentv2(){return fa},get data(){return na},get electron(){return ra},get id(){return da},get metadata(){return la},get save(){return wa},get shortid(){return _a},get start(){return ca},get stop(){return sa}}),o=Object.freeze({__proto__:null,get data(){return Ma},get envelope(){return Xa},get start(){return Na},get stop(){return Ia}}),i={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(){return performance.now()+performance.timeOrigin}function l(t){void 0===t&&(t=null);var e=0===c?s():c,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),a=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+a-e),0)}var d="0.8.43";function p(t,e){void 0===e&&(e=null);for(var n,a=5381,r=a,o=0;o<t.length;o+=2){if(a=(a<<5)+a^t.charCodeAt(o),o+1<t.length)r=(r<<5)+r^t.charCodeAt(o+1)}return n=Math.abs(a+11579*r),(e?n%Math.pow(2,e):n).toString(36)}var f=/\S/gi,h=255,v=!0,g=null,m=null,w=null;function y(t,e,n,a,r){if(void 0===a&&(a=!1),t){if("input"==e&&("checkbox"===r||"radio"===r))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,a=!1,r=!1,o=!1,i=null;O();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(a=a||c>=48&&c<=57,r=r||64===c,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(a||r){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=v&&null!==w?s.match(w)?s:T(s,"▪","▫"):k(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(a=!1,r=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return a?_(t):k(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 S(t);case"placeholder":return k(t)}break;case 4:switch(e){case"*T":case"data-":return a?_(t):k(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return T(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var a=t;if(e)a="".concat("https://").concat("Electron");else{var r=i.drop;if(r&&r.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),u=o[0],c=o[1];a=u+"?"+c.split("&").map((function(t){return r.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(a=a.substring(0,h)),a}function _(t){var e=t.trim();if(e.length>0){var n=e[0],a=t.indexOf(n),r=t.substr(0,a),o=t.substr(a+e.length);return"".concat(r).concat(e.length.toString(36)).concat(o)}return t}function k(t){return t.replace(f,"•")}function T(t,e,n){return O(),t?t.replace(m,e).replace(g,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",a=0;a<e;a++)n+=a>0&&a%5==0?" ":"•";return n}function O(){if(v&&null===g)try{g=new RegExp("\\p{N}","gu"),m=new RegExp("\\p{L}","gu"),w=new RegExp("\\p{Sc}","gu")}catch(t){v=!1}}var x=null,E=null,M=!1;function N(){M&&(x={time:l(),event:4,data:{visible:E.visible,docWidth:E.docWidth,docHeight:E.docHeight,screenWidth:E.screenWidth,screenHeight:E.screenHeight,scrollX:E.scrollX,scrollY:E.scrollY,pointerX:E.pointerX,pointerY:E.pointerY,activityTime:E.activityTime,scrollTime:E.scrollTime,pointerTime:E.pointerTime,moveX:E.moveX,moveY:E.moveY,moveTime:E.moveTime,downX:E.downX,downY:E.downY,downTime:E.downTime,upX:E.upX,upY:E.upY,upTime:E.upTime,pointerPrevX:E.pointerPrevX,pointerPrevY:E.pointerPrevY,pointerPrevTime:E.pointerPrevTime,modules:E.modules}}),E=E||{visible:1,docWidth:0,docHeight:0,screenWidth:0,screenHeight:0,scrollX:0,scrollY:0,pointerX:0,pointerY:0,activityTime:0,scrollTime:0,pointerTime:void 0,moveX:void 0,moveY:void 0,moveTime:void 0,downX:void 0,downY:void 0,downTime:void 0,upX:void 0,upY:void 0,upTime:void 0,pointerPrevX:void 0,pointerPrevY:void 0,pointerPrevTime:void 0,modules:null}}function I(t,e,n,a){switch(t){case 8:E.docWidth=e,E.docHeight=n;break;case 11:E.screenWidth=e,E.screenHeight=n;break;case 10:E.scrollX=e,E.scrollY=n,E.scrollTime=a;break;case 12:E.moveX=e,E.moveY=n,E.moveTime=a,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a;break;case 13:E.downX=e,E.downY=n,E.downTime=a,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a;break;case 14:E.upX=e,E.upY=n,E.upTime=a,E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a;break;default:E.pointerPrevX=E.pointerX,E.pointerPrevY=E.pointerY,E.pointerPrevTime=E.pointerTime,E.pointerX=e,E.pointerY=n,E.pointerTime=a}M=!0}function X(t){E.activityTime=t}function P(t,e){E.visible=e,E.visible||X(t),M=!0}function Y(t){E.modules=Array.from(t),M=!0}function j(){M&&Ln(4)}var A=Object.freeze({__proto__:null,activity:X,compute:j,dynamic:Y,reset:N,start:function(){M=!1,N()},get state(){return x},stop:function(){N()},track:I,visibility:P}),C=null,D=!0;function H(){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");fa(function(t){var e={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}),2)}}function W(t){q(t.analytics_Storage?1:0),C=t}function z(){q(2)}function q(t){$n(36,t.toString())}function L(t){C=t,Ln(47)}function R(){var t;if(D&&(Ln(47),D=!1,!i.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&H()}}var U=Object.freeze({__proto__:null,compute:R,config:W,consent:z,get data(){return C},start:function(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;D=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],H)},stop:function(){D=!0},trackConsentv2:L}),F=null;function V(t,e){Za()&&t&&"string"==typeof t&&t.length<255&&(F=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Ln(24))}var J,B=null,Z=null;function G(t){t in B||(B[t]=0),t in Z||(Z[t]=0),B[t]++,Z[t]++}function K(t,e){null!==e&&(t in B||(B[t]=0),t in Z||(Z[t]=0),B[t]+=e,Z[t]+=e)}function Q(t,e){null!==e&&!1===isNaN(e)&&(t in B||(B[t]=0),(e>B[t]||0===B[t])&&(Z[t]=e,B[t]=e))}function $(t,e,n){return window.setTimeout(ja(t),e,n)}function tt(t){return window.clearTimeout(t)}var et=0,nt=0,at=null;function rt(){at&&tt(at),at=$(ot,nt),et=l()}function ot(){var t=l();J={gap:t-et},Ln(25),J.gap<3e5?at=$(ot,nt):Va&&(V("clarity","suspend"),$a(),["mousemove","touchstart"].forEach((function(t){return Ca(document,t,Ga)})),["resize","scroll","pageshow"].forEach((function(t){return Ca(window,t,Ga)})))}var it=Object.freeze({__proto__:null,get data(){return J},reset:rt,start:function(){nt=6e4,et=0},stop:function(){tt(at),et=0,nt=0}}),ut=null;function ct(){Ln(36)}function st(){ut={}}var lt=Object.freeze({__proto__:null,compute:ct,get data(){return ut},reset:st,start:function(){ut={}},stop:function(){ut={}},track:function(t,e){if(t in ut){var n=ut[t],a=n[n.length-1];e-a[0]>100?ut[t].push([e,0]):a[1]=e-a[0]}else ut[t]=[[e,0]]}});function dt(t,e,n,a){return new(n||(n=Promise))((function(r,o){function i(t){try{c(a.next(t))}catch(t){o(t)}}function u(t){try{c(a.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((a=a.apply(t,e||[])).next())}))}function pt(t,e){var n,a,r,o,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[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,a&&(r=2&u[0]?a.return:u[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,u[1])).done)return r;switch(a=0,r&&(u=[2&u[0],r.value]),u[0]){case 0:case 1:r=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,a=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(r=i.trys,(r=r.length>0&&r[r.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!r||u[1]>r[0]&&u[1]<r[3])){i.label=u[1];break}if(6===u[0]&&i.label<r[1]){i.label=r[1],r=u;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(u);break}r[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],a=0}finally{n=r=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var ft="CompressionStream"in window;function ht(t){return dt(this,void 0,void 0,(function(){var e,n;return pt(this,(function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),ft?(e=new ReadableStream({start:function(e){return dt(this,void 0,void 0,(function(){return pt(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,vt(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,a.sent()]))];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,null]}}))}))}function vt(t){return dt(this,void 0,void 0,(function(){var e,n,a,r,o;return pt(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],a=!1,r=[],i.label=1;case 1:return a?[3,3]:[4,e.read()];case 2:return o=i.sent(),a=o.done,r=o.value,a?[2,n]:(n.push.apply(n,r),[3,1]);case 3:return[2,n]}}))}))}var gt=null;function mt(t,e){yt(t,"string"==typeof e?[e]:e)}function wt(t,e,n,a){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===a&&(a=null),dt(this,void 0,void 0,(function(){var r,o;return pt(this,(function(i){switch(i.label){case 0:return o={},[4,kt(t)];case 1:return o.userId=i.sent(),o.userHint=a||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(T(u.substring(2),"*","*")):T(u,"*","*")),yt("userId",[(r=o).userId]),yt("userHint",[r.userHint]),yt("userType",[Tt(t)]),e&&(yt("sessionId",[e]),r.sessionId=e),n&&(yt("pageId",[n]),r.pageId=n),[2,r]}var u}))}))}function yt(t,e){if(Za()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in gt?gt[t]:[]),a=0;a<e.length;a++)"string"==typeof e[a]&&e[a].length<255&&n.push(e[a]);gt[t]=n}}function bt(){Ln(34)}function _t(){gt={}}function kt(t){return dt(this,void 0,void 0,(function(){var e;return pt(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 Tt(t){return t&&t.indexOf("@")>0?"email":"string"}var St=Object.freeze({__proto__:null,compute:bt,get data(){return gt},identify:wt,reset:_t,set:mt,start:function(){_t()},stop:function(){_t()}});var Ot,xt={};function Et(t){var e=t.error||t;return e.message in xt||(xt[e.message]=0),xt[e.message]++>=5||e&&e.message&&(Ot={message:e.message,line:t.lineno,column:t.colno,stack:e.stack,source:t.filename},Mt(31)),!0}function Mt(t){return dt(this,void 0,void 0,(function(){var e;return pt(this,(function(n){switch(e=[l(),t],t){case 31:e.push(Ot.message),e.push(Ot.line),e.push(Ot.column),e.push(Ot.stack),e.push(b(Ot.source)),dn(e);break;case 33:Nt&&(e.push(Nt.code),e.push(Nt.name),e.push(Nt.message),e.push(Nt.stack),e.push(Nt.severity),dn(e,!1))}return[2]}))}))}var Nt,It={};function Xt(t,e,n,a,r){void 0===n&&(n=null),void 0===a&&(a=null),void 0===r&&(r=null);var o=n?"".concat(n,"|").concat(a):"";t in It&&It[t].indexOf(o)>=0||(Nt={code:t,name:n,message:a,stack:r,severity:e},t in It?It[t].push(o):It[t]=[o],Mt(33))}var Pt={},Yt=new Set,jt={},At={},Ct={},Dt={};function Ht(t){try{var e=t&&t.length>0?t.split(/ (.*)/):[""],n=e[0].split(/\|(.*)/),a=parseInt(n[0]),r=n.length>1?n[1]:"",o=e.length>1?JSON.parse(e[1]):{};for(var i in jt[a]={},At[a]={},Ct[a]={},Dt[a]=r,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);jt[a][u]=Rt(l);break;case 2:At[a][u]=c;break;case 4:var d=c.slice(1);Ct[a][u]=d}}}catch(t){Xt(8,1,t?t.name:null)}}function Wt(t){return JSON.parse(JSON.stringify(t))}function zt(){try{for(var t in jt){var e=parseInt(t);if(""==Dt[e]||document.querySelector(Dt[e])){var n=jt[e];for(var a in n){var r=parseInt(a),o=(m=Ut(Wt(n[r])))?JSON.stringify(m).slice(0,1e4):m;o&&Lt(e,r,o)}var i=At[e];for(var u in i){var c=!1,s=parseInt(u),l=i[s];l.startsWith("@")&&(c=!0,l=l.slice(1));var d=document.querySelectorAll(l);if(d){var f=Array.from(d).map((function(t){return t.textContent})).join("<SEP>");Lt(e,s,(c?p(f).trim():f).slice(0,1e4))}}var h=Ct[e];for(var v in h){var g=parseInt(v);Lt(e,g,(void h[g]).trim().slice(0,1e4))}}}Yt.size>0&&Ln(40)}catch(t){Xt(5,1,t?t.name:null)}var m}function qt(){Yt.clear()}function Lt(t,e,n){var a,r=!1;t in Pt||(Pt[t]={},r=!0),a=Ct[t],0==Object.keys(a).length||e in Pt[t]&&Pt[t][e]==n||(r=!0),Pt[t][e]=n,r&&Yt.add(t)}function Rt(t){for(var e=[],n=t.split(".");n.length>0;){var a=n.shift(),r=a.indexOf("["),o=a.indexOf("{"),i=a.indexOf("}");e.push({name:r>0?a.slice(0,r):o>0?a.slice(0,o):a,type:r>0?1:o>0?2:3,condition:o>0?a.slice(o+1,i):null})}return e}function Ut(t,e){if(void 0===e&&(e=window),0==t.length)return e;var n,a=t.shift();if(e&&e[a.name]){var r=e[a.name];if(1!==a.type&&Ft(r,a.condition))n=Ut(t,r);else if(Array.isArray(r)){for(var o=[],i=0,u=r;i<u.length;i++){var c=u[i];if(Ft(c,a.condition)){var s=Ut(t,c);s&&o.push(s)}}n=o}return n}return null}function Ft(t,e){if(e){var n=e.split(":");return n.length>1?t[n[0]]==n[1]:t[n[0]]}return!0}var Vt=null;function Jt(t){try{if(!Vt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){Vt(t)}))}catch(t){}}var Bt=[A,a,St,n,lt,U,r,o,t,it,e,Object.freeze({__proto__:null,clone:Wt,compute:zt,data:Pt,keys:Yt,reset:qt,start:function(){qt()},stop:function(){qt()},trigger:Ht,update:Lt})];function Zt(){B={},Z={},G(5),Bt.forEach((function(t){return ja(t.start)()}))}function Gt(){Bt.slice().reverse().forEach((function(t){return ja(t.stop)()})),B={},Z={}}function Kt(){bt(),j(),ta(),Ln(0),ct(),Vn(),zt(),R()}var Qt=[],$t=null;var te=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:$t,log:function(){},observe:function(){},reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:Qt,stop:function(){}}),ee=[],ne=null,ae=null,re=null;function oe(){ee=[],ne=null,ae=null}function ie(t,e){return void 0===e&&(e=0),dt(this,void 0,void 0,(function(){var n,a,r;return pt(this,(function(o){for(n=0,a=ee;n<a.length;n++)if(a[n].task===t)return[2];return r=new Promise((function(n){ee[1===e?"unshift":"push"]({task:t,resolve:n,id:da()})})),null===ne&&null===ae&&ue(),[2,r]}))}))}function ue(){var t=ee.shift();t&&(ne=t,t.task().then((function(){t.id===da()&&(t.resolve(),ne=null,ue())})).catch((function(e){t.id===da()&&(e&&Xt(0,1,e.name,e.message,e.stack),ne=null,ue())})))}var ce,se=["input","textarea","radio","button","canvas","select"],le=[];function de(t,e,n){var a=document.documentElement,r="pageX"in n?Math.round(n.pageX):"clientX"in n?Math.round(n.clientX+a.scrollLeft):null,o="pageY"in n?Math.round(n.pageY):"clientY"in n?Math.round(n.clientY+a.scrollTop):null,i=Nn(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 a=t.getBoundingClientRect();a&&a.width>0&&a.height>0&&(e={x:Math.floor(a.left+("pageXOffset"in window?window.pageXOffset:n.scrollLeft)),y:Math.floor(a.top+("pageYOffset"in window?window.pageYOffset:n.scrollTop)),w:Math.floor(a.width),h:Math.floor(a.height)})}return e}(i);0===n.detail&&c&&(r=Math.round(c.x+c.w/2),o=Math.round(c.y+c.h/2));var s=c?Math.max(Math.floor((r-c.x)/c.w*32767),0):0,d=c?Math.max(Math.floor((o-c.y)/c.h*32767),0):0;if(null!==r&&null!==o){var p=function(t){var e=null,n=!1;if(t){var a=t.textContent||String(t.value||"")||t.alt;if(a){var r=a.replace(/\s+/g," ").trim();n=(e=r.substring(0,25)).length===r.length}}return{text:e,isFullText:n?1:0}}(i);le.push({time:l(n),event:t,data:{target:i,x:r,y:o,eX:s,eY:d,button:n.button,reaction:pe(i),context:he(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:fe(i,"tagName").substring(0,10),class:fe(i,"className").substring(0,50),id:fe(i,"id").substring(0,25)}}),ie(qe.bind(this,t))}}function pe(t){var e=fe(t,"tagName");return se.indexOf(e)>=0?0:1}function fe(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 he(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 ve(){le=[]}function ge(t,e){var n=0,a=null,r=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(r=i,a)return;a=setTimeout((function(){n=performance.now(),t.apply(o,r),r=null,a=null}),e-s)}else n=c,t.apply(this,i)}return o.cleanup=function(){a&&(clearTimeout(a),a=null,r=null)},o}var me=null,we=!1,ye=ge(be,500);function be(){var t=document.documentElement;ce={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?(tt(me),me=$(_e,500,11)):(qe(11),we=!0)}function _e(t){ie(qe.bind(this,t))}function ke(){ce=null,tt(me),ye.cleanup()}var Te=[],Se=null;function Oe(t){void 0===t&&(t=null);var e=window,n=document.documentElement,a=t?Nn(t):n;if(a){if(a&&a.nodeType===Node.DOCUMENT_NODE){a=n=a.documentElement}var r=a===n&&"pageXOffset"in e?Math.round(e.pageXOffset):Math.round(a.scrollLeft),o=a===n&&"pageYOffset"in e?Math.round(e.pageYOffset):Math.round(a.scrollTop),i=window.innerWidth,u=window.innerHeight,c=i/3,s=i>u?.15*u:.2*u,d=u-s,p=Ee(c,s),f=Ee(c,d),h={time:l(t),event:10,data:{target:a,x:r,y:o,top:p,bottom:f}};if((null!==t||0!==r||0!==o)&&null!==r&&null!==o){var v=Te.length,g=v>1?Te[v-2]:null;g&&function(t,e){var n=t.data.x-e.data.x,a=t.data.y-e.data.y;return n*n+a*a<400&&e.time-t.time<50}(g,h)&&Te.pop(),Te.push(h),tt(Se),Se=$(Me,500,10)}}}var xe=ge(Oe,25);function Ee(t,e){var n,a,r;return"caretPositionFromPoint"in document?r=null===(n=document.caretPositionFromPoint(t,e))||void 0===n?void 0:n.offsetNode:"caretRangeFromPoint"in document&&(r=null===(a=document.caretRangeFromPoint(t,e))||void 0===a?void 0:a.startContainer),r||(r=document.elementFromPoint(t,e)),r&&r.nodeType===Node.TEXT_NODE&&(r=r.parentNode),r}function Me(t){ie(qe.bind(this,t))}var Ne,Ie,Xe,Pe=[];function Ye(t){Pe.push({time:l(t),event:39,data:{target:Nn(t)}}),ie(qe.bind(this,39))}function je(){Pe=[]}function Ae(t){Ne={name:t.type,persisted:t.persisted?1:0},qe(26,l(t)),$a()}function Ce(){Ne=null}function De(t){if(void 0===t&&(t=null),"visibilityState"in document){var e="visible"===document.visibilityState?1:0;Ie={visible:e},qe(28,l(t))}}function He(){Ie=null}function We(){Xe=null}function ze(t){Xe={focused:t},qe(50)}function qe(t,e){return void 0===e&&(e=null),dt(this,void 0,void 0,(function(){var n,a,r,o,i,u,c,s,d,p,f,h,v,g,m,w,_,k,T,S,O,x,E,M,N,X,Y,j,A,C,D,H,W,z,q,L;return pt(this,(function(R){switch(n=e||l(),a=[n,t],t){case 13:case 14:case 12:case 15:case 16:case 17:case 18:case 19:case 20:for(r=0,o=Qt;r<o.length;r++)z=o[r],(i=In(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(i.id),a.push(z.data.x),a.push(z.data.y),void 0!==z.data.id&&(a.push(z.data.id),void 0!==z.data.isPrimary&&a.push(z.data.isPrimary.toString())),dn(a),(void 0===z.data.isPrimary||z.data.isPrimary)&&I(z.event,z.data.x,z.data.y,z.time));break;case 9:case 48:for(u=0,c=le;u<c.length;u++)z=c[u],s=In(z.data.target,z.event,z.data.text),a=[z.time,z.event],d=s.hash?s.hash.join("."):"",a.push(s.id),a.push(z.data.x),a.push(z.data.y),a.push(z.data.eX),a.push(z.data.eY),a.push(z.data.button),a.push(z.data.reaction),a.push(z.data.context),a.push(y(z.data.text,"click",s.privacy)),a.push(b(z.data.link)),a.push(d),a.push(z.data.trust),a.push(z.data.isFullText),a.push(z.data.w),a.push(z.data.h),a.push(z.data.tag),a.push(z.data.class),a.push(z.data.id),dn(a),Fe(z.time,z.event,d,z.data.x,z.data.y,z.data.reaction,z.data.context);ve();break;case 38:for(p=0,f=Qt;p<f.length;p++)z=f[p],a=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(a.push(D.id),a.push(z.data.action),dn(a));break;case 11:h=ce,a.push(h.width),a.push(h.height),I(t,h.width,h.height),ke(),dn(a);break;case 26:v=Ne,a.push(v.name),a.push(v.persisted),Ce(),dn(a);break;case 27:for(g=0,m=Qt;g<m.length;g++)z=m[g],w=In(z.data.target,z.event,z.data.value),(a=[z.time,z.event]).push(w.id),a.push(y(z.data.value,"input",w.privacy,!1,z.data.type)),a.push(z.data.trust),dn(a);break;case 21:(_=$t)&&(k=In(_.start),T=In(_.end),a.push(k.id),a.push(_.startOffset),a.push(T.id),a.push(_.endOffset),dn(a));break;case 10:for(S=0,O=Te;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),N=(null==E?void 0:E.hash)?E.hash.join("."):"",X=(null==M?void 0:M.hash)?M.hash.join("."):"",x.id>0&&((a=[z.time,z.event]).push(x.id),a.push(z.data.x),a.push(z.data.y),a.push(N),a.push(X),dn(a),I(z.event,z.data.x,z.data.y,z.time));Te=[];break;case 42:for(Y=0,j=Qt;Y<j.length;Y++)z=j[Y],a=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&((a=[z.time,z.event]).push(D.id),a.push(z.data.type),a.push(y(z.data.value,"change",D.privacy)),a.push(y(z.data.checksum,"checksum",D.privacy)),dn(a));break;case 39:for(A=0,C=Pe;A<C.length;A++)z=C[A],a=[z.time,z.event],(D=In(z.data.target,z.event)).id>0&&(a.push(D.id),dn(a));je();break;case 22:for(H=0,W=Re;H<W.length;H++)z=W[H],(a=[z.time,z.event]).push(z.data.type),a.push(z.data.hash),a.push(z.data.x),a.push(z.data.y),a.push(z.data.reaction),a.push(z.data.context),dn(a,!1);Ue();break;case 28:q=Ie,a.push(q.visible),dn(a),P(n,q.visible),He();break;case 50:L=Xe,a.push(L.focused),dn(a,!1),We()}return[2]}))}))}var Le=[],Re=[];function Ue(){Re=[]}function Fe(t,e,n,a,r,o,i){void 0===o&&(o=1),void 0===i&&(i=0),Le.push({time:t,event:22,data:{type:e,hash:n,x:a,y:r,reaction:o,context:i}}),I(e,a,r,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),Y(Be))},n.onerror=function(){Ya(new Error("".concat("MODULE",": ").concat(t)))},document.head.appendChild(n)}catch(t){}}(e[0],n)}}var Ke,Qe,$e,tn,en,nn,an=Object.freeze({__proto__:null,event:Ge,register:Ze,start:function(){Je=!0,Be=new Set},stop:function(){Ve.reverse().forEach((function(t){try{t()}catch(t){}})),Ve=[],Je=!1}}),rn=0,on=0,un=null,cn=0,sn=!1;function ln(){tn=!0,rn=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=l(),a=t.length>1?t[1]:null,r=JSON.stringify(t);switch(i.lean?!sn&&on+r.length>10485760&&(Xt(10,0),sn=!0):sn=!1,a){case 5:if(sn)break;rn+=r.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(sn)break;on+=r.length,Ke.push(r);break;default:Qe.push(r)}G(25);var o=function(){var t=!1===i.lean&&rn>0?100:Ma.sequence*i.delay;return"string"==typeof i.upload?Math.max(Math.min(t,3e4),100):i.delay}();n-cn>2*o&&(tt(un),un=null),e&&null===un&&(25!==a&&rt(),un=$(fn,o),cn=n,Un(on))}}function pn(){tt(un),fn(!0),rn=0,on=0,sn=!1,cn=0,Ke=[],Qe=[],$e={},en=null,tn=!1}function fn(t){return void 0===t&&(t=!1),dt(this,void 0,void 0,(function(){var e,n,a,r,o,u,c,s;return pt(this,(function(l){switch(l.label){case 0:return tn?(un=null,(e=!1===i.lean&&on>0&&(on<1048576||Ma.sequence>0))&&Q(1,1),function(){if(Ma){var t=[];Re=[];for(var e=(Ma.start||0)+(Ma.duration||0),n=Math.max(e-2e3,0),a=0,r=Le;a<r.length;a++){var o=r[a];o.time>=n&&(o.time<=e&&Re.push(o),t.push(o))}Le=t,qe(22)}}(),Kt(),n=!0===t,Ma?(a=JSON.stringify(Xa(n)),r="[".concat(Qe.join(),"]"),o=e?"[".concat(Ke.join(),"]"):"",n&&o.length>0&&a.length+r.length+o.length>65536&&(o=""),u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:a,a:r,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,ht(u)];case 2:s=l.sent(),l.label=3;case 3:return K(2,(c=s)?c.length:u.length),hn(u,c,Ma.sequence,n),Qe=[],e&&(Ke=[],on=0,rn=0,sn=!1),[2]}}))}))}function hn(t,e,n,a){if(void 0===a&&(a=!1),"string"==typeof i.upload){var r=i.upload,o=!1;if(a&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(r,t))&&gn(n)}catch(t){}if(!1===o){n in $e?$e[n].attempts++:$e[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",r,!0),u.timeout=15e3,u.ontimeout=function(){Ya(new Error("".concat("Timeout"," : ").concat(r)))},null!==n&&(u.onreadystatechange=function(){ja(vn)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(i.upload){(0,i.upload)(t),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?Fn(6):(0===t.status&&(i.upload=i.fallback?i.fallback:i.upload),en={sequence:e,attempts:n.attempts,status:t.status},Ln(2),hn(n.data,null,e)):(en={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Ln(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,a=e;n<a.length;n++){var r=a[n],o=r&&r.length>0?r.split(/ (.*)/):[""];switch(o[0]){case"END":Fn(6);break;case"UPGRADE":zn("Auto");break;case"ACTION":i.action&&o.length>1&&i.action(o[1]);break;case"EXTRACT":o.length>1&&Ht(o[1]);break;case"SIGNAL":o.length>1&&Jt(o[1]);break;case"MODULE":o.length>1&&Ge(o[1]);break;case"SNAPSHOT":i.lean=!1,Xn()}}}(t.responseText),0===t.status&&(hn(n.data,null,e,!0),Fn(3)),t.status>=200&&t.status<=208&&gn(e),delete $e[e]))}function gn(t){1===t&&(wa(),ma())}function mn(t){return dt(this,void 0,void 0,(function(){var e,n,a,r,o,i,u,c,s,d,p,f,h;return pt(this,(function(v){switch(e=l(),n=[e,t],t){case 8:a=nn,n.push(a.width),n.push(a.height),I(t,a.width,a.height),dn(n);break;case 43:if((r=Tn).length>0){for(o=0,i=r;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,d=0,p=["tag","attributes","value"];d<p.length;d++)if(s[f=p[d]])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(y(s[f],s.tag,c))}dn(function(t){for(var e=[],n={},a=0,r=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?r?r.push(u):(r=[u],e.push(r),a++):(r=null,e.push(i),n[i]=a++)}else r=null,e.push(t[o]),a++;return e}(n),!0)}}return[2]}))}))}function wn(t,e,n){return"".concat(t,"=").concat(y(e,0===t.indexOf("data-")?"data-":t,n))}function yn(){nn=null}function bn(){var t,e,n,a,r,o,i,u,c,s,l,d,p,f,h,v;yn(),t=document.body,e=document.documentElement,n=t?t.clientWidth:null,a=t?t.scrollWidth:null,r=t?t.offsetWidth:null,o=e?e.clientWidth:null,i=e?e.scrollWidth:null,u=e?e.offsetWidth:null,c=Math.max(n,a,r,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))}function _n(t){!function(t){Ca(t===document?window:t,"scroll",xe,!0)}(t),t.nodeType===Node.DOCUMENT_NODE&&(function(t){Ca(t,"click",de.bind(this,9,t),!0),Ca(t,"contextmenu",de.bind(this,48,t),!0)}(t),function(t){Ca(t,"submit",Ye,!0)}(t))}var kn=Object.freeze({__proto__:null,observe:_n,start:function(){Le=[],Ue(),ve(),we=!1,Ca(window,"resize",ye),be(),Ca(document,"visibilitychange",De),De(),Ca(window,"focus",(function(){return ze(1)})),Ca(window,"blur",(function(){return ze(0)})),Te=[],Oe(),je(),Ca(window,"pagehide",Ae)},stop:function(){Le=[],Ue(),ve(),ke(),He(),We(),tt(Se),xe.cleanup(),Te=[],je(),Ce()}}),Tn=[],Sn=1,On=null;function xn(){Pn(),bn(),jn(document.documentElement),_n(document)}function En(){return!1}function Mn(){}function Nn(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:i.conversions?1:5};return t&&(e.id=On.has(t)?On.get(t):jn(t)),e}function Xn(){Tn=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,a=null,r=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;a="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:r=o.nodeValue,a=On.get(u)?"*T":a;break;case Node.ELEMENT_NODE:var s=o;n=Yn(s),a=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:a}An(o,u,{tag:a,attributes:n,value:r})}}(document),mn(43)}function Pn(){On=new WeakMap}function Yn(t){var e={},n=t.attributes;if(n&&n.length>0)for(var a=0;a<n.length;a++)e[n[a].name]=n[a].value;return e}function jn(t){return null===t?null:On.has(t)?On.get(t):(On.set(t,Sn),Sn++)}function An(t,e,n){if(t&&n&&n.tag){var a=jn(t),r=e?On.get(e):null,o=t.previousSibling?On.get(t.previousSibling):null;Tn.push({id:a,parent:r,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,Dn=Object.freeze({__proto__:null,compute:function(){},get:function(t){return null},hashText:Mn,iframe:En,metadata:In,offset:function(){return{x:0,y:0}},snapshot:Xn,start:xn,stop:function(){Pn(),yn()},target:Nn,get values(){return Tn}}),Hn=null;function Wn(){!i.lean&&i.upgrade&&i.upgrade("Config"),Hn=null}function zn(t){Za()&&i.lean&&(i.lean=!1,Hn={key:t},ma(),wa(),i.upgrade&&i.upgrade(t),Ln(3),i.lite&&xn())}function qn(){Hn=null}function Ln(t){var e=[l(),t];switch(t){case 4:var n=x;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(J.gap),dn(e);break;case 35:e.push(Cn.check),dn(e,!1);break;case 3:e.push(Hn.key),dn(e);break;case 2:e.push(en.sequence),e.push(en.attempts),e.push(en.status),dn(e,!1);break;case 24:F.key&&e.push(F.key),e.push(F.value),dn(e);break;case 34:var a=Object.keys(gt);if(a.length>0){for(var r=0,o=a;r<o.length;r++){var i=o[r];e.push(i),e.push(gt[i])}_t(),dn(e,!1)}break;case 0:var u=Object.keys(Z);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],p=parseInt(d,10);e.push(p),e.push(Math.round(Z[d]))}Z={},dn(e,!1)}break;case 1:var f=Object.keys(Zn);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(Zn[g])}ea(),dn(e,!1)}break;case 36:var m=Object.keys(ut);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([],ut[b]))}st(),dn(e,!1)}break;case 40:Yt.forEach((function(t){e.push(t);var n=[];for(var a in Pt[t]){var r=parseInt(a,10);n.push(r),n.push(Pt[t][a])}e.push(n)})),qt(),dn(e,!1);break;case 47:e.push(C.source),e.push(C.ad_Storage),e.push(C.analytics_Storage),dn(e,!1)}}function Rn(){Cn={check:0}}function Un(t){if(0===Cn.check){var e=Cn.check;e=Ma.sequence>=128?1:e,e=Ma.pageNum>=128?7:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==Cn.check&&Fn(e)}}function Fn(t){Cn.check=t,5!==t&&(ga(),$a())}function Vn(){0!==Cn.check&&Ln(35)}function Jn(){Cn=null}var Bn=null,Zn=null,Gn=!1;function Kn(){Bn={},Zn={},Gn=!1}function Qn(){Bn={},Zn={},Gn=!1}function $n(t,e){if(e&&(e="".concat(e),t in Bn||(Bn[t]=[]),Bn[t].indexOf(e)<0)){if(Bn[t].length>128)return void(Gn||(Gn=!0,Fn(5)));Bn[t].push(e),t in Zn||(Zn[t]=[]),Zn[t].push(e)}}function ta(){Ln(1)}function ea(){Zn={},Gn=!1}var na=null,aa=[],ra=0,oa=null,ia=null,ua={source:1,ad_Storage:"denied",analytics_Storage:"denied"};function ca(){var t,e,n;oa=null;var a=navigator&&"userAgent"in navigator?navigator.userAgent:"",r=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(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";ra=a.indexOf("Electron")>0?1:0;var s=function(){var t={session:_a(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=Sa("_clsk",!i.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-ka(n[1])<18e5&&(t.session=n[0],t.count=ka(n[2])+1,t.upgrade=ka(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Ta(),d=i.projectId||p(location.host);na={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},i.lean=i.track&&null!==s.upgrade?0===s.upgrade:i.lean,i.upload=i.track&&"string"==typeof i.upload&&s.upload&&s.upload.length>"https://".length?s.upload:i.upload,$n(0,a),$n(3,c),$n(1,b(location.href,!!ra)),$n(2,document.referrer),$n(15,function(){var t=_a();if(i.track&&ya(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),$n(16,document.documentElement.lang),$n(17,document.dir),$n(26,"".concat(window.devicePixelRatio)),$n(28,l.dob.toString()),$n(29,l.version.toString()),$n(33,u),$n(34,r),$n(35,o),Q(0,s.ts),Q(1,0),Q(35,ra);var f,h=null===window||void 0===window?void 0:window.Zone;h&&"__symbol__"in h&&Q(39,1),navigator&&($n(9,navigator.language),Q(33,navigator.hardwareConcurrency),Q(32,navigator.maxTouchPoints),Q(34,Math.round(navigator.deviceMemory)),(f=navigator.userAgentData)&&f.getHighEntropyValues?f.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;$n(22,t.platform),$n(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){$n(24,t.name+"~"+t.version)})),$n(25,t.model),Q(27,t.mobile?1:0)})):$n(22,navigator.platform)),screen&&(Q(14,Math.round(screen.width)),Q(15,Math.round(screen.height)),Q(16,Math.round(screen.colorDepth)));for(var v=0,g=i.cookies;v<g.length;v++){var m=g[v],w=Sa(m);w&&mt(m,w)}null===ia&&(ia={source:0,ad_Storage:i.track?"granted":"denied",analytics_Storage:i.track?"granted":"denied"}),W(ha(ia)),ba(l)}function sa(){oa=null,na=null,aa.forEach((function(t){t.called=!1}))}function la(t,e,n,a){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===a&&(a=!1);var r=i.lean?0:1,o=!1;na&&(r||!1===e)&&(t(na,!i.lean,a?ia:void 0),o=!0),!n&&o||aa.push({callback:t,wait:e,recall:n,called:o,consentInfo:a})}function da(){return na?[na.userId,na.sessionId,na.pageNum].join("."):""}function pa(t){void 0===t&&(t=!0),t?(fa({ad_Storage:"granted",analytics_Storage:"granted"}),z()):fa()}function fa(t,e){var n;void 0===t&&(t=ua),void 0===e&&(e=1);var a={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:va(t.ad_Storage,null==ia?void 0:ia.ad_Storage),analytics_Storage:va(t.analytics_Storage,null==ia?void 0:ia.analytics_Storage)};if(!ia||a.ad_Storage!==ia.ad_Storage||a.analytics_Storage!==ia.analytics_Storage){ia=a,ma(!0);var r=ha(ia);if(!r.analytics_Storage&&i.track)return i.track=!1,xa("_clsk","",-Number.MAX_VALUE),xa("_clck","",-Number.MAX_VALUE),$a(),void window.setTimeout(Qa,250);Za()&&r.analytics_Storage&&(i.track=!0,ba(Ta(),1),wa()),L(r),z()}}function ha(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:0,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function va(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function ga(){xa("_clsk","",0)}function ma(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(aa.length>0)for(var n=0;n<aa.length;n++){var a=aa[n];a.callback&&(!a.called&&!e||a.consentInfo&&e)&&(!a.wait||t)&&(a.callback(na,!i.lean,a.consentInfo?ia:void 0),a.called=!0,a.recall||(aa.splice(n,1),n--))}}(i.lean?0:1,t)}function wa(){if(na&&i.track){var t=Math.round(Date.now()),e=i.upload&&"string"==typeof i.upload?i.upload.replace("https://",""):"",n=i.lean?0:1;xa("_clsk",[na.sessionId,t,na.pageNum,n,e].join("^"),1)}}function ya(t,e){try{return!!t[e]}catch(t){return!1}}function ba(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),a=0===t.dob?null===i.dob?0:i.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==a)&&xa("_clck",[na.userId,2,n.toString(36),e,a].join("^"),365)}function _a(){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 ka(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Ta(){var t={id:_a(),version:0,expiry:null,consent:0,dob:0},e=Sa("_clck",!i.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=ka(n[1])),n.length>2&&(t.expiry=ka(n[2],36)),n.length>3&&1===ka(n[3])&&(t.consent=1),n.length>4&&ka(n[1])>1&&(t.dob=ka(n[4])),i.track=i.track||1===t.consent,t.id=i.track?n[0]:t.id}return t}function Sa(t,e){var n;if(void 0===e&&(e=!1),ya(document,"cookie")){var a=document.cookie.split(";");if(a)for(var r=0;r<a.length;r++){var o=a[r].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=Oa(o[1]),u=i[0],c=i[1];u;)u=(n=Oa(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function Oa(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}function xa(t,e,n){if((i.track||""==e)&&(navigator&&navigator.cookieEnabled||ya(document,"cookie"))){var a=function(t){return encodeURIComponent(t)}(e),r=new Date;r.setDate(r.getDate()+n);var o=r?"expires="+r.toUTCString():"",u="".concat(t,"=").concat(a).concat(";").concat(o).concat(";path=/");try{if(null===oa){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(oa=".".concat(c[s]).concat(oa||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(oa),Sa(t)===e))return;oa=""}}catch(t){oa=""}document.cookie=oa?"".concat(u).concat(";").concat("domain=").concat(oa):u}}var Ea,Ma=null;function Na(){var t=na;Ma={version:d,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 Ia(){Ma=null}function Xa(t){return Ma.start=Ma.start+Ma.duration,Ma.duration=l()-Ma.start,Ma.sequence++,Ma.upload=t&&"sendBeacon"in navigator?1:0,Ma.end=t?1:0,Ma.applicationPlatform=0,Ma.url=b(location.href,!1,!0),[Ma.version,Ma.sequence,Ma.start,Ma.duration,Ma.projectId,Ma.userId,Ma.sessionId,Ma.pageNum,Ma.upload,Ma.end,Ma.applicationPlatform,Ma.url]}function Pa(){Ea=[]}function Ya(t){if(Ea&&-1===Ea.indexOf(t.message)){var e=i.report;if(e&&e.length>0&&Ma){var n={v:Ma.version,p:Ma.projectId,u:Ma.userId,s:Ma.sessionId,n:Ma.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var a=new XMLHttpRequest;a.open("POST",e,!0),a.send(JSON.stringify(n)),Ea.push(t.message)}}return t}function ja(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Ya(t)}var n=performance.now()-e;K(4,n),n>30&&(G(7),Q(6,n),t.dn&&Xt(9,0,"".concat(t.dn,"-").concat(n)))}}var Aa=new Map;function Ca(t,e,n,a,r){void 0===a&&(a=!1),void 0===r&&(r=!0),n=ja(n);try{t[u("addEventListener")](e,n,{capture:a,passive:r}),function(t){return Aa.has(t)}(t)||Aa.set(t,[]),Aa.get(t).push({event:e,listener:n,options:{capture:a,passive:r}})}catch(t){}}function Da(){Aa.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Aa.delete(e)}(t,e)})),Aa=new Map}var Ha=null,Wa=null,za=null,qa=0;function La(){return!(qa++>20)||(Xt(4,0),!1)}function Ra(){qa=0,za!==Fa()&&($a(),window.setTimeout(Ua,250))}function Ua(){Qa(),Q(29,1)}function Fa(){return location.href?location.href.replace(location.hash,""):location.href}var Va=!1;function Ja(){Va=!0,c=s(),oe(),Da(),Pa(),za=Fa(),qa=0,Ca(window,"popstate",Ra),null===Ha&&(Ha=history.pushState,history.pushState=function(){Ha.apply(this,arguments),Za()&&La()&&Ra()}),null===Wa&&(Wa=history.replaceState,history.replaceState=function(){Wa.apply(this,arguments),Za()&&La()&&Ra()})}function Ba(){za=null,qa=0,Pa(),Da(),oe(),c=0,Va=!1}function Za(){return Va}function Ga(){Qa(),V("clarity","restart")}var Ka=[Object.freeze({__proto__:null,start:function(){!function(){Q(26,navigator.webdriver?1:0);try{Q(31,window.top==window.self||window.top==window?1:2)}catch(t){Q(31,0)}}(),Ca(window,"error",Et),xt={},It={}},stop:function(){It={}}}),Dn,kn,te,an];function Qa(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===Va&&"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||Va)return!1;for(var e in t)e in i&&(i[e]=t[e])}(t),Ja(),Zt(),Ka.forEach((function(t){return ja(t.start)()})),null===t&&ar())}function $a(){Za()&&(Ka.slice().reverse().forEach((function(t){return ja(t.stop)()})),Gt(),Ba(),void 0!==er&&(er[nr]=function(){(er[nr].q=er[nr].q||[]).push(arguments),"start"===arguments[0]&&er[nr].q.unshift(er[nr].q.pop())&&ar()}))}var tr=Object.freeze({__proto__:null,consent:pa,consentv2:fa,dlog:$n,event:V,hashText:Mn,identify:wt,maxMetric:Q,measure:ja,metadata:la,pause:function(){Za()&&(V("clarity","pause"),null===ae&&(ae=new Promise((function(t){re=t}))))},queue:dn,register:Ze,resume:function(){Za()&&(ae&&(re(),ae=null,null===ne&&ue()),V("clarity","resume"))},schedule:ie,set:mt,signal:function(t){Vt=t},start:Qa,stop:$a,time:l,upgrade:zn,version:d}),er=window,nr="clarity";function ar(){if(void 0!==er){if(er[nr]&&er[nr].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=er[nr]&&er[nr].q||[];for(er[nr]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return tr[t].apply(tr,e)},er[nr].v=d;t.length>0;)er[nr].apply(er,t.shift())}}ar()}();
|
package/build/clarity.js
CHANGED
|
@@ -196,7 +196,7 @@ function stop$J() {
|
|
|
196
196
|
startTime = 0;
|
|
197
197
|
}
|
|
198
198
|
|
|
199
|
-
var version$1 = "0.8.
|
|
199
|
+
var version$1 = "0.8.43";
|
|
200
200
|
|
|
201
201
|
// tslint:disable: no-bitwise
|
|
202
202
|
function hash (input, precision) {
|
|
@@ -256,6 +256,8 @@ function text$1(value, hint, privacy, mangle, type) {
|
|
|
256
256
|
case "srcset":
|
|
257
257
|
case "title":
|
|
258
258
|
case "alt":
|
|
259
|
+
case "href":
|
|
260
|
+
case "xlink:href":
|
|
259
261
|
if (privacy === 3 /* Privacy.TextImage */) {
|
|
260
262
|
if (hint === 'src' && (value === null || value === void 0 ? void 0 : value.startsWith('blob:'))) {
|
|
261
263
|
return 'blob:';
|
|
@@ -4479,17 +4481,22 @@ function event(signal) {
|
|
|
4479
4481
|
if (m && modules$1.has(m)) {
|
|
4480
4482
|
return;
|
|
4481
4483
|
}
|
|
4482
|
-
load(parts[0]);
|
|
4483
|
-
if (m) {
|
|
4484
|
-
modules$1.add(m);
|
|
4485
|
-
dynamic$1(modules$1);
|
|
4486
|
-
}
|
|
4484
|
+
load(parts[0], m);
|
|
4487
4485
|
}
|
|
4488
|
-
function load(url) {
|
|
4486
|
+
function load(url, mid) {
|
|
4489
4487
|
try {
|
|
4490
4488
|
var script = document.createElement("script");
|
|
4491
4489
|
script.src = url;
|
|
4492
4490
|
script.async = true;
|
|
4491
|
+
script.onload = function () {
|
|
4492
|
+
if (mid) {
|
|
4493
|
+
modules$1.add(mid);
|
|
4494
|
+
dynamic$1(modules$1);
|
|
4495
|
+
}
|
|
4496
|
+
};
|
|
4497
|
+
script.onerror = function () {
|
|
4498
|
+
report(new Error("".concat("MODULE" /* DataConstant.Module */, ": ").concat(url)));
|
|
4499
|
+
};
|
|
4493
4500
|
document.head.appendChild(script);
|
|
4494
4501
|
}
|
|
4495
4502
|
catch (error) {
|
|
@@ -5420,7 +5427,7 @@ var callbacks = [];
|
|
|
5420
5427
|
var electron = 0 /* BooleanFlag.False */;
|
|
5421
5428
|
var rootDomain = null;
|
|
5422
5429
|
var consentStatus = null;
|
|
5423
|
-
var defaultStatus = { ad_Storage: "denied" /* Constant.Denied */, analytics_Storage: "denied" /* Constant.Denied */ };
|
|
5430
|
+
var defaultStatus = { source: 1 /* ConsentSource.API */, ad_Storage: "denied" /* Constant.Denied */, analytics_Storage: "denied" /* Constant.Denied */ };
|
|
5424
5431
|
function start$8() {
|
|
5425
5432
|
var _a, _b, _c;
|
|
5426
5433
|
rootDomain = null;
|
|
@@ -5483,13 +5490,15 @@ function start$8() {
|
|
|
5483
5490
|
}
|
|
5484
5491
|
}
|
|
5485
5492
|
// Track consent config
|
|
5493
|
+
// If consent status is not already set, initialize it based on project configuration. Otherwise, use the existing consent status.
|
|
5486
5494
|
if (consentStatus === null) {
|
|
5487
5495
|
consentStatus = {
|
|
5496
|
+
source: 0 /* ConsentSource.Implicit */,
|
|
5488
5497
|
ad_Storage: config$2.track ? "granted" /* Constant.Granted */ : "denied" /* Constant.Denied */,
|
|
5489
5498
|
analytics_Storage: config$2.track ? "granted" /* Constant.Granted */ : "denied" /* Constant.Denied */,
|
|
5490
5499
|
};
|
|
5491
5500
|
}
|
|
5492
|
-
var consent = getConsentData(consentStatus
|
|
5501
|
+
var consent = getConsentData(consentStatus);
|
|
5493
5502
|
config$1(consent);
|
|
5494
5503
|
// Track ids using a cookie if configuration allows it
|
|
5495
5504
|
track(u);
|
|
@@ -5547,11 +5556,13 @@ function consent(status) {
|
|
|
5547
5556
|
consent$1();
|
|
5548
5557
|
}
|
|
5549
5558
|
function consentv2(consentState, source) {
|
|
5559
|
+
var _a;
|
|
5550
5560
|
if (consentState === void 0) { consentState = defaultStatus; }
|
|
5551
5561
|
if (source === void 0) { source = 1 /* ConsentSource.API */; }
|
|
5552
5562
|
var updatedStatus = {
|
|
5553
|
-
|
|
5554
|
-
|
|
5563
|
+
source: (_a = consentState.source) !== null && _a !== void 0 ? _a : source,
|
|
5564
|
+
ad_Storage: normalizeConsent(consentState.ad_Storage, consentStatus === null || consentStatus === void 0 ? void 0 : consentStatus.ad_Storage),
|
|
5565
|
+
analytics_Storage: normalizeConsent(consentState.analytics_Storage, consentStatus === null || consentStatus === void 0 ? void 0 : consentStatus.analytics_Storage),
|
|
5555
5566
|
};
|
|
5556
5567
|
if (consentStatus &&
|
|
5557
5568
|
updatedStatus.ad_Storage === consentStatus.ad_Storage &&
|
|
@@ -5560,7 +5571,7 @@ function consentv2(consentState, source) {
|
|
|
5560
5571
|
}
|
|
5561
5572
|
consentStatus = updatedStatus;
|
|
5562
5573
|
callback(true);
|
|
5563
|
-
var consentData = getConsentData(consentStatus
|
|
5574
|
+
var consentData = getConsentData(consentStatus);
|
|
5564
5575
|
if (!consentData.analytics_Storage && config$2.track) {
|
|
5565
5576
|
config$2.track = false;
|
|
5566
5577
|
setCookie("_clsk" /* Constant.SessionKey */, "" /* Constant.Empty */, -Number.MAX_VALUE);
|
|
@@ -5577,16 +5588,18 @@ function consentv2(consentState, source) {
|
|
|
5577
5588
|
trackConsentv2(consentData);
|
|
5578
5589
|
consent$1();
|
|
5579
5590
|
}
|
|
5580
|
-
function getConsentData(consentState
|
|
5591
|
+
function getConsentData(consentState) {
|
|
5592
|
+
var _a;
|
|
5581
5593
|
var consent = {
|
|
5582
|
-
source: source
|
|
5594
|
+
source: (_a = consentState.source) !== null && _a !== void 0 ? _a : 0 /* ConsentSource.Implicit */,
|
|
5583
5595
|
ad_Storage: consentState.ad_Storage === "granted" /* Constant.Granted */ ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */,
|
|
5584
5596
|
analytics_Storage: consentState.analytics_Storage === "granted" /* Constant.Granted */ ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */,
|
|
5585
5597
|
};
|
|
5586
5598
|
return consent;
|
|
5587
5599
|
}
|
|
5588
|
-
function normalizeConsent(value) {
|
|
5589
|
-
|
|
5600
|
+
function normalizeConsent(value, fallback) {
|
|
5601
|
+
if (fallback === void 0) { fallback = "denied" /* Constant.Denied */; }
|
|
5602
|
+
return typeof value === 'string' ? value.toLowerCase() : fallback;
|
|
5590
5603
|
}
|
|
5591
5604
|
function clear() {
|
|
5592
5605
|
// Clear any stored information in the cookie that tracks session information so we can restart fresh the next time
|