@picked/analytics 0.0.1-dev.1774224866171 → 0.0.1-dev.1774244905386

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.
@@ -31,47 +31,34 @@ function _(e, t) {
31
31
  i(t(e, n));
32
32
  };
33
33
  }
34
- function v(e, t, n = { passive: !0 }) {
34
+ function v(e, t) {
35
+ return (n) => {
36
+ e({
37
+ event: n,
38
+ analyticsContext: t()
39
+ });
40
+ };
41
+ }
42
+ function y(e, t, n = { passive: !0 }) {
35
43
  let r = /* @__PURE__ */ new WeakMap();
36
44
  return (i, a) => {
37
45
  let o = r.get(i);
38
- if (o || (o = /* @__PURE__ */ new Set(), r.set(i, o)), o.has(e)) return;
39
- function s(e) {
40
- t({
41
- event: e,
42
- analyticsContext: a()
43
- });
44
- }
45
- i.addEventListener(e, s, n), o.add(e);
46
+ o || (o = /* @__PURE__ */ new Set(), r.set(i, o)), !o.has(e) && (i.addEventListener(e, v(t, a), n), o.add(e));
46
47
  };
47
48
  }
48
49
  function ee(e, t) {
49
50
  let n = /* @__PURE__ */ new Set();
50
51
  return (r) => {
51
- if (n.has(e) || !f()) return;
52
- function i(e) {
53
- t({
54
- event: e,
55
- analyticsContext: r()
56
- });
57
- }
58
- document.addEventListener(e, i, { passive: !0 }), n.add(e);
52
+ n.has(e) || f() && (document.addEventListener(e, v(t, r), { passive: !0 }), n.add(e));
59
53
  };
60
54
  }
61
- function y(e, t) {
55
+ function b(e, t) {
62
56
  let n = /* @__PURE__ */ new Set();
63
57
  return (r) => {
64
- if (n.has(e) || !p()) return;
65
- function i(e) {
66
- t({
67
- event: e,
68
- analyticsContext: r()
69
- });
70
- }
71
- window.addEventListener(e, i, { passive: !0 }), n.add(e);
58
+ n.has(e) || p() && (window.addEventListener(e, v(t, r), { passive: !0 }), n.add(e));
72
59
  };
73
60
  }
74
- function b(e) {
61
+ function x(e) {
75
62
  return { items: e.features?.map(({ feature: e, name: t, key: n, bucket: r }) => ({
76
63
  ab_feature: e,
77
64
  ab_name: t,
@@ -79,41 +66,37 @@ function b(e) {
79
66
  ab_bucket: r
80
67
  })) || [] };
81
68
  }
82
- var x = "unknown";
83
- function S(e) {
69
+ var S = "unknown";
70
+ function C(e) {
84
71
  let t = te(), n = { id: e.sessionId || null };
85
72
  return e.isUser !== void 0 && (n.is_user = e.isUser), e.identifiers && Object.assign(n, e.identifiers), t && (n.gaid = t), e.shopifySession?.clientId && (n.shopify_client_id = e.shopifySession.clientId), e.shopifySession?.customerId && (n.shopify_customer_id = e.shopifySession.customerId), e.shopifySession?.checkoutToken && (n.shopify_checkout_token = e.shopifySession.checkoutToken), n;
86
73
  }
87
- function C(e) {
74
+ function w(e) {
88
75
  if (e.fields) return { items: e.fields.map(({ id: e, type: t, label: n, options: r }) => ({
89
76
  id: e,
90
77
  type: t,
91
78
  label: n,
92
- options: Array.isArray(r) ? r.map(({ id: e, label: t, value: n }) => ({
93
- id: e,
94
- label: t,
95
- value: n
96
- })) : void 0
79
+ options: Array.isArray(r) ? r : void 0
97
80
  })) };
98
81
  }
99
- function w(e) {
82
+ function T(e) {
100
83
  if (e.responses) return { items: e.responses.map(({ fieldId: e, value: t }) => ({
101
84
  field_id: e,
102
85
  values: Array.isArray(t) ? t.map((e) => ({ value: e })) : [{ value: t }]
103
86
  })) };
104
87
  }
105
- function T(e, t = !1) {
88
+ function E(e, t = !1) {
106
89
  let { step: n } = e;
107
90
  if (n) return {
108
91
  id: n.id,
109
- title: n.label
92
+ title: n.name
110
93
  };
111
94
  if (t) return {
112
- id: x,
113
- title: x
95
+ id: S,
96
+ title: S
114
97
  };
115
98
  }
116
- function E(e, t = !1) {
99
+ function D(e, t = !1) {
117
100
  let { productList: n } = e;
118
101
  if (n) {
119
102
  let e = {};
@@ -127,8 +110,8 @@ function E(e, t = !1) {
127
110
  currency: e.currency,
128
111
  creative_name: e.creativeName,
129
112
  creative_slot: e.creativeSlot,
130
- discount: N(e.discount),
131
- index: N(e.index),
113
+ discount: P(e.discount),
114
+ index: P(e.index),
132
115
  item_brand: e.itemBrand,
133
116
  item_category: e.itemCategory,
134
117
  item_category2: e.itemCategory2,
@@ -139,66 +122,66 @@ function E(e, t = !1) {
139
122
  item_list_name: e.itemListName,
140
123
  item_variant: e.itemVariant,
141
124
  location_id: e.locationId,
142
- price: N(e.price),
125
+ price: P(e.price),
143
126
  promotion_id: e.promotionId,
144
127
  promotion_name: e.promotionName,
145
- quantity: N(e.quantity),
128
+ quantity: P(e.quantity),
146
129
  in_stock: e.inStock
147
130
  })) }), e;
148
131
  }
149
132
  if (t) return { items: [] };
150
133
  }
151
- function D(e, t = !1) {
134
+ function O(e, t = !1) {
152
135
  let { order: n } = e;
153
136
  if (n) {
154
137
  let e = { id: n.id };
155
138
  return n.checkoutToken && (e.checkout_token = n.checkoutToken), n.cartToken && (e.cart_token = n.cartToken), n.customerId && (e.customer_id = n.customerId), e;
156
139
  }
157
- if (t) return { id: x };
140
+ if (t) return { id: S };
158
141
  }
159
- function O(e, t = !1) {
142
+ function k(e, t = !1) {
160
143
  let { experience: n } = e;
161
144
  if (n) return {
162
145
  id: n.id,
163
146
  title: n.title
164
147
  };
165
148
  if (t) return {
166
- id: x,
167
- title: x
149
+ id: S,
150
+ title: S
168
151
  };
169
152
  }
170
- function k(e, t = !1) {
153
+ function A(e, t = !1) {
171
154
  let { exception: n } = e;
172
155
  if (n) return typeof n == "string" ? { reason: n } : { reason: n.systemMessage };
173
- if (t) return { reason: x };
156
+ if (t) return { reason: S };
174
157
  }
175
- function A(e) {
158
+ function j(e) {
176
159
  let { form: t } = e;
177
160
  return t ? {
178
161
  id: t.id,
179
162
  title: t.title
180
163
  } : {
181
- id: x,
182
- title: x
164
+ id: S,
165
+ title: S
183
166
  };
184
167
  }
185
- function j(e) {
168
+ function M(e) {
186
169
  let { modal: t } = e;
187
170
  return t ? {
188
171
  id: t.id,
189
172
  title: t.title
190
173
  } : {
191
- id: x,
192
- title: x
174
+ id: S,
175
+ title: S
193
176
  };
194
177
  }
195
- function M(e, t = 300) {
178
+ function N(e, t = 300) {
196
179
  let n;
197
180
  return function(...r) {
198
181
  clearTimeout(n), n = setTimeout(() => e.apply(this, r), t);
199
182
  };
200
183
  }
201
- function N(e) {
184
+ function P(e) {
202
185
  if (typeof e == "number") return e;
203
186
  if (typeof e != "string") return;
204
187
  let t = parseFloat(e);
@@ -279,7 +262,7 @@ function ae({ organizationId: t, projectId: n, cvlyX: r, deployment: i }) {
279
262
  //#region src/events/app_close.ts
280
263
  var oe = "app_close";
281
264
  function se(e, t) {
282
- let n = b(e), r = S(e), i = O(e), a = T(e);
265
+ let n = x(e), r = C(e), i = k(e), a = E(e);
283
266
  return h(oe, [
284
267
  g("feature_list", "2-0-0", n),
285
268
  g("session", "1-0-4", r),
@@ -289,7 +272,7 @@ function se(e, t) {
289
272
  }
290
273
  var ce = _(oe, se), le = "app_initialize";
291
274
  function ue(e, t) {
292
- let n = b(e), r = S(e), i = O(e), a = T(e);
275
+ let n = x(e), r = C(e), i = k(e), a = E(e);
293
276
  return h(le, [
294
277
  g("feature_list", "2-0-0", n),
295
278
  g("session", "1-0-4", r),
@@ -299,7 +282,7 @@ function ue(e, t) {
299
282
  }
300
283
  var de = _(le, ue), fe = "app_load";
301
284
  function pe(e, t) {
302
- let n = b(e), r = S(e), i = O(e), a = T(e);
285
+ let n = x(e), r = C(e), i = k(e), a = E(e);
303
286
  return h(fe, [
304
287
  g("feature_list", "2-0-0", n),
305
288
  g("session", "1-0-4", r),
@@ -309,7 +292,7 @@ function pe(e, t) {
309
292
  }
310
293
  var me = _(fe, pe), he = "app_open";
311
294
  function ge(e, t) {
312
- let n = b(e), r = S(e), i = O(e), a = T(e);
295
+ let n = x(e), r = C(e), i = k(e), a = E(e);
313
296
  return h(he, [
314
297
  g("feature_list", "2-0-0", n),
315
298
  g("session", "1-0-4", r),
@@ -319,7 +302,7 @@ function ge(e, t) {
319
302
  }
320
303
  var _e = _(he, ge), ve = "experience_load";
321
304
  function ye(e, t) {
322
- let n = b(e), r = S(e), i = O(e, !0), a = T(e);
305
+ let n = x(e), r = C(e), i = k(e, !0), a = E(e);
323
306
  return h(ve, [
324
307
  g("feature_list", "2-0-0", n),
325
308
  g("session", "1-0-4", r),
@@ -329,7 +312,7 @@ function ye(e, t) {
329
312
  }
330
313
  var be = _(ve, ye), xe = "feature_decide";
331
314
  function Se(e, t) {
332
- let n = b(e), r = S(e), i = O(e), a = T(e);
315
+ let n = x(e), r = C(e), i = k(e), a = E(e);
333
316
  return h(xe, [
334
317
  g("feature_list", "2-0-0", n),
335
318
  g("session", "1-0-4", r),
@@ -339,7 +322,7 @@ function Se(e, t) {
339
322
  }
340
323
  var Ce = _(xe, Se), we = "step_complete";
341
324
  function Te(e, t) {
342
- let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = w(e), s = C(e);
325
+ let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = T(e), s = w(e);
343
326
  return h(we, [
344
327
  g("feature_list", "2-0-0", n),
345
328
  g("session", "1-0-4", r),
@@ -351,7 +334,7 @@ function Te(e, t) {
351
334
  }
352
335
  var Ee = _(we, Te), De = "step_enter";
353
336
  function Oe(e, t) {
354
- let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = C(e);
337
+ let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = w(e);
355
338
  return h(De, [
356
339
  g("feature_list", "2-0-0", n),
357
340
  g("session", "1-0-4", r),
@@ -362,7 +345,7 @@ function Oe(e, t) {
362
345
  }
363
346
  var ke = _(De, Oe), Ae = "step_submit";
364
347
  function je(e, t) {
365
- let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = w(e), s = C(e);
348
+ let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = T(e), s = w(e);
366
349
  return h(Ae, [
367
350
  g("feature_list", "2-0-0", n),
368
351
  g("session", "1-0-4", r),
@@ -374,7 +357,7 @@ function je(e, t) {
374
357
  }
375
358
  var Me = _(Ae, je), Ne = "step_submit_error";
376
359
  function Pe(e, t) {
377
- let n = b(e), r = S(e), i = k(e, !0), a = O(e), o = T(e, !0), s = C(e), c = w(e);
360
+ let n = x(e), r = C(e), i = A(e, !0), a = k(e), o = E(e, !0), s = w(e), c = T(e);
378
361
  return h(Ne, [
379
362
  g("feature_list", "2-0-0", n),
380
363
  g("session", "1-0-4", r),
@@ -387,7 +370,7 @@ function Pe(e, t) {
387
370
  }
388
371
  var Fe = _(Ne, Pe), Ie = "step_submit_success";
389
372
  function Le(e, t) {
390
- let n = b(e), r = S(e), i = O(e), a = T(e, !0), o = C(e), s = w(e);
373
+ let n = x(e), r = C(e), i = k(e), a = E(e, !0), o = w(e), s = T(e);
391
374
  return h(Ie, [
392
375
  g("feature_list", "2-0-0", n),
393
376
  g("session", "1-0-4", r),
@@ -399,7 +382,7 @@ function Le(e, t) {
399
382
  }
400
383
  var Re = _(Ie, Le), ze = "cart_add";
401
384
  function Be(e, t) {
402
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
385
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
403
386
  return h(ze, [
404
387
  g("app", "1-0-0", {
405
388
  organization_id: e.organizationId,
@@ -417,7 +400,7 @@ function Ve(e, t) {
417
400
  }
418
401
  var He = _(ze, Be), Ue = "cart_remove";
419
402
  function We(e, t) {
420
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
403
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
421
404
  return h(Ue, [
422
405
  g("app", "1-0-0", {
423
406
  organization_id: e.organizationId,
@@ -435,7 +418,7 @@ function Ge(e, t) {
435
418
  }
436
419
  var Ke = _(Ue, We), qe = "checkout_complete";
437
420
  function Je(e, t) {
438
- let n = b(e), r = S(e), i = E(e, !0), a = D(e, !0), o = O(e), s = T(e);
421
+ let n = x(e), r = C(e), i = D(e, !0), a = O(e, !0), o = k(e), s = E(e);
439
422
  return h(qe, [
440
423
  g("app", "1-0-0", {
441
424
  organization_id: e.organizationId,
@@ -454,7 +437,7 @@ function Ye(e, t) {
454
437
  }
455
438
  var Xe = _(qe, Je), Ze = "checkout_start";
456
439
  function Qe(e, t) {
457
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
440
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
458
441
  return h(Ze, [
459
442
  g("app", "1-0-0", {
460
443
  organization_id: e.organizationId,
@@ -472,7 +455,7 @@ function $e(e, t) {
472
455
  }
473
456
  var et = _(Ze, Qe), tt = "order_create";
474
457
  function nt(e, t) {
475
- let n = b(e), r = S(e), i = E(e, !0), a = D(e, !0), o = O(e), s = T(e);
458
+ let n = x(e), r = C(e), i = D(e, !0), a = O(e, !0), o = k(e), s = E(e);
476
459
  return h(tt, [
477
460
  g("app", "1-0-0", {
478
461
  organization_id: e.organizationId,
@@ -489,10 +472,10 @@ function nt(e, t) {
489
472
  function rt(e, t) {
490
473
  return nt(e, t);
491
474
  }
492
- var it = _(tt, nt), P = "product_list_view";
493
- function at(e, t) {
494
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
495
- return h(P, [
475
+ var it = _(tt, nt), at = "product_list_view";
476
+ function ot(e, t) {
477
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
478
+ return h(at, [
496
479
  g("app", "1-0-0", {
497
480
  organization_id: e.organizationId,
498
481
  project_id: e.projectId
@@ -504,13 +487,13 @@ function at(e, t) {
504
487
  a ? g("experience", "1-0-1", a) : void 0
505
488
  ], t);
506
489
  }
507
- function ot(e, t) {
508
- return at(e, t);
490
+ function st(e, t) {
491
+ return ot(e, t);
509
492
  }
510
- var st = _(P, at), ct = "product_select";
511
- function lt(e, t) {
512
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
513
- return h(ct, [
493
+ var ct = _(at, ot), lt = "product_select";
494
+ function ut(e, t) {
495
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
496
+ return h(lt, [
514
497
  g("feature_list", "2-0-0", n),
515
498
  g("session", "1-0-4", r),
516
499
  g("product_list", "2-0-1", i),
@@ -518,10 +501,10 @@ function lt(e, t) {
518
501
  o && g("step", "1-0-0", o)
519
502
  ], t);
520
503
  }
521
- var ut = _(ct, lt), dt = "product_view_details";
522
- function ft(e, t) {
523
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
524
- return h(dt, [
504
+ var dt = _(lt, ut), ft = "product_view_details";
505
+ function pt(e, t) {
506
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
507
+ return h(ft, [
525
508
  g("app", "1-0-0", {
526
509
  organization_id: e.organizationId,
527
510
  project_id: e.projectId
@@ -533,13 +516,13 @@ function ft(e, t) {
533
516
  o && g("step", "1-0-0", o)
534
517
  ], t);
535
518
  }
536
- function pt(e, t) {
537
- return ft(e, t);
519
+ function mt(e, t) {
520
+ return pt(e, t);
538
521
  }
539
- var mt = _(dt, ft), ht = "recommendation_present";
540
- function gt(e, t) {
541
- let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e, !0);
542
- return h(ht, [
522
+ var ht = _(ft, pt), gt = "recommendation_present";
523
+ function _t(e, t) {
524
+ let n = x(e), r = C(e), i = k(e), a = E(e), o = D(e, !0);
525
+ return h(gt, [
543
526
  g("feature_list", "2-0-0", n),
544
527
  g("session", "1-0-4", r),
545
528
  g("product_list", "2-0-1", o),
@@ -547,10 +530,10 @@ function gt(e, t) {
547
530
  a && g("step", "1-0-0", a)
548
531
  ], t);
549
532
  }
550
- var _t = _(ht, gt), vt = "search_results_list_view";
551
- function yt(e, t) {
552
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
553
- return h(vt, [
533
+ var vt = _(gt, _t), yt = "search_results_list_view";
534
+ function bt(e, t) {
535
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
536
+ return h(yt, [
554
537
  g("feature_list", "2-0-0", n),
555
538
  g("session", "1-0-4", r),
556
539
  g("product_list", "2-0-1", i),
@@ -558,10 +541,10 @@ function yt(e, t) {
558
541
  a ? g("experience", "1-0-1", a) : void 0
559
542
  ], t);
560
543
  }
561
- var bt = _(vt, yt), xt = "waitlist_join";
562
- function St(e, t) {
563
- let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e);
564
- return h(xt, [
544
+ var xt = _(yt, bt), St = "waitlist_join";
545
+ function Ct(e, t) {
546
+ let n = x(e), r = C(e), i = k(e), a = E(e), o = D(e);
547
+ return h(St, [
565
548
  g("app", "1-0-0", {
566
549
  organization_id: e.organizationId,
567
550
  project_id: e.projectId
@@ -573,10 +556,10 @@ function St(e, t) {
573
556
  o ? g("product_list", "2-0-1", o) : void 0
574
557
  ], t);
575
558
  }
576
- var Ct = _(xt, St), wt = "wishlist_add";
577
- function Tt(e, t) {
578
- let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
579
- return h(wt, [
559
+ var wt = _(St, Ct), Tt = "wishlist_add";
560
+ function Et(e, t) {
561
+ let n = x(e), r = C(e), i = D(e, !0), a = k(e), o = E(e);
562
+ return h(Tt, [
580
563
  g("feature_list", "2-0-0", n),
581
564
  g("session", "1-0-4", r),
582
565
  g("product_list", "2-0-1", i),
@@ -584,10 +567,10 @@ function Tt(e, t) {
584
567
  o && g("step", "1-0-0", o)
585
568
  ], t);
586
569
  }
587
- var Et = _(wt, Tt), Dt = "field_validation_error";
588
- function Ot(e, t) {
589
- let n = b(e), r = S(e), i = A(e), a = k(e, !0), o = O(e), s = T(e);
590
- return h(Dt, [
570
+ var Dt = _(Tt, Et), Ot = "field_validation_error";
571
+ function kt(e, t) {
572
+ let n = x(e), r = C(e), i = j(e), a = A(e, !0), o = k(e), s = E(e);
573
+ return h(Ot, [
591
574
  g("feature_list", "2-0-0", n),
592
575
  g("session", "1-0-4", r),
593
576
  g("exception", "1-0-0", a),
@@ -596,10 +579,10 @@ function Ot(e, t) {
596
579
  s && g("step", "1-0-0", s)
597
580
  ], t);
598
581
  }
599
- var kt = _(Dt, Ot), At = "form_submit";
600
- function jt(e, t) {
601
- let n = b(e), r = S(e), i = A(e), a = O(e), o = T(e);
602
- return h(At, [
582
+ var At = _(Ot, kt), jt = "form_submit";
583
+ function Mt(e, t) {
584
+ let n = x(e), r = C(e), i = j(e), a = k(e), o = E(e);
585
+ return h(jt, [
603
586
  g("feature_list", "2-0-0", n),
604
587
  g("session", "1-0-4", r),
605
588
  g("form", "1-0-0", i),
@@ -607,10 +590,10 @@ function jt(e, t) {
607
590
  o && g("step", "1-0-0", o)
608
591
  ], t);
609
592
  }
610
- var Mt = _(At, jt), Nt = "form_submit_error";
611
- function Pt(e, t) {
612
- let n = b(e), r = S(e), i = A(e), a = k(e, !0), o = O(e), s = T(e);
613
- return h(Nt, [
593
+ var Nt = _(jt, Mt), Pt = "form_submit_error";
594
+ function Ft(e, t) {
595
+ let n = x(e), r = C(e), i = j(e), a = A(e, !0), o = k(e), s = E(e);
596
+ return h(Pt, [
614
597
  g("feature_list", "2-0-0", n),
615
598
  g("session", "1-0-4", r),
616
599
  g("form", "1-0-0", i),
@@ -619,10 +602,10 @@ function Pt(e, t) {
619
602
  s && g("step", "1-0-0", s)
620
603
  ], t);
621
604
  }
622
- var Ft = _(Nt, Pt), It = "form_submit_success";
623
- function Lt(e, t) {
624
- let n = b(e), r = S(e), i = A(e), a = O(e), o = T(e);
625
- return h(It, [
605
+ var It = _(Pt, Ft), Lt = "form_submit_success";
606
+ function Rt(e, t) {
607
+ let n = x(e), r = C(e), i = j(e), a = k(e), o = E(e);
608
+ return h(Lt, [
626
609
  g("feature_list", "2-0-0", n),
627
610
  g("session", "1-0-4", r),
628
611
  g("form", "1-0-0", i),
@@ -630,10 +613,10 @@ function Lt(e, t) {
630
613
  o && g("step", "1-0-0", o)
631
614
  ], t);
632
615
  }
633
- var Rt = _(It, Lt), zt = "identify";
634
- function Bt(e, t) {
635
- let n = b(e), r = S(e), i = O(e), a = T(e);
636
- return h(zt, [
616
+ var zt = _(Lt, Rt), Bt = "identify";
617
+ function Vt(e, t) {
618
+ let n = x(e), r = C(e), i = k(e), a = E(e);
619
+ return h(Bt, [
637
620
  g("app", "1-0-0", {
638
621
  organization_id: e.organizationId,
639
622
  project_id: e.projectId
@@ -644,23 +627,23 @@ function Bt(e, t) {
644
627
  i ? g("experience", "1-0-1", i) : void 0
645
628
  ], t);
646
629
  }
647
- function Vt(e, t) {
648
- return Bt(e, t);
630
+ function Ht(e, t) {
631
+ return Vt(e, t);
649
632
  }
650
- var Ht = _(zt, Bt), Ut = "lead_capture";
651
- function Wt(e, t) {
652
- let n = b(e), r = S(e), i = O(e), a = T(e);
653
- return h(Ut, [
633
+ var Ut = _(Bt, Vt), Wt = "lead_capture";
634
+ function Gt(e, t) {
635
+ let n = x(e), r = C(e), i = k(e), a = E(e);
636
+ return h(Wt, [
654
637
  g("feature_list", "2-0-0", n),
655
638
  g("session", "1-0-4", r),
656
639
  a && g("step", "1-0-0", a),
657
640
  i && g("experience", "1-0-1", i)
658
641
  ], t);
659
642
  }
660
- var Gt = _(Ut, Wt), Kt = "modal_close";
661
- function qt(e, t) {
662
- let n = b(e), r = S(e), i = j(e), a = O(e), o = T(e);
663
- return h(Kt, [
643
+ var Kt = _(Wt, Gt), qt = "modal_close";
644
+ function Jt(e, t) {
645
+ let n = x(e), r = C(e), i = M(e), a = k(e), o = E(e);
646
+ return h(qt, [
664
647
  g("feature_list", "2-0-0", n),
665
648
  g("session", "1-0-4", r),
666
649
  g("modal", "1-0-0", i),
@@ -668,10 +651,10 @@ function qt(e, t) {
668
651
  o && g("step", "1-0-0", o)
669
652
  ], t);
670
653
  }
671
- var Jt = _(Kt, qt), Yt = "modal_open";
672
- function Xt(e, t) {
673
- let n = b(e), r = S(e), i = j(e), a = O(e), o = T(e);
674
- return h(Yt, [
654
+ var Yt = _(qt, Jt), Xt = "modal_open";
655
+ function Zt(e, t) {
656
+ let n = x(e), r = C(e), i = M(e), a = k(e), o = E(e);
657
+ return h(Xt, [
675
658
  g("feature_list", "2-0-0", n),
676
659
  g("session", "1-0-4", r),
677
660
  g("modal", "1-0-0", i),
@@ -679,10 +662,10 @@ function Xt(e, t) {
679
662
  o && g("step", "1-0-0", o)
680
663
  ], t);
681
664
  }
682
- var Zt = _(Yt, Xt), Qt = "page_view";
683
- function $t(e, t) {
684
- let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e);
685
- return h(Qt, [
665
+ var Qt = _(Xt, Zt), $t = "page_view";
666
+ function en(e, t) {
667
+ let n = x(e), r = C(e), i = k(e), a = E(e), o = D(e);
668
+ return h($t, [
686
669
  g("app", "1-0-0", {
687
670
  organization_id: e.organizationId,
688
671
  project_id: e.projectId
@@ -694,16 +677,16 @@ function $t(e, t) {
694
677
  o ? g("product_list", "2-0-1", o) : void 0
695
678
  ], t);
696
679
  }
697
- function en(e, t) {
698
- return $t(e, t);
680
+ function tn(e, t) {
681
+ return en(e, t);
699
682
  }
700
- var tn = _(Qt, $t);
683
+ var nn = _($t, en);
701
684
  //#endregion
702
685
  //#region src/helpers/element.ts
703
686
  function F(e) {
704
687
  return e instanceof Element;
705
688
  }
706
- function nn(e) {
689
+ function rn(e) {
707
690
  return `data-picked-${e.replaceAll("_", "-")}`;
708
691
  }
709
692
  function I(e) {
@@ -774,9 +757,9 @@ function R(e) {
774
757
  }
775
758
  return "placeholder" in e && typeof e.placeholder == "string" ? e.placeholder : null;
776
759
  }
777
- function rn(e, t) {
760
+ function an(e, t) {
778
761
  if (!F(e)) return null;
779
- let n = nn(t), r = e.closest(`[${n}]`);
762
+ let n = rn(t), r = e.closest(`[${n}]`);
780
763
  if (!r) return null;
781
764
  let i = r.getAttribute(n);
782
765
  return i ? {
@@ -786,15 +769,15 @@ function rn(e, t) {
786
769
  }
787
770
  //#endregion
788
771
  //#region src/helpers/text.ts
789
- var an = 255;
772
+ var on = 255;
790
773
  function z(e) {
791
- return e ? e.slice(0, an) : null;
774
+ return e ? e.slice(0, on) : null;
792
775
  }
793
776
  //#endregion
794
777
  //#region src/events/interaction/click.ts
795
778
  var B = "click";
796
- function on(e, t) {
797
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
779
+ function sn(e, t) {
780
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
798
781
  if (!F(o)) return h(B, [
799
782
  g("feature_list", "2-0-0", n),
800
783
  g("session", "1-0-4", r),
@@ -816,11 +799,11 @@ function on(e, t) {
816
799
  i ? g("experience", "1-0-1", i) : void 0
817
800
  ], t);
818
801
  }
819
- var V = _(B, on);
802
+ var cn = _(B, sn);
820
803
  //#endregion
821
804
  //#region src/events/custom.ts
822
- function sn(e, t, n, r) {
823
- let i = k(n.analyticsContext), a = O(n.analyticsContext), o = b(n.analyticsContext), s = C(n.analyticsContext), c = A(n.analyticsContext), l = j(n.analyticsContext), u = D(n.analyticsContext), d = E(n.analyticsContext), f = w(n.analyticsContext), p = S(n.analyticsContext), m = T(n.analyticsContext), _ = {
805
+ function ln(e, t, n, r) {
806
+ let i = A(n.analyticsContext), a = k(n.analyticsContext), o = x(n.analyticsContext), s = w(n.analyticsContext), c = j(n.analyticsContext), l = M(n.analyticsContext), u = O(n.analyticsContext), d = D(n.analyticsContext), f = T(n.analyticsContext), p = C(n.analyticsContext), m = E(n.analyticsContext), _ = {
824
807
  id: t.id || null,
825
808
  node_type: t.nodeName.toLowerCase(),
826
809
  label: z(R(t)),
@@ -845,14 +828,14 @@ function sn(e, t, n, r) {
845
828
  m ? g("step", "1-0-0", m) : void 0
846
829
  ], r);
847
830
  }
848
- function H(e, t, n) {
849
- let r = rn(t.event.target, e);
831
+ function V(e, t, n) {
832
+ let r = an(t.event.target, e);
850
833
  if (!r) return;
851
834
  let { element: a, customEventName: o } = r;
852
- i(sn(o, a, t, n));
835
+ i(ln(o, a, t, n));
853
836
  }
854
- function cn(e, t, n) {
855
- let r = k(e), a = O(e), o = b(e), s = C(e), c = e.form ? A(e) : void 0, l = e.modal ? j(e) : void 0, u = D(e), d = E(e), f = w(e), p = S(e), m = T(e);
837
+ function un(e, t, n) {
838
+ let r = A(e), a = k(e), o = x(e), s = w(e), c = e.form ? j(e) : void 0, l = e.modal ? M(e) : void 0, u = O(e), d = D(e), f = T(e), p = C(e), m = E(e);
856
839
  i(h(t, [
857
840
  g("app", "1-0-0", {
858
841
  organization_id: e.organizationId,
@@ -873,10 +856,10 @@ function cn(e, t, n) {
873
856
  }
874
857
  //#endregion
875
858
  //#region src/events/interaction/rapid_scroll.ts
876
- var U = "rapid_scroll";
877
- function ln(e, t) {
878
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
879
- if (!F(o)) return h(U, [
859
+ var H = "rapid_scroll";
860
+ function dn(e, t) {
861
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
862
+ if (!F(o)) return h(H, [
880
863
  g("feature_list", "2-0-0", n),
881
864
  g("session", "1-0-4", r),
882
865
  a ? g("step", "1-0-0", a) : void 0,
@@ -889,7 +872,7 @@ function ln(e, t) {
889
872
  label: z(R(s)),
890
873
  text: z(L(s))
891
874
  };
892
- return h(U, [
875
+ return h(H, [
893
876
  g("feature_list", "2-0-0", n),
894
877
  g("session", "1-0-4", r),
895
878
  a ? g("step", "1-0-0", a) : void 0,
@@ -897,19 +880,19 @@ function ln(e, t) {
897
880
  g("element", "1-0-0", c)
898
881
  ], t);
899
882
  }
900
- var un = _(U, ln), dn = 100, fn = 100, pn = 300, mn = 0, hn = 0, gn = M((e, t) => {
901
- un(e, t), H("rapid_scroll", e, t);
902
- }, pn);
903
- function _n(e, t) {
883
+ var fn = _(H, dn), pn = 100, mn = 100, hn = 300, gn = 0, _n = 0, vn = N((e, t) => {
884
+ fn(e, t), V("rapid_scroll", e, t);
885
+ }, hn);
886
+ function yn(e, t) {
904
887
  let n = e.event.target || document.documentElement;
905
888
  if (!(n instanceof HTMLElement)) return;
906
- let r = n.scrollTop, i = Date.now() - hn;
907
- Math.abs(r - mn) > dn && i < fn && gn(e, t), mn = r, hn = Date.now();
889
+ let r = n.scrollTop, i = Date.now() - _n;
890
+ Math.abs(r - gn) > pn && i < mn && vn(e, t), gn = r, _n = Date.now();
908
891
  }
909
- var vn = v("scroll", _n, !0), W = "rapid_click";
910
- function yn(e, t) {
911
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
912
- if (!F(o)) return h(W, [
892
+ var bn = y("scroll", yn, !0), U = "rapid_click";
893
+ function xn(e, t) {
894
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
895
+ if (!F(o)) return h(U, [
913
896
  g("feature_list", "2-0-0", n),
914
897
  g("session", "1-0-4", r),
915
898
  g("element", "1-0-0", { node_type: "unknown" }),
@@ -922,7 +905,7 @@ function yn(e, t) {
922
905
  label: z(R(s)),
923
906
  text: z(L(s))
924
907
  };
925
- return h(W, [
908
+ return h(U, [
926
909
  g("feature_list", "2-0-0", n),
927
910
  g("session", "1-0-4", r),
928
911
  g("element", "1-0-0", c),
@@ -930,15 +913,15 @@ function yn(e, t) {
930
913
  i ? g("experience", "1-0-1", i) : void 0
931
914
  ], t);
932
915
  }
933
- var bn = _(W, yn), G = 0, xn = 0, Sn = 3, Cn = 500;
934
- function wn(e, t) {
916
+ var Sn = _(U, xn), W = 0, Cn = 0, wn = 3, Tn = 500;
917
+ function En(e, t) {
935
918
  let n = (/* @__PURE__ */ new Date()).getTime();
936
- n - xn < Cn ? G++ : G = 1, xn = n, G >= Sn && (bn(e, t), H("rapid_click", e, t), G = 0);
919
+ n - Cn < Tn ? W++ : W = 1, Cn = n, W >= wn && (Sn(e, t), V("rapid_click", e, t), W = 0);
937
920
  }
938
- var Tn = v("click", wn), K = "right_click";
939
- function En(e, t) {
940
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
941
- if (!F(o)) return h(K, [
921
+ var Dn = y("click", En), G = "right_click";
922
+ function On(e, t) {
923
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
924
+ if (!F(o)) return h(G, [
942
925
  g("feature_list", "2-0-0", n),
943
926
  g("session", "1-0-4", r),
944
927
  g("element", "1-0-0", { node_type: "unknown" }),
@@ -951,7 +934,7 @@ function En(e, t) {
951
934
  label: z(R(s)),
952
935
  text: z(L(s))
953
936
  };
954
- return h(K, [
937
+ return h(G, [
955
938
  g("feature_list", "2-0-0", n),
956
939
  g("session", "1-0-4", r),
957
940
  g("element", "1-0-0", c),
@@ -959,69 +942,69 @@ function En(e, t) {
959
942
  i ? g("experience", "1-0-1", i) : void 0
960
943
  ], t);
961
944
  }
962
- var Dn = _(K, En);
945
+ var kn = _(G, On);
963
946
  //#endregion
964
947
  //#region src/listeners/right_click.ts
965
- function On(e, t) {
966
- Dn(e, t), H("right_click", e, t);
948
+ function An(e, t) {
949
+ kn(e, t), V("right_click", e, t);
967
950
  }
968
- var kn = v("contextmenu", On), An = "mouse_shake";
969
- function jn(e, t) {
970
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
971
- return h(An, [
951
+ var jn = y("contextmenu", An), Mn = "mouse_shake";
952
+ function Nn(e, t) {
953
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
954
+ return h(Mn, [
972
955
  g("feature_list", "2-0-0", n),
973
956
  g("session", "1-0-4", r),
974
957
  a ? g("step", "1-0-0", a) : void 0,
975
958
  i ? g("experience", "1-0-1", i) : void 0
976
959
  ], t);
977
960
  }
978
- var Mn = _(An, jn), Nn = 5, Pn = 500, Fn = 500, In = {
961
+ var Pn = _(Mn, Nn), Fn = 5, In = 500, Ln = 500, Rn = {
979
962
  x: 0,
980
963
  y: 0
981
- }, q = [], Ln = 0, Rn = M((e, t) => {
982
- Mn(e, t), H("mouse_shake", e, t);
983
- }, Pn);
984
- function zn(e, t) {
985
- let n = Date.now(), r = e.event.clientX - In.x, i = Math.sign(r);
986
- n - Ln > Fn && (q = []), i !== 0 && (q.length === 0 || q.at(-1) !== i) && q.push(i), In = {
964
+ }, K = [], zn = 0, Bn = N((e, t) => {
965
+ Pn(e, t), V("mouse_shake", e, t);
966
+ }, In);
967
+ function Vn(e, t) {
968
+ let n = Date.now(), r = e.event.clientX - Rn.x, i = Math.sign(r);
969
+ n - zn > Ln && (K = []), i !== 0 && (K.length === 0 || K.at(-1) !== i) && K.push(i), Rn = {
987
970
  x: e.event.clientX,
988
971
  y: e.event.clientY
989
- }, q.length >= Nn && (Rn(e, t), q = []), Ln = n;
972
+ }, K.length >= Fn && (Bn(e, t), K = []), zn = n;
990
973
  }
991
- var Bn = v("mousemove", zn), Vn = "page_visible";
992
- function Hn(e, t) {
993
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
994
- return h(Vn, [
974
+ var Hn = y("mousemove", Vn), Un = "page_visible";
975
+ function Wn(e, t) {
976
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
977
+ return h(Un, [
995
978
  g("feature_list", "2-0-0", n),
996
979
  g("session", "1-0-4", r),
997
980
  a ? g("step", "1-0-0", a) : void 0,
998
981
  i ? g("experience", "1-0-1", i) : void 0
999
982
  ], t);
1000
983
  }
1001
- var Un = _(Vn, Hn), Wn = "page_hidden";
1002
- function Gn(e, t) {
1003
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1004
- return h(Wn, [
984
+ var Gn = _(Un, Wn), Kn = "page_hidden";
985
+ function qn(e, t) {
986
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
987
+ return h(Kn, [
1005
988
  g("feature_list", "2-0-0", n),
1006
989
  g("session", "1-0-4", r),
1007
990
  a ? g("step", "1-0-0", a) : void 0,
1008
991
  i ? g("experience", "1-0-1", i) : void 0
1009
992
  ], t);
1010
993
  }
1011
- var Kn = _(Wn, Gn);
994
+ var Jn = _(Kn, qn);
1012
995
  //#endregion
1013
996
  //#region src/listeners/visibility.ts
1014
- function qn(e, t) {
997
+ function Yn(e, t) {
1015
998
  if (document.visibilityState === "visible") {
1016
- Un(e, t);
999
+ Gn(e, t);
1017
1000
  return;
1018
1001
  }
1019
- Kn(e, t);
1002
+ Jn(e, t);
1020
1003
  }
1021
- var Jn = ee("visibilitychange", qn), J = "backspace";
1022
- function Yn(e, t) {
1023
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1024
- if (!F(o)) return h(J, [
1004
+ var Xn = ee("visibilitychange", Yn), q = "backspace";
1005
+ function Zn(e, t) {
1006
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1007
+ if (!F(o)) return h(q, [
1025
1008
  g("feature_list", "2-0-0", n),
1026
1009
  g("session", "1-0-4", r),
1027
1010
  g("element", "1-0-0", { node_type: "unknown" }),
@@ -1034,7 +1017,7 @@ function Yn(e, t) {
1034
1017
  label: z(R(s)),
1035
1018
  text: z(L(s))
1036
1019
  };
1037
- return h(J, [
1020
+ return h(q, [
1038
1021
  g("feature_list", "2-0-0", n),
1039
1022
  g("session", "1-0-4", r),
1040
1023
  g("element", "1-0-0", c),
@@ -1042,64 +1025,64 @@ function Yn(e, t) {
1042
1025
  i ? g("experience", "1-0-1", i) : void 0
1043
1026
  ], t);
1044
1027
  }
1045
- var Xn = _(J, Yn);
1028
+ var Qn = _(q, Zn);
1046
1029
  //#endregion
1047
1030
  //#region src/listeners/backspace.ts
1048
- function Zn(e, t) {
1049
- e.event.key === "Backspace" && Xn(e, t);
1031
+ function $n(e, t) {
1032
+ e.event.key === "Backspace" && Qn(e, t);
1050
1033
  }
1051
- var Qn = v("keydown", Zn), $n = "page_hide";
1052
- function er(e, t) {
1053
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1054
- return h($n, [
1034
+ var er = y("keydown", $n), tr = "page_hide";
1035
+ function nr(e, t) {
1036
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1037
+ return h(tr, [
1055
1038
  g("feature_list", "2-0-0", n),
1056
1039
  g("session", "1-0-4", r),
1057
1040
  a ? g("step", "1-0-0", a) : void 0,
1058
1041
  i ? g("experience", "1-0-1", i) : void 0
1059
1042
  ], t);
1060
1043
  }
1061
- var tr = _($n, er);
1044
+ var rr = _(tr, nr);
1062
1045
  //#endregion
1063
1046
  //#region src/listeners/pagehide.ts
1064
- function nr(e, t) {
1065
- tr(e, t);
1047
+ function ir(e, t) {
1048
+ rr(e, t);
1066
1049
  }
1067
- var rr = y("pagehide", nr), ir = "page_show";
1068
- function ar(e, t) {
1069
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1070
- return h(ir, [
1050
+ var ar = b("pagehide", ir), or = "page_show";
1051
+ function sr(e, t) {
1052
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1053
+ return h(or, [
1071
1054
  g("feature_list", "2-0-0", n),
1072
1055
  g("session", "1-0-4", r),
1073
1056
  a ? g("step", "1-0-0", a) : void 0,
1074
1057
  i ? g("experience", "1-0-1", i) : void 0
1075
1058
  ], t);
1076
1059
  }
1077
- var or = _(ir, ar);
1060
+ var cr = _(or, sr);
1078
1061
  //#endregion
1079
1062
  //#region src/listeners/pageshow.ts
1080
- function sr(e, t) {
1081
- or(e, t);
1063
+ function lr(e, t) {
1064
+ cr(e, t);
1082
1065
  }
1083
- var cr = y("pageshow", sr), lr = "offline";
1084
- function ur(e, t) {
1085
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1086
- return h(lr, [
1066
+ var ur = b("pageshow", lr), dr = "offline";
1067
+ function fr(e, t) {
1068
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1069
+ return h(dr, [
1087
1070
  g("feature_list", "2-0-0", n),
1088
1071
  g("session", "1-0-4", r),
1089
1072
  a ? g("step", "1-0-0", a) : void 0,
1090
1073
  i ? g("experience", "1-0-1", i) : void 0
1091
1074
  ], t);
1092
1075
  }
1093
- var dr = _(lr, ur);
1076
+ var pr = _(dr, fr);
1094
1077
  //#endregion
1095
1078
  //#region src/listeners/offline.ts
1096
- function fr(e, t) {
1097
- dr(e, t);
1098
- }
1099
- var pr = y("offline", fr), Y = "scroll";
1100
1079
  function mr(e, t) {
1101
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1102
- if (!F(o)) return h(Y, [
1080
+ pr(e, t);
1081
+ }
1082
+ var hr = b("offline", mr), J = "scroll";
1083
+ function gr(e, t) {
1084
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1085
+ if (!F(o)) return h(J, [
1103
1086
  g("feature_list", "2-0-0", n),
1104
1087
  g("session", "1-0-4", r),
1105
1088
  a ? g("step", "1-0-0", a) : void 0,
@@ -1111,7 +1094,7 @@ function mr(e, t) {
1111
1094
  label: z(R(s)),
1112
1095
  text: z(L(s))
1113
1096
  };
1114
- return h(Y, [
1097
+ return h(J, [
1115
1098
  g("feature_list", "2-0-0", n),
1116
1099
  g("session", "1-0-4", r),
1117
1100
  a ? g("step", "1-0-0", a) : void 0,
@@ -1119,62 +1102,62 @@ function mr(e, t) {
1119
1102
  g("element", "1-0-0", c)
1120
1103
  ], t);
1121
1104
  }
1122
- var hr = _(Y, mr), gr = v("scroll", M((e, t) => {
1123
- hr(e, t), H("scroll", e, t);
1124
- }, 500), !0), _r = "online";
1125
- function vr(e, t) {
1126
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1127
- return h(_r, [
1105
+ var _r = _(J, gr), vr = y("scroll", N((e, t) => {
1106
+ _r(e, t), V("scroll", e, t);
1107
+ }, 500), !0), yr = "online";
1108
+ function br(e, t) {
1109
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1110
+ return h(yr, [
1128
1111
  g("feature_list", "2-0-0", n),
1129
1112
  g("session", "1-0-4", r),
1130
1113
  a ? g("step", "1-0-0", a) : void 0,
1131
1114
  i ? g("experience", "1-0-1", i) : void 0
1132
1115
  ], t);
1133
1116
  }
1134
- var yr = _(_r, vr);
1117
+ var xr = _(yr, br);
1135
1118
  //#endregion
1136
1119
  //#region src/listeners/online.ts
1137
- function br(e, t) {
1138
- yr(e, t);
1120
+ function Sr(e, t) {
1121
+ xr(e, t);
1139
1122
  }
1140
- var xr = y("online", br), Sr = "resize";
1141
- function Cr(e, t) {
1142
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1143
- return h(Sr, [
1123
+ var Cr = b("online", Sr), Y = "resize";
1124
+ function wr(e, t) {
1125
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1126
+ return h(Y, [
1144
1127
  g("feature_list", "2-0-0", n),
1145
1128
  g("session", "1-0-4", r),
1146
1129
  a ? g("step", "1-0-0", a) : void 0,
1147
1130
  i ? g("experience", "1-0-1", i) : void 0
1148
1131
  ], t);
1149
1132
  }
1150
- var wr = _(Sr, Cr), X = 0, Tr = y("resize", M((e, t) => {
1133
+ var Tr = _(Y, wr), X = 0, Er = b("resize", N((e, t) => {
1151
1134
  let n = window.innerWidth;
1152
- n === X ? "ontouchstart" in window || wr(e, t) : (wr(e, t), X = n), X = n;
1153
- }, 300)), Er = "unload";
1154
- function Dr(e, t) {
1155
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext);
1156
- return h(Er, [
1135
+ n === X ? "ontouchstart" in window || Tr(e, t) : (Tr(e, t), X = n), X = n;
1136
+ }, 300)), Dr = "unload";
1137
+ function Or(e, t) {
1138
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext);
1139
+ return h(Dr, [
1157
1140
  g("feature_list", "2-0-0", n),
1158
1141
  g("session", "1-0-4", r),
1159
1142
  a ? g("step", "1-0-0", a) : void 0,
1160
1143
  i ? g("experience", "1-0-1", i) : void 0
1161
1144
  ], t);
1162
1145
  }
1163
- var Or = _(Er, Dr);
1146
+ var kr = _(Dr, Or);
1164
1147
  //#endregion
1165
1148
  //#region src/listeners/unload.ts
1166
- function kr(e, t) {
1167
- Or(e, t);
1149
+ function Ar(e, t) {
1150
+ kr(e, t);
1168
1151
  }
1169
- var Ar = y("unload", kr);
1152
+ var jr = b("unload", Ar);
1170
1153
  //#endregion
1171
1154
  //#region src/listeners/click.ts
1172
- function jr(e, t) {
1173
- V(e, t), H("click", e, t);
1155
+ function Mr(e, t) {
1156
+ cn(e, t), V("click", e, t);
1174
1157
  }
1175
- var Mr = v("click", jr), Z = "paste";
1176
- function Nr(e, t) {
1177
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1158
+ var Nr = y("click", Mr), Z = "paste";
1159
+ function Pr(e, t) {
1160
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1178
1161
  if (!F(o)) return h(Z, [
1179
1162
  g("feature_list", "2-0-0", n),
1180
1163
  g("session", "1-0-4", r),
@@ -1195,15 +1178,15 @@ function Nr(e, t) {
1195
1178
  g("element", "1-0-0", c)
1196
1179
  ], t);
1197
1180
  }
1198
- var Pr = _(Z, Nr);
1181
+ var Fr = _(Z, Pr);
1199
1182
  //#endregion
1200
1183
  //#region src/listeners/paste.ts
1201
- function Fr(e, t) {
1202
- Pr(e, t);
1184
+ function Ir(e, t) {
1185
+ Fr(e, t);
1203
1186
  }
1204
- var Ir = v("paste", Fr), Q = "copy";
1205
- function Lr(e, t) {
1206
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1187
+ var Lr = y("paste", Ir), Q = "copy";
1188
+ function Rr(e, t) {
1189
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1207
1190
  if (!F(o)) return h(Q, [
1208
1191
  g("feature_list", "2-0-0", n),
1209
1192
  g("session", "1-0-4", r),
@@ -1224,15 +1207,15 @@ function Lr(e, t) {
1224
1207
  g("element", "1-0-0", c)
1225
1208
  ], t);
1226
1209
  }
1227
- var Rr = _(Q, Lr);
1210
+ var zr = _(Q, Rr);
1228
1211
  //#endregion
1229
1212
  //#region src/listeners/copy.ts
1230
- function zr(e, t) {
1231
- Rr(e, t);
1213
+ function Br(e, t) {
1214
+ zr(e, t);
1232
1215
  }
1233
- var Br = v("copy", zr), $ = "drag";
1234
- function Vr(e, t) {
1235
- let n = b(e.analyticsContext), r = S(e.analyticsContext), i = O(e.analyticsContext), a = T(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1216
+ var Vr = y("copy", Br), $ = "drag";
1217
+ function Hr(e, t) {
1218
+ let n = x(e.analyticsContext), r = C(e.analyticsContext), i = k(e.analyticsContext), a = E(e.analyticsContext), o = e.event.target || document.activeElement || e.event.currentTarget;
1236
1219
  if (!F(o)) return h($, [
1237
1220
  g("feature_list", "2-0-0", n),
1238
1221
  g("session", "1-0-4", r),
@@ -1253,28 +1236,28 @@ function Vr(e, t) {
1253
1236
  g("element", "1-0-0", c)
1254
1237
  ], t);
1255
1238
  }
1256
- var Hr = _($, Vr);
1239
+ var Ur = _($, Hr);
1257
1240
  //#endregion
1258
1241
  //#region src/listeners/drag.ts
1259
- function Ur(e, t) {
1242
+ function Wr(e, t) {
1260
1243
  let n = e.event.currentTarget;
1261
1244
  if (!n || !(n instanceof HTMLElement)) return;
1262
1245
  function r(t) {
1263
- Ur({
1246
+ Wr({
1264
1247
  event: t,
1265
1248
  analyticsContext: e.analyticsContext
1266
1249
  });
1267
1250
  }
1268
- n.removeEventListener("drag", r), n.addEventListener("dragend", () => Wr(n, () => e.analyticsContext)), Hr(e, t), H("drag", e, t);
1251
+ n.removeEventListener("drag", r), n.addEventListener("dragend", () => Gr(n, () => e.analyticsContext)), Ur(e, t), V("drag", e, t);
1269
1252
  }
1270
- var Wr = v("drag", Ur);
1253
+ var Gr = y("drag", Wr);
1271
1254
  //#endregion
1272
1255
  //#region src/user-interaction.ts
1273
- function Gr(e, t) {
1274
- t && (Mr(t, e), Tn(t, e), kn(t, e), Br(t, e), Ir(t, e), Wr(t, e), Qn(t, e), gr(t, e), vn(t, e), Bn(t, e));
1256
+ function Kr(e, t) {
1257
+ t && (Nr(t, e), Dn(t, e), jn(t, e), Vr(t, e), Lr(t, e), Gr(t, e), er(t, e), vr(t, e), bn(t, e), Hn(t, e));
1275
1258
  }
1276
- function Kr(e) {
1277
- Jn(e), rr(e), cr(e), pr(e), xr(e), Tr(e), Ar(e);
1259
+ function qr(e) {
1260
+ Xn(e), ar(e), ur(e), hr(e), Cr(e), Er(e), jr(e);
1278
1261
  }
1279
1262
  //#endregion
1280
- export { Ye as A, Ee as B, ut as C, it as D, rt as E, He as F, de as G, be as H, Re as I, ce as K, Fe as L, Ge as M, Ke as N, $e as O, Ve as P, Me as R, mt as S, st as T, _e as U, Ce as V, me as W, Et as _, V as a, _t as b, Zt as c, Vt as d, Ht as f, kt as g, Mt as h, cn as i, Xe as j, et as k, Jt as l, Ft as m, Gr as n, en as o, Rt as p, ie as q, H as r, tn as s, Kr as t, Gt as u, Ct as v, ot as w, pt as x, bt as y, ke as z };
1263
+ export { Ye as A, Ee as B, dt as C, it as D, rt as E, He as F, de as G, be as H, Re as I, ce as K, Fe as L, Ge as M, Ke as N, $e as O, Ve as P, Me as R, ht as S, ct as T, _e as U, Ce as V, me as W, Dt as _, cn as a, vt as b, Qt as c, Ht as d, Ut as f, At as g, Nt as h, un as i, Xe as j, et as k, Yt as l, It as m, Kr as n, tn as o, zt as p, ie as q, V as r, nn as s, qr as t, Kt as u, wt as v, st as w, mt as x, xt as y, ke as z };