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