@snowplow/snowtype-core 0.2.6 → 0.2.7

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 (2) hide show
  1. package/dist/index.js +391 -322
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var sl=Object.create;var U=Object.defineProperty;var ul=Object.getOwnPropertyDescriptor;var cl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty;var O=(l,n)=>()=>(n||l((n={exports:{}}).exports,n),n.exports),yl=(l,n)=>{for(var i in n)U(l,i,{get:n[i],enumerable:!0})},sn=(l,n,i,m)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of cl(n))!fl.call(l,t)&&t!==i&&U(l,t,{get:()=>n[t],enumerable:!(m=ul(n,t))||m.enumerable});return l};var v=(l,n,i)=>(i=l!=null?sl(ml(l)):{},sn(n||!l||!l.__esModule?U(i,"default",{value:l,enumerable:!0}):i,l)),pl=l=>sn(U({},"__esModule",{value:!0}),l);var Ln=O((xe,Tn)=>{"use strict";Tn.exports={id:{language:"javascript",tracker:"@snowplow/browser-tracker"},1:function(l,n,i,m,t){return`import Ajv from "ajv-draft-04";
1
+ "use strict";var sl=Object.create;var F=Object.defineProperty;var ul=Object.getOwnPropertyDescriptor;var cl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty;var O=(l,n)=>()=>(n||l((n={exports:{}}).exports,n),n.exports),yl=(l,n)=>{for(var i in n)F(l,i,{get:n[i],enumerable:!0})},sn=(l,n,i,m)=>{if(n&&typeof n=="object"||typeof n=="function")for(let t of cl(n))!fl.call(l,t)&&t!==i&&F(l,t,{get:()=>n[t],enumerable:!(m=ul(n,t))||m.enumerable});return l};var v=(l,n,i)=>(i=l!=null?sl(ml(l)):{},sn(n||!l||!l.__esModule?F(i,"default",{value:l,enumerable:!0}):i,l)),gl=l=>sn(F({},"__esModule",{value:!0}),l);var Ln=O((xe,jn)=>{"use strict";jn.exports={id:{language:"javascript",tracker:"@snowplow/browser-tracker"},1:function(l,n,i,m,t){return`import Ajv from "ajv-draft-04";
2
2
  import addFormats from "ajv-formats";
3
3
  import { schemasObject } from "./validations";
4
4
  `},3:function(l,n,i,m,t){return'import * as Ecom from "@snowplow/browser-plugin-snowplow-ecommerce";'},5:function(l,n,i,m,t){return`/**
@@ -7,7 +7,7 @@ import { schemasObject } from "./validations";
7
7
  export function createEventSpecification(eventSpecification){
8
8
  return {
9
9
  schema:
10
- 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0',
10
+ 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2',
11
11
  data: eventSpecification,
12
12
  }
13
13
  }
@@ -34,19 +34,19 @@ function validateSchema(sdj) {
34
34
  defaultValidationErrorHandler(ajv.errors)
35
35
  }
36
36
  }
37
- `},9:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`/**
38
- * Track a Snowplow event for `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:49,column:30},end:{line:49,column:42}}}):e))+`.
39
- * `+r((e=(e=c(i,"description")||(n!=null?c(n,"description"):n))!=null?e:o,typeof e===u?e.call(s,{name:"description",hash:{},data:t,loc:{start:{line:50,column:3},end:{line:50,column:18}}}):e))+`
40
- * @param { `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:51,column:12},end:{line:51,column:24}}}):e))+" & Timestamp & Context } "+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:51,column:49},end:{line:51,column:70}}}))+" - Attributes for "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:51,column:88},end:{line:51,column:100}}}):e))+`.
37
+ `},9:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`/**
38
+ * Track a Snowplow event for `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:49,column:30},end:{line:49,column:42}}}):e))+`.
39
+ * `+r((e=(e=c(i,"description")||(n!=null?c(n,"description"):n))!=null?e:a,typeof e===u?e.call(s,{name:"description",hash:{},data:t,loc:{start:{line:50,column:3},end:{line:50,column:18}}}):e))+`
40
+ * @param { `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:51,column:12},end:{line:51,column:24}}}):e))+" & Timestamp & Context } "+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:51,column:49},end:{line:51,column:70}}}))+" - Attributes for "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:51,column:88},end:{line:51,column:100}}}):e))+`.
41
41
  * @param {string[]} [trackers] - Tracker names to send the event to.
42
42
  */
43
- export function track`+r((e=(e=c(i,"functionName")||(n!=null?c(n,"functionName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"functionName",hash:{},data:t,loc:{start:{line:54,column:21},end:{line:54,column:37}}}):e))+"("+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:54,column:38},end:{line:54,column:59}}}))+`, trackers){
44
- const { context, timestamp, ...data } = `+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:55,column:42},end:{line:55,column:63}}}))+`;
43
+ export function track`+r((e=(e=c(i,"functionName")||(n!=null?c(n,"functionName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"functionName",hash:{},data:t,loc:{start:{line:54,column:21},end:{line:54,column:37}}}):e))+"("+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:54,column:38},end:{line:54,column:59}}}))+`, trackers){
44
+ const { context, timestamp, ...data } = `+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:55,column:42},end:{line:55,column:63}}}))+`;
45
45
  const event = {
46
- schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:57,column:13},end:{line:57,column:24}}}):e))+`',
46
+ schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:57,column:13},end:{line:57,column:24}}}):e))+`',
47
47
  data
48
48
  };
49
- `+((a=c(i,"if").call(s,n!=null?c(n,"validations"):n,{name:"if",hash:{},fn:l.program(10,t,0),inverse:l.noop,data:t,loc:{start:{line:60,column:2},end:{line:60,column:90}}}))!=null?a:"")+`
49
+ `+((o=c(i,"if").call(s,n!=null?c(n,"validations"):n,{name:"if",hash:{},fn:l.program(10,t,0),inverse:l.noop,data:t,loc:{start:{line:60,column:2},end:{line:60,column:90}}}))!=null?o:"")+`
50
50
  trackSelfDescribingEvent({
51
51
  event,
52
52
  context,
@@ -55,78 +55,83 @@ export function track`+r((e=(e=c(i,"functionName")||(n!=null?c(n,"functionName")
55
55
  }
56
56
 
57
57
  /**
58
- * Creates a Snowplow `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:69,column:22},end:{line:69,column:34}}}):e))+` entity.
59
- * @param { `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:70,column:12},end:{line:70,column:24}}}):e))+" } "+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:70,column:27},end:{line:70,column:48}}}))+" - Attributes for "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:70,column:66},end:{line:70,column:78}}}):e))+`.
58
+ * Creates a Snowplow `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:69,column:22},end:{line:69,column:34}}}):e))+` entity.
59
+ * @param { `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:70,column:12},end:{line:70,column:24}}}):e))+" } "+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:70,column:27},end:{line:70,column:48}}}))+" - Attributes for "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:70,column:66},end:{line:70,column:78}}}):e))+`.
60
60
  */
61
- export function create`+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:72,column:22},end:{line:72,column:34}}}):e))+"("+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:72,column:35},end:{line:72,column:56}}}))+`){
61
+ export function create`+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:72,column:22},end:{line:72,column:34}}}):e))+"("+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:72,column:35},end:{line:72,column:56}}}))+`){
62
62
  return {
63
- schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:74,column:13},end:{line:74,column:24}}}):e))+`',
64
- data: `+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:75,column:10},end:{line:75,column:31}}}))+`
63
+ schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:74,column:13},end:{line:74,column:24}}}):e))+`',
64
+ data: `+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:75,column:10},end:{line:75,column:31}}}))+`
65
65
  }
66
66
  }
67
- `},10:function(l,n,i,m,t){return"[event].concat(context || []).forEach(s => validateSchema(s));"},12:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.lambda,o=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t,loc:{start:{line:81,column:0},end:{line:88,column:7}}}))!=null?a:"")+`/**
68
- * Tracks a `+o(s(n!=null?r(n,"name"):n,n))+` event specification.
69
- * `+o((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:91,column:3},end:{line:91,column:46}}}))+`
70
- * @param { `+o(s(n!=null?r(n,"event"):n,n))+" & Timestamp"+((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.noop,data:t,loc:{start:{line:92,column:38},end:{line:92,column:90}}}))!=null?a:"")+" } "+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:92,column:93},end:{line:92,column:115}}}))+" - Attributes for "+o(s(n!=null?r(n,"name"):n,n))+` event specification.
67
+ `},10:function(l,n,i,m,t){return"[event].concat(context || []).forEach(s => validateSchema(s));"},12:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.lambda,a=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t,loc:{start:{line:81,column:0},end:{line:88,column:7}}}))!=null?o:"")+`/**
68
+ * Tracks a `+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
69
+ * `+a((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:91,column:3},end:{line:91,column:46}}}))+`
70
+ * @param { `+a(s(n!=null?r(n,"event"):n,n))+" & Timestamp"+((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.noop,data:t,loc:{start:{line:92,column:38},end:{line:92,column:99}}}))!=null?o:"")+" } "+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:92,column:102},end:{line:92,column:133}}}))+" - Attributes for "+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
71
71
  * @param {string[]} [trackers] - Tracker names to send the event specification to.
72
72
  */
73
- export function track`+o(s(n!=null?r(n,"name"):n,n))+"("+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:95,column:35},end:{line:95,column:57}}}))+`, trackers){
74
- const eventSpecificationContext = createEventSpecification({ id: '`+o(s(n!=null?r(n,"id"):n,n))+`' });
73
+ export function track`+a(s(n!=null?r(n,"generatedName"):n,n))+"("+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:95,column:44},end:{line:95,column:75}}}))+`, trackers){
74
+ const eventSpecificationContext = createEventSpecification({
75
+ id: '`+a(s(n!=null?r(n,"id"):n,n))+`',
76
+ name: '`+a(s(n!=null?r(n,"name"):n,n))+`',
77
+ data_product_id: '`+a(s(n!=null?r(n,"dataProductId"):n,n))+`',
78
+ data_product_name: '`+a(s(n!=null?r(n,"dataProductName"):n,n))+`'
79
+ });
75
80
 
76
- const context = Array.isArray(`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:98,column:32},end:{line:98,column:54}}}))+`.context)
77
- ? [...`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:99,column:10},end:{line:99,column:32}}}))+`.context, eventSpecificationContext]
81
+ const context = Array.isArray(`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:103,column:32},end:{line:103,column:63}}}))+`.context)
82
+ ? [...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:104,column:10},end:{line:104,column:41}}}))+`.context, eventSpecificationContext]
78
83
  : [eventSpecificationContext];
79
84
 
80
- const modified`+o(s(n!=null?r(n,"name"):n,n))+` = {
81
- ...`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:103,column:7},end:{line:103,column:29}}}))+`,
85
+ const modified`+a(s(n!=null?r(n,"generatedName"):n,n))+` = {
86
+ ...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:108,column:7},end:{line:108,column:38}}}))+`,
82
87
  context,
83
88
  };
84
89
 
85
- track`+o(s(n!=null?r(n,"event"):n,n))+"(modified"+o(s(n!=null?r(n,"name"):n,n))+`, trackers);
90
+ track`+a(s(n!=null?r(n,"event"):n,n))+"(modified"+a(s(n!=null?r(n,"generatedName"):n,n))+`, trackers);
86
91
  }
87
- `},13:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`/**
88
- * Typedef for `+s(e(n!=null?o(n,"name"):n,n))+` event specification contexts.
89
- * @typedef {object} `+s(e(n!=null?o(n,"name"):n,n))+`Contexts
90
- * @property {(`+((a=o(i,"join").call(n??(l.nullContext||{}),n!=null?o(n,"entities"):n," | ","Context",{name:"join",hash:{},fn:l.program(14,t,0),inverse:l.noop,data:t,loc:{start:{line:85,column:15},end:{line:85,column:63}}}))!=null?a:"")+")[]} [context] Contexts to include in the "+s(e(n!=null?o(n,"name"):n,n))+` event specification.
92
+ `},13:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`/**
93
+ * Typedef for `+s(e(n!=null?a(n,"generatedName"):n,n))+` event specification contexts.
94
+ * @typedef {object} `+s(e(n!=null?a(n,"generatedName"):n,n))+`Contexts
95
+ * @property {(`+((o=a(i,"join").call(n??(l.nullContext||{}),n!=null?a(n,"entities"):n," | ","Context",{name:"join",hash:{},fn:l.program(14,t,0),inverse:l.noop,data:t,loc:{start:{line:85,column:15},end:{line:85,column:63}}}))!=null?o:"")+")[]} [context] Contexts to include in the "+s(e(n!=null?a(n,"generatedName"):n,n))+` event specification.
91
96
  */
92
97
 
93
- `},14:function(l,n,i,m,t){return""},16:function(l,n,i,m,t){var a=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return" & "+l.escapeExpression(l.lambda(n!=null?a(n,"name"):n,n))+"Contexts"},18:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.lambda,o=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t,loc:{start:{line:111,column:0},end:{line:118,column:7}}}))!=null?a:"")+`/**
94
- * Tracks a `+o(s(n!=null?r(n,"name"):n,n))+` event specification.
95
- * `+o((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:121,column:3},end:{line:121,column:46}}}))+`
96
- * @param { `+o((r(i,"ecomFunctionArgument")||n&&r(n,"ecomFunctionArgument")||u).call(e,n!=null?r(n,"event"):n,{name:"ecomFunctionArgument",hash:{},data:t,loc:{start:{line:122,column:12},end:{line:122,column:47}}}))+" "+((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(19,t,0),inverse:l.program(21,t,0),data:t,loc:{start:{line:122,column:48},end:{line:122,column:144}}}))!=null?a:"")+" } "+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:122,column:147},end:{line:122,column:169}}}))+" - Attributes for "+o(s(n!=null?r(n,"name"):n,n))+` event specification.
98
+ `},14:function(l,n,i,m,t){return""},16:function(l,n,i,m,t){var o=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return" & "+l.escapeExpression(l.lambda(n!=null?o(n,"generatedName"):n,n))+"Contexts"},18:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.lambda,a=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t,loc:{start:{line:116,column:0},end:{line:123,column:7}}}))!=null?o:"")+`/**
99
+ * Tracks a `+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
100
+ * `+a((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:126,column:3},end:{line:126,column:46}}}))+`
101
+ * @param { `+a((r(i,"ecomFunctionArgument")||n&&r(n,"ecomFunctionArgument")||u).call(e,n!=null?r(n,"event"):n,{name:"ecomFunctionArgument",hash:{},data:t,loc:{start:{line:127,column:12},end:{line:127,column:47}}}))+" "+((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(19,t,0),inverse:l.program(21,t,0),data:t,loc:{start:{line:127,column:48},end:{line:127,column:153}}}))!=null?o:"")+" } "+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:127,column:156},end:{line:127,column:187}}}))+" - Attributes for "+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
97
102
  * @param {string[]} [trackers] - Tracker names to send the event specification to.
98
103
  */
99
- export function track`+o(s(n!=null?r(n,"name"):n,n))+"("+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:125,column:35},end:{line:125,column:57}}}))+`, trackers){
100
- const eventSpecificationContext = createEventSpecification({ id: '`+o(s(n!=null?r(n,"id"):n,n))+`' });
104
+ export function track`+a(s(n!=null?r(n,"generatedName"):n,n))+"("+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:130,column:44},end:{line:130,column:75}}}))+`, trackers){
105
+ const eventSpecificationContext = createEventSpecification({ id: '`+a(s(n!=null?r(n,"id"):n,n))+`' });
101
106
 
102
- const context = Array.isArray(`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:128,column:32},end:{line:128,column:54}}}))+`.context)
103
- ? [...`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:129,column:10},end:{line:129,column:32}}}))+`.context, eventSpecificationContext]
107
+ const context = Array.isArray(`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:133,column:32},end:{line:133,column:63}}}))+`.context)
108
+ ? [...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:134,column:10},end:{line:134,column:41}}}))+`.context, eventSpecificationContext]
104
109
  : [eventSpecificationContext];
105
110
 
106
- const modified`+o(s(n!=null?r(n,"name"):n,n))+` = {
107
- ...`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:133,column:7},end:{line:133,column:29}}}))+`,
111
+ const modified`+a(s(n!=null?r(n,"generatedName"):n,n))+` = {
112
+ ...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:138,column:7},end:{line:138,column:38}}}))+`,
108
113
  context,
109
114
  };
110
115
 
111
- `+o((r(i,"ecomFunction")||n&&r(n,"ecomFunction")||u).call(e,n!=null?r(n,"event"):n,{name:"ecomFunction",hash:{},data:t,loc:{start:{line:137,column:2},end:{line:137,column:29}}}))+"(modified"+o(s(n!=null?r(n,"name"):n,n))+`, trackers);
112
- }
113
- `},19:function(l,n,i,m,t){var a=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return"& "+l.escapeExpression(l.lambda(n!=null?a(n,"name"):n,n))+"Contexts"},21:function(l,n,i,m,t){return"& Ecom.CommonEcommerceEventProperties"},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var a,e,s,o=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]},c=`import { trackSelfDescribingEvent } from '@snowplow/browser-tracker';
114
- `+((a=r(i,"if").call(o,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:2,column:0},end:{line:6,column:7}}}))!=null?a:"")+((a=r(i,"if").call(o,(a=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(a,"length"):a,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:7,column:0},end:{line:7,column:113}}}))!=null?a:"")+`
115
- `+((a=r(i,"if").call(o,(r(i,"or")||n&&r(n,"or")||u).call(o,(a=n!=null?r(n,"eventSpecifications"):n)!=null?r(a,"length"):a,(a=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(a,"length"):a,{name:"or",hash:{},data:t,loc:{start:{line:8,column:6},end:{line:8,column:68}}}),{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:8,column:0},end:{line:19,column:7}}}))!=null?a:"")+`
116
- `+((a=r(i,"if").call(o,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:21,column:0},end:{line:45,column:7}}}))!=null?a:"")+`
117
- `;return a=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:u,s={name:"type",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:47,column:0},end:{line:78,column:9}}},typeof e=="function"?e.call(o,s):e),r(i,"type")||(a=l.hooks.blockHelperMissing.call(n,a,s)),a!=null&&(c+=a),c+`
118
- `+((a=r(i,"each").call(o,n!=null?r(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:80,column:0},end:{line:109,column:9}}}))!=null?a:"")+((a=r(i,"each").call(o,n!=null?r(n,"ecomEventSpecifications"):n,{name:"each",hash:{},fn:l.program(18,t,0),inverse:l.noop,data:t,loc:{start:{line:110,column:0},end:{line:139,column:9}}}))!=null?a:"")},useData:!0}});var Nn=O((be,Cn)=>{"use strict";Cn.exports={id:{language:"javascript",tracker:"@snowplow/javascript-tracker"},1:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,o="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
119
- * Track a Snowplow event for `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:3,column:30},end:{line:3,column:42}}}):a))+`.
120
- * `+u((a=(a=r(i,"description")||(n!=null?r(n,"description"):n))!=null?a:s,typeof a===o?a.call(e,{name:"description",hash:{},data:t,loc:{start:{line:4,column:3},end:{line:4,column:18}}}):a))+`
121
- * @param { `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:5,column:12},end:{line:5,column:24}}}):a))+" & Timestamp & Context } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:5,column:49},end:{line:5,column:70}}}))+" - Attributes for "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:5,column:88},end:{line:5,column:100}}}):a))+`.
116
+ `+a((r(i,"ecomFunction")||n&&r(n,"ecomFunction")||u).call(e,n!=null?r(n,"event"):n,{name:"ecomFunction",hash:{},data:t,loc:{start:{line:142,column:2},end:{line:142,column:29}}}))+"(modified"+a(s(n!=null?r(n,"generatedName"):n,n))+`, trackers);
117
+ }
118
+ `},19:function(l,n,i,m,t){var o=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return"& "+l.escapeExpression(l.lambda(n!=null?o(n,"generatedName"):n,n))+"Contexts"},21:function(l,n,i,m,t){return"& Ecom.CommonEcommerceEventProperties"},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var o,e,s,a=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]},c=`import { trackSelfDescribingEvent } from '@snowplow/browser-tracker';
119
+ `+((o=r(i,"if").call(a,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:2,column:0},end:{line:6,column:7}}}))!=null?o:"")+((o=r(i,"if").call(a,(o=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(o,"length"):o,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:7,column:0},end:{line:7,column:113}}}))!=null?o:"")+`
120
+ `+((o=r(i,"if").call(a,(r(i,"or")||n&&r(n,"or")||u).call(a,(o=n!=null?r(n,"eventSpecifications"):n)!=null?r(o,"length"):o,(o=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(o,"length"):o,{name:"or",hash:{},data:t,loc:{start:{line:8,column:6},end:{line:8,column:68}}}),{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:8,column:0},end:{line:19,column:7}}}))!=null?o:"")+`
121
+ `+((o=r(i,"if").call(a,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:21,column:0},end:{line:45,column:7}}}))!=null?o:"")+`
122
+ `;return o=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:u,s={name:"type",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:47,column:0},end:{line:78,column:9}}},typeof e=="function"?e.call(a,s):e),r(i,"type")||(o=l.hooks.blockHelperMissing.call(n,o,s)),o!=null&&(c+=o),c+`
123
+ `+((o=r(i,"each").call(a,n!=null?r(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:80,column:0},end:{line:114,column:9}}}))!=null?o:"")+((o=r(i,"each").call(a,n!=null?r(n,"ecomEventSpecifications"):n,{name:"each",hash:{},fn:l.program(18,t,0),inverse:l.noop,data:t,loc:{start:{line:115,column:0},end:{line:144,column:9}}}))!=null?o:"")},useData:!0}});var Cn=O((Pe,Tn)=>{"use strict";Tn.exports={id:{language:"javascript",tracker:"@snowplow/javascript-tracker"},1:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,a="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
124
+ * Track a Snowplow event for `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:3,column:30},end:{line:3,column:42}}}):o))+`.
125
+ * `+u((o=(o=r(i,"description")||(n!=null?r(n,"description"):n))!=null?o:s,typeof o===a?o.call(e,{name:"description",hash:{},data:t,loc:{start:{line:4,column:3},end:{line:4,column:18}}}):o))+`
126
+ * @param { `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:5,column:12},end:{line:5,column:24}}}):o))+" & Timestamp & Context } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:5,column:49},end:{line:5,column:70}}}))+" - Attributes for "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:5,column:88},end:{line:5,column:100}}}):o))+`.
122
127
  * @param {string[]} [trackers] - Tracker names to send the event to.
123
128
  */
124
- function track`+u((a=(a=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:8,column:14},end:{line:8,column:30}}}):a))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:8,column:31},end:{line:8,column:52}}}))+`, trackers){
129
+ function track`+u((o=(o=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:8,column:14},end:{line:8,column:30}}}):o))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:8,column:31},end:{line:8,column:52}}}))+`, trackers){
125
130
  const trackerNames = (trackers && trackers.length) ? ':' + trackers.join(';') : '';
126
131
  const { context, timestamp, ...data } = `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:10,column:42},end:{line:10,column:63}}}))+`;
127
132
  window.snowplow('trackSelfDescribingEvent' + trackerNames, {
128
133
  event: {
129
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:13,column:15},end:{line:13,column:26}}}):a))+`',
134
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:13,column:15},end:{line:13,column:26}}}):o))+`',
130
135
  data
131
136
  },
132
137
  context,
@@ -135,114 +140,146 @@ function track`+u((a=(a=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=n
135
140
  }
136
141
 
137
142
  /**
138
- * Creates a Snowplow `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:22,column:22},end:{line:22,column:34}}}):a))+` entity.
139
- * @param { `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:23,column:12},end:{line:23,column:24}}}):a))+" } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:23,column:27},end:{line:23,column:48}}}))+" - Attributes for "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:23,column:66},end:{line:23,column:78}}}):a))+`.
143
+ * Creates a Snowplow `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:22,column:22},end:{line:22,column:34}}}):o))+` entity.
144
+ * @param { `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:23,column:12},end:{line:23,column:24}}}):o))+" } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:23,column:27},end:{line:23,column:48}}}))+" - Attributes for "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:23,column:66},end:{line:23,column:78}}}):o))+`.
140
145
  */
141
- function create`+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:25,column:15},end:{line:25,column:27}}}):a))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:25,column:28},end:{line:25,column:49}}}))+`){
146
+ function create`+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:25,column:15},end:{line:25,column:27}}}):o))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:25,column:28},end:{line:25,column:49}}}))+`){
142
147
  return {
143
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:27,column:13},end:{line:27,column:24}}}):a))+`',
148
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:27,column:13},end:{line:27,column:24}}}):o))+`',
144
149
  data: `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:28,column:10},end:{line:28,column:31}}}))+`
145
150
  }
146
151
  }
147
- `},3:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.lambda,o=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(4,t,0),inverse:l.noop,data:t,loc:{start:{line:34,column:0},end:{line:41,column:7}}}))!=null?a:"")+`/**
148
- * Tracks a `+o(s(n!=null?r(n,"name"):n,n))+` event specification.
149
- * `+o((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:44,column:3},end:{line:44,column:46}}}))+`
150
- * @param { `+o(s(n!=null?r(n,"event"):n,n))+" & Timestamp"+((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:45,column:38},end:{line:45,column:91}}}))!=null?a:"")+" } "+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:45,column:94},end:{line:45,column:116}}}))+" - Attributes for "+o(s(n!=null?r(n,"name"):n,n))+` event specification.
152
+ `},3:function(l,n,i,m,t){return`/**
153
+ * Creates a Snowplow Event Specification entity.
154
+ */
155
+ export function createEventSpecification(eventSpecification){
156
+ return {
157
+ schema:
158
+ 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2',
159
+ data: eventSpecification,
160
+ }
161
+ }
162
+ `},5:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.lambda,a=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:47,column:0},end:{line:54,column:7}}}))!=null?o:"")+`/**
163
+ * Tracks a `+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
164
+ * `+a((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:57,column:3},end:{line:57,column:46}}}))+`
165
+ * @param { `+a(s(n!=null?r(n,"event"):n,n))+" & Timestamp"+((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:58,column:38},end:{line:58,column:91}}}))!=null?o:"")+" } "+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:58,column:94},end:{line:58,column:125}}}))+" - Attributes for "+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
151
166
  * @param {string[]} [trackers] - Tracker names to send the event specification to.
152
167
  */
153
- function track`+o(s(n!=null?r(n,"name"):n,n))+"("+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:48,column:28},end:{line:48,column:50}}}))+`, trackers){
154
- track`+o(s(n!=null?r(n,"event"):n,n))+"("+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:49,column:22},end:{line:49,column:44}}}))+`, trackers);
168
+ function track`+a(s(n!=null?r(n,"generatedName"):n,n))+"("+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:61,column:37},end:{line:61,column:68}}}))+`, trackers){
169
+ const eventSpecificationContext = createEventSpecification({
170
+ id: '`+a(s(n!=null?r(n,"id"):n,n))+`',
171
+ name: '`+a(s(n!=null?r(n,"name"):n,n))+`',
172
+ data_product_id: '`+a(s(n!=null?r(n,"dataProductId"):n,n))+`',
173
+ data_product_name: '`+a(s(n!=null?r(n,"dataProductName"):n,n))+`'
174
+ });
175
+
176
+ const context = Array.isArray(`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:69,column:32},end:{line:69,column:63}}}))+`.context)
177
+ ? [...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:70,column:10},end:{line:70,column:41}}}))+`.context, eventSpecificationContext]
178
+ : [eventSpecificationContext];
179
+
180
+ const modified`+a(s(n!=null?r(n,"generatedName"):n,n))+` = {
181
+ ...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:74,column:7},end:{line:74,column:38}}}))+`,
182
+ context,
183
+ };
184
+
185
+ track`+a(s(n!=null?r(n,"event"):n,n))+"(modified"+a(s(n!=null?r(n,"generatedName"):n,n))+`, trackers);
155
186
  }
156
- `},4:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`/**
157
- * Typedef for a `+s(e(n!=null?o(n,"event"):n,n))+`Contexts
158
- * @typedef {object} `+s(e(n!=null?o(n,"event"):n,n))+`Contexts
159
- * @property {(`+((a=o(i,"join").call(n??(l.nullContext||{}),n!=null?o(n,"entities"):n," | ","Context",{name:"join",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:38,column:15},end:{line:38,column:63}}}))!=null?a:"")+")[]} [context] Contexts to include in the "+s(e(n!=null?o(n,"name"):n,n))+` event specification.
187
+ `},6:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`/**
188
+ * Typedef for a `+s(e(n!=null?a(n,"event"):n,n))+`Contexts
189
+ * @typedef {object} `+s(e(n!=null?a(n,"event"):n,n))+`Contexts
190
+ * @property {(`+((o=a(i,"join").call(n??(l.nullContext||{}),n!=null?a(n,"entities"):n," | ","Context",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:51,column:15},end:{line:51,column:63}}}))!=null?o:"")+")[]} [context] Contexts to include in the "+s(e(n!=null?a(n,"generatedName"):n,n))+` event specification.
160
191
  */
161
192
 
162
- `},5:function(l,n,i,m,t){return""},7:function(l,n,i,m,t){var a=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return" & "+l.escapeExpression(l.lambda(n!=null?a(n,"event"):n,n))+"Contexts"},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var a,e,s,o=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r="";return a=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:1,column:0},end:{line:31,column:9}}},typeof e=="function"?e.call(o,s):e),u(i,"type")||(a=l.hooks.blockHelperMissing.call(n,a,s)),a!=null&&(r+=a),r+`
163
- `+((a=u(i,"each").call(o,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:33,column:0},end:{line:51,column:9}}}))!=null?a:"")},useData:!0}});var Mn=O((Pe,An)=>{"use strict";An.exports={id:{language:"javascript",tracker:"@snowplow/node-tracker"},1:function(l,n,i,m,t){return`/**
193
+ `},7:function(l,n,i,m,t){return""},9:function(l,n,i,m,t){var o=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return" & "+l.escapeExpression(l.lambda(n!=null?o(n,"event"):n,n))+"Contexts"},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var o,e,s,a=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r="";return o=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:1,column:0},end:{line:31,column:9}}},typeof e=="function"?e.call(a,s):e),u(i,"type")||(o=l.hooks.blockHelperMissing.call(n,o,s)),o!=null&&(r+=o),r+`
194
+ `+((o=u(i,"if").call(a,(o=n!=null?u(n,"eventSpecifications"):n)!=null?u(o,"length"):o,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:33,column:0},end:{line:44,column:7}}}))!=null?o:"")+`
195
+ `+((o=u(i,"each").call(a,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:46,column:0},end:{line:80,column:9}}}))!=null?o:"")},useData:!0}});var Mn=O((be,An)=>{"use strict";An.exports={id:{language:"javascript",tracker:"@snowplow/node-tracker"},1:function(l,n,i,m,t){return`/**
164
196
  * Creates a Snowplow Event Specification entity.
165
197
  */
166
198
  export function createEventSpecification(eventSpecification){
167
199
  return {
168
200
  schema:
169
- 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0',
201
+ 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2',
170
202
  data: eventSpecification,
171
203
  }
172
204
  }
173
- `},3:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,o="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
174
- * Track a Snowplow event for `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:23,column:30},end:{line:23,column:42}}}):a))+`.
175
- * `+u((a=(a=r(i,"description")||(n!=null?r(n,"description"):n))!=null?a:s,typeof a===o?a.call(e,{name:"description",hash:{},data:t,loc:{start:{line:24,column:3},end:{line:24,column:18}}}):a))+`
205
+ `},3:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,a="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
206
+ * Track a Snowplow event for `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:23,column:30},end:{line:23,column:42}}}):o))+`.
207
+ * `+u((o=(o=r(i,"description")||(n!=null?r(n,"description"):n))!=null?o:s,typeof o===a?o.call(e,{name:"description",hash:{},data:t,loc:{start:{line:24,column:3},end:{line:24,column:18}}}):o))+`
176
208
  * @param {Tracker} tracker - Tracker to send the event to.
177
- * @param { `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:26,column:12},end:{line:26,column:24}}}):a))+" & Timestamp & Context } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:26,column:49},end:{line:26,column:70}}}))+" - Attributes for "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:26,column:88},end:{line:26,column:100}}}):a))+`.
209
+ * @param { `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:26,column:12},end:{line:26,column:24}}}):o))+" & Timestamp & Context } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:26,column:49},end:{line:26,column:70}}}))+" - Attributes for "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:26,column:88},end:{line:26,column:100}}}):o))+`.
178
210
  */
179
- export function track`+u((a=(a=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:28,column:21},end:{line:28,column:37}}}):a))+"(tracker, "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:28,column:47},end:{line:28,column:68}}}))+`){
211
+ export function track`+u((o=(o=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:28,column:21},end:{line:28,column:37}}}):o))+"(tracker, "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:28,column:47},end:{line:28,column:68}}}))+`){
180
212
  const { context, timestamp, ...data } = `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:29,column:42},end:{line:29,column:63}}}))+`;
181
213
 
182
214
  tracker.track(buildSelfDescribingEvent({
183
215
  event: {
184
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:33,column:15},end:{line:33,column:26}}}):a))+`',
216
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:33,column:15},end:{line:33,column:26}}}):o))+`',
185
217
  data
186
218
  }
187
219
  }), context, timestamp);
188
220
  }
189
221
 
190
222
  /**
191
- * Creates a Snowplow `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:40,column:22},end:{line:40,column:34}}}):a))+` entity.
192
- * @param { `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:41,column:12},end:{line:41,column:24}}}):a))+" } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:41,column:27},end:{line:41,column:48}}}))+" - Attributes for "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:41,column:66},end:{line:41,column:78}}}):a))+`.
223
+ * Creates a Snowplow `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:40,column:22},end:{line:40,column:34}}}):o))+` entity.
224
+ * @param { `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:41,column:12},end:{line:41,column:24}}}):o))+" } "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:41,column:27},end:{line:41,column:48}}}))+" - Attributes for "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:41,column:66},end:{line:41,column:78}}}):o))+`.
193
225
  */
194
- export function create`+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:43,column:22},end:{line:43,column:34}}}):a))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:43,column:35},end:{line:43,column:56}}}))+`){
226
+ export function create`+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:43,column:22},end:{line:43,column:34}}}):o))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:43,column:35},end:{line:43,column:56}}}))+`){
195
227
  return {
196
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:45,column:13},end:{line:45,column:24}}}):a))+`',
228
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:45,column:13},end:{line:45,column:24}}}):o))+`',
197
229
  data: `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:46,column:10},end:{line:46,column:31}}}))+`
198
230
  }
199
231
  }
200
- `},5:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.lambda,o=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:52,column:0},end:{line:59,column:7}}}))!=null?a:"")+`/**
201
- * Tracks a `+o(s(n!=null?r(n,"name"):n,n))+` event specification.
202
- * `+o((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:62,column:3},end:{line:62,column:46}}}))+`
232
+ `},5:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.lambda,a=l.escapeExpression,u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:52,column:0},end:{line:59,column:7}}}))!=null?o:"")+`/**
233
+ * Tracks a `+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
234
+ * `+a((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(e,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:62,column:3},end:{line:62,column:46}}}))+`
203
235
  * @param {Tracker} tracker - Tracker to send the tracking event specification to.
204
- * @param { `+o(s(n!=null?r(n,"event"):n,n))+" & Timestamp"+((a=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:38},end:{line:64,column:91}}}))!=null?a:"")+" } "+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:64,column:94},end:{line:64,column:116}}}))+" - Attributes for "+o(s(n!=null?r(n,"name"):n,n))+` event specification.
236
+ * @param { `+a(s(n!=null?r(n,"event"):n,n))+" & Timestamp"+((o=r(i,"if").call(e,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:38},end:{line:64,column:91}}}))!=null?o:"")+" } "+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:64,column:94},end:{line:64,column:125}}}))+" - Attributes for "+a(s(n!=null?r(n,"generatedName"):n,n))+` event specification.
205
237
  */
206
- export function track`+o(s(n!=null?r(n,"name"):n,n))+"(tracker, "+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:66,column:44},end:{line:66,column:66}}}))+`){
207
- const eventSpecificationContext = createEventSpecification({ id: '`+o(s(n!=null?r(n,"id"):n,n))+`' });
238
+ export function track`+a(s(n!=null?r(n,"generatedName"):n,n))+"(tracker, "+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:66,column:53},end:{line:66,column:84}}}))+`){
239
+ const eventSpecificationContext = createEventSpecification({
240
+ id: '`+a(s(n!=null?r(n,"id"):n,n))+`',
241
+ name: '`+a(s(n!=null?r(n,"name"):n,n))+`',
242
+ data_product_id: '`+a(s(n!=null?r(n,"dataProductId"):n,n))+`',
243
+ data_product_name: '`+a(s(n!=null?r(n,"dataProductName"):n,n))+`'
244
+ });
208
245
 
209
- const context = Array.isArray(`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:69,column:31},end:{line:69,column:53}}}))+`.context)
210
- ? [...`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:70,column:10},end:{line:70,column:32}}}))+`.context, eventSpecificationContext]
246
+ const context = Array.isArray(`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:74,column:31},end:{line:74,column:62}}}))+`.context)
247
+ ? [...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:75,column:10},end:{line:75,column:41}}}))+`.context, eventSpecificationContext]
211
248
  : [eventSpecificationContext];
212
249
 
213
- const modified`+o(s(n!=null?r(n,"name"):n,n))+` = {
214
- ...`+o((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:74,column:7},end:{line:74,column:29}}}))+`,
250
+ const modified`+a(s(n!=null?r(n,"generatedName"):n,n))+` = {
251
+ ...`+a((r(i,"startLow")||n&&r(n,"startLow")||u).call(e,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:79,column:7},end:{line:79,column:38}}}))+`,
215
252
  context,
216
253
  };
217
254
 
218
- track`+o(s(n!=null?r(n,"event"):n,n))+"(tracker, modified"+o(s(n!=null?r(n,"name"):n,n))+`);
255
+ track`+a(s(n!=null?r(n,"event"):n,n))+"(tracker, modified"+a(s(n!=null?r(n,"generatedName"):n,n))+`);
219
256
  }
220
- `},6:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`/**
221
- * Typedef for `+s(e(n!=null?o(n,"name"):n,n))+` event specification contexts.
222
- * @typedef {object} `+s(e(n!=null?o(n,"event"):n,n))+`Contexts
223
- * @property {(`+((a=o(i,"join").call(n??(l.nullContext||{}),n!=null?o(n,"entities"):n," | ","Context",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:15},end:{line:56,column:63}}}))!=null?a:"")+")[]} [context] Contexts to include in the "+s(e(n!=null?o(n,"name"):n,n))+` event specification.
257
+ `},6:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`/**
258
+ * Typedef for `+s(e(n!=null?a(n,"generatedName"):n,n))+` event specification contexts.
259
+ * @typedef {object} `+s(e(n!=null?a(n,"event"):n,n))+`Contexts
260
+ * @property {(`+((o=a(i,"join").call(n??(l.nullContext||{}),n!=null?a(n,"entities"):n," | ","Context",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:15},end:{line:56,column:63}}}))!=null?o:"")+")[]} [context] Contexts to include in the "+s(e(n!=null?a(n,"generatedName"):n,n))+` event specification.
224
261
  */
225
262
 
226
- `},7:function(l,n,i,m,t){return""},9:function(l,n,i,m,t){var a=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return" & "+l.escapeExpression(l.lambda(n!=null?a(n,"event"):n,n))+"Contexts"},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var a,e,s,o=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r=`import { buildSelfDescribingEvent } from '@snowplow/node-tracker';
263
+ `},7:function(l,n,i,m,t){return""},9:function(l,n,i,m,t){var o=l.lookupProperty||function(e,s){if(Object.prototype.hasOwnProperty.call(e,s))return e[s]};return" & "+l.escapeExpression(l.lambda(n!=null?o(n,"event"):n,n))+"Contexts"},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var o,e,s,a=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r=`import { buildSelfDescribingEvent } from '@snowplow/node-tracker';
227
264
 
228
- `+((a=u(i,"if").call(o,(a=n!=null?u(n,"eventSpecifications"):n)!=null?u(a,"length"):a,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:3,column:0},end:{line:14,column:7}}}))!=null?a:"")+`
265
+ `+((o=u(i,"if").call(a,(o=n!=null?u(n,"eventSpecifications"):n)!=null?u(o,"length"):o,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:3,column:0},end:{line:14,column:7}}}))!=null?o:"")+`
229
266
  /**
230
267
  * Typedef for a Node.js tracker object.
231
268
  * @typedef {object} Tracker
232
269
  */
233
270
 
234
- `;return a=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:21,column:0},end:{line:49,column:9}}},typeof e=="function"?e.call(o,s):e),u(i,"type")||(a=l.hooks.blockHelperMissing.call(n,a,s)),a!=null&&(r+=a),r+`
235
- `+((a=u(i,"each").call(o,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:51,column:0},end:{line:80,column:9}}}))!=null?a:"")},useData:!0}});var In=O((Oe,Dn)=>{"use strict";Dn.exports={id:{language:"typescript",tracker:"@snowplow/browser-tracker"},1:function(l,n,i,m,t){return", SelfDescribingJson"},3:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return`import Ajv, { ErrorObject } from "ajv-draft-04";
271
+ `;return o=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:21,column:0},end:{line:49,column:9}}},typeof e=="function"?e.call(a,s):e),u(i,"type")||(o=l.hooks.blockHelperMissing.call(n,o,s)),o!=null&&(r+=o),r+`
272
+ `+((o=u(i,"each").call(a,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:51,column:0},end:{line:85,column:9}}}))!=null?o:"")},useData:!0}});var In=O((Oe,Dn)=>{"use strict";Dn.exports={id:{language:"typescript",tracker:"@snowplow/browser-tracker"},1:function(l,n,i,m,t){return", SelfDescribingJson"},3:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return`import Ajv, { ErrorObject } from "ajv-draft-04";
236
273
  import addFormats from "ajv-formats";
237
274
  import { schemasObject } from "./validations";
238
- `+((a=s(i,"unless").call(e,(s(i,"or")||n&&s(n,"or")||l.hooks.helperMissing).call(e,(a=n!=null?s(n,"eventSpecifications"):n)!=null?s(a,"length"):a,(a=n!=null?s(n,"ecomEventSpecifications"):n)!=null?s(a,"length"):a,{name:"or",hash:{},data:t,loc:{start:{line:6,column:10},end:{line:6,column:72}}}),{name:"unless",hash:{},fn:l.program(4,t,0),inverse:l.noop,data:t,loc:{start:{line:6,column:0},end:{line:8,column:11}}}))!=null?a:"")},4:function(l,n,i,m,t){return`import { SelfDescribingJson } from "@snowplow/browser-tracker";
275
+ `+((o=s(i,"unless").call(e,(s(i,"or")||n&&s(n,"or")||l.hooks.helperMissing).call(e,(o=n!=null?s(n,"eventSpecifications"):n)!=null?s(o,"length"):o,(o=n!=null?s(n,"ecomEventSpecifications"):n)!=null?s(o,"length"):o,{name:"or",hash:{},data:t,loc:{start:{line:6,column:10},end:{line:6,column:72}}}),{name:"unless",hash:{},fn:l.program(4,t,0),inverse:l.noop,data:t,loc:{start:{line:6,column:0},end:{line:8,column:11}}}))!=null?o:"")},4:function(l,n,i,m,t){return`import { SelfDescribingJson } from "@snowplow/browser-tracker";
239
276
  `},6:function(l,n,i,m,t){return'import * as Ecom from "@snowplow/browser-plugin-snowplow-ecommerce";'},8:function(l,n,i,m,t){return`/**
240
277
  * Creates a Snowplow Event Specification entity.
241
278
  */
242
279
  export function createEventSpecification(eventSpecification: EventSpecification){
243
280
  return {
244
281
  schema:
245
- 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0',
282
+ 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2',
246
283
  data: eventSpecification,
247
284
  }
248
285
  }
@@ -252,6 +289,9 @@ export function createEventSpecification(eventSpecification: EventSpecification)
252
289
  */
253
290
  interface EventSpecification {
254
291
  id: string;
292
+ name: string;
293
+ data_product_id: string;
294
+ data_product_name: string;
255
295
  }
256
296
  `},10:function(l,n,i,m,t){return`const ajv = new Ajv({ allErrors: true, verbose: true, strict: false });
257
297
  addFormats(ajv);
@@ -280,17 +320,17 @@ function validateSchema(sdj: SelfDescribingJson) {
280
320
  defaultValidationErrorHandler(ajv.errors)
281
321
  }
282
322
  }
283
- `},12:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`/**
284
- * Track a Snowplow event for `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:63,column:30},end:{line:63,column:42}}}):e))+`.
285
- * `+r((e=(e=c(i,"description")||(n!=null?c(n,"description"):n))!=null?e:o,typeof e===u?e.call(s,{name:"description",hash:{},data:t,loc:{start:{line:64,column:3},end:{line:64,column:18}}}):e))+`
323
+ `},12:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`/**
324
+ * Track a Snowplow event for `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:66,column:30},end:{line:66,column:42}}}):e))+`.
325
+ * `+r((e=(e=c(i,"description")||(n!=null?c(n,"description"):n))!=null?e:a,typeof e===u?e.call(s,{name:"description",hash:{},data:t,loc:{start:{line:67,column:3},end:{line:67,column:18}}}):e))+`
286
326
  */
287
- export function track`+r((e=(e=c(i,"functionName")||(n!=null?c(n,"functionName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"functionName",hash:{},data:t,loc:{start:{line:66,column:21},end:{line:66,column:37}}}):e))+"<T extends {} = any>("+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:66,column:58},end:{line:66,column:79}}}))+": "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:66,column:81},end:{line:66,column:93}}}):e))+` & CommonEventProperties<T>, trackers?: string[]){
288
- const { context, timestamp, ...data } = `+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:67,column:42},end:{line:67,column:63}}}))+`;
327
+ export function track`+r((e=(e=c(i,"functionName")||(n!=null?c(n,"functionName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"functionName",hash:{},data:t,loc:{start:{line:69,column:21},end:{line:69,column:37}}}):e))+"<T extends {} = any>("+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:69,column:58},end:{line:69,column:79}}}))+": "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:69,column:81},end:{line:69,column:93}}}):e))+` & CommonEventProperties<T>, trackers?: string[]){
328
+ const { context, timestamp, ...data } = `+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:70,column:42},end:{line:70,column:63}}}))+`;
289
329
  const event: SelfDescribingJson = {
290
- schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:69,column:13},end:{line:69,column:24}}}):e))+`',
330
+ schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:72,column:13},end:{line:72,column:24}}}):e))+`',
291
331
  data
292
332
  };
293
- `+((a=c(i,"if").call(s,n!=null?c(n,"validations"):n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t,loc:{start:{line:72,column:2},end:{line:72,column:90}}}))!=null?a:"")+`
333
+ `+((o=c(i,"if").call(s,n!=null?c(n,"validations"):n,{name:"if",hash:{},fn:l.program(13,t,0),inverse:l.noop,data:t,loc:{start:{line:75,column:2},end:{line:75,column:90}}}))!=null?o:"")+`
294
334
  trackSelfDescribingEvent({
295
335
  event,
296
336
  context,
@@ -299,62 +339,67 @@ export function track`+r((e=(e=c(i,"functionName")||(n!=null?c(n,"functionName")
299
339
  }
300
340
 
301
341
  /**
302
- * Creates a Snowplow `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:81,column:22},end:{line:81,column:34}}}):e))+` entity.
342
+ * Creates a Snowplow `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:84,column:22},end:{line:84,column:34}}}):e))+` entity.
303
343
  */
304
- export function create`+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:83,column:22},end:{line:83,column:34}}}):e))+"("+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:83,column:35},end:{line:83,column:56}}}))+": "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:83,column:58},end:{line:83,column:70}}}):e))+`){
344
+ export function create`+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:86,column:22},end:{line:86,column:34}}}):e))+"("+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:86,column:35},end:{line:86,column:56}}}))+": "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:86,column:58},end:{line:86,column:70}}}):e))+`){
305
345
  return {
306
- schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:85,column:13},end:{line:85,column:24}}}):e))+`',
307
- data: `+r((c(i,"startLow")||n&&c(n,"startLow")||o).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:86,column:10},end:{line:86,column:31}}}))+`
346
+ schema: '`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:88,column:13},end:{line:88,column:24}}}):e))+`',
347
+ data: `+r((c(i,"startLow")||n&&c(n,"startLow")||a).call(s,n!=null?c(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:89,column:10},end:{line:89,column:31}}}))+`
308
348
  }
309
349
  }
310
- `},13:function(l,n,i,m,t){return"[event].concat(context || []).forEach(s => validateSchema(s));"},15:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
311
- * Tracks a `+s(e(n!=null?r(n,"name"):n,n))+` event specification.
312
- * `+s((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(o,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:94,column:3},end:{line:94,column:46}}}))+`
350
+ `},13:function(l,n,i,m,t){return"[event].concat(context || []).forEach(s => validateSchema(s));"},15:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
351
+ * Tracks a `+s(e(n!=null?r(n,"generatedName"):n,n))+` event specification.
352
+ * `+s((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(a,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:97,column:3},end:{line:97,column:46}}}))+`
313
353
  */
314
- export function track`+s(e(n!=null?r(n,"name"):n,n))+"("+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:96,column:35},end:{line:96,column:57}}}))+": "+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.noop,data:t,loc:{start:{line:96,column:97},end:{line:96,column:165}}}))!=null?a:"")+`, trackers?: string[]){
315
- const eventSpecificationContext: SelfDescribingJson<EventSpecification> = createEventSpecification({ id: '`+s(e(n!=null?r(n,"id"):n,n))+`' });
354
+ export function track`+s(e(n!=null?r(n,"generatedName"):n,n))+"("+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:99,column:44},end:{line:99,column:75}}}))+": "+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.noop,data:t,loc:{start:{line:99,column:115},end:{line:99,column:183}}}))!=null?o:"")+`, trackers?: string[]){
355
+ const eventSpecificationContext: SelfDescribingJson<EventSpecification> = createEventSpecification({
356
+ id: '`+s(e(n!=null?r(n,"id"):n,n))+`',
357
+ name: '`+s(e(n!=null?r(n,"name"):n,n))+`',
358
+ data_product_id: '`+s(e(n!=null?r(n,"dataProductId"):n,n))+`',
359
+ data_product_name: '`+s(e(n!=null?r(n,"dataProductName"):n,n))+`'
360
+ });
316
361
 
317
- const context = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:99,column:32},end:{line:99,column:54}}}))+`.context)
318
- ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:100,column:10},end:{line:100,column:32}}}))+`.context, eventSpecificationContext]
362
+ const context = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:107,column:32},end:{line:107,column:63}}}))+`.context)
363
+ ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:108,column:10},end:{line:108,column:41}}}))+`.context, eventSpecificationContext]
319
364
  : [eventSpecificationContext];
320
365
 
321
- const modified`+s(e(n!=null?r(n,"name"):n,n))+` = {
322
- ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:104,column:7},end:{line:104,column:29}}}))+`,
366
+ const modified`+s(e(n!=null?r(n,"generatedName"):n,n))+` = {
367
+ ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:112,column:7},end:{line:112,column:38}}}))+`,
323
368
  context,
324
369
  };
325
370
 
326
- track`+s(e(n!=null?r(n,"event"):n,n))+"<"+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(19,t,0),inverse:l.program(21,t,0),data:t,loc:{start:{line:108,column:22},end:{line:108,column:119}}}))!=null?a:"")+" | EventSpecification>(modified"+s(e(n!=null?r(n,"name"):n,n))+`, trackers);
371
+ track`+s(e(n!=null?r(n,"event"):n,n))+"<"+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(19,t,0),inverse:l.program(21,t,0),data:t,loc:{start:{line:116,column:22},end:{line:116,column:119}}}))!=null?o:"")+" | EventSpecification>(modified"+s(e(n!=null?r(n,"generatedName"):n,n))+`, trackers);
327
372
  }
328
- `},16:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return"<"+((a=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(17,t,0),inverse:l.noop,data:t,loc:{start:{line:96,column:119},end:{line:96,column:157}}}))!=null?a:"")+">"},17:function(l,n,i,m,t){return""},19:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return(a=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(17,t,0),inverse:l.noop,data:t,loc:{start:{line:108,column:43},end:{line:108,column:81}}}))!=null?a:""},21:function(l,n,i,m,t){return"Record<string, unknown>"},23:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
329
- * Tracks a `+s(e(n!=null?r(n,"name"):n,n))+` event specification.
330
- * `+s((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(o,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:114,column:3},end:{line:114,column:46}}}))+`
373
+ `},16:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return"<"+((o=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(17,t,0),inverse:l.noop,data:t,loc:{start:{line:99,column:137},end:{line:99,column:175}}}))!=null?o:"")+">"},17:function(l,n,i,m,t){return""},19:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return(o=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(17,t,0),inverse:l.noop,data:t,loc:{start:{line:116,column:43},end:{line:116,column:81}}}))!=null?o:""},21:function(l,n,i,m,t){return"Record<string, unknown>"},23:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
374
+ * Tracks a `+s(e(n!=null?r(n,"generatedName"):n,n))+` event specification.
375
+ * `+s((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(a,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:122,column:3},end:{line:122,column:46}}}))+`
331
376
  */
332
- export function track`+s(e(n!=null?r(n,"name"):n,n))+"("+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:116,column:35},end:{line:116,column:57}}}))+": "+s((r(i,"ecomFunctionArgument")||n&&r(n,"ecomFunctionArgument")||u).call(o,n!=null?r(n,"event"):n,{name:"ecomFunctionArgument",hash:{},data:t,loc:{start:{line:116,column:59},end:{line:116,column:94}}}))+" & Ecom.CommonEcommerceEventProperties"+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.noop,data:t,loc:{start:{line:116,column:132},end:{line:116,column:200}}}))!=null?a:"")+`, trackers?: string[]){
377
+ export function track`+s(e(n!=null?r(n,"generatedName"):n,n))+"("+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:124,column:44},end:{line:124,column:75}}}))+": "+s((r(i,"ecomFunctionArgument")||n&&r(n,"ecomFunctionArgument")||u).call(a,n!=null?r(n,"event"):n,{name:"ecomFunctionArgument",hash:{},data:t,loc:{start:{line:124,column:77},end:{line:124,column:112}}}))+" & Ecom.CommonEcommerceEventProperties"+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(16,t,0),inverse:l.noop,data:t,loc:{start:{line:124,column:150},end:{line:124,column:218}}}))!=null?o:"")+`, trackers?: string[]){
333
378
  const eventSpecificationContext: SelfDescribingJson<EventSpecification> = createEventSpecification({ id: '`+s(e(n!=null?r(n,"id"):n,n))+`' });
334
379
 
335
- const context = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:119,column:32},end:{line:119,column:54}}}))+`.context)
336
- ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:120,column:10},end:{line:120,column:32}}}))+`.context, eventSpecificationContext]
380
+ const context = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:127,column:32},end:{line:127,column:63}}}))+`.context)
381
+ ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:128,column:10},end:{line:128,column:41}}}))+`.context, eventSpecificationContext]
337
382
  : [eventSpecificationContext];
338
383
 
339
- const modified`+s(e(n!=null?r(n,"name"):n,n))+` = {
340
- ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:124,column:7},end:{line:124,column:29}}}))+`,
384
+ const modified`+s(e(n!=null?r(n,"generatedName"):n,n))+` = {
385
+ ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:132,column:7},end:{line:132,column:38}}}))+`,
341
386
  context: context as unknown as SelfDescribingJson<Record<string, unknown>>[],
342
387
  };
343
388
 
344
- `+s((r(i,"ecomFunction")||n&&r(n,"ecomFunction")||u).call(o,n!=null?r(n,"event"):n,{name:"ecomFunction",hash:{},data:t,loc:{start:{line:128,column:2},end:{line:128,column:29}}}))+"(modified"+s(e(n!=null?r(n,"name"):n,n))+`, trackers);
345
- }
346
- `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var a,e,s,o=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]},c="import { trackSelfDescribingEvent, CommonEventProperties"+((a=r(i,"if").call(o,(r(i,"or")||n&&r(n,"or")||u).call(o,(a=n!=null?r(n,"eventSpecifications"):n)!=null?r(a,"length"):a,(a=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(a,"length"):a,{name:"or",hash:{},data:t,loc:{start:{line:1,column:62},end:{line:1,column:124}}}),{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:1,column:56},end:{line:1,column:153}}}))!=null?a:"")+` } from '@snowplow/browser-tracker';
347
- `+((a=r(i,"if").call(o,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:2,column:0},end:{line:9,column:7}}}))!=null?a:"")+((a=r(i,"if").call(o,(a=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(a,"length"):a,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:0},end:{line:10,column:113}}}))!=null?a:"")+`
348
- `+((a=r(i,"if").call(o,(r(i,"or")||n&&r(n,"or")||u).call(o,(a=n!=null?r(n,"eventSpecifications"):n)!=null?r(a,"length"):a,(a=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(a,"length"):a,{name:"or",hash:{},data:t,loc:{start:{line:11,column:6},end:{line:11,column:68}}}),{name:"if",hash:{},fn:l.program(8,t,0),inverse:l.noop,data:t,loc:{start:{line:11,column:0},end:{line:29,column:7}}}))!=null?a:"")+`
349
- `+((a=r(i,"if").call(o,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(10,t,0),inverse:l.noop,data:t,loc:{start:{line:31,column:0},end:{line:59,column:7}}}))!=null?a:"")+`
350
- `;return a=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:u,s={name:"type",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:61,column:0},end:{line:89,column:9}}},typeof e=="function"?e.call(o,s):e),r(i,"type")||(a=l.hooks.blockHelperMissing.call(n,a,s)),a!=null&&(c+=a),c+`
351
- `+((a=r(i,"each").call(o,n!=null?r(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(15,t,0),inverse:l.noop,data:t,loc:{start:{line:91,column:0},end:{line:110,column:9}}}))!=null?a:"")+((a=r(i,"each").call(o,n!=null?r(n,"ecomEventSpecifications"):n,{name:"each",hash:{},fn:l.program(23,t,0),inverse:l.noop,data:t,loc:{start:{line:111,column:0},end:{line:130,column:9}}}))!=null?a:"")},useData:!0}});var Fn=O((Ee,Rn)=>{"use strict";Rn.exports={id:{language:"typescript",tracker:"@snowplow/node-tracker"},1:function(l,n,i,m,t){return`/**
389
+ `+s((r(i,"ecomFunction")||n&&r(n,"ecomFunction")||u).call(a,n!=null?r(n,"event"):n,{name:"ecomFunction",hash:{},data:t,loc:{start:{line:136,column:2},end:{line:136,column:29}}}))+"(modified"+s(e(n!=null?r(n,"generatedName"):n,n))+`, trackers);
390
+ }
391
+ `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var o,e,s,a=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]},c="import { trackSelfDescribingEvent, CommonEventProperties"+((o=r(i,"if").call(a,(r(i,"or")||n&&r(n,"or")||u).call(a,(o=n!=null?r(n,"eventSpecifications"):n)!=null?r(o,"length"):o,(o=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(o,"length"):o,{name:"or",hash:{},data:t,loc:{start:{line:1,column:62},end:{line:1,column:124}}}),{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:1,column:56},end:{line:1,column:153}}}))!=null?o:"")+` } from '@snowplow/browser-tracker';
392
+ `+((o=r(i,"if").call(a,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:2,column:0},end:{line:9,column:7}}}))!=null?o:"")+((o=r(i,"if").call(a,(o=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(o,"length"):o,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:0},end:{line:10,column:113}}}))!=null?o:"")+`
393
+ `+((o=r(i,"if").call(a,(r(i,"or")||n&&r(n,"or")||u).call(a,(o=n!=null?r(n,"eventSpecifications"):n)!=null?r(o,"length"):o,(o=n!=null?r(n,"ecomEventSpecifications"):n)!=null?r(o,"length"):o,{name:"or",hash:{},data:t,loc:{start:{line:11,column:6},end:{line:11,column:68}}}),{name:"if",hash:{},fn:l.program(8,t,0),inverse:l.noop,data:t,loc:{start:{line:11,column:0},end:{line:32,column:7}}}))!=null?o:"")+`
394
+ `+((o=r(i,"if").call(a,n!=null?r(n,"validations"):n,{name:"if",hash:{},fn:l.program(10,t,0),inverse:l.noop,data:t,loc:{start:{line:34,column:0},end:{line:62,column:7}}}))!=null?o:"")+`
395
+ `;return o=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:u,s={name:"type",hash:{},fn:l.program(12,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:0},end:{line:92,column:9}}},typeof e=="function"?e.call(a,s):e),r(i,"type")||(o=l.hooks.blockHelperMissing.call(n,o,s)),o!=null&&(c+=o),c+`
396
+ `+((o=r(i,"each").call(a,n!=null?r(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(15,t,0),inverse:l.noop,data:t,loc:{start:{line:94,column:0},end:{line:118,column:9}}}))!=null?o:"")+((o=r(i,"each").call(a,n!=null?r(n,"ecomEventSpecifications"):n,{name:"each",hash:{},fn:l.program(23,t,0),inverse:l.noop,data:t,loc:{start:{line:119,column:0},end:{line:138,column:9}}}))!=null?o:"")},useData:!0}});var Rn=O((Ee,_n)=>{"use strict";_n.exports={id:{language:"typescript",tracker:"@snowplow/node-tracker"},1:function(l,n,i,m,t){return`/**
352
397
  * Creates a Snowplow Event Specification entity.
353
398
  */
354
399
  export function createEventSpecification(eventSpecification: EventSpecification){
355
400
  return {
356
401
  schema:
357
- 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0',
402
+ 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2',
358
403
  data: eventSpecification,
359
404
  }
360
405
  }
@@ -364,49 +409,57 @@ export function createEventSpecification(eventSpecification: EventSpecification)
364
409
  */
365
410
  interface EventSpecification {
366
411
  id: string;
412
+ name: string;
413
+ data_product_id: string;
414
+ data_product_name: string;
367
415
  }
368
- `},3:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,o="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
369
- * Track a Snowplow event for `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:32,column:30},end:{line:32,column:42}}}):a))+`.
370
- * `+u((a=(a=r(i,"description")||(n!=null?r(n,"description"):n))!=null?a:s,typeof a===o?a.call(e,{name:"description",hash:{},data:t,loc:{start:{line:33,column:3},end:{line:33,column:18}}}):a))+`
416
+ `},3:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,a="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
417
+ * Track a Snowplow event for `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:35,column:30},end:{line:35,column:42}}}):o))+`.
418
+ * `+u((o=(o=r(i,"description")||(n!=null?r(n,"description"):n))!=null?o:s,typeof o===a?o.call(e,{name:"description",hash:{},data:t,loc:{start:{line:36,column:3},end:{line:36,column:18}}}):o))+`
371
419
  */
372
- export function track`+u((a=(a=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:35,column:21},end:{line:35,column:37}}}):a))+"<T extends {} = any>(tracker: Tracker, "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:35,column:76},end:{line:35,column:97}}}))+": "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:35,column:99},end:{line:35,column:111}}}):a))+` & CommonEventProperties<T>){
373
- const { context, timestamp, ...data } = `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:36,column:42},end:{line:36,column:63}}}))+`;
420
+ export function track`+u((o=(o=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:38,column:21},end:{line:38,column:37}}}):o))+"<T extends {} = any>(tracker: Tracker, "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:38,column:76},end:{line:38,column:97}}}))+": "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:38,column:99},end:{line:38,column:111}}}):o))+` & CommonEventProperties<T>){
421
+ const { context, timestamp, ...data } = `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:39,column:42},end:{line:39,column:63}}}))+`;
374
422
  tracker.track(buildSelfDescribingEvent({
375
423
  event: {
376
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:39,column:15},end:{line:39,column:26}}}):a))+`',
424
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:42,column:15},end:{line:42,column:26}}}):o))+`',
377
425
  data
378
426
  }
379
427
  }), context, timestamp);
380
428
  }
381
429
 
382
430
  /**
383
- * Creates a Snowplow `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:46,column:22},end:{line:46,column:34}}}):a))+` entity.
431
+ * Creates a Snowplow `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:49,column:22},end:{line:49,column:34}}}):o))+` entity.
384
432
  */
385
- export function create`+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:48,column:22},end:{line:48,column:34}}}):a))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:48,column:35},end:{line:48,column:56}}}))+": "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:48,column:58},end:{line:48,column:70}}}):a))+`){
433
+ export function create`+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:51,column:22},end:{line:51,column:34}}}):o))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:51,column:35},end:{line:51,column:56}}}))+": "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:51,column:58},end:{line:51,column:70}}}):o))+`){
386
434
  return {
387
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:50,column:13},end:{line:50,column:24}}}):a))+`',
388
- data: `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:51,column:10},end:{line:51,column:31}}}))+`
435
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:53,column:13},end:{line:53,column:24}}}):o))+`',
436
+ data: `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:54,column:10},end:{line:54,column:31}}}))+`
389
437
  }
390
438
  }
391
- `},5:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
392
- * Tracks a `+s(e(n!=null?r(n,"name"):n,n))+` event specification.
393
- * `+s((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(o,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:59,column:3},end:{line:59,column:46}}}))+`
439
+ `},5:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
440
+ * Tracks a `+s(e(n!=null?r(n,"generatedName"):n,n))+` event specification.
441
+ * `+s((r(i,"addEventSpecificationIdentifier")||n&&r(n,"addEventSpecificationIdentifier")||u).call(a,n!=null?r(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:62,column:3},end:{line:62,column:46}}}))+`
394
442
  */
395
- export function track`+s(e(n!=null?r(n,"name"):n,n))+"(tracker: Tracker, "+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:61,column:53},end:{line:61,column:75}}}))+": "+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:61,column:115},end:{line:61,column:183}}}))!=null?a:"")+`){
396
- const eventSpecificationContext: SelfDescribingJson<EventSpecification> = createEventSpecification({ id: '`+s(e(n!=null?r(n,"id"):n,n))+`' });
443
+ export function track`+s(e(n!=null?r(n,"generatedName"):n,n))+"(tracker: Tracker, "+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:64,column:62},end:{line:64,column:93}}}))+": "+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:133},end:{line:64,column:201}}}))!=null?o:"")+`){
444
+ const eventSpecificationContext: SelfDescribingJson<EventSpecification> = createEventSpecification({
445
+ id: '`+s(e(n!=null?r(n,"id"):n,n))+`',
446
+ name: '`+s(e(n!=null?r(n,"name"):n,n))+`',
447
+ data_product_id: '`+s(e(n!=null?r(n,"dataProductId"):n,n))+`',
448
+ data_product_name: '`+s(e(n!=null?r(n,"dataProductName"):n,n))+`'
449
+ });
397
450
 
398
- const context = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:64,column:32},end:{line:64,column:54}}}))+`.context)
399
- ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:65,column:10},end:{line:65,column:32}}}))+`.context, eventSpecificationContext]
451
+ const context = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:72,column:32},end:{line:72,column:63}}}))+`.context)
452
+ ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:73,column:10},end:{line:73,column:41}}}))+`.context, eventSpecificationContext]
400
453
  : [eventSpecificationContext];
401
454
 
402
- const modified`+s(e(n!=null?r(n,"name"):n,n))+` = {
403
- ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:69,column:7},end:{line:69,column:29}}}))+`,
404
- context: context as unknown as SelfDescribingJson`+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:70,column:53},end:{line:70,column:122}}}))!=null?a:"")+`[],
455
+ const modified`+s(e(n!=null?r(n,"generatedName"):n,n))+` = {
456
+ ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:77,column:7},end:{line:77,column:38}}}))+`,
457
+ context: context as unknown as SelfDescribingJson`+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:78,column:53},end:{line:78,column:122}}}))!=null?o:"")+`[],
405
458
  };
406
459
 
407
- track`+s(e(n!=null?r(n,"event"):n,n))+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:73,column:21},end:{line:73,column:90}}}))!=null?a:"")+"(tracker, modified"+s(e(n!=null?r(n,"name"):n,n))+`);
460
+ track`+s(e(n!=null?r(n,"event"):n,n))+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(9,t,0),inverse:l.noop,data:t,loc:{start:{line:81,column:21},end:{line:81,column:90}}}))!=null?o:"")+"(tracker, modified"+s(e(n!=null?r(n,"generatedName"):n,n))+`);
408
461
  }
409
- `},6:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return"<"+((a=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:61,column:137},end:{line:61,column:175}}}))!=null?a:"")+">"},7:function(l,n,i,m,t){return""},9:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return"<"+((a=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:70,column:75},end:{line:70,column:113}}}))!=null?a:"")+"> "},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var a,e,s,o=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r=`import { buildSelfDescribingEvent, SelfDescribingJson, Timestamp, Tracker } from '@snowplow/node-tracker';
462
+ `},6:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return"<"+((o=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:155},end:{line:64,column:193}}}))!=null?o:"")+">"},7:function(l,n,i,m,t){return""},9:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return"<"+((o=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:78,column:75},end:{line:78,column:113}}}))!=null?o:"")+"> "},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var o,e,s,a=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r=`import { buildSelfDescribingEvent, SelfDescribingJson, Timestamp, Tracker } from '@snowplow/node-tracker';
410
463
 
411
464
  interface CommonEventProperties<T = Record<string, unknown>> {
412
465
  /** Add context to an event by setting an Array of Self Describing JSON */
@@ -415,31 +468,31 @@ interface CommonEventProperties<T = Record<string, unknown>> {
415
468
  timestamp?: Timestamp | null;
416
469
  }
417
470
 
418
- `+((a=u(i,"if").call(o,(a=n!=null?u(n,"eventSpecifications"):n)!=null?u(a,"length"):a,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:0},end:{line:28,column:7}}}))!=null?a:"")+`
419
- `;return a=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:30,column:0},end:{line:54,column:9}}},typeof e=="function"?e.call(o,s):e),u(i,"type")||(a=l.hooks.blockHelperMissing.call(n,a,s)),a!=null&&(r+=a),r+`
420
- `+((a=u(i,"each").call(o,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:0},end:{line:75,column:9}}}))!=null?a:"")},useData:!0}});var _n=O((je,Un)=>{"use strict";Un.exports={id:{language:"kotlin",tracker:"snowplow-android-tracker"},1:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return(a=e(i,"each").call(n??(l.nullContext||{}),n!=null?e(n,"properties"):n,{name:"each",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:0},end:{line:20,column:9}}}))!=null?a:""},2:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return((a=s(i,"if").call(e,n!=null?s(n,"description"):n,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:11,column:0},end:{line:14,column:7}}}))!=null?a:"")+((a=s(i,"if").call(e,n!=null?s(n,"isNullable"):n,{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.program(8,t,0),data:t,loc:{start:{line:15,column:0},end:{line:19,column:7}}}))!=null?a:"")},3:function(l,n,i,m,t){var a,e,s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return`
421
- /** `+((a=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:13,column:8},end:{line:13,column:25}}}):e))!=null?a:"")+` */
422
- `},5:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" var "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:16,column:8},end:{line:16,column:16}}}):e))+": "+((a=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:o,typeof e===u?e.call(s,{name:"type",hash:{},data:t,loc:{start:{line:16,column:18},end:{line:16,column:28}}}):e))!=null?a:"")+" = null"+((a=r(i,"unless").call(s,t&&r(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:16,column:35},end:{line:16,column:65}}}))!=null?a:"")+`
423
- `},6:function(l,n,i,m,t){return", "},8:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" var "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:18,column:8},end:{line:18,column:16}}}):e))+": "+((a=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:o,typeof e===u?e.call(s,{name:"type",hash:{},data:t,loc:{start:{line:18,column:18},end:{line:18,column:28}}}):e))!=null?a:"")+((a=r(i,"unless").call(s,t&&r(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:18,column:28},end:{line:18,column:58}}}))!=null?a:"")+`
424
- `},10:function(l,n,i,m,t,a,e){var s,o,u=n??(l.nullContext||{}),r=l.hooks.helperMissing,c="function",f=l.escapeExpression,y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+f((o=(o=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?o:r,typeof o===c?o.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:25,column:8},end:{line:25,column:18}}}):o))+`val payload = HashMap<String, Any?>()
425
- `+((s=y(i,"each").call(u,n!=null?y(n,"properties"):n,{name:"each",hash:{},fn:l.program(11,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:26,column:0},end:{line:71,column:9}}}))!=null?s:"")+" "+f((o=(o=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?o:r,typeof o===c?o.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:72,column:8},end:{line:72,column:18}}}):o))+`return payload
426
- `},11:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isNullable"):n,{name:"if",hash:{},fn:l.program(12,t,0,a,e),inverse:l.program(41,t,0,a,e),data:t,loc:{start:{line:27,column:0},end:{line:70,column:7}}}))!=null?s:""},12:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isOptional"):n,{name:"if",hash:{},fn:l.program(13,t,0,a,e),inverse:l.program(27,t,0,a,e),data:t,loc:{start:{line:28,column:0},end:{line:55,column:7}}}))!=null?s:""},13:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(14,t,0,a,e),inverse:l.program(16,t,0,a,e),data:t,loc:{start:{line:29,column:0},end:{line:40,column:7}}}))!=null?s:""},14:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:31,column:21},end:{line:31,column:29}}}):o))+'?.let { payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:31,column:46},end:{line:31,column:60}}}):o))!=null?s:"")+`"] = it.map { e -> e.string } }
427
- `},16:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(17,t,0,a,e),inverse:l.program(19,t,0,a,e),data:t,loc:{start:{line:32,column:0},end:{line:40,column:0}}}))!=null?s:""},17:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:33,column:21},end:{line:33,column:29}}}):o))+'?.let { payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:33,column:46},end:{line:33,column:60}}}):o))!=null?s:"")+`"] = it.map { e -> e.payload } }
428
- `},19:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(20,t,0,a,e),inverse:l.program(22,t,0,a,e),data:t,loc:{start:{line:34,column:0},end:{line:40,column:0}}}))!=null?s:""},20:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:35,column:21},end:{line:35,column:29}}}):o))+'?.let { payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:35,column:46},end:{line:35,column:60}}}):o))!=null?s:"")+`"] = it.string }
429
- `},22:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isObject"):n,{name:"if",hash:{},fn:l.program(23,t,0,a,e),inverse:l.program(25,t,0,a,e),data:t,loc:{start:{line:36,column:0},end:{line:40,column:0}}}))!=null?s:""},23:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:37,column:21},end:{line:37,column:29}}}):o))+'?.let { payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:37,column:46},end:{line:37,column:60}}}):o))!=null?s:"")+`"] = it.payload }
430
- `},25:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:39,column:21},end:{line:39,column:29}}}):o))+'?.let { payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:39,column:46},end:{line:39,column:60}}}):o))!=null?s:"")+`"] = it }
431
- `},27:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(28,t,0,a,e),inverse:l.program(30,t,0,a,e),data:t,loc:{start:{line:43,column:0},end:{line:54,column:7}}}))!=null?s:""},28:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:45,column:30},end:{line:45,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:45,column:49},end:{line:45,column:57}}}):o))+`?.map { e -> e.string }
432
- `},30:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(31,t,0,a,e),inverse:l.program(33,t,0,a,e),data:t,loc:{start:{line:46,column:0},end:{line:54,column:0}}}))!=null?s:""},31:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:47,column:30},end:{line:47,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:47,column:49},end:{line:47,column:57}}}):o))+`?.map { e -> e.payload }
433
- `},33:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(34,t,0,a,e),inverse:l.program(36,t,0,a,e),data:t,loc:{start:{line:48,column:0},end:{line:54,column:0}}}))!=null?s:""},34:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:49,column:30},end:{line:49,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:49,column:49},end:{line:49,column:57}}}):o))+`?.string
434
- `},36:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isObject"):n,{name:"if",hash:{},fn:l.program(37,t,0,a,e),inverse:l.program(39,t,0,a,e),data:t,loc:{start:{line:50,column:0},end:{line:54,column:0}}}))!=null?s:""},37:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:51,column:30},end:{line:51,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:51,column:49},end:{line:51,column:57}}}):o))+`?.payload
435
- `},39:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:53,column:30},end:{line:53,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:53,column:49},end:{line:53,column:57}}}):o))+`
436
- `},41:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(42,t,0,a,e),inverse:l.program(44,t,0,a,e),data:t,loc:{start:{line:58,column:0},end:{line:69,column:7}}}))!=null?s:""},42:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:60,column:30},end:{line:60,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:60,column:49},end:{line:60,column:57}}}):o))+`.map { e -> e.string }
437
- `},44:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(45,t,0,a,e),inverse:l.program(47,t,0,a,e),data:t,loc:{start:{line:61,column:0},end:{line:69,column:0}}}))!=null?s:""},45:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:62,column:30},end:{line:62,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:62,column:49},end:{line:62,column:57}}}):o))+`.map { e -> e.payload }
438
- `},47:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(48,t,0,a,e),inverse:l.program(50,t,0,a,e),data:t,loc:{start:{line:63,column:0},end:{line:69,column:0}}}))!=null?s:""},48:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:64,column:30},end:{line:64,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:64,column:49},end:{line:64,column:57}}}):o))+`.string
439
- `},50:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isObject"):n,{name:"if",hash:{},fn:l.program(51,t,0,a,e),inverse:l.program(39,t,0,a,e),data:t,loc:{start:{line:65,column:0},end:{line:69,column:0}}}))!=null?s:""},51:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:66,column:30},end:{line:66,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:66,column:49},end:{line:66,column:57}}}):o))+`.payload
440
- `},53:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`/**
441
- `+((a=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(54,t,0),inverse:l.noop,data:t,loc:{start:{line:78,column:0},end:{line:80,column:7}}}))!=null?a:"")+"* Schema: `"+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:81,column:11},end:{line:81,column:22}}}):e))+"`\n*\n* Example:\n* ```kotlin\n* val data = "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:85,column:13},end:{line:85,column:25}}}):e))+`(
442
- `+((a=c(i,"each").call(s,n!=null?c(n,"properties"):n,{name:"each",hash:{},fn:l.program(56,t,0),inverse:l.noop,data:t,loc:{start:{line:86,column:0},end:{line:88,column:9}}}))!=null?a:"")+`* )
471
+ `+((o=u(i,"if").call(a,(o=n!=null?u(n,"eventSpecifications"):n)!=null?u(o,"length"):o,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:0},end:{line:31,column:7}}}))!=null?o:"")+`
472
+ `;return o=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:33,column:0},end:{line:57,column:9}}},typeof e=="function"?e.call(a,s):e),u(i,"type")||(o=l.hooks.blockHelperMissing.call(n,o,s)),o!=null&&(r+=o),r+`
473
+ `+((o=u(i,"each").call(a,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:59,column:0},end:{line:83,column:9}}}))!=null?o:"")},useData:!0}});var Un=O((Ne,Fn)=>{"use strict";Fn.exports={id:{language:"kotlin",tracker:"snowplow-android-tracker"},1:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return(o=e(i,"each").call(n??(l.nullContext||{}),n!=null?e(n,"properties"):n,{name:"each",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:10,column:0},end:{line:20,column:9}}}))!=null?o:""},2:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return((o=s(i,"if").call(e,n!=null?s(n,"description"):n,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:11,column:0},end:{line:14,column:7}}}))!=null?o:"")+((o=s(i,"if").call(e,n!=null?s(n,"isNullable"):n,{name:"if",hash:{},fn:l.program(5,t,0),inverse:l.program(8,t,0),data:t,loc:{start:{line:15,column:0},end:{line:19,column:7}}}))!=null?o:"")},3:function(l,n,i,m,t){var o,e,s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return`
474
+ /** `+((o=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:13,column:8},end:{line:13,column:25}}}):e))!=null?o:"")+` */
475
+ `},5:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" var "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:16,column:8},end:{line:16,column:16}}}):e))+": "+((o=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:a,typeof e===u?e.call(s,{name:"type",hash:{},data:t,loc:{start:{line:16,column:18},end:{line:16,column:28}}}):e))!=null?o:"")+" = null"+((o=r(i,"unless").call(s,t&&r(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:16,column:35},end:{line:16,column:65}}}))!=null?o:"")+`
476
+ `},6:function(l,n,i,m,t){return", "},8:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" var "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:18,column:8},end:{line:18,column:16}}}):e))+": "+((o=(e=(e=r(i,"type")||(n!=null?r(n,"type"):n))!=null?e:a,typeof e===u?e.call(s,{name:"type",hash:{},data:t,loc:{start:{line:18,column:18},end:{line:18,column:28}}}):e))!=null?o:"")+((o=r(i,"unless").call(s,t&&r(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:18,column:28},end:{line:18,column:58}}}))!=null?o:"")+`
477
+ `},10:function(l,n,i,m,t,o,e){var s,a,u=n??(l.nullContext||{}),r=l.hooks.helperMissing,c="function",f=l.escapeExpression,y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+f((a=(a=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?a:r,typeof a===c?a.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:25,column:8},end:{line:25,column:18}}}):a))+`val payload = HashMap<String, Any?>()
478
+ `+((s=y(i,"each").call(u,n!=null?y(n,"properties"):n,{name:"each",hash:{},fn:l.program(11,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:26,column:0},end:{line:71,column:9}}}))!=null?s:"")+" "+f((a=(a=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?a:r,typeof a===c?a.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:72,column:8},end:{line:72,column:18}}}):a))+`return payload
479
+ `},11:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isNullable"):n,{name:"if",hash:{},fn:l.program(12,t,0,o,e),inverse:l.program(41,t,0,o,e),data:t,loc:{start:{line:27,column:0},end:{line:70,column:7}}}))!=null?s:""},12:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isOptional"):n,{name:"if",hash:{},fn:l.program(13,t,0,o,e),inverse:l.program(27,t,0,o,e),data:t,loc:{start:{line:28,column:0},end:{line:55,column:7}}}))!=null?s:""},13:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(14,t,0,o,e),inverse:l.program(16,t,0,o,e),data:t,loc:{start:{line:29,column:0},end:{line:40,column:7}}}))!=null?s:""},14:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:31,column:21},end:{line:31,column:29}}}):a))+'?.let { payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:31,column:46},end:{line:31,column:60}}}):a))!=null?s:"")+`"] = it.map { e -> e.string } }
480
+ `},16:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(17,t,0,o,e),inverse:l.program(19,t,0,o,e),data:t,loc:{start:{line:32,column:0},end:{line:40,column:0}}}))!=null?s:""},17:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:33,column:21},end:{line:33,column:29}}}):a))+'?.let { payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:33,column:46},end:{line:33,column:60}}}):a))!=null?s:"")+`"] = it.map { e -> e.payload } }
481
+ `},19:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(20,t,0,o,e),inverse:l.program(22,t,0,o,e),data:t,loc:{start:{line:34,column:0},end:{line:40,column:0}}}))!=null?s:""},20:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:35,column:21},end:{line:35,column:29}}}):a))+'?.let { payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:35,column:46},end:{line:35,column:60}}}):a))!=null?s:"")+`"] = it.string }
482
+ `},22:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isObject"):n,{name:"if",hash:{},fn:l.program(23,t,0,o,e),inverse:l.program(25,t,0,o,e),data:t,loc:{start:{line:36,column:0},end:{line:40,column:0}}}))!=null?s:""},23:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:37,column:21},end:{line:37,column:29}}}):a))+'?.let { payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:37,column:46},end:{line:37,column:60}}}):a))!=null?s:"")+`"] = it.payload }
483
+ `},25:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:39,column:21},end:{line:39,column:29}}}):a))+'?.let { payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:39,column:46},end:{line:39,column:60}}}):a))!=null?s:"")+`"] = it }
484
+ `},27:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(28,t,0,o,e),inverse:l.program(30,t,0,o,e),data:t,loc:{start:{line:43,column:0},end:{line:54,column:7}}}))!=null?s:""},28:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:45,column:30},end:{line:45,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:45,column:49},end:{line:45,column:57}}}):a))+`?.map { e -> e.string }
485
+ `},30:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(31,t,0,o,e),inverse:l.program(33,t,0,o,e),data:t,loc:{start:{line:46,column:0},end:{line:54,column:0}}}))!=null?s:""},31:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:47,column:30},end:{line:47,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:47,column:49},end:{line:47,column:57}}}):a))+`?.map { e -> e.payload }
486
+ `},33:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(34,t,0,o,e),inverse:l.program(36,t,0,o,e),data:t,loc:{start:{line:48,column:0},end:{line:54,column:0}}}))!=null?s:""},34:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:49,column:30},end:{line:49,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:49,column:49},end:{line:49,column:57}}}):a))+`?.string
487
+ `},36:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isObject"):n,{name:"if",hash:{},fn:l.program(37,t,0,o,e),inverse:l.program(39,t,0,o,e),data:t,loc:{start:{line:50,column:0},end:{line:54,column:0}}}))!=null?s:""},37:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:51,column:30},end:{line:51,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:51,column:49},end:{line:51,column:57}}}):a))+`?.payload
488
+ `},39:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:53,column:30},end:{line:53,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:53,column:49},end:{line:53,column:57}}}):a))+`
489
+ `},41:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(42,t,0,o,e),inverse:l.program(44,t,0,o,e),data:t,loc:{start:{line:58,column:0},end:{line:69,column:7}}}))!=null?s:""},42:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:60,column:30},end:{line:60,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:60,column:49},end:{line:60,column:57}}}):a))+`.map { e -> e.string }
490
+ `},44:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(45,t,0,o,e),inverse:l.program(47,t,0,o,e),data:t,loc:{start:{line:61,column:0},end:{line:69,column:0}}}))!=null?s:""},45:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:62,column:30},end:{line:62,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:62,column:49},end:{line:62,column:57}}}):a))+`.map { e -> e.payload }
491
+ `},47:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(48,t,0,o,e),inverse:l.program(50,t,0,o,e),data:t,loc:{start:{line:63,column:0},end:{line:69,column:0}}}))!=null?s:""},48:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:64,column:30},end:{line:64,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:64,column:49},end:{line:64,column:57}}}):a))+`.string
492
+ `},50:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isObject"):n,{name:"if",hash:{},fn:l.program(51,t,0,o,e),inverse:l.program(39,t,0,o,e),data:t,loc:{start:{line:65,column:0},end:{line:69,column:0}}}))!=null?s:""},51:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:66,column:30},end:{line:66,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:66,column:49},end:{line:66,column:57}}}):a))+`.payload
493
+ `},53:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`/**
494
+ `+((o=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(54,t,0),inverse:l.noop,data:t,loc:{start:{line:78,column:0},end:{line:80,column:7}}}))!=null?o:"")+"* Schema: `"+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:81,column:11},end:{line:81,column:22}}}):e))+"`\n*\n* Example:\n* ```kotlin\n* val data = "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:85,column:13},end:{line:85,column:25}}}):e))+`(
495
+ `+((o=c(i,"each").call(s,n!=null?c(n,"properties"):n,{name:"each",hash:{},fn:l.program(56,t,0),inverse:l.noop,data:t,loc:{start:{line:86,column:0},end:{line:88,column:9}}}))!=null?o:"")+`* )
443
496
  * // Track as an event
444
497
  * Snowplow.defaultTracker?.track(data.toEvent())
445
498
  * // Add as an entity to another event
@@ -448,13 +501,13 @@ interface CommonEventProperties<T = Record<string, unknown>> {
448
501
  * Snowplow.defaultTracker?.track(event)
449
502
  * \`\`\`
450
503
  */
451
- data class `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:98,column:11},end:{line:98,column:23}}}):e))+`(
452
- `+((a=l.invokePartial(c(m,"classProperties"),n,{name:"classProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+`) {
453
- private val schema = "`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:101,column:26},end:{line:101,column:37}}}):e))+`"
504
+ data class `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:98,column:11},end:{line:98,column:23}}}):e))+`(
505
+ `+((o=l.invokePartial(c(m,"classProperties"),n,{name:"classProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+`) {
506
+ private val schema = "`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:101,column:26},end:{line:101,column:37}}}):e))+`"
454
507
 
455
508
  private val payload: Map<String, Any?>
456
509
  get() {
457
- `+((a=l.invokePartial(c(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,indent:" ",helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+` }
510
+ `+((o=l.invokePartial(c(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,indent:" ",helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+` }
458
511
 
459
512
  /** Creates an event instance to be tracked by the tracker. */
460
513
  fun toEvent() : SelfDescribing {
@@ -467,48 +520,48 @@ data class `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typ
467
520
  }
468
521
  }
469
522
 
470
- `},54:function(l,n,i,m,t){var a,e,s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return"* "+((a=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:79,column:2},end:{line:79,column:19}}}):e))!=null?a:"")+`
471
- `},56:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return"* "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:87,column:6},end:{line:87,column:14}}}):e))+" = "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:87,column:17},end:{line:87,column:25}}}):e))+((a=c(i,"unless").call(s,t&&c(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:87,column:25},end:{line:87,column:55}}}))!=null?a:"")+`
472
- `},58:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`
523
+ `},54:function(l,n,i,m,t){var o,e,s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return"* "+((o=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:79,column:2},end:{line:79,column:19}}}):e))!=null?o:"")+`
524
+ `},56:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return"* "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:87,column:6},end:{line:87,column:14}}}):e))+" = "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:87,column:17},end:{line:87,column:25}}}):e))+((o=c(i,"unless").call(s,t&&c(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:87,column:25},end:{line:87,column:55}}}))!=null?o:"")+`
525
+ `},58:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`
473
526
 
474
- `+((a=o(i,"if").call(s,n!=null?o(n,"description"):n,{name:"if",hash:{},fn:l.program(59,t,0),inverse:l.noop,data:t,loc:{start:{line:166,column:0},end:{line:170,column:7}}}))!=null?a:"")+"data class "+l.escapeExpression((e=(e=o(i,"typeName")||(n!=null?o(n,"typeName"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:171,column:11},end:{line:171,column:23}}}):e))+`(
475
- `+((a=l.invokePartial(o(m,"classProperties"),n,{name:"classProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+`) {
527
+ `+((o=a(i,"if").call(s,n!=null?a(n,"description"):n,{name:"if",hash:{},fn:l.program(59,t,0),inverse:l.noop,data:t,loc:{start:{line:166,column:0},end:{line:170,column:7}}}))!=null?o:"")+"data class "+l.escapeExpression((e=(e=a(i,"typeName")||(n!=null?a(n,"typeName"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:171,column:11},end:{line:171,column:23}}}):e))+`(
528
+ `+((o=l.invokePartial(a(m,"classProperties"),n,{name:"classProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+`) {
476
529
  val payload: Map<String, Any?>
477
530
  get() {
478
- `+((a=l.invokePartial(o(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,indent:" ",helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+` }
531
+ `+((o=l.invokePartial(a(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,indent:" ",helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+` }
479
532
  }
480
- `},59:function(l,n,i,m,t){var a,e,s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return`/**
481
- * `+((a=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:168,column:2},end:{line:168,column:19}}}):e))!=null?a:"")+`
533
+ `},59:function(l,n,i,m,t){var o,e,s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return`/**
534
+ * `+((o=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:168,column:2},end:{line:168,column:19}}}):e))!=null?o:"")+`
482
535
  */
483
- `},61:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`
484
- `+((a=o(i,"if").call(s,n!=null?o(n,"description"):n,{name:"if",hash:{},fn:l.program(59,t,0),inverse:l.noop,data:t,loc:{start:{line:183,column:0},end:{line:187,column:7}}}))!=null?a:"")+"enum class "+l.escapeExpression((e=(e=o(i,"name")||(n!=null?o(n,"name"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:188,column:11},end:{line:188,column:19}}}):e))+`(val string: String) {
485
- `+((a=o(i,"each").call(s,n!=null?o(n,"cases"):n,{name:"each",hash:{},fn:l.program(62,t,0),inverse:l.noop,data:t,loc:{start:{line:189,column:0},end:{line:191,column:9}}}))!=null?a:"")+`}
486
- `},62:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:190,column:4},end:{line:190,column:12}}}):e))+'("'+((a=(e=(e=r(i,"jsonName")||(n!=null?r(n,"jsonName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"jsonName",hash:{},data:t,loc:{start:{line:190,column:14},end:{line:190,column:28}}}):e))!=null?a:"")+'")'+((a=r(i,"unless").call(s,t&&r(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:190,column:30},end:{line:190,column:60}}}))!=null?a:"")+`
487
- `},64:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=n??(l.nullContext||{}),u=l.lookupProperty||function(r,c){if(Object.prototype.hasOwnProperty.call(r,c))return r[c]};return`
536
+ `},61:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return`
537
+ `+((o=a(i,"if").call(s,n!=null?a(n,"description"):n,{name:"if",hash:{},fn:l.program(59,t,0),inverse:l.noop,data:t,loc:{start:{line:183,column:0},end:{line:187,column:7}}}))!=null?o:"")+"enum class "+l.escapeExpression((e=(e=a(i,"name")||(n!=null?a(n,"name"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:188,column:11},end:{line:188,column:19}}}):e))+`(val string: String) {
538
+ `+((o=a(i,"each").call(s,n!=null?a(n,"cases"):n,{name:"each",hash:{},fn:l.program(62,t,0),inverse:l.noop,data:t,loc:{start:{line:189,column:0},end:{line:191,column:9}}}))!=null?o:"")+`}
539
+ `},62:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:190,column:4},end:{line:190,column:12}}}):e))+'("'+((o=(e=(e=r(i,"jsonName")||(n!=null?r(n,"jsonName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"jsonName",hash:{},data:t,loc:{start:{line:190,column:14},end:{line:190,column:28}}}):e))!=null?o:"")+'")'+((o=r(i,"unless").call(s,t&&r(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:190,column:30},end:{line:190,column:60}}}))!=null?o:"")+`
540
+ `},64:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=n??(l.nullContext||{}),u=l.lookupProperty||function(r,c){if(Object.prototype.hasOwnProperty.call(r,c))return r[c]};return`
488
541
  /**
489
- * Creates an event with entities for a `+s(e(n!=null?u(n,"name"):n,n))+` event specification.
490
- * `+s((u(i,"addEventSpecificationIdentifier")||n&&u(n,"addEventSpecificationIdentifier")||l.hooks.helperMissing).call(o,n!=null?u(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:200,column:2},end:{line:200,column:45}}}))+"\n* Example:\n* ```kotlin\n* val data = "+s(e(n!=null?u(n,"event"):n,n))+`(...)
491
- `+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(65,t,0),inverse:l.noop,data:t,loc:{start:{line:204,column:0},end:{line:206,column:9}}}))!=null?a:"")+"* val event = data.to"+s(e(n!=null?u(n,"name"):n,n))+"("+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(67,t,0),inverse:l.noop,data:t,loc:{start:{line:207,column:35},end:{line:207,column:110}}}))!=null?a:"")+`)
542
+ * Creates an event with entities for a `+s(e(n!=null?u(n,"generatedName"):n,n))+` event specification.
543
+ * `+s((u(i,"addEventSpecificationIdentifier")||n&&u(n,"addEventSpecificationIdentifier")||l.hooks.helperMissing).call(a,n!=null?u(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:200,column:2},end:{line:200,column:45}}}))+"\n* Example:\n* ```kotlin\n* val data = "+s(e(n!=null?u(n,"event"):n,n))+`(...)
544
+ `+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(65,t,0),inverse:l.noop,data:t,loc:{start:{line:204,column:0},end:{line:206,column:9}}}))!=null?o:"")+"* val event = data.to"+s(e(n!=null?u(n,"generatedName"):n,n))+"("+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(67,t,0),inverse:l.noop,data:t,loc:{start:{line:207,column:44},end:{line:207,column:119}}}))!=null?o:"")+`)
492
545
  * // Track as an event
493
546
  * Snowplow.defaultTracker?.track(event)
494
547
  * \`\`\`
495
548
  */
496
- fun `+s(e(n!=null?u(n,"event"):n,n))+".to"+s(e(n!=null?u(n,"name"):n,n))+"("+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(69,t,0),inverse:l.noop,data:t,loc:{start:{line:212,column:35},end:{line:212,column:122}}}))!=null?a:"")+`) : SelfDescribing {
549
+ fun `+s(e(n!=null?u(n,"event"):n,n))+".to"+s(e(n!=null?u(n,"generatedName"):n,n))+"("+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(69,t,0),inverse:l.noop,data:t,loc:{start:{line:212,column:44},end:{line:212,column:131}}}))!=null?o:"")+`) : SelfDescribing {
497
550
  val event = toEvent()
498
551
  val eventSpec = EventSpecification("`+s(e(n!=null?u(n,"id"):n,n))+`")
499
- `+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(71,t,0),inverse:l.noop,data:t,loc:{start:{line:215,column:0},end:{line:217,column:9}}}))!=null?a:"")+` event.entities.add(eventSpec.toEntity())
552
+ `+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(71,t,0),inverse:l.noop,data:t,loc:{start:{line:215,column:0},end:{line:217,column:9}}}))!=null?o:"")+` event.entities.add(eventSpec.toEntity())
500
553
  return event
501
554
  }
502
- `},65:function(l,n,i,m,t){var a=l.lambda,e=l.escapeExpression;return"* val data"+e(a(n,n))+" = "+e(a(n,n))+`(...)
503
- `},67:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return"data"+l.escapeExpression(l.lambda(n,n))+((a=e(i,"unless").call(n??(l.nullContext||{}),t&&e(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:207,column:71},end:{line:207,column:101}}}))!=null?a:"")},69:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return"entity"+s(e(n,n))+": "+s(e(n,n))+((a=o(i,"unless").call(n??(l.nullContext||{}),t&&o(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:212,column:83},end:{line:212,column:113}}}))!=null?a:"")},71:function(l,n,i,m,t){return" event.entities.add(entity"+l.escapeExpression(l.lambda(n,n))+`.toEntity())
504
- `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t,a,e){var s,o,u,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.hooks.blockHelperMissing,p=l.lookupProperty||function(w,D){if(Object.prototype.hasOwnProperty.call(w,D))return w[D]},g=`// Automatically generated by Snowtype
555
+ `},65:function(l,n,i,m,t){var o=l.lambda,e=l.escapeExpression;return"* val data"+e(o(n,n))+" = "+e(o(n,n))+`(...)
556
+ `},67:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return"data"+l.escapeExpression(l.lambda(n,n))+((o=e(i,"unless").call(n??(l.nullContext||{}),t&&e(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:207,column:80},end:{line:207,column:110}}}))!=null?o:"")},69:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return"entity"+s(e(n,n))+": "+s(e(n,n))+((o=a(i,"unless").call(n??(l.nullContext||{}),t&&a(t,"last"),{name:"unless",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:212,column:92},end:{line:212,column:122}}}))!=null?o:"")},71:function(l,n,i,m,t){return" event.entities.add(entity"+l.escapeExpression(l.lambda(n,n))+`.toEntity())
557
+ `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t,o,e){var s,a,u,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.hooks.blockHelperMissing,g=l.lookupProperty||function(w,D){if(Object.prototype.hasOwnProperty.call(w,D))return w[D]},p=`// Automatically generated by Snowtype
505
558
 
506
559
  package Snowtype
507
560
 
508
561
  import com.snowplowanalytics.snowplow.event.SelfDescribing
509
562
  import com.snowplowanalytics.snowplow.payload.SelfDescribingJson
510
563
 
511
- `;return s=(o=(o=p(i,"type")||(n!=null?p(n,"type"):n))!=null?o:c,u={name:"type",hash:{},fn:l.program(53,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:75,column:0},end:{line:119,column:9}}},typeof o===f?o.call(r,u):o),p(i,"type")||(s=y.call(n,s,u)),s!=null&&(g+=s),g+=`/**
564
+ `;return s=(a=(a=g(i,"type")||(n!=null?g(n,"type"):n))!=null?a:c,u={name:"type",hash:{},fn:l.program(53,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:75,column:0},end:{line:119,column:9}}},typeof a===f?a.call(r,u):a),g(i,"type")||(s=y.call(n,s,u)),s!=null&&(p+=s),p+=`/**
512
565
  * Entity schema for referencing an event specification
513
566
  * Schema: \`iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0\`
514
567
  *
@@ -549,29 +602,29 @@ data class EventSpecification(
549
602
  return SelfDescribingJson(schema, payload)
550
603
  }
551
604
  }
552
- `,s=(o=(o=p(i,"nestedTypes")||(n!=null?p(n,"nestedTypes"):n))!=null?o:c,u={name:"nestedTypes",hash:{},fn:l.program(58,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:162,column:0},end:{line:179,column:16}}},typeof o===f?o.call(r,u):o),p(i,"nestedTypes")||(s=y.call(n,s,u)),s!=null&&(g+=s),g+((s=p(i,"each").call(r,n!=null?p(n,"enums"):n,{name:"each",hash:{},fn:l.program(61,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:180,column:0},end:{line:193,column:9}}}))!=null?s:"")+((s=p(i,"each").call(r,n!=null?p(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(64,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:196,column:0},end:{line:221,column:9}}}))!=null?s:"")},main_d:function(l,n,i,m,t,a,e){var s=i.decorators,o=i.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return l=o(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(1,t,0,a,e),inverse:i.noop,args:["classProperties"],data:t,loc:{start:{line:8,column:0},end:{line:21,column:11}}})||l,l=o(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(10,t,0,a,e),inverse:i.noop,args:["createAndReturnPayloadDictionary"],data:t,loc:{start:{line:23,column:0},end:{line:73,column:11}}})||l,l},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0}});var $n=O((Te,Jn)=>{"use strict";Jn.exports={id:{language:"swift",tracker:"snowplow-ios-tracker"},1:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return(a=e(i,"each").call(n??(l.nullContext||{}),n!=null?e(n,"properties"):n,{name:"each",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:5,column:0},end:{line:10,column:9}}}))!=null?a:""},2:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return((a=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:6,column:0},end:{line:8,column:7}}}))!=null?a:"")+" var "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:9,column:8},end:{line:9,column:16}}}):e))+": "+r((e=(e=c(i,"type")||(n!=null?c(n,"type"):n))!=null?e:o,typeof e===u?e.call(s,{name:"type",hash:{},data:t,loc:{start:{line:9,column:18},end:{line:9,column:26}}}):e))+`
553
- `},3:function(l,n,i,m,t){var a,e,s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return" /// "+((a=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:7,column:8},end:{line:7,column:25}}}):e))!=null?a:"")+`
554
- `},5:function(l,n,i,m,t,a,e){var s,o,u=n??(l.nullContext||{}),r=l.hooks.helperMissing,c="function",f=l.escapeExpression,y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+f((o=(o=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?o:r,typeof o===c?o.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:14,column:8},end:{line:14,column:18}}}):o))+`var payload: [String : Any] = [:]
555
- `+((s=y(i,"each").call(u,n!=null?y(n,"properties"):n,{name:"each",hash:{},fn:l.program(6,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:15,column:0},end:{line:47,column:9}}}))!=null?s:"")+" "+f((o=(o=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?o:r,typeof o===c?o.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:48,column:8},end:{line:48,column:18}}}):o))+`return payload
556
- `},6:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isNullableOrOptional"):n,{name:"if",hash:{},fn:l.program(7,t,0,a,e),inverse:l.program(23,t,0,a,e),data:t,loc:{start:{line:16,column:0},end:{line:46,column:7}}}))!=null?s:""},7:function(l,n,i,m,t,a,e){var s,o,u=l.lambda,r=l.escapeExpression,c=n??(l.nullContext||{}),f=l.hooks.helperMissing,y="function",p=l.lookupProperty||function(g,w){if(Object.prototype.hasOwnProperty.call(g,w))return g[w]};return" "+r(u(e[1]!=null?p(e[1],"indent"):e[1],n))+"if let "+r((o=(o=p(i,"name")||(n!=null?p(n,"name"):n))!=null?o:f,typeof o===y?o.call(c,{name:"name",hash:{},data:t,loc:{start:{line:17,column:28},end:{line:17,column:36}}}):o))+" = "+r((o=(o=p(i,"name")||(n!=null?p(n,"name"):n))!=null?o:f,typeof o===y?o.call(c,{name:"name",hash:{},data:t,loc:{start:{line:17,column:39},end:{line:17,column:47}}}):o))+` {
557
- `+((s=p(i,"if").call(c,n!=null?p(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(8,t,0,a,e),inverse:l.program(10,t,0,a,e),data:t,loc:{start:{line:18,column:0},end:{line:28,column:7}}}))!=null?s:"")+((s=p(i,"unless").call(c,n!=null?p(n,"isOptional"):n,{name:"unless",hash:{},fn:l.program(21,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:29,column:0},end:{line:32,column:11}}}))!=null?s:"")+" "+r(u(e[1]!=null?p(e[1],"indent"):e[1],n))+` }
558
- `},8:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:19,column:34},end:{line:19,column:48}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:19,column:53},end:{line:19,column:61}}}):o))+`.map { $0.rawValue }
559
- `},10:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(11,t,0,a,e),inverse:l.program(13,t,0,a,e),data:t,loc:{start:{line:20,column:0},end:{line:28,column:0}}}))!=null?s:""},11:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:21,column:34},end:{line:21,column:48}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:21,column:53},end:{line:21,column:61}}}):o))+`.map { $0.payload }
560
- `},13:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(14,t,0,a,e),inverse:l.program(16,t,0,a,e),data:t,loc:{start:{line:22,column:0},end:{line:28,column:0}}}))!=null?s:""},14:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:23,column:34},end:{line:23,column:48}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:23,column:53},end:{line:23,column:61}}}):o))+`.rawValue
561
- `},16:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isObject"):n,{name:"if",hash:{},fn:l.program(17,t,0,a,e),inverse:l.program(19,t,0,a,e),data:t,loc:{start:{line:24,column:0},end:{line:28,column:0}}}))!=null?s:""},17:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:25,column:34},end:{line:25,column:48}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:25,column:53},end:{line:25,column:61}}}):o))+`.payload
562
- `},19:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:27,column:34},end:{line:27,column:48}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:27,column:53},end:{line:27,column:61}}}):o))+`
563
- `},21:function(l,n,i,m,t,a,e){var s,o,u=l.lambda,r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return" "+r(u(e[1]!=null?c(e[1],"indent"):e[1],n))+` } else {
564
- `+r(u(e[1]!=null?c(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=c(i,"jsonName")||(n!=null?c(n,"jsonName"):n))!=null?o:l.hooks.helperMissing,typeof o=="function"?o.call(n??(l.nullContext||{}),{name:"jsonName",hash:{},data:t,loc:{start:{line:31,column:34},end:{line:31,column:48}}}):o))!=null?s:"")+`"] = NSNull()
565
- `},23:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(24,t,0,a,e),inverse:l.program(26,t,0,a,e),data:t,loc:{start:{line:35,column:0},end:{line:45,column:7}}}))!=null?s:""},24:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:36,column:30},end:{line:36,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:36,column:49},end:{line:36,column:57}}}):o))+`.map { $0.rawValue }
566
- `},26:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(27,t,0,a,e),inverse:l.program(29,t,0,a,e),data:t,loc:{start:{line:37,column:0},end:{line:45,column:0}}}))!=null?s:""},27:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:38,column:30},end:{line:38,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:38,column:49},end:{line:38,column:57}}}):o))+`.map { $0.payload }
567
- `},29:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(30,t,0,a,e),inverse:l.program(32,t,0,a,e),data:t,loc:{start:{line:39,column:0},end:{line:45,column:0}}}))!=null?s:""},30:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:40,column:30},end:{line:40,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:40,column:49},end:{line:40,column:57}}}):o))+`.rawValue
568
- `},32:function(l,n,i,m,t,a,e){var s,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=o(i,"if").call(n??(l.nullContext||{}),n!=null?o(n,"isObject"):n,{name:"if",hash:{},fn:l.program(33,t,0,a,e),inverse:l.program(35,t,0,a,e),data:t,loc:{start:{line:41,column:0},end:{line:45,column:0}}}))!=null?s:""},33:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:42,column:30},end:{line:42,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:42,column:49},end:{line:42,column:57}}}):o))+`.payload
569
- `},35:function(l,n,i,m,t,a,e){var s,o,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(p,g){if(Object.prototype.hasOwnProperty.call(p,g))return p[g]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(o=(o=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?o:c,typeof o===f?o.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:44,column:30},end:{line:44,column:44}}}):o))!=null?s:"")+'"] = '+u((o=(o=y(i,"name")||(n!=null?y(n,"name"):n))!=null?o:c,typeof o===f?o.call(r,{name:"name",hash:{},data:t,loc:{start:{line:44,column:49},end:{line:44,column:57}}}):o))+`
570
- `},37:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
571
- // MARK: - `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:54,column:11},end:{line:54,column:23}}}):e))+`
572
-
573
- `+((a=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(38,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:0},end:{line:58,column:7}}}))!=null?a:"")+"/// Schema: `"+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:59,column:13},end:{line:59,column:24}}}):e))+"`\n///\n/// Example:\n/// ```swift\n/// let data = "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:63,column:15},end:{line:63,column:27}}}):e))+`(
574
- `+((a=c(i,"each").call(s,n!=null?c(n,"properties"):n,{name:"each",hash:{},fn:l.program(40,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:0},end:{line:66,column:9}}}))!=null?a:"")+`/// )
605
+ `,s=(a=(a=g(i,"nestedTypes")||(n!=null?g(n,"nestedTypes"):n))!=null?a:c,u={name:"nestedTypes",hash:{},fn:l.program(58,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:162,column:0},end:{line:179,column:16}}},typeof a===f?a.call(r,u):a),g(i,"nestedTypes")||(s=y.call(n,s,u)),s!=null&&(p+=s),p+((s=g(i,"each").call(r,n!=null?g(n,"enums"):n,{name:"each",hash:{},fn:l.program(61,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:180,column:0},end:{line:193,column:9}}}))!=null?s:"")+((s=g(i,"each").call(r,n!=null?g(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(64,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:196,column:0},end:{line:221,column:9}}}))!=null?s:"")},main_d:function(l,n,i,m,t,o,e){var s=i.decorators,a=i.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return l=a(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(1,t,0,o,e),inverse:i.noop,args:["classProperties"],data:t,loc:{start:{line:8,column:0},end:{line:21,column:11}}})||l,l=a(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(10,t,0,o,e),inverse:i.noop,args:["createAndReturnPayloadDictionary"],data:t,loc:{start:{line:23,column:0},end:{line:73,column:11}}})||l,l},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0}});var $n=O((je,Jn)=>{"use strict";Jn.exports={id:{language:"swift",tracker:"snowplow-ios-tracker"},1:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return(o=e(i,"each").call(n??(l.nullContext||{}),n!=null?e(n,"properties"):n,{name:"each",hash:{},fn:l.program(2,t,0),inverse:l.noop,data:t,loc:{start:{line:5,column:0},end:{line:10,column:9}}}))!=null?o:""},2:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return((o=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:6,column:0},end:{line:8,column:7}}}))!=null?o:"")+" var "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:9,column:8},end:{line:9,column:16}}}):e))+": "+r((e=(e=c(i,"type")||(n!=null?c(n,"type"):n))!=null?e:a,typeof e===u?e.call(s,{name:"type",hash:{},data:t,loc:{start:{line:9,column:18},end:{line:9,column:26}}}):e))+`
606
+ `},3:function(l,n,i,m,t){var o,e,s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return" /// "+((o=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:7,column:8},end:{line:7,column:25}}}):e))!=null?o:"")+`
607
+ `},5:function(l,n,i,m,t,o,e){var s,a,u=n??(l.nullContext||{}),r=l.hooks.helperMissing,c="function",f=l.escapeExpression,y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+f((a=(a=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?a:r,typeof a===c?a.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:14,column:8},end:{line:14,column:18}}}):a))+`var payload: [String : Any] = [:]
608
+ `+((s=y(i,"each").call(u,n!=null?y(n,"properties"):n,{name:"each",hash:{},fn:l.program(6,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:15,column:0},end:{line:47,column:9}}}))!=null?s:"")+" "+f((a=(a=y(i,"indent")||(n!=null?y(n,"indent"):n))!=null?a:r,typeof a===c?a.call(u,{name:"indent",hash:{},data:t,loc:{start:{line:48,column:8},end:{line:48,column:18}}}):a))+`return payload
609
+ `},6:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isNullableOrOptional"):n,{name:"if",hash:{},fn:l.program(7,t,0,o,e),inverse:l.program(23,t,0,o,e),data:t,loc:{start:{line:16,column:0},end:{line:46,column:7}}}))!=null?s:""},7:function(l,n,i,m,t,o,e){var s,a,u=l.lambda,r=l.escapeExpression,c=n??(l.nullContext||{}),f=l.hooks.helperMissing,y="function",g=l.lookupProperty||function(p,w){if(Object.prototype.hasOwnProperty.call(p,w))return p[w]};return" "+r(u(e[1]!=null?g(e[1],"indent"):e[1],n))+"if let "+r((a=(a=g(i,"name")||(n!=null?g(n,"name"):n))!=null?a:f,typeof a===y?a.call(c,{name:"name",hash:{},data:t,loc:{start:{line:17,column:28},end:{line:17,column:36}}}):a))+" = "+r((a=(a=g(i,"name")||(n!=null?g(n,"name"):n))!=null?a:f,typeof a===y?a.call(c,{name:"name",hash:{},data:t,loc:{start:{line:17,column:39},end:{line:17,column:47}}}):a))+` {
610
+ `+((s=g(i,"if").call(c,n!=null?g(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(8,t,0,o,e),inverse:l.program(10,t,0,o,e),data:t,loc:{start:{line:18,column:0},end:{line:28,column:7}}}))!=null?s:"")+((s=g(i,"unless").call(c,n!=null?g(n,"isOptional"):n,{name:"unless",hash:{},fn:l.program(21,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:29,column:0},end:{line:32,column:11}}}))!=null?s:"")+" "+r(u(e[1]!=null?g(e[1],"indent"):e[1],n))+` }
611
+ `},8:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:19,column:34},end:{line:19,column:48}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:19,column:53},end:{line:19,column:61}}}):a))+`.map { $0.rawValue }
612
+ `},10:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(11,t,0,o,e),inverse:l.program(13,t,0,o,e),data:t,loc:{start:{line:20,column:0},end:{line:28,column:0}}}))!=null?s:""},11:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:21,column:34},end:{line:21,column:48}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:21,column:53},end:{line:21,column:61}}}):a))+`.map { $0.payload }
613
+ `},13:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(14,t,0,o,e),inverse:l.program(16,t,0,o,e),data:t,loc:{start:{line:22,column:0},end:{line:28,column:0}}}))!=null?s:""},14:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:23,column:34},end:{line:23,column:48}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:23,column:53},end:{line:23,column:61}}}):a))+`.rawValue
614
+ `},16:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isObject"):n,{name:"if",hash:{},fn:l.program(17,t,0,o,e),inverse:l.program(19,t,0,o,e),data:t,loc:{start:{line:24,column:0},end:{line:28,column:0}}}))!=null?s:""},17:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:25,column:34},end:{line:25,column:48}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:25,column:53},end:{line:25,column:61}}}):a))+`.payload
615
+ `},19:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:27,column:34},end:{line:27,column:48}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:27,column:53},end:{line:27,column:61}}}):a))+`
616
+ `},21:function(l,n,i,m,t,o,e){var s,a,u=l.lambda,r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return" "+r(u(e[1]!=null?c(e[1],"indent"):e[1],n))+` } else {
617
+ `+r(u(e[1]!=null?c(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=c(i,"jsonName")||(n!=null?c(n,"jsonName"):n))!=null?a:l.hooks.helperMissing,typeof a=="function"?a.call(n??(l.nullContext||{}),{name:"jsonName",hash:{},data:t,loc:{start:{line:31,column:34},end:{line:31,column:48}}}):a))!=null?s:"")+`"] = NSNull()
618
+ `},23:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfEnums"):n,{name:"if",hash:{},fn:l.program(24,t,0,o,e),inverse:l.program(26,t,0,o,e),data:t,loc:{start:{line:35,column:0},end:{line:45,column:7}}}))!=null?s:""},24:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:36,column:30},end:{line:36,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:36,column:49},end:{line:36,column:57}}}):a))+`.map { $0.rawValue }
619
+ `},26:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isArrayOfObjects"):n,{name:"if",hash:{},fn:l.program(27,t,0,o,e),inverse:l.program(29,t,0,o,e),data:t,loc:{start:{line:37,column:0},end:{line:45,column:0}}}))!=null?s:""},27:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:38,column:30},end:{line:38,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:38,column:49},end:{line:38,column:57}}}):a))+`.map { $0.payload }
620
+ `},29:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isEnum"):n,{name:"if",hash:{},fn:l.program(30,t,0,o,e),inverse:l.program(32,t,0,o,e),data:t,loc:{start:{line:39,column:0},end:{line:45,column:0}}}))!=null?s:""},30:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:40,column:30},end:{line:40,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:40,column:49},end:{line:40,column:57}}}):a))+`.rawValue
621
+ `},32:function(l,n,i,m,t,o,e){var s,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return(s=a(i,"if").call(n??(l.nullContext||{}),n!=null?a(n,"isObject"):n,{name:"if",hash:{},fn:l.program(33,t,0,o,e),inverse:l.program(35,t,0,o,e),data:t,loc:{start:{line:41,column:0},end:{line:45,column:0}}}))!=null?s:""},33:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:42,column:30},end:{line:42,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:42,column:49},end:{line:42,column:57}}}):a))+`.payload
622
+ `},35:function(l,n,i,m,t,o,e){var s,a,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.lookupProperty||function(g,p){if(Object.prototype.hasOwnProperty.call(g,p))return g[p]};return" "+u(l.lambda(e[1]!=null?y(e[1],"indent"):e[1],n))+'payload["'+((s=(a=(a=y(i,"jsonName")||(n!=null?y(n,"jsonName"):n))!=null?a:c,typeof a===f?a.call(r,{name:"jsonName",hash:{},data:t,loc:{start:{line:44,column:30},end:{line:44,column:44}}}):a))!=null?s:"")+'"] = '+u((a=(a=y(i,"name")||(n!=null?y(n,"name"):n))!=null?a:c,typeof a===f?a.call(r,{name:"name",hash:{},data:t,loc:{start:{line:44,column:49},end:{line:44,column:57}}}):a))+`
623
+ `},37:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
624
+ // MARK: - `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:54,column:11},end:{line:54,column:23}}}):e))+`
625
+
626
+ `+((o=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(38,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:0},end:{line:58,column:7}}}))!=null?o:"")+"/// Schema: `"+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:59,column:13},end:{line:59,column:24}}}):e))+"`\n///\n/// Example:\n/// ```swift\n/// let data = "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:63,column:15},end:{line:63,column:27}}}):e))+`(
627
+ `+((o=c(i,"each").call(s,n!=null?c(n,"properties"):n,{name:"each",hash:{},fn:l.program(40,t,0),inverse:l.noop,data:t,loc:{start:{line:64,column:0},end:{line:66,column:9}}}))!=null?o:"")+`/// )
575
628
  /// // Track as an event
576
629
  /// Snowplow.defaultTracker()?.track(data.toEvent())
577
630
  /// // Add as an entity to another event
@@ -579,15 +632,15 @@ data class EventSpecification(
579
632
  /// event.entities.append(data.toEntity())
580
633
  /// Snowplow.defaultTracker()?.track(event)
581
634
  /// \`\`\`
582
- struct `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:75,column:7},end:{line:75,column:19}}}):e))+` {
635
+ struct `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:75,column:7},end:{line:75,column:19}}}):e))+` {
583
636
 
584
- `+((a=l.invokePartial(c(m,"structProperties"),n,{name:"structProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+`
637
+ `+((o=l.invokePartial(c(m,"structProperties"),n,{name:"structProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+`
585
638
  private var schema: String {
586
- return "`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:o,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:80,column:16},end:{line:80,column:27}}}):e))+`"
639
+ return "`+r((e=(e=c(i,"igluUrl")||(n!=null?c(n,"igluUrl"):n))!=null?e:a,typeof e===u?e.call(s,{name:"igluUrl",hash:{},data:t,loc:{start:{line:80,column:16},end:{line:80,column:27}}}):e))+`"
587
640
  }
588
641
 
589
642
  private var payload: [String : Any] {
590
- `+((a=l.invokePartial(c(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+` }
643
+ `+((o=l.invokePartial(c(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+` }
591
644
 
592
645
  /// Creates an event instance to be tracked by the tracker.
593
646
  func toEvent() -> SelfDescribing {
@@ -600,45 +653,45 @@ struct `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof
600
653
  }
601
654
 
602
655
  }
603
- `},38:function(l,n,i,m,t){var a,e,s=l.lookupProperty||function(o,u){if(Object.prototype.hasOwnProperty.call(o,u))return o[u]};return"/// "+((a=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:57,column:4},end:{line:57,column:21}}}):e))!=null?a:"")+`
604
- `},40:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return"/// "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:65,column:8},end:{line:65,column:16}}}):e))+": "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:65,column:18},end:{line:65,column:26}}}):e))+((a=c(i,"unless").call(s,t&&c(t,"last"),{name:"unless",hash:{},fn:l.program(41,t,0),inverse:l.noop,data:t,loc:{start:{line:65,column:26},end:{line:65,column:56}}}))!=null?a:"")+`
605
- `},41:function(l,n,i,m,t){return", "},43:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
606
- // MARK: - `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:147,column:11},end:{line:147,column:23}}}):e))+`
656
+ `},38:function(l,n,i,m,t){var o,e,s=l.lookupProperty||function(a,u){if(Object.prototype.hasOwnProperty.call(a,u))return a[u]};return"/// "+((o=(e=(e=s(i,"description")||(n!=null?s(n,"description"):n))!=null?e:l.hooks.helperMissing,typeof e=="function"?e.call(n??(l.nullContext||{}),{name:"description",hash:{},data:t,loc:{start:{line:57,column:4},end:{line:57,column:21}}}):e))!=null?o:"")+`
657
+ `},40:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return"/// "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:65,column:8},end:{line:65,column:16}}}):e))+": "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:65,column:18},end:{line:65,column:26}}}):e))+((o=c(i,"unless").call(s,t&&c(t,"last"),{name:"unless",hash:{},fn:l.program(41,t,0),inverse:l.noop,data:t,loc:{start:{line:65,column:26},end:{line:65,column:56}}}))!=null?o:"")+`
658
+ `},41:function(l,n,i,m,t){return", "},43:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
659
+ // MARK: - `+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:147,column:11},end:{line:147,column:23}}}):e))+`
607
660
 
608
- `+((a=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(38,t,0),inverse:l.noop,data:t,loc:{start:{line:149,column:0},end:{line:151,column:7}}}))!=null?a:"")+"struct "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:152,column:7},end:{line:152,column:19}}}):e))+` {
661
+ `+((o=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(38,t,0),inverse:l.noop,data:t,loc:{start:{line:149,column:0},end:{line:151,column:7}}}))!=null?o:"")+"struct "+r((e=(e=c(i,"typeName")||(n!=null?c(n,"typeName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"typeName",hash:{},data:t,loc:{start:{line:152,column:7},end:{line:152,column:19}}}):e))+` {
609
662
 
610
- `+((a=l.invokePartial(c(m,"structProperties"),n,{name:"structProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+`
663
+ `+((o=l.invokePartial(c(m,"structProperties"),n,{name:"structProperties",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+`
611
664
  var payload: [String : Any] {
612
- `+((a=l.invokePartial(c(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?a:"")+` }
665
+ `+((o=l.invokePartial(c(m,"createAndReturnPayloadDictionary"),n,{name:"createAndReturnPayloadDictionary",data:t,helpers:i,partials:m,decorators:l.decorators}))!=null?o:"")+` }
613
666
 
614
667
  }
615
- `},45:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
616
- // MARK: - `+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:165,column:11},end:{line:165,column:19}}}):e))+`
668
+ `},45:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.escapeExpression,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
669
+ // MARK: - `+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:165,column:11},end:{line:165,column:19}}}):e))+`
617
670
 
618
- `+((a=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(38,t,0),inverse:l.noop,data:t,loc:{start:{line:167,column:0},end:{line:169,column:7}}}))!=null?a:"")+"enum "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:170,column:5},end:{line:170,column:13}}}):e))+`: String {
619
- `+((a=c(i,"each").call(s,n!=null?c(n,"cases"):n,{name:"each",hash:{},fn:l.program(46,t,0),inverse:l.noop,data:t,loc:{start:{line:171,column:0},end:{line:173,column:9}}}))!=null?a:"")+`}
620
- `},46:function(l,n,i,m,t){var a,e,s=n??(l.nullContext||{}),o=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" case "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:o,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:172,column:9},end:{line:172,column:17}}}):e))+' = "'+((a=(e=(e=r(i,"jsonName")||(n!=null?r(n,"jsonName"):n))!=null?e:o,typeof e===u?e.call(s,{name:"jsonName",hash:{},data:t,loc:{start:{line:172,column:21},end:{line:172,column:35}}}):e))!=null?a:"")+`"
621
- `},48:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=n??(l.nullContext||{}),u=l.lookupProperty||function(r,c){if(Object.prototype.hasOwnProperty.call(r,c))return r[c]};return`
671
+ `+((o=c(i,"if").call(s,n!=null?c(n,"description"):n,{name:"if",hash:{},fn:l.program(38,t,0),inverse:l.noop,data:t,loc:{start:{line:167,column:0},end:{line:169,column:7}}}))!=null?o:"")+"enum "+r((e=(e=c(i,"name")||(n!=null?c(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:170,column:5},end:{line:170,column:13}}}):e))+`: String {
672
+ `+((o=c(i,"each").call(s,n!=null?c(n,"cases"):n,{name:"each",hash:{},fn:l.program(46,t,0),inverse:l.noop,data:t,loc:{start:{line:171,column:0},end:{line:173,column:9}}}))!=null?o:"")+`}
673
+ `},46:function(l,n,i,m,t){var o,e,s=n??(l.nullContext||{}),a=l.hooks.helperMissing,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return" case "+l.escapeExpression((e=(e=r(i,"name")||(n!=null?r(n,"name"):n))!=null?e:a,typeof e===u?e.call(s,{name:"name",hash:{},data:t,loc:{start:{line:172,column:9},end:{line:172,column:17}}}):e))+' = "'+((o=(e=(e=r(i,"jsonName")||(n!=null?r(n,"jsonName"):n))!=null?e:a,typeof e===u?e.call(s,{name:"jsonName",hash:{},data:t,loc:{start:{line:172,column:21},end:{line:172,column:35}}}):e))!=null?o:"")+`"
674
+ `},48:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=n??(l.nullContext||{}),u=l.lookupProperty||function(r,c){if(Object.prototype.hasOwnProperty.call(r,c))return r[c]};return`
622
675
  extension `+s(e(n!=null?u(n,"event"):n,n))+` {
623
- /// Creates an event with entities for a `+s(e(n!=null?u(n,"name"):n,n))+` event specification.
624
- /// `+s((u(i,"addEventSpecificationIdentifier")||n&&u(n,"addEventSpecificationIdentifier")||l.hooks.helperMissing).call(o,n!=null?u(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:180,column:8},end:{line:180,column:51}}}))+"\n /// Example:\n /// ```swift\n /// let data = "+s(e(n!=null?u(n,"event"):n,n))+`(...)
625
- `+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(49,t,0),inverse:l.noop,data:t,loc:{start:{line:184,column:0},end:{line:186,column:9}}}))!=null?a:"")+" /// let event = data.to"+s(e(n!=null?u(n,"name"):n,n))+"("+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(51,t,0),inverse:l.noop,data:t,loc:{start:{line:187,column:41},end:{line:187,column:116}}}))!=null?a:"")+`)
676
+ /// Creates an event with entities for a `+s(e(n!=null?u(n,"generatedName"):n,n))+` event specification.
677
+ /// `+s((u(i,"addEventSpecificationIdentifier")||n&&u(n,"addEventSpecificationIdentifier")||l.hooks.helperMissing).call(a,n!=null?u(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:180,column:8},end:{line:180,column:51}}}))+"\n /// Example:\n /// ```swift\n /// let data = "+s(e(n!=null?u(n,"event"):n,n))+`(...)
678
+ `+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(49,t,0),inverse:l.noop,data:t,loc:{start:{line:184,column:0},end:{line:186,column:9}}}))!=null?o:"")+" /// let event = data.to"+s(e(n!=null?u(n,"generatedName"):n,n))+"("+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(51,t,0),inverse:l.noop,data:t,loc:{start:{line:187,column:50},end:{line:187,column:125}}}))!=null?o:"")+`)
626
679
  /// // Track as an event
627
680
  /// Snowplow.defaultTracker()?.track(event)
628
681
  /// \`\`\`
629
- func to`+s(e(n!=null?u(n,"name"):n,n))+"("+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(53,t,0),inverse:l.noop,data:t,loc:{start:{line:191,column:25},end:{line:191,column:114}}}))!=null?a:"")+`) -> SelfDescribing {
682
+ func to`+s(e(n!=null?u(n,"generatedName"):n,n))+"("+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(53,t,0),inverse:l.noop,data:t,loc:{start:{line:191,column:34},end:{line:191,column:123}}}))!=null?o:"")+`) -> SelfDescribing {
630
683
  let event = toEvent()
631
684
  let eventSpec = EventSpecification(id: "`+s(e(n!=null?u(n,"id"):n,n))+`")
632
- `+((a=u(i,"each").call(o,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(55,t,0),inverse:l.noop,data:t,loc:{start:{line:194,column:0},end:{line:196,column:9}}}))!=null?a:"")+` event.entities.append(eventSpec.toEntity())
685
+ `+((o=u(i,"each").call(a,n!=null?u(n,"entities"):n,{name:"each",hash:{},fn:l.program(55,t,0),inverse:l.noop,data:t,loc:{start:{line:194,column:0},end:{line:196,column:9}}}))!=null?o:"")+` event.entities.append(eventSpec.toEntity())
633
686
  return event
634
687
  }
635
688
  }
636
- `},49:function(l,n,i,m,t){var a=l.lambda,e=l.escapeExpression;return" /// let data"+e(a(n,n))+" = "+e(a(n,n))+`(...)
637
- `},51:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return"data"+l.escapeExpression(l.lambda(n,n))+((a=e(i,"unless").call(n??(l.nullContext||{}),t&&e(t,"last"),{name:"unless",hash:{},fn:l.program(41,t,0),inverse:l.noop,data:t,loc:{start:{line:187,column:77},end:{line:187,column:107}}}))!=null?a:"")},53:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return"_ entity"+s(e(n,n))+": "+s(e(n,n))+((a=o(i,"unless").call(n??(l.nullContext||{}),t&&o(t,"last"),{name:"unless",hash:{},fn:l.program(41,t,0),inverse:l.noop,data:t,loc:{start:{line:191,column:75},end:{line:191,column:105}}}))!=null?a:"")},55:function(l,n,i,m,t){return" event.entities.append(entity"+l.escapeExpression(l.lambda(n,n))+`.toEntity())
638
- `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t,a,e){var s,o,u,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.hooks.blockHelperMissing,p=l.lookupProperty||function(w,D){if(Object.prototype.hasOwnProperty.call(w,D))return w[D]},g=`import Foundation
689
+ `},49:function(l,n,i,m,t){var o=l.lambda,e=l.escapeExpression;return" /// let data"+e(o(n,n))+" = "+e(o(n,n))+`(...)
690
+ `},51:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return"data"+l.escapeExpression(l.lambda(n,n))+((o=e(i,"unless").call(n??(l.nullContext||{}),t&&e(t,"last"),{name:"unless",hash:{},fn:l.program(41,t,0),inverse:l.noop,data:t,loc:{start:{line:187,column:86},end:{line:187,column:116}}}))!=null?o:"")},53:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=l.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return"_ entity"+s(e(n,n))+": "+s(e(n,n))+((o=a(i,"unless").call(n??(l.nullContext||{}),t&&a(t,"last"),{name:"unless",hash:{},fn:l.program(41,t,0),inverse:l.noop,data:t,loc:{start:{line:191,column:84},end:{line:191,column:114}}}))!=null?o:"")},55:function(l,n,i,m,t){return" event.entities.append(entity"+l.escapeExpression(l.lambda(n,n))+`.toEntity())
691
+ `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t,o,e){var s,a,u,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f="function",y=l.hooks.blockHelperMissing,g=l.lookupProperty||function(w,D){if(Object.prototype.hasOwnProperty.call(w,D))return w[D]},p=`import Foundation
639
692
  import SnowplowTracker
640
693
 
641
- `;return s=(o=(o=p(i,"type")||(n!=null?p(n,"type"):n))!=null?o:c,u={name:"type",hash:{},fn:l.program(37,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:51,column:0},end:{line:98,column:9}}},typeof o===f?o.call(r,u):o),p(i,"type")||(s=y.call(n,s,u)),s!=null&&(g+=s),g+=`
694
+ `;return s=(a=(a=g(i,"type")||(n!=null?g(n,"type"):n))!=null?a:c,u={name:"type",hash:{},fn:l.program(37,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:51,column:0},end:{line:98,column:9}}},typeof a===f?a.call(r,u):a),g(i,"type")||(s=y.call(n,s,u)),s!=null&&(p+=s),p+=`
642
695
  // MARK: - Event Specification
643
696
 
644
697
  /// Entity schema for referencing an event specification
@@ -682,22 +735,22 @@ struct EventSpecification {
682
735
  }
683
736
 
684
737
  }
685
- `,s=(o=(o=p(i,"nestedTypes")||(n!=null?p(n,"nestedTypes"):n))!=null?o:c,u={name:"nestedTypes",hash:{},fn:l.program(43,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:144,column:0},end:{line:161,column:16}}},typeof o===f?o.call(r,u):o),p(i,"nestedTypes")||(s=y.call(n,s,u)),s!=null&&(g+=s),g+((s=p(i,"each").call(r,n!=null?p(n,"enums"):n,{name:"each",hash:{},fn:l.program(45,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:162,column:0},end:{line:175,column:9}}}))!=null?s:"")+((s=p(i,"each").call(r,n!=null?p(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(48,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:176,column:0},end:{line:201,column:9}}}))!=null?s:"")},main_d:function(l,n,i,m,t,a,e){var s=i.decorators,o=i.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return l=o(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(1,t,0,a,e),inverse:i.noop,args:["structProperties"],data:t,loc:{start:{line:3,column:0},end:{line:11,column:11}}})||l,l=o(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(5,t,0,a,e),inverse:i.noop,args:["createAndReturnPayloadDictionary"],data:t,loc:{start:{line:12,column:0},end:{line:49,column:11}}})||l,l},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0}});var Vn=O((Le,Gn)=>{"use strict";Gn.exports={id:{language:"go",tracker:"snowplow-golang-tracker"},1:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,o=l.escapeExpression,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`
738
+ `,s=(a=(a=g(i,"nestedTypes")||(n!=null?g(n,"nestedTypes"):n))!=null?a:c,u={name:"nestedTypes",hash:{},fn:l.program(43,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:144,column:0},end:{line:161,column:16}}},typeof a===f?a.call(r,u):a),g(i,"nestedTypes")||(s=y.call(n,s,u)),s!=null&&(p+=s),p+((s=g(i,"each").call(r,n!=null?g(n,"enums"):n,{name:"each",hash:{},fn:l.program(45,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:162,column:0},end:{line:175,column:9}}}))!=null?s:"")+((s=g(i,"each").call(r,n!=null?g(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(48,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:176,column:0},end:{line:201,column:9}}}))!=null?s:"")},main_d:function(l,n,i,m,t,o,e){var s=i.decorators,a=i.lookupProperty||function(u,r){if(Object.prototype.hasOwnProperty.call(u,r))return u[r]};return l=a(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(1,t,0,o,e),inverse:i.noop,args:["structProperties"],data:t,loc:{start:{line:3,column:0},end:{line:11,column:11}}})||l,l=a(s,"inline")(l,n,i,{name:"inline",hash:{},fn:i.program(5,t,0,o,e),inverse:i.noop,args:["createAndReturnPayloadDictionary"],data:t,loc:{start:{line:12,column:0},end:{line:49,column:11}}})||l,l},useDecorators:!0,usePartial:!0,useData:!0,useDepths:!0}});var Vn=O((Le,Gn)=>{"use strict";Gn.exports={id:{language:"go",tracker:"snowplow-golang-tracker"},1:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,a=l.escapeExpression,u="function",r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`
686
739
  // SnowplowFormat implements SnowplowApplicable
687
- func (`+o((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:83,column:6},end:{line:83,column:27}}}))+" "+o((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===u?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:83,column:28},end:{line:83,column:40}}}):a))+`) SnowplowFormat() (*sp.SelfDescribingJson, error) {
740
+ func (`+a((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:86,column:6},end:{line:86,column:27}}}))+" "+a((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===u?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:86,column:28},end:{line:86,column:40}}}):o))+`) SnowplowFormat() (*sp.SelfDescribingJson, error) {
688
741
  var decodedMap map[string]interface{}
689
- err := mapstructure.Decode(`+o((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:85,column:28},end:{line:85,column:49}}}))+`, &decodedMap)
742
+ err := mapstructure.Decode(`+a((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:88,column:28},end:{line:88,column:49}}}))+`, &decodedMap)
690
743
  if err != nil {
691
744
  return nil, err
692
745
  }
693
746
 
694
- sdj := sp.InitSelfDescribingJson("`+o((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===u?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:90,column:35},end:{line:90,column:46}}}):a))+`", decodedMap)
747
+ sdj := sp.InitSelfDescribingJson("`+a((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===u?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:93,column:35},end:{line:93,column:46}}}):o))+`", decodedMap)
695
748
  return sdj, nil
696
749
  }
697
750
 
698
- // Track`+o((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===u?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:94,column:8},end:{line:94,column:20}}}):a))+" tracks a "+o((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===u?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:94,column:30},end:{line:94,column:42}}}):a))+`
699
- func Track`+o((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===u?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:95,column:10},end:{line:95,column:22}}}):a))+"(tracker *sp.Tracker, "+o((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:95,column:44},end:{line:95,column:65}}}))+" "+o((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===u?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:95,column:66},end:{line:95,column:78}}}):a))+`, opts ...option) error {
700
- sdj, err := `+o((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:96,column:13},end:{line:96,column:34}}}))+`.SnowplowFormat()
751
+ // Track`+a((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===u?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:97,column:8},end:{line:97,column:20}}}):o))+" tracks a "+a((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===u?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:97,column:30},end:{line:97,column:42}}}):o))+`
752
+ func Track`+a((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===u?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:98,column:10},end:{line:98,column:22}}}):o))+"(tracker *sp.Tracker, "+a((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:98,column:44},end:{line:98,column:65}}}))+" "+a((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===u?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:98,column:66},end:{line:98,column:78}}}):o))+`, opts ...option) error {
753
+ sdj, err := `+a((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:99,column:13},end:{line:99,column:34}}}))+`.SnowplowFormat()
701
754
  if err != nil {
702
755
  return err
703
756
  }
@@ -711,23 +764,23 @@ func Track`+o((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,type
711
764
  return nil
712
765
  }
713
766
 
714
- `},3:function(l,n,i,m,t,a,e){var s,o=l.lambda,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f=l.lookupProperty||function(y,p){if(Object.prototype.hasOwnProperty.call(y,p))return y[p]};return`
715
- // `+u(o(n!=null?f(n,"name"):n,n))+"Applicable represents a context applicable to "+u(o(n!=null?f(n,"name"):n,n))+` event specification
716
- type `+u(o(n!=null?f(n,"name"):n,n))+`Applicable interface {
717
- `+u(o(n!=null?f(n,"name"):n,n))+`Format() (*sp.SelfDescribingJson, error)
767
+ `},3:function(l,n,i,m,t,o,e){var s,a=l.lambda,u=l.escapeExpression,r=n??(l.nullContext||{}),c=l.hooks.helperMissing,f=l.lookupProperty||function(y,g){if(Object.prototype.hasOwnProperty.call(y,g))return y[g]};return`
768
+ // `+u(a(n!=null?f(n,"generatedName"):n,n))+"Applicable represents a context applicable to "+u(a(n!=null?f(n,"generatedName"):n,n))+` event specification
769
+ type `+u(a(n!=null?f(n,"generatedName"):n,n))+`Applicable interface {
770
+ `+u(a(n!=null?f(n,"generatedName"):n,n))+`Format() (*sp.SelfDescribingJson, error)
718
771
  }
719
772
 
720
- `+((s=f(i,"each").call(r,n!=null?f(n,"entities"):n,{name:"each",hash:{},fn:l.program(4,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:119,column:0},end:{line:126,column:9}}}))!=null?s:"")+`
721
- // `+u(o(n!=null?f(n,"name"):n,n))+` Event Specification
722
- type `+u(o(n!=null?f(n,"name"):n,n))+` struct {
723
- Event `+u(o(n!=null?f(n,"event"):n,n))+`
724
- Contexts []`+u(o(n!=null?f(n,"name"):n,n))+`Applicable
773
+ `+((s=f(i,"each").call(r,n!=null?f(n,"entities"):n,{name:"each",hash:{},fn:l.program(4,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:122,column:0},end:{line:129,column:9}}}))!=null?s:"")+`
774
+ // `+u(a(n!=null?f(n,"generatedName"):n,n))+` Event Specification
775
+ type `+u(a(n!=null?f(n,"generatedName"):n,n))+` struct {
776
+ Event `+u(a(n!=null?f(n,"event"):n,n))+`
777
+ Contexts []`+u(a(n!=null?f(n,"generatedName"):n,n))+`Applicable
725
778
  }
726
779
 
727
- // Track`+u(o(n!=null?f(n,"name"):n,n))+" tracks "+u(o(n!=null?f(n,"name"):n,n))+` event specification
728
- // `+u((f(i,"addEventSpecificationIdentifier")||n&&f(n,"addEventSpecificationIdentifier")||c).call(r,n!=null?f(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:135,column:3},end:{line:135,column:46}}}))+`
729
- func Track`+u(o(n!=null?f(n,"name"):n,n))+"(tracker *sp.Tracker, "+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:136,column:45},end:{line:136,column:67}}}))+" "+u(o(n!=null?f(n,"name"):n,n))+`, opts ...option) error {
730
- event := `+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:137,column:10},end:{line:137,column:32}}}))+`.Event
780
+ // Track`+u(a(n!=null?f(n,"generatedName"):n,n))+" tracks "+u(a(n!=null?f(n,"generatedName"):n,n))+` event specification
781
+ // `+u((f(i,"addEventSpecificationIdentifier")||n&&f(n,"addEventSpecificationIdentifier")||c).call(r,n!=null?f(n,"id"):n,{name:"addEventSpecificationIdentifier",hash:{},data:t,loc:{start:{line:138,column:3},end:{line:138,column:46}}}))+`
782
+ func Track`+u(a(n!=null?f(n,"generatedName"):n,n))+"(tracker *sp.Tracker, "+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:139,column:54},end:{line:139,column:85}}}))+" "+u(a(n!=null?f(n,"generatedName"):n,n))+`, opts ...option) error {
783
+ event := `+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:140,column:10},end:{line:140,column:41}}}))+`.Event
731
784
  sdj, err := event.SnowplowFormat()
732
785
  if err != nil {
733
786
  return err
@@ -745,10 +798,10 @@ func Track`+u(o(n!=null?f(n,"name"):n,n))+"(tracker *sp.Tracker, "+u((f(i,"start
745
798
  return optErr
746
799
  }
747
800
 
748
- eventSpecificationCtx := make([]sp.SelfDescribingJson, len(`+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:155,column:60},end:{line:155,column:82}}}))+`.Contexts))
801
+ eventSpecificationCtx := make([]sp.SelfDescribingJson, len(`+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:158,column:60},end:{line:158,column:91}}}))+`.Contexts))
749
802
  var ctxErr error
750
- for i, val := range `+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:157,column:21},end:{line:157,column:43}}}))+`.Contexts {
751
- ctxSdj, ctxErr := val.`+u(o(n!=null?f(n,"name"):n,n))+`Format()
803
+ for i, val := range `+u((f(i,"startLow")||n&&f(n,"startLow")||c).call(r,n!=null?f(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:160,column:21},end:{line:160,column:52}}}))+`.Contexts {
804
+ ctxSdj, ctxErr := val.`+u(a(n!=null?f(n,"generatedName"):n,n))+`Format()
752
805
  if ctxErr != nil {
753
806
  break
754
807
  }
@@ -758,7 +811,12 @@ func Track`+u(o(n!=null?f(n,"name"):n,n))+"(tracker *sp.Tracker, "+u((f(i,"start
758
811
  return ctxErr
759
812
  }
760
813
 
761
- eventSpec := EventSpecification{Id: "`+u(o(n!=null?f(n,"id"):n,n))+`"}
814
+ eventSpec := EventSpecification{
815
+ Id: "`+u(a(n!=null?f(n,"id"):n,n))+`",
816
+ Name: "`+u(a(n!=null?f(n,"name"):n,n))+`",
817
+ DataProductId : "`+u(a(n!=null?f(n,"dataProductId"):n,n))+`",
818
+ DataProductName: "`+u(a(n!=null?f(n,"dataProductName"):n,n))+`",
819
+ }
762
820
  eventSpecSdj, err := eventSpec.SnowplowFormat()
763
821
  if err != nil {
764
822
  return err
@@ -770,13 +828,13 @@ func Track`+u(o(n!=null?f(n,"name"):n,n))+"(tracker *sp.Tracker, "+u((f(i,"start
770
828
  return nil
771
829
  }
772
830
 
773
- `},4:function(l,n,i,m,t,a,e){var s=l.lambda,o=l.escapeExpression,u=n??(l.nullContext||{}),r=l.hooks.helperMissing,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
774
- // `+o(s(e[1]!=null?c(e[1],"name"):e[1],n))+"Format implements "+o(s(e[1]!=null?c(e[1],"name"):e[1],n))+`Applicable
775
- func (`+o((c(i,"startLow")||n&&c(n,"startLow")||r).call(u,n,{name:"startLow",hash:{},data:t,loc:{start:{line:122,column:6},end:{line:122,column:23}}}))+" "+o(s(n,n))+") "+o(s(e[1]!=null?c(e[1],"name"):e[1],n))+`Format() (*sp.SelfDescribingJson, error) {
776
- return `+o((c(i,"startLow")||n&&c(n,"startLow")||r).call(u,n,{name:"startLow",hash:{},data:t,loc:{start:{line:123,column:8},end:{line:123,column:25}}}))+`.SnowplowFormat()
831
+ `},4:function(l,n,i,m,t,o,e){var s=l.lambda,a=l.escapeExpression,u=n??(l.nullContext||{}),r=l.hooks.helperMissing,c=l.lookupProperty||function(f,y){if(Object.prototype.hasOwnProperty.call(f,y))return f[y]};return`
832
+ // `+a(s(e[1]!=null?c(e[1],"generatedName"):e[1],n))+"Format implements "+a(s(e[1]!=null?c(e[1],"generatedName"):e[1],n))+`Applicable
833
+ func (`+a((c(i,"startLow")||n&&c(n,"startLow")||r).call(u,n,{name:"startLow",hash:{},data:t,loc:{start:{line:125,column:6},end:{line:125,column:23}}}))+" "+a(s(n,n))+") "+a(s(e[1]!=null?c(e[1],"generatedName"):e[1],n))+`Format() (*sp.SelfDescribingJson, error) {
834
+ return `+a((c(i,"startLow")||n&&c(n,"startLow")||r).call(u,n,{name:"startLow",hash:{},data:t,loc:{start:{line:126,column:8},end:{line:126,column:25}}}))+`.SnowplowFormat()
777
835
  }
778
836
 
779
- `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t,a,e){var s,o,u,r=n??(l.nullContext||{}),c=l.lookupProperty||function(y,p){if(Object.prototype.hasOwnProperty.call(y,p))return y[p]},f=`// SnowplowApplicable signifies ability to be formatted as self-describing json
837
+ `},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t,o,e){var s,a,u,r=n??(l.nullContext||{}),c=l.lookupProperty||function(y,g){if(Object.prototype.hasOwnProperty.call(y,g))return y[g]},f=`// SnowplowApplicable signifies ability to be formatted as self-describing json
780
838
  type SnowplowApplicable interface {
781
839
  // SnowplowFormat constructs a Snowplow SelfDescribingJson
782
840
  SnowplowFormat() (*sp.SelfDescribingJson, error)
@@ -841,6 +899,9 @@ func WithSubject(subject *sp.Subject) option {
841
899
  type EventSpecification struct {
842
900
  // Identifier for the event specification that the event adheres to
843
901
  Id string \`mapstructure:"id"\`
902
+ Name string \`mapstructure:"name"\`
903
+ DataProductId string \`mapstructure:"data_product_id"\`
904
+ DataProductName string \`mapstructure:"data_product_name"\`
844
905
  }
845
906
 
846
907
  // SnowplowFormat implements SnowplowApplicable
@@ -851,18 +912,18 @@ func (eventSpecification EventSpecification) SnowplowFormat() (*sp.SelfDescribin
851
912
  return nil, err
852
913
  }
853
914
 
854
- sdj := sp.InitSelfDescribingJson("iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0", decodedMap)
915
+ sdj := sp.InitSelfDescribingJson("iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2", decodedMap)
855
916
  return sdj, nil
856
917
  }
857
918
 
858
- `;return s=(o=(o=c(i,"type")||(n!=null?c(n,"type"):n))!=null?o:l.hooks.helperMissing,u={name:"type",hash:{},fn:l.program(1,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:80,column:0},end:{line:110,column:9}}},typeof o=="function"?o.call(r,u):o),c(i,"type")||(s=l.hooks.blockHelperMissing.call(n,s,u)),s!=null&&(f+=s),f+`
859
- `+((s=c(i,"each").call(r,n!=null?c(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(3,t,0,a,e),inverse:l.noop,data:t,loc:{start:{line:112,column:0},end:{line:180,column:9}}}))!=null?s:"")},useData:!0,useDepths:!0}});var Qn=O((Ce,Hn)=>{"use strict";Hn.exports={id:{language:"typescript",tracker:"@snowplow/react-native-tracker"},1:function(l,n,i,m,t){return`/**
919
+ `;return s=(a=(a=c(i,"type")||(n!=null?c(n,"type"):n))!=null?a:l.hooks.helperMissing,u={name:"type",hash:{},fn:l.program(1,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:83,column:0},end:{line:113,column:9}}},typeof a=="function"?a.call(r,u):a),c(i,"type")||(s=l.hooks.blockHelperMissing.call(n,s,u)),s!=null&&(f+=s),f+`
920
+ `+((s=c(i,"each").call(r,n!=null?c(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(3,t,0,o,e),inverse:l.noop,data:t,loc:{start:{line:115,column:0},end:{line:188,column:9}}}))!=null?s:"")},useData:!0,useDepths:!0}});var dn=O((Te,Hn)=>{"use strict";Hn.exports={id:{language:"typescript",tracker:"@snowplow/react-native-tracker"},1:function(l,n,i,m,t){return`/**
860
921
  * Creates a Snowplow Event Specification entity.
861
922
  */
862
923
  export function createEventSpecification(eventSpecification: EventSpecification){
863
924
  return {
864
925
  schema:
865
- 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0',
926
+ 'iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-2',
866
927
  data: eventSpecification,
867
928
  }
868
929
  }
@@ -872,58 +933,66 @@ export function createEventSpecification(eventSpecification: EventSpecification)
872
933
  */
873
934
  interface EventSpecification {
874
935
  id: string;
936
+ name: string;
937
+ data_product_id: string;
938
+ data_product_name: string;
875
939
  }
876
- `},3:function(l,n,i,m,t){var a,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,o="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
877
- * Track a Snowplow event for `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:30,column:30},end:{line:30,column:42}}}):a))+`.
878
- * `+u((a=(a=r(i,"description")||(n!=null?r(n,"description"):n))!=null?a:s,typeof a===o?a.call(e,{name:"description",hash:{},data:t,loc:{start:{line:31,column:3},end:{line:31,column:18}}}):a))+`
940
+ `},3:function(l,n,i,m,t){var o,e=n??(l.nullContext||{}),s=l.hooks.helperMissing,a="function",u=l.escapeExpression,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
941
+ * Track a Snowplow event for `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:33,column:30},end:{line:33,column:42}}}):o))+`.
942
+ * `+u((o=(o=r(i,"description")||(n!=null?r(n,"description"):n))!=null?o:s,typeof o===a?o.call(e,{name:"description",hash:{},data:t,loc:{start:{line:34,column:3},end:{line:34,column:18}}}):o))+`
879
943
  */
880
- export function track`+u((a=(a=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:33,column:21},end:{line:33,column:37}}}):a))+"<T extends {} = any>(tracker: ReactNativeTracker, "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:33,column:87},end:{line:33,column:108}}}))+": "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:33,column:110},end:{line:33,column:122}}}):a))+` & CommonEventProperties<T>){
881
- const { contexts, ...data } = `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:34,column:32},end:{line:34,column:53}}}))+`;
944
+ export function track`+u((o=(o=r(i,"functionName")||(n!=null?r(n,"functionName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"functionName",hash:{},data:t,loc:{start:{line:36,column:21},end:{line:36,column:37}}}):o))+"<T extends {} = any>(tracker: ReactNativeTracker, "+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:36,column:87},end:{line:36,column:108}}}))+": "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:36,column:110},end:{line:36,column:122}}}):o))+` & CommonEventProperties<T>){
945
+ const { contexts, ...data } = `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:37,column:32},end:{line:37,column:53}}}))+`;
882
946
  tracker.trackSelfDescribingEvent({
883
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:36,column:13},end:{line:36,column:24}}}):a))+`',
947
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:39,column:13},end:{line:39,column:24}}}):o))+`',
884
948
  data
885
949
  }, contexts);
886
950
  }
887
951
 
888
952
  /**
889
- * Creates a Snowplow `+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:42,column:22},end:{line:42,column:34}}}):a))+` entity.
953
+ * Creates a Snowplow `+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:45,column:22},end:{line:45,column:34}}}):o))+` entity.
890
954
  */
891
- export function create`+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:44,column:22},end:{line:44,column:34}}}):a))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:44,column:35},end:{line:44,column:56}}}))+": "+u((a=(a=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?a:s,typeof a===o?a.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:44,column:58},end:{line:44,column:70}}}):a))+`){
955
+ export function create`+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:47,column:22},end:{line:47,column:34}}}):o))+"("+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:47,column:35},end:{line:47,column:56}}}))+": "+u((o=(o=r(i,"typeName")||(n!=null?r(n,"typeName"):n))!=null?o:s,typeof o===a?o.call(e,{name:"typeName",hash:{},data:t,loc:{start:{line:47,column:58},end:{line:47,column:70}}}):o))+`){
892
956
  return {
893
- schema: '`+u((a=(a=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?a:s,typeof a===o?a.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:46,column:13},end:{line:46,column:24}}}):a))+`',
894
- data: `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:47,column:10},end:{line:47,column:31}}}))+`
957
+ schema: '`+u((o=(o=r(i,"igluUrl")||(n!=null?r(n,"igluUrl"):n))!=null?o:s,typeof o===a?o.call(e,{name:"igluUrl",hash:{},data:t,loc:{start:{line:49,column:13},end:{line:49,column:24}}}):o))+`',
958
+ data: `+u((r(i,"startLow")||n&&r(n,"startLow")||s).call(e,n!=null?r(n,"typeName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:50,column:10},end:{line:50,column:31}}}))+`
895
959
  }
896
960
  }
897
- `},5:function(l,n,i,m,t){var a,e=l.lambda,s=l.escapeExpression,o=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
898
- * Tracks a `+s(e(n!=null?r(n,"name"):n,n))+` event specification.
961
+ `},5:function(l,n,i,m,t){var o,e=l.lambda,s=l.escapeExpression,a=n??(l.nullContext||{}),u=l.hooks.helperMissing,r=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]};return`/**
962
+ * Tracks a `+s(e(n!=null?r(n,"generatedName"):n,n))+` event specification.
899
963
  */
900
- export function track`+s(e(n!=null?r(n,"name"):n,n))+"(tracker: ReactNativeTracker, "+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:56,column:64},end:{line:56,column:86}}}))+": "+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:126},end:{line:56,column:194}}}))!=null?a:"")+`){
901
- const eventSpecificationContext = createEventSpecification({ id: '`+s(e(n!=null?r(n,"id"):n,n))+`' });
964
+ export function track`+s(e(n!=null?r(n,"generatedName"):n,n))+"(tracker: ReactNativeTracker, "+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:59,column:73},end:{line:59,column:104}}}))+": "+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:59,column:144},end:{line:59,column:212}}}))!=null?o:"")+`){
965
+ const eventSpecificationContext = createEventSpecification({
966
+ id: '`+s(e(n!=null?r(n,"id"):n,n))+`',
967
+ name: '`+s(e(n!=null?r(n,"name"):n,n))+`',
968
+ data_product_id: '`+s(e(n!=null?r(n,"dataProductId"):n,n))+`',
969
+ data_product_name: '`+s(e(n!=null?r(n,"dataProductName"):n,n))+`'
970
+ });
902
971
 
903
- const contexts = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:59,column:33},end:{line:59,column:55}}}))+`.contexts)
904
- ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:60,column:10},end:{line:60,column:32}}}))+`.contexts, eventSpecificationContext]
972
+ const contexts = Array.isArray(`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:67,column:33},end:{line:67,column:64}}}))+`.contexts)
973
+ ? [...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:68,column:10},end:{line:68,column:41}}}))+`.contexts, eventSpecificationContext]
905
974
  : [eventSpecificationContext];
906
975
 
907
- const modified`+s(e(n!=null?r(n,"name"):n,n))+` = {
908
- ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(o,n!=null?r(n,"name"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:64,column:7},end:{line:64,column:29}}}))+`,
976
+ const modified`+s(e(n!=null?r(n,"generatedName"):n,n))+` = {
977
+ ...`+s((r(i,"startLow")||n&&r(n,"startLow")||u).call(a,n!=null?r(n,"generatedName"):n,{name:"startLow",hash:{},data:t,loc:{start:{line:72,column:7},end:{line:72,column:38}}}))+`,
909
978
  contexts,
910
- } as `+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:66,column:45},end:{line:66,column:113}}}))!=null?a:"")+`;
979
+ } as `+s(e(n!=null?r(n,"event"):n,n))+" & CommonEventProperties"+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:74,column:45},end:{line:74,column:113}}}))!=null?o:"")+`;
911
980
 
912
- track`+s(e(n!=null?r(n,"event"):n,n))+((a=r(i,"if").call(o,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:68,column:21},end:{line:68,column:89}}}))!=null?a:"")+"(tracker, modified"+s(e(n!=null?r(n,"name"):n,n))+`);
981
+ track`+s(e(n!=null?r(n,"event"):n,n))+((o=r(i,"if").call(a,n!=null?r(n,"entities"):n,{name:"if",hash:{},fn:l.program(6,t,0),inverse:l.noop,data:t,loc:{start:{line:76,column:21},end:{line:76,column:89}}}))!=null?o:"")+"(tracker, modified"+s(e(n!=null?r(n,"generatedName"):n,n))+`);
913
982
  }
914
- `},6:function(l,n,i,m,t){var a,e=l.lookupProperty||function(s,o){if(Object.prototype.hasOwnProperty.call(s,o))return s[o]};return"<"+((a=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:56,column:148},end:{line:56,column:186}}}))!=null?a:"")+">"},7:function(l,n,i,m,t){return""},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var a,e,s,o=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r=`import { ReactNativeTracker, SelfDescribing } from '@snowplow/react-native-tracker';
983
+ `},6:function(l,n,i,m,t){var o,e=l.lookupProperty||function(s,a){if(Object.prototype.hasOwnProperty.call(s,a))return s[a]};return"<"+((o=e(i,"join").call(n??(l.nullContext||{}),n!=null?e(n,"entities"):n," | ",{name:"join",hash:{},fn:l.program(7,t,0),inverse:l.noop,data:t,loc:{start:{line:59,column:166},end:{line:59,column:204}}}))!=null?o:"")+">"},7:function(l,n,i,m,t){return""},compiler:[8,">= 4.3.0"],main:function(l,n,i,m,t){var o,e,s,a=n??(l.nullContext||{}),u=l.lookupProperty||function(c,f){if(Object.prototype.hasOwnProperty.call(c,f))return c[f]},r=`import { ReactNativeTracker, SelfDescribing } from '@snowplow/react-native-tracker';
915
984
 
916
985
  interface CommonEventProperties<T extends {} = Record<string, unknown>> {
917
986
  /** Add context to an event by setting an Array of Self Describing JSON */
918
987
  contexts?: Array<SelfDescribing<T>> | null;
919
988
  }
920
989
 
921
- `+((a=u(i,"if").call(o,(a=n!=null?u(n,"eventSpecifications"):n)!=null?u(a,"length"):a,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:8,column:0},end:{line:26,column:7}}}))!=null?a:"")+`
922
- `;return a=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:28,column:0},end:{line:50,column:9}}},typeof e=="function"?e.call(o,s):e),u(i,"type")||(a=l.hooks.blockHelperMissing.call(n,a,s)),a!=null&&(r+=a),r+`
923
- `+((a=u(i,"each").call(o,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:52,column:0},end:{line:70,column:9}}}))!=null?a:"")},useData:!0}});var Vl={};yl(Vl,{createEventSpecificationInstructionsIdentifier:()=>J,generate:()=>Gl});module.exports=pl(Vl);var un=require("quicktype-core"),gl=4;function vl(l,n,i){return`${n??""} ${l} ${i??""}`}function L(l,n,i,m,t){let{prefix:a,suffix:e}=n.typeNameModifiers??{},s=vl(m,a,e);return l(i,s,t)}function cn(l,n=[],i=[]){let m=(0,un.getTargetLanguage)(l),t=[],a=i;for(let e of m.optionDefinitions)n.includes(e.name);return{id:m.name,name:m.displayName,extension:m.extension,requiredOptions:a,advancedOptions:t}}function kl(l,n=gl){let i=l.length,m=0;for(let t=0;t<i;t++){let a=l.charAt(t);if(a===" ")m+=1;else if(a===" ")m=(m/n+1)*n;else return{indent:m,text:l.substring(t)}}return{indent:0,text:null}}function _(l,n,i=4){let m=n.split(`
924
- `),t=m.length;if(t===0)return;l.emitLine(m[0]);let a=0;for(let e=1;e<t;e++){let s=m[e],{indent:o,text:u}=kl(s,i);if(u!==null){let r=Math.floor(o/i),c=o%i;l.changeIndent(r-a),a=r,l.emitLine(" ".repeat(c),u)}else l.emitLine()}a!==0&&l.changeIndent(-a)}function S(l,n){if(n.length!==0){l.ensureBlankLine();for(let i of n)i(l)}}function mn(l,n={},i=[]){let m=Object.fromEntries(Object.entries(l).filter(([t])=>!i.includes(t)));return{...n,...m}}var j=require("quicktype-core");var fn=require("quicktype-core"),wl="__sp";function yn(l,n,i){return typeof l!="object"?void 0:{forType:I.makeAttributes({raw:l,...l[wl]})}}var G=class extends fn.TypeAttributeKind{constructor(){super("eventMetadata")}combine(n){return n[0]}makeInferred(n){}},I=new G;var bn=v(require("handlebars"));var pn=require("quicktype-core"),gn=require("quicktype-core/dist/support/Strings");function V(l,n,i,m){let t=l.descriptionForType(n)?.join(" "),a=l.sourcelikeToString((0,pn.modifySource)(m?.functionName??gn.originalWord,i)),e=l.sourcelikeToString(i);return{description:t,functionName:a,typeName:e}}function vn(l,n,i){l.forEach(m=>{m.event===n&&(m.event=i),m.entities=m.entities?.map(t=>t===n?i:t)})}var x=v(require("handlebars"));var H=require("quicktype-core/dist/support/Strings");function R(l){return`iglu:${l.vendor}/${l.name}/${l.format}/${l.version}`}function J(l){return`ID: ${l}`}function kn(l){let n=l.filter(Sl).map(m=>({name:(0,H.pascalCase)(m.eventSpecification.name),id:m.eventSpecification.id,event:R(m.eventSchema.self),entities:m.entitiesSchemas?m.entitiesSchemas.map(t=>R(t.self)):void 0})),i=l.filter(xl).map(m=>({name:(0,H.pascalCase)(m.eventSpecification.name),id:m.eventSpecification.id,event:m.eventSchema.isEcomTemplateSchema,entities:m.entitiesSchemas?m.entitiesSchemas.filter(t=>!t.isEcomTemplateSchema).map(t=>R(t.self)):void 0}));return{eventSpecifications:n,ecomEventSpecifications:i}}function Sl(l){return typeof l.eventSchema.isEcomTemplateSchema>"u"}function xl(l){return typeof l.eventSchema.isEcomTemplateSchema<"u"}var wn={add_to_cart:"Ecom.trackAddToCart",checkout_step:"Ecom.trackCheckoutStep",list_click:"Ecom.trackProductListClick",list_view:"Ecom.trackProductListView",product_view:"Ecom.trackProductView",promo_click:"Ecom.trackPromotionClick",promo_view:"Ecom.trackPromotionView",remove_from_cart:"Ecom.trackRemoveFromCart",transaction:"Ecom.trackTransaction",refund:"Ecom.trackRefund",trns_error:"Ecom.trackTransactionError"},Sn={add_to_cart:"Ecom.Cart",checkout_step:"Ecom.CheckoutStep",list_click:"Ecom.ListClickEvent",list_view:"Ecom.ListViewEvent",product_view:"Ecom.Product",promo_click:"Ecom.SPPromotion",promo_view:"Ecom.SPPromotion",remove_from_cart:"Ecom.Cart",transaction:"Ecom.SPTransaction",refund:"Ecom.Refund",trns_error:"Ecom.TransactionError"};function xn(){x.default.registerHelper({and(...l){return Array.prototype.every.call(l,Boolean)},or(...l){return Array.prototype.slice.call(l,0,-1).some(Boolean)}}),x.default.registerHelper("join",function(l,n,i){return i&&typeof i=="string"?l.map(m=>m+i).join(n):l.join(n)}),x.default.registerHelper("firstLow",function(l){return l&&typeof l=="string"?l.charAt(0).toLowerCase():""}),x.default.registerHelper("startLow",function(l){return l&&typeof l=="string"?l.charAt(0).toLowerCase().concat(l.slice(1)):""}),x.default.registerHelper("addEventSpecificationIdentifier",function(l){return l&&typeof l=="string"?J(l):""}),x.default.registerHelper("ecomFunction",function(l){return wn[l]}),x.default.registerHelper("ecomFunctionArgument",function(l){return Sn[l]}),x.default.registerHelper("eq",function(l,n){return l===n}),x.default.registerHelper("debug",function(l,n,i){if(console.log(i===!0?JSON.stringify(l):l),n===!0)debugger;return""})}function Pn(l,{eventSpecifications:n,ecomEventSpecifications:i},m){try{xn();let t=bn.default.template(l),{nameModifiers:a,validations:e}=m;return s=>{let o={type:[],nestedTypes:[],enums:[],eventSpecifications:n,ecomEventSpecifications:i,validations:e};return s.forEachNamedType("leading-and-interposing",(u,r)=>{let c=u.getAttributes().get(I),f=V(s,u,r,a),y={...f,...s.getClassData&&s.getClassData(u)};if(c!==void 0&&c.raw.self!==void 0){let{raw:p}=c,g=R(p.self);[n,i].forEach(w=>vn(w,g,f.typeName)),o.type.push({igluUrl:g,...y})}else o.nestedTypes.push(y)},(u,r)=>{let c=[],{description:f}=V(s,u,r,a);s.forEachEnumCase(u,"none",(y,p)=>{c.push({name:s.sourcelikeToString(y),jsonName:p})}),o.enums.push({name:s.sourcelikeToString(r),description:f,cases:c})},()=>console.error("Unions are not yet supported in Snowtype")),s.emitMultiline(t(o))}}catch(t){throw new Error(`${JSON.stringify(t)}`)}}var N=require("quicktype-core");function On(l,n){if(l instanceof C){let i="",m='import "github.com/mitchellh/mapstructure"',t='import sp "github.com/snowplow/snowplow-golang-tracker/v3/tracker"',a=n.lines;Array.isArray(a)&&a.splice(1,0,i,m,t)}return n}function En(l,n){let i=Object.fromEntries(l.entries());return n&&(i["iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0"]=bl),Object.keys(i).forEach(m=>{i[m].$schema="http://json-schema.org/draft-04/schema#"}),i}var bl={description:"Entity schema for referencing an event specification",properties:{id:{description:"Identifier for the event specification that the event adheres to",type:"string",maxLength:254,minLength:1}},additionalProperties:!1,type:"object",required:["id"],self:{vendor:"com.snowplowanalytics.snowplow",name:"event_specification",format:"jsonschema",version:"1-0-0"},$schema:"http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#"};async function jn(l,n,i,m){let{header:t,validations:a,...e}=m,s=new N.JSONSchemaInput(void 0,[yn]),o=new Map;await Ol(s,n,o),await Pl(s,i,o);let u=a?En(o,!!i.length):void 0,r=new N.InputData;r.addInput(s);let c=await(0,N.quicktype)({inputData:r,lang:l,leadingComments:t,rendererOptions:e});return{...On(l,c),validationsSchemaObject:u}}async function Pl(l,n,i){let m=[];for(let t of n){let a=Q(t.eventSchema.self);if(i.has(a)||(m.push(q(l,t.eventSchema)),i.set(a,t.eventSchema)),!Array.isArray(t.entitiesSchemas))return;t.entitiesSchemas.forEach(e=>{let s=Q(e.self);i.has(s)||(m.push(q(l,e)),i.set(s,e))})}await Promise.all(m)}async function Ol(l,n,i){let m=[];for(let t of n){let a=Q(t.self);i.has(a)||(m.push(q(l,t)),i.set(a,t))}await Promise.all(m)}function Q({name:l,vendor:n,version:i,format:m}){return"iglu:"+[n,l,m,i].join("/")}async function q(l,n){await l.addSource({name:n.self.name,schema:JSON.stringify(n)})}var El=v(Ln()),jl=v(Nn()),Tl=v(Mn()),Ll=v(In()),Cl=v(Fn()),Nl=v(_n()),Al=v($n()),Ml=v(Vn()),Dl=v(Qn()),F=v(require("joi"));var qn=["@snowplow/browser-tracker","@snowplow/javascript-tracker","snowplow-android-tracker","snowplow-ios-tracker","@snowplow/node-tracker","snowplow-golang-tracker","@snowplow/react-native-tracker"],Wn=["typescript","javascript","kotlin","swift","go"];function Il(l){let i=F.default.object().required().keys({id:F.default.object().required().keys({tracker:F.default.string().required().valid(...qn),language:F.default.string().required().valid(...Wn)})}).validate(l,{abortEarly:!1,convert:!1,allowUnknown:!0});if(i.error)throw new Error(i.error.annotate())}var Bn=[El,jl,Tl,Ll,Cl,Nl,Al,Ml,Dl].map(l=>(Il(l),l));function b(l){let{name:n,quicktypeLanguage:i,defaultOptions:m,unsupportedOptions:t,requiredOptions:a}=l,e=cn(n,t,a);return{id:e.id,name:e.name,extension:e.extension,generate:(s,o,u)=>{let r=[],c=Bn.find(({id:f})=>f.language===e.id&&f.tracker===u.tracker);if(c){let f=kn(o);r.push(Pn(c,f,u))}return jn(new i({generators:r}),s,o,mn(u,m,t))}}}var E=v(require("json-pointer"));function Kn({propertyNameAsType:l,capitalizeProperty:n,defaultPropertyType:i},m){let t="*";return m!==void 0&&l?n?Zn(m):m:i===null||i===""?i:i||t}function zn(l,n){let{maxLength:i}=l;if(!i)return[n];let m=[];for(;;){if(n.length-l.indentMaxDelta<=0){n&&m.push(n);break}let a=n.slice(0,l.indentMaxDelta),e=a.search(/\s\S*$/),s;if(e===-1){let o=n.slice(l.indentMaxDelta).match(/^\S+/);s=a+(o||"")}else s=a.slice(0,e);m.push(s),n=n.slice(s.length+1)}return m}function Xn(l,n={}){let i=[];if(!l||Object.keys(l).length===0)return"";let m=Rl(n);return i.push(...Fl(l,m)),E.default.has(l,"/properties")&&i.push(...B(l,l,null,m)),E.default.has(l,"/items")&&i.push(...W(l,l,null,m)),_l(m.outerIndent,i)}function Rl(l){let i=(l.indentChar||" ").repeat(l.indent||0),m=l.maxLength-i.length-3;return{...l,outerIndent:i,indentMaxDelta:m}}function W(l,n,i,m){let t=E.default.get(l,"/items");if(!Array.isArray(t))return[];let a=[];return t.forEach((e,s)=>{let u=(i?`${i}.`:"")+s,r=e.default,c=!l.minItems||s>=l.minItems;if(e.type==="array"&&e.items)a.push(...A("array",u,e.description,c,r,m)),a.push(...W(e,n,u,m));else if(e.type==="object"&&e.properties)a.push(...A("object",u,e.description,c,r,m)),a.push(...B(e,n,u,m));else{let f=$(e,n)||Kn(m);a.push(...A(f,u,e.description,c,r,m))}}),a}function B(l,n,i,m){let t=E.default.get(l,"/properties"),a=E.default.has(l,"/required")?E.default.get(l,"/required"):[],e=[];for(let s in t)if(!(Array.isArray(m.ignore)&&m.ignore.includes(s))){let o=t[s],r=(i?`${i}.`:"")+s,c=t[s].default,f=!a.includes(s);if(o.type==="object"&&o.properties)e.push(...A("object",r,o.description,f,c,m)),e.push(...B(o,n,r,m));else if(o.type==="array"&&o.items)e.push(...A("array",r,o.description,f,c,m)),e.push(...W(o,n,r,m));else{let y=$(o,n)||Kn(m,s);e.push(...A(y,r,o.description,f,c,m))}}return e}function Fl(l,n){let i=[],{objectTagName:m="typedef"}=n,{description:t}=l;t===void 0&&(t=n.autoDescribe?Ul(l.title,l.type):"");let a=n.types&&n.types[l.type],e;n.types===null?e="":e=` {${a===""?"":a||$(l,l)}}`,(t||n.addDescriptionLineBreak)&&i.push(...zn(n,t));let s=l.title?` ${n.capitalizeTitle?Zn(l.title):l.title}`:"";return i.push(`@${m}${e}${s}`),i}function A(l,n,i="",m,t,a){let e;m?e=`[${n}${t===void 0?"":`=${JSON.stringify(t)}`}]`:e=n;let s;!i&&!a.descriptionPlaceholder?s="":a.hyphenatedDescriptions?s=` - ${i}`:s=` ${i}`;let o=l===null?"":`{${l}} `;return zn(a,`@property ${o}${e}${s}`)}function $(l,n){if(l.$ref){let i=E.default.get(n,l.$ref.slice(1));return $(i,n)}return l.enum?(l.type||(typeof l.enum[0]=="string"&&(l.type="string"),(typeof l.enum[0]).match(/number|boolean/)&&(l.type="number")),Array.isArray(l.type)&&l.type.indexOf("string")!==-1&&l.type.indexOf("null")!==-1?`"${l.enum.filter(Boolean).join('"|"')}"|null`:l.type==="string"?`"${l.enum.join('"|"')}"`:l.type==="number"||l.type==="integer"||l.type==="boolean"?`${l.enum.join("|")}`:l.type==="null"?"null":"enum"):Array.isArray(l.type)?l.type.includes("null")?`?${l.type[0]}`:l.type.join("|"):l.type}function Zn(l){return l.slice(0,1).toUpperCase()+l.slice(1)}function Ul(l,n){let i=l?`${l} ${n}`:n;return`Represents ${`a${"aeiou".split("").includes(i.charAt())?"n":""}`} ${i}`}function _l(l,n){let i=[`${l}/**`];return i.push(...n.map(m=>m?`${l} * ${m}`:" *")),i.push(`${l} */
990
+ `+((o=u(i,"if").call(a,(o=n!=null?u(n,"eventSpecifications"):n)!=null?u(o,"length"):o,{name:"if",hash:{},fn:l.program(1,t,0),inverse:l.noop,data:t,loc:{start:{line:8,column:0},end:{line:29,column:7}}}))!=null?o:"")+`
991
+ `;return o=(e=(e=u(i,"type")||(n!=null?u(n,"type"):n))!=null?e:l.hooks.helperMissing,s={name:"type",hash:{},fn:l.program(3,t,0),inverse:l.noop,data:t,loc:{start:{line:31,column:0},end:{line:53,column:9}}},typeof e=="function"?e.call(a,s):e),u(i,"type")||(o=l.hooks.blockHelperMissing.call(n,o,s)),o!=null&&(r+=o),r+`
992
+ `+((o=u(i,"each").call(a,n!=null?u(n,"eventSpecifications"):n,{name:"each",hash:{},fn:l.program(5,t,0),inverse:l.noop,data:t,loc:{start:{line:55,column:0},end:{line:78,column:9}}}))!=null?o:"")},useData:!0}});var Vl={};yl(Vl,{createEventSpecificationInstructionsIdentifier:()=>J,generate:()=>Gl});module.exports=gl(Vl);var un=require("quicktype-core"),pl=4;function vl(l,n,i){return`${n??""} ${l} ${i??""}`}function L(l,n,i,m,t){let{prefix:o,suffix:e}=n.typeNameModifiers??{},s=vl(m,o,e);return l(i,s,t)}function cn(l,n=[],i=[]){let m=(0,un.getTargetLanguage)(l),t=[],o=i;for(let e of m.optionDefinitions)n.includes(e.name);return{id:m.name,name:m.displayName,extension:m.extension,requiredOptions:o,advancedOptions:t}}function kl(l,n=pl){let i=l.length,m=0;for(let t=0;t<i;t++){let o=l.charAt(t);if(o===" ")m+=1;else if(o===" ")m=(m/n+1)*n;else return{indent:m,text:l.substring(t)}}return{indent:0,text:null}}function U(l,n,i=4){let m=n.split(`
993
+ `),t=m.length;if(t===0)return;l.emitLine(m[0]);let o=0;for(let e=1;e<t;e++){let s=m[e],{indent:a,text:u}=kl(s,i);if(u!==null){let r=Math.floor(a/i),c=a%i;l.changeIndent(r-o),o=r,l.emitLine(" ".repeat(c),u)}else l.emitLine()}o!==0&&l.changeIndent(-o)}function S(l,n){if(n.length!==0){l.ensureBlankLine();for(let i of n)i(l)}}function mn(l,n={},i=[]){let m=Object.fromEntries(Object.entries(l).filter(([t])=>!i.includes(t)));return{...n,...m}}var N=require("quicktype-core");var fn=require("quicktype-core"),wl="__sp";function yn(l,n,i){return typeof l!="object"?void 0:{forType:I.makeAttributes({raw:l,...l[wl]})}}var G=class extends fn.TypeAttributeKind{constructor(){super("eventMetadata")}combine(n){return n[0]}makeInferred(n){}},I=new G;var Pn=v(require("handlebars"));var gn=require("quicktype-core"),pn=require("quicktype-core/dist/support/Strings");function V(l,n,i,m){let t=l.descriptionForType(n)?.join(" "),o=l.sourcelikeToString((0,gn.modifySource)(m?.functionName??pn.originalWord,i)),e=l.sourcelikeToString(i);return{description:t,functionName:o,typeName:e}}function vn(l,n,i){l.forEach(m=>{m.event===n&&(m.event=i),m.entities=m.entities?.map(t=>t===n?i:t)})}var x=v(require("handlebars"));var H=require("quicktype-core/dist/support/Strings");function _(l){return`iglu:${l.vendor}/${l.name}/${l.format}/${l.version}`}function J(l){return`ID: ${l}`}function kn(l){let n=l.filter(Sl).map(m=>({generatedName:(0,H.pascalCase)(m.eventSpecification.name),id:m.eventSpecification.id,name:m.eventSpecification.name,dataProductName:m.eventSpecification.dataProductName,dataProductId:m.eventSpecification.dataProductId,event:_(m.eventSchema.self),entities:m.entitiesSchemas?m.entitiesSchemas.map(t=>_(t.self)):void 0})),i=l.filter(xl).map(m=>({generatedName:(0,H.pascalCase)(m.eventSpecification.name),id:m.eventSpecification.id,name:m.eventSpecification.name,dataProductName:m.eventSpecification.dataProductName,dataProductId:m.eventSpecification.dataProductId,event:m.eventSchema.isEcomTemplateSchema,entities:m.entitiesSchemas?m.entitiesSchemas.filter(t=>!t.isEcomTemplateSchema).map(t=>_(t.self)):void 0}));return{eventSpecifications:n,ecomEventSpecifications:i}}function Sl(l){return typeof l.eventSchema.isEcomTemplateSchema>"u"}function xl(l){return typeof l.eventSchema.isEcomTemplateSchema<"u"}var wn={add_to_cart:"Ecom.trackAddToCart",checkout_step:"Ecom.trackCheckoutStep",list_click:"Ecom.trackProductListClick",list_view:"Ecom.trackProductListView",product_view:"Ecom.trackProductView",promo_click:"Ecom.trackPromotionClick",promo_view:"Ecom.trackPromotionView",remove_from_cart:"Ecom.trackRemoveFromCart",transaction:"Ecom.trackTransaction",refund:"Ecom.trackRefund",trns_error:"Ecom.trackTransactionError"},Sn={add_to_cart:"Ecom.Cart",checkout_step:"Ecom.CheckoutStep",list_click:"Ecom.ListClickEvent",list_view:"Ecom.ListViewEvent",product_view:"Ecom.Product",promo_click:"Ecom.SPPromotion",promo_view:"Ecom.SPPromotion",remove_from_cart:"Ecom.Cart",transaction:"Ecom.SPTransaction",refund:"Ecom.Refund",trns_error:"Ecom.TransactionError"};function xn(){x.default.registerHelper({and(...l){return Array.prototype.every.call(l,Boolean)},or(...l){return Array.prototype.slice.call(l,0,-1).some(Boolean)}}),x.default.registerHelper("join",function(l,n,i){return i&&typeof i=="string"?l.map(m=>m+i).join(n):l.join(n)}),x.default.registerHelper("firstLow",function(l){return l&&typeof l=="string"?l.charAt(0).toLowerCase():""}),x.default.registerHelper("startLow",function(l){return l&&typeof l=="string"?l.charAt(0).toLowerCase().concat(l.slice(1)):""}),x.default.registerHelper("addEventSpecificationIdentifier",function(l){return l&&typeof l=="string"?J(l):""}),x.default.registerHelper("ecomFunction",function(l){return wn[l]}),x.default.registerHelper("ecomFunctionArgument",function(l){return Sn[l]}),x.default.registerHelper("eq",function(l,n){return l===n}),x.default.registerHelper("debug",function(l,n,i){if(console.log(i===!0?JSON.stringify(l):l),n===!0)debugger;return""})}function bn(l,{eventSpecifications:n,ecomEventSpecifications:i},m){try{xn();let t=Pn.default.template(l),{nameModifiers:o,validations:e}=m;return s=>{let a={type:[],nestedTypes:[],enums:[],eventSpecifications:n,ecomEventSpecifications:i,validations:e};return s.forEachNamedType("leading-and-interposing",(u,r)=>{let c=u.getAttributes().get(I),f=V(s,u,r,o),y={...f,...s.getClassData&&s.getClassData(u)};if(c!==void 0&&c.raw.self!==void 0){let{raw:g}=c,p=_(g.self);[n,i].forEach(w=>vn(w,p,f.typeName)),a.type.push({igluUrl:p,...y})}else a.nestedTypes.push(y)},(u,r)=>{let c=[],{description:f}=V(s,u,r,o);s.forEachEnumCase(u,"none",(y,g)=>{c.push({name:s.sourcelikeToString(y),jsonName:g})}),a.enums.push({name:s.sourcelikeToString(r),description:f,cases:c})},()=>console.error("Unions are not yet supported in Snowtype")),s.emitMultiline(t(a))}}catch(t){throw new Error(`${JSON.stringify(t)}`)}}var C=require("quicktype-core");function On(l,n){if(l instanceof T){let i="",m='import "github.com/mitchellh/mapstructure"',t='import sp "github.com/snowplow/snowplow-golang-tracker/v3/tracker"',o=n.lines;Array.isArray(o)&&o.splice(1,0,i,m,t)}return n}function En(l,n){let i=Object.fromEntries(l.entries());return n&&(i["iglu:com.snowplowanalytics.snowplow/event_specification/jsonschema/1-0-0"]=Pl),Object.keys(i).forEach(m=>{i[m].$schema="http://json-schema.org/draft-04/schema#"}),i}var Pl={description:"Entity schema for referencing an event specification",properties:{id:{description:"Identifier for the event specification that the event adheres to",type:"string",maxLength:254,minLength:1}},additionalProperties:!1,type:"object",required:["id"],self:{vendor:"com.snowplowanalytics.snowplow",name:"event_specification",format:"jsonschema",version:"1-0-0"},$schema:"http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#"};async function Nn(l,n,i,m){let{header:t,validations:o,...e}=m,s=new C.JSONSchemaInput(void 0,[yn]),a=new Map;await Ol(s,n,a),await bl(s,i,a);let u=o?En(a,!!i.length):void 0,r=new C.InputData;r.addInput(s);let c=await(0,C.quicktype)({inputData:r,lang:l,leadingComments:t,rendererOptions:e});return{...On(l,c),validationsSchemaObject:u}}async function bl(l,n,i){let m=[];for(let t of n){let o=d(t.eventSchema.self);if(i.has(o)||(m.push(Q(l,t.eventSchema)),i.set(o,t.eventSchema)),!Array.isArray(t.entitiesSchemas))return;t.entitiesSchemas.forEach(e=>{let s=d(e.self);i.has(s)||(m.push(Q(l,e)),i.set(s,e))})}await Promise.all(m)}async function Ol(l,n,i){let m=[];for(let t of n){let o=d(t.self);i.has(o)||(m.push(Q(l,t)),i.set(o,t))}await Promise.all(m)}function d({name:l,vendor:n,version:i,format:m}){return"iglu:"+[n,l,m,i].join("/")}async function Q(l,n){await l.addSource({name:n.self.name,schema:JSON.stringify(n)})}var El=v(Ln()),Nl=v(Cn()),jl=v(Mn()),Ll=v(In()),Tl=v(Rn()),Cl=v(Un()),Al=v($n()),Ml=v(Vn()),Dl=v(dn()),R=v(require("joi"));var Qn=["@snowplow/browser-tracker","@snowplow/javascript-tracker","snowplow-android-tracker","snowplow-ios-tracker","@snowplow/node-tracker","snowplow-golang-tracker","@snowplow/react-native-tracker"],qn=["typescript","javascript","kotlin","swift","go"];function Il(l){let i=R.default.object().required().keys({id:R.default.object().required().keys({tracker:R.default.string().required().valid(...Qn),language:R.default.string().required().valid(...qn)})}).validate(l,{abortEarly:!1,convert:!1,allowUnknown:!0});if(i.error)throw new Error(i.error.annotate())}var Wn=[El,Nl,jl,Ll,Tl,Cl,Al,Ml,Dl].map(l=>(Il(l),l));function P(l){let{name:n,quicktypeLanguage:i,defaultOptions:m,unsupportedOptions:t,requiredOptions:o}=l,e=cn(n,t,o);return{id:e.id,name:e.name,extension:e.extension,generate:(s,a,u)=>{let r=[],c=Wn.find(({id:f})=>f.language===e.id&&f.tracker===u.tracker);if(c){let f=kn(a);r.push(bn(c,f,u))}return Nn(new i({generators:r}),s,a,mn(u,m,t))}}}var E=v(require("json-pointer"));function Bn({propertyNameAsType:l,capitalizeProperty:n,defaultPropertyType:i},m){let t="*";return m!==void 0&&l?n?Xn(m):m:i===null||i===""?i:i||t}function Kn(l,n){let{maxLength:i}=l;if(!i)return[n];let m=[];for(;;){if(n.length-l.indentMaxDelta<=0){n&&m.push(n);break}let o=n.slice(0,l.indentMaxDelta),e=o.search(/\s\S*$/),s;if(e===-1){let a=n.slice(l.indentMaxDelta).match(/^\S+/);s=o+(a||"")}else s=o.slice(0,e);m.push(s),n=n.slice(s.length+1)}return m}function zn(l,n={}){let i=[];if(!l||Object.keys(l).length===0)return"";let m=_l(n);return i.push(...Rl(l,m)),E.default.has(l,"/properties")&&i.push(...W(l,l,null,m)),E.default.has(l,"/items")&&i.push(...q(l,l,null,m)),Ul(m.outerIndent,i)}function _l(l){let i=(l.indentChar||" ").repeat(l.indent||0),m=l.maxLength-i.length-3;return{...l,outerIndent:i,indentMaxDelta:m}}function q(l,n,i,m){let t=E.default.get(l,"/items");if(!Array.isArray(t))return[];let o=[];return t.forEach((e,s)=>{let u=(i?`${i}.`:"")+s,r=e.default,c=!l.minItems||s>=l.minItems;if(e.type==="array"&&e.items)o.push(...A("array",u,e.description,c,r,m)),o.push(...q(e,n,u,m));else if(e.type==="object"&&e.properties)o.push(...A("object",u,e.description,c,r,m)),o.push(...W(e,n,u,m));else{let f=$(e,n)||Bn(m);o.push(...A(f,u,e.description,c,r,m))}}),o}function W(l,n,i,m){let t=E.default.get(l,"/properties"),o=E.default.has(l,"/required")?E.default.get(l,"/required"):[],e=[];for(let s in t)if(!(Array.isArray(m.ignore)&&m.ignore.includes(s))){let a=t[s],r=(i?`${i}.`:"")+s,c=t[s].default,f=!o.includes(s);if(a.type==="object"&&a.properties)e.push(...A("object",r,a.description,f,c,m)),e.push(...W(a,n,r,m));else if(a.type==="array"&&a.items)e.push(...A("array",r,a.description,f,c,m)),e.push(...q(a,n,r,m));else{let y=$(a,n)||Bn(m,s);e.push(...A(y,r,a.description,f,c,m))}}return e}function Rl(l,n){let i=[],{objectTagName:m="typedef"}=n,{description:t}=l;t===void 0&&(t=n.autoDescribe?Fl(l.title,l.type):"");let o=n.types&&n.types[l.type],e;n.types===null?e="":e=` {${o===""?"":o||$(l,l)}}`,(t||n.addDescriptionLineBreak)&&i.push(...Kn(n,t));let s=l.title?` ${n.capitalizeTitle?Xn(l.title):l.title}`:"";return i.push(`@${m}${e}${s}`),i}function A(l,n,i="",m,t,o){let e;m?e=`[${n}${t===void 0?"":`=${JSON.stringify(t)}`}]`:e=n;let s;!i&&!o.descriptionPlaceholder?s="":o.hyphenatedDescriptions?s=` - ${i}`:s=` ${i}`;let a=l===null?"":`{${l}} `;return Kn(o,`@property ${a}${e}${s}`)}function $(l,n){if(l.$ref){let i=E.default.get(n,l.$ref.slice(1));return $(i,n)}return l.enum?(l.type||(typeof l.enum[0]=="string"&&(l.type="string"),(typeof l.enum[0]).match(/number|boolean/)&&(l.type="number")),Array.isArray(l.type)&&l.type.indexOf("string")!==-1&&l.type.indexOf("null")!==-1?`"${l.enum.filter(Boolean).join('"|"')}"|null`:l.type==="string"?`"${l.enum.join('"|"')}"`:l.type==="number"||l.type==="integer"||l.type==="boolean"?`${l.enum.join("|")}`:l.type==="null"?"null":"enum"):Array.isArray(l.type)?l.type.includes("null")?`?${l.type[0]}`:l.type.join("|"):l.type}function Xn(l){return l.slice(0,1).toUpperCase()+l.slice(1)}function Fl(l,n){let i=l?`${l} ${n}`:n;return`Represents ${`a${"aeiou".split("").includes(i.charAt())?"n":""}`} ${i}`}function Ul(l,n){let i=[`${l}/**`];return i.push(...n.map(m=>m?`${l} * ${m}`:" *")),i.push(`${l} */
925
994
  `),i.join(`
926
- `)}var dn=require("quicktype-core/dist/support/Strings"),K=class extends j.JavaScriptRenderer{constructor(i,m,t,a){super(i,m,t);this.snowtypeOptions=a}emitMultiline(i){_(this,i,2)}emitSourceStructure(){this.leadingComments!==void 0?this.emitCommentLines(this.leadingComments):this.emitUsageComments()}emitPredefinedJSDocTypes(){this.emitMultiline(`
995
+ `)}var Yn=require("quicktype-core/dist/support/Strings"),B=class extends N.JavaScriptRenderer{constructor(i,m,t,o){super(i,m,t);this.snowtypeOptions=o}emitMultiline(i){U(this,i,2)}emitSourceStructure(){this.leadingComments!==void 0?this.emitCommentLines(this.leadingComments):this.emitUsageComments()}emitPredefinedJSDocTypes(){this.emitMultiline(`
927
996
  /**
928
997
  * Typedef for a DeviceTimestamp
929
998
  * @typedef {object} DeviceTimestamp
@@ -956,10 +1025,10 @@ interface CommonEventProperties<T extends {} = Record<string, unknown>> {
956
1025
  * @typedef {object} Context
957
1026
  * @property {SelfDescribingJson[]} [context] Contexts to include in the event
958
1027
  */
959
- `)}emitSource(i){super.emitSource(i),this.ensureBlankLine(),this.emitPredefinedJSDocTypes(),this.forEachTopLevel("none",(m,t)=>{let a=this.sourcelikeToString(t),e=m.getAttributes().get(I);e&&e.raw&&(e.raw.title=e.raw.title||a,this.emitMultiline(Xn(e.raw)),this.emitMultiline(Jl(e.raw.title)),this.ensureBlankLine())}),S(this,this.snowtypeOptions.generators)}makeNameForTopLevel(i,m,t){return L((...a)=>super.makeNameForTopLevel(...a),this.snowtypeOptions,i,m,t)}},z=class extends j.JavaScriptTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new K(this,i,(0,j.getOptionValues)(j.tsFlowOptions,m),this.snowtypeOptions)}},Yn=b({name:"javascript",quicktypeLanguage:z,defaultOptions:{"runtime-typecheck":!1},nameModifiers:{functionName:dn.camelCase}}),X={...Yn,generate:async(l,n,i)=>{let{sdk:m,prefixes:t,suffixes:a}=i;return await Yn.generate(l,n,i)}};function Jl(l){return`
1028
+ `)}emitSource(i){super.emitSource(i),this.ensureBlankLine(),this.emitPredefinedJSDocTypes(),this.forEachTopLevel("none",(m,t)=>{let o=this.sourcelikeToString(t),e=m.getAttributes().get(I);e&&e.raw&&(e.raw.title=e.raw.title||o,this.emitMultiline(zn(e.raw)),this.emitMultiline(Jl(e.raw.title)),this.ensureBlankLine())}),S(this,this.snowtypeOptions.generators)}makeNameForTopLevel(i,m,t){return L((...o)=>super.makeNameForTopLevel(...o),this.snowtypeOptions,i,m,t)}},K=class extends N.JavaScriptTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new B(this,i,(0,N.getOptionValues)(N.tsFlowOptions,m),this.snowtypeOptions)}},Zn=P({name:"javascript",quicktypeLanguage:K,defaultOptions:{"runtime-typecheck":!1},nameModifiers:{functionName:Yn.camelCase}}),z={...Zn,generate:async(l,n,i)=>{let{sdk:m,prefixes:t,suffixes:o}=i;return await Zn.generate(l,n,i)}};function Jl(l){return`
960
1029
  /**
961
1030
  * Typedef for a ${l} entity context.
962
1031
  * @typedef {object} ${l}Context
963
1032
  * @property {string} schema The schema of the context.
964
1033
  * @property { ${l} } data The data to send for the context.
965
- */`}var P=require("quicktype-core"),hn=require("quicktype-core/dist/language/Kotlin"),nl=require("quicktype-core/dist/support/Strings");var Z=class extends hn.KotlinXRenderer{constructor(i,m,t,a){super(i,m,t);this.snowtypeOptions=a}getClassData(i){let m=[];return this.forEachClassProperty(i,"none",(t,a,e)=>{let s=this.getArrayTypes(e.type);m.push({name:this.sourcelikeToString(t),jsonName:a,description:this.descriptionForClassProperty(i,a),type:this.sourcelikeToString(this.kotlinType(e.type)),isOptional:e.isOptional,isNullable:this.isNullable(e),isNullableOrOptional:e.isOptional||this.isNullable(e),isArrayOfEnums:s&&s.get("array").includes("enum"),isArrayOfObjects:s&&s.get("array").includes("class"),isEnum:this.isEnum(e),isObject:this.isObject(e)})}),{properties:m}}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}emitSourceStructure(){}getArrayTypes(i){if(i.kind.toString()!=="array")return null;let m=new Map;return m.set("array",[]),i.getChildren().forEach(t=>{t.kind.toString()==="union"?t.getChildren().forEach(a=>{m.get("array").push(a.kind.toString())}):m.get("array").push(t.kind.toString())}),m}isEnum(i){return i.type.kind==="enum"||this.isNullable(i)&&(0,P.nullableFromUnion)(i.type)?.kind==="enum"}isObject(i){return i.type.kind==="class"||this.isNullable(i)&&(0,P.nullableFromUnion)(i.type)?.kind==="class"}isNullable(i){return i.type.kind==="union"&&(0,P.nullableFromUnion)(i.type)!==null}},Y=class extends P.KotlinTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new Z(this,i,(0,P.getOptionValues)(P.kotlinOptions,m),this.snowtypeOptions)}},d=b({name:"kotlin",quicktypeLanguage:Y,defaultOptions:{framework:"kotlinx",package:"Snowtype","just-types":!0},requiredOptions:["package"],unsupportedOptions:["framework"],nameModifiers:{functionName:nl.camelCase}});var k=require("quicktype-core"),ll=require("quicktype-core/dist/support/Strings");var h=class extends k.SwiftRenderer{constructor(i,m,t,a){super(i,m,t);this.snowtypeOptions=a}getClassData(i){let m=[];return this.forEachClassProperty(i,"none",(t,a,e)=>{let s=this.getArrayTypes(e.type);m.push({name:this.sourcelikeToString(t),jsonName:a,description:this.descriptionForClassProperty(i,a),type:this.sourcelikeToString(this.swiftPropertyType(e)),isOptional:e.isOptional,isNullable:this.isNullable(e),isNullableOrOptional:e.isOptional||this.isNullable(e),isArrayOfEnums:s&&s.get("array").includes("enum"),isArrayOfObjects:s&&s.get("array").includes("class"),isEnum:this.isEnum(e),isObject:this.isObject(e)})}),{properties:m}}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}emitSourceStructure(){}getArrayTypes(i){if(i.kind.toString()!=="array")return null;let m=new Map;return m.set("array",[]),i.getChildren().forEach(t=>{t.kind.toString()==="union"?t.getChildren().forEach(a=>{m.get("array").push(a.kind.toString())}):m.get("array").push(t.kind.toString())}),m}isEnum(i){return i.type.kind==="enum"||this.isNullable(i)&&(0,k.nullableFromUnion)(i.type)?.kind==="enum"}isObject(i){return i.type.kind==="class"||this.isNullable(i)&&(0,k.nullableFromUnion)(i.type)?.kind==="class"}isNullable(i){return i.type.kind==="union"&&(0,k.nullableFromUnion)(i.type)!==null}},nn=class extends k.SwiftTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new h(this,i,(0,k.getOptionValues)(k.swiftOptions,m),this.snowtypeOptions)}},ln=b({name:"swift",quicktypeLanguage:nn,nameModifiers:{functionName:ll.camelCase}});var M=require("quicktype-core"),ol=require("quicktype-core/dist/RendererOptions"),al=require("quicktype-core/dist/support/Strings");var en=class extends M.TypeScriptRenderer{constructor(i,m,t,a){super(i,m,t);this.snowtypeOptions=a}emitMultiline(i){_(this,i,2)}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}makeNameForTopLevel(i,m,t){return L((...a)=>super.makeNameForTopLevel(...a),this.snowtypeOptions,i,m,t)}},on=class extends M.TypeScriptTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new en(this,i,(0,ol.getOptionValues)(M.tsFlowOptions,m),this.snowtypeOptions)}},el=b({name:"typescript",quicktypeLanguage:on,defaultOptions:{"just-types":!0,"prefer-unions":!0},nameModifiers:{functionName:al.camelCase}}),an={...el,generate:async(l,n,i)=>{let{sdk:m,prefixes:t,suffixes:a}=i;return await el.generate(l,n,i)}};var T=require("quicktype-core");var rl=require("quicktype-core/dist/support/Strings"),tn=class extends T.GoRenderer{constructor(i,m,t,a){super(i,m,t);this.snowtypeOptions=a}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}makeNameForTopLevel(i,m,t){return L((...a)=>super.makeNameForTopLevel(...a),this.snowtypeOptions,i,m,t)}},C=class extends T.GoTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new tn(this,i,(0,T.getOptionValues)(T.goOptions,m),this.snowtypeOptions)}},tl=b({name:"go",quicktypeLanguage:C,defaultOptions:{"just-types":!0,"just-types-and-package":!0,package:"main","multi-file-output":!1,"field-tags":"mapstructure"},nameModifiers:{functionName:rl.camelCase}}),rn={...tl,generate:async(l,n,i)=>{let{sdk:m,prefixes:t,suffixes:a}=i;return await tl.generate(l,n,i)}};var il=[an,X,d,ln,rn];var $l=["Automatically generated by Snowtype"];function Gl(l){return il.find(i=>i.id===l.language)?.generate(l.schemas,l.eventSpecifications,{header:$l,outputFilename:"snowplow",validations:l.validations,tracker:l.tracker})}0&&(module.exports={createEventSpecificationInstructionsIdentifier,generate});
1034
+ */`}var b=require("quicktype-core"),hn=require("quicktype-core/dist/language/Kotlin"),nl=require("quicktype-core/dist/support/Strings");var X=class extends hn.KotlinXRenderer{constructor(i,m,t,o){super(i,m,t);this.snowtypeOptions=o}getClassData(i){let m=[];return this.forEachClassProperty(i,"none",(t,o,e)=>{let s=this.getArrayTypes(e.type);m.push({name:this.sourcelikeToString(t),jsonName:o,description:this.descriptionForClassProperty(i,o),type:this.sourcelikeToString(this.kotlinType(e.type)),isOptional:e.isOptional,isNullable:this.isNullable(e),isNullableOrOptional:e.isOptional||this.isNullable(e),isArrayOfEnums:s&&s.get("array").includes("enum"),isArrayOfObjects:s&&s.get("array").includes("class"),isEnum:this.isEnum(e),isObject:this.isObject(e)})}),{properties:m}}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}emitSourceStructure(){}getArrayTypes(i){if(i.kind.toString()!=="array")return null;let m=new Map;return m.set("array",[]),i.getChildren().forEach(t=>{t.kind.toString()==="union"?t.getChildren().forEach(o=>{m.get("array").push(o.kind.toString())}):m.get("array").push(t.kind.toString())}),m}isEnum(i){return i.type.kind==="enum"||this.isNullable(i)&&(0,b.nullableFromUnion)(i.type)?.kind==="enum"}isObject(i){return i.type.kind==="class"||this.isNullable(i)&&(0,b.nullableFromUnion)(i.type)?.kind==="class"}isNullable(i){return i.type.kind==="union"&&(0,b.nullableFromUnion)(i.type)!==null}},Z=class extends b.KotlinTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new X(this,i,(0,b.getOptionValues)(b.kotlinOptions,m),this.snowtypeOptions)}},Y=P({name:"kotlin",quicktypeLanguage:Z,defaultOptions:{framework:"kotlinx",package:"Snowtype","just-types":!0},requiredOptions:["package"],unsupportedOptions:["framework"],nameModifiers:{functionName:nl.camelCase}});var k=require("quicktype-core"),ll=require("quicktype-core/dist/support/Strings");var h=class extends k.SwiftRenderer{constructor(i,m,t,o){super(i,m,t);this.snowtypeOptions=o}getClassData(i){let m=[];return this.forEachClassProperty(i,"none",(t,o,e)=>{let s=this.getArrayTypes(e.type);m.push({name:this.sourcelikeToString(t),jsonName:o,description:this.descriptionForClassProperty(i,o),type:this.sourcelikeToString(this.swiftPropertyType(e)),isOptional:e.isOptional,isNullable:this.isNullable(e),isNullableOrOptional:e.isOptional||this.isNullable(e),isArrayOfEnums:s&&s.get("array").includes("enum"),isArrayOfObjects:s&&s.get("array").includes("class"),isEnum:this.isEnum(e),isObject:this.isObject(e)})}),{properties:m}}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}emitSourceStructure(){}getArrayTypes(i){if(i.kind.toString()!=="array")return null;let m=new Map;return m.set("array",[]),i.getChildren().forEach(t=>{t.kind.toString()==="union"?t.getChildren().forEach(o=>{m.get("array").push(o.kind.toString())}):m.get("array").push(t.kind.toString())}),m}isEnum(i){return i.type.kind==="enum"||this.isNullable(i)&&(0,k.nullableFromUnion)(i.type)?.kind==="enum"}isObject(i){return i.type.kind==="class"||this.isNullable(i)&&(0,k.nullableFromUnion)(i.type)?.kind==="class"}isNullable(i){return i.type.kind==="union"&&(0,k.nullableFromUnion)(i.type)!==null}},nn=class extends k.SwiftTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new h(this,i,(0,k.getOptionValues)(k.swiftOptions,m),this.snowtypeOptions)}},ln=P({name:"swift",quicktypeLanguage:nn,nameModifiers:{functionName:ll.camelCase}});var M=require("quicktype-core"),al=require("quicktype-core/dist/RendererOptions"),ol=require("quicktype-core/dist/support/Strings");var en=class extends M.TypeScriptRenderer{constructor(i,m,t,o){super(i,m,t);this.snowtypeOptions=o}emitMultiline(i){U(this,i,2)}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}makeNameForTopLevel(i,m,t){return L((...o)=>super.makeNameForTopLevel(...o),this.snowtypeOptions,i,m,t)}},an=class extends M.TypeScriptTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new en(this,i,(0,al.getOptionValues)(M.tsFlowOptions,m),this.snowtypeOptions)}},el=P({name:"typescript",quicktypeLanguage:an,defaultOptions:{"just-types":!0,"prefer-unions":!0},nameModifiers:{functionName:ol.camelCase}}),on={...el,generate:async(l,n,i)=>{let{sdk:m,prefixes:t,suffixes:o}=i;return await el.generate(l,n,i)}};var j=require("quicktype-core");var rl=require("quicktype-core/dist/support/Strings"),tn=class extends j.GoRenderer{constructor(i,m,t,o){super(i,m,t);this.snowtypeOptions=o}emitSource(i){super.emitSource(i),S(this,this.snowtypeOptions.generators)}makeNameForTopLevel(i,m,t){return L((...o)=>super.makeNameForTopLevel(...o),this.snowtypeOptions,i,m,t)}},T=class extends j.GoTargetLanguage{constructor(i){super();this.snowtypeOptions=i}makeRenderer(i,m){return new tn(this,i,(0,j.getOptionValues)(j.goOptions,m),this.snowtypeOptions)}},tl=P({name:"go",quicktypeLanguage:T,defaultOptions:{"just-types":!0,"just-types-and-package":!0,package:"main","multi-file-output":!1,"field-tags":"mapstructure"},nameModifiers:{functionName:rl.camelCase}}),rn={...tl,generate:async(l,n,i)=>{let{sdk:m,prefixes:t,suffixes:o}=i;return await tl.generate(l,n,i)}};var il=[on,z,Y,ln,rn];var $l=["Automatically generated by Snowtype"];function Gl(l){return il.find(i=>i.id===l.language)?.generate(l.schemas,l.eventSpecifications,{header:$l,outputFilename:"snowplow",validations:l.validations,tracker:l.tracker})}0&&(module.exports={createEventSpecificationInstructionsIdentifier,generate});