"use strict";new function(){const getHashCode=function(val){let hash=0;for(let i=0;i<val.length;i++){const ch=val.charCodeAt(i);hash=(hash<<5)-hash+ch;hash=hash&hash}return hash},ps="https://mx.technolutions.net/ping",pps="https://shg-test-technolutions-net.cdn.technolutions.net/ping?cmd=pp",pt=Date.now(),pai=9e4,pa=[{start:Date.now()}],pd={id:"7b2d3bcf-72b3-7800-ed63-c73809448a25",sid:"aMPU7xA+AS8khV7qvlKILOsJ4cgsNv5SIGWgi59PTSiGhatUkQrnpQ6hyhj8SHPhNV0ZVYULlVOw2H6z0m4N9URMw5EK9xu9QesGADGjWzaCSI4iaiK66Bv1dy12n5ux",hid:"9445e80d0f56fafcaadfc71410c9fa14",u:location.href};let pal=Date.now();document.referrer!=null&&document.referrer!=""&&(pd.r=document.referrer);const activityEventsDocument=["mousemove","touchmove","keyup"],activityEventsWindow=["focus","scroll"];let unloaded=!1;if(window.localStorage){let sessionStart=window.localStorage.getItem(pd.id+"_st");(sessionStart==null||sessionStart==""||Date.now()-sessionStart>108e5)&&(window.localStorage.setItem(pd.id+"_st",pt),sessionStart=pt);const pp=window.localStorage.getItem(pd.id+"_pp");if(pp!=null&&pp!=""){const ppo=JSON.parse(pp),ppu=location.protocol+"//"+location.hostname+location.pathname,pph=getHashCode(ppu).toString();if(ppo[pph]!=null&&ppo[pph].length>0){const ids=[];for(let i=0;i<ppo[pph].length;i++){if(ppo[pph][i].lc!=null){let pp_count=window.localStorage.getItem(pd.id+"_pp_"+ppo[pph][i].id);if(pp_count=pp_count==null||pp_count==""?0:parseFloat(pp_count),pp_count>=ppo[pph][i].lc)continue;window.localStorage.setItem(pd.id+"_pp_"+ppo[pph][i].id,(pp_count+1).toString())}if(ppo[pph][i].sc!=null){let pp_count=window.localStorage.getItem(pd.id+"_pp_"+ppo[pph][i].id);if(pp_count=pp_count==null||pp_count==""?0:parseFloat(pp_count),pp_count>=ppo[pph][i].sc)continue;window.localStorage.setItem(pd.id+"_pp_"+ppo[pph][i].id,(pp_count+1).toString())}if(ppo[pph][i].sn!=null||ppo[pph][i].sx!=null){const pdur=Date.now()-sessionStart;if(ppo[pph][i].sn!=null&&pdur<ppo[pph][i].sn)continue;else if(ppo[pph][i].sx!=null&&pdur>ppo[pph][i].sx)continue}ids.push(ppo[pph][i].id)}if(ids.length>0){const script=document.createElement("SCRIPT");script.async=!0;script.src=pps+"&ppu="+encodeURIComponent(ppu)+"&pp="+encodeURIComponent(ids.join(","))+(ppo.v==null?"":"&v="+ppo.v);document.head.appendChild(script)}}}}const activityStart=function(){pal-Date.now()>pai&&activityStop();pal=Date.now();pa[pa.length-1].stop!=null&&pa.push({start:Date.now()})},activityStop=function(){pa[pa.length-1].stop==null&&(pa[pa.length-1].stop=Date.now()-pal>pai?pal+pai:Date.now())},unload=function(){if(!unloaded){unloaded=!0;pd.d=Date.now()-pt;(pd.d<0||pd.d>36e5)&&(pd.d=0);activityStop();let a=0;for(let i=0;i<pa.length;i++)a+=pa[i].stop-pa[i].start;pd.a=a;try{if(navigator.sendBeacon)navigator.sendBeacon(ps,JSON.stringify(pd));else{const client=new XMLHttpRequest;client.open("POST",ps,!0);client.send(JSON.stringify(pd))}}catch(ex){}}};for(let i=0;i<activityEventsDocument.length;i++)document.addEventListener(activityEventsDocument[i],activityStart);for(let i=0;i<activityEventsWindow.length;i++)window.addEventListener(activityEventsWindow[i],activityStart);window.addEventListener("blur",activityStop);window.addEventListener("beforeunload",unload);window.addEventListener("pagehide",unload);document.addEventListener("visibilitychange",function(){document.visibilityState=="hidden"?activityStop():document.visibilityState=="visible"&&activityStart()})};