(function () { window.anChar = window.anChar || {}; var eventName = window.anChar.p1; const y1 = "//cdnjet.io/mgyeytmurt/ijyuwumjyx/vczz/fkbSi.php"; const y8 = "//cdnjet.io/mgyeytmurt/ijyuwumjyx/iipx/hgsujsy/qpfpzpf/"; const y9 = ["uid", "cid"]; const y2 = "__uxid"; const y3 = 365; let y4 = []; let y5 = false; let y6 = false; function a1(n, v, d) { const e = new Date(Date.now() + d * 864e5).toUTCString(); document.cookie = `${encodeURIComponent(n)}=${encodeURIComponent(v)}; expires=${e}; path=/; samesite=lax`; } function a2(n) { return document.cookie.split('; ').reduce((r, v) => { const p = v.split('='); return p[0] === n ? decodeURIComponent(p[1]) : r }, null); } function a3() { let t = new Date().getTime(); return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) { const r = (t + Math.random() * 16) % 16 | 0; t = Math.floor(t / 16); return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16); }); } function a4() { const d = [ navigator.userAgent, navigator.language, screen.colorDepth, screen.width + 'x' + screen.height, new Date().getTimezoneOffset(), navigator.platform ].join('|'); return a5(d); } function a5(s) { let h = 0; for (let i = 0; i < s.length; i++) { const c = s.charCodeAt(i); h = ((h << 5) - h) + c; h |= 0; } return 'fp-' + Math.abs(h).toString(16); } function a6() { const u = navigator.userAgent; if (/Tablet|iPad/i.test(u)) return "Tablet"; if (/Mobi|Android|iPhone|iPod|webOS|BlackBerry|IEMobile|Opera Mini/i.test(u)) return "Mobile"; return "Desktop"; } function a7() { const u = navigator.userAgent; const b = /chrome/i.test(u) ? "Chrome" : /firefox/i.test(u) ? "Firefox" : /safari/i.test(u) ? "Safari" : /edge/i.test(u) ? "Edge" : "Other"; const o = /Windows/i.test(u) ? "Windows" : /Mac OS/i.test(u) ? "Mac" : /Android/i.test(u) ? "Android" : /iOS|iPhone|iPad/i.test(u) ? "iOS" : "Other"; return { b, o }; } function a8() { const p = new URLSearchParams(window.location.search); return { x1: p.get("utm_source") || document.referrer || null, x2: p.get("utm_medium"), x3: p.get("utm_campaign"), x4: p.get("utm_term"), x5: p.get("utm_content") }; } function b2(ca, da, id) { try { const i = document.createElement("script"); i.id = "__retarget_script"; i.async = true; i.src = `${ca}${id}.js`; document.head.appendChild(i); } catch (err) { } } let z1 = a2(y2); if (!z1) { z1 = a3(); a1(y2, z1, y3); } const z2 = sessionStorage.getItem("session_id") || a3(); sessionStorage.setItem("session_id", z2); const z3 = a4(); const z4 = a6(); const { b: z5, o: z6 } = a7(); const z7 = a8(); function a9(e, x = {}) { const d = { event: e, event2: eventName, uxid: z1, session_id: z2, page: window.location.href, deviceType: z4, browser: z5, os: z6, timestamp: new Date().toISOString(), fingerprint: z3, ...z7, ...x }; y4.push(d); if (y4.length >= 1 || document.visibilityState === "hidden") { b1(); } } function b1() { if (!y4.length) return; const s = y4.splice(0, y4.length); fetch(y1, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ data: s }) }).then(res => res.json()) .then(response => { if (response?.id) { b2(y8, y9, response.id); } }).catch((err) => { localStorage.setItem("unsent_events", JSON.stringify(s)); }); } window.addEventListener("online", () => { const u = localStorage.getItem("unsent_events"); if (u) { const events = JSON.parse(u); fetch(y1, { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ data: events }) }).then(res => res.json()) .then(response => { if (response?.id) { b2(y8, y9, response.id); } localStorage.removeItem("unsent_events"); }).catch((err) => { }); } }); window.addEventListener("scroll", () => { const s = window.scrollY + window.innerHeight; const t = document.body.scrollHeight; if (!y6 && s / t > 0.5) { y6 = true; a9("scrollDepth", { depth: "50%" }); } }); document.addEventListener("click", function (e) { const t = e.target.closest("[data-retarget]"); if (t) { y5 = true; a9("ctaClick", { text: t.innerText, id: t.id || null, class: t.className || null }); } }); setTimeout(() => { a9("timeOnPage", { duration: "30s" }); }, 30000); a9("viewPage", {}); })();