<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function generateUuid(){if("function"==typeof crypto.randomUUID)return crypto.randomUUID();const t=new Uint8Array(16);return crypto.getRandomValues(t),[...t].map((t=&gt;t.toString(16).padStart(2,"0"))).join("")}const VISIT_DATA_UUID_STORAGE_KEY="vsd-uuid-key",VISIT_DATA_SESSION_STORAGE_KEY="vsd-key",THIRTY_MINUTES_MILLIS=18e5;function shouldUpdateVisitData(t,e){return null==t?.source||"(direct)"!==e.source&amp;&amp;e.source!==t.source}function setVisitData(){visitData.setOption("cache",!1);const t=visitData.get(),e=visitData.rawData(),a=Date.now();let i=localStorage.getItem("vsd-uuid-key");null==i&amp;&amp;(i=generateUuid(),localStorage.setItem("vsd-uuid-key",i));const s=JSON.parse(sessionStorage.getItem("vsd-key"))??{};return(shouldUpdateVisitData(s,t)||null==s.lastHit||a-s.lastHit&gt;18e5)&amp;&amp;(s.uuid=generateUuid(),Object.assign(s,t),s.rawData=e),s.lastHit=a,sessionStorage.setItem("vsd-key",JSON.stringify(s)),{visitorUuid:i,sessionData:s}}function submitVisitData(t,e){fetch(new Request("/rapi/visit-data",{method:"POST",body:JSON.stringify({...t,eventType:e}),headers:{"Content-Type":"application/json",Accept:"application/json"}}))}
//# sourceMappingURL=shared.min.js.map
</pre></body></html>