@picked/analytics 0.0.1-dev.1773729274420 → 0.0.1-dev.1773807602703

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.
@@ -33,21 +33,21 @@ function e(t, n, o) {
33
33
  }
34
34
  function p(t, n) {
35
35
  return (o, i) => {
36
- const a = n(o, i);
37
- Q(a);
36
+ const s = n(o, i);
37
+ Q(s);
38
38
  };
39
39
  }
40
40
  function k(t, n, o = { passive: !0 }) {
41
41
  const i = /* @__PURE__ */ new WeakMap();
42
- return (a, s) => {
43
- let r = i.get(a);
44
- if (r || (r = /* @__PURE__ */ new Set(), i.set(a, r)), r.has(t))
42
+ return (s, a) => {
43
+ let r = i.get(s);
44
+ if (r || (r = /* @__PURE__ */ new Set(), i.set(s, r)), r.has(t))
45
45
  return;
46
46
  function c(m) {
47
- const E = s();
47
+ const E = a();
48
48
  n({ event: m, analyticsContext: E });
49
49
  }
50
- a.addEventListener(t, c, o), r.add(t);
50
+ s.addEventListener(t, c, o), r.add(t);
51
51
  };
52
52
  }
53
53
  function Kt(t, n) {
@@ -55,35 +55,35 @@ function Kt(t, n) {
55
55
  return (i) => {
56
56
  if (o.has(t) || !at())
57
57
  return;
58
- function a(s) {
58
+ function s(a) {
59
59
  const r = i();
60
- n({ event: s, analyticsContext: r });
60
+ n({ event: a, analyticsContext: r });
61
61
  }
62
- document.addEventListener(t, a, { passive: !0 }), o.add(t);
62
+ document.addEventListener(t, s, { passive: !0 }), o.add(t);
63
63
  };
64
64
  }
65
- function V(t, n) {
65
+ function S(t, n) {
66
66
  const o = /* @__PURE__ */ new Set();
67
67
  return (i) => {
68
68
  if (o.has(t) || !Ut())
69
69
  return;
70
- function a(s) {
70
+ function s(a) {
71
71
  const r = i();
72
- n({ event: s, analyticsContext: r });
72
+ n({ event: a, analyticsContext: r });
73
73
  }
74
- window.addEventListener(t, a, { passive: !0 }), o.add(t);
74
+ window.addEventListener(t, s, { passive: !0 }), o.add(t);
75
75
  };
76
76
  }
77
77
  function u(t) {
78
- return { items: t.features?.map(({ feature: o, name: i, key: a, bucket: s }) => ({
78
+ return { items: t.features?.map(({ feature: o, name: i, key: s, bucket: a }) => ({
79
79
  ab_feature: o,
80
80
  ab_name: i,
81
- ab_key: a,
82
- ab_bucket: s
81
+ ab_key: s,
82
+ ab_bucket: a
83
83
  })) || [] };
84
84
  }
85
85
  const _ = "unknown";
86
- function d(t) {
86
+ function f(t) {
87
87
  const n = Mt(), o = {
88
88
  id: t.sessionId || null
89
89
  };
@@ -92,11 +92,11 @@ function d(t) {
92
92
  function B(t) {
93
93
  if (t.fields)
94
94
  return {
95
- items: t.fields.map(({ id: n, type: o, label: i, options: a }) => ({
95
+ items: t.fields.map(({ id: n, type: o, label: i, options: s }) => ({
96
96
  id: n,
97
97
  type: o,
98
98
  label: i,
99
- options: Array.isArray(a) ? a.map(({ id: s, label: r, value: c }) => ({ id: s ?? String(c), label: r, value: c })) : void 0
99
+ options: Array.isArray(s) ? s : void 0
100
100
  }))
101
101
  };
102
102
  }
@@ -111,7 +111,7 @@ function j(t) {
111
111
  )
112
112
  };
113
113
  }
114
- function f(t, n = !1) {
114
+ function d(t, n = !1) {
115
115
  const { step: o } = t;
116
116
  if (o)
117
117
  return {
@@ -129,33 +129,33 @@ function rt(t, n = !1) {
129
129
  if (o) {
130
130
  const i = {};
131
131
  "title" in o && o.title && Object.assign(i, { title: o.title });
132
- const a = "items" in o ? o.items : o;
132
+ const s = "items" in o ? o.items : o;
133
133
  return Object.assign(i, {
134
- items: a.map((s) => ({
135
- item_id: s.itemId,
136
- item_name: s.itemName,
137
- affiliation: s.affiliation,
138
- coupon: s.coupon,
139
- currency: s.currency,
140
- creative_name: s.creativeName,
141
- creative_slot: s.creativeSlot,
142
- discount: H(s.discount),
143
- index: H(s.index),
144
- item_brand: s.itemBrand,
145
- item_category: s.itemCategory,
146
- item_category2: s.itemCategory2,
147
- item_category3: s.itemCategory3,
148
- item_category4: s.itemCategory4,
149
- item_category5: s.itemCategory5,
150
- item_list_id: s.itemListId,
151
- item_list_name: s.itemListName,
152
- item_variant: s.itemVariant,
153
- location_id: s.locationId,
154
- price: H(s.price),
155
- promotion_id: s.promotionId,
156
- promotion_name: s.promotionName,
157
- quantity: H(s.quantity),
158
- in_stock: s.inStock
134
+ items: s.map((a) => ({
135
+ item_id: a.itemId,
136
+ item_name: a.itemName,
137
+ affiliation: a.affiliation,
138
+ coupon: a.coupon,
139
+ currency: a.currency,
140
+ creative_name: a.creativeName,
141
+ creative_slot: a.creativeSlot,
142
+ discount: H(a.discount),
143
+ index: H(a.index),
144
+ item_brand: a.itemBrand,
145
+ item_category: a.itemCategory,
146
+ item_category2: a.itemCategory2,
147
+ item_category3: a.itemCategory3,
148
+ item_category4: a.itemCategory4,
149
+ item_category5: a.itemCategory5,
150
+ item_list_id: a.itemListId,
151
+ item_list_name: a.itemListName,
152
+ item_variant: a.itemVariant,
153
+ location_id: a.locationId,
154
+ price: H(a.price),
155
+ promotion_id: a.promotionId,
156
+ promotion_name: a.promotionName,
157
+ quantity: H(a.quantity),
158
+ in_stock: a.inStock
159
159
  }))
160
160
  }), i;
161
161
  }
@@ -243,9 +243,9 @@ function Mt() {
243
243
  for (const o of n) {
244
244
  const i = o.trim();
245
245
  if (i.startsWith(t)) {
246
- const s = i.substring(t.length).split(".");
247
- if (s.length > 2)
248
- return s.slice(2).join(".");
246
+ const a = i.substring(t.length).split(".");
247
+ if (a.length > 2)
248
+ return a.slice(2).join(".");
249
249
  }
250
250
  }
251
251
  }
@@ -272,14 +272,14 @@ function Un({
272
272
  projectId: n,
273
273
  cvlyX: o,
274
274
  deployment: i,
275
- collectorUrl: a = "evnts.pckd.dev",
276
- appId: s = "picked-analytics",
275
+ collectorUrl: s = "evnts.pckd.dev",
276
+ appId: a = "picked-analytics",
277
277
  trackVitals: r = !1,
278
278
  trackPerformance: c = !1,
279
279
  trackWebPage: m = !0,
280
280
  trackSessions: E = !0,
281
- trackBrowser: g = !0,
282
- trackActivity: $ = !1,
281
+ trackBrowser: $ = !0,
282
+ trackActivity: g = !1,
283
283
  trackErrors: N = !1,
284
284
  trackActivityCallback: w,
285
285
  trackButtonClickAllowList: P
@@ -288,21 +288,21 @@ function Un({
288
288
  const A = {
289
289
  trackVitals: r,
290
290
  trackErrors: N,
291
- trackActivity: $,
291
+ trackActivity: g,
292
292
  trackPerformance: c,
293
293
  trackActivityCallback: w,
294
294
  trackButtonClickAllowList: P
295
295
  }, Yt = {
296
- appId: s,
296
+ appId: a,
297
297
  platform: "web",
298
298
  keepalive: !0,
299
299
  contexts: {
300
300
  webPage: m,
301
301
  session: E,
302
- browser: g || !1
302
+ browser: $ || !1
303
303
  },
304
304
  plugins: Xt(A)
305
- }, Bt = At(s, a, Yt);
305
+ }, Bt = At(a, s, Yt);
306
306
  return Qt({
307
307
  organizationId: t,
308
308
  projectId: n,
@@ -313,8 +313,8 @@ function Un({
313
313
  function Qt({ organizationId: t, projectId: n, cvlyX: o, deployment: i }) {
314
314
  if (!t || !n)
315
315
  throw new Error("bindGlobalContext: Both organizationId and projectId are required");
316
- const a = [];
317
- a.push(
316
+ const s = [];
317
+ s.push(
318
318
  e("app", "1-0-0", {
319
319
  organization_id: t,
320
320
  project_id: n
@@ -325,155 +325,155 @@ function Qt({ organizationId: t, projectId: n, cvlyX: o, deployment: i }) {
325
325
  env: i.env,
326
326
  host: i.host
327
327
  })
328
- ), o && a.push(
328
+ ), o && s.push(
329
329
  e("cvly_x", "1-0-1", {
330
330
  vercel_deployment_id: o.vercelDeploymentId,
331
331
  vercel_env: o.vercelEnv,
332
332
  vercel_url: o.vercelUrl
333
333
  })
334
- ), Ht(a);
334
+ ), Ht(s);
335
335
  }
336
336
  const ut = "app_close";
337
337
  function Zt(t, n) {
338
- const o = u(t), i = d(t), a = x(t), s = f(t);
338
+ const o = u(t), i = f(t), s = x(t), a = d(t);
339
339
  return l(
340
340
  ut,
341
341
  [
342
342
  e("feature_list", "2-0-0", o),
343
343
  e("session", "1-0-4", i),
344
- s ? e("step", "1-0-0", s) : void 0,
345
- a ? e("experience", "1-0-1", a) : void 0
344
+ a ? e("step", "1-0-0", a) : void 0,
345
+ s ? e("experience", "1-0-1", s) : void 0
346
346
  ],
347
347
  n
348
348
  );
349
349
  }
350
- const Gn = p(ut, Zt), dt = "app_initialize";
350
+ const Gn = p(ut, Zt), ft = "app_initialize";
351
351
  function te(t, n) {
352
- const o = u(t), i = d(t), a = x(t), s = f(t);
352
+ const o = u(t), i = f(t), s = x(t), a = d(t);
353
353
  return l(
354
- dt,
354
+ ft,
355
355
  [
356
356
  e("feature_list", "2-0-0", o),
357
357
  e("session", "1-0-4", i),
358
- s ? e("step", "1-0-0", s) : void 0,
359
- a ? e("experience", "1-0-1", a) : void 0
358
+ a ? e("step", "1-0-0", a) : void 0,
359
+ s ? e("experience", "1-0-1", s) : void 0
360
360
  ],
361
361
  n
362
362
  );
363
363
  }
364
- const Kn = p(dt, te), ft = "app_load";
364
+ const Kn = p(ft, te), dt = "app_load";
365
365
  function ee(t, n) {
366
- const o = u(t), i = d(t), a = x(t), s = f(t);
366
+ const o = u(t), i = f(t), s = x(t), a = d(t);
367
367
  return l(
368
- ft,
368
+ dt,
369
369
  [
370
370
  e("feature_list", "2-0-0", o),
371
371
  e("session", "1-0-4", i),
372
- s ? e("step", "1-0-0", s) : void 0,
373
- a ? e("experience", "1-0-1", a) : void 0
372
+ a ? e("step", "1-0-0", a) : void 0,
373
+ s ? e("experience", "1-0-1", s) : void 0
374
374
  ],
375
375
  n
376
376
  );
377
377
  }
378
- const Mn = p(ft, ee), xt = "app_open";
378
+ const Mn = p(dt, ee), xt = "app_open";
379
379
  function ne(t, n) {
380
- const o = u(t), i = d(t), a = x(t), s = f(t);
380
+ const o = u(t), i = f(t), s = x(t), a = d(t);
381
381
  return l(
382
382
  xt,
383
383
  [
384
384
  e("feature_list", "2-0-0", o),
385
385
  e("session", "1-0-4", i),
386
- s ? e("step", "1-0-0", s) : void 0,
387
- a ? e("experience", "1-0-1", a) : void 0
386
+ a ? e("step", "1-0-0", a) : void 0,
387
+ s ? e("experience", "1-0-1", s) : void 0
388
388
  ],
389
389
  n
390
390
  );
391
391
  }
392
392
  const Xn = p(xt, ne), pt = "experience_load";
393
393
  function oe(t, n) {
394
- const o = u(t), i = d(t), a = x(t, !0), s = f(t);
394
+ const o = u(t), i = f(t), s = x(t, !0), a = d(t);
395
395
  return l(
396
396
  pt,
397
397
  [
398
398
  e("feature_list", "2-0-0", o),
399
399
  e("session", "1-0-4", i),
400
- e("experience", "1-0-1", a),
401
- s ? e("step", "1-0-0", s) : void 0
400
+ e("experience", "1-0-1", s),
401
+ a ? e("step", "1-0-0", a) : void 0
402
402
  ],
403
403
  n
404
404
  );
405
405
  }
406
406
  const Jn = p(pt, oe), mt = "feature_decide";
407
407
  function se(t, n) {
408
- const o = u(t), i = d(t), a = x(t), s = f(t);
408
+ const o = u(t), i = f(t), s = x(t), a = d(t);
409
409
  return l(
410
410
  mt,
411
411
  [
412
412
  e("feature_list", "2-0-0", o),
413
413
  e("session", "1-0-4", i),
414
- s ? e("step", "1-0-0", s) : void 0,
415
- a ? e("experience", "1-0-1", a) : void 0
414
+ a ? e("step", "1-0-0", a) : void 0,
415
+ s ? e("experience", "1-0-1", s) : void 0
416
416
  ],
417
417
  n
418
418
  );
419
419
  }
420
420
  const Qn = p(mt, se), Ct = "step_enter";
421
421
  function ae(t, n) {
422
- const o = u(t), i = d(t), a = x(t), s = f(t, !0), r = B(t);
422
+ const o = u(t), i = f(t), s = x(t), a = d(t, !0), r = B(t);
423
423
  return l(
424
424
  Ct,
425
425
  [
426
426
  e("feature_list", "2-0-0", o),
427
427
  e("session", "1-0-4", i),
428
- e("step", "1-0-0", s),
428
+ e("step", "1-0-0", a),
429
429
  r && e("field_list", "1-0-0", r),
430
- a && e("experience", "1-0-1", a)
430
+ s && e("experience", "1-0-1", s)
431
431
  ],
432
432
  n
433
433
  );
434
434
  }
435
435
  const Zn = p(Ct, ae), Et = "step_submit";
436
436
  function ie(t, n) {
437
- const o = u(t), i = d(t), a = x(t), s = f(t, !0), r = j(t), c = B(t);
437
+ const o = u(t), i = f(t), s = x(t), a = d(t, !0), r = j(t), c = B(t);
438
438
  return l(
439
439
  Et,
440
440
  [
441
441
  e("feature_list", "2-0-0", o),
442
442
  e("session", "1-0-4", i),
443
- e("step", "1-0-0", s),
443
+ e("step", "1-0-0", a),
444
444
  c && e("field_list", "1-0-0", c),
445
445
  r && e("response_list", "1-0-0", r),
446
- a && e("experience", "1-0-1", a)
446
+ s && e("experience", "1-0-1", s)
447
447
  ],
448
448
  n
449
449
  );
450
450
  }
451
451
  const to = p(Et, ie), vt = "step_submit_success";
452
452
  function re(t, n) {
453
- const o = u(t), i = d(t), a = x(t), s = f(t, !0), r = B(t), c = j(t);
453
+ const o = u(t), i = f(t), s = x(t), a = d(t, !0), r = B(t), c = j(t);
454
454
  return l(
455
455
  vt,
456
456
  [
457
457
  e("feature_list", "2-0-0", o),
458
458
  e("session", "1-0-4", i),
459
- e("step", "1-0-0", s),
459
+ e("step", "1-0-0", a),
460
460
  r && e("field_list", "1-0-0", r),
461
461
  c && e("response_list", "1-0-0", c),
462
- a && e("experience", "1-0-1", a)
462
+ s && e("experience", "1-0-1", s)
463
463
  ],
464
464
  n
465
465
  );
466
466
  }
467
467
  const eo = p(vt, re), Dt = "field_validation_error";
468
468
  function ce(t, n) {
469
- const o = u(t), i = d(t), a = Y(t), s = q(t, !0), r = x(t), c = f(t);
469
+ const o = u(t), i = f(t), s = Y(t), a = q(t, !0), r = x(t), c = d(t);
470
470
  return l(
471
471
  Dt,
472
472
  [
473
473
  e("feature_list", "2-0-0", o),
474
474
  e("session", "1-0-4", i),
475
- e("exception", "1-0-0", s),
476
- e("form", "1-0-0", a),
475
+ e("exception", "1-0-0", a),
476
+ e("form", "1-0-0", s),
477
477
  r && e("experience", "1-0-1", r),
478
478
  c && e("step", "1-0-0", c)
479
479
  ],
@@ -482,14 +482,14 @@ function ce(t, n) {
482
482
  }
483
483
  const no = p(Dt, ce), _t = "form_submit";
484
484
  function le(t, n) {
485
- const o = u(t), i = d(t), a = Y(t), s = x(t), r = f(t);
485
+ const o = u(t), i = f(t), s = Y(t), a = x(t), r = d(t);
486
486
  return l(
487
487
  _t,
488
488
  [
489
489
  e("feature_list", "2-0-0", o),
490
490
  e("session", "1-0-4", i),
491
- e("form", "1-0-0", a),
492
- s && e("experience", "1-0-1", s),
491
+ e("form", "1-0-0", s),
492
+ a && e("experience", "1-0-1", a),
493
493
  r && e("step", "1-0-0", r)
494
494
  ],
495
495
  n
@@ -497,14 +497,14 @@ function le(t, n) {
497
497
  }
498
498
  const oo = p(_t, le), kt = "form_submit_error";
499
499
  function ue(t, n) {
500
- const o = u(t), i = d(t), a = Y(t), s = q(t, !0), r = x(t), c = f(t);
500
+ const o = u(t), i = f(t), s = Y(t), a = q(t, !0), r = x(t), c = d(t);
501
501
  return l(
502
502
  kt,
503
503
  [
504
504
  e("feature_list", "2-0-0", o),
505
505
  e("session", "1-0-4", i),
506
- e("form", "1-0-0", a),
507
- e("exception", "1-0-0", s),
506
+ e("form", "1-0-0", s),
507
+ e("exception", "1-0-0", a),
508
508
  r && e("experience", "1-0-1", r),
509
509
  c && e("step", "1-0-0", c)
510
510
  ],
@@ -512,25 +512,25 @@ function ue(t, n) {
512
512
  );
513
513
  }
514
514
  const so = p(kt, ue), bt = "form_submit_success";
515
- function de(t, n) {
516
- const o = u(t), i = d(t), a = Y(t), s = x(t), r = f(t);
515
+ function fe(t, n) {
516
+ const o = u(t), i = f(t), s = Y(t), a = x(t), r = d(t);
517
517
  return l(
518
518
  bt,
519
519
  [
520
520
  e("feature_list", "2-0-0", o),
521
521
  e("session", "1-0-4", i),
522
- e("form", "1-0-0", a),
523
- s && e("experience", "1-0-1", s),
522
+ e("form", "1-0-0", s),
523
+ a && e("experience", "1-0-1", a),
524
524
  r && e("step", "1-0-0", r)
525
525
  ],
526
526
  n
527
527
  );
528
528
  }
529
- const ao = p(bt, de);
529
+ const ao = p(bt, fe);
530
530
  function D(t) {
531
531
  return t instanceof Element;
532
532
  }
533
- function fe(t) {
533
+ function de(t) {
534
534
  return `data-picked-${t.replaceAll("_", "-")}`;
535
535
  }
536
536
  function T(t) {
@@ -575,45 +575,45 @@ function b(t) {
575
575
  return n;
576
576
  const o = t.getAttribute("aria-labelledby");
577
577
  if (o) {
578
- const a = document.getElementById(o);
579
- if (a) {
580
- const s = v(a);
581
- if (s)
582
- return s;
578
+ const s = document.getElementById(o);
579
+ if (s) {
580
+ const a = v(s);
581
+ if (a)
582
+ return a;
583
583
  }
584
584
  }
585
585
  if ("id" in t && t.id) {
586
- const a = document.querySelector(`label[for="${t.id}"]`);
587
- if (a) {
588
- const s = v(a);
589
- if (s)
590
- return s;
586
+ const s = document.querySelector(`label[for="${t.id}"]`);
587
+ if (s) {
588
+ const a = v(s);
589
+ if (a)
590
+ return a;
591
591
  }
592
592
  }
593
593
  let i = t.parentElement;
594
594
  for (; i; ) {
595
595
  if (i.tagName.toLowerCase() === "label") {
596
- const a = v(i);
597
- if (a)
598
- return a;
596
+ const s = v(i);
597
+ if (s)
598
+ return s;
599
599
  }
600
600
  i = i.parentElement;
601
601
  }
602
602
  if (t instanceof HTMLInputElement && "labels" in t && t.labels) {
603
- const a = Array.from(t.labels).map((s) => v(s)).filter(Boolean).join(" ");
604
- if (a)
605
- return a;
603
+ const s = Array.from(t.labels).map((a) => v(a)).filter(Boolean).join(" ");
604
+ if (s)
605
+ return s;
606
606
  }
607
607
  return "placeholder" in t && typeof t.placeholder == "string" ? t.placeholder : null;
608
608
  }
609
609
  function xe(t, n) {
610
610
  if (!D(t))
611
611
  return null;
612
- const o = fe(n), i = t.closest(`[${o}]`);
612
+ const o = de(n), i = t.closest(`[${o}]`);
613
613
  if (!i)
614
614
  return null;
615
- const a = i.getAttribute(o);
616
- return a ? { element: i, customEventName: a } : null;
615
+ const s = i.getAttribute(o);
616
+ return s ? { element: i, customEventName: s } : null;
617
617
  }
618
618
  const pe = 255;
619
619
  function C(t) {
@@ -621,7 +621,7 @@ function C(t) {
621
621
  }
622
622
  const R = "click";
623
623
  function me(t, n) {
624
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
624
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
625
625
  if (!D(r)) {
626
626
  const E = {
627
627
  node_type: "unknown"
@@ -632,8 +632,8 @@ function me(t, n) {
632
632
  e("feature_list", "2-0-0", o),
633
633
  e("session", "1-0-4", i),
634
634
  e("element", "1-0-0", E),
635
- s ? e("step", "1-0-0", s) : void 0,
636
- a ? e("experience", "1-0-1", a) : void 0
635
+ a ? e("step", "1-0-0", a) : void 0,
636
+ s ? e("experience", "1-0-1", s) : void 0
637
637
  ],
638
638
  n
639
639
  );
@@ -650,15 +650,15 @@ function me(t, n) {
650
650
  e("feature_list", "2-0-0", o),
651
651
  e("session", "1-0-4", i),
652
652
  e("element", "1-0-0", m),
653
- s ? e("step", "1-0-0", s) : void 0,
654
- a ? e("experience", "1-0-1", a) : void 0
653
+ a ? e("step", "1-0-0", a) : void 0,
654
+ s ? e("experience", "1-0-1", s) : void 0
655
655
  ],
656
656
  n
657
657
  );
658
658
  }
659
659
  const Ce = p(R, me);
660
660
  function Ee(t, n, o, i) {
661
- const a = q(o.analyticsContext), s = x(o.analyticsContext), r = u(o.analyticsContext), c = B(o.analyticsContext), m = Y(o.analyticsContext), E = lt(o.analyticsContext), g = ct(o.analyticsContext), $ = rt(o.analyticsContext), N = j(o.analyticsContext), w = d(o.analyticsContext), P = f(o.analyticsContext), A = {
661
+ const s = q(o.analyticsContext), a = x(o.analyticsContext), r = u(o.analyticsContext), c = B(o.analyticsContext), m = Y(o.analyticsContext), E = lt(o.analyticsContext), $ = ct(o.analyticsContext), g = rt(o.analyticsContext), N = j(o.analyticsContext), w = f(o.analyticsContext), P = d(o.analyticsContext), A = {
662
662
  id: n.id || null,
663
663
  node_type: n.nodeName.toLowerCase(),
664
664
  label: C(b(n)),
@@ -673,14 +673,14 @@ function Ee(t, n, o, i) {
673
673
  }),
674
674
  e("session", "1-0-4", w),
675
675
  e("element", "1-0-0", A),
676
- a ? e("exception", "1-0-0", a) : void 0,
677
- s ? e("experience", "1-0-1", s) : void 0,
676
+ s ? e("exception", "1-0-0", s) : void 0,
677
+ a ? e("experience", "1-0-1", a) : void 0,
678
678
  r ? e("feature_list", "2-0-0", r) : void 0,
679
679
  c ? e("field_list", "1-0-0", c) : void 0,
680
680
  m ? e("form", "1-0-0", m) : void 0,
681
681
  E ? e("modal", "1-0-0", E) : void 0,
682
- g ? e("order", "1-0-0", g) : void 0,
683
- $ ? e("product_list", "2-0-1", $) : void 0,
682
+ $ ? e("order", "1-0-0", $) : void 0,
683
+ g ? e("product_list", "2-0-1", g) : void 0,
684
684
  N ? e("response_list", "1-0-0", N) : void 0,
685
685
  P ? e("step", "1-0-0", P) : void 0
686
686
  ],
@@ -691,11 +691,11 @@ function y(t, n, o) {
691
691
  const i = xe(n.event.target, t);
692
692
  if (!i)
693
693
  return;
694
- const { element: a, customEventName: s } = i, r = Ee(s, a, n, o);
694
+ const { element: s, customEventName: a } = i, r = Ee(a, s, n, o);
695
695
  Q(r);
696
696
  }
697
697
  function io(t, n, o) {
698
- const i = q(t), a = x(t), s = u(t), r = B(t), c = t.form ? Y(t) : void 0, m = t.modal ? lt(t) : void 0, E = ct(t), g = rt(t), $ = j(t), N = d(t), w = f(t), P = l(
698
+ const i = q(t), s = x(t), a = u(t), r = B(t), c = t.form ? Y(t) : void 0, m = t.modal ? lt(t) : void 0, E = ct(t), $ = rt(t), g = j(t), N = f(t), w = d(t), P = l(
699
699
  n,
700
700
  [
701
701
  e("app", "1-0-0", {
@@ -704,14 +704,14 @@ function io(t, n, o) {
704
704
  }),
705
705
  e("session", "1-0-4", N),
706
706
  i ? e("exception", "1-0-0", i) : void 0,
707
- a ? e("experience", "1-0-1", a) : void 0,
708
- e("feature_list", "2-0-0", s),
707
+ s ? e("experience", "1-0-1", s) : void 0,
708
+ e("feature_list", "2-0-0", a),
709
709
  r ? e("field_list", "1-0-0", r) : void 0,
710
710
  c ? e("form", "1-0-0", c) : void 0,
711
711
  m ? e("modal", "1-0-0", m) : void 0,
712
712
  E ? e("order", "1-0-0", E) : void 0,
713
- g ? e("product_list", "2-0-1", g) : void 0,
714
- $ ? e("response_list", "1-0-0", $) : void 0,
713
+ $ ? e("product_list", "2-0-1", $) : void 0,
714
+ g ? e("response_list", "1-0-0", g) : void 0,
715
715
  w ? e("step", "1-0-0", w) : void 0
716
716
  ],
717
717
  o
@@ -720,7 +720,7 @@ function io(t, n, o) {
720
720
  }
721
721
  const W = "rapid_scroll";
722
722
  function ve(t, n) {
723
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
723
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
724
724
  if (!D(r)) {
725
725
  const E = {
726
726
  node_type: "unknown"
@@ -730,8 +730,8 @@ function ve(t, n) {
730
730
  [
731
731
  e("feature_list", "2-0-0", o),
732
732
  e("session", "1-0-4", i),
733
- s ? e("step", "1-0-0", s) : void 0,
734
- a ? e("experience", "1-0-1", a) : void 0,
733
+ a ? e("step", "1-0-0", a) : void 0,
734
+ s ? e("experience", "1-0-1", s) : void 0,
735
735
  e("element", "1-0-0", E)
736
736
  ],
737
737
  n
@@ -748,8 +748,8 @@ function ve(t, n) {
748
748
  [
749
749
  e("feature_list", "2-0-0", o),
750
750
  e("session", "1-0-4", i),
751
- s ? e("step", "1-0-0", s) : void 0,
752
- a ? e("experience", "1-0-1", a) : void 0,
751
+ a ? e("step", "1-0-0", a) : void 0,
752
+ s ? e("experience", "1-0-1", s) : void 0,
753
753
  e("element", "1-0-0", m)
754
754
  ],
755
755
  n
@@ -767,12 +767,12 @@ function Le(t, n) {
767
767
  const o = t.event.target || document.documentElement;
768
768
  if (!(o instanceof HTMLElement))
769
769
  return;
770
- const i = o.scrollTop, a = Date.now() - tt;
771
- Math.abs(i - Z) > _e && a < ke && Te(t, n), Z = i, tt = Date.now();
770
+ const i = o.scrollTop, s = Date.now() - tt;
771
+ Math.abs(i - Z) > _e && s < ke && Te(t, n), Z = i, tt = Date.now();
772
772
  }
773
- const ge = k("scroll", Le, !0), z = "rapid_click";
774
- function $e(t, n) {
775
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
773
+ const $e = k("scroll", Le, !0), z = "rapid_click";
774
+ function ge(t, n) {
775
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
776
776
  if (!D(r)) {
777
777
  const E = {
778
778
  node_type: "unknown"
@@ -783,8 +783,8 @@ function $e(t, n) {
783
783
  e("feature_list", "2-0-0", o),
784
784
  e("session", "1-0-4", i),
785
785
  e("element", "1-0-0", E),
786
- s ? e("step", "1-0-0", s) : void 0,
787
- a ? e("experience", "1-0-1", a) : void 0
786
+ a ? e("step", "1-0-0", a) : void 0,
787
+ s ? e("experience", "1-0-1", s) : void 0
788
788
  ],
789
789
  n
790
790
  );
@@ -801,13 +801,13 @@ function $e(t, n) {
801
801
  e("feature_list", "2-0-0", o),
802
802
  e("session", "1-0-4", i),
803
803
  e("element", "1-0-0", m),
804
- s ? e("step", "1-0-0", s) : void 0,
805
- a ? e("experience", "1-0-1", a) : void 0
804
+ a ? e("step", "1-0-0", a) : void 0,
805
+ s ? e("experience", "1-0-1", s) : void 0
806
806
  ],
807
807
  n
808
808
  );
809
809
  }
810
- const he = p(z, $e);
810
+ const he = p(z, ge);
811
811
  let O = 0, et = 0;
812
812
  const ye = 3, Ne = 500;
813
813
  function we(t, n) {
@@ -815,8 +815,8 @@ function we(t, n) {
815
815
  o - et < Ne ? O++ : O = 1, et = o, O >= ye && (he(t, n), y("rapid_click", t, n), O = 0);
816
816
  }
817
817
  const Pe = k("click", we), U = "right_click";
818
- function Se(t, n) {
819
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
818
+ function Ve(t, n) {
819
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
820
820
  if (!D(r)) {
821
821
  const E = {
822
822
  node_type: "unknown"
@@ -825,8 +825,8 @@ function Se(t, n) {
825
825
  e("feature_list", "2-0-0", o),
826
826
  e("session", "1-0-4", i),
827
827
  e("element", "1-0-0", E),
828
- s ? e("step", "1-0-0", s) : void 0,
829
- a ? e("experience", "1-0-1", a) : void 0
828
+ a ? e("step", "1-0-0", a) : void 0,
829
+ s ? e("experience", "1-0-1", s) : void 0
830
830
  ]);
831
831
  }
832
832
  const c = T(r) || r, m = {
@@ -841,32 +841,32 @@ function Se(t, n) {
841
841
  e("feature_list", "2-0-0", o),
842
842
  e("session", "1-0-4", i),
843
843
  e("element", "1-0-0", m),
844
- s ? e("step", "1-0-0", s) : void 0,
845
- a ? e("experience", "1-0-1", a) : void 0
844
+ a ? e("step", "1-0-0", a) : void 0,
845
+ s ? e("experience", "1-0-1", s) : void 0
846
846
  ],
847
847
  n
848
848
  );
849
849
  }
850
- const Ve = p(U, Se);
850
+ const Se = p(U, Ve);
851
851
  function Ye(t, n) {
852
- Ve(t, n), y("right_click", t, n);
852
+ Se(t, n), y("right_click", t, n);
853
853
  }
854
854
  const Be = k("contextmenu", Ye), Tt = "mouse_shake";
855
855
  function Ae(t, n) {
856
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
856
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
857
857
  return l(
858
858
  Tt,
859
859
  [
860
860
  e("feature_list", "2-0-0", o),
861
861
  e("session", "1-0-4", i),
862
- s ? e("step", "1-0-0", s) : void 0,
863
- a ? e("experience", "1-0-1", a) : void 0
862
+ a ? e("step", "1-0-0", a) : void 0,
863
+ s ? e("experience", "1-0-1", s) : void 0
864
864
  ],
865
865
  n
866
866
  );
867
867
  }
868
868
  const He = p(Tt, Ae), Oe = 5, je = 500, qe = 500;
869
- let nt = { x: 0 }, S = [], ot = 0;
869
+ let nt = { x: 0 }, V = [], ot = 0;
870
870
  const Fe = F(
871
871
  (t, n) => {
872
872
  He(t, n), y("mouse_shake", t, n);
@@ -874,38 +874,38 @@ const Fe = F(
874
874
  je
875
875
  );
876
876
  function Ie(t, n) {
877
- const o = Date.now(), i = t.event.clientX - nt.x, a = Math.sign(i);
878
- o - ot > qe && (S = []), a !== 0 && (S.length === 0 || S.at(-1) !== a) && S.push(a), nt = { x: t.event.clientX, y: t.event.clientY }, S.length >= Oe && (Fe(t, n), S = []), ot = o;
877
+ const o = Date.now(), i = t.event.clientX - nt.x, s = Math.sign(i);
878
+ o - ot > qe && (V = []), s !== 0 && (V.length === 0 || V.at(-1) !== s) && V.push(s), nt = { x: t.event.clientX, y: t.event.clientY }, V.length >= Oe && (Fe(t, n), V = []), ot = o;
879
879
  }
880
880
  const Re = k("mousemove", Ie), Lt = "page_visible";
881
881
  function We(t, n) {
882
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
882
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
883
883
  return l(
884
884
  Lt,
885
885
  [
886
886
  e("feature_list", "2-0-0", o),
887
887
  e("session", "1-0-4", i),
888
- s ? e("step", "1-0-0", s) : void 0,
889
- a ? e("experience", "1-0-1", a) : void 0
888
+ a ? e("step", "1-0-0", a) : void 0,
889
+ s ? e("experience", "1-0-1", s) : void 0
890
890
  ],
891
891
  n
892
892
  );
893
893
  }
894
- const ze = p(Lt, We), gt = "page_hidden";
894
+ const ze = p(Lt, We), $t = "page_hidden";
895
895
  function Ue(t, n) {
896
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
896
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
897
897
  return l(
898
- gt,
898
+ $t,
899
899
  [
900
900
  e("feature_list", "2-0-0", o),
901
901
  e("session", "1-0-4", i),
902
- s ? e("step", "1-0-0", s) : void 0,
903
- a ? e("experience", "1-0-1", a) : void 0
902
+ a ? e("step", "1-0-0", a) : void 0,
903
+ s ? e("experience", "1-0-1", s) : void 0
904
904
  ],
905
905
  n
906
906
  );
907
907
  }
908
- const Ge = p(gt, Ue);
908
+ const Ge = p($t, Ue);
909
909
  function Ke(t, n) {
910
910
  if (document.visibilityState === "visible") {
911
911
  ze(t, n);
@@ -915,7 +915,7 @@ function Ke(t, n) {
915
915
  }
916
916
  const Me = Kt("visibilitychange", Ke), G = "backspace";
917
917
  function Xe(t, n) {
918
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
918
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
919
919
  if (!D(r)) {
920
920
  const E = {
921
921
  node_type: "unknown"
@@ -926,8 +926,8 @@ function Xe(t, n) {
926
926
  e("feature_list", "2-0-0", o),
927
927
  e("session", "1-0-4", i),
928
928
  e("element", "1-0-0", E),
929
- s ? e("step", "1-0-0", s) : void 0,
930
- a ? e("experience", "1-0-1", a) : void 0
929
+ a ? e("step", "1-0-0", a) : void 0,
930
+ s ? e("experience", "1-0-1", s) : void 0
931
931
  ],
932
932
  n
933
933
  );
@@ -944,8 +944,8 @@ function Xe(t, n) {
944
944
  e("feature_list", "2-0-0", o),
945
945
  e("session", "1-0-4", i),
946
946
  e("element", "1-0-0", m),
947
- s ? e("step", "1-0-0", s) : void 0,
948
- a ? e("experience", "1-0-1", a) : void 0
947
+ a ? e("step", "1-0-0", a) : void 0,
948
+ s ? e("experience", "1-0-1", s) : void 0
949
949
  ],
950
950
  n
951
951
  );
@@ -954,34 +954,34 @@ const Je = p(G, Xe);
954
954
  function Qe(t, n) {
955
955
  t.event.key === "Backspace" && Je(t, n);
956
956
  }
957
- const Ze = k("keydown", Qe), $t = "page_hide";
957
+ const Ze = k("keydown", Qe), gt = "page_hide";
958
958
  function tn(t, n) {
959
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
959
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
960
960
  return l(
961
- $t,
961
+ gt,
962
962
  [
963
963
  e("feature_list", "2-0-0", o),
964
964
  e("session", "1-0-4", i),
965
- s ? e("step", "1-0-0", s) : void 0,
966
- a ? e("experience", "1-0-1", a) : void 0
965
+ a ? e("step", "1-0-0", a) : void 0,
966
+ s ? e("experience", "1-0-1", s) : void 0
967
967
  ],
968
968
  n
969
969
  );
970
970
  }
971
- const en = p($t, tn);
971
+ const en = p(gt, tn);
972
972
  function nn(t, n) {
973
973
  en(t, n);
974
974
  }
975
- const on = V("pagehide", nn), ht = "page_show";
975
+ const on = S("pagehide", nn), ht = "page_show";
976
976
  function sn(t, n) {
977
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
977
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
978
978
  return l(
979
979
  ht,
980
980
  [
981
981
  e("feature_list", "2-0-0", o),
982
982
  e("session", "1-0-4", i),
983
- s ? e("step", "1-0-0", s) : void 0,
984
- a ? e("experience", "1-0-1", a) : void 0
983
+ a ? e("step", "1-0-0", a) : void 0,
984
+ s ? e("experience", "1-0-1", s) : void 0
985
985
  ],
986
986
  n
987
987
  );
@@ -990,35 +990,35 @@ const an = p(ht, sn);
990
990
  function rn(t, n) {
991
991
  an(t, n);
992
992
  }
993
- const cn = V("pageshow", rn), yt = "offline";
993
+ const cn = S("pageshow", rn), yt = "offline";
994
994
  function ln(t, n) {
995
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
995
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
996
996
  return l(
997
997
  yt,
998
998
  [
999
999
  e("feature_list", "2-0-0", o),
1000
1000
  e("session", "1-0-4", i),
1001
- s ? e("step", "1-0-0", s) : void 0,
1002
- a ? e("experience", "1-0-1", a) : void 0
1001
+ a ? e("step", "1-0-0", a) : void 0,
1002
+ s ? e("experience", "1-0-1", s) : void 0
1003
1003
  ],
1004
1004
  n
1005
1005
  );
1006
1006
  }
1007
1007
  const un = p(yt, ln);
1008
- function dn(t, n) {
1008
+ function fn(t, n) {
1009
1009
  un(t, n);
1010
1010
  }
1011
- const fn = V("offline", dn), K = "scroll";
1011
+ const dn = S("offline", fn), K = "scroll";
1012
1012
  function xn(t, n) {
1013
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1013
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1014
1014
  if (!D(r))
1015
1015
  return l(
1016
1016
  K,
1017
1017
  [
1018
1018
  e("feature_list", "2-0-0", o),
1019
1019
  e("session", "1-0-4", i),
1020
- s ? e("step", "1-0-0", s) : void 0,
1021
- a ? e("experience", "1-0-1", a) : void 0
1020
+ a ? e("step", "1-0-0", a) : void 0,
1021
+ s ? e("experience", "1-0-1", s) : void 0
1022
1022
  ],
1023
1023
  n
1024
1024
  );
@@ -1033,8 +1033,8 @@ function xn(t, n) {
1033
1033
  [
1034
1034
  e("feature_list", "2-0-0", o),
1035
1035
  e("session", "1-0-4", i),
1036
- s ? e("step", "1-0-0", s) : void 0,
1037
- a ? e("experience", "1-0-1", a) : void 0,
1036
+ a ? e("step", "1-0-0", a) : void 0,
1037
+ s ? e("experience", "1-0-1", s) : void 0,
1038
1038
  e("element", "1-0-0", m)
1039
1039
  ],
1040
1040
  n
@@ -1047,14 +1047,14 @@ const pn = p(K, xn), mn = F(
1047
1047
  500
1048
1048
  ), Cn = k("scroll", mn, !0), Nt = "online";
1049
1049
  function En(t, n) {
1050
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
1050
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
1051
1051
  return l(
1052
1052
  Nt,
1053
1053
  [
1054
1054
  e("feature_list", "2-0-0", o),
1055
1055
  e("session", "1-0-4", i),
1056
- s ? e("step", "1-0-0", s) : void 0,
1057
- a ? e("experience", "1-0-1", a) : void 0
1056
+ a ? e("step", "1-0-0", a) : void 0,
1057
+ s ? e("experience", "1-0-1", s) : void 0
1058
1058
  ],
1059
1059
  n
1060
1060
  );
@@ -1063,16 +1063,16 @@ const vn = p(Nt, En);
1063
1063
  function Dn(t, n) {
1064
1064
  vn(t, n);
1065
1065
  }
1066
- const _n = V("online", Dn), wt = "resize";
1066
+ const _n = S("online", Dn), wt = "resize";
1067
1067
  function kn(t, n) {
1068
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
1068
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
1069
1069
  return l(
1070
1070
  wt,
1071
1071
  [
1072
1072
  e("feature_list", "2-0-0", o),
1073
1073
  e("session", "1-0-4", i),
1074
- s ? e("step", "1-0-0", s) : void 0,
1075
- a ? e("experience", "1-0-1", a) : void 0
1074
+ a ? e("step", "1-0-0", a) : void 0,
1075
+ s ? e("experience", "1-0-1", s) : void 0
1076
1076
  ],
1077
1077
  n
1078
1078
  );
@@ -1085,39 +1085,39 @@ const bn = F(
1085
1085
  o !== I ? (st(t, n), I = o) : "ontouchstart" in window || st(t, n), I = o;
1086
1086
  },
1087
1087
  300
1088
- ), Tn = V("resize", bn), Pt = "unload";
1088
+ ), Tn = S("resize", bn), Pt = "unload";
1089
1089
  function Ln(t, n) {
1090
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext);
1090
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext);
1091
1091
  return l(
1092
1092
  Pt,
1093
1093
  [
1094
1094
  e("feature_list", "2-0-0", o),
1095
1095
  e("session", "1-0-4", i),
1096
- s ? e("step", "1-0-0", s) : void 0,
1097
- a ? e("experience", "1-0-1", a) : void 0
1096
+ a ? e("step", "1-0-0", a) : void 0,
1097
+ s ? e("experience", "1-0-1", s) : void 0
1098
1098
  ],
1099
1099
  n
1100
1100
  );
1101
1101
  }
1102
- const gn = p(Pt, Ln);
1103
- function $n(t, n) {
1104
- gn(t, n);
1102
+ const $n = p(Pt, Ln);
1103
+ function gn(t, n) {
1104
+ $n(t, n);
1105
1105
  }
1106
- const hn = V("unload", $n);
1106
+ const hn = S("unload", gn);
1107
1107
  function yn(t, n) {
1108
1108
  Ce(t, n), y("click", t, n);
1109
1109
  }
1110
1110
  const Nn = k("click", yn), M = "paste";
1111
1111
  function wn(t, n) {
1112
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1112
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1113
1113
  if (!D(r))
1114
1114
  return l(
1115
1115
  M,
1116
1116
  [
1117
1117
  e("feature_list", "2-0-0", o),
1118
1118
  e("session", "1-0-4", i),
1119
- s ? e("step", "1-0-0", s) : void 0,
1120
- a ? e("experience", "1-0-1", a) : void 0
1119
+ a ? e("step", "1-0-0", a) : void 0,
1120
+ s ? e("experience", "1-0-1", s) : void 0
1121
1121
  ],
1122
1122
  n
1123
1123
  );
@@ -1132,28 +1132,28 @@ function wn(t, n) {
1132
1132
  [
1133
1133
  e("feature_list", "2-0-0", o),
1134
1134
  e("session", "1-0-4", i),
1135
- s ? e("step", "1-0-0", s) : void 0,
1136
- a ? e("experience", "1-0-1", a) : void 0,
1135
+ a ? e("step", "1-0-0", a) : void 0,
1136
+ s ? e("experience", "1-0-1", s) : void 0,
1137
1137
  e("element", "1-0-0", m)
1138
1138
  ],
1139
1139
  n
1140
1140
  );
1141
1141
  }
1142
1142
  const Pn = p(M, wn);
1143
- function Sn(t, n) {
1143
+ function Vn(t, n) {
1144
1144
  Pn(t, n);
1145
1145
  }
1146
- const Vn = k("paste", Sn), X = "copy";
1146
+ const Sn = k("paste", Vn), X = "copy";
1147
1147
  function Yn(t, n) {
1148
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1148
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1149
1149
  if (!D(r))
1150
1150
  return l(
1151
1151
  X,
1152
1152
  [
1153
1153
  e("feature_list", "2-0-0", o),
1154
1154
  e("session", "1-0-4", i),
1155
- s ? e("step", "1-0-0", s) : void 0,
1156
- a ? e("experience", "1-0-1", a) : void 0
1155
+ a ? e("step", "1-0-0", a) : void 0,
1156
+ s ? e("experience", "1-0-1", s) : void 0
1157
1157
  ],
1158
1158
  n
1159
1159
  );
@@ -1168,8 +1168,8 @@ function Yn(t, n) {
1168
1168
  [
1169
1169
  e("feature_list", "2-0-0", o),
1170
1170
  e("session", "1-0-4", i),
1171
- s ? e("step", "1-0-0", s) : void 0,
1172
- a ? e("experience", "1-0-1", a) : void 0,
1171
+ a ? e("step", "1-0-0", a) : void 0,
1172
+ s ? e("experience", "1-0-1", s) : void 0,
1173
1173
  e("element", "1-0-0", m)
1174
1174
  ],
1175
1175
  n
@@ -1181,15 +1181,15 @@ function An(t, n) {
1181
1181
  }
1182
1182
  const Hn = k("copy", An), J = "drag";
1183
1183
  function On(t, n) {
1184
- const o = u(t.analyticsContext), i = d(t.analyticsContext), a = x(t.analyticsContext), s = f(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1184
+ const o = u(t.analyticsContext), i = f(t.analyticsContext), s = x(t.analyticsContext), a = d(t.analyticsContext), r = t.event.target || document.activeElement || t.event.currentTarget;
1185
1185
  if (!D(r))
1186
1186
  return l(
1187
1187
  J,
1188
1188
  [
1189
1189
  e("feature_list", "2-0-0", o),
1190
1190
  e("session", "1-0-4", i),
1191
- s ? e("step", "1-0-0", s) : void 0,
1192
- a ? e("experience", "1-0-1", a) : void 0
1191
+ a ? e("step", "1-0-0", a) : void 0,
1192
+ s ? e("experience", "1-0-1", s) : void 0
1193
1193
  ],
1194
1194
  n
1195
1195
  );
@@ -1204,32 +1204,32 @@ function On(t, n) {
1204
1204
  [
1205
1205
  e("feature_list", "2-0-0", o),
1206
1206
  e("session", "1-0-4", i),
1207
- s ? e("step", "1-0-0", s) : void 0,
1208
- a ? e("experience", "1-0-1", a) : void 0,
1207
+ a ? e("step", "1-0-0", a) : void 0,
1208
+ s ? e("experience", "1-0-1", s) : void 0,
1209
1209
  e("element", "1-0-0", m)
1210
1210
  ],
1211
1211
  n
1212
1212
  );
1213
1213
  }
1214
1214
  const jn = p(J, On);
1215
- function St(t, n) {
1215
+ function Vt(t, n) {
1216
1216
  const o = t.event.currentTarget;
1217
1217
  if (!o || !(o instanceof HTMLElement))
1218
1218
  return;
1219
- function i(a) {
1220
- St({ event: a, analyticsContext: t.analyticsContext });
1219
+ function i(s) {
1220
+ Vt({ event: s, analyticsContext: t.analyticsContext });
1221
1221
  }
1222
1222
  o.removeEventListener("drag", i), o.addEventListener(
1223
1223
  "dragend",
1224
- () => Vt(o, () => t.analyticsContext)
1224
+ () => St(o, () => t.analyticsContext)
1225
1225
  ), jn(t, n), y("drag", t, n);
1226
1226
  }
1227
- const Vt = k("drag", St);
1227
+ const St = k("drag", Vt);
1228
1228
  function ro(t, n) {
1229
- n && (Nn(n, t), Pe(n, t), Be(n, t), Hn(n, t), Vn(n, t), Vt(n, t), Ze(n, t), Cn(n, t), ge(n, t), Re(n, t));
1229
+ n && (Nn(n, t), Pe(n, t), Be(n, t), Hn(n, t), Sn(n, t), St(n, t), Ze(n, t), Cn(n, t), $e(n, t), Re(n, t));
1230
1230
  }
1231
1231
  function co(t) {
1232
- Me(t), on(t), cn(t), fn(t), _n(t), Tn(t), hn(t);
1232
+ Me(t), on(t), cn(t), dn(t), _n(t), Tn(t), hn(t);
1233
1233
  }
1234
1234
  export {
1235
1235
  oo as A,
@@ -1238,10 +1238,10 @@ export {
1238
1238
  Zn as D,
1239
1239
  to as E,
1240
1240
  eo as F,
1241
- d as a,
1241
+ f as a,
1242
1242
  x as b,
1243
1243
  p as c,
1244
- f as d,
1244
+ d,
1245
1245
  j as e,
1246
1246
  u as f,
1247
1247
  B as g,