"use strict";(()=>{var qe=Object.create;var V=Object.defineProperty,Ze=Object.defineProperties,Qe=Object.getOwnPropertyDescriptor,et=Object.getOwnPropertyDescriptors,tt=Object.getOwnPropertyNames,le=Object.getOwnPropertySymbols,nt=Object.getPrototypeOf,de=Object.prototype.hasOwnProperty,rt=Object.prototype.propertyIsEnumerable;var ue=(e,t,n)=>t in e?V(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,v=(e,t)=>{for(var n in t||(t={}))de.call(t,n)&&ue(e,n,t[n]);if(le)for(var n of le(t))rt.call(t,n)&&ue(e,n,t[n]);return e},I=(e,t)=>Ze(e,et(t));var ot=(e=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(e,{get:(t,n)=>(typeof require!="undefined"?require:t)[n]}):e)(function(e){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var d=(e,t)=>()=>(e&&(t=e(e=0)),t);var st=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var it=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of tt(t))!de.call(e,o)&&o!==n&&V(e,o,{get:()=>t[o],enumerable:!(r=Qe(t,o))||r.enumerable});return e};var at=(e,t,n)=>(n=e!=null?qe(nt(e)):{},it(t||!e||!e.__esModule?V(n,"default",{value:e,enumerable:!0}):n,e));var b=(e,t,n)=>new Promise((r,o)=>{var i=u=>{try{a(n.next(u))}catch(l){o(l)}},s=u=>{try{a(n.throw(u))}catch(l){o(l)}},a=u=>u.done?r(u.value):Promise.resolve(u.value).then(i,s);a((n=n.apply(e,t)).next())});function X(e){let t=new Blob([e],{type:"text/javascript"}),n=URL.createObjectURL(t),r=new Worker(n);return URL.revokeObjectURL(n),r}var me=d(()=>{});function G(){return X('var f="https://api.refix.ai/api/events",I="https://api.refix.ai/api/event",T="https://api.refix.ai/session-replay/events",E="lytixDb";var b=async(g=E)=>{function d(){return new Promise((a,r)=>{let o=indexedDB.open(g);o.onupgradeneeded=e=>{e.target.result.createObjectStore("events",{keyPath:"_idbKey",autoIncrement:!0})},o.onsuccess=e=>{let s=e.target.result;a(s)},o.onerror=e=>{r(e.type)}})}let i=await d();function u(a){let r=Array.isArray(a)?a:[a];return new Promise((o,e)=>{let s=i.transaction("events","readwrite"),c=s.objectStore("events");for(let n of r){let t=c.add(n);t.onsuccess=function(l){},t.onerror=function(l){e()}}s.oncomplete=function(){o()},s.onerror=function(){e()}})}async function p(a){return new Promise(o=>{let e=a.map(t=>t._idbKey),s=IDBKeyRange.bound(e[0],e[e.length-1]),n=i.transaction(["events"],"readwrite").objectStore("events");n.openCursor(s).onsuccess=function(t){let l=t.target.result;l?(l.delete(),l.continue()):o()}})}async function m(){return new Promise((r,o)=>{let c=i.transaction(["events"]).objectStore("events").getAll();c.onsuccess=function(n){let t=n.target.result;r(t)},c.onerror=function(n){o("[IDB]: Failed to get all values from indexeddb")}})}return{database:i,addToDb:u,removeFromDb:p,getAllEventsFromDb:m}},v=b;async function S(g,d,i,u,p=!1,m,a){if(!(g.length===0||!d||!i))try{let r=JSON.stringify(g),e=new ReadableStream({start(t){t.enqueue(new TextEncoder().encode(r)),t.close()}}).pipeThrough(new CompressionStream("gzip")),s=await new Response(e).arrayBuffer(),c=T,n={"Content-Type":"application/gzip","X-Session-Id":d,"X-Domain-Name":i,"X-Event-Timestamp":new Date(u).toISOString(),"X-Rrweb-Batch-Index":m.toString(),"X-Org-Id":a};if(p&&typeof navigator!="undefined"&&navigator.sendBeacon)try{let t=new Blob([s],{type:"application/gzip"});t.size>0&&navigator.sendBeacon(c,t)}catch(t){fetch(c,{method:"POST",headers:n,body:s,keepalive:!0})}else await fetch(c,{method:"POST",headers:n,body:s,keepalive:p})}catch(r){}}(async()=>{self.onmessage=r=>{let o=r.data;if(o&&o.type==="compressAndSendRrwebBatch"&&o.payload){let{events:e,sessionId:s,domainName:c,firstEventTimestamp:n,isUnloading:t,rrwebBatchIndex:l,orgId:x}=o.payload;S(e,s,c,n,t,l,x)}else p(o)},postMessage("Lytix worker initialized and listening for all event types.");let{database:g,addToDb:d,getAllEventsFromDb:i,removeFromDb:u}=await v();async function p(r){try{await y(r)}catch(o){await d(r),a()}}let a=(()=>{let r=null,o=()=>{r||(r=setInterval(c,5e3))},e=()=>{clearInterval(r),r=null},s=!1;async function c(){if(s)return;let n=await i();if(!n.length){e();return}if(n[0].domainName==="boldcare.in"||n[0].domainName!=="refix.ai"){let t=n.filter(l=>"sourceText"in l&&l.sourceText?l.sourceText.length>100||l.sourceText.includes(`\n`):!1);await u(t),n=await i()}if(!n.length){e();return}s=!0;try{await y(n)&&(u(n),e())}catch(t){}finally{s=!1}}return o})();a()})();async function y(g){let d=Array.isArray(g)?f:I,i=await fetch(d,{method:"POST",body:JSON.stringify(g),headers:{"Content-Type":"application/json"}});if(!i.ok)throw new Error(i.statusText);return i.ok}\n')}var pe=d(()=>{"use strict";me()});var Y,x,D,B=d(()=>{"use strict";Y="_lxuid",x="_lxsid",D="LYTIX_ORG_ID"});var y,R=d(()=>{"use strict";y=(c=>(c.BUTTON="button",c.ANCHOR="a",c.DIV="div",c.HEADING="heading",c.IMAGE="img",c.INPUT="input",c.TEXTAREA="textarea",c.SPAN="span",c.LI="li",c.TR="tr",c.radio="radio",c.checkbox="checkbox",c.select="select",c))(y||{})});function ge(e,t=0){return(m[e[t+0]]+m[e[t+1]]+m[e[t+2]]+m[e[t+3]]+"-"+m[e[t+4]]+m[e[t+5]]+"-"+m[e[t+6]]+m[e[t+7]]+"-"+m[e[t+8]]+m[e[t+9]]+"-"+m[e[t+10]]+m[e[t+11]]+m[e[t+12]]+m[e[t+13]]+m[e[t+14]]+m[e[t+15]]).toLowerCase()}var m,Ee=d(()=>{m=[];for(let e=0;e<256;++e)m.push((e+256).toString(16).slice(1))});function K(){if(!z){if(typeof crypto=="undefined"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");z=crypto.getRandomValues.bind(crypto)}return z(ct)}var z,ct,fe=d(()=>{ct=new Uint8Array(16)});var lt,j,ve=d(()=>{lt=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),j={randomUUID:lt}});function ut(e,t,n){var o,i,s;e=e||{};let r=(s=(i=e.random)!=null?i:(o=e.rng)==null?void 0:o.call(e))!=null?s:K();if(r.length<16)throw new Error("Random bytes length must be >= 16");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=r[a];return t}return ge(r)}function dt(e,t,n){return j.randomUUID&&!t&&!e?j.randomUUID():ut(e,t,n)}var _,he=d(()=>{ve();fe();Ee();_=dt});var $=d(()=>{he()});var U,Se,ye,Te,Ie,J,be,M,O=d(()=>{"use strict";U=()=>{let e=navigator.userAgent;return/(tablet|ipad|playbook|silk)|(android(?!.*mobi))/i.test(e)?"tablet":/Mobile|Android|iP(hone|od)|IEMobile|BlackBerry|Kindle|Silk-Accelerated|(hpw|web)OS|Opera M(obi|ini)/.test(e)?"mobile":"desktop"},Se=()=>{let e=navigator.userAgent;return/Windows/.test(e)?"Windows":/Macintosh|Mac/.test(e)?"MacOS":/Linux/.test(e)?"Linux":/Android/.test(e)?"Android":/iOS|iPad|iPhone|iPod/.test(e)?"iOS":"Unknown"},ye=()=>{let e=navigator.userAgent;return/Firefox/.test(e)?"Firefox":/OPR|Opera/.test(e)?"Opera":/Edg|Edge/.test(e)?"Microsoft Edge":/Chrome/.test(e)&&!/Edg|Edge/.test(e)?"Google Chrome":/Safari/.test(e)&&!/Chrome/.test(e)?"Safari":/Trident|MSIE/.test(e)?"Internet Explorer":"Unknown"},Te=()=>navigator.language||"Unknown",Ie=()=>{try{return Intl.DateTimeFormat().resolvedOptions().timeZone||"Unknown"}catch(e){return"Unknown"}},J=e=>{let t=document.documentElement.scrollTop/(document.body.scrollHeight-document.documentElement.clientHeight);return e?Number(t.toFixed(e)):t},be=(e,t=300)=>{let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}},M=e=>{let t=[];for(;e&&e.nodeType==Node.ELEMENT_NODE;e=e.parentNode){let o=0;for(let a=e.previousElementSibling;a;a=a.previousElementSibling)a.id!=="lytix-flex-layout-container"&&a.nodeName==e.nodeName&&++o;let i=e.tagName.toLowerCase(),s=o>0?`[${o+1}]`:"";t.splice(0,0,`${i}${s}`)}let r=`/${t.join("/")}`.replace(/\/svg/g,'/*[name()="svg"]');return r=r.replace(/\/path/g,'/*[name()="path"]'),r=r.replace(/\/circle/g,'/*[name()="circle"]'),r=r.replace(/\/g/g,'/*[name()="g"]'),r=r.replace(/\[(\d+)\]/g,"[$1]"),r=r.replace(/\[(@\w+="[^"]*")\]/g,"[$1]"),r}});var Le,we,xe=d(()=>{"use strict";Le="https://api.refix.ai/session-replay/events",we=e=>`https://api.refix.ai/api/organisation/${e}/script-settings`});function Oe(e,t,n,r,o=!1,i,s){return b(this,null,function*(){if(!(e.length===0||!t||!n))try{let a=JSON.stringify(e),l=new ReadableStream({start(c){c.enqueue(new TextEncoder().encode(a)),c.close()}}).pipeThrough(new CompressionStream("gzip")),p=yield new Response(l).arrayBuffer(),E=Le,T={"Content-Type":"application/gzip","X-Session-Id":t,"X-Domain-Name":n,"X-Event-Timestamp":new Date(r).toISOString(),"X-Rrweb-Batch-Index":i.toString(),"X-Org-Id":s};if(o&&typeof navigator!="undefined"&&navigator.sendBeacon)try{let c=new Blob([p],{type:"application/gzip"});c.size>0&&navigator.sendBeacon(E,c)}catch(c){fetch(E,{method:"POST",headers:T,body:p,keepalive:!0})}else yield fetch(E,{method:"POST",headers:T,body:p,keepalive:o})}catch(a){}})}var _e,P,q,gt,Z,N,Q,A=d(()=>{"use strict";$();B();O();R();xe();_e=()=>{let e=localStorage.getItem(Y);if(e)return e;let t=_();return localStorage.setItem(Y,t),t},P=()=>{let e=q(),{id:t,expiry:n,timeoutId:r}=e;if(!t||!n||Date.now()>n){let a=gt();return localStorage.setItem(x,JSON.stringify(a)),a.id}clearTimeout(r);let o=n-Date.now(),i=setTimeout(()=>{localStorage.removeItem(x)},o),s={id:t,expiry:n,timeoutId:i};return localStorage.setItem(x,JSON.stringify(s)),t},q=()=>{let e=localStorage.getItem(x);return JSON.parse(e!=null?e:"null")||{id:null,expiry:null,timeoutId:null}},gt=()=>{let e=_(),n=U()==="mobile"?3e5:18e5,r=new Date().getTime()+n,o=setTimeout(()=>{localStorage.removeItem(x)},n);return{id:e,expiry:r,timeoutId:o}},Z=(e,t)=>t==="a"||e.tagName==="BUTTON"&&e.getAttribute("type")==="submit"?!0:e.id==="__next"?!1:e.onclick!==null||!!e._clickEventListenersCount,N=({parent:e,localName:t})=>{let n=e.getElementsByTagName(t);return Array.from(n).filter(r=>Z(r,t))},Q=e=>b(void 0,null,function*(){try{let t=P(),n=we(e),r=new URL(n);t&&r.searchParams.set("sessionId",t);let o=yield fetch(r.toString());return o.ok?yield o.json():{tracking:{enabled:!0},recording:{enabled:!0}}}catch(t){return{tracking:{enabled:!0},recording:{enabled:!0}}}})});var Et,ft,Ne,Ae=d(()=>{"use strict";Et=e=>{let t=new URL(e).hostname.toLowerCase(),n=window.location.hostname.toLowerCase();return t===n},ft=e=>e?{isAvailable:!0}:"referrerPolicy"in document&&document.referrerPolicy!==""&&["no-referrer","same-origin"].includes(document.referrerPolicy)?{isAvailable:!1,reason:`Referrer Policy: ${document.referrerPolicy}`}:{isAvailable:!1,reason:"No Referrer Present"},Ne=e=>{let{isAvailable:t,reason:n}=ft(e);return t?Et(e)?"Internal":e:n!=null&&n.includes("Policy")||n!=null&&n.includes("Cross-Origin")?"Unknown":"Direct"}});var f,ee,F,ke,Re,Pe,Ce,De,L=d(()=>{"use strict";$();R();B();O();A();Ae();f=()=>{let e=window[D];return{id:_(),userId:_e(),sessionId:P(),timestamp:Date.now(),deviceType:U(),operatingSystem:Se(),browser:ye(),deviceLanguage:Te(),timezone:Ie(),screenWidth:window.innerWidth,domainName:window.location.hostname.replace(/^www\./,""),orgId:e}},ee=()=>v({eventType:"SessionStart"},f()),F=()=>{let e=window.location.href,t=window.location.pathname,n=document.title,r=Ne(document.referrer),o=new URLSearchParams(window.location.search),i=o.get("utm_source"),s=o.get("utm_medium"),a=o.get("utm_campaign"),u=o.get("utm_content"),l=o.get("utm_term"),p=o.get("ref"),E=o.get("source");return I(v({},f()),{eventType:"PageView",pageURL:e,pagePath:t,pageTitle:n,referrer:r,utm_source:i,utm_medium:s,utm_campaign:a,utm_content:u,utm_term:l,ref:p,source:E})},ke=({elementType:e,nativeEvent:t,xPath:n})=>{var E,T,c,se,ie,ae,ce;let r,o,i,s,a=t.currentTarget.id,u=a||null,l=t.currentTarget.getAttribute("data-tracking-name"),p=t.currentTarget.ariaLabel;switch(e){case"button":r=(E=t.currentTarget.innerText)!=null?E:null;break;case"a":{let S=t.currentTarget;r=(T=S.innerText)!=null?T:null,s=(c=S.href)!=null?c:null}break;case"heading":r=(se=t.currentTarget.innerText)!=null?se:null;break;case"img":{let S=t.currentTarget;o=(ie=S.src)!=null?ie:null,i=(ae=S.alt)!=null?ae:null}break;case"input":break;default:{r=(ce=t.currentTarget.innerText)!=null?ce:null;break}}return v(I(v({},f()),{eventType:"Click",eventSource:e,pathName:window.location.pathname,imageSourceUrl:o,imageAltText:i,sourceText:r,xPath:n,htmlId:u,href:s,ariaLabel:p}),l&&{dataTrackingName:l})},Re=()=>{var a;let e=window.location.href,t=window.location.pathname,n=document.title,r=Number(document.documentElement.scrollTop.toFixed(2)),o=document.documentElement.scrollHeight,i=document.documentElement.clientHeight,s=isNaN(J(2))?0:(a=J(2))!=null?a:0;return I(v({},f()),{eventType:"Scroll",pageURL:e,pagePath:t,pageTitle:n,scrollTop:r,scrollHeight:o,clientHeight:i,scrollPercenage:s})},Pe=e=>{let t=window.location.href,n=window.location.pathname,r=e.target,o=r.id,i=r.name;return I(v({},f()),{eventType:"FormSubmit",pageURL:t,pagePath:n,formId:o,formName:i})},Ce=e=>{let t=e.currentTarget,n=t.options[t.selectedIndex],r=n.text,o=n.value,i=t.selectedIndex;return I(v({},f()),{eventType:"Select",pagePath:window.location.pathname,selectedOptionText:r,selectedOptionValue:o,selectedIndex:i})},De=e=>{var i,s,a,u,l;let t=e.target,n=t.parentNode,r="";n.tagName==="LABEL"?r=(i=n.innerText||n.textContent)!=null?i:"":r=(l=((a=(s=t.labels)==null?void 0:s[0])==null?void 0:a.innerText)||((u=t.labels)==null?void 0:u[0].textContent))!=null?l:"";let o="";return"placeholder"in t&&(o=t.placeholder),I(v({},f()),{eventType:"Focus",pagePath:window.location.pathname,label:r,placeholder:o,type:t.tagName.toLowerCase(),name:t.name})}});var Be,Ue=d(()=>{"use strict";R();L();A();O();Be=e=>{let t={},n=()=>{Object.values(y).forEach(s=>{t[s]=N({parent:document,localName:s}).map(a=>{let u=l=>{let p=M(l.currentTarget);r(l,s,p)};return{attach:()=>a.addEventListener("click",u),remove:()=>a.removeEventListener("click",u)}})})},r=(s,a,u)=>{if(s.LYTIX_IGNORE_BUBBLED_EVENT)return;let l=ke({elementType:a,nativeEvent:s,xPath:u});e.postMessage(l),s.LYTIX_IGNORE_BUBBLED_EVENT=!0},o=()=>{i(),n(),Object.values(t).forEach(s=>{s.forEach(a=>{a.attach()})})},i=()=>{Object.values(t).forEach(s=>{s.forEach(a=>{a.remove()})})};return{attachListeners:o,removeListeners:i,handleClick:r}}});var Me,Fe=d(()=>{"use strict";L();Me=e=>{let t=document.querySelectorAll("input, textarea, select"),n=i=>{let s=De(i);e.postMessage(s)},r=()=>{o(),t.forEach(i=>{i.addEventListener("focus",n)})},o=()=>{t.forEach(i=>{i.removeEventListener("focus",n)})};return{handleFocus:n,attachListeners:r}}});var We,He=d(()=>{"use strict";L();We=e=>{let t=o=>{let i=Pe(o);e.postMessage(i)},n=()=>{r(),document.addEventListener("submit",t)},r=()=>{document.removeEventListener("submit",t)};return{attachListeners:n,removeListeners:r}}});var Ve,Xe=d(()=>{"use strict";L();O();Ve=(e,t=500)=>{let n=0,r=be(()=>{let s=window.scrollY;s>n&&e.postMessage(Re()),n=s<=0?0:s},t);return{attachListeners:()=>{window.removeEventListener("scroll",r),window.addEventListener("scroll",r)},removeListeners:()=>{window.removeEventListener("scroll",r)}}}});var Ge,Ye=d(()=>{"use strict";L();Ge=e=>{let t=document.querySelectorAll("select"),n=i=>{let s=Ce(i);e.postMessage(s)},r=()=>{o(),t.forEach(i=>{i.addEventListener("change",n)})},o=()=>{t.forEach(i=>{i.removeEventListener("change",n)})};return{handleSelect:n,attachListeners:r}}});var _t=st(H=>{pe();B();R();Ue();Fe();He();Xe();Ye();L();O();A();A();A();var te=!1,g=null,w=[],vt=6e3,ht=12e4,ze=null,St=null,W=null,yt=()=>b(H,null,function*(){if(W)return W;try{return W=(yield import("https://cdn.jsdelivr.net/npm/rrweb@2.0.0-alpha.4/+esm")).record,W}catch(e){return null}});(()=>{var n;let e=document.querySelector("[data-refix-token]"),t=(n=e==null?void 0:e.dataset)==null?void 0:n.refixToken;t&&!g&&Q(t).then(r=>{g=r}).catch(r=>{})})();var h=G(),{attachListeners:Ke,handleClick:Tt}=Be(h),{attachListeners:It}=Ve(h),{attachListeners:bt}=We(h),{attachListeners:je,handleSelect:ne}=Ge(h),{attachListeners:$e,handleFocus:re}=Me(h),Lt=()=>{h.postMessage([ee(),F()]),It(),Ke(),bt(),je(),$e(),window.addEventListener("focus",()=>{let e=q(),{id:t,expiry:n,timeoutId:r}=e;(!t||!n||Date.now()>n)&&h.postMessage([ee(),F()])})},oe=0,k=(e=!1)=>{var s;if(w.length===0)return;let t=[...w];w=[];let n=(s=t[0])==null?void 0:s.timestamp,r=P(),o=f().domainName,i=f().orgId;if(!r||!o||!n){w=[...t,...w];return}e?Oe(t,r,o,n,e,oe,i):h.postMessage({type:"compressAndSendRrwebBatch",payload:{events:t,sessionId:r,domainName:o,firstEventTimestamp:n,isUnloading:e,rrwebBatchIndex:oe,orgId:i}}),oe++},Je=new URLSearchParams(window.location.search).get("lx-labelling-mode")==="true"||localStorage.getItem("lx-labelling-mode")==="true",wt=()=>b(H,null,function*(){try{let t=yield(yield fetch("https://script.refix.ai/labelling.js")).text(),n=document.createElement("script");n.textContent=t,n.defer=!0,n.async=!0,document.body.appendChild(n)}catch(e){}}),xt=()=>{let e=location.href,t=new MutationObserver(r=>{if(location.href!==e){e=location.href,h.postMessage(F()),Ke(),je(),$e();return}for(let o of r)o.type=="childList"&&(o.addedNodes.forEach(i=>n(i)),o.removedNodes.forEach(i=>n(i,!0)))}),n=(r,o=!1)=>{if(r.nodeType!==1||["script"].includes(r.nodeName))return;let i=Object.values(y).includes(r.localName)&&Z(r,r.localName);Object.values(y).forEach(s=>{let a=N({parent:r,localName:s});(i?a.concat(r):a).forEach(l=>{let p=E=>{let T=M(E.target);Tt(E,s,T)};o?l.removeEventListener("click",p):(l.removeEventListener("click",p),l.addEventListener("click",p))})}),N({parent:r,localName:"select"}).forEach(s=>{o?s.removeEventListener("change",ne):(s.removeEventListener("change",ne),s.addEventListener("change",ne))}),["input","textarea","select"].forEach(s=>{N({parent:r,localName:s}).forEach(a=>{o?a.removeEventListener("focus",re):(a.removeEventListener("focus",re),a.addEventListener("focus",re))})})};t.observe(document,{subtree:!0,childList:!0})},C=()=>b(H,null,function*(){var n,r,o,i;if(te)return;let e=document.querySelector("[data-refix-token]"),t=(n=e==null?void 0:e.dataset)==null?void 0:n.refixToken;if(!g&&t&&(g=yield Q(t)),!((r=g==null?void 0:g.tracking)!=null&&r.enabled)){te=!0;return}if(!e)return null;if(window[D]=t,Je){wt();return}if(Lt(),xt(),(o=g==null?void 0:g.recording)!=null&&o.enabled)try{let s=yield yt();typeof s=="function"&&(St=s({emit(a){w.push(a),w.length>=vt&&k()},mousemoveWait:100}),ze===null&&(ze=window.setInterval(k,ht)),window.addEventListener("pagehide",()=>{k(!0)}),window.addEventListener("beforeunload",()=>{k(!0)}),window.addEventListener("unload",()=>{k(!0)}),window.addEventListener("visibilitychange",()=>{k(!0)}))}catch(s){}else(i=g==null?void 0:g.recording)!=null&&i.enabled;te=!0});(function(){if(Element.prototype.hasOwnProperty("_lytix_prototypes_patched"))return;let e=Element.prototype.addEventListener,t=Element.prototype.removeEventListener;if(typeof e!="function"||typeof t!="function"){Element.prototype._addEventListener&&typeof Element.prototype._addEventListener=="function"&&(Element.prototype.addEventListener=Element.prototype._addEventListener),Element.prototype._removeEventListener&&typeof Element.prototype._removeEventListener=="function"&&(Element.prototype.removeEventListener=Element.prototype._removeEventListener);return}Element.prototype.addEventListener=function(n,r,o){e.call(this,n,r,o),n==="click"&&(this._clickEventListenersCount=this._clickEventListenersCount||0,this._clickEventListenersCount+=1)},Element.prototype.removeEventListener=function(n,r,o){t.call(this,n,r,o),n==="click"&&this._clickEventListenersCount&&this._clickEventListenersCount>0&&(this._clickEventListenersCount-=1)},Object.defineProperty(Element.prototype,"_lytix_prototypes_patched",{value:!0,writable:!1,enumerable:!1,configurable:!1})})();document.readyState=="loading"?(document.addEventListener("DOMContentLoaded",C),window.addEventListener("load",C)):document.readyState=="interactive"?(Je||C(),window.addEventListener("load",C)):C()});_t();})(); //version = "1.0.4 - 2024-06-22"