@gemx-dev/clarity-js 0.8.59 → 0.8.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/clarity.extended.js +1 -1
- package/build/clarity.insight.js +1 -1
- package/build/clarity.js +76 -46
- package/build/clarity.min.js +1 -1
- package/build/clarity.module.js +76 -46
- package/build/clarity.performance.js +1 -1
- package/package.json +1 -1
- package/src/core/config.ts +1 -0
- package/src/core/dynamic.ts +7 -2
- package/src/core/version.ts +1 -1
- package/src/data/metadata.ts +3 -3
- package/src/interaction/encode.ts +1 -0
- package/src/interaction/index.ts +3 -0
- package/src/interaction/pageshow.ts +35 -0
- package/src/interaction/scroll.ts +3 -2
- package/test/consentv2.test.ts +1164 -0
- package/types/core.d.ts +1 -0
- package/types/data.d.ts +15 -1
- package/types/interaction.d.ts +1 -0
package/build/clarity.module.js
CHANGED
|
@@ -171,6 +171,7 @@ var config$2 = {
|
|
|
171
171
|
throttleDom: true,
|
|
172
172
|
conversions: false,
|
|
173
173
|
includeSubdomains: true,
|
|
174
|
+
modules: [],
|
|
174
175
|
};
|
|
175
176
|
|
|
176
177
|
function api(method) {
|
|
@@ -184,7 +185,7 @@ var startTime = 0;
|
|
|
184
185
|
function computeStartTime() {
|
|
185
186
|
return performance.now() + performance.timeOrigin;
|
|
186
187
|
}
|
|
187
|
-
function start$
|
|
188
|
+
function start$O() {
|
|
188
189
|
startTime = computeStartTime();
|
|
189
190
|
}
|
|
190
191
|
// event.timestamp is number of milliseconds elapsed since the document was loaded
|
|
@@ -427,7 +428,7 @@ function redact$1(value) {
|
|
|
427
428
|
var state$b = null;
|
|
428
429
|
var buffer = null;
|
|
429
430
|
var update$2 = false;
|
|
430
|
-
function start$
|
|
431
|
+
function start$N() {
|
|
431
432
|
update$2 = false;
|
|
432
433
|
reset$u();
|
|
433
434
|
}
|
|
@@ -580,7 +581,7 @@ var baseline = /*#__PURE__*/Object.freeze({
|
|
|
580
581
|
compute: compute$g,
|
|
581
582
|
dynamic: dynamic$1,
|
|
582
583
|
reset: reset$u,
|
|
583
|
-
start: start$
|
|
584
|
+
start: start$N,
|
|
584
585
|
get state () { return state$b; },
|
|
585
586
|
stop: stop$J,
|
|
586
587
|
track: track$8,
|
|
@@ -607,7 +608,7 @@ function event$1(a, b) {
|
|
|
607
608
|
|
|
608
609
|
var data$k = null;
|
|
609
610
|
var updates$3 = null;
|
|
610
|
-
function start$
|
|
611
|
+
function start$M() {
|
|
611
612
|
data$k = {};
|
|
612
613
|
updates$3 = {};
|
|
613
614
|
count$1(5 /* Metric.InvokeCount */);
|
|
@@ -668,7 +669,7 @@ var data$j;
|
|
|
668
669
|
var last = 0;
|
|
669
670
|
var interval = 0;
|
|
670
671
|
var timeout$7 = null;
|
|
671
|
-
function start$
|
|
672
|
+
function start$L() {
|
|
672
673
|
interval = 60000 /* Setting.PingInterval */;
|
|
673
674
|
last = 0;
|
|
674
675
|
}
|
|
@@ -700,12 +701,12 @@ var ping$1 = /*#__PURE__*/Object.freeze({
|
|
|
700
701
|
__proto__: null,
|
|
701
702
|
get data () { return data$j; },
|
|
702
703
|
reset: reset$s,
|
|
703
|
-
start: start$
|
|
704
|
+
start: start$L,
|
|
704
705
|
stop: stop$H
|
|
705
706
|
});
|
|
706
707
|
|
|
707
708
|
var data$i = null;
|
|
708
|
-
function start$
|
|
709
|
+
function start$K() {
|
|
709
710
|
data$i = {};
|
|
710
711
|
}
|
|
711
712
|
function stop$G() {
|
|
@@ -740,7 +741,7 @@ var summary = /*#__PURE__*/Object.freeze({
|
|
|
740
741
|
compute: compute$e,
|
|
741
742
|
get data () { return data$i; },
|
|
742
743
|
reset: reset$r,
|
|
743
|
-
start: start$
|
|
744
|
+
start: start$K,
|
|
744
745
|
stop: stop$G,
|
|
745
746
|
track: track$7
|
|
746
747
|
});
|
|
@@ -870,7 +871,7 @@ function read(stream) {
|
|
|
870
871
|
}
|
|
871
872
|
|
|
872
873
|
var data$h = null;
|
|
873
|
-
function start$
|
|
874
|
+
function start$J() {
|
|
874
875
|
reset$q();
|
|
875
876
|
}
|
|
876
877
|
function set(variable, value) {
|
|
@@ -972,7 +973,7 @@ var variable = /*#__PURE__*/Object.freeze({
|
|
|
972
973
|
identify: identify,
|
|
973
974
|
reset: reset$q,
|
|
974
975
|
set: set,
|
|
975
|
-
start: start$
|
|
976
|
+
start: start$J,
|
|
976
977
|
stop: stop$F
|
|
977
978
|
});
|
|
978
979
|
|
|
@@ -982,7 +983,7 @@ var variables = {};
|
|
|
982
983
|
var selectors = {};
|
|
983
984
|
var hashes = {};
|
|
984
985
|
var validation = {};
|
|
985
|
-
function start$
|
|
986
|
+
function start$I() {
|
|
986
987
|
reset$p();
|
|
987
988
|
}
|
|
988
989
|
// Input string is of the following form:
|
|
@@ -1171,7 +1172,7 @@ var extract = /*#__PURE__*/Object.freeze({
|
|
|
1171
1172
|
data: data$g,
|
|
1172
1173
|
keys: keys,
|
|
1173
1174
|
reset: reset$p,
|
|
1174
|
-
start: start$
|
|
1175
|
+
start: start$I,
|
|
1175
1176
|
stop: stop$E,
|
|
1176
1177
|
trigger: trigger$2,
|
|
1177
1178
|
update: update$1
|
|
@@ -1200,7 +1201,7 @@ function decodeCookieValue(value) {
|
|
|
1200
1201
|
|
|
1201
1202
|
var rootDomain = null;
|
|
1202
1203
|
var COOKIE_SEP = "^" /* Constant.Caret */;
|
|
1203
|
-
function start$
|
|
1204
|
+
function start$H() {
|
|
1204
1205
|
rootDomain = null;
|
|
1205
1206
|
}
|
|
1206
1207
|
function stop$D() {
|
|
@@ -1285,7 +1286,7 @@ var cookie = /*#__PURE__*/Object.freeze({
|
|
|
1285
1286
|
COOKIE_SEP: COOKIE_SEP,
|
|
1286
1287
|
getCookie: getCookie,
|
|
1287
1288
|
setCookie: setCookie,
|
|
1288
|
-
start: start$
|
|
1289
|
+
start: start$H,
|
|
1289
1290
|
stop: stop$D
|
|
1290
1291
|
});
|
|
1291
1292
|
|
|
@@ -1318,9 +1319,9 @@ function signalsEvent(signalsPayload) {
|
|
|
1318
1319
|
}
|
|
1319
1320
|
|
|
1320
1321
|
var modules$2 = [baseline, dimension, variable, limit, summary, cookie, consent$2, metadata$1, envelope$1, upload$1, ping$1, upgrade$1, extract];
|
|
1321
|
-
function start$
|
|
1322
|
+
function start$G() {
|
|
1322
1323
|
// Metric needs to be initialized before we can start measuring. so metric is not wrapped in measure
|
|
1323
|
-
start$
|
|
1324
|
+
start$M();
|
|
1324
1325
|
modules$2.forEach(function (x) { return measure(x.start)(); });
|
|
1325
1326
|
}
|
|
1326
1327
|
function stop$C() {
|
|
@@ -1344,7 +1345,7 @@ function compute$b() {
|
|
|
1344
1345
|
|
|
1345
1346
|
var history$5 = [];
|
|
1346
1347
|
var data$f;
|
|
1347
|
-
function start$
|
|
1348
|
+
function start$F() {
|
|
1348
1349
|
history$5 = [];
|
|
1349
1350
|
max(26 /* Metric.Automation */, navigator.webdriver ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */);
|
|
1350
1351
|
try {
|
|
@@ -1368,7 +1369,7 @@ function check$5(id, target, input) {
|
|
|
1368
1369
|
}
|
|
1369
1370
|
|
|
1370
1371
|
var state$a = [];
|
|
1371
|
-
function start$
|
|
1372
|
+
function start$E() {
|
|
1372
1373
|
reset$o();
|
|
1373
1374
|
}
|
|
1374
1375
|
function observe$c(root) {
|
|
@@ -1408,14 +1409,14 @@ function offset(element) {
|
|
|
1408
1409
|
|
|
1409
1410
|
var UserInputTags = ["input", "textarea", "radio", "button", "canvas", "select"];
|
|
1410
1411
|
var state$9 = [];
|
|
1411
|
-
function start$
|
|
1412
|
+
function start$D() {
|
|
1412
1413
|
reset$n();
|
|
1413
1414
|
}
|
|
1414
1415
|
function observe$b(root) {
|
|
1415
|
-
bind(root, "click", handler$
|
|
1416
|
-
bind(root, "contextmenu", handler$
|
|
1416
|
+
bind(root, "click", handler$4.bind(this, 9 /* Event.Click */, root), true);
|
|
1417
|
+
bind(root, "contextmenu", handler$4.bind(this, 48 /* Event.ContextMenu */, root), true);
|
|
1417
1418
|
}
|
|
1418
|
-
function handler$
|
|
1419
|
+
function handler$4(event, root, evt) {
|
|
1419
1420
|
var frame = iframe(root);
|
|
1420
1421
|
var d = frame && frame.contentDocument ? frame.contentDocument.documentElement : document.documentElement;
|
|
1421
1422
|
var x = "pageX" in evt ? Math.round(evt.pageX) : ("clientX" in evt ? Math.round(evt["clientX"] + d.scrollLeft) : null);
|
|
@@ -1554,7 +1555,7 @@ function stop$A() {
|
|
|
1554
1555
|
}
|
|
1555
1556
|
|
|
1556
1557
|
var state$8 = [];
|
|
1557
|
-
function start$
|
|
1558
|
+
function start$C() {
|
|
1558
1559
|
reset$m();
|
|
1559
1560
|
}
|
|
1560
1561
|
function observe$a(root) {
|
|
@@ -1575,7 +1576,7 @@ function stop$z() {
|
|
|
1575
1576
|
|
|
1576
1577
|
var timeout$6 = null;
|
|
1577
1578
|
var state$7 = [];
|
|
1578
|
-
function start$
|
|
1579
|
+
function start$B() {
|
|
1579
1580
|
reset$l();
|
|
1580
1581
|
}
|
|
1581
1582
|
function observe$9(root) {
|
|
@@ -1619,7 +1620,7 @@ var timeout$5 = null;
|
|
|
1619
1620
|
var hasPrimaryTouch = false;
|
|
1620
1621
|
var primaryTouchId = 0;
|
|
1621
1622
|
var activeTouchPointIds = new Set();
|
|
1622
|
-
function start$
|
|
1623
|
+
function start$A() {
|
|
1623
1624
|
reset$k();
|
|
1624
1625
|
}
|
|
1625
1626
|
function observe$8(root) {
|
|
@@ -1646,7 +1647,7 @@ function mouse(event, root, evt) {
|
|
|
1646
1647
|
}
|
|
1647
1648
|
// Check for null values before processing this event
|
|
1648
1649
|
if (x !== null && y !== null) {
|
|
1649
|
-
handler$
|
|
1650
|
+
handler$3({ time: time(evt), event: event, data: { target: target(evt), x: x, y: y } });
|
|
1650
1651
|
}
|
|
1651
1652
|
}
|
|
1652
1653
|
function touch(event, root, evt) {
|
|
@@ -1681,7 +1682,7 @@ function touch(event, root, evt) {
|
|
|
1681
1682
|
var isPrimary = hasPrimaryTouch && primaryTouchId === id;
|
|
1682
1683
|
// Check for null values before processing this event
|
|
1683
1684
|
if (x !== null && y !== null) {
|
|
1684
|
-
handler$
|
|
1685
|
+
handler$3({ time: t, event: event, data: { target: target(evt), x: x, y: y, id: id, isPrimary: isPrimary } });
|
|
1685
1686
|
}
|
|
1686
1687
|
// Reset primary touch point id once touch event ends
|
|
1687
1688
|
if (event === 20 /* Event.TouchCancel */ || event === 18 /* Event.TouchEnd */) {
|
|
@@ -1692,7 +1693,7 @@ function touch(event, root, evt) {
|
|
|
1692
1693
|
}
|
|
1693
1694
|
}
|
|
1694
1695
|
}
|
|
1695
|
-
function handler$
|
|
1696
|
+
function handler$3(current) {
|
|
1696
1697
|
switch (current.event) {
|
|
1697
1698
|
case 12 /* Event.MouseMove */:
|
|
1698
1699
|
case 15 /* Event.MouseWheel */:
|
|
@@ -1787,7 +1788,7 @@ var data$e;
|
|
|
1787
1788
|
var timeout$4 = null;
|
|
1788
1789
|
var initialStateLogged = false;
|
|
1789
1790
|
var throttledRecompute$1 = throttle(recompute$5, 500 /* Setting.LookAhead */);
|
|
1790
|
-
function start$
|
|
1791
|
+
function start$z() {
|
|
1791
1792
|
initialStateLogged = false;
|
|
1792
1793
|
bind(window, "resize", throttledRecompute$1);
|
|
1793
1794
|
recompute$5();
|
|
@@ -1825,7 +1826,7 @@ var state$5 = [];
|
|
|
1825
1826
|
var initialTop = null;
|
|
1826
1827
|
var initialBottom = null;
|
|
1827
1828
|
var timeout$3 = null;
|
|
1828
|
-
function start$
|
|
1829
|
+
function start$y() {
|
|
1829
1830
|
state$5 = [];
|
|
1830
1831
|
recompute$4();
|
|
1831
1832
|
}
|
|
@@ -1863,7 +1864,8 @@ function recompute$4(event) {
|
|
|
1863
1864
|
var endYPosition = height - yOffset;
|
|
1864
1865
|
var top = getPositionNode(xPosition, startYPosition);
|
|
1865
1866
|
var bottom = getPositionNode(xPosition, endYPosition);
|
|
1866
|
-
var
|
|
1867
|
+
var trust = event && event.isTrusted ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */;
|
|
1868
|
+
var current = { time: time(event), event: 10 /* Event.Scroll */, data: { target: element, x: x, y: y, top: top, bottom: bottom, trust: trust } };
|
|
1867
1869
|
// We don't send any scroll events if this is the first event and the current position is top (0,0)
|
|
1868
1870
|
if ((event === null && x === 0 && y === 0) || (x === null || y === null)) {
|
|
1869
1871
|
initialTop = top;
|
|
@@ -1932,7 +1934,7 @@ function stop$v() {
|
|
|
1932
1934
|
var data$d = null;
|
|
1933
1935
|
var previous = null;
|
|
1934
1936
|
var timeout$2 = null;
|
|
1935
|
-
function start$
|
|
1937
|
+
function start$x() {
|
|
1936
1938
|
reset$h();
|
|
1937
1939
|
}
|
|
1938
1940
|
function observe$6(root) {
|
|
@@ -1982,7 +1984,7 @@ function stop$u() {
|
|
|
1982
1984
|
}
|
|
1983
1985
|
|
|
1984
1986
|
var state$4 = [];
|
|
1985
|
-
function start$
|
|
1987
|
+
function start$w() {
|
|
1986
1988
|
reset$g();
|
|
1987
1989
|
}
|
|
1988
1990
|
function observe$5(root) {
|
|
@@ -2000,7 +2002,7 @@ function stop$t() {
|
|
|
2000
2002
|
}
|
|
2001
2003
|
|
|
2002
2004
|
var data$c;
|
|
2003
|
-
function start$
|
|
2005
|
+
function start$v() {
|
|
2004
2006
|
bind(window, "pagehide", recompute$1);
|
|
2005
2007
|
}
|
|
2006
2008
|
function recompute$1(evt) {
|
|
@@ -2016,7 +2018,7 @@ function stop$s() {
|
|
|
2016
2018
|
}
|
|
2017
2019
|
|
|
2018
2020
|
var data$b;
|
|
2019
|
-
function start$
|
|
2021
|
+
function start$u() {
|
|
2020
2022
|
bind(document, "visibilitychange", recompute);
|
|
2021
2023
|
recompute();
|
|
2022
2024
|
}
|
|
@@ -2036,7 +2038,7 @@ function stop$r() {
|
|
|
2036
2038
|
}
|
|
2037
2039
|
|
|
2038
2040
|
var data$a;
|
|
2039
|
-
function start$
|
|
2041
|
+
function start$t() {
|
|
2040
2042
|
bind(window, "focus", function () { return compute$9(1 /* BooleanFlag.True */); });
|
|
2041
2043
|
bind(window, "blur", function () { return compute$9(0 /* BooleanFlag.False */); });
|
|
2042
2044
|
}
|
|
@@ -2051,20 +2053,44 @@ function compute$9(focus) {
|
|
|
2051
2053
|
encode$4(50 /* Event.Focus */);
|
|
2052
2054
|
}
|
|
2053
2055
|
|
|
2056
|
+
var bound = false;
|
|
2057
|
+
function start$s() {
|
|
2058
|
+
// Only bind once - this listener must persist even when Clarity stops
|
|
2059
|
+
// to detect when the page is restored from bfcache
|
|
2060
|
+
if (!bound) {
|
|
2061
|
+
try {
|
|
2062
|
+
window[api("addEventListener" /* Constant.AddEventListener */)]("pageshow", measure(handler$2), { capture: false, passive: true });
|
|
2063
|
+
bound = true;
|
|
2064
|
+
}
|
|
2065
|
+
catch (_a) {
|
|
2066
|
+
/* do nothing */
|
|
2067
|
+
}
|
|
2068
|
+
}
|
|
2069
|
+
}
|
|
2070
|
+
function handler$2(evt) {
|
|
2071
|
+
// The persisted property indicates if the page was loaded from bfcache
|
|
2072
|
+
if (evt && evt.persisted) {
|
|
2073
|
+
// Restart Clarity since it was stopped when the page entered bfcache
|
|
2074
|
+
start();
|
|
2075
|
+
log$1(11 /* Code.BFCache */, 0 /* Severity.Info */);
|
|
2076
|
+
}
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2054
2079
|
function start$r() {
|
|
2055
2080
|
start$j();
|
|
2081
|
+
start$D();
|
|
2056
2082
|
start$C();
|
|
2083
|
+
start$A();
|
|
2057
2084
|
start$B();
|
|
2058
2085
|
start$z();
|
|
2059
|
-
start$
|
|
2060
|
-
start$y();
|
|
2086
|
+
start$u();
|
|
2061
2087
|
start$t();
|
|
2062
2088
|
start$s();
|
|
2089
|
+
start$y();
|
|
2063
2090
|
start$x();
|
|
2091
|
+
start$E();
|
|
2064
2092
|
start$w();
|
|
2065
|
-
start$D();
|
|
2066
2093
|
start$v();
|
|
2067
|
-
start$u();
|
|
2068
2094
|
}
|
|
2069
2095
|
function stop$p() {
|
|
2070
2096
|
stop$h();
|
|
@@ -4308,6 +4334,7 @@ function encode$4 (type, ts) {
|
|
|
4308
4334
|
tokens.push(entry.data.y);
|
|
4309
4335
|
tokens.push(sTopHash);
|
|
4310
4336
|
tokens.push(sBottomHash);
|
|
4337
|
+
tokens.push(entry.data.trust);
|
|
4311
4338
|
queue(tokens);
|
|
4312
4339
|
track$8(entry.event, entry.data.x, entry.data.y, entry.time);
|
|
4313
4340
|
}
|
|
@@ -4569,6 +4596,9 @@ var modules$1 = null;
|
|
|
4569
4596
|
function start$i() {
|
|
4570
4597
|
active$2 = true;
|
|
4571
4598
|
modules$1 = new Set();
|
|
4599
|
+
if (config$2.modules && config$2.modules.length > 0) {
|
|
4600
|
+
config$2.modules.forEach(function (m) { event(m); });
|
|
4601
|
+
}
|
|
4572
4602
|
}
|
|
4573
4603
|
function stop$g() {
|
|
4574
4604
|
stopCallbacks.reverse().forEach(function (callback) {
|
|
@@ -5766,7 +5796,7 @@ function consentv2(consentState, source) {
|
|
|
5766
5796
|
function getConsentData(consentState) {
|
|
5767
5797
|
var _a;
|
|
5768
5798
|
var consent = {
|
|
5769
|
-
source: (_a = consentState.source) !== null && _a !== void 0 ? _a :
|
|
5799
|
+
source: (_a = consentState.source) !== null && _a !== void 0 ? _a : 255 /* ConsentSource.Unknown */,
|
|
5770
5800
|
ad_Storage: consentState.ad_Storage === "granted" /* Constant.Granted */ ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */,
|
|
5771
5801
|
analytics_Storage: consentState.analytics_Storage === "granted" /* Constant.Granted */ ? 1 /* BooleanFlag.True */ : 0 /* BooleanFlag.False */,
|
|
5772
5802
|
};
|
|
@@ -5779,10 +5809,10 @@ function normalizeConsent(value, fallback) {
|
|
|
5779
5809
|
function clear(all) {
|
|
5780
5810
|
if (all === void 0) { all = false; }
|
|
5781
5811
|
// Clear any stored information in the cookie that tracks session information so we can restart fresh the next time
|
|
5782
|
-
setCookie("_clsk" /* Constant.SessionKey */, "" /* Constant.Empty */,
|
|
5812
|
+
setCookie("_clsk" /* Constant.SessionKey */, "" /* Constant.Empty */, 0);
|
|
5783
5813
|
// Clear user cookie as well if all flag is set
|
|
5784
5814
|
if (all) {
|
|
5785
|
-
setCookie("_clck" /* Constant.CookieKey */, "" /* Constant.Empty */,
|
|
5815
|
+
setCookie("_clck" /* Constant.CookieKey */, "" /* Constant.Empty */, 0);
|
|
5786
5816
|
}
|
|
5787
5817
|
}
|
|
5788
5818
|
function tab() {
|
|
@@ -6095,7 +6125,7 @@ function stop$6() {
|
|
|
6095
6125
|
var status = false;
|
|
6096
6126
|
function start$5() {
|
|
6097
6127
|
status = true;
|
|
6098
|
-
start$
|
|
6128
|
+
start$O();
|
|
6099
6129
|
reset$4();
|
|
6100
6130
|
reset$1();
|
|
6101
6131
|
reset$2();
|
|
@@ -6162,7 +6192,7 @@ function restart() {
|
|
|
6162
6192
|
}
|
|
6163
6193
|
|
|
6164
6194
|
function start$4() {
|
|
6165
|
-
start$
|
|
6195
|
+
start$F();
|
|
6166
6196
|
start$g();
|
|
6167
6197
|
start$f();
|
|
6168
6198
|
}
|
|
@@ -6504,7 +6534,7 @@ function start(config$1) {
|
|
|
6504
6534
|
if (check()) {
|
|
6505
6535
|
config(config$1);
|
|
6506
6536
|
start$5();
|
|
6507
|
-
start$
|
|
6537
|
+
start$G();
|
|
6508
6538
|
modules.forEach(function (x) { return measure(x.start)(); });
|
|
6509
6539
|
// If it's an internal call to start, without explicit configuration,
|
|
6510
6540
|
// re-process any newly accumulated items in the queue
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Gt},get start(){return Vt},get stop(){return Yt},get track(){return qt}}),e=Object.freeze({__proto__:null,get check(){return Qt},get compute(){return te},get data(){return Dt},get start(){return Kt},get stop(){return ee},get trigger(){return $t}}),n=Object.freeze({__proto__:null,get compute(){return ce},get data(){return ne},get log(){return ue},get reset(){return se},get start(){return oe},get stop(){return ie},get updates(){return re}}),r=Object.freeze({__proto__:null,get compute(){return be},get config(){return ge},get consent(){return ve},get data(){return le},get start(){return fe},get stop(){return pe},get trackConsentv2(){return ye}}),a=Object.freeze({__proto__:null,get callback(){return Pe},get callbacks(){return _e},get clear(){return ze},get consent(){return xe},get consentv2(){return Ce},get data(){return we},get electron(){return ke},get id(){return Me},get metadata(){return Te},get save(){return Ae},get shortid(){return De},get start(){return Ie},get stop(){return Oe}}),o=Object.freeze({__proto__:null,get data(){return Ue},get envelope(){return Ge},get start(){return He},get stop(){return Ve}}),i={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(){return performance.now()+performance.timeOrigin}function l(t){void 0===t&&(t=null);var e=0===c?s():c,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var d="0.8.59";var f=/\S/gi,p=255,h=!0,g=null,v=null,m=null;function y(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,o=!1,i=null;E();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=h&&null!==m?s.match(m)?s:k(s,"▪","▫"):_(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?w(t):_(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return _(t)}break;case 4:switch(e){case"*T":case"data-":return r?w(t):_(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return k(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=i.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),u=o[0],c=o[1];r=u+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,p)),r}function w(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function _(t){return t.replace(f,"•")}function k(t,e,n){return E(),t?t.replace(v,e).replace(g,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function E(){if(h&&null===g)try{g=new RegExp("\\p{N}","gu"),v=new RegExp("\\p{L}","gu"),m=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}}var I=[],O=null;function T(){}var M=[];function x(){}function C(){}function j(){}function N(){}function z(){}var P=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:O,event:N,hashText:x,keys:M,log:T,observe:function(){},register:z,reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:I,stop:function(){},track:j,trigger:C}),A=null;function q(t,e){gn()&&t&&"string"==typeof t&&t.length<255&&(A=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Ft(24))}var D,R=null,X=null;function L(t){t in R||(R[t]=0),t in X||(X[t]=0),R[t]++,X[t]++}function U(t,e){null!==e&&(t in R||(R[t]=0),t in X||(X[t]=0),R[t]+=e,X[t]+=e)}function H(t,e){null!==e&&!1===isNaN(e)&&(t in R||(R[t]=0),(e>R[t]||0===R[t])&&(X[t]=e,R[t]=e))}function V(t,e,n){return window.setTimeout(We(t),e,n)}function G(t){return window.clearTimeout(t)}var Y=0,B=0,W=null;function Z(){W&&G(W),W=V(J,B),Y=l()}function J(){var t=l();D={gap:t-Y},Ft(25),D.gap<3e5?W=V(J,B):fn&&(q("clarityGemX","suspend"),Rn(),["mousemove","touchstart"].forEach((function(t){return Je(document,t,vn)})),["resize","scroll","pageshow"].forEach((function(t){return Je(window,t,vn)})))}var F=Object.freeze({__proto__:null,get data(){return D},reset:Z,start:function(){B=6e4,Y=0},stop:function(){G(W),Y=0,B=0}}),K=null;function Q(t){gn()&&i.lean&&(i.lean=!1,K={key:t},Pe(),Ae(),i.upgrade&&i.upgrade(t),Ft(3),i.lite)}var $=Object.freeze({__proto__:null,get data(){return K},start:function(){!i.lean&&i.upgrade&&i.upgrade("Config"),K=null},stop:function(){K=null},upgrade:Q});function tt(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))}function et(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var nt=null;function rt(t,e){ot(t,"string"==typeof e?[e]:e)}function at(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),tt(this,void 0,void 0,(function(){var a,o;return et(this,(function(i){switch(i.label){case 0:return o={},[4,ct(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(k(u.substring(2),"*","*")):k(u,"*","*")),ot("userId",[(a=o).userId]),ot("userHint",[a.userHint]),ot("userType",[st(t)]),e&&(ot("sessionId",[e]),a.sessionId=e),n&&(ot("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ot(t,e){if(gn()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in nt?nt[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);nt[t]=n}}function it(){Ft(34)}function ut(){nt={}}function ct(t){return tt(this,void 0,void 0,(function(){var e;return et(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function st(t){return t&&t.indexOf("@")>0?"email":"string"}var lt="CompressionStream"in window;function dt(t){return tt(this,void 0,void 0,(function(){var e,n;return et(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),lt?(e=new ReadableStream({start:function(e){return tt(this,void 0,void 0,(function(){return et(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ft(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function ft(t){return tt(this,void 0,void 0,(function(){var e,n,r,a,o;return et(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],r=!1,a=[],i.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return o=i.sent(),r=o.done,a=o.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}function pt(t,e){try{return!!t[e]}catch(t){return!1}}function ht(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var gt=null,vt="^";function mt(t,e){var n;if(void 0===e&&(e=!1),pt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=ht(o[1]),u=i[0],c=i[1];u;)u=(n=ht(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function yt(t,e,n){if((i.track||""==e)&&(navigator&&navigator.cookieEnabled||pt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===gt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(gt=".".concat(c[s]).concat(gt||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(gt),mt(t)===e))return;gt=""}}catch(t){gt=""}document.cookie=gt?"".concat(u).concat(";").concat("domain=").concat(gt):u}}var bt=null;function wt(t){try{if(!bt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){bt(t)}))}catch(t){}}var _t=[P,n,Object.freeze({__proto__:null,compute:it,get data(){return nt},identify:at,reset:ut,set:rt,start:function(){ut()},stop:function(){ut()}}),e,P,Object.freeze({__proto__:null,COOKIE_SEP:vt,getCookie:mt,setCookie:yt,start:function(){gt=null},stop:function(){gt=null}}),r,a,o,t,F,$,P];function kt(){R={},X={},L(5),_t.forEach((function(t){return We(t.start)()}))}function St(){_t.slice().reverse().forEach((function(t){return We(t.stop)()})),R={},X={}}function Et(){it(),ce(),Ft(0),te(),be()}function It(t,e,n){return"".concat(t,"=").concat(y(e,0===t.indexOf("data-")?"data-":t,n))}var Ot=[],Tt=1,Mt=null;function xt(){Ot=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=o.nodeValue,r=Mt.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=Ct(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}jt(o,u,{tag:r,attributes:n,value:a})}}(document),function(t){tt(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,d,f,p,h;return et(this,(function(g){switch(e=l(),n=[e,t],t){case 8:r=O,n.push(r.width),n.push(r.height),r.width,r.height,Gt(n);break;case 43:if((a=Ot).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,d=0,f=["tag","attributes","value"];d<f.length;d++)if(s[p=f[d]])switch(p){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[p]);break;case"attributes":for(h in s[p])void 0!==s[p][h]&&n.push(It(h,s[p][h],c));break;case"value":n.push(y(s[p],s.tag,c))}Gt(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}(43)}function Ct(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function jt(t,e,n){if(t&&n&&n.tag){var r=function(t){return null===t?null:Mt.has(t)?Mt.get(t):(Mt.set(t,Tt),Tt++)}(t),a=e?Mt.get(e):null,o=t.previousSibling?Mt.get(t.previousSibling):null;Ot.push({id:r,parent:a,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Nt,zt,Pt,At,qt,Dt,Rt=0,Xt=0,Lt=null,Ut=0,Ht=!1;function Vt(){At=!0,Rt=0,Xt=0,Ht=!1,Ut=0,Nt=[],zt=[],Pt={},qt=null}function Gt(t,e){if(void 0===e&&(e=!0),At){var n=l(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(i.lean?!Ht&&Xt+a.length>10485760&&(Ht=!0):Ht=!1,r){case 5:if(Ht)break;Rt+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(Ht)break;Xt+=a.length,Nt.push(a);break;default:zt.push(a)}L(25);var o=function(){var t=!1===i.lean&&Rt>0?100:Ue.sequence*i.delay;return"string"==typeof i.upload?Math.max(Math.min(t,3e4),100):i.delay}();n-Ut>2*o&&(G(Lt),Lt=null),e&&null===Lt&&(25!==r&&Z(),Lt=V(Bt,o),Ut=n,Qt(Xt))}}function Yt(){G(Lt),Bt(!0),Rt=0,Xt=0,Ht=!1,Ut=0,Nt=[],zt=[],Pt={},qt=null,At=!1}function Bt(t){return void 0===t&&(t=!1),tt(this,void 0,void 0,(function(){var e,n,r,a,o,u,c,s;return et(this,(function(l){switch(l.label){case 0:return At?(Lt=null,(e=!1===i.lean&&Xt>0&&(Xt<1048576||Ue.sequence>0))&&H(1,1),Et(),n=!0===t,Ue?(r=JSON.stringify(Ge(n)),a="[".concat(zt.join(),"]"),o=e?"[".concat(Nt.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,dt(u)];case 2:s=l.sent(),l.label=3;case 3:return U(2,(c=s)?c.length:u.length),Wt(u,c,Ue.sequence,n),zt=[],e&&(Nt=[],Xt=0,Rt=0,Ht=!1),[2]}}))}))}function Wt(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof i.upload){var a=i.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&Jt(n)}catch(t){}if(!1===o){n in Pt?Pt[n].attempts++:Pt[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){Be(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){We(Zt)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(i.upload){(0,i.upload)(t),Jt(n)}}function Zt(t,e){var n=Pt[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?$t(6):(0===t.status&&(i.upload=i.fallback?i.fallback:i.upload),qt={sequence:e,attempts:n.attempts,status:t.status},Ft(2),Wt(n.data,null,e)):(qt={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Ft(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],o=a&&a.length>0?a.split(/ (.*)/):[""];switch(o[0]){case"END":$t(6);break;case"UPGRADE":Q("Auto");break;case"ACTION":i.action&&o.length>1&&i.action(o[1]);break;case"EXTRACT":case"MODULE":o.length>1&&o[1];break;case"SIGNAL":o.length>1&&wt(o[1]);break;case"SNAPSHOT":i.lean=!1,xt()}}}(t.responseText),0===t.status&&(Wt(n.data,null,e,!0),$t(3)),t.status>=200&&t.status<=208&&Jt(e),delete Pt[e]))}function Jt(t){1===t&&(Ae(),Pe())}function Ft(t){var e=[l(),t];switch(t){case 4:var n=I;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),e.push(n.data.modules),Gt(e,!1));break;case 25:e.push(D.gap),Gt(e);break;case 35:e.push(Dt.check),Gt(e,!1);break;case 3:e.push(K.key),Gt(e);break;case 2:e.push(qt.sequence),e.push(qt.attempts),e.push(qt.status),Gt(e,!1);break;case 24:A.key&&e.push(A.key),e.push(A.value),Gt(e);break;case 34:var r=Object.keys(nt);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(nt[i])}ut(),Gt(e,!1)}break;case 0:var u=Object.keys(X);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],f=parseInt(d,10);e.push(f),e.push(Math.round(X[d]))}X={},Gt(e,!1)}break;case 1:var p=Object.keys(re);if(p.length>0){for(var h=0,g=p;h<g.length;h++){var v=g[h];f=parseInt(v,10);e.push(f),e.push(re[v])}se(),Gt(e,!1)}break;case 36:var m=Object.keys(O);if(m.length>0){for(var y=0,b=m;y<b.length;y++){var w=b[y];f=parseInt(w,10);e.push(f),e.push([].concat.apply([],O[w]))}Gt(e,!1)}break;case 40:M.forEach((function(t){e.push(t);var n=[];for(var r in O[t]){var a=parseInt(r,10);n.push(a),n.push(O[t][r])}e.push(n)})),Gt(e,!1);break;case 47:e.push(le.source),e.push(le.ad_Storage),e.push(le.analytics_Storage),Gt(e,!1)}}function Kt(){Dt={check:0}}function Qt(t){if(0===Dt.check){var e=Dt.check;e=Ue.sequence>=128?1:e,e=Ue.pageNum>=128?7:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==Dt.check&&$t(e)}}function $t(t){Dt.check=t,5!==t&&(ze(),Rn())}function te(){0!==Dt.check&&Ft(35)}function ee(){Dt=null}var ne=null,re=null,ae=!1;function oe(){ne={},re={},ae=!1}function ie(){ne={},re={},ae=!1}function ue(t,e){if(e&&(e="".concat(e),t in ne||(ne[t]=[]),ne[t].indexOf(e)<0)){if(ne[t].length>128)return void(ae||(ae=!0,$t(5)));ne[t].push(e),t in re||(re[t]=[]),re[t].push(e)}}function ce(){Ft(1)}function se(){re={},ae=!1}var le=null,de=!0;function fe(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;de=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],he)}function pe(){de=!0}function he(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState){var n=e.getConsentState("analytics_storage");Ce(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}}function ge(t){me(t.analytics_Storage?1:0),le=t}function ve(){me(2)}function me(t){ue(36,t.toString())}function ye(t){le=t,Ft(47)}function be(){var t;if(de&&(Ft(47),de=!1,!i.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&he()}}var we=null,_e=[],ke=0,Se=null,Ee={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function Ie(){var t,e,n,r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",o=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";ke=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:De(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=mt("_clsk",!i.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Re(n[1])<18e5&&(t.session=n[0],t.count=Re(n[2])+1,t.upgrade=Re(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Xe(),d=i.projectId||function(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2)r=(r<<5)+r^t.charCodeAt(o),o+1<t.length&&(a=(a<<5)+a^t.charCodeAt(o+1));return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}(location.host);we={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},i.lean=i.track&&null!==s.upgrade?0===s.upgrade:i.lean,i.upload=i.track&&"string"==typeof i.upload&&s.upload&&s.upload.length>"https://".length?s.upload:i.upload,ue(0,r),ue(3,c),ue(1,b(location.href,!!ke)),ue(2,document.referrer),ue(15,function(){var t=De();if(i.track&&pt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),ue(16,document.documentElement.lang),ue(17,document.dir),ue(26,"".concat(window.devicePixelRatio)),ue(28,l.dob.toString()),ue(29,l.version.toString()),ue(33,u),ue(34,a),ue(35,o),H(0,s.ts),H(1,0),H(35,ke);var f,p=null===window||void 0===window?void 0:window.Zone;p&&"__symbol__"in p&&H(39,1),navigator&&(ue(9,navigator.language),H(33,navigator.hardwareConcurrency),H(32,navigator.maxTouchPoints),H(34,Math.round(navigator.deviceMemory)),(f=navigator.userAgentData)&&f.getHighEntropyValues?f.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;ue(22,t.platform),ue(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){ue(24,t.name+"~"+t.version)})),ue(25,t.model),H(27,t.mobile?1:0)})):ue(22,navigator.platform)),screen&&(H(14,Math.round(screen.width)),H(15,Math.round(screen.height)),H(16,Math.round(screen.colorDepth)));for(var h=0,g=i.cookies;h<g.length;h++){var v=g[h],m=mt(v);m&&rt(v,m)}null===Se&&(Se={source:l.consent?6:0,ad_Storage:i.track?"granted":"denied",analytics_Storage:i.track?"granted":"denied"}),ge(je(Se)),qe(l)}function Oe(){we=null,_e.forEach((function(t){t.called=!1}))}function Te(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=i.lean?0:1,o=!1;we&&(a||!1===e)&&(t(we,!i.lean,r?Se:void 0),o=!0),!n&&o||_e.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function Me(){return we?[we.userId,we.sessionId,we.pageNum].join("."):""}function xe(t){void 0===t&&(t=!0),t?(Ce({source:4,ad_Storage:"granted",analytics_Storage:"granted"}),ve()):Ce({source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function Ce(t,e){var n;void 0===t&&(t=Ee),void 0===e&&(e=5);var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:Ne(t.ad_Storage,null==Se?void 0:Se.ad_Storage),analytics_Storage:Ne(t.analytics_Storage,null==Se?void 0:Se.analytics_Storage)};if(Se&&r.ad_Storage===Se.ad_Storage&&r.analytics_Storage===Se.analytics_Storage)return Se.source=r.source,ye(je(Se)),void ve();Se=r,Pe(!0);var a=je(Se);if(!a.analytics_Storage&&i.track)return i.track=!1,ze(!0),Rn(),void window.setTimeout(Dn,250);gn()&&a.analytics_Storage&&(i.track=!0,qe(Xe(),1),Ae()),ye(a),ve()}function je(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:0,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function Ne(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function ze(t){void 0===t&&(t=!1),yt("_clsk","",-Number.MAX_VALUE),t&&yt("_clck","",-Number.MAX_VALUE)}function Pe(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(_e.length>0)for(var n=0;n<_e.length;n++){var r=_e[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(we,!i.lean,r.consentInfo?Se:void 0),r.called=!0,r.recall||(_e.splice(n,1),n--))}}(i.lean?0:1,t)}function Ae(){if(we&&i.track){var t=Math.round(Date.now()),e=i.upload&&"string"==typeof i.upload?i.upload.replace("https://",""):"",n=i.lean?0:1;yt("_clsk",[we.sessionId,t,we.pageNum,n,e].join(vt),1)}}function qe(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===i.dob?0:i.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&yt("_clck",[we.userId,2,n.toString(36),e,r].join(vt),365)}function De(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function Re(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Xe(){var t={id:De(),version:0,expiry:null,consent:0,dob:0},e=mt("_clck",!i.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Re(n[1])),n.length>2&&(t.expiry=Re(n[2],36)),n.length>3&&1===Re(n[3])&&(t.consent=1),n.length>4&&Re(n[1])>1&&(t.dob=Re(n[4])),i.track=i.track||1===t.consent,t.id=i.track?n[0]:t.id}return t}var Le,Ue=null;function He(){var t=we;Ue={version:d,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function Ve(){Ue=null}function Ge(t){return Ue.start=Ue.start+Ue.duration,Ue.duration=l()-Ue.start,Ue.sequence++,Ue.upload=t&&"sendBeacon"in navigator?1:0,Ue.end=t?1:0,Ue.applicationPlatform=0,Ue.url=b(location.href,!1,!0),[Ue.version,Ue.sequence,Ue.start,Ue.duration,Ue.projectId,Ue.userId,Ue.sessionId,Ue.pageNum,Ue.upload,Ue.end,Ue.applicationPlatform,Ue.url]}function Ye(){Le=[]}function Be(t){if(Le&&-1===Le.indexOf(t.message)){var e=i.report;if(e&&e.length>0&&Ue){var n={v:Ue.version,p:Ue.projectId,u:Ue.userId,s:Ue.sessionId,n:Ue.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),Le.push(t.message)}}return t}function We(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Be(t)}var n=performance.now()-e;U(4,n),n>30&&(L(7),H(6,n),t.dn&&"".concat(t.dn,"-").concat(n))}}var Ze=new Map;function Je(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=We(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return Ze.has(t)}(t)||Ze.set(t,[]),Ze.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function Fe(){Ze.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Ze.delete(e)}(t,e)})),Ze=new Map}var Ke=null,Qe=null,$e=null,tn=0;function en(){return!(tn++>20)}function nn(){tn=0,$e!==an()&&(Rn(),window.setTimeout(rn,250))}function rn(){Dn(),H(29,1)}function an(){return location.href?location.href.replace(location.hash,""):location.href}var on=[],un=null,cn=null,sn=null;function ln(){on=[],un=null,cn=null}function dn(){var t=on.shift();t&&(un=t,t.task().then((function(){t.id===Me()&&(t.resolve(),un=null,dn())})).catch((function(e){t.id===Me()&&(e&&(e.name,e.message,e.stack),un=null,dn())})))}var fn=!1;function pn(){fn=!0,c=s(),ln(),Fe(),Ye(),$e=an(),tn=0,Je(window,"popstate",nn),null===Ke&&(Ke=history.pushState,history.pushState=function(){Ke.apply(this,arguments),gn()&&en()&&nn()}),null===Qe&&(Qe=history.replaceState,history.replaceState=function(){Qe.apply(this,arguments),gn()&&en()&&nn()})}function hn(){$e=null,tn=0,Ye(),Fe(),ln(),c=0,fn=!1}function gn(){return fn}function vn(){Dn(),q("clarityGemX","restart")}var mn=null;function yn(){mn=null}function bn(t){mn={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){tt(this,void 0,void 0,(function(){var e,n;return et(this,(function(r){return e=l(),n=[e,t],29===t&&(n.push(mn.fetchStart),n.push(mn.connectStart),n.push(mn.connectEnd),n.push(mn.requestStart),n.push(mn.responseStart),n.push(mn.responseEnd),n.push(mn.domInteractive),n.push(mn.domComplete),n.push(mn.loadEventStart),n.push(mn.loadEventEnd),n.push(mn.redirectCount),n.push(mn.size),n.push(mn.type),n.push(mn.protocol),n.push(mn.encodedSize),n.push(mn.decodedSize),yn(),Gt(n)),[2]}))}))}(29)}var wn,_n=0,kn=1/0,Sn=0,En=0,In=[],On=new Map,Tn=function(){return _n||0},Mn=function(){if(!In.length)return-1;var t=Math.min(In.length-1,Math.floor((Tn()-En)/50));return In[t].latency},xn=function(){En=Tn(),In.length=0,On.clear()},Cn=function(t){if(t.interactionId&&!(t.duration<40)){!function(t){"interactionCount"in performance?_n=performance.interactionCount:t.interactionId&&(kn=Math.min(kn,t.interactionId),Sn=Math.max(Sn,t.interactionId),_n=Sn?(Sn-kn)/7+1:0)}(t);var e=In[In.length-1],n=On.get(t.interactionId);if(n||In.length<10||t.duration>(null==e?void 0:e.latency)){if(n)t.duration>n.latency&&(n.latency=t.duration);else{var r={id:t.interactionId,latency:t.duration};On.set(r.id,r),In.push(r)}In.sort((function(t,e){return e.latency-t.latency})),In.length>10&&In.splice(10).forEach((function(t){return On.delete(t.id)}))}}},jn=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint","event"];function Nn(){try{wn&&wn.disconnect(),wn=new PerformanceObserver(We(zn));for(var t=0,e=jn;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&U(9,0),wn.observe({type:n,buffered:!0}))}}catch(t){}}function zn(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n<t.length;n++){var r=t[n];switch(r.entryType){case"navigation":bn(r);break;case"resource":var a=r.name;ue(4,An(a)),a!==i.upload&&a!==i.fallback||H(28,r.duration);break;case"longtask":L(7);break;case"first-input":e&&H(10,r.processingStart-r.startTime);break;case"event":e&&"PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&(Cn(r),ue(37,Mn().toString()));break;case"layout-shift":e&&!r.hadRecentInput&&U(9,1e3*r.value);break;case"largest-contentful-paint":e&&H(8,r.startTime)}}}(t.getEntries())}var Pn=null;function An(t){return Pn||(Pn=document.createElement("a")),Pn.href=t,Pn.host}var qn=[P,P,P,Object.freeze({__proto__:null,start:function(){yn(),function(){navigator&&navigator.connection&&ue(27,navigator.connection.effectiveType),window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&("complete"!==document.readyState?Je(window,"load",V.bind(this,Nn,0)):Nn())}()},stop:function(){wn&&wn.disconnect(),wn=null,xn(),Pn=null,yn()}}),P];function Dn(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===fn&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||fn)return!1;for(var e in t)e in i&&(i[e]=t[e])}(t),pn(),kt(),qn.forEach((function(t){return We(t.start)()})),null===t&&Hn())}function Rn(){gn()&&(qn.slice().reverse().forEach((function(t){return We(t.stop)()})),St(),hn(),void 0!==Ln&&(Ln[Un]=function(){(Ln[Un].q=Ln[Un].q||[]).push(arguments),"start"===arguments[0]&&Ln[Un].q.unshift(Ln[Un].q.pop())&&Hn()}))}var Xn=Object.freeze({__proto__:null,consent:xe,consentv2:Ce,dlog:ue,event:q,hashText:x,identify:at,maxMetric:H,measure:We,metadata:Te,pause:function(){gn()&&(q("clarityGemX","pause"),null===cn&&(cn=new Promise((function(t){sn=t}))))},queue:Gt,register:z,resume:function(){gn()&&(cn&&(sn(),cn=null,null===un&&dn()),q("clarityGemX","resume"))},schedule:function(t,e){return void 0===e&&(e=0),tt(this,void 0,void 0,(function(){var n,r,a;return et(this,(function(o){for(n=0,r=on;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){on[1===e?"unshift":"push"]({task:t,resolve:n,id:Me()})})),null===un&&null===cn&&dn(),[2,a]}))}))},set:rt,signal:function(t){bt=t},start:Dn,stop:Rn,time:l,upgrade:Q,version:d}),Ln=window,Un="clarityGemX";function Hn(){if(void 0!==Ln){if(Ln[Un]&&Ln[Un].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Ln[Un]&&Ln[Un].q||[];for(Ln[Un]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Xn[t].apply(Xn,e)},Ln[Un].v=d;t.length>0;)Ln[Un].apply(Ln,t.shift())}}Hn()}();
|
|
1
|
+
!function(){"use strict";var t=Object.freeze({__proto__:null,get queue(){return Vt},get start(){return Gt},get stop(){return Yt},get track(){return At}}),e=Object.freeze({__proto__:null,get check(){return Qt},get compute(){return te},get data(){return Dt},get start(){return Kt},get stop(){return ee},get trigger(){return $t}}),n=Object.freeze({__proto__:null,get compute(){return ce},get data(){return ne},get log(){return ue},get reset(){return se},get start(){return oe},get stop(){return ie},get updates(){return re}}),r=Object.freeze({__proto__:null,get compute(){return be},get config(){return ge},get consent(){return ve},get data(){return le},get start(){return fe},get stop(){return pe},get trackConsentv2(){return ye}}),a=Object.freeze({__proto__:null,get callback(){return Pe},get callbacks(){return ke},get clear(){return ze},get consent(){return xe},get consentv2(){return Ce},get data(){return we},get electron(){return _e},get id(){return Me},get metadata(){return Te},get save(){return qe},get shortid(){return De},get start(){return Ie},get stop(){return Oe}}),o=Object.freeze({__proto__:null,get data(){return Le},get envelope(){return Ve},get start(){return Ue},get stop(){return Ge}}),i={projectId:null,delay:1e3,lean:!1,lite:!1,track:!0,content:!0,drop:[],mask:[],unmask:[],regions:[],cookies:[],fraud:!0,checksum:[],report:null,upload:null,fallback:null,upgrade:null,action:null,dob:null,delayDom:!1,throttleDom:!0,conversions:!1,includeSubdomains:!0,modules:[]};function u(t){return window.Zone&&"__symbol__"in window.Zone?window.Zone.__symbol__(t):t}var c=0;function s(){return performance.now()+performance.timeOrigin}function l(t){void 0===t&&(t=null);var e=0===c?s():c,n=t&&t.timeStamp>0?t.timeStamp:performance.now(),r=t&&t.view?t.view.performance.timeOrigin:performance.timeOrigin;return Math.max(Math.round(n+r-e),0)}var d="0.8.59";var f=/\S/gi,p=255,h=!0,g=null,v=null,m=null;function y(t,e,n,r,a){if(void 0===r&&(r=!1),t){if("input"==e&&("checkbox"===a||"radio"===a))return t;switch(n){case 0:return t;case 1:switch(e){case"*T":case"value":case"placeholder":case"click":return function(t){var e=-1,n=0,r=!1,a=!1,o=!1,i=null;E();for(var u=0;u<t.length;u++){var c=t.charCodeAt(u);if(r=r||c>=48&&c<=57,a=a||64===c,o=9===c||10===c||13===c||32===c,0===u||u===t.length-1||o){if(r||a){null===i&&(i=t.split(""));var s=t.substring(e+1,o?u:u+1);s=h&&null!==m?s.match(m)?s:_(s,"▪","▫"):k(s),i.splice(e+1-n,s.length,s),n+=s.length-1}o&&(r=!1,a=!1,e=u)}}return i?i.join(""):t}(t);case"input":case"change":return S(t)}return t;case 2:case 3:switch(e){case"*T":case"data-":return r?w(t):k(t);case"src":case"srcset":case"title":case"alt":case"href":case"xlink:href":return 3===n?"src"===e&&(null==t?void 0:t.startsWith("blob:"))?"blob:":"":t;case"value":case"click":case"input":case"change":return S(t);case"placeholder":return k(t)}break;case 4:switch(e){case"*T":case"data-":return r?w(t):k(t);case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":return""}break;case 5:switch(e){case"*T":case"data-":return _(t,"▪","▫");case"value":case"input":case"click":case"change":return Array(5).join("•");case"checksum":case"src":case"srcset":case"alt":case"title":return""}}}return t}function b(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var r=t;if(e)r="".concat("https://").concat("Electron");else{var a=i.drop;if(a&&a.length>0&&t&&t.indexOf("?")>0){var o=t.split("?"),u=o[0],c=o[1];r=u+"?"+c.split("&").map((function(t){return a.some((function(e){return 0===t.indexOf("".concat(e,"="))}))?"".concat(t.split("=")[0],"=").concat("*na*"):t})).join("&")}}return n&&(r=r.substring(0,p)),r}function w(t){var e=t.trim();if(e.length>0){var n=e[0],r=t.indexOf(n),a=t.substr(0,r),o=t.substr(r+e.length);return"".concat(a).concat(e.length.toString(36)).concat(o)}return t}function k(t){return t.replace(f,"•")}function _(t,e,n){return E(),t?t.replace(v,e).replace(g,n):t}function S(t){for(var e=5*(Math.floor(t.length/5)+1),n="",r=0;r<e;r++)n+=r>0&&r%5==0?" ":"•";return n}function E(){if(h&&null===g)try{g=new RegExp("\\p{N}","gu"),v=new RegExp("\\p{L}","gu"),m=new RegExp("\\p{Sc}","gu")}catch(t){h=!1}}var I=[],O=null;function T(){}var M=[];function x(){}function C(){}function j(){}function N(){}function z(){}var P=Object.freeze({__proto__:null,checkDocumentStyles:function(t){},compute:function(){},data:O,event:N,hashText:x,keys:M,log:T,observe:function(){},register:z,reset:function(){},sheetAdoptionState:[],sheetUpdateState:[],start:function(){},state:I,stop:function(){},track:j,trigger:C}),q=null;function A(t,e){gn()&&t&&"string"==typeof t&&t.length<255&&(q=e&&"string"==typeof e&&e.length<255?{key:t,value:e}:{value:t},Ft(24))}var D,R=null,X=null;function H(t){t in R||(R[t]=0),t in X||(X[t]=0),R[t]++,X[t]++}function L(t,e){null!==e&&(t in R||(R[t]=0),t in X||(X[t]=0),R[t]+=e,X[t]+=e)}function U(t,e){null!==e&&!1===isNaN(e)&&(t in R||(R[t]=0),(e>R[t]||0===R[t])&&(X[t]=e,R[t]=e))}function G(t,e,n){return window.setTimeout(We(t),e,n)}function V(t){return window.clearTimeout(t)}var Y=0,B=0,W=null;function Z(){W&&V(W),W=G(J,B),Y=l()}function J(){var t=l();D={gap:t-Y},Ft(25),D.gap<3e5?W=G(J,B):fn&&(A("clarityGemX","suspend"),Rn(),["mousemove","touchstart"].forEach((function(t){return Je(document,t,vn)})),["resize","scroll","pageshow"].forEach((function(t){return Je(window,t,vn)})))}var F=Object.freeze({__proto__:null,get data(){return D},reset:Z,start:function(){B=6e4,Y=0},stop:function(){V(W),Y=0,B=0}}),K=null;function Q(t){gn()&&i.lean&&(i.lean=!1,K={key:t},Pe(),qe(),i.upgrade&&i.upgrade(t),Ft(3),i.lite)}var $=Object.freeze({__proto__:null,get data(){return K},start:function(){!i.lean&&i.upgrade&&i.upgrade("Config"),K=null},stop:function(){K=null},upgrade:Q});function tt(t,e,n,r){return new(n||(n=Promise))((function(a,o){function i(t){try{c(r.next(t))}catch(t){o(t)}}function u(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?a(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(i,u)}c((r=r.apply(t,e||[])).next())}))}function et(t,e){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function u(u){return function(c){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,u[0]&&(i=0)),i;)try{if(n=1,r&&(a=2&u[0]?r.return:u[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,u[1])).done)return a;switch(r=0,a&&(u=[2&u[0],a.value]),u[0]){case 0:case 1:a=u;break;case 4:return i.label++,{value:u[1],done:!1};case 5:i.label++,r=u[1],u=[0];continue;case 7:u=i.ops.pop(),i.trys.pop();continue;default:if(!(a=i.trys,(a=a.length>0&&a[a.length-1])||6!==u[0]&&2!==u[0])){i=0;continue}if(3===u[0]&&(!a||u[1]>a[0]&&u[1]<a[3])){i.label=u[1];break}if(6===u[0]&&i.label<a[1]){i.label=a[1],a=u;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(u);break}a[2]&&i.ops.pop(),i.trys.pop();continue}u=e.call(t,i)}catch(t){u=[6,t],r=0}finally{n=a=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var nt=null;function rt(t,e){ot(t,"string"==typeof e?[e]:e)}function at(t,e,n,r){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),tt(this,void 0,void 0,(function(){var a,o;return et(this,(function(i){switch(i.label){case 0:return o={},[4,ct(t)];case 1:return o.userId=i.sent(),o.userHint=r||((u=t)&&u.length>=5?"".concat(u.substring(0,2)).concat(_(u.substring(2),"*","*")):_(u,"*","*")),ot("userId",[(a=o).userId]),ot("userHint",[a.userHint]),ot("userType",[st(t)]),e&&(ot("sessionId",[e]),a.sessionId=e),n&&(ot("pageId",[n]),a.pageId=n),[2,a]}var u}))}))}function ot(t,e){if(gn()&&t&&e&&"string"==typeof t&&t.length<255){for(var n=(t in nt?nt[t]:[]),r=0;r<e.length;r++)"string"==typeof e[r]&&e[r].length<255&&n.push(e[r]);nt[t]=n}}function it(){Ft(34)}function ut(){nt={}}function ct(t){return tt(this,void 0,void 0,(function(){var e;return et(this,(function(n){switch(n.label){case 0:return n.trys.push([0,4,,5]),crypto&&t?[4,crypto.subtle.digest("SHA-256",(new TextEncoder).encode(t))]:[3,2];case 1:return e=n.sent(),[2,Array.prototype.map.call(new Uint8Array(e),(function(t){return("00"+t.toString(16)).slice(-2)})).join("")];case 2:return[2,""];case 3:return[3,5];case 4:return n.sent(),[2,""];case 5:return[2]}}))}))}function st(t){return t&&t.indexOf("@")>0?"email":"string"}var lt="CompressionStream"in window;function dt(t){return tt(this,void 0,void 0,(function(){var e,n;return et(this,(function(r){switch(r.label){case 0:return r.trys.push([0,3,,4]),lt?(e=new ReadableStream({start:function(e){return tt(this,void 0,void 0,(function(){return et(this,(function(n){return e.enqueue(t),e.close(),[2]}))}))}}).pipeThrough(new TextEncoderStream).pipeThrough(new window.CompressionStream("gzip")),n=Uint8Array.bind,[4,ft(e)]):[3,2];case 1:return[2,new(n.apply(Uint8Array,[void 0,r.sent()]))];case 2:return[3,4];case 3:return r.sent(),[3,4];case 4:return[2,null]}}))}))}function ft(t){return tt(this,void 0,void 0,(function(){var e,n,r,a,o;return et(this,(function(i){switch(i.label){case 0:e=t.getReader(),n=[],r=!1,a=[],i.label=1;case 1:return r?[3,3]:[4,e.read()];case 2:return o=i.sent(),r=o.done,a=o.value,r?[2,n]:(n.push.apply(n,a),[3,1]);case 3:return[2,n]}}))}))}function pt(t,e){try{return!!t[e]}catch(t){return!1}}function ht(t){try{var e=decodeURIComponent(t);return[e!=t,e]}catch(t){}return[!1,t]}var gt=null,vt="^";function mt(t,e){var n;if(void 0===e&&(e=!1),pt(document,"cookie")){var r=document.cookie.split(";");if(r)for(var a=0;a<r.length;a++){var o=r[a].split("=");if(o.length>1&&o[0]&&o[0].trim()===t){for(var i=ht(o[1]),u=i[0],c=i[1];u;)u=(n=ht(c))[0],c=n[1];return e?c.endsWith("".concat("~","1"))?c.substring(0,c.length-2):null:c}}}return null}function yt(t,e,n){if((i.track||""==e)&&(navigator&&navigator.cookieEnabled||pt(document,"cookie"))){var r=function(t){return encodeURIComponent(t)}(e),a=new Date;a.setDate(a.getDate()+n);var o=a?"expires="+a.toUTCString():"",u="".concat(t,"=").concat(r).concat(";").concat(o).concat(";path=/");try{if(null===gt){for(var c=location.hostname?location.hostname.split("."):[],s=c.length-1;s>=0;s--)if(gt=".".concat(c[s]).concat(gt||""),s<c.length-1&&(document.cookie="".concat(u).concat(";").concat("domain=").concat(gt),mt(t)===e))return;gt=""}}catch(t){gt=""}document.cookie=gt?"".concat(u).concat(";").concat("domain=").concat(gt):u}}var bt=null;function wt(t){try{if(!bt)return;var e=function(t){try{return JSON.parse(t)}catch(t){return[]}}(t);e.forEach((function(t){bt(t)}))}catch(t){}}var kt=[P,n,Object.freeze({__proto__:null,compute:it,get data(){return nt},identify:at,reset:ut,set:rt,start:function(){ut()},stop:function(){ut()}}),e,P,Object.freeze({__proto__:null,COOKIE_SEP:vt,getCookie:mt,setCookie:yt,start:function(){gt=null},stop:function(){gt=null}}),r,a,o,t,F,$,P];function _t(){R={},X={},H(5),kt.forEach((function(t){return We(t.start)()}))}function St(){kt.slice().reverse().forEach((function(t){return We(t.stop)()})),R={},X={}}function Et(){it(),ce(),Ft(0),te(),be()}function It(t,e,n){return"".concat(t,"=").concat(y(e,0===t.indexOf("data-")?"data-":t,n))}var Ot=[],Tt=1,Mt=null;function xt(){Ot=[],function(t){var e=[t];for(;e.length>0;){for(var n=null,r=null,a=null,o=e.shift(),i=o.firstChild,u=o.parentElement?o.parentElement:o.parentNode?o.parentNode:null;i;)e.push(i),i=i.nextSibling;switch(o.nodeType){case Node.DOCUMENT_TYPE_NODE:var c=o;r="*D",n={name:c.name,publicId:c.publicId,systemId:c.systemId};break;case Node.TEXT_NODE:a=o.nodeValue,r=Mt.get(u)?"*T":r;break;case Node.ELEMENT_NODE:var s=o;n=Ct(s),r=["NOSCRIPT","SCRIPT","STYLE"].indexOf(s.tagName)<0?s.tagName:r}jt(o,u,{tag:r,attributes:n,value:a})}}(document),function(t){tt(this,void 0,void 0,(function(){var e,n,r,a,o,i,u,c,s,d,f,p,h;return et(this,(function(g){switch(e=l(),n=[e,t],t){case 8:r=O,n.push(r.width),n.push(r.height),r.width,r.height,Vt(n);break;case 43:if((a=Ot).length>0){for(o=0,i=a;o<i.length;o++)for(u=i[o],c=u.metadata.privacy,s=u.data,d=0,f=["tag","attributes","value"];d<f.length;d++)if(s[p=f[d]])switch(p){case"tag":n.push(u.id),u.parent&&n.push(u.parent),u.previous&&n.push(u.previous),n.push(s[p]);break;case"attributes":for(h in s[p])void 0!==s[p][h]&&n.push(It(h,s[p][h],c));break;case"value":n.push(y(s[p],s.tag,c))}Vt(function(t){for(var e=[],n={},r=0,a=null,o=0;o<t.length;o++)if("string"==typeof t[o]){var i=t[o],u=n[i]||-1;u>=0?a?a.push(u):(a=[u],e.push(a),r++):(a=null,e.push(i),n[i]=r++)}else a=null,e.push(t[o]),r++;return e}(n),!0)}}return[2]}))}))}(43)}function Ct(t){var e={},n=t.attributes;if(n&&n.length>0)for(var r=0;r<n.length;r++)e[n[r].name]=n[r].value;return e}function jt(t,e,n){if(t&&n&&n.tag){var r=function(t){return null===t?null:Mt.has(t)?Mt.get(t):(Mt.set(t,Tt),Tt++)}(t),a=e?Mt.get(e):null,o=t.previousSibling?Mt.get(t.previousSibling):null;Ot.push({id:r,parent:a,previous:o,children:[],data:n,selector:null,hash:null,region:null,metadata:{active:!0,suspend:!1,privacy:5,position:null,fraud:null,size:null}})}}var Nt,zt,Pt,qt,At,Dt,Rt=0,Xt=0,Ht=null,Lt=0,Ut=!1;function Gt(){qt=!0,Rt=0,Xt=0,Ut=!1,Lt=0,Nt=[],zt=[],Pt={},At=null}function Vt(t,e){if(void 0===e&&(e=!0),qt){var n=l(),r=t.length>1?t[1]:null,a=JSON.stringify(t);switch(i.lean?!Ut&&Xt+a.length>10485760&&(Ut=!0):Ut=!1,r){case 5:if(Ut)break;Rt+=a.length;case 37:case 6:case 43:case 45:case 46:case 44:case 51:if(Ut)break;Xt+=a.length,Nt.push(a);break;default:zt.push(a)}H(25);var o=function(){var t=!1===i.lean&&Rt>0?100:Le.sequence*i.delay;return"string"==typeof i.upload?Math.max(Math.min(t,3e4),100):i.delay}();n-Lt>2*o&&(V(Ht),Ht=null),e&&null===Ht&&(25!==r&&Z(),Ht=G(Bt,o),Lt=n,Qt(Xt))}}function Yt(){V(Ht),Bt(!0),Rt=0,Xt=0,Ut=!1,Lt=0,Nt=[],zt=[],Pt={},At=null,qt=!1}function Bt(t){return void 0===t&&(t=!1),tt(this,void 0,void 0,(function(){var e,n,r,a,o,u,c,s;return et(this,(function(l){switch(l.label){case 0:return qt?(Ht=null,(e=!1===i.lean&&Xt>0&&(Xt<1048576||Le.sequence>0))&&U(1,1),Et(),n=!0===t,Le?(r=JSON.stringify(Ve(n)),a="[".concat(zt.join(),"]"),o=e?"[".concat(Nt.join(),"]"):"",n&&o.length>0&&r.length+a.length+o.length>65536&&(o=""),u=function(t){return t.p.length>0?'{"e":'.concat(t.e,',"a":').concat(t.a,',"p":').concat(t.p,"}"):'{"e":'.concat(t.e,',"a":').concat(t.a,"}")}({e:r,a:a,p:o}),n?(s=null,[3,3]):[3,1]):[2]):[2];case 1:return[4,dt(u)];case 2:s=l.sent(),l.label=3;case 3:return L(2,(c=s)?c.length:u.length),Wt(u,c,Le.sequence,n),zt=[],e&&(Nt=[],Xt=0,Rt=0,Ut=!1),[2]}}))}))}function Wt(t,e,n,r){if(void 0===r&&(r=!1),"string"==typeof i.upload){var a=i.upload,o=!1;if(r&&navigator&&navigator.sendBeacon)try{(o=navigator.sendBeacon.bind(navigator)(a,t))&&Jt(n)}catch(t){}if(!1===o){n in Pt?Pt[n].attempts++:Pt[n]={data:t,attempts:1};var u=new XMLHttpRequest;u.open("POST",a,!0),u.timeout=15e3,u.ontimeout=function(){Be(new Error("".concat("Timeout"," : ").concat(a)))},null!==n&&(u.onreadystatechange=function(){We(Zt)(u,n)}),u.withCredentials=!0,e?(u.setRequestHeader("Accept","application/x-clarity-gzip"),u.send(e)):u.send(t)}}else if(i.upload){(0,i.upload)(t),Jt(n)}}function Zt(t,e){var n=Pt[e];t&&4===t.readyState&&n&&((t.status<200||t.status>208)&&n.attempts<=1?t.status>=400&&t.status<500?$t(6):(0===t.status&&(i.upload=i.fallback?i.fallback:i.upload),At={sequence:e,attempts:n.attempts,status:t.status},Ft(2),Wt(n.data,null,e)):(At={sequence:e,attempts:n.attempts,status:t.status},n.attempts>1&&Ft(2),200===t.status&&t.responseText&&function(t){for(var e=t&&t.length>0?t.split("\n"):[],n=0,r=e;n<r.length;n++){var a=r[n],o=a&&a.length>0?a.split(/ (.*)/):[""];switch(o[0]){case"END":$t(6);break;case"UPGRADE":Q("Auto");break;case"ACTION":i.action&&o.length>1&&i.action(o[1]);break;case"EXTRACT":case"MODULE":o.length>1&&o[1];break;case"SIGNAL":o.length>1&&wt(o[1]);break;case"SNAPSHOT":i.lean=!1,xt()}}}(t.responseText),0===t.status&&(Wt(n.data,null,e,!0),$t(3)),t.status>=200&&t.status<=208&&Jt(e),delete Pt[e]))}function Jt(t){1===t&&(qe(),Pe())}function Ft(t){var e=[l(),t];switch(t){case 4:var n=I;n&&n.data&&((e=[n.time,n.event]).push(n.data.visible),e.push(n.data.docWidth),e.push(n.data.docHeight),e.push(n.data.screenWidth),e.push(n.data.screenHeight),e.push(n.data.scrollX),e.push(n.data.scrollY),e.push(n.data.pointerX),e.push(n.data.pointerY),e.push(n.data.activityTime),e.push(n.data.scrollTime),e.push(n.data.pointerTime),e.push(n.data.moveX),e.push(n.data.moveY),e.push(n.data.moveTime),e.push(n.data.downX),e.push(n.data.downY),e.push(n.data.downTime),e.push(n.data.upX),e.push(n.data.upY),e.push(n.data.upTime),e.push(n.data.pointerPrevX),e.push(n.data.pointerPrevY),e.push(n.data.pointerPrevTime),e.push(n.data.modules),Vt(e,!1));break;case 25:e.push(D.gap),Vt(e);break;case 35:e.push(Dt.check),Vt(e,!1);break;case 3:e.push(K.key),Vt(e);break;case 2:e.push(At.sequence),e.push(At.attempts),e.push(At.status),Vt(e,!1);break;case 24:q.key&&e.push(q.key),e.push(q.value),Vt(e);break;case 34:var r=Object.keys(nt);if(r.length>0){for(var a=0,o=r;a<o.length;a++){var i=o[a];e.push(i),e.push(nt[i])}ut(),Vt(e,!1)}break;case 0:var u=Object.keys(X);if(u.length>0){for(var c=0,s=u;c<s.length;c++){var d=s[c],f=parseInt(d,10);e.push(f),e.push(Math.round(X[d]))}X={},Vt(e,!1)}break;case 1:var p=Object.keys(re);if(p.length>0){for(var h=0,g=p;h<g.length;h++){var v=g[h];f=parseInt(v,10);e.push(f),e.push(re[v])}se(),Vt(e,!1)}break;case 36:var m=Object.keys(O);if(m.length>0){for(var y=0,b=m;y<b.length;y++){var w=b[y];f=parseInt(w,10);e.push(f),e.push([].concat.apply([],O[w]))}Vt(e,!1)}break;case 40:M.forEach((function(t){e.push(t);var n=[];for(var r in O[t]){var a=parseInt(r,10);n.push(a),n.push(O[t][r])}e.push(n)})),Vt(e,!1);break;case 47:e.push(le.source),e.push(le.ad_Storage),e.push(le.analytics_Storage),Vt(e,!1)}}function Kt(){Dt={check:0}}function Qt(t){if(0===Dt.check){var e=Dt.check;e=Le.sequence>=128?1:e,e=Le.pageNum>=128?7:e,e=l()>72e5?2:e,(e=t>10485760?2:e)!==Dt.check&&$t(e)}}function $t(t){Dt.check=t,5!==t&&(ze(),Rn())}function te(){0!==Dt.check&&Ft(35)}function ee(){Dt=null}var ne=null,re=null,ae=!1;function oe(){ne={},re={},ae=!1}function ie(){ne={},re={},ae=!1}function ue(t,e){if(e&&(e="".concat(e),t in ne||(ne[t]=[]),ne[t].indexOf(e)<0)){if(ne[t].length>128)return void(ae||(ae=!0,$t(5)));ne[t].push(e),t in re||(re[t]=[]),re[t].push(e)}}function ce(){Ft(1)}function se(){re={},ae=!1}var le=null,de=!0;function fe(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;de=!0,(null==e?void 0:e.addListener)&&e.addListener(["ad_storage","analytics_storage"],he)}function pe(){de=!0}function he(){var t,e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;if(null==e?void 0:e.getConsentState){var n=e.getConsentState("analytics_storage");Ce(function(t){var e={source:2,ad_Storage:1===t.ad_Storage?"granted":"denied",analytics_Storage:1===t.analytics_Storage?"granted":"denied"};return e}({ad_Storage:e.getConsentState("ad_storage"),analytics_Storage:n}))}}function ge(t){me(t.analytics_Storage?1:0),le=t}function ve(){me(2)}function me(t){ue(36,t.toString())}function ye(t){le=t,Ft(47)}function be(){var t;if(de&&(Ft(47),de=!1,!i.track)){var e=null===(t=window.google_tag_data)||void 0===t?void 0:t.ics;(null==e?void 0:e.usedUpdate)&&he()}}var we=null,ke=[],_e=0,Se=null,Ee={source:7,ad_Storage:"denied",analytics_Storage:"denied"};function Ie(){var t,e,n,r=navigator&&"userAgent"in navigator?navigator.userAgent:"",a=null!==(n="undefined"!=typeof Intl&&(null===(e=null===(t=null===Intl||void 0===Intl?void 0:Intl.DateTimeFormat())||void 0===t?void 0:t.resolvedOptions())||void 0===e?void 0:e.timeZone))&&void 0!==n?n:"",o=(new Date).getTimezoneOffset().toString(),u=window.location.ancestorOrigins?Array.from(window.location.ancestorOrigins).toString():"",c=document&&document.title?document.title:"";_e=r.indexOf("Electron")>0?1:0;var s=function(){var t={session:De(),ts:Math.round(Date.now()),count:1,upgrade:null,upload:""},e=mt("_clsk",!i.includeSubdomains);if(e){var n=e.includes("^")?e.split("^"):e.split("|");n.length>=5&&t.ts-Re(n[1])<18e5&&(t.session=n[0],t.count=Re(n[2])+1,t.upgrade=Re(n[3]),t.upload=n.length>=6?"".concat("https://").concat(n[5],"/").concat(n[4]):"".concat("https://").concat(n[4]))}return t}(),l=Xe(),d=i.projectId||function(t,e){void 0===e&&(e=null);for(var n,r=5381,a=r,o=0;o<t.length;o+=2)r=(r<<5)+r^t.charCodeAt(o),o+1<t.length&&(a=(a<<5)+a^t.charCodeAt(o+1));return n=Math.abs(r+11579*a),(e?n%Math.pow(2,e):n).toString(36)}(location.host);we={projectId:d,userId:l.id,sessionId:s.session,pageNum:s.count},i.lean=i.track&&null!==s.upgrade?0===s.upgrade:i.lean,i.upload=i.track&&"string"==typeof i.upload&&s.upload&&s.upload.length>"https://".length?s.upload:i.upload,ue(0,r),ue(3,c),ue(1,b(location.href,!!_e)),ue(2,document.referrer),ue(15,function(){var t=De();if(i.track&&pt(window,"sessionStorage")){var e=sessionStorage.getItem("_cltk");t=e||t,sessionStorage.setItem("_cltk",t)}return t}()),ue(16,document.documentElement.lang),ue(17,document.dir),ue(26,"".concat(window.devicePixelRatio)),ue(28,l.dob.toString()),ue(29,l.version.toString()),ue(33,u),ue(34,a),ue(35,o),U(0,s.ts),U(1,0),U(35,_e);var f,p=null===window||void 0===window?void 0:window.Zone;p&&"__symbol__"in p&&U(39,1),navigator&&(ue(9,navigator.language),U(33,navigator.hardwareConcurrency),U(32,navigator.maxTouchPoints),U(34,Math.round(navigator.deviceMemory)),(f=navigator.userAgentData)&&f.getHighEntropyValues?f.getHighEntropyValues(["model","platform","platformVersion","uaFullVersion"]).then((function(t){var e;ue(22,t.platform),ue(23,t.platformVersion),null===(e=t.brands)||void 0===e||e.forEach((function(t){ue(24,t.name+"~"+t.version)})),ue(25,t.model),U(27,t.mobile?1:0)})):ue(22,navigator.platform)),screen&&(U(14,Math.round(screen.width)),U(15,Math.round(screen.height)),U(16,Math.round(screen.colorDepth)));for(var h=0,g=i.cookies;h<g.length;h++){var v=g[h],m=mt(v);m&&rt(v,m)}null===Se&&(Se={source:l.consent?6:0,ad_Storage:i.track?"granted":"denied",analytics_Storage:i.track?"granted":"denied"}),ge(je(Se)),Ae(l)}function Oe(){we=null,ke.forEach((function(t){t.called=!1}))}function Te(t,e,n,r){void 0===e&&(e=!0),void 0===n&&(n=!1),void 0===r&&(r=!1);var a=i.lean?0:1,o=!1;we&&(a||!1===e)&&(t(we,!i.lean,r?Se:void 0),o=!0),!n&&o||ke.push({callback:t,wait:e,recall:n,called:o,consentInfo:r})}function Me(){return we?[we.userId,we.sessionId,we.pageNum].join("."):""}function xe(t){void 0===t&&(t=!0),t?(Ce({source:4,ad_Storage:"granted",analytics_Storage:"granted"}),ve()):Ce({source:4,ad_Storage:"denied",analytics_Storage:"denied"})}function Ce(t,e){var n;void 0===t&&(t=Ee),void 0===e&&(e=5);var r={source:null!==(n=t.source)&&void 0!==n?n:e,ad_Storage:Ne(t.ad_Storage,null==Se?void 0:Se.ad_Storage),analytics_Storage:Ne(t.analytics_Storage,null==Se?void 0:Se.analytics_Storage)};if(Se&&r.ad_Storage===Se.ad_Storage&&r.analytics_Storage===Se.analytics_Storage)return Se.source=r.source,ye(je(Se)),void ve();Se=r,Pe(!0);var a=je(Se);if(!a.analytics_Storage&&i.track)return i.track=!1,ze(!0),Rn(),void window.setTimeout(Dn,250);gn()&&a.analytics_Storage&&(i.track=!0,Ae(Xe(),1),qe()),ye(a),ve()}function je(t){var e;return{source:null!==(e=t.source)&&void 0!==e?e:255,ad_Storage:"granted"===t.ad_Storage?1:0,analytics_Storage:"granted"===t.analytics_Storage?1:0}}function Ne(t,e){return void 0===e&&(e="denied"),"string"==typeof t?t.toLowerCase():e}function ze(t){void 0===t&&(t=!1),yt("_clsk","",0),t&&yt("_clck","",0)}function Pe(t){void 0===t&&(t=!1),function(t,e){void 0===e&&(e=!1);if(ke.length>0)for(var n=0;n<ke.length;n++){var r=ke[n];r.callback&&(!r.called&&!e||r.consentInfo&&e)&&(!r.wait||t)&&(r.callback(we,!i.lean,r.consentInfo?Se:void 0),r.called=!0,r.recall||(ke.splice(n,1),n--))}}(i.lean?0:1,t)}function qe(){if(we&&i.track){var t=Math.round(Date.now()),e=i.upload&&"string"==typeof i.upload?i.upload.replace("https://",""):"",n=i.lean?0:1;yt("_clsk",[we.sessionId,t,we.pageNum,n,e].join(vt),1)}}function Ae(t,e){void 0===e&&(e=null),e=null===e?t.consent:e;var n=Math.ceil((Date.now()+31536e6)/864e5),r=0===t.dob?null===i.dob?0:i.dob:t.dob;(null===t.expiry||Math.abs(n-t.expiry)>=1||t.consent!==e||t.dob!==r)&&yt("_clck",[we.userId,2,n.toString(36),e,r].join(vt),365)}function De(){var t=Math.floor(Math.random()*Math.pow(2,32));return window&&window.crypto&&window.crypto.getRandomValues&&Uint32Array&&(t=window.crypto.getRandomValues(new Uint32Array(1))[0]),t.toString(36)}function Re(t,e){return void 0===e&&(e=10),parseInt(t,e)}function Xe(){var t={id:De(),version:0,expiry:null,consent:0,dob:0},e=mt("_clck",!i.includeSubdomains);if(e&&e.length>0){var n=e.includes("^")?e.split("^"):e.split("|");n.length>1&&(t.version=Re(n[1])),n.length>2&&(t.expiry=Re(n[2],36)),n.length>3&&1===Re(n[3])&&(t.consent=1),n.length>4&&Re(n[1])>1&&(t.dob=Re(n[4])),i.track=i.track||1===t.consent,t.id=i.track?n[0]:t.id}return t}var He,Le=null;function Ue(){var t=we;Le={version:d,sequence:0,start:0,duration:0,projectId:t.projectId,userId:t.userId,sessionId:t.sessionId,pageNum:t.pageNum,upload:0,end:0,applicationPlatform:0,url:""}}function Ge(){Le=null}function Ve(t){return Le.start=Le.start+Le.duration,Le.duration=l()-Le.start,Le.sequence++,Le.upload=t&&"sendBeacon"in navigator?1:0,Le.end=t?1:0,Le.applicationPlatform=0,Le.url=b(location.href,!1,!0),[Le.version,Le.sequence,Le.start,Le.duration,Le.projectId,Le.userId,Le.sessionId,Le.pageNum,Le.upload,Le.end,Le.applicationPlatform,Le.url]}function Ye(){He=[]}function Be(t){if(He&&-1===He.indexOf(t.message)){var e=i.report;if(e&&e.length>0&&Le){var n={v:Le.version,p:Le.projectId,u:Le.userId,s:Le.sessionId,n:Le.pageNum};t.message&&(n.m=t.message),t.stack&&(n.e=t.stack);var r=new XMLHttpRequest;r.open("POST",e,!0),r.send(JSON.stringify(n)),He.push(t.message)}}return t}function We(t){return function(){var e=performance.now();try{t.apply(this,arguments)}catch(t){throw Be(t)}var n=performance.now()-e;L(4,n),n>30&&(H(7),U(6,n),t.dn&&"".concat(t.dn,"-").concat(n))}}var Ze=new Map;function Je(t,e,n,r,a){void 0===r&&(r=!1),void 0===a&&(a=!0),n=We(n);try{t[u("addEventListener")](e,n,{capture:r,passive:a}),function(t){return Ze.has(t)}(t)||Ze.set(t,[]),Ze.get(t).push({event:e,listener:n,options:{capture:r,passive:a}})}catch(t){}}function Fe(){Ze.forEach((function(t,e){!function(t,e){t.forEach((function(t){try{e[u("removeEventListener")](t.event,t.listener,{capture:t.options.capture,passive:t.options.passive})}catch(t){}})),Ze.delete(e)}(t,e)})),Ze=new Map}var Ke=null,Qe=null,$e=null,tn=0;function en(){return!(tn++>20)}function nn(){tn=0,$e!==an()&&(Rn(),window.setTimeout(rn,250))}function rn(){Dn(),U(29,1)}function an(){return location.href?location.href.replace(location.hash,""):location.href}var on=[],un=null,cn=null,sn=null;function ln(){on=[],un=null,cn=null}function dn(){var t=on.shift();t&&(un=t,t.task().then((function(){t.id===Me()&&(t.resolve(),un=null,dn())})).catch((function(e){t.id===Me()&&(e&&(e.name,e.message,e.stack),un=null,dn())})))}var fn=!1;function pn(){fn=!0,c=s(),ln(),Fe(),Ye(),$e=an(),tn=0,Je(window,"popstate",nn),null===Ke&&(Ke=history.pushState,history.pushState=function(){Ke.apply(this,arguments),gn()&&en()&&nn()}),null===Qe&&(Qe=history.replaceState,history.replaceState=function(){Qe.apply(this,arguments),gn()&&en()&&nn()})}function hn(){$e=null,tn=0,Ye(),Fe(),ln(),c=0,fn=!1}function gn(){return fn}function vn(){Dn(),A("clarityGemX","restart")}var mn=null;function yn(){mn=null}function bn(t){mn={fetchStart:Math.round(t.fetchStart),connectStart:Math.round(t.connectStart),connectEnd:Math.round(t.connectEnd),requestStart:Math.round(t.requestStart),responseStart:Math.round(t.responseStart),responseEnd:Math.round(t.responseEnd),domInteractive:Math.round(t.domInteractive),domComplete:Math.round(t.domComplete),loadEventStart:Math.round(t.loadEventStart),loadEventEnd:Math.round(t.loadEventEnd),redirectCount:Math.round(t.redirectCount),size:t.transferSize?t.transferSize:0,type:t.type,protocol:t.nextHopProtocol,encodedSize:t.encodedBodySize?t.encodedBodySize:0,decodedSize:t.decodedBodySize?t.decodedBodySize:0},function(t){tt(this,void 0,void 0,(function(){var e,n;return et(this,(function(r){return e=l(),n=[e,t],29===t&&(n.push(mn.fetchStart),n.push(mn.connectStart),n.push(mn.connectEnd),n.push(mn.requestStart),n.push(mn.responseStart),n.push(mn.responseEnd),n.push(mn.domInteractive),n.push(mn.domComplete),n.push(mn.loadEventStart),n.push(mn.loadEventEnd),n.push(mn.redirectCount),n.push(mn.size),n.push(mn.type),n.push(mn.protocol),n.push(mn.encodedSize),n.push(mn.decodedSize),yn(),Vt(n)),[2]}))}))}(29)}var wn,kn=0,_n=1/0,Sn=0,En=0,In=[],On=new Map,Tn=function(){return kn||0},Mn=function(){if(!In.length)return-1;var t=Math.min(In.length-1,Math.floor((Tn()-En)/50));return In[t].latency},xn=function(){En=Tn(),In.length=0,On.clear()},Cn=function(t){if(t.interactionId&&!(t.duration<40)){!function(t){"interactionCount"in performance?kn=performance.interactionCount:t.interactionId&&(_n=Math.min(_n,t.interactionId),Sn=Math.max(Sn,t.interactionId),kn=Sn?(Sn-_n)/7+1:0)}(t);var e=In[In.length-1],n=On.get(t.interactionId);if(n||In.length<10||t.duration>(null==e?void 0:e.latency)){if(n)t.duration>n.latency&&(n.latency=t.duration);else{var r={id:t.interactionId,latency:t.duration};On.set(r.id,r),In.push(r)}In.sort((function(t,e){return e.latency-t.latency})),In.length>10&&In.splice(10).forEach((function(t){return On.delete(t.id)}))}}},jn=["navigation","resource","longtask","first-input","layout-shift","largest-contentful-paint","event"];function Nn(){try{wn&&wn.disconnect(),wn=new PerformanceObserver(We(zn));for(var t=0,e=jn;t<e.length;t++){var n=e[t];PerformanceObserver.supportedEntryTypes.indexOf(n)>=0&&("layout-shift"===n&&L(9,0),wn.observe({type:n,buffered:!0}))}}catch(t){}}function zn(t){!function(t){for(var e=(!("visibilityState"in document)||"visible"===document.visibilityState),n=0;n<t.length;n++){var r=t[n];switch(r.entryType){case"navigation":bn(r);break;case"resource":var a=r.name;ue(4,qn(a)),a!==i.upload&&a!==i.fallback||U(28,r.duration);break;case"longtask":H(7);break;case"first-input":e&&U(10,r.processingStart-r.startTime);break;case"event":e&&"PerformanceEventTiming"in window&&"interactionId"in PerformanceEventTiming.prototype&&(Cn(r),ue(37,Mn().toString()));break;case"layout-shift":e&&!r.hadRecentInput&&L(9,1e3*r.value);break;case"largest-contentful-paint":e&&U(8,r.startTime)}}}(t.getEntries())}var Pn=null;function qn(t){return Pn||(Pn=document.createElement("a")),Pn.href=t,Pn.host}var An=[P,P,P,Object.freeze({__proto__:null,start:function(){yn(),function(){navigator&&navigator.connection&&ue(27,navigator.connection.effectiveType),window.PerformanceObserver&&PerformanceObserver.supportedEntryTypes&&("complete"!==document.readyState?Je(window,"load",G.bind(this,Nn,0)):Nn())}()},stop:function(){wn&&wn.disconnect(),wn=null,xn(),Pn=null,yn()}}),P];function Dn(t){void 0===t&&(t=null),function(){try{var t=navigator&&"globalPrivacyControl"in navigator&&1==navigator.globalPrivacyControl;return!1===fn&&"undefined"!=typeof Promise&&window.MutationObserver&&document.createTreeWalker&&"now"in Date&&"now"in performance&&"undefined"!=typeof WeakMap&&!t}catch(t){return!1}}()&&(!function(t){if(null===t||fn)return!1;for(var e in t)e in i&&(i[e]=t[e])}(t),pn(),_t(),An.forEach((function(t){return We(t.start)()})),null===t&&Un())}function Rn(){gn()&&(An.slice().reverse().forEach((function(t){return We(t.stop)()})),St(),hn(),void 0!==Hn&&(Hn[Ln]=function(){(Hn[Ln].q=Hn[Ln].q||[]).push(arguments),"start"===arguments[0]&&Hn[Ln].q.unshift(Hn[Ln].q.pop())&&Un()}))}var Xn=Object.freeze({__proto__:null,consent:xe,consentv2:Ce,dlog:ue,event:A,hashText:x,identify:at,maxMetric:U,measure:We,metadata:Te,pause:function(){gn()&&(A("clarityGemX","pause"),null===cn&&(cn=new Promise((function(t){sn=t}))))},queue:Vt,register:z,resume:function(){gn()&&(cn&&(sn(),cn=null,null===un&&dn()),A("clarityGemX","resume"))},schedule:function(t,e){return void 0===e&&(e=0),tt(this,void 0,void 0,(function(){var n,r,a;return et(this,(function(o){for(n=0,r=on;n<r.length;n++)if(r[n].task===t)return[2];return a=new Promise((function(n){on[1===e?"unshift":"push"]({task:t,resolve:n,id:Me()})})),null===un&&null===cn&&dn(),[2,a]}))}))},set:rt,signal:function(t){bt=t},start:Dn,stop:Rn,time:l,upgrade:Q,version:d}),Hn=window,Ln="clarityGemX";function Un(){if(void 0!==Hn){if(Hn[Ln]&&Hn[Ln].v)return console.warn("Error CL001: Multiple Clarity tags detected.");var t=Hn[Ln]&&Hn[Ln].q||[];for(Hn[Ln]=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return Xn[t].apply(Xn,e)},Hn[Ln].v=d;t.length>0;)Hn[Ln].apply(Hn,t.shift())}}Un()}();
|
package/package.json
CHANGED
package/src/core/config.ts
CHANGED
package/src/core/dynamic.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { Constant } from "@clarity-types/layout";
|
|
2
1
|
import { Constant as DataConstant } from "@clarity-types/data";
|
|
3
|
-
import
|
|
2
|
+
import { Constant } from "@clarity-types/layout";
|
|
3
|
+
import config from "@src/core/config";
|
|
4
4
|
import { report } from "@src/core/report";
|
|
5
|
+
import * as baseline from "@src/data/baseline";
|
|
5
6
|
|
|
6
7
|
let stopCallbacks: (() => void)[] = [];
|
|
7
8
|
let active = false;
|
|
@@ -10,6 +11,10 @@ let modules: Set<number> = null;
|
|
|
10
11
|
export function start(): void {
|
|
11
12
|
active = true;
|
|
12
13
|
modules = new Set<number>();
|
|
14
|
+
|
|
15
|
+
if (config.modules && config.modules.length > 0) {
|
|
16
|
+
config.modules.forEach((m) => { event(m); });
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export function stop(): void {
|
package/src/core/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
let version = "0.8.
|
|
1
|
+
let version = "0.8.60";
|
|
2
2
|
export default version;
|
package/src/data/metadata.ts
CHANGED
|
@@ -190,7 +190,7 @@ export function consentv2(consentState: ConsentState = defaultStatus, source: nu
|
|
|
190
190
|
|
|
191
191
|
function getConsentData(consentState: ConsentState): ConsentData {
|
|
192
192
|
let consent: ConsentData = {
|
|
193
|
-
source: consentState.source ?? ConsentSource.
|
|
193
|
+
source: consentState.source ?? ConsentSource.Unknown,
|
|
194
194
|
ad_Storage: consentState.ad_Storage === Constant.Granted ? BooleanFlag.True : BooleanFlag.False,
|
|
195
195
|
analytics_Storage: consentState.analytics_Storage === Constant.Granted ? BooleanFlag.True : BooleanFlag.False,
|
|
196
196
|
};
|
|
@@ -204,11 +204,11 @@ function normalizeConsent(value: unknown, fallback: string = Constant.Denied): s
|
|
|
204
204
|
|
|
205
205
|
export function clear(all: boolean = false): void {
|
|
206
206
|
// Clear any stored information in the cookie that tracks session information so we can restart fresh the next time
|
|
207
|
-
setCookie(Constant.SessionKey, Constant.Empty,
|
|
207
|
+
setCookie(Constant.SessionKey, Constant.Empty, 0);
|
|
208
208
|
|
|
209
209
|
// Clear user cookie as well if all flag is set
|
|
210
210
|
if (all) {
|
|
211
|
-
setCookie(Constant.CookieKey, Constant.Empty,
|
|
211
|
+
setCookie(Constant.CookieKey, Constant.Empty, 0);
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
214
|
|