!function(){"use strict";function e(e,t,n,o){return new(n||(n=Promise))((function(i,r){function a(e){try{s(o.next(e))}catch(e){r(e)}}function l(e){try{s(o.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,l)}s((o=o.apply(e,t||[])).next())}))}var t,n;"function"==typeof SuppressedError&&SuppressedError,function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.INIT=1]="INIT",e[e.CLICK=2]="CLICK",e[e.MAX_SCROLL=5]="MAX_SCROLL",e[e.HEART_BEAT=7]="HEART_BEAT",e[e.CHANGE=8]="CHANGE",e[e.VISIBILITY_CHANGE_GONE=12]="VISIBILITY_CHANGE_GONE",e[e.VISIBILITY_CHANGE_GAINED=13]="VISIBILITY_CHANGE_GAINED",e[e.HOVER=16]="HOVER",e[e.CUSTOM_EVENT=17]="CUSTOM_EVENT",e[e.FORM_SUBMIT=19]="FORM_SUBMIT",e[e.RAGE_CLICK=21]="RAGE_CLICK",e[e.REPLAY_STARTED=22]="REPLAY_STARTED",e[e.FEEDBACK=23]="FEEDBACK",e[e.IDENTIFY=24]="IDENTIFY"}(t||(t={})),function(e){e.ADVANCED="ADVANCED",e.CONSENT_LESS="CONSENT_LESS"}(n||(n={}));const o=()=>{let e=window.location.pathname;return e.endsWith("/")&&(e=e.slice(0,-1)),e||"/"},i=e=>{let t=e,n=[];for(;t&&(Node.ELEMENT_NODE===t.nodeType||Node.TEXT_NODE===t.nodeType);){let e=0,o=!1,i=t.previousSibling;for(;i;)i.nodeType!==Node.DOCUMENT_TYPE_NODE&&i.nodeName===t.nodeName&&e++,i=i.previousSibling;for(i=t.nextSibling;i;){if(i.nodeName===t.nodeName){o=!0;break}i=i.nextSibling}let r=t.prefix?t.prefix+":":"",a=e||o?"["+(e+1)+"]":"";const l=Node.TEXT_NODE===t.nodeType?"text()":t.localName,s=Node.ELEMENT_NODE===t.nodeType&&t.id?`[@id="${t.id}"]`:"";n.push(r+l+(s||a)),t=t.parentNode}return(n.length?"/"+n.reverse().join("/"):"").replace(/\[1\]/g,"")},r=e=>{const t=/@id="([^"]+)"/g,n=[];let o,i=5e3;for(;null!==(o=t.exec(e))&&(n.push(o[1]),i++,!(i>2e3)););return n};var a=Uint8Array,l=Uint16Array,s=Int32Array,d=new a([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),c=new a([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),u=new a([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=function(e,t){for(var n=new l(31),o=0;o<31;++o)n[o]=t+=1<>1|(21845&_)<<1;h=(61680&(h=(52428&h)>>2|(13107&h)<<2))>>4|(3855&h)<<4,w[_]=((65280&h)>>8|(255&h)<<8)>>1}var y=function(e,t,n){for(var o=e.length,i=0,r=new l(t);i>d]=c}else for(a=new l(o),i=0;i>15-e[i]);return a},b=new a(288);for(_=0;_<144;++_)b[_]=8;for(_=144;_<256;++_)b[_]=9;for(_=256;_<280;++_)b[_]=7;for(_=280;_<288;++_)b[_]=8;var E=new a(32);for(_=0;_<32;++_)E[_]=5;var L=y(b,9,0),C=y(E,5,0),x=function(e){return(e+7)/8|0},T=function(e,t,n){n<<=7&t;var o=t/8|0;e[o]|=n,e[o+1]|=n>>8},S=function(e,t,n){n<<=7&t;var o=t/8|0;e[o]|=n,e[o+1]|=n>>8,e[o+2]|=n>>16},I=function(e,t){for(var n=[],o=0;op&&(p=r[o].s);var g=new l(p+1),f=N(n[v-1],g,0);if(f>t){o=0;var w=0,_=f-t,h=1<<_;for(r.sort((function(e,t){return g[t.s]-g[e.s]||e.f-t.f}));ot))break;w+=h-(1<>=_;w>0;){var b=r[o].s;g[b]=0&&w;--o){var E=r[o].s;g[E]==t&&(--g[E],++w)}f=t}return{t:new a(g),l:f}},N=function(e,t,n){return-1==e.s?Math.max(N(e.l,t,n+1),N(e.r,t,n+1)):t[e.s]=n},M=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new l(++t),o=0,i=e[0],r=1,a=function(e){n[o++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++r;else{if(!i&&r>2){for(;r>138;r-=138)a(32754);r>2&&(a(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(a(i),--r;r>6;r-=6)a(8304);r>2&&(a(r-3<<5|8208),r=0)}for(;r--;)a(i);r=1,i=e[s]}return{c:n.subarray(0,o),n:t}},A=function(e,t){for(var n=0,o=0;o>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var r=0;r4&&!U[u[z-1]];--z);var P,W,F,X,K=m+5<<3,Z=A(i,b)+A(r,E)+a,q=A(i,f)+A(r,h)+a+14+3*z+A(j,U)+2*j[16]+3*j[17]+7*j[18];if(v>=0&&K<=Z&&K<=q)return D(t,p,e.subarray(v,v+m));if(T(t,p,1+(q15&&(T(t,p,ee[G]>>5&127),p+=ee[G]>>12)}}}else P=L,W=b,F=C,X=E;for(G=0;G255){S(t,p,P[(te=ne>>18&31)+257]),p+=W[te+257],te>7&&(T(t,p,ne>>23&31),p+=d[te]);var oe=31≠S(t,p,F[oe]),p+=X[oe],oe>3&&(S(t,p,ne>>5&8191),p+=c[oe])}else S(t,p,P[ne]),p+=W[ne]}return S(t,p,P[256]),p+W[256]},O=new s([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),H=new a(0),R=function(e,t,n,o,i,r){var u=r.z||e.length,v=new a(o+u+5*(1+Math.ceil(u/7e3))+i),m=v.subarray(o,v.length-i),p=r.l,w=7&(r.r||0);if(t){w&&(m[0]=r.r>>3);for(var _=O[t-1],h=_>>13,y=8191&_,b=(1<7e3||B>24576)&&(z>423||!p)){w=k(e,m,0,I,N,M,H,B,G,R-G,w),B=A=H=0,G=R;for(var P=0;P<286;++P)N[P]=0;for(P=0;P<30;++P)M[P]=0}var W=2,F=0,X=y,K=U-Y&32767;if(z>2&&V==S(R-K))for(var Z=Math.min(h,z)-1,q=Math.min(32767,R),J=Math.min(258,z);K<=q&&--X&&U!=Y;){if(e[R+W]==e[R+W-K]){for(var $=0;$W){if(W=$,F=K,$>Z)break;var Q=Math.min(K,$-2),ee=0;for(P=0;Pee&&(ee=ne,Y=te)}}}K+=(U=Y)-(Y=E[U])&32767}if(F){I[B++]=268435456|g[W]<<18|f[F];var oe=31&g[W],ie=31&f[F];H+=d[oe]+c[ie],++N[257+oe],++M[ie],j=R+W,++A}else I[B++]=e[R],++N[e[R]]}}for(R=Math.max(R,j);R=u&&(m[w/8|0]=p,re=u),w=D(m,w+1,e.subarray(R,re))}r.i=u}return function(e,t,n){return(null==t||t<0)&&(t=0),(null==n||n>e.length)&&(n=e.length),new a(e.subarray(t,n))}(v,0,o+x(w)+i)};function B(e,t){return function(e,t,n,o,i){if(!i&&(i={l:1},t.dictionary)){var r=t.dictionary.subarray(-32768),l=new a(r.length+e.length);l.set(r),l.set(e,r.length),e=l,i.w=r.length}return R(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,o,i)}(e,t||{},0,0)}var j="undefined"!=typeof TextDecoder&&new TextDecoder;try{j.decode(H,{stream:!0}),1}catch(e){}var G=()=>{let e=function(){return(65536*(1+Math.random())|0).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()},V=e=>{try{const t=B((new TextEncoder).encode(e),{level:3});let n="";for(let e=0;ee(void 0,void 0,void 0,(function*(){const e={userAgent:navigator.userAgent,language:navigator.language,languages:navigator.languages,buildId:navigator.buildID||"",productSub:navigator.productSub,maxTouchPoints:navigator.maxTouchPoints||0,webGLVendor:void 0,webGLRenderer:void 0,colorDepth:screen.colorDepth,deviceMemory:navigator.deviceMemory||0,hardwareConcurrency:navigator.hardwareConcurrency,availableScreenResolution:`${screen.availWidth}x${screen.availHeight}`,timezoneOffset:(new Date).getTimezoneOffset(),timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,canvas:void 0},t=document.createElement("canvas");try{const n=t.getContext("webgl");if(n){const t=n.getExtension("WEBGL_debug_renderer_info");t&&(e.webGLVendor=n.getParameter(t.UNMASKED_VENDOR_WEBGL),e.webGLRenderer=n.getParameter(t.UNMASKED_RENDERER_WEBGL))}}catch(e){}try{const n=t.getContext("2d");if(n){const o="http://www.lalit.org/lab/javascript-css-font-detect/";n.textBaseline="top",n.font="14px 'Arial'",n.textBaseline="alphabetic",n.fillStyle="#f60",n.fillRect(125,1,62,20),n.fillStyle="#069",n.fillText(o,2,15),n.fillStyle="rgba(102, 204, 0, 0.7)",n.fillText(o,4,17),e.canvas=t.toDataURL()}}catch(e){}return JSON.stringify(e)}));const Y="https://event-store.sitebehaviour.com";let z,P=!1;const W=()=>e(void 0,void 0,void 0,(function*(){const t=document.createElement("script");t.src="https://sitebehaviour-cdn.fra1.cdn.digitaloceanspaces.com/replay-script.js",t.defer=!0,document.head.appendChild(t),t.onload=()=>e(void 0,void 0,void 0,(function*(){yield window.rrweb.record({emit:e=>{e&&me(e)},maskTextSelector:"*",maskAllInputs:!0,slimDOMOptions:{comment:!0,headFavicon:!0,headWhitespace:!0,headMetaRobots:!0,headMetaSocial:!0,headMetaVerification:!0},sampling:{input:"last",scroll:150},maskTextFn:e=>(e=>{try{const t=e.trim();return!t||!(t.length<=345&&t.includes("@")&&t.includes("."))}catch(e){return!1}})(e.trim())?e.replace(/[0-9]/g,"*"):e.replace(/./g,"*")})}))})),F=()=>e(void 0,void 0,void 0,(function*(){!!window.__lighthouseMode||!!navigator.userAgent.includes("Lighthouse")||P||("complete"===document.readyState||"interactive"===document.readyState?yield W():window.addEventListener("DOMContentLoaded",(()=>e(void 0,void 0,void 0,(function*(){return yield W()})))),P=!0)}));let X="",K="",Z="",q=0,J=null,$=n.CONSENT_LESS,Q=0,ee=!1,te=!0,ne=!1,oe=!1,ie="",re="";const ae=()=>!!X&&(null!=J&&(!!Z&&(!!K&&!!q))),le=()=>e(void 0,void 0,void 0,(function*(){try{let e=Date.now(),t="";ae()||(t=yield U());const o=yield fetch(`${Y}/tracker/init`,{method:"POST",headers:{"Content-Type":"application/json","x-client-id":X||""},body:JSON.stringify({browserSettings:t?JSON.stringify(t):"",session_id:K,user_id:Z,events:ge(),replayEvents:[]})}),i=yield o.json();if(!i)throw new Error("Failed to fetch settings");if(!i.allow_visit)return document.removeEventListener("click",Le),document.removeEventListener("scroll",Se,!0),document.body.removeEventListener("mouseover",De),document.removeEventListener("input",Oe),window.removeEventListener("visibilitychange",_e,!1),clearInterval(z),void(te=!1);i.allow_replay&&F(),ee=!!i.allow_custom_event,null===J&&(J=!!i.allow_replay),$=i.tracking_type,Q=parseInt(i.min_replay_duration_in_sec+"",10),K=i.session_id,q=e,Z=i.user_id,oe=i.allow_feedback,ie=i.feedback_label,re=i.feedback_primary_color,ne=i.track_identity,window.sessionStorage.setItem("siteBehaviour_session_id_v1",JSON.stringify({session_id:i.session_id,created:e,consume_session_replay_data:null===J?i.allow_replay:J,user_id:i.user_id,tracking_type:i.tracking_type,min_replay_duration_in_sec:i.min_replay_duration_in_sec,allow_custom_event:i.allow_custom_event,allow_visit:i.allow_visit,track_identity:i.track_identity,allow_feedback:i.allow_feedback,feedback_label:i.feedback_label,feedback_primary_color:i.feedback_primary_color})),i.tracking_type===n.ADVANCED&&localStorage.setItem("user_id",i.user_id)}catch(e){return console.error(e),!1}}));var se=()=>e(void 0,void 0,void 0,(function*(){(()=>{const e=localStorage.getItem("user_id")||"";e&&(Z=e);const t=window.sessionStorage.getItem("siteBehaviour_session_id_v1")||"";if(!t)return!1;const o=JSON.parse(t);o.user_id&&(Z=o.user_id,o.tracking_type===n.ADVANCED&&localStorage.setItem("user_id",o.user_id)),o.session_id&&(K=o.session_id),o.created&&(q=o.created),o.tracking_type&&($=o.tracking_type),J=o.consume_session_replay_data,Q=o.min_replay_duration_in_sec||0,ee=!!o.allow_custom_event,te=o.allow_visit,ne=o.track_identity,oe=o.allow_feedback,ie=o.feedback_label,re=o.feedback_primary_color})(),J&&F(),yield le()})),de=e=>X=e;let ce=[],ue=[];const ve=e=>{ce.push(e)},me=e=>{if(!(te&&J&&e))return!1;ue.push(e)};let pe=t.INIT;const ge=()=>{var e;return{b_event_id:G(),event_type:t.INIT,precise_time_stamp:performance.now(),time_stamp:Date.now(),control_type:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?"TOUCH":"MOUSE",available_screen_width:screen.availWidth,available_screen_height:screen.availHeight,screen_height:window.innerHeight,screen_width:window.innerWidth,scroll_height:document.documentElement.scrollHeight,scroll_width:document.documentElement.scrollWidth,url:o(),query:(null===(e=window.location.search)||void 0===e?void 0:e.toLowerCase())||"",refer:document.referrer,scroll_x:window.scrollX,scroll_y:window.scrollY,timezone:Intl.DateTimeFormat().resolvedOptions().timeZone,user_agent:navigator.userAgent}},fe=()=>{pe=t.INIT,ve(ge())};let we=0;const _e=()=>{var e;pe="visible"===document.visibilityState?t.VISIBILITY_CHANGE_GAINED:t.VISIBILITY_CHANGE_GONE;const n="visible"===document.visibilityState?t.VISIBILITY_CHANGE_GAINED:t.VISIBILITY_CHANGE_GONE,i={b_event_id:G(),event_type:n,time_stamp:Date.now(),precise_time_stamp:performance.now(),url:o(),query:(null===(e=window.location.search)||void 0===e?void 0:e.toLowerCase())||""};navigator.sendBeacon&&navigator.sendBeacon(`${Y}/tracker/throw`,JSON.stringify({clientId:X,user_id:Z,session_id:K,events:[i]}))};let he=0,ye=0,be=null,Ee={element:null,timeStamp:0,hierarchy:""};const Le=e=>{var n,a,l,s,d,c,u,v,m;pe=t.CLICK;const p=performance.now(),g=Date.now();let f=(null===(n=e.target.innerText)||void 0===n?void 0:n.toLowerCase())||"";f||"input"===(null===(l=null===(a=e.target)||void 0===a?void 0:a.tagName)||void 0===l?void 0:l.toLowerCase())&&"submit"===(null===(d=null===(s=e.target)||void 0===s?void 0:s.type)||void 0===d?void 0:d.toLowerCase())&&(f=(null===(u=null===(c=e.target)||void 0===c?void 0:c.value)||void 0===u?void 0:u.toLowerCase())||"");const w=null===(v=e.target)||void 0===v?void 0:v.getBoundingClientRect(),_=(null==w?void 0:w.width)||0,h=(null==w?void 0:w.height)||0,y=e.clientX-w.left,b=e.clientY-w.top;let E="";Ee.element===e.target&&g-Ee.timeStamp<400||(Ee={element:e.target,timeStamp:g,hierarchy:i(e.target)}),E=Ee.hierarchy;let L=e.target.id||"";if(!L){const e=r(E);L=e.length>0?e[e.length-1]:""}const C={b_event_id:G(),event_type:t.CLICK,precise_time_stamp:p,time_stamp:g,url:o(),query:(null===(m=window.location.search)||void 0===m?void 0:m.toLowerCase())||"",elem_id:L||"",click_page_x:e.pageX,click_page_y:e.pageY,click_screen_x:e.clientX,click_screen_y:e.clientY,elem_x:y||-1,elem_y:b||-1,elem_height:h||-1,elem_width:_||-1,hierarchy:E,dom_type:e.target.tagName.toLowerCase(),dom_text:(f.length>100?f.substring(0,100)+"...":f||"").trim().replace(/(\r\n|\n|\r)/gm," "),extra_detail_hierarchy:i(e.target)};navigator.sendBeacon?navigator.sendBeacon(`${Y}/tracker/throw`,JSON.stringify({clientId:X,user_id:Z,session_id:K,events:[C]})):ve(C),g-he<=400?(ye++,ye>=2&&(clearTimeout(be),be=setTimeout((e=>{ve(Object.assign(Object.assign({},e),{b_event_id:G(),event_type:t.RAGE_CLICK}))}),400,C))):ye=0,he=g},Ce={},xe={};let Te={element:null,timeStamp:0,hierarchy:""};const Se=e=>{var n,r,a,l,s,d,c;pe=t.MAX_SCROLL;const u=performance.now(),v=Date.now();let m="";Te.element===e.target&&v-Te.timeStamp<400||(Te={element:e.target,timeStamp:v,hierarchy:i(e.target)}),m=Te.hierarchy;const p={b_event_id:G(),event_type:t.MAX_SCROLL,url:o(),query:(null===(n=window.location.search)||void 0===n?void 0:n.toLowerCase())||"",time_stamp:v,precise_time_stamp:u,scroll_x:m?null!==(a=null===(r=e.target)||void 0===r?void 0:r.scrollLeft)&&void 0!==a?a:0:window.scrollX,scroll_y:m?null!==(s=null===(l=e.target)||void 0===l?void 0:l.scrollTop)&&void 0!==s?s:0:window.scrollY,scroll_height:document.documentElement.scrollHeight,scroll_width:document.documentElement.scrollWidth,hierarchy:m},g=`${p.url}${m}`;(!Ce[g]||(p.scroll_x||0)>((null===(d=Ce[g])||void 0===d?void 0:d.scroll_x)||0)&&p.time_stamp-Ce[g].time_stamp>350)&&(Ce[g]=p,ve(p)),(!xe[g]||(p.scroll_y||0)>((null===(c=xe[g])||void 0===c?void 0:c.scroll_y)||0)&&p.time_stamp-xe[g].time_stamp>350)&&(xe[g]=p,ve(p))};let Ie=null,Ne=0,Me=null,Ae=!0;const De=e=>{var n,a,l,s,d;if(Ie===e.target&&Date.now()-Ne>=550&&"body"!==(null==Ie?void 0:Ie.tagName.toLowerCase())&&!Ae&&(null===(n=e.target)||void 0===n?void 0:n.offsetWidth)&&(null===(a=e.target)||void 0===a?void 0:a.offsetWidth)<350){const n=(null===(l=null==Ie?void 0:Ie.innerText)||void 0===l?void 0:l.toLowerCase())||"",a=null===(s=e.target)||void 0===s?void 0:s.getBoundingClientRect(),c=(null==a?void 0:a.width)||0,u=(null==a?void 0:a.height)||0,v=e.clientX-a.left,m=e.clientY-a.top,p=i(Ie);let g=e.target.id||"";if(!g){const e=r(p);g=e.length>0?e[e.length-1]:""}ve({b_event_id:G(),event_type:t.HOVER,time_stamp:Ne,precise_time_stamp:Me,mouse_page_x:e.pageX,mouse_page_y:e.pageY,mouse_screen_x:e.clientX,mouse_screen_y:e.clientY,elem_x:v||-1,elem_y:m||-1,elem_height:u||-1,elem_width:c||-1,url:o(),query:(null===(d=window.location.search)||void 0===d?void 0:d.toLowerCase())||"",elem_id:g||"",hierarchy:p,extra_detail_hierarchy:i(Ie),dom_type:(null==Ie?void 0:Ie.tagName.toLowerCase())||"",dom_text:(n.length>100?n.substring(0,100)+"...":n||"").trim().replace(/(\r\n|\n|\r)/gm," ")}),Ae=!0}Ie!==e.target&&(Ae=!1,Ne=Date.now(),Me=performance.now(),Ie=e.target)};let ke=null;const Oe=e=>{var n,r,a,l,s;pe=t.CHANGE;const d=performance.now(),c=Date.now(),u=i(e.target),v={b_event_id:G(),event_type:t.CHANGE,time_stamp:c,precise_time_stamp:d,url:o(),query:(null===(n=window.location.search)||void 0===n?void 0:n.toLowerCase())||"",elem_id:e.target.id||"",elem_name:(null===(r=e.target.name)||void 0===r?void 0:r.toLowerCase())||"",dom_type:e.target.tagName.toLowerCase(),form_name:(null===(l=null===(a=e.target.form)||void 0===a?void 0:a.name)||void 0===l?void 0:l.toLowerCase())||"",hierarchy:u},m=((null===(s=e.target)||void 0===s?void 0:s.value)||"").toLowerCase().trim();ke&&clearInterval(ke),ke=setTimeout(((e,t,n)=>{ve(v)}),1800,v,m,ne)},He=(e,n)=>{var i;const r=performance.now(),a=Date.now(),l={b_event_id:G(),event_type:t.CUSTOM_EVENT,time_stamp:a,precise_time_stamp:r,url:o(),query:(null===(i=window.location.search)||void 0===i?void 0:i.toLowerCase())||"",custom_event_name:(e||"Unknown").toLowerCase().substring(0,100)};return ve(l),!0};let Re=null;const Be=()=>{Re&&clearInterval(Re),Re=setInterval((()=>{(()=>{var e;if(we>=5&&pe===t.HEART_BEAT||"hidden"===document.visibilityState)return;pe!==t.HEART_BEAT&&(we=0),we++,pe=t.HEART_BEAT;const n={b_event_id:G(),event_type:t.HEART_BEAT,time_stamp:(new Date).getTime(),precise_time_stamp:performance.now(),url:o(),query:(null===(e=window.location.search)||void 0===e?void 0:e.toLowerCase())||"",scroll_x:window.scrollX,scroll_y:window.scrollY};ve(n)})()}),1e4)};let je="SUCCESS",Ge=!1;const Ve=()=>{const e=J&&(Date.now()-q)/1e3>=Q;let n=[];e&&!Ge&&(Ge=!0,n.push({b_event_id:G(),event_type:t.REPLAY_STARTED,precise_time_stamp:performance.now(),time_stamp:Date.now(),url:o(),query:window.location.search||""}));try{if(0===ce.length&&0===ue.length&&0===n.length)return null;const t=e?[...ue]:[],o=[...ce];i=ce.length,ce=ce.slice(i),e&&(e=>{ue=ue.slice(e)})(t.length);return{payload:V(JSON.stringify({user_id:Z,session_id:K,events:[...n,...o],replayEvents:e?t:[]})),INCLUDE_REPLAY_DATA_IN_PAYLOAD:e,toSendBaseEvents:o,toSendReplayEvents:t}}catch(e){return null}var i},Ue=()=>{setInterval((()=>{((...t)=>{e(void 0,[...t],void 0,(function*(e=!1){if(!ae()||!e&&"PENDING"===je)return!1;if(!te)return!1;const t=Ve();if(!t)return!1;try{if(!(yield fetch(`${Y}/tracker/event`,{method:"POST",headers:{"Content-Type":"application/json","x-client-id":X},body:JSON.stringify({payload:t.payload})})).ok)throw"Failed to send events using fetch";return!0}catch(e){return t.toSendBaseEvents.forEach((e=>ve(e))),t.toSendReplayEvents.forEach((e=>me(e))),!1}finally{je="SUCCESS"}}))})()}),1500)},Ye=()=>{const e=document.body.querySelectorAll("*"),t={};for(let n=0,o=e.length;n=-250&&r.left>=-250&&r.bottom<=(window.innerHeight||document.documentElement.clientHeight)+500&&r.right<=(window.innerWidth||document.documentElement.clientWidth)+500))continue;const a=window.getComputedStyle(o);if(!("none"!==a.display&&"hidden"!==a.visibility&&"0"!==a.opacity))continue;let l=r.top;const s=r.left;t[i(o)]={scrollY:l,scrollX:s,height:o.clientHeight,width:o.clientWidth}}window.parent.postMessage({type:"VISIBLE_DOM_ITEM",visibleDomItems:t},"*")};let ze=null;const Pe=e=>{e.target!==ze&&e.target&&(ze=e.target,window.parent.postMessage({type:"HOVER_DOM_ELEMENT",extra_detail_hierarchy:i(ze)},"*"))},We=()=>{window.parent.postMessage({type:"SCROLL_HEIGHT_PERCENTAGE",height:document.documentElement.scrollHeight,rawScroll:window.scrollY,percentage:(window.scrollY+window.innerHeight)/document.documentElement.scrollHeight*100},"*")};let Fe=null,Xe=null;var Ke=e=>{if(e.visibleDom||e.pageHeight){e.visibleDom&&Ye(),e.pageHeight&&We(),document.addEventListener("scroll",(()=>{Fe&&clearTimeout(Fe),e.pageHeight&&We(),Fe=setTimeout((()=>{e.visibleDom&&Ye()}),500)}));new MutationObserver((()=>{Xe&&clearTimeout(Xe),Xe=setTimeout((()=>{e.visibleDom&&Ye(),e.pageHeight&&We()}),500)})).observe(document.body,{childList:!0,subtree:!0}),setInterval((()=>{e.visibleDom&&Ye(),e.pageHeight&&We()}),3500)}e.mouseOver&&document.body.addEventListener("mousemove",Pe)};const Ze=()=>{try{if(document.getElementById("sitebehaviour-feedback-root")||!oe)return!1;let e="",n=0;const i=document.createElement("div");i.id="sitebehaviour-feedback-root",i.style.cssText="z-index: 9999;position: fixed;right: 0px;text-align: center;display: flex;align-items: start; color: black;",i.style.bottom=document.documentElement.clientHeight/2+60+"px";const r=document.createElement("p");r.style.cssText=`background-color: ${re};color: black;padding: 5px 8px;font-size: 14.5px;font-weight: 600;border-radius: 8.4px 8.4px 0px 0px;border: 1px solid black;font-family: sans-serif;user-select: none;transform: rotate(270deg);transform-origin: right bottom;cursor: pointer;`,r.innerHTML="Feedback",i.appendChild(r);const a=document.createElement("div");a.style.cssText="padding: 23px 23px 12px 23px;border: 1.5px solid #434343;background: white;border-radius: 14px;font-family: sans-serif;box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);",a.style.display="none",i.appendChild(a);const l=document.createElement("div");l.style.cssText="font-family: Arial;font-weight: 600;box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);position: absolute;top: -32px;right: 10px;cursor: pointer;background-color: #f1f1f1;border: 1.5px solid #696969;border-radius: 13px;padding: 2px 10px 2px 4px;display: flex;align-items: center;gap: 1.5px;color: #323232;font-size: 12px; user-select: none; ",l.innerHTML='cross Close',a.appendChild(l);const s=document.createElement("p");s.innerHTML=ie||"How would you rate your experience?",s.style.cssText="font-family: Arial;text-align: left;font-size: 18px;font-weight: 500;max-width: 310px;line-height: 26px;",a.appendChild(s);const d=document.createElement("div");a.appendChild(d);const c=document.createElement("div");c.style.cssText="display: flex;justify-content: center;align-items: center;margin-top: 18px;border-radius: 10px;overflow: hidden;border: 1px solid #bababa;",d.appendChild(c);const u=document.createElement("div");u.style.cssText="font-size: 20px;font-weight: bold; background-color: #f1f1f1;font-family: 'Arial';border-right: 1.5px solid #bababa;padding: 25px;cursor: pointer;",u.innerHTML="1",u.onmouseover=()=>u.style.backgroundColor="rgba(195, 195, 195, 0.64)",u.onmouseout=()=>u.style.backgroundColor="#f1f1f1",c.appendChild(u);const v=u.cloneNode(!0);v.innerHTML="2",v.onmouseover=()=>v.style.backgroundColor="rgba(195, 195, 195, 0.64)",v.onmouseout=()=>v.style.backgroundColor="#f1f1f1",c.appendChild(v);const m=u.cloneNode(!0);m.innerHTML="3",m.onmouseover=()=>m.style.backgroundColor="rgba(195, 195, 195, 0.64)",m.onmouseout=()=>m.style.backgroundColor="#f1f1f1",c.appendChild(m);const p=u.cloneNode(!0);p.innerHTML="4",p.onmouseover=()=>p.style.backgroundColor="rgba(195, 195, 195, 0.64)",p.onmouseout=()=>p.style.backgroundColor="#f1f1f1",c.appendChild(p);const g=u.cloneNode(!0);g.innerHTML="5",g.style.borderRight="none",g.onmouseover=()=>g.style.backgroundColor="rgba(195, 195, 195, 0.64)",g.onmouseout=()=>g.style.backgroundColor="#f1f1f1",c.appendChild(g);const f=document.createElement("div");f.style.cssText="display: flex;justify-content: space-between;align-items: center;padding: 3px 10px;",f.innerHTML='\n

👎

\n

🤩

\n ',d.appendChild(f);const w=document.createElement("textarea");w.placeholder="Tell us more about your experience...",w.style.cssText="width: 100%;height: 100px;border: 1.5px solid #a7a7a7;border-radius: 10px;padding: 10px;font-family: Arial;font-size: 16px;resize: none;margin-top: 10px;",w.style.display="none",w.maxLength=1e3,a.appendChild(w);const _=document.createElement("button");_.innerHTML="Send Feedback",_.style.cssText="background-color: #181818;color: white;padding: 10px 22px;border: none;border-radius: 7px;font-family: Arial;font-size: 15px;cursor: pointer;margin-top: 7px;",_.style.display="none",a.appendChild(_),document.body.appendChild(i);const h=document.createElement("div"),y=document.createElement("p");y.style.cssText="font-size: 40px; text-align: center; margin-top: 8px",y.innerHTML="🎉",h.appendChild(y);const b=document.createElement("p");b.style.cssText="font-family: Arial;text-align: left;font-size: 18px;font-weight: bold;max-width: 310px;margin: 0px; padding-bottom: 20px",b.innerHTML="Thank you for your feedback!",h.appendChild(b),h.style.display="none",a.appendChild(h);const E=e=>{w.style.display="block",_.style.display="block",f.style.display="none",n=e;[u,v,m,p,g].forEach(((t,n)=>{t.onmouseover=()=>null,t.onmouseout=()=>null,t.style.backgroundColor=na.style.display="none")),r.addEventListener("click",(()=>a.style.display="none"===a.style.display?"block":"none")),u.addEventListener("click",(()=>E(1))),v.addEventListener("click",(()=>E(2))),m.addEventListener("click",(()=>E(3))),p.addEventListener("click",(()=>E(4))),g.addEventListener("click",(()=>E(5))),w.addEventListener("change",(t=>{var n;return e=(null===(n=t.target)||void 0===n?void 0:n.value)||""})),_.addEventListener("click",(()=>{n&&(((e,n,i)=>{var r;if(!ee)return console.error("Custom events usage exceeded the limit."),!1;const a=performance.now(),l=Date.now(),s={b_event_id:G(),event_type:t.FEEDBACK,time_stamp:l,precise_time_stamp:a,url:o(),query:(null===(r=window.location.search)||void 0===r?void 0:r.toLowerCase())||"",feedback_id:e,feedback_rating:n,feedback_text:i.substring(0,1e3)};ve(s)})(-1,n,e||""),w.style.display="none",_.style.display="none",f.style.display="none",c.style.display="none",s.style.display="none",h.style.display="block")})),!0}catch(e){return!1}},qe=t=>e(void 0,void 0,void 0,(function*(){var e,n,i,r,a;try{de(t);let l="";try{l=(null===(n=null===(e=window.top)||void 0===e?void 0:e.location)||void 0===n?void 0:n.hostname)||""}catch(e){}if("offer.rezenate.design"!==l){if(window.parent!==window)return void(null===(i=window.parent)||void 0===i||i.postMessage({type:"SCRIPT_LOADED"},"*"));if(window.navigator.webdriver)return void(null===(r=window.parent)||void 0===r||r.postMessage({type:"SCRIPT_LOADED"},"*"));if(/HeadlessChrome/.test(navigator.userAgent))return void(null===(a=window.parent)||void 0===a||a.postMessage({type:"SCRIPT_LOADED"},"*"))}if("blocked"===localStorage.getItem("sitebehaviour-tracking-status"))return void console.log("SiteBehaviour tracking is blocked");window.sbVisitorCustomEvent=He,se().then((()=>{Ue(),Ze()})),Be(),(()=>{let e=o();z=setInterval((()=>{const t=o();t!==e&&(e=t,fe())}),2e3),document.addEventListener("click",Le,!0),document.addEventListener("scroll",Se,!0),document.addEventListener("mousemove",De),document.addEventListener("input",Oe),window.addEventListener("visibilitychange",_e,!1),window.addEventListener("unload",_e)})()}catch(e){console.log("Error occurred in SiteBehaviour Script: ",e)}})),Je=()=>e(void 0,void 0,void 0,(function*(){var t;window.location.href.includes("?request-sitebehaviour=block-browser")&&(localStorage.setItem("sitebehaviour-tracking-status","blocked"),window.location.href="https://web.sitebehaviour.com/a/dashboard/?sitebehaviour-message=browser-blocked"),window.addEventListener("message",(t=>e(void 0,void 0,void 0,(function*(){let e=window.location!=window.parent.location?document.referrer:document.location.href;window.parentUrl=e,"SUBSCRIBE"===t.data.type&&Ke({visibleDom:t.data.visibleDom,pageHeight:t.data.pageHeight,mouseOver:t.data.mouseOver}),"SCROLL_Y"===t.data.type&&window.scrollTo({top:t.data.top,left:t.data.left,behavior:"auto"})}))));let n=(null===window||void 0===window?void 0:window.sitebehaviourTrackingSecret)||"";if(!n){const e=document.getElementById("site-behaviour-script")||document.getElementById("site-behaviour-script-v2")||document.querySelector('[src*="sitebehaviour-secret="]');if(!e)return;n=e.getAttribute("data-secret")||(null===(t=e.getAttribute("src"))||void 0===t?void 0:t.split("?sitebehaviour-secret=")[1].split("&")[0])}n?qe(n):console.error("Secret key is missing in the script tag")}));"loading"===document.readyState?document.addEventListener("DOMContentLoaded",(()=>{Je()})):Je()}();