@picked/analytics 0.0.1-dev.1777869768355 → 0.0.1-dev.1778120127377

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.
Files changed (33) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/plugins/analytics/index.js +1 -1
  3. package/dist/esm/index.js +1 -1
  4. package/dist/esm/plugins/analytics/index.js +71 -61
  5. package/dist/src-57IB6FEH.cjs +1 -0
  6. package/dist/{src-CZoh-SCw.js → src-DfWSBf5F.js} +50 -90
  7. package/dist/types/events/cart_add.d.ts.map +1 -1
  8. package/dist/types/events/cart_remove.d.ts.map +1 -1
  9. package/dist/types/events/checkout_complete.d.ts.map +1 -1
  10. package/dist/types/events/checkout_start.d.ts.map +1 -1
  11. package/dist/types/events/custom.d.ts +7 -9
  12. package/dist/types/events/custom.d.ts.map +1 -1
  13. package/dist/types/events/identify.d.ts.map +1 -1
  14. package/dist/types/events/order_create.d.ts.map +1 -1
  15. package/dist/types/events/page_view.d.ts.map +1 -1
  16. package/dist/types/events/product_list_view.d.ts.map +1 -1
  17. package/dist/types/events/product_view_details.d.ts.map +1 -1
  18. package/dist/types/events/waitlist_join.d.ts.map +1 -1
  19. package/dist/types/fixtures/analytics-event.d.ts +0 -1
  20. package/dist/types/fixtures/analytics-event.d.ts.map +1 -1
  21. package/dist/types/plugins/analytics/plugin.d.ts.map +1 -1
  22. package/dist/types/schemas/app/1-1-0.d.ts +30 -0
  23. package/dist/types/schemas/app/1-1-0.d.ts.map +1 -0
  24. package/dist/types/schemas/app/index.d.ts +29 -3
  25. package/dist/types/schemas/app/index.d.ts.map +1 -1
  26. package/dist/types/tracker.d.ts +1 -1
  27. package/dist/types/tracker.d.ts.map +1 -1
  28. package/dist/types/types.d.ts +2 -2
  29. package/dist/types/types.d.ts.map +1 -1
  30. package/dist/types/utils.d.ts +14 -4
  31. package/dist/types/utils.d.ts.map +1 -1
  32. package/package.json +2 -2
  33. package/dist/src-DXtv_fpu.cjs +0 -1
package/dist/cjs/index.js CHANGED
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../src-DXtv_fpu.cjs`);exports.bindGlobalEventListeners=e.t,exports.bindUserInteractionListeners=e.n,exports.createCartAddTrackerEvent=e.P,exports.createCartRemoveTrackerEvent=e.M,exports.createCheckoutCompleteTrackerEvent=e.A,exports.createCheckoutStartTrackerEvent=e.O,exports.createIdentifyTrackerEvent=e.d,exports.createOrderCreateTrackerEvent=e.E,exports.createPageViewTrackerEvent=e.o,exports.createProductListViewTrackerEvent=e.w,exports.createProductViewTrackerEvent=e.x,exports.createTracker=e.q,exports.trackAppCloseEvent=e.K,exports.trackAppInitializeEvent=e.G,exports.trackAppLoadEvent=e.W,exports.trackAppOpenEvent=e.U,exports.trackCartAddEvent=e.F,exports.trackCartRemoveEvent=e.N,exports.trackCheckoutCompleteEvent=e.j,exports.trackCheckoutStartEvent=e.k,exports.trackCustomEvent=e.r,exports.trackEvent=e.a,exports.trackExperienceLoadEvent=e.H,exports.trackFeatureDecideEvent=e.V,exports.trackFieldValidationErrorEvent=e.g,exports.trackFormSubmitErrorEvent=e.m,exports.trackFormSubmitEvent=e.h,exports.trackFormSubmitSuccessEvent=e.p,exports.trackIdentifyEvent=e.f,exports.trackLeadCaptureEvent=e.u,exports.trackModalCloseEvent=e.l,exports.trackModalOpenEvent=e.c,exports.trackNamedCustomEvent=e.i,exports.trackOrderCreateEvent=e.D,exports.trackPageViewEvent=e.s,exports.trackProductListViewEvent=e.T,exports.trackProductSelectEvent=e.C,exports.trackProductViewDetailsEvent=e.S,exports.trackRecommendationPresentEvent=e.b,exports.trackSearchResultsListViewEvent=e.y,exports.trackStepComplete=e.B,exports.trackStepEnterEvent=e.z,exports.trackStepSubmitErrorEvent=e.L,exports.trackStepSubmitEvent=e.R,exports.trackStepSubmitSuccessEvent=e.I,exports.trackWaitlistJoinEvent=e.v,exports.trackWishlistAddEvent=e._;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../src-57IB6FEH.cjs`);exports.bindGlobalEventListeners=e.t,exports.bindUserInteractionListeners=e.n,exports.createCartAddTrackerEvent=e.P,exports.createCartRemoveTrackerEvent=e.M,exports.createCheckoutCompleteTrackerEvent=e.A,exports.createCheckoutStartTrackerEvent=e.O,exports.createIdentifyTrackerEvent=e.d,exports.createOrderCreateTrackerEvent=e.E,exports.createPageViewTrackerEvent=e.o,exports.createProductListViewTrackerEvent=e.w,exports.createProductViewTrackerEvent=e.x,exports.createTracker=e.q,exports.trackAppCloseEvent=e.K,exports.trackAppInitializeEvent=e.G,exports.trackAppLoadEvent=e.W,exports.trackAppOpenEvent=e.U,exports.trackCartAddEvent=e.F,exports.trackCartRemoveEvent=e.N,exports.trackCheckoutCompleteEvent=e.j,exports.trackCheckoutStartEvent=e.k,exports.trackCustomEvent=e.r,exports.trackEvent=e.a,exports.trackExperienceLoadEvent=e.H,exports.trackFeatureDecideEvent=e.V,exports.trackFieldValidationErrorEvent=e.g,exports.trackFormSubmitErrorEvent=e.m,exports.trackFormSubmitEvent=e.h,exports.trackFormSubmitSuccessEvent=e.p,exports.trackIdentifyEvent=e.f,exports.trackLeadCaptureEvent=e.u,exports.trackModalCloseEvent=e.l,exports.trackModalOpenEvent=e.c,exports.trackNamedCustomEvent=e.i,exports.trackOrderCreateEvent=e.D,exports.trackPageViewEvent=e.s,exports.trackProductListViewEvent=e.T,exports.trackProductSelectEvent=e.C,exports.trackProductViewDetailsEvent=e.S,exports.trackRecommendationPresentEvent=e.b,exports.trackSearchResultsListViewEvent=e.y,exports.trackStepComplete=e.B,exports.trackStepEnterEvent=e.z,exports.trackStepSubmitErrorEvent=e.L,exports.trackStepSubmitEvent=e.R,exports.trackStepSubmitSuccessEvent=e.I,exports.trackWaitlistJoinEvent=e.v,exports.trackWishlistAddEvent=e._;
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../src-DXtv_fpu.cjs`);let t=require(`@picked/client`),n=require(`effector`);function r(e){return e.isResolved}var i=({trackerOptions:i,enableDocumentListeners:a=!1})=>({name:`analytics`,setup:o=>{if(!(0,t.supportsWindow)())return;let{organizationId:s,projectId:c}=o,l=()=>o.features.listStore.getState().flatMap(e=>{if(!r(e))return[];let{id:t,key:n,name:i}=e,{bucket:a}=e.getBucket();return[{name:i,key:n,feature:t,bucket:a}]}),u=e=>{if(`experience`in e&&e.experience){let{experience:t}=e;return{id:t.experienceId,title:t.configStore.getState().name}}};e.q({organizationId:s,projectId:c,...i});let d=e=>{let{experience:t}=e||{},n=l();return function(){return{organizationId:s,projectId:c,sessionId:o.session?.id,identifiers:o.session?.identifiers,isUser:o.session?.isUser,features:n,...t&&{experience:{id:t.experienceId,title:t.configStore.getState().name}}}}};a&&e.t(d()),o.experienceInstances.listStore.watch(t=>{t.forEach(t=>{let n=t.target;n&&e.n(d({experience:t}),n.shadowRoot)})});function f(e){return(0,n.attach)({source:{fields:o.fields.listStore,responses:o.responses.listStore},effect:async({fields:t,responses:n},r)=>{let i=l();return e({organizationId:s,projectId:c,sessionId:o.session?.id,experience:u(r),step:`step`in r?r.step:void 0,form:`form`in r?r.form:void 0,exception:`exception`in r?r.exception.reason?.[0]:void 0,fields:t,responses:n,features:i,isUser:o.session?.isUser,identifiers:o.session?.identifiers})}})}(0,n.split)({source:o.eventBus,match:e=>e.type,cases:{load:f(e.W),initialize:f(e.G),experience_initialize:f(e.H),experience_open:f(e.U),experience_close:f(e.K),field_validation_error:f(e.g),step_enter:f(e.z),step_submit:f(e.R),step_submit_success:f(e.I),form_submit:f(e.h),form_submit_success:f(e.p),form_submit_error:f(e.m),feature_decide:f(e.V)}})}});exports.analyticsPlugin=i;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../../../src-57IB6FEH.cjs`);let t=require(`@picked/client`),n=require(`effector`);function r(e){return e.isResolved}var i=({trackerOptions:i,enableDocumentListeners:a=!1})=>({name:`analytics`,setup:o=>{if(!(0,t.supportsWindow)())return;let{projectId:s}=o,c=o.session.store.map(e=>e.id),l=o.session.store.map(e=>e.isUser,{skipVoid:!1}),u=o.session.store.map(e=>e.identifiers??{}),d=e=>e.flatMap(e=>{if(!r(e))return[];let{id:t,key:n,name:i}=e,{bucket:a}=e.getBucket();return[{name:i,key:n,feature:t,bucket:a}]}),f=e=>{if(`experience`in e)return{id:e.experience.experienceId,title:e.experience.experienceName}};e.q({projectId:s,...i});let p=(e,t)=>({projectId:s,sessionId:e.sessionId,identifiers:e.sessionIdentifiers,isUser:e.sessionIsUser,features:d(e.features),...t&&{experience:{id:t.experienceId,title:t.experienceName}}}),m=e=>{let{experience:t}=e||{},r=(0,n.attach)({source:{sessionId:c,sessionIdentifiers:u,sessionIsUser:l,features:o.features.listStore},effect:e=>p(e,t)}),i=p({sessionId:void 0,sessionIdentifiers:void 0,sessionIsUser:void 0,features:[]},t);return r.doneData.watch(e=>{i=e}),r(),function(){return i}};a&&e.t(m()),o.experienceInstances.listStore.watch(t=>{t.forEach(t=>{let n=t.target;n&&e.n(m({experience:t}),n.shadowRoot)})});function h(e){return(0,n.attach)({source:{fields:o.fields.listStore,responses:o.responses.listStore,sessionId:c,sessionIdentifiers:u,sessionIsUser:l,features:o.features.listStore},effect:async({fields:t,responses:n,sessionId:r,sessionIdentifiers:i,sessionIsUser:a,features:o},c)=>e({projectId:s,sessionId:r,experience:f(c),step:`step`in c?c.step:void 0,form:`form`in c?c.form:void 0,exception:`exception`in c?c.exception.reason[0]:void 0,fields:t,responses:n,features:d(o),isUser:a,identifiers:i})})}(0,n.split)({source:o.eventBus,match:e=>e.type,cases:{load:h(e.W),initialize:h(e.G),experience_initialize:h(e.H),experience_open:h(e.U),experience_close:h(e.K),field_validation_error:h(e.g),step_enter:h(e.z),step_submit:h(e.R),step_submit_success:h(e.I),form_submit:h(e.h),form_submit_success:h(e.p),form_submit_error:h(e.m),feature_decide:h(e.V)}})}});exports.analyticsPlugin=i;
package/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, K as l, L as u, M as d, N as f, O as p, P as m, R as h, S as g, T as _, U as v, V as y, W as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as F, p as I, q as L, r as R, s as z, t as B, u as V, v as H, w as U, x as W, y as G, z as K } from "../src-CZoh-SCw.js";
1
+ import { A as e, B as t, C as n, D as r, E as i, F as a, G as o, H as s, I as c, K as l, L as u, M as d, N as f, O as p, P as m, R as h, S as g, T as _, U as v, V as y, W as b, _ as x, a as S, b as C, c as w, d as T, f as E, g as D, h as O, i as k, j as A, k as j, l as M, m as N, n as P, o as F, p as I, q as L, r as R, s as z, t as B, u as V, v as H, w as U, x as W, y as G, z as K } from "../src-DfWSBf5F.js";
2
2
  export { B as bindGlobalEventListeners, P as bindUserInteractionListeners, m as createCartAddTrackerEvent, d as createCartRemoveTrackerEvent, e as createCheckoutCompleteTrackerEvent, p as createCheckoutStartTrackerEvent, T as createIdentifyTrackerEvent, i as createOrderCreateTrackerEvent, F as createPageViewTrackerEvent, U as createProductListViewTrackerEvent, W as createProductViewTrackerEvent, L as createTracker, l as trackAppCloseEvent, o as trackAppInitializeEvent, b as trackAppLoadEvent, v as trackAppOpenEvent, a as trackCartAddEvent, f as trackCartRemoveEvent, A as trackCheckoutCompleteEvent, j as trackCheckoutStartEvent, R as trackCustomEvent, S as trackEvent, s as trackExperienceLoadEvent, y as trackFeatureDecideEvent, D as trackFieldValidationErrorEvent, N as trackFormSubmitErrorEvent, O as trackFormSubmitEvent, I as trackFormSubmitSuccessEvent, E as trackIdentifyEvent, V as trackLeadCaptureEvent, M as trackModalCloseEvent, w as trackModalOpenEvent, k as trackNamedCustomEvent, r as trackOrderCreateEvent, z as trackPageViewEvent, _ as trackProductListViewEvent, n as trackProductSelectEvent, g as trackProductViewDetailsEvent, C as trackRecommendationPresentEvent, G as trackSearchResultsListViewEvent, t as trackStepComplete, K as trackStepEnterEvent, u as trackStepSubmitErrorEvent, h as trackStepSubmitEvent, c as trackStepSubmitSuccessEvent, H as trackWaitlistJoinEvent, x as trackWishlistAddEvent };
@@ -1,4 +1,4 @@
1
- import { G as e, H as t, I as n, K as r, R as i, U as a, V as o, W as s, g as c, h as l, m as u, n as d, p as f, q as p, t as m, z as h } from "../../../src-CZoh-SCw.js";
1
+ import { G as e, H as t, I as n, K as r, R as i, U as a, V as o, W as s, g as c, h as l, m as u, n as d, p as f, q as p, t as m, z as h } from "../../../src-DfWSBf5F.js";
2
2
  import { supportsWindow as g } from "@picked/client";
3
3
  import { attach as _, split as v } from "effector";
4
4
  //#region src/plugins/analytics/plugin.ts
@@ -9,7 +9,7 @@ var b = ({ trackerOptions: b, enableDocumentListeners: x = !1 }) => ({
9
9
  name: "analytics",
10
10
  setup: (S) => {
11
11
  if (!g()) return;
12
- let { organizationId: C, projectId: w } = S, T = () => S.features.listStore.getState().flatMap((e) => {
12
+ let { projectId: C } = S, w = S.session.store.map((e) => e.id), T = S.session.store.map((e) => e.isUser, { skipVoid: !1 }), E = S.session.store.map((e) => e.identifiers ?? {}), D = (e) => e.flatMap((e) => {
13
13
  if (!y(e)) return [];
14
14
  let { id: t, key: n, name: r } = e, { bucket: i } = e.getBucket();
15
15
  return [{
@@ -18,85 +18,95 @@ var b = ({ trackerOptions: b, enableDocumentListeners: x = !1 }) => ({
18
18
  feature: t,
19
19
  bucket: i
20
20
  }];
21
- }), E = (e) => {
22
- if ("experience" in e && e.experience) {
23
- let { experience: t } = e;
24
- return {
25
- id: t.experienceId,
26
- title: t.configStore.getState().name
27
- };
28
- }
21
+ }), O = (e) => {
22
+ if ("experience" in e) return {
23
+ id: e.experience.experienceId,
24
+ title: e.experience.experienceName
25
+ };
29
26
  };
30
27
  p({
31
- organizationId: C,
32
- projectId: w,
28
+ projectId: C,
33
29
  ...b
34
30
  });
35
- let D = (e) => {
36
- let { experience: t } = e || {}, n = T();
37
- return function() {
38
- return {
39
- organizationId: C,
40
- projectId: w,
41
- sessionId: S.session?.id,
42
- identifiers: S.session?.identifiers,
43
- isUser: S.session?.isUser,
44
- features: n,
45
- ...t && { experience: {
46
- id: t.experienceId,
47
- title: t.configStore.getState().name
48
- } }
49
- };
31
+ let k = (e, t) => ({
32
+ projectId: C,
33
+ sessionId: e.sessionId,
34
+ identifiers: e.sessionIdentifiers,
35
+ isUser: e.sessionIsUser,
36
+ features: D(e.features),
37
+ ...t && { experience: {
38
+ id: t.experienceId,
39
+ title: t.experienceName
40
+ } }
41
+ }), A = (e) => {
42
+ let { experience: t } = e || {}, n = _({
43
+ source: {
44
+ sessionId: w,
45
+ sessionIdentifiers: E,
46
+ sessionIsUser: T,
47
+ features: S.features.listStore
48
+ },
49
+ effect: (e) => k(e, t)
50
+ }), r = k({
51
+ sessionId: void 0,
52
+ sessionIdentifiers: void 0,
53
+ sessionIsUser: void 0,
54
+ features: []
55
+ }, t);
56
+ return n.doneData.watch((e) => {
57
+ r = e;
58
+ }), n(), function() {
59
+ return r;
50
60
  };
51
61
  };
52
- x && m(D()), S.experienceInstances.listStore.watch((e) => {
62
+ x && m(A()), S.experienceInstances.listStore.watch((e) => {
53
63
  e.forEach((e) => {
54
64
  let t = e.target;
55
- t && d(D({ experience: e }), t.shadowRoot);
65
+ t && d(A({ experience: e }), t.shadowRoot);
56
66
  });
57
67
  });
58
- function O(e) {
68
+ function j(e) {
59
69
  return _({
60
70
  source: {
61
71
  fields: S.fields.listStore,
62
- responses: S.responses.listStore
72
+ responses: S.responses.listStore,
73
+ sessionId: w,
74
+ sessionIdentifiers: E,
75
+ sessionIsUser: T,
76
+ features: S.features.listStore
63
77
  },
64
- effect: async ({ fields: t, responses: n }, r) => {
65
- let i = T();
66
- return e({
67
- organizationId: C,
68
- projectId: w,
69
- sessionId: S.session?.id,
70
- experience: E(r),
71
- step: "step" in r ? r.step : void 0,
72
- form: "form" in r ? r.form : void 0,
73
- exception: "exception" in r ? r.exception.reason?.[0] : void 0,
74
- fields: t,
75
- responses: n,
76
- features: i,
77
- isUser: S.session?.isUser,
78
- identifiers: S.session?.identifiers
79
- });
80
- }
78
+ effect: async ({ fields: t, responses: n, sessionId: r, sessionIdentifiers: i, sessionIsUser: a, features: o }, s) => e({
79
+ projectId: C,
80
+ sessionId: r,
81
+ experience: O(s),
82
+ step: "step" in s ? s.step : void 0,
83
+ form: "form" in s ? s.form : void 0,
84
+ exception: "exception" in s ? s.exception.reason[0] : void 0,
85
+ fields: t,
86
+ responses: n,
87
+ features: D(o),
88
+ isUser: a,
89
+ identifiers: i
90
+ })
81
91
  });
82
92
  }
83
93
  v({
84
94
  source: S.eventBus,
85
95
  match: (e) => e.type,
86
96
  cases: {
87
- load: O(s),
88
- initialize: O(e),
89
- experience_initialize: O(t),
90
- experience_open: O(a),
91
- experience_close: O(r),
92
- field_validation_error: O(c),
93
- step_enter: O(h),
94
- step_submit: O(i),
95
- step_submit_success: O(n),
96
- form_submit: O(l),
97
- form_submit_success: O(f),
98
- form_submit_error: O(u),
99
- feature_decide: O(o)
97
+ load: j(s),
98
+ initialize: j(e),
99
+ experience_initialize: j(t),
100
+ experience_open: j(a),
101
+ experience_close: j(r),
102
+ field_validation_error: j(c),
103
+ step_enter: j(h),
104
+ step_submit: j(i),
105
+ step_submit_success: j(n),
106
+ form_submit: j(l),
107
+ form_submit_success: j(f),
108
+ form_submit_error: j(u),
109
+ feature_decide: j(o)
100
110
  }
101
111
  });
102
112
  }
@@ -0,0 +1 @@
1
+ let e=require(`@snowplow/browser-tracker`),t=require(`@snowplow/browser-plugin-button-click-tracking`),n=require(`@snowplow/browser-plugin-performance-navigation-timing`),r=require(`@snowplow/browser-plugin-error-tracking`),i=require(`@snowplow/browser-plugin-web-vitals`),a=require(`@picked/client`);function o(e,t){return`iglu:dev.pckd/${e}/jsonschema/${t}`}function s(e,t,n={}){return{event:{schema:o(`event`,`1-0-0`),data:{type:e,meta:n}},context:t.filter(e=>e!==void 0)}}function c(e,t,n){return{schema:o(e,t),data:n}}function l(t,n){return(t,r)=>{(0,e.trackSelfDescribingEvent)(n(t,r))}}function u(e,t,n={passive:!0}){let r=new WeakMap;return(i,a)=>{let o=r.get(i);if(o||(o=new Set,r.set(i,o)),o.has(e))return;function s(e){t({event:e,analyticsContext:a()})}i.addEventListener(e,s,n),o.add(e)}}function d(e,t){let n=new Set;return r=>{if(n.has(e)||!(0,a.supportsDocument)())return;function i(e){t({event:e,analyticsContext:r()})}document.addEventListener(e,i,{passive:!0}),n.add(e)}}function f(e,t){let n=new Set;return r=>{if(n.has(e)||!(0,a.supportsWindow)())return;function i(e){t({event:e,analyticsContext:r()})}window.addEventListener(e,i,{passive:!0}),n.add(e)}}function p(e){return{items:e.features?.map(({feature:e,name:t,key:n,bucket:r})=>({ab_feature:e,ab_name:t,ab_key:n,ab_bucket:r}))||[]}}var m=`unknown`;function h(e){let t=D(),n={id:e.sessionId||null};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}function g(e){if(e.fields)return{items:e.fields.map(({id:e,type:t,label:n,options:r})=>({id:e,type:t,label:n,options:Array.isArray(r)?r.map(({id:e,label:t,value:n})=>({id:e,label:t,value:n})):void 0}))}}function _(e){if(e.responses)return{items:e.responses.map(({fieldKey:e,value:t})=>({field_id:e,values:Array.isArray(t)?t.map(e=>({value:e})):[{value:t}]}))}}function v(e,t=!1){let{step:n}=e;if(n)return{id:n.id,title:n.name};if(t)return{id:m,title:m}}function y(e,t=!1){let{productList:n}=e;if(n){let e={};`title`in n&&n.title&&Object.assign(e,{title:n.title});let t=`items`in n?n.items:n;return Object.assign(e,{items:t.map(e=>({item_id:e.itemId,item_name:e.itemName,affiliation:e.affiliation,coupon:e.coupon,currency:e.currency,creative_name:e.creativeName,creative_slot:e.creativeSlot,discount:E(e.discount),index:E(e.index),item_brand:e.itemBrand,item_category:e.itemCategory,item_category2:e.itemCategory2,item_category3:e.itemCategory3,item_category4:e.itemCategory4,item_category5:e.itemCategory5,item_list_id:e.itemListId,item_list_name:e.itemListName,item_variant:e.itemVariant,location_id:e.locationId,price:E(e.price),promotion_id:e.promotionId,promotion_name:e.promotionName,quantity:E(e.quantity),in_stock:e.inStock}))}),e}if(t)return{items:[]}}function b(e,t=!1){let{order:n}=e;if(n){let e={id:n.id};return n.checkoutToken&&(e.checkout_token=n.checkoutToken),n.cartToken&&(e.cart_token=n.cartToken),n.customerId&&(e.customer_id=n.customerId),e}if(t)return{id:m}}function x(e,t=!1){let{experience:n}=e;if(n)return{id:n.id,title:n.title};if(t)return{id:m,title:m}}function S(e,t=!1){let{exception:n}=e;if(n)return typeof n==`string`?{reason:n}:{reason:n.systemMessage};if(t)return{reason:m}}function C(e){let{form:t}=e;return t?{id:t.id,title:t.title}:{id:m,title:m}}function w(e){let{modal:t}=e;return t?{id:t.id,title:t.title}:{id:m,title:m}}function T(e,t=300){let n;return(...r)=>{clearTimeout(n),n=setTimeout(()=>e(...r),t)}}function E(e){if(typeof e==`number`)return e;if(typeof e!=`string`)return;let t=parseFloat(e);if(!isNaN(t))return t}function D(){if(!(0,a.supportsDocument)()||!(0,a.supportsCookies)())return null;let e=document.cookie?document.cookie.split(`;`):[];for(let t of e){let e=t.trim();if(e.startsWith(`_ga=`)){let t=e.substring(4).split(`.`);if(t.length>2)return t.slice(2).join(`.`)}}}function ee(e){let a=[];return e.trackErrors&&a.push((0,r.ErrorTrackingPlugin)()),e.trackVitals&&a.push((0,i.WebVitalsPlugin)()),e.trackPerformance&&a.push((0,n.PerformanceNavigationTimingPlugin)()),(e.trackButtonClickAllowList||e.trackButtonClickFilter)&&a.push((0,t.ButtonClickTrackingPlugin)()),a}function te(n){n.trackActivity&&!n.trackActivityCallback&&(0,e.enableActivityTracking)({minimumVisitLength:30,heartbeatDelay:10}),n.trackActivity&&n.trackActivityCallback&&(0,e.enableActivityTrackingCallback)({minimumVisitLength:30,heartbeatDelay:10,callback:n.trackActivityCallback}),(n.trackButtonClickAllowList||n.trackButtonClickFilter)&&(0,t.enableButtonClickTracking)({filter:n.trackButtonClickAllowList?{allowlist:n.trackButtonClickAllowList}:n.trackButtonClickFilter}),n.trackErrors&&(0,r.enableErrorTracking)()}function ne({projectId:t,cvlyX:n,deployment:r,collectorUrl:i=`evnts.pckd.dev`,appId:a=`picked-analytics`,trackVitals:o=!1,trackPerformance:s=!1,trackWebPage:c=!0,trackSessions:l=!0,trackBrowser:u=!0,trackActivity:d=!1,trackErrors:f=!1,trackActivityCallback:p,trackButtonClickAllowList:m}){let h={trackVitals:o,trackErrors:f,trackActivity:d,trackPerformance:s,trackActivityCallback:p,trackButtonClickAllowList:m,deployment:r},g=(0,e.newTracker)(a,i,{appId:a,platform:`web`,keepalive:!0,contexts:{webPage:c,session:l,browser:u||!1},plugins:ee(h)});return re({projectId:t,cvlyX:n,deployment:r}),te(h),g}function re({projectId:t,cvlyX:n,deployment:r}){if(!t)throw Error(`bindGlobalContext: projectId is required`);let i=[];i.push(c(`app`,`1-1-0`,{project_id:t}),c(`deployment`,`1-0-1`,{sha:r.sha,id:r.id,env:r.env,host:r.host})),n&&i.push(c(`cvly_x`,`1-0-1`,{vercel_deployment_id:n.vercelDeploymentId,vercel_env:n.vercelEnv,vercel_url:n.vercelUrl})),(0,e.addGlobalContexts)(i)}var ie=`app_close`;function ae(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(ie,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var oe=l(ie,ae),se=`app_initialize`;function ce(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(se,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var le=l(se,ce),ue=`app_load`;function de(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(ue,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var fe=l(ue,de),pe=`app_open`;function me(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(pe,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var he=l(pe,me),ge=`experience_load`;function _e(e,t){let n=p(e),r=h(e),i=x(e,!0),a=v(e);return s(ge,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`experience`,`1-0-1`,i),a?c(`step`,`1-0-0`,a):void 0],t)}var ve=l(ge,_e),ye=`feature_decide`;function be(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(ye,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var xe=l(ye,be),O=`step_complete`;function Se(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=_(e),l=g(e);return s(O,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),l&&c(`field_list`,`1-0-0`,l),o&&c(`response_list`,`1-0-0`,o),i&&c(`experience`,`1-0-1`,i)],t)}var Ce=l(O,Se),k=`step_enter`;function we(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=g(e);return s(k,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),o&&c(`field_list`,`1-0-0`,o),i&&c(`experience`,`1-0-1`,i)],t)}var Te=l(k,we),A=`step_submit`;function Ee(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=_(e),l=g(e);return s(A,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),l&&c(`field_list`,`1-0-0`,l),o&&c(`response_list`,`1-0-0`,o),i&&c(`experience`,`1-0-1`,i)],t)}var De=l(A,Ee),j=`step_submit_error`;function Oe(e,t){let n=p(e),r=h(e),i=S(e,!0),a=x(e),o=v(e,!0),l=g(e),u=_(e);return s(j,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`exception`,`1-0-0`,i),c(`step`,`1-0-0`,o),l&&c(`field_list`,`1-0-0`,l),u&&c(`response_list`,`1-0-0`,u),a&&c(`experience`,`1-0-1`,a)],t)}var ke=l(j,Oe),M=`step_submit_success`;function Ae(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=g(e),l=_(e);return s(M,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),o&&c(`field_list`,`1-0-0`,o),l&&c(`response_list`,`1-0-0`,l),i&&c(`experience`,`1-0-1`,i)],t)}var je=l(M,Ae),N=`cart_add`;function P(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(N,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function Me(e,t){return P(e,t)}var Ne=l(N,P),Pe=`cart_remove`;function Fe(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(Pe,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function Ie(e,t){return Fe(e,t)}var Le=l(Pe,Fe),Re=`checkout_complete`;function ze(e,t){let n=p(e),r=h(e),i=y(e,!0),a=b(e,!0),o=x(e),l=v(e);return s(Re,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),c(`order`,`1-0-0`,a),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}function Be(e,t){return ze(e,t)}var Ve=l(Re,ze),He=`checkout_start`;function Ue(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(He,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function We(e,t){return Ue(e,t)}var Ge=l(He,Ue),Ke=`order_create`;function qe(e,t){let n=p(e),r=h(e),i=y(e,!0),a=b(e,!0),o=x(e),l=v(e);return s(Ke,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),c(`order`,`1-0-0`,a),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}function Je(e,t){return qe(e,t)}var Ye=l(Ke,qe),Xe=`product_list_view`;function Ze(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(Xe,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),o?c(`step`,`1-0-0`,o):void 0,a?c(`experience`,`1-0-1`,a):void 0],t)}function Qe(e,t){return Ze(e,t)}var $e=l(Xe,Ze),et=`product_select`;function tt(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(et,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var nt=l(et,tt),rt=`product_view_details`;function it(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(rt,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function at(e,t){return it(e,t)}var ot=l(rt,it),st=`recommendation_present`;function ct(e,t){let n=p(e),r=h(e),i=x(e),a=v(e),o=y(e,!0);return s(st,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,o),i&&c(`experience`,`1-0-1`,i),a&&c(`step`,`1-0-0`,a)],t)}var lt=l(st,ct),ut=`search_results_list_view`;function dt(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(ut,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),o?c(`step`,`1-0-0`,o):void 0,a?c(`experience`,`1-0-1`,a):void 0],t)}var ft=l(ut,dt),pt=`waitlist_join`;function mt(e,t){let n=p(e),r=h(e),i=x(e),a=v(e),o=y(e);return s(pt,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,o?c(`product_list`,`2-0-1`,o):void 0],t)}var ht=l(pt,mt),gt=`wishlist_add`;function _t(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(gt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var vt=l(gt,_t),yt=`field_validation_error`;function bt(e,t){let n=p(e),r=h(e),i=C(e),a=S(e,!0),o=x(e),l=v(e);return s(yt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`exception`,`1-0-0`,a),c(`form`,`1-0-0`,i),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}var xt=l(yt,bt),St=`form_submit`;function Ct(e,t){let n=p(e),r=h(e),i=C(e),a=x(e),o=v(e);return s(St,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`form`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var wt=l(St,Ct),Tt=`form_submit_error`;function Et(e,t){let n=p(e),r=h(e),i=C(e),a=S(e,!0),o=x(e),l=v(e);return s(Tt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`form`,`1-0-0`,i),c(`exception`,`1-0-0`,a),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}var Dt=l(Tt,Et),Ot=`form_submit_success`;function kt(e,t){let n=p(e),r=h(e),i=C(e),a=x(e),o=v(e);return s(Ot,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`form`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var At=l(Ot,kt),jt=`identify`;function Mt(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(jt,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`session`,`1-0-4`,r),c(`feature_list`,`2-0-0`,n),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}function Nt(e,t){return Mt(e,t)}var Pt=l(jt,Mt),F=`lead_capture`;function Ft(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(F,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a&&c(`step`,`1-0-0`,a),i&&c(`experience`,`1-0-1`,i)],t)}var It=l(F,Ft),Lt=`modal_close`;function Rt(e,t){let n=p(e),r=h(e),i=w(e),a=x(e),o=v(e);return s(Lt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`modal`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var zt=l(Lt,Rt),Bt=`modal_open`;function Vt(e,t){let n=p(e),r=h(e),i=w(e),a=x(e),o=v(e);return s(Bt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`modal`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var Ht=l(Bt,Vt),Ut=`page_view`;function Wt(e,t){let n=p(e),r=h(e),i=x(e),a=v(e),o=y(e);return s(Ut,[c(`app`,`1-1-0`,{project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,o?c(`product_list`,`2-0-1`,o):void 0],t)}function Gt(e,t){return Wt(e,t)}var Kt=l(Ut,Wt);function I(e){return e instanceof Element}function qt(e){return`data-picked-${e.replaceAll(`_`,`-`)}`}function L(e){let t=[`a`,`button`,`input`,`select`,`textarea`,`details`,`summary`,`label`,`form`,`fieldset`,`legend`,`optgroup`,`option`,`output`,`datalist`,`dialog`,`menu`,`menuitem`,`iframe`,`audio`,`video`,`embed`,`object`,`canvas`].join(`, `);return I(e)?e.matches(t)?e:e.closest(t):null}function R(e){if(e instanceof HTMLSelectElement){let t=e.selectedIndex||0;return e.options[t]?.text??``}return`innerText`in e&&typeof e.innerText==`string`?e.innerText:e.textContent}function z(e){let t=e.getAttribute(`aria-label`);if(t)return t;let n=e.getAttribute(`aria-labelledby`);if(n){let e=document.getElementById(n);if(e){let t=R(e);if(t)return t}}if(`id`in e&&e.id){let t=document.querySelector(`label[for="${e.id}"]`);if(t){let e=R(t);if(e)return e}}let r=e.parentElement;for(;r;){if(r.tagName.toLowerCase()===`label`){let e=R(r);if(e)return e}r=r.parentElement}if(e instanceof HTMLInputElement&&`labels`in e&&e.labels){let t=Array.from(e.labels).map(e=>R(e)).filter(Boolean).join(` `);if(t)return t}return`placeholder`in e&&typeof e.placeholder==`string`?e.placeholder:null}function Jt(e,t){if(!I(e))return null;let n=qt(t),r=e.closest(`[${n}]`);if(!r)return null;let i=r.getAttribute(n);return i?{element:r,customEventName:i}:null}var Yt=255;function B(e){return e?e.slice(0,Yt):null}var V=`click`;function Xt(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(V,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(V,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Zt=l(V,Xt);function Qt(e,t,n,r){let i=S(n.analyticsContext),a=x(n.analyticsContext),o=p(n.analyticsContext),l=g(n.analyticsContext),u=C(n.analyticsContext),d=w(n.analyticsContext),f=b(n.analyticsContext),m=y(n.analyticsContext),T=_(n.analyticsContext),E=h(n.analyticsContext),D=v(n.analyticsContext),ee={id:t.id||null,node_type:t.nodeName.toLowerCase(),label:B(z(t)),text:B(R(t))};return s(e,[c(`app`,`1-1-0`,{project_id:n.analyticsContext.projectId}),c(`session`,`1-0-4`,E),c(`element`,`1-0-0`,ee),i?c(`exception`,`1-0-0`,i):void 0,a?c(`experience`,`1-0-1`,a):void 0,c(`feature_list`,`2-0-0`,o),l?c(`field_list`,`1-0-0`,l):void 0,c(`form`,`1-0-0`,u),c(`modal`,`1-0-0`,d),f?c(`order`,`1-0-0`,f):void 0,m?c(`product_list`,`2-0-1`,m):void 0,T?c(`response_list`,`1-0-0`,T):void 0,D?c(`step`,`1-0-0`,D):void 0],r)}function H(t,n,r){let i=Jt(n.event.target,t);if(!i)return;let{element:a,customEventName:o}=i;(0,e.trackSelfDescribingEvent)(Qt(o,a,n,r))}function $t(t,n,r){let i=S(t),a=x(t),o=p(t),l=g(t),u=t.form?C(t):void 0,d=t.modal?w(t):void 0,f=b(t),m=y(t),T=_(t),E=h(t),D=v(t);(0,e.trackSelfDescribingEvent)(s(n,[c(`app`,`1-1-0`,{project_id:t.projectId}),c(`session`,`1-0-4`,E),i?c(`exception`,`1-0-0`,i):void 0,a?c(`experience`,`1-0-1`,a):void 0,c(`feature_list`,`2-0-0`,o),l?c(`field_list`,`1-0-0`,l):void 0,u?c(`form`,`1-0-0`,u):void 0,d?c(`modal`,`1-0-0`,d):void 0,f?c(`order`,`1-0-0`,f):void 0,m?c(`product_list`,`2-0-1`,m):void 0,T?c(`response_list`,`1-0-0`,T):void 0,D?c(`step`,`1-0-0`,D):void 0],r))}var U=`rapid_scroll`;function en(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(U,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,{node_type:`unknown`})],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(U,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var tn=l(U,en),nn=100,rn=100,an=300,on=0,sn=0,cn=T((e,t)=>{tn(e,t),H(`rapid_scroll`,e,t)},an);function ln(e,t){let n=e.event.target||document.documentElement;if(!(n instanceof HTMLElement))return;let r=n.scrollTop,i=Date.now()-sn;Math.abs(r-on)>nn&&i<rn&&cn(e,t),on=r,sn=Date.now()}var un=u(`scroll`,ln,!0),W=`rapid_click`;function dn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(W,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(W,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var fn=l(W,dn),G=0,pn=0,mn=3,hn=500;function gn(e,t){let n=new Date().getTime();n-pn<hn?G++:G=1,pn=n,G>=mn&&(fn(e,t),H(`rapid_click`,e,t),G=0)}var _n=u(`click`,gn),K=`right_click`;function vn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(K,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0]);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(K,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var yn=l(K,vn);function bn(e,t){yn(e,t),H(`right_click`,e,t)}var xn=u(`contextmenu`,bn),Sn=`mouse_shake`;function Cn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Sn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var wn=l(Sn,Cn),Tn=5,En=500,Dn=500,On={x:0,y:0},q=[],kn=0,An=T((e,t)=>{wn(e,t),H(`mouse_shake`,e,t)},En);function jn(e,t){let n=Date.now(),r=e.event.clientX-On.x,i=Math.sign(r);n-kn>Dn&&(q=[]),i!==0&&(q.length===0||q.at(-1)!==i)&&q.push(i),On={x:e.event.clientX,y:e.event.clientY},q.length>=Tn&&(An(e,t),q=[]),kn=n}var Mn=u(`mousemove`,jn),Nn=`page_visible`;function Pn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Nn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Fn=l(Nn,Pn),In=`page_hidden`;function Ln(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(In,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Rn=l(In,Ln);function zn(e,t){if(document.visibilityState===`visible`){Fn(e,t);return}Rn(e,t)}var Bn=d(`visibilitychange`,zn),J=`backspace`;function Vn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(J,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(J,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Hn=l(J,Vn);function Un(e,t){e.event.key===`Backspace`&&Hn(e,t)}var Wn=u(`keydown`,Un),Gn=`page_hide`;function Kn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Gn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var qn=l(Gn,Kn);function Jn(e,t){qn(e,t)}var Yn=f(`pagehide`,Jn),Xn=`page_show`;function Zn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Xn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Qn=l(Xn,Zn);function $n(e,t){Qn(e,t)}var er=f(`pageshow`,$n),tr=`offline`;function nr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(tr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var rr=l(tr,nr);function ir(e,t){rr(e,t)}var ar=f(`offline`,ir),Y=`scroll`;function or(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(Y,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(Y,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var sr=l(Y,or),cr=u(`scroll`,T((e,t)=>{sr(e,t),H(`scroll`,e,t)},500),!0),lr=`online`;function ur(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(lr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var dr=l(lr,ur);function fr(e,t){dr(e,t)}var pr=f(`online`,fr),mr=`resize`;function hr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(mr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var gr=l(mr,hr),X=0,_r=f(`resize`,T((e,t)=>{let n=window.innerWidth;n===X?`ontouchstart`in window||gr(e,t):(gr(e,t),X=n),X=n},300)),vr=`unload`;function yr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(vr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var br=l(vr,yr);function xr(e,t){br(e,t)}var Sr=f(`unload`,xr);function Cr(e,t){Zt(e,t),H(`click`,e,t)}var wr=u(`click`,Cr),Z=`paste`;function Tr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(Z,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(Z,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var Er=l(Z,Tr);function Dr(e,t){Er(e,t)}var Or=u(`paste`,Dr),Q=`copy`;function kr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(Q,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(Q,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var Ar=l(Q,kr);function jr(e,t){Ar(e,t)}var Mr=u(`copy`,jr),$=`drag`;function Nr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s($,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s($,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var Pr=l($,Nr);function Fr(e,t){let n=e.event.currentTarget;if(!n||!(n instanceof HTMLElement))return;function r(t){Fr({event:t,analyticsContext:e.analyticsContext})}n.removeEventListener(`drag`,r),n.addEventListener(`dragend`,()=>Ir(n,()=>e.analyticsContext)),Pr(e,t),H(`drag`,e,t)}var Ir=u(`drag`,Fr);function Lr(e,t){t&&(wr(t,e),_n(t,e),xn(t,e),Mr(t,e),Or(t,e),Ir(t,e),Wn(t,e),cr(t,e),un(t,e),Mn(t,e))}function Rr(e){Bn(e),Yn(e),er(e),ar(e),pr(e),_r(e),Sr(e)}Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Te}});
@@ -194,8 +194,8 @@ function j(e) {
194
194
  }
195
195
  function M(e, t = 300) {
196
196
  let n;
197
- return function(...r) {
198
- clearTimeout(n), n = setTimeout(() => e.apply(this, r), t);
197
+ return (...r) => {
198
+ clearTimeout(n), n = setTimeout(() => e(...r), t);
199
199
  };
200
200
  }
201
201
  function N(e) {
@@ -231,49 +231,45 @@ function re(e) {
231
231
  callback: e.trackActivityCallback
232
232
  }), (e.trackButtonClickAllowList || e.trackButtonClickFilter) && o({ filter: e.trackButtonClickAllowList ? { allowlist: e.trackButtonClickAllowList } : e.trackButtonClickFilter }), e.trackErrors && l();
233
233
  }
234
- function ie({ organizationId: e, projectId: t, cvlyX: n, deployment: i, collectorUrl: a = "evnts.pckd.dev", appId: o = "picked-analytics", trackVitals: s = !1, trackPerformance: c = !1, trackWebPage: l = !0, trackSessions: u = !0, trackBrowser: d = !0, trackActivity: f = !1, trackErrors: p = !1, trackActivityCallback: m, trackButtonClickAllowList: h }) {
235
- let g = {
236
- trackVitals: s,
237
- trackErrors: p,
238
- trackActivity: f,
239
- trackPerformance: c,
240
- trackActivityCallback: m,
241
- trackButtonClickAllowList: h,
242
- deployment: i
243
- }, _ = r(o, a, {
244
- appId: o,
234
+ function ie({ projectId: e, cvlyX: t, deployment: n, collectorUrl: i = "evnts.pckd.dev", appId: a = "picked-analytics", trackVitals: o = !1, trackPerformance: s = !1, trackWebPage: c = !0, trackSessions: l = !0, trackBrowser: u = !0, trackActivity: d = !1, trackErrors: f = !1, trackActivityCallback: p, trackButtonClickAllowList: m }) {
235
+ let h = {
236
+ trackVitals: o,
237
+ trackErrors: f,
238
+ trackActivity: d,
239
+ trackPerformance: s,
240
+ trackActivityCallback: p,
241
+ trackButtonClickAllowList: m,
242
+ deployment: n
243
+ }, g = r(a, i, {
244
+ appId: a,
245
245
  platform: "web",
246
246
  keepalive: !0,
247
247
  contexts: {
248
- webPage: l,
249
- session: u,
250
- browser: d || !1
248
+ webPage: c,
249
+ session: l,
250
+ browser: u || !1
251
251
  },
252
- plugins: ne(g)
252
+ plugins: ne(h)
253
253
  });
254
254
  return ae({
255
- organizationId: e,
256
- projectId: t,
257
- cvlyX: n,
258
- deployment: i
259
- }), re(g), _;
260
- }
261
- function ae({ organizationId: t, projectId: n, cvlyX: r, deployment: i }) {
262
- if (!t || !n) throw Error("bindGlobalContext: Both organizationId and projectId are required");
263
- let a = [];
264
- a.push(g("app", "1-0-0", {
265
- organization_id: t,
266
- project_id: n
267
- }), g("deployment", "1-0-1", {
268
- sha: i.sha,
269
- id: i.id,
270
- env: i.env,
271
- host: i.host
272
- })), r && a.push(g("cvly_x", "1-0-1", {
273
- vercel_deployment_id: r.vercelDeploymentId,
274
- vercel_env: r.vercelEnv,
275
- vercel_url: r.vercelUrl
276
- })), e(a);
255
+ projectId: e,
256
+ cvlyX: t,
257
+ deployment: n
258
+ }), re(h), g;
259
+ }
260
+ function ae({ projectId: t, cvlyX: n, deployment: r }) {
261
+ if (!t) throw Error("bindGlobalContext: projectId is required");
262
+ let i = [];
263
+ i.push(g("app", "1-1-0", { project_id: t }), g("deployment", "1-0-1", {
264
+ sha: r.sha,
265
+ id: r.id,
266
+ env: r.env,
267
+ host: r.host
268
+ })), n && i.push(g("cvly_x", "1-0-1", {
269
+ vercel_deployment_id: n.vercelDeploymentId,
270
+ vercel_env: n.vercelEnv,
271
+ vercel_url: n.vercelUrl
272
+ })), e(i);
277
273
  }
278
274
  //#endregion
279
275
  //#region src/events/app_close.ts
@@ -401,10 +397,7 @@ var Re = _(Ie, Le), ze = "cart_add";
401
397
  function Be(e, t) {
402
398
  let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
403
399
  return h(ze, [
404
- g("app", "1-0-0", {
405
- organization_id: e.organizationId,
406
- project_id: e.projectId
407
- }),
400
+ g("app", "1-1-0", { project_id: e.projectId }),
408
401
  g("feature_list", "2-0-0", n),
409
402
  g("session", "1-0-4", r),
410
403
  g("product_list", "2-0-1", i),
@@ -419,10 +412,7 @@ var He = _(ze, Be), Ue = "cart_remove";
419
412
  function We(e, t) {
420
413
  let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
421
414
  return h(Ue, [
422
- g("app", "1-0-0", {
423
- organization_id: e.organizationId,
424
- project_id: e.projectId
425
- }),
415
+ g("app", "1-1-0", { project_id: e.projectId }),
426
416
  g("feature_list", "2-0-0", n),
427
417
  g("session", "1-0-4", r),
428
418
  g("product_list", "2-0-1", i),
@@ -437,10 +427,7 @@ var Ke = _(Ue, We), qe = "checkout_complete";
437
427
  function Je(e, t) {
438
428
  let n = b(e), r = S(e), i = E(e, !0), a = D(e, !0), o = O(e), s = T(e);
439
429
  return h(qe, [
440
- g("app", "1-0-0", {
441
- organization_id: e.organizationId,
442
- project_id: e.projectId
443
- }),
430
+ g("app", "1-1-0", { project_id: e.projectId }),
444
431
  g("feature_list", "2-0-0", n),
445
432
  g("session", "1-0-4", r),
446
433
  g("product_list", "2-0-1", i),
@@ -456,10 +443,7 @@ var Xe = _(qe, Je), Ze = "checkout_start";
456
443
  function Qe(e, t) {
457
444
  let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
458
445
  return h(Ze, [
459
- g("app", "1-0-0", {
460
- organization_id: e.organizationId,
461
- project_id: e.projectId
462
- }),
446
+ g("app", "1-1-0", { project_id: e.projectId }),
463
447
  g("feature_list", "2-0-0", n),
464
448
  g("session", "1-0-4", r),
465
449
  g("product_list", "2-0-1", i),
@@ -474,10 +458,7 @@ var et = _(Ze, Qe), tt = "order_create";
474
458
  function nt(e, t) {
475
459
  let n = b(e), r = S(e), i = E(e, !0), a = D(e, !0), o = O(e), s = T(e);
476
460
  return h(tt, [
477
- g("app", "1-0-0", {
478
- organization_id: e.organizationId,
479
- project_id: e.projectId
480
- }),
461
+ g("app", "1-1-0", { project_id: e.projectId }),
481
462
  g("feature_list", "2-0-0", n),
482
463
  g("session", "1-0-4", r),
483
464
  g("product_list", "2-0-1", i),
@@ -493,10 +474,7 @@ var it = _(tt, nt), P = "product_list_view";
493
474
  function at(e, t) {
494
475
  let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
495
476
  return h(P, [
496
- g("app", "1-0-0", {
497
- organization_id: e.organizationId,
498
- project_id: e.projectId
499
- }),
477
+ g("app", "1-1-0", { project_id: e.projectId }),
500
478
  g("feature_list", "2-0-0", n),
501
479
  g("session", "1-0-4", r),
502
480
  g("product_list", "2-0-1", i),
@@ -522,10 +500,7 @@ var ut = _(ct, lt), dt = "product_view_details";
522
500
  function ft(e, t) {
523
501
  let n = b(e), r = S(e), i = E(e, !0), a = O(e), o = T(e);
524
502
  return h(dt, [
525
- g("app", "1-0-0", {
526
- organization_id: e.organizationId,
527
- project_id: e.projectId
528
- }),
503
+ g("app", "1-1-0", { project_id: e.projectId }),
529
504
  g("feature_list", "2-0-0", n),
530
505
  g("session", "1-0-4", r),
531
506
  g("product_list", "2-0-1", i),
@@ -562,10 +537,7 @@ var bt = _(vt, yt), xt = "waitlist_join";
562
537
  function St(e, t) {
563
538
  let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e);
564
539
  return h(xt, [
565
- g("app", "1-0-0", {
566
- organization_id: e.organizationId,
567
- project_id: e.projectId
568
- }),
540
+ g("app", "1-1-0", { project_id: e.projectId }),
569
541
  g("feature_list", "2-0-0", n),
570
542
  g("session", "1-0-4", r),
571
543
  a ? g("step", "1-0-0", a) : void 0,
@@ -634,10 +606,7 @@ var Rt = _(It, Lt), zt = "identify";
634
606
  function Bt(e, t) {
635
607
  let n = b(e), r = S(e), i = O(e), a = T(e);
636
608
  return h(zt, [
637
- g("app", "1-0-0", {
638
- organization_id: e.organizationId,
639
- project_id: e.projectId
640
- }),
609
+ g("app", "1-1-0", { project_id: e.projectId }),
641
610
  g("session", "1-0-4", r),
642
611
  g("feature_list", "2-0-0", n),
643
612
  a ? g("step", "1-0-0", a) : void 0,
@@ -683,10 +652,7 @@ var Zt = _(Yt, Xt), Qt = "page_view";
683
652
  function $t(e, t) {
684
653
  let n = b(e), r = S(e), i = O(e), a = T(e), o = E(e);
685
654
  return h(Qt, [
686
- g("app", "1-0-0", {
687
- organization_id: e.organizationId,
688
- project_id: e.projectId
689
- }),
655
+ g("app", "1-1-0", { project_id: e.projectId }),
690
656
  g("feature_list", "2-0-0", n),
691
657
  g("session", "1-0-4", r),
692
658
  a ? g("step", "1-0-0", a) : void 0,
@@ -827,18 +793,15 @@ function sn(e, t, n, r) {
827
793
  text: z(L(t))
828
794
  };
829
795
  return h(e, [
830
- g("app", "1-0-0", {
831
- organization_id: n.analyticsContext.organizationId,
832
- project_id: n.analyticsContext.projectId
833
- }),
796
+ g("app", "1-1-0", { project_id: n.analyticsContext.projectId }),
834
797
  g("session", "1-0-4", p),
835
798
  g("element", "1-0-0", _),
836
799
  i ? g("exception", "1-0-0", i) : void 0,
837
800
  a ? g("experience", "1-0-1", a) : void 0,
838
- o ? g("feature_list", "2-0-0", o) : void 0,
801
+ g("feature_list", "2-0-0", o),
839
802
  s ? g("field_list", "1-0-0", s) : void 0,
840
- c ? g("form", "1-0-0", c) : void 0,
841
- l ? g("modal", "1-0-0", l) : void 0,
803
+ g("form", "1-0-0", c),
804
+ g("modal", "1-0-0", l),
842
805
  u ? g("order", "1-0-0", u) : void 0,
843
806
  d ? g("product_list", "2-0-1", d) : void 0,
844
807
  f ? g("response_list", "1-0-0", f) : void 0,
@@ -854,10 +817,7 @@ function H(e, t, n) {
854
817
  function cn(e, t, n) {
855
818
  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);
856
819
  i(h(t, [
857
- g("app", "1-0-0", {
858
- organization_id: e.organizationId,
859
- project_id: e.projectId
860
- }),
820
+ g("app", "1-1-0", { project_id: e.projectId }),
861
821
  g("session", "1-0-4", p),
862
822
  r ? g("exception", "1-0-0", r) : void 0,
863
823
  a ? g("experience", "1-0-1", a) : void 0,
@@ -1 +1 @@
1
- {"version":3,"file":"cart_add.d.ts","sourceRoot":"","sources":["../../../src/events/cart_add.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,wBAAgB,yBAAyB,CACvC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,iBAAiB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"cart_add.d.ts","sourceRoot":"","sources":["../../../src/events/cart_add.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAiC7C,wBAAgB,yBAAyB,CACvC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,iBAAiB,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"cart_remove.d.ts","sourceRoot":"","sources":["../../../src/events/cart_remove.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,oBAAoB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"cart_remove.d.ts","sourceRoot":"","sources":["../../../src/events/cart_remove.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAiC7C,wBAAgB,4BAA4B,CAC1C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,oBAAoB,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkout_complete.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_complete.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAoC7C,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,0BAA0B,2EAA4C,CAAA"}
1
+ {"version":3,"file":"checkout_complete.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_complete.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAmC7C,wBAAgB,kCAAkC,CAChD,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,0BAA0B,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"checkout_start.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_start.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,wBAAgB,+BAA+B,CAC7C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,uBAAuB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"checkout_start.d.ts","sourceRoot":"","sources":["../../../src/events/checkout_start.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAiC7C,wBAAgB,+BAA+B,CAC7C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,uBAAuB,2EAA4C,CAAA"}
@@ -3,10 +3,9 @@ import { EventSchema } from '../schemas';
3
3
  /**
4
4
  * Tracks a custom event if the element has the corresponding data-picked-* attribute.
5
5
  *
6
- * @param baseEventType - The base event type (e.g., 'click', 'rapid_click')
7
- * @param interaction - The interaction object containing analyticsContext and event
8
- * @param eventMeta - Optional event metadata
9
- *
6
+ * @param baseEventType - The base event type (e.g., 'click', 'rapid_click').
7
+ * @param interaction - The interaction object containing analyticsContext and event.
8
+ * @param eventMeta - Optional event metadata.
10
9
  * @example
11
10
  * // For an element with data-picked-click="add_to_cart"
12
11
  * trackCustomEvent('click', interaction, eventMeta)
@@ -20,12 +19,11 @@ export declare function trackCustomEvent(baseEventType: string, interaction: {
20
19
  * Tracks a named custom event without requiring a DOM element.
21
20
  * Designed for non-DOM contexts like Google Tag Manager where element inspection is not available.
22
21
  *
23
- * @param analyticsContext - The analytics context containing project, org, and optional context data
24
- * @param customEventName - The custom event name to track
25
- * @param eventMeta - Optional event metadata
26
- *
22
+ * @param analyticsContext - The analytics context containing project and optional context data.
23
+ * @param customEventName - The custom event name to track.
24
+ * @param eventMeta - Optional event metadata.
27
25
  * @example
28
- * trackNamedCustomEvent({ projectId: 'proj-1', organizationId: 'org-1' }, 'signup_complete')
26
+ * trackNamedCustomEvent({ projectId: 'proj-1' }, 'signup_complete')
29
27
  */
30
28
  export declare function trackNamedCustomEvent(analyticsContext: AnalyticsContext, customEventName: string, eventMeta?: EventSchema['meta']): void;
31
29
  //# sourceMappingURL=custom.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../src/events/custom.ts"],"names":[],"mappings":"AAgBA,OAAO,KAAK,EACV,gBAAgB,EAejB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAsF7C;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE;IAAE,gBAAgB,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,EACjE,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CAWN;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,MAAM,EACvB,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CA8CN"}
1
+ {"version":3,"file":"custom.d.ts","sourceRoot":"","sources":["../../../src/events/custom.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EACV,gBAAgB,EAejB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAmF7C;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC9B,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE;IAAE,gBAAgB,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,EACjE,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CAWN;AAED;;;;;;;;;GASG;AACH,wBAAgB,qBAAqB,CACnC,gBAAgB,EAAE,gBAAgB,EAClC,eAAe,EAAE,MAAM,EACvB,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAC9B,IAAI,CA6CN"}
@@ -1 +1 @@
1
- {"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../../src/events/identify.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"identify.d.ts","sourceRoot":"","sources":["../../../src/events/identify.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAOjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAiC7C,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"order_create.d.ts","sourceRoot":"","sources":["../../../src/events/order_create.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAoC7C,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,qBAAqB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"order_create.d.ts","sourceRoot":"","sources":["../../../src/events/order_create.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EACV,gBAAgB,EASjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAmC7C,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,qBAAqB,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"page_view.d.ts","sourceRoot":"","sources":["../../../src/events/page_view.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAwC7C,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"page_view.d.ts","sourceRoot":"","sources":["../../../src/events/page_view.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAuC7C,wBAAgB,0BAA0B,CACxC,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAGhC;AAED,eAAO,MAAM,kBAAkB,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"product_list_view.d.ts","sourceRoot":"","sources":["../../../src/events/product_list_view.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAoC7C,wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAIhC;AAED,eAAO,MAAM,yBAAyB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"product_list_view.d.ts","sourceRoot":"","sources":["../../../src/events/product_list_view.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAmC7C,wBAAgB,iCAAiC,CAC/C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAIhC;AAED,eAAO,MAAM,yBAAyB,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"product_view_details.d.ts","sourceRoot":"","sources":["../../../src/events/product_view_details.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAkC7C,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAIhC;AAED,eAAO,MAAM,4BAA4B,2EAA4C,CAAA"}
1
+ {"version":3,"file":"product_view_details.d.ts","sourceRoot":"","sources":["../../../src/events/product_view_details.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAiC7C,wBAAgB,6BAA6B,CAC3C,gBAAgB,EAAE,gBAAgB,EAClC,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,4CAIhC;AAED,eAAO,MAAM,4BAA4B,2EAA4C,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"waitlist_join.d.ts","sourceRoot":"","sources":["../../../src/events/waitlist_join.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAsC7C,eAAO,MAAM,sBAAsB,2EAA4C,CAAA"}
1
+ {"version":3,"file":"waitlist_join.d.ts","sourceRoot":"","sources":["../../../src/events/waitlist_join.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EACV,gBAAgB,EAQjB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAqC7C,eAAO,MAAM,sBAAsB,2EAA4C,CAAA"}
@@ -12,6 +12,5 @@ export declare const mockAnalyticsContext: {
12
12
  fieldKeys: string[];
13
13
  };
14
14
  projectId: string;
15
- organizationId: string;
16
15
  };
17
16
  //# sourceMappingURL=analytics-event.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics-event.d.ts","sourceRoot":"","sources":["../../../src/fixtures/analytics-event.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;CAchC,CAAA"}
1
+ {"version":3,"file":"analytics-event.d.ts","sourceRoot":"","sources":["../../../src/fixtures/analytics-event.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;CAahC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analytics/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAIV,MAAM,EAEP,MAAM,gBAAgB,CAAA;AAsBvB,OAAO,KAAK,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEzE,UAAU,sBAAsB;IAC9B,cAAc,EAAE,oBAAoB,CAAA;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAMD,eAAO,MAAM,eAAe,GAAI,8CAG7B,sBAAsB,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CA4I1E,CAAA"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../../../src/plugins/analytics/plugin.ts"],"names":[],"mappings":"AAAA,0GAA0G;AAC1G,OAAO,KAAK,EAIV,MAAM,EAEP,MAAM,gBAAgB,CAAA;AAsBvB,OAAO,KAAK,EAAoB,oBAAoB,EAAE,MAAM,aAAa,CAAA;AAEzE,UAAU,sBAAsB;IAC9B,cAAc,EAAE,oBAAoB,CAAA;IACpC,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAClC;AAcD,eAAO,MAAM,eAAe,GAAI,8CAG7B,sBAAsB,KAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;CAgL1E,CAAA"}
@@ -0,0 +1,30 @@
1
+ import { FromSchema } from 'json-schema-to-ts';
2
+ export declare const schema: {
3
+ readonly $schema: "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#";
4
+ readonly additionalProperties: true;
5
+ readonly description: "Schema for an app";
6
+ readonly minProperties: 1;
7
+ readonly properties: {
8
+ readonly project_id: {
9
+ readonly description: "The project ID";
10
+ readonly type: "string";
11
+ readonly maxLength: 255;
12
+ };
13
+ readonly meta: {
14
+ readonly description: "Additional metadata";
15
+ readonly additionalProperties: true;
16
+ readonly type: readonly ["object", "null"];
17
+ };
18
+ };
19
+ readonly required: readonly ["project_id"];
20
+ readonly self: {
21
+ readonly vendor: "dev.pckd";
22
+ readonly name: "app";
23
+ readonly format: "jsonschema";
24
+ readonly version: "1-1-0";
25
+ };
26
+ readonly type: "object";
27
+ };
28
+ export type Schema = FromSchema<typeof schema>;
29
+ export type Version = typeof schema.self.version;
30
+ //# sourceMappingURL=1-1-0.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"1-1-0.d.ts","sourceRoot":"","sources":["../../../../src/schemas/app/1-1-0.ts"],"names":[],"mappings":"AAAA,2HAA2H;AAC3H,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEnD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;CA0BT,CAAA;AAEV,MAAM,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,MAAM,CAAC,CAAA;AAC9C,MAAM,MAAM,OAAO,GAAG,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAA"}
@@ -1,5 +1,5 @@
1
- import { Schema as Schema1_0_0, Version as Version1_0_0 } from './1-0-0';
2
1
  import { SchemaUrl } from '../../types';
2
+ import { Schema as Schema1_1_0, Version as Version1_1_0 } from './1-1-0';
3
3
  export declare const name = "app";
4
4
  export declare const schemas: {
5
5
  '1-0-0': {
@@ -33,8 +33,34 @@ export declare const schemas: {
33
33
  };
34
34
  readonly type: "object";
35
35
  };
36
+ '1-1-0': {
37
+ readonly $schema: "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#";
38
+ readonly additionalProperties: true;
39
+ readonly description: "Schema for an app";
40
+ readonly minProperties: 1;
41
+ readonly properties: {
42
+ readonly project_id: {
43
+ readonly description: "The project ID";
44
+ readonly type: "string";
45
+ readonly maxLength: 255;
46
+ };
47
+ readonly meta: {
48
+ readonly description: "Additional metadata";
49
+ readonly additionalProperties: true;
50
+ readonly type: readonly ["object", "null"];
51
+ };
52
+ };
53
+ readonly required: readonly ["project_id"];
54
+ readonly self: {
55
+ readonly vendor: "dev.pckd";
56
+ readonly name: "app";
57
+ readonly format: "jsonschema";
58
+ readonly version: "1-1-0";
59
+ };
60
+ readonly type: "object";
61
+ };
36
62
  };
37
- export type CurrentSchema = Schema1_0_0;
38
- export type CurrentVersion = Version1_0_0;
63
+ export type CurrentSchema = Schema1_1_0;
64
+ export type CurrentVersion = Version1_1_0;
39
65
  export type Url = SchemaUrl<typeof name, CurrentVersion>;
40
66
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/app/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAE7E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,eAAO,MAAM,IAAI,QAAQ,CAAA;AAEzB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEnB,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAA;AACvC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAA;AACzC,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,IAAI,EAAE,cAAc,CAAC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schemas/app/index.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAE5C,OAAO,KAAK,EAAE,MAAM,IAAI,WAAW,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAA;AAG7E,eAAO,MAAM,IAAI,QAAQ,CAAA;AAEzB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGnB,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG,WAAW,CAAA;AACvC,MAAM,MAAM,cAAc,GAAG,YAAY,CAAA;AACzC,MAAM,MAAM,GAAG,GAAG,SAAS,CAAC,OAAO,IAAI,EAAE,cAAc,CAAC,CAAA"}
@@ -1,3 +1,3 @@
1
1
  import { CreateTrackerOptions } from './types';
2
- export declare function createTracker({ organizationId, projectId, cvlyX, deployment, collectorUrl, appId, trackVitals, trackPerformance, trackWebPage, trackSessions, trackBrowser, trackActivity, trackErrors, trackActivityCallback, trackButtonClickAllowList, }: CreateTrackerOptions): import('@snowplow/browser-tracker').BrowserTracker | null | undefined;
2
+ export declare function createTracker({ projectId, cvlyX, deployment, collectorUrl, appId, trackVitals, trackPerformance, trackWebPage, trackSessions, trackBrowser, trackActivity, trackErrors, trackActivityCallback, trackButtonClickAllowList, }: CreateTrackerOptions): import('@snowplow/browser-tracker').BrowserTracker | null | undefined;
3
3
  //# sourceMappingURL=tracker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../src/tracker.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAEV,oBAAoB,EAKrB,MAAM,SAAS,CAAA;AAkEhB,wBAAgB,aAAa,CAAC,EAC5B,cAAc,EACd,SAAS,EACT,KAAK,EACL,UAAU,EACV,YAA+B,EAC/B,KAA0B,EAC1B,WAAmB,EACnB,gBAAwB,EACxB,YAAmB,EACnB,aAAoB,EACpB,YAAmB,EACnB,aAAqB,EACrB,WAAmB,EACnB,qBAAqB,EACrB,yBAAyB,GAC1B,EAAE,oBAAoB,yEAqCtB"}
1
+ {"version":3,"file":"tracker.d.ts","sourceRoot":"","sources":["../../src/tracker.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAEV,oBAAoB,EAKrB,MAAM,SAAS,CAAA;AAkEhB,wBAAgB,aAAa,CAAC,EAC5B,SAAS,EAET,KAAK,EACL,UAAU,EACV,YAA+B,EAC/B,KAA0B,EAC1B,WAAmB,EACnB,gBAAwB,EACxB,YAAmB,EACnB,aAAoB,EACpB,YAAmB,EACnB,aAAqB,EACrB,WAAmB,EACnB,qBAAqB,EACrB,yBAAyB,GAC1B,EAAE,oBAAoB,yEAoCtB"}
@@ -44,7 +44,8 @@ export type StepContext = Context<StepUrl, StepSchema>;
44
44
  export type DeploymentContext = Context<DeploymentUrl, DeploymentSchema>;
45
45
  export interface CreateTrackerOptions {
46
46
  /**
47
- * The organization ID.
47
+ * @deprecated The organization ID is no longer used by the analytics tracker. The
48
+ * field is accepted for backwards compatibility but the value is ignored.
48
49
  */
49
50
  organizationId?: string;
50
51
  /**
@@ -252,7 +253,6 @@ export interface AnalyticsContext {
252
253
  sessionId?: string;
253
254
  isUser?: boolean;
254
255
  projectId: string;
255
- organizationId: string;
256
256
  features?: AnalyticsFeature[];
257
257
  experience?: AnalyticsExperience;
258
258
  step?: ExperienceStep;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,cAAc,EACd,KAAK,EACL,UAAU,EACV,eAAe,IAAI,oBAAoB,EACxC,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,UAAU,EACV,UAAU,EACV,OAAO,EACR,MAAM,WAAW,CAAA;AAElB,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG,qBAAqB,CAAA;AAErF,MAAM,MAAM,SAAS,CACnB,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,IACpB,iBAAiB,MAAM,eAAe,OAAO,EAAE,CAAA;AAEnD,MAAM,WAAW,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjF,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,KAAK,YAAY,CAAC,CAAC,SAAS,WAAW,IAAI,OAAO,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAA;AAE/D,KAAK,aAAa,CAAC,IAAI,SAAS,MAAM,IAA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AAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACrC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,cAAc,EACd,KAAK,EACL,UAAU,EACV,eAAe,IAAI,oBAAoB,EACxC,MAAM,gBAAgB,CAAA;AACvB,OAAO,KAAK,EACV,SAAS,EACT,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,UAAU,EACV,WAAW,EACX,QAAQ,EACR,eAAe,EACf,YAAY,EACZ,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,YAAY,EACZ,UAAU,EACV,OAAO,EACP,WAAW,EACX,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,iBAAiB,EACjB,cAAc,EACd,kBAAkB,EAClB,eAAe,EACf,aAAa,EACb,UAAU,EACV,UAAU,EACV,OAAO,EACR,MAAM,WAAW,CAAA;AAElB,MAAM,MAAM,2BAA2B,GAAG,mBAAmB,GAAG,qBAAqB,CAAA;AAErF,MAAM,MAAM,SAAS,CACnB,MAAM,SAAS,MAAM,EACrB,OAAO,SAAS,MAAM,IACpB,iBAAiB,MAAM,eAAe,OAAO,EAAE,CAAA;AAEnD,MAAM,WAAW,OAAO,CAAC,GAAG,SAAS,MAAM,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACjF,MAAM,EAAE,GAAG,CAAA;IACX,IAAI,EAAE,MAAM,CAAA;CACb;AAED,KAAK,YAA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c,CAAA;IACtB,WAAW,CAAC,EAAE,oBAAoB,CAAA;IAClC,SAAS,CAAC,EAAE,kBAAkB,CAAA;IAC9B,cAAc,CAAC,EAAE,uBAAuB,CAAA;IACxC,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACrC"}
@@ -1,9 +1,9 @@
1
1
  import { AnalyticsContext, AppContext, Context, ContextArray, ExceptionContext, ExperienceContext, FeatureListContext, FieldListContext, FormContext, ModalContext, OrderContext, ProductListContext, ResponseListContext, SchemaUrl, SessionContext, SnowplowEventWithContext, SnowplowSelfDescribingEvent, StepContext } from './types';
2
2
  import { EventSchema } from './schemas';
3
3
  export declare function schemaUrl<T extends string, U extends string>(schema: T, version: U): SchemaUrl<T, U>;
4
- export declare function log(message: string, ...data: any[]): void;
5
- export declare function warn(message: string, ...data: any[]): void;
6
- export declare function error(message: string, ...data: any[]): void;
4
+ export declare function log(_message: string, ..._data: unknown[]): void;
5
+ export declare function warn(_message: string, ..._data: unknown[]): void;
6
+ export declare function error(_message: string, ..._data: unknown[]): void;
7
7
  export declare function createEvent<E extends SnowplowEventWithContext<string, ContextArray, ContextArray>>(type: E['event']['data']['type'], context: E['context'], meta?: E['event']['data']['meta']): SnowplowSelfDescribingEvent;
8
8
  export declare function createContext<S extends string, V extends string, D extends Record<string, unknown>>(schema: S, version: V, data: D): Context<SchemaUrl<S, V>, D>;
9
9
  export declare function createTrackEvent(eventName: string, formatter: (_: null, eventMeta?: EventSchema['meta']) => SnowplowSelfDescribingEvent): (eventMeta?: EventSchema['meta']) => void;
@@ -37,5 +37,15 @@ export declare function formatExceptionContextData(event: AnalyticsContext, requ
37
37
  export declare function formatExceptionContextData(event: AnalyticsContext, required?: false): ExceptionContext['data'] | undefined;
38
38
  export declare function formatFormContextData(event: AnalyticsContext): FormContext['data'];
39
39
  export declare function formatModalContextData(event: AnalyticsContext): ModalContext['data'];
40
- export declare function debounce(fn: Function, ms?: number): (this: unknown, ...args: unknown[]) => void;
40
+ /**
41
+ * Creates a debounced version of the supplied function that will only invoke
42
+ * the original after `ms` milliseconds have elapsed since the last call.
43
+ *
44
+ * @param {Fn} fn - The function to debounce.
45
+ * @param {number} ms - The debounce window in milliseconds.
46
+ * @returns {(...args: Parameters<Fn>) => void} A debounced wrapper around `fn`.
47
+ * @example
48
+ * const log = debounce((value: string) => console.log(value), 200)
49
+ */
50
+ export declare function debounce<Fn extends (...args: never[]) => unknown>(fn: Fn, ms?: number): (...args: Parameters<Fn>) => void;
41
51
  //# sourceMappingURL=utils.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,wBAAwB,EACxB,2BAA2B,EAC3B,WAAW,EACZ,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAM5C,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,EAC1D,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,CAAC,GACT,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAEjB;AAGD,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,QAIlD;AAED,wBAAgB,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,QAInD;AAED,wBAAgB,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,QAIpD;AAED,wBAA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AE,EAAE,EAAE,EAAE,SAAM,IAGzE,GAAG,MAAM,UAAU,CAAC,EAAE,CAAC,UAIhC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@picked/analytics",
3
3
  "description": "Picked Analytics",
4
- "version": "0.0.1-dev.1777869768355",
4
+ "version": "0.0.1-dev.1778120127377",
5
5
  "dependencies": {
6
6
  "@snowplow/browser-plugin-button-click-tracking": "^4.6.5",
7
7
  "@snowplow/browser-plugin-error-tracking": "^4.6.5",
@@ -57,7 +57,7 @@
57
57
  "main": "./dist/cjs/index.js",
58
58
  "module": "./dist/esm/index.js",
59
59
  "peerDependencies": {
60
- "@picked/client": "0.0.1-dev.1777869768355",
60
+ "@picked/client": "0.0.1-dev.1778120127377",
61
61
  "effector": "^23.3.0"
62
62
  },
63
63
  "private": false,
@@ -1 +0,0 @@
1
- let e=require(`@snowplow/browser-tracker`),t=require(`@snowplow/browser-plugin-button-click-tracking`),n=require(`@snowplow/browser-plugin-performance-navigation-timing`),r=require(`@snowplow/browser-plugin-error-tracking`),i=require(`@snowplow/browser-plugin-web-vitals`),a=require(`@picked/client`);function o(e,t){return`iglu:dev.pckd/${e}/jsonschema/${t}`}function s(e,t,n={}){return{event:{schema:o(`event`,`1-0-0`),data:{type:e,meta:n}},context:t.filter(e=>e!==void 0)}}function c(e,t,n){return{schema:o(e,t),data:n}}function l(t,n){return(t,r)=>{(0,e.trackSelfDescribingEvent)(n(t,r))}}function u(e,t,n={passive:!0}){let r=new WeakMap;return(i,a)=>{let o=r.get(i);if(o||(o=new Set,r.set(i,o)),o.has(e))return;function s(e){t({event:e,analyticsContext:a()})}i.addEventListener(e,s,n),o.add(e)}}function d(e,t){let n=new Set;return r=>{if(n.has(e)||!(0,a.supportsDocument)())return;function i(e){t({event:e,analyticsContext:r()})}document.addEventListener(e,i,{passive:!0}),n.add(e)}}function f(e,t){let n=new Set;return r=>{if(n.has(e)||!(0,a.supportsWindow)())return;function i(e){t({event:e,analyticsContext:r()})}window.addEventListener(e,i,{passive:!0}),n.add(e)}}function p(e){return{items:e.features?.map(({feature:e,name:t,key:n,bucket:r})=>({ab_feature:e,ab_name:t,ab_key:n,ab_bucket:r}))||[]}}var m=`unknown`;function h(e){let t=D(),n={id:e.sessionId||null};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}function g(e){if(e.fields)return{items:e.fields.map(({id:e,type:t,label:n,options:r})=>({id:e,type:t,label:n,options:Array.isArray(r)?r.map(({id:e,label:t,value:n})=>({id:e,label:t,value:n})):void 0}))}}function _(e){if(e.responses)return{items:e.responses.map(({fieldKey:e,value:t})=>({field_id:e,values:Array.isArray(t)?t.map(e=>({value:e})):[{value:t}]}))}}function v(e,t=!1){let{step:n}=e;if(n)return{id:n.id,title:n.name};if(t)return{id:m,title:m}}function y(e,t=!1){let{productList:n}=e;if(n){let e={};`title`in n&&n.title&&Object.assign(e,{title:n.title});let t=`items`in n?n.items:n;return Object.assign(e,{items:t.map(e=>({item_id:e.itemId,item_name:e.itemName,affiliation:e.affiliation,coupon:e.coupon,currency:e.currency,creative_name:e.creativeName,creative_slot:e.creativeSlot,discount:E(e.discount),index:E(e.index),item_brand:e.itemBrand,item_category:e.itemCategory,item_category2:e.itemCategory2,item_category3:e.itemCategory3,item_category4:e.itemCategory4,item_category5:e.itemCategory5,item_list_id:e.itemListId,item_list_name:e.itemListName,item_variant:e.itemVariant,location_id:e.locationId,price:E(e.price),promotion_id:e.promotionId,promotion_name:e.promotionName,quantity:E(e.quantity),in_stock:e.inStock}))}),e}if(t)return{items:[]}}function b(e,t=!1){let{order:n}=e;if(n){let e={id:n.id};return n.checkoutToken&&(e.checkout_token=n.checkoutToken),n.cartToken&&(e.cart_token=n.cartToken),n.customerId&&(e.customer_id=n.customerId),e}if(t)return{id:m}}function x(e,t=!1){let{experience:n}=e;if(n)return{id:n.id,title:n.title};if(t)return{id:m,title:m}}function S(e,t=!1){let{exception:n}=e;if(n)return typeof n==`string`?{reason:n}:{reason:n.systemMessage};if(t)return{reason:m}}function C(e){let{form:t}=e;return t?{id:t.id,title:t.title}:{id:m,title:m}}function w(e){let{modal:t}=e;return t?{id:t.id,title:t.title}:{id:m,title:m}}function T(e,t=300){let n;return function(...r){clearTimeout(n),n=setTimeout(()=>e.apply(this,r),t)}}function E(e){if(typeof e==`number`)return e;if(typeof e!=`string`)return;let t=parseFloat(e);if(!isNaN(t))return t}function D(){if(!(0,a.supportsDocument)()||!(0,a.supportsCookies)())return null;let e=document.cookie?document.cookie.split(`;`):[];for(let t of e){let e=t.trim();if(e.startsWith(`_ga=`)){let t=e.substring(4).split(`.`);if(t.length>2)return t.slice(2).join(`.`)}}}function ee(e){let a=[];return e.trackErrors&&a.push((0,r.ErrorTrackingPlugin)()),e.trackVitals&&a.push((0,i.WebVitalsPlugin)()),e.trackPerformance&&a.push((0,n.PerformanceNavigationTimingPlugin)()),(e.trackButtonClickAllowList||e.trackButtonClickFilter)&&a.push((0,t.ButtonClickTrackingPlugin)()),a}function te(n){n.trackActivity&&!n.trackActivityCallback&&(0,e.enableActivityTracking)({minimumVisitLength:30,heartbeatDelay:10}),n.trackActivity&&n.trackActivityCallback&&(0,e.enableActivityTrackingCallback)({minimumVisitLength:30,heartbeatDelay:10,callback:n.trackActivityCallback}),(n.trackButtonClickAllowList||n.trackButtonClickFilter)&&(0,t.enableButtonClickTracking)({filter:n.trackButtonClickAllowList?{allowlist:n.trackButtonClickAllowList}:n.trackButtonClickFilter}),n.trackErrors&&(0,r.enableErrorTracking)()}function ne({organizationId:t,projectId:n,cvlyX:r,deployment:i,collectorUrl:a=`evnts.pckd.dev`,appId:o=`picked-analytics`,trackVitals:s=!1,trackPerformance:c=!1,trackWebPage:l=!0,trackSessions:u=!0,trackBrowser:d=!0,trackActivity:f=!1,trackErrors:p=!1,trackActivityCallback:m,trackButtonClickAllowList:h}){let g={trackVitals:s,trackErrors:p,trackActivity:f,trackPerformance:c,trackActivityCallback:m,trackButtonClickAllowList:h,deployment:i},_=(0,e.newTracker)(o,a,{appId:o,platform:`web`,keepalive:!0,contexts:{webPage:l,session:u,browser:d||!1},plugins:ee(g)});return re({organizationId:t,projectId:n,cvlyX:r,deployment:i}),te(g),_}function re({organizationId:t,projectId:n,cvlyX:r,deployment:i}){if(!t||!n)throw Error(`bindGlobalContext: Both organizationId and projectId are required`);let a=[];a.push(c(`app`,`1-0-0`,{organization_id:t,project_id:n}),c(`deployment`,`1-0-1`,{sha:i.sha,id:i.id,env:i.env,host:i.host})),r&&a.push(c(`cvly_x`,`1-0-1`,{vercel_deployment_id:r.vercelDeploymentId,vercel_env:r.vercelEnv,vercel_url:r.vercelUrl})),(0,e.addGlobalContexts)(a)}var ie=`app_close`;function ae(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(ie,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var oe=l(ie,ae),se=`app_initialize`;function ce(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(se,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var le=l(se,ce),ue=`app_load`;function de(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(ue,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var fe=l(ue,de),pe=`app_open`;function me(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(pe,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var he=l(pe,me),ge=`experience_load`;function _e(e,t){let n=p(e),r=h(e),i=x(e,!0),a=v(e);return s(ge,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`experience`,`1-0-1`,i),a?c(`step`,`1-0-0`,a):void 0],t)}var ve=l(ge,_e),ye=`feature_decide`;function be(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(ye,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var xe=l(ye,be),O=`step_complete`;function Se(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=_(e),l=g(e);return s(O,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),l&&c(`field_list`,`1-0-0`,l),o&&c(`response_list`,`1-0-0`,o),i&&c(`experience`,`1-0-1`,i)],t)}var Ce=l(O,Se),k=`step_enter`;function we(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=g(e);return s(k,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),o&&c(`field_list`,`1-0-0`,o),i&&c(`experience`,`1-0-1`,i)],t)}var Te=l(k,we),A=`step_submit`;function Ee(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=_(e),l=g(e);return s(A,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),l&&c(`field_list`,`1-0-0`,l),o&&c(`response_list`,`1-0-0`,o),i&&c(`experience`,`1-0-1`,i)],t)}var De=l(A,Ee),j=`step_submit_error`;function Oe(e,t){let n=p(e),r=h(e),i=S(e,!0),a=x(e),o=v(e,!0),l=g(e),u=_(e);return s(j,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`exception`,`1-0-0`,i),c(`step`,`1-0-0`,o),l&&c(`field_list`,`1-0-0`,l),u&&c(`response_list`,`1-0-0`,u),a&&c(`experience`,`1-0-1`,a)],t)}var ke=l(j,Oe),M=`step_submit_success`;function Ae(e,t){let n=p(e),r=h(e),i=x(e),a=v(e,!0),o=g(e),l=_(e);return s(M,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`step`,`1-0-0`,a),o&&c(`field_list`,`1-0-0`,o),l&&c(`response_list`,`1-0-0`,l),i&&c(`experience`,`1-0-1`,i)],t)}var je=l(M,Ae),N=`cart_add`;function P(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(N,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function Me(e,t){return P(e,t)}var Ne=l(N,P),Pe=`cart_remove`;function Fe(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(Pe,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function Ie(e,t){return Fe(e,t)}var Le=l(Pe,Fe),Re=`checkout_complete`;function ze(e,t){let n=p(e),r=h(e),i=y(e,!0),a=b(e,!0),o=x(e),l=v(e);return s(Re,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),c(`order`,`1-0-0`,a),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}function Be(e,t){return ze(e,t)}var Ve=l(Re,ze),He=`checkout_start`;function Ue(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(He,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function We(e,t){return Ue(e,t)}var Ge=l(He,Ue),Ke=`order_create`;function qe(e,t){let n=p(e),r=h(e),i=y(e,!0),a=b(e,!0),o=x(e),l=v(e);return s(Ke,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),c(`order`,`1-0-0`,a),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}function Je(e,t){return qe(e,t)}var Ye=l(Ke,qe),Xe=`product_list_view`;function Ze(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(Xe,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),o?c(`step`,`1-0-0`,o):void 0,a?c(`experience`,`1-0-1`,a):void 0],t)}function Qe(e,t){return Ze(e,t)}var $e=l(Xe,Ze),et=`product_select`;function tt(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(et,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var nt=l(et,tt),rt=`product_view_details`;function it(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(rt,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}function at(e,t){return it(e,t)}var ot=l(rt,it),st=`recommendation_present`;function ct(e,t){let n=p(e),r=h(e),i=x(e),a=v(e),o=y(e,!0);return s(st,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,o),i&&c(`experience`,`1-0-1`,i),a&&c(`step`,`1-0-0`,a)],t)}var lt=l(st,ct),ut=`search_results_list_view`;function dt(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(ut,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),o?c(`step`,`1-0-0`,o):void 0,a?c(`experience`,`1-0-1`,a):void 0],t)}var ft=l(ut,dt),pt=`waitlist_join`;function mt(e,t){let n=p(e),r=h(e),i=x(e),a=v(e),o=y(e);return s(pt,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,o?c(`product_list`,`2-0-1`,o):void 0],t)}var ht=l(pt,mt),gt=`wishlist_add`;function _t(e,t){let n=p(e),r=h(e),i=y(e,!0),a=x(e),o=v(e);return s(gt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`product_list`,`2-0-1`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var vt=l(gt,_t),yt=`field_validation_error`;function bt(e,t){let n=p(e),r=h(e),i=C(e),a=S(e,!0),o=x(e),l=v(e);return s(yt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`exception`,`1-0-0`,a),c(`form`,`1-0-0`,i),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}var xt=l(yt,bt),St=`form_submit`;function Ct(e,t){let n=p(e),r=h(e),i=C(e),a=x(e),o=v(e);return s(St,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`form`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var wt=l(St,Ct),Tt=`form_submit_error`;function Et(e,t){let n=p(e),r=h(e),i=C(e),a=S(e,!0),o=x(e),l=v(e);return s(Tt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`form`,`1-0-0`,i),c(`exception`,`1-0-0`,a),o&&c(`experience`,`1-0-1`,o),l&&c(`step`,`1-0-0`,l)],t)}var Dt=l(Tt,Et),Ot=`form_submit_success`;function kt(e,t){let n=p(e),r=h(e),i=C(e),a=x(e),o=v(e);return s(Ot,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`form`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var At=l(Ot,kt),jt=`identify`;function Mt(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(jt,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`session`,`1-0-4`,r),c(`feature_list`,`2-0-0`,n),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}function Nt(e,t){return Mt(e,t)}var Pt=l(jt,Mt),F=`lead_capture`;function Ft(e,t){let n=p(e),r=h(e),i=x(e),a=v(e);return s(F,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a&&c(`step`,`1-0-0`,a),i&&c(`experience`,`1-0-1`,i)],t)}var It=l(F,Ft),Lt=`modal_close`;function Rt(e,t){let n=p(e),r=h(e),i=w(e),a=x(e),o=v(e);return s(Lt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`modal`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var zt=l(Lt,Rt),Bt=`modal_open`;function Vt(e,t){let n=p(e),r=h(e),i=w(e),a=x(e),o=v(e);return s(Bt,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`modal`,`1-0-0`,i),a&&c(`experience`,`1-0-1`,a),o&&c(`step`,`1-0-0`,o)],t)}var Ht=l(Bt,Vt),Ut=`page_view`;function Wt(e,t){let n=p(e),r=h(e),i=x(e),a=v(e),o=y(e);return s(Ut,[c(`app`,`1-0-0`,{organization_id:e.organizationId,project_id:e.projectId}),c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,o?c(`product_list`,`2-0-1`,o):void 0],t)}function Gt(e,t){return Wt(e,t)}var Kt=l(Ut,Wt);function I(e){return e instanceof Element}function qt(e){return`data-picked-${e.replaceAll(`_`,`-`)}`}function L(e){let t=[`a`,`button`,`input`,`select`,`textarea`,`details`,`summary`,`label`,`form`,`fieldset`,`legend`,`optgroup`,`option`,`output`,`datalist`,`dialog`,`menu`,`menuitem`,`iframe`,`audio`,`video`,`embed`,`object`,`canvas`].join(`, `);return I(e)?e.matches(t)?e:e.closest(t):null}function R(e){if(e instanceof HTMLSelectElement){let t=e.selectedIndex||0;return e.options[t]?.text??``}return`innerText`in e&&typeof e.innerText==`string`?e.innerText:e.textContent}function z(e){let t=e.getAttribute(`aria-label`);if(t)return t;let n=e.getAttribute(`aria-labelledby`);if(n){let e=document.getElementById(n);if(e){let t=R(e);if(t)return t}}if(`id`in e&&e.id){let t=document.querySelector(`label[for="${e.id}"]`);if(t){let e=R(t);if(e)return e}}let r=e.parentElement;for(;r;){if(r.tagName.toLowerCase()===`label`){let e=R(r);if(e)return e}r=r.parentElement}if(e instanceof HTMLInputElement&&`labels`in e&&e.labels){let t=Array.from(e.labels).map(e=>R(e)).filter(Boolean).join(` `);if(t)return t}return`placeholder`in e&&typeof e.placeholder==`string`?e.placeholder:null}function Jt(e,t){if(!I(e))return null;let n=qt(t),r=e.closest(`[${n}]`);if(!r)return null;let i=r.getAttribute(n);return i?{element:r,customEventName:i}:null}var Yt=255;function B(e){return e?e.slice(0,Yt):null}var V=`click`;function Xt(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(V,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(V,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Zt=l(V,Xt);function Qt(e,t,n,r){let i=S(n.analyticsContext),a=x(n.analyticsContext),o=p(n.analyticsContext),l=g(n.analyticsContext),u=C(n.analyticsContext),d=w(n.analyticsContext),f=b(n.analyticsContext),m=y(n.analyticsContext),T=_(n.analyticsContext),E=h(n.analyticsContext),D=v(n.analyticsContext),ee={id:t.id||null,node_type:t.nodeName.toLowerCase(),label:B(z(t)),text:B(R(t))};return s(e,[c(`app`,`1-0-0`,{organization_id:n.analyticsContext.organizationId,project_id:n.analyticsContext.projectId}),c(`session`,`1-0-4`,E),c(`element`,`1-0-0`,ee),i?c(`exception`,`1-0-0`,i):void 0,a?c(`experience`,`1-0-1`,a):void 0,o?c(`feature_list`,`2-0-0`,o):void 0,l?c(`field_list`,`1-0-0`,l):void 0,u?c(`form`,`1-0-0`,u):void 0,d?c(`modal`,`1-0-0`,d):void 0,f?c(`order`,`1-0-0`,f):void 0,m?c(`product_list`,`2-0-1`,m):void 0,T?c(`response_list`,`1-0-0`,T):void 0,D?c(`step`,`1-0-0`,D):void 0],r)}function H(t,n,r){let i=Jt(n.event.target,t);if(!i)return;let{element:a,customEventName:o}=i;(0,e.trackSelfDescribingEvent)(Qt(o,a,n,r))}function $t(t,n,r){let i=S(t),a=x(t),o=p(t),l=g(t),u=t.form?C(t):void 0,d=t.modal?w(t):void 0,f=b(t),m=y(t),T=_(t),E=h(t),D=v(t);(0,e.trackSelfDescribingEvent)(s(n,[c(`app`,`1-0-0`,{organization_id:t.organizationId,project_id:t.projectId}),c(`session`,`1-0-4`,E),i?c(`exception`,`1-0-0`,i):void 0,a?c(`experience`,`1-0-1`,a):void 0,c(`feature_list`,`2-0-0`,o),l?c(`field_list`,`1-0-0`,l):void 0,u?c(`form`,`1-0-0`,u):void 0,d?c(`modal`,`1-0-0`,d):void 0,f?c(`order`,`1-0-0`,f):void 0,m?c(`product_list`,`2-0-1`,m):void 0,T?c(`response_list`,`1-0-0`,T):void 0,D?c(`step`,`1-0-0`,D):void 0],r))}var U=`rapid_scroll`;function en(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(U,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,{node_type:`unknown`})],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(U,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var tn=l(U,en),nn=100,rn=100,an=300,on=0,sn=0,cn=T((e,t)=>{tn(e,t),H(`rapid_scroll`,e,t)},an);function ln(e,t){let n=e.event.target||document.documentElement;if(!(n instanceof HTMLElement))return;let r=n.scrollTop,i=Date.now()-sn;Math.abs(r-on)>nn&&i<rn&&cn(e,t),on=r,sn=Date.now()}var un=u(`scroll`,ln,!0),W=`rapid_click`;function dn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(W,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(W,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var fn=l(W,dn),G=0,pn=0,mn=3,hn=500;function gn(e,t){let n=new Date().getTime();n-pn<hn?G++:G=1,pn=n,G>=mn&&(fn(e,t),H(`rapid_click`,e,t),G=0)}var _n=u(`click`,gn),K=`right_click`;function vn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(K,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0]);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(K,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var yn=l(K,vn);function bn(e,t){yn(e,t),H(`right_click`,e,t)}var xn=u(`contextmenu`,bn),Sn=`mouse_shake`;function Cn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Sn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var wn=l(Sn,Cn),Tn=5,En=500,Dn=500,On={x:0,y:0},q=[],kn=0,An=T((e,t)=>{wn(e,t),H(`mouse_shake`,e,t)},En);function jn(e,t){let n=Date.now(),r=e.event.clientX-On.x,i=Math.sign(r);n-kn>Dn&&(q=[]),i!==0&&(q.length===0||q.at(-1)!==i)&&q.push(i),On={x:e.event.clientX,y:e.event.clientY},q.length>=Tn&&(An(e,t),q=[]),kn=n}var Mn=u(`mousemove`,jn),Nn=`page_visible`;function Pn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Nn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Fn=l(Nn,Pn),In=`page_hidden`;function Ln(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(In,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Rn=l(In,Ln);function zn(e,t){if(document.visibilityState===`visible`){Fn(e,t);return}Rn(e,t)}var Bn=d(`visibilitychange`,zn),J=`backspace`;function Vn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(J,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,{node_type:`unknown`}),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(J,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),c(`element`,`1-0-0`,u),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Hn=l(J,Vn);function Un(e,t){e.event.key===`Backspace`&&Hn(e,t)}var Wn=u(`keydown`,Un),Gn=`page_hide`;function Kn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Gn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var qn=l(Gn,Kn);function Jn(e,t){qn(e,t)}var Yn=f(`pagehide`,Jn),Xn=`page_show`;function Zn(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(Xn,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var Qn=l(Xn,Zn);function $n(e,t){Qn(e,t)}var er=f(`pageshow`,$n),tr=`offline`;function nr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(tr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var rr=l(tr,nr);function ir(e,t){rr(e,t)}var ar=f(`offline`,ir),Y=`scroll`;function or(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(Y,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(Y,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var sr=l(Y,or),cr=u(`scroll`,T((e,t)=>{sr(e,t),H(`scroll`,e,t)},500),!0),lr=`online`;function ur(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(lr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var dr=l(lr,ur);function fr(e,t){dr(e,t)}var pr=f(`online`,fr),mr=`resize`;function hr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(mr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var gr=l(mr,hr),X=0,_r=f(`resize`,T((e,t)=>{let n=window.innerWidth;n===X?`ontouchstart`in window||gr(e,t):(gr(e,t),X=n),X=n},300)),vr=`unload`;function yr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext);return s(vr,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t)}var br=l(vr,yr);function xr(e,t){br(e,t)}var Sr=f(`unload`,xr);function Cr(e,t){Zt(e,t),H(`click`,e,t)}var wr=u(`click`,Cr),Z=`paste`;function Tr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(Z,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(Z,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var Er=l(Z,Tr);function Dr(e,t){Er(e,t)}var Or=u(`paste`,Dr),Q=`copy`;function kr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s(Q,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s(Q,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var Ar=l(Q,kr);function jr(e,t){Ar(e,t)}var Mr=u(`copy`,jr),$=`drag`;function Nr(e,t){let n=p(e.analyticsContext),r=h(e.analyticsContext),i=x(e.analyticsContext),a=v(e.analyticsContext),o=e.event.target||document.activeElement||e.event.currentTarget;if(!I(o))return s($,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0],t);let l=L(o)||o,u={id:l.id||null,node_type:l.nodeName.toLowerCase(),label:B(z(l)),text:B(R(l))};return s($,[c(`feature_list`,`2-0-0`,n),c(`session`,`1-0-4`,r),a?c(`step`,`1-0-0`,a):void 0,i?c(`experience`,`1-0-1`,i):void 0,c(`element`,`1-0-0`,u)],t)}var Pr=l($,Nr);function Fr(e,t){let n=e.event.currentTarget;if(!n||!(n instanceof HTMLElement))return;function r(t){Fr({event:t,analyticsContext:e.analyticsContext})}n.removeEventListener(`drag`,r),n.addEventListener(`dragend`,()=>Ir(n,()=>e.analyticsContext)),Pr(e,t),H(`drag`,e,t)}var Ir=u(`drag`,Fr);function Lr(e,t){t&&(wr(t,e),_n(t,e),xn(t,e),Mr(t,e),Or(t,e),Ir(t,e),Wn(t,e),cr(t,e),un(t,e),Mn(t,e))}function Rr(e){Bn(e),Yn(e),er(e),ar(e),pr(e),_r(e),Sr(e)}Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return Be}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return Ce}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return nt}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Ye}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return Je}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return Ne}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return le}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return ve}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return oe}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return ke}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return Ie}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return Le}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return We}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return De}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return ot}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return $e}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return he}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return xe}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return fe}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return vt}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return lt}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return xt}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return wt}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return $t}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return Ve}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return Ge}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return zt}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return At}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return ne}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Kt}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return It}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return ht}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Qe}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return at}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return ft}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return Te}});